screenreader-speech-capture 0.3.0 → 0.4.0-fix-bundle-material-web.12

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 (54) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/assets/{0.CeDGT9MW.css → 0.Ck1JiV_4.css} +1 -1
  4. package/dist/ui/client/ui/_app/immutable/assets/0.Ck1JiV_4.css.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/{0.CeDGT9MW.css.gz → 0.Ck1JiV_4.css.gz} +0 -0
  6. package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css +1 -0
  7. package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js +37 -0
  10. package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/entry/{app.2mjWY9ga.js → app.DWG4jy_K.js} +2 -2
  13. package/dist/ui/client/ui/_app/immutable/entry/app.DWG4jy_K.js.br +0 -0
  14. package/dist/ui/client/ui/_app/immutable/entry/app.DWG4jy_K.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/nodes/{0.CQ_XophD.js → 0.BHaQjZME.js} +1 -1
  16. package/dist/ui/client/ui/_app/immutable/nodes/0.BHaQjZME.js.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/nodes/0.BHaQjZME.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/nodes/{2.BTJ1n3E7.js → 2.DnTpD-Gs.js} +66 -66
  19. package/dist/ui/client/ui/_app/immutable/nodes/2.DnTpD-Gs.js.br +0 -0
  20. package/dist/ui/client/ui/_app/immutable/nodes/2.DnTpD-Gs.js.gz +0 -0
  21. package/dist/ui/client/ui/_app/version.json +1 -1
  22. package/dist/ui/client/ui/_app/version.json.br +0 -0
  23. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  24. package/dist/ui/server/.vite/manifest.json +2 -2
  25. package/dist/ui/server/_app/immutable/assets/{_layout.CeDGT9MW.css → _layout.Ck1JiV_4.css} +1 -1
  26. package/dist/ui/server/_app/immutable/assets/_page.CnRjX9ZG.css +1 -0
  27. package/dist/ui/server/chunks/composition.js +2685 -1
  28. package/dist/ui/server/chunks/composition.js.map +1 -1
  29. package/dist/ui/server/chunks/instance.js +3 -3
  30. package/dist/ui/server/chunks/internal.js +1 -1
  31. package/dist/ui/server/entries/pages/_layout.svelte.js +1 -3
  32. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  33. package/dist/ui/server/entries/pages/_page.svelte.js +2456 -35
  34. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  35. package/dist/ui/server/manifest-full.js +1 -1
  36. package/dist/ui/server/manifest.js +1 -1
  37. package/dist/ui/server/nodes/0.js +2 -2
  38. package/dist/ui/server/nodes/2.js +2 -2
  39. package/dist/ui/server/server.js +1 -1
  40. package/package.json +1 -1
  41. package/dist/ui/client/ui/_app/immutable/assets/0.CeDGT9MW.css.br +0 -0
  42. package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css +0 -1
  43. package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css.br +0 -0
  44. package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js +0 -37
  46. package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js.br +0 -0
  47. package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js.gz +0 -0
  48. package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js.br +0 -0
  49. package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js.gz +0 -0
  50. package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js.br +0 -0
  51. package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js.gz +0 -0
  52. package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js.br +0 -0
  53. package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js.gz +0 -0
  54. package/dist/ui/server/_app/immutable/assets/_page.DJfIfRJB.css +0 -1
@@ -2,29 +2,21 @@ import { mt as resolve } from "../../chunks/internal.js";
2
2
  import { f as escape_html, i as ensure_array_like, l as attr, n as attr_style, r as derived, t as attr_class, u as clsx } from "../../chunks/server2.js";
3
3
  import { t as page } from "../../chunks/state.js";
4
4
  import { n as goto } from "../../chunks/navigation.js";
5
- import { t as sessionsStore } from "../../chunks/composition.js";
5
+ import { A as __decorate, C as Z, D as n$2, E as r$1, O as i$2, S as T, T as e$1, _ as t$2, a as mixinFormSubmitter, b as B, c as internals, d as i$5, f as u$1, g as i$4, h as e$4, k as t$1, l as mixinElementInternals, m as e$3, n as sessionsStore, o as getFormValue, p as EASING, s as mixinFormAssociated, t as sessionsPaneStore, u as mixinDelegatesAria, v as i$3, w as e$2, x as E, y as A } from "../../chunks/composition.js";
6
6
  import { c as API_LIMITS } from "../../chunks/src.js";
