screenreader-speech-capture 0.4.0 → 0.6.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 (137) hide show
  1. package/dist/cli.mjs +122 -13
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/assets/0.CnPCLsGJ.css +1 -0
  4. package/dist/ui/client/ui/_app/immutable/assets/0.CnPCLsGJ.css.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/0.CnPCLsGJ.css.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/assets/2.IKhva0W0.css +1 -0
  7. package/dist/ui/client/ui/_app/immutable/assets/2.IKhva0W0.css.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/assets/2.IKhva0W0.css.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css +1 -0
  10. package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/chunks/C67ohLw_.js +1 -0
  13. package/dist/ui/client/ui/_app/immutable/chunks/C67ohLw_.js.br +3 -0
  14. package/dist/ui/client/ui/_app/immutable/chunks/C67ohLw_.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js +37 -0
  16. package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/chunks/CKeiBgOI.js +1 -0
  19. package/dist/ui/client/ui/_app/immutable/chunks/CKeiBgOI.js.br +1 -0
  20. package/dist/ui/client/ui/_app/immutable/chunks/CKeiBgOI.js.gz +0 -0
  21. package/dist/ui/client/ui/_app/immutable/chunks/CVUOwNb5.js +3 -0
  22. package/dist/ui/client/ui/_app/immutable/chunks/CVUOwNb5.js.br +0 -0
  23. package/dist/ui/client/ui/_app/immutable/chunks/CVUOwNb5.js.gz +0 -0
  24. package/dist/ui/client/ui/_app/immutable/chunks/Dksil5Gu.js +1 -0
  25. package/dist/ui/client/ui/_app/immutable/chunks/Dksil5Gu.js.br +0 -0
  26. package/dist/ui/client/ui/_app/immutable/chunks/Dksil5Gu.js.gz +0 -0
  27. package/dist/ui/client/ui/_app/immutable/chunks/DnL0kOQY.js +1 -0
  28. package/dist/ui/client/ui/_app/immutable/chunks/DnL0kOQY.js.br +2 -0
  29. package/dist/ui/client/ui/_app/immutable/chunks/DnL0kOQY.js.gz +0 -0
  30. package/dist/ui/client/ui/_app/immutable/chunks/h7UQ89-l.js +3 -0
  31. package/dist/ui/client/ui/_app/immutable/chunks/h7UQ89-l.js.br +0 -0
  32. package/dist/ui/client/ui/_app/immutable/chunks/h7UQ89-l.js.gz +0 -0
  33. package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js +1 -0
  34. package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js.br +0 -0
  35. package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js.gz +0 -0
  36. package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js +2 -0
  37. package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js.br +0 -0
  38. package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js.gz +0 -0
  39. package/dist/ui/client/ui/_app/immutable/entry/start.uodUAHNT.js +2 -0
  40. package/dist/ui/client/ui/_app/immutable/entry/start.uodUAHNT.js.br +0 -0
  41. package/dist/ui/client/ui/_app/immutable/entry/start.uodUAHNT.js.gz +0 -0
  42. package/dist/ui/client/ui/_app/immutable/nodes/0.CJdYHfX8.js +1 -0
  43. package/dist/ui/client/ui/_app/immutable/nodes/0.CJdYHfX8.js.br +0 -0
  44. package/dist/ui/client/ui/_app/immutable/nodes/0.CJdYHfX8.js.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/nodes/1.jZ-iBVjE.js +1 -0
  46. package/dist/ui/client/ui/_app/immutable/nodes/1.jZ-iBVjE.js.br +2 -0
  47. package/dist/ui/client/ui/_app/immutable/nodes/1.jZ-iBVjE.js.gz +0 -0
  48. package/dist/ui/client/ui/_app/immutable/nodes/{2.BCy3UgNz.js → 2.CKUmeq5l.js} +38 -37
  49. package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js.br +0 -0
  50. package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js.gz +0 -0
  51. package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js +1 -0
  52. package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js.br +0 -0
  53. package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js.gz +0 -0
  54. package/dist/ui/client/ui/_app/immutable/nodes/4.DY8qq4Io.js +1 -0
  55. package/dist/ui/client/ui/_app/immutable/nodes/4.DY8qq4Io.js.br +0 -0
  56. package/dist/ui/client/ui/_app/immutable/nodes/4.DY8qq4Io.js.gz +0 -0
  57. package/dist/ui/client/ui/_app/version.json +1 -1
  58. package/dist/ui/client/ui/_app/version.json.br +0 -0
  59. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  60. package/dist/ui/server/.vite/manifest.json +24 -4
  61. package/dist/ui/server/_app/immutable/assets/_layout.CnPCLsGJ.css +1 -0
  62. package/dist/ui/server/_app/immutable/assets/_page.BKNNVeb3.css +1 -0
  63. package/dist/ui/server/_app/immutable/assets/_page.IKhva0W0.css +1 -0
  64. package/dist/ui/server/chunks/bridge-api.js +6 -0
  65. package/dist/ui/server/chunks/bridge-api.js.map +1 -1
  66. package/dist/ui/server/chunks/composition.js +75 -2647
  67. package/dist/ui/server/chunks/composition.js.map +1 -1
  68. package/dist/ui/server/chunks/icon-button.js +2636 -0
  69. package/dist/ui/server/chunks/icon-button.js.map +1 -0
  70. package/dist/ui/server/chunks/instance.js +4 -4
  71. package/dist/ui/server/chunks/instance.js.map +1 -1
  72. package/dist/ui/server/chunks/internal.js +1 -1
  73. package/dist/ui/server/entries/endpoints/api/sessions/_id_/_server.ts.js +13 -0
  74. package/dist/ui/server/entries/endpoints/api/sessions/_id_/_server.ts.js.map +1 -0
  75. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +8 -1
  76. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js.map +1 -1
  77. package/dist/ui/server/entries/pages/_layout.svelte.js +36 -63
  78. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  79. package/dist/ui/server/entries/pages/_page.svelte.js +93 -5
  80. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  81. package/dist/ui/server/entries/pages/settings/_page.svelte.js +29 -3
  82. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
  83. package/dist/ui/server/manifest-full.js +8 -1
  84. package/dist/ui/server/manifest.js +8 -1
  85. package/dist/ui/server/nodes/0.js +2 -2
  86. package/dist/ui/server/nodes/1.js +1 -1
  87. package/dist/ui/server/nodes/2.js +2 -2
  88. package/dist/ui/server/nodes/3.js +2 -2
  89. package/dist/ui/server/nodes/4.js +1 -1
  90. package/dist/ui/server/server.js +8 -1
  91. package/package.json +1 -1
  92. package/dist/ui/client/ui/_app/immutable/assets/0.B2ZWH0rX.css +0 -1
  93. package/dist/ui/client/ui/_app/immutable/assets/0.B2ZWH0rX.css.br +0 -0
  94. package/dist/ui/client/ui/_app/immutable/assets/0.B2ZWH0rX.css.gz +0 -0
  95. package/dist/ui/client/ui/_app/immutable/assets/2.CtITS5jU.css +0 -1
  96. package/dist/ui/client/ui/_app/immutable/assets/2.CtITS5jU.css.br +0 -0
  97. package/dist/ui/client/ui/_app/immutable/assets/2.CtITS5jU.css.gz +0 -0
  98. package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js +0 -1
  99. package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js.br +0 -1
  100. package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js.gz +0 -0
  101. package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js +0 -3
  102. package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js.br +0 -0
  103. package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js.gz +0 -0
  104. package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js +0 -1
  105. package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js.br +0 -2
  106. package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js.gz +0 -0
  107. package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js +0 -1
  108. package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js.br +0 -0
  109. package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js.gz +0 -0
  110. package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js +0 -3
  111. package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js.br +0 -0
  112. package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js.gz +0 -0
  113. package/dist/ui/client/ui/_app/immutable/chunks/w6UAqFO5.js +0 -37
  114. package/dist/ui/client/ui/_app/immutable/chunks/w6UAqFO5.js.br +0 -0
  115. package/dist/ui/client/ui/_app/immutable/chunks/w6UAqFO5.js.gz +0 -0
  116. package/dist/ui/client/ui/_app/immutable/entry/app.COo3YJBG.js +0 -2
  117. package/dist/ui/client/ui/_app/immutable/entry/app.COo3YJBG.js.br +0 -2
  118. package/dist/ui/client/ui/_app/immutable/entry/app.COo3YJBG.js.gz +0 -0
  119. package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js +0 -2
  120. package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js.br +0 -0
  121. package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js.gz +0 -0
  122. package/dist/ui/client/ui/_app/immutable/nodes/0.BKE0tKKK.js +0 -1
  123. package/dist/ui/client/ui/_app/immutable/nodes/0.BKE0tKKK.js.br +0 -0
  124. package/dist/ui/client/ui/_app/immutable/nodes/0.BKE0tKKK.js.gz +0 -0
  125. package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js +0 -1
  126. package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js.br +0 -0
  127. package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js.gz +0 -0
  128. package/dist/ui/client/ui/_app/immutable/nodes/2.BCy3UgNz.js.br +0 -0
  129. package/dist/ui/client/ui/_app/immutable/nodes/2.BCy3UgNz.js.gz +0 -0
  130. package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js +0 -1
  131. package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js.br +0 -0
  132. package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js.gz +0 -0
  133. package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js +0 -1
  134. package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js.br +0 -0
  135. package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js.gz +0 -0
  136. package/dist/ui/server/_app/immutable/assets/_layout.B2ZWH0rX.css +0 -1
  137. package/dist/ui/server/_app/immutable/assets/_page.CtITS5jU.css +0 -1
