- @foreach (var concern in Concerns)
- {
-
-
@concern.Summary
-
-
Severity: @(string.IsNullOrWhiteSpace(concern.Severity) ? "unknown" : concern.Severity)
- @if (!string.IsNullOrWhiteSpace(concern.Onset))
+
+
+
+
+
+
+
-
FHIR Observation bundle
- @if (string.IsNullOrWhiteSpace(BundleJson))
- {
-
Bundle JSON will appear here after extraction.
- }
- else
+ @if (RecentRecords.Count > 0)
{
-
@BundleJson
+
}
-
+
-
-@if (RecentRecords.Count > 0)
-{
-
- Recent captures
-
- @foreach (var record in RecentRecords)
- {
-
-
@record.CreatedAtUtc.ToLocalTime().ToString("g")
-
@(record.SubjectDisplay ?? record.SubjectReference ?? "Unknown subject")
-
- }
-
-
-}
-
@code {
private string SubjectReference { get; set; } = string.Empty;
private string SubjectDisplay { get; set; } = string.Empty;
@@ -679,7 +765,13 @@
if (RecordingSeconds >= MaxRecordingSeconds)
{
- await InvokeAsync(StopRecordingAsync);
+ await InvokeAsync(async () =>
+ {
+ if (IsRecording)
+ {
+ await StopRecordingAsync();
+ }
+ });
return;
}
}
diff --git a/src/AudioSharp.App/Styles/app.css b/src/AudioSharp.App/Styles/app.css
index 20f3373..6dea208 100644
--- a/src/AudioSharp.App/Styles/app.css
+++ b/src/AudioSharp.App/Styles/app.css
@@ -1,524 +1,3 @@
-@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Space+Grotesk:wght@400;500;600;700&display=swap');
-
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
-
-
-:root {
- color-scheme: light;
- --ink-900: #0f172a;
- --ink-700: #1f2a44;
- --ink-500: #5c677d;
- --panel: rgba(255, 255, 255, 0.94);
- --panel-border: rgba(15, 23, 42, 0.08);
- --accent: #ff7a59;
- --accent-strong: #f25c3a;
- --accent-cool: #21b9c5;
- --shadow-lg: 0 35px 80px -55px rgba(15, 23, 42, 0.8);
- --shadow-md: 0 20px 45px -35px rgba(15, 23, 42, 0.55);
-}
-
-html, body {
- height: 100%;
-}
-
-body {
- font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
- color: var(--ink-900);
- background: radial-gradient(circle at top, rgba(255, 230, 205, 0.65), transparent 55%),
- radial-gradient(circle at 15% 25%, rgba(33, 185, 197, 0.22), transparent 45%),
- linear-gradient(120deg, #fdf6f0 0%, #f3f7fb 50%, #fdf9f3 100%);
- margin: 0;
-}
-
-body::before,
-body::after {
- content: "";
- position: fixed;
- border-radius: 50%;
- z-index: 0;
- filter: blur(0px);
-}
-
-body::before {
- width: 420px;
- height: 420px;
- top: -120px;
- right: -120px;
- background: radial-gradient(circle, rgba(255, 122, 89, 0.35), transparent 70%);
-}
-
-body::after {
- width: 360px;
- height: 360px;
- bottom: -120px;
- left: -120px;
- background: radial-gradient(circle, rgba(33, 185, 197, 0.3), transparent 70%);
-}
-
-.page {
- position: relative;
- z-index: 1;
- display: flex;
- min-height: 100vh;
-}
-
-.sidebar {
- background: linear-gradient(160deg, #0b1220, #101b2d);
- color: #f4f6f8;
-}
-
-main {
- flex: 1;
- display: flex;
-}
-
-.content {
- width: 100%;
- max-width: 1200px;
- margin: 0 auto;
-}
-
-.nav-scrollable .nav-item .nav-link {
- color: #d7d7d7;
- background: none;
- border: none;
- border-radius: 4px;
- height: 3rem;
- display: flex;
- align-items: center;
- line-height: 3rem;
- width: 100%;
-}
-
-.nav-scrollable .nav-item .nav-link.active {
- background-color: rgba(255, 255, 255, 0.37);
- color: #fff;
-}
-
-.nav-scrollable .nav-item .nav-link:hover {
- background-color: rgba(255, 255, 255, 0.1);
- color: #fff;
-}
-
-h1, h2 {
- font-family: 'DM Serif Display', 'Times New Roman', serif;
- letter-spacing: 0.01em;
-}
-
-h1 {
- font-size: clamp(2.2rem, 3vw, 3.4rem);
- margin: 0 0 0.6rem 0;
-}
-
-h2 {
- font-size: 1.6rem;
- margin-bottom: 1rem;
-}
-
-p {
- color: var(--ink-700);
-}
-
-.hero-panel {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- gap: 2rem;
- padding: 2rem;
- border-radius: 24px;
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.92));
- border: 1px solid var(--panel-border);
- box-shadow: var(--shadow-lg);
-}
-
-.kicker {
- font-size: 0.8rem;
- text-transform: uppercase;
- letter-spacing: 0.2em;
- color: var(--accent-strong);
- font-weight: 600;
-}
-
-.hero-badges {
- display: flex;
- flex-direction: column;
- gap: 0.6rem;
-}
-
-.pill {
- background: rgba(15, 23, 42, 0.08);
- color: var(--ink-700);
- border-radius: 999px;
- padding: 0.4rem 0.9rem;
- font-size: 0.85rem;
-}
-
-.grid {
- margin-top: 2rem;
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
- gap: 1.5rem;
-}
-
-.panel {
- background: var(--panel);
- border: 1px solid var(--panel-border);
- border-radius: 20px;
- padding: 1.75rem;
- box-shadow: var(--shadow-md);
-}
-
-.panel-wide {
- margin-top: 1.5rem;
-}
-
-.field-grid {
- display: grid;
- grid-template-columns: 1fr;
- gap: 0.75rem;
-}
-
-.field-grid label {
- font-weight: 600;
- color: var(--ink-700);
-}
-
-input, textarea {
- width: 100%;
- padding: 0.7rem 0.9rem;
- border-radius: 12px;
- border: 1px solid rgba(15, 23, 42, 0.15);
- background: #fff;
- font-size: 0.95rem;
-}
-
-textarea {
- resize: vertical;
-}
-
-fast-text-field,
-fast-text-area {
- width: 100%;
-}
-
-fast-text-field::part(control),
-fast-text-area::part(control) {
- width: 100%;
- padding: 0.7rem 0.9rem;
- border-radius: 12px;
- border: 1px solid rgba(15, 23, 42, 0.15);
- background: #fff;
- color: var(--ink-900);
- font-size: 0.95rem;
- box-sizing: border-box;
-}
-
-fast-text-area::part(control) {
- resize: vertical;
-}
-
-fast-button::part(control):focus-visible,
-fast-text-field::part(control):focus-visible,
-fast-text-area::part(control):focus-visible,
-input:focus-visible,
-textarea:focus-visible,
-.nav-scrollable .nav-item .nav-link:focus-visible {
- outline: 2px solid var(--accent-cool);
- outline-offset: 2px;
- box-shadow: 0 0 0 3px rgba(33, 185, 197, 0.3);
-}
-
-@supports not selector(:focus-visible) {
- fast-button::part(control):focus,
- fast-text-field::part(control):focus,
- fast-text-area::part(control):focus,
- input:focus,
- textarea:focus,
- .nav-scrollable .nav-item .nav-link:focus {
- outline: 2px solid var(--accent-cool);
- outline-offset: 2px;
- box-shadow: 0 0 0 3px rgba(33, 185, 197, 0.3);
- }
-}
-
-.button-row {
- display: flex;
- flex-wrap: wrap;
- gap: 0.75rem;
- margin: 1rem 0;
-}
-
-.timer-row {
- display: flex;
- align-items: center;
- gap: 0.75rem;
- font-size: 0.9rem;
- color: var(--ink-500);
-}
-
-.timer-label {
- font-weight: 600;
- color: var(--ink-700);
-}
-
-.timer-value {
- background: rgba(15, 23, 42, 0.06);
- padding: 0.2rem 0.6rem;
- border-radius: 999px;
-}
-
-.timer-hint {
- margin-left: auto;
- font-size: 0.8rem;
- text-transform: uppercase;
- letter-spacing: 0.08em;
-}
-
-fast-button::part(control) {
- font-family: inherit;
- padding: 0.6rem 1.1rem;
- border-radius: 999px;
- border: 1px solid transparent;
- font-size: 0.95rem;
-}
-
-fast-button.btn-primary::part(control) {
- background: var(--accent);
- border-color: var(--accent-strong);
- color: #fff;
- box-shadow: 0 10px 25px -20px rgba(255, 122, 89, 0.9);
-}
-
-fast-button.btn-primary::part(control):hover {
- background: var(--accent-strong);
- border-color: var(--accent-strong);
-}
-
-fast-button.btn-outline-light::part(control) {
- border-color: rgba(15, 23, 42, 0.2);
- color: var(--ink-700);
- background: transparent;
-}
-
-.upload-zone {
- padding: 1rem;
- border-radius: 14px;
- border: 1px dashed rgba(15, 23, 42, 0.2);
- background: rgba(247, 248, 252, 0.8);
-}
-
-.status-line {
- display: flex;
- align-items: center;
- gap: 0.6rem;
- margin-top: 1rem;
- font-weight: 600;
-}
-
-.status-dot {
- width: 10px;
- height: 10px;
- border-radius: 50%;
- display: inline-block;
- background: rgba(15, 23, 42, 0.4);
-}
-
-.status-dot[data-state="recording"] {
- background: #ff3e4d;
- box-shadow: 0 0 0 6px rgba(255, 62, 77, 0.15);
-}
-
-.status-dot[data-state="processing"] {
- background: #f7b731;
- box-shadow: 0 0 0 6px rgba(247, 183, 49, 0.15);
-}
-
-.status-dot[data-state="ready"] {
- background: #2ecc71;
- box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.15);
-}
-
-.status-dot[data-state="error"] {
- background: #c0392b;
- box-shadow: 0 0 0 6px rgba(192, 57, 43, 0.15);
-}
-
-.muted {
- color: var(--ink-500);
- font-size: 0.9rem;
-}
-
-.transcript-block {
- display: flex;
- flex-direction: column;
- gap: 0.75rem;
-}
-
-.concern-list {
- display: flex;
- flex-direction: column;
- gap: 1rem;
-}
-
-.concern-card {
- padding: 1rem;
- border-radius: 16px;
- background: #fff;
- border: 1px solid rgba(15, 23, 42, 0.08);
-}
-
-.concern-title {
- font-weight: 600;
- margin-bottom: 0.4rem;
-}
-
-.concern-meta {
- display: flex;
- flex-wrap: wrap;
- gap: 0.6rem;
- font-size: 0.85rem;
- color: var(--ink-500);
-}
-
-.concern-detail {
- margin-top: 0.4rem;
- color: var(--ink-700);
-}
-
-.concern-quote {
- margin-top: 0.6rem;
- padding-left: 0.8rem;
- border-left: 3px solid rgba(255, 122, 89, 0.6);
- color: var(--ink-500);
- font-style: italic;
-}
-
-.followup-panel {
- margin-top: 1rem;
- padding: 1rem;
- border-radius: 16px;
- background: rgba(255, 255, 255, 0.9);
- border: 1px solid rgba(15, 23, 42, 0.08);
-}
-
-.followup-header {
- display: flex;
- justify-content: space-between;
- gap: 1rem;
- align-items: flex-start;
-}
-
-.followup-actions {
- margin: 0;
-}
-
-.followup-title {
- font-weight: 600;
- color: var(--ink-700);
-}
-
-.followup-list {
- display: flex;
- flex-direction: column;
- gap: 0.9rem;
- margin-top: 1rem;
-}
-
-.followup-item {
- padding: 0.9rem;
- border-radius: 14px;
- border: 1px solid rgba(15, 23, 42, 0.08);
- background: #fff;
-}
-
-.followup-label {
- font-size: 0.85rem;
- text-transform: uppercase;
- letter-spacing: 0.08em;
- color: var(--ink-500);
-}
-
-.followup-question {
- margin: 0.3rem 0 0.6rem;
- font-weight: 600;
- color: var(--ink-700);
-}
-
-.section-title {
- margin-top: 2rem;
-}
-
-.json-block {
- background: #0f172a;
- color: #e2e8f0;
- padding: 1rem;
- border-radius: 14px;
- max-height: 320px;
- overflow: auto;
-}
-
-.recent-grid {
- display: grid;
- gap: 1rem;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
-}
-
-.recent-card {
- padding: 1rem;
- border-radius: 14px;
- background: #fff;
- border: 1px solid rgba(15, 23, 42, 0.08);
-}
-
-.recent-title {
- font-weight: 600;
-}
-
-.recent-subtitle {
- color: var(--ink-500);
- margin-top: 0.3rem;
-}
-
-@media (max-width: 900px) {
- .hero-panel {
- flex-direction: column;
- }
-}
-
-@media (max-width: 640px) {
- .sidebar {
- position: sticky;
- top: 0;
- z-index: 2;
- width: 100%;
- }
-
- .page {
- flex-direction: column;
- }
-
- .content {
- padding: 1.5rem 1rem;
- }
-
- .followup-header {
- flex-direction: column;
- align-items: stretch;
- }
-}
-
-.blazor-error-boundary {
- background: #c0392b;
- color: #fff;
- padding: 1rem;
- border-radius: 12px;
- margin: 1rem 0;
-}
-
-#blazor-error-ui {
- background: #1f2a44;
- color: #fff;
- padding: 0.75rem 1rem;
-}
+@import "../../../packages/tailwind-theme/fonts.css";
+@import "tailwindcss";
+@import "../../../packages/tailwind-theme/theme.css";
diff --git a/src/AudioSharp.App/wwwroot/app.css b/src/AudioSharp.App/wwwroot/app.css
index c90a516..21446d4 100644
--- a/src/AudioSharp.App/wwwroot/app.css
+++ b/src/AudioSharp.App/wwwroot/app.css
@@ -1,2 +1,2 @@
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
-@import "https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Space+Grotesk:wght@400;500;600;700&display=swap";@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.static{position:static}.sticky{position:sticky}.container{width:100%}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.resize{resize:both}.resize\!{resize:both!important}.flex-col{flex-direction:column}.items-center{align-items:center}.rounded-full{border-radius:3.40282e38px}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}:root{color-scheme:light;--ink-900:#0f172a;--ink-700:#1f2a44;--ink-500:#5c677d;--panel:#fffffff0;--panel-border:#0f172a14;--accent:#ff7a59;--accent-strong:#f25c3a;--accent-cool:#21b9c5;--shadow-lg:0 35px 80px -55px #0f172acc;--shadow-md:0 20px 45px -35px #0f172a8c}html,body{height:100%}body{color:var(--ink-900);background:radial-gradient(circle at top,#ffe6cda6,#0000 55%),radial-gradient(circle at 15% 25%,#21b9c538,#0000 45%),linear-gradient(120deg,#fdf6f0 0%,#f3f7fb 50%,#fdf9f3 100%);margin:0;font-family:Space Grotesk,Segoe UI,sans-serif}body:before,body:after{content:"";z-index:0;filter:blur();border-radius:50%;position:fixed}body:before{background:radial-gradient(circle,#ff7a5959,#0000 70%);width:420px;height:420px;top:-120px;right:-120px}body:after{background:radial-gradient(circle,#21b9c54d,#0000 70%);width:360px;height:360px;bottom:-120px;left:-120px}.page{z-index:1;min-height:100vh;display:flex;position:relative}.sidebar{color:#f4f6f8;background:linear-gradient(160deg,#0b1220,#101b2d)}main{flex:1;display:flex}.content{width:100%;max-width:1200px;margin:0 auto}.nav-scrollable .nav-item .nav-link{color:#d7d7d7;background:0 0;border:none;border-radius:4px;align-items:center;width:100%;height:3rem;line-height:3rem;display:flex}.nav-scrollable .nav-item .nav-link.active{color:#fff;background-color:#ffffff5e}.nav-scrollable .nav-item .nav-link:hover{color:#fff;background-color:#ffffff1a}h1,h2{letter-spacing:.01em;font-family:DM Serif Display,Times New Roman,serif}h1{margin:0 0 .6rem;font-size:clamp(2.2rem,3vw,3.4rem)}h2{margin-bottom:1rem;font-size:1.6rem}p{color:var(--ink-700)}.hero-panel{border:1px solid var(--panel-border);box-shadow:var(--shadow-lg);background:linear-gradient(135deg,#ffffffeb,#f7faffeb);border-radius:24px;justify-content:space-between;align-items:flex-start;gap:2rem;padding:2rem;display:flex}.kicker{text-transform:uppercase;letter-spacing:.2em;color:var(--accent-strong);font-size:.8rem;font-weight:600}.hero-badges{flex-direction:column;gap:.6rem;display:flex}.pill{color:var(--ink-700);background:#0f172a14;border-radius:999px;padding:.4rem .9rem;font-size:.85rem}.grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;margin-top:2rem;display:grid}.panel{background:var(--panel);border:1px solid var(--panel-border);box-shadow:var(--shadow-md);border-radius:20px;padding:1.75rem}.panel-wide{margin-top:1.5rem}.field-grid{grid-template-columns:1fr;gap:.75rem;display:grid}.field-grid label{color:var(--ink-700);font-weight:600}input,textarea{background:#fff;border:1px solid #0f172a26;border-radius:12px;width:100%;padding:.7rem .9rem;font-size:.95rem}textarea{resize:vertical}fast-text-field,fast-text-area{width:100%}fast-text-field::part(control),fast-text-area::part(control){width:100%;color:var(--ink-900);box-sizing:border-box;background:#fff;border:1px solid #0f172a26;border-radius:12px;padding:.7rem .9rem;font-size:.95rem}fast-text-area::part(control){resize:vertical}fast-button::part(control):focus-visible,fast-text-field::part(control):focus-visible,fast-text-area::part(control):focus-visible,input:focus-visible,textarea:focus-visible,.nav-scrollable .nav-item .nav-link:focus-visible{outline:2px solid var(--accent-cool);outline-offset:2px;box-shadow:0 0 0 3px #21b9c54d}@supports not selector(:focus-visible){fast-button::part(control):focus,fast-text-field::part(control):focus,fast-text-area::part(control):focus,input:focus,textarea:focus,.nav-scrollable .nav-item .nav-link:focus{outline:2px solid var(--accent-cool);outline-offset:2px;box-shadow:0 0 0 3px #21b9c54d}}.button-row{flex-wrap:wrap;gap:.75rem;margin:1rem 0;display:flex}.timer-row{color:var(--ink-500);align-items:center;gap:.75rem;font-size:.9rem;display:flex}.timer-label{color:var(--ink-700);font-weight:600}.timer-value{background:#0f172a0f;border-radius:999px;padding:.2rem .6rem}.timer-hint{text-transform:uppercase;letter-spacing:.08em;margin-left:auto;font-size:.8rem}fast-button::part(control){border:1px solid #0000;border-radius:999px;padding:.6rem 1.1rem;font-family:inherit;font-size:.95rem}fast-button.btn-primary::part(control){background:var(--accent);border-color:var(--accent-strong);color:#fff;box-shadow:0 10px 25px -20px #ff7a59e6}fast-button.btn-primary::part(control):hover{background:var(--accent-strong);border-color:var(--accent-strong)}fast-button.btn-outline-light::part(control){color:var(--ink-700);background:0 0;border-color:#0f172a33}.upload-zone{background:#f7f8fccc;border:1px dashed #0f172a33;border-radius:14px;padding:1rem}.status-line{align-items:center;gap:.6rem;margin-top:1rem;font-weight:600;display:flex}.status-dot{background:#0f172a66;border-radius:50%;width:10px;height:10px;display:inline-block}.status-dot[data-state=recording]{background:#ff3e4d;box-shadow:0 0 0 6px #ff3e4d26}.status-dot[data-state=processing]{background:#f7b731;box-shadow:0 0 0 6px #f7b73126}.status-dot[data-state=ready]{background:#2ecc71;box-shadow:0 0 0 6px #2ecc7126}.status-dot[data-state=error]{background:#c0392b;box-shadow:0 0 0 6px #c0392b26}.muted{color:var(--ink-500);font-size:.9rem}.transcript-block{flex-direction:column;gap:.75rem;display:flex}.concern-list{flex-direction:column;gap:1rem;display:flex}.concern-card{background:#fff;border:1px solid #0f172a14;border-radius:16px;padding:1rem}.concern-title{margin-bottom:.4rem;font-weight:600}.concern-meta{color:var(--ink-500);flex-wrap:wrap;gap:.6rem;font-size:.85rem;display:flex}.concern-detail{color:var(--ink-700);margin-top:.4rem}.concern-quote{color:var(--ink-500);border-left:3px solid #ff7a5999;margin-top:.6rem;padding-left:.8rem;font-style:italic}.followup-panel{background:#ffffffe6;border:1px solid #0f172a14;border-radius:16px;margin-top:1rem;padding:1rem}.followup-header{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.followup-actions{margin:0}.followup-title{color:var(--ink-700);font-weight:600}.followup-list{flex-direction:column;gap:.9rem;margin-top:1rem;display:flex}.followup-item{background:#fff;border:1px solid #0f172a14;border-radius:14px;padding:.9rem}.followup-label{text-transform:uppercase;letter-spacing:.08em;color:var(--ink-500);font-size:.85rem}.followup-question{color:var(--ink-700);margin:.3rem 0 .6rem;font-weight:600}.section-title{margin-top:2rem}.json-block{color:#e2e8f0;background:#0f172a;border-radius:14px;max-height:320px;padding:1rem;overflow:auto}.recent-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;display:grid}.recent-card{background:#fff;border:1px solid #0f172a14;border-radius:14px;padding:1rem}.recent-title{font-weight:600}.recent-subtitle{color:var(--ink-500);margin-top:.3rem}@media (max-width:900px){.hero-panel{flex-direction:column}}@media (max-width:640px){.sidebar{z-index:2;width:100%;position:sticky;top:0}.page{flex-direction:column}.content{padding:1.5rem 1rem}.followup-header{flex-direction:column;align-items:stretch}}.blazor-error-boundary{color:#fff;background:#c0392b;border-radius:12px;margin:1rem 0;padding:1rem}#blazor-error-ui{color:#fff;background:#1f2a44;padding:.75rem 1rem}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"
";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
\ No newline at end of file
+@import "https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap";@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:"Noto Sans","Segoe UI",system-ui,sans-serif;--font-mono:"Noto Sans","Segoe UI",system-ui,sans-serif;--color-red-600:oklch(57.7% .245 27.325);--color-amber-400:oklch(82.8% .189 84.429);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-semibold:600;--tracking-tight:-.025em;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-ink-950:#111827;--color-ink-900:#1f2937;--color-ink-700:#4b5563;--color-ink-500:#6b7280;--color-brand-200:#fde68a;--color-brand-300:#fcd34d;--color-brand-400:#fbbf24;--color-brand-500:#f59e0b;--color-brand-600:#d97706;--color-accent-200:#fde68a;--color-accent-400:#f59e0b;--color-surface:#fff;--color-surface-soft:#f8fafc;--radius-card:0px}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root,.dark{color-scheme:light;--background:#f8fafc;--foreground:var(--color-ink-950);--card:var(--color-surface);--card-foreground:var(--color-ink-950);--popover:var(--color-surface);--popover-foreground:var(--color-ink-950);--primary:var(--color-brand-500);--primary-foreground:#fff;--secondary:var(--color-surface-soft);--secondary-foreground:var(--color-ink-950);--muted:var(--color-surface-soft);--muted-foreground:var(--color-ink-700);--accent:var(--color-accent-400);--accent-foreground:#fff;--destructive:#ef4444;--destructive-foreground:#f8fafc;--border:#e5e7eb;--input:#e5e7eb;--ring:var(--color-accent-400);--radius:0px;--radius-sm:0px;--radius-md:0px;--radius-lg:0px;--radius-xl:0px;--radius-2xl:0px;--radius-3xl:0px;--font-sans:"Noto Sans","Segoe UI",system-ui,sans-serif;--font-display:"Noto Sans","Segoe UI",system-ui,sans-serif;--font-mono:"Noto Sans","Segoe UI",system-ui,sans-serif}html,body{height:100%}body{font-family:var(--font-sans);color:var(--color-ink-950);background:radial-gradient(circle at 12% 16%,#f59e0b14,#0000 60%),radial-gradient(circle at 86% 12%,#fbbf241a,#0000 58%),linear-gradient(#f9fafb 0%,#fff 55%,#f8fafc 100%);margin:0}body:before,body:after{content:"";z-index:0;pointer-events:none;border-radius:999px;position:fixed}body:before{background:radial-gradient(circle,#f59e0b29,#0000 70%);width:320px;height:320px;top:-120px;right:-140px}body:after{background:radial-gradient(circle,#fbbf2424,#0000 70%);width:300px;height:300px;bottom:-140px;left:-140px}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.top-2{top:calc(var(--spacing)*2)}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.bottom-4{bottom:calc(var(--spacing)*4)}.left-1{left:calc(var(--spacing)*1)}.left-4{left:calc(var(--spacing)*4)}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-8{margin-top:calc(var(--spacing)*8)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-\[calc\(100\%-0\.5rem\)\]{height:calc(100% - .5rem)}.max-h-80{max-height:calc(var(--spacing)*80)}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing)*1.5)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-44{width:calc(var(--spacing)*44)}.w-full{width:100%}.w-px{width:1px}.max-w-6xl{max-width:var(--container-6xl)}.flex-1{flex:1}.cursor-pointer{cursor:pointer}.scroll-mt-24{scroll-margin-top:calc(var(--spacing)*24)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-10{gap:calc(var(--spacing)*10)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-card{border-radius:var(--radius-card)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-black\/20{border-color:#0003}@supports (color:color-mix(in lab, red, red)){.border-black\/20{border-color:color-mix(in oklab,var(--color-black)20%,transparent)}}.border-brand-300\/40{border-color:#fcd34d66}@supports (color:color-mix(in lab, red, red)){.border-brand-300\/40{border-color:color-mix(in oklab,var(--color-brand-300)40%,transparent)}}.border-brand-300\/80{border-color:#fcd34dcc}@supports (color:color-mix(in lab, red, red)){.border-brand-300\/80{border-color:color-mix(in oklab,var(--color-brand-300)80%,transparent)}}.border-emerald-400{border-color:var(--color-emerald-400)}.border-rose-400{border-color:var(--color-rose-400)}.border-white\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.border-white\/10{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-black\/20{background-color:#0003}@supports (color:color-mix(in lab, red, red)){.bg-black\/20{background-color:color-mix(in oklab,var(--color-black)20%,transparent)}}.bg-brand-500{background-color:var(--color-brand-500)}.bg-brand-500\/10{background-color:#f59e0b1a}@supports (color:color-mix(in lab, red, red)){.bg-brand-500\/10{background-color:color-mix(in oklab,var(--color-brand-500)10%,transparent)}}.bg-brand-500\/60{background-color:#f59e0b99}@supports (color:color-mix(in lab, red, red)){.bg-brand-500\/60{background-color:color-mix(in oklab,var(--color-brand-500)60%,transparent)}}.bg-brand-500\/80{background-color:#f59e0bcc}@supports (color:color-mix(in lab, red, red)){.bg-brand-500\/80{background-color:color-mix(in oklab,var(--color-brand-500)80%,transparent)}}.bg-ink-950{background-color:var(--color-ink-950)}.bg-ink-950\/95{background-color:#111827f2}@supports (color:color-mix(in lab, red, red)){.bg-ink-950\/95{background-color:color-mix(in oklab,var(--color-ink-950)95%,transparent)}}.bg-surface{background-color:var(--color-surface)}.bg-surface-soft{background-color:var(--color-surface-soft)}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-8{padding-top:calc(var(--spacing)*8)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-16{padding-bottom:calc(var(--spacing)*16)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.leading-\[1\.05\]{--tw-leading:1.05;line-height:1.05}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.02em\]{--tw-tracking:-.02em;letter-spacing:-.02em}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-brand-300{color:var(--color-brand-300)}.text-brand-500{color:var(--color-brand-500)}.text-ink-500{color:var(--color-ink-500)}.text-ink-700{color:var(--color-ink-700)}.text-ink-900{color:var(--color-ink-900)}.text-ink-950{color:var(--color-ink-950)}.text-red-600{color:var(--color-red-600)}.text-white\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\/60{color:color-mix(in oklab,var(--color-white)60%,transparent)}}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.text-white\/70{color:color-mix(in oklab,var(--color-white)70%,transparent)}}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\/80{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\/90{color:color-mix(in oklab,var(--color-white)90%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.decoration-brand-300\/70{text-decoration-color:#fcd34db3}@supports (color:color-mix(in lab, red, red)){.decoration-brand-300\/70{-webkit-text-decoration-color:color-mix(in oklab,var(--color-brand-300)70%,transparent);-webkit-text-decoration-color:color-mix(in oklab,var(--color-brand-300)70%,transparent);text-decoration-color:color-mix(in oklab,var(--color-brand-300)70%,transparent)}}.underline-offset-4{text-underline-offset:4px}.shadow-card{--tw-shadow:0 18px 40px -25px var(--tw-shadow-color,#1118271f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-raise{--tw-shadow:0 12px 22px -14px var(--tw-shadow-color,#f59e0b59);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.group-hover\:bg-brand-500:is(:where(.group):hover *){background-color:var(--color-brand-500)}}.file\:mr-4::file-selector-button{margin-right:calc(var(--spacing)*4)}.file\:rounded-none::file-selector-button{border-radius:0}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-brand-500::file-selector-button{background-color:var(--color-brand-500)}.file\:px-4::file-selector-button{padding-inline:calc(var(--spacing)*4)}.file\:py-2::file-selector-button{padding-block:calc(var(--spacing)*2)}.file\:text-xs::file-selector-button{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.file\:font-semibold::file-selector-button{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.file\:text-ink-950::file-selector-button{color:var(--color-ink-950)}.placeholder\:text-ink-500::placeholder{color:var(--color-ink-500)}@media (hover:hover){.hover\:border-black\/40:hover{border-color:#0006}@supports (color:color-mix(in lab, red, red)){.hover\:border-black\/40:hover{border-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.hover\:bg-brand-400:hover{background-color:var(--color-brand-400)}.hover\:text-ink-900:hover{color:var(--color-ink-900)}.hover\:text-white:hover{color:var(--color-white)}.hover\:file\:bg-brand-400:hover::file-selector-button{background-color:var(--color-brand-400)}}.focus\:border-accent-400:focus{border-color:var(--color-accent-400)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-accent-200:focus{--tw-ring-color:var(--color-accent-200)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-accent-200:focus-visible{--tw-ring-color:var(--color-accent-200)}.focus-visible\:ring-brand-200:focus-visible{--tw-ring-color:var(--color-brand-200)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.data-\[state\=error\]\:bg-red-600[data-state=error]{background-color:var(--color-red-600)}.data-\[state\=error\]\:shadow-\[0_0_0_6px_rgba\(220\,38\,38\,0\.2\)\][data-state=error]{--tw-shadow:0 0 0 6px var(--tw-shadow-color,#dc262633);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=processing\]\:bg-amber-400[data-state=processing]{background-color:var(--color-amber-400)}.data-\[state\=processing\]\:shadow-\[0_0_0_6px_rgba\(251\,191\,36\,0\.25\)\][data-state=processing]{--tw-shadow:0 0 0 6px var(--tw-shadow-color,#fbbf2440);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=ready\]\:bg-emerald-500[data-state=ready]{background-color:var(--color-emerald-500)}.data-\[state\=ready\]\:shadow-\[0_0_0_6px_rgba\(16\,185\,129\,0\.2\)\][data-state=ready]{--tw-shadow:0 0 0 6px var(--tw-shadow-color,#10b98133);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=recording\]\:bg-rose-500[data-state=recording]{background-color:var(--color-rose-500)}.data-\[state\=recording\]\:shadow-\[0_0_0_6px_rgba\(244\,63\,94\,0\.2\)\][data-state=recording]{--tw-shadow:0 0 0 6px var(--tw-shadow-color,#f43f5e33);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media (min-width:40rem){.sm\:right-6{right:calc(var(--spacing)*6)}.sm\:left-auto{left:auto}.sm\:ml-auto{margin-left:auto}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:p-5{padding:calc(var(--spacing)*5)}.sm\:px-8{padding-inline:calc(var(--spacing)*8)}.sm\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}@media (min-width:48rem){.md\:flex{display:flex}.md\:hidden{display:none}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}.md\:justify-between{justify-content:space-between}}@media (min-width:64rem){.lg\:grid-cols-\[minmax\(0\,320px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,320px) minmax(0,1fr)}.lg\:px-12{padding-inline:calc(var(--spacing)*12)}.lg\:text-\[3\.75rem\]{font-size:3.75rem}}@media (min-width:80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.rounded,.rounded-sm,.rounded-md,.rounded-lg,.rounded-xl,.rounded-2xl,.rounded-3xl,.rounded-full,.rounded-card{border-radius:0}.file\:rounded-full::file-selector-button{border-radius:0}.animate-rise{animation:.7s cubic-bezier(.16,1,.3,1) both rise-in}.animate-float{animation:10s ease-in-out infinite float}}@keyframes rise-in{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%{transform:translateY(0)}50%{transform:translateY(-12px)}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.animate-rise,.animate-float{animation:none}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}
\ No newline at end of file
diff --git a/src/AudioSharp.App/wwwroot/lib/fast/fast-components.min.js b/src/AudioSharp.App/wwwroot/lib/fast/fast-components.min.js
deleted file mode 100644
index c52229b..0000000
--- a/src/AudioSharp.App/wwwroot/lib/fast/fast-components.min.js
+++ /dev/null
@@ -1,216 +0,0 @@
-const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(t){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(t,e)=>e});const e={configurable:!1,enumerable:!1,writable:!1};void 0===t.FAST&&Reflect.defineProperty(t,"FAST",Object.assign({value:Object.create(null)},e));const i=t.FAST;if(void 0===i.getById){const t=Object.create(null);Reflect.defineProperty(i,"getById",Object.assign({value(e,i){let o=t[e];return void 0===o&&(o=i?t[e]=i():null),o}},e))}const o=Object.freeze([]),s=t.FAST.getById(1,()=>{const e=[],i=[];function o(){if(i.length)throw i.shift()}function s(t){try{t.call()}catch(t){i.push(t),setTimeout(o,0)}}function n(){let t=0;for(;t1024){for(let i=0,o=e.length-t;it});let r=n;const a="fast-"+Math.random().toString(36).substring(2,8),l=a+"{",c="}"+a,h=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(r!==n)throw new Error("The HTML policy can only be set once.");r=t},createHTML:t=>r.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(a),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(a+":","")),createInterpolationPlaceholder:t=>`${l}${t}${c}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${a}:${t}--\x3e`,queueUpdate:s.enqueue,processUpdates:s.process,nextUpdate:()=>new Promise(s.enqueue),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});function d(t){const e=this.spillover;-1===e.indexOf(t)&&e.push(t)}function u(t){const e=this.spillover,i=e.indexOf(t);-1!==i&&e.splice(i,1)}function p(t){const e=this.spillover,i=this.source;for(let o=0,s=e.length;o{const t=/(:|&&|\|\||if)/,e=new WeakMap,i=new WeakMap,o=h.queueUpdate;let s=void 0,n=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(t){let i=t.$fastController||e.get(t);return void 0===i&&(Array.isArray(t)?i=n(t):e.set(t,i=new f(t))),i}function a(t){let e=i.get(t);if(void 0===e){let o=Reflect.getPrototypeOf(t);for(;void 0===e&&null!==o;)e=i.get(o),o=Reflect.getPrototypeOf(o);e=void 0===e?[]:e.slice(0),i.set(t,e)}return e}class l{constructor(t){this.name=t,this.field="_"+t,this.callback=t+"Changed"}getValue(t){return void 0!==s&&s.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),r(t).notify(this.name)}}}class c extends m{constructor(t,e,i=!1){super(t,e),this.binding=t,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return s=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=r(t),n=null===i?this.first:{};if(n.propertySource=t,n.propertyName=e,n.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;s=void 0,e=i.propertySource[i.propertyName],s=this,t===e&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,o(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(t){n=t},getNotifier:r,track(t,e){void 0!==s&&s.watch(t,e)},trackVolatile(){void 0!==s&&(s.needsRefresh=!0)},notify(t,e){r(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new l(e)),a(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:a,binding(t,e,i=this.isVolatileBinding(t)){return new c(t,e,i)},isVolatileBinding:e=>t.test(e.toString())})});function v(t,e){b.defineProperty(t,e)}const y=i.getById(3,()=>{let t=null;return{get:()=>t,set(e){t=e}}});class x{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return y.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){y.set(t)}}b.defineProperty(x.prototype,"index"),b.defineProperty(x.prototype,"length");const $=Object.seal(new x);class w{constructor(){this.targetIndex=0}}class k extends w{constructor(){super(...arguments),this.createPlaceholder=h.createInterpolationPlaceholder}}class C extends w{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return h.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function I(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=b.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function T(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function F(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function E(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function S(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function O(t){h.setAttribute(this.target,this.targetName,t)}function D(t){h.setBooleanAttribute(this.target,this.targetName,t)}function R(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function L(t){this.target[this.targetName]=t}function A(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;th.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=D;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=T,this.unbind=S;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=A)}}targetAtContent(){this.updateTarget=R,this.unbind=E}createBehavior(t){return new z(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class z{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){x.setEvent(t);const e=this.binding(this.source,this.context);x.setEvent(null),!0!==e&&t.preventDefault()}}let P=null;class H{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){P=this}static borrow(t){const e=P||new H;return e.directives=t,e.reset(),P=null,e}}function M(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map(t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding)),s=new V((t,e)=>{let s="";for(let n=0;na),c.targetName=r.name):c=M(l),null!==c&&(e.removeAttributeNode(r),s--,n--,t.addFactory(c))}}function q(t,e,i){const o=N(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n0}const e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=h.createTemplateWalker(e);let n=0,r=this.targetOffset,a=s.nextNode();for(let t=i.length;n=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function K(t,...e){const i=[];let o="";for(let s=0,n=t.length-1;st}if("function"==typeof r&&(r=new V(r)),r instanceof k){const t=W.exec(n);null!==t&&(r.targetName=t[2])}r instanceof w?(o+=r.createPlaceholder(i.length),i.push(r)):o+=r}return o+=t[t.length-1],new G(o,i)}class X{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function Y(t){return t.map(t=>t instanceof X?Y(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function Q(t){return t.map(t=>t instanceof X?t.behaviors:null).reduce((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e)),null)}X.create=(()=>{if(h.supportsAdoptedStyleSheets){const t=new Map;return e=>new Z(e,t)}return t=>new tt(t)})();class Z extends X{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=Q(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=Y(t).map(t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i})}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>-1===e.indexOf(t)),super.removeStylesFrom(t)}}let J=0;class tt extends X{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=Q(t),this.styleSheets=Y(t),this.styleClass="fast-style-class-"+ ++J}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;ot?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},it={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class ot{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName="_"+e,this.callbackName=e+"Changed",this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=et)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return b.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||h.queueUpdate(()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;h.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":h.setBooleanAttribute(t,this.attribute,o)}i.delete(t)})}static collect(t,...e){const i=[];e.push(t.attributes);for(let o=0,s=e.length;o1&&(i.property=e);const o=t.constructor.attributes||(t.constructor.attributes=[]);o.push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}const nt={mode:"open"},rt={},at=i.getById(4,()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})});class lt{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=ot.collect(t,e.attributes),o=new Array(i.length),s={},n={};for(let t=0,e=i.length;t0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;ipt(t),define:(t,e)=>new lt(t,e).define().type});class mt{createCSS(){return""}createBehavior(){}}function ft(t,e){const i=[];let o="";const s=[];for(let n=0,r=t.length-1;n("string"==typeof e?this.css+=e:t.push(e),t),[]);i.length&&(this.styles=X.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function yt(t,...e){const{styles:i,behaviors:o}=ft(t,e);return new vt(i,o)}function xt(t,e,i){return{index:t,removed:e,addedCount:i}}function $t(t,e,i,s,n,r){let a=0,l=0;const c=Math.min(i-e,r-n);if(0===e&&0===n&&(a=function(t,e,i){for(let o=0;o0||i>0;){if(0===e){s.push(2),i--;continue}if(0===i){s.push(3),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],a=t[e][i-1];let l;l=r=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let t=i.removed;if(s.indexi.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);wt.apply(t,e)}s.removed=t,i.indexo?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class Ft extends m{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,h.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,h.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?Ct(this.source,t):$t(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}class Et{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function St(t){return new C("fast-ref",Et,t)}function Ot(t,e){const i="function"==typeof e?e:()=>e;return(e,o)=>t(e,o)?i(e,o):null}const Dt=Object.freeze({positioning:!1,recycle:!0});function Rt(t,e,i,o){t.bind(e[i],o)}function Lt(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}class At{constructor(t,e,i,o,s,n){this.location=t,this.itemsBinding=e,this.templateBinding=o,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Rt,this.itemsBindingObserver=b.binding(e,this,i),this.templateBindingObserver=b.binding(o,this,s),n.positioning&&(this.bindView=Lt)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=o);const e=this.itemsObserver,i=this.itemsObserver=b.getNotifier(this.items),s=e!==i;s&&null!==e&&e.unsubscribe(this),(s||t)&&i.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=[],s=this.bindView;let n=0;for(let e=0,s=t.length;e0?o.shift():a.create();i.splice(c,0,l),s(l,r,c,e),l.insertBefore(n)}}for(let t=0,e=o.length;tnew Ft(t));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,i=t.push,o=t.reverse,s=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice(xt(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Tt(xt(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(xt(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=n.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=r.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Tt(xt(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=a.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Tt(xt(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=b.isVolatileBinding(t),this.isTemplateBindingVolatile=b.isVolatileBinding(e)}createBehavior(t){return new At(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function zt(t,e,i=Dt){return new Vt(t,"function"==typeof e?e:()=>e,i)}function Pt(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class Ht{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=b.getAccessors(t).some(t=>t.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(o),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class Mt extends Ht{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Bt(t){return"string"==typeof t&&(t={property:t}),new C("fast-slotted",Mt,t)}class Nt extends Ht{constructor(t,e){super(t,e),this.observer=null,e.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function jt(t){return"string"==typeof t&&(t={property:t}),new C("fast-children",Nt,t)}class qt{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Ut=(t,e)=>K`e.end?"end":void 0}>t.handleEndContentChange()}">${e.end||""}`,_t=(t,e)=>K`t.handleStartContentChange()}">${e.start||""}`,Gt=K`t.handleEndContentChange()}">`,Wt=K`t.handleStartContentChange()}">`;
-/*! *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */
-function Kt(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const Xt=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=Xt.get(i);void 0===o&&Xt.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=Xt.get(e);if(void 0!==i)return i.get(t)});class Yt{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,ve(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new re(o,t,e))}}function Qt(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;nnew re(t,1,t),transient:t=>new re(t,2,t)}),Jt=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Zt.singleton})}),te=new Map;function ee(t){return e=>Reflect.getOwnMetadata(t,e)}let ie=null;const oe=Object.freeze({createContainer:t=>new fe(null,Object.assign({},Jt.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:oe.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(ge,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||oe.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new fe(t,Object.assign({},Jt.default,e,{parentLocator:oe.findParentContainer})):ie||(ie=new fe(null,Object.assign({},Jt.default,e,{parentLocator:()=>null}))),getDesignParamtypes:ee("design:paramtypes"),getAnnotationParamtypes:ee("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=te.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=oe.getDesignParamtypes(t),o=oe.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?Qt(oe.getDependencies(i)):[]}else e=Qt(o);else if(void 0===o)e=Qt(i);else{e=Qt(i);let t,s=o.length;for(let i=0;i{oe.findResponsibleContainer(this).get(i)!==this[s]&&(this[s]=t,o.notify(e))};o.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||we,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)oe.defineProperty(t,e,n,s);else{oe.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new Yt(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=oe.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)oe.defineProperty(e,i,t[0]);else{const i=o?oe.getOrCreateAnnotationParamTypes(o.value):oe.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e(t.register=function(e){return ye.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=ne)=>(t.register=function(e){return ye.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),se=oe.createInterface("Container");oe.inject;const ne={scoped:!1};class re{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: "+this.state.name);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function ae(t){return this.get(t)}function le(t,e){return e(t)}class ce{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(ae,t)):new this.Type(...this.dependencies.map(ae,t),...e),null==this.transformers?i:this.transformers.reduce(le,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const he={$isResolver:!0,resolve:(t,e)=>e};function de(t){return"function"==typeof t.register}function ue(t){return function(t){return de(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const pe=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),ge="__DI_LOCATE_PARENT__",me=new Map;class fe{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(se,he),t instanceof Node&&t.addEventListener(ge,t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())})}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;athis}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(pe.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(de(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error("Attempted to jitRegister an interface: "+t.friendlyName);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const be=new WeakMap;function ve(t){return function(e,i,o){if(be.has(o))return be.get(o);const s=t(e,i,o);return be.set(o,s),s}}const ye=Object.freeze({instance:(t,e)=>new re(t,0,e),singleton:(t,e)=>new re(t,1,e),transient:(t,e)=>new re(t,2,e),callback:(t,e)=>new re(t,3,e),cachedCallback:(t,e)=>new re(t,3,ve(e)),aliasTo:(t,e)=>new re(e,5,t)});function xe(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function $e(t,e,i){if(t instanceof re&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const we="(anonymous)";function ke(t){return"object"==typeof t&&null!==t||"function"==typeof t}const Ce=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),t.set(s,e)),e}}(),Ie={};function Te(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=Ie[t];if(void 0!==e)return e;const i=t.length;if(0===i)return Ie[t]=!1;let o=0;for(let e=0;e1||o<48||o>57)return Ie[t]=!1;return Ie[t]=!0}default:return!1}}function Fe(t){return t.toLowerCase()+":presentation"}const Ee=new Map,Se=Object.freeze({define(t,e,i){const o=Fe(t);void 0===Ee.get(o)?Ee.set(o,e):Ee.set(o,!1),i.register(ye.instance(o,e))},forTag(t,e){const i=Fe(t),o=Ee.get(i);if(!1===o){return oe.findResponsibleContainer(e).get(i)}return o||null}});class Oe{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?X.create(e):e instanceof X?e:X.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class De extends gt{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Se.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new Le(this===De?class extends De{}:this,t,e)}}function Re(t,e,i){return"function"==typeof t?t(e,i):t}Kt([v],De.prototype,"template",void 0),Kt([v],De.prototype,"styles",void 0);class Le{constructor(t,e,i){this.type=t,this.elementDefinition=e,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new Oe(Re(i.template,t,i),Re(i.styles,t,i));t.definePresentation(e);let s=Re(i.shadowOptions,t,i);t.shadowRootMode&&(s?o.shadowOptions||(s.mode=t.shadowRootMode):null!==s&&(s={mode:t.shadowRootMode})),t.defineElement({elementOptions:Re(i.elementOptions,t,i),shadowOptions:s,attributes:Re(i.attributes,t,i)})}})}}function Ae(t,...e){e.forEach(e=>{if(Object.getOwnPropertyNames(e.prototype).forEach(i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}),e.attributes){const i=t.attributes||[];t.attributes=i.concat(e.attributes)}})}class Ve extends De{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}Kt([st({attribute:"heading-level",mode:"fromView",converter:it})],Ve.prototype,"headinglevel",void 0),Kt([st({mode:"boolean"})],Ve.prototype,"expanded",void 0),Kt([st],Ve.prototype,"id",void 0),Ae(Ve,qt);var ze;function Pe(...t){return t.every(t=>t instanceof HTMLElement)}let He;!function(t){t.horizontal="horizontal",t.vertical="vertical"}(ze||(ze={}));var Me;!function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(Me||(Me={}));const Be={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var Ne;function je(t,e,i){return ie?t:i}function qe(t,e,i){return Math.min(Math.max(i,t),e)}function Ue(t,e,i=0){return[e,i]=[e,i].sort((t,e)=>t-e),e<=t&&t{this.$emit("change")},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,e)=>{t instanceof Ve&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?"accordion-"+(e+1):i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{const e=t.target;this.activeid=e.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach(t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case"ArrowUp":t.preventDefault(),this.adjust(-1);break;case"ArrowDown":t.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t{t.expanded=!1})}getItemIds(){return this.accordionItems.map(t=>t.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===Ke.single}adjust(t){this.activeItemIndex=je(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof Ve&&t.expandbutton.focus()}}Kt([st({attribute:"expand-mode"})],Xe.prototype,"expandmode",void 0),Kt([v],Xe.prototype,"accordionItems",void 0);const Ye=(t,e)=>K`${_t(0,e)}${Ut(0,e)}`;class Qe{}Kt([st({attribute:"aria-atomic"})],Qe.prototype,"ariaAtomic",void 0),Kt([st({attribute:"aria-busy"})],Qe.prototype,"ariaBusy",void 0),Kt([st({attribute:"aria-controls"})],Qe.prototype,"ariaControls",void 0),Kt([st({attribute:"aria-current"})],Qe.prototype,"ariaCurrent",void 0),Kt([st({attribute:"aria-describedby"})],Qe.prototype,"ariaDescribedby",void 0),Kt([st({attribute:"aria-details"})],Qe.prototype,"ariaDetails",void 0),Kt([st({attribute:"aria-disabled"})],Qe.prototype,"ariaDisabled",void 0),Kt([st({attribute:"aria-errormessage"})],Qe.prototype,"ariaErrormessage",void 0),Kt([st({attribute:"aria-flowto"})],Qe.prototype,"ariaFlowto",void 0),Kt([st({attribute:"aria-haspopup"})],Qe.prototype,"ariaHaspopup",void 0),Kt([st({attribute:"aria-hidden"})],Qe.prototype,"ariaHidden",void 0),Kt([st({attribute:"aria-invalid"})],Qe.prototype,"ariaInvalid",void 0),Kt([st({attribute:"aria-keyshortcuts"})],Qe.prototype,"ariaKeyshortcuts",void 0),Kt([st({attribute:"aria-label"})],Qe.prototype,"ariaLabel",void 0),Kt([st({attribute:"aria-labelledby"})],Qe.prototype,"ariaLabelledby",void 0),Kt([st({attribute:"aria-live"})],Qe.prototype,"ariaLive",void 0),Kt([st({attribute:"aria-owns"})],Qe.prototype,"ariaOwns",void 0),Kt([st({attribute:"aria-relevant"})],Qe.prototype,"ariaRelevant",void 0),Kt([st({attribute:"aria-roledescription"})],Qe.prototype,"ariaRoledescription",void 0);class Ze extends De{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}Kt([st],Ze.prototype,"download",void 0),Kt([st],Ze.prototype,"href",void 0),Kt([st],Ze.prototype,"hreflang",void 0),Kt([st],Ze.prototype,"ping",void 0),Kt([st],Ze.prototype,"referrerpolicy",void 0),Kt([st],Ze.prototype,"rel",void 0),Kt([st],Ze.prototype,"target",void 0),Kt([st],Ze.prototype,"type",void 0),Kt([v],Ze.prototype,"defaultSlottedContent",void 0);class Je{}Kt([st({attribute:"aria-expanded"})],Je.prototype,"ariaExpanded",void 0),Ae(Je,Qe),Ae(Ze,qt,Je);const ti=t=>{const e=t.closest("[dir]");return null!==e&&"rtl"===e.dir?Ne.rtl:Ne.ltr};class ei extends De{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=Ne.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(ei.intersectionService.requestPosition(this,this.handleIntersection),ei.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&ei.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,ei.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&ei.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&ei.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=t=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(t)&&this.updateLayout())},this.applyIntersectionEntries=t=>{const e=t.find(t=>t.target===this),i=t.find(t=>t.target===this.anchorElement),o=t.find(t=>t.target===this.viewportElement);return void 0!==e&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,e.boundingClientRect))&&(this.regionRect=e.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(t,e)=>Math.abs(t.top-e.top)>this.updateThreshold||Math.abs(t.right-e.right)>this.updateThreshold||Math.abs(t.bottom-e.bottom)>this.updateThreshold||Math.abs(t.left-e.left)>this.updateThreshold,this.handleResize=t=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=ti(this),this.startObservers())},this.updateLayout=()=>{let t=void 0,e=void 0;if("uncontrolled"!==this.horizontalPositioningMode){const t=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)e="center";else if("unset"!==this.horizontalDefaultPosition){let t=this.horizontalDefaultPosition;if("start"===t||"end"===t){const e=ti(this);if(e!==this.currentDirection)return this.currentDirection=e,void this.initialize();t=this.currentDirection===Ne.ltr?"start"===t?"left":"right":"start"===t?"right":"left"}switch(t){case"left":e=this.horizontalInset?"insetStart":"start";break;case"right":e=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,n=void 0!==this.anchorRect?this.anchorRect.width:0,r=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===e||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(e,o,s,n,r,a)this.getAvailableSpace(t[1],o,s,n,r,a)?t[0]:t[1])}if("uncontrolled"!==this.verticalPositioningMode){const e=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)t="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":t=this.verticalInset?"insetStart":"start";break;case"bottom":t=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,n=void 0!==this.anchorRect?this.anchorRect.height:0,r=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===t||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(t,o,s,n,r,a)this.getAvailableSpace(e[1],o,s,n,r,a)?e[0]:e[1])}const i=this.getNextRegionDimension(e,t),o=this.horizontalPosition!==e||this.verticalPosition!==t;if(this.setHorizontalPosition(e,i),this.setVerticalPosition(t,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=e.width,this.regionWidth=i+"px";break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(t){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.leftthis.viewportRect.right)?this.translateX=this.translateX-(t-this.viewportRect.left):e>this.viewportRect.right&&!(t{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=e.height,this.regionHeight=i+"px";break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(t){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.topthis.viewportRect.bottom)?this.translateY=this.translateY-(t-this.viewportRect.top):e>this.viewportRect.bottom&&!(tt?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(t,e,i,o,s,n)=>{const r=e-s,a=n-(e+o);switch(t){case"start":return r;case"insetStart":return r+o;case"insetEnd":return a+o;case"end":return a;case"center":return 2*Math.min(r,a)+o}},this.getNextRegionDimension=(t,e)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==t&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==e&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener("resize",this.update,{passive:!0}),window.addEventListener("scroll",this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(t,e){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===t&&this.stopAutoUpdateEventListeners(),"auto"===e&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),h.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}ei.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(t,e)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(t)?null===(i=this.observedElements.get(t))||void 0===i||i.push(e):(this.observedElements.set(t,[e]),this.intersectionDetector.observe(t)))},this.cancelRequestPosition=(t,e)=>{const i=this.observedElements.get(t);if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},this.initializeIntersectionDetector=()=>{t.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=t=>{if(null===this.intersectionDetector)return;const e=[],i=[];t.forEach(t=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(t.target);const s=this.observedElements.get(t.target);void 0!==s&&(s.forEach(o=>{let s=e.indexOf(o);-1===s&&(s=e.length,e.push(o),i.push([])),i[s].push(t)}),this.observedElements.delete(t.target))}),e.forEach((t,e)=>{t(i[e])})},this.initializeIntersectionDetector()}},Kt([st],ei.prototype,"anchor",void 0),Kt([st],ei.prototype,"viewport",void 0),Kt([st({attribute:"horizontal-positioning-mode"})],ei.prototype,"horizontalPositioningMode",void 0),Kt([st({attribute:"horizontal-default-position"})],ei.prototype,"horizontalDefaultPosition",void 0),Kt([st({attribute:"horizontal-viewport-lock",mode:"boolean"})],ei.prototype,"horizontalViewportLock",void 0),Kt([st({attribute:"horizontal-inset",mode:"boolean"})],ei.prototype,"horizontalInset",void 0),Kt([st({attribute:"horizontal-threshold"})],ei.prototype,"horizontalThreshold",void 0),Kt([st({attribute:"horizontal-scaling"})],ei.prototype,"horizontalScaling",void 0),Kt([st({attribute:"vertical-positioning-mode"})],ei.prototype,"verticalPositioningMode",void 0),Kt([st({attribute:"vertical-default-position"})],ei.prototype,"verticalDefaultPosition",void 0),Kt([st({attribute:"vertical-viewport-lock",mode:"boolean"})],ei.prototype,"verticalViewportLock",void 0),Kt([st({attribute:"vertical-inset",mode:"boolean"})],ei.prototype,"verticalInset",void 0),Kt([st({attribute:"vertical-threshold"})],ei.prototype,"verticalThreshold",void 0),Kt([st({attribute:"vertical-scaling"})],ei.prototype,"verticalScaling",void 0),Kt([st({attribute:"fixed-placement",mode:"boolean"})],ei.prototype,"fixedPlacement",void 0),Kt([st({attribute:"auto-update-mode"})],ei.prototype,"autoUpdateMode",void 0),Kt([v],ei.prototype,"anchorElement",void 0),Kt([v],ei.prototype,"viewportElement",void 0),Kt([v],ei.prototype,"initialLayoutComplete",void 0);const ii={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},oi=Object.assign(Object.assign({},ii),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),si=Object.assign(Object.assign({},ii),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),ni=Object.assign(Object.assign({},ii),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),ri=Object.assign(Object.assign({},oi),{verticalScaling:"fill"}),ai=Object.assign(Object.assign({},si),{verticalScaling:"fill"}),li=Object.assign(Object.assign({},ni),{verticalScaling:"fill"});class ci extends De{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}}Kt([st],ci.prototype,"fill",void 0),Kt([st],ci.prototype,"color",void 0),Kt([st],ci.prototype,"link",void 0),Kt([st],ci.prototype,"shape",void 0);class hi extends De{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}Kt([st({attribute:"fill"})],hi.prototype,"fill",void 0),Kt([st({attribute:"color"})],hi.prototype,"color",void 0),Kt([st({mode:"boolean"})],hi.prototype,"circular",void 0);class di extends Ze{constructor(){super(...arguments),this.separator=!0}}Kt([v],di.prototype,"separator",void 0),Ae(di,qt,Je);class ui extends De{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const t=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach(e=>{const i=e===t;this.setItemSeparator(e,i),this.setAriaCurrent(e,i)})}}setItemSeparator(t,e){t instanceof di&&(t.separator=!e)}findChildWithHref(t){var e,i;return t.childElementCount>0?t.querySelector("a[href]"):(null===(e=t.shadowRoot)||void 0===e?void 0:e.childElementCount)?null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setAriaCurrent(t,e){const i=this.findChildWithHref(t);null===i&&t.hasAttribute("href")&&t instanceof di?e?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current"):null!==i&&(e?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current"))}}Kt([v],ui.prototype,"slottedBreadcrumbItems",void 0);const pi="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,gi=new WeakMap;function mi(t){const e=class extends t{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return pi}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?e.concat(Array.from(t)):e;return Object.freeze(i)}return o}valueChanged(t,e){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),h.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),h.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!pi)return null;let t=gi.get(this);return t||(t=this.attachInternals(),gi.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(t=this.shadowRoot)||void 0===t||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.proxySlot)}validate(){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){switch(t.key){case"Enter":if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}}stopPropagation(t){t.stopPropagation()}};return st({mode:"boolean"})(e.prototype,"disabled"),st({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),st({attribute:"current-value"})(e.prototype,"currentValue"),st(e.prototype,"name"),st({mode:"boolean"})(e.prototype,"required"),v(e.prototype,"value"),e}function fi(t){class e extends(mi(t)){}class i extends e{constructor(...t){super(t),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(t,e){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==t&&this.$emit("change"),this.validate()}currentCheckedChanged(t,e){this.checked=this.currentChecked}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return st({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),st({attribute:"current-checked",converter:et})(i.prototype,"currentChecked"),v(i.prototype,"defaultChecked"),v(i.prototype,"checked"),i}class bi extends De{}class vi extends(mi(bi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class yi extends vi{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&(null===(e=this.defaultSlottedContent)||void 0===e?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;null===(t=this.form)||void 0===t||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===e&&this.addEventListener("click",this.handleSubmission),"submit"===t&&this.removeEventListener("click",this.handleSubmission),"reset"===e&&this.addEventListener("click",this.handleFormReset),"reset"===t&&this.removeEventListener("click",this.handleFormReset)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.removeEventListener("click",this.handleClick)})}}Kt([st({mode:"boolean"})],yi.prototype,"autofocus",void 0),Kt([st({attribute:"form"})],yi.prototype,"formId",void 0),Kt([st],yi.prototype,"formaction",void 0),Kt([st],yi.prototype,"formenctype",void 0),Kt([st],yi.prototype,"formmethod",void 0),Kt([st({mode:"boolean"})],yi.prototype,"formnovalidate",void 0),Kt([st],yi.prototype,"formtarget",void 0),Kt([st],yi.prototype,"type",void 0),Kt([v],yi.prototype,"defaultSlottedContent",void 0);class xi{}Kt([st({attribute:"aria-expanded"})],xi.prototype,"ariaExpanded",void 0),Kt([st({attribute:"aria-pressed"})],xi.prototype,"ariaPressed",void 0),Ae(xi,Qe),Ae(yi,qt,xi);class $i{constructor(t){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,t)for(const e in t){const i=t[e];"date"===e?this.date=this.getDateObject(i):this[e]=i}}getDateObject(t){if("string"==typeof t){const e=t.split(/[/-]/);return e.length<3?new Date:new Date(parseInt(e[2],10),parseInt(e[0],10)-1,parseInt(e[1],10))}if("day"in t&&"month"in t&&"year"in t){const{day:e,month:i,year:o}=t;return new Date(o,i-1,e)}return t}getDate(t=this.date,e={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const o=this.getDateObject(t),s=Object.assign({timeZone:"utc"},e);return new Intl.DateTimeFormat(i,s).format(o)}getDay(t=this.date.getDate(),e=this.dayFormat,i=this.locale){return this.getDate({month:1,day:t,year:2020},{day:e},i)}getMonth(t=this.date.getMonth()+1,e=this.monthFormat,i=this.locale){return this.getDate({month:t,day:2,year:2020},{month:e},i)}getYear(t=this.date.getFullYear(),e=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:t},{year:e},i)}getWeekday(t=0,e=this.weekdayFormat,i=this.locale){const o=`1-${t+1}-2017`;return this.getDate(o,{weekday:e},i)}getWeekdays(t=this.weekdayFormat,e=this.locale){return Array(7).fill(null).map((i,o)=>this.getWeekday(o,t,e))}}class wi extends De{constructor(){super(...arguments),this.dateFormatter=new $i,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(t=this.month,e=this.year){const i=t=>new Date(t.getFullYear(),t.getMonth(),1).getDay(),o=t=>{const e=new Date(t.getFullYear(),t.getMonth()+1,1);return new Date(e.getTime()-this.oneDayInMs).getDate()},s=new Date(e,t-1),n=new Date(e,t),r=new Date(e,t-2);return{length:o(s),month:t,start:i(s),year:e,previous:{length:o(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:o(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(t=this.getMonthInfo(),e=this.minWeeks){e=e>10?10:e;const{start:i,length:o,previous:s,next:n}=t,r=[];let a=1-i;for(;ao?n:t,l=a<1?s.length+a:a>o?a-o:a,c=`${e}-${l}-${i}`,h={day:l,month:e,year:i,disabled:this.dateInString(c,this.disabledDates),selected:this.dateInString(c,this.selectedDates)},d=r[r.length-1];0===r.length||d.length%7==0?r.push([h]):d.push(h),a++}return r}dateInString(t,e){const i=e.split(",").map(t=>t.trim());return t="string"==typeof t?t:`${t.getMonth()+1}-${t.getDate()}-${t.getFullYear()}`,i.some(e=>e===t)}getDayClassNames(t,e){const{day:i,month:o,year:s,disabled:n,selected:r}=t;return["day",e===`${o}-${i}-${s}`&&"today",this.month!==o&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const t=this.dateFormatter.getWeekdays().map(t=>({text:t}));if("long"!==this.weekdayFormat){const e=this.dateFormatter.getWeekdays("long");t.forEach((t,i)=>{t.abbr=e[i]})}return t}handleDateSelect(t,e){t.preventDefault,this.$emit("dateselected",e)}handleKeydown(t,e){return"Enter"===t.key&&this.handleDateSelect(t,e),!0}}var ki,Ci,Ii;Kt([st({mode:"boolean"})],wi.prototype,"readonly",void 0),Kt([st],wi.prototype,"locale",void 0),Kt([st({converter:it})],wi.prototype,"month",void 0),Kt([st({converter:it})],wi.prototype,"year",void 0),Kt([st({attribute:"day-format",mode:"fromView"})],wi.prototype,"dayFormat",void 0),Kt([st({attribute:"weekday-format",mode:"fromView"})],wi.prototype,"weekdayFormat",void 0),Kt([st({attribute:"month-format",mode:"fromView"})],wi.prototype,"monthFormat",void 0),Kt([st({attribute:"year-format",mode:"fromView"})],wi.prototype,"yearFormat",void 0),Kt([st({attribute:"min-weeks",converter:it})],wi.prototype,"minWeeks",void 0),Kt([st({attribute:"disabled-dates"})],wi.prototype,"disabledDates",void 0),Kt([st({attribute:"selected-dates"})],wi.prototype,"selectedDates",void 0),function(t){t.none="none",t.default="default",t.sticky="sticky"}(ki||(ki={})),function(t){t.default="default",t.columnHeader="columnheader",t.rowHeader="rowheader"}(Ci||(Ci={})),function(t){t.default="default",t.header="header",t.stickyHeader="sticky-header"}(Ii||(Ii={}));class Ti extends De{constructor(){super(...arguments),this.rowType=Ii.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Vt(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let e=0;switch(t.key){case"ArrowLeft":e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case"ArrowRight":e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case"Home":t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case"End":t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===Ii.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===Ii.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}Kt([st({attribute:"grid-template-columns"})],Ti.prototype,"gridTemplateColumns",void 0),Kt([st({attribute:"row-type"})],Ti.prototype,"rowType",void 0),Kt([v],Ti.prototype,"rowData",void 0),Kt([v],Ti.prototype,"columnDefinitions",void 0),Kt([v],Ti.prototype,"cellItemTemplate",void 0),Kt([v],Ti.prototype,"headerCellItemTemplate",void 0),Kt([v],Ti.prototype,"rowIndex",void 0),Kt([v],Ti.prototype,"isActiveRow",void 0),Kt([v],Ti.prototype,"activeCellItemTemplate",void 0),Kt([v],Ti.prototype,"defaultCellItemTemplate",void 0),Kt([v],Ti.prototype,"defaultHeaderCellItemTemplate",void 0),Kt([v],Ti.prototype,"cellElements",void 0);class Fi extends De{constructor(){super(),this.noTabbing=!1,this.generateHeader=ki.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,e,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=s[Math.max(0,Math.min(s.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(o0||o>this.focusRowIndex&&this.scrollTop{t&&t.length&&(t.forEach(t=>{t.addedNodes.forEach(t=>{1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,h.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(void 0===t){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const t=this.rowElements[0];this.generatedGridTemplateColumns=new Array(t.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((e,i)=>{const o=e;o.rowIndex=i,o.gridTemplateColumns=t,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let e="";return t.forEach(t=>{e=`${e}${""===e?"":" "}1fr`}),e}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=Fi.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=Fi.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Vt(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener("focus",this.handleFocus),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("focusout",this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),h.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener("focus",this.handleFocus),this.removeEventListener("keydown",this.handleKeydown),this.removeEventListener("focusout",this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const e=t.target;this.focusRowIndex=this.rowElements.indexOf(e),this.focusColumnIndex=e.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(t.key){case"ArrowUp":t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(e=this.focusRowIndex-1;e>=0;e--){const t=this.rowElements[e];if(t.offsetTop=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(e=this.focusRowIndex+1;e<=i;e++){const t=this.rowElements[e];if(t.offsetTop+t.offsetHeight>o){let e=0;this.generateHeader===ki.sticky&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"Home":t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":t.ctrlKey&&null!==this.columnDefinitions&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,h.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==ki.none&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);return this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===ki.sticky?Ii.stickyHeader:Ii.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}Fi.generateColumns=t=>Object.getOwnPropertyNames(t).map((t,e)=>({columnDataKey:t,gridColumn:""+e})),Kt([st({attribute:"no-tabbing",mode:"boolean"})],Fi.prototype,"noTabbing",void 0),Kt([st({attribute:"generate-header"})],Fi.prototype,"generateHeader",void 0),Kt([st({attribute:"grid-template-columns"})],Fi.prototype,"gridTemplateColumns",void 0),Kt([v],Fi.prototype,"rowsData",void 0),Kt([v],Fi.prototype,"columnDefinitions",void 0),Kt([v],Fi.prototype,"rowItemTemplate",void 0),Kt([v],Fi.prototype,"cellItemTemplate",void 0),Kt([v],Fi.prototype,"headerCellItemTemplate",void 0),Kt([v],Fi.prototype,"focusRowIndex",void 0),Kt([v],Fi.prototype,"focusColumnIndex",void 0),Kt([v],Fi.prototype,"defaultRowItemTemplate",void 0),Kt([v],Fi.prototype,"rowElementTag",void 0),Kt([v],Fi.prototype,"rowElements",void 0);const Ei=K`${t=>null===t.rowData||null===t.columnDefinition||null===t.columnDefinition.columnDataKey?null:t.rowData[t.columnDefinition.columnDataKey]}`,Si=K`${t=>null===t.columnDefinition?null:void 0===t.columnDefinition.title?t.columnDefinition.columnDataKey:t.columnDefinition.title}`;class Oi extends De{constructor(){super(...arguments),this.cellType=Ci.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,e){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=""+(void 0===(null===(t=this.columnDefinition)||void 0===t?void 0:t.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case Ci.columnHeader:if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}break;default:if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus()}}this.$emit("cell-focused",this)}}handleFocusout(t){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===Ci.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===Ci.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case"Enter":case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case Ci.columnHeader:if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}break;default:if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}}break;case"Escape":this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case Ci.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Si.render(this,this);break;case void 0:case Ci.rowHeader:case Ci.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Ei.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}Kt([st({attribute:"cell-type"})],Oi.prototype,"cellType",void 0),Kt([st({attribute:"grid-column"})],Oi.prototype,"gridColumn",void 0),Kt([v],Oi.prototype,"rowData",void 0),Kt([v],Oi.prototype,"columnDefinition",void 0);const Di=K`${t=>t.dateFormatter.getMonth(t.month)}${t=>t.dateFormatter.getYear(t.year)}
`,Ri=(t,e)=>{const i=t.tagFor(Ti);return K`<${i} class="week" part="week" role="row" role-type="default" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${zt(t=>t,((t,e)=>{const i=t.tagFor(Oi);return K`<${i} class="${(t,i)=>i.parentContext.parent.getDayClassNames(t,e)}" part="day" tabindex="-1" role="gridcell" grid-column="${(t,e)=>e.index+1}" @click="${(t,e)=>e.parentContext.parent.handleDateSelect(e.event,t)}" @keydown="${(t,e)=>e.parentContext.parent.handleKeydown(e.event,t)}" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}
${i}>`})(t,e),{positioning:!0})}${i}>`},Li=(t,e)=>{const i=t.tagFor(Fi),o=t.tagFor(Ti);return K`<${i} class="days interact" part="days" generate-header="none"><${o} class="week-days" part="week-days" role="row" row-type="header" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${zt(t=>t.getWeekdayText(),(t=>{const e=t.tagFor(Oi);return K`<${e} class="week-day" part="week-day" tabindex="-1" grid-column="${(t,e)=>e.index+1}" abbr="${t=>t.abbr}">${t=>t.text}${e}>`})(t),{positioning:!0})}${o}>${zt(t=>t.getDays(),Ri(t,e))}${i}>`};class Ai extends De{}class Vi extends De{}class zi extends(fi(Vi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Pi extends zi{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{switch(t.key){case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}function Hi(t){return Pe(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}Kt([st({attribute:"readonly",mode:"boolean"})],Pi.prototype,"readOnly",void 0),Kt([v],Pi.prototype,"defaultSlottedNodes",void 0),Kt([v],Pi.prototype,"indeterminate",void 0);class Mi extends De{constructor(t,e,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(""+this.textContent,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?null:e?"true":"false"}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t,e;return null!==(e=null!==(t=this.value)&&void 0!==t?t:this.textContent)&&void 0!==e?e:""}get text(){return this.textContent}set value(t){this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=t),b.notify(this,"value")}get value(){var t,e;return b.track(this,"value"),null!==(e=null!==(t=this._value)&&void 0!==t?t:this.textContent)&&void 0!==e?e:""}get form(){return this.proxy?this.proxy.form:null}}Kt([v],Mi.prototype,"checked",void 0),Kt([v],Mi.prototype,"defaultSelected",void 0),Kt([st({mode:"boolean"})],Mi.prototype,"disabled",void 0),Kt([st({attribute:"selected",mode:"boolean"})],Mi.prototype,"selectedAttribute",void 0),Kt([v],Mi.prototype,"selected",void 0),Kt([st({attribute:"value",mode:"fromView"})],Mi.prototype,"initialValue",void 0);class Bi{}Kt([v],Bi.prototype,"ariaChecked",void 0),Kt([v],Bi.prototype,"ariaPosInSet",void 0),Kt([v],Bi.prototype,"ariaSelected",void 0),Kt([v],Bi.prototype,"ariaSetSize",void 0),Ae(Bi,Qe),Ae(Mi,qt,Bi);class Ni extends De{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,e;return null!==(e=null===(t=this.options)||void 0===t?void 0:t.length)&&void 0!==e?e:0}get options(){return b.track(this,"options"),this._options}set options(t){this._options=t,b.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&null!==t&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp("^"+t,"gi");return this.options.filter(t=>t.text.trim().match(e))}getSelectableIndex(t=this.selectedIndex,e){const i=t>e?-1:t!t&&!e.disabled&&i!t&&!e.disabled&&i>o?e:t,s)}return this.options.indexOf(s)}handleChange(t,e){switch(e){case"selected":Ni.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions()}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,Ni.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case"Home":t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case"ArrowDown":t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case"ArrowUp":t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case"End":t.preventDefault(),this.selectLastOption();break;case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Enter":case"Escape":return!0;case" ":if(this.typeaheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof t){const i=this.getSelectableIndex(t,e),o=i>-1?i:t;return this.selectedIndex=o,void(e===o&&this.selectedIndexChanged(e,o))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(t,e){var i;const o=e.filter(Ni.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach(t=>{const e=b.getNotifier(t);e.unsubscribe(this,"selected"),t.selected=o.includes(t),e.subscribe(this,"selected")})}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>!t.disabled))&&void 0!==e?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(t,e){let i=t.length;for(;i--;)if(e(t[i],i,t))return i;return-1}(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>t.defaultSelected))&&void 0!==e?e:-1}setSelectedOptions(){var t,e,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce((t,e)=>(Hi(e)&&t.push(e),t),[]);const i=""+this.options.length;this.options.forEach((t,e)=>{t.id||(t.id=Ge("option-")),t.ariaPosInSet=""+(e+1),t.ariaSetSize=i}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches();if(t.length){const e=this.options.indexOf(t[0]);e>-1&&(this.selectedIndex=e)}this.typeaheadExpired=!1}}}Ni.slottedOptionFilter=t=>Hi(t)&&!t.disabled&&!t.hidden,Ni.TYPE_AHEAD_TIMEOUT_MS=1e3,Kt([st({mode:"boolean"})],Ni.prototype,"disabled",void 0),Kt([v],Ni.prototype,"selectedIndex",void 0),Kt([v],Ni.prototype,"selectedOptions",void 0),Kt([v],Ni.prototype,"slottedOptions",void 0),Kt([v],Ni.prototype,"typeaheadBuffer",void 0);class ji{}var qi,Ui;Kt([v],ji.prototype,"ariaActiveDescendant",void 0),Kt([v],ji.prototype,"ariaDisabled",void 0),Kt([v],ji.prototype,"ariaExpanded",void 0),Kt([v],ji.prototype,"ariaMultiSelectable",void 0),Ae(ji,Qe),Ae(Ni,ji),function(t){t.above="above",t.below="below"}(qi||(qi={}));class _i extends Ni{}class Gi extends(mi(_i)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}!function(t){t.inline="inline",t.list="list",t.both="both",t.none="none"}(Ui||(Ui={}));class Wi extends Gi{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=Ge("listbox-"),this.maxHeight=0,this.open=!1,this.position=qi.below}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}get isAutocompleteInline(){return this.autocomplete===Ui.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Ui.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Ui.both}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void h.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}get options(){return b.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,b.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(){this.positionAttribute=this.position,this.setPositioning()}get value(){return b.track(this,"value"),this._value}set value(t){var e,i,o;const s=""+this._value;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex(e=>e.text.toLowerCase()===t.toLowerCase()),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),b.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.text,this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Ui.none||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})}))}focusoutHandler(t){if(this.updateValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),"deleteContentBackward"===t.inputType||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&this.filteredOptions.length&&(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection())}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":{this.updateValue(!0),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1;const t=this.control.value.length;this.control.setSelectionRange(t,t);break}case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.updateValue(),!this.open)return!0;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&(this.updateValue(),this.setInlineSelection());break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=qe(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex(t=>null!==t.getAttribute("selected")||t.selected);this.selectedIndex=t,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInlineSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?qi.above:qi.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===qi.above?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach(t=>{t.selected=e.includes(t)})}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value),t&&this.$emit("change")}}Kt([st({attribute:"autocomplete",mode:"fromView"})],Wi.prototype,"autocomplete",void 0),Kt([v],Wi.prototype,"maxHeight",void 0),Kt([st({attribute:"open",mode:"boolean"})],Wi.prototype,"open",void 0),Kt([st],Wi.prototype,"placeholder",void 0),Kt([st({attribute:"position"})],Wi.prototype,"positionAttribute",void 0),Kt([v],Wi.prototype,"position",void 0);class Ki{}Kt([v],Ki.prototype,"ariaAutoComplete",void 0),Kt([v],Ki.prototype,"ariaControls",void 0),Ae(Ki,ji),Ae(Wi,qt,Ki);function Xi(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}const Yi=document.createElement("div");class Qi{setProperty(t,e){h.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){h.queueUpdate(()=>this.target.removeProperty(t))}}class Zi extends Qi{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class Ji extends Qi{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class to{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),b.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),h.queueUpdate(()=>{null!==this.target&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),h.queueUpdate(()=>{null!==this.target&&this.target.removeProperty(t)})}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}Kt([v],to.prototype,"target",void 0);class eo{constructor(t){this.target=t.style}setProperty(t,e){h.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){h.queueUpdate(()=>this.target.removeProperty(t))}}class io{setProperty(t,e){io.properties[t]=e;for(const i of io.roots.values())no.getOrCreate(io.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete io.properties[t];for(const e of io.roots.values())no.getOrCreate(io.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=io;if(!e.has(t)){e.add(t);const i=no.getOrCreate(this.normalizeRoot(t));for(const t in io.properties)i.setProperty(t,io.properties[t])}}static unregisterRoot(t){const{roots:e}=io;if(e.has(t)){e.delete(t);const i=no.getOrCreate(io.normalizeRoot(t));for(const t in io.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===Yi?document:t}}io.roots=new Set,io.properties={};const oo=new WeakMap,so=h.supportsAdoptedStyleSheets?class extends Qi{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(X.create([e]))}}:to,no=Object.freeze({getOrCreate(t){if(oo.has(t))return oo.get(t);let e;return t===Yi?e=new io:t instanceof Document?e=h.supportsAdoptedStyleSheets?new Zi:new Ji:e=t instanceof gt?new so(t):new eo(t),oo.set(t,e),e}});class ro extends mt{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty="--"+t.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`),this.id=ro.uniqueId(),ro.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new ro({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return ro.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=uo.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof ro&&(e=this.alias(e)),uo.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),uo.existsFor(t)&&uo.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(Yi,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!uo.existsFor(e)&&uo.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(t=>t.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(t=>t.handleChange(e))}alias(t){return e=>t.getValueFor(e)}}ro.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),ro.tokensById=new Map;class ao{constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=b.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,$))}}class lo{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),b.getNotifier(this).notify(t.id))}get(t){return b.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const co=new WeakMap,ho=new WeakMap;class uo{constructor(t){this.target=t,this.store=new lo,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=ro.getTokenById(e);if(i&&(i.notify(this.target),ro.isCSSDesignToken(i))){const e=this.parent,o=this.isReflecting(i);if(e){const s=e.get(i),n=t.get(i);s===n||o?s===n&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},co.set(t,this),b.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof gt?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return co.get(t)||new uo(t)}static existsFor(t){return co.has(t)}static findParent(t){if(Yi!==t.target){let e=Xi(t.target);for(;null!==e;){if(co.has(e))return co.get(e);e=Xi(e)}return uo.getOrCreate(Yi)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==Yi?uo.getOrCreate(Yi):null}while(null!==i);return null}get parent(){return ho.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=uo.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){ro.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),ro.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=uo.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){ho.get(this).removeChild(this)}}appendChild(t){t.parent&&ho.get(t).removeChild(t);const e=this.children.filter(e=>t.contains(e));ho.set(t,this),this.children.push(t),e.forEach(e=>t.appendChild(e)),b.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),b.getNotifier(this.store).unsubscribe(t),t.parent===this&&ho.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=Xi(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),uo.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),uo.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=ro.getTokenById(e);i&&this.hydrate(i,this.getRaw(i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);ro.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new ao(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}uo.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){no.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(uo.getOrCreate(e).get(t)))}remove(t,e){no.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},Kt([v],uo.prototype,"children",void 0);const po=Object.freeze({create:function(t){return ro.from(t)},notifyConnection:t=>!(!t.isConnected||!uo.existsFor(t))&&(uo.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!uo.existsFor(t))&&(uo.getOrCreate(t).unbind(),!0),registerRoot(t=Yi){io.registerRoot(t)},unregisterRoot(t=Yi){io.unregisterRoot(t)}}),go=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),mo=new Map,fo=new Map;let bo=null;const vo=oe.createInterface(t=>t.cachedCallback(t=>(null===bo&&(bo=new xo(null,t)),bo))),yo=Object.freeze({tagFor:t=>fo.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return oe.findResponsibleContainer(t).get(vo)},getOrCreate(t){if(!t)return null===bo&&(bo=oe.getOrCreateDOMContainer().get(vo)),bo;const e=t.$$designSystem$$;if(e)return e;const i=oe.getOrCreateDOMContainer(t);if(i.has(vo,!1))return i.get(vo);{const e=new xo(t,i);return i.register(ye.instance(vo,e)),e}}});class xo{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>go.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(t,n,r){const a=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,n,r),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=mo.get(u),g=!0;for(;p;){const t=o(u,d,p);switch(t){case go.ignoreDuplicate:return;case go.definitionCallbackOnly:g=!1,p=void 0;break;default:u=t,p=mo.get(u)}}g&&((fo.has(d)||d===De)&&(d=class extends d{}),mo.set(u,d),fo.set(d,u),h&&fo.set(h,u)),i.push(new $o(e,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&po.registerRoot(this.designTokenRoot)),e.registerWithContext(n,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class $o{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){Se.define(this.name,t,this.container)}defineElement(t){this.definition=new lt(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return yo.tagFor(t)}}
-/*!
-* tabbable 5.2.1
-* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
-*/
-var wo=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],ko=wo.join(","),Co="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Io=function(t){return"INPUT"===t.tagName},To=function(t){return function(t){return Io(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;isummary:first-of-type")?t.parentElement:t;if(Co.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(Io(t)||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||"BUTTON"===t.tagName)for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var i=0;i{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>Ro.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),h.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=b.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:So(e)||Ro.isFocusableFastElement(e)&&Ro.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(Ro.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>So(t))}}Kt([st({mode:"boolean"})],Ro.prototype,"modal",void 0),Kt([st({mode:"boolean"})],Ro.prototype,"hidden",void 0),Kt([st({attribute:"trap-focus",mode:"boolean"})],Ro.prototype,"trapFocus",void 0),Kt([st({attribute:"aria-describedby"})],Ro.prototype,"ariaDescribedby",void 0),Kt([st({attribute:"aria-labelledby"})],Ro.prototype,"ariaLabelledby",void 0),Kt([st({attribute:"aria-label"})],Ro.prototype,"ariaLabel",void 0);class Lo extends De{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener("toggle",this.onToggle),this.expanded&&this.show()}onToggle(){this.expanded=this.details.open,this.$emit("toggle")}}Kt([st({mode:"boolean"})],Lo.prototype,"expanded",void 0),Kt([st],Lo.prototype,"title",void 0);var Ao,Vo;!function(t){t.separator="separator",t.presentation="presentation"}(Ao||(Ao={}));class zo extends De{constructor(){super(...arguments),this.role=Ao.separator,this.orientation=ze.horizontal}}Kt([st],zo.prototype,"role",void 0),Kt([st],zo.prototype,"orientation",void 0),function(t){t.next="next",t.previous="previous"}(Vo||(Vo={}));class Po extends De{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Vo.next}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"===e&&this.$emit("click",t),"Escape"===e&&this.blur()}}}Kt([st({mode:"boolean"})],Po.prototype,"disabled",void 0),Kt([st({attribute:"aria-hidden",converter:et})],Po.prototype,"hiddenFromAT",void 0),Kt([st],Po.prototype,"direction",void 0);class Ho extends Ni{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return null===(t=this.options)||void 0===t?void 0:t.filter(t=>t.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var i,o;this.ariaActiveDescendant=null!==(o=null===(i=this.options[e])||void 0===i?void 0:i.id)&&void 0!==o?o:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((t,e)=>{t.checked=Ue(e,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=Ue(e,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=Ue(e,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{t.checked=Ue(e,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);const i=null===(e=t.target)||void 0===e?void 0:e.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);this.shouldSkipFocus||t.target!==t.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:e,shiftKey:i}=t;switch(this.shouldSkipFocus=!1,e){case"Home":return void this.checkFirstOption(i);case"ArrowDown":return void this.checkNextOption(i);case"ArrowUp":return void this.checkPreviousOption(i);case"End":return void this.checkLastOption(i);case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Escape":return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case" ":if(t.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var i;this.ariaMultiSelectable=e?"true":null,null===(i=this.options)||void 0===i||i.forEach(t=>{t.checked=!e&&void 0}),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(t,e){var i;const o=Math.max(0,parseInt(null!==(i=null==e?void 0:e.toFixed())&&void 0!==i?i:"",10));o!==e&&h.queueUpdate(()=>{this.size=o})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(t=>!t.disabled),e=!t.every(t=>t.selected);t.forEach(t=>t.selected=e),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.multiple){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches(),e=this.options.indexOf(t[0]);e>-1&&(this.activeIndex=e,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(t,e)}uncheckAllOptions(t=!1){this.options.forEach(t=>t.checked=!this.multiple&&void 0),t||(this.rangeStartIndex=-1)}}Kt([v],Ho.prototype,"activeIndex",void 0),Kt([st({mode:"boolean"})],Ho.prototype,"multiple",void 0),Kt([st({converter:it})],Ho.prototype,"size",void 0);class Mo extends De{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit("optionsupdated",{bubbles:!1})}addSlottedListItems(t){void 0!==t&&t.forEach(t=>{1===t.nodeType&&"listitem"===t.getAttribute("role")&&(t.id=t.id||Ge("option-"),this.optionElements.push(t))})}}Kt([v],Mo.prototype,"menuElements",void 0),Kt([v],Mo.prototype,"headerElements",void 0),Kt([v],Mo.prototype,"footerElements",void 0),Kt([v],Mo.prototype,"suggestionsAvailableText",void 0);const Bo=K`${t=>t.value}`;class No extends De{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(t){return t.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var t,e;this.disconnectView(),this.customView=null!==(e=null===(t=this.contentsTemplate)||void 0===t?void 0:t.render(this,this))&&void 0!==e?e:Bo.render(this,this)}disconnectView(){var t;null===(t=this.customView)||void 0===t||t.dispose(),this.customView=void 0}}Kt([st({attribute:"value"})],No.prototype,"value",void 0),Kt([v],No.prototype,"contentsTemplate",void 0);class jo extends De{}const qo=K`${t=>t.value}`;class Uo extends De{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){this.disconnectView(),super.disconnectedCallback()}handleKeyDown(t){return!t.defaultPrevented&&("Enter"!==t.key||(this.handleInvoke(),!1))}handleClick(t){return t.defaultPrevented||this.handleInvoke(),!1}handleInvoke(){this.$emit("pickeriteminvoked")}updateView(){var t,e;this.disconnectView(),this.customView=null!==(e=null===(t=this.contentsTemplate)||void 0===t?void 0:t.render(this,this))&&void 0!==e?e:qo.render(this,this)}disconnectView(){var t;null===(t=this.customView)||void 0===t||t.dispose(),this.customView=void 0}}Kt([st({attribute:"value"})],Uo.prototype,"value",void 0),Kt([v],Uo.prototype,"contentsTemplate",void 0);class _o extends De{}class Go extends(mi(_o)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Wo=K``;class Ko extends Go{constructor(){super(...arguments),this.selection="",this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText="No suggestions available",this.suggestionsAvailableText="Suggestions available",this.loadingText="Loading suggestions",this.menuPlacement="bottom-fill",this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=t=>{this.query=this.inputElement.value},this.handleInputClick=t=>{t.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{this.flyoutOpen&&(null!==this.region&&void 0!==this.region?this.region.anchorElement=this.inputElement:h.queueUpdate(this.setRegionProps))},this.configLookup={top:oi,bottom:si,tallest:ni,"top-fill":ri,"bottom-fill":ai,"tallest-fill":li}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map(t=>t.trim()).filter(t=>""!==t)}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&h.queueUpdate(()=>{this.setFocusedOption(0)})}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit("querychange",{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=0===this.filteredOptionsList.length&&0===this.menuElement.querySelectorAll('[role="listitem"]').length,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(h.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&h.queueUpdate(()=>{this.setFocusedOption(0)})}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(""),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=Wo.render(this,this.listElement);const t=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find(e=>e.tagName===t),void 0===this.menuElement&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),""===this.menuElement.id&&(this.menuElement.id=Ge("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),h.queueUpdate(()=>this.initialize())}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener("input",this.handleTextInput),this.inputElement.removeEventListener("click",this.handleInputClick),null!==this.inputElementView&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new Vt(t=>t.selectedItems,t=>t.activeListItemTemplate,{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener("input",this.handleTextInput),this.inputElement.addEventListener("click",this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new Vt(t=>t.filteredOptionsList,t=>t.activeMenuOptionTemplate,{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(t){if(this.flyoutOpen!==t){if(t&&document.activeElement===this.inputElement)return this.flyoutOpen=t,void h.queueUpdate(()=>{void 0!==this.menuElement?this.setFocusedOption(0):this.disableMenu()});this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(t){t.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(t){if(t.defaultPrevented)return!1;switch(t.key){case"ArrowDown":if(this.flyoutOpen){const t=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(t)}else this.toggleFlyout(!0);return!1;case"ArrowUp":if(this.flyoutOpen){const t=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(t)}else this.toggleFlyout(!0);return!1;case"Escape":return this.toggleFlyout(!1),!1;case"Enter":return-1!==this.menuFocusIndex&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case"ArrowRight":return document.activeElement===this.inputElement||(this.incrementFocusedItem(1),!1);case"ArrowLeft":return 0!==this.inputElement.selectionStart||(this.incrementFocusedItem(-1),!1);case"Delete":case"Backspace":{if(null===document.activeElement)return!0;if(document.activeElement===this.inputElement)return 0!==this.inputElement.selectionStart||(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1);const t=Array.from(this.listElement.children),e=t.indexOf(document.activeElement);return!(e>-1)||(this.selection=this.selectedItems.splice(e,1).toString(),h.queueUpdate(()=>{t[Math.min(t.length,e)].focus()}),!1)}}return this.toggleFlyout(!0),!0}handleFocusIn(t){return!1}handleFocusOut(t){return void 0!==this.menuElement&&this.menuElement.contains(t.relatedTarget)||this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=""===this.selection?[]:this.selection.split(","),this.updateFilteredOptions(),h.queueUpdate(()=>{this.checkMaxItems()}),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(t){h.queueUpdate(()=>{this.setFocusedOption(0),this.$emit("menuloaded",{bubbles:!1})})}checkMaxItems(){if(void 0!==this.inputElement)if(void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){const t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));t[t.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(t){if(t.defaultPrevented)return!1;if(t.target instanceof Uo){const e=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(t.target);if(-1!==e){const t=this.selectedItems.slice();t.splice(e,1),this.selection=t.toString(),h.queueUpdate(()=>this.incrementFocusedItem(0))}return!1}return!0}handleOptionInvoke(t){return!t.defaultPrevented&&(!(t.target instanceof No)||(void 0!==t.target.value&&(this.selection=`${this.selection}${""===this.selection?"":","}${t.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1))}incrementFocusedItem(t){if(0===this.selectedItems.length)return void this.inputElement.focus();const e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(null!==document.activeElement){let i=e.indexOf(document.activeElement);-1===i&&(i=e.length);const o=Math.min(e.length,Math.max(0,i+t));o===e.length?void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected?e[o-1].focus():this.inputElement.focus():e[o].focus()}}disableMenu(){var t,e,i;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,null===(t=this.inputElement)||void 0===t||t.removeAttribute("aria-activedescendant"),null===(e=this.inputElement)||void 0===e||e.removeAttribute("aria-owns"),null===(i=this.inputElement)||void 0===i||i.removeAttribute("aria-expanded")}setFocusedOption(t){if(!this.flyoutOpen||-1===t||this.showNoOptions||this.showLoading)return void this.disableMenu();if(0===this.menuElement.optionElements.length)return;this.menuElement.optionElements.forEach(t=>{t.setAttribute("aria-selected","false")}),this.menuFocusIndex=t,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute("aria-owns",this.menuId),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);const e=this.menuElement.optionElements[this.menuFocusIndex];e.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,e.offsetTop)}updateListItemTemplate(){var t;this.activeListItemTemplate=null!==(t=this.listItemTemplate)&&void 0!==t?t:this.defaultListItemTemplate}updateOptionTemplate(){var t;this.activeMenuOptionTemplate=null!==(t=this.menuOptionTemplate)&&void 0!==t?t:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter(t=>-1===this.selectedItems.indexOf(t))),this.filterQuery&&""!==this.query&&void 0!==this.query&&(this.filteredOptionsList=this.filteredOptionsList.filter(t=>-1!==t.indexOf(this.query)))}updateMenuConfig(){let t=this.configLookup[this.menuPlacement];null===t&&(t=ai),this.menuConfig=Object.assign(Object.assign({},t),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}}Kt([st({attribute:"selection"})],Ko.prototype,"selection",void 0),Kt([st({attribute:"options"})],Ko.prototype,"options",void 0),Kt([st({attribute:"filter-selected",mode:"boolean"})],Ko.prototype,"filterSelected",void 0),Kt([st({attribute:"filter-query",mode:"boolean"})],Ko.prototype,"filterQuery",void 0),Kt([st({attribute:"max-selected"})],Ko.prototype,"maxSelected",void 0),Kt([st({attribute:"no-suggestions-text"})],Ko.prototype,"noSuggestionsText",void 0),Kt([st({attribute:"suggestions-available-text"})],Ko.prototype,"suggestionsAvailableText",void 0),Kt([st({attribute:"loading-text"})],Ko.prototype,"loadingText",void 0),Kt([st({attribute:"label"})],Ko.prototype,"label",void 0),Kt([st({attribute:"labelledby"})],Ko.prototype,"labelledBy",void 0),Kt([st({attribute:"placeholder"})],Ko.prototype,"placeholder",void 0),Kt([st({attribute:"menu-placement"})],Ko.prototype,"menuPlacement",void 0),Kt([v],Ko.prototype,"showLoading",void 0),Kt([v],Ko.prototype,"listItemTemplate",void 0),Kt([v],Ko.prototype,"defaultListItemTemplate",void 0),Kt([v],Ko.prototype,"activeListItemTemplate",void 0),Kt([v],Ko.prototype,"menuOptionTemplate",void 0),Kt([v],Ko.prototype,"defaultMenuOptionTemplate",void 0),Kt([v],Ko.prototype,"activeMenuOptionTemplate",void 0),Kt([v],Ko.prototype,"listItemContentsTemplate",void 0),Kt([v],Ko.prototype,"menuOptionContentsTemplate",void 0),Kt([v],Ko.prototype,"optionsList",void 0),Kt([v],Ko.prototype,"query",void 0),Kt([v],Ko.prototype,"filteredOptionsList",void 0),Kt([v],Ko.prototype,"flyoutOpen",void 0),Kt([v],Ko.prototype,"menuId",void 0),Kt([v],Ko.prototype,"selectedListTag",void 0),Kt([v],Ko.prototype,"menuTag",void 0),Kt([v],Ko.prototype,"menuFocusIndex",void 0),Kt([v],Ko.prototype,"menuFocusOptionId",void 0),Kt([v],Ko.prototype,"showNoOptions",void 0),Kt([v],Ko.prototype,"menuConfig",void 0),Kt([v],Ko.prototype,"selectedItems",void 0);var Xo;!function(t){t.menuitem="menuitem",t.menuitemcheckbox="menuitemcheckbox",t.menuitemradio="menuitemradio"}(Xo||(Xo={}));const Yo={[Xo.menuitem]:"menuitem",[Xo.menuitemcheckbox]:"menuitemcheckbox",[Xo.menuitemradio]:"menuitemradio"};class Qo extends De{constructor(){super(...arguments),this.role=Xo.menuitem,this.hasSubmenu=!1,this.currentDirection=Ne.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Xo.menuitemcheckbox:this.checked=!this.checked;break;case Xo.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Xo.menuitemradio:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=ti(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),h.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(t=>!t.hasAttribute("hidden"))}}Kt([st({mode:"boolean"})],Qo.prototype,"disabled",void 0),Kt([st({mode:"boolean"})],Qo.prototype,"expanded",void 0),Kt([v],Qo.prototype,"startColumnCount",void 0),Kt([st],Qo.prototype,"role",void 0),Kt([st({mode:"boolean"})],Qo.prototype,"checked",void 0),Kt([v],Qo.prototype,"submenuRegion",void 0),Kt([v],Qo.prototype,"hasSubmenu",void 0),Kt([v],Qo.prototype,"currentDirection",void 0),Kt([v],Qo.prototype,"submenu",void 0),Ae(Qo,qt);class Zo extends De{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&Pe(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=t=>{const e=t.target;void 0!==this.menuItems&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||void 0===this.menuItems||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.setItems=()=>{const t=this.domChildren();this.removeItemListeners(),this.menuItems=t;const e=this.menuItems.filter(this.isMenuItemElement);e.length&&(this.focusIndex=0);const i=e.reduce((t,e)=>{const i=function(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e!==Xo.menuitem&&null===i||e===Xo.menuitem&&null!==i?1:e!==Xo.menuitem&&null!==i?2:0}(e);return t>i?t:i},0);e.forEach((t,e)=>{t.setAttribute("tabindex",0===e?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof Qo&&(t.startColumnCount=i)})},this.changeHandler=t=>{if(void 0===this.menuItems)return;const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===Xo.menuitemradio&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===Xo.menuitemradio&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>Pe(t)&&Zo.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),h.queueUpdate(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented&&void 0!==this.menuItems)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter(t=>!t.hasAttribute("hidden"))}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}Zo.focusableElementRoles=Yo,Kt([v],Zo.prototype,"items",void 0);class Jo extends De{}class ts extends(mi(Jo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var es;!function(t){t.email="email",t.password="password",t.tel="tel",t.text="text",t.url="url"}(es||(es={}));class is extends ts{constructor(){super(...arguments),this.type=es.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&h.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}Kt([st({attribute:"readonly",mode:"boolean"})],is.prototype,"readOnly",void 0),Kt([st({mode:"boolean"})],is.prototype,"autofocus",void 0),Kt([st],is.prototype,"placeholder",void 0),Kt([st],is.prototype,"type",void 0),Kt([st],is.prototype,"list",void 0),Kt([st({converter:it})],is.prototype,"maxlength",void 0),Kt([st({converter:it})],is.prototype,"minlength",void 0),Kt([st],is.prototype,"pattern",void 0),Kt([st({converter:it})],is.prototype,"size",void 0),Kt([st({mode:"boolean"})],is.prototype,"spellcheck",void 0),Kt([v],is.prototype,"defaultSlottedNodes",void 0);class os{}Ae(os,Qe),Ae(is,qt,os);class ss extends De{}class ns extends(mi(ss)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class rs extends ns{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}getValidValue(t){var e,i;let o=parseFloat(parseFloat(t).toPrecision(12));return isNaN(o)?o="":(o=Math.min(o,null!==(e=this.max)&&void 0!==e?e:o),o=Math.max(o,null!==(i=this.min)&&void 0!==i?i:o).toString()),o}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&h.queueUpdate(()=>{this.focus()})}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}Kt([st({attribute:"readonly",mode:"boolean"})],rs.prototype,"readOnly",void 0),Kt([st({mode:"boolean"})],rs.prototype,"autofocus",void 0),Kt([st({attribute:"hide-step",mode:"boolean"})],rs.prototype,"hideStep",void 0),Kt([st],rs.prototype,"placeholder",void 0),Kt([st],rs.prototype,"list",void 0),Kt([st({converter:it})],rs.prototype,"maxlength",void 0),Kt([st({converter:it})],rs.prototype,"minlength",void 0),Kt([st({converter:it})],rs.prototype,"size",void 0),Kt([st({converter:it})],rs.prototype,"step",void 0),Kt([st({converter:it})],rs.prototype,"max",void 0),Kt([st({converter:it})],rs.prototype,"min",void 0),Kt([v],rs.prototype,"defaultSlottedNodes",void 0),Ae(rs,qt,os);class as extends De{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}Kt([st({converter:it})],as.prototype,"value",void 0),Kt([st({converter:it})],as.prototype,"min",void 0),Kt([st({converter:it})],as.prototype,"max",void 0),Kt([st({mode:"boolean"})],as.prototype,"paused",void 0),Kt([v],as.prototype,"percentComplete",void 0);class ls extends De{constructor(){super(...arguments),this.orientation=ze.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in Be&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===Ne.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===Ne.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.getAttribute("value")===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=ti(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}Kt([st({attribute:"readonly",mode:"boolean"})],ls.prototype,"readOnly",void 0),Kt([st({attribute:"disabled",mode:"boolean"})],ls.prototype,"disabled",void 0),Kt([st],ls.prototype,"name",void 0),Kt([st],ls.prototype,"value",void 0),Kt([st],ls.prototype,"orientation",void 0),Kt([v],ls.prototype,"childItems",void 0),Kt([v],ls.prototype,"slottedRadioButtons",void 0);class cs extends De{}class hs extends(fi(cs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ds extends hs{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}Kt([st({attribute:"readonly",mode:"boolean"})],ds.prototype,"readOnly",void 0),Kt([v],ds.prototype,"name",void 0),Kt([v],ds.prototype,"defaultSlottedNodes",void 0);class us extends De{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&h.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops(),this.width=this.offsetWidth;let t=0,e=this.scrollItems.map(({offsetLeft:e,offsetWidth:i},o)=>{const s=e+i;return this.isRtl?-s:(t=s,0===o?0:e)}).concat(t);e=this.fixScrollMisalign(e),e.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=e,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e>=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>=e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}Kt([st({converter:it})],us.prototype,"speed",void 0),Kt([st],us.prototype,"duration",void 0),Kt([st],us.prototype,"easing",void 0),Kt([st({attribute:"flippers-hidden-from-at",converter:et})],us.prototype,"flippersHiddenFromAT",void 0),Kt([v],us.prototype,"scrolling",void 0),Kt([v],us.prototype,"scrollItems",void 0),Kt([st({attribute:"view"})],us.prototype,"view",void 0);function ps(t,e,i){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}class gs extends De{}class ms extends(mi(gs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class fs extends ms{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&h.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus()}handleChange(){this.$emit("change")}}Kt([st({attribute:"readonly",mode:"boolean"})],fs.prototype,"readOnly",void 0),Kt([st({mode:"boolean"})],fs.prototype,"autofocus",void 0),Kt([st],fs.prototype,"placeholder",void 0),Kt([st],fs.prototype,"list",void 0),Kt([st({converter:it})],fs.prototype,"maxlength",void 0),Kt([st({converter:it})],fs.prototype,"minlength",void 0),Kt([st],fs.prototype,"pattern",void 0),Kt([st({converter:it})],fs.prototype,"size",void 0),Kt([st({mode:"boolean"})],fs.prototype,"spellcheck",void 0),Kt([v],fs.prototype,"defaultSlottedNodes",void 0);class bs{}Ae(bs,Qe),Ae(fs,qt,bs);class vs extends Ho{}class ys extends(mi(vs)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class xs extends ys{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.position=qi.below,this.listboxId=Ge("listbox-"),this.maxHeight=0,this.displayValue=""}openChanged(t,e){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void h.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return b.track(this,"value"),this._value}set value(t){var e;const i=""+this._value;if(null===(e=this.options)||void 0===e?void 0:e.length){const e=this.options.findIndex(e=>e.value===t),i=this.options[this.selectedIndex],o=this.options[e],s=i?i.value:null,n=o?o.value:null;-1!==e&&s===n||(t="",this.selectedIndex=e),this.firstSelectedOption&&(t=this.firstSelectedOption.value)}i!==t&&(this._value=t,super.valueChanged(i,t),b.notify(this,"value"))}updateValue(t){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?this.firstSelectedOption.value:"",this.displayValue=this.firstSelectedOption?this.firstSelectedOption.textContent||this.firstSelectedOption.value:this.value),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(){this.positionAttribute=this.position,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?qi.above:qi.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===qi.above?~~t.top:~~e}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=(null===(e=this.listbox)||void 0===e?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var i;super.selectedOptionsChanged(t,e),null===(i=this.options)||void 0===i||i.forEach((t,e)=>{var i;const o=null===(i=this.proxy)||void 0===i?void 0:i.options.item(e);o&&(o.selected=t.selected)})}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(Ni.slottedOptionFilter),i=null==e?void 0:e.findIndex(t=>t.hasAttribute("selected")||t.selected||t.value===this.value);this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.options.add(e)}))}keydownHandler(t){super.keydownHandler(t);const e=t.key||t.key.charCodeAt(0);switch(e){case" ":t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case"Home":case"End":t.preventDefault();break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(e in Be)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}}Kt([st({attribute:"open",mode:"boolean"})],xs.prototype,"open",void 0),Kt([function(t,e,i){return Object.assign({},i,{get:function(){return b.trackVolatile(),i.get.apply(this)}})}],xs.prototype,"collapsible",null),Kt([v],xs.prototype,"control",void 0),Kt([st({attribute:"position"})],xs.prototype,"positionAttribute",void 0),Kt([v],xs.prototype,"position",void 0),Kt([v],xs.prototype,"maxHeight",void 0),Kt([v],xs.prototype,"displayValue",void 0);class $s{}Kt([v],$s.prototype,"ariaControls",void 0),Ae($s,ji),Ae(xs,qt,$s);class ws extends De{constructor(){super(...arguments),this.shape="rect"}}Kt([st],ws.prototype,"fill",void 0),Kt([st],ws.prototype,"shape",void 0),Kt([st],ws.prototype,"pattern",void 0),Kt([st({mode:"boolean"})],ws.prototype,"shimmer",void 0);function ks(t,e,i,o){let s=qe(0,1,(t-e)/(i-e));return o===Ne.rtl&&(s=1-s),s}const Cs={min:0,max:0,direction:Ne.ltr,orientation:ze.horizontal,disabled:!1};class Is extends De{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Ne.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||Ne.ltr,this.sliderOrientation=s||ze.horizontal,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=Cs.direction||Ne.ltr,this.sliderOrientation=Cs.orientation||ze.horizontal,this.sliderMaxPosition=Cs.max,this.sliderMinPosition=Cs.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:Ne.ltr,e=ks(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return Number.isNaN(o)&&Number.isNaN(i)&&(i=50,o=50),this.sliderOrientation===ze.horizontal?t===Ne.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=b.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMinPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}Kt([v],Is.prototype,"positionStyle",void 0),Kt([st],Is.prototype,"position",void 0),Kt([st({attribute:"hide-mark",mode:"boolean"})],Is.prototype,"hideMark",void 0),Kt([st({attribute:"disabled",mode:"boolean"})],Is.prototype,"disabled",void 0),Kt([v],Is.prototype,"sliderOrientation",void 0),Kt([v],Is.prototype,"sliderMinPosition",void 0),Kt([v],Is.prototype,"sliderMaxPosition",void 0),Kt([v],Is.prototype,"sliderDirection",void 0);class Ts extends De{}class Fs extends(mi(Ts)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Es;!function(t){t.singleValue="single-value"}(Es||(Es={}));class Ss extends Fs{constructor(){super(...arguments),this.direction=Ne.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=ze.horizontal,this.mode=Es.singleValue,this.keypressHandler=t=>{if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[e]("touchstart",this.handleThumbMouseDown,{passive:!0}),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove,{passive:!0}),window[e]("touchmove",this.handleMouseMove,{passive:!0}),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===ze.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=ks(t,this.orientation===ze.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===ze.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===ze.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=""+this.min),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=""+this.max),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=""+this.step),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=ti(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==Ne.rtl&&this.orientation!==ze.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=eNumber(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=100*(1-ks(Number(this.value),Number(this.min),Number(this.max),t));this.orientation===ze.horizontal?this.position=this.isDragging?`right: ${e}%; transition: none;`:`right: ${e}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${e}%; transition: none;`:`bottom: ${e}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return""+this.convertToConstrainedValue((this.max+this.min)/2)}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(tthis.max)&&(this.value=this.midpoint)}}}Kt([st({attribute:"readonly",mode:"boolean"})],Ss.prototype,"readOnly",void 0),Kt([v],Ss.prototype,"direction",void 0),Kt([v],Ss.prototype,"isDragging",void 0),Kt([v],Ss.prototype,"position",void 0),Kt([v],Ss.prototype,"trackWidth",void 0),Kt([v],Ss.prototype,"trackMinWidth",void 0),Kt([v],Ss.prototype,"trackHeight",void 0),Kt([v],Ss.prototype,"trackLeft",void 0),Kt([v],Ss.prototype,"trackMinHeight",void 0),Kt([v],Ss.prototype,"valueTextFormatter",void 0),Kt([st({converter:it})],Ss.prototype,"min",void 0),Kt([st({converter:it})],Ss.prototype,"max",void 0),Kt([st({converter:it})],Ss.prototype,"step",void 0),Kt([st],Ss.prototype,"orientation",void 0),Kt([st],Ss.prototype,"mode",void 0);class Os extends De{}class Ds extends(fi(Os)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Rs extends Ds{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case"Enter":case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(t,e){super.checkedChanged(t,e),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}Kt([st({attribute:"readonly",mode:"boolean"})],Rs.prototype,"readOnly",void 0),Kt([v],Rs.prototype,"defaultSlottedNodes",void 0);class Ls extends De{}class As extends De{}Kt([st({mode:"boolean"})],As.prototype,"disabled",void 0);var Vs,zs;!function(t){t.vertical="vertical",t.horizontal="horizontal"}(Vs||(Vs={}));class Ps extends De{constructor(){super(...arguments),this.orientation=Vs.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot){const t=this.activeTabIndex===i&&this.isFocusableElement(e);this.activeindicator&&this.isFocusableElement(e)&&(this.showActiveIndicator=!0);const o=this.tabIds[i],s=this.tabpanelIds[i];e.setAttribute("id",o),e.setAttribute("aria-selected",t?"true":"false"),e.setAttribute("aria-controls",s),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",t?"0":"-1"),t&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id",o),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:"tab-"+Ge()})}getTabPanelIds(){return this.tabpanels.map(t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:"panel-"+Ge()})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Vs.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=je(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Kt([st],Ps.prototype,"orientation",void 0),Kt([st],Ps.prototype,"activeid",void 0),Kt([v],Ps.prototype,"tabs",void 0),Kt([v],Ps.prototype,"tabpanels",void 0),Kt([st({mode:"boolean"})],Ps.prototype,"activeindicator",void 0),Kt([v],Ps.prototype,"activeIndicatorRef",void 0),Kt([v],Ps.prototype,"showActiveIndicator",void 0),Ae(Ps,qt);class Hs extends De{}class Ms extends(mi(Hs)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}!function(t){t.none="none",t.both="both",t.horizontal="horizontal",t.vertical="vertical"}(zs||(zs={}));class Bs extends Ms{constructor(){super(...arguments),this.resize=zs.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}handleChange(){this.$emit("change")}}Kt([st({mode:"boolean"})],Bs.prototype,"readOnly",void 0),Kt([st],Bs.prototype,"resize",void 0),Kt([st({mode:"boolean"})],Bs.prototype,"autofocus",void 0),Kt([st({attribute:"form"})],Bs.prototype,"formId",void 0),Kt([st],Bs.prototype,"list",void 0),Kt([st({converter:it})],Bs.prototype,"maxlength",void 0),Kt([st({converter:it})],Bs.prototype,"minlength",void 0),Kt([st],Bs.prototype,"name",void 0),Kt([st],Bs.prototype,"placeholder",void 0),Kt([st({converter:it,mode:"fromView"})],Bs.prototype,"cols",void 0),Kt([st({converter:it,mode:"fromView"})],Bs.prototype,"rows",void 0),Kt([st({mode:"boolean"})],Bs.prototype,"spellcheck",void 0),Kt([v],Bs.prototype,"defaultSlottedNodes",void 0),Ae(Bs,os);const Ns=Object.freeze({[Be.ArrowUp]:{[ze.vertical]:-1},[Be.ArrowDown]:{[ze.vertical]:1},[Be.ArrowLeft]:{[ze.horizontal]:{[Ne.ltr]:-1,[Ne.rtl]:1}},[Be.ArrowRight]:{[ze.horizontal]:{[Ne.ltr]:1,[Ne.rtl]:-1}}});class js extends De{constructor(){super(...arguments),this._activeIndex=0,this.direction=Ne.ltr,this.orientation=ze.horizontal,this.startEndSlotChange=()=>{this.$fastController.isConnected&&this.reduceFocusableElements()}}get activeIndex(){return b.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=qe(0,this.focusableElements.length-1,t),b.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}connectedCallback(){super.connectedCallback(),this.direction=ti(this),this.start.addEventListener("slotchange",this.startEndSlotChange),this.end.addEventListener("slotchange",this.startEndSlotChange)}disconnectedCallback(){super.disconnectedCallback(),this.start.removeEventListener("slotchange",this.startEndSlotChange),this.end.removeEventListener("slotchange",this.startEndSlotChange)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=Ns[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=Ns[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in Be)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){this.focusableElements=this.allSlottedItems.reduce(js.reduceFocusableItems,[]),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>Do(t));return Do(e)||r||a||l?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(js.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}Kt([v],js.prototype,"direction",void 0),Kt([st],js.prototype,"orientation",void 0),Kt([v],js.prototype,"slottedItems",void 0),Kt([v],js.prototype,"slottedLabel",void 0);class qs{}Kt([st({attribute:"aria-labelledby"})],qs.prototype,"ariaLabelledby",void 0),Kt([st({attribute:"aria-label"})],qs.prototype,"ariaLabel",void 0),Ae(qs,Qe),Ae(js,qt,qs);var Us;!function(t){t.top="top",t.right="right",t.bottom="bottom",t.left="left",t.start="start",t.end="end",t.topLeft="top-left",t.topRight="top-right",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.topStart="top-start",t.topEnd="top-end",t.bottomStart="bottom-start",t.bottomEnd="bottom-end"}(Us||(Us={}));class _s extends De{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=Ne.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleRegionMouseOver=t=>{this.isRegionHovered=!0},this.handleRegionMouseOut=t=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=t=>{this.tooltipVisible?this.isAnchorHoveredFocused=!0:this.startShowDelayTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=t=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout(()=>{this.updateTooltipVisibility()},60))},this.clearHideDelayTimer=()=>{null!==this.hideDelayTimer&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.showDelayTimer&&(this.showDelayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{null!==this.showDelayTimer&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused||this.isRegionHovered)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=ti(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),h.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startShowDelayTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case Us.top:case Us.bottom:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case Us.right:case Us.left:case Us.start:case Us.end:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case Us.topLeft:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case Us.topRight:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case Us.bottomLeft:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case Us.bottomRight:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case Us.topStart:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case Us.topEnd:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case Us.bottomStart:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case Us.bottomEnd:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}Kt([st({mode:"boolean"})],_s.prototype,"visible",void 0),Kt([st],_s.prototype,"anchor",void 0),Kt([st],_s.prototype,"delay",void 0),Kt([st],_s.prototype,"position",void 0),Kt([st({attribute:"auto-update-mode"})],_s.prototype,"autoUpdateMode",void 0),Kt([st({attribute:"horizontal-viewport-lock"})],_s.prototype,"horizontalViewportLock",void 0),Kt([st({attribute:"vertical-viewport-lock"})],_s.prototype,"verticalViewportLock",void 0),Kt([v],_s.prototype,"anchorElement",void 0),Kt([v],_s.prototype,"viewportElement",void 0),Kt([v],_s.prototype,"verticalPositioningMode",void 0),Kt([v],_s.prototype,"horizontalPositioningMode",void 0),Kt([v],_s.prototype,"horizontalInset",void 0),Kt([v],_s.prototype,"verticalInset",void 0),Kt([v],_s.prototype,"horizontalScaling",void 0),Kt([v],_s.prototype,"verticalScaling",void 0),Kt([v],_s.prototype,"verticalDefaultPosition",void 0),Kt([v],_s.prototype,"horizontalDefaultPosition",void 0),Kt([v],_s.prototype,"tooltipVisible",void 0),Kt([v],_s.prototype,"currentDirection",void 0);function Gs(t){return Pe(t)&&"treeitem"===t.getAttribute("role")}class Ws extends De{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Gs(this.parentElement),this.handleExpandCollapseButtonClick=t=>{this.disabled||t.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=t=>{this.setAttribute("tabindex","0")},this.handleBlur=t=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{Gs(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>Gs(t));return t?t.length:0}}Kt([st({mode:"boolean"})],Ws.prototype,"expanded",void 0),Kt([st({mode:"boolean"})],Ws.prototype,"selected",void 0),Kt([st({mode:"boolean"})],Ws.prototype,"disabled",void 0),Kt([v],Ws.prototype,"focusable",void 0),Kt([v],Ws.prototype,"childItems",void 0),Kt([v],Ws.prototype,"items",void 0),Kt([v],Ws.prototype,"nested",void 0),Kt([v],Ws.prototype,"renderCollapsedChildren",void 0),Ae(Ws,qt);class Ks extends De{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=t=>{if(!(this.slottedTreeItems.length<1))return t.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&Ws.focusItem(this.currentFocused))):void(this.contains(t.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=t.target))},this.handleBlur=t=>{t.target instanceof HTMLElement&&(null===t.relatedTarget||!this.contains(t.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=t=>{if(t.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const e=this.getVisibleNodes();switch(t.key){case"Home":return void(e.length&&Ws.focusItem(e[0]));case"End":return void(e.length&&Ws.focusItem(e[e.length-1]));case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Ws&&e.childItemLength()>0&&(e.expanded=!1)}return!1;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Ws&&e.childItemLength()>0&&(e.expanded=!0)}return;case"ArrowDown":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target));case"ArrowUp":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target));case"Enter":return void this.handleClick(t)}return!0},this.handleSelectedChange=t=>{if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Gs(t.target)))return!0;const e=t.target;e.selected?(this.currentSelected&&this.currentSelected!==e&&(this.currentSelected.selected=!1),this.currentSelected=e):e.selected||this.currentSelected!==e||(this.currentSelected=null)},this.setItems=()=>{const t=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=t,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach(t=>{Gs(t)&&(t.nested=this.nested)})},this.isFocusableElement=t=>Gs(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),h.queueUpdate(()=>{this.setItems()})}handleClick(t){if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Gs(t.target)))return!0;const e=t.target;e.disabled||(e.selected=!e.selected)}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i[i.indexOf(e)+t];Pe(o)&&Ws.focusItem(o)}getValidFocusableItem(){const t=this.getVisibleNodes();let e=t.findIndex(this.isSelectedElement);return-1===e&&(e=t.findIndex(this.isFocusableElement)),-1!==e?t[e]:null}checkForNestedItems(){return this.slottedTreeItems.some(t=>Gs(t)&&t.querySelector("[role='treeitem']"))}getVisibleNodes(){return function(t,e){if(!t||!e||!Pe(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}Kt([st({attribute:"render-collapsed-nodes"})],Ks.prototype,"renderCollapsedNodes",void 0),Kt([v],Ks.prototype,"currentSelected",void 0),Kt([v],Ks.prototype,"slottedTreeItems",void 0);class Xs extends class{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,i=this.constructListener(t);i.bind(e)(),e.addListener(i),this.listenerCache.set(t,i)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new Xs(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!e?(t.$fastController.addStyles(i),e=o):!o&&e&&(t.$fastController.removeStyles(i),e=o)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const Ys=Xs.with(window.matchMedia("(forced-colors)"));Xs.with(window.matchMedia("(prefers-color-scheme: dark)")),Xs.with(window.matchMedia("(prefers-color-scheme: light)"));class Qs{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){b.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){b.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}function Zs(t){return`:host([hidden]){display:none}:host{display:${t}}`}const Js=function(){if("boolean"==typeof He)return He;if("undefined"==typeof window||!window.document||!window.document.createElement)return He=!1,He;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),He=!0}catch(t){He=!1}finally{document.head.removeChild(t)}return He}()?"focus-visible":"focus";function tn(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function en(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function on(t,e,i){return isNaN(t)?e:e+t*(i-e)}function sn(t){return t*(Math.PI/180)}function nn(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function rn(t,e,i){if(t<=0)return e%360;if(t>=1)return i%360;const o=(e-i+360)%360;return o<=(i-e+360)%360?(e-o*t+360)%360:(e+o*t+360)%360}function an(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}class ln{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new ln(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new ln(an(this.h,t),an(this.s,t),an(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class cn{constructor(t,e,i){this.h=t,this.s=e,this.v=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.v)?null:new cn(t.h,t.s,t.v)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.v===t.v}roundToPrecision(t){return new cn(an(this.h,t),an(this.s,t),an(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class hn{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new hn(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new hn(an(this.l,t),an(this.a,t),an(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}hn.epsilon=216/24389,hn.kappa=24389/27;class dn{constructor(t,e,i){this.l=t,this.c=e,this.h=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.c)||isNaN(t.h)?null:new dn(t.l,t.c,t.h)}equalValue(t){return this.l===t.l&&this.c===t.c&&this.h===t.h}roundToPrecision(t){return new dn(an(this.l,t),an(this.c,t),an(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class un{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new un(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(on(this.r,0,255))},${Math.round(on(this.g,0,255))},${Math.round(on(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(on(this.r,0,255))},${Math.round(on(this.g,0,255))},${Math.round(on(this.b,0,255))},${tn(this.a,0,1)})`}roundToPrecision(t){return new un(an(this.r,t),an(this.g,t),an(this.b,t),an(this.a,t))}clamp(){return new un(tn(this.r,0,1),tn(this.g,0,1),tn(this.b,0,1),tn(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(tn(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(on(t,0,255))}}class pn{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new pn(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new pn(an(this.x,t),an(this.y,t),an(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function gn(t){return.2126*t.r+.7152*t.g+.0722*t.b}function mn(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return gn(new un(e(t.r),e(t.g),e(t.b),1))}pn.whitePoint=new pn(.95047,1,1.08883);const fn=(t,e)=>(t+.05)/(e+.05);function bn(t,e){const i=mn(t),o=mn(e);return i>o?fn(i,o):fn(o,i)}function vn(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new ln(s,r,n)}function yn(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new un(n+s,r+s,a+s,e)}function xn(t){const e=Math.max(t.r,t.g,t.b),i=e-Math.min(t.r,t.g,t.b);let o=0;0!==i&&(o=e===t.r?(t.g-t.b)/i%6*60:e===t.g?60*((t.b-t.r)/i+2):60*((t.r-t.g)/i+4)),o<0&&(o+=360);let s=0;return 0!==e&&(s=i/e),new cn(o,s,e)}function $n(t){let e=0;(Math.abs(t.b)>.001||Math.abs(t.a)>.001)&&(e=Math.atan2(t.b,t.a)*(180/Math.PI)),e<0&&(e+=360);const i=Math.sqrt(t.a*t.a+t.b*t.b);return new dn(t.l,i,e)}function wn(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new pn(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}function kn(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new un(o,s,n,e)}function Cn(t){return function(t){function e(t){return t>hn.epsilon?Math.pow(t,1/3):(hn.kappa*t+16)/116}const i=e(t.x/pn.whitePoint.x),o=e(t.y/pn.whitePoint.y),s=e(t.z/pn.whitePoint.z);return new hn(116*o-16,500*(i-o),200*(o-s))}(wn(t))}function In(t,e=1){return kn(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>hn.epsilon?s:(116*i-16)/hn.kappa;let l=0;l=t.l>hn.epsilon*hn.kappa?n:t.l/hn.kappa;let c=0;return c=r>hn.epsilon?r:(116*o-16)/hn.kappa,a=pn.whitePoint.x*a,l=pn.whitePoint.y*l,c=pn.whitePoint.z*c,new pn(a,l,c)}(t),e)}function Tn(t){return $n(Cn(t))}function Fn(t,e=1){return In(function(t){let e=0,i=0;return 0!==t.h&&(e=Math.cos(sn(t.h))*t.c,i=Math.sin(sn(t.h))*t.c),new hn(t.l,e,i)}(t),e)}function En(t,e,i=18){const o=Tn(t);let s=o.c+e*i;return s<0&&(s=0),Fn(new dn(o.l,s,o.h))}function Sn(t,e){return t*e}function On(t,e){return new un(Sn(t.r,e.r),Sn(t.g,e.g),Sn(t.b,e.b),1)}function Dn(t,e){return tn(t<.5?2*e*t:1-2*(1-e)*(1-t),0,1)}function Rn(t,e){return new un(Dn(t.r,e.r),Dn(t.g,e.g),Dn(t.b,e.b),1)}var Ln,An;function Vn(t,e,i,o){if(isNaN(t)||t<=0)return i;if(t>=1)return o;switch(e){case An.HSL:return yn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new ln(rn(t,e.h,i.h),nn(t,e.s,i.s),nn(t,e.l,i.l))}(t,vn(i),vn(o)));case An.HSV:return function(t,e=1){const i=t.s*t.v,o=i*(1-Math.abs(t.h/60%2-1)),s=t.v-i;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new un(n+s,r+s,a+s,e)}(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new cn(rn(t,e.h,i.h),nn(t,e.s,i.s),nn(t,e.v,i.v))}(t,xn(i),xn(o)));case An.XYZ:return kn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new pn(nn(t,e.x,i.x),nn(t,e.y,i.y),nn(t,e.z,i.z))}(t,wn(i),wn(o)));case An.LAB:return In(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new hn(nn(t,e.l,i.l),nn(t,e.a,i.a),nn(t,e.b,i.b))}(t,Cn(i),Cn(o)));case An.LCH:return Fn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new dn(nn(t,e.l,i.l),nn(t,e.c,i.c),rn(t,e.h,i.h))}(t,Tn(i),Tn(o)));default:return function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new un(nn(t,e.r,i.r),nn(t,e.g,i.g),nn(t,e.b,i.b),nn(t,e.a,i.a))}(t,i,o)}}!function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(Ln||(Ln={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(An||(An={}));class zn{constructor(t){if(null==t||0===t.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(t)}static createBalancedColorScale(t){if(null==t||0===t.length)throw new Error("The colors argument must be non-empty");const e=new Array(t.length);for(let i=0;i=1)return this.stops[this.stops.length-1].color;let i=0;for(let e=0;e=this.stops.length&&(o=this.stops.length-1);return Vn((t-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),e,this.stops[i].color,this.stops[o].color)}trim(t,e,i=An.RGB){if(t<0||e>1||e=t&&this.stops[i].position<=e&&o.push(this.stops[i]);if(0===o.length)return new zn([{color:this.getColor(t),position:t},{color:this.getColor(e),position:e}]);o[0].position!==t&&o.unshift({color:this.getColor(t),position:t}),o[o.length-1].position!==e&&o.push({color:this.getColor(e),position:e});const s=e-t,n=new Array(o.length);for(let e=0;e=1&&(t=1);const r=this.getColor(t,o),a=i?0:1;if(bn(r,this.getColor(a,o))<=e)return a;let l=i?0:t,c=i?t:0,h=a,d=0;for(;d<=n;){h=Math.abs(c-l)/2+l;const t=bn(r,this.getColor(h,o));if(Math.abs(t-e)<=s)return h;t>e?i?l=h:c=h:i?c=h:l=h,d++}return h}clone(){const t=new Array(this.stops.length);for(let e=0;e{const i=t.position,o=e.position;return io?1:0})}}const Pn=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function Hn(t){const e=Pn.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new un(en((16711680&o)>>>16,0,255),en((65280&o)>>>8,0,255),en(255&o,0,255),1)}class Mn{constructor(t){this.config=Object.assign({},Mn.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(t){let e=!1;for(const i in t)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(t[i])||(this.config[i]=t[i],e=!0):t[i]!==this.config[i]&&(this.config[i]=t[i],e=!0));return e&&this.updatePaletteColors(),e}updatePaletteColors(){const t=this.generatePaletteColorScale();for(let e=0;e=this.config.saturationAdjustmentCutoff&&(i=En(i,this.config.saturationLight),o=En(o,this.config.saturationDark)),0!==this.config.multiplyLight){const t=On(this.config.baseColor,i);i=Vn(this.config.multiplyLight,this.config.interpolationMode,i,t)}if(0!==this.config.multiplyDark){const t=On(this.config.baseColor,o);o=Vn(this.config.multiplyDark,this.config.interpolationMode,o,t)}if(0!==this.config.overlayLight){const t=Rn(this.config.baseColor,i);i=Vn(this.config.overlayLight,this.config.interpolationMode,i,t)}if(0!==this.config.overlayDark){const t=Rn(this.config.baseColor,o);o=Vn(this.config.overlayDark,this.config.interpolationMode,o,t)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new zn([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new zn([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new zn([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new zn([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}Mn.defaultPaletteConfig={baseColor:Hn("#808080"),steps:11,interpolationMode:An.RGB,scaleColorLight:new un(1,1,1,1),scaleColorDark:new un(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},Mn.greyscalePaletteConfig={baseColor:Hn("#808080"),steps:11,interpolationMode:An.RGB,scaleColorLight:new un(1,1,1,1),scaleColorDark:new un(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},Mn.defaultPaletteConfig.scaleColorLight,Mn.defaultPaletteConfig.scaleColorDark;class Bn{constructor(t){this.palette=[],this.config=Object.assign({},Bn.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let t=this.config.steps;(isNaN(t)||t<3)&&(t=3);const e=new un(.14,.14,.14,1),i=new Mn(Object.assign(Object.assign({},Mn.greyscalePaletteConfig),{baseColor:e,baseScalePosition:86/94,steps:t})).palette,o=(gn(this.config.baseColor)+vn(this.config.baseColor).l)/2,s=this.matchRelativeLuminanceIndex(o,i)/(t-1),n=this.matchRelativeLuminanceIndex(.14,i)/(t-1),r=vn(this.config.baseColor),a=yn(ln.fromObject({h:r.h,s:r.s,l:.14})),l=yn(ln.fromObject({h:r.h,s:r.s,l:.06})),c=new Array(5);c[0]={position:0,color:new un(1,1,1,1)},c[1]={position:s,color:this.config.baseColor},c[2]={position:n,color:a},c[3]={position:.99,color:l},c[4]={position:1,color:new un(0,0,0,1)};const h=new zn(c);this.palette=new Array(t);for(let e=0;ee.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}Bn.defaultPaletteConfig={baseColor:Hn("#808080"),steps:94};const jn=Object.freeze({create:(t,e,i)=>new qn(t,e,i),from:t=>new qn(t.r,t.g,t.b)});class qn extends un{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=Nn.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=mn(this)}static fromObject(t){return new qn(t.r,t.g,t.b)}}const Un=(-.1+Math.sqrt(.21))/2;function _n(t){return t.relativeLuminance<=Un}function Gn(t){return _n(t)?-1:1}const Wn=Object.freeze({create:function(t,e,i){return"number"==typeof t?Wn.from(jn.create(t,e,i)):Wn.from(t)},from:function(t){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?Kn.from(t):Kn.from(jn.create(t.r,t.g,t.b))}});class Kn{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=Gn(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>Nn(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[tn(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance){const e=Hn(t.toStringHexRGB());return jn.create(e.r,e.g,e.b)})))}}const Xn=jn.create(1,1,1),Yn=jn.create(0,0,0),Qn=jn.from(Hn("#808080")),Zn=jn.from(Hn("#DA1A5F"));function Jn(t){return jn.create(t,t,t)}var tr;function er(t,e,i,o,s,n){return Math.max(t.closestIndexOf(Jn(e))+i,o,s,n)}!function(t){t[t.LightMode=1]="LightMode",t[t.DarkMode=.23]="DarkMode"}(tr||(tr={}));const{create:ir}=po;function or(t){return po.create({name:t,cssCustomPropertyName:null})}const sr=ir("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),nr=ir("base-height-multiplier").withDefault(10),rr=ir("base-horizontal-spacing-multiplier").withDefault(3),ar=ir("base-layer-luminance").withDefault(tr.DarkMode),lr=ir("control-corner-radius").withDefault(4),cr=ir("density").withDefault(0),hr=ir("design-unit").withDefault(4),dr=ir("direction").withDefault(Ne.ltr),ur=ir("disabled-opacity").withDefault(.3),pr=ir("stroke-width").withDefault(1),gr=ir("focus-stroke-width").withDefault(2),mr=ir("type-ramp-base-font-size").withDefault("14px"),fr=ir("type-ramp-base-line-height").withDefault("20px"),br=ir("type-ramp-minus-1-font-size").withDefault("12px"),vr=ir("type-ramp-minus-1-line-height").withDefault("16px"),yr=ir("type-ramp-minus-2-font-size").withDefault("10px"),xr=ir("type-ramp-minus-2-line-height").withDefault("16px"),$r=ir("type-ramp-plus-1-font-size").withDefault("16px"),wr=ir("type-ramp-plus-1-line-height").withDefault("24px"),kr=ir("type-ramp-plus-2-font-size").withDefault("20px"),Cr=ir("type-ramp-plus-2-line-height").withDefault("28px"),Ir=ir("type-ramp-plus-3-font-size").withDefault("28px"),Tr=ir("type-ramp-plus-3-line-height").withDefault("36px"),Fr=ir("type-ramp-plus-4-font-size").withDefault("34px"),Er=ir("type-ramp-plus-4-line-height").withDefault("44px"),Sr=ir("type-ramp-plus-5-font-size").withDefault("46px"),Or=ir("type-ramp-plus-5-line-height").withDefault("56px"),Dr=ir("type-ramp-plus-6-font-size").withDefault("60px"),Rr=ir("type-ramp-plus-6-line-height").withDefault("72px"),Lr=or("accent-fill-rest-delta").withDefault(0),Ar=or("accent-fill-hover-delta").withDefault(4),Vr=or("accent-fill-active-delta").withDefault(-5),zr=or("accent-fill-focus-delta").withDefault(0),Pr=or("accent-foreground-rest-delta").withDefault(0),Hr=or("accent-foreground-hover-delta").withDefault(6),Mr=or("accent-foreground-active-delta").withDefault(-4),Br=or("accent-foreground-focus-delta").withDefault(0),Nr=or("neutral-fill-rest-delta").withDefault(7),jr=or("neutral-fill-hover-delta").withDefault(10),qr=or("neutral-fill-active-delta").withDefault(5),Ur=or("neutral-fill-focus-delta").withDefault(0),_r=or("neutral-fill-input-rest-delta").withDefault(0),Gr=or("neutral-fill-input-hover-delta").withDefault(0),Wr=or("neutral-fill-input-active-delta").withDefault(0),Kr=or("neutral-fill-input-focus-delta").withDefault(0),Xr=or("neutral-fill-stealth-rest-delta").withDefault(0),Yr=or("neutral-fill-stealth-hover-delta").withDefault(5),Qr=or("neutral-fill-stealth-active-delta").withDefault(3),Zr=or("neutral-fill-stealth-focus-delta").withDefault(0),Jr=or("neutral-fill-strong-rest-delta").withDefault(0),ta=or("neutral-fill-strong-hover-delta").withDefault(8),ea=or("neutral-fill-strong-active-delta").withDefault(-5),ia=or("neutral-fill-strong-focus-delta").withDefault(0),oa=or("neutral-fill-layer-rest-delta").withDefault(3),sa=or("neutral-stroke-rest-delta").withDefault(25),na=or("neutral-stroke-hover-delta").withDefault(40),ra=or("neutral-stroke-active-delta").withDefault(16),aa=or("neutral-stroke-focus-delta").withDefault(25),la=or("neutral-stroke-divider-rest-delta").withDefault(8),ca=ir("neutral-color").withDefault(Qn),ha=or("neutral-palette").withDefault(t=>Wn.from(ca.getValueFor(t))),da=ir("accent-color").withDefault(Zn),ua=or("accent-palette").withDefault(t=>Wn.from(da.getValueFor(t))),pa=or("neutral-layer-card-container-recipe").withDefault({evaluate:t=>{return e=ha.getValueFor(t),i=ar.getValueFor(t),o=oa.getValueFor(t),e.get(e.closestIndexOf(Jn(i))+o);var e,i,o}}),ga=ir("neutral-layer-card-container").withDefault(t=>pa.getValueFor(t).evaluate(t)),ma=or("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){const o=t.closestIndexOf(Jn(e))-i;return t.get(o-i)}(ha.getValueFor(t),ar.getValueFor(t),oa.getValueFor(t))}),fa=ir("neutral-layer-floating").withDefault(t=>ma.getValueFor(t).evaluate(t)),ba=or("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(t.closestIndexOf(Jn(e)))}(ha.getValueFor(t),ar.getValueFor(t))}),va=ir("neutral-layer-1").withDefault(t=>ba.getValueFor(t).evaluate(t)),ya=or("neutral-layer-2-recipe").withDefault({evaluate:t=>{return e=ha.getValueFor(t),i=ar.getValueFor(t),o=oa.getValueFor(t),s=Nr.getValueFor(t),n=jr.getValueFor(t),r=qr.getValueFor(t),e.get(er(e,i,o,s,n,r));var e,i,o,s,n,r}}),xa=ir("neutral-layer-2").withDefault(t=>ya.getValueFor(t).evaluate(t)),$a=or("neutral-layer-3-recipe").withDefault({evaluate:t=>{return e=ha.getValueFor(t),i=ar.getValueFor(t),o=oa.getValueFor(t),s=Nr.getValueFor(t),n=jr.getValueFor(t),r=qr.getValueFor(t),e.get(er(e,i,o,s,n,r)+o);var e,i,o,s,n,r}}),wa=ir("neutral-layer-3").withDefault(t=>$a.getValueFor(t).evaluate(t)),ka=or("neutral-layer-4-recipe").withDefault({evaluate:t=>{return e=ha.getValueFor(t),i=ar.getValueFor(t),o=oa.getValueFor(t),s=Nr.getValueFor(t),n=jr.getValueFor(t),r=qr.getValueFor(t),e.get(er(e,i,o,s,n,r)+2*o);var e,i,o,s,n,r}}),Ca=ir("neutral-layer-4").withDefault(t=>ka.getValueFor(t).evaluate(t)),Ia=ir("fill-color").withDefault(t=>va.getValueFor(t));var Ta;!function(t){t[t.normal=4.5]="normal",t[t.large=7]="large"}(Ta||(Ta={}));const Fa=ir({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l){const c=t.source,h=e.closestIndexOf(i)>=Math.max(r,a,l)?-1:1,d=t.closestIndexOf(c),u=d+-1*h*o,p=u+h*s,g=u+h*n;return{rest:t.get(u),hover:t.get(d),active:t.get(p),focus:t.get(g)}}(ua.getValueFor(t),ha.getValueFor(t),e||Ia.getValueFor(t),Ar.getValueFor(t),Vr.getValueFor(t),zr.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),qr.getValueFor(t))}),Ea=ir("accent-fill-rest").withDefault(t=>Fa.getValueFor(t).evaluate(t).rest),Sa=ir("accent-fill-hover").withDefault(t=>Fa.getValueFor(t).evaluate(t).hover),Oa=ir("accent-fill-active").withDefault(t=>Fa.getValueFor(t).evaluate(t).active),Da=ir("accent-fill-focus").withDefault(t=>Fa.getValueFor(t).evaluate(t).focus),Ra=t=>(e,i)=>function(t,e){return t.contrast(Xn)>=e?Xn:Yn}(i||Ea.getValueFor(e),t),La=or("foreground-on-accent-recipe").withDefault({evaluate:(t,e)=>Ra(Ta.normal)(t,e)}),Aa=ir("foreground-on-accent-rest").withDefault(t=>La.getValueFor(t).evaluate(t,Ea.getValueFor(t))),Va=ir("foreground-on-accent-hover").withDefault(t=>La.getValueFor(t).evaluate(t,Sa.getValueFor(t))),za=ir("foreground-on-accent-active").withDefault(t=>La.getValueFor(t).evaluate(t,Oa.getValueFor(t))),Pa=ir("foreground-on-accent-focus").withDefault(t=>La.getValueFor(t).evaluate(t,Da.getValueFor(t))),Ha=or("foreground-on-accent-large-recipe").withDefault({evaluate:(t,e)=>Ra(Ta.large)(t,e)}),Ma=ir("foreground-on-accent-rest-large").withDefault(t=>Ha.getValueFor(t).evaluate(t,Ea.getValueFor(t))),Ba=ir("foreground-on-accent-hover-large").withDefault(t=>Ha.getValueFor(t).evaluate(t,Sa.getValueFor(t))),Na=ir("foreground-on-accent-active-large").withDefault(t=>Ha.getValueFor(t).evaluate(t,Oa.getValueFor(t))),ja=ir("foreground-on-accent-focus-large").withDefault(t=>Ha.getValueFor(t).evaluate(t,Da.getValueFor(t))),qa=t=>(e,i)=>function(t,e,i,o,s,n,r){const a=t.source,l=t.closestIndexOf(a),c=Gn(e),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=t.colorContrast(e,i,h,c),u=t.closestIndexOf(d),p=u+c*Math.abs(o-s);let g,m;return(1===c?oc*s)?(g=u,m=p):(g=p,m=u),{rest:t.get(g),hover:t.get(m),active:t.get(g+c*n),focus:t.get(g+c*r)}}(ua.getValueFor(e),i||Ia.getValueFor(e),t,Pr.getValueFor(e),Hr.getValueFor(e),Mr.getValueFor(e),Br.getValueFor(e)),Ua=ir({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>qa(Ta.normal)(t,e)}),_a=ir("accent-foreground-rest").withDefault(t=>Ua.getValueFor(t).evaluate(t).rest),Ga=ir("accent-foreground-hover").withDefault(t=>Ua.getValueFor(t).evaluate(t).hover),Wa=ir("accent-foreground-active").withDefault(t=>Ua.getValueFor(t).evaluate(t).active),Ka=ir("accent-foreground-focus").withDefault(t=>Ua.getValueFor(t).evaluate(t).focus),Xa=ir({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=r>=Math.max(i,o,s,n)?-1:1;return{rest:t.get(r+a*i),hover:t.get(r+a*o),active:t.get(r+a*s),focus:t.get(r+a*n)}}(ha.getValueFor(t),e||Ia.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),qr.getValueFor(t),Ur.getValueFor(t))}),Ya=ir("neutral-fill-rest").withDefault(t=>Xa.getValueFor(t).evaluate(t).rest),Qa=ir("neutral-fill-hover").withDefault(t=>Xa.getValueFor(t).evaluate(t).hover),Za=ir("neutral-fill-active").withDefault(t=>Xa.getValueFor(t).evaluate(t).active),Ja=ir("neutral-fill-focus").withDefault(t=>Xa.getValueFor(t).evaluate(t).focus),tl=ir({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=Gn(e),a=t.closestIndexOf(e);return{rest:t.get(a-r*i),hover:t.get(a-r*o),active:t.get(a-r*s),focus:t.get(a-r*n)}}(ha.getValueFor(t),e||Ia.getValueFor(t),_r.getValueFor(t),Gr.getValueFor(t),Wr.getValueFor(t),Kr.getValueFor(t))}),el=ir("neutral-fill-input-rest").withDefault(t=>tl.getValueFor(t).evaluate(t).rest),il=ir("neutral-fill-input-hover").withDefault(t=>tl.getValueFor(t).evaluate(t).hover),ol=ir("neutral-fill-input-active").withDefault(t=>tl.getValueFor(t).evaluate(t).active),sl=ir("neutral-fill-input-focus").withDefault(t=>tl.getValueFor(t).evaluate(t).focus),nl=ir({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c){const h=Math.max(i,o,s,n,r,a,l,c),d=t.closestIndexOf(e),u=d>=h?-1:1;return{rest:t.get(d+u*i),hover:t.get(d+u*o),active:t.get(d+u*s),focus:t.get(d+u*n)}}(ha.getValueFor(t),e||Ia.getValueFor(t),Xr.getValueFor(t),Yr.getValueFor(t),Qr.getValueFor(t),Zr.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),qr.getValueFor(t),Ur.getValueFor(t))}),rl=ir("neutral-fill-stealth-rest").withDefault(t=>nl.getValueFor(t).evaluate(t).rest),al=ir("neutral-fill-stealth-hover").withDefault(t=>nl.getValueFor(t).evaluate(t).hover),ll=ir("neutral-fill-stealth-active").withDefault(t=>nl.getValueFor(t).evaluate(t).active),cl=ir("neutral-fill-stealth-focus").withDefault(t=>nl.getValueFor(t).evaluate(t).focus),hl=ir({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=Gn(e),a=t.closestIndexOf(t.colorContrast(e,4.5)),l=a+r*Math.abs(i-o);let c,h;return(1===r?ir*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(ha.getValueFor(t),e||Ia.getValueFor(t),Jr.getValueFor(t),ta.getValueFor(t),ea.getValueFor(t),ia.getValueFor(t))}),dl=ir("neutral-fill-strong-rest").withDefault(t=>hl.getValueFor(t).evaluate(t).rest),ul=ir("neutral-fill-strong-hover").withDefault(t=>hl.getValueFor(t).evaluate(t).hover),pl=ir("neutral-fill-strong-active").withDefault(t=>hl.getValueFor(t).evaluate(t).active),gl=ir("neutral-fill-strong-focus").withDefault(t=>hl.getValueFor(t).evaluate(t).focus),ml=or("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){const o=t.closestIndexOf(e);return t.get(o-(oml.getValueFor(t).evaluate(t)),bl=or("focus-stroke-outer-recipe").withDefault({evaluate:t=>{return e=ha.getValueFor(t),i=Ia.getValueFor(t),e.colorContrast(i,3.5);var e,i}}),vl=ir("focus-stroke-outer").withDefault(t=>bl.getValueFor(t).evaluate(t)),yl=or("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return e=ua.getValueFor(t),i=Ia.getValueFor(t),o=vl.getValueFor(t),e.colorContrast(o,3.5,e.closestIndexOf(e.source),-1*Gn(i));var e,i,o}}),xl=ir("focus-stroke-inner").withDefault(t=>yl.getValueFor(t).evaluate(t)),$l=or("neutral-foreground-hint-recipe").withDefault({evaluate:t=>{return e=ha.getValueFor(t),i=Ia.getValueFor(t),e.colorContrast(i,4.5);var e,i}}),wl=ir("neutral-foreground-hint").withDefault(t=>$l.getValueFor(t).evaluate(t)),kl=or("neutral-foreground-recipe").withDefault({evaluate:t=>{return e=ha.getValueFor(t),i=Ia.getValueFor(t),e.colorContrast(i,14);var e,i}}),Cl=ir("neutral-foreground-rest").withDefault(t=>kl.getValueFor(t).evaluate(t)),Il=ir({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=Gn(e),l=r+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(n-i);return{rest:t.get(l),hover:t.get(c),active:t.get(h),focus:t.get(d)}}(ha.getValueFor(t),Ia.getValueFor(t),sa.getValueFor(t),na.getValueFor(t),ra.getValueFor(t),aa.getValueFor(t))}),Tl=ir("neutral-stroke-rest").withDefault(t=>Il.getValueFor(t).evaluate(t).rest),Fl=ir("neutral-stroke-hover").withDefault(t=>Il.getValueFor(t).evaluate(t).hover),El=ir("neutral-stroke-active").withDefault(t=>Il.getValueFor(t).evaluate(t).active),Sl=ir("neutral-stroke-focus").withDefault(t=>Il.getValueFor(t).evaluate(t).focus),Ol=or("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+Gn(e)*i)}(ha.getValueFor(t),e||Ia.getValueFor(t),la.getValueFor(t))}),Dl=ir("neutral-stroke-divider-rest").withDefault(t=>Ol.getValueFor(t).evaluate(t)),Rl=po.create({name:"height-number",cssCustomPropertyName:null}).withDefault(t=>(nr.getValueFor(t)+cr.getValueFor(t))*hr.getValueFor(t)),Ll=(t,e)=>bt`
- ${Zs("flex")} :host{box-sizing:border-box;flex-direction:column;font-family:${sr};font-size:${br};line-height:${vr};color:${Cl};border-top:calc(${pr} * 1px) solid ${Dl}}`,Al=yt`(${nr} + ${cr}) * ${hr}`,Vl=(t,e)=>bt`
- ${Zs("flex")} :host{box-sizing:border-box;font-family:${sr};flex-direction:column;font-size:${br};line-height:${vr};border-bottom:calc(${pr} * 1px) solid ${Dl}}.region{display:none;padding:calc((6 + (${hr} * 2 * ${cr})) * 1px)}.heading{display:grid;position:relative;grid-template-columns:auto 1fr auto calc(${Al} * 1px)}.button{appearance:none;border:none;background:none;grid-column:2;grid-row:1;outline:none;padding:0 calc((6 + (${hr} * 2 * ${cr})) * 1px);text-align:left;height:calc(${Al} * 1px);color:${Cl};cursor:pointer;font-family:inherit}.button:hover{color:${Cl}}.button:active{color:${Cl}}.button::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;cursor:pointer}.button:${Js}::before{outline:none;border:calc(${gr} * 1px) solid ${vl};border-radius:calc(${lr} * 1px)}:host([expanded]) .region{display:block}.icon{display:flex;align-items:center;justify-content:center;grid-column:4;pointer-events:none;position:relative}slot[name="expanded-icon"],slot[name="collapsed-icon"]{fill:${Ea}}slot[name="collapsed-icon"]{display:flex}:host([expanded]) slot[name="collapsed-icon"]{display:none}slot[name="expanded-icon"]{display:none}:host([expanded]) slot[name="expanded-icon"]{display:flex}.start{display:flex;align-items:center;padding-inline-start:calc(${hr} * 1px);justify-content:center;grid-column:1;position:relative}.end{display:flex;align-items:center;justify-content:center;grid-column:3;position:relative}`.withBehaviors(Ys(bt`
- .button:${Js}::before{border-color:${We.Highlight}}:host slot[name="collapsed-icon"],:host([expanded]) slot[name="expanded-icon"]{fill:${We.ButtonText}}`)),zl=Ve.compose({baseName:"accordion-item",template:(t,e)=>K`${_t(0,e)} ${Ut(0,e)}${e.expandedIcon||""}${e.collapsedIcon||""}
`,styles:Vl,collapsedIcon:'\n \n ',expandedIcon:'\n \n '}),Pl=Xe.compose({baseName:"accordion",template:(t,e)=>K``,styles:Ll});
-/*! *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */
-function Hl(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const Ml="box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))));",Bl=bt`
- ${Zs("inline-flex")} :host{font-family:${sr};outline:none;font-size:${mr};line-height:${fr};height:calc(${Al} * 1px);min-width:calc(${Al} * 1px);background-color:${Ya};color:${Cl};border-radius:calc(${lr} * 1px);fill:currentcolor;cursor:pointer}.control{background:transparent;height:inherit;flex-grow:1;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:baseline;padding:0 calc((10 + (${hr} * 2 * ${cr})) * 1px);white-space:nowrap;outline:none;text-decoration:none;border:calc(${pr} * 1px) solid transparent;color:inherit;border-radius:inherit;fill:inherit;cursor:inherit;font-weight:inherit;font-family:inherit;font-size:inherit;line-height:inherit}:host(:hover){background-color:${Qa}}:host(:active){background-color:${Za}}.control:${Js}{border-color:${vl};box-shadow:0 0 0 calc((${gr} - ${pr}) * 1px) ${vl} inset}.control::-moz-focus-inner{border:0}.start,.content,.end{align-self:center}.start,.end{display:flex}.control.icon-only{padding:0;line-height:0}::slotted(svg){${""} width:16px;height:16px;pointer-events:none}.start{margin-inline-end:11px}.end{margin-inline-start:11px}`.withBehaviors(Ys(bt`
- :host .control{background-color:${We.ButtonFace};border-color:${We.ButtonText};color:${We.ButtonText};fill:currentColor}:host(:hover) .control{forced-color-adjust:none;background-color:${We.Highlight};color:${We.HighlightText}}.control:${Js}{forced-color-adjust:none;background-color:${We.Highlight};border-color:${We.ButtonText};box-shadow:0 0 0 calc((${gr} - ${pr}) * 1px) ${We.ButtonText} inset;color:${We.HighlightText}}.control:hover,:host([appearance="outline"]) .control:hover{border-color:${We.ButtonText}}:host([href]) .control{border-color:${We.LinkText};color:${We.LinkText}}:host([href]) .control:hover,:host([href]) .control:${Js}{forced-color-adjust:none;background:${We.ButtonFace};border-color:${We.LinkText};box-shadow:0 0 0 1px ${We.LinkText} inset;color:${We.LinkText};fill:currentColor}`)),Nl=bt`
- :host([appearance="accent"]){background:${Ea};color:${Aa}}:host([appearance="accent"]:hover){background:${Sa};color:${Va}}:host([appearance="accent"]:active) .control:active{background:${Oa};color:${za}}:host([appearance="accent"]) .control:${Js}{box-shadow:0 0 0 calc((${gr} - ${pr}) * 1px) ${vl} inset,0 0 0 calc((${gr} + ${pr}) * 1px) ${xl} inset}`.withBehaviors(Ys(bt`
- :host([appearance="accent"]) .control{forced-color-adjust:none;background:${We.Highlight};color:${We.HighlightText}}:host([appearance="accent"]) .control:hover,:host([appearance="accent"]:active) .control:active{background:${We.HighlightText};border-color:${We.Highlight};color:${We.Highlight}}:host([appearance="accent"]) .control:${Js}{border-color:${We.Highlight};box-shadow:0 0 0 calc(${gr} * 1px) ${We.HighlightText} inset}:host([appearance="accent"][href]) .control{background:${We.LinkText};color:${We.HighlightText}}:host([appearance="accent"][href]) .control:hover{background:${We.ButtonFace};border-color:${We.LinkText};box-shadow:none;color:${We.LinkText};fill:currentColor}:host([appearance="accent"][href]) .control:${Js}{border-color:${We.LinkText};box-shadow:0 0 0 calc(${gr} * 1px) ${We.HighlightText} inset}`)),jl=bt`
- :host([appearance="hypertext"]){font-size:inherit;line-height:inherit;height:auto;min-width:0;background:transparent}:host([appearance="hypertext"]) .control{display:inline;padding:0;border:none;box-shadow:none;border-radius:0;line-height:1}:host a.control:not(:link){background-color:transparent;cursor:default}:host([appearance="hypertext"]) .control:link,:host([appearance="hypertext"]) .control:visited{background:transparent;color:${_a};border-bottom:calc(${pr} * 1px) solid ${_a}}:host([appearance="hypertext"]:hover),:host([appearance="hypertext"]) .control:hover{background:transparent;border-bottom-color:${Ga}}:host([appearance="hypertext"]:active),:host([appearance="hypertext"]) .control:active{background:transparent;border-bottom-color:${Wa}}:host([appearance="hypertext"]) .control:${Js}{border-bottom:calc(${gr} * 1px) solid ${vl};margin-bottom:calc(calc(${pr} - ${gr}) * 1px)}`.withBehaviors(Ys(bt`
- :host([appearance="hypertext"]:hover){background-color:${We.ButtonFace};color:${We.ButtonText}}:host([appearance="hypertext"][href]) .control:hover,:host([appearance="hypertext"][href]) .control:active,:host([appearance="hypertext"][href]) .control:${Js}{color:${We.LinkText};border-bottom-color:${We.LinkText};box-shadow:none}`)),ql=bt`
- :host([appearance="lightweight"]){background:transparent;color:${_a}}:host([appearance="lightweight"]) .control{padding:0;height:initial;border:none;box-shadow:none;border-radius:0}:host([appearance="lightweight"]:hover){background:transparent;color:${Ga}}:host([appearance="lightweight"]:active){background:transparent;color:${Wa}}:host([appearance="lightweight"]) .content{position:relative}:host([appearance="lightweight"]) .content::before{content:"";display:block;height:calc(${pr} * 1px);position:absolute;top:calc(1em + 4px);width:100%}:host([appearance="lightweight"]:hover) .content::before{background:${Ga}}:host([appearance="lightweight"]:active) .content::before{background:${Wa}}:host([appearance="lightweight"]) .control:${Js} .content::before{background:${Cl};height:calc(${gr} * 1px)}`.withBehaviors(Ys(bt`
- :host([appearance="lightweight"]) .control:hover,:host([appearance="lightweight"]) .control:${Js}{forced-color-adjust:none;background:${We.ButtonFace};color:${We.Highlight}}:host([appearance="lightweight"]) .control:hover .content::before,:host([appearance="lightweight"]) .control:${Js} .content::before{background:${We.Highlight}}:host([appearance="lightweight"][href]) .control:hover,:host([appearance="lightweight"][href]) .control:${Js}{background:${We.ButtonFace};box-shadow:none;color:${We.LinkText}}:host([appearance="lightweight"][href]) .control:hover .content::before,:host([appearance="lightweight"][href]) .control:${Js} .content::before{background:${We.LinkText}}`)),Ul=bt`
- :host([appearance="outline"]){background:transparent;border-color:${Ea}}:host([appearance="outline"]:hover){border-color:${Sa}}:host([appearance="outline"]:active){border-color:${Oa}}:host([appearance="outline"]) .control{border-color:inherit}:host([appearance="outline"]) .control:${Js}{box-shadow:0 0 0 calc((${gr} - ${pr}) * 1px) ${vl} inset;border-color:${vl}}`.withBehaviors(Ys(bt`
- :host([appearance="outline"]) .control{border-color:${We.ButtonText}}:host([appearance="outline"]) .control:${Js}{forced-color-adjust:none;background-color:${We.Highlight};border-color:${We.ButtonText};box-shadow:0 0 0 calc((${gr} - ${pr}) * 1px) ${We.ButtonText} inset;color:${We.HighlightText};fill:currentColor}:host([appearance="outline"][href]) .control{background:${We.ButtonFace};border-color:${We.LinkText};color:${We.LinkText};fill:currentColor}:host([appearance="outline"][href]) .control:hover,:host([appearance="outline"][href]) .control:${Js}{forced-color-adjust:none;border-color:${We.LinkText};box-shadow:0 0 0 1px ${We.LinkText} inset}`)),_l=bt`
- :host([appearance="stealth"]){background:${rl}}:host([appearance="stealth"]:hover){background:${al}}:host([appearance="stealth"]:active){background:${ll}}`.withBehaviors(Ys(bt`
- :host([appearance="stealth"]),:host([appearance="stealth"]) .control{forced-color-adjust:none;background:${We.ButtonFace};border-color:transparent;color:${We.ButtonText};fill:currentColor}:host([appearance="stealth"]:hover) .control{background:${We.Highlight};border-color:${We.Highlight};color:${We.HighlightText};fill:currentColor}:host([appearance="stealth"]:${Js}) .control{background:${We.Highlight};box-shadow:0 0 0 1px ${We.Highlight};color:${We.HighlightText};fill:currentColor}:host([appearance="stealth"][href]) .control{color:${We.LinkText}}:host([appearance="stealth"][href]:hover) .control,:host([appearance="stealth"][href]:${Js}) .control{background:${We.LinkText};border-color:${We.LinkText};color:${We.HighlightText};fill:currentColor}:host([appearance="stealth"][href]:${Js}) .control{forced-color-adjust:none;box-shadow:0 0 0 1px ${We.LinkText}}`));class Gl{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t);e&&dr.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new Wl(this.ltr,this.rtl,t),i=dr.getValueFor(t);dr.subscribe(e),e.attach(i),this.cache.set(t,e)}}class Wl{constructor(t,e,i){this.ltr=t,this.rtl=e,this.source=i,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}function Kl(t,e){return new Qs("appearance",t,e)}const Xl=(t,e)=>bt`
- ${Bl}
- `.withBehaviors(Kl("accent",Nl),Kl("hypertext",jl),Kl("lightweight",ql),Kl("outline",Ul),Kl("stealth",_l));class Yl extends Ze{appearanceChanged(t,e){this.$fastController.isConnected&&(this.classList.remove(t),this.classList.add(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(t,e){const i=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===i.length&&i[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}Hl([st],Yl.prototype,"appearance",void 0);const Ql=Yl.compose({baseName:"anchor",baseClass:Ze,template:Ye,styles:Xl,shadowOptions:{delegatesFocus:!0}}),Zl=(t,e)=>bt`
- :host{contain:layout;display:block}`,Jl=ei.compose({baseName:"anchored-region",template:(t,e)=>K`${Ot(t=>t.initialLayoutComplete,K``)}`,styles:Zl}),tc=(t,e)=>bt`
- ${Zs("flex")} :host{position:relative;height:var(--avatar-size,var(--avatar-size-default));max-width:var(--avatar-size,var(--avatar-size-default));--avatar-size-default:calc(
- (
- (${nr} + ${cr}) * ${hr} +
- ((${hr} * 8) - 40)
- ) * 1px
- );--avatar-text-size:${mr};--avatar-text-ratio:${hr}}.link{text-decoration:none;color:${Cl};display:flex;flex-direction:row;justify-content:center;align-items:center;min-width:100%}.square{border-radius:calc(${lr} * 1px);min-width:100%;overflow:hidden}.circle{border-radius:100%;min-width:100%;overflow:hidden}.backplate{position:relative;display:flex}.media,::slotted(img){max-width:100%;position:absolute;display:block}.content{font-size:calc(
- (var(--avatar-text-size) + var(--avatar-size,var(--avatar-size-default))) /
- var(--avatar-text-ratio)
- );line-height:var(--avatar-size,var(--avatar-size-default));display:block;min-height:var(--avatar-size,var(--avatar-size-default))}::slotted(${t.tagFor(hi)}){position:absolute;display:block}`.withBehaviors(new Gl(((t,e)=>bt`
- ::slotted(${t.tagFor(hi)}){right:0}`)(t),((t,e)=>bt`
- ::slotted(${t.tagFor(hi)}){left:0}`)(t)));class ec extends ci{}Hl([st({attribute:"src"})],ec.prototype,"imgSrc",void 0),Hl([st],ec.prototype,"alt",void 0);const ic=K` ${Ot(t=>t.imgSrc,K`
`)}
-`,oc=ec.compose({baseName:"avatar",baseClass:ci,template:(t,e)=>K``,styles:tc,media:ic,shadowOptions:{delegatesFocus:!0}}),sc=(t,e)=>bt`
- ${Zs("inline-block")} :host{box-sizing:border-box;font-family:${sr};font-size:${br};line-height:${vr}}.control{border-radius:calc(${lr} * 1px);padding:calc(((${hr} * 0.5) - ${pr}) * 1px)
- calc((${hr} - ${pr}) * 1px);color:${_a};font-weight:600;border:calc(${pr} * 1px) solid transparent}.control[style]{font-weight:400}:host([circular]) .control{border-radius:100px;padding:0 calc(${hr} * 1px);height:calc((${Al} - (${hr} * 3)) * 1px);min-width:calc((${Al} - (${hr} * 3)) * 1px);display:flex;align-items:center;justify-content:center;box-sizing:border-box}`,nc=hi.compose({baseName:"badge",template:(t,e)=>K`
`,styles:sc}),rc=(t,e)=>bt`
- ${Zs("inline-flex")} :host{background:transparent;box-sizing:border-box;font-family:${sr};font-size:${mr};fill:currentColor;line-height:${fr};min-width:calc(${Al} * 1px);outline:none;color:${Cl}}.listitem{display:flex;align-items:center;width:max-content}.separator{margin:0 6px;display:flex}.control{align-items:center;box-sizing:border-box;color:${_a};cursor:pointer;display:flex;fill:inherit;outline:none;text-decoration:none;white-space:nowrap}.control:hover{color:${Ga}}.control:active{color:${Wa}}.control .content{position:relative}.control .content::before{content:"";display:block;height:calc(${pr} * 1px);left:0;position:absolute;right:0;top:calc(1em + 4px);width:100%}.control:hover .content::before{background:${Ga}}.control:active .content::before{background:${Wa}}.control:${Js} .content::before{background:${Cl};height:calc(${gr} * 1px)}.control:not([href]){color:${Cl};cursor:default}.control:not([href]) .content::before{background:none}.start,.end{display:flex}::slotted(svg){width:16px;height:16px}.start{margin-inline-end:6px}.end{margin-inline-start:6px}`.withBehaviors(Ys(bt`
- .control:hover .content::before,.control:${Js} .content::before{background:${We.LinkText}}.start,.end{fill:${We.ButtonText}}`)),ac=di.compose({baseName:"breadcrumb-item",template:(t,e)=>K`${Ot(t=>t.href&&t.href.length>0,K` ${Ye(0,e)} `)} ${Ot(t=>!t.href,K` ${_t(0,e)}${Ut(0,e)} `)} ${Ot(t=>t.separator,K`${e.separator||""}`)}
`,styles:rc,separator:"/",shadowOptions:{delegatesFocus:!0}}),lc=(t,e)=>bt`
- ${Zs("inline-block")} :host{box-sizing:border-box;font-family:${sr};font-size:${mr};line-height:${fr}}.list{display:flex;flex-wrap:wrap}`,cc=ui.compose({baseName:"breadcrumb",template:(t,e)=>K`
`,styles:lc}),hc=(t,e)=>bt`
- :host([disabled]),:host([disabled]:hover),:host([disabled]:active){opacity:${ur};background-color:${Ya};cursor:${"not-allowed"}}${Bl}
- `.withBehaviors(Ys(bt`
- :host([disabled]),:host([disabled]) .control,:host([disabled]:hover),:host([disabled]:active){forced-color-adjust:none;background-color:${We.ButtonFace};border-color:${We.GrayText};color:${We.GrayText};cursor:${"not-allowed"};opacity:1}`),Kl("accent",bt`
- :host([appearance="accent"][disabled]),:host([appearance="accent"][disabled]:hover),:host([appearance="accent"][disabled]:active){background:${Ea}}${Nl}
- `.withBehaviors(Ys(bt`
- :host([appearance="accent"][disabled]) .control,:host([appearance="accent"][disabled]) .control:hover{background:${We.ButtonFace};border-color:${We.GrayText};color:${We.GrayText}}`))),Kl("lightweight",bt`
- :host([appearance="lightweight"][disabled]:hover),:host([appearance="lightweight"][disabled]:active){background-color:transparent;color:${_a}}:host([appearance="lightweight"][disabled]) .content::before,:host([appearance="lightweight"][disabled]:hover) .content::before,:host([appearance="lightweight"][disabled]:active) .content::before{background:transparent}${ql}
- `.withBehaviors(Ys(bt`
- :host([appearance="lightweight"].disabled) .control{forced-color-adjust:none;color:${We.GrayText}}:host([appearance="lightweight"].disabled)
- .control:hover
- .content::before{background:none}`))),Kl("outline",bt`
- :host([appearance="outline"][disabled]),:host([appearance="outline"][disabled]:hover),:host([appearance="outline"][disabled]:active){background:transparent;border-color:${Ea}}${Ul}
- `.withBehaviors(Ys(bt`
- :host([appearance="outline"][disabled]) .control{border-color:${We.GrayText}}`))),Kl("stealth",bt`
- :host([appearance="stealth"][disabled]),:host([appearance="stealth"][disabled]:hover),:host([appearance="stealth"][disabled]:active){background:${rl}}${_l}
- `.withBehaviors(Ys(bt`
- :host([appearance="stealth"][disabled]){background:${We.ButtonFace}}:host([appearance="stealth"][disabled]) .control{background:${We.ButtonFace};border-color:transparent;color:${We.GrayText}}`))));class dc extends yi{constructor(){super(...arguments),this.appearance="neutral"}defaultSlottedContentChanged(t,e){const i=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===i.length&&i[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}Hl([st],dc.prototype,"appearance",void 0);const uc=dc.compose({baseName:"button",baseClass:yi,template:(t,e)=>K``,styles:hc,shadowOptions:{delegatesFocus:!0}}),pc=bt`
- ${Zs("block")} :host{--cell-border:none;--cell-height:calc(${Al} * 1px);--selected-day-outline:1px solid ${Wa};--selected-day-color:${Wa};--selected-day-background:${Ya};--cell-padding:calc(${hr} * 1px);--disabled-day-opacity:${ur};--inactive-day-opacity:${ur};font-family:${sr};font-size:${mr};line-height:${fr};color:${Cl}}.title{font-size:${Ir};line-height:${Tr};padding:var(--cell-padding);text-align:center}.week-days,.week{display:grid;grid-template-columns:repeat(7,1fr);border-left:var(--cell-border,none);border-bottom:none;padding:0}.interact .week{grid-gap:calc(${hr} * 1px);margin-top:calc(${hr} * 1px)}.day,.week-day{border-bottom:var(--cell-border);border-right:var(--cell-border);padding:var(--cell-padding)}.week-day{text-align:center;border-radius:0;border-top:var(--cell-border)}.day{box-sizing:border-box;vertical-align:top;outline-offset:-1px;line-height:var(--cell-line-height);white-space:normal}.interact .day{background:${Ya};cursor:pointer}.day.inactive{background:var(--inactive-day-background);color:var(--inactive-day-color);opacity:var(--inactive-day-opacity);outline:var(--inactive-day-outline)}.day.disabled{background:var(--disabled-day-background);color:var(--disabled-day-color);cursor:${"not-allowed"};opacity:var(--disabled-day-opacity);outline:var(--disabled-day-outline)}.day.selected{color:var(--selected-day-color);background:var(--selected-day-background);outline:var(--selected-day-outline)}.date{padding:var(--cell-padding);text-align:center}.interact .today,.today{color:${za};background:${Wa}}.today.inactive .date{background:transparent;color:inherit;width:auto}`.withBehaviors(Ys(bt`
- :host{--selected-day-outline:1px solid ${We.Highlight}}.day,.week-day{background:${We.Canvas};color:${We.CanvasText};fill:currentcolor}.day.selected{color:${We.Highlight}}.today .date{background:${We.Highlight};color:${We.HighlightText}}`)),gc=wi.compose({baseName:"calendar",template:(t,e)=>{var i;const o=new Date,s=`${o.getMonth()+1}-${o.getDate()}-${o.getFullYear()}`;return K`${Wt} ${e.title instanceof Function?e.title(t,e):null!==(i=e.title)&&void 0!==i?i:""}${Ot(t=>!1===t.readonly,Li(t,s))} ${Ot(t=>!0===t.readonly,(t=>K`${zt(t=>t.getWeekdayText(),K`
${t=>t.text}
`)}
${zt(t=>t.getDays(),K`
${zt(t=>t,K`
${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}
`)}
`)}
`)(s))} ${Gt}`},styles:pc,title:Di}),mc=(t,e)=>bt`
- ${Zs("block")} :host{--elevation:4;display:block;contain:content;height:var(--card-height,100%);width:var(--card-width,100%);box-sizing:border-box;background:${Ia};border-radius:calc(${lr} * 1px);${Ml}}`.withBehaviors(Ys(bt`
- :host{forced-color-adjust:none;background:${We.Canvas};box-shadow:0 0 0 1px ${We.CanvasText}}`));class fc extends Ai{connectedCallback(){super.connectedCallback();const t=Xi(this);t&&Ia.setValueFor(this,e=>ml.getValueFor(e).evaluate(e,Ia.getValueFor(t)))}}const bc=fc.compose({baseName:"card",baseClass:Ai,template:(t,e)=>K``,styles:mc}),vc=(t,e)=>bt`
- ${Zs("inline-flex")} :host{align-items:center;outline:none;margin:calc(${hr} * 1px) 0;user-select:none}.control{position:relative;width:calc((${Al} / 2 + ${hr}) * 1px);height:calc((${Al} / 2 + ${hr}) * 1px);box-sizing:border-box;border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid ${Tl};background:${el};outline:none;cursor:pointer}.label{font-family:${sr};color:${Cl};padding-inline-start:calc(${hr} * 2px + 2px);margin-inline-end:calc(${hr} * 2px + 2px);cursor:pointer;font-size:${mr};line-height:${fr}}.label__hidden{display:none;visibility:hidden}.checked-indicator{width:100%;height:100%;display:block;fill:${Aa};opacity:0;pointer-events:none}.indeterminate-indicator{border-radius:calc(${lr} * 1px);background:${Aa};position:absolute;top:50%;left:50%;width:50%;height:50%;transform:translate(-50%,-50%);opacity:0}:host(:not([disabled])) .control:hover{background:${il};border-color:${Fl}}:host(:not([disabled])) .control:active{background:${ol};border-color:${El}}:host(:${Js}) .control{box-shadow:0 0 0 2px ${Ia},0 0 0 4px ${vl}}:host([aria-checked="true"]) .control{background:${Ea};border:calc(${pr} * 1px) solid ${Ea}}:host([aria-checked="true"]:not([disabled])) .control:hover{background:${Sa};border:calc(${pr} * 1px) solid ${Sa}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{fill:${Va}}:host([aria-checked="true"]:not([disabled])) .control:hover .indeterminate-indicator{background:${Va}}:host([aria-checked="true"]:not([disabled])) .control:active{background:${Oa};border:calc(${pr} * 1px) solid ${Oa}}:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{fill:${za}}:host([aria-checked="true"]:not([disabled])) .control:active .indeterminate-indicator{background:${za}}:host([aria-checked="true"]:${Js}:not([disabled])) .control{box-shadow:0 0 0 2px ${Ia},0 0 0 4px ${vl}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([aria-checked="true"]:not(.indeterminate)) .checked-indicator,:host(.indeterminate) .indeterminate-indicator{opacity:1}:host([disabled]){opacity:${ur}}`.withBehaviors(Ys(bt`
- .control{forced-color-adjust:none;border-color:${We.FieldText};background:${We.Field}}.checked-indicator{fill:${We.FieldText}}.indeterminate-indicator{background:${We.FieldText}}:host(:not([disabled])) .control:hover,.control:active{border-color:${We.Highlight};background:${We.Field}}:host(:${Js}) .control{box-shadow:0 0 0 2px ${We.Field},0 0 0 4px ${We.FieldText}}:host([aria-checked="true"]:${Js}:not([disabled])) .control{box-shadow:0 0 0 2px ${We.Field},0 0 0 4px ${We.FieldText}}:host([aria-checked="true"]) .control{background:${We.Highlight};border-color:${We.Highlight}}:host([aria-checked="true"]:not([disabled])) .control:hover,.control:active{border-color:${We.Highlight};background:${We.HighlightText}}:host([aria-checked="true"]) .checked-indicator{fill:${We.HighlightText}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{fill:${We.Highlight}}:host([aria-checked="true"]) .indeterminate-indicator{background:${We.HighlightText}}:host([aria-checked="true"]) .control:hover .indeterminate-indicator{background:${We.Highlight}}:host([disabled]){opacity:1}:host([disabled]) .control{forced-color-adjust:none;border-color:${We.GrayText};background:${We.Field}}:host([disabled]) .indeterminate-indicator,:host([aria-checked="true"][disabled]) .control:hover .indeterminate-indicator{forced-color-adjust:none;background:${We.GrayText}}:host([disabled]) .checked-indicator,:host([aria-checked="true"][disabled]) .control:hover .checked-indicator{forced-color-adjust:none;fill:${We.GrayText}}`)),yc=Pi.compose({baseName:"checkbox",template:(t,e)=>K`t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.readOnly?"readonly":""} ${t=>t.checked?"checked":""} ${t=>t.indeterminate?"indeterminate":""}">${e.checkedIndicator||""}${e.indeterminateIndicator||""}
`,styles:vc,checkedIndicator:'\n \n ',indeterminateIndicator:'\n \n '}),xc=(t,e)=>{const i=t.tagFor(Mi),o=t.name===t.tagFor(Ho)?"":".listbox";return bt`
- ${o?"":Zs("inline-flex")}
-
- :host ${o}{background:${fa};border:calc(${pr} * 1px) solid ${Tl};border-radius:calc(${lr} * 1px);box-sizing:border-box;flex-direction:column;padding:calc(${hr} * 1px) 0}${o?"":bt`
- :host(:focus-within:not([disabled])){border-color:${vl};box-shadow:0 0 0
- calc((${gr} - ${pr}) * 1px)
- ${vl} inset}:host([disabled]) ::slotted(*){cursor:${"not-allowed"};opacity:${ur};pointer-events:none}`}
-
- ${o||":host([size])"}{max-height:calc(
- (var(--size) * ${Al} + (${hr} * ${pr} * 2)) * 1px
- );overflow-y:auto}:host([size="0"]) ${o}{max-height:none}`.withBehaviors(Ys(bt`
- :host(:not([multiple]):${Js}) ::slotted(${i}[aria-selected="true"]),:host([multiple]:${Js}) ::slotted(${i}[aria-checked="true"]){border-color:${We.ButtonText};box-shadow:0 0 0 calc(${gr} * 1px) inset ${We.HighlightText}}:host(:not([multiple]):${Js}) ::slotted(${i}[aria-selected="true"]){background:${We.Highlight};color:${We.HighlightText};fill:currentcolor}::slotted(${i}[aria-selected="true"]:not([aria-checked="true"])){background:${We.Highlight};border-color:${We.HighlightText};color:${We.HighlightText}}`))},$c=(t,e)=>{const i=t.name===t.tagFor(xs);return bt`
- ${Zs("inline-flex")}
-
- :host{--elevation:14;background:${el};border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid ${Ea};box-sizing:border-box;color:${Cl};font-family:${sr};height:calc(${Al} * 1px);position:relative;user-select:none;min-width:250px;outline:none;vertical-align:top}${i?bt`
- :host(:not([aria-haspopup])){--elevation:0;border:0;height:auto;min-width:0}`:""}
-
- ${xc(t)}
-
- .listbox{${Ml}
- border:none;display:flex;left:0;position:absolute;width:100%;z-index:1}.control + .listbox{--stroke-size:calc(${hr} * ${pr} * 2);max-height:calc(
- (var(--listbox-max-height) * ${Al} + var(--stroke-size)) * 1px
- )}${i?bt`
- :host(:not([aria-haspopup])) .listbox{left:auto;position:static;z-index:auto}`:""}
-
- .listbox[hidden]{display:none}.control{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:${mr};font-family:inherit;line-height:${fr};min-height:100%;padding:0 calc(${hr} * 2.25px);width:100%}:host(:not([disabled]):hover){background:${il};border-color:${Sa}}:host(:${Js}){border-color:${vl}}:host(:not([size]):not([multiple]):not([open]):${Js}),:host([multiple]:${Js}),:host([size]:${Js}){box-shadow:0 0 0 calc(${gr} * 1px) ${vl}}:host(:not([multiple]):not([size]):${Js}) ::slotted(${t.tagFor(Mi)}[aria-selected="true"]:not([disabled])){box-shadow:0 0 0 calc(${gr} * 1px) inset ${xl};border-color:${vl};background:${Da};color:${Pa}}:host([disabled]){cursor:${"not-allowed"};opacity:${ur}}:host([disabled]) .control{cursor:${"not-allowed"};user-select:none}:host([disabled]:hover){background:${rl};color:${Cl};fill:currentcolor}:host(:not([disabled])) .control:active{background:${ol};border-color:${Oa};border-radius:calc(${lr} * 1px)}:host([open][position="above"]) .listbox{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:0;bottom:calc(${Al} * 1px)}:host([open][position="below"]) .listbox{border-top-left-radius:0;border-top-right-radius:0;border-top:0;top:calc(${Al} * 1px)}.selected-value{flex:1 1 auto;font-family:inherit;min-width:calc(var(--listbox-scroll-width,0) - (${hr} * 4) * 1px);overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap}.indicator{flex:0 0 auto;margin-inline-start:1em}slot[name="listbox"]{display:none;width:100%}:host([open]) slot[name="listbox"]{display:flex;position:absolute;${Ml}}.end{margin-inline-start:auto}.start,.end,.indicator,.select-indicator,::slotted(svg){fill:currentcolor;height:1em;min-height:calc(${hr} * 4px);min-width:calc(${hr} * 4px);width:1em}::slotted([role="option"]),::slotted(option){flex:0 0 auto}`.withBehaviors(Ys(bt`
- :host(:not([disabled]):hover),:host(:not([disabled]):active){border-color:${We.Highlight}}:host(:not([disabled]):${Js}){background-color:${We.ButtonFace};box-shadow:0 0 0 calc(${gr} * 1px) ${We.Highlight};color:${We.ButtonText};fill:currentcolor;forced-color-adjust:none}:host(:not([disabled]):${Js}) .listbox{background:${We.ButtonFace}}:host([disabled]){border-color:${We.GrayText};background-color:${We.ButtonFace};color:${We.GrayText};fill:currentcolor;opacity:1;forced-color-adjust:none}:host([disabled]:hover){background:${We.ButtonFace}}:host([disabled]) .control{color:${We.GrayText};border-color:${We.GrayText}}:host([disabled]) .control .select-indicator{fill:${We.GrayText}}:host(:${Js}) ::slotted([aria-selected="true"][role="option"]),:host(:${Js}) ::slotted(option[aria-selected="true"]),:host(:${Js}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){background:${We.Highlight};border-color:${We.ButtonText};box-shadow:0 0 0 calc(${gr} * 1px) inset ${We.HighlightText};color:${We.HighlightText};fill:currentcolor}.start,.end,.indicator,.select-indicator,::slotted(svg){color:${We.ButtonText};fill:currentcolor}`))},wc=(t,e)=>bt`
- ${$c(t)}
-
- :host(:empty) .listbox{display:none}:host([disabled]) *,:host([disabled]){cursor:${"not-allowed"};user-select:none}.selected-value{-webkit-appearance:none;background:transparent;border:none;color:inherit;font-size:${mr};line-height:${fr};height:calc(100% - (${pr} * 1px));margin:auto 0;width:100%}.selected-value:hover,.selected-value:${Js},.selected-value:disabled,.selected-value:active{outline:none}`;class kc extends Wi{maxHeightChanged(t,e){this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);const t=Math.floor(this.maxHeight/Rl.getValueFor(this)).toString();this.computedStylesheet=bt`
- :host{--listbox-max-height:${t}}`,this.$fastController.addStyles(this.computedStylesheet)}}const Cc=kc.compose({baseName:"combobox",baseClass:Wi,template:(t,e)=>K`t.disabled?"disabled":""} ${t=>t.position}" ?open="${t=>t.open}" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${_t(0,e)}
t.disabled}" :value="${t=>t.value}" @input="${(t,e)=>t.inputHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}" ${St("control")} />${e.indicator||""}
${Ut(0,e)}
t.disabled}" ?hidden="${t=>!t.open}" ${St("listbox")}>
`,styles:wc,shadowOptions:{delegatesFocus:!0},indicator:'\n \n '}),Ic=(t,e)=>bt`
- :host{display:flex;position:relative;flex-direction:column}`,Tc=(t,e)=>bt`
- :host{display:grid;padding:1px 0;box-sizing:border-box;width:100%;border-bottom:calc(${pr} * 1px) solid ${Dl}}:host(.header){}:host(.sticky-header){background:${Ya};position:sticky;top:0}`,Fc=(t,e)=>bt`
- :host{padding:calc(${hr} * 1px) calc(${hr} * 3px);color:${Cl};box-sizing:border-box;font-family:${sr};font-size:${mr};line-height:${fr};font-weight:400;border:transparent calc(${pr} * 1px) solid;overflow:hidden;white-space:nowrap;border-radius:calc(${lr} * 1px)}:host(.column-header){font-weight:600}:host(:${Js}){border:${vl} calc(${pr} * 1px) solid;color:${Cl}}`.withBehaviors(Ys(bt`
- :host{forced-color-adjust:none;border-color:transparent;background:${We.Field};color:${We.FieldText}}:host(:${Js}){border-color:${We.FieldText};box-shadow:0 0 0 2px inset ${We.Field};color:${We.FieldText}}`)),Ec=Oi.compose({baseName:"data-grid-cell",template:(t,e)=>K``,styles:Fc}),Sc=Ti.compose({baseName:"data-grid-row",template:(t,e)=>K`t.isRowHeader?"rowheader":void 0}" grid-column="${(t,e)=>e.index+1}" :rowData="${(t,e)=>e.parent.rowData}" :columnDefinition="${t=>t}">${e}>`}(t)}" :defaultHeaderCellItemTemplate="${function(t){const e=t.tagFor(Oi);return K`<${e} cell-type="columnheader" grid-column="${(t,e)=>e.index+1}" :columnDefinition="${t=>t}">${e}>`}(t)}" ${jt({property:"cellElements",filter:Pt('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})}>`,styles:Tc}),Oc=Fi.compose({baseName:"data-grid",template:(t,e)=>{const i=function(t){const e=t.tagFor(Ti);return K`<${e} :rowData="${t=>t}" :cellItemTemplate="${(t,e)=>e.parent.cellItemTemplate}" :headerCellItemTemplate="${(t,e)=>e.parent.headerCellItemTemplate}">${e}>`}(t),o=t.tagFor(Ti);return K``},styles:Ic}),Dc={toView:t=>null==t?null:null==t?void 0:t.toColorString(),fromView(t){if(null==t)return null;const e=Hn(t);return e?jn.create(e.r,e.g,e.b):null}},Rc=bt`
- :host{background-color:${Ia};color:${Cl}}`.withBehaviors(Ys(bt`
- :host{background-color:${We.ButtonFace};box-shadow:0 0 0 1px ${We.CanvasText};color:${We.ButtonText}}`));function Lc(t){return(e,i)=>{e[i+"Changed"]=function(e,i){null!=i?t.setValueFor(this,i):t.deleteValueFor(this)}}}class Ac extends De{constructor(){super(),this.noPaint=!1;const t={handleChange:this.noPaintChanged.bind(this)};b.getNotifier(this).subscribe(t,"fillColor"),b.getNotifier(this).subscribe(t,"baseLayerLuminance")}noPaintChanged(){this.noPaint||void 0===this.fillColor&&!this.baseLayerLuminance?this.$fastController.removeStyles(Rc):this.$fastController.addStyles(Rc)}}Hl([st({attribute:"no-paint",mode:"boolean"})],Ac.prototype,"noPaint",void 0),Hl([st({attribute:"fill-color",converter:Dc}),Lc(Ia)],Ac.prototype,"fillColor",void 0),Hl([st({attribute:"accent-color",converter:Dc,mode:"fromView"}),Lc(da)],Ac.prototype,"accentColor",void 0),Hl([st({attribute:"neutral-color",converter:Dc,mode:"fromView"}),Lc(ca)],Ac.prototype,"neutralColor",void 0),Hl([st({converter:it}),Lc(cr)],Ac.prototype,"density",void 0),Hl([st({attribute:"design-unit",converter:it}),Lc(hr)],Ac.prototype,"designUnit",void 0),Hl([st({attribute:"direction"}),Lc(dr)],Ac.prototype,"direction",void 0),Hl([st({attribute:"base-height-multiplier",converter:it}),Lc(nr)],Ac.prototype,"baseHeightMultiplier",void 0),Hl([st({attribute:"base-horizontal-spacing-multiplier",converter:it}),Lc(rr)],Ac.prototype,"baseHorizontalSpacingMultiplier",void 0),Hl([st({attribute:"control-corner-radius",converter:it}),Lc(lr)],Ac.prototype,"controlCornerRadius",void 0),Hl([st({attribute:"stroke-width",converter:it}),Lc(pr)],Ac.prototype,"strokeWidth",void 0),Hl([st({attribute:"focus-stroke-width",converter:it}),Lc(gr)],Ac.prototype,"focusStrokeWidth",void 0),Hl([st({attribute:"disabled-opacity",converter:it}),Lc(ur)],Ac.prototype,"disabledOpacity",void 0),Hl([st({attribute:"type-ramp-minus-2-font-size"}),Lc(yr)],Ac.prototype,"typeRampMinus2FontSize",void 0),Hl([st({attribute:"type-ramp-minus-2-line-height"}),Lc(xr)],Ac.prototype,"typeRampMinus2LineHeight",void 0),Hl([st({attribute:"type-ramp-minus-1-font-size"}),Lc(br)],Ac.prototype,"typeRampMinus1FontSize",void 0),Hl([st({attribute:"type-ramp-minus-1-line-height"}),Lc(vr)],Ac.prototype,"typeRampMinus1LineHeight",void 0),Hl([st({attribute:"type-ramp-base-font-size"}),Lc(mr)],Ac.prototype,"typeRampBaseFontSize",void 0),Hl([st({attribute:"type-ramp-base-line-height"}),Lc(fr)],Ac.prototype,"typeRampBaseLineHeight",void 0),Hl([st({attribute:"type-ramp-plus-1-font-size"}),Lc($r)],Ac.prototype,"typeRampPlus1FontSize",void 0),Hl([st({attribute:"type-ramp-plus-1-line-height"}),Lc(wr)],Ac.prototype,"typeRampPlus1LineHeight",void 0),Hl([st({attribute:"type-ramp-plus-2-font-size"}),Lc(kr)],Ac.prototype,"typeRampPlus2FontSize",void 0),Hl([st({attribute:"type-ramp-plus-2-line-height"}),Lc(Cr)],Ac.prototype,"typeRampPlus2LineHeight",void 0),Hl([st({attribute:"type-ramp-plus-3-font-size"}),Lc(Ir)],Ac.prototype,"typeRampPlus3FontSize",void 0),Hl([st({attribute:"type-ramp-plus-3-line-height"}),Lc(Tr)],Ac.prototype,"typeRampPlus3LineHeight",void 0),Hl([st({attribute:"type-ramp-plus-4-font-size"}),Lc(Fr)],Ac.prototype,"typeRampPlus4FontSize",void 0),Hl([st({attribute:"type-ramp-plus-4-line-height"}),Lc(Er)],Ac.prototype,"typeRampPlus4LineHeight",void 0),Hl([st({attribute:"type-ramp-plus-5-font-size"}),Lc(Sr)],Ac.prototype,"typeRampPlus5FontSize",void 0),Hl([st({attribute:"type-ramp-plus-5-line-height"}),Lc(Or)],Ac.prototype,"typeRampPlus5LineHeight",void 0),Hl([st({attribute:"type-ramp-plus-6-font-size"}),Lc(Dr)],Ac.prototype,"typeRampPlus6FontSize",void 0),Hl([st({attribute:"type-ramp-plus-6-line-height"}),Lc(Rr)],Ac.prototype,"typeRampPlus6LineHeight",void 0),Hl([st({attribute:"accent-fill-rest-delta",converter:it}),Lc(Lr)],Ac.prototype,"accentFillRestDelta",void 0),Hl([st({attribute:"accent-fill-hover-delta",converter:it}),Lc(Ar)],Ac.prototype,"accentFillHoverDelta",void 0),Hl([st({attribute:"accent-fill-active-delta",converter:it}),Lc(Vr)],Ac.prototype,"accentFillActiveDelta",void 0),Hl([st({attribute:"accent-fill-focus-delta",converter:it}),Lc(zr)],Ac.prototype,"accentFillFocusDelta",void 0),Hl([st({attribute:"accent-foreground-rest-delta",converter:it}),Lc(Pr)],Ac.prototype,"accentForegroundRestDelta",void 0),Hl([st({attribute:"accent-foreground-hover-delta",converter:it}),Lc(Hr)],Ac.prototype,"accentForegroundHoverDelta",void 0),Hl([st({attribute:"accent-foreground-active-delta",converter:it}),Lc(Mr)],Ac.prototype,"accentForegroundActiveDelta",void 0),Hl([st({attribute:"accent-foreground-focus-delta",converter:it}),Lc(Br)],Ac.prototype,"accentForegroundFocusDelta",void 0),Hl([st({attribute:"neutral-fill-rest-delta",converter:it}),Lc(Nr)],Ac.prototype,"neutralFillRestDelta",void 0),Hl([st({attribute:"neutral-fill-hover-delta",converter:it}),Lc(jr)],Ac.prototype,"neutralFillHoverDelta",void 0),Hl([st({attribute:"neutral-fill-active-delta",converter:it}),Lc(qr)],Ac.prototype,"neutralFillActiveDelta",void 0),Hl([st({attribute:"neutral-fill-focus-delta",converter:it}),Lc(Ur)],Ac.prototype,"neutralFillFocusDelta",void 0),Hl([st({attribute:"neutral-fill-input-rest-delta",converter:it}),Lc(_r)],Ac.prototype,"neutralFillInputRestDelta",void 0),Hl([st({attribute:"neutral-fill-input-hover-delta",converter:it}),Lc(Gr)],Ac.prototype,"neutralFillInputHoverDelta",void 0),Hl([st({attribute:"neutral-fill-input-active-delta",converter:it}),Lc(Wr)],Ac.prototype,"neutralFillInputActiveDelta",void 0),Hl([st({attribute:"neutral-fill-input-focus-delta",converter:it}),Lc(Kr)],Ac.prototype,"neutralFillInputFocusDelta",void 0),Hl([st({attribute:"neutral-fill-stealth-rest-delta",converter:it}),Lc(Xr)],Ac.prototype,"neutralFillStealthRestDelta",void 0),Hl([st({attribute:"neutral-fill-stealth-hover-delta",converter:it}),Lc(Yr)],Ac.prototype,"neutralFillStealthHoverDelta",void 0),Hl([st({attribute:"neutral-fill-stealth-active-delta",converter:it}),Lc(Qr)],Ac.prototype,"neutralFillStealthActiveDelta",void 0),Hl([st({attribute:"neutral-fill-stealth-focus-delta",converter:it}),Lc(Zr)],Ac.prototype,"neutralFillStealthFocusDelta",void 0),Hl([st({attribute:"neutral-fill-strong-hover-delta",converter:it}),Lc(ta)],Ac.prototype,"neutralFillStrongHoverDelta",void 0),Hl([st({attribute:"neutral-fill-strong-active-delta",converter:it}),Lc(ea)],Ac.prototype,"neutralFillStrongActiveDelta",void 0),Hl([st({attribute:"neutral-fill-strong-focus-delta",converter:it}),Lc(ia)],Ac.prototype,"neutralFillStrongFocusDelta",void 0),Hl([st({attribute:"base-layer-luminance",converter:it}),Lc(ar)],Ac.prototype,"baseLayerLuminance",void 0),Hl([st({attribute:"neutral-fill-layer-rest-delta",converter:it}),Lc(oa)],Ac.prototype,"neutralFillLayerRestDelta",void 0),Hl([st({attribute:"neutral-stroke-divider-rest-delta",converter:it}),Lc(la)],Ac.prototype,"neutralStrokeDividerRestDelta",void 0),Hl([st({attribute:"neutral-stroke-rest-delta",converter:it}),Lc(sa)],Ac.prototype,"neutralStrokeRestDelta",void 0),Hl([st({attribute:"neutral-stroke-hover-delta",converter:it}),Lc(na)],Ac.prototype,"neutralStrokeHoverDelta",void 0),Hl([st({attribute:"neutral-stroke-active-delta",converter:it}),Lc(ra)],Ac.prototype,"neutralStrokeActiveDelta",void 0),Hl([st({attribute:"neutral-stroke-focus-delta",converter:it}),Lc(aa)],Ac.prototype,"neutralStrokeFocusDelta",void 0);const Vc=(t,e)=>K``,zc=(t,e)=>bt`
- ${Zs("block")}
-`,Pc=Ac.compose({baseName:"design-system-provider",template:Vc,styles:zc}),Hc=(t,e)=>bt`
- :host([hidden]){display:none}:host{--elevation:14;--dialog-height:480px;--dialog-width:640px;display:block}.overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);touch-action:none}.positioning-region{display:flex;justify-content:center;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.control{${Ml}
- margin-top:auto;margin-bottom:auto;width:var(--dialog-width);height:var(--dialog-height);background-color:${Ia};z-index:1;border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid transparent}`,Mc=Ro.compose({baseName:"dialog",template:(t,e)=>K`${Ot(t=>t.modal,K`
t.dismiss()}">
`)}
`,styles:Hc}),Bc=(t,e)=>bt`
- .disclosure{transition:height 0.35s}.disclosure .invoker::-webkit-details-marker{display:none}.disclosure .invoker{list-style-type:none}:host([appearance="accent"]) .invoker{background:${Ea};color:${Aa};font-family:${sr};font-size:${mr};border-radius:calc(${lr} * 1px);outline:none;cursor:pointer;margin:16px 0;padding:12px;max-width:max-content}:host([appearance="accent"]) .invoker:active{background:${Oa};color:${za}}:host([appearance="accent"]) .invoker:hover{background:${Sa};color:${Va}}:host([appearance="lightweight"]) .invoker{background:transparent;color:${_a};border-bottom:calc(${pr} * 1px) solid ${_a};cursor:pointer;width:max-content;margin:16px 0}:host([appearance="lightweight"]) .invoker:active{border-bottom-color:${Wa}}:host([appearance="lightweight"]) .invoker:hover{border-bottom-color:${Ga}}.disclosure[open] .invoker ~ *{animation:fadeIn 0.5s ease-in-out}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}`;class Nc extends Lo{constructor(){super(...arguments),this.height=0,this.totalHeight=0}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="accent")}appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}onToggle(){super.onToggle(),this.details.style.setProperty("height",this.disclosureHeight+"px")}setup(){super.setup();const t=()=>this.details.getBoundingClientRect().height;this.show(),this.totalHeight=t(),this.hide(),this.height=t(),this.expanded&&this.show()}get disclosureHeight(){return this.expanded?this.totalHeight:this.height}}Hl([st],Nc.prototype,"appearance",void 0);const jc=Nc.compose({baseName:"disclosure",baseClass:Lo,template:(t,e)=>K`${t=>t.title}
`,styles:Bc}),qc=(t,e)=>bt`
- ${Zs("block")} :host{box-sizing:content-box;height:0;margin:calc(${hr} * 1px) 0;border-top:calc(${pr} * 1px) solid ${Dl};border-left:none}:host([orientation="vertical"]){height:100%;margin:0 calc(${hr} * 1px);border-top:none;border-left:calc(${pr} * 1px) solid ${Dl}}`,Uc=zo.compose({baseName:"divider",template:(t,e)=>K``,styles:qc}),_c=(t,e)=>bt`
- ${Zs("inline-flex")} :host{width:calc(${Al} * 1px);height:calc(${Al} * 1px);justify-content:center;align-items:center;margin:0;position:relative;fill:currentcolor;color:${Aa};background:transparent;outline:none;border:none;padding:0}:host::before{content:"";background:${Ea};border:calc(${pr} * 1px) solid ${Ea};border-radius:50%;position:absolute;top:0;right:0;left:0;bottom:0;transition:all 0.1s ease-in-out}.next,.previous{position:relative;width:16px;height:16px;display:grid}:host([disabled]){opacity:${ur};cursor:${"not-allowed"};fill:currentcolor;color:${Cl};pointer-events:none}:host([disabled])::before,:host([disabled]:hover)::before,:host([disabled]:active)::before{background:${rl};border-color:${Tl}}:host(:hover){color:${Va}}:host(:hover)::before{background:${Sa};border-color:${Sa}}:host(:active){color:${za}}:host(:active)::before{background:${Oa};border-color:${Oa}}:host(:${Js}){outline:none}:host(:${Js})::before{box-shadow:0 0 0 calc((${gr} - ${pr}) * 1px) ${vl} inset,0 0 0 calc((${gr} + ${pr}) * 1px) ${xl} inset;border-color:${vl}}:host::-moz-focus-inner{border:0}`.withBehaviors(Ys(bt`
- :host{background:${We.Canvas}}:host .next,:host .previous{color:${We.ButtonText};fill:currentcolor}:host::before{background:${We.Canvas};border-color:${We.ButtonText}}:host(:hover)::before{forced-color-adjust:none;background:${We.Highlight};border-color:${We.ButtonText};opacity:1}:host(:hover) .next,:host(:hover) .previous{forced-color-adjust:none;color:${We.HighlightText};fill:currentcolor}:host([disabled]){opacity:1}:host([disabled])::before,:host([disabled]:hover)::before,:host([disabled]) .next,:host([disabled]) .previous{forced-color-adjust:none;background:${We.Canvas};border-color:${We.GrayText};color:${We.GrayText};fill:${We.GrayText}}:host(:${Js})::before{forced-color-adjust:none;border-color:${We.Highlight};box-shadow:0 0 0 calc((${gr} - ${pr}) * 1px) ${We.Highlight} inset}`)),Gc=Po.compose({baseName:"flipper",template:(t,e)=>K`t.keyupHandler(e.event)}">${Ot(t=>t.direction===Vo.next,K`${e.next||""}`)} ${Ot(t=>t.direction===Vo.previous,K`${e.previous||""}`)}`,styles:_c,next:'\n \n ',previous:'\n \n '}),Wc=bt`
- .scroll-prev{right:auto;left:0}.scroll.scroll-next::before,.scroll-next .scroll-action{left:auto;right:0}.scroll.scroll-next::before{background:linear-gradient(to right,transparent,var(--scroll-fade-next))}.scroll-next .scroll-action{transform:translate(50%,-50%)}`,Kc=bt`
- .scroll.scroll-next{right:auto;left:0}.scroll.scroll-next::before{background:linear-gradient(to right,var(--scroll-fade-next),transparent);left:auto;right:0}.scroll.scroll-prev::before{background:linear-gradient(to right,transparent,var(--scroll-fade-previous))}.scroll-prev .scroll-action{left:auto;right:0;transform:translate(50%,-50%)}`,Xc=bt`
- .scroll-area{position:relative}div.scroll-view{overflow-x:hidden}.scroll{bottom:0;pointer-events:none;position:absolute;right:0;top:0;user-select:none;width:100px}.scroll.disabled{display:none}.scroll::before,.scroll-action{left:0;position:absolute}.scroll::before{background:linear-gradient(to right,var(--scroll-fade-previous),transparent);content:"";display:block;height:100%;width:100%}.scroll-action{pointer-events:auto;right:auto;top:50%;transform:translate(-50%,-50%)}`.withBehaviors(new Gl(Wc,Kc)),Yc=(t,e)=>bt`
- ${Zs("block")} :host{--scroll-align:center;--scroll-item-spacing:5px;contain:layout;position:relative}.scroll-view{overflow-x:auto;scrollbar-width:none}::-webkit-scrollbar{display:none}.content-container{align-items:var(--scroll-align);display:inline-flex;flex-wrap:nowrap;position:relative}.content-container ::slotted(*){margin-right:var(--scroll-item-spacing)}.content-container ::slotted(*:last-child){margin-right:0}`;class Qc extends us{connectedCallback(){super.connectedCallback(),"mobile"!==this.view&&this.$fastController.addStyles(Xc)}}const Zc=Qc.compose({baseName:"horizontal-scroll",baseClass:us,template:(t,e)=>{var i,o;return K`t.keyupHandler(e.event)}">${_t(0,e)}${Ut(0,e)}`},styles:Yc,nextFlipper:t=>K`<${t.tagFor(Po)} @click="${t=>t.scrollToNext()}" aria-hidden="${t=>t.flippersHiddenFromAT}">${t.tagFor(Po)}>`,previousFlipper:t=>K`<${t.tagFor(Po)} @click="${t=>t.scrollToPrevious()}" direction="previous" aria-hidden="${t=>t.flippersHiddenFromAT}">${t.tagFor(Po)}>`}),Jc=(t,e)=>bt`
- ${Zs("inline-flex")} :host{align-items:center;font-family:${sr};border-radius:calc(${lr} * 1px);border:calc(${gr} * 1px) solid ${fa};box-sizing:border-box;color:${Cl};cursor:pointer;flex:0 0 auto;fill:currentcolor;font-size:${mr};height:calc(${Al} * 1px);line-height:${fr};margin:0 calc((${hr} - ${gr}) * 1px);outline:none;overflow:hidden;padding:0 1ch;user-select:none;white-space:nowrap}:host(:${Js}){box-shadow:0 0 0 calc(${gr} * 1px) inset ${xl};border-color:${vl};background:${Da};color:${Pa}}:host([aria-selected="true"]){background:${Ea};color:${Aa}}:host(:hover){background:${Sa};color:${Va}}:host(:active){background:${Oa};color:${za}}:host(:not([aria-selected="true"]):hover),:host(:not([aria-selected="true"]):active){background:${Qa};color:${Cl}}:host([disabled]){cursor:${"not-allowed"};opacity:${ur}}:host([disabled]:hover){background-color:inherit}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end,::slotted(svg){display:flex}::slotted(svg){height:calc(${hr} * 4px);width:calc(${hr} * 4px)}::slotted([slot="end"]){margin-inline-start:1ch}::slotted([slot="start"]){margin-inline-end:1ch}:host([aria-checked="true"][aria-selected="false"]){border-color:${Tl};background:${wa};color:${Cl}}:host([aria-checked="true"][aria-selected="false"]:not([disabled]):hover){background:${Qa}}:host([aria-checked="true"][aria-selected="true"]){border-color:${vl};background:${Da};color:${Pa}}:host([aria-checked="true"][aria-selected="true"]:hover){background:${Sa};color:${Va}}`.withBehaviors(Ys(bt`
- :host{border-color:transparent;forced-color-adjust:none;color:${We.ButtonText};fill:currentcolor}:host(:not([aria-selected="true"]):hover),:host([aria-selected="true"]){background:${We.Highlight};color:${We.HighlightText}}:host([disabled]),:host([disabled][aria-selected="false"]:hover){background:${We.Canvas};color:${We.GrayText};fill:currentcolor;opacity:1}:host([aria-checked="true"][aria-selected="false"]){background:${We.ButtonFace};color:${We.ButtonText};border-color:${We.ButtonText}}:host([aria-checked="true"][aria-selected="true"]),:host([aria-checked="true"][aria-selected="true"]:hover){background:${We.Highlight};color:${We.HighlightText};border-color:${We.ButtonText}}`)),th=Mi.compose({baseName:"option",template:(t,e)=>K`${_t(0,e)}${Ut(0,e)}`,styles:Jc});class eh extends Ho{sizeChanged(t,e){super.sizeChanged(t,e),this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);const t=""+this.size;this.computedStylesheet=bt`
- :host{--size:${t}}`,this.$fastController.addStyles(this.computedStylesheet)}}const ih=eh.compose({baseName:"listbox",baseClass:Ho,template:(t,e)=>K`t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}">`,styles:xc}),oh=(t,e)=>bt`
- ${Zs("grid")} :host{contain:layout;overflow:visible;font-family:${sr};outline:none;box-sizing:border-box;height:calc(${Al} * 1px);grid-template-columns:minmax(42px,auto) 1fr minmax(42px,auto);grid-template-rows:auto;justify-items:center;align-items:center;padding:0;margin:0 calc(${hr} * 1px);white-space:nowrap;color:${Cl};fill:currentcolor;cursor:pointer;font-size:${mr};line-height:${fr};border-radius:calc(${lr} * 1px);border:calc(${gr} * 1px) solid transparent}:host(:hover){position:relative;z-index:1}:host(.indent-0){grid-template-columns:auto 1fr minmax(42px,auto)}:host(.indent-0) .content{grid-column:1;grid-row:1;margin-inline-start:10px}:host(.indent-0) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2){grid-template-columns:minmax(42px,auto) minmax(42px,auto) 1fr minmax(42px,auto) minmax(42px,auto)}:host(.indent-2) .content{grid-column:3;grid-row:1;margin-inline-start:10px}:host(.indent-2) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2) .start{grid-column:2}:host(.indent-2) .end{grid-column:4}:host(:${Js}){border-color:${vl};background:${wa};color:${Cl}}:host(:hover){background:${wa};color:${Cl}}:host([aria-checked="true"]),:host(:active),:host(.expanded){background:${xa};color:${Cl}}:host([disabled]){cursor:${"not-allowed"};opacity:${ur}}:host([disabled]:hover){color:${Cl};fill:currentcolor;background:${rl}}:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg){fill:${Cl}}.expand-collapse-glyph{width:16px;height:16px;fill:currentcolor}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end{display:flex;justify-content:center}::slotted(svg){width:16px;height:16px}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg){fill:${Cl}}:host(.indent-0[aria-haspopup="menu"]){display:grid;grid-template-columns:minmax(42px,auto) auto 1fr minmax(42px,auto) minmax(42px,auto);align-items:center;min-height:32px}:host(.indent-1[aria-haspopup="menu"]),:host(.indent-1[role="menuitemcheckbox"]),:host(.indent-1[role="menuitemradio"]){display:grid;grid-template-columns:minmax(42px,auto) auto 1fr minmax(42px,auto) minmax(42px,auto);align-items:center;min-height:32px}:host(.indent-2:not([aria-haspopup="menu"])) .end{grid-column:5}:host .input-container,:host .expand-collapse-glyph-container{display:none}:host([aria-haspopup="menu"]) .expand-collapse-glyph-container,:host([role="menuitemcheckbox"]) .input-container,:host([role="menuitemradio"]) .input-container{display:grid;margin-inline-end:10px}:host([aria-haspopup="menu"]) .content,:host([role="menuitemcheckbox"]) .content,:host([role="menuitemradio"]) .content{grid-column-start:3}:host([aria-haspopup="menu"].indent-0) .content{grid-column-start:1}:host([aria-haspopup="menu"]) .end,:host([role="menuitemcheckbox"]) .end,:host([role="menuitemradio"]) .end{grid-column-start:4}:host .expand-collapse,:host .checkbox,:host .radio{display:flex;align-items:center;justify-content:center;position:relative;width:20px;height:20px;box-sizing:border-box;outline:none;margin-inline-start:10px}:host .checkbox,:host .radio{border:calc(${pr} * 1px) solid ${Cl}}:host([aria-checked="true"]) .checkbox,:host([aria-checked="true"]) .radio{background:${Ea};border-color:${Ea}}:host .checkbox{border-radius:calc(${lr} * 1px)}:host .radio{border-radius:999px}:host .checkbox-indicator,:host .radio-indicator,:host .expand-collapse-indicator,::slotted([slot="checkbox-indicator"]),::slotted([slot="radio-indicator"]),::slotted([slot="expand-collapse-indicator"]){display:none}::slotted([slot="end"]:not(svg)){margin-inline-end:10px;color:${wl}}:host([aria-checked="true"]) .checkbox-indicator,:host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]){width:100%;height:100%;display:block;fill:${Aa};pointer-events:none}:host([aria-checked="true"]) .radio-indicator{position:absolute;top:4px;left:4px;right:4px;bottom:4px;border-radius:999px;display:block;background:${Aa};pointer-events:none}:host([aria-checked="true"]) ::slotted([slot="radio-indicator"]){display:block;pointer-events:none}`.withBehaviors(Ys(bt`
- :host{border-color:transparent;color:${We.ButtonText};forced-color-adjust:none}:host(:hover){background:${We.Highlight};color:${We.HighlightText}}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg){fill:${We.HighlightText}}:host(.expanded){background:${We.Highlight};border-color:${We.Highlight};color:${We.HighlightText}}:host(:${Js}){background:${We.Highlight};border-color:${We.ButtonText};box-shadow:0 0 0 calc(${gr} * 1px) inset ${We.HighlightText};color:${We.HighlightText};fill:currentcolor}:host([disabled]),:host([disabled]:hover),:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg){background:${We.Canvas};color:${We.GrayText};fill:currentcolor;opacity:1}:host .expanded-toggle,:host .checkbox,:host .radio{border-color:${We.ButtonText};background:${We.HighlightText}}:host([checked="true"]) .checkbox,:host([checked="true"]) .radio{background:${We.HighlightText};border-color:${We.HighlightText}}:host(:hover) .expanded-toggle,:host(:hover) .checkbox,:host(:hover) .radio,:host(:${Js}) .expanded-toggle,:host(:${Js}) .checkbox,:host(:${Js}) .radio,:host([checked="true"]:hover) .checkbox,:host([checked="true"]:hover) .radio,:host([checked="true"]:${Js}) .checkbox,:host([checked="true"]:${Js}) .radio{border-color:${We.HighlightText}}:host([aria-checked="true"]){background:${We.Highlight};color:${We.HighlightText}}:host([aria-checked="true"]) .checkbox-indicator,:host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]),:host([aria-checked="true"]) ::slotted([slot="radio-indicator"]){fill:${We.Highlight}}:host([aria-checked="true"]) .radio-indicator{background:${We.Highlight}}::slotted([slot="end"]:not(svg)){color:${We.ButtonText}}:host(:hover) ::slotted([slot="end"]:not(svg)),:host(:${Js}) ::slotted([slot="end"]:not(svg)){color:${We.HighlightText}}`),new Gl(bt`
- .expand-collapse-glyph{transform:rotate(0deg)}`,bt`
- .expand-collapse-glyph{transform:rotate(180deg)}`)),sh=Qo.compose({baseName:"menu-item",template:(t,e)=>K`t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" class="${t=>t.disabled?"disabled":""} ${t=>t.expanded?"expanded":""} ${t=>"indent-"+t.startColumnCount}">${Ot(t=>t.role===Xo.menuitemcheckbox,K`${e.checkboxIndicator||""}
`)} ${Ot(t=>t.role===Xo.menuitemradio,K`${e.radioIndicator||""}
`)}${_t(0,e)}
${Ut(0,e)} ${Ot(t=>t.hasSubmenu,K`
${e.expandCollapseGlyph||""}
`)} ${Ot(t=>t.expanded,K`<${t.tagFor(ei)} :anchorElement="${t=>t}" vertical-positioning-mode="dynamic" vertical-default-position="bottom" vertical-inset="true" horizontal-positioning-mode="dynamic" horizontal-default-position="end" class="submenu-region" dir="${t=>t.currentDirection}" @loaded="${t=>t.submenuLoaded()}" ${St("submenuRegion")} part="submenu-region">
${t.tagFor(ei)}>`)}`,styles:oh,checkboxIndicator:'\n
\n ',expandCollapseGlyph:'\n
\n ',radioIndicator:'\n
\n '}),nh=(t,e)=>bt`
- ${Zs("block")} :host{--elevation:11;background:${fa};border:calc(${pr} * 1px) solid transparent;${Ml}
- margin:0;border-radius:calc(${lr} * 1px);padding:calc(${hr} * 1px) 0;max-width:368px;min-width:64px}:host([slot="submenu"]){width:max-content;margin:0 calc(${hr} * 1px)}::slotted(hr){box-sizing:content-box;height:0;margin:0;border:none;border-top:calc(${pr} * 1px) solid ${Dl}}`.withBehaviors(Ys(bt`
- :host{background:${We.Canvas};border-color:${We.CanvasText}}`)),rh=Zo.compose({baseName:"menu",template:(t,e)=>K`
t.handleMenuKeyDown(e.event)}" @focusout="${(t,e)=>t.handleFocusOut(e.event)}">`,styles:nh}),ah=(t,e)=>bt`
- ${Zs("inline-block")} :host{font-family:${sr};outline:none;user-select:none}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${Cl};background:${el};border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid ${Ea};height:calc(${Al} * 1px);align-items:baseline}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${hr} * 2px + 1px);font-size:${mr};line-height:${fr}}.control:hover,.control:${Js},.control:disabled,.control:active{outline:none}.controls{opacity:0}.label{display:block;color:${Cl};cursor:pointer;font-size:${mr};line-height:${fr};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.start,.control,.controls,.end{align-self:center}.start,.end{margin:auto;fill:currentcolor}.step-up-glyph,.step-down-glyph{display:block;padding:4px 10px;cursor:pointer}.step-up-glyph:before,.step-down-glyph:before{content:'';display:block;border:solid transparent 6px}.step-up-glyph:before{border-bottom-color:${Cl}}.step-down-glyph:before{border-top-color:${Cl}}::slotted(svg){width:16px;height:16px}.start{margin-inline-start:11px}.end{margin-inline-end:11px}:host(:hover:not([disabled])) .root{background:${il};border-color:${Sa}}:host(:active:not([disabled])) .root{background:${il};border-color:${Oa}}:host(:focus-within:not([disabled])) .root{border-color:${vl};box-shadow:0 0 0 calc(${gr} * 1px) ${vl} inset}:host(:hover:not([disabled])) .controls,:host(:focus-within:not([disabled])) .controls{opacity:1}:host([appearance="filled"]) .root{background:${Ya}}:host([appearance="filled"]:hover:not([disabled])) .root{background:${Qa}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${ur}}:host([disabled]) .control{border-color:${Tl}}`.withBehaviors(Ys(bt`
- .root,:host([appearance="filled"]) .root{forced-color-adjust:none;background:${We.Field};border-color:${We.FieldText}}:host(:hover:not([disabled])) .root,:host([appearance="filled"]:hover:not([disabled])) .root,:host([appearance="filled"]:hover) .root{background:${We.Field};border-color:${We.Highlight}}.start,.end{fill:currentcolor}:host([disabled]){opacity:1}:host([disabled]) .root,:host([appearance="filled"]:hover[disabled]) .root{border-color:${We.GrayText};background:${We.Field}}:host(:focus-within:enabled) .root{border-color:${We.Highlight};box-shadow:0 0 0 1px ${We.Highlight} inset}input::placeholder{color:${We.GrayText}}`));class lh extends rs{constructor(){super(...arguments),this.appearance="outline"}}Hl([st],lh.prototype,"appearance",void 0);const ch=lh.compose({baseName:"number-field",baseClass:rs,styles:ah,template:(t,e)=>K`
${_t(0,e)}
t.handleTextInput()}" @change="${t=>t.handleChange()}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @blur="${(t,e)=>t.handleBlur()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" type="text" inputmode="numeric" min="${t=>t.min}" max="${t=>t.max}" step="${t=>t.step}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${St("control")} />${Ot(t=>!t.hideStep&&!t.readOnly&&!t.disabled,K`
t.stepUp()}">${e.stepUpGlyph||""}
t.stepDown()}">${e.stepDownGlyph||""}
`)} ${Ut(0,e)}
`,shadowOptions:{delegatesFocus:!0},stepDownGlyph:'\n
\n ',stepUpGlyph:'\n
\n '}),hh=(t,e)=>bt`
- .region{z-index:1000;overflow:hidden;display:flex;font-family:${sr};font-size:${mr}}.loaded{opacity:1;pointer-events:none}.loading-display,.no-options-display{background:${fa};width:100%;min-height:calc(${Al} * 1px);display:flex;flex-direction:column;align-items:center;justify-items:center;padding:calc(${hr} * 1px)}.loading-progress{width:42px;height:42px}.bottom{flex-direction:column}.top{flex-direction:column-reverse}`,dh=(t,e)=>bt`
- :host{background:${fa};--elevation:11;z-index:1000;display:flex;width:100%;max-height:100%;min-height:58px;box-sizing:border-box;flex-direction:column;overflow-y:auto;overflow-x:hidden;pointer-events:auto;border-radius:calc(${lr} * 1px);padding:calc(${hr} * 1px) 0;border:calc(${pr} * 1px) solid transparent;${Ml}}.suggestions-available-alert{height:0;opacity:0;overflow:hidden}`.withBehaviors(Ys(bt`
- :host{background:${We.Canvas};border-color:${We.CanvasText}}`)),uh=(t,e)=>bt`
- :host{display:flex;align-items:center;justify-items:center;font-family:${sr};border-radius:calc(${lr} * 1px);border:calc(${gr} * 1px) solid transparent;box-sizing:border-box;color:${Cl};cursor:pointer;fill:currentcolor;font-size:${mr};min-height:calc(${Al} * 1px);line-height:${fr};margin:0 calc(${hr} * 1px);outline:none;overflow:hidden;padding:0 calc(${hr} * 2.25px);user-select:none;white-space:nowrap}:host(:${Js}[role="listitem"]){border-color:${vl};background:${Ya};color:${Cl}}:host(:hover){background:${Qa};color:${Cl}}:host([aria-selected="true"]){background:${Ea};color:${za}}`.withBehaviors(Ys(bt`
- :host{border-color:transparent;forced-color-adjust:none;color:${We.ButtonText};fill:currentcolor}:host(:not([aria-selected="true"]):hover),:host([aria-selected="true"]){background:${We.Highlight};color:${We.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected="true"]):hover){background:${We.Canvas};color:${We.GrayText};fill:currentcolor;opacity:1}`)),ph=(t,e)=>bt`
-:host{display:flex;align-items:center;justify-items:center;font-family:${sr};border-radius:calc(${lr} * 1px);border:calc(${gr} * 1px) solid transparent;box-sizing:border-box;color:${Cl};cursor:pointer;fill:currentcolor;font-size:${mr};height:calc(${Al} * 1px);line-height:${fr};outline:none;overflow:hidden;padding:0 calc(${hr} * 2.25px);user-select:none;white-space:nowrap}:host(:${Js}),:host(:hover){background:${wa};color:${Cl}}:host(:focusVisible){border-color:${vl}}:host([aria-selected="true"]){background:${Oa};color:${za}}`.withBehaviors(Ys(bt`
- :host{border-color:transparent;forced-color-adjust:none;color:${We.ButtonText};fill:currentcolor}:host(:not([aria-selected="true"]):hover),:host([aria-selected="true"]){background:${We.Highlight};color:${We.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected="true"]):hover){background:${We.Canvas};color:${We.GrayText};fill:currentcolor;opacity:1}`)),gh=Ko.compose({baseName:"picker",template:(t,e)=>{const i=t.tagFor(ei),o=t.tagFor(Mo),s=t.tagFor(jo),n=t.tagFor(jo);return K`
t}" :contentsTemplate="${(t,e)=>e.parent.listItemContentsTemplate}">${e}>`}(t)}" :defaultMenuOptionTemplate="${function(t){const e=t.tagFor(No);return K`<${e} value="${t=>t}" :contentsTemplate="${(t,e)=>e.parent.menuOptionContentsTemplate}">${e}>`}(t)}" @focusin="${(t,e)=>t.handleFocusIn(e.event)}" @focusout="${(t,e)=>t.handleFocusOut(e.event)}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @pickeriteminvoked="${(t,e)=>t.handleItemInvoke(e.event)}" @pickeroptioninvoked="${(t,e)=>t.handleOptionInvoke(e.event)}">${Ot(t=>t.flyoutOpen,K`<${i} class="region" part="region" auto-update-mode="${t=>t.menuConfig.autoUpdateMode}" fixed-placement="${t=>t.menuConfig.fixedPlacement}" vertical-positioning-mode="${t=>t.menuConfig.verticalPositioningMode}" vertical-default-position="${t=>t.menuConfig.verticalDefaultPosition}" vertical-scaling="${t=>t.menuConfig.verticalScaling}" vertical-inset="${t=>t.menuConfig.verticalInset}" vertical-viewport-lock="${t=>t.menuConfig.verticalViewportLock}" horizontal-positioning-mode="${t=>t.menuConfig.horizontalPositioningMode}" horizontal-default-position="${t=>t.menuConfig.horizontalDefaultPosition}" horizontal-scaling="${t=>t.menuConfig.horizontalScaling}" horizontal-inset="${t=>t.menuConfig.horizontalInset}" horizontal-viewport-lock="${t=>t.menuConfig.horizontalViewportLock}" @loaded="${(t,e)=>t.handleRegionLoaded(e.event)}" ${St("region")}>${Ot(t=>!t.showNoOptions&&!t.showLoading,K``)} ${Ot(t=>t.showNoOptions&&!t.showLoading,K`${t=>t.noSuggestionsText}
`)} ${Ot(t=>t.showLoading,K`<${n} part="loading-progress" class="loading-progress slot="loading-region">${n}>${t=>t.loadingText}
`)}${i}>`)}`},styles:hh,shadowOptions:{}}),mh=Mo.compose({baseName:"picker-menu",template:(t,e)=>K`
${t=>t.suggestionsAvailableText}
`,styles:dh}),fh=No.compose({baseName:"picker-menu-option",template:(t,e)=>K`
t.handleClick(e.event)}">`,styles:uh}),bh=jo.compose({baseName:"picker-list",template:(t,e)=>K`
`,styles:(t,e)=>bt`
- :host{display:flex;flex-direction:row;column-gap:calc(${hr} * 1px);row-gap:calc(${hr} * 1px);flex-wrap:wrap}::slotted([role="combobox"]){min-width:260px;width:auto;box-sizing:border-box;color:${Cl};background:${el};border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid ${Ea};height:calc(${Al} * 1px);font-family:${sr};outline:none;user-select:none;font-size:${mr};line-height:${fr};padding:0 calc(${hr} * 2px + 1px)}::slotted([role="combobox"]:active){{background:${il};border-color:${Oa}}::slotted([role="combobox"]:focus-within){border-color:${vl};box-shadow:0 0 0 1px ${vl} inset}`.withBehaviors(Ys(bt`
- ::slotted([role="combobox"]:active){background:${We.Field};border-color:${We.Highlight}}::slotted([role="combobox"]:focus-within){border-color:${We.Highlight};box-shadow:0 0 0 1px ${We.Highlight} inset}::slotted(input:placeholder){color:${We.GrayText}}`))}),vh=Uo.compose({baseName:"picker-list-item",template:(t,e)=>K`
t.handleClick(e.event)}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}">`,styles:ph}),yh=(t,e)=>bt`
- ${Zs("flex")} :host{align-items:center;outline:none;height:calc(${Al} * 1px);width:calc(${Al} * 1px);margin:calc(${Al} * 1px) 0}.progress{height:100%;width:100%}.background{stroke:${Ya};fill:none;stroke-width:2px}.determinate{stroke:${_a};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}.indeterminate-indicator-1{stroke:${_a};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 2s linear infinite}:host([paused]) .indeterminate-indicator-1{animation-play-state:paused;stroke:${Ya}}:host([paused]) .determinate{stroke:${wl}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`.withBehaviors(Ys(bt`
- .indeterminate-indicator-1,.determinate{stroke:${We.FieldText}}.background{stroke:${We.Field}}:host([paused]) .indeterminate-indicator-1{stroke:${We.Field}}:host([paused]) .determinate{stroke:${We.GrayText}}`)),xh=as.compose({baseName:"progress-ring",template:(t,e)=>K`
${Ot(t=>"number"==typeof t.value,K``)} ${Ot(t=>"number"!=typeof t.value,K`${e.indeterminateIndicator||""}`)}`,styles:yh,indeterminateIndicator:'\n
\n '}),$h=(t,e)=>bt`
- ${Zs("flex")} :host{align-items:center;outline:none;height:calc(${hr} * 1px);margin:calc(${hr} * 1px) 0}.progress{background-color:${Ya};border-radius:calc(${hr} * 1px);width:100%;height:100%;display:flex;align-items:center;position:relative}.determinate{background-color:${_a};border-radius:calc(${hr} * 1px);height:100%;transition:all 0.2s ease-in-out;display:flex}.indeterminate{height:100%;border-radius:calc(${hr} * 1px);display:flex;width:100%;position:relative;overflow:hidden}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background-color:${_a};border-radius:calc(${hr} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 2s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background-color:${_a};border-radius:calc(${hr} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 2s infinite}:host([paused]) .indeterminate-indicator-1,:host([paused]) .indeterminate-indicator-2{animation-play-state:paused;background-color:${Ya}}:host([paused]) .determinate{background-color:${wl}}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(Ys(bt`
- .progress{forced-color-adjust:none;background-color:${We.Field};box-shadow:0 0 0 1px inset ${We.FieldText}}.determinate,.indeterminate-indicator-1,.indeterminate-indicator-2{forced-color-adjust:none;background-color:${We.FieldText}}:host([paused]) .determinate,:host([paused]) .indeterminate-indicator-1,:host([paused]) .indeterminate-indicator-2{background-color:${We.GrayText}}`)),wh=as.compose({baseName:"progress",template:(t,e)=>K`
${Ot(t=>"number"==typeof t.value,K``)} ${Ot(t=>"number"!=typeof t.value,K`${e.indeterminateIndicator1||""} ${e.indeterminateIndicator2||""}
`)}`,styles:$h,indeterminateIndicator1:'\n
\n ',indeterminateIndicator2:'\n
\n '}),kh=(t,e)=>bt`
- ${Zs("flex")} :host{align-items:flex-start;margin:calc(${hr} * 1px) 0;flex-direction:column}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation="vertical"]) .positioning-region{flex-direction:column}:host([orientation="horizontal"]) .positioning-region{flex-direction:row}`,Ch=ls.compose({baseName:"radio-group",template:(t,e)=>K`
t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @focusout="${(t,e)=>t.focusOutHandler(e.event)}">
`,styles:kh}),Ih=(t,e)=>bt`
- ${Zs("inline-flex")} :host{--input-size:calc((${Al} / 2) + ${hr});align-items:center;outline:none;margin:calc(${hr} * 1px) 0;user-select:none;position:relative;flex-direction:row;transition:all 0.2s ease-in-out}.control{position:relative;width:calc((${Al} / 2 + ${hr}) * 1px);height:calc((${Al} / 2 + ${hr}) * 1px);box-sizing:border-box;border-radius:999px;border:calc(${pr} * 1px) solid ${Tl};background:${el};outline:none;cursor:pointer}.label{font-family:${sr};color:${Cl};padding-inline-start:calc(${hr} * 2px + 2px);margin-inline-end:calc(${hr} * 2px + 2px);cursor:pointer;font-size:${mr};line-height:${fr}}.label__hidden{display:none;visibility:hidden}.control,.checked-indicator{flex-shrink:0}.checked-indicator{position:absolute;top:5px;left:5px;right:5px;bottom:5px;border-radius:999px;display:inline-block;background:${Aa};fill:${Aa};opacity:0;pointer-events:none}:host(:not([disabled])) .control:hover{background:${il};border-color:${Fl}}:host(:not([disabled])) .control:active{background:${ol};border-color:${El}}:host(:${Js}) .control{box-shadow:0 0 0 2px ${Ia},0 0 0 4px ${vl}}:host([aria-checked="true"]) .control{background:${Ea};border:calc(${pr} * 1px) solid ${Ea}}:host([aria-checked="true"]:not([disabled])) .control:hover{background:${Sa};border:calc(${pr} * 1px) solid ${Sa}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{background:${Va};fill:${Va}}:host([aria-checked="true"]:not([disabled])) .control:active{background:${Oa};border:calc(${pr} * 1px) solid ${Oa}}:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{background:${za};fill:${za}}:host([aria-checked="true"]:${Js}:not([disabled])) .control{box-shadow:0 0 0 2px ${Ia},0 0 0 4px ${vl}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([aria-checked="true"]) .checked-indicator{opacity:1}:host([disabled]){opacity:${ur}}`.withBehaviors(Ys(bt`
- .control,:host([aria-checked="true"]:not([disabled])) .control{forced-color-adjust:none;border-color:${We.FieldText};background:${We.Field}}:host(:not([disabled])) .control:hover{border-color:${We.Highlight};background:${We.Field}}:host([aria-checked="true"]:not([disabled])) .control:hover,:host([aria-checked="true"]:not([disabled])) .control:active{border-color:${We.Highlight};background:${We.Highlight}}:host([aria-checked="true"]) .checked-indicator{background:${We.Highlight};fill:${We.Highlight}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator,:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{background:${We.HighlightText};fill:${We.HighlightText}}:host(:${Js}) .control{border-color:${We.Highlight};box-shadow:0 0 0 2px ${We.Field},0 0 0 4px ${We.FieldText}}:host([aria-checked="true"]:${Js}:not([disabled])) .control{border-color:${We.Highlight};box-shadow:0 0 0 2px ${We.Field},0 0 0 4px ${We.FieldText}}:host([disabled]){forced-color-adjust:none;opacity:1}:host([disabled]) .label{color:${We.GrayText}}:host([disabled]) .control,:host([aria-checked="true"][disabled]) .control:hover,.control:active{background:${We.Field};border-color:${We.GrayText}}:host([disabled]) .checked-indicator,:host([aria-checked="true"][disabled]) .control:hover .checked-indicator{fill:${We.GrayText};background:${We.GrayText}}`)),Th=ds.compose({baseName:"radio",template:(t,e)=>K`
t.readOnly?"readonly":""}" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}">${e.checkedIndicator||""}
`,styles:Ih,checkedIndicator:'\n
\n '}),Fh=po.create("clear-button-hover").withDefault(t=>{const e=nl.getValueFor(t),i=Xa.getValueFor(t);return e.evaluate(t,i.evaluate(t).hover).hover}),Eh=po.create("clear-button-active").withDefault(t=>{const e=nl.getValueFor(t),i=Xa.getValueFor(t);return e.evaluate(t,i.evaluate(t).hover).active}),Sh=(t,e)=>bt`
- ${Zs("inline-block")} :host{font-family:${sr};outline:none;user-select:none}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${Cl};background:${el};border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid ${Ea};height:calc(${Al} * 1px);align-items:baseline}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${hr} * 2px + 1px);font-size:${mr};line-height:${fr}}.control::-webkit-search-cancel-button{-webkit-appearance:none}.control:hover,.control:${Js},.control:disabled,.control:active{outline:none}.clear-button{height:calc(100% - 2px);opacity:0;margin:1px;background:transparent;color:${Cl};fill:currentcolor;border:none;border-radius:calc(${lr} * 1px);min-width:calc(${Al} * 1px);font-size:${mr};line-height:${fr};outline:none;font-family:${sr};padding:0 calc((10 + (${hr} * 2 * ${cr})) * 1px)}.clear-button:hover{background:${al}}.clear-button:active{background:${ll}}:host([appearance="filled"]) .clear-button:hover{background:${Fh}}:host([appearance="filled"]) .clear-button:active{background:${Eh}}.input-wrapper{display:flex;position:relative;width:100%;height:100%}.label{display:block;color:${Cl};cursor:pointer;font-size:${mr};line-height:${fr};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.input-wrapper,.start,.end{align-self:center}.start,.end{display:flex;margin:1px;fill:currentcolor}::slotted([slot="end"]){height:100%}.end{margin-inline-end:1px;height:calc(100% - 2px)}::slotted(svg){width:16px;height:16px;margin-inline-end:11px;margin-inline-start:11px;margin-top:auto;margin-bottom:auto}:host(:hover:not([disabled])) .root{background:${il};border-color:${Sa}}:host(:active:not([disabled])) .root{background:${il};border-color:${Oa}}:host(:focus-within:not([disabled])) .root{border-color:${vl};box-shadow:0 0 0 1px ${vl} inset}.clear-button__hidden{opacity:0}:host(:hover:not([disabled],[readOnly])) .clear-button,:host(:active:not([disabled],[readOnly])) .clear-button,:host(:focus-within:not([disabled],[readOnly])) .clear-button{opacity:1}:host(:hover:not([disabled],[readOnly])) .clear-button__hidden,:host(:active:not([disabled],[readOnly])) .clear-button__hidden,:host(:focus-within:not([disabled],[readOnly])) .clear-button__hidden{opacity:0}:host([appearance="filled"]) .root{background:${Ia}}:host([appearance="filled"]:hover:not([disabled])) .root{background:${Qa}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${ur}}:host([disabled]) .control{border-color:${Tl}}`.withBehaviors(Ys(bt`
- .root,:host([appearance="filled"]) .root{forced-color-adjust:none;background:${We.Field};border-color:${We.FieldText}}:host(:hover:not([disabled])) .root,:host([appearance="filled"]:hover:not([disabled])) .root,:host([appearance="filled"]:hover) .root{background:${We.Field};border-color:${We.Highlight}}.start,.end{fill:currentcolor}:host([disabled]){opacity:1}:host([disabled]) .root,:host([appearance="filled"]:hover[disabled]) .root{border-color:${We.GrayText};background:${We.Field}}:host(:focus-within:enabled) .root{border-color:${We.Highlight};box-shadow:0 0 0 1px ${We.Highlight} inset}input::placeholder{color:${We.GrayText}}`));class Oh extends fs{constructor(){super(...arguments),this.appearance="outline"}}Hl([st],Oh.prototype,"appearance",void 0);const Dh=Oh.compose({baseName:"search",baseClass:fs,template:(t,e)=>K`
`,styles:Sh,shadowOptions:{delegatesFocus:!0}}),Rh=Sh;class Lh extends xs{constructor(){super(...arguments),this.listboxScrollWidth=""}get listboxMaxHeight(){return Math.floor(this.maxHeight/Rl.getValueFor(this)).toString()}listboxScrollWidthChanged(){this.updateComputedStylesheet()}get selectSize(){var t;return""+(null!==(t=this.size)&&void 0!==t?t:this.multiple?4:0)}multipleChanged(t,e){super.multipleChanged(t,e),this.updateComputedStylesheet()}maxHeightChanged(t,e){this.collapsible&&this.updateComputedStylesheet()}setPositioning(){super.setPositioning(),this.updateComputedStylesheet()}sizeChanged(t,e){super.sizeChanged(t,e),this.updateComputedStylesheet(),this.collapsible?requestAnimationFrame(()=>{this.listbox.style.setProperty("display","flex"),this.listbox.style.setProperty("overflow","visible"),this.listbox.style.setProperty("visibility","hidden"),this.listbox.style.setProperty("width","auto"),this.listbox.hidden=!1,this.listboxScrollWidth=""+this.listbox.scrollWidth,this.listbox.hidden=!0,this.listbox.style.removeProperty("display"),this.listbox.style.removeProperty("overflow"),this.listbox.style.removeProperty("visibility"),this.listbox.style.removeProperty("width")}):this.listboxScrollWidth=""}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet),this.computedStylesheet=bt`
- :host{--listbox-max-height:${this.listboxMaxHeight};--listbox-scroll-width:${this.listboxScrollWidth};--size:${this.selectSize}}`,this.$fastController.addStyles(this.computedStylesheet)}}Hl([v],Lh.prototype,"listboxScrollWidth",void 0);const Ah=Lh.compose({baseName:"select",baseClass:xs,template:(t,e)=>K`
t.open}" role="combobox" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}">${Ot(t=>t.collapsible,K`t.disabled}" ${St("control")}>${_t(0,e)}
${t=>t.displayValue}
${e.indicator||""}
${Ut(0,e)}
`)}t.disabled}" ?hidden="${t=>!!t.collapsible&&!t.open}" ${St("listbox")}>
`,styles:$c,indicator:'\n
\n '}),Vh=(t,e)=>bt`
- ${Zs("block")} :host{--skeleton-fill-default:#e1dfdd;overflow:hidden;width:100%;position:relative;background-color:var(--skeleton-fill,var(--skeleton-fill-default));--skeleton-animation-gradient-default:linear-gradient(
- 270deg,var(--skeleton-fill,var(--skeleton-fill-default)) 0%,#f3f2f1 51.13%,var(--skeleton-fill,var(--skeleton-fill-default)) 100%
- );--skeleton-animation-timing-default:ease-in-out}:host([shape="rect"]){border-radius:calc(${lr} * 1px)}:host([shape="circle"]){border-radius:100%;overflow:hidden}object{position:absolute;width:100%;height:auto;z-index:2}object img{width:100%;height:auto}${Zs("block")} span.shimmer{position:absolute;width:100%;height:100%;background-image:var(
- --skeleton-animation-gradient,var(--skeleton-animation-gradient-default)
- );background-size:0px 0px / 90% 100%;background-repeat:no-repeat;background-color:var(--skeleton-animation-fill,${Ya});animation:shimmer 2s infinite;animation-timing-function:var(
- --skeleton-animation-timing,var(--skeleton-timing-default)
- );animation-direction:normal;z-index:1}::slotted(svg){z-index:2}::slotted(.pattern){width:100%;height:100%}@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}`.withBehaviors(Ys(bt`
- :host{forced-color-adjust:none;background-color:${We.ButtonFace};box-shadow:0 0 0 1px ${We.ButtonText}}${Zs("block")} span.shimmer{display:none}`)),zh=ws.compose({baseName:"skeleton",template:(t,e)=>K`
t.shimmer}">${Ot(t=>!0===t.shimmer,K``)}`,styles:Vh}),Ph=bt`
- :host{align-self:start;grid-row:2;margin-top:-2px;height:calc((${Al} / 2 + ${hr}) * 1px);width:auto}.container{grid-template-rows:auto auto;grid-template-columns:0}.label{margin:2px 0}`,Hh=bt`
- :host{justify-self:start;grid-column:2;margin-left:2px;height:auto;width:calc((${Al} / 2 + ${hr}) * 1px)}.container{grid-template-columns:auto auto;grid-template-rows:0;min-width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px)}.mark{transform:rotate(90deg);align-self:center}.label{margin-left:calc((${hr} / 2) * 3px);align-self:center}`,Mh=(t,e)=>bt`
- ${Zs("block")} :host{font-family:${sr};color:${Cl};fill:currentcolor}.root{position:absolute;display:grid}.container{display:grid;justify-self:center}.label{justify-self:center;align-self:center;white-space:nowrap;max-width:30px}.mark{width:calc((${hr} / 4) * 1px);height:calc(${Al} * 0.25 * 1px);background:${Tl};justify-self:center}:host(.disabled){opacity:${ur}}`.withBehaviors(Ys(bt`
- .mark{forced-color-adjust:none;background:${We.FieldText}}:host(.disabled){forced-color-adjust:none;opacity:1}:host(.disabled) .label{color:${We.GrayText}}:host(.disabled) .mark{background:${We.GrayText}}`));class Bh extends Is{sliderOrientationChanged(){this.sliderOrientation===ze.horizontal?(this.$fastController.addStyles(Ph),this.$fastController.removeStyles(Hh)):(this.$fastController.addStyles(Hh),this.$fastController.removeStyles(Ph))}}const Nh=Bh.compose({baseName:"slider-label",baseClass:Is,template:(t,e)=>K`
${Ot(t=>!t.hideMark,K`
`)}
`,styles:Mh}),jh=bt`
- .track-start{left:0}`,qh=bt`
- .track-start{right:0}`,Uh=(t,e)=>bt`
- :host([hidden]){display:none}${Zs("inline-grid")} :host{--thumb-size:calc(${Al} * 0.5 - ${hr});--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:calc((${hr} / 2) * -1);--track-width:${hr};--fast-slider-height:calc(var(--thumb-size) * 10);align-items:center;width:100%;margin:calc(${hr} * 1px) 0;user-select:none;box-sizing:border-box;border-radius:calc(${lr} * 1px);outline:none;cursor:pointer}:host([orientation="horizontal"]) .positioning-region{position:relative;margin:0 8px;display:grid;grid-template-rows:calc(var(--thumb-size) * 1px) 1fr}:host([orientation="vertical"]) .positioning-region{position:relative;margin:0 8px;display:grid;height:100%;grid-template-columns:calc(var(--thumb-size) * 1px) 1fr}:host(:${Js}) .thumb-cursor{box-shadow:0 0 0 2px ${Ia},0 0 0 4px ${vl}}.thumb-container{position:absolute;height:calc(var(--thumb-size) * 1px);width:calc(var(--thumb-size) * 1px);transition:all 0.2s ease;color:${Cl};fill:currentcolor}.thumb-cursor{border:none;width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px);background:${Cl};border-radius:calc(${lr} * 1px)}.thumb-cursor:hover{background:${Cl};border-color:${Fl}}.thumb-cursor:active{background:${Cl}}.track-start{background:${_a};position:absolute;height:100%;left:0;border-radius:calc(${lr} * 1px)}:host([orientation="horizontal"]) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5px)) translateY(calc(var(--thumb-translate) * 1px))}:host([orientation="vertical"]) .thumb-container{transform:translateX(calc(var(--thumb-translate) * 1px)) translateY(calc(var(--thumb-size) * 0.5px))}:host([orientation="horizontal"]){min-width:calc(var(--thumb-size) * 1px)}:host([orientation="horizontal"]) .track{right:calc(var(--track-overhang) * 1px);left:calc(var(--track-overhang) * 1px);align-self:start;height:calc(var(--track-width) * 1px)}:host([orientation="vertical"]) .track{top:calc(var(--track-overhang) * 1px);bottom:calc(var(--track-overhang) * 1px);width:calc(var(--track-width) * 1px);height:100%}.track{background:${Tl};position:absolute;border-radius:calc(${lr} * 1px)}:host([orientation="vertical"]){height:calc(var(--fast-slider-height) * 1px);min-height:calc(var(--thumb-size) * 1px);min-width:calc(${hr} * 20px)}:host([orientation="vertical"]) .track-start{height:auto;width:100%;top:0}:host([disabled]),:host([readonly]){cursor:${"not-allowed"}}:host([disabled]){opacity:${ur}}`.withBehaviors(new Gl(jh,qh),Ys(bt`
- .thumb-cursor{forced-color-adjust:none;border-color:${We.FieldText};background:${We.FieldText}}.thumb-cursor:hover,.thumb-cursor:active{background:${We.Highlight}}.track{forced-color-adjust:none;background:${We.FieldText}}:host(:${Js}) .thumb-cursor{border-color:${We.Highlight}}:host([disabled]){opacity:1}:host([disabled]) .track,:host([disabled]) .thumb-cursor{forced-color-adjust:none;background:${We.GrayText}}:host(:${Js}) .thumb-cursor{background:${We.Highlight};border-color:${We.Highlight};box-shadow:0 0 0 2px ${We.Field},0 0 0 4px ${We.FieldText}}`)),_h=Ss.compose({baseName:"slider",template:(t,e)=>K`
t.orientation||ze.horizontal}" tabindex="${t=>t.disabled?null:0}" aria-valuetext="${t=>t.valueTextFormatter(t.value)}" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" aria-disabled="${t=>!!t.disabled||void 0}" aria-readonly="${t=>!!t.readOnly||void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}">`,styles:Uh,thumb:'\n
\n '}),Gh=(t,e)=>bt`
- :host([hidden]){display:none}${Zs("inline-flex")} :host{align-items:center;outline:none;font-family:${sr};margin:calc(${hr} * 1px) 0;${""} user-select:none}:host([disabled]){opacity:${ur}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:${"not-allowed"}}.switch{position:relative;outline:none;box-sizing:border-box;width:calc(${Al} * 1px);height:calc((${Al} / 2 + ${hr}) * 1px);background:${el};border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid ${Tl}}.switch:hover{background:${il};border-color:${Fl};cursor:pointer}host([disabled]) .switch:hover,host([readonly]) .switch:hover{background:${il};border-color:${Fl};cursor:${"not-allowed"}}:host(:not([disabled])) .switch:active{background:${ol};border-color:${El}}:host(:${Js}) .switch{box-shadow:0 0 0 2px ${Ia},0 0 0 4px ${vl}}.checked-indicator{position:absolute;top:5px;bottom:5px;background:${Cl};border-radius:calc(${lr} * 1px);transition:all 0.2s ease-in-out}.status-message{color:${Cl};cursor:pointer;font-size:${mr};line-height:${fr}}:host([disabled]) .status-message,:host([readonly]) .status-message{cursor:${"not-allowed"}}.label{color:${Cl};${""} margin-inline-end:calc(${hr} * 2px + 2px);font-size:${mr};line-height:${fr};cursor:pointer}.label__hidden{display:none;visibility:hidden}::slotted([slot="checked-message"]),::slotted([slot="unchecked-message"]){margin-inline-start:calc(${hr} * 2px + 2px)}:host([aria-checked="true"]) .checked-indicator{background:${Aa}}:host([aria-checked="true"]) .switch{background:${Ea};border-color:${Ea}}:host([aria-checked="true"]:not([disabled])) .switch:hover{background:${Sa};border-color:${Sa}}:host([aria-checked="true"]:not([disabled])) .switch:hover .checked-indicator{background:${Va}}:host([aria-checked="true"]:not([disabled])) .switch:active{background:${Oa};border-color:${Oa}}:host([aria-checked="true"]:not([disabled])) .switch:active .checked-indicator{background:${za}}:host([aria-checked="true"]:${Js}:not([disabled])) .switch{box-shadow:0 0 0 2px ${Ia},0 0 0 4px ${vl}}.unchecked-message{display:block}.checked-message{display:none}:host([aria-checked="true"]) .unchecked-message{display:none}:host([aria-checked="true"]) .checked-message{display:block}`.withBehaviors(Ys(bt`
- .checked-indicator,:host(:not([disabled])) .switch:active .checked-indicator{forced-color-adjust:none;background:${We.FieldText}}.switch{forced-color-adjust:none;background:${We.Field};border-color:${We.FieldText}}:host(:not([disabled])) .switch:hover{background:${We.HighlightText};border-color:${We.Highlight}}:host([aria-checked="true"]) .switch{background:${We.Highlight};border-color:${We.Highlight}}:host([aria-checked="true"]:not([disabled])) .switch:hover,:host(:not([disabled])) .switch:active{background:${We.HighlightText};border-color:${We.Highlight}}:host([aria-checked="true"]) .checked-indicator{background:${We.HighlightText}}:host([aria-checked="true"]:not([disabled])) .switch:hover .checked-indicator{background:${We.Highlight}}:host([disabled]){opacity:1}:host(:${Js}) .switch{border-color:${We.Highlight};box-shadow:0 0 0 2px ${We.Field},0 0 0 4px ${We.FieldText}}:host([aria-checked="true"]:${Js}:not([disabled])) .switch{box-shadow:0 0 0 2px ${We.Field},0 0 0 4px ${We.FieldText}}:host([disabled]) .checked-indicator{background:${We.GrayText}}:host([disabled]) .switch{background:${We.Field};border-color:${We.GrayText}}`),new Gl(bt`
- .checked-indicator{left:5px;right:calc(((${Al} / 2) + 1) * 1px)}:host([aria-checked="true"]) .checked-indicator{left:calc(((${Al} / 2) + 1) * 1px);right:5px}`,bt`
- .checked-indicator{right:5px;left:calc(((${Al} / 2) + 1) * 1px)}:host([aria-checked="true"]) .checked-indicator{right:calc(((${Al} / 2) + 1) * 1px);left:5px}`)),Wh=Rs.compose({baseName:"switch",template:(t,e)=>K`
t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.checked?"checked":""}">${e.switch||""}
`,styles:Gh,switch:'\n
\n '}),Kh=(t,e)=>bt`
- ${Zs("grid")} :host{box-sizing:border-box;font-family:${sr};font-size:${mr};line-height:${fr};color:${Cl};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;padding:calc(${hr} * 4px) calc(${hr} * 4px) 0;box-sizing:border-box}.start,.end{align-self:center}.activeIndicator{grid-row:2;grid-column:1;width:100%;height:5px;justify-self:center;background:${Ea};margin-top:10px;border-radius:calc(${lr} * 1px)
- calc(${lr} * 1px) 0 0}.activeIndicatorTransition{transition:transform 0.2s ease-in-out}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation="vertical"]){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation="vertical"]) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%;padding:0 calc(${hr} * 4px)
- calc((${Al} - ${hr}) * 1px) 0}:host([orientation="vertical"]) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation="vertical"]) .end{grid-row:3}:host([orientation="vertical"]) .activeIndicator{grid-column:1;grid-row:1;width:5px;height:100%;margin-inline-end:10px;align-self:center;background:${Ea};margin-top:0;border-radius:0 calc(${lr} * 1px)
- calc(${lr} * 1px) 0}:host([orientation="vertical"]) .activeIndicatorTransition{transition:transform 0.2s linear}`.withBehaviors(Ys(bt`
- .activeIndicator,:host([orientation="vertical"]) .activeIndicator{forced-color-adjust:none;background:${We.Highlight}}`)),Xh=(t,e)=>bt`
- ${Zs("inline-flex")} :host{box-sizing:border-box;font-family:${sr};font-size:${mr};line-height:${fr};height:calc(${Al} * 1px);padding:calc(${hr} * 5px) calc(${hr} * 4px);color:${wl};fill:currentcolor;border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid transparent;align-items:center;justify-content:center;grid-row:1;cursor:pointer}:host(:hover){color:${Cl};fill:currentcolor}:host(:active){color:${Cl};fill:currentcolor}:host([disabled]){cursor:${"not-allowed"};opacity:${ur}}:host([disabled]:hover){color:${wl};background:${rl}}:host([aria-selected="true"]){background:${Ya};color:${_a};fill:currentcolor}:host([aria-selected="true"]:hover){background:${Qa};color:${Ga};fill:currentcolor}:host([aria-selected="true"]:active){background:${Za};color:${Wa};fill:currentcolor}:host(:${Js}){outline:none;border:calc(${pr} * 1px) solid ${vl};box-shadow:0 0 0 calc((${gr} - ${pr}) * 1px)
- ${vl}}:host(:focus){outline:none}:host(.vertical){justify-content:end;grid-column:2}:host(.vertical[aria-selected="true"]){z-index:2}:host(.vertical:hover){color:${Cl}}:host(.vertical:active){color:${Cl}}:host(.vertical:hover[aria-selected="true"]){}`.withBehaviors(Ys(bt`
- :host{forced-color-adjust:none;border-color:transparent;color:${We.ButtonText};fill:currentcolor}:host(:hover),:host(.vertical:hover),:host([aria-selected="true"]:hover){background:${We.Highlight};color:${We.HighlightText};fill:currentcolor}:host([aria-selected="true"]){background:${We.HighlightText};color:${We.Highlight};fill:currentcolor}:host(:${Js}){border-color:${We.ButtonText};box-shadow:none}:host([disabled]),:host([disabled]:hover){opacity:1;color:${We.GrayText};background:${We.ButtonFace}}`)),Yh=As.compose({baseName:"tab",template:(t,e)=>K`
`,styles:Xh}),Qh=(t,e)=>bt`
- ${Zs("block")} :host{box-sizing:border-box;font-size:${mr};line-height:${fr};padding:0 calc((6 + (${hr} * 2 * ${cr})) * 1px)}`,Zh=Ls.compose({baseName:"tab-panel",template:(t,e)=>K`
`,styles:Qh}),Jh=Ps.compose({baseName:"tabs",template:(t,e)=>K`
${_t(0,e)}${Ot(t=>t.showActiveIndicator,K`
`)}
${Ut(0,e)}
`,styles:Kh}),td=(t,e)=>bt`
- ${Zs("inline-block")} :host{font-family:${sr};outline:none;user-select:none}.control{box-sizing:border-box;position:relative;color:${Cl};background:${el};border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid ${Ea};height:calc(${Al} * 2px);font:inherit;font-size:${mr};line-height:${fr};padding:calc(${hr} * 2px + 1px);width:100%;resize:none}.control:hover:enabled{background:${il};border-color:${Sa}}.control:active:enabled{background:${ol};border-color:${Oa}}.control:hover,.control:${Js},.control:disabled,.control:active{outline:none}:host(:focus-within) .control{border-color:${vl};box-shadow:0 0 0 1px ${vl} inset}:host([appearance="filled"]) .control{background:${Ya}}:host([appearance="filled"]:hover:not([disabled])) .control{background:${Qa}}:host([resize="both"]) .control{resize:both}:host([resize="horizontal"]) .control{resize:horizontal}:host([resize="vertical"]) .control{resize:vertical}.label{display:block;color:${Cl};cursor:pointer;font-size:${mr};line-height:${fr};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${ur}}:host([disabled]) .control{border-color:${Tl}}:host([cols]){width:initial}:host([rows]) .control{height:initial}`.withBehaviors(Ys(bt`
- :host([disabled]){opacity:1}`));class ed extends Bs{constructor(){super(...arguments),this.appearance="outline"}}Hl([st],ed.prototype,"appearance",void 0);const id=ed.compose({baseName:"text-area",baseClass:Bs,template:(t,e)=>K`
t.resize!==zs.none?"resize-"+t.resize:""}">`,styles:td,shadowOptions:{delegatesFocus:!0}}),od=(t,e)=>bt`
- ${Zs("inline-block")} :host{font-family:${sr};outline:none;user-select:none}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${Cl};background:${el};border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid ${Ea};height:calc(${Al} * 1px);align-items:baseline}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${hr} * 2px + 1px);font-size:${mr};line-height:${fr}}.control:hover,.control:${Js},.control:disabled,.control:active{outline:none}.label{display:block;color:${Cl};cursor:pointer;font-size:${mr};line-height:${fr};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.start,.control,.end{align-self:center}.start,.end{display:flex;margin:auto;fill:currentcolor}::slotted(svg){width:16px;height:16px}.start{margin-inline-start:11px}.end{margin-inline-end:11px}:host(:hover:not([disabled])) .root{background:${il};border-color:${Sa}}:host(:active:not([disabled])) .root{background:${il};border-color:${Oa}}:host(:focus-within:not([disabled])) .root{border-color:${vl};box-shadow:0 0 0 calc(${gr} * 1px) ${vl} inset}:host([appearance="filled"]) .root{background:${Ya}}:host([appearance="filled"]:hover:not([disabled])) .root{background:${Qa}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${ur}}:host([disabled]) .control{border-color:${Tl}}`.withBehaviors(Ys(bt`
- .root,:host([appearance="filled"]) .root{forced-color-adjust:none;background:${We.Field};border-color:${We.FieldText}}:host(:hover:not([disabled])) .root,:host([appearance="filled"]:hover:not([disabled])) .root,:host([appearance="filled"]:hover) .root{background:${We.Field};border-color:${We.Highlight}}.start,.end{fill:currentcolor}:host([disabled]){opacity:1}:host([disabled]) .root,:host([appearance="filled"]:hover[disabled]) .root{border-color:${We.GrayText};background:${We.Field}}:host(:focus-within:enabled) .root{border-color:${We.Highlight};box-shadow:0 0 0 1px ${We.Highlight} inset}input::placeholder{color:${We.GrayText}}`));class sd extends is{constructor(){super(...arguments),this.appearance="outline"}}Hl([st],sd.prototype,"appearance",void 0);const nd=sd.compose({baseName:"text-field",baseClass:is,template:(t,e)=>K`
${_t(0,e)}t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${St("control")} />${Ut(0,e)}
`,styles:od,shadowOptions:{delegatesFocus:!0}}),rd=(t,e)=>bt`
- ${Zs("inline-flex")} :host{--toolbar-item-gap:calc(
- (var(--design-unit) + calc(var(--density) + 2)) * 1px
- );background-color:${Ia};border-radius:calc(${lr} * 1px);fill:currentcolor;padding:var(--toolbar-item-gap)}:host(${Js}){outline:calc(${pr} * 1px) solid ${Sl}}.positioning-region{align-items:flex-start;display:inline-flex;flex-flow:row wrap;justify-content:flex-start}:host([orientation="vertical"]) .positioning-region{flex-direction:column}::slotted(:not([slot])){flex:0 0 auto;margin:0 var(--toolbar-item-gap)}:host([orientation="vertical"]) ::slotted(:not([slot])){margin:var(--toolbar-item-gap) 0}.start,.end{display:flex;margin:auto;margin-inline:0}::slotted(svg){width:16px;height:16px}`.withBehaviors(Ys(bt`
- :host(:${Js}){box-shadow:0 0 0 calc(${gr} * 1px) ${We.Highlight};color:${We.ButtonText};forced-color-adjust:none}`));class ad extends js{connectedCallback(){super.connectedCallback();const t=Xi(this);t&&Ia.setValueFor(this,e=>ml.getValueFor(e).evaluate(e,Ia.getValueFor(t)))}}const ld=ad.compose({baseName:"toolbar",baseClass:js,template:(t,e)=>K`
t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${_t(0,e)}${Ut(0,e)}
`,styles:rd,shadowOptions:{delegatesFocus:!0}}),cd=(t,e)=>{const i=t.tagFor(ei);return bt`
- :host{contain:size;overflow:visible;height:0;width:0}.tooltip{box-sizing:border-box;border-radius:calc(${lr} * 1px);border:calc(${pr} * 1px) solid ${vl};box-shadow:0 0 0 1px ${vl} inset;background:${Ya};color:${Cl};padding:4px;height:fit-content;width:fit-content;font-family:${sr};font-size:${mr};line-height:${fr};white-space:nowrap;z-index:10000}${i}{display:flex;justify-content:center;align-items:center;overflow:visible;flex-direction:row}${i}.right,${i}.left{flex-direction:column}${i}.top .tooltip{margin-bottom:4px}${i}.bottom .tooltip{margin-top:4px}${i}.left .tooltip{margin-right:4px}${i}.right .tooltip{margin-left:4px}${i}.top.left .tooltip,${i}.top.right .tooltip{margin-bottom:0px}${i}.bottom.left .tooltip,${i}.bottom.right .tooltip{margin-top:0px}${i}.top.left .tooltip,${i}.bottom.left .tooltip{margin-right:0px}${i}.top.right .tooltip,${i}.bottom.right .tooltip{margin-left:0px}`.withBehaviors(Ys(bt`
- :host([disabled]){opacity:1}`))},hd=_s.compose({baseName:"tooltip",template:(t,e)=>K` ${Ot(t=>t.tooltipVisible,K`<${t.tagFor(ei)} fixed-placement="true" auto-update-mode="${t=>t.autoUpdateMode}" vertical-positioning-mode="${t=>t.verticalPositioningMode}" vertical-default-position="${t=>t.verticalDefaultPosition}" vertical-inset="${t=>t.verticalInset}" vertical-scaling="${t=>t.verticalScaling}" horizontal-positioning-mode="${t=>t.horizontalPositioningMode}" horizontal-default-position="${t=>t.horizontalDefaultPosition}" horizontal-scaling="${t=>t.horizontalScaling}" horizontal-inset="${t=>t.horizontalInset}" vertical-viewport-lock="${t=>t.horizontalViewportLock}" horizontal-viewport-lock="${t=>t.verticalViewportLock}" dir="${t=>t.currentDirection}" ${St("region")}>
${t.tagFor(ei)}>`)} `,styles:cd}),dd=bt`
- .expand-collapse-glyph{transform:rotate(0deg)}:host(.nested) .expand-collapse-button{left:var(--expand-collapse-button-nested-width,calc(${Al} * -1px))}:host([selected])::after{left:calc(${gr} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform:rotate(45deg)}`,ud=bt`
- .expand-collapse-glyph{transform:rotate(180deg)}:host(.nested) .expand-collapse-button{right:var(--expand-collapse-button-nested-width,calc(${Al} * -1px))}:host([selected])::after{right:calc(${gr} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform:rotate(135deg)}`,pd=yt`((${nr} / 2) * ${hr}) + ((${hr} * ${cr}) / 2)`,gd=po.create("tree-item-expand-collapse-hover").withDefault(t=>{const e=nl.getValueFor(t);return e.evaluate(t,e.evaluate(t).hover).hover}),md=po.create("tree-item-expand-collapse-selected-hover").withDefault(t=>{const e=Xa.getValueFor(t);return nl.getValueFor(t).evaluate(t,e.evaluate(t).rest).hover}),fd=(t,e)=>bt`@keyframes treeItemLoading{0%{opacity:0}100%{opacity:1}}${Zs("block")} :host{contain:content;position:relative;outline:none;color:${Cl};background:${rl};cursor:pointer;font-family:${sr};--expand-collapse-button-size:calc(${Al} * 1px);--tree-item-nested-width:0}:host(:focus) > .positioning-region{outline:none}:host(:focus) .content-region{outline:none}:host(:${Js}) .positioning-region{border:${vl} calc(${pr} * 1px) solid;border-radius:calc(${lr} * 1px);color:${Cl}}.positioning-region{display:flex;position:relative;box-sizing:border-box;border:transparent calc(${pr} * 1px) solid;height:calc((${Al} + 1) * 1px)}.positioning-region::before{content:"";display:block;width:var(--tree-item-nested-width);flex-shrink:0}.positioning-region:hover{background:${al}}.positioning-region:active{background:${ll}}.content-region{display:inline-flex;align-items:center;white-space:nowrap;width:100%;height:calc(${Al} * 1px);margin-inline-start:calc(${hr} * 2px + 8px);font-size:${mr};line-height:${fr};font-weight:400}.items{font-size:calc(1em + (${hr} + 16) * 1px)}.expand-collapse-button{background:none;border:none;outline:none;width:calc((${pd} + (${hr} * 2)) * 1px);height:calc((${pd} + (${hr} * 2)) * 1px);padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;margin-left:6px;margin-right:6px}.expand-collapse-glyph{width:16px;height:16px;transition:transform 0.1s linear;pointer-events:none;fill:currentcolor}.start,.end{display:flex;fill:currentcolor}::slotted(svg){width:16px;height:16px}.start{margin-inline-end:calc(${hr} * 2px + 2px)}.end{margin-inline-start:calc(${hr} * 2px + 2px)}:host([expanded]) > .items{animation:treeItemLoading ease-in 10ms;animation-iteration-count:1;animation-fill-mode:forwards}:host([disabled]) .content-region{opacity:${ur};cursor:${"not-allowed"}}:host(.nested) .content-region{position:relative;margin-inline-start:var(--expand-collapse-button-size)}:host(.nested) .expand-collapse-button{position:absolute}:host(.nested) .expand-collapse-button:hover{background:${gd}}:host([selected]) .positioning-region{background:${Ya}}:host([selected]) .expand-collapse-button:hover{background:${md}}:host([selected])::after{background:${_a};border-radius:calc(${lr} * 1px);content:"";display:block;position:absolute;top:calc((${Al} / 4) * 1px);width:3px;height:calc((${Al} / 2) * 1px)}::slotted(${t.tagFor(Ws)}){--tree-item-nested-width:1em;--expand-collapse-button-nested-width:calc(${Al} * -1px)}`.withBehaviors(new Gl(dd,ud),Ys(bt`
- :host{forced-color-adjust:none;border-color:transparent;background:${We.Field};color:${We.FieldText}}:host .content-region .expand-collapse-glyph{fill:${We.FieldText}}:host .positioning-region:hover,:host([selected]) .positioning-region{background:${We.Highlight}}:host .positioning-region:hover .content-region,:host([selected]) .positioning-region .content-region{color:${We.HighlightText}}:host .positioning-region:hover .content-region .expand-collapse-glyph,:host .positioning-region:hover .content-region .start,:host .positioning-region:hover .content-region .end,:host([selected]) .content-region .expand-collapse-glyph,:host([selected]) .content-region .start,:host([selected]) .content-region .end{fill:${We.HighlightText}}:host([selected])::after{background:${We.Field}}:host(:${Js}) .positioning-region{border-color:${We.FieldText};box-shadow:0 0 0 2px inset ${We.Field};color:${We.FieldText}}:host([disabled]) .content-region,:host([disabled]) .positioning-region:hover .content-region{opacity:1;color:${We.GrayText}}:host([disabled]) .content-region .expand-collapse-glyph,:host([disabled]) .content-region .start,:host([disabled]) .content-region .end,:host([disabled]) .positioning-region:hover .content-region .expand-collapse-glyph,:host([disabled]) .positioning-region:hover .content-region .start,:host([disabled]) .positioning-region:hover .content-region .end{fill:${We.GrayText}}:host([disabled]) .positioning-region:hover{background:${We.Field}}.expand-collapse-glyph,.start,.end{fill:${We.FieldText}}:host(.nested) .expand-collapse-button:hover{background:${We.Field}}:host(.nested) .expand-collapse-button:hover .expand-collapse-glyph{fill:${We.FieldText}}`)),bd=Ws.compose({baseName:"tree-item",template:(t,e)=>K`
t.selected?"selected":""} ${t=>t.nested?"nested":""} ${t=>t.disabled?"disabled":""}" aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}" aria-selected="${t=>t.selected}" aria-disabled="${t=>t.disabled}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" ${jt({property:"childItems",filter:Pt()})}>${Ot(t=>t.childItems&&t.childItemLength()>0,K`
t.handleExpandCollapseButtonClick(e.event)}" ${St("expandCollapseButton")}>${e.expandCollapseGlyph||""}
`)} ${_t(0,e)}
${Ut(0,e)}
${Ot(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),K`
`)}`,styles:fd,expandCollapseGlyph:'\n
\n '}),vd=(t,e)=>bt`
- ${Zs("flex")} :host{flex-direction:column;align-items:stretch;min-width:fit-content;font-size:0}:host:focus-visible{outline:none}`,yd=Ks.compose({baseName:"tree-view",template:(t,e)=>K`
t.handleKeyDown(e.event)}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" @click="${(t,e)=>t.handleClick(e.event)}" @selected-change="${(t,e)=>t.handleSelectedChange(e.event)}">`,styles:vd}),xd={fastAccordion:Pl,fastAccordionItem:zl,fastAnchor:Ql,fastAnchoredRegion:Jl,fastAvatar:oc,fastBadge:nc,fastBreadcrumb:cc,fastBreadcrumbItem:ac,fastButton:uc,fastCalendar:gc,fastCard:bc,fastCheckbox:yc,fastCombobox:Cc,fastDataGrid:Oc,fastDataGridCell:Ec,fastDataGridRow:Sc,fastDesignSystemProvider:Pc,fastDialog:Mc,fastDisclosure:jc,fastDivider:Uc,fastFlipper:Gc,fastHorizontalScroll:Zc,fastListbox:ih,fastOption:th,fastMenu:rh,fastMenuItem:sh,fastNumberField:ch,fastPicker:gh,fastPickerList:bh,fastPickerListItem:vh,fastPickerMenu:mh,fastPickerMenuOption:fh,fastProgress:wh,fastProgressRing:xh,fastRadio:Th,fastRadioGroup:Ch,fastSearch:Dh,fastSelect:Ah,fastSkeleton:zh,fastSlider:_h,fastSliderLabel:Nh,fastSwitch:Wh,fastTabs:Jh,fastTab:Yh,fastTabPanel:Zh,fastTextArea:id,fastTextField:nd,fastTooltip:hd,fastToolbar:ld,fastTreeView:yd,fastTreeItem:bd,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};function $d(t){return yo.getOrCreate(t).withPrefix("fast")}const wd=$d().register(xd);export{Xe as Accordion,Ve as AccordionItem,Xc as ActionsStyles,Yl as Anchor,ei as AnchoredRegion,ec as Avatar,hi as Badge,ui as Breadcrumb,di as BreadcrumbItem,dc as Button,wi as Calendar,pc as CalendarStyles,fc as Card,Pi as Checkbox,kc as Combobox,Fi as DataGrid,Oi as DataGridCell,Ti as DataGridRow,Ac as DesignSystemProvider,Ro as Dialog,Gl as DirectionalStyleSheetBehavior,Nc as Disclosure,zo as Divider,wd as FASTDesignSystem,Po as Flipper,Qc as HorizontalScroll,eh as Listbox,Mi as ListboxOption,Zo as Menu,Qo as MenuItem,lh as NumberField,Wn as PaletteRGB,Ko as Picker,as as Progress,as as ProgressRing,ds as Radio,ls as RadioGroup,Oh as Search,Lh as Select,ws as Skeleton,Ss as Slider,Bh as SliderLabel,tr as StandardLuminance,jn as SwatchRGB,Rs as Switch,As as Tab,Ls as TabPanel,Ps as Tabs,ed as TextArea,sd as TextField,ad as Toolbar,_s as Tooltip,Ws as TreeItem,Ks as TreeView,da as accentColor,Oa as accentFillActive,Vr as accentFillActiveDelta,Da as accentFillFocus,zr as accentFillFocusDelta,Sa as accentFillHover,Ar as accentFillHoverDelta,Fa as accentFillRecipe,Ea as accentFillRest,Lr as accentFillRestDelta,Wa as accentForegroundActive,Mr as accentForegroundActiveDelta,Ka as accentForegroundFocus,Br as accentForegroundFocusDelta,Ga as accentForegroundHover,Hr as accentForegroundHoverDelta,Ua as accentForegroundRecipe,_a as accentForegroundRest,Pr as accentForegroundRestDelta,ua as accentPalette,Vl as accordionItemStyles,Ll as accordionStyles,xd as allComponents,Xl as anchorStyles,Zl as anchoredRegionStyles,tc as avatarStyles,sc as badgeStyles,nr as baseHeightMultiplier,rr as baseHorizontalSpacingMultiplier,ar as baseLayerLuminance,sr as bodyFont,rc as breadcrumbItemStyles,lc as breadcrumbStyles,hc as buttonStyles,mc as cardStyles,vc as checkboxStyles,wc as comboboxStyles,lr as controlCornerRadius,Fc as dataGridCellStyles,Tc as dataGridRowStyles,Ic as dataGridStyles,cr as density,zc as designSystemProviderStyles,Vc as designSystemProviderTemplate,hr as designUnit,Hc as dialogStyles,dr as direction,ur as disabledOpacity,Bc as disclosureStyles,qc as dividerStyles,Pl as fastAccordion,zl as fastAccordionItem,Ql as fastAnchor,Jl as fastAnchoredRegion,oc as fastAvatar,nc as fastBadge,cc as fastBreadcrumb,ac as fastBreadcrumbItem,uc as fastButton,gc as fastCalendar,bc as fastCard,yc as fastCheckbox,Cc as fastCombobox,Oc as fastDataGrid,Ec as fastDataGridCell,Sc as fastDataGridRow,Pc as fastDesignSystemProvider,Mc as fastDialog,jc as fastDisclosure,Uc as fastDivider,Gc as fastFlipper,Zc as fastHorizontalScroll,ih as fastListbox,rh as fastMenu,sh as fastMenuItem,ch as fastNumberField,th as fastOption,gh as fastPicker,bh as fastPickerList,vh as fastPickerListItem,mh as fastPickerMenu,fh as fastPickerMenuOption,wh as fastProgress,xh as fastProgressRing,Th as fastRadio,Ch as fastRadioGroup,Dh as fastSearch,Ah as fastSelect,zh as fastSkeleton,_h as fastSlider,Nh as fastSliderLabel,Wh as fastSwitch,Yh as fastTab,Zh as fastTabPanel,Jh as fastTabs,id as fastTextArea,nd as fastTextField,ld as fastToolbar,hd as fastTooltip,bd as fastTreeItem,yd as fastTreeView,Ia as fillColor,_c as flipperStyles,xl as focusStrokeInner,yl as focusStrokeInnerRecipe,vl as focusStrokeOuter,bl as focusStrokeOuterRecipe,gr as focusStrokeWidth,za as foregroundOnAccentActive,Na as foregroundOnAccentActiveLarge,Pa as foregroundOnAccentFocus,ja as foregroundOnAccentFocusLarge,Va as foregroundOnAccentHover,Ba as foregroundOnAccentHoverLarge,Ha as foregroundOnAccentLargeRecipe,La as foregroundOnAccentRecipe,Aa as foregroundOnAccentRest,Ma as foregroundOnAccentRestLarge,Rl as heightNumberAsToken,Yc as horizontalScrollStyles,Ph as horizontalSliderLabelStyles,ic as imgTemplate,_n as isDark,xc as listboxStyles,oh as menuItemStyles,nh as menuStyles,ca as neutralColor,Za as neutralFillActive,qr as neutralFillActiveDelta,Ja as neutralFillFocus,Ur as neutralFillFocusDelta,Qa as neutralFillHover,jr as neutralFillHoverDelta,ol as neutralFillInputActive,Wr as neutralFillInputActiveDelta,sl as neutralFillInputFocus,Kr as neutralFillInputFocusDelta,il as neutralFillInputHover,Gr as neutralFillInputHoverDelta,tl as neutralFillInputRecipe,el as neutralFillInputRest,_r as neutralFillInputRestDelta,ml as neutralFillLayerRecipe,fl as neutralFillLayerRest,oa as neutralFillLayerRestDelta,Xa as neutralFillRecipe,Ya as neutralFillRest,Nr as neutralFillRestDelta,ll as neutralFillStealthActive,Qr as neutralFillStealthActiveDelta,cl as neutralFillStealthFocus,Zr as neutralFillStealthFocusDelta,al as neutralFillStealthHover,Yr as neutralFillStealthHoverDelta,nl as neutralFillStealthRecipe,rl as neutralFillStealthRest,Xr as neutralFillStealthRestDelta,pl as neutralFillStrongActive,ea as neutralFillStrongActiveDelta,gl as neutralFillStrongFocus,ia as neutralFillStrongFocusDelta,ul as neutralFillStrongHover,ta as neutralFillStrongHoverDelta,hl as neutralFillStrongRecipe,dl as neutralFillStrongRest,Jr as neutralFillStrongRestDelta,wl as neutralForegroundHint,$l as neutralForegroundHintRecipe,kl as neutralForegroundRecipe,Cl as neutralForegroundRest,va as neutralLayer1,ba as neutralLayer1Recipe,xa as neutralLayer2,ya as neutralLayer2Recipe,wa as neutralLayer3,$a as neutralLayer3Recipe,Ca as neutralLayer4,ka as neutralLayer4Recipe,ga as neutralLayerCardContainer,pa as neutralLayerCardContainerRecipe,fa as neutralLayerFloating,ma as neutralLayerFloatingRecipe,ha as neutralPalette,El as neutralStrokeActive,ra as neutralStrokeActiveDelta,Ol as neutralStrokeDividerRecipe,Dl as neutralStrokeDividerRest,la as neutralStrokeDividerRestDelta,Sl as neutralStrokeFocus,aa as neutralStrokeFocusDelta,Fl as neutralStrokeHover,na as neutralStrokeHoverDelta,Il as neutralStrokeRecipe,Tl as neutralStrokeRest,sa as neutralStrokeRestDelta,ah as numberFieldStyles,Jc as optionStyles,ph as pickerListItemStyles,uh as pickerMenuOptionStyles,dh as pickerMenuStyles,hh as pickerStyles,yh as progressRingStyles,$h as progressStyles,$d as provideFASTDesignSystem,kh as radioGroupStyles,Ih as radioStyles,Rh as searchStyles,$c as selectStyles,Vh as skeletonStyles,Mh as sliderLabelStyles,Uh as sliderStyles,pr as strokeWidth,Gh as switchStyles,Qh as tabPanelStyles,Xh as tabStyles,Kh as tabsStyles,td as textAreaStyles,od as textFieldStyles,rd as toolbarStyles,cd as tooltipStyles,fd as treeItemStyles,vd as treeViewStyles,mr as typeRampBaseFontSize,fr as typeRampBaseLineHeight,br as typeRampMinus1FontSize,vr as typeRampMinus1LineHeight,yr as typeRampMinus2FontSize,xr as typeRampMinus2LineHeight,$r as typeRampPlus1FontSize,wr as typeRampPlus1LineHeight,kr as typeRampPlus2FontSize,Cr as typeRampPlus2LineHeight,Ir as typeRampPlus3FontSize,Tr as typeRampPlus3LineHeight,Fr as typeRampPlus4FontSize,Er as typeRampPlus4LineHeight,Sr as typeRampPlus5FontSize,Or as typeRampPlus5LineHeight,Dr as typeRampPlus6FontSize,Rr as typeRampPlus6LineHeight,Hh as verticalSliderLabelStyles};