7
- import "@material/web/icon/icon.js";
8
- import "@material/web/iconbutton/icon-button.js";
9
- import "@material/web/button/text-button.js";
10
- import "@material/web/dialog/dialog.js";
11
- import "@material/web/ripple/ripple.js";
12
- import "@material/web/textfield/outlined-text-field.js";
13
- // src/lib/components/SessionsPane/EndSessionDialog.svelte
14
- function EndSessionDialog($$renderer, $$props) {
15
- $$renderer.component(($$renderer) => {
16
- /** The session's entry count; the bridge forgets a session that ends with none. */
17
- /** Rejects with a message to show; resolves when the session has ended. */
18
- let { open, sessionId, entries, onEnd, onClose } = $$props;
19
- const empty = derived(() => entries === 0);
20
- let busy = false;
21
- $$renderer.push(`<md-dialog${attr("open", open, true)} class="svelte-17z3k9b"><div slot="headline">${escape_html(empty() ? "Drop" : "End")} session ${escape_html(sessionId === null ? "" : `#${sessionId}`)}?</div> <div slot="content">`);
22
- if (empty()) $$renderer.push(`<!--[0--><p class="svelte-17z3k9b">This session has no entries, so ending it deletes it. Its number is not reused.</p>`);
23
- else $$renderer.push(`<!--[-1--><p class="svelte-17z3k9b">Speech captured after this belongs to no session.</p>`);
24
- $$renderer.push(`<!--]--> `);
25
- $$renderer.push("<!--[-1-->");
26
- $$renderer.push(`<!--]--></div> <div slot="actions"><md-text-button type="button">Cancel</md-text-button> <md-text-button type="button"${attr("disabled", busy, true)}>End session</md-text-button></div></md-dialog>`);
27
- });
7
+ // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/query-assigned-elements.js
8
+ /**
9
+ * @license
10
+ * Copyright 2021 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ */ function o$1(o) {
13
+ return (e, n) => {
14
+ const { slot: r, selector: s } = o ?? {}, c = "slot" + (r ? `[name=${r}]` : ":not([name])");
15
+ return e$1(e, n, { get() {
16
+ const e = (this.renderRoot?.querySelector(c))?.assignedElements(o) ?? [];
17
+ return void 0 === s ? e : e.filter((t) => t.matches(s));
18
+ } });
19
+ };
28
20
  }
29
21
  // src/lib/components/ListItem/ListItem.svelte
30
22
  function ListItem($$renderer, $$props) {
@@ -89,14 +81,943 @@ function describeSession(session, now) {
89
81
  spoken: parts.filter((part) => part !== null).join(", ")
90
82
  };
91
83
  }
84
+ /** The URL value that selects the speech outside any session (the bridge's `session=none`). */
85
+ var OUTSIDE_SESSIONS = "none";
92
86
  /**
93
- * The session a pane shows: the one named in the URL if it still exists, otherwise the current
94
- * one (following), otherwise none.
87
+ * The scope a pane shows: `none` if the URL asks for it, the session named in the URL if it still
88
+ * exists, otherwise the current one (following), otherwise the speech outside any session.
95
89
  */
96
- function selectedSessionId(requested, sessions, currentId) {
90
+ function selectedScope(requested, sessions, currentId) {
91
+ if (requested === "none") return OUTSIDE_SESSIONS;
97
92
  const id = requested === null || !/^\d+$/.test(requested) ? null : Number(requested);
98
93
  if (id !== null && sessions.some((session) => session.id === id)) return id;
99
- return currentId;
94
+ return currentId ?? "none";
95
+ }
96
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/shared-styles.cssresult.js
97
+ /**
98
+ * @license
99
+ * Copyright 2026 Google LLC
100
+ * SPDX-License-Identifier: Apache-2.0
101
+ */
102
+ var styles$7 = i$2`:host{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);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}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])){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host(:is([disabled],[soft-disabled])) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host(:is([disabled],[soft-disabled])) .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host(:is([disabled],[soft-disabled])) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:max(48px,100%);left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none}
103
+ `;
104
+ styles$7.styleSheet;
105
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/events/form-label-activation.js
106
+ /**
107
+ * @license
108
+ * Copyright 2021 Google LLC
109
+ * SPDX-License-Identifier: Apache-2.0
110
+ */
111
+ /**
112
+ * Dispatches a click event to the given element that triggers a native action,
113
+ * but is not composed and therefore is not seen outside the element.
114
+ *
115
+ * This is useful for responding to an external click event on the host element
116
+ * that should trigger an internal action like a button click.
117
+ *
118
+ * Note, a helper is provided because setting this up correctly is a bit tricky.
119
+ * In particular, calling `click` on an element creates a composed event, which
120
+ * is not desirable, and a manually dispatched event must specifically be a
121
+ * `MouseEvent` to trigger a native action.
122
+ *
123
+ * @example
124
+ * hostClickListener = (event: MouseEvent) {
125
+ * if (isActivationClick(event)) {
126
+ * this.dispatchActivationClick(this.buttonElement);
127
+ * }
128
+ * }
129
+ *
130
+ */
131
+ function dispatchActivationClick(element) {
132
+ const event = new MouseEvent("click", { bubbles: true });
133
+ element.dispatchEvent(event);
134
+ return event;
135
+ }
136
+ /**
137
+ * Returns true if the click event should trigger an activation behavior. The
138
+ * behavior is defined by the element and is whatever it should do when
139
+ * clicked.
140
+ *
141
+ * Typically when an element needs to handle a click, the click is generated
142
+ * from within the element and an event listener within the element implements
143
+ * the needed behavior; however, it's possible to fire a click directly
144
+ * at the element that the element should handle. This method helps
145
+ * distinguish these "external" clicks.
146
+ *
147
+ * An "external" click can be triggered in a number of ways: via a click
148
+ * on an associated label for a form associated element, calling
149
+ * `element.click()`, or calling
150
+ * `element.dispatchEvent(new MouseEvent('click', ...))`.
151
+ *
152
+ * Also works around Firefox issue
153
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=1804576 by squelching
154
+ * events for a microtask after called.
155
+ *
156
+ * @example
157
+ * hostClickListener = (event: MouseEvent) {
158
+ * if (isActivationClick(event)) {
159
+ * this.dispatchActivationClick(this.buttonElement);
160
+ * }
161
+ * }
162
+ *
163
+ */
164
+ function isActivationClick(event) {
165
+ if (event.currentTarget !== event.target) return false;
166
+ if (event.composedPath()[0] !== event.target) return false;
167
+ if (event.target.disabled) return false;
168
+ return !squelchEvent(event);
169
+ }
170
+ function squelchEvent(event) {
171
+ const squelched = isSquelchingEvents;
172
+ if (squelched) {
173
+ event.preventDefault();
174
+ event.stopImmediatePropagation();
175
+ }
176
+ squelchEventsForMicrotask();
177
+ return squelched;
178
+ }
179
+ var isSquelchingEvents = false;
180
+ async function squelchEventsForMicrotask() {
181
+ isSquelchingEvents = true;
182
+ await null;
183
+ isSquelchingEvents = false;
184
+ }
185
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/button.js
186
+ /**
187
+ * @license
188
+ * Copyright 2019 Google LLC
189
+ * SPDX-License-Identifier: Apache-2.0
190
+ */
191
+ var buttonBaseClass = mixinDelegatesAria(mixinFormSubmitter(mixinFormAssociated(mixinElementInternals(i$3))));
192
+ /**
193
+ * A button component.
194
+ */
195
+ var Button = class extends buttonBaseClass {
196
+ constructor() {
197
+ super();
198
+ /**
199
+ * Whether or not the button is "soft-disabled" (disabled but still
200
+ * focusable).
201
+ *
202
+ * Use this when a button needs increased visibility when disabled. See
203
+ * https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls
204
+ * for more guidance on when this is needed.
205
+ */
206
+ this.softDisabled = false;
207
+ /**
208
+ * The URL that the link button points to.
209
+ */
210
+ this.href = "";
211
+ /**
212
+ * The filename to use when downloading the linked resource.
213
+ * If not specified, the browser will determine a filename.
214
+ * This is only applicable when the button is used as a link (`href` is set).
215
+ */
216
+ this.download = "";
217
+ /**
218
+ * Where to display the linked `href` URL for a link button. Common options
219
+ * include `_blank` to open in a new tab.
220
+ */
221
+ this.target = "";
222
+ /**
223
+ * Whether to render the icon at the inline end of the label rather than the
224
+ * inline start.
225
+ *
226
+ * _Note:_ Link buttons cannot have trailing icons.
227
+ */
228
+ this.trailingIcon = false;
229
+ /**
230
+ * Whether to display the icon or not.
231
+ */
232
+ this.hasIcon = false;
233
+ }
234
+ focus() {
235
+ this.buttonElement?.focus();
236
+ }
237
+ blur() {
238
+ this.buttonElement?.blur();
239
+ }
240
+ render() {
241
+ const isRippleDisabled = this.disabled || this.softDisabled;
242
+ const buttonOrLink = this.href ? this.renderLink() : this.renderButton();
243
+ const buttonId = this.href ? "link" : "button";
244
+ return T`
245
+ ${this.renderElevationOrOutline?.()}
246
+ <div class="background"></div>
247
+ <md-focus-ring part="focus-ring" for=${buttonId}></md-focus-ring>
248
+ <md-ripple
249
+ part="ripple"
250
+ for=${buttonId}
251
+ ?disabled="${isRippleDisabled}"></md-ripple>
252
+ ${buttonOrLink}
253
+ `;
254
+ }
255
+ renderButton() {
256
+ const { ariaLabel, ariaHasPopup, ariaExpanded } = this;
257
+ return T`<button
258
+ id="button"
259
+ class="button"
260
+ ?disabled=${this.disabled}
261
+ aria-disabled=${this.softDisabled || A}
262
+ aria-label="${ariaLabel || A}"
263
+ aria-haspopup="${ariaHasPopup || A}"
264
+ aria-expanded="${ariaExpanded || A}">
265
+ ${this.renderContent()}
266
+ </button>`;
267
+ }
268
+ renderLink() {
269
+ const { ariaLabel, ariaHasPopup, ariaExpanded } = this;
270
+ return T`<a
271
+ id="link"
272
+ class="button"
273
+ aria-label="${ariaLabel || A}"
274
+ aria-haspopup="${ariaHasPopup || A}"
275
+ aria-expanded="${ariaExpanded || A}"
276
+ aria-disabled=${this.disabled || this.softDisabled || A}
277
+ tabindex="${this.disabled && !this.softDisabled ? -1 : A}"
278
+ href=${this.href}
279
+ download=${this.download || A}
280
+ target=${this.target || A}
281
+ >${this.renderContent()}
282
+ </a>`;
283
+ }
284
+ renderContent() {
285
+ const icon = T`<slot
286
+ name="icon"
287
+ @slotchange="${this.handleSlotChange}"></slot>`;
288
+ return T`
289
+ <span class="touch"></span>
290
+ ${this.trailingIcon ? A : icon}
291
+ <span class="label"><slot></slot></span>
292
+ ${this.trailingIcon ? icon : A}
293
+ `;
294
+ }
295
+ handleClick(event) {
296
+ if (this.softDisabled || this.disabled && this.href) {
297
+ event.stopImmediatePropagation();
298
+ event.preventDefault();
299
+ return;
300
+ }
301
+ if (!isActivationClick(event) || !this.buttonElement) return;
302
+ this.focus();
303
+ dispatchActivationClick(this.buttonElement);
304
+ }
305
+ handleSlotChange() {
306
+ this.hasIcon = this.assignedIcons.length > 0;
307
+ }
308
+ };
309
+ /** @nocollapse */
310
+ Button.shadowRootOptions = {
311
+ mode: "open",
312
+ delegatesFocus: true
313
+ };
314
+ __decorate([n$2({
315
+ type: Boolean,
316
+ attribute: "soft-disabled",
317
+ reflect: true
318
+ })], Button.prototype, "softDisabled", void 0);
319
+ __decorate([n$2()], Button.prototype, "href", void 0);
320
+ __decorate([n$2()], Button.prototype, "download", void 0);
321
+ __decorate([n$2()], Button.prototype, "target", void 0);
322
+ __decorate([n$2({
323
+ type: Boolean,
324
+ attribute: "trailing-icon",
325
+ reflect: true
326
+ })], Button.prototype, "trailingIcon", void 0);
327
+ __decorate([n$2({
328
+ type: Boolean,
329
+ attribute: "has-icon",
330
+ reflect: true
331
+ })], Button.prototype, "hasIcon", void 0);
332
+ __decorate([e$2(".button")], Button.prototype, "buttonElement", void 0);
333
+ __decorate([o$1({
334
+ slot: "icon",
335
+ flatten: true
336
+ })], Button.prototype, "assignedIcons", void 0);
337
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/text-button.js
338
+ /**
339
+ * @license
340
+ * Copyright 2021 Google LLC
341
+ * SPDX-License-Identifier: Apache-2.0
342
+ */
343
+ /**
344
+ * A text button component.
345
+ */
346
+ var TextButton = class extends Button {};
347
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/text-styles.cssresult.js
348
+ /**
349
+ * @license
350
+ * Copyright 2026 Google LLC
351
+ * SPDX-License-Identifier: Apache-2.0
352
+ */
353
+ var styles$6 = i$2`:host{--_container-height: var(--md-text-button-container-height, 40px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-text-button-container-shape-start-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-text-button-container-shape-start-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-text-button-container-shape-end-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-text-button-container-shape-end-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}
354
+ `;
355
+ styles$6.styleSheet;
356
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/text-button.js
357
+ /**
358
+ * @license
359
+ * Copyright 2021 Google LLC
360
+ * SPDX-License-Identifier: Apache-2.0
361
+ */
362
+ /**
363
+ * @summary Buttons help people take action, such as sending an email, sharing a
364
+ * document, or liking a comment.
365
+ *
366
+ * @description
367
+ * __Emphasis:__ Low emphasis – For optional or supplementary actions with the
368
+ * least amount of prominence
369
+ *
370
+ * __Rationale:__ Text buttons have less visual prominence, so should be used
371
+ * for low emphasis actions, such as an alternative option.
372
+ *
373
+ * __Example usages:__
374
+ * - Learn more
375
+ * - View all
376
+ * - Change account
377
+ * - Turn on
378
+ *
379
+ * @final
380
+ * @suppress {visibility}
381
+ */
382
+ var MdTextButton = class MdTextButton extends TextButton {};
383
+ MdTextButton.styles = [styles$7, styles$6];
384
+ MdTextButton = __decorate([t$1("md-text-button")], MdTextButton);
385
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/internal/divider.js
386
+ /**
387
+ * @license
388
+ * Copyright 2023 Google LLC
389
+ * SPDX-License-Identifier: Apache-2.0
390
+ */
391
+ /**
392
+ * A divider component.
393
+ */
394
+ var Divider = class extends i$3 {
395
+ constructor() {
396
+ super(...arguments);
397
+ /**
398
+ * Indents the divider with equal padding on both sides.
399
+ */
400
+ this.inset = false;
401
+ /**
402
+ * Indents the divider with padding on the leading side.
403
+ */
404
+ this.insetStart = false;
405
+ /**
406
+ * Indents the divider with padding on the trailing side.
407
+ */
408
+ this.insetEnd = false;
409
+ }
410
+ };
411
+ __decorate([n$2({
412
+ type: Boolean,
413
+ reflect: true
414
+ })], Divider.prototype, "inset", void 0);
415
+ __decorate([n$2({
416
+ type: Boolean,
417
+ reflect: true,
418
+ attribute: "inset-start"
419
+ })], Divider.prototype, "insetStart", void 0);
420
+ __decorate([n$2({
421
+ type: Boolean,
422
+ reflect: true,
423
+ attribute: "inset-end"
424
+ })], Divider.prototype, "insetEnd", void 0);
425
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/internal/divider-styles.cssresult.js
426
+ /**
427
+ * @license
428
+ * Copyright 2026 Google LLC
429
+ * SPDX-License-Identifier: Apache-2.0
430
+ */
431
+ var styles$5 = i$2`:host{box-sizing:border-box;color:var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));display:flex;height:var(--md-divider-thickness, 1px);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}
432
+ `;
433
+ styles$5.styleSheet;
434
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/divider.js
435
+ /**
436
+ * @license
437
+ * Copyright 2023 Google LLC
438
+ * SPDX-License-Identifier: Apache-2.0
439
+ */
440
+ /**
441
+ * @summary A divider is a thin line that groups content in lists and
442
+ * containers.
443
+ *
444
+ * @description Dividers can reinforce tapability, such as when used to separate
445
+ * list items or define tappable regions in an accordion.
446
+ *
447
+ * @final
448
+ * @suppress {visibility}
449
+ */
450
+ var MdDivider = class MdDivider extends Divider {};
451
+ MdDivider.styles = [styles$5];
452
+ MdDivider = __decorate([t$1("md-divider")], MdDivider);
453
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/events/redispatch-event.js
454
+ /**
455
+ * @license
456
+ * Copyright 2021 Google LLC
457
+ * SPDX-License-Identifier: Apache-2.0
458
+ */
459
+ /**
460
+ * Re-dispatches an event from the provided element.
461
+ *
462
+ * This function is useful for forwarding non-composed events, such as `change`
463
+ * events.
464
+ *
465
+ * @example
466
+ * class MyInput extends LitElement {
467
+ * render() {
468
+ * return html`<input @change=${this.redispatchEvent}>`;
469
+ * }
470
+ *
471
+ * protected redispatchEvent(event: Event) {
472
+ * redispatchEvent(this, event);
473
+ * }
474
+ * }
475
+ *
476
+ * @param element The element to dispatch the event from.
477
+ * @param event The event to re-dispatch.
478
+ * @return Whether or not the event was dispatched (if cancelable).
479
+ */
480
+ function redispatchEvent(element, event) {
481
+ if (event.bubbles && (!element.shadowRoot || event.composed)) event.stopPropagation();
482
+ const copy = Reflect.construct(event.constructor, [event.type, event]);
483
+ const dispatched = element.dispatchEvent(copy);
484
+ if (!dispatched) event.preventDefault();
485
+ return dispatched;
486
+ }
487
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/animations.js
488
+ /**
489
+ * @license
490
+ * Copyright 2023 Google LLC
491
+ * SPDX-License-Identifier: Apache-2.0
492
+ */
493
+ /**
494
+ * The default dialog open animation.
495
+ */
496
+ var DIALOG_DEFAULT_OPEN_ANIMATION = {
497
+ dialog: [[[{ "transform": "translateY(-50px)" }, { "transform": "translateY(0)" }], {
498
+ duration: 500,
499
+ easing: EASING.EMPHASIZED
500
+ }]],
501
+ scrim: [[[{ "opacity": 0 }, { "opacity": .32 }], {
502
+ duration: 500,
503
+ easing: "linear"
504
+ }]],
505
+ container: [[[{ "opacity": 0 }, { "opacity": 1 }], {
506
+ duration: 50,
507
+ easing: "linear",
508
+ pseudoElement: "::before"
509
+ }], [[{ "height": "35%" }, { "height": "100%" }], {
510
+ duration: 500,
511
+ easing: EASING.EMPHASIZED,
512
+ pseudoElement: "::before"
513
+ }]],
514
+ headline: [[[
515
+ { "opacity": 0 },
516
+ {
517
+ "opacity": 0,
518
+ offset: .2
519
+ },
520
+ { "opacity": 1 }
521
+ ], {
522
+ duration: 250,
523
+ easing: "linear",
524
+ fill: "forwards"
525
+ }]],
526
+ content: [[[
527
+ { "opacity": 0 },
528
+ {
529
+ "opacity": 0,
530
+ offset: .2
531
+ },
532
+ { "opacity": 1 }
533
+ ], {
534
+ duration: 250,
535
+ easing: "linear",
536
+ fill: "forwards"
537
+ }]],
538
+ actions: [[[
539
+ { "opacity": 0 },
540
+ {
541
+ "opacity": 0,
542
+ offset: .5
543
+ },
544
+ { "opacity": 1 }
545
+ ], {
546
+ duration: 300,
547
+ easing: "linear",
548
+ fill: "forwards"
549
+ }]]
550
+ };
551
+ /**
552
+ * The default dialog close animation.
553
+ */
554
+ var DIALOG_DEFAULT_CLOSE_ANIMATION = {
555
+ dialog: [[[{ "transform": "translateY(0)" }, { "transform": "translateY(-50px)" }], {
556
+ duration: 150,
557
+ easing: EASING.EMPHASIZED_ACCELERATE
558
+ }]],
559
+ scrim: [[[{ "opacity": .32 }, { "opacity": 0 }], {
560
+ duration: 150,
561
+ easing: "linear"
562
+ }]],
563
+ container: [[[{ "height": "100%" }, { "height": "35%" }], {
564
+ duration: 150,
565
+ easing: EASING.EMPHASIZED_ACCELERATE,
566
+ pseudoElement: "::before"
567
+ }], [[{ "opacity": "1" }, { "opacity": "0" }], {
568
+ delay: 100,
569
+ duration: 50,
570
+ easing: "linear",
571
+ pseudoElement: "::before"
572
+ }]],
573
+ headline: [[[{ "opacity": 1 }, { "opacity": 0 }], {
574
+ duration: 100,
575
+ easing: "linear",
576
+ fill: "forwards"
577
+ }]],
578
+ content: [[[{ "opacity": 1 }, { "opacity": 0 }], {
579
+ duration: 100,
580
+ easing: "linear",
581
+ fill: "forwards"
582
+ }]],
583
+ actions: [[[{ "opacity": 1 }, { "opacity": 0 }], {
584
+ duration: 100,
585
+ easing: "linear",
586
+ fill: "forwards"
587
+ }]]
588
+ };
589
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/dialog.js
590
+ /**
591
+ * @license
592
+ * Copyright 2023 Google LLC
593
+ * SPDX-License-Identifier: Apache-2.0
594
+ */
595
+ var dialogBaseClass = mixinDelegatesAria(i$3);
596
+ /**
597
+ * A dialog component.
598
+ *
599
+ * @fires open {Event} Dispatched when the dialog is opening before any animations.
600
+ * @fires opened {Event} Dispatched when the dialog has opened after any animations.
601
+ * @fires close {Event} Dispatched when the dialog is closing before any animations.
602
+ * @fires closed {Event} Dispatched when the dialog has closed after any animations.
603
+ * @fires cancel {Event} Dispatched when the dialog has been canceled by clicking
604
+ * on the scrim or pressing Escape.
605
+ */
606
+ var Dialog = class extends dialogBaseClass {
607
+ /**
608
+ * Opens the dialog when set to `true` and closes it when set to `false`.
609
+ */
610
+ get open() {
611
+ return this.isOpen;
612
+ }
613
+ set open(open) {
614
+ if (open === this.isOpen) return;
615
+ this.isOpen = open;
616
+ if (open) {
617
+ this.setAttribute("open", "");
618
+ this.show();
619
+ } else {
620
+ this.removeAttribute("open");
621
+ this.close();
622
+ }
623
+ }
624
+ constructor() {
625
+ super();
626
+ /**
627
+ * Skips the opening and closing animations.
628
+ */
629
+ this.quick = false;
630
+ /**
631
+ * Gets or sets the dialog's return value, usually to indicate which button
632
+ * a user pressed to close it.
633
+ *
634
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue
635
+ */
636
+ this.returnValue = "";
637
+ /**
638
+ * Disables focus trapping, which by default keeps keyboard Tab navigation
639
+ * within the dialog.
640
+ *
641
+ * When disabled, after focusing the last element of a dialog, pressing Tab
642
+ * again will release focus from the window back to the browser (such as the
643
+ * URL bar).
644
+ *
645
+ * Focus trapping is recommended for accessibility, and should not typically
646
+ * be disabled. Only turn this off if the use case of a dialog is more
647
+ * accessible without focus trapping.
648
+ */
649
+ this.noFocusTrap = false;
650
+ /**
651
+ * Gets the opening animation for a dialog. Set to a new function to customize
652
+ * the animation.
653
+ */
654
+ this.getOpenAnimation = () => DIALOG_DEFAULT_OPEN_ANIMATION;
655
+ /**
656
+ * Gets the closing animation for a dialog. Set to a new function to customize
657
+ * the animation.
658
+ */
659
+ this.getCloseAnimation = () => DIALOG_DEFAULT_CLOSE_ANIMATION;
660
+ this.isOpen = false;
661
+ this.isOpening = false;
662
+ this.isConnectedPromise = this.getIsConnectedPromise();
663
+ this.isAtScrollTop = false;
664
+ this.isAtScrollBottom = false;
665
+ this.nextClickIsFromContent = false;
666
+ this.hasHeadline = false;
667
+ this.hasActions = false;
668
+ this.hasIcon = false;
669
+ this.escapePressedWithoutCancel = false;
670
+ this.treewalker = null;
671
+ }
672
+ /**
673
+ * Opens the dialog and fires a cancelable `open` event. After a dialog's
674
+ * animation, an `opened` event is fired.
675
+ *
676
+ * Add an `autofocus` attribute to a child of the dialog that should
677
+ * receive focus after opening.
678
+ *
679
+ * @return A Promise that resolves after the animation is finished and the
680
+ * `opened` event was fired.
681
+ */
682
+ async show() {
683
+ this.isOpening = true;
684
+ await this.isConnectedPromise;
685
+ await this.updateComplete;
686
+ const dialog = this.dialog;
687
+ if (dialog.open || !this.isOpening) {
688
+ this.isOpening = false;
689
+ return;
690
+ }
691
+ if (!this.dispatchEvent(new Event("open", { cancelable: true }))) {
692
+ this.open = false;
693
+ this.isOpening = false;
694
+ return;
695
+ }
696
+ dialog.showModal();
697
+ this.open = true;
698
+ if (this.scroller) this.scroller.scrollTop = 0;
699
+ this.querySelector("[autofocus]")?.focus();
700
+ await this.animateDialog(this.getOpenAnimation());
701
+ this.dispatchEvent(new Event("opened"));
702
+ this.isOpening = false;
703
+ }
704
+ /**
705
+ * Closes the dialog and fires a cancelable `close` event. After a dialog's
706
+ * animation, a `closed` event is fired.
707
+ *
708
+ * @param returnValue A return value usually indicating which button was used
709
+ * to close a dialog. If a dialog is canceled by clicking the scrim or
710
+ * pressing Escape, it will not change the return value after closing.
711
+ * @return A Promise that resolves after the animation is finished and the
712
+ * `closed` event was fired.
713
+ */
714
+ async close(returnValue = this.returnValue) {
715
+ this.isOpening = false;
716
+ if (!this.isConnected) {
717
+ this.open = false;
718
+ return;
719
+ }
720
+ await this.updateComplete;
721
+ const dialog = this.dialog;
722
+ if (!dialog.open || this.isOpening) {
723
+ this.open = false;
724
+ return;
725
+ }
726
+ const prevReturnValue = this.returnValue;
727
+ this.returnValue = returnValue;
728
+ if (!this.dispatchEvent(new Event("close", { cancelable: true }))) {
729
+ this.returnValue = prevReturnValue;
730
+ return;
731
+ }
732
+ await this.animateDialog(this.getCloseAnimation());
733
+ dialog.close(returnValue);
734
+ this.open = false;
735
+ this.dispatchEvent(new Event("closed"));
736
+ }
737
+ connectedCallback() {
738
+ super.connectedCallback();
739
+ this.isConnectedPromiseResolve();
740
+ }
741
+ disconnectedCallback() {
742
+ super.disconnectedCallback();
743
+ this.isConnectedPromise = this.getIsConnectedPromise();
744
+ }
745
+ render() {
746
+ const scrollable = this.open && !(this.isAtScrollTop && this.isAtScrollBottom);
747
+ const classes = {
748
+ "has-headline": this.hasHeadline,
749
+ "has-actions": this.hasActions,
750
+ "has-icon": this.hasIcon,
751
+ "scrollable": scrollable,
752
+ "show-top-divider": scrollable && !this.isAtScrollTop,
753
+ "show-bottom-divider": scrollable && !this.isAtScrollBottom
754
+ };
755
+ const showFocusTrap = this.open && !this.noFocusTrap;
756
+ const focusTrap = T`
757
+ <div
758
+ class="focus-trap"
759
+ tabindex="0"
760
+ aria-hidden="true"
761
+ @focus=${this.handleFocusTrapFocus}></div>
762
+ `;
763
+ const { ariaLabel } = this;
764
+ return T`
765
+ <div class="scrim"></div>
766
+ <dialog
767
+ class=${e$3(classes)}
768
+ aria-label=${ariaLabel || A}
769
+ aria-labelledby=${this.hasHeadline ? "headline" : A}
770
+ role=${this.type === "alert" ? "alertdialog" : A}
771
+ @cancel=${this.handleCancel}
772
+ @click=${this.handleDialogClick}
773
+ @close=${this.handleClose}
774
+ @keydown=${this.handleKeydown}
775
+ .returnValue=${this.returnValue || A}>
776
+ ${showFocusTrap ? focusTrap : A}
777
+ <div class="container" @click=${this.handleContentClick}>
778
+ <div class="headline">
779
+ <div class="icon" aria-hidden="true">
780
+ <slot name="icon" @slotchange=${this.handleIconChange}></slot>
781
+ </div>
782
+ <h2 id="headline" aria-hidden=${!this.hasHeadline || A}>
783
+ <slot
784
+ name="headline"
785
+ @slotchange=${this.handleHeadlineChange}></slot>
786
+ </h2>
787
+ <md-divider></md-divider>
788
+ </div>
789
+ <div class="scroller">
790
+ <div class="content">
791
+ <div class="top anchor"></div>
792
+ <slot name="content"></slot>
793
+ <div class="bottom anchor"></div>
794
+ </div>
795
+ </div>
796
+ <div class="actions">
797
+ <md-divider></md-divider>
798
+ <slot name="actions" @slotchange=${this.handleActionsChange}></slot>
799
+ </div>
800
+ </div>
801
+ ${showFocusTrap ? focusTrap : A}
802
+ </dialog>
803
+ `;
804
+ }
805
+ firstUpdated() {
806
+ this.intersectionObserver = new IntersectionObserver((entries) => {
807
+ for (const entry of entries) this.handleAnchorIntersection(entry);
808
+ }, { root: this.scroller });
809
+ this.intersectionObserver.observe(this.topAnchor);
810
+ this.intersectionObserver.observe(this.bottomAnchor);
811
+ }
812
+ handleDialogClick() {
813
+ if (this.nextClickIsFromContent) {
814
+ this.nextClickIsFromContent = false;
815
+ return;
816
+ }
817
+ if (!this.dispatchEvent(new Event("cancel", { cancelable: true }))) return;
818
+ this.close();
819
+ }
820
+ handleContentClick() {
821
+ this.nextClickIsFromContent = true;
822
+ }
823
+ handleSubmit(event) {
824
+ const form = event.target;
825
+ const { submitter } = event;
826
+ if (form.getAttribute("method") !== "dialog" || !submitter) return;
827
+ this.close(submitter.getAttribute("value") ?? this.returnValue);
828
+ }
829
+ handleCancel(event) {
830
+ if (event.target !== this.dialog) return;
831
+ this.escapePressedWithoutCancel = false;
832
+ const preventDefault = !redispatchEvent(this, event);
833
+ event.preventDefault();
834
+ if (preventDefault) return;
835
+ this.close();
836
+ }
837
+ handleClose() {
838
+ if (!this.escapePressedWithoutCancel) return;
839
+ this.escapePressedWithoutCancel = false;
840
+ this.dialog?.dispatchEvent(new Event("cancel", { cancelable: true }));
841
+ }
842
+ handleKeydown(event) {
843
+ if (event.key !== "Escape") return;
844
+ this.escapePressedWithoutCancel = true;
845
+ setTimeout(() => {
846
+ this.escapePressedWithoutCancel = false;
847
+ });
848
+ }
849
+ async animateDialog(animation) {
850
+ this.cancelAnimations?.abort();
851
+ this.cancelAnimations = new AbortController();
852
+ if (this.quick) return;
853
+ const { dialog, scrim, container, headline, content, actions } = this;
854
+ if (!dialog || !scrim || !container || !headline || !content || !actions) return;
855
+ const { container: containerAnimate, dialog: dialogAnimate, scrim: scrimAnimate, headline: headlineAnimate, content: contentAnimate, actions: actionsAnimate } = animation;
856
+ const elementAndAnimation = [
857
+ [dialog, dialogAnimate ?? []],
858
+ [scrim, scrimAnimate ?? []],
859
+ [container, containerAnimate ?? []],
860
+ [headline, headlineAnimate ?? []],
861
+ [content, contentAnimate ?? []],
862
+ [actions, actionsAnimate ?? []]
863
+ ];
864
+ const animations = [];
865
+ for (const [element, animation] of elementAndAnimation) for (const animateArgs of animation) {
866
+ const animation = element.animate(...animateArgs);
867
+ this.cancelAnimations.signal.addEventListener("abort", () => {
868
+ animation.cancel();
869
+ });
870
+ animations.push(animation);
871
+ }
872
+ await Promise.all(animations.map((animation) => animation.finished.catch(() => {})));
873
+ }
874
+ handleHeadlineChange(event) {
875
+ const slot = event.target;
876
+ this.hasHeadline = slot.assignedElements().length > 0;
877
+ }
878
+ handleActionsChange(event) {
879
+ const slot = event.target;
880
+ this.hasActions = slot.assignedElements().length > 0;
881
+ }
882
+ handleIconChange(event) {
883
+ const slot = event.target;
884
+ this.hasIcon = slot.assignedElements().length > 0;
885
+ }
886
+ handleAnchorIntersection(entry) {
887
+ const { target, isIntersecting } = entry;
888
+ if (target === this.topAnchor) this.isAtScrollTop = isIntersecting;
889
+ if (target === this.bottomAnchor) this.isAtScrollBottom = isIntersecting;
890
+ }
891
+ getIsConnectedPromise() {
892
+ return new Promise((resolve) => {
893
+ this.isConnectedPromiseResolve = resolve;
894
+ });
895
+ }
896
+ handleFocusTrapFocus(event) {
897
+ const [firstFocusableChild, lastFocusableChild] = this.getFirstAndLastFocusableChildren();
898
+ if (!firstFocusableChild || !lastFocusableChild) {
899
+ this.dialog?.focus();
900
+ return;
901
+ }
902
+ const isFirstFocusTrap = event.target === this.firstFocusTrap;
903
+ const isLastFocusTrap = !isFirstFocusTrap;
904
+ const focusCameFromFirstChild = event.relatedTarget === firstFocusableChild;
905
+ const focusCameFromLastChild = event.relatedTarget === lastFocusableChild;
906
+ const focusCameFromOutsideDialog = !focusCameFromFirstChild && !focusCameFromLastChild;
907
+ if (isLastFocusTrap && focusCameFromLastChild || isFirstFocusTrap && focusCameFromOutsideDialog) {
908
+ firstFocusableChild.focus();
909
+ return;
910
+ }
911
+ if (isFirstFocusTrap && focusCameFromFirstChild || isLastFocusTrap && focusCameFromOutsideDialog) {
912
+ lastFocusableChild.focus();
913
+ return;
914
+ }
915
+ }
916
+ getFirstAndLastFocusableChildren() {
917
+ if (!this.treewalker) return [null, null];
918
+ let firstFocusableChild = null;
919
+ let lastFocusableChild = null;
920
+ this.treewalker.currentNode = this.treewalker.root;
921
+ while (this.treewalker.nextNode()) {
922
+ const nextChild = this.treewalker.currentNode;
923
+ if (!isFocusable(nextChild)) continue;
924
+ if (!firstFocusableChild) firstFocusableChild = nextChild;
925
+ lastFocusableChild = nextChild;
926
+ }
927
+ return [firstFocusableChild, lastFocusableChild];
928
+ }
929
+ };
930
+ __decorate([n$2({ type: Boolean })], Dialog.prototype, "open", null);
931
+ __decorate([n$2({ type: Boolean })], Dialog.prototype, "quick", void 0);
932
+ __decorate([n$2({ attribute: false })], Dialog.prototype, "returnValue", void 0);
933
+ __decorate([n$2()], Dialog.prototype, "type", void 0);
934
+ __decorate([n$2({
935
+ type: Boolean,
936
+ attribute: "no-focus-trap"
937
+ })], Dialog.prototype, "noFocusTrap", void 0);
938
+ __decorate([e$2("dialog")], Dialog.prototype, "dialog", void 0);
939
+ __decorate([e$2(".scrim")], Dialog.prototype, "scrim", void 0);
940
+ __decorate([e$2(".container")], Dialog.prototype, "container", void 0);
941
+ __decorate([e$2(".headline")], Dialog.prototype, "headline", void 0);
942
+ __decorate([e$2(".content")], Dialog.prototype, "content", void 0);
943
+ __decorate([e$2(".actions")], Dialog.prototype, "actions", void 0);
944
+ __decorate([r$1()], Dialog.prototype, "isAtScrollTop", void 0);
945
+ __decorate([r$1()], Dialog.prototype, "isAtScrollBottom", void 0);
946
+ __decorate([e$2(".scroller")], Dialog.prototype, "scroller", void 0);
947
+ __decorate([e$2(".top.anchor")], Dialog.prototype, "topAnchor", void 0);
948
+ __decorate([e$2(".bottom.anchor")], Dialog.prototype, "bottomAnchor", void 0);
949
+ __decorate([e$2(".focus-trap")], Dialog.prototype, "firstFocusTrap", void 0);
950
+ __decorate([r$1()], Dialog.prototype, "hasHeadline", void 0);
951
+ __decorate([r$1()], Dialog.prototype, "hasActions", void 0);
952
+ __decorate([r$1()], Dialog.prototype, "hasIcon", void 0);
953
+ function isFocusable(element) {
954
+ const knownFocusableElements = ":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])";
955
+ const notDisabled = ":not(:disabled,[disabled])";
956
+ if (element.matches(knownFocusableElements + notDisabled + ":not([tabindex^=\"-\"])")) return true;
957
+ if (!element.localName.includes("-")) return false;
958
+ if (!element.matches(notDisabled)) return false;
959
+ return element.shadowRoot?.delegatesFocus ?? false;
960
+ }
961
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/dialog-styles.cssresult.js
962
+ /**
963
+ * @license
964
+ * Copyright 2026 Google LLC
965
+ * SPDX-License-Identifier: Apache-2.0
966
+ */
967
+ var styles$4 = i$2`:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));border-radius:inherit;content:"";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));flex:1;font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}
968
+ `;
969
+ styles$4.styleSheet;
970
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/dialog.js
971
+ /**
972
+ * @license
973
+ * Copyright 2023 Google LLC
974
+ * SPDX-License-Identifier: Apache-2.0
975
+ */
976
+ /**
977
+ * @summary Dialogs can require an action, communicate information, or help
978
+ * users accomplish a task. There are two types of dialogs: basic and
979
+ * full-screen.
980
+ *
981
+ * @description
982
+ * A dialog is a modal window that appears in front of app content to provide
983
+ * critical information or ask for a decision. Dialogs disable all app
984
+ * functionality when they appear, and remain on screen until confirmed,
985
+ * dismissed, or a required action has been taken.
986
+ *
987
+ * Dialogs are purposefully interruptive, so they should be used sparingly.
988
+ * A less disruptive alternative is to use a menu, which provides options
989
+ * without interrupting a user’s experience.
990
+ *
991
+ * On mobile devices only, complex dialogs should be displayed fullscreen.
992
+ *
993
+ * __Example usages:__
994
+ * - Common use cases for basic dialogs include alerts, quick selection, and
995
+ * confirmation.
996
+ * - More complex dialogs may contain actions that require a series of tasks
997
+ * to complete. One example is creating a calendar entry with the event title,
998
+ * date, location, and time.
999
+ *
1000
+ * @final
1001
+ * @suppress {visibility}
1002
+ */
1003
+ var MdDialog = class MdDialog extends Dialog {};
1004
+ MdDialog.styles = [styles$4];
1005
+ MdDialog = __decorate([t$1("md-dialog")], MdDialog);
1006
+ // src/lib/components/SessionsPane/EndSessionDialog.svelte
1007
+ function EndSessionDialog($$renderer, $$props) {
1008
+ $$renderer.component(($$renderer) => {
1009
+ /** The session's entry count; the bridge forgets a session that ends with none. */
1010
+ /** Rejects with a message to show; resolves when the session has ended. */
1011
+ let { open, sessionId, entries, onEnd, onClose } = $$props;
1012
+ const empty = derived(() => entries === 0);
1013
+ let busy = false;
1014
+ $$renderer.push(`<md-dialog${attr("open", open, true)} class="svelte-17z3k9b"><div slot="headline">${escape_html(empty() ? "Drop" : "End")} session ${escape_html(sessionId === null ? "" : `#${sessionId}`)}?</div> <div slot="content">`);
1015
+ if (empty()) $$renderer.push(`<!--[0--><p class="svelte-17z3k9b">This session has no entries, so ending it deletes it. Its number is not reused.</p>`);
1016
+ else $$renderer.push(`<!--[-1--><p class="svelte-17z3k9b">Speech captured after this belongs to no session.</p>`);
1017
+ $$renderer.push(`<!--]--> `);
1018
+ $$renderer.push("<!--[-1-->");
1019
+ $$renderer.push(`<!--]--></div> <div slot="actions"><md-text-button type="button">Cancel</md-text-button> <md-text-button type="button"${attr("disabled", busy, true)}>End session</md-text-button></div></md-dialog>`);
1020
+ });
100
1021
  }
101
1022
  // src/lib/components/SessionsPane/SessionRow.svelte
102
1023
  function SessionRow($$renderer, $$props) {
@@ -123,6 +1044,1476 @@ function SessionRow($$renderer, $$props) {
123
1044
  });
124
1045
  });
125
1046
  }
1047
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/field/internal/field.js
1048
+ /**
1049
+ * @license
1050
+ * Copyright 2021 Google LLC
1051
+ * SPDX-License-Identifier: Apache-2.0
1052
+ */
1053
+ /**
1054
+ * A field component.
1055
+ */
1056
+ var Field = class extends i$3 {
1057
+ constructor() {
1058
+ super(...arguments);
1059
+ this.disabled = false;
1060
+ this.error = false;
1061
+ this.focused = false;
1062
+ this.label = "";
1063
+ this.noAsterisk = false;
1064
+ this.populated = false;
1065
+ this.required = false;
1066
+ this.resizable = false;
1067
+ this.supportingText = "";
1068
+ this.errorText = "";
1069
+ this.count = -1;
1070
+ this.max = -1;
1071
+ /**
1072
+ * Whether or not the field has leading content.
1073
+ */
1074
+ this.hasStart = false;
1075
+ /**
1076
+ * Whether or not the field has trailing content.
1077
+ */
1078
+ this.hasEnd = false;
1079
+ this.isAnimating = false;
1080
+ /**
1081
+ * When set to true, the error text's `role="alert"` will be removed, then
1082
+ * re-added after an animation frame. This will re-announce an error message
1083
+ * to screen readers.
1084
+ */
1085
+ this.refreshErrorAlert = false;
1086
+ this.disableTransitions = false;
1087
+ }
1088
+ get counterText() {
1089
+ const countAsNumber = this.count ?? -1;
1090
+ const maxAsNumber = this.max ?? -1;
1091
+ if (countAsNumber < 0 || maxAsNumber <= 0) return "";
1092
+ return `${countAsNumber} / ${maxAsNumber}`;
1093
+ }
1094
+ get supportingOrErrorText() {
1095
+ return this.error && this.errorText ? this.errorText : this.supportingText;
1096
+ }
1097
+ /**
1098
+ * Re-announces the field's error supporting text to screen readers.
1099
+ *
1100
+ * Error text announces to screen readers anytime it is visible and changes.
1101
+ * Use the method to re-announce the message when the text has not changed,
1102
+ * but announcement is still needed (such as for `reportValidity()`).
1103
+ */
1104
+ reannounceError() {
1105
+ this.refreshErrorAlert = true;
1106
+ }
1107
+ update(props) {
1108
+ if (props.has("disabled") && props.get("disabled") !== void 0) this.disableTransitions = true;
1109
+ if (this.disabled && this.focused) {
1110
+ props.set("focused", true);
1111
+ this.focused = false;
1112
+ }
1113
+ this.animateLabelIfNeeded({
1114
+ wasFocused: props.get("focused"),
1115
+ wasPopulated: props.get("populated")
1116
+ });
1117
+ super.update(props);
1118
+ }
1119
+ render() {
1120
+ const floatingLabel = this.renderLabel(true);
1121
+ const restingLabel = this.renderLabel(false);
1122
+ const outline = this.renderOutline?.(floatingLabel);
1123
+ const classes = {
1124
+ "disabled": this.disabled,
1125
+ "disable-transitions": this.disableTransitions,
1126
+ "error": this.error && !this.disabled,
1127
+ "focused": this.focused,
1128
+ "with-start": this.hasStart,
1129
+ "with-end": this.hasEnd,
1130
+ "populated": this.populated,
1131
+ "resizable": this.resizable,
1132
+ "required": this.required,
1133
+ "no-label": !this.label
1134
+ };
1135
+ return T`
1136
+ <div class="field ${e$3(classes)}">
1137
+ <div class="container-overflow">
1138
+ ${this.renderBackground?.()}
1139
+ <slot name="container"></slot>
1140
+ ${this.renderStateLayer?.()} ${this.renderIndicator?.()} ${outline}
1141
+ <div class="container">
1142
+ <div class="start">
1143
+ <slot name="start"></slot>
1144
+ </div>
1145
+ <div class="middle">
1146
+ <div class="label-wrapper">
1147
+ ${restingLabel} ${outline ? A : floatingLabel}
1148
+ </div>
1149
+ <div class="content">
1150
+ <slot></slot>
1151
+ </div>
1152
+ </div>
1153
+ <div class="end">
1154
+ <slot name="end"></slot>
1155
+ </div>
1156
+ </div>
1157
+ </div>
1158
+ ${this.renderSupportingText()}
1159
+ </div>
1160
+ `;
1161
+ }
1162
+ updated(changed) {
1163
+ if (changed.has("supportingText") || changed.has("errorText") || changed.has("count") || changed.has("max")) this.updateSlottedAriaDescribedBy();
1164
+ if (this.refreshErrorAlert) requestAnimationFrame(() => {
1165
+ this.refreshErrorAlert = false;
1166
+ });
1167
+ if (this.disableTransitions) requestAnimationFrame(() => {
1168
+ this.disableTransitions = false;
1169
+ });
1170
+ }
1171
+ renderSupportingText() {
1172
+ const { supportingOrErrorText, counterText } = this;
1173
+ if (!supportingOrErrorText && !counterText) return A;
1174
+ const start = T`<span>${supportingOrErrorText}</span>`;
1175
+ const end = counterText ? T`<span class="counter">${counterText}</span>` : A;
1176
+ const role = this.error && this.errorText && !this.refreshErrorAlert ? "alert" : A;
1177
+ return T`
1178
+ <div class="supporting-text" role=${role}>${start}${end}</div>
1179
+ <slot
1180
+ name="aria-describedby"
1181
+ @slotchange=${this.updateSlottedAriaDescribedBy}></slot>
1182
+ `;
1183
+ }
1184
+ updateSlottedAriaDescribedBy() {
1185
+ for (const element of this.slottedAriaDescribedBy) {
1186
+ B(T`${this.supportingOrErrorText} ${this.counterText}`, element);
1187
+ element.setAttribute("hidden", "");
1188
+ }
1189
+ }
1190
+ renderLabel(isFloating) {
1191
+ if (!this.label) return A;
1192
+ let visible;
1193
+ if (isFloating) visible = this.focused || this.populated || this.isAnimating;
1194
+ else visible = !this.focused && !this.populated && !this.isAnimating;
1195
+ const classes = {
1196
+ "hidden": !visible,
1197
+ "floating": isFloating,
1198
+ "resting": !isFloating
1199
+ };
1200
+ const labelText = `${this.label}${this.required && !this.noAsterisk ? "*" : ""}`;
1201
+ return T`
1202
+ <span class="label ${e$3(classes)}" aria-hidden=${!visible}
1203
+ >${labelText}</span
1204
+ >
1205
+ `;
1206
+ }
1207
+ animateLabelIfNeeded({ wasFocused, wasPopulated }) {
1208
+ if (!this.label) return;
1209
+ wasFocused ??= this.focused;
1210
+ wasPopulated ??= this.populated;
1211
+ if ((wasFocused || wasPopulated) === (this.focused || this.populated)) return;
1212
+ const keyframes = this.getLabelKeyframes();
1213
+ if (!keyframes.length) return;
1214
+ this.isAnimating = true;
1215
+ this.labelAnimation?.cancel();
1216
+ this.labelAnimation = this.floatingLabelEl?.animate(keyframes, {
1217
+ duration: 150,
1218
+ easing: EASING.STANDARD
1219
+ });
1220
+ this.labelAnimation?.addEventListener("finish", () => {
1221
+ this.isAnimating = false;
1222
+ });
1223
+ }
1224
+ getLabelKeyframes() {
1225
+ const { floatingLabelEl, restingLabelEl } = this;
1226
+ if (!floatingLabelEl || !restingLabelEl) return [];
1227
+ const { x: floatingX, y: floatingY, height: floatingHeight } = floatingLabelEl.getBoundingClientRect();
1228
+ const { x: restingX, y: restingY, height: restingHeight } = restingLabelEl.getBoundingClientRect();
1229
+ const floatingScrollWidth = floatingLabelEl.scrollWidth;
1230
+ const restingScrollWidth = restingLabelEl.scrollWidth;
1231
+ if (floatingScrollWidth === 0 || restingScrollWidth === 0) return [];
1232
+ const scale = restingScrollWidth / floatingScrollWidth;
1233
+ const restTransform = `translateX(${restingX - floatingX}px) translateY(${restingY - floatingY + Math.round((restingHeight - floatingHeight * scale) / 2)}px) scale(${scale})`;
1234
+ const floatTransform = `translateX(0) translateY(0) scale(1)`;
1235
+ const restingClientWidth = restingLabelEl.clientWidth;
1236
+ const width = restingScrollWidth > restingClientWidth ? `${restingClientWidth / scale}px` : "";
1237
+ if (this.focused || this.populated) return [{
1238
+ transform: restTransform,
1239
+ width
1240
+ }, {
1241
+ transform: floatTransform,
1242
+ width
1243
+ }];
1244
+ return [{
1245
+ transform: floatTransform,
1246
+ width
1247
+ }, {
1248
+ transform: restTransform,
1249
+ width
1250
+ }];
1251
+ }
1252
+ getSurfacePositionClientRect() {
1253
+ return this.containerEl.getBoundingClientRect();
1254
+ }
1255
+ };
1256
+ __decorate([n$2({ type: Boolean })], Field.prototype, "disabled", void 0);
1257
+ __decorate([n$2({ type: Boolean })], Field.prototype, "error", void 0);
1258
+ __decorate([n$2({ type: Boolean })], Field.prototype, "focused", void 0);
1259
+ __decorate([n$2()], Field.prototype, "label", void 0);
1260
+ __decorate([n$2({
1261
+ type: Boolean,
1262
+ attribute: "no-asterisk"
1263
+ })], Field.prototype, "noAsterisk", void 0);
1264
+ __decorate([n$2({ type: Boolean })], Field.prototype, "populated", void 0);
1265
+ __decorate([n$2({ type: Boolean })], Field.prototype, "required", void 0);
1266
+ __decorate([n$2({ type: Boolean })], Field.prototype, "resizable", void 0);
1267
+ __decorate([n$2({ attribute: "supporting-text" })], Field.prototype, "supportingText", void 0);
1268
+ __decorate([n$2({ attribute: "error-text" })], Field.prototype, "errorText", void 0);
1269
+ __decorate([n$2({ type: Number })], Field.prototype, "count", void 0);
1270
+ __decorate([n$2({ type: Number })], Field.prototype, "max", void 0);
1271
+ __decorate([n$2({
1272
+ type: Boolean,
1273
+ attribute: "has-start"
1274
+ })], Field.prototype, "hasStart", void 0);
1275
+ __decorate([n$2({
1276
+ type: Boolean,
1277
+ attribute: "has-end"
1278
+ })], Field.prototype, "hasEnd", void 0);
1279
+ __decorate([o$1({ slot: "aria-describedby" })], Field.prototype, "slottedAriaDescribedBy", void 0);
1280
+ __decorate([r$1()], Field.prototype, "isAnimating", void 0);
1281
+ __decorate([r$1()], Field.prototype, "refreshErrorAlert", void 0);
1282
+ __decorate([r$1()], Field.prototype, "disableTransitions", void 0);
1283
+ __decorate([e$2(".label.floating")], Field.prototype, "floatingLabelEl", void 0);
1284
+ __decorate([e$2(".label.resting")], Field.prototype, "restingLabelEl", void 0);
1285
+ __decorate([e$2(".container")], Field.prototype, "containerEl", void 0);
1286
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/field/internal/outlined-field.js
1287
+ /**
1288
+ * @license
1289
+ * Copyright 2021 Google LLC
1290
+ * SPDX-License-Identifier: Apache-2.0
1291
+ */
1292
+ /**
1293
+ * An outlined field component.
1294
+ */
1295
+ var OutlinedField = class extends Field {
1296
+ renderOutline(floatingLabel) {
1297
+ return T`
1298
+ <div class="outline">
1299
+ <div class="outline-start"></div>
1300
+ <div class="outline-notch">
1301
+ <div class="outline-panel-inactive"></div>
1302
+ <div class="outline-panel-active"></div>
1303
+ <div class="outline-label">${floatingLabel}</div>
1304
+ </div>
1305
+ <div class="outline-end"></div>
1306
+ </div>
1307
+ `;
1308
+ }
1309
+ };
1310
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/field/internal/outlined-styles.cssresult.js
1311
+ /**
1312
+ * @license
1313
+ * Copyright 2026 Google LLC
1314
+ * SPDX-License-Identifier: Apache-2.0
1315
+ */
1316
+ var styles$3 = i$2`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-outlined-field-content-space, 16px);--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_with-leading-content-leading-space: var(--md-outlined-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-outlined-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}}
1317
+ `;
1318
+ styles$3.styleSheet;
1319
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/field/internal/shared-styles.cssresult.js
1320
+ /**
1321
+ * @license
1322
+ * Copyright 2026 Google LLC
1323
+ * SPDX-License-Identifier: Apache-2.0
1324
+ */
1325
+ var styles$2 = i$2`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}slot[name=container]{border-radius:inherit}slot[name=container]::slotted(*){border-radius:inherit;inset:0;pointer-events:none;position:absolute}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start{margin-inline:var(--_with-leading-content-leading-space) var(--_content-space)}.with-end .end{margin-inline:var(--_content-space) var(--_with-trailing-content-trailing-space)}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}}
1326
+ `;
1327
+ styles$2.styleSheet;
1328
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/field/outlined-field.js
1329
+ /**
1330
+ * @license
1331
+ * Copyright 2021 Google LLC
1332
+ * SPDX-License-Identifier: Apache-2.0
1333
+ */
1334
+ /**
1335
+ * TODO(b/228525797): add docs
1336
+ * @final
1337
+ * @suppress {visibility}
1338
+ */
1339
+ var MdOutlinedField = class MdOutlinedField extends OutlinedField {};
1340
+ MdOutlinedField.styles = [styles$2, styles$3];
1341
+ MdOutlinedField = __decorate([t$1("md-outlined-field")], MdOutlinedField);
1342
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/textfield/internal/outlined-styles.cssresult.js
1343
+ /**
1344
+ * @license
1345
+ * Copyright 2026 Google LLC
1346
+ * SPDX-License-Identifier: Apache-2.0
1347
+ */
1348
+ var styles$1 = i$2`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_icon-input-space: var(--md-outlined-text-field-icon-input-space, 16px);--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_with-leading-icon-leading-space: var(--md-outlined-text-field-with-leading-icon-leading-space, 12px);--_with-trailing-icon-trailing-space: var(--md-outlined-text-field-with-trailing-icon-trailing-space, 12px);--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-space: var(--_icon-input-space);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space);--md-outlined-field-with-leading-content-leading-space: var(--_with-leading-icon-leading-space);--md-outlined-field-with-trailing-content-trailing-space: var(--_with-trailing-icon-trailing-space)}
1349
+ `;
1350
+ styles$1.styleSheet;
1351
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/directive-helpers.js
1352
+ /**
1353
+ * @license
1354
+ * Copyright 2020 Google LLC
1355
+ * SPDX-License-Identifier: BSD-3-Clause
1356
+ */ var { I: t } = Z, r = (o) => void 0 === o.strings, m = {}, p = (o, t = m) => o._$AH = t;
1357
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/directives/live.js
1358
+ /**
1359
+ * @license
1360
+ * Copyright 2020 Google LLC
1361
+ * SPDX-License-Identifier: BSD-3-Clause
1362
+ */ var l = e$4(class extends i$4 {
1363
+ constructor(r$2) {
1364
+ if (super(r$2), r$2.type !== t$2.PROPERTY && r$2.type !== t$2.ATTRIBUTE && r$2.type !== t$2.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
1365
+ if (!r(r$2)) throw Error("`live` bindings can only contain a single expression");
1366
+ }
1367
+ render(r) {
1368
+ return r;
1369
+ }
1370
+ update(i, [t]) {
1371
+ if (t === E || t === A) return t;
1372
+ const o = i.element, l = i.name;
1373
+ if (i.type === t$2.PROPERTY) {
1374
+ if (t === o[l]) return E;
1375
+ } else if (i.type === t$2.BOOLEAN_ATTRIBUTE) {
1376
+ if (!!t === o.hasAttribute(l)) return E;
1377
+ } else if (i.type === t$2.ATTRIBUTE && o.getAttribute(l) === t + "") return E;
1378
+ return p(i), t;
1379
+ }
1380
+ });
1381
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/directives/style-map.js
1382
+ /**
1383
+ * @license
1384
+ * Copyright 2018 Google LLC
1385
+ * SPDX-License-Identifier: BSD-3-Clause
1386
+ */ var n = "important";
1387
+ var i = " !" + n;
1388
+ var o = e$4(class extends i$4 {
1389
+ constructor(t) {
1390
+ if (super(t), t.type !== t$2.ATTRIBUTE || "style" !== t.name || t.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
1391
+ }
1392
+ render(t) {
1393
+ return Object.keys(t).reduce((e, r) => {
1394
+ const s = t[r];
1395
+ return null == s ? e : e + `${r = r.includes("-") ? r : r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s};`;
1396
+ }, "");
1397
+ }
1398
+ update(e, [r]) {
1399
+ const { style: s } = e.element;
1400
+ if (void 0 === this.ft) return this.ft = new Set(Object.keys(r)), this.render(r);
1401
+ for (const t of this.ft) r[t] ?? (this.ft.delete(t), t.includes("-") ? s.removeProperty(t) : s[t] = null);
1402
+ for (const t in r) {
1403
+ const e = r[t];
1404
+ if (null != e) {
1405
+ this.ft.add(t);
1406
+ const r = "string" == typeof e && e.endsWith(i);
1407
+ t.includes("-") || r ? s.setProperty(t, r ? e.slice(0, -11) : e, r ? n : "") : s[t] = e;
1408
+ }
1409
+ }
1410
+ return E;
1411
+ }
1412
+ });
1413
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/controller/string-converter.js
1414
+ /**
1415
+ * @license
1416
+ * Copyright 2022 Google LLC
1417
+ * SPDX-License-Identifier: Apache-2.0
1418
+ */
1419
+ var stringConverter = {
1420
+ fromAttribute(value) {
1421
+ return value ?? "";
1422
+ },
1423
+ toAttribute(value) {
1424
+ return value || null;
1425
+ }
1426
+ };
1427
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/constraint-validation.js
1428
+ /**
1429
+ * @license
1430
+ * Copyright 2023 Google LLC
1431
+ * SPDX-License-Identifier: Apache-2.0
1432
+ */
1433
+ /**
1434
+ * A symbol property used to create a constraint validation `Validator`.
1435
+ * Required for all `mixinConstraintValidation()` elements.
1436
+ */
1437
+ var createValidator = Symbol("createValidator");
1438
+ /**
1439
+ * A symbol property used to return an anchor for constraint validation popups.
1440
+ * Required for all `mixinConstraintValidation()` elements.
1441
+ */
1442
+ var getValidityAnchor = Symbol("getValidityAnchor");
1443
+ var privateSyncValidity = Symbol("privateSyncValidity");
1444
+ var privateCustomValidationMessage = Symbol("privateCustomValidationMessage");
1445
+ /**
1446
+ * Mixes in constraint validation APIs for an element.
1447
+ *
1448
+ * See https://developer.mozilla.org/en-US/docs/Web/HTML/Constraint_validation
1449
+ * for more details.
1450
+ *
1451
+ * Implementations must provide a validator to cache and compute its validity,
1452
+ * along with a shadow root element to anchor validation popups to.
1453
+ *
1454
+ * @example
1455
+ * ```ts
1456
+ * const baseClass = mixinConstraintValidation(
1457
+ * mixinFormAssociated(mixinElementInternals(LitElement))
1458
+ * );
1459
+ *
1460
+ * class MyCheckbox extends baseClass {
1461
+ * \@property({type: Boolean}) checked = false;
1462
+ * \@property({type: Boolean}) required = false;
1463
+ *
1464
+ * [createValidator]() {
1465
+ * return new CheckboxValidator(() => this);
1466
+ * }
1467
+ *
1468
+ * [getValidityAnchor]() {
1469
+ * return this.renderRoot.querySelector('.root');
1470
+ * }
1471
+ * }
1472
+ * ```
1473
+ *
1474
+ * @param base The class to mix functionality into.
1475
+ * @return The provided class with `ConstraintValidation` mixed in.
1476
+ */
1477
+ function mixinConstraintValidation(base) {
1478
+ var _a;
1479
+ class ConstraintValidationElement extends base {
1480
+ constructor() {
1481
+ super(...arguments);
1482
+ /**
1483
+ * Needed for Safari, see https://bugs.webkit.org/show_bug.cgi?id=261432
1484
+ * Replace with this[internals].validity.customError when resolved.
1485
+ */
1486
+ this[_a] = "";
1487
+ }
1488
+ get validity() {
1489
+ this[privateSyncValidity]();
1490
+ return this[internals].validity;
1491
+ }
1492
+ get validationMessage() {
1493
+ this[privateSyncValidity]();
1494
+ return this[internals].validationMessage;
1495
+ }
1496
+ get willValidate() {
1497
+ this[privateSyncValidity]();
1498
+ return this[internals].willValidate;
1499
+ }
1500
+ checkValidity() {
1501
+ this[privateSyncValidity]();
1502
+ return this[internals].checkValidity();
1503
+ }
1504
+ reportValidity() {
1505
+ this[privateSyncValidity]();
1506
+ return this[internals].reportValidity();
1507
+ }
1508
+ setCustomValidity(error) {
1509
+ this[privateCustomValidationMessage] = error;
1510
+ this[privateSyncValidity]();
1511
+ }
1512
+ requestUpdate(name, oldValue, options) {
1513
+ super.requestUpdate(name, oldValue, options);
1514
+ this[privateSyncValidity]();
1515
+ }
1516
+ firstUpdated(changed) {
1517
+ super.firstUpdated(changed);
1518
+ this[privateSyncValidity]();
1519
+ }
1520
+ [(_a = privateCustomValidationMessage, privateSyncValidity)]() {}
1521
+ [createValidator]() {
1522
+ throw new Error("Implement [createValidator]");
1523
+ }
1524
+ [getValidityAnchor]() {
1525
+ throw new Error("Implement [getValidityAnchor]");
1526
+ }
1527
+ }
1528
+ return ConstraintValidationElement;
1529
+ }
1530
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/on-report-validity.js
1531
+ /**
1532
+ * @license
1533
+ * Copyright 2023 Google LLC
1534
+ * SPDX-License-Identifier: Apache-2.0
1535
+ */
1536
+ /**
1537
+ * A symbol property used for a callback when validity has been reported.
1538
+ */
1539
+ var onReportValidity = Symbol("onReportValidity");
1540
+ var privateCleanupFormListeners = Symbol("privateCleanupFormListeners");
1541
+ var privateDoNotReportInvalid = Symbol("privateDoNotReportInvalid");
1542
+ var privateIsSelfReportingValidity = Symbol("privateIsSelfReportingValidity");
1543
+ var privateCallOnReportValidity = Symbol("privateCallOnReportValidity");
1544
+ /**
1545
+ * Mixes in a callback for constraint validation when validity should be
1546
+ * styled and reported to the user.
1547
+ *
1548
+ * This is commonly used in text-field-like controls that display error styles
1549
+ * and error messages.
1550
+ *
1551
+ * @example
1552
+ * ```ts
1553
+ * const baseClass = mixinOnReportValidity(
1554
+ * mixinConstraintValidation(
1555
+ * mixinFormAssociated(mixinElementInternals(LitElement)),
1556
+ * ),
1557
+ * );
1558
+ *
1559
+ * class MyField extends baseClass {
1560
+ * \@property({type: Boolean}) error = false;
1561
+ * \@property() errorMessage = '';
1562
+ *
1563
+ * [onReportValidity](invalidEvent: Event | null) {
1564
+ * this.error = !!invalidEvent;
1565
+ * this.errorMessage = this.validationMessage;
1566
+ *
1567
+ * // Optionally prevent platform popup from displaying
1568
+ * invalidEvent?.preventDefault();
1569
+ * }
1570
+ * }
1571
+ * ```
1572
+ *
1573
+ * @param base The class to mix functionality into.
1574
+ * @return The provided class with `OnReportValidity` mixed in.
1575
+ */
1576
+ function mixinOnReportValidity(base) {
1577
+ var _a, _b, _c;
1578
+ class OnReportValidityElement extends base {
1579
+ constructor(...args) {
1580
+ super(...args);
1581
+ /**
1582
+ * Used to clean up event listeners when a new form is associated.
1583
+ */
1584
+ this[_a] = new AbortController();
1585
+ /**
1586
+ * Used to determine if an invalid event should report validity. Invalid
1587
+ * events from `checkValidity()` do not trigger reporting.
1588
+ */
1589
+ this[_b] = false;
1590
+ /**
1591
+ * Used to determine if the control is reporting validity from itself, or
1592
+ * if a `<form>` is causing the validity report. Forms have different
1593
+ * control focusing behavior.
1594
+ */
1595
+ this[_c] = false;
1596
+ }
1597
+ checkValidity() {
1598
+ this[privateDoNotReportInvalid] = true;
1599
+ const valid = super.checkValidity();
1600
+ this[privateDoNotReportInvalid] = false;
1601
+ return valid;
1602
+ }
1603
+ reportValidity() {
1604
+ this[privateIsSelfReportingValidity] = true;
1605
+ const valid = super.reportValidity();
1606
+ if (valid) this[privateCallOnReportValidity](null);
1607
+ this[privateIsSelfReportingValidity] = false;
1608
+ return valid;
1609
+ }
1610
+ [(_a = privateCleanupFormListeners, _b = privateDoNotReportInvalid, _c = privateIsSelfReportingValidity, privateCallOnReportValidity)](invalidEvent) {
1611
+ const wasCanceled = invalidEvent?.defaultPrevented;
1612
+ if (wasCanceled) return;
1613
+ this[onReportValidity](invalidEvent);
1614
+ if (!(!wasCanceled && invalidEvent?.defaultPrevented)) return;
1615
+ if (this[privateIsSelfReportingValidity] || isFirstInvalidControlInForm(this[internals].form, this)) this.focus();
1616
+ }
1617
+ [onReportValidity](invalidEvent) {
1618
+ throw new Error("Implement [onReportValidity]");
1619
+ }
1620
+ formAssociatedCallback(form) {
1621
+ if (super.formAssociatedCallback) super.formAssociatedCallback(form);
1622
+ this[privateCleanupFormListeners].abort();
1623
+ if (!form) return;
1624
+ this[privateCleanupFormListeners] = new AbortController();
1625
+ addFormReportValidListener(this, form, () => {
1626
+ this[privateCallOnReportValidity](null);
1627
+ }, this[privateCleanupFormListeners].signal);
1628
+ }
1629
+ }
1630
+ return OnReportValidityElement;
1631
+ }
1632
+ /**
1633
+ * Add a listener that fires when a form runs constraint validation on a control
1634
+ * and it is valid. This is needed to clear previously invalid styles.
1635
+ *
1636
+ * @param control The control of the form to listen for valid events.
1637
+ * @param form The control's form that can run constraint validation.
1638
+ * @param onControlValid A listener that is called when the form runs constraint
1639
+ * validation and the control is valid.
1640
+ * @param cleanup A cleanup signal to remove the listener.
1641
+ */
1642
+ function addFormReportValidListener(control, form, onControlValid, cleanup) {
1643
+ const validateHooks = getFormValidateHooks(form);
1644
+ let controlFiredInvalid = false;
1645
+ let cleanupInvalidListener;
1646
+ let isNextSubmitFromHook = false;
1647
+ validateHooks.addEventListener("before", () => {
1648
+ isNextSubmitFromHook = true;
1649
+ cleanupInvalidListener = new AbortController();
1650
+ controlFiredInvalid = false;
1651
+ control.addEventListener("invalid", () => {
1652
+ controlFiredInvalid = true;
1653
+ }, { signal: cleanupInvalidListener.signal });
1654
+ }, { signal: cleanup });
1655
+ validateHooks.addEventListener("after", () => {
1656
+ isNextSubmitFromHook = false;
1657
+ cleanupInvalidListener?.abort();
1658
+ if (controlFiredInvalid) return;
1659
+ onControlValid();
1660
+ }, { signal: cleanup });
1661
+ form.addEventListener("submit", () => {
1662
+ if (isNextSubmitFromHook) return;
1663
+ onControlValid();
1664
+ }, { signal: cleanup });
1665
+ }
1666
+ var FORM_VALIDATE_HOOKS = /* @__PURE__ */ new WeakMap();
1667
+ /**
1668
+ * Get a hooks `EventTarget` that dispatches 'before' and 'after' events that
1669
+ * fire before a form runs constraint validation and immediately after it
1670
+ * finishes running constraint validation on its controls.
1671
+ *
1672
+ * This happens during `form.reportValidity()` and `form.requestSubmit()`.
1673
+ *
1674
+ * @param form The form to get or set up hooks for.
1675
+ * @return A hooks `EventTarget` to add listeners to.
1676
+ */
1677
+ function getFormValidateHooks(form) {
1678
+ if (!FORM_VALIDATE_HOOKS.has(form)) {
1679
+ const hooks = new EventTarget();
1680
+ FORM_VALIDATE_HOOKS.set(form, hooks);
1681
+ for (const methodName of ["reportValidity", "requestSubmit"]) {
1682
+ const superMethod = form[methodName];
1683
+ form[methodName] = function() {
1684
+ hooks.dispatchEvent(new Event("before"));
1685
+ const result = Reflect.apply(superMethod, this, arguments);
1686
+ hooks.dispatchEvent(new Event("after"));
1687
+ return result;
1688
+ };
1689
+ }
1690
+ }
1691
+ return FORM_VALIDATE_HOOKS.get(form);
1692
+ }
1693
+ /**
1694
+ * Checks if a control is the first invalid control in a form.
1695
+ *
1696
+ * @param form The control's form. When `null`, the control doesn't have a form
1697
+ * and the method returns true.
1698
+ * @param control The control to check.
1699
+ * @return True if there is no form or if the control is the form's first
1700
+ * invalid control.
1701
+ */
1702
+ function isFirstInvalidControlInForm(form, control) {
1703
+ if (!form) return true;
1704
+ let firstInvalidControl;
1705
+ for (const element of form.elements) if (element.matches(":invalid")) {
1706
+ firstInvalidControl = element;
1707
+ break;
1708
+ }
1709
+ return firstInvalidControl === control;
1710
+ }
1711
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/validators/validator.js
1712
+ /**
1713
+ * @license
1714
+ * Copyright 2023 Google LLC
1715
+ * SPDX-License-Identifier: Apache-2.0
1716
+ */
1717
+ /**
1718
+ * A class that computes and caches `ValidityStateFlags` for a component with
1719
+ * a given `State` interface.
1720
+ *
1721
+ * Cached performance before computing validity is important since constraint
1722
+ * validation must be checked frequently and synchronously when properties
1723
+ * change.
1724
+ *
1725
+ * @template State The expected interface of properties relevant to constraint
1726
+ * validation.
1727
+ */
1728
+ var Validator = class {
1729
+ /**
1730
+ * Creates a new validator.
1731
+ *
1732
+ * @param getCurrentState A callback that returns the current state of
1733
+ * constraint validation-related properties.
1734
+ */
1735
+ constructor(getCurrentState) {
1736
+ this.getCurrentState = getCurrentState;
1737
+ /**
1738
+ * The current validity state and message. This is cached and returns if
1739
+ * constraint validation state does not change.
1740
+ */
1741
+ this.currentValidity = {
1742
+ validity: {},
1743
+ validationMessage: ""
1744
+ };
1745
+ }
1746
+ /**
1747
+ * Returns the current `ValidityStateFlags` and validation message for the
1748
+ * validator.
1749
+ *
1750
+ * If the constraint validation state has not changed, this will return a
1751
+ * cached result. This is important since `getValidity()` can be called
1752
+ * frequently in response to synchronous property changes.
1753
+ *
1754
+ * @return The current validity and validation message.
1755
+ */
1756
+ getValidity() {
1757
+ const state = this.getCurrentState();
1758
+ if (!(!this.prevState || !this.equals(this.prevState, state))) return this.currentValidity;
1759
+ const { validity, validationMessage } = this.computeValidity(state);
1760
+ this.prevState = this.copy(state);
1761
+ this.currentValidity = {
1762
+ validationMessage,
1763
+ validity: {
1764
+ badInput: validity.badInput,
1765
+ customError: validity.customError,
1766
+ patternMismatch: validity.patternMismatch,
1767
+ rangeOverflow: validity.rangeOverflow,
1768
+ rangeUnderflow: validity.rangeUnderflow,
1769
+ stepMismatch: validity.stepMismatch,
1770
+ tooLong: validity.tooLong,
1771
+ tooShort: validity.tooShort,
1772
+ typeMismatch: validity.typeMismatch,
1773
+ valueMissing: validity.valueMissing
1774
+ }
1775
+ };
1776
+ return this.currentValidity;
1777
+ }
1778
+ };
1779
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/validators/text-field-validator.js
1780
+ /**
1781
+ * @license
1782
+ * Copyright 2023 Google LLC
1783
+ * SPDX-License-Identifier: Apache-2.0
1784
+ */
1785
+ /**
1786
+ * A validator that provides constraint validation that emulates `<input>` and
1787
+ * `<textarea>` validation.
1788
+ */
1789
+ var TextFieldValidator = class extends Validator {
1790
+ computeValidity({ state, renderedControl }) {
1791
+ let inputOrTextArea = renderedControl;
1792
+ if (isInputState(state) && !inputOrTextArea) {
1793
+ inputOrTextArea = this.inputControl || document.createElement("input");
1794
+ this.inputControl = inputOrTextArea;
1795
+ } else if (!inputOrTextArea) {
1796
+ inputOrTextArea = this.textAreaControl || document.createElement("textarea");
1797
+ this.textAreaControl = inputOrTextArea;
1798
+ }
1799
+ const input = isInputState(state) ? inputOrTextArea : null;
1800
+ if (input) input.type = state.type;
1801
+ if (inputOrTextArea.value !== state.value) inputOrTextArea.value = state.value;
1802
+ inputOrTextArea.required = state.required;
1803
+ if (input) {
1804
+ const inputState = state;
1805
+ if (inputState.pattern) input.pattern = inputState.pattern;
1806
+ else input.removeAttribute("pattern");
1807
+ if (inputState.min) input.min = inputState.min;
1808
+ else input.removeAttribute("min");
1809
+ if (inputState.max) input.max = inputState.max;
1810
+ else input.removeAttribute("max");
1811
+ if (inputState.step) input.step = inputState.step;
1812
+ else input.removeAttribute("step");
1813
+ }
1814
+ if ((state.minLength ?? -1) > -1) inputOrTextArea.setAttribute("minlength", String(state.minLength));
1815
+ else inputOrTextArea.removeAttribute("minlength");
1816
+ if ((state.maxLength ?? -1) > -1) inputOrTextArea.setAttribute("maxlength", String(state.maxLength));
1817
+ else inputOrTextArea.removeAttribute("maxlength");
1818
+ return {
1819
+ validity: inputOrTextArea.validity,
1820
+ validationMessage: inputOrTextArea.validationMessage
1821
+ };
1822
+ }
1823
+ equals({ state: prev }, { state: next }) {
1824
+ const inputOrTextAreaEqual = prev.type === next.type && prev.value === next.value && prev.required === next.required && prev.minLength === next.minLength && prev.maxLength === next.maxLength;
1825
+ if (!isInputState(prev) || !isInputState(next)) return inputOrTextAreaEqual;
1826
+ return inputOrTextAreaEqual && prev.pattern === next.pattern && prev.min === next.min && prev.max === next.max && prev.step === next.step;
1827
+ }
1828
+ copy({ state }) {
1829
+ return {
1830
+ state: isInputState(state) ? this.copyInput(state) : this.copyTextArea(state),
1831
+ renderedControl: null
1832
+ };
1833
+ }
1834
+ copyInput(state) {
1835
+ const { type, pattern, min, max, step } = state;
1836
+ return {
1837
+ ...this.copySharedState(state),
1838
+ type,
1839
+ pattern,
1840
+ min,
1841
+ max,
1842
+ step
1843
+ };
1844
+ }
1845
+ copyTextArea(state) {
1846
+ return {
1847
+ ...this.copySharedState(state),
1848
+ type: state.type
1849
+ };
1850
+ }
1851
+ copySharedState({ value, required, minLength, maxLength }) {
1852
+ return {
1853
+ value,
1854
+ required,
1855
+ minLength,
1856
+ maxLength
1857
+ };
1858
+ }
1859
+ };
1860
+ function isInputState(state) {
1861
+ return state.type !== "textarea";
1862
+ }
1863
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/textfield/internal/text-field.js
1864
+ /**
1865
+ * @license
1866
+ * Copyright 2021 Google LLC
1867
+ * SPDX-License-Identifier: Apache-2.0
1868
+ */
1869
+ var textFieldBaseClass = mixinDelegatesAria(mixinOnReportValidity(mixinConstraintValidation(mixinFormAssociated(mixinElementInternals(i$3)))));
1870
+ /**
1871
+ * A text field component.
1872
+ *
1873
+ * @fires select {Event} The native `select` event on
1874
+ * [`<input>`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select_event)
1875
+ * --bubbles
1876
+ * @fires change {Event} The native `change` event on
1877
+ * [`<input>`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event)
1878
+ * --bubbles
1879
+ * @fires input {InputEvent} The native `input` event on
1880
+ * [`<input>`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event)
1881
+ * --bubbles --composed
1882
+ */
1883
+ var TextField = class extends textFieldBaseClass {
1884
+ constructor() {
1885
+ super(...arguments);
1886
+ /**
1887
+ * Gets or sets whether or not the text field is in a visually invalid state.
1888
+ *
1889
+ * This error state overrides the error state controlled by
1890
+ * `reportValidity()`.
1891
+ */
1892
+ this.error = false;
1893
+ /**
1894
+ * The error message that replaces supporting text when `error` is true. If
1895
+ * `errorText` is an empty string, then the supporting text will continue to
1896
+ * show.
1897
+ *
1898
+ * This error message overrides the error message displayed by
1899
+ * `reportValidity()`.
1900
+ */
1901
+ this.errorText = "";
1902
+ /**
1903
+ * The floating Material label of the textfield component. It informs the user
1904
+ * about what information is requested for a text field. It is aligned with
1905
+ * the input text, is always visible, and it floats when focused or when text
1906
+ * is entered into the textfield. This label also sets accessibilty labels,
1907
+ * but the accessible label is overriden by `aria-label`.
1908
+ *
1909
+ * Learn more about floating labels from the Material Design guidelines:
1910
+ * https://m3.material.io/components/text-fields/guidelines
1911
+ */
1912
+ this.label = "";
1913
+ /**
1914
+ * Disables the asterisk on the floating label, when the text field is
1915
+ * required.
1916
+ */
1917
+ this.noAsterisk = false;
1918
+ /**
1919
+ * Indicates that the user must specify a value for the input before the
1920
+ * owning form can be submitted and will render an error state when
1921
+ * `reportValidity()` is invoked when value is empty. Additionally the
1922
+ * floating label will render an asterisk `"*"` when true.
1923
+ *
1924
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required
1925
+ */
1926
+ this.required = false;
1927
+ /**
1928
+ * The current value of the text field. It is always a string.
1929
+ */
1930
+ this.value = "";
1931
+ /**
1932
+ * An optional prefix to display before the input value.
1933
+ */
1934
+ this.prefixText = "";
1935
+ /**
1936
+ * An optional suffix to display after the input value.
1937
+ */
1938
+ this.suffixText = "";
1939
+ /**
1940
+ * Whether or not the text field has a leading icon. Used for SSR.
1941
+ */
1942
+ this.hasLeadingIcon = false;
1943
+ /**
1944
+ * Whether or not the text field has a trailing icon. Used for SSR.
1945
+ */
1946
+ this.hasTrailingIcon = false;
1947
+ /**
1948
+ * Conveys additional information below the text field, such as how it should
1949
+ * be used.
1950
+ */
1951
+ this.supportingText = "";
1952
+ /**
1953
+ * Override the input text CSS `direction`. Useful for RTL languages that use
1954
+ * LTR notation for fractions.
1955
+ */
1956
+ this.textDirection = "";
1957
+ /**
1958
+ * The number of rows to display for a `type="textarea"` text field.
1959
+ * Defaults to 2.
1960
+ */
1961
+ this.rows = 2;
1962
+ /**
1963
+ * The number of cols to display for a `type="textarea"` text field.
1964
+ * Defaults to 20.
1965
+ */
1966
+ this.cols = 20;
1967
+ this.inputMode = "";
1968
+ /**
1969
+ * Defines the greatest value in the range of permitted values.
1970
+ *
1971
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
1972
+ */
1973
+ this.max = "";
1974
+ /**
1975
+ * The maximum number of characters a user can enter into the text field. Set
1976
+ * to -1 for none.
1977
+ *
1978
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
1979
+ */
1980
+ this.maxLength = -1;
1981
+ /**
1982
+ * Defines the most negative value in the range of permitted values.
1983
+ *
1984
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
1985
+ */
1986
+ this.min = "";
1987
+ /**
1988
+ * The minimum number of characters a user can enter into the text field. Set
1989
+ * to -1 for none.
1990
+ *
1991
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
1992
+ */
1993
+ this.minLength = -1;
1994
+ /**
1995
+ * When true, hide the spinner for `type="number"` text fields.
1996
+ */
1997
+ this.noSpinner = false;
1998
+ /**
1999
+ * A regular expression that the text field's value must match to pass
2000
+ * constraint validation.
2001
+ *
2002
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern
2003
+ */
2004
+ this.pattern = "";
2005
+ /**
2006
+ * Defines the text displayed in the textfield when it has no value. Provides
2007
+ * a brief hint to the user as to the expected type of data that should be
2008
+ * entered into the control. Unlike `label`, the placeholder is not visible
2009
+ * and does not float when the textfield has a value.
2010
+ *
2011
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/placeholder
2012
+ */
2013
+ this.placeholder = "";
2014
+ /**
2015
+ * Indicates whether or not a user should be able to edit the text field's
2016
+ * value.
2017
+ *
2018
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly
2019
+ */
2020
+ this.readOnly = false;
2021
+ /**
2022
+ * Indicates that input accepts multiple email addresses.
2023
+ *
2024
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#multiple
2025
+ */
2026
+ this.multiple = false;
2027
+ /**
2028
+ * Returns or sets the element's step attribute, which works with min and max
2029
+ * to limit the increments at which a numeric or date-time value can be set.
2030
+ *
2031
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step
2032
+ */
2033
+ this.step = "";
2034
+ /**
2035
+ * The `<input>` type to use, defaults to "text". The type greatly changes how
2036
+ * the text field behaves.
2037
+ *
2038
+ * Text fields support a limited number of `<input>` types:
2039
+ *
2040
+ * - text
2041
+ * - textarea
2042
+ * - email
2043
+ * - number
2044
+ * - password
2045
+ * - search
2046
+ * - tel
2047
+ * - url
2048
+ *
2049
+ * See
2050
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
2051
+ * for more details on each input type.
2052
+ */
2053
+ this.type = "text";
2054
+ /**
2055
+ * Describes what, if any, type of autocomplete functionality the input
2056
+ * should provide.
2057
+ *
2058
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
2059
+ */
2060
+ this.autocomplete = "";
2061
+ /**
2062
+ * Returns true when the text field has been interacted with. Native
2063
+ * validation errors only display in response to user interactions.
2064
+ */
2065
+ this.dirty = false;
2066
+ this.focused = false;
2067
+ /**
2068
+ * Whether or not a native error has been reported via `reportValidity()`.
2069
+ */
2070
+ this.nativeError = false;
2071
+ /**
2072
+ * The validation message displayed from a native error via
2073
+ * `reportValidity()`.
2074
+ */
2075
+ this.nativeErrorText = "";
2076
+ }
2077
+ /**
2078
+ * Gets or sets the direction in which selection occurred.
2079
+ */
2080
+ get selectionDirection() {
2081
+ return this.getInputOrTextarea().selectionDirection;
2082
+ }
2083
+ set selectionDirection(value) {
2084
+ this.getInputOrTextarea().selectionDirection = value;
2085
+ }
2086
+ /**
2087
+ * Gets or sets the end position or offset of a text selection.
2088
+ */
2089
+ get selectionEnd() {
2090
+ return this.getInputOrTextarea().selectionEnd;
2091
+ }
2092
+ set selectionEnd(value) {
2093
+ this.getInputOrTextarea().selectionEnd = value;
2094
+ }
2095
+ /**
2096
+ * Gets or sets the starting position or offset of a text selection.
2097
+ */
2098
+ get selectionStart() {
2099
+ return this.getInputOrTextarea().selectionStart;
2100
+ }
2101
+ set selectionStart(value) {
2102
+ this.getInputOrTextarea().selectionStart = value;
2103
+ }
2104
+ /**
2105
+ * The text field's value as a number.
2106
+ */
2107
+ get valueAsNumber() {
2108
+ const input = this.getInput();
2109
+ if (!input) return NaN;
2110
+ return input.valueAsNumber;
2111
+ }
2112
+ set valueAsNumber(value) {
2113
+ const input = this.getInput();
2114
+ if (!input) return;
2115
+ input.valueAsNumber = value;
2116
+ this.value = input.value;
2117
+ }
2118
+ /**
2119
+ * The text field's value as a Date.
2120
+ */
2121
+ get valueAsDate() {
2122
+ const input = this.getInput();
2123
+ if (!input) return null;
2124
+ return input.valueAsDate;
2125
+ }
2126
+ set valueAsDate(value) {
2127
+ const input = this.getInput();
2128
+ if (!input) return;
2129
+ input.valueAsDate = value;
2130
+ this.value = input.value;
2131
+ }
2132
+ get hasError() {
2133
+ return this.error || this.nativeError;
2134
+ }
2135
+ /**
2136
+ * Selects all the text in the text field.
2137
+ *
2138
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select
2139
+ */
2140
+ select() {
2141
+ this.getInputOrTextarea().select();
2142
+ }
2143
+ setRangeText(...args) {
2144
+ this.getInputOrTextarea().setRangeText(...args);
2145
+ this.value = this.getInputOrTextarea().value;
2146
+ }
2147
+ /**
2148
+ * Sets the start and end positions of a selection in the text field.
2149
+ *
2150
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange
2151
+ *
2152
+ * @param start The offset into the text field for the start of the selection.
2153
+ * @param end The offset into the text field for the end of the selection.
2154
+ * @param direction The direction in which the selection is performed.
2155
+ */
2156
+ setSelectionRange(start, end, direction) {
2157
+ this.getInputOrTextarea().setSelectionRange(start, end, direction);
2158
+ }
2159
+ /**
2160
+ * Shows the browser picker for an input element of type "date", "time", etc.
2161
+ *
2162
+ * For a full list of supported types, see:
2163
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/showPicker#browser_compatibility
2164
+ *
2165
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/showPicker
2166
+ */
2167
+ showPicker() {
2168
+ const input = this.getInput();
2169
+ if (!input) return;
2170
+ input.showPicker();
2171
+ }
2172
+ /**
2173
+ * Decrements the value of a numeric type text field by `step` or `n` `step`
2174
+ * number of times.
2175
+ *
2176
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown
2177
+ *
2178
+ * @param stepDecrement The number of steps to decrement, defaults to 1.
2179
+ */
2180
+ stepDown(stepDecrement) {
2181
+ const input = this.getInput();
2182
+ if (!input) return;
2183
+ input.stepDown(stepDecrement);
2184
+ this.value = input.value;
2185
+ }
2186
+ /**
2187
+ * Increments the value of a numeric type text field by `step` or `n` `step`
2188
+ * number of times.
2189
+ *
2190
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepUp
2191
+ *
2192
+ * @param stepIncrement The number of steps to increment, defaults to 1.
2193
+ */
2194
+ stepUp(stepIncrement) {
2195
+ const input = this.getInput();
2196
+ if (!input) return;
2197
+ input.stepUp(stepIncrement);
2198
+ this.value = input.value;
2199
+ }
2200
+ /**
2201
+ * Reset the text field to its default value.
2202
+ */
2203
+ reset() {
2204
+ this.dirty = false;
2205
+ this.value = this.getAttribute("value") ?? "";
2206
+ this.nativeError = false;
2207
+ this.nativeErrorText = "";
2208
+ }
2209
+ attributeChangedCallback(attribute, newValue, oldValue) {
2210
+ if (attribute === "value" && this.dirty) return;
2211
+ super.attributeChangedCallback(attribute, newValue, oldValue);
2212
+ }
2213
+ render() {
2214
+ const classes = {
2215
+ "disabled": this.disabled,
2216
+ "error": !this.disabled && this.hasError,
2217
+ "textarea": this.type === "textarea",
2218
+ "no-spinner": this.noSpinner
2219
+ };
2220
+ return T`
2221
+ <span class="text-field ${e$3(classes)}">
2222
+ ${this.renderField()}
2223
+ </span>
2224
+ `;
2225
+ }
2226
+ updated(changedProperties) {
2227
+ const value = this.getInputOrTextarea().value;
2228
+ if (this.value !== value) this.value = value;
2229
+ }
2230
+ renderField() {
2231
+ return u$1`<${this.fieldTag}
2232
+ class="field"
2233
+ count=${this.value.length}
2234
+ ?disabled=${this.disabled}
2235
+ ?error=${this.hasError}
2236
+ error-text=${this.getErrorText()}
2237
+ ?focused=${this.focused}
2238
+ ?has-end=${this.hasTrailingIcon}
2239
+ ?has-start=${this.hasLeadingIcon}
2240
+ label=${this.label}
2241
+ ?no-asterisk=${this.noAsterisk}
2242
+ max=${this.maxLength}
2243
+ ?populated=${!!this.value}
2244
+ ?required=${this.required}
2245
+ ?resizable=${this.type === "textarea"}
2246
+ supporting-text=${this.supportingText}
2247
+ >
2248
+ ${this.renderLeadingIcon()}
2249
+ ${this.renderInputOrTextarea()}
2250
+ ${this.renderTrailingIcon()}
2251
+ <div id="description" slot="aria-describedby"></div>
2252
+ <slot name="container" slot="container"></slot>
2253
+ </${this.fieldTag}>`;
2254
+ }
2255
+ renderLeadingIcon() {
2256
+ return T`
2257
+ <span class="icon leading" slot="start">
2258
+ <slot name="leading-icon" @slotchange=${this.handleIconChange}></slot>
2259
+ </span>
2260
+ `;
2261
+ }
2262
+ renderTrailingIcon() {
2263
+ return T`
2264
+ <span class="icon trailing" slot="end">
2265
+ <slot name="trailing-icon" @slotchange=${this.handleIconChange}></slot>
2266
+ </span>
2267
+ `;
2268
+ }
2269
+ renderInputOrTextarea() {
2270
+ const style = { "direction": this.textDirection };
2271
+ const ariaLabel = this.ariaLabel || this.label || A;
2272
+ const autocomplete = this.autocomplete;
2273
+ const hasMaxLength = (this.maxLength ?? -1) > -1;
2274
+ const hasMinLength = (this.minLength ?? -1) > -1;
2275
+ if (this.type === "textarea") return T`
2276
+ <textarea
2277
+ class="input"
2278
+ style=${o(style)}
2279
+ aria-describedby="description"
2280
+ aria-invalid=${this.hasError}
2281
+ aria-label=${ariaLabel}
2282
+ autocomplete=${autocomplete || A}
2283
+ name=${this.name || A}
2284
+ ?disabled=${this.disabled}
2285
+ maxlength=${hasMaxLength ? this.maxLength : A}
2286
+ minlength=${hasMinLength ? this.minLength : A}
2287
+ placeholder=${this.placeholder || A}
2288
+ ?readonly=${this.readOnly}
2289
+ ?required=${this.required}
2290
+ rows=${this.rows}
2291
+ cols=${this.cols}
2292
+ .value=${l(this.value)}
2293
+ @change=${this.redispatchEvent}
2294
+ @focus=${this.handleFocusChange}
2295
+ @blur=${this.handleFocusChange}
2296
+ @input=${this.handleInput}
2297
+ @select=${this.redispatchEvent}></textarea>
2298
+ `;
2299
+ const prefix = this.renderPrefix();
2300
+ const suffix = this.renderSuffix();
2301
+ const inputMode = this.inputMode;
2302
+ return T`
2303
+ <div class="input-wrapper">
2304
+ ${prefix}
2305
+ <input
2306
+ class="input"
2307
+ style=${o(style)}
2308
+ aria-describedby="description"
2309
+ aria-invalid=${this.hasError}
2310
+ aria-label=${ariaLabel}
2311
+ autocomplete=${autocomplete || A}
2312
+ name=${this.name || A}
2313
+ ?disabled=${this.disabled}
2314
+ inputmode=${inputMode || A}
2315
+ max=${this.max || A}
2316
+ maxlength=${hasMaxLength ? this.maxLength : A}
2317
+ min=${this.min || A}
2318
+ minlength=${hasMinLength ? this.minLength : A}
2319
+ pattern=${this.pattern || A}
2320
+ placeholder=${this.placeholder || A}
2321
+ ?readonly=${this.readOnly}
2322
+ ?required=${this.required}
2323
+ ?multiple=${this.multiple}
2324
+ step=${this.step || A}
2325
+ type=${this.type}
2326
+ .value=${l(this.value)}
2327
+ @change=${this.redispatchEvent}
2328
+ @focus=${this.handleFocusChange}
2329
+ @blur=${this.handleFocusChange}
2330
+ @input=${this.handleInput}
2331
+ @select=${this.redispatchEvent} />
2332
+ ${suffix}
2333
+ </div>
2334
+ `;
2335
+ }
2336
+ renderPrefix() {
2337
+ return this.renderAffix(this.prefixText, false);
2338
+ }
2339
+ renderSuffix() {
2340
+ return this.renderAffix(this.suffixText, true);
2341
+ }
2342
+ renderAffix(text, isSuffix) {
2343
+ if (!text) return A;
2344
+ return T`<span class="${e$3({
2345
+ "suffix": isSuffix,
2346
+ "prefix": !isSuffix
2347
+ })}">${text}</span>`;
2348
+ }
2349
+ getErrorText() {
2350
+ return this.error ? this.errorText : this.nativeErrorText;
2351
+ }
2352
+ handleFocusChange() {
2353
+ this.focused = this.inputOrTextarea?.matches(":focus") ?? false;
2354
+ }
2355
+ handleInput(event) {
2356
+ this.dirty = true;
2357
+ this.value = event.target.value;
2358
+ }
2359
+ redispatchEvent(event) {
2360
+ redispatchEvent(this, event);
2361
+ }
2362
+ getInputOrTextarea() {
2363
+ if (!this.inputOrTextarea) {
2364
+ this.connectedCallback();
2365
+ this.scheduleUpdate();
2366
+ }
2367
+ if (this.isUpdatePending) this.scheduleUpdate();
2368
+ return this.inputOrTextarea;
2369
+ }
2370
+ getInput() {
2371
+ if (this.type === "textarea") return null;
2372
+ return this.getInputOrTextarea();
2373
+ }
2374
+ handleIconChange() {
2375
+ this.hasLeadingIcon = this.leadingIcons.length > 0;
2376
+ this.hasTrailingIcon = this.trailingIcons.length > 0;
2377
+ }
2378
+ [getFormValue]() {
2379
+ return this.value;
2380
+ }
2381
+ formResetCallback() {
2382
+ this.reset();
2383
+ }
2384
+ formStateRestoreCallback(state) {
2385
+ this.value = state;
2386
+ }
2387
+ focus() {
2388
+ this.getInputOrTextarea().focus();
2389
+ }
2390
+ [createValidator]() {
2391
+ return new TextFieldValidator(() => ({
2392
+ state: this,
2393
+ renderedControl: this.inputOrTextarea
2394
+ }));
2395
+ }
2396
+ [getValidityAnchor]() {
2397
+ return this.inputOrTextarea;
2398
+ }
2399
+ [onReportValidity](invalidEvent) {
2400
+ invalidEvent?.preventDefault();
2401
+ const prevMessage = this.getErrorText();
2402
+ this.nativeError = !!invalidEvent;
2403
+ this.nativeErrorText = this.validationMessage;
2404
+ if (prevMessage === this.getErrorText()) this.field?.reannounceError();
2405
+ }
2406
+ };
2407
+ /** @nocollapse */
2408
+ TextField.shadowRootOptions = {
2409
+ ...i$3.shadowRootOptions,
2410
+ delegatesFocus: true
2411
+ };
2412
+ __decorate([n$2({
2413
+ type: Boolean,
2414
+ reflect: true
2415
+ })], TextField.prototype, "error", void 0);
2416
+ __decorate([n$2({ attribute: "error-text" })], TextField.prototype, "errorText", void 0);
2417
+ __decorate([n$2()], TextField.prototype, "label", void 0);
2418
+ __decorate([n$2({
2419
+ type: Boolean,
2420
+ attribute: "no-asterisk"
2421
+ })], TextField.prototype, "noAsterisk", void 0);
2422
+ __decorate([n$2({
2423
+ type: Boolean,
2424
+ reflect: true
2425
+ })], TextField.prototype, "required", void 0);
2426
+ __decorate([n$2()], TextField.prototype, "value", void 0);
2427
+ __decorate([n$2({ attribute: "prefix-text" })], TextField.prototype, "prefixText", void 0);
2428
+ __decorate([n$2({ attribute: "suffix-text" })], TextField.prototype, "suffixText", void 0);
2429
+ __decorate([n$2({
2430
+ type: Boolean,
2431
+ attribute: "has-leading-icon"
2432
+ })], TextField.prototype, "hasLeadingIcon", void 0);
2433
+ __decorate([n$2({
2434
+ type: Boolean,
2435
+ attribute: "has-trailing-icon"
2436
+ })], TextField.prototype, "hasTrailingIcon", void 0);
2437
+ __decorate([n$2({ attribute: "supporting-text" })], TextField.prototype, "supportingText", void 0);
2438
+ __decorate([n$2({ attribute: "text-direction" })], TextField.prototype, "textDirection", void 0);
2439
+ __decorate([n$2({ type: Number })], TextField.prototype, "rows", void 0);
2440
+ __decorate([n$2({ type: Number })], TextField.prototype, "cols", void 0);
2441
+ __decorate([n$2({ reflect: true })], TextField.prototype, "inputMode", void 0);
2442
+ __decorate([n$2()], TextField.prototype, "max", void 0);
2443
+ __decorate([n$2({ type: Number })], TextField.prototype, "maxLength", void 0);
2444
+ __decorate([n$2()], TextField.prototype, "min", void 0);
2445
+ __decorate([n$2({ type: Number })], TextField.prototype, "minLength", void 0);
2446
+ __decorate([n$2({
2447
+ type: Boolean,
2448
+ attribute: "no-spinner"
2449
+ })], TextField.prototype, "noSpinner", void 0);
2450
+ __decorate([n$2()], TextField.prototype, "pattern", void 0);
2451
+ __decorate([n$2({
2452
+ reflect: true,
2453
+ converter: stringConverter
2454
+ })], TextField.prototype, "placeholder", void 0);
2455
+ __decorate([n$2({
2456
+ type: Boolean,
2457
+ reflect: true
2458
+ })], TextField.prototype, "readOnly", void 0);
2459
+ __decorate([n$2({
2460
+ type: Boolean,
2461
+ reflect: true
2462
+ })], TextField.prototype, "multiple", void 0);
2463
+ __decorate([n$2()], TextField.prototype, "step", void 0);
2464
+ __decorate([n$2({ reflect: true })], TextField.prototype, "type", void 0);
2465
+ __decorate([n$2({ reflect: true })], TextField.prototype, "autocomplete", void 0);
2466
+ __decorate([r$1()], TextField.prototype, "dirty", void 0);
2467
+ __decorate([r$1()], TextField.prototype, "focused", void 0);
2468
+ __decorate([r$1()], TextField.prototype, "nativeError", void 0);
2469
+ __decorate([r$1()], TextField.prototype, "nativeErrorText", void 0);
2470
+ __decorate([e$2(".input")], TextField.prototype, "inputOrTextarea", void 0);
2471
+ __decorate([e$2(".field")], TextField.prototype, "field", void 0);
2472
+ __decorate([o$1({ slot: "leading-icon" })], TextField.prototype, "leadingIcons", void 0);
2473
+ __decorate([o$1({ slot: "trailing-icon" })], TextField.prototype, "trailingIcons", void 0);
2474
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/textfield/internal/outlined-text-field.js
2475
+ /**
2476
+ * @license
2477
+ * Copyright 2021 Google LLC
2478
+ * SPDX-License-Identifier: Apache-2.0
2479
+ */
2480
+ /**
2481
+ * An outlined text field component
2482
+ */
2483
+ var OutlinedTextField = class extends TextField {
2484
+ constructor() {
2485
+ super(...arguments);
2486
+ this.fieldTag = i$5`md-outlined-field`;
2487
+ }
2488
+ };
2489
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/textfield/internal/shared-styles.cssresult.js
2490
+ /**
2491
+ * @license
2492
+ * Copyright 2026 Google LLC
2493
+ * SPDX-License-Identifier: Apache-2.0
2494
+ */
2495
+ var styles = i$2`:host{display:inline-flex;outline:none;resize:both;text-align:start;-webkit-tap-highlight-color:rgba(0,0,0,0)}.text-field,.field{width:100%}.text-field{display:inline-flex}.field{cursor:text}.disabled .field{cursor:default}.text-field,.textarea .field{resize:inherit}slot[name=container]{border-radius:inherit}.icon{color:currentColor;display:flex;align-items:center;justify-content:center;fill:currentColor;position:relative}.icon ::slotted(*){display:flex;position:absolute}[has-start] .icon.leading{font-size:var(--_leading-icon-size);height:var(--_leading-icon-size);width:var(--_leading-icon-size)}[has-end] .icon.trailing{font-size:var(--_trailing-icon-size);height:var(--_trailing-icon-size);width:var(--_trailing-icon-size)}.input-wrapper{display:flex}.input-wrapper>*{all:inherit;padding:0}.input{caret-color:var(--_caret-color);overflow-x:hidden;text-align:inherit}.input::placeholder{color:currentColor;opacity:1}.input::-webkit-calendar-picker-indicator{display:none}.input::-webkit-search-decoration,.input::-webkit-search-cancel-button{display:none}@media(forced-colors: active){.input{background:none}}.no-spinner .input::-webkit-inner-spin-button,.no-spinner .input::-webkit-outer-spin-button{display:none}.no-spinner .input[type=number]{-moz-appearance:textfield}:focus-within .input{caret-color:var(--_focus-caret-color)}.error:focus-within .input{caret-color:var(--_error-focus-caret-color)}.text-field:not(.disabled) .prefix{color:var(--_input-text-prefix-color)}.text-field:not(.disabled) .suffix{color:var(--_input-text-suffix-color)}.text-field:not(.disabled) .input::placeholder{color:var(--_input-text-placeholder-color)}.prefix,.suffix{text-wrap:nowrap;width:min-content}.prefix{padding-inline-end:var(--_input-text-prefix-trailing-space)}.suffix{padding-inline-start:var(--_input-text-suffix-leading-space)}
2496
+ `;
2497
+ styles.styleSheet;
2498
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/textfield/outlined-text-field.js
2499
+ /**
2500
+ * @license
2501
+ * Copyright 2021 Google LLC
2502
+ * SPDX-License-Identifier: Apache-2.0
2503
+ */
2504
+ /**
2505
+ * TODO(b/228525797): Add docs
2506
+ * @final
2507
+ * @suppress {visibility}
2508
+ */
2509
+ var MdOutlinedTextField = class MdOutlinedTextField extends OutlinedTextField {
2510
+ constructor() {
2511
+ super(...arguments);
2512
+ this.fieldTag = i$5`md-outlined-field`;
2513
+ }
2514
+ };
2515
+ MdOutlinedTextField.styles = [styles, styles$1];
2516
+ MdOutlinedTextField = __decorate([t$1("md-outlined-text-field")], MdOutlinedTextField);
126
2517
  // src/lib/components/SessionsPane/StartSessionDialog.svelte
127
2518
  function StartSessionDialog($$renderer, $$props) {
128
2519
  $$renderer.component(($$renderer) => {
@@ -141,13 +2532,25 @@ function StartSessionDialog($$renderer, $$props) {
141
2532
  function SessionsPane($$renderer, $$props) {
142
2533
  $$renderer.component(($$renderer) => {
143
2534
  /** Newest first. */
2535
+ /** Entries in the buffer recorded outside any session. */
2536
+ /** The session the log shows, or `'none'` for the speech outside any session. */
144
2537
  /** Epoch ms, for the duration of the live session. */
145
- let { sessions, currentId, selectedId, now, onSelect, onStart, onEnd } = $$props;
2538
+ /** Only the header buttons show; the list and the heading are hidden. */
2539
+ let { sessions, currentId, outsideEntries, selectedId, now, collapsed = false, onToggleCollapse, onSelect, onStart, onEnd } = $$props;
146
2540
  let startOpen = false;
147
2541
  let endOpen = false;
148
2542
  const toggleLabel = derived(() => currentId === null ? "Start a session" : `End session ${currentId}`);
149
- $$renderer.push(`<section aria-labelledby="sessions-heading" class="svelte-1fz71rn"><header class="svelte-1fz71rn"><h2 id="sessions-heading" class="svelte-1fz71rn">Sessions</h2> <md-icon-button${attr_class(clsx(currentId === null ? "start" : "stop"), "svelte-1fz71rn")}${attr("title", toggleLabel())}${attr("aria-label", toggleLabel())}><md-icon aria-hidden="true">${escape_html(currentId === null ? "play_arrow" : "stop")}</md-icon></md-icon-button></header> `);
150
- if (sessions.length === 0) $$renderer.push(`<!--[0--><p class="empty svelte-1fz71rn">No sessions in the buffer. Start one with the play button.</p>`);
2543
+ const collapseLabel = derived(() => collapsed ? "Expand sessions" : "Collapse sessions");
2544
+ const entries = derived(() => outsideEntries === 1 ? "1 entry" : `${outsideEntries} entries`);
2545
+ function subtitle($$renderer) {
2546
+ $$renderer.push(`<span>${escape_html(entries())}</span>`);
2547
+ }
2548
+ $$renderer.push(`<section aria-labelledby="sessions-heading"${attr_class("svelte-1fz71rn", void 0, { "collapsed": collapsed })}><header class="svelte-1fz71rn">`);
2549
+ if (onToggleCollapse) $$renderer.push(`<!--[0--><md-icon-button class="collapse"${attr("title", collapseLabel())}${attr("aria-label", collapseLabel())}${attr("aria-expanded", !collapsed)}><md-icon aria-hidden="true">${escape_html(collapsed ? "left_panel_open" : "left_panel_close")}</md-icon></md-icon-button>`);
2550
+ else $$renderer.push("<!--[-1-->");
2551
+ $$renderer.push(`<!--]--> <h2 id="sessions-heading"${attr_class("svelte-1fz71rn", void 0, { "visually-hidden": collapsed })}>Sessions</h2> <md-icon-button${attr_class(clsx(currentId === null ? "start" : "stop"), "svelte-1fz71rn")}${attr("title", toggleLabel())}${attr("aria-label", toggleLabel())}><md-icon aria-hidden="true">${escape_html(currentId === null ? "play_arrow" : "stop")}</md-icon></md-icon-button></header> `);
2552
+ if (collapsed) $$renderer.push("<!--[0-->");
2553
+ else if (sessions.length === 0) $$renderer.push(`<!--[1--><p class="empty svelte-1fz71rn">No sessions in the buffer. Start one with the play button.</p>`);
151
2554
  else {
152
2555
  $$renderer.push(`<!--[-1--><ul aria-labelledby="sessions-heading" class="svelte-1fz71rn"><!--[-->`);
153
2556
  const each_array = ensure_array_like(sessions);
@@ -163,6 +2566,19 @@ function SessionsPane($$renderer, $$props) {
163
2566
  }
164
2567
  $$renderer.push(`<!--]--></ul>`);
165
2568
  }
2569
+ $$renderer.push(`<!--]--> `);
2570
+ if (!collapsed && (outsideEntries > 0 || selectedId === "none")) {
2571
+ $$renderer.push(`<!--[0--><ul class="outside svelte-1fz71rn" aria-label="Outside sessions">`);
2572
+ ListItem($$renderer, {
2573
+ title: "Outside sessions",
2574
+ shape: "var(--md-sys-shape-corner-extra-large, 28px)",
2575
+ subtitle,
2576
+ selected: selectedId === OUTSIDE_SESSIONS,
2577
+ description: `Speech captured while no session was running, ${entries()}`,
2578
+ onSelect: () => onSelect(OUTSIDE_SESSIONS)
2579
+ });
2580
+ $$renderer.push(`<!----></ul>`);
2581
+ } else $$renderer.push("<!--[-1-->");
166
2582
  $$renderer.push(`<!--]--></section> `);
167
2583
  StartSessionDialog($$renderer, {
168
2584
  open: startOpen,
@@ -186,25 +2602,30 @@ function _page($$renderer, $$props) {
186
2602
  let { data } = $$props;
187
2603
  const list = derived(() => sessionsStore.loaded ? {
188
2604
  sessions: sessionsStore.sessions,
189
- currentId: sessionsStore.currentId
2605
+ currentId: sessionsStore.currentId,
2606
+ outsideEntries: sessionsStore.outsideEntries
190
2607
  } : data.sessions ?? {
191
2608
  sessions: [],
192
- currentId: null
2609
+ currentId: null,
2610
+ outsideEntries: 0
193
2611
  });
194
2612
  const now = derived(() => sessionsStore.loaded ? sessionsStore.now : data.now);
195
- const selectedId = derived(() => selectedSessionId(page.url.searchParams.get("session"), list().sessions, list().currentId));
2613
+ const selectedId = derived(() => selectedScope(page.url.searchParams.get("session"), list().sessions, list().currentId));
196
2614
  function select(id) {
197
- const live = id === null || id === list().currentId;
198
- return goto(live ? resolve("/") : `${resolve("/")}?session=${id}`, { reset: false });
2615
+ const clean = id === null || id === list().currentId;
2616
+ return goto(clean ? resolve("/") : `${resolve("/")}?session=${id}`, { reset: false });
199
2617
  }
200
2618
  async function start(name, run) {
201
2619
  await sessionsStore.start(name, run);
202
2620
  await select(null);
203
2621
  }
204
- $$renderer.push(`<div class="monitor svelte-1uha8ag"><aside class="svelte-1uha8ag">`);
2622
+ $$renderer.push(`<div class="monitor svelte-1uha8ag"><aside${attr_class("svelte-1uha8ag", void 0, { "collapsed": sessionsPaneStore.collapsed })}>`);
205
2623
  SessionsPane($$renderer, {
2624
+ collapsed: sessionsPaneStore.collapsed,
2625
+ onToggleCollapse: () => sessionsPaneStore.toggle(),
206
2626
  sessions: list().sessions,
207
2627
  currentId: list().currentId,
2628
+ outsideEntries: list().outsideEntries,
208
2629
  selectedId: selectedId(),
209
2630
  now: now(),
210
2631
  onSelect: (id) => void select(id),