@@ -0,0 +1,2636 @@
1
+ // ../../node_modules/.pnpm/tslib@2.9.1/node_modules/tslib/tslib.es6.mjs
2
+ function __decorate(decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ }
8
+ // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/custom-element.js
9
+ /**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */
14
+ var t$3 = (t) => (e, o) => {
15
+ void 0 !== o ? o.addInitializer(() => {
16
+ customElements.define(t, e);
17
+ }) : customElements.define(t, e);
18
+ };
19
+ // ../../node_modules/.pnpm/@lit-labs+ssr-dom-shim@1.6.0/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js
20
+ /**
21
+ * @license
22
+ * Copyright 2023 Google LLC
23
+ * SPDX-License-Identifier: BSD-3-Clause
24
+ */
25
+ var ElementInternalsShim = class ElementInternals {
26
+ get shadowRoot() {
27
+ return this.__host.__shadowRoot;
28
+ }
29
+ constructor(_host) {
30
+ this.ariaActiveDescendantElement = null;
31
+ this.ariaAtomic = "";
32
+ this.ariaAutoComplete = "";
33
+ this.ariaBrailleLabel = "";
34
+ this.ariaBrailleRoleDescription = "";
35
+ this.ariaBusy = "";
36
+ this.ariaChecked = "";
37
+ this.ariaColCount = "";
38
+ this.ariaColIndex = "";
39
+ this.ariaColIndexText = "";
40
+ this.ariaColSpan = "";
41
+ this.ariaControlsElements = null;
42
+ this.ariaCurrent = "";
43
+ this.ariaDescribedByElements = null;
44
+ this.ariaDescription = "";
45
+ this.ariaDetailsElements = null;
46
+ this.ariaDisabled = "";
47
+ this.ariaErrorMessageElements = null;
48
+ this.ariaExpanded = "";
49
+ this.ariaFlowToElements = null;
50
+ this.ariaHasPopup = "";
51
+ this.ariaHidden = "";
52
+ this.ariaInvalid = "";
53
+ this.ariaKeyShortcuts = "";
54
+ this.ariaLabel = "";
55
+ this.ariaLabelledByElements = null;
56
+ this.ariaLevel = "";
57
+ this.ariaLive = "";
58
+ this.ariaModal = "";
59
+ this.ariaMultiLine = "";
60
+ this.ariaMultiSelectable = "";
61
+ this.ariaOrientation = "";
62
+ this.ariaOwnsElements = null;
63
+ this.ariaPlaceholder = "";
64
+ this.ariaPosInSet = "";
65
+ this.ariaPressed = "";
66
+ this.ariaReadOnly = "";
67
+ this.ariaRelevant = "";
68
+ this.ariaRequired = "";
69
+ this.ariaRoleDescription = "";
70
+ this.ariaRowCount = "";
71
+ this.ariaRowIndex = "";
72
+ this.ariaRowIndexText = "";
73
+ this.ariaRowSpan = "";
74
+ this.ariaSelected = "";
75
+ this.ariaSetSize = "";
76
+ this.ariaSort = "";
77
+ this.ariaValueMax = "";
78
+ this.ariaValueMin = "";
79
+ this.ariaValueNow = "";
80
+ this.ariaValueText = "";
81
+ this.role = "";
82
+ this.form = null;
83
+ this.labels = [];
84
+ this.states = /* @__PURE__ */ new Set();
85
+ this.validationMessage = "";
86
+ this.validity = {};
87
+ this.willValidate = true;
88
+ this.__host = _host;
89
+ }
90
+ checkValidity() {
91
+ console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true.");
92
+ return true;
93
+ }
94
+ reportValidity() {
95
+ return true;
96
+ }
97
+ setFormValue() {}
98
+ setValidity() {}
99
+ };
100
+ // ../../node_modules/.pnpm/@lit-labs+ssr-dom-shim@1.6.0/node_modules/@lit-labs/ssr-dom-shim/lib/events.js
101
+ /**
102
+ * @license
103
+ * Copyright 2023 Google LLC
104
+ * SPDX-License-Identifier: BSD-3-Clause
105
+ */
106
+ var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
107
+ if (kind === "m") throw new TypeError("Private method is not writable");
108
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
109
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
110
+ return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
111
+ };
112
+ var __classPrivateFieldGet = function(receiver, state, kind, f) {
113
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
114
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
115
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
116
+ };
117
+ var _Event_cancelable;
118
+ var _Event_bubbles;
119
+ var _Event_composed;
120
+ var _Event_defaultPrevented;
121
+ var _Event_timestamp;
122
+ var _Event_propagationStopped;
123
+ var _Event_type;
124
+ var _Event_target;
125
+ var _Event_isBeingDispatched;
126
+ var _a$1;
127
+ var _CustomEvent_detail;
128
+ var _b;
129
+ var NONE = 0;
130
+ var CAPTURING_PHASE = 1;
131
+ var AT_TARGET = 2;
132
+ var BUBBLING_PHASE = 3;
133
+ var enumerableProperty$1 = { __proto__: null };
134
+ enumerableProperty$1.enumerable = true;
135
+ Object.freeze(enumerableProperty$1);
136
+ var EventShim = (_a$1 = class Event {
137
+ constructor(type, options = {}) {
138
+ _Event_cancelable.set(this, false);
139
+ _Event_bubbles.set(this, false);
140
+ _Event_composed.set(this, false);
141
+ _Event_defaultPrevented.set(this, false);
142
+ _Event_timestamp.set(this, Date.now());
143
+ _Event_propagationStopped.set(this, false);
144
+ _Event_type.set(this, void 0);
145
+ _Event_target.set(this, void 0);
146
+ _Event_isBeingDispatched.set(this, void 0);
147
+ this.NONE = NONE;
148
+ this.CAPTURING_PHASE = CAPTURING_PHASE;
149
+ this.AT_TARGET = AT_TARGET;
150
+ this.BUBBLING_PHASE = BUBBLING_PHASE;
151
+ if (arguments.length === 0) throw new Error(`The type argument must be specified`);
152
+ if (typeof options !== "object" || !options) throw new Error(`The "options" argument must be an object`);
153
+ const { bubbles, cancelable, composed } = options;
154
+ __classPrivateFieldSet(this, _Event_cancelable, !!cancelable, "f");
155
+ __classPrivateFieldSet(this, _Event_bubbles, !!bubbles, "f");
156
+ __classPrivateFieldSet(this, _Event_composed, !!composed, "f");
157
+ __classPrivateFieldSet(this, _Event_type, `${type}`, "f");
158
+ __classPrivateFieldSet(this, _Event_target, null, "f");
159
+ __classPrivateFieldSet(this, _Event_isBeingDispatched, false, "f");
160
+ }
161
+ initEvent(_type, _bubbles, _cancelable) {
162
+ throw new Error("Method not implemented.");
163
+ }
164
+ stopImmediatePropagation() {
165
+ this.stopPropagation();
166
+ }
167
+ preventDefault() {
168
+ __classPrivateFieldSet(this, _Event_defaultPrevented, true, "f");
169
+ }
170
+ get target() {
171
+ return __classPrivateFieldGet(this, _Event_target, "f");
172
+ }
173
+ get currentTarget() {
174
+ return __classPrivateFieldGet(this, _Event_target, "f");
175
+ }
176
+ get srcElement() {
177
+ return __classPrivateFieldGet(this, _Event_target, "f");
178
+ }
179
+ get type() {
180
+ return __classPrivateFieldGet(this, _Event_type, "f");
181
+ }
182
+ get cancelable() {
183
+ return __classPrivateFieldGet(this, _Event_cancelable, "f");
184
+ }
185
+ get defaultPrevented() {
186
+ return __classPrivateFieldGet(this, _Event_cancelable, "f") && __classPrivateFieldGet(this, _Event_defaultPrevented, "f");
187
+ }
188
+ get timeStamp() {
189
+ return __classPrivateFieldGet(this, _Event_timestamp, "f");
190
+ }
191
+ composedPath() {
192
+ return __classPrivateFieldGet(this, _Event_isBeingDispatched, "f") ? [__classPrivateFieldGet(this, _Event_target, "f")] : [];
193
+ }
194
+ get returnValue() {
195
+ return !__classPrivateFieldGet(this, _Event_cancelable, "f") || !__classPrivateFieldGet(this, _Event_defaultPrevented, "f");
196
+ }
197
+ get bubbles() {
198
+ return __classPrivateFieldGet(this, _Event_bubbles, "f");
199
+ }
200
+ get composed() {
201
+ return __classPrivateFieldGet(this, _Event_composed, "f");
202
+ }
203
+ get eventPhase() {
204
+ return __classPrivateFieldGet(this, _Event_isBeingDispatched, "f") ? _a$1.AT_TARGET : _a$1.NONE;
205
+ }
206
+ get cancelBubble() {
207
+ return __classPrivateFieldGet(this, _Event_propagationStopped, "f");
208
+ }
209
+ set cancelBubble(value) {
210
+ if (value) __classPrivateFieldSet(this, _Event_propagationStopped, true, "f");
211
+ }
212
+ stopPropagation() {
213
+ __classPrivateFieldSet(this, _Event_propagationStopped, true, "f");
214
+ }
215
+ get isTrusted() {
216
+ return false;
217
+ }
218
+ }, _Event_cancelable = /* @__PURE__ */ new WeakMap(), _Event_bubbles = /* @__PURE__ */ new WeakMap(), _Event_composed = /* @__PURE__ */ new WeakMap(), _Event_defaultPrevented = /* @__PURE__ */ new WeakMap(), _Event_timestamp = /* @__PURE__ */ new WeakMap(), _Event_propagationStopped = /* @__PURE__ */ new WeakMap(), _Event_type = /* @__PURE__ */ new WeakMap(), _Event_target = /* @__PURE__ */ new WeakMap(), _Event_isBeingDispatched = /* @__PURE__ */ new WeakMap(), _a$1.NONE = NONE, _a$1.CAPTURING_PHASE = CAPTURING_PHASE, _a$1.AT_TARGET = AT_TARGET, _a$1.BUBBLING_PHASE = BUBBLING_PHASE, _a$1);
219
+ Object.defineProperties(EventShim.prototype, {
220
+ initEvent: enumerableProperty$1,
221
+ stopImmediatePropagation: enumerableProperty$1,
222
+ preventDefault: enumerableProperty$1,
223
+ target: enumerableProperty$1,
224
+ currentTarget: enumerableProperty$1,
225
+ srcElement: enumerableProperty$1,
226
+ type: enumerableProperty$1,
227
+ cancelable: enumerableProperty$1,
228
+ defaultPrevented: enumerableProperty$1,
229
+ timeStamp: enumerableProperty$1,
230
+ composedPath: enumerableProperty$1,
231
+ returnValue: enumerableProperty$1,
232
+ bubbles: enumerableProperty$1,
233
+ composed: enumerableProperty$1,
234
+ eventPhase: enumerableProperty$1,
235
+ cancelBubble: enumerableProperty$1,
236
+ stopPropagation: enumerableProperty$1,
237
+ isTrusted: enumerableProperty$1
238
+ });
239
+ var CustomEventShim = (_b = class CustomEvent extends EventShim {
240
+ constructor(type, options = {}) {
241
+ super(type, options);
242
+ _CustomEvent_detail.set(this, void 0);
243
+ __classPrivateFieldSet(this, _CustomEvent_detail, options?.detail ?? null, "f");
244
+ }
245
+ initCustomEvent(_type, _bubbles, _cancelable, _detail) {
246
+ throw new Error("Method not implemented.");
247
+ }
248
+ get detail() {
249
+ return __classPrivateFieldGet(this, _CustomEvent_detail, "f");
250
+ }
251
+ }, _CustomEvent_detail = /* @__PURE__ */ new WeakMap(), _b);
252
+ Object.defineProperties(CustomEventShim.prototype, { detail: enumerableProperty$1 });
253
+ var EventShimWithRealType = EventShim;
254
+ var CustomEventShimWithRealType = CustomEventShim;
255
+ // ../../node_modules/.pnpm/@lit-labs+ssr-dom-shim@1.6.0/node_modules/@lit-labs/ssr-dom-shim/lib/css.js
256
+ /**
257
+ * @license
258
+ * Copyright 2024 Google LLC
259
+ * SPDX-License-Identifier: BSD-3-Clause
260
+ */
261
+ var _a = class CSSRule {
262
+ constructor() {
263
+ this.STYLE_RULE = 1;
264
+ this.CHARSET_RULE = 2;
265
+ this.IMPORT_RULE = 3;
266
+ this.MEDIA_RULE = 4;
267
+ this.FONT_FACE_RULE = 5;
268
+ this.PAGE_RULE = 6;
269
+ this.NAMESPACE_RULE = 10;
270
+ this.KEYFRAMES_RULE = 7;
271
+ this.KEYFRAME_RULE = 8;
272
+ this.SUPPORTS_RULE = 12;
273
+ this.COUNTER_STYLE_RULE = 11;
274
+ this.FONT_FEATURE_VALUES_RULE = 14;
275
+ this.MARGIN_RULE = 9;
276
+ this.__parentStyleSheet = null;
277
+ this.cssText = "";
278
+ }
279
+ get parentRule() {
280
+ return null;
281
+ }
282
+ get parentStyleSheet() {
283
+ return this.__parentStyleSheet;
284
+ }
285
+ get type() {
286
+ return 0;
287
+ }
288
+ };
289
+ _a.STYLE_RULE = 1, _a.CHARSET_RULE = 2, _a.IMPORT_RULE = 3, _a.MEDIA_RULE = 4, _a.FONT_FACE_RULE = 5, _a.PAGE_RULE = 6, _a.NAMESPACE_RULE = 10, _a.KEYFRAMES_RULE = 7, _a.KEYFRAME_RULE = 8, _a.SUPPORTS_RULE = 12, _a.COUNTER_STYLE_RULE = 11, _a.FONT_FEATURE_VALUES_RULE = 14, _a.MARGIN_RULE = 9;
290
+ // ../../node_modules/.pnpm/@lit-labs+ssr-dom-shim@1.6.0/node_modules/@lit-labs/ssr-dom-shim/index.js
291
+ /**
292
+ * @license
293
+ * Copyright 2019 Google LLC
294
+ * SPDX-License-Identifier: BSD-3-Clause
295
+ */
296
+ globalThis.Event ??= EventShimWithRealType;
297
+ globalThis.CustomEvent ??= CustomEventShimWithRealType;
298
+ var constructionToken = Symbol();
299
+ var isCaptureEventListener = (options) => typeof options === "boolean" ? options : options?.capture ?? false;
300
+ var enumerableProperty = { __proto__: null };
301
+ enumerableProperty.enumerable = true;
302
+ Object.freeze(enumerableProperty);
303
+ /**
304
+ * This is a basic implementation of an EventTarget.
305
+ *
306
+ * This is not fully spec compliant (e.g. validation),
307
+ * but should work well enough for our use cases.
308
+ *
309
+ * @see https://dom.spec.whatwg.org/#eventtarget
310
+ *
311
+ * Example Event Path
312
+ * ------------------
313
+ *
314
+ * Note that this depends on the logic in `packages/labs/ssr/src/lib/render-value.ts`.
315
+ * Any element that is not a custom element or a slot element is skipped in the chain.
316
+ *
317
+ * <main>
318
+ * <my-el1>
319
+ * #shadow-dom (open)
320
+ * <div>
321
+ * <slot></slot>
322
+ * <my-el2>
323
+ * #shadow-dom (closed)
324
+ * <slot></slot>
325
+ * <event-dispatcher3></event-dispatcher3>
326
+ * <slot name="nested"></slot>
327
+ * </my-el2>
328
+ * </div>
329
+ * <event-dispatcher1></event-dispatcher1>
330
+ * <event-dispatcher2 slot="nested"></event-dispatcher2>
331
+ * </my-el1>
332
+ * </main>
333
+ *
334
+ * Given the previous structure, the event path of this shim would be as follows,
335
+ * for the given dispatcher with an event that bubbles (document-fragment
336
+ * represents a ShadowRoot/#shadow-dom instance):
337
+ *
338
+ * <event-dispatcher1>:
339
+ * [event-dispatcher1, slot{my-el1}, document-fragment{my-el1}, my-el1, document]
340
+ *
341
+ * <event-dispatcher2>:
342
+ * [
343
+ * event-dispatcher2,
344
+ * slot[name="nested"]{my-el1},
345
+ * slot{my-el2},
346
+ * document-fragment{my-el2},
347
+ * my-el2,
348
+ * document-fragment{my-el1},
349
+ * my-el1,
350
+ * document
351
+ * ]
352
+ *
353
+ * <event-dispatcher3> (without composed):
354
+ * [event-dispatcher3, document-fragment{my-el2}]
355
+ *
356
+ * <event-dispatcher3> (composed):
357
+ * [
358
+ * event-dispatcher3,
359
+ * document-fragment{my-el2},
360
+ * my-el2,
361
+ * document-fragment{my-el1},
362
+ * my-el1,
363
+ * document
364
+ * ]
365
+ */
366
+ var EventTarget$1 = class {
367
+ constructor() {
368
+ this.__eventListeners = /* @__PURE__ */ new Map();
369
+ this.__captureEventListeners = /* @__PURE__ */ new Map();
370
+ }
371
+ addEventListener(type, callback, options) {
372
+ if (callback === void 0 || callback === null) return;
373
+ const eventListenersMap = isCaptureEventListener(options) ? this.__captureEventListeners : this.__eventListeners;
374
+ let eventListeners = eventListenersMap.get(type);
375
+ if (eventListeners === void 0) {
376
+ eventListeners = /* @__PURE__ */ new Map();
377
+ eventListenersMap.set(type, eventListeners);
378
+ } else if (eventListeners.has(callback)) return;
379
+ const normalizedOptions = typeof options === "object" && options ? options : {};
380
+ normalizedOptions.signal?.addEventListener("abort", () => this.removeEventListener(type, callback, options));
381
+ eventListeners.set(callback, normalizedOptions ?? {});
382
+ }
383
+ removeEventListener(type, callback, options) {
384
+ if (callback === void 0 || callback === null) return;
385
+ const eventListenersMap = isCaptureEventListener(options) ? this.__captureEventListeners : this.__eventListeners;
386
+ const eventListeners = eventListenersMap.get(type);
387
+ if (eventListeners !== void 0) {
388
+ eventListeners.delete(callback);
389
+ if (!eventListeners.size) eventListenersMap.delete(type);
390
+ }
391
+ }
392
+ dispatchEvent(event) {
393
+ let composedPath = this.__resolveFullEventPath();
394
+ if (!event.composed && this.__host) composedPath = composedPath.slice(0, composedPath.indexOf(this.__host));
395
+ let stopPropagation = false;
396
+ let stopImmediatePropagation = false;
397
+ let eventPhase = EventShimWithRealType.NONE;
398
+ let target = null;
399
+ let tmpTarget = null;
400
+ let currentTarget = null;
401
+ const originalStopPropagation = event.stopPropagation;
402
+ const originalStopImmediatePropagation = event.stopImmediatePropagation;
403
+ Object.defineProperties(event, {
404
+ target: {
405
+ get() {
406
+ return target ?? tmpTarget;
407
+ },
408
+ ...enumerableProperty
409
+ },
410
+ srcElement: {
411
+ get() {
412
+ return event.target;
413
+ },
414
+ ...enumerableProperty
415
+ },
416
+ currentTarget: {
417
+ get() {
418
+ return currentTarget;
419
+ },
420
+ ...enumerableProperty
421
+ },
422
+ eventPhase: {
423
+ get() {
424
+ return eventPhase;
425
+ },
426
+ ...enumerableProperty
427
+ },
428
+ composedPath: {
429
+ value: () => composedPath,
430
+ ...enumerableProperty
431
+ },
432
+ stopPropagation: {
433
+ value: () => {
434
+ stopPropagation = true;
435
+ originalStopPropagation.call(event);
436
+ },
437
+ ...enumerableProperty
438
+ },
439
+ stopImmediatePropagation: {
440
+ value: () => {
441
+ stopImmediatePropagation = true;
442
+ originalStopImmediatePropagation.call(event);
443
+ },
444
+ ...enumerableProperty
445
+ }
446
+ });
447
+ const invokeEventListener = (listener, options, eventListenerMap) => {
448
+ if (typeof listener === "function") listener(event);
449
+ else if (typeof listener?.handleEvent === "function") listener.handleEvent(event);
450
+ if (options.once) eventListenerMap.delete(listener);
451
+ };
452
+ const finishDispatch = () => {
453
+ currentTarget = null;
454
+ eventPhase = EventShimWithRealType.NONE;
455
+ return !event.defaultPrevented;
456
+ };
457
+ const captureEventPath = composedPath.slice().reverse();
458
+ target = !this.__host || !event.composed ? this : null;
459
+ const retarget = (eventTargets) => {
460
+ tmpTarget = this;
461
+ while (tmpTarget.__host && eventTargets.includes(tmpTarget.__host)) tmpTarget = tmpTarget.__host;
462
+ };
463
+ for (const eventTarget of captureEventPath) {
464
+ if (!target && (!tmpTarget || tmpTarget === eventTarget.__host)) retarget(captureEventPath.slice(captureEventPath.indexOf(eventTarget)));
465
+ currentTarget = eventTarget;
466
+ eventPhase = eventTarget === event.target ? EventShimWithRealType.AT_TARGET : EventShimWithRealType.CAPTURING_PHASE;
467
+ const captureEventListeners = eventTarget.__captureEventListeners.get(event.type);
468
+ if (captureEventListeners) for (const [listener, options] of captureEventListeners) {
469
+ invokeEventListener(listener, options, captureEventListeners);
470
+ if (stopImmediatePropagation) return finishDispatch();
471
+ }
472
+ if (stopPropagation) return finishDispatch();
473
+ }
474
+ const bubbleEventPath = event.bubbles ? composedPath : [this];
475
+ tmpTarget = null;
476
+ for (const eventTarget of bubbleEventPath) {
477
+ if (!target && (!tmpTarget || eventTarget === tmpTarget.__host)) retarget(bubbleEventPath.slice(0, bubbleEventPath.indexOf(eventTarget) + 1));
478
+ currentTarget = eventTarget;
479
+ eventPhase = eventTarget === event.target ? EventShimWithRealType.AT_TARGET : EventShimWithRealType.BUBBLING_PHASE;
480
+ const eventListeners = eventTarget.__eventListeners.get(event.type);
481
+ if (eventListeners) for (const [listener, options] of eventListeners) {
482
+ invokeEventListener(listener, options, eventListeners);
483
+ if (stopImmediatePropagation) return finishDispatch();
484
+ }
485
+ if (stopPropagation) return finishDispatch();
486
+ }
487
+ return finishDispatch();
488
+ }
489
+ __resolveFullEventPath() {
490
+ if (this.__eventPathCache) return this.__eventPathCache;
491
+ else if (!this.__eventTargetParent) return this.__eventPathCache = [
492
+ this,
493
+ documentShim,
494
+ windowShim
495
+ ];
496
+ else return this.__eventPathCache = [this, ...this.__eventTargetParent.__resolveFullEventPath()];
497
+ }
498
+ };
499
+ var attributes = /* @__PURE__ */ new WeakMap();
500
+ var attributesForElement = (element) => {
501
+ let attrs = attributes.get(element);
502
+ if (attrs === void 0) attributes.set(element, attrs = /* @__PURE__ */ new Map());
503
+ return attrs;
504
+ };
505
+ var NodeShim = class Node extends EventTarget$1 {
506
+ getRootNode(options) {
507
+ if (options?.composed) return document$1;
508
+ return this.__host?.__shadowRoot ?? document$1;
509
+ }
510
+ };
511
+ var DocumentShim = class Document extends NodeShim {
512
+ get adoptedStyleSheets() {
513
+ return [];
514
+ }
515
+ createTreeWalker() {
516
+ return {};
517
+ }
518
+ createTextNode() {
519
+ return {};
520
+ }
521
+ createElement() {
522
+ return {};
523
+ }
524
+ };
525
+ var documentShim = new DocumentShim();
526
+ var document$1 = documentShim;
527
+ var WindowShim = class Window extends NodeShim {
528
+ constructor(token) {
529
+ super();
530
+ if (token !== constructionToken) throw new TypeError("Illegal constructor");
531
+ Object.assign(this, globalThis, {
532
+ CustomElementRegistry,
533
+ customElements: customElements$1,
534
+ document: document$1,
535
+ Document: DocumentShim,
536
+ Element: ElementShim,
537
+ EventTarget: EventTarget$1,
538
+ HTMLElement: HTMLElementShim,
539
+ Node: NodeShim,
540
+ ShadowRoot: ShadowRootShim,
541
+ window: this,
542
+ Window: WindowShim
543
+ });
544
+ }
545
+ };
546
+ var ElementShim = class Element extends NodeShim {
547
+ constructor() {
548
+ super(...arguments);
549
+ this.__shadowRootMode = null;
550
+ this.__shadowRoot = null;
551
+ this.__internals = null;
552
+ }
553
+ get attributes() {
554
+ return Array.from(attributesForElement(this)).map(([name, value]) => ({
555
+ name,
556
+ value
557
+ }));
558
+ }
559
+ get shadowRoot() {
560
+ if (this.__shadowRootMode === "closed") return null;
561
+ return this.__shadowRoot;
562
+ }
563
+ get localName() {
564
+ return this.constructor.__localName;
565
+ }
566
+ get tagName() {
567
+ return this.localName?.toUpperCase();
568
+ }
569
+ setAttribute(name, value) {
570
+ attributesForElement(this).set(name, String(value));
571
+ }
572
+ removeAttribute(name) {
573
+ attributesForElement(this).delete(name);
574
+ }
575
+ toggleAttribute(name, force) {
576
+ if (this.hasAttribute(name)) {
577
+ if (force === void 0 || !force) {
578
+ this.removeAttribute(name);
579
+ return false;
580
+ }
581
+ } else if (force === void 0 || force) {
582
+ this.setAttribute(name, "");
583
+ return true;
584
+ } else return false;
585
+ return true;
586
+ }
587
+ hasAttribute(name) {
588
+ return attributesForElement(this).has(name);
589
+ }
590
+ attachShadow(init) {
591
+ this.__shadowRootMode = init.mode;
592
+ const shadowRoot = new ShadowRootShim(constructionToken, init);
593
+ shadowRoot.__eventTargetParent = this;
594
+ shadowRoot.__host = this;
595
+ return this.__shadowRoot = shadowRoot;
596
+ }
597
+ attachInternals() {
598
+ if (this.__internals !== null) throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");
599
+ const internals = new ElementInternalsShim(this);
600
+ this.__internals = internals;
601
+ return internals;
602
+ }
603
+ getAttribute(name) {
604
+ return attributesForElement(this).get(name) ?? null;
605
+ }
606
+ };
607
+ var HTMLElementShim = class HTMLElement extends ElementShim {};
608
+ var HTMLElementShimWithRealType = HTMLElementShim;
609
+ var ShadowRootShim = class ShadowRoot extends NodeShim {
610
+ get host() {
611
+ return this.__host;
612
+ }
613
+ constructor(constructionToken, init) {
614
+ super();
615
+ if (constructionToken !== constructionToken) throw new TypeError("Illegal constructor");
616
+ this.mode = init.mode;
617
+ }
618
+ };
619
+ globalThis.litServerRoot ??= Object.defineProperty(new HTMLElementShimWithRealType(), "localName", { get() {
620
+ return "lit-server-root";
621
+ } });
622
+ function promiseWithResolvers() {
623
+ let resolve;
624
+ let reject;
625
+ return {
626
+ promise: new Promise((res, rej) => {
627
+ resolve = res;
628
+ reject = rej;
629
+ }),
630
+ resolve,
631
+ reject
632
+ };
633
+ }
634
+ var CustomElementRegistry = class {
635
+ constructor() {
636
+ this.__definitions = /* @__PURE__ */ new Map();
637
+ this.__reverseDefinitions = /* @__PURE__ */ new Map();
638
+ this.__pendingWhenDefineds = /* @__PURE__ */ new Map();
639
+ }
640
+ define(name, ctor) {
641
+ if (this.__definitions.has(name)) {
642
+ if (process.env.NODE_ENV === "development") console.warn(`'CustomElementRegistry' already has "${name}" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.\nMake sure to test your application with a production build as repeat registrations will throw in production.`);
643
+ else throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${name}" has already been used with this registry`);
644
+ }
645
+ if (this.__reverseDefinitions.has(ctor)) throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the constructor has already been used with this registry for the tag name ${this.__reverseDefinitions.get(ctor)}`);
646
+ ctor.__localName = name;
647
+ this.__definitions.set(name, {
648
+ ctor,
649
+ observedAttributes: ctor.observedAttributes ?? []
650
+ });
651
+ this.__reverseDefinitions.set(ctor, name);
652
+ this.__pendingWhenDefineds.get(name)?.resolve(ctor);
653
+ this.__pendingWhenDefineds.delete(name);
654
+ }
655
+ get(name) {
656
+ return this.__definitions.get(name)?.ctor;
657
+ }
658
+ getName(ctor) {
659
+ return this.__reverseDefinitions.get(ctor) ?? null;
660
+ }
661
+ initialize(_root) {
662
+ throw new Error("customElements.initialize is not currently supported in SSR. Please file a bug if you need it.");
663
+ }
664
+ upgrade(_element) {
665
+ throw new Error("customElements.upgrade is not currently supported in SSR. Please file a bug if you need it.");
666
+ }
667
+ async whenDefined(name) {
668
+ const definition = this.__definitions.get(name);
669
+ if (definition) return definition.ctor;
670
+ let withResolvers = this.__pendingWhenDefineds.get(name);
671
+ if (!withResolvers) {
672
+ withResolvers = promiseWithResolvers();
673
+ this.__pendingWhenDefineds.set(name, withResolvers);
674
+ }
675
+ return withResolvers.promise;
676
+ }
677
+ };
678
+ var customElements$1 = new CustomElementRegistry();
679
+ var windowShim = new WindowShim(constructionToken);
680
+ // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/css-tag.js
681
+ /**
682
+ * @license
683
+ * Copyright 2019 Google LLC
684
+ * SPDX-License-Identifier: BSD-3-Clause
685
+ */
686
+ var t$2 = globalThis;
687
+ var e$5 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
688
+ var s$2 = Symbol();
689
+ var o$5 = /* @__PURE__ */ new WeakMap();
690
+ var n$4 = class {
691
+ constructor(t, e, o) {
692
+ if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
693
+ this.cssText = t, this.t = e;
694
+ }
695
+ get styleSheet() {
696
+ let t = this.o;
697
+ const s = this.t;
698
+ if (e$5 && void 0 === t) {
699
+ const e = void 0 !== s && 1 === s.length;
700
+ e && (t = o$5.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$5.set(s, t));
701
+ }
702
+ return t;
703
+ }
704
+ toString() {
705
+ return this.cssText;
706
+ }
707
+ };
708
+ var r$4 = (t) => new n$4("string" == typeof t ? t : t + "", void 0, s$2);
709
+ var i$4 = (t, ...e) => {
710
+ return new n$4(1 === t.length ? t[0] : e.reduce((e, s, o) => e + ((t) => {
711
+ if (!0 === t._$cssResult$) return t.cssText;
712
+ if ("number" == typeof t) return t;
713
+ 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.");
714
+ })(s) + t[o + 1], t[0]), t, s$2);
715
+ };
716
+ var S$1 = (s, o) => {
717
+ if (e$5) s.adoptedStyleSheets = o.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
718
+ else for (const e of o) {
719
+ const o = document.createElement("style"), n = t$2.litNonce;
720
+ void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
721
+ }
722
+ };
723
+ var c$3 = e$5 || void 0 === t$2.CSSStyleSheet ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((t) => {
724
+ let e = "";
725
+ for (const s of t.cssRules) e += s.cssText;
726
+ return r$4(e);
727
+ })(t) : t;
728
+ // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/reactive-element.js
729
+ var { is: h$1, defineProperty: r$3, getOwnPropertyDescriptor: o$4, getOwnPropertyNames: n$3, getOwnPropertySymbols: a$2, getPrototypeOf: c$2 } = Object, l$2 = globalThis;
730
+ l$2.customElements ??= customElements$1;
731
+ var p$1 = l$2.trustedTypes;
732
+ var d$1 = p$1 ? p$1.emptyScript : "";
733
+ var u$2 = l$2.reactiveElementPolyfillSupport;
734
+ var f$1 = (t, s) => t;
735
+ var b$1 = {
736
+ toAttribute(t, s) {
737
+ switch (s) {
738
+ case Boolean:
739
+ t = t ? d$1 : null;
740
+ break;
741
+ case Object:
742
+ case Array: t = null == t ? t : JSON.stringify(t);
743
+ }
744
+ return t;
745
+ },
746
+ fromAttribute(t, s) {
747
+ let i = t;
748
+ switch (s) {
749
+ case Boolean:
750
+ i = null !== t;
751
+ break;
752
+ case Number:
753
+ i = null === t ? null : Number(t);
754
+ break;
755
+ case Object:
756
+ case Array: try {
757
+ i = JSON.parse(t);
758
+ } catch (t) {
759
+ i = null;
760
+ }
761
+ }
762
+ return i;
763
+ }
764
+ };
765
+ var m$1 = (t, s) => !h$1(t, s);
766
+ var y$1 = {
767
+ attribute: !0,
768
+ type: String,
769
+ converter: b$1,
770
+ reflect: !1,
771
+ useDefault: !1,
772
+ hasChanged: m$1
773
+ };
774
+ Symbol.metadata ??= Symbol("metadata"), l$2.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
775
+ var g$1 = class extends (globalThis.HTMLElement ?? HTMLElementShimWithRealType) {
776
+ static addInitializer(t) {
777
+ this._$Ei(), (this.l ??= []).push(t);
778
+ }
779
+ static get observedAttributes() {
780
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
781
+ }
782
+ static createProperty(t, s = y$1) {
783
+ if (s.state && (s.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = !0), this.elementProperties.set(t, s), !s.noAccessor) {
784
+ const i = Symbol(), e = this.getPropertyDescriptor(t, i, s);
785
+ void 0 !== e && r$3(this.prototype, t, e);
786
+ }
787
+ }
788
+ static getPropertyDescriptor(t, s, i) {
789
+ const { get: e, set: h } = o$4(this.prototype, t) ?? {
790
+ get() {
791
+ return this[s];
792
+ },
793
+ set(t) {
794
+ this[s] = t;
795
+ }
796
+ };
797
+ return {
798
+ get: e,
799
+ set(s) {
800
+ const r = e?.call(this);
801
+ h?.call(this, s), this.requestUpdate(t, r, i);
802
+ },
803
+ configurable: !0,
804
+ enumerable: !0
805
+ };
806
+ }
807
+ static getPropertyOptions(t) {
808
+ return this.elementProperties.get(t) ?? y$1;
809
+ }
810
+ static _$Ei() {
811
+ if (this.hasOwnProperty(f$1("elementProperties"))) return;
812
+ const t = c$2(this);
813
+ t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
814
+ }
815
+ static finalize() {
816
+ if (this.hasOwnProperty(f$1("finalized"))) return;
817
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(f$1("properties"))) {
818
+ const t = this.properties, s = [...n$3(t), ...a$2(t)];
819
+ for (const i of s) this.createProperty(i, t[i]);
820
+ }
821
+ const t = this[Symbol.metadata];
822
+ if (null !== t) {
823
+ const s = litPropertyMetadata.get(t);
824
+ if (void 0 !== s) for (const [t, i] of s) this.elementProperties.set(t, i);
825
+ }
826
+ this._$Eh = /* @__PURE__ */ new Map();
827
+ for (const [t, s] of this.elementProperties) {
828
+ const i = this._$Eu(t, s);
829
+ void 0 !== i && this._$Eh.set(i, t);
830
+ }
831
+ this.elementStyles = this.finalizeStyles(this.styles);
832
+ }
833
+ static finalizeStyles(t) {
834
+ const s = [];
835
+ if (Array.isArray(t)) {
836
+ const e = new Set(t.flat(1 / 0).reverse());
837
+ for (const t of e) s.unshift(c$3(t));
838
+ } else void 0 !== t && s.push(c$3(t));
839
+ return s;
840
+ }
841
+ static _$Eu(t, s) {
842
+ const i = s.attribute;
843
+ return !1 === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
844
+ }
845
+ constructor() {
846
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
847
+ }
848
+ _$Ev() {
849
+ this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t) => t(this));
850
+ }
851
+ addController(t) {
852
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
853
+ }
854
+ removeController(t) {
855
+ this._$EO?.delete(t);
856
+ }
857
+ _$E_() {
858
+ const t = /* @__PURE__ */ new Map(), s = this.constructor.elementProperties;
859
+ for (const i of s.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
860
+ t.size > 0 && (this._$Ep = t);
861
+ }
862
+ createRenderRoot() {
863
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
864
+ return S$1(t, this.constructor.elementStyles), t;
865
+ }
866
+ connectedCallback() {
867
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
868
+ }
869
+ enableUpdating(t) {}
870
+ disconnectedCallback() {
871
+ this._$EO?.forEach((t) => t.hostDisconnected?.());
872
+ }
873
+ attributeChangedCallback(t, s, i) {
874
+ this._$AK(t, i);
875
+ }
876
+ _$ET(t, s) {
877
+ const i = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, i);
878
+ if (void 0 !== e && !0 === i.reflect) {
879
+ const h = (void 0 !== i.converter?.toAttribute ? i.converter : b$1).toAttribute(s, i.type);
880
+ this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
881
+ }
882
+ }
883
+ _$AK(t, s) {
884
+ const i = this.constructor, e = i._$Eh.get(t);
885
+ if (void 0 !== e && this._$Em !== e) {
886
+ const t = i.getPropertyOptions(e), h = "function" == typeof t.converter ? { fromAttribute: t.converter } : void 0 !== t.converter?.fromAttribute ? t.converter : b$1;
887
+ this._$Em = e;
888
+ const r = h.fromAttribute(s, t.type);
889
+ this[e] = r ?? this._$Ej?.get(e) ?? r, this._$Em = null;
890
+ }
891
+ }
892
+ requestUpdate(t, s, i, e = !1, h) {
893
+ if (void 0 !== t) {
894
+ const r = this.constructor;
895
+ if (!1 === e && (h = this[t]), i ??= r.getPropertyOptions(t), !((i.hasChanged ?? m$1)(h, s) || i.useDefault && i.reflect && h === this._$Ej?.get(t) && !this.hasAttribute(r._$Eu(t, i)))) return;
896
+ this.C(t, s, i);
897
+ }
898
+ !1 === this.isUpdatePending && (this._$ES = this._$EP());
899
+ }
900
+ C(t, s, { useDefault: i, reflect: e, wrapped: h }, r) {
901
+ i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, r ?? s ?? this[t]), !0 !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), !0 === e && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
902
+ }
903
+ async _$EP() {
904
+ this.isUpdatePending = !0;
905
+ try {
906
+ await this._$ES;
907
+ } catch (t) {
908
+ Promise.reject(t);
909
+ }
910
+ const t = this.scheduleUpdate();
911
+ return null != t && await t, !this.isUpdatePending;
912
+ }
913
+ scheduleUpdate() {
914
+ return this.performUpdate();
915
+ }
916
+ performUpdate() {
917
+ if (!this.isUpdatePending) return;
918
+ if (!this.hasUpdated) {
919
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
920
+ for (const [t, s] of this._$Ep) this[t] = s;
921
+ this._$Ep = void 0;
922
+ }
923
+ const t = this.constructor.elementProperties;
924
+ if (t.size > 0) for (const [s, i] of t) {
925
+ const { wrapped: t } = i, e = this[s];
926
+ !0 !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
927
+ }
928
+ }
929
+ let t = !1;
930
+ const s = this._$AL;
931
+ try {
932
+ t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach((t) => t.hostUpdate?.()), this.update(s)) : this._$EM();
933
+ } catch (s) {
934
+ throw t = !1, this._$EM(), s;
935
+ }
936
+ t && this._$AE(s);
937
+ }
938
+ willUpdate(t) {}
939
+ _$AE(t) {
940
+ this._$EO?.forEach((t) => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
941
+ }
942
+ _$EM() {
943
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
944
+ }
945
+ get updateComplete() {
946
+ return this.getUpdateComplete();
947
+ }
948
+ getUpdateComplete() {
949
+ return this._$ES;
950
+ }
951
+ shouldUpdate(t) {
952
+ return !0;
953
+ }
954
+ update(t) {
955
+ this._$Eq &&= this._$Eq.forEach((t) => this._$ET(t, this[t])), this._$EM();
956
+ }
957
+ updated(t) {}
958
+ firstUpdated(t) {}
959
+ };
960
+ g$1.elementStyles = [], g$1.shadowRootOptions = { mode: "open" }, g$1[f$1("elementProperties")] = /* @__PURE__ */ new Map(), g$1[f$1("finalized")] = /* @__PURE__ */ new Map(), u$2?.({ ReactiveElement: g$1 }), (l$2.reactiveElementVersions ??= []).push("2.1.2");
961
+ // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/property.js
962
+ /**
963
+ * @license
964
+ * Copyright 2017 Google LLC
965
+ * SPDX-License-Identifier: BSD-3-Clause
966
+ */ var o$3 = {
967
+ attribute: !0,
968
+ type: String,
969
+ converter: b$1,
970
+ reflect: !1,
971
+ hasChanged: m$1
972
+ };
973
+ var r$2 = (t = o$3, e, r) => {
974
+ const { kind: n, metadata: i } = r;
975
+ let s = globalThis.litPropertyMetadata.get(i);
976
+ if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = /* @__PURE__ */ new Map()), "setter" === n && ((t = Object.create(t)).wrapped = !0), s.set(r.name, t), "accessor" === n) {
977
+ const { name: o } = r;
978
+ return {
979
+ set(r) {
980
+ const n = e.get.call(this);
981
+ e.set.call(this, r), this.requestUpdate(o, n, t, !0, r);
982
+ },
983
+ init(e) {
984
+ return void 0 !== e && this.C(o, void 0, t, e), e;
985
+ }
986
+ };
987
+ }
988
+ if ("setter" === n) {
989
+ const { name: o } = r;
990
+ return function(r) {
991
+ const n = this[o];
992
+ e.call(this, r), this.requestUpdate(o, n, t, !0, r);
993
+ };
994
+ }
995
+ throw Error("Unsupported decorator location: " + n);
996
+ };
997
+ function n$2(t) {
998
+ return (e, o) => "object" == typeof o ? r$2(t, e, o) : ((t, e, o) => {
999
+ const r = e.hasOwnProperty(o);
1000
+ return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
1001
+ })(t, e, o);
1002
+ }
1003
+ // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/state.js
1004
+ /**
1005
+ * @license
1006
+ * Copyright 2017 Google LLC
1007
+ * SPDX-License-Identifier: BSD-3-Clause
1008
+ */ function r$1(r) {
1009
+ return n$2({
1010
+ ...r,
1011
+ state: !0,
1012
+ attribute: !1
1013
+ });
1014
+ }
1015
+ // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/base.js
1016
+ /**
1017
+ * @license
1018
+ * Copyright 2017 Google LLC
1019
+ * SPDX-License-Identifier: BSD-3-Clause
1020
+ */
1021
+ var e$4 = (e, t, c) => (c.configurable = !0, c.enumerable = !0, Reflect.decorate && "object" != typeof t && Object.defineProperty(e, t, c), c);
1022
+ // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/query.js
1023
+ /**
1024
+ * @license
1025
+ * Copyright 2017 Google LLC
1026
+ * SPDX-License-Identifier: BSD-3-Clause
1027
+ */ function e$3(e, r) {
1028
+ return (n, s, i) => {
1029
+ const o = (t) => t.renderRoot?.querySelector(e) ?? null;
1030
+ if (r) {
1031
+ const { get: e, set: r } = "object" == typeof s ? n : i ?? (() => {
1032
+ const t = Symbol();
1033
+ return {
1034
+ get() {
1035
+ return this[t];
1036
+ },
1037
+ set(e) {
1038
+ this[t] = e;
1039
+ }
1040
+ };
1041
+ })();
1042
+ return e$4(n, s, { get() {
1043
+ let t = e.call(this);
1044
+ return void 0 === t && (t = o(this), (null !== t || this.hasUpdated) && r.call(this, t)), t;
1045
+ } });
1046
+ }
1047
+ return e$4(n, s, { get() {
1048
+ return o(this);
1049
+ } });
1050
+ };
1051
+ }
1052
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/lit-html.js
1053
+ /**
1054
+ * @license
1055
+ * Copyright 2017 Google LLC
1056
+ * SPDX-License-Identifier: BSD-3-Clause
1057
+ */
1058
+ var t$1 = globalThis;
1059
+ var i$3 = (t) => t;
1060
+ var s$1 = t$1.trustedTypes;
1061
+ var e$2 = s$1 ? s$1.createPolicy("lit-html", { createHTML: (t) => t }) : void 0;
1062
+ var h = "$lit$";
1063
+ var o$2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
1064
+ var n$1 = "?" + o$2;
1065
+ var r = `<${n$1}>`;
1066
+ var l$1 = void 0 === t$1.document ? { createTreeWalker: () => ({}) } : document;
1067
+ var c$1 = () => l$1.createComment("");
1068
+ var a$1 = (t) => null === t || "object" != typeof t && "function" != typeof t;
1069
+ var u$1 = Array.isArray;
1070
+ var d = (t) => u$1(t) || "function" == typeof t?.[Symbol.iterator];
1071
+ var f = "[ \n\f\r]";
1072
+ var v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
1073
+ var _ = /-->/g;
1074
+ var m = />/g;
1075
+ var p = RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g");
1076
+ var g = /'/g;
1077
+ var $$1 = /"/g;
1078
+ var y = /^(?:script|style|textarea|title)$/i;
1079
+ var x = (t) => (i, ...s) => ({
1080
+ _$litType$: t,
1081
+ strings: i,
1082
+ values: s
1083
+ });
1084
+ var T = x(1);
1085
+ var E = Symbol.for("lit-noChange");
1086
+ var A = Symbol.for("lit-nothing");
1087
+ var C = /* @__PURE__ */ new WeakMap();
1088
+ var P = l$1.createTreeWalker(l$1, 129);
1089
+ function V(t, i) {
1090
+ if (!u$1(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1091
+ return void 0 !== e$2 ? e$2.createHTML(i) : i;
1092
+ }
1093
+ var N = (t, i) => {
1094
+ const s = t.length - 1, e = [];
1095
+ let n, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = v;
1096
+ for (let i = 0; i < s; i++) {
1097
+ const s = t[i];
1098
+ let a, u, d = -1, f = 0;
1099
+ for (; f < s.length && (c.lastIndex = f, u = c.exec(s), null !== u);) f = c.lastIndex, c === v ? "!--" === u[1] ? c = _ : void 0 !== u[1] ? c = m : void 0 !== u[2] ? (y.test(u[2]) && (n = RegExp("</" + u[2], "g")), c = p) : void 0 !== u[3] && (c = p) : c === p ? ">" === u[0] ? (c = n ?? v, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? p : "\"" === u[3] ? $$1 : g) : c === $$1 || c === g ? c = p : c === _ || c === m ? c = v : (c = p, n = void 0);
1100
+ const x = c === p && t[i + 1].startsWith("/>") ? " " : "";
1101
+ l += c === v ? s + r : d >= 0 ? (e.push(a), s.slice(0, d) + h + s.slice(d) + o$2 + x) : s + o$2 + (-2 === d ? i : x);
1102
+ }
1103
+ return [V(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), e];
1104
+ };
1105
+ var S = class S {
1106
+ constructor({ strings: t, _$litType$: i }, e) {
1107
+ let r;
1108
+ this.parts = [];
1109
+ let l = 0, a = 0;
1110
+ const u = t.length - 1, d = this.parts, [f, v] = N(t, i);
1111
+ if (this.el = S.createElement(f, e), P.currentNode = this.el.content, 2 === i || 3 === i) {
1112
+ const t = this.el.content.firstChild;
1113
+ t.replaceWith(...t.childNodes);
1114
+ }
1115
+ for (; null !== (r = P.nextNode()) && d.length < u;) {
1116
+ if (1 === r.nodeType) {
1117
+ if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(h)) {
1118
+ const i = v[a++], s = r.getAttribute(t).split(o$2), e = /([.?@])?(.*)/.exec(i);
1119
+ d.push({
1120
+ type: 1,
1121
+ index: l,
1122
+ name: e[2],
1123
+ strings: s,
1124
+ ctor: "." === e[1] ? I : "?" === e[1] ? L : "@" === e[1] ? z : H
1125
+ }), r.removeAttribute(t);
1126
+ } else t.startsWith(o$2) && (d.push({
1127
+ type: 6,
1128
+ index: l
1129
+ }), r.removeAttribute(t));
1130
+ if (y.test(r.tagName)) {
1131
+ const t = r.textContent.split(o$2), i = t.length - 1;
1132
+ if (i > 0) {
1133
+ r.textContent = s$1 ? s$1.emptyScript : "";
1134
+ for (let s = 0; s < i; s++) r.append(t[s], c$1()), P.nextNode(), d.push({
1135
+ type: 2,
1136
+ index: ++l
1137
+ });
1138
+ r.append(t[i], c$1());
1139
+ }
1140
+ }
1141
+ } else if (8 === r.nodeType) if (r.data === n$1) d.push({
1142
+ type: 2,
1143
+ index: l
1144
+ });
1145
+ else {
1146
+ let t = -1;
1147
+ for (; -1 !== (t = r.data.indexOf(o$2, t + 1));) d.push({
1148
+ type: 7,
1149
+ index: l
1150
+ }), t += o$2.length - 1;
1151
+ }
1152
+ l++;
1153
+ }
1154
+ }
1155
+ static createElement(t, i) {
1156
+ const s = l$1.createElement("template");
1157
+ return s.innerHTML = t, s;
1158
+ }
1159
+ };
1160
+ function M(t, i, s = t, e) {
1161
+ if (i === E) return i;
1162
+ let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
1163
+ const o = a$1(i) ? void 0 : i._$litDirective$;
1164
+ return h?.constructor !== o && (h?._$AO?.(!1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = M(t, h._$AS(t, i.values), h, e)), i;
1165
+ }
1166
+ var k = class {
1167
+ constructor(t, i) {
1168
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1169
+ }
1170
+ get parentNode() {
1171
+ return this._$AM.parentNode;
1172
+ }
1173
+ get _$AU() {
1174
+ return this._$AM._$AU;
1175
+ }
1176
+ u(t) {
1177
+ const { el: { content: i }, parts: s } = this._$AD, e = (t?.creationScope ?? l$1).importNode(i, !0);
1178
+ P.currentNode = e;
1179
+ let h = P.nextNode(), o = 0, n = 0, r = s[0];
1180
+ for (; void 0 !== r;) {
1181
+ if (o === r.index) {
1182
+ let i;
1183
+ 2 === r.type ? i = new R(h, h.nextSibling, this, t) : 1 === r.type ? i = new r.ctor(h, r.name, r.strings, this, t) : 6 === r.type && (i = new W(h, this, t)), this._$AV.push(i), r = s[++n];
1184
+ }
1185
+ o !== r?.index && (h = P.nextNode(), o++);
1186
+ }
1187
+ return P.currentNode = l$1, e;
1188
+ }
1189
+ p(t) {
1190
+ let i = 0;
1191
+ for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
1192
+ }
1193
+ };
1194
+ var R = class R {
1195
+ get _$AU() {
1196
+ return this._$AM?._$AU ?? this._$Cv;
1197
+ }
1198
+ constructor(t, i, s, e) {
1199
+ this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? !0;
1200
+ }
1201
+ get parentNode() {
1202
+ let t = this._$AA.parentNode;
1203
+ const i = this._$AM;
1204
+ return void 0 !== i && 11 === t?.nodeType && (t = i.parentNode), t;
1205
+ }
1206
+ get startNode() {
1207
+ return this._$AA;
1208
+ }
1209
+ get endNode() {
1210
+ return this._$AB;
1211
+ }
1212
+ _$AI(t, i = this) {
1213
+ t = M(this, t, i), a$1(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== E && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : d(t) ? this.k(t) : this._(t);
1214
+ }
1215
+ O(t) {
1216
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
1217
+ }
1218
+ T(t) {
1219
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
1220
+ }
1221
+ _(t) {
1222
+ this._$AH !== A && a$1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(l$1.createTextNode(t)), this._$AH = t;
1223
+ }
1224
+ $(t) {
1225
+ const { values: i, _$litType$: s } = t, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = S.createElement(V(s.h, s.h[0]), this.options)), s);
1226
+ if (this._$AH?._$AD === e) this._$AH.p(i);
1227
+ else {
1228
+ const t = new k(e, this), s = t.u(this.options);
1229
+ t.p(i), this.T(s), this._$AH = t;
1230
+ }
1231
+ }
1232
+ _$AC(t) {
1233
+ let i = C.get(t.strings);
1234
+ return void 0 === i && C.set(t.strings, i = new S(t)), i;
1235
+ }
1236
+ k(t) {
1237
+ u$1(this._$AH) || (this._$AH = [], this._$AR());
1238
+ const i = this._$AH;
1239
+ let s, e = 0;
1240
+ for (const h of t) e === i.length ? i.push(s = new R(this.O(c$1()), this.O(c$1()), this, this.options)) : s = i[e], s._$AI(h), e++;
1241
+ e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
1242
+ }
1243
+ _$AR(t = this._$AA.nextSibling, s) {
1244
+ for (this._$AP?.(!1, !0, s); t !== this._$AB;) {
1245
+ const s = i$3(t).nextSibling;
1246
+ i$3(t).remove(), t = s;
1247
+ }
1248
+ }
1249
+ setConnected(t) {
1250
+ void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
1251
+ }
1252
+ };
1253
+ var H = class {
1254
+ get tagName() {
1255
+ return this.element.tagName;
1256
+ }
1257
+ get _$AU() {
1258
+ return this._$AM._$AU;
1259
+ }
1260
+ constructor(t, i, s, e, h) {
1261
+ this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(/* @__PURE__ */ new String()), this.strings = s) : this._$AH = A;
1262
+ }
1263
+ _$AI(t, i = this, s, e) {
1264
+ const h = this.strings;
1265
+ let o = !1;
1266
+ if (void 0 === h) t = M(this, t, i, 0), o = !a$1(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
1267
+ else {
1268
+ const e = t;
1269
+ let n, r;
1270
+ for (t = h[0], n = 0; n < h.length - 1; n++) r = M(this, e[s + n], i, n), r === E && (r = this._$AH[n]), o ||= !a$1(r) || r !== this._$AH[n], r === A ? t = A : t !== A && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
1271
+ }
1272
+ o && !e && this.j(t);
1273
+ }
1274
+ j(t) {
1275
+ t === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1276
+ }
1277
+ };
1278
+ var I = class extends H {
1279
+ constructor() {
1280
+ super(...arguments), this.type = 3;
1281
+ }
1282
+ j(t) {
1283
+ this.element[this.name] = t === A ? void 0 : t;
1284
+ }
1285
+ };
1286
+ var L = class extends H {
1287
+ constructor() {
1288
+ super(...arguments), this.type = 4;
1289
+ }
1290
+ j(t) {
1291
+ this.element.toggleAttribute(this.name, !!t && t !== A);
1292
+ }
1293
+ };
1294
+ var z = class extends H {
1295
+ constructor(t, i, s, e, h) {
1296
+ super(t, i, s, e, h), this.type = 5;
1297
+ }
1298
+ _$AI(t, i = this) {
1299
+ if ((t = M(this, t, i, 0) ?? A) === E) return;
1300
+ const s = this._$AH, e = t === A && s !== A || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== A && (s === A || e);
1301
+ e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
1302
+ }
1303
+ handleEvent(t) {
1304
+ "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
1305
+ }
1306
+ };
1307
+ var W = class {
1308
+ constructor(t, i, s) {
1309
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
1310
+ }
1311
+ get _$AU() {
1312
+ return this._$AM._$AU;
1313
+ }
1314
+ _$AI(t) {
1315
+ M(this, t);
1316
+ }
1317
+ };
1318
+ var Z = {
1319
+ M: h,
1320
+ P: o$2,
1321
+ A: n$1,
1322
+ C: 1,
1323
+ L: N,
1324
+ R: k,
1325
+ D: d,
1326
+ V: M,
1327
+ I: R,
1328
+ H,
1329
+ N: L,
1330
+ U: z,
1331
+ B: I,
1332
+ F: W
1333
+ };
1334
+ var j = t$1.litHtmlPolyfillSupport;
1335
+ j?.(S, R), (t$1.litHtmlVersions ??= []).push("3.3.3");
1336
+ var B = (t, i, s) => {
1337
+ const e = s?.renderBefore ?? i;
1338
+ let h = e._$litPart$;
1339
+ if (void 0 === h) {
1340
+ const t = s?.renderBefore ?? null;
1341
+ e._$litPart$ = h = new R(i.insertBefore(c$1(), t), t, void 0, s ?? {});
1342
+ }
1343
+ return h._$AI(t), h;
1344
+ };
1345
+ // ../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js
1346
+ /**
1347
+ * @license
1348
+ * Copyright 2017 Google LLC
1349
+ * SPDX-License-Identifier: BSD-3-Clause
1350
+ */ var s = globalThis;
1351
+ var i$2 = class extends g$1 {
1352
+ constructor() {
1353
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1354
+ }
1355
+ createRenderRoot() {
1356
+ const t = super.createRenderRoot();
1357
+ return this.renderOptions.renderBefore ??= t.firstChild, t;
1358
+ }
1359
+ update(t) {
1360
+ const r = this.render();
1361
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = B(r, this.renderRoot, this.renderOptions);
1362
+ }
1363
+ connectedCallback() {
1364
+ super.connectedCallback(), this._$Do?.setConnected(!0);
1365
+ }
1366
+ disconnectedCallback() {
1367
+ super.disconnectedCallback(), this._$Do?.setConnected(!1);
1368
+ }
1369
+ render() {
1370
+ return E;
1371
+ }
1372
+ };
1373
+ i$2._$litElement$ = !0, i$2["finalized"] = !0, s.litElementHydrateSupport?.({ LitElement: i$2 });
1374
+ var o$1 = s.litElementPolyfillSupport;
1375
+ o$1?.({ LitElement: i$2 });
1376
+ (s.litElementVersions ??= []).push("4.2.2");
1377
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/icon/internal/icon.js
1378
+ /**
1379
+ * @license
1380
+ * Copyright 2022 Google LLC
1381
+ * SPDX-License-Identifier: Apache-2.0
1382
+ */
1383
+ /**
1384
+ * An icon element.
1385
+ */
1386
+ var Icon = class extends i$2 {
1387
+ render() {
1388
+ return T`<slot></slot>`;
1389
+ }
1390
+ connectedCallback() {
1391
+ super.connectedCallback();
1392
+ if (this.getAttribute("aria-hidden") === "false") {
1393
+ this.removeAttribute("aria-hidden");
1394
+ return;
1395
+ }
1396
+ this.setAttribute("aria-hidden", "true");
1397
+ }
1398
+ };
1399
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/icon/internal/icon-styles.cssresult.js
1400
+ /**
1401
+ * @license
1402
+ * Copyright 2026 Google LLC
1403
+ * SPDX-License-Identifier: Apache-2.0
1404
+ */
1405
+ var styles$4 = i$4`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
1406
+ `;
1407
+ styles$4.styleSheet;
1408
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/icon/icon.js
1409
+ /**
1410
+ * @license
1411
+ * Copyright 2022 Google LLC
1412
+ * SPDX-License-Identifier: Apache-2.0
1413
+ */
1414
+ /**
1415
+ * @final
1416
+ * @suppress {visibility}
1417
+ */
1418
+ var MdIcon = class MdIcon extends Icon {};
1419
+ /** @nocollapse */
1420
+ MdIcon.styles = [styles$4];
1421
+ MdIcon = __decorate([t$3("md-icon")], MdIcon);
1422
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/controller/attachable-controller.js
1423
+ /**
1424
+ * @license
1425
+ * Copyright 2023 Google LLC
1426
+ * SPDX-License-Identifier: Apache-2.0
1427
+ */
1428
+ /**
1429
+ * A key to retrieve an `Attachable` element's `AttachableController` from a
1430
+ * global `MutationObserver`.
1431
+ */
1432
+ var ATTACHABLE_CONTROLLER = Symbol("attachableController");
1433
+ /**
1434
+ * A controller that provides an implementation for `Attachable` elements.
1435
+ *
1436
+ * @example
1437
+ * ```ts
1438
+ * class MyElement extends LitElement implements Attachable {
1439
+ * get control() { return this.attachableController.control; }
1440
+ *
1441
+ * private readonly attachableController = new AttachableController(
1442
+ * this,
1443
+ * (previousControl, newControl) => {
1444
+ * previousControl?.removeEventListener('click', this.handleClick);
1445
+ * newControl?.addEventListener('click', this.handleClick);
1446
+ * }
1447
+ * );
1448
+ *
1449
+ * // Implement remaining `Attachable` properties/methods that call the
1450
+ * // controller's properties/methods.
1451
+ * }
1452
+ * ```
1453
+ */
1454
+ var AttachableController = class {
1455
+ get htmlFor() {
1456
+ return this.host.getAttribute("for");
1457
+ }
1458
+ set htmlFor(htmlFor) {
1459
+ if (htmlFor === null) this.host.removeAttribute("for");
1460
+ else this.host.setAttribute("for", htmlFor);
1461
+ }
1462
+ get control() {
1463
+ if (this.host.hasAttribute("for")) {
1464
+ if (!this.htmlFor || !this.host.isConnected) return null;
1465
+ return this.host.getRootNode().querySelector(`#${this.htmlFor}`);
1466
+ }
1467
+ return this.currentControl || this.host.parentElement;
1468
+ }
1469
+ set control(control) {
1470
+ if (control) this.attach(control);
1471
+ else this.detach();
1472
+ }
1473
+ /**
1474
+ * Creates a new controller for an `Attachable` element.
1475
+ *
1476
+ * @param host The `Attachable` element.
1477
+ * @param onControlChange A callback with two parameters for the previous and
1478
+ * next control. An `Attachable` element may perform setup or teardown
1479
+ * logic whenever the control changes.
1480
+ */
1481
+ constructor(host, onControlChange) {
1482
+ this.host = host;
1483
+ this.onControlChange = onControlChange;
1484
+ this.currentControl = null;
1485
+ host.addController(this);
1486
+ host[ATTACHABLE_CONTROLLER] = this;
1487
+ }
1488
+ attach(control) {
1489
+ if (control === this.currentControl) return;
1490
+ this.setCurrentControl(control);
1491
+ this.host.removeAttribute("for");
1492
+ }
1493
+ detach() {
1494
+ this.setCurrentControl(null);
1495
+ this.host.setAttribute("for", "");
1496
+ }
1497
+ /** @private */
1498
+ hostConnected() {
1499
+ this.setCurrentControl(this.control);
1500
+ }
1501
+ /** @private */
1502
+ hostDisconnected() {
1503
+ this.setCurrentControl(null);
1504
+ }
1505
+ setCurrentControl(control) {
1506
+ this.onControlChange(this.currentControl, control);
1507
+ this.currentControl = control;
1508
+ }
1509
+ };
1510
+ /**
1511
+ * @license
1512
+ * Copyright 2021 Google LLC
1513
+ * SPDX-License-Identifier: Apache-2.0
1514
+ */
1515
+ /**
1516
+ * A focus ring component.
1517
+ *
1518
+ * @fires visibility-changed {Event} Fired whenever `visible` changes.
1519
+ */
1520
+ var FocusRing = class extends i$2 {
1521
+ constructor() {
1522
+ super(...arguments);
1523
+ /**
1524
+ * Makes the focus ring visible.
1525
+ */
1526
+ this.visible = false;
1527
+ /**
1528
+ * Makes the focus ring animate inwards instead of outwards.
1529
+ */
1530
+ this.inward = false;
1531
+ this.attachableController = new AttachableController(this, this.onControlChange.bind(this));
1532
+ }
1533
+ get htmlFor() {
1534
+ return this.attachableController.htmlFor;
1535
+ }
1536
+ set htmlFor(htmlFor) {
1537
+ this.attachableController.htmlFor = htmlFor;
1538
+ }
1539
+ get control() {
1540
+ return this.attachableController.control;
1541
+ }
1542
+ set control(control) {
1543
+ this.attachableController.control = control;
1544
+ }
1545
+ attach(control) {
1546
+ this.attachableController.attach(control);
1547
+ }
1548
+ detach() {
1549
+ this.attachableController.detach();
1550
+ }
1551
+ connectedCallback() {
1552
+ super.connectedCallback();
1553
+ this.setAttribute("aria-hidden", "true");
1554
+ }
1555
+ /** @private */
1556
+ handleEvent(event) {
1557
+ if (event[HANDLED_BY_FOCUS_RING]) return;
1558
+ switch (event.type) {
1559
+ default: return;
1560
+ case "focusin":
1561
+ this.visible = this.control?.matches(":focus-visible") ?? false;
1562
+ break;
1563
+ case "focusout":
1564
+ case "pointerdown": this.visible = false;
1565
+ }
1566
+ event[HANDLED_BY_FOCUS_RING] = true;
1567
+ }
1568
+ onControlChange(prev, next) {}
1569
+ update(changed) {
1570
+ if (changed.has("visible")) this.dispatchEvent(new Event("visibility-changed"));
1571
+ super.update(changed);
1572
+ }
1573
+ };
1574
+ __decorate([n$2({
1575
+ type: Boolean,
1576
+ reflect: true
1577
+ })], FocusRing.prototype, "visible", void 0);
1578
+ __decorate([n$2({
1579
+ type: Boolean,
1580
+ reflect: true
1581
+ })], FocusRing.prototype, "inward", void 0);
1582
+ var HANDLED_BY_FOCUS_RING = Symbol("handledByFocusRing");
1583
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/focus/internal/focus-ring-styles.cssresult.js
1584
+ /**
1585
+ * @license
1586
+ * Copyright 2026 Google LLC
1587
+ * SPDX-License-Identifier: Apache-2.0
1588
+ */
1589
+ var styles$3 = i$4`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
1590
+ `;
1591
+ styles$3.styleSheet;
1592
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/focus/md-focus-ring.js
1593
+ /**
1594
+ * @license
1595
+ * Copyright 2021 Google LLC
1596
+ * SPDX-License-Identifier: Apache-2.0
1597
+ */
1598
+ /**
1599
+ * TODO(b/267336424): add docs
1600
+ *
1601
+ * @final
1602
+ * @suppress {visibility}
1603
+ */
1604
+ var MdFocusRing = class MdFocusRing extends FocusRing {};
1605
+ MdFocusRing.styles = [styles$3];
1606
+ MdFocusRing = __decorate([t$3("md-focus-ring")], MdFocusRing);
1607
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/directive.js
1608
+ /**
1609
+ * @license
1610
+ * Copyright 2017 Google LLC
1611
+ * SPDX-License-Identifier: BSD-3-Clause
1612
+ */
1613
+ var t = {
1614
+ ATTRIBUTE: 1,
1615
+ CHILD: 2,
1616
+ PROPERTY: 3,
1617
+ BOOLEAN_ATTRIBUTE: 4,
1618
+ EVENT: 5,
1619
+ ELEMENT: 6
1620
+ };
1621
+ var e$1 = (t) => (...e) => ({
1622
+ _$litDirective$: t,
1623
+ values: e
1624
+ });
1625
+ var i$1 = class {
1626
+ constructor(t) {}
1627
+ get _$AU() {
1628
+ return this._$AM._$AU;
1629
+ }
1630
+ _$AT(t, e, i) {
1631
+ this._$Ct = t, this._$AM = e, this._$Ci = i;
1632
+ }
1633
+ _$AS(t, e) {
1634
+ return this.update(t, e);
1635
+ }
1636
+ update(t, e) {
1637
+ return this.render(...e);
1638
+ }
1639
+ };
1640
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/directives/class-map.js
1641
+ /**
1642
+ * @license
1643
+ * Copyright 2018 Google LLC
1644
+ * SPDX-License-Identifier: BSD-3-Clause
1645
+ */ var e = e$1(class extends i$1 {
1646
+ constructor(t$4) {
1647
+ if (super(t$4), t$4.type !== t.ATTRIBUTE || "class" !== t$4.name || t$4.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1648
+ }
1649
+ render(t) {
1650
+ return " " + Object.keys(t).filter((s) => t[s]).join(" ") + " ";
1651
+ }
1652
+ update(s, [i]) {
1653
+ if (void 0 === this.st) {
1654
+ this.st = /* @__PURE__ */ new Set(), void 0 !== s.strings && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((t) => "" !== t)));
1655
+ for (const t in i) i[t] && !this.nt?.has(t) && this.st.add(t);
1656
+ return this.render(i);
1657
+ }
1658
+ const r = s.element.classList;
1659
+ for (const t of this.st) t in i || (r.remove(t), this.st.delete(t));
1660
+ for (const t in i) {
1661
+ const s = !!i[t];
1662
+ s === this.st.has(t) || this.nt?.has(t) || (s ? (r.add(t), this.st.add(t)) : (r.remove(t), this.st.delete(t)));
1663
+ }
1664
+ return E;
1665
+ }
1666
+ });
1667
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/motion/animation.js
1668
+ /**
1669
+ * @license
1670
+ * Copyright 2021 Google LLC
1671
+ * SPDX-License-Identifier: Apache-2.0
1672
+ */
1673
+ /**
1674
+ * Easing functions to use for web animations.
1675
+ *
1676
+ * **NOTE:** `EASING.EMPHASIZED` is approximated with unknown accuracy.
1677
+ *
1678
+ * TODO(b/241113345): replace with tokens
1679
+ */
1680
+ var EASING = {
1681
+ STANDARD: "cubic-bezier(0.2, 0, 0, 1)",
1682
+ STANDARD_ACCELERATE: "cubic-bezier(.3,0,1,1)",
1683
+ STANDARD_DECELERATE: "cubic-bezier(0,0,0,1)",
1684
+ EMPHASIZED: "cubic-bezier(.3,0,0,1)",
1685
+ EMPHASIZED_ACCELERATE: "cubic-bezier(.3,0,.8,.15)",
1686
+ EMPHASIZED_DECELERATE: "cubic-bezier(.05,.7,.1,1)"
1687
+ };
1688
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/ripple/internal/ripple.js
1689
+ /**
1690
+ * @license
1691
+ * Copyright 2022 Google LLC
1692
+ * SPDX-License-Identifier: Apache-2.0
1693
+ */
1694
+ var PRESS_GROW_MS = 450;
1695
+ var MINIMUM_PRESS_MS = 225;
1696
+ var INITIAL_ORIGIN_SCALE = .2;
1697
+ var PADDING = 10;
1698
+ var SOFT_EDGE_MINIMUM_SIZE = 75;
1699
+ var SOFT_EDGE_CONTAINER_RATIO = .35;
1700
+ var PRESS_PSEUDO = "::after";
1701
+ var ANIMATION_FILL = "forwards";
1702
+ /**
1703
+ * Interaction states for the ripple.
1704
+ *
1705
+ * On Touch:
1706
+ * - `INACTIVE -> TOUCH_DELAY -> WAITING_FOR_CLICK -> INACTIVE`
1707
+ * - `INACTIVE -> TOUCH_DELAY -> HOLDING -> WAITING_FOR_CLICK -> INACTIVE`
1708
+ *
1709
+ * On Mouse or Pen:
1710
+ * - `INACTIVE -> WAITING_FOR_CLICK -> INACTIVE`
1711
+ */
1712
+ var State;
1713
+ (function(State) {
1714
+ /**
1715
+ * Initial state of the control, no touch in progress.
1716
+ *
1717
+ * Transitions:
1718
+ * - on touch down: transition to `TOUCH_DELAY`.
1719
+ * - on mouse down: transition to `WAITING_FOR_CLICK`.
1720
+ */
1721
+ State[State["INACTIVE"] = 0] = "INACTIVE";
1722
+ /**
1723
+ * Touch down has been received, waiting to determine if it's a swipe or
1724
+ * scroll.
1725
+ *
1726
+ * Transitions:
1727
+ * - on touch up: begin press; transition to `WAITING_FOR_CLICK`.
1728
+ * - on cancel: transition to `INACTIVE`.
1729
+ * - after `TOUCH_DELAY_MS`: begin press; transition to `HOLDING`.
1730
+ */
1731
+ State[State["TOUCH_DELAY"] = 1] = "TOUCH_DELAY";
1732
+ /**
1733
+ * A touch has been deemed to be a press
1734
+ *
1735
+ * Transitions:
1736
+ * - on up: transition to `WAITING_FOR_CLICK`.
1737
+ */
1738
+ State[State["HOLDING"] = 2] = "HOLDING";
1739
+ /**
1740
+ * The user touch has finished, transition into rest state.
1741
+ *
1742
+ * Transitions:
1743
+ * - on click end press; transition to `INACTIVE`.
1744
+ */
1745
+ State[State["WAITING_FOR_CLICK"] = 3] = "WAITING_FOR_CLICK";
1746
+ })(State || (State = {}));
1747
+ /**
1748
+ * Delay reacting to touch so that we do not show the ripple for a swipe or
1749
+ * scroll interaction.
1750
+ */
1751
+ var TOUCH_DELAY_MS = 150;
1752
+ /**
1753
+ * Used to detect if HCM is active. Events do not process during HCM when the
1754
+ * ripple is not displayed.
1755
+ */
1756
+ var FORCED_COLORS = null;
1757
+ /**
1758
+ * A ripple component.
1759
+ */
1760
+ var Ripple = class extends i$2 {
1761
+ constructor() {
1762
+ super(...arguments);
1763
+ /**
1764
+ * Disables the ripple.
1765
+ */
1766
+ this.disabled = false;
1767
+ this.hovered = false;
1768
+ this.pressed = false;
1769
+ this.rippleSize = "";
1770
+ this.rippleScale = "";
1771
+ this.initialSize = 0;
1772
+ this.state = State.INACTIVE;
1773
+ this.attachableController = new AttachableController(this, this.onControlChange.bind(this));
1774
+ }
1775
+ get htmlFor() {
1776
+ return this.attachableController.htmlFor;
1777
+ }
1778
+ set htmlFor(htmlFor) {
1779
+ this.attachableController.htmlFor = htmlFor;
1780
+ }
1781
+ get control() {
1782
+ return this.attachableController.control;
1783
+ }
1784
+ set control(control) {
1785
+ this.attachableController.control = control;
1786
+ }
1787
+ attach(control) {
1788
+ this.attachableController.attach(control);
1789
+ }
1790
+ detach() {
1791
+ this.attachableController.detach();
1792
+ }
1793
+ connectedCallback() {
1794
+ super.connectedCallback();
1795
+ this.setAttribute("aria-hidden", "true");
1796
+ }
1797
+ render() {
1798
+ return T`<div class="surface ${e({
1799
+ "hovered": this.hovered,
1800
+ "pressed": this.pressed
1801
+ })}"></div>`;
1802
+ }
1803
+ update(changedProps) {
1804
+ if (changedProps.has("disabled") && this.disabled) {
1805
+ this.hovered = false;
1806
+ this.pressed = false;
1807
+ }
1808
+ super.update(changedProps);
1809
+ }
1810
+ /**
1811
+ * TODO(b/269799771): make private
1812
+ * @private only public for slider
1813
+ */
1814
+ handlePointerenter(event) {
1815
+ if (!this.shouldReactToEvent(event)) return;
1816
+ this.hovered = true;
1817
+ }
1818
+ /**
1819
+ * TODO(b/269799771): make private
1820
+ * @private only public for slider
1821
+ */
1822
+ handlePointerleave(event) {
1823
+ if (!this.shouldReactToEvent(event)) return;
1824
+ this.hovered = false;
1825
+ if (this.state !== State.INACTIVE) this.endPressAnimation();
1826
+ }
1827
+ handlePointerup(event) {
1828
+ if (!this.shouldReactToEvent(event)) return;
1829
+ if (this.state === State.HOLDING) {
1830
+ this.state = State.WAITING_FOR_CLICK;
1831
+ return;
1832
+ }
1833
+ if (this.state === State.TOUCH_DELAY) {
1834
+ this.state = State.WAITING_FOR_CLICK;
1835
+ this.startPressAnimation(this.rippleStartEvent);
1836
+ return;
1837
+ }
1838
+ }
1839
+ async handlePointerdown(event) {
1840
+ if (!this.shouldReactToEvent(event)) return;
1841
+ this.rippleStartEvent = event;
1842
+ if (!this.isTouch(event)) {
1843
+ this.state = State.WAITING_FOR_CLICK;
1844
+ this.startPressAnimation(event);
1845
+ return;
1846
+ }
1847
+ this.state = State.TOUCH_DELAY;
1848
+ await new Promise((resolve) => {
1849
+ setTimeout(resolve, TOUCH_DELAY_MS);
1850
+ });
1851
+ if (this.state !== State.TOUCH_DELAY) return;
1852
+ this.state = State.HOLDING;
1853
+ this.startPressAnimation(event);
1854
+ }
1855
+ handleClick() {
1856
+ if (this.disabled) return;
1857
+ if (this.state === State.WAITING_FOR_CLICK) {
1858
+ this.endPressAnimation();
1859
+ return;
1860
+ }
1861
+ if (this.state === State.INACTIVE) {
1862
+ this.startPressAnimation();
1863
+ this.endPressAnimation();
1864
+ }
1865
+ }
1866
+ handlePointercancel(event) {
1867
+ if (!this.shouldReactToEvent(event)) return;
1868
+ this.endPressAnimation();
1869
+ }
1870
+ handleContextmenu() {
1871
+ if (this.disabled) return;
1872
+ this.endPressAnimation();
1873
+ }
1874
+ determineRippleSize() {
1875
+ const { height, width } = this.getBoundingClientRect();
1876
+ const maxDim = Math.max(height, width);
1877
+ const softEdgeSize = Math.max(SOFT_EDGE_CONTAINER_RATIO * maxDim, SOFT_EDGE_MINIMUM_SIZE);
1878
+ const zoom = this.currentCSSZoom ?? 1;
1879
+ const initialSize = Math.floor(maxDim * INITIAL_ORIGIN_SCALE / zoom);
1880
+ const maxRadius = Math.sqrt(width ** 2 + height ** 2) + PADDING;
1881
+ this.initialSize = initialSize;
1882
+ const maybeZoomedScale = (maxRadius + softEdgeSize) / initialSize;
1883
+ this.rippleScale = `${maybeZoomedScale / zoom}`;
1884
+ this.rippleSize = `${initialSize}px`;
1885
+ }
1886
+ getNormalizedPointerEventCoords(pointerEvent) {
1887
+ const { scrollX, scrollY } = window;
1888
+ const { left, top } = this.getBoundingClientRect();
1889
+ const documentX = scrollX + left;
1890
+ const documentY = scrollY + top;
1891
+ const { pageX, pageY } = pointerEvent;
1892
+ const zoom = this.currentCSSZoom ?? 1;
1893
+ return {
1894
+ x: (pageX - documentX) / zoom,
1895
+ y: (pageY - documentY) / zoom
1896
+ };
1897
+ }
1898
+ getTranslationCoordinates(positionEvent) {
1899
+ const { height, width } = this.getBoundingClientRect();
1900
+ const zoom = this.currentCSSZoom ?? 1;
1901
+ const endPoint = {
1902
+ x: (width / zoom - this.initialSize) / 2,
1903
+ y: (height / zoom - this.initialSize) / 2
1904
+ };
1905
+ let startPoint;
1906
+ if (positionEvent instanceof PointerEvent) startPoint = this.getNormalizedPointerEventCoords(positionEvent);
1907
+ else startPoint = {
1908
+ x: width / zoom / 2,
1909
+ y: height / zoom / 2
1910
+ };
1911
+ startPoint = {
1912
+ x: startPoint.x - this.initialSize / 2,
1913
+ y: startPoint.y - this.initialSize / 2
1914
+ };
1915
+ return {
1916
+ startPoint,
1917
+ endPoint
1918
+ };
1919
+ }
1920
+ startPressAnimation(positionEvent) {
1921
+ if (!this.mdRoot) return;
1922
+ this.pressed = true;
1923
+ this.growAnimation?.cancel();
1924
+ this.determineRippleSize();
1925
+ const { startPoint, endPoint } = this.getTranslationCoordinates(positionEvent);
1926
+ const translateStart = `${startPoint.x}px, ${startPoint.y}px`;
1927
+ const translateEnd = `${endPoint.x}px, ${endPoint.y}px`;
1928
+ this.growAnimation = this.mdRoot.animate({
1929
+ top: [0, 0],
1930
+ left: [0, 0],
1931
+ height: [this.rippleSize, this.rippleSize],
1932
+ width: [this.rippleSize, this.rippleSize],
1933
+ transform: [`translate(${translateStart}) scale(1)`, `translate(${translateEnd}) scale(${this.rippleScale})`]
1934
+ }, {
1935
+ pseudoElement: PRESS_PSEUDO,
1936
+ duration: PRESS_GROW_MS,
1937
+ easing: EASING.STANDARD,
1938
+ fill: ANIMATION_FILL
1939
+ });
1940
+ }
1941
+ async endPressAnimation() {
1942
+ this.rippleStartEvent = void 0;
1943
+ this.state = State.INACTIVE;
1944
+ const animation = this.growAnimation;
1945
+ let pressAnimationPlayState = Infinity;
1946
+ if (typeof animation?.currentTime === "number") pressAnimationPlayState = animation.currentTime;
1947
+ else if (animation?.currentTime) pressAnimationPlayState = animation.currentTime.to("ms").value;
1948
+ if (pressAnimationPlayState >= MINIMUM_PRESS_MS) {
1949
+ this.pressed = false;
1950
+ return;
1951
+ }
1952
+ await new Promise((resolve) => {
1953
+ setTimeout(resolve, MINIMUM_PRESS_MS - pressAnimationPlayState);
1954
+ });
1955
+ if (this.growAnimation !== animation) return;
1956
+ this.pressed = false;
1957
+ }
1958
+ /**
1959
+ * Returns `true` if
1960
+ * - the ripple element is enabled
1961
+ * - the pointer is primary for the input type
1962
+ * - the pointer is the pointer that started the interaction, or will start
1963
+ * the interaction
1964
+ * - the pointer is a touch, or the pointer state has the primary button
1965
+ * held, or the pointer is hovering
1966
+ */
1967
+ shouldReactToEvent(event) {
1968
+ if (this.disabled || !event.isPrimary) return false;
1969
+ if (this.rippleStartEvent && this.rippleStartEvent.pointerId !== event.pointerId) return false;
1970
+ if (event.type === "pointerenter" || event.type === "pointerleave") return !this.isTouch(event);
1971
+ const isPrimaryButton = event.buttons === 1;
1972
+ return this.isTouch(event) || isPrimaryButton;
1973
+ }
1974
+ isTouch({ pointerType }) {
1975
+ return pointerType === "touch";
1976
+ }
1977
+ /** @private */
1978
+ async handleEvent(event) {
1979
+ if (FORCED_COLORS?.matches) return;
1980
+ switch (event.type) {
1981
+ case "click":
1982
+ this.handleClick();
1983
+ break;
1984
+ case "contextmenu":
1985
+ this.handleContextmenu();
1986
+ break;
1987
+ case "pointercancel":
1988
+ this.handlePointercancel(event);
1989
+ break;
1990
+ case "pointerdown":
1991
+ await this.handlePointerdown(event);
1992
+ break;
1993
+ case "pointerenter":
1994
+ this.handlePointerenter(event);
1995
+ break;
1996
+ case "pointerleave":
1997
+ this.handlePointerleave(event);
1998
+ break;
1999
+ case "pointerup": this.handlePointerup(event);
2000
+ }
2001
+ }
2002
+ onControlChange(prev, next) {}
2003
+ };
2004
+ __decorate([n$2({
2005
+ type: Boolean,
2006
+ reflect: true
2007
+ })], Ripple.prototype, "disabled", void 0);
2008
+ __decorate([r$1()], Ripple.prototype, "hovered", void 0);
2009
+ __decorate([r$1()], Ripple.prototype, "pressed", void 0);
2010
+ __decorate([e$3(".surface")], Ripple.prototype, "mdRoot", void 0);
2011
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/ripple/internal/ripple-styles.cssresult.js
2012
+ /**
2013
+ * @license
2014
+ * Copyright 2026 Google LLC
2015
+ * SPDX-License-Identifier: Apache-2.0
2016
+ */
2017
+ var styles$2 = i$4`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
2018
+ `;
2019
+ styles$2.styleSheet;
2020
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/ripple/ripple.js
2021
+ /**
2022
+ * @license
2023
+ * Copyright 2022 Google LLC
2024
+ * SPDX-License-Identifier: Apache-2.0
2025
+ */
2026
+ /**
2027
+ * @summary Ripples, also known as state layers, are visual indicators used to
2028
+ * communicate the status of a component or interactive element.
2029
+ *
2030
+ * @description A state layer is a semi-transparent covering on an element that
2031
+ * indicates its state. State layers provide a systematic approach to
2032
+ * visualizing states by using opacity. A layer can be applied to an entire
2033
+ * element or in a circular shape and only one state layer can be applied at a
2034
+ * given time.
2035
+ *
2036
+ * @final
2037
+ * @suppress {visibility}
2038
+ */
2039
+ var MdRipple = class MdRipple extends Ripple {};
2040
+ MdRipple.styles = [styles$2];
2041
+ MdRipple = __decorate([t$3("md-ripple")], MdRipple);
2042
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/static.js
2043
+ /**
2044
+ * @license
2045
+ * Copyright 2020 Google LLC
2046
+ * SPDX-License-Identifier: BSD-3-Clause
2047
+ */
2048
+ var a = Symbol.for("");
2049
+ var o = (t) => {
2050
+ if (t?.r === a) return t?._$litStatic$;
2051
+ };
2052
+ var i = (t, ...r) => ({
2053
+ _$litStatic$: r.reduce((r, e, a) => r + ((t) => {
2054
+ if (void 0 !== t._$litStatic$) return t._$litStatic$;
2055
+ throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`);
2056
+ })(e) + t[a + 1], t[0]),
2057
+ r: a
2058
+ });
2059
+ var l = /* @__PURE__ */ new Map();
2060
+ var n = (t) => (r, ...e) => {
2061
+ const a = e.length;
2062
+ let s, i;
2063
+ const n = [], u = [];
2064
+ let c, $ = 0, f = !1;
2065
+ for (; $ < a;) {
2066
+ for (c = r[$]; $ < a && void 0 !== (i = e[$], s = o(i));) c += s + r[++$], f = !0;
2067
+ $ !== a && u.push(i), n.push(c), $++;
2068
+ }
2069
+ if ($ === a && n.push(r[a]), f) {
2070
+ const t = n.join("$$lit$$");
2071
+ void 0 === (r = l.get(t)) && (n.raw = n, l.set(t, r = n)), e = u;
2072
+ }
2073
+ return t(r, ...e);
2074
+ };
2075
+ var u = n(T);
2076
+ /**
2077
+ * @license
2078
+ * Copyright 2023 Google LLC
2079
+ * SPDX-License-Identifier: Apache-2.0
2080
+ */
2081
+ [
2082
+ "role",
2083
+ "ariaAtomic",
2084
+ "ariaAutoComplete",
2085
+ "ariaBusy",
2086
+ "ariaChecked",
2087
+ "ariaColCount",
2088
+ "ariaColIndex",
2089
+ "ariaColSpan",
2090
+ "ariaCurrent",
2091
+ "ariaDisabled",
2092
+ "ariaExpanded",
2093
+ "ariaHasPopup",
2094
+ "ariaHidden",
2095
+ "ariaInvalid",
2096
+ "ariaKeyShortcuts",
2097
+ "ariaLabel",
2098
+ "ariaLevel",
2099
+ "ariaLive",
2100
+ "ariaModal",
2101
+ "ariaMultiLine",
2102
+ "ariaMultiSelectable",
2103
+ "ariaOrientation",
2104
+ "ariaPlaceholder",
2105
+ "ariaPosInSet",
2106
+ "ariaPressed",
2107
+ "ariaReadOnly",
2108
+ "ariaRequired",
2109
+ "ariaRoleDescription",
2110
+ "ariaRowCount",
2111
+ "ariaRowIndex",
2112
+ "ariaRowSpan",
2113
+ "ariaSelected",
2114
+ "ariaSetSize",
2115
+ "ariaSort",
2116
+ "ariaValueMax",
2117
+ "ariaValueMin",
2118
+ "ariaValueNow",
2119
+ "ariaValueText"
2120
+ ].map(ariaPropertyToAttribute);
2121
+ /**
2122
+ * Converts an AOM aria property into its corresponding attribute.
2123
+ *
2124
+ * @example
2125
+ * ariaPropertyToAttribute('ariaLabel'); // 'aria-label'
2126
+ *
2127
+ * @param property The aria property.
2128
+ * @return The aria attribute.
2129
+ */
2130
+ function ariaPropertyToAttribute(property) {
2131
+ return property.replace("aria", "aria-").replace(/Elements?/g, "").toLowerCase();
2132
+ }
2133
+ /**
2134
+ * @license
2135
+ * Copyright 2023 Google LLC
2136
+ * SPDX-License-Identifier: Apache-2.0
2137
+ */
2138
+ /**
2139
+ * Mixes in aria delegation for elements that delegate focus and aria to inner
2140
+ * shadow root elements.
2141
+ *
2142
+ * This mixin fixes invalid aria announcements with shadow roots, caused by
2143
+ * duplicate aria attributes on both the host and the inner shadow root element.
2144
+ *
2145
+ * Note: this mixin **does not yet support** ID reference attributes, such as
2146
+ * `aria-labelledby` or `aria-controls`.
2147
+ *
2148
+ * @example
2149
+ * ```ts
2150
+ * class MyButton extends mixinDelegatesAria(LitElement) {
2151
+ * static shadowRootOptions = {mode: 'open', delegatesFocus: true};
2152
+ *
2153
+ * render() {
2154
+ * return html`
2155
+ * <button aria-label=${this.ariaLabel || nothing}>
2156
+ * <slot></slot>
2157
+ * </button>
2158
+ * `;
2159
+ * }
2160
+ * }
2161
+ * ```
2162
+ * ```html
2163
+ * <my-button aria-label="Plus one">+1</my-button>
2164
+ * ```
2165
+ *
2166
+ * Use `ARIAMixinStrict` for lit analyzer strict types, such as the "role"
2167
+ * attribute.
2168
+ *
2169
+ * @example
2170
+ * ```ts
2171
+ * return html`
2172
+ * <button role=${(this as ARIAMixinStrict).role || nothing}>
2173
+ * <slot></slot>
2174
+ * </button>
2175
+ * `;
2176
+ * ```
2177
+ *
2178
+ * In the future, updates to the Accessibility Object Model (AOM) will provide
2179
+ * built-in aria delegation features that will replace this mixin.
2180
+ *
2181
+ * @param base The class to mix functionality into.
2182
+ * @return The provided class with aria delegation mixed in.
2183
+ */
2184
+ function mixinDelegatesAria(base) {
2185
+ return base;
2186
+ }
2187
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/controller/is-rtl.js
2188
+ /**
2189
+ * @license
2190
+ * Copyright 2022 Google LLC
2191
+ * SPDX-License-Identifier: Apache-2.0
2192
+ */
2193
+ /**
2194
+ * Returns `true` if the given element is in a right-to-left direction.
2195
+ *
2196
+ * @param el Element to determine direction from
2197
+ * @param shouldCheck Optional. If `false`, return `false` without checking
2198
+ * direction. Determining the direction of `el` is somewhat expensive, so
2199
+ * this parameter can be used as a conditional guard. Defaults to `true`.
2200
+ */
2201
+ function isRtl(el, shouldCheck = true) {
2202
+ return shouldCheck && getComputedStyle(el).getPropertyValue("direction").trim() === "rtl";
2203
+ }
2204
+ /**
2205
+ * @license
2206
+ * Copyright 2023 Google LLC
2207
+ * SPDX-License-Identifier: Apache-2.0
2208
+ */
2209
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/element-internals.js
2210
+ /**
2211
+ * @license
2212
+ * Copyright 2023 Google LLC
2213
+ * SPDX-License-Identifier: Apache-2.0
2214
+ */
2215
+ /**
2216
+ * A unique symbol used for protected access to an instance's
2217
+ * `ElementInternals`.
2218
+ *
2219
+ * @example
2220
+ * ```ts
2221
+ * class MyElement extends mixinElementInternals(LitElement) {
2222
+ * constructor() {
2223
+ * super();
2224
+ * this[internals].role = 'button';
2225
+ * }
2226
+ * }
2227
+ * ```
2228
+ */
2229
+ var internals = Symbol("internals");
2230
+ var privateInternals = Symbol("privateInternals");
2231
+ /**
2232
+ * Mixes in an attached `ElementInternals` instance.
2233
+ *
2234
+ * This mixin is only needed when other shared code needs access to a
2235
+ * component's `ElementInternals`, such as form-associated mixins.
2236
+ *
2237
+ * @param base The class to mix functionality into.
2238
+ * @return The provided class with `WithElementInternals` mixed in.
2239
+ */
2240
+ function mixinElementInternals(base) {
2241
+ class WithElementInternalsElement extends base {
2242
+ get [internals]() {
2243
+ if (!this[privateInternals]) this[privateInternals] = this.attachInternals();
2244
+ return this[privateInternals];
2245
+ }
2246
+ }
2247
+ return WithElementInternalsElement;
2248
+ }
2249
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/form-associated.js
2250
+ /**
2251
+ * @license
2252
+ * Copyright 2023 Google LLC
2253
+ * SPDX-License-Identifier: Apache-2.0
2254
+ */
2255
+ /**
2256
+ * A symbol property to retrieve the form value for an element.
2257
+ */
2258
+ var getFormValue = Symbol("getFormValue");
2259
+ /**
2260
+ * A symbol property to retrieve the form state for an element.
2261
+ */
2262
+ var getFormState = Symbol("getFormState");
2263
+ /**
2264
+ * Mixes in form-associated behavior for a class. This allows an element to add
2265
+ * values to `<form>` elements.
2266
+ *
2267
+ * Implementing classes should provide a `[formValue]` to return the current
2268
+ * value of the element, as well as reset and restore callbacks.
2269
+ *
2270
+ * @example
2271
+ * ```ts
2272
+ * const base = mixinFormAssociated(mixinElementInternals(LitElement));
2273
+ *
2274
+ * class MyControl extends base {
2275
+ * \@property()
2276
+ * value = '';
2277
+ *
2278
+ * override [getFormValue]() {
2279
+ * return this.value;
2280
+ * }
2281
+ *
2282
+ * override formResetCallback() {
2283
+ * const defaultValue = this.getAttribute('value');
2284
+ * this.value = defaultValue;
2285
+ * }
2286
+ *
2287
+ * override formStateRestoreCallback(state: string) {
2288
+ * this.value = state;
2289
+ * }
2290
+ * }
2291
+ * ```
2292
+ *
2293
+ * Elements may optionally provide a `[formState]` if their values do not
2294
+ * represent the state of the component.
2295
+ *
2296
+ * @example
2297
+ * ```ts
2298
+ * const base = mixinFormAssociated(mixinElementInternals(LitElement));
2299
+ *
2300
+ * class MyCheckbox extends base {
2301
+ * \@property()
2302
+ * value = 'on';
2303
+ *
2304
+ * \@property({type: Boolean})
2305
+ * checked = false;
2306
+ *
2307
+ * override [getFormValue]() {
2308
+ * return this.checked ? this.value : null;
2309
+ * }
2310
+ *
2311
+ * override [getFormState]() {
2312
+ * return String(this.checked);
2313
+ * }
2314
+ *
2315
+ * override formResetCallback() {
2316
+ * const defaultValue = this.hasAttribute('checked');
2317
+ * this.checked = defaultValue;
2318
+ * }
2319
+ *
2320
+ * override formStateRestoreCallback(state: string) {
2321
+ * this.checked = Boolean(state);
2322
+ * }
2323
+ * }
2324
+ * ```
2325
+ *
2326
+ * @param base The class to mix functionality into. The base class must use
2327
+ * `mixinElementInternals()`.
2328
+ * @return The provided class with `FormAssociated` mixed in.
2329
+ */
2330
+ function mixinFormAssociated(base) {
2331
+ class FormAssociatedElement extends base {
2332
+ get form() {
2333
+ return this[internals].form;
2334
+ }
2335
+ get labels() {
2336
+ return this[internals].labels;
2337
+ }
2338
+ get name() {
2339
+ return this.getAttribute("name") ?? "";
2340
+ }
2341
+ set name(name) {
2342
+ this.setAttribute("name", name);
2343
+ }
2344
+ get disabled() {
2345
+ return this.hasAttribute("disabled");
2346
+ }
2347
+ set disabled(disabled) {
2348
+ this.toggleAttribute("disabled", Boolean(disabled));
2349
+ }
2350
+ attributeChangedCallback(name, old, value) {
2351
+ if (name === "name" || name === "disabled") {
2352
+ const oldValue = name === "disabled" ? old !== null : old;
2353
+ this.requestUpdate(name, oldValue);
2354
+ return;
2355
+ }
2356
+ super.attributeChangedCallback(name, old, value);
2357
+ }
2358
+ requestUpdate(name, oldValue, options) {
2359
+ super.requestUpdate(name, oldValue, options);
2360
+ this[internals].setFormValue(this[getFormValue](), this[getFormState]());
2361
+ }
2362
+ [getFormValue]() {
2363
+ return this.getAttribute("value");
2364
+ }
2365
+ [getFormState]() {
2366
+ return this[getFormValue]();
2367
+ }
2368
+ formDisabledCallback(disabled) {
2369
+ this.disabled = disabled;
2370
+ }
2371
+ }
2372
+ /** @nocollapse */
2373
+ FormAssociatedElement.formAssociated = true;
2374
+ __decorate([n$2({ noAccessor: true })], FormAssociatedElement.prototype, "name", null);
2375
+ __decorate([n$2({
2376
+ type: Boolean,
2377
+ noAccessor: true
2378
+ })], FormAssociatedElement.prototype, "disabled", null);
2379
+ return FormAssociatedElement;
2380
+ }
2381
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/form-submitter.js
2382
+ /**
2383
+ * @license
2384
+ * Copyright 2023 Google LLC
2385
+ * SPDX-License-Identifier: Apache-2.0
2386
+ */
2387
+ /**
2388
+ * Mixes in form submitter behavior for a class.
2389
+ *
2390
+ * A click listener is added to each element instance. If the click is not
2391
+ * default prevented, it will submit the element's form, if any.
2392
+ *
2393
+ * @example
2394
+ * ```ts
2395
+ * const base = mixinFormSubmitter(mixinElementInternals(LitElement));
2396
+ * class MyButton extends base {
2397
+ * static formAssociated = true;
2398
+ * }
2399
+ * ```
2400
+ *
2401
+ * @param base The class to mix functionality into.
2402
+ * @return The provided class with `FormSubmitter` mixed in.
2403
+ */
2404
+ function mixinFormSubmitter(base) {
2405
+ class FormSubmitterElement extends base {
2406
+ get name() {
2407
+ return this.getAttribute("name") ?? "";
2408
+ }
2409
+ set name(name) {
2410
+ this.setAttribute("name", name);
2411
+ }
2412
+ constructor(...args) {
2413
+ super(...args);
2414
+ this.type = "submit";
2415
+ this.value = "";
2416
+ }
2417
+ }
2418
+ __decorate([n$2()], FormSubmitterElement.prototype, "type", void 0);
2419
+ __decorate([n$2({ reflect: true })], FormSubmitterElement.prototype, "value", void 0);
2420
+ return FormSubmitterElement;
2421
+ }
2422
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/internal/icon-button.js
2423
+ /**
2424
+ * @license
2425
+ * Copyright 2018 Google LLC
2426
+ * SPDX-License-Identifier: Apache-2.0
2427
+ */
2428
+ var iconButtonBaseClass = mixinDelegatesAria(mixinFormSubmitter(mixinFormAssociated(mixinElementInternals(i$2))));
2429
+ /**
2430
+ * A button for rendering icons.
2431
+ *
2432
+ * @fires input {InputEvent} Dispatched when a toggle button toggles --bubbles
2433
+ * --composed
2434
+ * @fires change {Event} Dispatched when a toggle button toggles --bubbles
2435
+ */
2436
+ var IconButton = class extends iconButtonBaseClass {
2437
+ constructor() {
2438
+ super();
2439
+ /**
2440
+ * "Soft-disables" the icon button (disabled but still focusable).
2441
+ *
2442
+ * Use this when an icon button needs increased visibility when disabled. See
2443
+ * https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls
2444
+ * for more guidance on when this is needed.
2445
+ */
2446
+ this.softDisabled = false;
2447
+ /**
2448
+ * Flips the icon if it is in an RTL context at startup.
2449
+ */
2450
+ this.flipIconInRtl = false;
2451
+ /**
2452
+ * Sets the underlying `HTMLAnchorElement`'s `href` resource attribute.
2453
+ */
2454
+ this.href = "";
2455
+ /**
2456
+ * The filename to use when downloading the linked resource.
2457
+ * If not specified, the browser will determine a filename.
2458
+ * This is only applicable when the icon button is used as a link (`href` is set).
2459
+ */
2460
+ this.download = "";
2461
+ /**
2462
+ * Sets the underlying `HTMLAnchorElement`'s `target` attribute.
2463
+ */
2464
+ this.target = "";
2465
+ /**
2466
+ * The `aria-label` of the button when the button is toggleable and selected.
2467
+ */
2468
+ this.ariaLabelSelected = "";
2469
+ /**
2470
+ * When true, the button will toggle between selected and unselected
2471
+ * states
2472
+ */
2473
+ this.toggle = false;
2474
+ /**
2475
+ * Sets the selected state. When false, displays the default icon. When true,
2476
+ * displays the selected icon, or the default icon If no `slot="selected"`
2477
+ * icon is provided.
2478
+ */
2479
+ this.selected = false;
2480
+ this.flipIcon = isRtl(this, this.flipIconInRtl);
2481
+ }
2482
+ willUpdate() {
2483
+ if (this.href) {
2484
+ this.disabled = false;
2485
+ this.softDisabled = false;
2486
+ }
2487
+ }
2488
+ render() {
2489
+ const tag = this.href ? i`div` : i`button`;
2490
+ const { ariaLabel, ariaHasPopup, ariaExpanded } = this;
2491
+ const hasToggledAriaLabel = ariaLabel && this.ariaLabelSelected;
2492
+ const ariaPressedValue = !this.toggle ? A : this.selected;
2493
+ let ariaLabelValue = A;
2494
+ if (!this.href) ariaLabelValue = hasToggledAriaLabel && this.selected ? this.ariaLabelSelected : ariaLabel;
2495
+ return u`<${tag}
2496
+ class="icon-button ${e(this.getRenderClasses())}"
2497
+ id="button"
2498
+ aria-label="${ariaLabelValue || A}"
2499
+ aria-haspopup="${!this.href && ariaHasPopup || A}"
2500
+ aria-expanded="${!this.href && ariaExpanded || A}"
2501
+ aria-pressed="${ariaPressedValue}"
2502
+ aria-disabled=${!this.href && this.softDisabled || A}
2503
+ ?disabled="${!this.href && this.disabled}">
2504
+ ${this.renderFocusRing()}
2505
+ ${this.renderRipple()}
2506
+ ${!this.selected ? this.renderIcon() : A}
2507
+ ${this.selected ? this.renderSelectedIcon() : A}
2508
+ ${this.href ? this.renderLink() : this.renderTouchTarget()}
2509
+ </${tag}>`;
2510
+ }
2511
+ renderLink() {
2512
+ const { ariaLabel } = this;
2513
+ return T`
2514
+ <a
2515
+ class="link"
2516
+ id="link"
2517
+ href="${this.href}"
2518
+ download="${this.download || A}"
2519
+ target="${this.target || A}"
2520
+ aria-label="${ariaLabel || A}">
2521
+ ${this.renderTouchTarget()}
2522
+ </a>
2523
+ `;
2524
+ }
2525
+ getRenderClasses() {
2526
+ return {
2527
+ "flip-icon": this.flipIcon,
2528
+ "selected": this.toggle && this.selected
2529
+ };
2530
+ }
2531
+ renderIcon() {
2532
+ return T`<span class="icon"><slot></slot></span>`;
2533
+ }
2534
+ renderSelectedIcon() {
2535
+ return T`<span class="icon icon--selected"
2536
+ ><slot name="selected"><slot></slot></slot
2537
+ ></span>`;
2538
+ }
2539
+ renderTouchTarget() {
2540
+ return T`<span class="touch"></span>`;
2541
+ }
2542
+ renderFocusRing() {
2543
+ return T`<md-focus-ring
2544
+ part="focus-ring"
2545
+ for=${this.href ? "link" : "button"}></md-focus-ring>`;
2546
+ }
2547
+ renderRipple() {
2548
+ const isRippleDisabled = !this.href && (this.disabled || this.softDisabled);
2549
+ return T`<md-ripple
2550
+ for=${this.href ? "link" : A}
2551
+ ?disabled="${isRippleDisabled}"></md-ripple>`;
2552
+ }
2553
+ connectedCallback() {
2554
+ this.flipIcon = isRtl(this, this.flipIconInRtl);
2555
+ super.connectedCallback();
2556
+ }
2557
+ };
2558
+ /** @nocollapse */
2559
+ IconButton.shadowRootOptions = {
2560
+ mode: "open",
2561
+ delegatesFocus: true
2562
+ };
2563
+ __decorate([n$2({
2564
+ type: Boolean,
2565
+ attribute: "soft-disabled",
2566
+ reflect: true
2567
+ })], IconButton.prototype, "softDisabled", void 0);
2568
+ __decorate([n$2({
2569
+ type: Boolean,
2570
+ attribute: "flip-icon-in-rtl"
2571
+ })], IconButton.prototype, "flipIconInRtl", void 0);
2572
+ __decorate([n$2()], IconButton.prototype, "href", void 0);
2573
+ __decorate([n$2()], IconButton.prototype, "download", void 0);
2574
+ __decorate([n$2()], IconButton.prototype, "target", void 0);
2575
+ __decorate([n$2({ attribute: "aria-label-selected" })], IconButton.prototype, "ariaLabelSelected", void 0);
2576
+ __decorate([n$2({ type: Boolean })], IconButton.prototype, "toggle", void 0);
2577
+ __decorate([n$2({
2578
+ type: Boolean,
2579
+ reflect: true
2580
+ })], IconButton.prototype, "selected", void 0);
2581
+ __decorate([r$1()], IconButton.prototype, "flipIcon", void 0);
2582
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/internal/shared-styles.cssresult.js
2583
+ /**
2584
+ * @license
2585
+ * Copyright 2026 Google LLC
2586
+ * SPDX-License-Identifier: Apache-2.0
2587
+ */
2588
+ var styles$1 = i$4`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{display:grid;height:100%;outline:none;place-items:center;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1}}
2589
+ `;
2590
+ styles$1.styleSheet;
2591
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/internal/standard-styles.cssresult.js
2592
+ /**
2593
+ * @license
2594
+ * Copyright 2026 Google LLC
2595
+ * SPDX-License-Identifier: Apache-2.0
2596
+ */
2597
+ var styles = i$4`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:is(:disabled,[aria-disabled=true]){color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:is(:disabled,[aria-disabled=true]){opacity:var(--_disabled-icon-opacity)}.selected:not(:disabled,[aria-disabled=true]){color:var(--_selected-icon-color)}.selected:not(:disabled,[aria-disabled=true]):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled,[aria-disabled=true]):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled,[aria-disabled=true]):active{color:var(--_selected-pressed-icon-color)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}
2598
+ `;
2599
+ styles.styleSheet;
2600
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/icon-button.js
2601
+ /**
2602
+ * @license
2603
+ * Copyright 2021 Google LLC
2604
+ * SPDX-License-Identifier: Apache-2.0
2605
+ */
2606
+ /**
2607
+ * @summary Icon buttons help people take supplementary actions with a single
2608
+ * tap.
2609
+ *
2610
+ * @description
2611
+ * __Emphasis:__ Low emphasis – For optional or supplementary actions with the
2612
+ * least amount of prominence.
2613
+ *
2614
+ * __Rationale:__ The most compact and unobtrusive type of button, icon buttons
2615
+ * are used for optional supplementary actions such as "Bookmark" or "Star."
2616
+ *
2617
+ * __Example usages:__
2618
+ * - Add to Favorites
2619
+ * - Print
2620
+ *
2621
+ * @final
2622
+ * @suppress {visibility}
2623
+ */
2624
+ var MdIconButton = class MdIconButton extends IconButton {
2625
+ getRenderClasses() {
2626
+ return {
2627
+ ...super.getRenderClasses(),
2628
+ "standard": true
2629
+ };
2630
+ }
2631
+ };
2632
+ MdIconButton.styles = [styles$1, styles];
2633
+ MdIconButton = __decorate([t$3("md-icon-button")], MdIconButton);
2634
+ export { n$2 as C, __decorate as E, r$1 as S, t$3 as T, E as _, mixinElementInternals as a, e$3 as b, u as c, e$1 as d, i$1 as f, B as g, A as h, internals as i, EASING as l, i$2 as m, getFormValue as n, mixinDelegatesAria as o, t as p, mixinFormAssociated as r, i as s, mixinFormSubmitter as t, e as u, T as v, i$4 as w, e$4 as x, Z as y };
2635
+
2636
+ //# sourceMappingURL=icon-button.js.map