@und-ui/core 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cdn/all.js CHANGED
@@ -1,4 +1,4 @@
1
- import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as T,k as S,l as bs,n as mt}from"./chunks/E4ULE3CZ.js";var gs=new Set;function C(n,e){globalThis.undUiDevMode!==!1&&(gs.has(n)||(gs.add(n),console.warn(`[und-ui] ${e}`)))}var p=class extends fs{static tagName="";static referenceTarget=void 0;#e;static define(e=this.tagName){let t=globalThis.customElements;if(!e||!t)return;let i=t.get(e);if(i){i!==this&&C(`define:${e}`,`<${e}> is already defined by another constructor; skipping.`);return}t.define(e,this)}get internals(){return this.#e??=this.attachInternals(),this.#e}setCustomState(e,t){if(!1)return;let i=this.internals.states;if(i)try{t?i.add(e):i.delete(e)}catch{}}emit(e,t,i={}){return this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,cancelable:!1,...i,detail:t}))}createRenderRoot(){let e=super.createRenderRoot(),t=this.constructor.referenceTarget;return t&&e instanceof ShadowRoot&&"referenceTarget"in e&&(e.referenceTarget=t),e}};var vs=new Map,xs=new Map;function cl(n){let e=ms();if(!e?.body)return;let t=vs.get(n);if(t?.isConnected)return t;let i=e.createElement("div");return i.setAttribute("data-und-live-region",n),i.setAttribute("aria-live",n),i.setAttribute("aria-atomic","true"),i.setAttribute("role",n==="assertive"?"alert":"status"),i.style.cssText="position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap",e.body.append(i),vs.set(n,i),i}function N(n,e={}){if(!1)return Promise.resolve();let t=e.politeness??"polite",i=cl(t);if(!i)return Promise.resolve();i.textContent="";let r=xs.get(t);return r!==void 0&&clearTimeout(r),new Promise(s=>{setTimeout(()=>{i.textContent=n;let o=e.clearAfter??7e3;o>0&&xs.set(t,setTimeout(()=>{i.textContent=""},o)),s()},50)})}var ul=["http","https","mailto","tel"],hl=["http","https","blob"],pl=new Set(["javascript","vbscript"]),fl=/^([a-z][a-z\d+.-]*):/i;var ml=new Set;function ys(n){let e=n.replace(/[\t\n\r]/g,"").replace(/^[\u0000- ]+/,""),t=fl.exec(e);return t?{scheme:(t[1]??"").toLowerCase(),rest:e.slice(t[0].length)}:{scheme:"",rest:e}}function ks(n,e){return pl.has(n)?!1:e.includes(n)||ml.has(n)}function M(n){if(n==null)return;let{scheme:e}=ys(n);return e===""||ks(e,ul)?n:void 0}function ve(n){if(n==null)return;let{scheme:e,rest:t}=ys(n);if(e===""||ks(e,hl)||e==="data"&&/^image\//i.test(t))return n}var bl=new Set(["","_self","_parent","_top"]);function gl(n){return!bl.has((n??"").toLowerCase())}function H(n,e){let t=new Set((e??"").split(/\s+/).filter(Boolean));return gl(n)&&(t.add("noopener"),t.add("noreferrer")),t.size>0?[...t].join(" "):void 0}var Rn="data-und-press",vl="data-und-pressable";var ws=0,qt,$s;function Ut(){clearTimeout($s),qt?.removeAttribute(Rn),qt=void 0}function _s(n){if(n.pointerType!=="touch")return;Ut();let e=n.composedPath().find(t=>t instanceof Element&&t.hasAttribute(vl));!e||e.matches(':disabled, [aria-disabled="true"]')||(qt=e,e.setAttribute(Rn,"on"))}function zs(){let n=qt;n&&(n.setAttribute(Rn,"fading"),$s=setTimeout(()=>{qt===n&&Ut()},160))}function Ss(){ws++===0&&(document.addEventListener("pointerdown",_s,{capture:!0,passive:!0}),document.addEventListener("pointerup",zs,{capture:!0,passive:!0}),document.addEventListener("pointercancel",Ut,{capture:!0,passive:!0}));let n=!1;return()=>{n||(n=!0,--ws===0&&(document.removeEventListener("pointerdown",_s,{capture:!0}),document.removeEventListener("pointerup",zs,{capture:!0}),document.removeEventListener("pointercancel",Ut,{capture:!0}),Ut()))}}var bt=u` @layer und.components{:host{display:inline-flex;vertical-align:middle}:host([full-width]){display:flex}:host([hidden]){display:none}.button{--_t-solid:var(--und-accent-solid,#504bf2);--_t-solid-hover:var(--und-accent-solid-hover,#473de4);--_t-on:var(--und-fg-on-accent,#fff);--_t-text:var(--und-accent-fg,#4b4dd5);--_t-subtle:var(--und-accent-bg,#eff2fe);--_t-subtle-hover:var(--und-accent-bg-hover,#e5eafc);--_t-border:var(--und-accent-border,#bcc7f9);--_solid:var(--und-button-tone,var(--_t-solid));--_solid-hover:var(--und-button-tone-hover,var(--_t-solid-hover));--_on:var(--und-button-on-tone,var(--_t-on));--_text:var(--und-button-tone-text,var(--_t-text));--_subtle:var(--und-button-tone-subtle,var(--_t-subtle));--_subtle-hover:var(--und-button-tone-subtle-hover,var(--_t-subtle-hover));--_tone-border:var(--und-button-tone-border,var(--_t-border));--_n-bg:var(--und-bg-muted,#f1f2f6);--_n-fg:var(--und-fg-default,#23252c);--_bg:var(--_n-bg);--_bg-hover:var(--und-bg-muted-hover,#e9eaef);--_fg:var(--_n-fg);--_border:transparent;--_border-hover:transparent;--_height:var(--und-button-height,var(--und-size-element-md,2rem));position:relative;box-sizing:border-box;display:inline-flex;flex:1 1 auto;gap:var(--und-button-gap,var(--und-space-2,0.5rem));align-items:center;justify-content:center;min-block-size:var(--_height);min-inline-size:var(--und-size-target-fine,24px);margin:0;padding-block:0;padding-inline:var(--und-button-padding-inline,0.75rem);border:var(--und-border-width-thin,1px) solid var(--_border);border-radius:var( --und-button-radius,var(--und-radius-element,var(--und-shape-control,0.5rem)) );background-color:var(--_bg);color:var(--_fg);font:inherit;font-size:var(--und-button-font-size,0.875rem);font-weight:var(--und-button-font-weight,var(--und-font-weight-medium,500));line-height:1.4286;text-align:center;text-decoration:none;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;transition:background-color var(--und-motion-hover,130ms) var(--und-motion-ease-enter,ease),border-color var(--und-motion-hover,130ms) var(--und-motion-ease-enter,ease),color var(--und-motion-hover,130ms) var(--und-motion-ease-enter,ease),transform var(--und-motion-press,90ms) var(--und-motion-ease-enter,ease)}.button:not(:where(:disabled,[aria-disabled='true'])):hover{background-color:var(--_bg-hover);border-color:var(--_border-hover)}.button::after{content:'';position:absolute;inset:calc(var(--und-border-width-thin,1px) * -1);border-radius:inherit;background:var( --und-overlay-pressed,color-mix(in srgb,var(--und-fg-default,#23252c) 12%,transparent) );opacity:0;pointer-events:none;transition:opacity var(--und-motion-hover-out,175ms) var(--und-motion-ease-exit,ease)}@media (pointer:fine){.button:not(:where(:disabled,[aria-disabled='true'])):active{transform:scale(var(--und-motion-press-scale,0.97))}.button:not(:where(:disabled,[aria-disabled='true'])):active::after{opacity:1;transition:none}}@media (pointer:coarse){.button[data-und-press='on']::after{opacity:1;transition:none}}.button:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:var(--und-focus-offset,2px)}:host([tone='neutral']) .button{--_t-solid:var(--und-bg-inverse,#23252c);--_t-solid-hover:color-mix( in oklab,var(--und-bg-inverse,#23252c) 85%,var(--und-bg-canvas,#fcfdfe) );--_t-on:var(--und-fg-inverse,#fcfdfe);--_t-text:var(--und-fg-default,#23252c);--_t-subtle:var(--und-bg-muted,#f1f2f6);--_t-subtle-hover:var(--und-bg-muted-hover,#e9eaef);--_t-border:var(--und-border-default,#c8c9d1)}:host([tone='danger']) .button{--_t-solid:var(--und-status-danger-solid,#dd1d2c);--_t-solid-hover:var(--und-status-danger-solid-hover,#cd0221);--_t-on:var(--und-status-danger-on-solid,#fff);--_t-text:var(--und-status-danger-fg,#b81e27);--_t-subtle:var(--und-status-danger-bg,#fdefed);--_t-subtle-hover:var(--und-status-danger-bg-hover,#fae5e2);--_t-border:var(--und-status-danger-border,#f2bab4)}:host([tone='success']) .button{--_t-solid:var(--und-status-success-solid,#018241);--_t-solid-hover:var(--und-status-success-solid-hover,#037439);--_t-on:var(--und-status-success-on-solid,#fff);--_t-text:var(--und-status-success-fg,#03793c);--_t-subtle:var(--und-status-success-bg,#edf5ef);--_t-subtle-hover:var(--und-status-success-bg-hover,#e2eee5);--_t-border:var(--und-status-success-border,#b4d3bb)}:host([tone='warning']) .button{--_t-solid:var(--und-status-warning-solid,#f9b306);--_t-solid-hover:var(--und-status-warning-solid-hover,#e9a703);--_t-on:var(--und-status-warning-on-solid,#332201);--_t-text:var(--und-status-warning-fg,#835d02);--_t-subtle:var(--und-status-warning-bg,#f7f2ea);--_t-subtle-hover:var(--und-status-warning-bg-hover,#f1e9dd);--_t-border:var(--und-status-warning-border,#dcc7a5)}.button:disabled,.button[aria-disabled='true']:not([aria-busy='true']){--_n-bg:var(--und-bg-muted,#f1f2f6);--_n-fg:var(--und-fg-disabled,#b2b4bd);--_solid:var(--und-bg-muted,#f1f2f6);--_solid-hover:var(--und-bg-muted,#f1f2f6);--_on:var(--und-fg-disabled,#b2b4bd);--_text:var(--und-fg-disabled,#b2b4bd);--_subtle:var(--und-bg-muted,#f1f2f6);--_tone-border:var(--und-border-subtle,#d6d8dd);cursor:not-allowed}:host([variant='soft']) .button{--_bg:var(--_subtle);--_bg-hover:var(--_subtle-hover);--_fg:var(--_text);--_border:transparent;--_border-hover:transparent}:host([variant='outline']) .button{--_bg:transparent;--_bg-hover:var(--_subtle);--_fg:var(--_text);--_border:var(--_tone-border);--_border-hover:var(--_tone-border)}:host([variant='solid']) .button,:host([variant='primary']) .button,:host([variant='destructive']) .button{--_bg:var(--_solid);--_bg-hover:var(--_solid-hover);--_fg:var(--_on);--_border:var(--_solid);--_border-hover:var(--_solid-hover)}:host([variant='destructive']) .button{--_solid:var(--und-button-tone,var(--und-status-danger-solid,#dd1d2c));--_solid-hover:var(--und-button-tone-hover,var(--und-status-danger-solid-hover,#cd0221));--_on:var(--und-button-on-tone,var(--und-status-danger-on-solid,#fff))}:host([variant='ghost']) .button,:host([variant='link']) .button{--_bg:transparent;--_bg-hover:var(--_subtle);--_fg:var(--_text);--_border:transparent;--_border-hover:transparent}:host([variant='link']) .button{--_bg-hover:transparent;min-block-size:var(--und-size-target-fine,24px);padding-inline:0;text-decoration:underline;text-underline-offset:0.2em}:host([variant='link']) .button:hover{text-decoration-thickness:2px}:host .button[aria-pressed='true']{--_bg:var(--_solid-hover);--_bg-hover:var(--_solid-hover);--_fg:var(--_on);--_border:var(--_solid-hover);--_border-hover:var(--_solid-hover);box-shadow:inset 0 2px 4px rgb(0 0 0 / 30%)}:host([size='sm']) .button{--_height:var(--und-button-height-sm,var(--und-size-element-sm,1.75rem));padding-inline:var(--und-button-padding-inline-sm,0.625rem);font-size:var(--und-button-font-size-sm,0.8125rem)}:host([size='lg']) .button{--_height:var(--und-button-height-lg,var(--und-size-element-lg,2.25rem));padding-inline:var(--und-button-padding-inline-lg,1rem);font-size:var(--und-button-font-size-lg,0.9375rem)}.button[aria-busy='true']{cursor:progress}.spinner{inline-size:1em;block-size:1em;border:2px solid currentcolor;border-inline-end-color:transparent;border-radius:50%;animation:und-button-spin var(--und-motion-spinner,800ms) linear infinite}@keyframes und-button-spin{to{transform:rotate(1turn)}}@keyframes und-button-pulse{50%{opacity:0.35}}@media (prefers-reduced-motion:reduce){.button{transition:none}.button:not(:where(:disabled,[aria-disabled='true'])):active{transform:none}.button::after{transition:none}.spinner{animation:und-button-pulse var(--und-motion-spinner,1600ms) ease-in-out infinite}}@media (pointer:coarse){.button{min-block-size:max(var(--_height),var(--und-size-target-touch,44px))}}@media (forced-colors:active){.button::after{display:none}.button{border-color:ButtonText}.button:focus-visible{outline-color:Highlight}:host(:is([variant='solid'],[variant='primary'],[variant='destructive'])) .button:not( :disabled,[aria-disabled='true']:not([aria-busy='true']),[aria-pressed='true'] ){forced-color-adjust:none;border-color:ButtonText;background-color:ButtonText;color:ButtonFace}.button:disabled,.button[aria-disabled='true']:not([aria-busy='true']){border-color:GrayText;color:GrayText}.button[aria-pressed='true'],.button[aria-pressed='true']:hover{forced-color-adjust:none;border-color:Highlight;background-color:Highlight;color:HighlightText}}}
1
+ import{a as ge,b as u,c as l,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as T,k as S,l as bs,n as mt}from"./chunks/E4ULE3CZ.js";var gs=new Set;function C(n,e){globalThis.undUiDevMode!==!1&&(gs.has(n)||(gs.add(n),console.warn(`[und-ui] ${e}`)))}var p=class extends fs{static tagName="";static referenceTarget=void 0;#e;static define(e=this.tagName){let t=globalThis.customElements;if(!e||!t)return;let i=t.get(e);if(i){i!==this&&C(`define:${e}`,`<${e}> is already defined by another constructor; skipping.`);return}t.define(e,this)}get internals(){return this.#e??=this.attachInternals(),this.#e}setCustomState(e,t){if(!1)return;let i=this.internals.states;if(i)try{t?i.add(e):i.delete(e)}catch{}}emit(e,t,i={}){return this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,cancelable:!1,...i,detail:t}))}createRenderRoot(){let e=super.createRenderRoot(),t=this.constructor.referenceTarget;return t&&e instanceof ShadowRoot&&"referenceTarget"in e&&(e.referenceTarget=t),e}};var vs=new Map,xs=new Map;function cl(n){let e=ms();if(!e?.body)return;let t=vs.get(n);if(t?.isConnected)return t;let i=e.createElement("div");return i.setAttribute("data-und-live-region",n),i.setAttribute("aria-live",n),i.setAttribute("aria-atomic","true"),i.setAttribute("role",n==="assertive"?"alert":"status"),i.style.cssText="position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap",e.body.append(i),vs.set(n,i),i}function N(n,e={}){if(!1)return Promise.resolve();let t=e.politeness??"polite",i=cl(t);if(!i)return Promise.resolve();i.textContent="";let r=xs.get(t);return r!==void 0&&clearTimeout(r),new Promise(s=>{setTimeout(()=>{i.textContent=n;let o=e.clearAfter??7e3;o>0&&xs.set(t,setTimeout(()=>{i.textContent=""},o)),s()},50)})}var ul=["http","https","mailto","tel"],hl=["http","https","blob"],pl=new Set(["javascript","vbscript"]),fl=/^([a-z][a-z\d+.-]*):/i;var ml=new Set;function ys(n){let e=n.replace(/[\t\n\r]/g,"").replace(/^[\u0000- ]+/,""),t=fl.exec(e);return t?{scheme:(t[1]??"").toLowerCase(),rest:e.slice(t[0].length)}:{scheme:"",rest:e}}function ks(n,e){return pl.has(n)?!1:e.includes(n)||ml.has(n)}function M(n){if(n==null)return;let{scheme:e}=ys(n);return e===""||ks(e,ul)?n:void 0}function ve(n){if(n==null)return;let{scheme:e,rest:t}=ys(n);if(e===""||ks(e,hl)||e==="data"&&/^image\//i.test(t))return n}var bl=new Set(["","_self","_parent","_top"]);function gl(n){return!bl.has((n??"").toLowerCase())}function H(n,e){let t=new Set((e??"").split(/\s+/).filter(Boolean));return gl(n)&&(t.add("noopener"),t.add("noreferrer")),t.size>0?[...t].join(" "):void 0}var Rn="data-und-press",vl="data-und-pressable";var ws=0,qt,$s;function Ut(){clearTimeout($s),qt?.removeAttribute(Rn),qt=void 0}function _s(n){if(n.pointerType!=="touch")return;Ut();let e=n.composedPath().find(t=>t instanceof Element&&t.hasAttribute(vl));!e||e.matches(':disabled, [aria-disabled="true"]')||(qt=e,e.setAttribute(Rn,"on"))}function zs(){let n=qt;n&&(n.setAttribute(Rn,"fading"),$s=setTimeout(()=>{qt===n&&Ut()},160))}function Ss(){ws++===0&&(document.addEventListener("pointerdown",_s,{capture:!0,passive:!0}),document.addEventListener("pointerup",zs,{capture:!0,passive:!0}),document.addEventListener("pointercancel",Ut,{capture:!0,passive:!0}));let n=!1;return()=>{n||(n=!0,--ws===0&&(document.removeEventListener("pointerdown",_s,{capture:!0}),document.removeEventListener("pointerup",zs,{capture:!0}),document.removeEventListener("pointercancel",Ut,{capture:!0}),Ut()))}}var bt=u` @layer und.components{:host{display:inline-flex;vertical-align:middle}:host([full-width]){display:flex}:host([hidden]){display:none}.button{--_t-solid:var(--und-accent-solid,#504bf2);--_t-solid-hover:var(--und-accent-solid-hover,#473de4);--_t-on:var(--und-fg-on-accent,#fff);--_t-text:var(--und-accent-fg,#4b4dd5);--_t-subtle:var(--und-accent-bg,#eff2fe);--_t-subtle-hover:var(--und-accent-bg-hover,#e5eafc);--_t-border:var(--und-accent-border,#bcc7f9);--_solid:var(--und-button-tone,var(--_t-solid));--_solid-hover:var(--und-button-tone-hover,var(--_t-solid-hover));--_on:var(--und-button-on-tone,var(--_t-on));--_text:var(--und-button-tone-text,var(--_t-text));--_subtle:var(--und-button-tone-subtle,var(--_t-subtle));--_subtle-hover:var(--und-button-tone-subtle-hover,var(--_t-subtle-hover));--_tone-border:var(--und-button-tone-border,var(--_t-border));--_n-bg:var(--und-bg-muted,#f1f2f6);--_n-fg:var(--und-fg-default,#23252c);--_bg:var(--_n-bg);--_bg-hover:var(--und-bg-muted-hover,#e9eaef);--_fg:var(--_n-fg);--_border:transparent;--_border-hover:transparent;--_height:var(--und-button-height,var(--und-size-element-md,2rem));position:relative;box-sizing:border-box;display:inline-flex;flex:1 1 auto;gap:var(--und-button-gap,var(--und-space-2,0.5rem));align-items:center;justify-content:center;min-block-size:var(--_height);min-inline-size:var(--und-size-target-fine,24px);margin:0;padding-block:0;padding-inline:var(--und-button-padding-inline,0.75rem);border:var(--und-border-width-thin,1px) solid var(--_border);border-radius:var( --und-button-radius,var(--und-radius-element,var(--und-shape-control,0.5rem)) );background-color:var(--_bg);color:var(--_fg);font:inherit;font-size:var(--und-button-font-size,0.875rem);font-weight:var(--und-button-font-weight,var(--und-font-weight-medium,500));line-height:1.4286;text-align:center;text-decoration:none;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;transition:background-color var(--und-motion-hover,130ms) var(--und-motion-ease-enter,ease),border-color var(--und-motion-hover,130ms) var(--und-motion-ease-enter,ease),color var(--und-motion-hover,130ms) var(--und-motion-ease-enter,ease),transform var(--und-motion-press,90ms) var(--und-motion-ease-enter,ease)}.button:not(:where(:disabled,[aria-disabled='true'])):hover{background-color:var(--_bg-hover);border-color:var(--_border-hover)}.button::after{content:'';position:absolute;inset:calc(var(--und-border-width-thin,1px) * -1);border-radius:inherit;background:var( --und-overlay-pressed,color-mix(in srgb,var(--und-fg-default,#23252c) 12%,transparent) );opacity:0;pointer-events:none;transition:opacity var(--und-motion-hover-out,175ms) var(--und-motion-ease-exit,ease)}@media (pointer:fine){.button:not(:where(:disabled,[aria-disabled='true'])):active{transform:scale(var(--und-motion-press-scale,0.97))}.button:not(:where(:disabled,[aria-disabled='true'])):active::after{opacity:1;transition:none}}@media (pointer:coarse){.button[data-und-press='on']::after{opacity:1;transition:none}}.button:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:var(--und-focus-offset,2px)}:host([tone='neutral']) .button{--_t-solid:var(--und-bg-inverse,#23252c);--_t-solid-hover:color-mix( in oklab,var(--und-bg-inverse,#23252c) 85%,var(--und-bg-canvas,#fcfdfe) );--_t-on:var(--und-fg-inverse,#fcfdfe);--_t-text:var(--und-fg-default,#23252c);--_t-subtle:var(--und-bg-muted,#f1f2f6);--_t-subtle-hover:var(--und-bg-muted-hover,#e9eaef);--_t-border:var(--und-border-default,#c8c9d1)}:host([tone='danger']) .button{--_t-solid:var(--und-status-danger-solid,#dd1d2c);--_t-solid-hover:var(--und-status-danger-solid-hover,#cd0221);--_t-on:var(--und-status-danger-on-solid,#fff);--_t-text:var(--und-status-danger-fg,#b81e27);--_t-subtle:var(--und-status-danger-bg,#fdefed);--_t-subtle-hover:var(--und-status-danger-bg-hover,#fae5e2);--_t-border:var(--und-status-danger-border,#f2bab4)}:host([tone='success']) .button{--_t-solid:var(--und-status-success-solid,#018241);--_t-solid-hover:var(--und-status-success-solid-hover,#037439);--_t-on:var(--und-status-success-on-solid,#fff);--_t-text:var(--und-status-success-fg,#03793c);--_t-subtle:var(--und-status-success-bg,#edf5ef);--_t-subtle-hover:var(--und-status-success-bg-hover,#e2eee5);--_t-border:var(--und-status-success-border,#b4d3bb)}:host([tone='warning']) .button{--_t-solid:var(--und-status-warning-solid,#f9b306);--_t-solid-hover:var(--und-status-warning-solid-hover,#e9a703);--_t-on:var(--und-status-warning-on-solid,#332201);--_t-text:var(--und-status-warning-fg,#835d02);--_t-subtle:var(--und-status-warning-bg,#f7f2ea);--_t-subtle-hover:var(--und-status-warning-bg-hover,#f1e9dd);--_t-border:var(--und-status-warning-border,#dcc7a5)}.button:disabled,.button[aria-disabled='true']:not([aria-busy='true']){--_n-bg:var(--und-bg-muted,#f1f2f6);--_n-fg:var(--und-fg-disabled,#b2b4bd);--_solid:var(--und-bg-muted,#f1f2f6);--_solid-hover:var(--und-bg-muted,#f1f2f6);--_on:var(--und-fg-disabled,#b2b4bd);--_text:var(--und-fg-disabled,#b2b4bd);--_subtle:var(--und-bg-muted,#f1f2f6);--_tone-border:var(--und-border-subtle,#d6d8dd);cursor:not-allowed}:host([variant='soft']) .button{--_bg:var(--_subtle);--_bg-hover:var(--_subtle-hover);--_fg:var(--_text);--_border:transparent;--_border-hover:transparent}:host([variant='outline']) .button{--_bg:transparent;--_bg-hover:var(--_subtle);--_fg:var(--_text);--_border:var(--_tone-border);--_border-hover:var(--_tone-border)}:host([variant='solid']) .button,:host([variant='primary']) .button,:host([variant='destructive']) .button{--_bg:var(--_solid);--_bg-hover:var(--_solid-hover);--_fg:var(--_on);--_border:var(--_solid);--_border-hover:var(--_solid-hover)}:host([variant='destructive']) .button{--_solid:var(--und-button-tone,var(--und-status-danger-solid,#dd1d2c));--_solid-hover:var(--und-button-tone-hover,var(--und-status-danger-solid-hover,#cd0221));--_on:var(--und-button-on-tone,var(--und-status-danger-on-solid,#fff))}:host([variant='ghost']) .button,:host([variant='link']) .button{--_bg:transparent;--_bg-hover:var(--_subtle);--_fg:var(--_text);--_border:transparent;--_border-hover:transparent}:host([variant='link']) .button{--_bg-hover:transparent;min-block-size:var(--und-size-target-fine,24px);padding-inline:0;text-decoration:underline;text-underline-offset:0.2em}:host([variant='link']) .button:hover{text-decoration-thickness:2px}:host .button[aria-pressed='true']{--_bg:var(--_solid-hover);--_bg-hover:var(--_solid-hover);--_fg:var(--_on);--_border:var(--_solid-hover);--_border-hover:var(--_solid-hover);box-shadow:inset 0 2px 4px rgb(0 0 0 / 30%)}:host([size='sm']) .button{--_height:var(--und-button-height-sm,var(--und-size-element-sm,1.75rem));padding-inline:var(--und-button-padding-inline-sm,0.625rem);font-size:var(--und-button-font-size-sm,0.8125rem)}:host([size='lg']) .button{--_height:var(--und-button-height-lg,var(--und-size-element-lg,2.25rem));padding-inline:var(--und-button-padding-inline-lg,1rem);font-size:var(--und-button-font-size-lg,0.9375rem)}.button[aria-busy='true']{cursor:progress}.spinner{inline-size:1em;block-size:1em;border:2px solid currentcolor;border-inline-end-color:transparent;border-radius:50%;animation:und-button-spin var(--und-motion-spinner,800ms) linear infinite}@keyframes und-button-spin{to{transform:rotate(1turn)}}@keyframes und-button-pulse{50%{opacity:0.35}}@media (prefers-reduced-motion:reduce){.button{transition:none}.button:not(:where(:disabled,[aria-disabled='true'])):active{transform:none}.button::after{transition:none}.spinner{animation:und-button-pulse var(--und-motion-spinner,1600ms) ease-in-out infinite}}@media (pointer:coarse){.button{min-block-size:max(var(--_height),var(--und-size-target-touch,44px))}}@media (forced-colors:active){.button::after{display:none}.button{border-color:ButtonText}.button:focus-visible{outline-color:Highlight}:host(:is([variant='solid'],[variant='primary'],[variant='destructive'])) .button:not( :disabled,[aria-disabled='true']:not([aria-busy='true']),[aria-pressed='true'] ){forced-color-adjust:none;border-color:ButtonText;background-color:ButtonText;color:ButtonFace}.button:disabled,.button[aria-disabled='true']:not([aria-busy='true']){border-color:GrayText;color:GrayText}.button[aria-pressed='true'],.button[aria-pressed='true']:hover{forced-color-adjust:none;border-color:Highlight;background-color:Highlight;color:HighlightText}}}
2
2
 
3
3
 
4
4
 
@@ -352,7 +352,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
352
352
 
353
353
 
354
354
 
355
- `;var Ue=class extends p{static tagName="und-button";static define(e){super.define(e),mt()}static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static referenceTarget="control";static styles=bt;static properties={variant:{reflect:!0},tone:{reflect:!0},size:{reflect:!0},type:{reflect:!0},disabled:{type:Boolean,reflect:!0},disabledFocusable:{type:Boolean,reflect:!0,attribute:"disabled-focusable"},loading:{type:Boolean,reflect:!0},loadingLabel:{attribute:"loading-label"},label:{},name:{reflect:!0},value:{reflect:!0},fullWidth:{type:Boolean,reflect:!0,attribute:"full-width"},toggle:{type:Boolean,reflect:!0},pressed:{type:Boolean,reflect:!0},href:{},target:{},rel:{},download:{},command:{},commandFor:{attribute:"commandfor"}};#e=!1;constructor(){super(),this.variant="secondary",this.tone="primary",this.size="md",this.type="button",this.disabled=!1,this.disabledFocusable=!1,this.loading=!1,this.fullWidth=!1,this.toggle=!1,this.pressed=!1}#t;connectedCallback(){super.connectedCallback(),this.#t=Ss()}disconnectedCallback(){super.disconnectedCallback(),this.#t?.(),this.#t=void 0}get form(){return this.internals.form}click(){this.#s()?.click()}formDisabledCallback(e){this.#e=e&&!this.hasAttribute("disabled"),this.requestUpdate()}updated(e){if(e.has("disabled")){let t=!this.hasAttribute("disabled")&&this.matches(":disabled");t!==this.#e&&(this.#e=t,this.requestUpdate())}e.has("loading")&&this.loading&&e.get("loading")!==void 0&&this.loadingLabel&&N(this.loadingLabel),e.has("href")&&this.href!=null&&M(this.href)===void 0&&C(`unsafe-href:${this.localName}`,`<${this.localName}> ignored an unsafe href.`),this.setCustomState("loading",this.loading),this.setCustomState("pressed",this.#i&&this.pressed),this.#o()}get#i(){return this.toggle||this.pressed}get#r(){return this.disabled||this.#e}get#n(){return this.#r||this.disabledFocusable||this.loading}#s(){return this.renderRoot.querySelector("#control")}#o(){let e=this.#s();if(!(e instanceof HTMLButtonElement))return;let t=this.getRootNode(),i=this.command&&this.commandFor&&!this.#n?t.getElementById?.(this.commandFor)??null:null;bs(e,i)}#d=e=>{if(this.#n){e.preventDefault(),e.stopImmediatePropagation();return}this.href===void 0&&(this.#i&&this.#a(),this.command?this.#o():this.type==="submit"?this.#l():this.type==="reset"&&this.internals.form?.reset())};#a(){let e=!this.pressed;this.emit("und-pressed-change",{pressed:e},{cancelable:!0})&&(this.pressed=e)}#l(){let e=this.internals.form;if(!e)return;let t=document.createElement("button");t.type="submit",t.hidden=!0,this.name&&(t.name=this.name,t.value=this.value??""),e.append(t);try{e.requestSubmit(t)}finally{t.remove()}}#c(){return a`<slot name="start"></slot><slot></slot><slot name="end"></slot>${this.loading?a`<span part="spinner" class="spinner" aria-hidden="true"></span>`:c}`}#u(){let e=this.#r,t=e||this.disabledFocusable?void 0:M(this.href),i=t!==void 0;return a`<a
355
+ `;var Ue=class extends p{static tagName="und-button";static define(e){super.define(e),mt()}static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static referenceTarget="control";static styles=bt;static properties={variant:{reflect:!0},tone:{reflect:!0},size:{reflect:!0},type:{reflect:!0},disabled:{type:Boolean,reflect:!0},disabledFocusable:{type:Boolean,reflect:!0,attribute:"disabled-focusable"},loading:{type:Boolean,reflect:!0},loadingLabel:{attribute:"loading-label"},label:{},name:{reflect:!0},value:{reflect:!0},fullWidth:{type:Boolean,reflect:!0,attribute:"full-width"},toggle:{type:Boolean,reflect:!0},pressed:{type:Boolean,reflect:!0},href:{},target:{},rel:{},download:{},command:{},commandFor:{attribute:"commandfor"}};#e=!1;constructor(){super(),this.variant="secondary",this.tone="primary",this.size="md",this.type="button",this.disabled=!1,this.disabledFocusable=!1,this.loading=!1,this.fullWidth=!1,this.toggle=!1,this.pressed=!1}#t;connectedCallback(){super.connectedCallback(),this.#t=Ss()}disconnectedCallback(){super.disconnectedCallback(),this.#t?.(),this.#t=void 0}get form(){return this.internals.form}click(){this.#s()?.click()}formDisabledCallback(e){this.#e=e&&!this.hasAttribute("disabled"),this.requestUpdate()}updated(e){if(e.has("disabled")){let t=!this.hasAttribute("disabled")&&this.matches(":disabled");t!==this.#e&&(this.#e=t,this.requestUpdate())}e.has("loading")&&this.loading&&e.get("loading")!==void 0&&this.loadingLabel&&N(this.loadingLabel),e.has("href")&&this.href!=null&&M(this.href)===void 0&&C(`unsafe-href:${this.localName}`,`<${this.localName}> ignored an unsafe href.`),this.setCustomState("loading",this.loading),this.setCustomState("pressed",this.#i&&this.pressed),this.#o()}get#i(){return this.toggle||this.pressed}get#r(){return this.disabled||this.#e}get#n(){return this.#r||this.disabledFocusable||this.loading}#s(){return this.renderRoot.querySelector("#control")}#o(){let e=this.#s();if(!(e instanceof HTMLButtonElement))return;let t=this.getRootNode(),i=this.command&&this.commandFor&&!this.#n?t.getElementById?.(this.commandFor)??null:null;bs(e,i)}#d=e=>{if(this.#n){e.preventDefault(),e.stopImmediatePropagation();return}this.href===void 0&&(this.#i&&this.#a(),this.command?this.#o():this.type==="submit"?this.#l():this.type==="reset"&&this.internals.form?.reset())};#a(){let e=!this.pressed;this.emit("und-pressed-change",{pressed:e},{cancelable:!0})&&(this.pressed=e)}#l(){let e=this.internals.form;if(!e)return;let t=document.createElement("button");t.type="submit",t.hidden=!0,this.name&&(t.name=this.name,t.value=this.value??""),e.append(t);try{e.requestSubmit(t)}finally{t.remove()}}#c(){return l`<slot name="start"></slot><slot></slot><slot name="end"></slot>${this.loading?l`<span part="spinner" class="spinner" aria-hidden="true"></span>`:c}`}#u(){let e=this.#r,t=e||this.disabledFocusable?void 0:M(this.href),i=t!==void 0;return l`<a
356
356
  id="control"
357
357
  part="base"
358
358
  class="button"
@@ -368,7 +368,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
368
368
  aria-label=${this.label||c}
369
369
  @click=${this.#d}
370
370
  >${this.#c()}</a
371
- >`}render(){if(this.href!==void 0)return this.#u();let e=this.#n;return a`<button
371
+ >`}render(){if(this.href!==void 0)return this.#u();let e=this.#n;return l`<button
372
372
  id="control"
373
373
  part="base"
374
374
  class="button"
@@ -383,7 +383,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
383
383
  @click=${this.#d}
384
384
  >
385
385
  ${this.#c()}
386
- </button>`}};Ue.define();var Xt=[],P=class{#e;#t;#i=!1;constructor(e,t){this.#e=e,this.#t=t,e.addController(this)}get active(){return this.#i}get isTopLayer(){return Xt.at(-1)===this}activate(){this.#i||!1||(this.#i=!0,Xt.push(this),document.addEventListener("keydown",this.#r,!0),document.addEventListener("pointerdown",this.#n,!0))}deactivate(){if(!this.#i)return;this.#i=!1;let e=Xt.indexOf(this);e!==-1&&Xt.splice(e,1),document.removeEventListener("keydown",this.#r,!0),document.removeEventListener("pointerdown",this.#n,!0)}hostDisconnected(){this.deactivate()}#r=e=>{e.key!=="Escape"||e.isComposing||!this.isTopLayer||(e.stopPropagation(),e.preventDefault(),this.#t.onDismiss("escape",e))};#n=e=>{if(this.#t.dismissOnOutsidePointer===!1||!this.isTopLayer)return;let t=e.composedPath()[0];!(t instanceof Node)||[this.#e,...this.#t.getInsideElements?.()??[]].some(r=>r&&S(r,t))||this.#t.onDismiss("outside-pointer",e)}};var xl='a[href], area[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), iframe, audio[controls], video[controls], summary, [contenteditable]:not([contenteditable="false"]), [tabindex]';function yl(n){return!(n instanceof HTMLElement)||!n.matches(xl)||n.tabIndex<0||n.hasAttribute("inert")||n.closest("[inert]")?!1:typeof n.checkVisibility=="function"?n.checkVisibility():!0}function Un(n){let e=[],t=i=>{if(yl(i)&&((i.shadowRoot?.delegatesFocus??!1)||e.push(i)),i.shadowRoot){for(let r of i.shadowRoot.children)t(r);return}if(i instanceof HTMLSlotElement){for(let r of i.assignedElements({flatten:!0}))t(r);return}for(let r of i.children)t(r)};for(let i of n.children)t(i);return e}var Qt={fromAttribute:n=>n!=="false",toAttribute:n=>n?"":"false"},Zt=0,Cs="",qn="";function Ls(){let n=document.documentElement;if(Zt===0){Cs=n.style.overflow,qn=n.style.getPropertyValue("scrollbar-gutter");let t=window.innerWidth>n.clientWidth;n.style.overflow="hidden",t&&n.style.setProperty("scrollbar-gutter","stable")}Zt+=1;let e=!1;return()=>{e||(e=!0,Zt-=1,Zt===0&&(n.style.overflow=Cs,qn?n.style.setProperty("scrollbar-gutter",qn):n.style.removeProperty("scrollbar-gutter")))}}function K(n,e){n.hasAttribute("role")||n.setAttribute("role",e)}function G(n,e,t){t===null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function xe(n,e,t){e?n.setAttribute("aria-label",e):t&&n.removeAttribute("aria-label")}async function qe(n){await new Promise(i=>setTimeout(i));let e=0,t=(n.getAnimations?.({subtree:!0})??[]).filter(i=>{let r=Number(i.effect?.getComputedTiming().endTime??0);return Number.isFinite(r)?(e=Math.max(e,r-Number(i.currentTime??0)),!0):!1});t.length!==0&&await Promise.race([Promise.allSettled(t.map(i=>i.finished)),new Promise(i=>setTimeout(i,e+100))])}function Oe(n){let e=n.constructor.referenceTarget;return e&&n.shadowRoot?.getElementById(e)||n}function Es(n,e,t,i){if(n.getRootNode()===i.getRootNode()&&i.id){let o=(n.getAttribute(e)??"").split(/\s+/).filter(Boolean);return o.includes(i.id)||n.setAttribute(e,[...o,i.id].join(" ")),()=>{let l=(n.getAttribute(e)??"").split(/\s+/).filter(d=>d&&d!==i.id);l.length>0?n.setAttribute(e,l.join(" ")):n.removeAttribute(e)}}let r=n;if(!(t in r))return()=>{};let s=r[t]??[];return r[t]=[...s.filter(o=>o!==i),i],()=>{let o=(r[t]??[]).filter(l=>l!==i);r[t]=o.length>0?o:null}}function He(n,e){return e?n.getRootNode().getElementById?.(e)??null:null}var Jt=n=>n.command??"",gt=new Set,On=new Set;function ei(n,e){if(e!==gt.has(n)){e?gt.add(n):gt.delete(n);for(let t of On)t()}}function ti(){for(let n of gt)n.isConnected||gt.delete(n);if(gt.size>0)return!0;try{return document.querySelector("dialog:modal")!==null}catch{return!1}}function As(n){let e=t=>{t.target instanceof HTMLDialogElement&&n()};return On.add(n),document.addEventListener("toggle",e,!0),document.addEventListener("close",e,!0),()=>{On.delete(n),document.removeEventListener("toggle",e,!0),document.removeEventListener("close",e,!0)}}var ye=u` @layer und.components{:host{display:contents}:host([hidden]){display:none}.dialog{--_enter:min( calc(var(--und-motion-dialog-enter,310ms) * 100),var(--und-duration-medium-max,550ms) );--_exit:var(--und-motion-dialog-exit,217ms);--_spatial:var(--und-motion-spatial,1);--_shift:calc(16px * var(--_spatial));--_scale:calc(1 - 0.05 * var(--_spatial));--_width:25rem;box-sizing:border-box;display:flex;flex-direction:column;inline-size:min(var(--und-dialog-width,var(--_width)),calc(100vw - 2rem));max-inline-size:calc(100vw - 2rem);max-block-size:min(var(--und-dialog-max-height,75dvh),calc(100dvh - 2rem));margin:auto;padding:0;overflow:hidden;border:0 solid transparent;border-radius:var(--und-dialog-radius,var(--und-radius-container,12px));background:var(--und-bg-surface,#fff);color:var(--und-fg-default,#1b1d26);box-shadow:var(--und-shadow-3,0 4px 8px #13151f0f,0 12px 24px #13151f1f);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;opacity:1;transform:none;transition:opacity var(--_enter) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1)),transform var(--_enter) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}.dialog:not([open]){display:none;opacity:0;transform:translateY(var(--_shift)) scale(var(--_scale))}@starting-style{.dialog[open]{opacity:0;transform:translateY(var(--_shift)) scale(var(--_scale))}}.dialog::backdrop{background:var(--und-bg-overlay,#0b0d1673);opacity:1;transition:opacity var(--und-motion-scrim,175ms) linear}@starting-style{.dialog[open]::backdrop{opacity:0}}@supports (overlay:auto){.dialog:not([open]){transition:opacity var(--_exit) var(--und-motion-ease-exit,cubic-bezier(0.3,0,0.6,0.6)),transform var(--_exit) var(--und-motion-ease-exit,cubic-bezier(0.3,0,0.6,0.6)),display var(--_exit) allow-discrete,overlay var(--_exit) allow-discrete}.dialog:not([open])::backdrop{opacity:0;transition:opacity var(--_exit) linear,display var(--_exit) allow-discrete,overlay var(--_exit) allow-discrete}}:host([size='sm']) .dialog{--_width:20rem}:host([size='lg']) .dialog{--_width:40rem}:host([size='full']) .dialog{--_spatial:0;inline-size:100vw;max-inline-size:100vw;block-size:100dvh;max-block-size:100dvh;padding-block:env(safe-area-inset-top,0) env(safe-area-inset-bottom,0);padding-inline:env(safe-area-inset-left,0) env(safe-area-inset-right,0);border:0;border-radius:0}.header{display:flex;gap:var(--und-space-3,0.75rem);align-items:start;padding-block:calc(var(--und-space-3,0.75rem) - 2px) 0;padding-inline:var(--und-space-4,1rem)}:host([variant='alert']) .header{padding-block-start:var(--und-space-4,1rem)}.title{flex:1 1 auto;min-inline-size:0;margin:0;font-size:1.25rem;font-weight:var(--und-font-weight-semibold,600);line-height:1.75rem}.description{margin:0;padding-inline:var(--und-space-4,1rem);color:var(--und-fg-muted,#4b5060)}.body{flex:1 1 auto;min-block-size:0;padding-block:var(--und-space-2,0.5rem) 0;padding-inline:var(--und-space-4,1rem);overflow:auto;overscroll-behavior:contain}.body:has(+ [hidden]){padding-block-end:var(--und-space-4,1rem)}:host([variant='alert']) .body{padding-block-start:0}.footer{display:flex;flex-wrap:wrap;gap:var(--und-space-2,0.5rem);align-items:center;justify-content:flex-end;padding:var(--und-space-4,1rem)}[hidden]{display:none}.close{display:inline-grid;flex:none;place-items:center;inline-size:2rem;block-size:var(--und-size-element-md,2rem);margin-block:-2px;margin-inline-end:calc(-1 * var(--und-space-2,0.5rem));padding:0;border:0;border-radius:var(--und-radius-element,8px);background:transparent;color:var(--und-fg-default,#1b1d26);cursor:pointer}.close:hover{background:var(--und-bg-muted,#eef0f5)}.close:active{background:var(--und-bg-hover,#e4e6ee)}.close:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}.close svg{inline-size:1.125rem;block-size:1.125rem}@media (pointer:coarse){.close{inline-size:var(--und-target-min-coarse,44px);block-size:var(--und-target-min-coarse,44px);margin-block:-8px}}@media (max-width:40rem){:host([variant='alert']) .footer{flex-direction:column;align-items:stretch}}@media (prefers-reduced-motion:reduce){.dialog{--_enter:var(--und-motion-crossfade,0ms);--_exit:var(--und-motion-crossfade,0ms);--_spatial:0}}@media (forced-colors:active){.dialog{border:1px solid CanvasText}:host([size='full']) .dialog{border:0}.close:focus-visible{outline-color:Highlight}}}
386
+ </button>`}};Ue.define();var Xt=[],P=class{#e;#t;#i=!1;constructor(e,t){this.#e=e,this.#t=t,e.addController(this)}get active(){return this.#i}get isTopLayer(){return Xt.at(-1)===this}activate(){this.#i||!1||(this.#i=!0,Xt.push(this),document.addEventListener("keydown",this.#r,!0),document.addEventListener("pointerdown",this.#n,!0))}deactivate(){if(!this.#i)return;this.#i=!1;let e=Xt.indexOf(this);e!==-1&&Xt.splice(e,1),document.removeEventListener("keydown",this.#r,!0),document.removeEventListener("pointerdown",this.#n,!0)}hostDisconnected(){this.deactivate()}#r=e=>{e.key!=="Escape"||e.isComposing||!this.isTopLayer||(e.stopPropagation(),e.preventDefault(),this.#t.onDismiss("escape",e))};#n=e=>{if(this.#t.dismissOnOutsidePointer===!1||!this.isTopLayer)return;let t=e.composedPath()[0];!(t instanceof Node)||[this.#e,...this.#t.getInsideElements?.()??[]].some(r=>r&&S(r,t))||this.#t.onDismiss("outside-pointer",e)}};var xl='a[href], area[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), iframe, audio[controls], video[controls], summary, [contenteditable]:not([contenteditable="false"]), [tabindex]';function yl(n){return!(n instanceof HTMLElement)||!n.matches(xl)||n.tabIndex<0||n.hasAttribute("inert")||n.closest("[inert]")?!1:typeof n.checkVisibility=="function"?n.checkVisibility():!0}function Un(n){let e=[],t=i=>{if(yl(i)&&((i.shadowRoot?.delegatesFocus??!1)||e.push(i)),i.shadowRoot){for(let r of i.shadowRoot.children)t(r);return}if(i instanceof HTMLSlotElement){for(let r of i.assignedElements({flatten:!0}))t(r);return}for(let r of i.children)t(r)};for(let i of n.children)t(i);return e}var Qt={fromAttribute:n=>n!=="false",toAttribute:n=>n?"":"false"},Zt=0,Cs="",qn="";function Ls(){let n=document.documentElement;if(Zt===0){Cs=n.style.overflow,qn=n.style.getPropertyValue("scrollbar-gutter");let t=window.innerWidth>n.clientWidth;n.style.overflow="hidden",t&&n.style.setProperty("scrollbar-gutter","stable")}Zt+=1;let e=!1;return()=>{e||(e=!0,Zt-=1,Zt===0&&(n.style.overflow=Cs,qn?n.style.setProperty("scrollbar-gutter",qn):n.style.removeProperty("scrollbar-gutter")))}}function K(n,e){n.hasAttribute("role")||n.setAttribute("role",e)}function G(n,e,t){t===null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function xe(n,e,t){e?n.setAttribute("aria-label",e):t&&n.removeAttribute("aria-label")}async function qe(n){await new Promise(i=>setTimeout(i));let e=0,t=(n.getAnimations?.({subtree:!0})??[]).filter(i=>{let r=Number(i.effect?.getComputedTiming().endTime??0);return Number.isFinite(r)?(e=Math.max(e,r-Number(i.currentTime??0)),!0):!1});t.length!==0&&await Promise.race([Promise.allSettled(t.map(i=>i.finished)),new Promise(i=>setTimeout(i,e+100))])}function Oe(n){let e=n.constructor.referenceTarget;return e&&n.shadowRoot?.getElementById(e)||n}function Es(n,e,t,i){if(n.getRootNode()===i.getRootNode()&&i.id){let o=(n.getAttribute(e)??"").split(/\s+/).filter(Boolean);return o.includes(i.id)||n.setAttribute(e,[...o,i.id].join(" ")),()=>{let a=(n.getAttribute(e)??"").split(/\s+/).filter(d=>d&&d!==i.id);a.length>0?n.setAttribute(e,a.join(" ")):n.removeAttribute(e)}}let r=n;if(!(t in r))return()=>{};let s=r[t]??[];return r[t]=[...s.filter(o=>o!==i),i],()=>{let o=(r[t]??[]).filter(a=>a!==i);r[t]=o.length>0?o:null}}function He(n,e){return e?n.getRootNode().getElementById?.(e)??null:null}var Jt=n=>n.command??"",gt=new Set,On=new Set;function ei(n,e){if(e!==gt.has(n)){e?gt.add(n):gt.delete(n);for(let t of On)t()}}function ti(){for(let n of gt)n.isConnected||gt.delete(n);if(gt.size>0)return!0;try{return document.querySelector("dialog:modal")!==null}catch{return!1}}function As(n){let e=t=>{t.target instanceof HTMLDialogElement&&n()};return On.add(n),document.addEventListener("toggle",e,!0),document.addEventListener("close",e,!0),()=>{On.delete(n),document.removeEventListener("toggle",e,!0),document.removeEventListener("close",e,!0)}}var ye=u` @layer und.components{:host{display:contents}:host([hidden]){display:none}.dialog{--_enter:min( calc(var(--und-motion-dialog-enter,310ms) * 100),var(--und-duration-medium-max,550ms) );--_exit:var(--und-motion-dialog-exit,217ms);--_spatial:var(--und-motion-spatial,1);--_shift:calc(16px * var(--_spatial));--_scale:calc(1 - 0.05 * var(--_spatial));--_width:25rem;box-sizing:border-box;display:flex;flex-direction:column;inline-size:min(var(--und-dialog-width,var(--_width)),calc(100vw - 2rem));max-inline-size:calc(100vw - 2rem);max-block-size:min(var(--und-dialog-max-height,75dvh),calc(100dvh - 2rem));margin:auto;padding:0;overflow:hidden;border:0 solid transparent;border-radius:var(--und-dialog-radius,var(--und-radius-container,12px));background:var(--und-bg-surface,#fff);color:var(--und-fg-default,#1b1d26);box-shadow:var(--und-shadow-3,0 4px 8px #13151f0f,0 12px 24px #13151f1f);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;opacity:1;transform:none;transition:opacity var(--_enter) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1)),transform var(--_enter) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}.dialog:not([open]){display:none;opacity:0;transform:translateY(var(--_shift)) scale(var(--_scale))}@starting-style{.dialog[open]{opacity:0;transform:translateY(var(--_shift)) scale(var(--_scale))}}.dialog::backdrop{background:var(--und-bg-overlay,#0b0d1673);opacity:1;transition:opacity var(--und-motion-scrim,175ms) linear}@starting-style{.dialog[open]::backdrop{opacity:0}}@supports (overlay:auto){.dialog:not([open]){transition:opacity var(--_exit) var(--und-motion-ease-exit,cubic-bezier(0.3,0,0.6,0.6)),transform var(--_exit) var(--und-motion-ease-exit,cubic-bezier(0.3,0,0.6,0.6)),display var(--_exit) allow-discrete,overlay var(--_exit) allow-discrete}.dialog:not([open])::backdrop{opacity:0;transition:opacity var(--_exit) linear,display var(--_exit) allow-discrete,overlay var(--_exit) allow-discrete}}:host([size='sm']) .dialog{--_width:20rem}:host([size='lg']) .dialog{--_width:40rem}:host([size='full']) .dialog{--_spatial:0;inline-size:100vw;max-inline-size:100vw;block-size:100dvh;max-block-size:100dvh;padding-block:env(safe-area-inset-top,0) env(safe-area-inset-bottom,0);padding-inline:env(safe-area-inset-left,0) env(safe-area-inset-right,0);border:0;border-radius:0}.header{display:flex;gap:var(--und-space-3,0.75rem);align-items:start;padding-block:calc(var(--und-space-3,0.75rem) - 2px) 0;padding-inline:var(--und-space-4,1rem)}:host([variant='alert']) .header{padding-block-start:var(--und-space-4,1rem)}.title{flex:1 1 auto;min-inline-size:0;margin:0;font-size:1.25rem;font-weight:var(--und-font-weight-semibold,600);line-height:1.75rem}.description{margin:0;padding-inline:var(--und-space-4,1rem);color:var(--und-fg-muted,#4b5060)}.body{flex:1 1 auto;min-block-size:0;padding-block:var(--und-space-2,0.5rem) 0;padding-inline:var(--und-space-4,1rem);overflow:auto;overscroll-behavior:contain}.body:has(+ [hidden]){padding-block-end:var(--und-space-4,1rem)}:host([variant='alert']) .body{padding-block-start:0}.footer{display:flex;flex-wrap:wrap;gap:var(--und-space-2,0.5rem);align-items:center;justify-content:flex-end;padding:var(--und-space-4,1rem)}[hidden]{display:none}.close{display:inline-grid;flex:none;place-items:center;inline-size:2rem;block-size:var(--und-size-element-md,2rem);margin-block:-2px;margin-inline-end:calc(-1 * var(--und-space-2,0.5rem));padding:0;border:0;border-radius:var(--und-radius-element,8px);background:transparent;color:var(--und-fg-default,#1b1d26);cursor:pointer}.close:hover{background:var(--und-bg-muted,#eef0f5)}.close:active{background:var(--und-bg-hover,#e4e6ee)}.close:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}.close svg{inline-size:1.125rem;block-size:1.125rem}@media (pointer:coarse){.close{inline-size:var(--und-target-min-coarse,44px);block-size:var(--und-target-min-coarse,44px);margin-block:-8px}}@media (max-width:40rem){:host([variant='alert']) .footer{flex-direction:column;align-items:stretch}}@media (prefers-reduced-motion:reduce){.dialog{--_enter:var(--und-motion-crossfade,0ms);--_exit:var(--und-motion-crossfade,0ms);--_spatial:0}}@media (forced-colors:active){.dialog{border:1px solid CanvasText}:host([size='full']) .dialog{border:0}.close:focus-visible{outline-color:Highlight}}}
387
387
 
388
388
 
389
389
 
@@ -620,7 +620,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
620
620
 
621
621
 
622
622
 
623
- `;var Ts=new Set(["--und-open","show-modal"]),kl=new Set(["--und-close","close","request-close"]),ie=class extends p{static tagName="und-dialog";static define(e){super.define(e),mt()}static styles=ye;static properties={open:{type:Boolean,reflect:!0},modal:{converter:Qt},variant:{reflect:!0},size:{reflect:!0},closedBy:{attribute:"closedby"},label:{},description:{},initialFocus:{attribute:"initial-focus"},closeLabel:{attribute:"close-label"},noCloseButton:{type:Boolean,attribute:"no-close-button"}};returnValue="";#e;#t=null;#i=null;#r;#n=!1;#s=!1;#o=!1;constructor(){super();let e=this;this.#e=new P(this,{onDismiss:t=>{t==="escape"?this.#a!=="none"&&this.requestOpen(!1,"escape"):this.#a==="any"&&this.requestOpen(!1,"outside")},get dismissOnOutsidePointer(){return!e.modal}}),this.open=!1,this.modal=!0,this.variant="default",this.size="md",this.closeLabel="Close",this.noCloseButton=!1}get#d(){return this.#s||!!this.description}get#a(){return this.closedBy??(this.variant==="alert"?"closerequest":"any")}get dialog(){return this.renderRoot.querySelector("dialog")}show(){this.open=!0}close(e){e!==void 0&&(this.returnValue=e),this.open=!1}connectedCallback(){super.connectedCallback(),!!1&&(this.addEventListener("command",this.#h),this.addEventListener("submit",this.#p))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("command",this.#h),this.removeEventListener("submit",this.#p),this.#r?.(),this.#r=void 0,ei(this,!1)}updated(e){e.has("open")&&this.#l()}requestOpen(e,t){if(e===this.open)return;this.emit("und-open-change",{open:e,reason:t},{cancelable:!0})&&(this.open=e)}async#l(){let e=this.dialog;if(e)if(this.open&&!e.open){let t=T();this.#t=t instanceof HTMLElement&&t!==document.body?t:this.#i,this.#i=null,this.modal&&e.isConnected?(e.showModal(),this.#r??=Ls(),ei(this,!0)):e.show(),this.#e.activate(),this.setCustomState("open",!0),this.#u(e),await qe(e),this.open&&this.emit("und-after-open")}else!this.open&&e.open&&(e.close(this.returnValue),this.#c(),await qe(e),this.open||this.emit("und-after-close"))}#c(){ei(this,!1),this.#e.deactivate(),this.#r?.(),this.#r=void 0,this.setCustomState("open",!1);let e=this.#t;this.#t=null;let t=T(),i=!t||t===document.body||S(this,t);e?.isConnected&&i&&e.focus()}#u(e){let t=this.initialFocus,i=(t?this.querySelector(t):null)??this.querySelector("[autofocus]");if(!i){let r=this.renderRoot.querySelector(".close"),s=Un(e);i=s.find(o=>o!==r)??s[0]??null}(i??this.renderRoot.querySelector("#title"))?.focus()}#h=e=>{let t=Jt(e),i=e.source;(Ts.has(t)||t==="--und-toggle"&&!this.open)&&i instanceof HTMLElement&&(this.#i=i),Ts.has(t)?this.requestOpen(!0,"command"):kl.has(t)?this.requestOpen(!1,"command"):t==="--und-toggle"&&this.requestOpen(!this.open,"command")};#p=e=>{let t=e.target;if(e.defaultPrevented||!(t instanceof HTMLFormElement)||t.method!=="dialog"||t.closest(this.localName)!==this)return;e.preventDefault();let i=e.submitter,r=this.returnValue;this.returnValue=i?.value??"",this.requestOpen(!1,"form"),this.open&&(this.returnValue=r)};#f=e=>{if(e.key!=="Tab"||e.altKey||e.ctrlKey||e.metaKey||!this.modal)return;let t=this.dialog;if(!t)return;let i=Un(t),r=i[0],s=i.at(-1),o=T();!r||!s||(e.shiftKey?o===r||o===t:o===s)&&(e.preventDefault(),(e.shiftKey?s:r).focus())};#m=e=>{e.preventDefault(),this.#e.isTopLayer&&this.#a!=="none"&&this.requestOpen(!1,"escape")};#b=()=>{this.open&&!this.dialog?.open&&(this.open=!1,this.#c())};#g(e){let t=this.dialog;if(!t||e.target!==t)return!1;let i=t.getBoundingClientRect();return e.clientX<i.left||e.clientX>i.right||e.clientY<i.top||e.clientY>i.bottom}#v=e=>{this.#n=this.#g(e)};#x=e=>{let t=this.#n&&this.#g(e);this.#n=!1,t&&this.modal&&this.#a==="any"&&this.requestOpen(!1,"backdrop")};#y=e=>{let t=e.target,i=t.assignedNodes({flatten:!0}).some(r=>r.nodeType===Node.ELEMENT_NODE||r.textContent?.trim());t.name==="description"?this.#s=i:t.name==="footer"&&(this.#o=i),this.requestUpdate()};renderCloseButton(){return this.noCloseButton||this.variant==="alert"?c:a`<button
623
+ `;var Ts=new Set(["--und-open","show-modal"]),kl=new Set(["--und-close","close","request-close"]),ie=class extends p{static tagName="und-dialog";static define(e){super.define(e),mt()}static styles=ye;static properties={open:{type:Boolean,reflect:!0},modal:{converter:Qt},variant:{reflect:!0},size:{reflect:!0},closedBy:{attribute:"closedby"},label:{},description:{},initialFocus:{attribute:"initial-focus"},closeLabel:{attribute:"close-label"},noCloseButton:{type:Boolean,attribute:"no-close-button"}};returnValue="";#e;#t=null;#i=null;#r;#n=!1;#s=!1;#o=!1;constructor(){super();let e=this;this.#e=new P(this,{onDismiss:t=>{t==="escape"?this.#a!=="none"&&this.requestOpen(!1,"escape"):this.#a==="any"&&this.requestOpen(!1,"outside")},get dismissOnOutsidePointer(){return!e.modal}}),this.open=!1,this.modal=!0,this.variant="default",this.size="md",this.closeLabel="Close",this.noCloseButton=!1}get#d(){return this.#s||!!this.description}get#a(){return this.closedBy??(this.variant==="alert"?"closerequest":"any")}get dialog(){return this.renderRoot.querySelector("dialog")}show(){this.open=!0}close(e){e!==void 0&&(this.returnValue=e),this.open=!1}connectedCallback(){super.connectedCallback(),!!1&&(this.addEventListener("command",this.#h),this.addEventListener("submit",this.#p))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("command",this.#h),this.removeEventListener("submit",this.#p),this.#r?.(),this.#r=void 0,ei(this,!1)}updated(e){e.has("open")&&this.#l()}requestOpen(e,t){if(e===this.open)return;this.emit("und-open-change",{open:e,reason:t},{cancelable:!0})&&(this.open=e)}async#l(){let e=this.dialog;if(e)if(this.open&&!e.open){let t=T();this.#t=t instanceof HTMLElement&&t!==document.body?t:this.#i,this.#i=null,this.modal&&e.isConnected?(e.showModal(),this.#r??=Ls(),ei(this,!0)):e.show(),this.#e.activate(),this.setCustomState("open",!0),this.#u(e),await qe(e),this.open&&this.emit("und-after-open")}else!this.open&&e.open&&(e.close(this.returnValue),this.#c(),await qe(e),this.open||this.emit("und-after-close"))}#c(){ei(this,!1),this.#e.deactivate(),this.#r?.(),this.#r=void 0,this.setCustomState("open",!1);let e=this.#t;this.#t=null;let t=T(),i=!t||t===document.body||S(this,t);e?.isConnected&&i&&e.focus()}#u(e){let t=this.initialFocus,i=(t?this.querySelector(t):null)??this.querySelector("[autofocus]");if(!i){let r=this.renderRoot.querySelector(".close"),s=Un(e);i=s.find(o=>o!==r)??s[0]??null}(i??this.renderRoot.querySelector("#title"))?.focus()}#h=e=>{let t=Jt(e),i=e.source;(Ts.has(t)||t==="--und-toggle"&&!this.open)&&i instanceof HTMLElement&&(this.#i=i),Ts.has(t)?this.requestOpen(!0,"command"):kl.has(t)?this.requestOpen(!1,"command"):t==="--und-toggle"&&this.requestOpen(!this.open,"command")};#p=e=>{let t=e.target;if(e.defaultPrevented||!(t instanceof HTMLFormElement)||t.method!=="dialog"||t.closest(this.localName)!==this)return;e.preventDefault();let i=e.submitter,r=this.returnValue;this.returnValue=i?.value??"",this.requestOpen(!1,"form"),this.open&&(this.returnValue=r)};#f=e=>{if(e.key!=="Tab"||e.altKey||e.ctrlKey||e.metaKey||!this.modal)return;let t=this.dialog;if(!t)return;let i=Un(t),r=i[0],s=i.at(-1),o=T();!r||!s||(e.shiftKey?o===r||o===t:o===s)&&(e.preventDefault(),(e.shiftKey?s:r).focus())};#m=e=>{e.preventDefault(),this.#e.isTopLayer&&this.#a!=="none"&&this.requestOpen(!1,"escape")};#b=()=>{this.open&&!this.dialog?.open&&(this.open=!1,this.#c())};#v(e){let t=this.dialog;if(!t||e.target!==t)return!1;let i=t.getBoundingClientRect();return e.clientX<i.left||e.clientX>i.right||e.clientY<i.top||e.clientY>i.bottom}#g=e=>{this.#n=this.#v(e)};#x=e=>{let t=this.#n&&this.#v(e);this.#n=!1,t&&this.modal&&this.#a==="any"&&this.requestOpen(!1,"backdrop")};#y=e=>{let t=e.target,i=t.assignedNodes({flatten:!0}).some(r=>r.nodeType===Node.ELEMENT_NODE||r.textContent?.trim());t.name==="description"?this.#s=i:t.name==="footer"&&(this.#o=i),this.requestUpdate()};renderCloseButton(){return this.noCloseButton||this.variant==="alert"?c:l`<button
624
624
  type="button"
625
625
  part="close-button"
626
626
  class="close"
@@ -635,7 +635,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
635
635
  stroke-linecap="round"
636
636
  />
637
637
  </svg>
638
- </button>`}renderContent(){return a`<div part="header" class="header">
638
+ </button>`}renderContent(){return l`<div part="header" class="header">
639
639
  <h2 id="title" part="title" class="title" tabindex="-1">
640
640
  <slot name="label">${this.label}</slot>
641
641
  </h2>
@@ -647,7 +647,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
647
647
  <div part="body" class="body"><slot></slot></div>
648
648
  <div part="footer" class="footer" ?hidden=${!this.#o}>
649
649
  <slot name="footer" @slotchange=${this.#y}></slot>
650
- </div>`}render(){return a`<dialog
650
+ </div>`}render(){return l`<dialog
651
651
  part="dialog"
652
652
  class="dialog"
653
653
  role=${this.variant==="alert"?"alertdialog":c}
@@ -656,7 +656,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
656
656
  @keydown=${this.#f}
657
657
  @cancel=${this.#m}
658
658
  @close=${this.#b}
659
- @pointerdown=${this.#v}
659
+ @pointerdown=${this.#g}
660
660
  @click=${this.#x}
661
661
  >
662
662
  ${this.renderContent()}
@@ -773,7 +773,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
773
773
 
774
774
 
775
775
 
776
- `;var Me=class extends ie{static tagName="und-drawer";static styles=[ye,ii];static properties={...ie.properties,placement:{reflect:!0}};constructor(){super(),this.placement="end"}};Me.define();var ri=new Set,Ot;function Ms(n,e){let t=n;for(;t;){if(t instanceof Element&&t.hasAttribute(e))return t.getAttribute(e);t=t.parentNode??(t instanceof ShadowRoot?t.host:null)}return null}var y=class{dir="ltr";lang="";#e;constructor(e){this.#e=e,e.addController(this)}get isRtl(){return this.dir==="rtl"}hostConnected(){ri.add(this),Ot||(Ot=new MutationObserver(()=>{for(let e of ri)e.refresh()}),Ot.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"],subtree:!0})),this.refresh()}hostDisconnected(){ri.delete(this),ri.size===0&&(Ot?.disconnect(),Ot=void 0)}refresh(){let e=Ms(this.#e,"dir"),t;e==="rtl"||e==="ltr"?t=e:t=getComputedStyle(this.#e).direction==="rtl"?"rtl":"ltr";let i=Ms(this.#e,"lang")??globalThis.navigator?.language??"";(t!==this.dir||i!==this.lang)&&(this.dir=t,this.lang=i,this.#e.requestUpdate())}};var Ns=0;function wl(){return Te("anchor-name: --und-a")&&Te("position-try-fallbacks: flip-block")}var _l={start:{top:"span-right",bottom:"span-right",left:"span-bottom",right:"span-bottom"},end:{top:"span-left",bottom:"span-left",left:"span-top",right:"span-top"}};function zl(n){let[e,t]=n.split("-");return t?`${e} ${_l[t][e]}`:e}var Ds={top:"margin-bottom",bottom:"margin-top",left:"margin-right",right:"margin-left"},O=class{#e;#t;#i;#r=0;constructor(e,t){this.#e=t,e.addController(this)}get mode(){return this.#t}async start(){if(!1)return;this.stop();let e=this.#e.getAnchor(),t=this.#e.getFloating();if(!e||!t)return;let i=this.#e.strategy??"auto",r=e.getRootNode()===t.getRootNode();(i==="css"||i==="auto"&&r&&this.#e.getDirection?.()!=="rtl"&&wl())&&e instanceof HTMLElement?this.#n(e,t):await this.#o(e,t)}stop(){this.#r+=1,this.#i?.(),this.#i=void 0,this.#t=void 0}hostDisconnected(){this.stop()}#n(e,t,i=!0){let r=this.#e.placement??"bottom",s=r.split("-")[0];Ns+=1;let o=`--und-anchor-${Ns}`;e.style.setProperty("anchor-name",o),t.style.setProperty("position","fixed"),t.style.setProperty("inset","auto"),t.style.setProperty("position-anchor",o),t.style.setProperty("position-area",zl(r)),t.style.setProperty("position-try-fallbacks","flip-block, flip-inline"),t.style.setProperty(Ds[s],`${this.#e.offset??8}px`),this.#t="css";let l=i?this.#s(e,t):void 0;this.#i=()=>{l?.(),e.style.removeProperty("anchor-name");for(let d of["position","inset","position-anchor","position-area","position-try-fallbacks",Ds[s]])t.style.removeProperty(d)}}#s(e,t){let i=this.#r,r=!1,s=new ResizeObserver(()=>{let{top:o,bottom:l,height:d}=t.getBoundingClientRect();r||i!==this.#r||!d||o>=-1&&l<=document.documentElement.clientHeight+1||(r=!0,this.stop(),this.#o(e,t).catch(()=>{this.#t===void 0&&this.#n(e,t,!1)}))});return s.observe(t),()=>s.disconnect()}async#o(e,t){let i=this.#r,{startFloating:r}=await import("./chunks/NSGFRI4V.js");i===this.#r&&(this.#i=r(e,t,this.#e,()=>i===this.#r),this.#t="js")}};var Is=n=>n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true",ne=class{#e;#t;#i=0;constructor(e,t){this.#e=e,this.#t=t,e.addController(this)}get activeIndex(){return this.#i}hostConnected(){this.#e.addEventListener("keydown",this.#n),this.#e.addEventListener("focusin",this.#r)}hostDisconnected(){this.#e.removeEventListener("keydown",this.#n),this.#e.removeEventListener("focusin",this.#r)}hostUpdated(){this.sync()}sync(){let e=this.#t.getItems();if(e.length===0)return;let t=this.#t.isDisabled??Is,i=Math.min(this.#i,e.length-1),r=e[i];if(r&&t(r)){let s=e.findIndex(o=>!t(o));s!==-1&&(i=s)}this.#i=i,e.forEach((s,o)=>{s.tabIndex=o===i?0:-1})}focusItem(e){let t=this.#t.getItems()[e];t&&(this.#i=e,this.sync(),t.focus(),this.#t.onActiveChange?.(t,e))}#r=e=>{let t=e.composedPath(),i=this.#t.getItems().findIndex(r=>t.includes(r));i!==-1&&i!==this.#i&&(this.#i=i,this.sync())};#n=e=>{if(e.altKey||e.ctrlKey||e.metaKey||e.defaultPrevented)return;let t=this.#t.getItems();if(t.length===0)return;let i=this.#t.orientation??"horizontal",r=(this.#t.getDirection?.()??"ltr")==="rtl",s=i!=="vertical",o=i!=="horizontal",l=0,d;switch(e.key){case"ArrowRight":s&&(l=r?-1:1);break;case"ArrowLeft":s&&(l=r?1:-1);break;case"ArrowDown":o&&(l=1);break;case"ArrowUp":o&&(l=-1);break;case"Home":d="first";break;case"End":d="last";break;default:return}if(l===0&&!d)return;let h=this.#s(t,l,d);h!==-1&&(e.preventDefault(),this.focusItem(h))};#s(e,t,i){let r=this.#t.isDisabled??Is,s=this.#t.wrap??!0,o=e.length;if(i){let h=(i==="first"?e:[...e].reverse()).findIndex(f=>!r(f));return h===-1?-1:i==="first"?h:o-1-h}let l=this.#i;for(let d=0;d<o;d+=1){if(l+=t,l<0||l>=o){if(!s)return-1;l=(l+o)%o}let h=e[l];if(h&&!r(h))return l}return-1}};var se=class{#e;#t;#i="";#r;constructor(e,t){this.#e=e,this.#t=t,e.addController(this)}get buffer(){return this.#i}hostConnected(){this.#t.listen!==!1&&this.#e.addEventListener("keydown",this.handleKeydown)}hostDisconnected(){this.#e.removeEventListener("keydown",this.handleKeydown),this.reset()}reset(){this.#i="",this.#r!==void 0&&clearTimeout(this.#r),this.#r=void 0}handleKeydown=e=>{if(e.isComposing||e.ctrlKey||e.metaKey||e.altKey||e.key.length!==1||e.key===" "&&this.#i==="")return!1;let t=this.#t.getLocale?.(),i=e.key.toLocaleLowerCase(t);this.#r!==void 0&&clearTimeout(this.#r),this.#r=setTimeout(()=>this.reset(),this.#t.timeout??500);let r=this.#i.length>0&&[...this.#i].every(l=>l===i);this.#i=r?i:this.#i+i;let s=this.#n(this.#i,t);if(s===-1)return!1;let o=this.#t.getItems()[s];return o?(e.preventDefault(),this.#t.onMatch(s,o),!0):!1};#n(e,t){let i=this.#t.getItems(),r=i.length;if(r===0)return-1;let s=this.#t.getLabel??(d=>d.textContent??""),o=this.#t.getActiveIndex(),l=e.length===1?1:0;for(let d=0;d<r;d+=1){let h=(o+l+d+r)%r,f=i[h];if(!f||f.hasAttribute("disabled"))continue;if(s(f).trim().toLocaleLowerCase(t).startsWith(e))return h}return-1}};var vt=u` @layer und.components{:host{display:inline-block}:host([hidden]){display:none}.menu{--_spatial:var(--und-motion-spatial,1);box-sizing:border-box;inset:auto;min-inline-size:var(--und-menu-min-width,10rem);max-inline-size:calc(100vw - 1rem);max-block-size:calc(100dvh - 1rem);margin:0;padding:var(--und-space-1,0.25rem);overflow:auto;border:var(--und-menu-border-width,0) solid var(--und-border-subtle,#d9dbe3);border-radius:var(--und-menu-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-raised,#fff);color:var(--und-fg-default,#1b1d26);box-shadow:var( --und-menu-shadow,var(--und-shadow-1,0 1px 1px #0000001a,0 2px 8px #0000001a) );font:inherit;font-size:var(--und-menu-font-size,var(--und-text-body-sm-size,0.875rem));line-height:var(--und-line-height-body,1.5);opacity:0;transform-origin:top center;transition:opacity var(--und-motion-menu-exit,90ms) linear,display var(--und-motion-menu-exit,90ms) allow-discrete,overlay var(--und-motion-menu-exit,90ms) allow-discrete}.menu:popover-open{opacity:1;transition:opacity var(--und-motion-menu-enter,230ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1)),transform var(--und-motion-menu-enter,230ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}@starting-style{.menu:popover-open{opacity:0;transform:scale(calc(1 - 0.04 * var(--_spatial)))}}@media (prefers-reduced-motion:reduce){.menu,.menu:popover-open{--_spatial:0;transition-duration:var(--und-motion-crossfade,0ms)}}@media (forced-colors:active){.menu{border-color:CanvasText}}}
776
+ `;var Me=class extends ie{static tagName="und-drawer";static styles=[ye,ii];static properties={...ie.properties,placement:{reflect:!0}};constructor(){super(),this.placement="end"}};Me.define();var ri=new Set,Ot;function Ms(n,e){let t=n;for(;t;){if(t instanceof Element&&t.hasAttribute(e))return t.getAttribute(e);t=t.parentNode??(t instanceof ShadowRoot?t.host:null)}return null}var y=class{dir="ltr";lang="";#e;constructor(e){this.#e=e,e.addController(this)}get isRtl(){return this.dir==="rtl"}hostConnected(){ri.add(this),Ot||(Ot=new MutationObserver(()=>{for(let e of ri)e.refresh()}),Ot.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"],subtree:!0})),this.refresh()}hostDisconnected(){ri.delete(this),ri.size===0&&(Ot?.disconnect(),Ot=void 0)}refresh(){let e=Ms(this.#e,"dir"),t;e==="rtl"||e==="ltr"?t=e:t=getComputedStyle(this.#e).direction==="rtl"?"rtl":"ltr";let i=Ms(this.#e,"lang")??globalThis.navigator?.language??"";(t!==this.dir||i!==this.lang)&&(this.dir=t,this.lang=i,this.#e.requestUpdate())}};var Ns=0;function wl(){return Te("anchor-name: --und-a")&&Te("position-try-fallbacks: flip-block")}var _l={start:{top:"span-right",bottom:"span-right",left:"span-bottom",right:"span-bottom"},end:{top:"span-left",bottom:"span-left",left:"span-top",right:"span-top"}};function zl(n){let[e,t]=n.split("-");return t?`${e} ${_l[t][e]}`:e}var Ds={top:"margin-bottom",bottom:"margin-top",left:"margin-right",right:"margin-left"},O=class{#e;#t;#i;#r=0;constructor(e,t){this.#e=t,e.addController(this)}get mode(){return this.#t}async start(){if(!1)return;this.stop();let e=this.#e.getAnchor(),t=this.#e.getFloating();if(!e||!t)return;let i=this.#e.strategy??"auto",r=e.getRootNode()===t.getRootNode();(i==="css"||i==="auto"&&r&&this.#e.getDirection?.()!=="rtl"&&wl())&&e instanceof HTMLElement?this.#n(e,t):await this.#o(e,t)}stop(){this.#r+=1,this.#i?.(),this.#i=void 0,this.#t=void 0}hostDisconnected(){this.stop()}#n(e,t,i=!0){let r=this.#e.placement??"bottom",s=r.split("-")[0];Ns+=1;let o=`--und-anchor-${Ns}`;e.style.setProperty("anchor-name",o),t.style.setProperty("position","fixed"),t.style.setProperty("inset","auto"),t.style.setProperty("position-anchor",o),t.style.setProperty("position-area",zl(r)),t.style.setProperty("position-try-fallbacks","flip-block, flip-inline"),t.style.setProperty(Ds[s],`${this.#e.offset??8}px`),this.#t="css";let a=i?this.#s(e,t):void 0;this.#i=()=>{a?.(),e.style.removeProperty("anchor-name");for(let d of["position","inset","position-anchor","position-area","position-try-fallbacks",Ds[s]])t.style.removeProperty(d)}}#s(e,t){let i=this.#r,r=!1,s=new ResizeObserver(()=>{let{top:o,bottom:a,height:d}=t.getBoundingClientRect();r||i!==this.#r||!d||o>=-1&&a<=document.documentElement.clientHeight+1||(r=!0,this.stop(),this.#o(e,t).catch(()=>{this.#t===void 0&&this.#n(e,t,!1)}))});return s.observe(t),()=>s.disconnect()}async#o(e,t){let i=this.#r,{startFloating:r}=await import("./chunks/NSGFRI4V.js");i===this.#r&&(this.#i=r(e,t,this.#e,()=>i===this.#r),this.#t="js")}};var Is=n=>n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true",ne=class{#e;#t;#i=0;constructor(e,t){this.#e=e,this.#t=t,e.addController(this)}get activeIndex(){return this.#i}hostConnected(){this.#e.addEventListener("keydown",this.#n),this.#e.addEventListener("focusin",this.#r)}hostDisconnected(){this.#e.removeEventListener("keydown",this.#n),this.#e.removeEventListener("focusin",this.#r)}hostUpdated(){this.sync()}sync(){let e=this.#t.getItems();if(e.length===0)return;let t=this.#t.isDisabled??Is,i=Math.min(this.#i,e.length-1),r=e[i];if(r&&t(r)){let s=e.findIndex(o=>!t(o));s!==-1&&(i=s)}this.#i=i,e.forEach((s,o)=>{s.tabIndex=o===i?0:-1})}focusItem(e){let t=this.#t.getItems()[e];t&&(this.#i=e,this.sync(),t.focus(),this.#t.onActiveChange?.(t,e))}#r=e=>{let t=e.composedPath(),i=this.#t.getItems().findIndex(r=>t.includes(r));i!==-1&&i!==this.#i&&(this.#i=i,this.sync())};#n=e=>{if(e.altKey||e.ctrlKey||e.metaKey||e.defaultPrevented)return;let t=this.#t.getItems();if(t.length===0)return;let i=this.#t.orientation??"horizontal",r=(this.#t.getDirection?.()??"ltr")==="rtl",s=i!=="vertical",o=i!=="horizontal",a=0,d;switch(e.key){case"ArrowRight":s&&(a=r?-1:1);break;case"ArrowLeft":s&&(a=r?1:-1);break;case"ArrowDown":o&&(a=1);break;case"ArrowUp":o&&(a=-1);break;case"Home":d="first";break;case"End":d="last";break;default:return}if(a===0&&!d)return;let h=this.#s(t,a,d);h!==-1&&(e.preventDefault(),this.focusItem(h))};#s(e,t,i){let r=this.#t.isDisabled??Is,s=this.#t.wrap??!0,o=e.length;if(i){let h=(i==="first"?e:[...e].reverse()).findIndex(f=>!r(f));return h===-1?-1:i==="first"?h:o-1-h}let a=this.#i;for(let d=0;d<o;d+=1){if(a+=t,a<0||a>=o){if(!s)return-1;a=(a+o)%o}let h=e[a];if(h&&!r(h))return a}return-1}};var se=class{#e;#t;#i="";#r;constructor(e,t){this.#e=e,this.#t=t,e.addController(this)}get buffer(){return this.#i}hostConnected(){this.#t.listen!==!1&&this.#e.addEventListener("keydown",this.handleKeydown)}hostDisconnected(){this.#e.removeEventListener("keydown",this.handleKeydown),this.reset()}reset(){this.#i="",this.#r!==void 0&&clearTimeout(this.#r),this.#r=void 0}handleKeydown=e=>{if(e.isComposing||e.ctrlKey||e.metaKey||e.altKey||e.key.length!==1||e.key===" "&&this.#i==="")return!1;let t=this.#t.getLocale?.(),i=e.key.toLocaleLowerCase(t);this.#r!==void 0&&clearTimeout(this.#r),this.#r=setTimeout(()=>this.reset(),this.#t.timeout??500);let r=this.#i.length>0&&[...this.#i].every(a=>a===i);this.#i=r?i:this.#i+i;let s=this.#n(this.#i,t);if(s===-1)return!1;let o=this.#t.getItems()[s];return o?(e.preventDefault(),this.#t.onMatch(s,o),!0):!1};#n(e,t){let i=this.#t.getItems(),r=i.length;if(r===0)return-1;let s=this.#t.getLabel??(d=>d.textContent??""),o=this.#t.getActiveIndex(),a=e.length===1?1:0;for(let d=0;d<r;d+=1){let h=(o+a+d+r)%r,f=i[h];if(!f||f.hasAttribute("disabled"))continue;if(s(f).trim().toLocaleLowerCase(t).startsWith(e))return h}return-1}};var vt=u` @layer und.components{:host{display:inline-block}:host([hidden]){display:none}.menu{--_spatial:var(--und-motion-spatial,1);box-sizing:border-box;inset:auto;min-inline-size:var(--und-menu-min-width,10rem);max-inline-size:calc(100vw - 1rem);max-block-size:calc(100dvh - 1rem);margin:0;padding:var(--und-space-1,0.25rem);overflow:auto;border:var(--und-menu-border-width,0) solid var(--und-border-subtle,#d9dbe3);border-radius:var(--und-menu-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-raised,#fff);color:var(--und-fg-default,#1b1d26);box-shadow:var( --und-menu-shadow,var(--und-shadow-1,0 1px 1px #0000001a,0 2px 8px #0000001a) );font:inherit;font-size:var(--und-menu-font-size,var(--und-text-body-sm-size,0.875rem));line-height:var(--und-line-height-body,1.5);opacity:0;transform-origin:top center;transition:opacity var(--und-motion-menu-exit,90ms) linear,display var(--und-motion-menu-exit,90ms) allow-discrete,overlay var(--und-motion-menu-exit,90ms) allow-discrete}.menu:popover-open{opacity:1;transition:opacity var(--und-motion-menu-enter,230ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1)),transform var(--und-motion-menu-enter,230ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}@starting-style{.menu:popover-open{opacity:0;transform:scale(calc(1 - 0.04 * var(--_spatial)))}}@media (prefers-reduced-motion:reduce){.menu,.menu:popover-open{--_spatial:0;transition-duration:var(--und-motion-crossfade,0ms)}}@media (forced-colors:active){.menu{border-color:CanvasText}}}
777
777
 
778
778
 
779
779
 
@@ -965,12 +965,12 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
965
965
 
966
966
 
967
967
 
968
- `;var $l={normal:"menuitem",checkbox:"menuitemcheckbox",radio:"menuitemradio"},Ne=class extends p{static tagName="und-menu-item";static styles=Bs;static properties={type:{reflect:!0},value:{reflect:!0},checked:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},name:{reflect:!0},keepOpen:{type:Boolean,attribute:"keep-open"}};#e=!1;constructor(){super(),this.type="normal",this.checked=!1,this.disabled=!1,this.keepOpen=!1}get labelText(){return[...this.childNodes].filter(e=>!(e instanceof Element&&e.hasAttribute("slot"))).map(e=>e.textContent??"").join("").replace(/\s+/g," ").trim()}get submenu(){return this.querySelector(':scope > [slot="submenu"]')}connectedCallback(){super.connectedCallback(),this.tabIndex=-1}setExpanded(e){G(this,"aria-expanded",this.#e?String(e):null),this.setCustomState("expanded",e)}updated(){this.setAttribute("role",$l[this.type]??"menuitem"),G(this,"aria-checked",this.type==="normal"?null:String(this.checked)),G(this,"aria-disabled",this.disabled?"true":null),G(this,"aria-haspopup",this.#e?"menu":null),this.#e&&G(this,"aria-label",this.labelText),this.setCustomState("checked",this.type!=="normal"&&this.checked)}#t=e=>{let t=e.target.assignedElements().length>0;t!==this.#e&&(this.#e=t,G(this,"aria-expanded",t?"false":null),t||G(this,"aria-label",null),this.requestUpdate())};#i(){if(this.type==="normal")return c;let e=this.checked?this.type==="checkbox"?k`<path d="M3.5 8.5l3 3 6-7" stroke="currentColor" stroke-width="1.75" fill="none" stroke-linecap="round" stroke-linejoin="round" />`:k`<circle cx="8" cy="8" r="3.25" fill="currentColor" />`:c;return a`<span part="check" class="check"
968
+ `;var $l={normal:"menuitem",checkbox:"menuitemcheckbox",radio:"menuitemradio"},Ne=class extends p{static tagName="und-menu-item";static styles=Bs;static properties={type:{reflect:!0},value:{reflect:!0},checked:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},name:{reflect:!0},keepOpen:{type:Boolean,attribute:"keep-open"}};#e=!1;constructor(){super(),this.type="normal",this.checked=!1,this.disabled=!1,this.keepOpen=!1}get labelText(){return[...this.childNodes].filter(e=>!(e instanceof Element&&e.hasAttribute("slot"))).map(e=>e.textContent??"").join("").replace(/\s+/g," ").trim()}get submenu(){return this.querySelector(':scope > [slot="submenu"]')}connectedCallback(){super.connectedCallback(),this.tabIndex=-1}setExpanded(e){G(this,"aria-expanded",this.#e?String(e):null),this.setCustomState("expanded",e)}updated(){this.setAttribute("role",$l[this.type]??"menuitem"),G(this,"aria-checked",this.type==="normal"?null:String(this.checked)),G(this,"aria-disabled",this.disabled?"true":null),G(this,"aria-haspopup",this.#e?"menu":null),this.#e&&G(this,"aria-label",this.labelText),this.setCustomState("checked",this.type!=="normal"&&this.checked)}#t=e=>{let t=e.target.assignedElements().length>0;t!==this.#e&&(this.#e=t,G(this,"aria-expanded",t?"false":null),t||G(this,"aria-label",null),this.requestUpdate())};#i(){if(this.type==="normal")return c;let e=this.checked?this.type==="checkbox"?k`<path d="M3.5 8.5l3 3 6-7" stroke="currentColor" stroke-width="1.75" fill="none" stroke-linecap="round" stroke-linejoin="round" />`:k`<circle cx="8" cy="8" r="3.25" fill="currentColor" />`:c;return l`<span part="check" class="check"
969
969
  ><svg viewBox="0 0 16 16" aria-hidden="true">${e}</svg></span
970
- >`}render(){return a`${this.#i()}<slot name="start"></slot>
970
+ >`}render(){return l`${this.#i()}<slot name="start"></slot>
971
971
  <span part="label" class="label"><slot></slot></span>
972
972
  <span class="end"><slot name="end"></slot></span>
973
- ${this.#e?a`<span part="chevron" class="chevron"
973
+ ${this.#e?l`<span part="chevron" class="chevron"
974
974
  ><svg viewBox="0 0 16 16" aria-hidden="true">
975
975
  <path
976
976
  d="M6 3.5L10.5 8 6 12.5"
@@ -980,8 +980,8 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
980
980
  stroke-linecap="round"
981
981
  /></svg
982
982
  ></span>`:c}
983
- <slot name="submenu" @slotchange=${this.#t}></slot>`}};var ni,Sl=250,pe=class extends p{static tagName="und-menu";static styles=vt;static properties={open:{type:Boolean,reflect:!0},placement:{reflect:!0},label:{}};#e=new y(this);#t=null;#i=!1;#r=null;#n=null;#s=new ne(this,{getItems:()=>this.open?this.items:[],orientation:"vertical",isDisabled:e=>e.disabled});#o=new se(this,{listen:!1,getItems:()=>this.items,getActiveIndex:()=>this.#s.activeIndex,onMatch:e=>this.#s.focusItem(e),getLabel:e=>e.labelText,getLocale:()=>this.#e.lang||void 0});#d=(e=>new O(e,{getAnchor:()=>e.#r,getFloating:()=>e.#u,getDirection:()=>e.#e.dir,get placement(){return e.#l?e.#e.isRtl?"left-start":"right-start":e.placement},get offset(){return e.#l?2:4}}))(this);#a=new P(this,{onDismiss:e=>{e==="escape"?this.#f(!0):this.#c.#f(!1)},getInsideElements:()=>[this.#r]});constructor(){super(),this.open=!1,this.placement="bottom-start"}get items(){let e=[];for(let t of this.children)if(t instanceof Ne)e.push(t);else if(t.localName==="und-menu-group")for(let i of t.children)i instanceof Ne&&e.push(i);return e.filter(t=>!t.hidden)}show(e="first"){if(this.open){this.#v(e);return}this.#t=e,this.open=!0}hide(){this.open=!1}resolveTrigger(){return this.querySelector(':scope > [slot="trigger"]')}triggerSemantics=!0;focusReturnTarget(e){return e}renderTrigger(){return a`<slot name="trigger"></slot>`}get#l(){let e=this.parentElement;return e instanceof Ne&&this.slot==="submenu"?e:null}get#c(){let e=this.#l?.parentElement??null;for(;e&&!(e instanceof ni);)e=e.parentElement;return e?e.#c:this}get#u(){return this.renderRoot.querySelector(".menu")}connectedCallback(){super.connectedCallback(),!!1&&(this.addEventListener("keydown",this.#_),this.addEventListener("click",this.#k),this.addEventListener("pointermove",this.#w),this.addEventListener("focusout",this.#C))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.#_),this.removeEventListener("click",this.#k),this.removeEventListener("pointermove",this.#w),this.removeEventListener("focusout",this.#C),clearTimeout(this.#$),this.open=!1}updated(e){this.#h(),e.has("open")&&this.#p(e.get("open")!==void 0)}#h(){let e=this.#l??this.resolveTrigger();this.#r=e;let t=e?.updateComplete;e&&t&&this.#n!==e&&(this.#n=e,t.then(()=>this.requestUpdate()));let i=this.#u;if(i){if(e&&!this.#l&&this.triggerSemantics){let r=Oe(e);r.setAttribute("aria-haspopup","menu"),r.setAttribute("aria-expanded",String(this.open))}if(this.label)i.setAttribute("aria-label",this.label);else if(e&&"ariaLabelledByElements"in i)i.removeAttribute("aria-label"),i.ariaLabelledByElements=[e];else if(e){let r=e.textContent?.trim()??"";i.setAttribute("aria-label",r)}}}#p(e){let t=this.#u;if(!t||!1)return;let i=t.matches(":popover-open");if(this.open&&!i){try{t.showPopover()}catch{this.open=!1;return}this.#d.start(),this.#a.activate(),this.#l?.setExpanded(!0);let r=this.items,s=this.#t;this.#t=null;let o=s==="last"?r.findLastIndex(l=>!l.disabled):s==="first"?r.findIndex(l=>!l.disabled):-1;o!==-1&&this.#s.focusItem(o)}else if(!this.open&&i){for(let o of this.items){let l=o.submenu;l?.open&&(l.open=!1)}let r=S(this,T());t.hidePopover(),this.#d.stop(),this.#a.deactivate(),this.#l?.setExpanded(!1),this.#o.reset();let s=this.focusReturnTarget(this.#r);this.#i&&r&&s instanceof HTMLElement&&s.focus()}else return;this.#i=!1,this.setCustomState("open",this.open),e&&this.emit("und-open-change",{open:this.open})}#f(e){this.open&&(this.#i=e,this.open=!1)}#m(e){let t=e.composedPath().find(i=>i instanceof Ne);return t&&this.items.includes(t)?t:void 0}#b(e){return!this.#l&&!!this.#r&&e.composedPath().includes(this.#r)}#g(e,t){for(let r of this.items){let s=r.submenu;r!==e&&s?.open&&(s.open=!1)}let i=e.submenu;if(i instanceof ni){if(i.open){t&&i.#v(t);return}i.#t=t,i.open=!0}}#v(e){let t=this.items,i=e==="first"?t.findIndex(r=>!r.disabled):t.findLastIndex(r=>!r.disabled);i!==-1&&this.#s.focusItem(i)}#x(e){let t=this.items.filter(r=>r.type==="radio");if(e.name)return t.filter(r=>r.name===e.name);let i=e.parentElement;return t.filter(r=>!r.name&&r.parentElement===i)}#y(e){if(e.disabled)return;if(e.submenu){this.#g(e,"first");return}if(e.type==="checkbox")e.checked=!e.checked;else if(e.type==="radio")for(let i of this.#x(e))i.checked=i===e;e.dispatchEvent(new CustomEvent("und-select",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e.value??e.labelText,checked:e.checked}}))&&e.type==="normal"&&!e.keepOpen&&this.#c.#f(!0)}#_=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if(this.#b(e)){(e.key==="ArrowDown"||e.key==="ArrowUp")&&(e.preventDefault(),this.show(e.key==="ArrowDown"?"first":"last"));return}let t=this.#m(e);if(!t)return;this.#l&&e.stopPropagation();let i=this.#e.isRtl,r=i?"ArrowLeft":"ArrowRight",s=i?"ArrowRight":"ArrowLeft",o=e.key===" "&&this.#o.buffer!=="";e.key==="Enter"||e.key===" "&&!o?(e.preventDefault(),this.#y(t)):e.key===r&&t.submenu?(e.preventDefault(),this.#g(t,"first")):e.key===s&&this.#l?(e.preventDefault(),this.#f(!0)):e.key!=="Tab"&&this.#o.handleKeydown(e)};#k=e=>{if(this.#b(e)){this.open?this.#f(!0):this.show("first");return}let t=this.#m(e);t&&this.#y(t)};#z;#$;#L(e,t){for(let i of this.items){let r=i.submenu;if(!(r instanceof ni)||!r.open)continue;let s=r.#u?.getBoundingClientRect();if(!s?.width)continue;let o=s.left>=e.x?s.left:s.right,l=($,_)=>(t.x-_.x)*($.y-_.y)-($.x-_.x)*(t.y-_.y),d={x:o,y:s.top},h={x:o,y:s.bottom},f=l(e,d),m=l(d,h),v=l(h,e),x=f<0||m<0||v<0,w=f>0||m>0||v>0;if(!(x&&w))return!0}return!1}#w=e=>{if(e.pointerType==="touch")return;let t={x:e.clientX,y:e.clientY},i=this.#z;if(i&&i.x===t.x&&i.y===t.y||(this.#z=t,!i))return;let r=this.#m(e);if(!r||r.disabled)return;clearTimeout(this.#$);let s=this.items.find(o=>o.submenu?.open);if(s&&s!==r&&this.#L(i,t)){this.#$=setTimeout(()=>{this.open&&this.#S(r)},Sl);return}this.#S(r)};#S(e){T()!==e&&this.#s.focusItem(this.items.indexOf(e)),this.#g(e,null)}#C=e=>{if(this.#l||!this.open)return;let t=e.relatedTarget;!(t instanceof Node)||S(this,t)||this.#f(!1)};render(){return a`${this.renderTrigger()}
984
- <div part="menu" class="menu" role="menu" popover="manual"><slot></slot></div>`}};ni=pe;var si=class extends p{static tagName="und-menu-group";static styles=Ps;static properties={label:{}};connectedCallback(){super.connectedCallback(),K(this,"group")}updated(e){e.has("label")&&xe(this,this.label,e.get("label"))}render(){return a`${this.label?a`<div part="label" class="label" aria-hidden="true">${this.label}</div>`:c}<slot></slot>`}};si.define();Ne.define();var oi=class extends p{static tagName="und-menu-separator";static styles=Rs;connectedCallback(){super.connectedCallback(),K(this,"separator")}};oi.define();pe.define();var ai=u` @layer und.components{:host{--_spatial:var(--und-motion-spatial,1);--_scale:calc(1 - 0.05 * var(--_spatial));--_step:calc(var(--und-space-1,0.25rem) * var(--_spatial));--_dx:0px;--_dy:calc(-1 * var(--_step));box-sizing:border-box;inset:auto;inline-size:var(--und-popover-width,max-content);max-inline-size:min(var(--und-popover-max-width,20rem),calc(100vw - 1rem));max-block-size:calc(100dvh - 1rem);margin:0;padding:var(--und-space-3,0.75rem);overflow:auto;border:var(--und-popover-border-width,0) solid var(--und-border-subtle,#d9dbe3);border-radius:var(--und-popover-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-raised,#fff);color:var(--und-fg-default,#1b1d26);box-shadow:var(--und-shadow-1,0 1px 1px #0000001a,0 2px 8px #0000001a);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;opacity:0;transform:none;transform-origin:top center;transition:opacity var(--und-duration-fast,175ms) var(--und-motion-ease-exit,cubic-bezier(0.3,0,0.6,0.6)),display var(--und-duration-fast,175ms) allow-discrete,overlay var(--und-duration-fast,175ms) allow-discrete}:host(:not([popover])){display:none}:host(:popover-open){opacity:1;transition:opacity var(--und-motion-menu-enter,230ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1)),transform var(--und-motion-menu-enter,230ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}@starting-style{:host(:popover-open){opacity:0;transform:translate(var(--_dx),var(--_dy)) scale(var(--_scale))}}:host([placement^='top']){--_dy:var(--_step);transform-origin:bottom center}:host([placement^='left']){--_dx:var(--_step);--_dy:0px;transform-origin:center right}:host([placement^='right']){--_dx:calc(-1 * var(--_step));--_dy:0px;transform-origin:center left}:host([padding='0']){padding:var(--und-space-0,0)}:host([padding='1']){padding:var(--und-space-1,0.25rem)}:host([padding='2']){padding:var(--und-space-2,0.5rem)}:host([padding='4']){padding:var(--und-space-4,1rem)}:host([padding='5']){padding:var(--und-space-5,1.25rem)}:host([padding='6']){padding:var(--und-space-6,1.5rem)}:host([padding='8']){padding:var(--und-space-8,2rem)}:host(:focus-visible){outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}@media (prefers-reduced-motion:reduce){:host,:host(:popover-open){--_spatial:0;transition-duration:var(--und-motion-crossfade,0ms)}}@media (forced-colors:active){:host{border:1px solid CanvasText}}}
983
+ <slot name="submenu" @slotchange=${this.#t}></slot>`}};var ni,Sl=250,pe=class extends p{static tagName="und-menu";static styles=vt;static properties={open:{type:Boolean,reflect:!0},placement:{reflect:!0},label:{}};#e=new y(this);#t=null;#i=!1;#r=null;#n=null;#s=new ne(this,{getItems:()=>this.open?this.items:[],orientation:"vertical",isDisabled:e=>e.disabled});#o=new se(this,{listen:!1,getItems:()=>this.items,getActiveIndex:()=>this.#s.activeIndex,onMatch:e=>this.#s.focusItem(e),getLabel:e=>e.labelText,getLocale:()=>this.#e.lang||void 0});#d=(e=>new O(e,{getAnchor:()=>e.#r,getFloating:()=>e.#u,getDirection:()=>e.#e.dir,get placement(){return e.#l?e.#e.isRtl?"left-start":"right-start":e.placement},get offset(){return e.#l?2:4}}))(this);#a=new P(this,{onDismiss:e=>{e==="escape"?this.#f(!0):this.#c.#f(!1)},getInsideElements:()=>[this.#r]});constructor(){super(),this.open=!1,this.placement="bottom-start"}get items(){let e=[];for(let t of this.children)if(t instanceof Ne)e.push(t);else if(t.localName==="und-menu-group")for(let i of t.children)i instanceof Ne&&e.push(i);return e.filter(t=>!t.hidden)}show(e="first"){if(this.open){this.#g(e);return}this.#t=e,this.open=!0}hide(){this.open=!1}resolveTrigger(){return this.querySelector(':scope > [slot="trigger"]')}triggerSemantics=!0;focusReturnTarget(e){return e}renderTrigger(){return l`<slot name="trigger"></slot>`}get#l(){let e=this.parentElement;return e instanceof Ne&&this.slot==="submenu"?e:null}get#c(){let e=this.#l?.parentElement??null;for(;e&&!(e instanceof ni);)e=e.parentElement;return e?e.#c:this}get#u(){return this.renderRoot.querySelector(".menu")}connectedCallback(){super.connectedCallback(),!!1&&(this.addEventListener("keydown",this.#_),this.addEventListener("click",this.#w),this.addEventListener("pointermove",this.#k),this.addEventListener("focusout",this.#C))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.#_),this.removeEventListener("click",this.#w),this.removeEventListener("pointermove",this.#k),this.removeEventListener("focusout",this.#C),clearTimeout(this.#$),this.open=!1}updated(e){this.#h(),e.has("open")&&this.#p(e.get("open")!==void 0)}#h(){let e=this.#l??this.resolveTrigger();this.#r=e;let t=e?.updateComplete;e&&t&&this.#n!==e&&(this.#n=e,t.then(()=>this.requestUpdate()));let i=this.#u;if(i){if(e&&!this.#l&&this.triggerSemantics){let r=Oe(e);r.setAttribute("aria-haspopup","menu"),r.setAttribute("aria-expanded",String(this.open))}if(this.label)i.setAttribute("aria-label",this.label);else if(e&&"ariaLabelledByElements"in i)i.removeAttribute("aria-label"),i.ariaLabelledByElements=[e];else if(e){let r=e.textContent?.trim()??"";i.setAttribute("aria-label",r)}}}#p(e){let t=this.#u;if(!t||!1)return;let i=t.matches(":popover-open");if(this.open&&!i){try{t.showPopover()}catch{this.open=!1;return}this.#d.start(),this.#a.activate(),this.#l?.setExpanded(!0);let r=this.items,s=this.#t;this.#t=null;let o=s==="last"?r.findLastIndex(a=>!a.disabled):s==="first"?r.findIndex(a=>!a.disabled):-1;o!==-1&&this.#s.focusItem(o)}else if(!this.open&&i){for(let o of this.items){let a=o.submenu;a?.open&&(a.open=!1)}let r=S(this,T());t.hidePopover(),this.#d.stop(),this.#a.deactivate(),this.#l?.setExpanded(!1),this.#o.reset();let s=this.focusReturnTarget(this.#r);this.#i&&r&&s instanceof HTMLElement&&s.focus()}else return;this.#i=!1,this.setCustomState("open",this.open),e&&this.emit("und-open-change",{open:this.open})}#f(e){this.open&&(this.#i=e,this.open=!1)}#m(e){let t=e.composedPath().find(i=>i instanceof Ne);return t&&this.items.includes(t)?t:void 0}#b(e){return!this.#l&&!!this.#r&&e.composedPath().includes(this.#r)}#v(e,t){for(let r of this.items){let s=r.submenu;r!==e&&s?.open&&(s.open=!1)}let i=e.submenu;if(i instanceof ni){if(i.open){t&&i.#g(t);return}i.#t=t,i.open=!0}}#g(e){let t=this.items,i=e==="first"?t.findIndex(r=>!r.disabled):t.findLastIndex(r=>!r.disabled);i!==-1&&this.#s.focusItem(i)}#x(e){let t=this.items.filter(r=>r.type==="radio");if(e.name)return t.filter(r=>r.name===e.name);let i=e.parentElement;return t.filter(r=>!r.name&&r.parentElement===i)}#y(e){if(e.disabled)return;if(e.submenu){this.#v(e,"first");return}if(e.type==="checkbox")e.checked=!e.checked;else if(e.type==="radio")for(let i of this.#x(e))i.checked=i===e;e.dispatchEvent(new CustomEvent("und-select",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e.value??e.labelText,checked:e.checked}}))&&e.type==="normal"&&!e.keepOpen&&this.#c.#f(!0)}#_=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if(this.#b(e)){(e.key==="ArrowDown"||e.key==="ArrowUp")&&(e.preventDefault(),this.show(e.key==="ArrowDown"?"first":"last"));return}let t=this.#m(e);if(!t)return;this.#l&&e.stopPropagation();let i=this.#e.isRtl,r=i?"ArrowLeft":"ArrowRight",s=i?"ArrowRight":"ArrowLeft",o=e.key===" "&&this.#o.buffer!=="";e.key==="Enter"||e.key===" "&&!o?(e.preventDefault(),this.#y(t)):e.key===r&&t.submenu?(e.preventDefault(),this.#v(t,"first")):e.key===s&&this.#l?(e.preventDefault(),this.#f(!0)):e.key!=="Tab"&&this.#o.handleKeydown(e)};#w=e=>{if(this.#b(e)){this.open?this.#f(!0):this.show("first");return}let t=this.#m(e);t&&this.#y(t)};#z;#$;#L(e,t){for(let i of this.items){let r=i.submenu;if(!(r instanceof ni)||!r.open)continue;let s=r.#u?.getBoundingClientRect();if(!s?.width)continue;let o=s.left>=e.x?s.left:s.right,a=($,_)=>(t.x-_.x)*($.y-_.y)-($.x-_.x)*(t.y-_.y),d={x:o,y:s.top},h={x:o,y:s.bottom},f=a(e,d),m=a(d,h),v=a(h,e),x=f<0||m<0||v<0,w=f>0||m>0||v>0;if(!(x&&w))return!0}return!1}#k=e=>{if(e.pointerType==="touch")return;let t={x:e.clientX,y:e.clientY},i=this.#z;if(i&&i.x===t.x&&i.y===t.y||(this.#z=t,!i))return;let r=this.#m(e);if(!r||r.disabled)return;clearTimeout(this.#$);let s=this.items.find(o=>o.submenu?.open);if(s&&s!==r&&this.#L(i,t)){this.#$=setTimeout(()=>{this.open&&this.#S(r)},Sl);return}this.#S(r)};#S(e){T()!==e&&this.#s.focusItem(this.items.indexOf(e)),this.#v(e,null)}#C=e=>{if(this.#l||!this.open)return;let t=e.relatedTarget;!(t instanceof Node)||S(this,t)||this.#f(!1)};render(){return l`${this.renderTrigger()}
984
+ <div part="menu" class="menu" role="menu" popover="manual"><slot></slot></div>`}};ni=pe;var si=class extends p{static tagName="und-menu-group";static styles=Ps;static properties={label:{}};connectedCallback(){super.connectedCallback(),K(this,"group")}updated(e){e.has("label")&&xe(this,this.label,e.get("label"))}render(){return l`${this.label?l`<div part="label" class="label" aria-hidden="true">${this.label}</div>`:c}<slot></slot>`}};si.define();Ne.define();var oi=class extends p{static tagName="und-menu-separator";static styles=Rs;connectedCallback(){super.connectedCallback(),K(this,"separator")}};oi.define();pe.define();var ai=u` @layer und.components{:host{--_spatial:var(--und-motion-spatial,1);--_scale:calc(1 - 0.05 * var(--_spatial));--_step:calc(var(--und-space-1,0.25rem) * var(--_spatial));--_dx:0px;--_dy:calc(-1 * var(--_step));box-sizing:border-box;inset:auto;inline-size:var(--und-popover-width,max-content);max-inline-size:min(var(--und-popover-max-width,20rem),calc(100vw - 1rem));max-block-size:calc(100dvh - 1rem);margin:0;padding:var(--und-space-3,0.75rem);overflow:auto;border:var(--und-popover-border-width,0) solid var(--und-border-subtle,#d9dbe3);border-radius:var(--und-popover-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-raised,#fff);color:var(--und-fg-default,#1b1d26);box-shadow:var(--und-shadow-1,0 1px 1px #0000001a,0 2px 8px #0000001a);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;opacity:0;transform:none;transform-origin:top center;transition:opacity var(--und-duration-fast,175ms) var(--und-motion-ease-exit,cubic-bezier(0.3,0,0.6,0.6)),display var(--und-duration-fast,175ms) allow-discrete,overlay var(--und-duration-fast,175ms) allow-discrete}:host(:not([popover])){display:none}:host(:popover-open){opacity:1;transition:opacity var(--und-motion-menu-enter,230ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1)),transform var(--und-motion-menu-enter,230ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}@starting-style{:host(:popover-open){opacity:0;transform:translate(var(--_dx),var(--_dy)) scale(var(--_scale))}}:host([placement^='top']){--_dy:var(--_step);transform-origin:bottom center}:host([placement^='left']){--_dx:var(--_step);--_dy:0px;transform-origin:center right}:host([placement^='right']){--_dx:calc(-1 * var(--_step));--_dy:0px;transform-origin:center left}:host([padding='0']){padding:var(--und-space-0,0)}:host([padding='1']){padding:var(--und-space-1,0.25rem)}:host([padding='2']){padding:var(--und-space-2,0.5rem)}:host([padding='4']){padding:var(--und-space-4,1rem)}:host([padding='5']){padding:var(--und-space-5,1.25rem)}:host([padding='6']){padding:var(--und-space-6,1.5rem)}:host([padding='8']){padding:var(--und-space-8,2rem)}:host(:focus-visible){outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}@media (prefers-reduced-motion:reduce){:host,:host(:popover-open){--_spatial:0;transition-duration:var(--und-motion-crossfade,0ms)}}@media (forced-colors:active){:host{border:1px solid CanvasText}}}
985
985
 
986
986
 
987
987
 
@@ -1104,7 +1104,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
1104
1104
 
1105
1105
 
1106
1106
 
1107
- `;function Cl(n,e,t){let i=String(t??"").trim();i?n.style.setProperty(e,/^\d+(\.\d+)?$/.test(i)?`${i}px`:i):n.style.removeProperty(e)}var xt=class extends p{static tagName="und-popover";static define(e){super.define(e),mt()}static styles=ai;static properties={open:{type:Boolean,reflect:!0},placement:{reflect:!0},offset:{type:Number},htmlFor:{attribute:"for"},mode:{reflect:!0},label:{},padding:{reflect:!0},width:{}};#e=new y(this);#t=null;#i=null;#r=!1;#n=(e=>new O(e,{getAnchor:()=>e.#a(),getFloating:()=>e,getDirection:()=>e.#e.dir,get placement(){return e.placement},get offset(){return e.offset}}))(this);#s=new P(this,{onDismiss:()=>this.#l(),dismissOnOutsidePointer:!1});constructor(){super(),this.open=!1,this.placement="bottom",this.offset=4,this.mode="auto"}connectedCallback(){super.connectedCallback(),!!1&&(K(this,"dialog"),this.addEventListener("beforetoggle",this.#u),this.addEventListener("toggle",this.#h),this.addEventListener("command",this.#c))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",this.#u),this.removeEventListener("toggle",this.#h),this.removeEventListener("command",this.#c),this.#d()}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}willUpdate(e){e.has("mode")&&!!1&&(this.popover=this.mode==="manual"?"manual":"auto")}updated(e){if(e.has("htmlFor")&&this.#o(),e.has("label")&&xe(this,this.label,e.get("label")),e.has("width")&&Cl(this,"--und-popover-width",this.width),e.has("placement")&&this.open&&this.#n.start(),e.has("open")){let t=this.matches(":popover-open");this.#r=!0;try{this.open&&!t?this.showPopover():!this.open&&t&&this.hidePopover()}catch{this.open=this.matches(":popover-open")}finally{this.#r=!1}}}firstUpdated(){this.label||this.hasAttribute("aria-label")||this.hasAttribute("aria-labelledby")||C("popover-label","<und-popover> needs a `label` (it is exposed as a dialog).")}#o(){this.#d();let e=He(this,this.htmlFor);if(!e)return;this.#t=e;let t=Oe(e);"popoverTargetElement"in t&&(t.popoverTargetElement=this)}#d(){if(!this.#t)return;let e=Oe(this.#t);e.popoverTargetElement===this&&(e.popoverTargetElement=null),this.#t=null}#a(){if(this.#t)return this.#t;if(this.#i)return this.#i;if(!this.id)return null;let e=this.getRootNode(),t=`[popovertarget="${CSS.escape(this.id)}"], [commandfor="${CSS.escape(this.id)}"]`;return e.querySelector(t)}#l(){let e=S(this,T());this.matches(":popover-open")&&this.hidePopover();let t=this.#a();e&&t instanceof HTMLElement&&t.focus()}#c=e=>{let t=Jt(e);t==="--und-open"?this.open=!0:t==="--und-close"?this.open=!1:t==="--und-toggle"&&(this.open=!this.open)};#u=e=>{let{newState:t,source:i}=e,r=t==="open";if(r&&i&&(this.#i=i),this.#r)return;!this.emit("und-open-change",{open:r,reason:r?"toggle":"dismiss"},{cancelable:r})&&r&&e.preventDefault()};#h=e=>{let t=e.newState==="open";t===this.matches(":popover-open")&&(this.open=t,this.setCustomState("open",t),t?(this.#n.start(),this.mode!=="manual"&&this.#s.activate(),qe(this).then(()=>{this.open&&this.emit("und-after-open")})):(this.#n.stop(),this.#s.deactivate(),this.#i=null,qe(this).then(()=>{this.open||this.emit("und-after-close")})))};render(){return a`<slot></slot>`}};xt.define();var Us=u` @layer und.components{:host{--_spatial:var(--und-motion-spatial,1);--_tone:currentcolor;--_hover:color-mix(in srgb,currentcolor 12%,transparent);box-sizing:border-box;display:block;inline-size:min(var(--und-toast-width,25rem),calc(100vw - 2rem));border:0;border-radius:var(--und-toast-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-inverse,#0a1317);color:var(--und-fg-inverse,#fff);box-shadow:var(--und-shadow-2,0 1px 2px #0000001a,0 2px 12px #0000001a);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;unicode-bidi:plaintext;touch-action:pan-y;opacity:1;translate:var(--_drag,0) 0;transition:opacity var(--und-motion-toast-enter,310ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1)),translate var(--und-motion-toast-enter,310ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}@starting-style{:host{opacity:0;translate:0 calc(var(--und-toast-drift,var(--und-space-2,0.5rem)) * var(--_spatial))}}:host([hidden]){display:none}:host(:focus-visible){outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}:host([data-dragging]){transition:none}:host([data-closing]){opacity:0;translate:var(--_drag,0) 0;transition:opacity var(--und-motion-toast-exit,217ms) var(--und-motion-ease-exit,cubic-bezier(0.3,0,0.6,0.6)),translate var(--und-motion-toast-exit,217ms) var(--und-motion-ease-exit,cubic-bezier(0.3,0,0.6,0.6))}:host([tone='danger']:not([variant='surface'])){background:var(--und-status-danger-solid,#b3261e);color:var(--und-status-danger-on-solid,#fff)}:host([variant='surface']){--_tone:var(--und-fg-muted,#4b5060);--_hover:var(--und-bg-hover,#e4e6ee);border:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3);border-inline-start:4px solid var(--_tone);background:var(--und-bg-raised,#fff);color:var(--und-fg-default,#1b1d26)}:host([variant='surface'][tone='info']){--_tone:var(--und-status-info-solid,#1f4fd1)}:host([variant='surface'][tone='success']){--_tone:var(--und-status-success-solid,#1b6e35)}:host([variant='surface'][tone='warning']){--_tone:var(--und-status-warning-solid,#7a4f00)}:host([variant='surface'][tone='danger']){--_tone:var(--und-status-danger-solid,#b3261e)}.toast{display:flex;gap:var(--und-space-3,0.75rem);align-items:start;padding:var(--und-space-4,1rem)}::slotted([slot='icon']){flex:none;color:var(--_tone)}.content{flex:1 1 auto;min-inline-size:0;overflow-wrap:anywhere}.title{font-weight:var(--und-font-weight-semibold,600)}.description{color:inherit}:host([variant='surface']) .description{color:var(--und-fg-muted,#4b5060)}.end{display:flex;flex:none;gap:var(--und-space-2,0.5rem);align-items:center;block-size:1.25rem;margin-inline-end:calc(-1 * var(--und-space-1,0.25rem))}.actions{display:flex;gap:var(--und-space-2,0.5rem);align-items:center}.actions[hidden]{display:none}::slotted(button){min-block-size:var(--und-toast-control-size,1.75rem);padding-block:0;padding-inline:var(--und-space-2,0.5rem);border:0;border-radius:var(--und-radius-element,0.5rem);background:transparent;color:inherit;font:inherit;font-weight:var(--und-font-weight-semibold,600);white-space:nowrap;cursor:pointer}::slotted(button:hover){background:var(--_hover)}::slotted(button:focus-visible){outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}.close{display:inline-grid;flex:none;place-items:center;inline-size:var(--und-toast-control-size,1.75rem);block-size:var(--und-toast-control-size,1.75rem);padding:0;border:0;border-radius:var(--und-radius-element,0.5rem);background:transparent;color:inherit;cursor:pointer}.close:hover{background:var(--_hover)}.close:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}.close svg{inline-size:1rem;block-size:1rem}@media (pointer:coarse){.close{inline-size:var(--und-target-min-coarse,44px);block-size:var(--und-target-min-coarse,44px)}}@media (prefers-reduced-motion:reduce){:host,:host([data-closing]){--_spatial:0;transition-duration:var(--und-motion-crossfade,0ms)}}@media (forced-colors:active){:host{border:1px solid CanvasText}::slotted(button),.close{border:1px solid ButtonText}}}
1107
+ `;function Cl(n,e,t){let i=String(t??"").trim();i?n.style.setProperty(e,/^\d+(\.\d+)?$/.test(i)?`${i}px`:i):n.style.removeProperty(e)}var xt=class extends p{static tagName="und-popover";static define(e){super.define(e),mt()}static styles=ai;static properties={open:{type:Boolean,reflect:!0},placement:{reflect:!0},offset:{type:Number},htmlFor:{attribute:"for"},mode:{reflect:!0},label:{},padding:{reflect:!0},width:{}};#e=new y(this);#t=null;#i=null;#r=!1;#n=(e=>new O(e,{getAnchor:()=>e.#a(),getFloating:()=>e,getDirection:()=>e.#e.dir,get placement(){return e.placement},get offset(){return e.offset}}))(this);#s=new P(this,{onDismiss:()=>this.#l(),dismissOnOutsidePointer:!1});constructor(){super(),this.open=!1,this.placement="bottom",this.offset=4,this.mode="auto"}connectedCallback(){super.connectedCallback(),!!1&&(K(this,"dialog"),this.addEventListener("beforetoggle",this.#u),this.addEventListener("toggle",this.#h),this.addEventListener("command",this.#c))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",this.#u),this.removeEventListener("toggle",this.#h),this.removeEventListener("command",this.#c),this.#d()}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}willUpdate(e){e.has("mode")&&!!1&&(this.popover=this.mode==="manual"?"manual":"auto")}updated(e){if(e.has("htmlFor")&&this.#o(),e.has("label")&&xe(this,this.label,e.get("label")),e.has("width")&&Cl(this,"--und-popover-width",this.width),e.has("placement")&&this.open&&this.#n.start(),e.has("open")){let t=this.matches(":popover-open");this.#r=!0;try{this.open&&!t?this.showPopover():!this.open&&t&&this.hidePopover()}catch{this.open=this.matches(":popover-open")}finally{this.#r=!1}}}firstUpdated(){this.label||this.hasAttribute("aria-label")||this.hasAttribute("aria-labelledby")||C("popover-label","<und-popover> needs a `label` (it is exposed as a dialog).")}#o(){this.#d();let e=He(this,this.htmlFor);if(!e)return;this.#t=e;let t=Oe(e);"popoverTargetElement"in t&&(t.popoverTargetElement=this)}#d(){if(!this.#t)return;let e=Oe(this.#t);e.popoverTargetElement===this&&(e.popoverTargetElement=null),this.#t=null}#a(){if(this.#t)return this.#t;if(this.#i)return this.#i;if(!this.id)return null;let e=this.getRootNode(),t=`[popovertarget="${CSS.escape(this.id)}"], [commandfor="${CSS.escape(this.id)}"]`;return e.querySelector(t)}#l(){let e=S(this,T());this.matches(":popover-open")&&this.hidePopover();let t=this.#a();e&&t instanceof HTMLElement&&t.focus()}#c=e=>{let t=Jt(e);t==="--und-open"?this.open=!0:t==="--und-close"?this.open=!1:t==="--und-toggle"&&(this.open=!this.open)};#u=e=>{let{newState:t,source:i}=e,r=t==="open";if(r&&i&&(this.#i=i),this.#r)return;!this.emit("und-open-change",{open:r,reason:r?"toggle":"dismiss"},{cancelable:r})&&r&&e.preventDefault()};#h=e=>{let t=e.newState==="open";t===this.matches(":popover-open")&&(this.open=t,this.setCustomState("open",t),t?(this.#n.start(),this.mode!=="manual"&&this.#s.activate(),qe(this).then(()=>{this.open&&this.emit("und-after-open")})):(this.#n.stop(),this.#s.deactivate(),this.#i=null,qe(this).then(()=>{this.open||this.emit("und-after-close")})))};render(){return l`<slot></slot>`}};xt.define();var Us=u` @layer und.components{:host{--_spatial:var(--und-motion-spatial,1);--_tone:currentcolor;--_hover:color-mix(in srgb,currentcolor 12%,transparent);box-sizing:border-box;display:block;inline-size:min(var(--und-toast-width,25rem),calc(100vw - 2rem));border:0;border-radius:var(--und-toast-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-inverse,#0a1317);color:var(--und-fg-inverse,#fff);box-shadow:var(--und-shadow-2,0 1px 2px #0000001a,0 2px 12px #0000001a);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;unicode-bidi:plaintext;touch-action:pan-y;opacity:1;translate:var(--_drag,0) 0;transition:opacity var(--und-motion-toast-enter,310ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1)),translate var(--und-motion-toast-enter,310ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}@starting-style{:host{opacity:0;translate:0 calc(var(--und-toast-drift,var(--und-space-2,0.5rem)) * var(--_spatial))}}:host([hidden]){display:none}:host(:focus-visible){outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}:host([data-dragging]){transition:none}:host([data-closing]){opacity:0;translate:var(--_drag,0) 0;transition:opacity var(--und-motion-toast-exit,217ms) var(--und-motion-ease-exit,cubic-bezier(0.3,0,0.6,0.6)),translate var(--und-motion-toast-exit,217ms) var(--und-motion-ease-exit,cubic-bezier(0.3,0,0.6,0.6))}:host([tone='danger']:not([variant='surface'])){background:var(--und-status-danger-solid,#b3261e);color:var(--und-status-danger-on-solid,#fff)}:host([variant='surface']){--_tone:var(--und-fg-muted,#4b5060);--_hover:var(--und-bg-hover,#e4e6ee);border:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3);border-inline-start:4px solid var(--_tone);background:var(--und-bg-raised,#fff);color:var(--und-fg-default,#1b1d26)}:host([variant='surface'][tone='info']){--_tone:var(--und-status-info-solid,#1f4fd1)}:host([variant='surface'][tone='success']){--_tone:var(--und-status-success-solid,#1b6e35)}:host([variant='surface'][tone='warning']){--_tone:var(--und-status-warning-solid,#7a4f00)}:host([variant='surface'][tone='danger']){--_tone:var(--und-status-danger-solid,#b3261e)}.toast{display:flex;gap:var(--und-space-3,0.75rem);align-items:start;padding:var(--und-space-4,1rem)}::slotted([slot='icon']){flex:none;color:var(--_tone)}.content{flex:1 1 auto;min-inline-size:0;overflow-wrap:anywhere}.title{font-weight:var(--und-font-weight-semibold,600)}.description{color:inherit}:host([variant='surface']) .description{color:var(--und-fg-muted,#4b5060)}.end{display:flex;flex:none;gap:var(--und-space-2,0.5rem);align-items:center;block-size:1.25rem;margin-inline-end:calc(-1 * var(--und-space-1,0.25rem))}.actions{display:flex;gap:var(--und-space-2,0.5rem);align-items:center}.actions[hidden]{display:none}::slotted(button){min-block-size:var(--und-toast-control-size,1.75rem);padding-block:0;padding-inline:var(--und-space-2,0.5rem);border:0;border-radius:var(--und-radius-element,0.5rem);background:transparent;color:inherit;font:inherit;font-weight:var(--und-font-weight-semibold,600);white-space:nowrap;cursor:pointer}::slotted(button:hover){background:var(--_hover)}::slotted(button:focus-visible){outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}.close{display:inline-grid;flex:none;place-items:center;inline-size:var(--und-toast-control-size,1.75rem);block-size:var(--und-toast-control-size,1.75rem);padding:0;border:0;border-radius:var(--und-radius-element,0.5rem);background:transparent;color:inherit;cursor:pointer}.close:hover{background:var(--_hover)}.close:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}.close svg{inline-size:1rem;block-size:1rem}@media (pointer:coarse){.close{inline-size:var(--und-target-min-coarse,44px);block-size:var(--und-target-min-coarse,44px)}}@media (prefers-reduced-motion:reduce){:host,:host([data-closing]){--_spatial:0;transition-duration:var(--und-motion-crossfade,0ms)}}@media (forced-colors:active){:host{border:1px solid CanvasText}::slotted(button),.close{border:1px solid ButtonText}}}
1108
1108
 
1109
1109
 
1110
1110
 
@@ -1371,7 +1371,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
1371
1371
 
1372
1372
 
1373
1373
 
1374
- `;var Ll=5e3,El=.4,Fe=class extends p{static tagName="und-toast";static styles=Us;static properties={label:{},tone:{reflect:!0},variant:{reflect:!0},duration:{type:Number},priority:{},dismissible:{converter:Qt},closeLabel:{attribute:"close-label"}};#e;#t=0;#i=0;#r=!1;#n=!1;#s;#o=!1;#d=!1;constructor(){super(),this.tone="neutral",this.variant="inverted",this.priority="polite",this.dismissible=!0,this.closeLabel="Close"}get announcement(){let e=this.label??this.querySelector('[slot="label"]')?.textContent??"",t=[...this.childNodes].filter(i=>!(i instanceof Element&&i.hasAttribute("slot"))).map(i=>i.textContent??"").join("");return[e,t].map(i=>i.replace(/\s+/g," ").trim()).filter(Boolean).join(". ")}connectedCallback(){super.connectedCallback(),!!1&&(K(this,"group"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.addEventListener("keydown",this.#l),this.addEventListener("pointerdown",this.#c),this.addEventListener("pointermove",this.#u),this.addEventListener("pointerup",this.#h),this.addEventListener("pointercancel",this.#h),this.addEventListener("click",this.#p,!0))}disconnectedCallback(){super.disconnectedCallback(),this.#a(),this.#r=!1,this.removeEventListener("keydown",this.#l),this.removeEventListener("pointerdown",this.#c),this.removeEventListener("pointermove",this.#u),this.removeEventListener("pointerup",this.#h),this.removeEventListener("pointercancel",this.#h),this.removeEventListener("click",this.#p,!0)}updated(e){e.has("label")&&xe(this,this.label,e.get("label"))}get effectiveDuration(){return this.duration!==void 0&&Number.isFinite(this.duration)?Math.max(0,this.duration):this.#d||this.querySelector('[slot="action"]')?0:Ll}start(e=!1){this.#r||this.#n||(this.#r=!0,this.#t=this.effectiveDuration,e||this.resume())}pause(){this.#e!==void 0&&(this.#a(),this.#t=Math.max(0,this.#t-(performance.now()-this.#i)))}resume(){!this.#r||this.#n||this.#e!==void 0||this.#t<=0||(this.#i=performance.now(),this.#e=setTimeout(()=>this.dismiss("timeout"),this.#t))}async dismiss(e="programmatic"){this.#n||(this.#n=!0,this.#a(),this.emit("und-dismiss",{reason:e}),this.toggleAttribute("data-closing",!0),await qe(this),this.remove())}#a(){this.#e!==void 0&&clearTimeout(this.#e),this.#e=void 0}#l=e=>{e.key!=="Escape"||e.isComposing||e.defaultPrevented||(e.preventDefault(),e.stopPropagation(),this.dismiss("escape"))};#c=e=>{e.button!==0||this.#n||(this.#s={id:e.pointerId,x:e.clientX,dx:0,moved:!1})};#u=e=>{let t=this.#s;if(!(!t||t.id!==e.pointerId)&&(t.dx=e.clientX-t.x,!(!t.moved&&Math.abs(t.dx)<8))){if(!t.moved){t.moved=!0;try{this.setPointerCapture(e.pointerId)}catch{}this.toggleAttribute("data-dragging",!0),this.pause()}this.style.setProperty("--_drag",`${t.dx}px`)}};#h=e=>{let t=this.#s;if(!t||t.id!==e.pointerId||(this.#s=void 0,!t.moved))return;this.#o=!0,setTimeout(()=>this.#o=!1),this.removeAttribute("data-dragging");let i=this.getBoundingClientRect().width||1;Math.abs(t.dx)/i>=El&&e.type==="pointerup"?(this.style.setProperty("--_drag",`${Math.sign(t.dx)*i*1.2}px`),this.dismiss("swipe")):(this.style.removeProperty("--_drag"),this.matches(":hover")||this.resume())};#p=e=>{this.#o&&(e.preventDefault(),e.stopPropagation())};#f=e=>{this.#d=e.target.assignedElements().length>0,this.requestUpdate()};render(){return a`<div part="base" class="toast">
1374
+ `;var Ll=5e3,El=.4,Fe=class extends p{static tagName="und-toast";static styles=Us;static properties={label:{},tone:{reflect:!0},variant:{reflect:!0},duration:{type:Number},priority:{},dismissible:{converter:Qt},closeLabel:{attribute:"close-label"}};#e;#t=0;#i=0;#r=!1;#n=!1;#s;#o=!1;#d=!1;constructor(){super(),this.tone="neutral",this.variant="inverted",this.priority="polite",this.dismissible=!0,this.closeLabel="Close"}get announcement(){let e=this.label??this.querySelector('[slot="label"]')?.textContent??"",t=[...this.childNodes].filter(i=>!(i instanceof Element&&i.hasAttribute("slot"))).map(i=>i.textContent??"").join("");return[e,t].map(i=>i.replace(/\s+/g," ").trim()).filter(Boolean).join(". ")}connectedCallback(){super.connectedCallback(),!!1&&(K(this,"group"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.addEventListener("keydown",this.#l),this.addEventListener("pointerdown",this.#c),this.addEventListener("pointermove",this.#u),this.addEventListener("pointerup",this.#h),this.addEventListener("pointercancel",this.#h),this.addEventListener("click",this.#p,!0))}disconnectedCallback(){super.disconnectedCallback(),this.#a(),this.#r=!1,this.removeEventListener("keydown",this.#l),this.removeEventListener("pointerdown",this.#c),this.removeEventListener("pointermove",this.#u),this.removeEventListener("pointerup",this.#h),this.removeEventListener("pointercancel",this.#h),this.removeEventListener("click",this.#p,!0)}updated(e){e.has("label")&&xe(this,this.label,e.get("label"))}get effectiveDuration(){return this.duration!==void 0&&Number.isFinite(this.duration)?Math.max(0,this.duration):this.#d||this.querySelector('[slot="action"]')?0:Ll}start(e=!1){this.#r||this.#n||(this.#r=!0,this.#t=this.effectiveDuration,e||this.resume())}pause(){this.#e!==void 0&&(this.#a(),this.#t=Math.max(0,this.#t-(performance.now()-this.#i)))}resume(){!this.#r||this.#n||this.#e!==void 0||this.#t<=0||(this.#i=performance.now(),this.#e=setTimeout(()=>this.dismiss("timeout"),this.#t))}async dismiss(e="programmatic"){this.#n||(this.#n=!0,this.#a(),this.emit("und-dismiss",{reason:e}),this.toggleAttribute("data-closing",!0),await qe(this),this.remove())}#a(){this.#e!==void 0&&clearTimeout(this.#e),this.#e=void 0}#l=e=>{e.key!=="Escape"||e.isComposing||e.defaultPrevented||(e.preventDefault(),e.stopPropagation(),this.dismiss("escape"))};#c=e=>{e.button!==0||this.#n||(this.#s={id:e.pointerId,x:e.clientX,dx:0,moved:!1})};#u=e=>{let t=this.#s;if(!(!t||t.id!==e.pointerId)&&(t.dx=e.clientX-t.x,!(!t.moved&&Math.abs(t.dx)<8))){if(!t.moved){t.moved=!0;try{this.setPointerCapture(e.pointerId)}catch{}this.toggleAttribute("data-dragging",!0),this.pause()}this.style.setProperty("--_drag",`${t.dx}px`)}};#h=e=>{let t=this.#s;if(!t||t.id!==e.pointerId||(this.#s=void 0,!t.moved))return;this.#o=!0,setTimeout(()=>this.#o=!1),this.removeAttribute("data-dragging");let i=this.getBoundingClientRect().width||1;Math.abs(t.dx)/i>=El&&e.type==="pointerup"?(this.style.setProperty("--_drag",`${Math.sign(t.dx)*i*1.2}px`),this.dismiss("swipe")):(this.style.removeProperty("--_drag"),this.matches(":hover")||this.resume())};#p=e=>{this.#o&&(e.preventDefault(),e.stopPropagation())};#f=e=>{this.#d=e.target.assignedElements().length>0,this.requestUpdate()};render(){return l`<div part="base" class="toast">
1375
1375
  <slot name="icon"></slot>
1376
1376
  <div class="content">
1377
1377
  <div part="title" class="title"><slot name="label">${this.label}</slot></div>
@@ -1381,7 +1381,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
1381
1381
  <div part="actions" class="actions" ?hidden=${!this.#d}>
1382
1382
  <slot name="action" @slotchange=${this.#f}></slot>
1383
1383
  </div>
1384
- ${this.dismissible?a`<button
1384
+ ${this.dismissible?l`<button
1385
1385
  type="button"
1386
1386
  part="close-button"
1387
1387
  class="close"
@@ -1398,7 +1398,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
1398
1398
  </svg>
1399
1399
  </button>`:c}
1400
1400
  </div>
1401
- </div>`}};function Al(n,e){let t=e.toLowerCase().split("+").map(r=>r.trim()),i=t.pop();return!i||n.key.toLowerCase()!==i?!1:n.altKey===t.includes("alt")&&n.ctrlKey===t.includes("ctrl")&&n.shiftKey===t.includes("shift")&&n.metaKey===t.includes("meta")}var li=class extends p{static tagName="und-toaster";static styles=qs;static properties={placement:{reflect:!0},label:{},hotkey:{}};#e=new Set;#t=new WeakSet;#i=null;#r;constructor(){super(),this.placement="bottom-end",this.label="Notifications",this.hotkey="F8"}get toasts(){return[...this.children].filter(e=>e instanceof Fe&&!e.hasAttribute("data-closing"))}connectedCallback(){super.connectedCallback(),!!1&&(this.popover="manual",K(this,"region"),this.tabIndex=-1,this.addEventListener("pointerover",this.#b),this.addEventListener("pointerout",this.#g),this.addEventListener("focusin",this.#v),this.addEventListener("focusout",this.#x),this.addEventListener("und-dismiss",this.#p),document.addEventListener("keydown",this.#m,!0),window.addEventListener("blur",this.#y),window.addEventListener("focus",this.#_),this.#r??=As(this.#h))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerover",this.#b),this.removeEventListener("pointerout",this.#g),this.removeEventListener("focusin",this.#v),this.removeEventListener("focusout",this.#x),this.removeEventListener("und-dismiss",this.#p),document.removeEventListener("keydown",this.#m,!0),window.removeEventListener("blur",this.#y),window.removeEventListener("focus",this.#_),this.#r?.(),this.#r=void 0,this.#d(!1)}updated(e){e.has("label")&&xe(this,this.label,e.get("label")),e.has("hotkey")&&G(this,"aria-keyshortcuts",this.hotkey||null)}#n(e,t){let i=this.#e.size>0;t?this.#e.add(e):this.#e.delete(e);let r=this.#e.size>0;if(i!==r)for(let s of this.toasts)r?s.pause():s.resume()}#s=()=>{let e=this.toasts;for(let t of e)this.#t.has(t)||(this.#t.add(t),t.updateComplete.then(()=>{let i=t.announcement;i&&N(i,{politeness:t.priority}),t.start(this.#e.size>0)}));this.#o()};#o(){let e=[...this.children].some(r=>r instanceof Fe),t=e&&ti();this.#n("modal",t);let i=this.matches(":popover-open");try{e&&!t&&!i?this.showPopover():(!e||t)&&i&&this.hidePopover()}catch{}this.#d(e&&!t)}#d(e){let t=document.documentElement.style,i=this.placement.startsWith("top")?"start":"end",r=[`scroll-padding-block-${i}`,`padding-block-${i}`];if(!e||this.#c!==i){this.#l?.disconnect(),this.#l=void 0,document.removeEventListener("focusin",this.#a,!0);for(let[o,l]of this.#u)t.setProperty(o,l);if(this.#u=[],this.#c=void 0,!e)return}this.#c=i,this.#u.length||(this.#u=r.map(o=>[o,t.getPropertyValue(o)]));let s=()=>{for(let o of r)t.setProperty(o,`${this.offsetHeight+8}px`)};s(),this.#l??=new ResizeObserver(s),this.#l.observe(this),document.addEventListener("focusin",this.#a,!0)}#a=e=>{let t=e.composedPath()[0];if(!(t instanceof HTMLElement)||S(this,t))return;let i=t.getBoundingClientRect(),r=this.getBoundingClientRect();i.top>=r.top&&i.bottom<=r.bottom&&i.left>=r.left&&i.right<=r.right&&t.scrollIntoView({block:"nearest"})};#l;#c;#u=[];#h=()=>this.#o();#p=e=>{let t=e.target;if(t instanceof Fe){if(S(t,T())){let i=this.toasts.filter(o=>o!==t),r=this.toasts.indexOf(t),s=i[Math.min(Math.max(r,0),i.length-1)];s?s.focus():this.#f()}setTimeout(()=>this.#o())}};#f(){let e=this.#i;this.#i=null,e?.isConnected&&e.focus()}#m=e=>{if(e.defaultPrevented||e.isComposing)return;if(e.key==="Escape"&&this.#i&&S(this,T())){T()===this&&(e.preventDefault(),this.#f());return}if(!this.hotkey||!Al(e,this.hotkey))return;let t=this.toasts.at(-1);if(!t)return;e.preventDefault();let i=T();S(this,i)||(this.#i=i instanceof HTMLElement?i:null),t.focus()};#b=()=>this.#n("hover",!0);#g=e=>{let t=e.relatedTarget;t instanceof Node&&S(this,t)||this.#n("hover",!1)};#v=()=>this.#n("focus",!0);#x=e=>{let t=e.relatedTarget;t instanceof Node&&S(this,t)||this.#n("focus",!1)};#y=()=>this.#n("window",!0);#_=()=>this.#n("window",!1);render(){return a`<slot @slotchange=${this.#s}></slot>`}};function pp(n,e){let t=typeof n=="string"?{label:n}:n,i=e??document.querySelector("und-toaster");i||(i=document.createElement("und-toaster"),document.body.append(i));let r=document.createElement("und-toast");t.label&&(r.label=t.label),t.tone&&(r.tone=t.tone),t.variant&&(r.variant=t.variant),t.priority&&(r.priority=t.priority),t.duration!==void 0&&(r.duration=t.duration),t.dismissible===!1&&(r.dismissible=!1),t.description&&r.append(t.description);let s=t.action;if(s){let o=document.createElement("button");o.type="button",o.slot="action",o.textContent=s.label,o.addEventListener("click",()=>{s.onAction(),r.dismiss("action")}),r.append(o)}return i.append(r),r}li.define();Fe.define();var Os=0;function E(n="und"){return Os+=1,`${n}-${Os}`}var ke=class{id;constructor(e,t="und"){this.id=E(t)}part(e){return`${this.id}-${e}`}};var Hs=u` @layer und.components{:host{--_spatial:var(--und-motion-spatial,1);--_step:calc(var(--und-space-1,0.25rem) * var(--_spatial));--_dx:0px;--_dy:var(--_step);box-sizing:border-box;inset:auto;inline-size:max-content;max-inline-size:min(var(--und-tooltip-max-width,18.75rem),calc(100vw - 1rem));margin:0;padding-block:var(--und-space-1,0.25rem);padding-inline:var(--und-space-2,0.5rem);overflow:visible;border:0;border-radius:var(--und-tooltip-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-inverse,#0a1317);color:var(--und-fg-inverse,#fff);box-shadow:none;font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;overflow-wrap:break-word;pointer-events:auto}:host(:not([popover])){display:none}:host([placement^='bottom']){--_dy:calc(-1 * var(--_step))}:host([placement^='left']){--_dx:var(--_step);--_dy:0px}:host([placement^='right']){--_dx:calc(-1 * var(--_step));--_dy:0px}:host([open]){animation:und-tooltip-in var(--und-motion-tooltip-enter,175ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}@keyframes und-tooltip-in{from{opacity:0;transform:translate(var(--_dx),var(--_dy)) scale(calc(1 - 0.05 * var(--_spatial)))}}@media (prefers-reduced-motion:reduce){:host([open]){--_spatial:0;animation-duration:var(--und-motion-crossfade,0ms)}}@media (forced-colors:active){:host{border:1px solid CanvasText}}}
1401
+ </div>`}};function Al(n,e){let t=e.toLowerCase().split("+").map(r=>r.trim()),i=t.pop();return!i||n.key.toLowerCase()!==i?!1:n.altKey===t.includes("alt")&&n.ctrlKey===t.includes("ctrl")&&n.shiftKey===t.includes("shift")&&n.metaKey===t.includes("meta")}var li=class extends p{static tagName="und-toaster";static styles=qs;static properties={placement:{reflect:!0},label:{},hotkey:{}};#e=new Set;#t=new WeakSet;#i=null;#r;constructor(){super(),this.placement="bottom-end",this.label="Notifications",this.hotkey="F8"}get toasts(){return[...this.children].filter(e=>e instanceof Fe&&!e.hasAttribute("data-closing"))}connectedCallback(){super.connectedCallback(),!!1&&(this.popover="manual",K(this,"region"),this.tabIndex=-1,this.addEventListener("pointerover",this.#b),this.addEventListener("pointerout",this.#v),this.addEventListener("focusin",this.#g),this.addEventListener("focusout",this.#x),this.addEventListener("und-dismiss",this.#p),document.addEventListener("keydown",this.#m,!0),window.addEventListener("blur",this.#y),window.addEventListener("focus",this.#_),this.#r??=As(this.#h))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerover",this.#b),this.removeEventListener("pointerout",this.#v),this.removeEventListener("focusin",this.#g),this.removeEventListener("focusout",this.#x),this.removeEventListener("und-dismiss",this.#p),document.removeEventListener("keydown",this.#m,!0),window.removeEventListener("blur",this.#y),window.removeEventListener("focus",this.#_),this.#r?.(),this.#r=void 0,this.#d(!1)}updated(e){e.has("label")&&xe(this,this.label,e.get("label")),e.has("hotkey")&&G(this,"aria-keyshortcuts",this.hotkey||null)}#n(e,t){let i=this.#e.size>0;t?this.#e.add(e):this.#e.delete(e);let r=this.#e.size>0;if(i!==r)for(let s of this.toasts)r?s.pause():s.resume()}#s=()=>{let e=this.toasts;for(let t of e)this.#t.has(t)||(this.#t.add(t),t.updateComplete.then(()=>{let i=t.announcement;i&&N(i,{politeness:t.priority}),t.start(this.#e.size>0)}));this.#o()};#o(){let e=[...this.children].some(r=>r instanceof Fe),t=e&&ti();this.#n("modal",t);let i=this.matches(":popover-open");try{e&&!t&&!i?this.showPopover():(!e||t)&&i&&this.hidePopover()}catch{}this.#d(e&&!t)}#d(e){let t=document.documentElement.style,i=this.placement.startsWith("top")?"start":"end",r=[`scroll-padding-block-${i}`,`padding-block-${i}`];if(!e||this.#c!==i){this.#l?.disconnect(),this.#l=void 0,document.removeEventListener("focusin",this.#a,!0);for(let[o,a]of this.#u)t.setProperty(o,a);if(this.#u=[],this.#c=void 0,!e)return}this.#c=i,this.#u.length||(this.#u=r.map(o=>[o,t.getPropertyValue(o)]));let s=()=>{for(let o of r)t.setProperty(o,`${this.offsetHeight+8}px`)};s(),this.#l??=new ResizeObserver(s),this.#l.observe(this),document.addEventListener("focusin",this.#a,!0)}#a=e=>{let t=e.composedPath()[0];if(!(t instanceof HTMLElement)||S(this,t))return;let i=t.getBoundingClientRect(),r=this.getBoundingClientRect();i.top>=r.top&&i.bottom<=r.bottom&&i.left>=r.left&&i.right<=r.right&&t.scrollIntoView({block:"nearest"})};#l;#c;#u=[];#h=()=>this.#o();#p=e=>{let t=e.target;if(t instanceof Fe){if(S(t,T())){let i=this.toasts.filter(o=>o!==t),r=this.toasts.indexOf(t),s=i[Math.min(Math.max(r,0),i.length-1)];s?s.focus():this.#f()}setTimeout(()=>this.#o())}};#f(){let e=this.#i;this.#i=null,e?.isConnected&&e.focus()}#m=e=>{if(e.defaultPrevented||e.isComposing)return;if(e.key==="Escape"&&this.#i&&S(this,T())){T()===this&&(e.preventDefault(),this.#f());return}if(!this.hotkey||!Al(e,this.hotkey))return;let t=this.toasts.at(-1);if(!t)return;e.preventDefault();let i=T();S(this,i)||(this.#i=i instanceof HTMLElement?i:null),t.focus()};#b=()=>this.#n("hover",!0);#v=e=>{let t=e.relatedTarget;t instanceof Node&&S(this,t)||this.#n("hover",!1)};#g=()=>this.#n("focus",!0);#x=e=>{let t=e.relatedTarget;t instanceof Node&&S(this,t)||this.#n("focus",!1)};#y=()=>this.#n("window",!0);#_=()=>this.#n("window",!1);render(){return l`<slot @slotchange=${this.#s}></slot>`}};function pp(n,e){let t=typeof n=="string"?{label:n}:n,i=e??document.querySelector("und-toaster");i||(i=document.createElement("und-toaster"),document.body.append(i));let r=document.createElement("und-toast");t.label&&(r.label=t.label),t.tone&&(r.tone=t.tone),t.variant&&(r.variant=t.variant),t.priority&&(r.priority=t.priority),t.duration!==void 0&&(r.duration=t.duration),t.dismissible===!1&&(r.dismissible=!1),t.description&&r.append(t.description);let s=t.action;if(s){let o=document.createElement("button");o.type="button",o.slot="action",o.textContent=s.label,o.addEventListener("click",()=>{s.onAction(),r.dismiss("action")}),r.append(o)}return i.append(r),r}li.define();Fe.define();var Os=0;function E(n="und"){return Os+=1,`${n}-${Os}`}var ke=class{id;constructor(e,t="und"){this.id=E(t)}part(e){return`${this.id}-${e}`}};var Hs=u` @layer und.components{:host{--_spatial:var(--und-motion-spatial,1);--_step:calc(var(--und-space-1,0.25rem) * var(--_spatial));--_dx:0px;--_dy:var(--_step);box-sizing:border-box;inset:auto;inline-size:max-content;max-inline-size:min(var(--und-tooltip-max-width,18.75rem),calc(100vw - 1rem));margin:0;padding-block:var(--und-space-1,0.25rem);padding-inline:var(--und-space-2,0.5rem);overflow:visible;border:0;border-radius:var(--und-tooltip-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-inverse,#0a1317);color:var(--und-fg-inverse,#fff);box-shadow:none;font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;overflow-wrap:break-word;pointer-events:auto}:host(:not([popover])){display:none}:host([placement^='bottom']){--_dy:calc(-1 * var(--_step))}:host([placement^='left']){--_dx:var(--_step);--_dy:0px}:host([placement^='right']){--_dx:calc(-1 * var(--_step));--_dy:0px}:host([open]){animation:und-tooltip-in var(--und-motion-tooltip-enter,175ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}@keyframes und-tooltip-in{from{opacity:0;transform:translate(var(--_dx),var(--_dy)) scale(calc(1 - 0.05 * var(--_spatial)))}}@media (prefers-reduced-motion:reduce){:host([open]){--_spatial:0;animation-duration:var(--und-motion-crossfade,0ms)}}@media (forced-colors:active){:host{border:1px solid CanvasText}}}
1402
1402
 
1403
1403
 
1404
1404
 
@@ -1470,7 +1470,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
1470
1470
 
1471
1471
 
1472
1472
 
1473
- `;var Tl=300,Fs=-1/0,De=null,di=class extends p{static tagName="und-tooltip";static styles=Hs;static properties={open:{type:Boolean,reflect:!0},htmlFor:{attribute:"for"},placement:{reflect:!0},offset:{type:Number},openDelay:{type:Number,attribute:"open-delay"},closeDelay:{type:Number,attribute:"close-delay"},disabled:{type:Boolean,reflect:!0}};#e=new y(this);#t=null;#i;#r;#n="";#s=(e=>new O(e,{getAnchor:()=>e.#t,getFloating:()=>e,getDirection:()=>e.#e.dir,get placement(){return e.placement},get offset(){return e.offset}}))(this);#o=new P(this,{onDismiss:()=>this.#h(!1,"escape"),dismissOnOutsidePointer:!1});constructor(){super(),this.open=!1,this.placement="top",this.offset=4,this.openDelay=200,this.closeDelay=100,this.disabled=!1}connectedCallback(){super.connectedCallback(),!!1&&(this.id||=E("und-tooltip"),this.popover="manual",K(this,"tooltip"),this.addEventListener("pointerenter",this.#c),this.addEventListener("pointerleave",this.#f),this.hasUpdated&&this.#d())}disconnectedCallback(){super.disconnectedCallback(),this.#c(),De===this&&(De=null),this.removeEventListener("pointerenter",this.#c),this.removeEventListener("pointerleave",this.#f),this.#a()}willUpdate(e){e.has("disabled")&&this.disabled&&(this.open=!1)}updated(e){(e.has("htmlFor")||!this.#t)&&this.#d(),e.has("open")&&this.#p()}#d(){this.#a();let e=this.htmlFor?He(this,this.htmlFor):this.previousElementSibling;if(e){this.#t=e,this.#i=Es(Oe(e),"aria-describedby","ariaDescribedByElements",this);for(let[t,i]of this.#m)e.addEventListener(t,i);this.#l(e)}}#a(){let e=this.#t;if(e){for(let[t,i]of this.#m)e.removeEventListener(t,i);this.#i?.(),this.#i=void 0,this.#t=null}}#l(e){let t=Oe(e);e.textContent?.trim()||["aria-label","aria-labelledby","title","label"].some(r=>e.hasAttribute(r)||t.hasAttribute(r))||C("tooltip-label","<und-tooltip> describes its trigger but does not name it: give the trigger its own accessible name.")}#c=()=>{this.#r!==void 0&&clearTimeout(this.#r),this.#r=void 0};#u(e,t){if(this.#c(),t<=0){this.#h(e,e?"hover":"leave");return}this.#r=setTimeout(()=>{this.#r=void 0,this.#h(e,e?"hover":"leave")},t)}#h(e,t){this.#c(),!(e&&this.disabled)&&e!==this.open&&(this.open=e,this.emit("und-open-change",{open:e,reason:t}))}#p(){if(!this.isConnected)return;let e=this.matches(":popover-open");if(this.open&&!e){try{this.showPopover()}catch{this.open=!1;return}this.#s.start(),this.#o.activate(),De&&De!==this&&(De.open=!1),De=this}else!this.open&&e&&(De===this&&(De=null),this.hidePopover(),this.#s.stop(),this.#o.deactivate(),Fs=performance.now());this.setCustomState("open",this.open)}#f=()=>{this.#u(!1,this.closeDelay)};#m=[["pointerdown",e=>{this.#n=e.pointerType,this.#h(!1,"press")}],["pointerenter",e=>{if(e.pointerType==="touch")return;let t=De!==null||performance.now()-Fs<Tl;this.#u(!0,t?0:this.openDelay)}],["pointerleave",()=>this.#u(!1,this.closeDelay)],["focusin",()=>{this.#n!=="touch"&&T()?.matches(":focus-visible")&&this.#h(!0,"focus")}],["focusout",()=>{this.#n="",this.#h(!1,"blur")}]];render(){return a`<slot></slot>`}};di.define();var ci=class extends p{static tagName="und-visually-hidden";static properties={focusable:{type:Boolean,reflect:!0}};static styles=u` :host(:not([focusable])),:host([focusable]:not(:focus-within)){position:absolute !important;inline-size:1px !important;block-size:1px !important;margin:-1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;inset-block-start:0 !important;inset-inline-start:0 !important;clip-path:inset(50%) !important;white-space:nowrap !important;pointer-events:none !important;user-select:none !important}:host([hidden]){display:none !important}
1473
+ `;var Tl=300,Fs=-1/0,De=null,di=class extends p{static tagName="und-tooltip";static styles=Hs;static properties={open:{type:Boolean,reflect:!0},htmlFor:{attribute:"for"},placement:{reflect:!0},offset:{type:Number},openDelay:{type:Number,attribute:"open-delay"},closeDelay:{type:Number,attribute:"close-delay"},disabled:{type:Boolean,reflect:!0}};#e=new y(this);#t=null;#i;#r;#n="";#s=(e=>new O(e,{getAnchor:()=>e.#t,getFloating:()=>e,getDirection:()=>e.#e.dir,get placement(){return e.placement},get offset(){return e.offset}}))(this);#o=new P(this,{onDismiss:()=>this.#h(!1,"escape"),dismissOnOutsidePointer:!1});constructor(){super(),this.open=!1,this.placement="top",this.offset=4,this.openDelay=200,this.closeDelay=100,this.disabled=!1}connectedCallback(){super.connectedCallback(),!!1&&(this.id||=E("und-tooltip"),this.popover="manual",K(this,"tooltip"),this.addEventListener("pointerenter",this.#c),this.addEventListener("pointerleave",this.#f),this.hasUpdated&&this.#d())}disconnectedCallback(){super.disconnectedCallback(),this.#c(),De===this&&(De=null),this.removeEventListener("pointerenter",this.#c),this.removeEventListener("pointerleave",this.#f),this.#a()}willUpdate(e){e.has("disabled")&&this.disabled&&(this.open=!1)}updated(e){(e.has("htmlFor")||!this.#t)&&this.#d(),e.has("open")&&this.#p()}#d(){this.#a();let e=this.htmlFor?He(this,this.htmlFor):this.previousElementSibling;if(e){this.#t=e,this.#i=Es(Oe(e),"aria-describedby","ariaDescribedByElements",this);for(let[t,i]of this.#m)e.addEventListener(t,i);this.#l(e)}}#a(){let e=this.#t;if(e){for(let[t,i]of this.#m)e.removeEventListener(t,i);this.#i?.(),this.#i=void 0,this.#t=null}}#l(e){let t=Oe(e);e.textContent?.trim()||["aria-label","aria-labelledby","title","label"].some(r=>e.hasAttribute(r)||t.hasAttribute(r))||C("tooltip-label","<und-tooltip> describes its trigger but does not name it: give the trigger its own accessible name.")}#c=()=>{this.#r!==void 0&&clearTimeout(this.#r),this.#r=void 0};#u(e,t){if(this.#c(),t<=0){this.#h(e,e?"hover":"leave");return}this.#r=setTimeout(()=>{this.#r=void 0,this.#h(e,e?"hover":"leave")},t)}#h(e,t){this.#c(),!(e&&this.disabled)&&e!==this.open&&(this.open=e,this.emit("und-open-change",{open:e,reason:t}))}#p(){if(!this.isConnected)return;let e=this.matches(":popover-open");if(this.open&&!e){try{this.showPopover()}catch{this.open=!1;return}this.#s.start(),this.#o.activate(),De&&De!==this&&(De.open=!1),De=this}else!this.open&&e&&(De===this&&(De=null),this.hidePopover(),this.#s.stop(),this.#o.deactivate(),Fs=performance.now());this.setCustomState("open",this.open)}#f=()=>{this.#u(!1,this.closeDelay)};#m=[["pointerdown",e=>{this.#n=e.pointerType,this.#h(!1,"press")}],["pointerenter",e=>{if(e.pointerType==="touch")return;let t=De!==null||performance.now()-Fs<Tl;this.#u(!0,t?0:this.openDelay)}],["pointerleave",()=>this.#u(!1,this.closeDelay)],["focusin",()=>{this.#n!=="touch"&&T()?.matches(":focus-visible")&&this.#h(!0,"focus")}],["focusout",()=>{this.#n="",this.#h(!1,"blur")}]];render(){return l`<slot></slot>`}};di.define();var ci=class extends p{static tagName="und-visually-hidden";static properties={focusable:{type:Boolean,reflect:!0}};static styles=u` :host(:not([focusable])),:host([focusable]:not(:focus-within)){position:absolute !important;inline-size:1px !important;block-size:1px !important;margin:-1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;inset-block-start:0 !important;inset-inline-start:0 !important;clip-path:inset(50%) !important;white-space:nowrap !important;pointer-events:none !important;user-select:none !important}:host([hidden]){display:none !important}
1474
1474
 
1475
1475
 
1476
1476
 
@@ -1491,7 +1491,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
1491
1491
 
1492
1492
 
1493
1493
 
1494
- `;constructor(){super(),this.focusable=!1}render(){return a`<slot></slot>`}};ci.define();var Ve={errorPrefix:"Error:",required:"(required)",optional:"(optional)",warningPrefix:"Warning:",successPrefix:"Success:",clear:"Clear",about:"About"},Ml=Object.keys(Ve);function Nl(n){for(let e of Ml){if(!Object.hasOwn(n,e))continue;let t=n[e];typeof t=="string"&&(Ve[e]=t)}}function fe(){return Ve}var B="data-und-part";function g(n,e,t){let i=document.createElement(n);return i.className=e,i.setAttribute(B,t),i}function Q(n,e,t){if(e!==null){let r=n.firstChild;r instanceof Text||(r=document.createTextNode(""),n.prepend(r)),r.data!==e&&(r.data=e)}let i=n.querySelector(":scope > .und-field__indicator");if(!t){i?.remove();return}i||(i=g("span","und-field__indicator","indicator"),i.setAttribute("aria-hidden","true"),n.append(i)),i.textContent!==Ve[t]&&(i.textContent=Ve[t])}var Vs="http://www.w3.org/2000/svg",Dl={error:["M12 2.5a9.5 9.5 0 1 0 0 19 9.5 9.5 0 0 0 0-19z","m15 9-6 6","m9 9 6 6"],warning:["m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3","M12 9v4","M12 17h.01"],success:["M12 2.5a9.5 9.5 0 1 0 0 19 9.5 9.5 0 0 0 0-19z","m8.5 12 2.5 2.5 4.5-5"]};function Hn(n){let e=document.createElementNS(Vs,"svg");e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.setAttribute("stroke","currentColor"),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("aria-hidden","true"),e.setAttribute("focusable","false"),e.dataset.glyph=n;for(let t of Dl[n]){let i=document.createElementNS(Vs,"path");i.setAttribute("d",t),e.append(i)}return e}function Ht(n,e){n.hidden!==!e&&(n.hidden=!e);let t=n.firstElementChild;if(!e){t?.remove();return}t?.dataset.glyph!==e&&(t?.remove(),n.append(Hn(e)))}function oe(n,e,t="error",i){n.hidden!==!e&&(n.hidden=!e),n.dataset.status!==t&&(n.dataset.status=t),i&&n.classList.toggle("und-field__error--attached",i==="attached");let r=n.querySelector(":scope > .und-field__status-icon");r||(r=g("span","und-field__status-icon","status-icon"),r.setAttribute("aria-hidden","true"),n.prepend(r)),Ht(r,e?t:void 0);let s=n.querySelector(":scope > .und-field__error-prefix");s||(s=g("span","und-field__error-prefix","error-prefix"),r.after(s));let l=`${t==="warning"?Ve.warningPrefix:t==="success"?Ve.successPrefix:Ve.errorPrefix} `;s.textContent!==l&&(s.textContent=l);let d=s.nextSibling;d instanceof Text||(d=document.createTextNode(""),s.after(d)),d.data!==e&&(d.data=e)}function U(...n){return[...new Set(n.flatMap(e=>(e??"").split(/\s+/)).filter(Boolean))].join(" ")}function ui(n,e){let t=[...n.childNodes].filter(i=>!(i instanceof Element&&(i.hasAttribute(B)||i.hasAttribute("slot")))&&!(i instanceof Text&&!i.data.trim())&&!(i instanceof Comment));return e.append(...t),t.length>0}var L=u` @layer und.components{.und-error-summary{padding:var(--und-inset-card,1rem);border:var(--und-border-width-thick,2px) solid var(--und-status-danger-fg,#b81e27);border-radius:var(--und-shape-control,0.375rem);color:var(--und-fg-default,#23252c)}.und-error-summary[hidden]{display:none}.und-error-summary:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:var(--und-focus-offset,2px)}.und-error-summary__title{margin:0 0 0.5rem;font-size:var(--und-text-heading-sm-size,1.125rem);font-weight:700;line-height:var(--und-text-heading-sm-lh,1.4)}.und-error-summary__list{margin:0;line-height:1.5;padding-inline-start:1.25rem}.und-error-summary__list a{display:inline-block;min-block-size:var(--und-target-min,24px);padding-block:0.125rem;color:var(--und-status-danger-fg,#b81e27);font-weight:600;text-decoration:underline}.und-error-summary__list a:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:var(--und-focus-offset,2px)}}
1494
+ `;constructor(){super(),this.focusable=!1}render(){return l`<slot></slot>`}};ci.define();var Ve={errorPrefix:"Error:",required:"(required)",optional:"(optional)",warningPrefix:"Warning:",successPrefix:"Success:",clear:"Clear",about:"About"},Ml=Object.keys(Ve);function Nl(n){for(let e of Ml){if(!Object.hasOwn(n,e))continue;let t=n[e];typeof t=="string"&&(Ve[e]=t)}}function fe(){return Ve}var B="data-und-part";function g(n,e,t){let i=document.createElement(n);return i.className=e,i.setAttribute(B,t),i}function Q(n,e,t){if(e!==null){let r=n.firstChild;r instanceof Text||(r=document.createTextNode(""),n.prepend(r)),r.data!==e&&(r.data=e)}let i=n.querySelector(":scope > .und-field__indicator");if(!t){i?.remove();return}i||(i=g("span","und-field__indicator","indicator"),i.setAttribute("aria-hidden","true"),n.append(i)),i.textContent!==Ve[t]&&(i.textContent=Ve[t])}var Vs="http://www.w3.org/2000/svg",Dl={error:["M12 2.5a9.5 9.5 0 1 0 0 19 9.5 9.5 0 0 0 0-19z","m15 9-6 6","m9 9 6 6"],warning:["m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3","M12 9v4","M12 17h.01"],success:["M12 2.5a9.5 9.5 0 1 0 0 19 9.5 9.5 0 0 0 0-19z","m8.5 12 2.5 2.5 4.5-5"]};function Hn(n){let e=document.createElementNS(Vs,"svg");e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.setAttribute("stroke","currentColor"),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("aria-hidden","true"),e.setAttribute("focusable","false"),e.dataset.glyph=n;for(let t of Dl[n]){let i=document.createElementNS(Vs,"path");i.setAttribute("d",t),e.append(i)}return e}function Ht(n,e){n.hidden!==!e&&(n.hidden=!e);let t=n.firstElementChild;if(!e){t?.remove();return}t?.dataset.glyph!==e&&(t?.remove(),n.append(Hn(e)))}function oe(n,e,t="error",i){n.hidden!==!e&&(n.hidden=!e),n.dataset.status!==t&&(n.dataset.status=t),i&&n.classList.toggle("und-field__error--attached",i==="attached");let r=n.querySelector(":scope > .und-field__status-icon");r||(r=g("span","und-field__status-icon","status-icon"),r.setAttribute("aria-hidden","true"),n.prepend(r)),Ht(r,e?t:void 0);let s=n.querySelector(":scope > .und-field__error-prefix");s||(s=g("span","und-field__error-prefix","error-prefix"),r.after(s));let a=`${t==="warning"?Ve.warningPrefix:t==="success"?Ve.successPrefix:Ve.errorPrefix} `;s.textContent!==a&&(s.textContent=a);let d=s.nextSibling;d instanceof Text||(d=document.createTextNode(""),s.after(d)),d.data!==e&&(d.data=e)}function U(...n){return[...new Set(n.flatMap(e=>(e??"").split(/\s+/)).filter(Boolean))].join(" ")}function ui(n,e){let t=[...n.childNodes].filter(i=>!(i instanceof Element&&(i.hasAttribute(B)||i.hasAttribute("slot")))&&!(i instanceof Text&&!i.data.trim())&&!(i instanceof Comment));return e.append(...t),t.length>0}var L=u` @layer und.components{.und-error-summary{padding:var(--und-inset-card,1rem);border:var(--und-border-width-thick,2px) solid var(--und-status-danger-fg,#b81e27);border-radius:var(--und-shape-control,0.375rem);color:var(--und-fg-default,#23252c)}.und-error-summary[hidden]{display:none}.und-error-summary:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:var(--und-focus-offset,2px)}.und-error-summary__title{margin:0 0 0.5rem;font-size:var(--und-text-heading-sm-size,1.125rem);font-weight:700;line-height:var(--und-text-heading-sm-lh,1.4)}.und-error-summary__list{margin:0;line-height:1.5;padding-inline-start:1.25rem}.und-error-summary__list a{display:inline-block;min-block-size:var(--und-target-min,24px);padding-block:0.125rem;color:var(--und-status-danger-fg,#b81e27);font-weight:600;text-decoration:underline}.und-error-summary__list a:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:var(--und-focus-offset,2px)}}
1495
1495
 
1496
1496
 
1497
1497
 
@@ -1745,8 +1745,8 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
1745
1745
 
1746
1746
 
1747
1747
 
1748
- `;static properties={label:{},description:{},error:{},required:{type:Boolean,reflect:!0},optional:{type:Boolean,reflect:!0},status:{reflect:!0},statusMessage:{attribute:"status-message"},statusVariant:{attribute:"status-variant",reflect:!0},labelHidden:{type:Boolean,attribute:"label-hidden",reflect:!0}};#e=E("und-form-field");#t;#i;#r;#n;#s=new WeakMap;#o="";constructor(){super(),this.required=!1,this.optional=!1,this.labelHidden=!1}get control(){return this.#n}connectedCallback(){super.connectedCallback(),!!1&&(D(this,[z,L]),!this.#i&&(this.#i=g("p","und-field__description","description"),this.#i.id=`${this.#e}-description`,this.#i.slot="description",this.#r=g("p","und-field__error","error"),this.#r.id=`${this.#e}-error`,this.#r.slot="error",this.#r.hidden=!0,this.prepend(this.#i),this.append(this.#r),this.addEventListener("invalid",this.#l,!0),this.addEventListener("input",this.#c),this.addEventListener("change",this.#c)))}render(){return a`<slot name="label"></slot><slot name="description"></slot>
1749
- <slot @slotchange=${this.#a}></slot><slot name="error"></slot>`}updated(e){if(super.updated(e),!this.#i||!this.#r)return;let t=this.querySelector(Il)??void 0;t!==this.#n&&this.#d(t);let i=this.#t;if(!t||!i)return;let s=this.required||t.required===!0?"required":this.optional?"optional":void 0;Q(i,this.label??"",s),i.hidden=!this.label,this.required&&"required"in t&&(t.required=!0);let o=this.description??"";this.#i.textContent=o,this.#i.hidden=!o,t.setCustomValidity?.(this.error??"");let l=this.error||this.#o,d=l?"error":this.status==="error"||this.status==="warning"||this.status==="success"?this.status:void 0,h=l||(d?this.statusMessage??"":"");oe(this.#r,h,d??"error",this.statusVariant==="attached"?"attached":"detached");for(let m of[i,this.#i])m.classList.toggle("und-field__label--hidden",this.labelHidden);let f=U(this.#s.get(t),o?this.#i.id:"",h?this.#r.id:"");f?t.setAttribute("aria-describedby",f):t.removeAttribute("aria-describedby"),d==="error"?t.setAttribute("aria-invalid","true"):t.removeAttribute("aria-invalid"),i instanceof HTMLLabelElement?i.htmlFor=t.id:this.label&&t.setAttribute("aria-labelledby",i.id),this.setCustomState("invalid",d==="error")}formResetCallback(){this.#o="",this.requestUpdate()}#d(e){if(this.#t?.remove(),this.#t=void 0,this.#n=e,!e){C("control:und-form-field","<und-form-field> found no form control to label.");return}e.id||=`${this.#e}-control`,this.#s.has(e)||this.#s.set(e,e.getAttribute("aria-describedby")??"");let i=Bl.has(e.localName)?g("label","und-field__label","label"):g("div","und-field__label","label");i.id=`${this.#e}-label`,i.slot="label",this.#t=i,this.prepend(i)}#a=()=>{this.requestUpdate()};#l=e=>{e.target!==this.#n||this.error||(this.#o=this.#n.validationMessage??"",this.requestUpdate())};#c=e=>{let t=this.#n;e.target!==t||!this.#o||!t||(this.#o=t.validity?.valid===!1?t.validationMessage??"":"",this.requestUpdate())}};var pi=0;function Pl(n){let e=[],t=new Set;for(let i of Array.from(n.elements))if(!(!i.willValidate||i.validity?.valid!==!1)){if(i.type==="radio"&&i.name){if(t.has(i.name))continue;t.add(i.name)}pi+=1,i.id||=`und-invalid-${pi}`,e.push({control:i,id:i.id,message:i.validationMessage})}return e}function Rl(n,e,t={}){if(D(n,L),n.classList.add("und-error-summary"),n.replaceChildren(),n.hidden=e.length===0,e.length===0)return;pi+=1;let i=document.createElement("h2");i.className="und-error-summary__title",i.id=n.id?`${n.id}-title`:`und-error-summary-${pi}-title`,i.textContent=t.title??"There is a problem";let r=document.createElement("ul");r.className="und-error-summary__list";for(let s of e){let o=document.createElement("li"),l=document.createElement("a");l.href=`#${s.id}`,l.textContent=s.message,l.addEventListener("click",d=>{d.preventDefault(),(s.control.labels?.[0]??s.control).scrollIntoView({block:"center"}),s.control.focus({preventScroll:!0})}),o.append(l),r.append(o)}n.setAttribute("aria-labelledby",i.id),n.tabIndex=-1,n.append(i,r),t.focus!==!1&&n.focus()}function lf(n,e,t){n.checkValidity();let i=Pl(n);return Rl(e,i,t),i.length===0}hi.define();var F=class extends p{static formAssociated=!0;static styles=u` :host{display:block}:host([hidden]){display:none}
1748
+ `;static properties={label:{},description:{},error:{},required:{type:Boolean,reflect:!0},optional:{type:Boolean,reflect:!0},status:{reflect:!0},statusMessage:{attribute:"status-message"},statusVariant:{attribute:"status-variant",reflect:!0},labelHidden:{type:Boolean,attribute:"label-hidden",reflect:!0}};#e=E("und-form-field");#t;#i;#r;#n;#s=new WeakMap;#o="";constructor(){super(),this.required=!1,this.optional=!1,this.labelHidden=!1}get control(){return this.#n}connectedCallback(){super.connectedCallback(),!!1&&(D(this,[z,L]),!this.#i&&(this.#i=g("p","und-field__description","description"),this.#i.id=`${this.#e}-description`,this.#i.slot="description",this.#r=g("p","und-field__error","error"),this.#r.id=`${this.#e}-error`,this.#r.slot="error",this.#r.hidden=!0,this.prepend(this.#i),this.append(this.#r),this.addEventListener("invalid",this.#l,!0),this.addEventListener("input",this.#c),this.addEventListener("change",this.#c)))}render(){return l`<slot name="label"></slot><slot name="description"></slot>
1749
+ <slot @slotchange=${this.#a}></slot><slot name="error"></slot>`}updated(e){if(super.updated(e),!this.#i||!this.#r)return;let t=this.querySelector(Il)??void 0;t!==this.#n&&this.#d(t);let i=this.#t;if(!t||!i)return;let s=this.required||t.required===!0?"required":this.optional?"optional":void 0;Q(i,this.label??"",s),i.hidden=!this.label,this.required&&"required"in t&&(t.required=!0);let o=this.description??"";this.#i.textContent=o,this.#i.hidden=!o,t.setCustomValidity?.(this.error??"");let a=this.error||this.#o,d=a?"error":this.status==="error"||this.status==="warning"||this.status==="success"?this.status:void 0,h=a||(d?this.statusMessage??"":"");oe(this.#r,h,d??"error",this.statusVariant==="attached"?"attached":"detached");for(let m of[i,this.#i])m.classList.toggle("und-field__label--hidden",this.labelHidden);let f=U(this.#s.get(t),o?this.#i.id:"",h?this.#r.id:"");f?t.setAttribute("aria-describedby",f):t.removeAttribute("aria-describedby"),d==="error"?t.setAttribute("aria-invalid","true"):t.removeAttribute("aria-invalid"),i instanceof HTMLLabelElement?i.htmlFor=t.id:this.label&&t.setAttribute("aria-labelledby",i.id),this.setCustomState("invalid",d==="error")}formResetCallback(){this.#o="",this.requestUpdate()}#d(e){if(this.#t?.remove(),this.#t=void 0,this.#n=e,!e){C("control:und-form-field","<und-form-field> found no form control to label.");return}e.id||=`${this.#e}-control`,this.#s.has(e)||this.#s.set(e,e.getAttribute("aria-describedby")??"");let i=Bl.has(e.localName)?g("label","und-field__label","label"):g("div","und-field__label","label");i.id=`${this.#e}-label`,i.slot="label",this.#t=i,this.prepend(i)}#a=()=>{this.requestUpdate()};#l=e=>{e.target!==this.#n||this.error||(this.#o=this.#n.validationMessage??"",this.requestUpdate())};#c=e=>{let t=this.#n;e.target!==t||!this.#o||!t||(this.#o=t.validity?.valid===!1?t.validationMessage??"":"",this.requestUpdate())}};var pi=0;function Pl(n){let e=[],t=new Set;for(let i of Array.from(n.elements))if(!(!i.willValidate||i.validity?.valid!==!1)){if(i.type==="radio"&&i.name){if(t.has(i.name))continue;t.add(i.name)}pi+=1,i.id||=`und-invalid-${pi}`,e.push({control:i,id:i.id,message:i.validationMessage})}return e}function Rl(n,e,t={}){if(D(n,L),n.classList.add("und-error-summary"),n.replaceChildren(),n.hidden=e.length===0,e.length===0)return;pi+=1;let i=document.createElement("h2");i.className="und-error-summary__title",i.id=n.id?`${n.id}-title`:`und-error-summary-${pi}-title`,i.textContent=t.title??"There is a problem";let r=document.createElement("ul");r.className="und-error-summary__list";for(let s of e){let o=document.createElement("li"),a=document.createElement("a");a.href=`#${s.id}`,a.textContent=s.message,a.addEventListener("click",d=>{d.preventDefault(),(s.control.labels?.[0]??s.control).scrollIntoView({block:"center"}),s.control.focus({preventScroll:!0})}),o.append(a),r.append(o)}n.setAttribute("aria-labelledby",i.id),n.tabIndex=-1,n.append(i,r),t.focus!==!1&&n.focus()}function lf(n,e,t){n.checkValidity();let i=Pl(n);return Rl(e,i,t),i.length===0}hi.define();var F=class extends p{static formAssociated=!0;static styles=u` :host{display:block}:host([hidden]){display:none}
1750
1750
 
1751
1751
 
1752
1752
 
@@ -1754,7 +1754,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
1754
1754
 
1755
1755
 
1756
1756
 
1757
- `;static lightStyles=[z,L];static properties={label:{},description:{},error:{},required:{type:Boolean,reflect:!0},optional:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},name:{reflect:!0},status:{reflect:!0},statusMessage:{attribute:"status-message"},statusVariant:{attribute:"status-variant",reflect:!0},labelHidden:{type:Boolean,attribute:"label-hidden",reflect:!0},labelTooltip:{attribute:"label-tooltip"}};static defaultStatusVariant="detached";control;labelEl;descriptionEl;errorEl;hasLabelContent=!1;baseId;#e="";#t="";#i=!1;constructor(){super(),this.required=!1,this.optional=!1,this.disabled=!1,this.labelHidden=!1,this.baseId=E(this.constructor.tagName||"und-field")}get form(){return this.control?.form??null}get validity(){return this.control?.validity}get validationMessage(){return this.control?.validationMessage??""}checkValidity(){return this.control?.checkValidity()??!0}reportValidity(){return this.control?.reportValidity()??!0}focus(e){this.control?.focus(e)}blur(){this.control?.blur()}connectedCallback(){if(super.connectedCallback(),D(this,this.constructor.lightStyles),this.#i)return;this.#i=!0;let e=this.findProvidedControl();e&&(this.disabled||=e.disabled,this.required||=e.required,this.name??=e.name||void 0);let t=e??this.createControl();t.id||=`${this.baseId}-control`,this.#e=t.getAttribute("aria-describedby")??"",this.#o(t),this.control=t,this.labelEl=this.createLabel(),this.descriptionEl=g("p","und-field__description","description"),this.descriptionEl.id=`${this.baseId}-description`,this.errorEl=g("p","und-field__error","error"),this.errorEl.id=`${this.baseId}-error`,this.errorEl.hidden=!0,this.assemble({control:t,label:this.labelEl,description:this.descriptionEl,error:this.errorEl}),t.addEventListener("invalid",this.#r),t.addEventListener("input",this.#n),t.addEventListener("change",this.#n)}findProvidedControl(){return null}createLabel(){let e=g("label","und-field__label","label");return e.id=`${this.baseId}-label`,e}get shownError(){return this.error||this.#t}get shownStatus(){return this.shownError?"error":ql(this.status)?this.status:void 0}get resolvedStatusVariant(){let e=this.statusVariant;return e==="attached"||e==="detached"?e:this.constructor.defaultStatusVariant}render(){return a`<slot></slot>`}updated(e){super.updated(e);let t=this.control;t&&(t.required=this.required,t.disabled=this.disabled,this.name?t.name=this.name:t.removeAttribute("name"),t.setCustomValidity(this.error??""),this.syncParts())}syncParts(){let e=this.control,t=this.labelEl;if(!e||!t||!this.descriptionEl||!this.errorEl)return;let i=this.required?"required":this.optional?"optional":void 0,r=this.label??"",s=!!r||this.hasLabelContent;t.hidden=!s,s?(Q(t,this.hasLabelContent?null:r,i),t instanceof HTMLLabelElement&&(t.htmlFor=e.id)):this.#s(e)||C(`label:${this.localName}`,`<${this.localName}> has no label. Set the label attribute (or aria-label) so it has an accessible name.`);let o=this.description??"";this.descriptionEl.textContent=o,this.descriptionEl.hidden=!o;let l=this.shownError,d=this.shownStatus,h=l||(d?this.statusMessage??"":"");oe(this.errorEl,h,d??"error",this.resolvedStatusVariant),this.errorEl.parentElement?.classList.toggle("und-field--label-hidden",this.labelHidden),Ul(t,this.labelTooltip,r),e.setAttribute("aria-describedby",U(this.#e,o?this.descriptionEl.id:"",h?this.errorEl.id:"")),e.getAttribute("aria-describedby")||e.removeAttribute("aria-describedby"),d==="error"?e.setAttribute("aria-invalid","true"):e.removeAttribute("aria-invalid"),this.setCustomState("invalid",d==="error")}formResetCallback(){this.resetControl(),this.#t="",this.requestUpdate()}formDisabledCallback(e){this.setCustomState("disabled",e||this.disabled)}#r=()=>{let e=this.control;!e||this.error||(this.#t=e.validationMessage,this.requestUpdate())};#n=()=>{let e=this.control;!e||!this.#t||(this.#t=e.validity.valid?"":e.validationMessage,this.requestUpdate())};#s(e){return e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")||(e.labels?.length??0)>0}#o(e){for(let t of["aria-label","aria-labelledby"]){let i=this.getAttribute(t);i!==null&&(e.setAttribute(t,i),this.removeAttribute(t))}}};function Ul(n,e,t){let i=n.parentElement?.classList.contains("und-field__label-row")?n.parentElement:null;if(!e){i&&(i.before(n),i.remove());return}i||(i=g("span","und-field__label-row","label-row"),n.before(i),i.append(n));let r=i.querySelector(":scope > und-info-tip");r||(r=document.createElement("und-info-tip"),r.setAttribute(B,"label-tooltip"),r.setAttribute("size","sm"),i.append(r),customElements.get("und-info-tip")||C("label-tooltip",'label-tooltip needs <und-info-tip>: import "@und-ui/core/info-tip.js" or use the autoloader.'));let s=fe().about;r.setAttribute("label",t?`${s} ${t}`:s),r.textContent!==e&&(r.textContent=e),i.hidden=n.hidden}function ql(n){return n==="error"||n==="warning"||n==="success"}var ae=u` @layer und.components{.und-text-field{--_border:var(--und-border-control,#898c96);--_ring:color-mix(in srgb,var(--_border) 30%,transparent);--_focus-border:var(--und-accent-solid,#4b4dd5);--_focus-ring:var( --und-field-focus-ring,color-mix(in srgb,var(--und-accent-solid,#4b4dd5) 20%,transparent) );--_height:var(--und-text-field-height,var(--und-size-element-md,2rem));position:relative;box-sizing:border-box;display:flex;gap:var(--und-space-2,0.5rem);align-items:center;min-block-size:var(--_height);padding-block:var(--und-space-1,0.25rem);padding-inline:var(--und-space-2,0.5rem);border:var(--und-border-width,1px) solid var(--_border);border-radius:var(--und-shape-control,0.375rem);background:var(--und-bg-surface,#fff);color:var(--und-fg-default,#23252c);cursor:text;transition-duration:var(--und-duration-fast,175ms);transition-property:border-color,box-shadow;transition-timing-function:var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}@media (hover:hover){.und-text-field:hover:not(:focus-within,:has(.und-text-field__input:disabled)){box-shadow:inset 0 0 0 2px var(--_ring)}}.und-text-field:focus-within{border-color:var(--_focus-border);box-shadow:inset 0 0 0 2px var(--_focus-ring);outline:2px solid transparent}.und-text-field--error,.und-text-field:has(.und-text-field__input[aria-invalid='true']){--_border:var(--und-status-danger-fg,#b81e27);--_focus-border:var(--_border)}.und-text-field--warning{--_border:var(--und-status-warning-fg,#a35200);--_focus-border:var(--_border)}.und-text-field--success{--_border:var(--und-status-success-fg,#18794e);--_focus-border:var(--_border)}.und-text-field:has(.und-text-field__input[readonly]){background:var(--und-bg-muted,#f1f2f6)}.und-text-field:has(.und-text-field__input:disabled){cursor:default;opacity:var(--und-disabled-opacity,0.5)}.und-text-field__input{box-sizing:border-box;flex:1 1 auto;min-inline-size:0;inline-size:100%;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:var(--und-text-field-font-size,var(--und-text-body-sm-size,0.875rem));line-height:var(--und-text-body-md-lh,1.5);text-overflow:ellipsis}.und-text-field__input:focus-visible{outline:2px solid transparent}.und-text-field__input::placeholder{color:var(--und-fg-muted,#62646e);opacity:1}.und-text-field__input:disabled{cursor:default}.und-text-field__input::-webkit-search-cancel-button{appearance:none}.und-text-field__adornment,.und-text-field__status-icon,.und-text-field__spinner{display:inline-flex;flex:none;align-items:center;color:var(--und-fg-muted,#62646e)}.und-text-field__adornment svg,.und-text-field__status-icon svg{inline-size:1rem;block-size:1rem}.und-text-field__status-icon[hidden],.und-text-field__spinner[hidden],.und-text-field__clear[hidden]{display:none}.und-text-field__status-icon{color:var(--_border)}.und-text-field__spinner::before{content:'';box-sizing:border-box;inline-size:1rem;block-size:1rem;border:2px solid var(--und-border-subtle,#d9dbe1);border-block-start-color:var(--und-fg-default,#23252c);border-radius:var(--und-radius-full,9999px);animation:und-text-field-spin var(--und-motion-spinner,0.8s) linear infinite}.und-text-field__clear{position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center;inline-size:1.25rem;block-size:1.25rem;margin:0;padding:0;border:0;border-radius:var(--und-radius-sm,0.25rem);background:transparent;color:var(--und-fg-muted,#62646e);cursor:pointer}.und-text-field__clear:hover{background:var(--und-bg-muted-hover,#e8e9ee);color:var(--und-fg-default,#23252c)}.und-text-field__clear:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:1px}.und-text-field__clear svg{inline-size:0.875rem;block-size:0.875rem}.und-text-field__clear::after{content:'';position:absolute;inset:-2px}.und-text-field--sm{--_height:var(--und-text-field-height-sm,var(--und-size-element-sm,1.75rem))}.und-text-field--sm .und-text-field__input{font-size:0.8125rem}.und-text-field--lg{--_height:var(--und-text-field-height-lg,var(--und-size-element-lg,2.25rem))}.und-text-field--lg .und-text-field__input{font-size:var(--und-text-body-md-size,1rem)}@keyframes und-text-field-spin{to{transform:rotate(1turn)}}@media (pointer:coarse){.und-text-field{min-block-size:max(var(--_height),var(--und-target-min-coarse,44px));transition-duration:0s}.und-text-field .und-text-field__input{font-size:1rem}}@media (prefers-reduced-motion:reduce){.und-text-field{transition:none}.und-text-field__spinner::before{animation-duration:2.4s}}@media (forced-colors:active){.und-text-field{border-color:CanvasText}.und-text-field:focus-within{border-color:Highlight;outline:1px solid Highlight}.und-text-field:has(.und-text-field__input:disabled){border-color:GrayText;opacity:1}}}@layer und.base{und-text-field:not(:defined){display:block;min-block-size:calc(1.4286 * 0.875rem + 0.25rem + 2.5rem)}}
1757
+ `;static lightStyles=[z,L];static properties={label:{},description:{},error:{},required:{type:Boolean,reflect:!0},optional:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},name:{reflect:!0},status:{reflect:!0},statusMessage:{attribute:"status-message"},statusVariant:{attribute:"status-variant",reflect:!0},labelHidden:{type:Boolean,attribute:"label-hidden",reflect:!0},labelTooltip:{attribute:"label-tooltip"}};static defaultStatusVariant="detached";control;labelEl;descriptionEl;errorEl;hasLabelContent=!1;baseId;#e="";#t="";#i=!1;constructor(){super(),this.required=!1,this.optional=!1,this.disabled=!1,this.labelHidden=!1,this.baseId=E(this.constructor.tagName||"und-field")}get form(){return this.control?.form??null}get validity(){return this.control?.validity}get validationMessage(){return this.control?.validationMessage??""}checkValidity(){return this.control?.checkValidity()??!0}reportValidity(){return this.control?.reportValidity()??!0}focus(e){this.control?.focus(e)}blur(){this.control?.blur()}connectedCallback(){if(super.connectedCallback(),D(this,this.constructor.lightStyles),this.#i)return;this.#i=!0;let e=this.findProvidedControl();e&&(this.disabled||=e.disabled,this.required||=e.required,this.name??=e.name||void 0);let t=e??this.createControl();t.id||=`${this.baseId}-control`,this.#e=t.getAttribute("aria-describedby")??"",this.#o(t),this.control=t,this.labelEl=this.createLabel(),this.descriptionEl=g("p","und-field__description","description"),this.descriptionEl.id=`${this.baseId}-description`,this.errorEl=g("p","und-field__error","error"),this.errorEl.id=`${this.baseId}-error`,this.errorEl.hidden=!0,this.assemble({control:t,label:this.labelEl,description:this.descriptionEl,error:this.errorEl}),t.addEventListener("invalid",this.#r),t.addEventListener("input",this.#n),t.addEventListener("change",this.#n)}findProvidedControl(){return null}createLabel(){let e=g("label","und-field__label","label");return e.id=`${this.baseId}-label`,e}get shownError(){return this.error||this.#t}get shownStatus(){return this.shownError?"error":ql(this.status)?this.status:void 0}get resolvedStatusVariant(){let e=this.statusVariant;return e==="attached"||e==="detached"?e:this.constructor.defaultStatusVariant}render(){return l`<slot></slot>`}updated(e){super.updated(e);let t=this.control;t&&(t.required=this.required,t.disabled=this.disabled,this.name?t.name=this.name:t.removeAttribute("name"),t.setCustomValidity(this.error??""),this.syncParts())}syncParts(){let e=this.control,t=this.labelEl;if(!e||!t||!this.descriptionEl||!this.errorEl)return;let i=this.required?"required":this.optional?"optional":void 0,r=this.label??"",s=!!r||this.hasLabelContent;t.hidden=!s,s?(Q(t,this.hasLabelContent?null:r,i),t instanceof HTMLLabelElement&&(t.htmlFor=e.id)):this.#s(e)||C(`label:${this.localName}`,`<${this.localName}> has no label. Set the label attribute (or aria-label) so it has an accessible name.`);let o=this.description??"";this.descriptionEl.textContent=o,this.descriptionEl.hidden=!o;let a=this.shownError,d=this.shownStatus,h=a||(d?this.statusMessage??"":"");oe(this.errorEl,h,d??"error",this.resolvedStatusVariant),this.errorEl.parentElement?.classList.toggle("und-field--label-hidden",this.labelHidden),Ul(t,this.labelTooltip,r),e.setAttribute("aria-describedby",U(this.#e,o?this.descriptionEl.id:"",h?this.errorEl.id:"")),e.getAttribute("aria-describedby")||e.removeAttribute("aria-describedby"),d==="error"?e.setAttribute("aria-invalid","true"):e.removeAttribute("aria-invalid"),this.setCustomState("invalid",d==="error")}formResetCallback(){this.resetControl(),this.#t="",this.requestUpdate()}formDisabledCallback(e){this.setCustomState("disabled",e||this.disabled)}#r=()=>{let e=this.control;!e||this.error||(this.#t=e.validationMessage,this.requestUpdate())};#n=()=>{let e=this.control;!e||!this.#t||(this.#t=e.validity.valid?"":e.validationMessage,this.requestUpdate())};#s(e){return e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")||(e.labels?.length??0)>0}#o(e){for(let t of["aria-label","aria-labelledby"]){let i=this.getAttribute(t);i!==null&&(e.setAttribute(t,i),this.removeAttribute(t))}}};function Ul(n,e,t){let i=n.parentElement?.classList.contains("und-field__label-row")?n.parentElement:null;if(!e){i&&(i.before(n),i.remove());return}i||(i=g("span","und-field__label-row","label-row"),n.before(i),i.append(n));let r=i.querySelector(":scope > und-info-tip");r||(r=document.createElement("und-info-tip"),r.setAttribute(B,"label-tooltip"),r.setAttribute("size","sm"),i.append(r),customElements.get("und-info-tip")||C("label-tooltip",'label-tooltip needs <und-info-tip>: import "@und-ui/core/info-tip.js" or use the autoloader.'));let s=fe().about;r.setAttribute("label",t?`${s} ${t}`:s),r.textContent!==e&&(r.textContent=e),i.hidden=n.hidden}function ql(n){return n==="error"||n==="warning"||n==="success"}var ae=u` @layer und.components{.und-text-field{--_border:var(--und-border-control,#898c96);--_ring:color-mix(in srgb,var(--_border) 30%,transparent);--_focus-border:var(--und-accent-solid,#4b4dd5);--_focus-ring:var( --und-field-focus-ring,color-mix(in srgb,var(--und-accent-solid,#4b4dd5) 20%,transparent) );--_height:var(--und-text-field-height,var(--und-size-element-md,2rem));position:relative;box-sizing:border-box;display:flex;gap:var(--und-space-2,0.5rem);align-items:center;min-block-size:var(--_height);padding-block:var(--und-space-1,0.25rem);padding-inline:var(--und-space-2,0.5rem);border:var(--und-border-width,1px) solid var(--_border);border-radius:var(--und-shape-control,0.375rem);background:var(--und-bg-surface,#fff);color:var(--und-fg-default,#23252c);cursor:text;transition-duration:var(--und-duration-fast,175ms);transition-property:border-color,box-shadow;transition-timing-function:var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}@media (hover:hover){.und-text-field:hover:not(:focus-within,:has(.und-text-field__input:disabled)){box-shadow:inset 0 0 0 2px var(--_ring)}}.und-text-field:focus-within{border-color:var(--_focus-border);box-shadow:inset 0 0 0 2px var(--_focus-ring);outline:2px solid transparent}.und-text-field--error,.und-text-field:has(.und-text-field__input[aria-invalid='true']){--_border:var(--und-status-danger-fg,#b81e27);--_focus-border:var(--_border)}.und-text-field--warning{--_border:var(--und-status-warning-fg,#a35200);--_focus-border:var(--_border)}.und-text-field--success{--_border:var(--und-status-success-fg,#18794e);--_focus-border:var(--_border)}.und-text-field:has(.und-text-field__input[readonly]){background:var(--und-bg-muted,#f1f2f6)}.und-text-field:has(.und-text-field__input:disabled){cursor:default;opacity:var(--und-disabled-opacity,0.5)}.und-text-field__input{box-sizing:border-box;flex:1 1 auto;min-inline-size:0;inline-size:100%;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:var(--und-text-field-font-size,var(--und-text-body-sm-size,0.875rem));line-height:var(--und-text-body-md-lh,1.5);text-overflow:ellipsis}.und-text-field__input:focus-visible{outline:2px solid transparent}.und-text-field__input::placeholder{color:var(--und-fg-muted,#62646e);opacity:1}.und-text-field__input:disabled{cursor:default}.und-text-field__input::-webkit-search-cancel-button{appearance:none}.und-text-field__adornment,.und-text-field__status-icon,.und-text-field__spinner{display:inline-flex;flex:none;align-items:center;color:var(--und-fg-muted,#62646e)}.und-text-field__adornment svg,.und-text-field__status-icon svg{inline-size:1rem;block-size:1rem}.und-text-field__status-icon[hidden],.und-text-field__spinner[hidden],.und-text-field__clear[hidden]{display:none}.und-text-field__status-icon{color:var(--_border)}.und-text-field__spinner::before{content:'';box-sizing:border-box;inline-size:1rem;block-size:1rem;border:2px solid var(--und-border-subtle,#d9dbe1);border-block-start-color:var(--und-fg-default,#23252c);border-radius:var(--und-radius-full,9999px);animation:und-text-field-spin var(--und-motion-spinner,0.8s) linear infinite}.und-text-field__clear{position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center;inline-size:1.25rem;block-size:1.25rem;margin:0;padding:0;border:0;border-radius:var(--und-radius-sm,0.25rem);background:transparent;color:var(--und-fg-muted,#62646e);cursor:pointer}.und-text-field__clear:hover{background:var(--und-bg-muted-hover,#e8e9ee);color:var(--und-fg-default,#23252c)}.und-text-field__clear:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:1px}.und-text-field__clear svg{inline-size:0.875rem;block-size:0.875rem}.und-text-field__clear::after{content:'';position:absolute;inset:-2px}.und-text-field--sm{--_height:var(--und-text-field-height-sm,var(--und-size-element-sm,1.75rem))}.und-text-field--sm .und-text-field__input{font-size:0.8125rem}.und-text-field--lg{--_height:var(--und-text-field-height-lg,var(--und-size-element-lg,2.25rem))}.und-text-field--lg .und-text-field__input{font-size:var(--und-text-body-md-size,1rem)}@keyframes und-text-field-spin{to{transform:rotate(1turn)}}@media (pointer:coarse){.und-text-field{min-block-size:max(var(--_height),var(--und-target-min-coarse,44px));transition-duration:0s}.und-text-field .und-text-field__input{font-size:1rem}}@media (prefers-reduced-motion:reduce){.und-text-field{transition:none}.und-text-field__spinner::before{animation-duration:2.4s}}@media (forced-colors:active){.und-text-field{border-color:CanvasText}.und-text-field:focus-within{border-color:Highlight;outline:1px solid Highlight}.und-text-field:has(.und-text-field__input:disabled){border-color:GrayText;opacity:1}}}@layer und.base{und-text-field:not(:defined){display:block;min-block-size:calc(1.4286 * 0.875rem + 0.25rem + 2.5rem)}}
1758
1758
 
1759
1759
 
1760
1760
 
@@ -1997,7 +1997,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
1997
1997
 
1998
1998
 
1999
1999
 
2000
- `;var Ol=[["placeholder","placeholder"],["autocomplete","autocomplete"],["inputMode","inputmode"],["enterKeyHint","enterkeyhint"],["minLength","minlength"],["maxLength","maxlength"],["pattern","pattern"],["min","min"],["max","max"],["step","step"]],yt=class extends F{static tagName="und-text-field";static defaultStatusVariant="attached";static lightStyles=[z,L,ae];static properties={type:{reflect:!0},value:{},defaultValue:{attribute:"default-value"},size:{reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},placeholder:{},autocomplete:{},inputMode:{attribute:"inputmode"},enterKeyHint:{attribute:"enterkeyhint"},minLength:{type:Number,attribute:"minlength"},maxLength:{type:Number,attribute:"maxlength"},pattern:{},min:{},max:{},step:{},clearable:{type:Boolean,reflect:!0},loading:{type:Boolean,reflect:!0}};#e;#t;#i;#r;constructor(){super(),this.type="text",this.value="",this.size="md",this.readOnly=!1,this.clearable=!1,this.loading=!1}get input(){return this.control}select(){this.input?.select()}findProvidedControl(){return this.querySelector(`:scope > input:not([${B}])`)}createControl(){let e=g("input","und-text-field__input","control");return e.setAttribute("dir","auto"),e}assemble(e){let t=e.control;t.classList.add("und-text-field__input"),t.hasAttribute(B)?t.defaultValue=this.defaultValue??this.value:(this.value||=t.value,this.defaultValue??=t.defaultValue);let i=g("div","und-field","field"),r=g("div","und-text-field","box");this.#e=r;for(let h of["start","end"]){let f=[...this.querySelectorAll(`:scope > [slot="${h}"]`)];if(f.length===0)continue;let m=g("span","und-text-field__adornment",h);m.append(...f),r.append(m)}r.insertBefore(t,r.querySelector('[data-und-part="end"]'));let s=g("button","und-text-field__clear","clear");s.type="button",s.hidden=!0,s.append(Hl()),s.addEventListener("click",()=>{t.value="",this.value="",t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("und-clear",{bubbles:!0,composed:!0})),t.focus()});let o=g("span","und-text-field__spinner","spinner");o.hidden=!0,o.setAttribute("aria-hidden","true");let l=g("span","und-text-field__status-icon","status-icon");l.hidden=!0,l.setAttribute("aria-hidden","true");let d=r.querySelector('[data-und-part="end"]');r.insertBefore(s,d),r.insertBefore(o,d),r.insertBefore(l,d),this.#t=s,this.#i=o,this.#r=l,i.append(e.label,e.description,r,e.error),this.prepend(i),r.addEventListener("click",h=>{h.target===r&&t.focus()}),t.addEventListener("input",()=>{this.value=t.value}),t.setAttribute("aria-busy","false")}resetControl(){let e=this.input;e&&(e.value=e.defaultValue,this.value=e.value)}updated(e){let t=this.input;if(t){t.type=this.type,t.readOnly=this.readOnly;for(let[s,o]of Ol){let l=this[s];l==null||l===""||Number.isNaN(l)?t.removeAttribute(o):t.setAttribute(o,String(l))}e.has("defaultValue")&&this.defaultValue!==void 0&&(t.defaultValue=this.defaultValue),t.value!==this.value&&(t.value=this.value??""),this.#e?.classList.toggle("und-text-field--sm",this.size==="sm"),this.#e?.classList.toggle("und-text-field--lg",this.size==="lg")}super.updated(e);let i=this.shownStatus;for(let s of["error","warning","success"])this.#e?.classList.toggle(`und-text-field--${s}`,i===s);this.#r&&Ht(this.#r,this.loading?void 0:i),this.#i&&(this.#i.hidden=!this.loading),t&&t.setAttribute("aria-busy",String(this.loading));let r=this.#t;if(r){let s=fe().clear;r.getAttribute("aria-label")!==s&&r.setAttribute("aria-label",s),r.hidden=!this.clearable||!this.value||this.disabled||this.readOnly}}};function Hl(){let n=Hn("error");n.replaceChildren();for(let e of["M18 6 6 18","m6 6 12 12"]){let t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("d",e),n.append(t)}return n.dataset.glyph="clear",n}yt.define();var js=u` @layer und.components{.und-textarea{--_border:var(--und-border-control,#898c96);--_focus-border:var(--und-accent-solid,#4b4dd5);box-sizing:border-box;display:block;inline-size:100%;min-block-size:var(--und-size-element-md,2rem);max-block-size:var(--und-textarea-max-height,none);margin:0;padding-block:var(--und-space-1,0.25rem);padding-inline:var(--und-space-2,0.5rem);border:var(--und-border-width,1px) solid var(--_border);border-radius:var(--und-shape-control,0.375rem);background:var(--und-bg-surface,#fff);color:var(--und-fg-default,#23252c);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;resize:vertical;transition-duration:var(--und-duration-fast,175ms);transition-property:border-color,box-shadow;transition-timing-function:var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}@media (hover:hover){.und-textarea:hover:not(:focus,:disabled){box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--_border) 30%,transparent)}}.und-textarea:focus{border-color:var(--_focus-border);box-shadow:inset 0 0 0 2px var( --und-field-focus-ring,color-mix(in srgb,var(--und-accent-solid,#4b4dd5) 20%,transparent) );outline:2px solid transparent}.und-textarea::placeholder{color:var(--und-fg-muted,#62646e);opacity:1}.und-textarea--error,.und-textarea[aria-invalid='true']{--_border:var(--und-status-danger-fg,#b81e27);--_focus-border:var(--_border)}.und-textarea--warning{--_border:var(--und-status-warning-fg,#a35200);--_focus-border:var(--_border)}.und-textarea--success{--_border:var(--und-status-success-fg,#18794e);--_focus-border:var(--_border)}.und-textarea[readonly]{background:var(--und-bg-muted,#f1f2f6)}.und-textarea:disabled{cursor:default;opacity:var(--und-disabled-opacity,0.5)}.und-textarea--lg{padding-block:var(--und-space-2,0.5rem)}.und-textarea--auto-resize{min-block-size:calc( var(--und-textarea-rows,2) * 1lh + 0.5rem + 2 * var(--und-border-width,1px) );field-sizing:content;overflow-y:auto}.und-textarea--resize-none{resize:none}.und-textarea--resize-both{resize:both}.und-textarea--counter{padding-block-end:var(--und-space-7,1.75rem)}.und-textarea__counter{position:relative;z-index:2;align-self:flex-end;margin-block-start:calc( -1 * ( var(--und-field-gap,var(--und-space-1,0.25rem)) + var(--und-space-1,0.25rem) + 1.25rem + var(--und-border-width,1px) ) );margin-inline-end:calc(var(--und-space-2,0.5rem) + var(--und-border-width,1px));color:var(--und-fg-muted,#62646e);font-size:var(--und-text-caption-size,0.75rem);font-variant-numeric:tabular-nums;line-height:1.25rem;pointer-events:none}.und-textarea__counter + .und-field__error--attached{margin-block-start:calc( -1 * ( var(--und-space-4,1rem) + var(--und-space-1,0.25rem) + var(--und-border-width,1px) + var(--und-field-gap,var(--und-space-1,0.25rem)) ) );padding-block-start:calc(var(--und-space-4,1rem) + var(--und-space-2,0.5rem))}.und-textarea__counter[hidden]{display:none}.und-textarea__counter--over{color:var(--und-status-danger-fg,#b81e27)}@media (pointer:coarse){.und-textarea{transition-duration:0s;font-size:1rem}}@media (prefers-reduced-motion:reduce){.und-textarea{transition:none}}@media (forced-colors:active){.und-textarea{border-color:CanvasText}.und-textarea:focus{border-color:Highlight;outline:1px solid Highlight}.und-textarea:disabled{border-color:GrayText;opacity:1}}}@layer und.base{und-textarea:not(:defined){display:block;min-block-size:calc(1.4286 * 0.875rem + 0.25rem + 4.5em + 0.5rem)}}
2000
+ `;var Ol=[["placeholder","placeholder"],["autocomplete","autocomplete"],["inputMode","inputmode"],["enterKeyHint","enterkeyhint"],["minLength","minlength"],["maxLength","maxlength"],["pattern","pattern"],["min","min"],["max","max"],["step","step"]],yt=class extends F{static tagName="und-text-field";static defaultStatusVariant="attached";static lightStyles=[z,L,ae];static properties={type:{reflect:!0},value:{},defaultValue:{attribute:"default-value"},size:{reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},placeholder:{},autocomplete:{},inputMode:{attribute:"inputmode"},enterKeyHint:{attribute:"enterkeyhint"},minLength:{type:Number,attribute:"minlength"},maxLength:{type:Number,attribute:"maxlength"},pattern:{},min:{},max:{},step:{},clearable:{type:Boolean,reflect:!0},loading:{type:Boolean,reflect:!0}};#e;#t;#i;#r;constructor(){super(),this.type="text",this.value="",this.size="md",this.readOnly=!1,this.clearable=!1,this.loading=!1}get input(){return this.control}select(){this.input?.select()}findProvidedControl(){return this.querySelector(`:scope > input:not([${B}])`)}createControl(){let e=g("input","und-text-field__input","control");return e.setAttribute("dir","auto"),e}assemble(e){let t=e.control;t.classList.add("und-text-field__input"),t.hasAttribute(B)?t.defaultValue=this.defaultValue??this.value:(this.value||=t.value,this.defaultValue??=t.defaultValue);let i=g("div","und-field","field"),r=g("div","und-text-field","box");this.#e=r;for(let h of["start","end"]){let f=[...this.querySelectorAll(`:scope > [slot="${h}"]`)];if(f.length===0)continue;let m=g("span","und-text-field__adornment",h);m.append(...f),r.append(m)}r.insertBefore(t,r.querySelector('[data-und-part="end"]'));let s=g("button","und-text-field__clear","clear");s.type="button",s.hidden=!0,s.append(Hl()),s.addEventListener("click",()=>{t.value="",this.value="",t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("und-clear",{bubbles:!0,composed:!0})),t.focus()});let o=g("span","und-text-field__spinner","spinner");o.hidden=!0,o.setAttribute("aria-hidden","true");let a=g("span","und-text-field__status-icon","status-icon");a.hidden=!0,a.setAttribute("aria-hidden","true");let d=r.querySelector('[data-und-part="end"]');r.insertBefore(s,d),r.insertBefore(o,d),r.insertBefore(a,d),this.#t=s,this.#i=o,this.#r=a,i.append(e.label,e.description,r,e.error),this.prepend(i),r.addEventListener("click",h=>{h.target===r&&t.focus()}),t.addEventListener("input",()=>{this.value=t.value}),t.setAttribute("aria-busy","false")}resetControl(){let e=this.input;e&&(e.value=e.defaultValue,this.value=e.value)}updated(e){let t=this.input;if(t){t.type=this.type,t.readOnly=this.readOnly;for(let[s,o]of Ol){let a=this[s];a==null||a===""||Number.isNaN(a)?t.removeAttribute(o):t.setAttribute(o,String(a))}e.has("defaultValue")&&this.defaultValue!==void 0&&(t.defaultValue=this.defaultValue),t.value!==this.value&&(t.value=this.value??""),this.#e?.classList.toggle("und-text-field--sm",this.size==="sm"),this.#e?.classList.toggle("und-text-field--lg",this.size==="lg")}super.updated(e);let i=this.shownStatus;for(let s of["error","warning","success"])this.#e?.classList.toggle(`und-text-field--${s}`,i===s);this.#r&&Ht(this.#r,this.loading?void 0:i),this.#i&&(this.#i.hidden=!this.loading),t&&t.setAttribute("aria-busy",String(this.loading));let r=this.#t;if(r){let s=fe().clear;r.getAttribute("aria-label")!==s&&r.setAttribute("aria-label",s),r.hidden=!this.clearable||!this.value||this.disabled||this.readOnly}}};function Hl(){let n=Hn("error");n.replaceChildren();for(let e of["M18 6 6 18","m6 6 12 12"]){let t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("d",e),n.append(t)}return n.dataset.glyph="clear",n}yt.define();var js=u` @layer und.components{.und-textarea{--_border:var(--und-border-control,#898c96);--_focus-border:var(--und-accent-solid,#4b4dd5);box-sizing:border-box;display:block;inline-size:100%;min-block-size:var(--und-size-element-md,2rem);max-block-size:var(--und-textarea-max-height,none);margin:0;padding-block:var(--und-space-1,0.25rem);padding-inline:var(--und-space-2,0.5rem);border:var(--und-border-width,1px) solid var(--_border);border-radius:var(--und-shape-control,0.375rem);background:var(--und-bg-surface,#fff);color:var(--und-fg-default,#23252c);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;resize:vertical;transition-duration:var(--und-duration-fast,175ms);transition-property:border-color,box-shadow;transition-timing-function:var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}@media (hover:hover){.und-textarea:hover:not(:focus,:disabled){box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--_border) 30%,transparent)}}.und-textarea:focus{border-color:var(--_focus-border);box-shadow:inset 0 0 0 2px var( --und-field-focus-ring,color-mix(in srgb,var(--und-accent-solid,#4b4dd5) 20%,transparent) );outline:2px solid transparent}.und-textarea::placeholder{color:var(--und-fg-muted,#62646e);opacity:1}.und-textarea--error,.und-textarea[aria-invalid='true']{--_border:var(--und-status-danger-fg,#b81e27);--_focus-border:var(--_border)}.und-textarea--warning{--_border:var(--und-status-warning-fg,#a35200);--_focus-border:var(--_border)}.und-textarea--success{--_border:var(--und-status-success-fg,#18794e);--_focus-border:var(--_border)}.und-textarea[readonly]{background:var(--und-bg-muted,#f1f2f6)}.und-textarea:disabled{cursor:default;opacity:var(--und-disabled-opacity,0.5)}.und-textarea--lg{padding-block:var(--und-space-2,0.5rem)}.und-textarea--auto-resize{min-block-size:calc( var(--und-textarea-rows,2) * 1lh + 0.5rem + 2 * var(--und-border-width,1px) );field-sizing:content;overflow-y:auto}.und-textarea--resize-none{resize:none}.und-textarea--resize-both{resize:both}.und-textarea--counter{padding-block-end:var(--und-space-7,1.75rem)}.und-textarea__counter{position:relative;z-index:2;align-self:flex-end;margin-block-start:calc( -1 * ( var(--und-field-gap,var(--und-space-1,0.25rem)) + var(--und-space-1,0.25rem) + 1.25rem + var(--und-border-width,1px) ) );margin-inline-end:calc(var(--und-space-2,0.5rem) + var(--und-border-width,1px));color:var(--und-fg-muted,#62646e);font-size:var(--und-text-caption-size,0.75rem);font-variant-numeric:tabular-nums;line-height:1.25rem;pointer-events:none}.und-textarea__counter + .und-field__error--attached{margin-block-start:calc( -1 * ( var(--und-space-4,1rem) + var(--und-space-1,0.25rem) + var(--und-border-width,1px) + var(--und-field-gap,var(--und-space-1,0.25rem)) ) );padding-block-start:calc(var(--und-space-4,1rem) + var(--und-space-2,0.5rem))}.und-textarea__counter[hidden]{display:none}.und-textarea__counter--over{color:var(--und-status-danger-fg,#b81e27)}@media (pointer:coarse){.und-textarea{transition-duration:0s;font-size:1rem}}@media (prefers-reduced-motion:reduce){.und-textarea{transition:none}}@media (forced-colors:active){.und-textarea{border-color:CanvasText}.und-textarea:focus{border-color:Highlight;outline:1px solid Highlight}.und-textarea:disabled{border-color:GrayText;opacity:1}}}@layer und.base{und-textarea:not(:defined){display:block;min-block-size:calc(1.4286 * 0.875rem + 0.25rem + 4.5em + 0.5rem)}}
2001
2001
 
2002
2002
 
2003
2003
 
@@ -2578,7 +2578,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
2578
2578
 
2579
2579
 
2580
2580
 
2581
- `;static properties={value:{reflect:!0},label:{},description:{},checked:{type:Boolean},disabled:{type:Boolean,reflect:!0}};#e;#t;#i;#r=!1;#n=E("und-radio");constructor(){super(),this.value="",this.checked=!1,this.disabled=!1}get input(){return this.#e}focus(e){this.input?.focus(e)}connectedCallback(){if(super.connectedCallback(),!1)return;let e=this.constructor.block;if(D(this,this.constructor.lightStyles),this.#e)return;let t=g("input",`${e}__input`,"control");t.type="radio",t.id=`${this.#n}-control`,t.defaultChecked=this.checked,t.addEventListener("change",()=>{this.checked=t.checked}),this.#e=t;let i=g("label",`${e}__label`,"label");i.htmlFor=t.id,this.#t=i,this.#r=ui(this,i);let r=g("p","und-field__description","description");r.id=`${this.#n}-description`,this.#i=r;let s=g("div",e,"field"),o=g("span",`${e}__control`,"box");o.append(t),s.append(o,i,r),this.prepend(s)}render(){return a`<slot></slot>`}updated(e){super.updated(e);let t=this.input;if(!t||!this.#t||!this.#i)return;t.value=this.value,t.checked!==this.checked&&(t.checked=this.checked);let i=this.closest(Vl);t.disabled=this.disabled||i?.disabled===!0,this.#r||Q(this.#t,this.label??"",void 0);let r=this.description??"";this.#i.textContent=r,this.#i.hidden=!r,r?t.setAttribute("aria-describedby",this.#i.id):t.removeAttribute("aria-describedby"),this.setCustomState("checked",this.checked)}};var jl={ArrowDown:1,ArrowUp:-1,ArrowRight:1,ArrowLeft:-1},Ge=class extends p{static tagName="und-radio-group";static formAssociated=!0;static itemSelector="und-radio";static lightStyles=[z,L,wt];static styles=u` :host{display:flex;flex-direction:column;gap:var(--und-field-gap,0.375rem);min-inline-size:0}:host([hidden]){display:none}.items{display:flex;flex-direction:column;gap:var(--und-radio-group-gap,0.5rem)}:host([orientation='horizontal']) .items{flex-flow:row wrap;column-gap:var(--und-radio-group-gap-inline,1.5rem)}
2581
+ `;static properties={value:{reflect:!0},label:{},description:{},checked:{type:Boolean},disabled:{type:Boolean,reflect:!0}};#e;#t;#i;#r=!1;#n=E("und-radio");constructor(){super(),this.value="",this.checked=!1,this.disabled=!1}get input(){return this.#e}focus(e){this.input?.focus(e)}connectedCallback(){if(super.connectedCallback(),!1)return;let e=this.constructor.block;if(D(this,this.constructor.lightStyles),this.#e)return;let t=g("input",`${e}__input`,"control");t.type="radio",t.id=`${this.#n}-control`,t.defaultChecked=this.checked,t.addEventListener("change",()=>{this.checked=t.checked}),this.#e=t;let i=g("label",`${e}__label`,"label");i.htmlFor=t.id,this.#t=i,this.#r=ui(this,i);let r=g("p","und-field__description","description");r.id=`${this.#n}-description`,this.#i=r;let s=g("div",e,"field"),o=g("span",`${e}__control`,"box");o.append(t),s.append(o,i,r),this.prepend(s)}render(){return l`<slot></slot>`}updated(e){super.updated(e);let t=this.input;if(!t||!this.#t||!this.#i)return;t.value=this.value,t.checked!==this.checked&&(t.checked=this.checked);let i=this.closest(Vl);t.disabled=this.disabled||i?.disabled===!0,this.#r||Q(this.#t,this.label??"",void 0);let r=this.description??"";this.#i.textContent=r,this.#i.hidden=!r,r?t.setAttribute("aria-describedby",this.#i.id):t.removeAttribute("aria-describedby"),this.setCustomState("checked",this.checked)}};var jl={ArrowDown:1,ArrowUp:-1,ArrowRight:1,ArrowLeft:-1},Ge=class extends p{static tagName="und-radio-group";static formAssociated=!0;static itemSelector="und-radio";static lightStyles=[z,L,wt];static styles=u` :host{display:flex;flex-direction:column;gap:var(--und-field-gap,0.375rem);min-inline-size:0}:host([hidden]){display:none}.items{display:flex;flex-direction:column;gap:var(--und-radio-group-gap,0.5rem)}:host([orientation='horizontal']) .items{flex-flow:row wrap;column-gap:var(--und-radio-group-gap-inline,1.5rem)}
2582
2582
 
2583
2583
 
2584
2584
 
@@ -2600,7 +2600,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
2600
2600
 
2601
2601
 
2602
2602
 
2603
- `;static properties={label:{},description:{},error:{},value:{},defaultValue:{attribute:"default-value"},name:{reflect:!0},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},orientation:{reflect:!0}};#e=E("und-radio-group");#t=new y(this);#i;#r;#n;#s="";#o=!1;constructor(){super(),this.value="",this.required=!1,this.disabled=!1,this.orientation="vertical"}get radios(){return[...this.querySelectorAll(this.constructor.itemSelector)]}get form(){return this.radios[0]?.input?.form??null}checkValidity(){return this.radios.every(e=>e.input?.checkValidity()??!0)}reportValidity(){let e=this.#c()[0]?.input;return e?e.reportValidity():!0}focus(e){this.#u()?.focus(e)}connectedCallback(){super.connectedCallback(),!!1&&(D(this,this.constructor.lightStyles),this.hasAttribute("role")||this.setAttribute("role","radiogroup"),!this.#i&&(this.#i=g("div","und-field__label","label"),this.#i.id=`${this.#e}-label`,this.#i.slot="label",this.#r=g("p","und-field__description","description"),this.#r.id=`${this.#e}-description`,this.#r.slot="description",this.#n=g("p","und-field__error","error"),this.#n.id=`${this.#e}-error`,this.#n.slot="error",this.#n.hidden=!0,this.prepend(this.#i,this.#r),this.append(this.#n),this.addEventListener("change",this.#h),this.addEventListener("keydown",this.#f),this.addEventListener("invalid",this.#p,!0)))}render(){return a`<slot name="label"></slot><slot name="description"></slot>
2603
+ `;static properties={label:{},description:{},error:{},value:{},defaultValue:{attribute:"default-value"},name:{reflect:!0},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},orientation:{reflect:!0}};#e=E("und-radio-group");#t=new y(this);#i;#r;#n;#s="";#o=!1;constructor(){super(),this.value="",this.required=!1,this.disabled=!1,this.orientation="vertical"}get radios(){return[...this.querySelectorAll(this.constructor.itemSelector)]}get form(){return this.radios[0]?.input?.form??null}checkValidity(){return this.radios.every(e=>e.input?.checkValidity()??!0)}reportValidity(){let e=this.#c()[0]?.input;return e?e.reportValidity():!0}focus(e){this.#u()?.focus(e)}connectedCallback(){super.connectedCallback(),!!1&&(D(this,this.constructor.lightStyles),this.hasAttribute("role")||this.setAttribute("role","radiogroup"),!this.#i&&(this.#i=g("div","und-field__label","label"),this.#i.id=`${this.#e}-label`,this.#i.slot="label",this.#r=g("p","und-field__description","description"),this.#r.id=`${this.#e}-description`,this.#r.slot="description",this.#n=g("p","und-field__error","error"),this.#n.id=`${this.#e}-error`,this.#n.slot="error",this.#n.hidden=!0,this.prepend(this.#i,this.#r),this.append(this.#n),this.addEventListener("change",this.#h),this.addEventListener("keydown",this.#f),this.addEventListener("invalid",this.#p,!0)))}render(){return l`<slot name="label"></slot><slot name="description"></slot>
2604
2604
  <div part="items" class="items"><slot @slotchange=${this.#d}></slot></div>
2605
2605
  <slot name="error"></slot>`}willUpdate(e){if(super.willUpdate(e),this.defaultValue!==void 0)return;let t=this.radios;if(t.length===0)return;let i=this.value||t.find(r=>r.checked)?.value||"";this.defaultValue=i,this.value=i}updated(e){if(super.updated(e),!this.#i||!this.#r||!this.#n)return;let t=this.required?"required":void 0;Q(this.#i,this.label??"",t),this.#i.hidden=!this.label;let i=this.description??"";this.#r.textContent=i,this.#r.hidden=!i;let r=this.error||this.#s;oe(this.#n,r),this.#l("aria-labelledby",this.label?this.#i.id:""),this.#l("aria-describedby",U(i?this.#r.id:"",r?this.#n.id:"")),this.#l("aria-invalid",r?"true":""),this.#l("aria-required",this.required?"true":""),this.#l("aria-orientation",this.orientation==="horizontal"?"horizontal":""),this.setCustomState("invalid",!!r),!this.label&&!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby")&&C("label:und-radio-group","<und-radio-group> has no label. Set the label attribute (or aria-label)."),this.#a()}formResetCallback(){for(let e of this.radios)e.input&&(e.input.checked=e.input.defaultChecked),e.checked=e.input?.checked??!1;this.value=this.radios.find(e=>e.checked)?.value??"",this.#s="",this.requestUpdate()}formDisabledCallback(e){this.#o=e,this.setCustomState("disabled",e||this.disabled)}#d=()=>{this.requestUpdate()};#a(){let e=this.radios;if(e.length===0)return;let t=this.name||this.#e;e.forEach((r,s)=>{r.checked=r.value===this.value&&this.value!=="",r.requestUpdate();let o=r.input;o&&(o.name=t,o.required=this.required,o.defaultChecked=r.value===this.defaultValue&&this.defaultValue!=="",o.setCustomValidity(s===0?this.error??"":""),this.error||this.#s?o.setAttribute("aria-invalid","true"):o.removeAttribute("aria-invalid"))});let i=this.#u();for(let r of e)r.input&&(r.input.tabIndex=r===i?0:-1)}#l(e,t){t?this.setAttribute(e,t):this.removeAttribute(e)}#c(){return this.disabled||this.#o?[]:this.radios.filter(t=>!t.disabled&&t.input)}#u(){let e=this.#c();return e.find(t=>t.checked)??e[0]}#h=e=>{let t=e.target;!(t instanceof HTMLInputElement)||t.type!=="radio"||(this.value=t.value,this.#s&&(this.#s=t.validity.valid?"":t.validationMessage))};#p=e=>{let t=e.target;!(t instanceof HTMLInputElement)||this.error||(this.#s=t.validationMessage,this.requestUpdate())};#f=e=>{if(e.altKey||e.ctrlKey||e.metaKey||e.defaultPrevented)return;let t=jl[e.key];if(!t)return;this.#t.isRtl&&(e.key==="ArrowLeft"||e.key==="ArrowRight")&&(t=t===1?-1:1);let i=this.#c(),r=i.findIndex(o=>o.input===e.target);if(r===-1||i.length===0)return;e.preventDefault();let s=i[(r+t+i.length)%i.length]?.input;s&&(s.focus(),!s.checked&&(s.checked=!0,s.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),s.dispatchEvent(new Event("change",{bubbles:!0}))))}};Ke.define();Ge.define();var Gs=u` @layer und.components{.und-switch{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0.125rem var(--und-control-gap,0.5rem);align-items:start;color:var(--und-fg-default,#23252c);font-size:var(--und-text-label-md-size,0.875rem);line-height:1.4286}.und-switch > :not(.und-switch__control){grid-column:2}.und-switch__control{--_track-w:var(--und-switch-width,2.5rem);--_track-h:var(--und-switch-height,1.5rem);--_thumb:var(--und-switch-thumb-off,1rem);--_thumb-on:var(--und-switch-thumb-on,1.25rem);--_off:var(--und-switch-off-bg,var(--und-border-control,#898c96));position:relative;display:inline-grid;align-items:center;min-block-size:max(1lh,var(--und-target-min,24px))}.und-switch__input{box-sizing:border-box;inline-size:var(--_track-w);block-size:var(--_track-h);margin:0;border:0;border-radius:999px;background:var(--_off);cursor:pointer;appearance:none;transition:background-color var(--und-motion-hover,130ms) ease,border-color var(--und-motion-hover,130ms) ease}@media (hover:hover) and (forced-colors:none){.und-switch__input:hover:not(:checked,:disabled){background:color-mix(in srgb,var(--_off),currentcolor 5%)}}.und-switch__input:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:var(--und-focus-offset,2px)}.und-switch__input:checked{background:var(--und-accent-solid,#504bf2)}@media (hover:hover) and (forced-colors:none){.und-switch__input:checked:hover:not(:disabled){background:color-mix(in srgb,var(--und-accent-solid,#504bf2),currentcolor 15%)}}.und-switch__input[aria-invalid='true']{box-shadow:0 0 0 var(--und-border-width,1px) var(--und-status-danger-fg,#b81e27)}.und-switch__thumb{position:absolute;inset-block-start:50%;inset-inline-start:calc((var(--_track-h) - var(--_thumb)) / 2);box-sizing:border-box;inline-size:var(--_thumb);block-size:var(--_thumb);border-radius:50%;background:var(--und-bg-surface,#fff);box-shadow:var(--und-shadow-1,0 1px 2px rgb(0 0 0 / 20%));pointer-events:none;translate:0 -50%;transition-duration:var(--und-duration-fast,175ms);transition-property:inset-inline-start,inline-size,block-size;transition-timing-function:var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}.und-switch__input:checked + .und-switch__thumb{inset-inline-start:calc( var(--_track-w) - var(--_thumb-on) - (var(--_track-h) - var(--_thumb-on)) / 2 );inline-size:var(--_thumb-on);block-size:var(--_thumb-on)}.und-switch__label{font-weight:var(--und-font-weight-semibold,600);cursor:pointer;overflow-wrap:anywhere}.und-switch:has(.und-switch__input:disabled){opacity:var(--und-disabled-opacity,0.5)}.und-switch:has(.und-switch__input:disabled) .und-switch__input,.und-switch:has(.und-switch__input:disabled) .und-switch__label{cursor:not-allowed}@media (prefers-reduced-motion:reduce){.und-switch__input,.und-switch__thumb{transition:none}}@media (forced-colors:active){.und-switch__input,.und-switch__thumb{forced-color-adjust:none}.und-switch__input,.und-switch__input:hover{border:1px solid CanvasText;background:Canvas}.und-switch__input:focus-visible{outline-color:Highlight}.und-switch__input:disabled{border-color:GrayText}.und-switch__input:checked,.und-switch__input:checked:hover{border-color:Highlight;background:Highlight}.und-switch__thumb{border:1px solid CanvasText;background:CanvasText}.und-switch__input:checked + .und-switch__thumb{border-color:HighlightText;background:HighlightText}.und-switch:has(.und-switch__input:disabled){opacity:1}}}@layer und.components{@media (pointer:coarse){.und-switch__control{min-block-size:max(1lh,var(--und-target-min-coarse,44px));min-inline-size:var(--und-target-min-coarse,44px)}.und-switch__input{position:relative}.und-switch__input::before{content:'';position:absolute;inset:calc((100% - var(--und-target-min-coarse,44px)) / 2)}}}@layer und.base{und-switch:not(:defined){display:block;min-block-size:1.5rem;padding-inline-start:calc(2.25rem + 0.5rem)}}
2606
2606
 
@@ -3005,7 +3005,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
3005
3005
 
3006
3006
 
3007
3007
 
3008
- `;var Ys=10,gi=class extends F{static tagName="und-slider";static lightStyles=[z,L,Ws];static properties={value:{type:Number},valueEnd:{type:Number,attribute:"value-end"},min:{type:Number},max:{type:Number},step:{type:Number},largeStep:{type:Number,attribute:"large-step"},range:{type:Boolean,reflect:!0},startLabel:{attribute:"start-label"},endLabel:{attribute:"end-label"},formatOptions:{attribute:!1},valueText:{attribute:!1}};#e=new y(this);#t;#i;#r;#n;constructor(){super(),this.value=0,this.min=0,this.max=100,this.step=1,this.range=!1,this.startLabel="Minimum",this.endLabel="Maximum"}get input(){return this.control}get inputEnd(){return this.range?this.#i:void 0}createControl(){let e=g("input","und-slider__input","control");return e.type="range",e}assemble(e){let t=e.control,i=g("input","und-slider__input","control-end");i.type="range",i.id=`${this.baseId}-control-end`,this.#i=i;let r=g("div","und-slider","track");this.#t=r,r.append(t),this.#r=g("span","und-slider__thumb-name","start-name"),this.#r.id=`${this.baseId}-start-name`,this.#r.hidden=!0,this.#n=g("span","und-slider__thumb-name","end-name"),this.#n.id=`${this.baseId}-end-name`,this.#n.hidden=!0;let s=g("div","und-field","field");s.append(e.label,e.description,r,e.error,this.#r,this.#n),this.prepend(s);for(let o of[t,i])o.addEventListener("input",this.#f),o.addEventListener("keydown",this.#m);r.addEventListener("pointerdown",this.#b)}resetControl(){let e=this.input;!e||!this.#i||(e.value=e.defaultValue,this.#i.value=this.#i.defaultValue,this.value=e.valueAsNumber,this.range&&(this.valueEnd=this.#i.valueAsNumber))}willUpdate(e){super.willUpdate(e);let t=this.#s,i=this.#o;this.value=this.#l(this.value),this.range&&(this.valueEnd=this.#l(this.valueEnd??i),this.value>this.valueEnd&&(this.value=this.valueEnd)),this.value<t&&(this.value=t)}updated(e){let t=this.input,i=this.#i,r=this.#t;if(t&&i&&r){let s=!t.hasAttribute("min");for(let o of[t,i])o.min=String(this.#s),o.max=String(this.#o),o.step=String(this.#d);t.value=String(this.value),this.range?(i.isConnected||r.append(i),i.value=String(this.valueEnd),i.disabled=this.disabled,this.name?i.name=this.name:i.removeAttribute("name")):i.remove(),s&&(t.defaultValue=t.value,i.defaultValue=i.value),r.classList.toggle("und-slider--range",this.range),this.#u()}super.updated(e),this.#h()}get#s(){return Number.isFinite(this.min)?this.min:0}get#o(){let e=Number.isFinite(this.max)?this.max:100;return Math.max(e,this.#s)}get#d(){return Number.isFinite(this.step)&&this.step>0?this.step:1}get#a(){let e=this.largeStep;if(e!==void 0&&Number.isFinite(e)&&e>0)return e;let t=this.#d;return Math.max(t,Math.round((this.#o-this.#s)/10/t)*t)}#l(e){let t=this.#s,i=this.#d,r=Number.isFinite(e)?e:t,s=t+Math.round((r-t)/i)*i,o=(String(i).split(".")[1]??"").length,l=Number(s.toFixed(Math.min(o+2,20)));return Math.min(this.#o,Math.max(t,l))}#c(e){if(this.valueText)return this.valueText(e);if(this.formatOptions)try{return new Intl.NumberFormat(this.#e.lang||void 0,this.formatOptions).format(e)}catch{return String(e)}}#u(){let e=this.#t,t=this.input;if(!e||!t)return;let i=this.#o-this.#s||1,r=o=>String((o-this.#s)/i);e.style.setProperty("--und-slider-start",this.range?r(this.value):"0"),e.style.setProperty("--und-slider-end",r(this.range?this.valueEnd??this.#o:this.value)),t.style.zIndex=this.range&&this.value>this.#s+i/2?"2":"";let s=[[t,this.value]];this.range&&s.push([this.#i,this.valueEnd??this.#o]);for(let[o,l]of s){let d=this.#c(l);d===void 0?o?.removeAttribute("aria-valuetext"):o?.setAttribute("aria-valuetext",d)}}#h(){let e=this.input,t=this.#i,i=this.labelEl;if(!e||!t||!i||!this.#r||!this.#n)return;if(this.#r.textContent=this.startLabel,this.#n.textContent=this.endLabel,!this.range){e.removeAttribute("aria-labelledby");return}let r=i.hidden?"":i.id;e.setAttribute("aria-labelledby",`${r} ${this.#r.id}`.trim()),t.setAttribute("aria-labelledby",`${r} ${this.#n.id}`.trim());let s=e.getAttribute("aria-describedby");s?t.setAttribute("aria-describedby",s):t.removeAttribute("aria-describedby")}#p(e,t){let i=e===this.#i,r=this.#l(t);this.range&&(i?r=Math.max(r,this.value):r=Math.min(r,this.valueEnd??this.#o));let s=i?this.valueEnd:this.value;r!==s&&(e.value=String(r),i?this.valueEnd=r:this.value=r,e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})))}#f=e=>{if(!e.isTrusted)return;let t=e.target,i=t===this.#i,r=t.valueAsNumber;this.range&&(i&&r<this.value&&(r=this.value),!i&&r>(this.valueEnd??this.#o)&&(r=this.valueEnd??this.#o),r!==t.valueAsNumber&&(t.value=String(r))),i?this.valueEnd=r:this.value=r};#m=e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;let t=e.target,i=t.valueAsNumber,r=this.#d,s=this.#e.isRtl,o;switch(e.key){case"ArrowUp":o=i+r;break;case"ArrowDown":o=i-r;break;case"ArrowRight":o=i+(s?-r:r);break;case"ArrowLeft":o=i+(s?r:-r);break;case"PageUp":o=i+this.#a;break;case"PageDown":o=i-this.#a;break;case"Home":o=this.#s;break;case"End":o=this.#o;break;default:return}e.preventDefault(),this.#p(t,o)};#b=e=>{let t=this.#t,i=this.input,r=this.#i;if(!this.range||e.target!==t||!t||!i||!r||i.disabled||e.button!==0)return;let s=t.getBoundingClientRect(),o=Math.max(1,s.width-2*Ys),l=this.#e.isRtl?s.right-e.clientX:e.clientX-s.left,d=Math.min(1,Math.max(0,(l-Ys)/o)),h=this.#s+d*(this.#o-this.#s),f=this.valueEnd??this.#o,m=Math.abs(h-this.value)<=Math.abs(h-f)?i:r,v=m===i&&h>f?r:m;e.preventDefault(),v.focus(),this.#p(v,h)}};gi.define();var vi=class extends Ue{static tagName="und-icon-button";static styles=[bt,u` @layer und.components{.button{--_height:var(--und-icon-button-size,var(--und-size-element-md,2rem));inline-size:var(--_height);padding-inline:0;font-size:var(--und-icon-button-icon-size,var(--und-size-icon-md,1.25rem));line-height:1}:host([size='sm']) .button{--_height:var(--und-icon-button-size-sm,var(--und-size-element-sm,1.75rem));padding-inline:0;font-size:var(--und-icon-button-icon-size-sm,var(--und-size-icon-sm,1rem))}:host([size='lg']) .button{--_height:var(--und-icon-button-size-lg,var(--und-size-element-lg,2.25rem));padding-inline:0;font-size:var(--und-icon-button-icon-size-lg,var(--und-size-icon-lg,1.5rem))}::slotted(svg){inline-size:1em;block-size:1em}@media (pointer:coarse){.button{min-inline-size:max(var(--_height),var(--und-size-target-touch,44px))}}}
3008
+ `;var Ys=10,gi=class extends F{static tagName="und-slider";static lightStyles=[z,L,Ws];static properties={value:{type:Number},valueEnd:{type:Number,attribute:"value-end"},min:{type:Number},max:{type:Number},step:{type:Number},largeStep:{type:Number,attribute:"large-step"},range:{type:Boolean,reflect:!0},startLabel:{attribute:"start-label"},endLabel:{attribute:"end-label"},formatOptions:{attribute:!1},valueText:{attribute:!1}};#e=new y(this);#t;#i;#r;#n;constructor(){super(),this.value=0,this.min=0,this.max=100,this.step=1,this.range=!1,this.startLabel="Minimum",this.endLabel="Maximum"}get input(){return this.control}get inputEnd(){return this.range?this.#i:void 0}createControl(){let e=g("input","und-slider__input","control");return e.type="range",e}assemble(e){let t=e.control,i=g("input","und-slider__input","control-end");i.type="range",i.id=`${this.baseId}-control-end`,this.#i=i;let r=g("div","und-slider","track");this.#t=r,r.append(t),this.#r=g("span","und-slider__thumb-name","start-name"),this.#r.id=`${this.baseId}-start-name`,this.#r.hidden=!0,this.#n=g("span","und-slider__thumb-name","end-name"),this.#n.id=`${this.baseId}-end-name`,this.#n.hidden=!0;let s=g("div","und-field","field");s.append(e.label,e.description,r,e.error,this.#r,this.#n),this.prepend(s);for(let o of[t,i])o.addEventListener("input",this.#f),o.addEventListener("keydown",this.#m);r.addEventListener("pointerdown",this.#b)}resetControl(){let e=this.input;!e||!this.#i||(e.value=e.defaultValue,this.#i.value=this.#i.defaultValue,this.value=e.valueAsNumber,this.range&&(this.valueEnd=this.#i.valueAsNumber))}willUpdate(e){super.willUpdate(e);let t=this.#s,i=this.#o;this.value=this.#l(this.value),this.range&&(this.valueEnd=this.#l(this.valueEnd??i),this.value>this.valueEnd&&(this.value=this.valueEnd)),this.value<t&&(this.value=t)}updated(e){let t=this.input,i=this.#i,r=this.#t;if(t&&i&&r){let s=!t.hasAttribute("min");for(let o of[t,i])o.min=String(this.#s),o.max=String(this.#o),o.step=String(this.#d);t.value=String(this.value),this.range?(i.isConnected||r.append(i),i.value=String(this.valueEnd),i.disabled=this.disabled,this.name?i.name=this.name:i.removeAttribute("name")):i.remove(),s&&(t.defaultValue=t.value,i.defaultValue=i.value),r.classList.toggle("und-slider--range",this.range),this.#u()}super.updated(e),this.#h()}get#s(){return Number.isFinite(this.min)?this.min:0}get#o(){let e=Number.isFinite(this.max)?this.max:100;return Math.max(e,this.#s)}get#d(){return Number.isFinite(this.step)&&this.step>0?this.step:1}get#a(){let e=this.largeStep;if(e!==void 0&&Number.isFinite(e)&&e>0)return e;let t=this.#d;return Math.max(t,Math.round((this.#o-this.#s)/10/t)*t)}#l(e){let t=this.#s,i=this.#d,r=Number.isFinite(e)?e:t,s=t+Math.round((r-t)/i)*i,o=(String(i).split(".")[1]??"").length,a=Number(s.toFixed(Math.min(o+2,20)));return Math.min(this.#o,Math.max(t,a))}#c(e){if(this.valueText)return this.valueText(e);if(this.formatOptions)try{return new Intl.NumberFormat(this.#e.lang||void 0,this.formatOptions).format(e)}catch{return String(e)}}#u(){let e=this.#t,t=this.input;if(!e||!t)return;let i=this.#o-this.#s||1,r=o=>String((o-this.#s)/i);e.style.setProperty("--und-slider-start",this.range?r(this.value):"0"),e.style.setProperty("--und-slider-end",r(this.range?this.valueEnd??this.#o:this.value)),t.style.zIndex=this.range&&this.value>this.#s+i/2?"2":"";let s=[[t,this.value]];this.range&&s.push([this.#i,this.valueEnd??this.#o]);for(let[o,a]of s){let d=this.#c(a);d===void 0?o?.removeAttribute("aria-valuetext"):o?.setAttribute("aria-valuetext",d)}}#h(){let e=this.input,t=this.#i,i=this.labelEl;if(!e||!t||!i||!this.#r||!this.#n)return;if(this.#r.textContent=this.startLabel,this.#n.textContent=this.endLabel,!this.range){e.removeAttribute("aria-labelledby");return}let r=i.hidden?"":i.id;e.setAttribute("aria-labelledby",`${r} ${this.#r.id}`.trim()),t.setAttribute("aria-labelledby",`${r} ${this.#n.id}`.trim());let s=e.getAttribute("aria-describedby");s?t.setAttribute("aria-describedby",s):t.removeAttribute("aria-describedby")}#p(e,t){let i=e===this.#i,r=this.#l(t);this.range&&(i?r=Math.max(r,this.value):r=Math.min(r,this.valueEnd??this.#o));let s=i?this.valueEnd:this.value;r!==s&&(e.value=String(r),i?this.valueEnd=r:this.value=r,e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})))}#f=e=>{if(!e.isTrusted)return;let t=e.target,i=t===this.#i,r=t.valueAsNumber;this.range&&(i&&r<this.value&&(r=this.value),!i&&r>(this.valueEnd??this.#o)&&(r=this.valueEnd??this.#o),r!==t.valueAsNumber&&(t.value=String(r))),i?this.valueEnd=r:this.value=r};#m=e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;let t=e.target,i=t.valueAsNumber,r=this.#d,s=this.#e.isRtl,o;switch(e.key){case"ArrowUp":o=i+r;break;case"ArrowDown":o=i-r;break;case"ArrowRight":o=i+(s?-r:r);break;case"ArrowLeft":o=i+(s?r:-r);break;case"PageUp":o=i+this.#a;break;case"PageDown":o=i-this.#a;break;case"Home":o=this.#s;break;case"End":o=this.#o;break;default:return}e.preventDefault(),this.#p(t,o)};#b=e=>{let t=this.#t,i=this.input,r=this.#i;if(!this.range||e.target!==t||!t||!i||!r||i.disabled||e.button!==0)return;let s=t.getBoundingClientRect(),o=Math.max(1,s.width-2*Ys),a=this.#e.isRtl?s.right-e.clientX:e.clientX-s.left,d=Math.min(1,Math.max(0,(a-Ys)/o)),h=this.#s+d*(this.#o-this.#s),f=this.valueEnd??this.#o,m=Math.abs(h-this.value)<=Math.abs(h-f)?i:r,v=m===i&&h>f?r:m;e.preventDefault(),v.focus(),this.#p(v,h)}};gi.define();var vi=class extends Ue{static tagName="und-icon-button";static styles=[bt,u` @layer und.components{.button{--_height:var(--und-icon-button-size,var(--und-size-element-md,2rem));inline-size:var(--_height);padding-inline:0;font-size:var(--und-icon-button-icon-size,var(--und-size-icon-md,1.25rem));line-height:1}:host([size='sm']) .button{--_height:var(--und-icon-button-size-sm,var(--und-size-element-sm,1.75rem));padding-inline:0;font-size:var(--und-icon-button-icon-size-sm,var(--und-size-icon-sm,1rem))}:host([size='lg']) .button{--_height:var(--und-icon-button-size-lg,var(--und-size-element-lg,2.25rem));padding-inline:0;font-size:var(--und-icon-button-icon-size-lg,var(--und-size-icon-lg,1.5rem))}::slotted(svg){inline-size:1em;block-size:1em}@media (pointer:coarse){.button{min-inline-size:max(var(--_height),var(--und-size-target-touch,44px))}}}
3009
3009
 
3010
3010
 
3011
3011
 
@@ -3176,7 +3176,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
3176
3176
 
3177
3177
 
3178
3178
 
3179
- `;constructor(){super(),this.variant="inline",this.newTabLabel="(opens in new tab)"}updated(e){e.has("href")&&this.href!=null&&M(this.href)===void 0&&C("unsafe-href:und-link","<und-link> ignored an unsafe href.")}render(){let e=M(this.href),t=this.target?.toLowerCase()==="_blank";return a`<a
3179
+ `;constructor(){super(),this.variant="inline",this.newTabLabel="(opens in new tab)"}updated(e){e.has("href")&&this.href!=null&&M(this.href)===void 0&&C("unsafe-href:und-link","<und-link> ignored an unsafe href.")}render(){let e=M(this.href),t=this.target?.toLowerCase()==="_blank";return l`<a
3180
3180
  id="control"
3181
3181
  part="base"
3182
3182
  class="link"
@@ -3184,7 +3184,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
3184
3184
  target=${this.target||c}
3185
3185
  rel=${H(this.target,this.rel)??c}
3186
3186
  download=${this.download??c}
3187
- ><slot></slot>${t?a`<svg
3187
+ ><slot></slot>${t?l`<svg
3188
3188
  part="external-icon"
3189
3189
  class="icon"
3190
3190
  viewBox="0 0 16 16"
@@ -3274,7 +3274,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
3274
3274
 
3275
3275
 
3276
3276
 
3277
- `;#e="";constructor(){super(),this.orientation="horizontal",this.variant="subtle",this.decorative=!1,this.fullBleed=!1}connectedCallback(){super.connectedCallback(),this.#e=(this.textContent??"").replace(/\s+/g," ").trim()}#t=e=>{let t=e.target;this.#e=t.assignedNodes({flatten:!0}).map(i=>i.textContent??"").join("").replace(/\s+/g," ").trim(),this.requestUpdate()};render(){let e=this.orientation==="vertical";return a`<div
3277
+ `;#e="";constructor(){super(),this.orientation="horizontal",this.variant="subtle",this.decorative=!1,this.fullBleed=!1}connectedCallback(){super.connectedCallback(),this.#e=(this.textContent??"").replace(/\s+/g," ").trim()}#t=e=>{let t=e.target;this.#e=t.assignedNodes({flatten:!0}).map(i=>i.textContent??"").join("").replace(/\s+/g," ").trim(),this.requestUpdate()};render(){let e=this.orientation==="vertical";return l`<div
3278
3278
  part="base"
3279
3279
  class="divider"
3280
3280
  role=${this.decorative?c:"separator"}
@@ -3524,8 +3524,8 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
3524
3524
 
3525
3525
 
3526
3526
 
3527
- `;constructor(){super(),this.tone="neutral",this.variant="soft",this.size="md",this.dot=!1}render(){return a`<span part="base" class="badge"
3528
- >${this.dot?a`<span part="dot" class="dot" aria-hidden="true"></span>`:c}<slot
3527
+ `;constructor(){super(),this.tone="neutral",this.variant="soft",this.size="md",this.dot=!1}render(){return l`<span part="base" class="badge"
3528
+ >${this.dot?l`<span part="dot" class="dot" aria-hidden="true"></span>`:c}<slot
3529
3529
  name="icon"
3530
3530
  ></slot
3531
3531
  ><span part="label" class="label"><slot></slot></span
@@ -3646,7 +3646,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
3646
3646
 
3647
3647
 
3648
3648
 
3649
- `;constructor(){super(),this.size="md",this.shade="default",this.label="Loading",this.decorative=!1}render(){return a`<span
3649
+ `;constructor(){super(),this.size="md",this.shade="default",this.label="Loading",this.decorative=!1}render(){return l`<span
3650
3650
  part="base"
3651
3651
  class="spinner"
3652
3652
  role=${this.decorative?c:"status"}
@@ -3852,7 +3852,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
3852
3852
 
3853
3853
 
3854
3854
 
3855
- `;#e=new y(this);constructor(){super(),this.max=100,this.variant="linear",this.tone="primary",this.size="md",this.showLabel=!1,this.showValue=!1,this.disabled=!1}firstUpdated(e){super.firstUpdated(e),this.label||C("progress-label","<und-progress> needs a `label` (its accessible name).")}updated(e){super.updated(e);let t=this.renderRoot.querySelector(".bar");if(!t)return;let i=this.#t,r=this.max>0?this.max:100;i===void 0?t.style.removeProperty("--_value"):t.style.setProperty("--_value",`${i/r*100}%`)}get#t(){let{value:e}=this;if(e==null||Number.isNaN(e))return;let t=this.max>0?this.max:100;return Math.min(Math.max(e,0),t)}#i(e,t){if(this.valueText)return this.valueText;try{return new Intl.NumberFormat(this.#e.lang||void 0,{style:"percent",maximumFractionDigits:0}).format(e/t)}catch{return`${Math.round(e/t*100)}%`}}render(){let e=this.#t,t=this.max>0?this.max:100,i=e!==void 0,r=i?e/t:0,s=`${i?"":"indeterminate"} ${this.#e.isRtl?"rtl":""}`,o=2*Math.PI*18,l=this.variant==="circular"?a`<svg class="ring" viewBox="0 0 44 44" aria-hidden="true" focusable="false">
3855
+ `;#e=new y(this);constructor(){super(),this.max=100,this.variant="linear",this.tone="primary",this.size="md",this.showLabel=!1,this.showValue=!1,this.disabled=!1}firstUpdated(e){super.firstUpdated(e),this.label||C("progress-label","<und-progress> needs a `label` (its accessible name).")}updated(e){super.updated(e);let t=this.renderRoot.querySelector(".bar");if(!t)return;let i=this.#t,r=this.max>0?this.max:100;i===void 0?t.style.removeProperty("--_value"):t.style.setProperty("--_value",`${i/r*100}%`)}get#t(){let{value:e}=this;if(e==null||Number.isNaN(e))return;let t=this.max>0?this.max:100;return Math.min(Math.max(e,0),t)}#i(e,t){if(this.valueText)return this.valueText;try{return new Intl.NumberFormat(this.#e.lang||void 0,{style:"percent",maximumFractionDigits:0}).format(e/t)}catch{return`${Math.round(e/t*100)}%`}}render(){let e=this.#t,t=this.max>0?this.max:100,i=e!==void 0,r=i?e/t:0,s=`${i?"":"indeterminate"} ${this.#e.isRtl?"rtl":""}`,o=2*Math.PI*18,a=this.variant==="circular"?l`<svg class="ring" viewBox="0 0 44 44" aria-hidden="true" focusable="false">
3856
3856
  <circle class="ring-track" cx="22" cy="22" r="18"></circle>
3857
3857
  <circle
3858
3858
  part="indicator"
@@ -3863,9 +3863,9 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
3863
3863
  stroke-dasharray=${o}
3864
3864
  stroke-dashoffset=${i?o*(1-r):o*.7}
3865
3865
  ></circle>
3866
- </svg>`:a`<span part="indicator" class="bar"></span>`,d=this.showValue&&i,h=this.showLabel||d?a`<div part="header" class="header" aria-hidden="true">
3867
- <span part="label" class="label">${this.showLabel?this.label??"":""}</span>${d?a`<span part="value" class="value">${this.#i(e,t)}</span>`:c}
3868
- </div>`:c;return a`${h}
3866
+ </svg>`:l`<span part="indicator" class="bar"></span>`,d=this.showValue&&i,h=this.showLabel||d?l`<div part="header" class="header" aria-hidden="true">
3867
+ <span part="label" class="label">${this.showLabel?this.label??"":""}</span>${d?l`<span part="value" class="value">${this.#i(e,t)}</span>`:c}
3868
+ </div>`:c;return l`${h}
3869
3869
  <div
3870
3870
  part="base"
3871
3871
  class="${this.variant==="circular"?"circular":"track"} ${s}"
@@ -3877,7 +3877,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
3877
3877
  aria-valuetext=${i?this.#i(e,t):c}
3878
3878
  aria-disabled=${this.disabled?"true":c}
3879
3879
  >
3880
- ${l}
3880
+ ${a}
3881
3881
  </div>`}};_i.define();var zi=class extends p{static tagName="und-skeleton";static properties={shape:{reflect:!0},lines:{type:Number,reflect:!0},radius:{reflect:!0},effect:{reflect:!0},index:{type:Number}};static styles=u` @layer und.components{:host{display:block}:host([shape='circle']){display:inline-block;vertical-align:middle}:host([hidden]){display:none}.skeleton{display:flex;flex-direction:column}.bone{--_base:var(--und-skeleton-color,var(--und-border-default,#ccd3db));--_shine:var(--und-skeleton-highlight,var(--und-bg-surface,#fff));display:block;block-size:1em;margin-block:calc((1lh - 1em) / 2);border-radius:var(--und-skeleton-radius,var(--und-radius-xl,12px));background-color:var(--_base);opacity:0.25;animation:und-skeleton-fade var(--und-duration-medium-max,550ms) steps(10,jump-end) calc(var(--und-skeleton-delay,1000ms) + 100ms * var(--_index,0)) infinite alternate}.bone:last-child:not(:first-child){inline-size:60%}:host([shape='rect']) .bone,:host([shape='circle']) .bone{inline-size:var(--und-skeleton-width,100%);block-size:var(--und-skeleton-height,6rem);margin-block:0}:host([shape='circle']) .bone{inline-size:var(--und-skeleton-width,2.5rem);block-size:var(--und-skeleton-height,2.5rem);border-radius:50%}:host([radius='none']) .bone,:host([radius='0']) .bone{border-radius:0}:host([radius='1']) .bone{border-radius:var(--und-radius-sm,4px)}:host([radius='2']) .bone{border-radius:var(--und-radius-lg,8px)}:host([radius='rounded']) .bone{border-radius:var(--und-radius-full,9999px)}:host([effect='shimmer']) .bone{background:linear-gradient(90deg,var(--_base) 30%,var(--_shine) 50%,var(--_base) 70%) 0 0 / 300% 100% var(--_base);opacity:0.5;animation:und-skeleton-shimmer 1.6s linear infinite}:host([effect='shimmer']:dir(rtl)) .bone{animation-direction:reverse}:host([effect='none']) .bone{animation:none}@keyframes und-skeleton-fade{from{opacity:0.25}to{opacity:1}}@keyframes und-skeleton-shimmer{from{background-position:100% 0}to{background-position:0 0}}@media (prefers-contrast:more){.bone{--_base:color-mix( in srgb,var(--und-skeleton-color,var(--und-border-default,#ccd3db)),var(--und-fg-default,#0a1317) 30% )}}@media (prefers-reduced-motion:reduce){.bone{animation:none}:host([effect='shimmer']) .bone{background:var(--_base)}}@media (forced-colors:active){.bone{border:1px solid GrayText;background:GrayText;opacity:1}}}
3882
3882
 
3883
3883
 
@@ -4009,9 +4009,9 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
4009
4009
 
4010
4010
 
4011
4011
 
4012
- `;constructor(){super(),this.shape="text",this.lines=1,this.effect="pulse",this.index=0}updated(e){super.updated(e);let t=Number.isFinite(this.index)?Math.max(0,Math.floor(this.index)):0;this.renderRoot.querySelectorAll(".bone").forEach((i,r)=>{i.style.setProperty("--_index",String(t+r))})}render(){let e=this.shape==="text"?Math.max(1,Math.floor(this.lines)||1):1;return a`<div part="base" class="skeleton" aria-hidden="true">
4013
- ${Array.from({length:e},()=>a`<span part="bone" class="bone"></span>`)}
4014
- </div>`}};zi.define();function Xs(n){let e=Intl.Segmenter;return e?Array.from(new e(void 0,{granularity:"grapheme"}).segment(n),t=>t.segment):Array.from(n)}function Kl(n,e){let t=n.trim().split(/\s+/u).filter(Boolean),[i,...r]=t;if(i===void 0)return"";let s=r.at(-1),o=Xs(i)[0]??"",l=s===void 0?"":Xs(s)[0]??"";return(o+l).toLocaleUpperCase(e)}var $i=class extends p{static tagName="und-avatar";static properties={src:{},name:{},size:{reflect:!0},shape:{reflect:!0},status:{reflect:!0},statusLabel:{attribute:"status-label"},decorative:{type:Boolean,reflect:!0},loading:{},referrerPolicy:{attribute:"referrerpolicy"}};static styles=u` @layer und.components{:host{--_size:var(--und-avatar-size,var(--und-avatar-size-md,36px));--_radius:var(--und-radius-full,9999px);--_dot:10px;--_dot-ring:1px;--_glyph:1px;--_dot-offset:calc(var(--_size) * 0.1464 - var(--_dot) / 2);display:inline-flex;vertical-align:middle}:host([hidden]){display:none}:host([size='xs']){--_size:var(--und-avatar-size,var(--und-avatar-size-xs,20px))}:host([size='sm']){--_size:var(--und-avatar-size,var(--und-avatar-size-sm,24px))}:host([size='lg']){--_size:var(--und-avatar-size,var(--und-avatar-size-lg,48px));--_dot:20px;--_dot-ring:2px;--_glyph:1.5px}:host([size='xl']){--_size:var(--und-avatar-size,var(--und-avatar-size-xl,128px));--_dot:32px;--_dot-ring:4px;--_glyph:2px}:host([shape='rounded']){--_radius:var(--und-radius-lg,8px);--_dot-offset:calc(var(--_dot) * -0.25)}:host([shape='square']){--_radius:0;--_dot-offset:calc(var(--_dot) * -0.25)}.avatar{position:relative;box-sizing:border-box;display:inline-flex;flex:none;align-items:center;justify-content:center;inline-size:var(--_size);block-size:var(--_size);border-radius:var(--_radius);background-color:var( --und-avatar-bg,color-mix(in srgb,var(--und-fg-default,#0a1317) 10%,var(--und-bg-surface,#fff)) );color:var(--und-avatar-fg,var(--und-fg-default,#0a1317));font-size:calc(var(--_size) * 0.4);font-weight:var(--und-font-weight-medium,500);line-height:1;text-transform:uppercase;user-select:none}.clip{display:inline-flex;align-items:center;justify-content:center;inline-size:100%;block-size:100%;overflow:hidden;border-radius:inherit}.image{inline-size:100%;block-size:100%;object-fit:cover}.icon{inline-size:60%;block-size:60%}.status{position:absolute;inset-block-end:var(--_dot-offset);inset-inline-end:var(--_dot-offset);box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--_dot);block-size:var(--_dot);border:var(--_dot-ring) solid var(--und-avatar-ring,var(--und-bg-surface,#fff));border-radius:50%;background-color:var(--und-bg-surface,#fff);color:var(--und-fg-muted,#445564)}.status::after{box-sizing:border-box;inline-size:100%;block-size:100%;border:var(--_glyph) solid currentcolor;border-radius:50%;content:''}:host([status='online']) .status{background-color:var(--und-status-success-solid,#0d8626);color:var(--und-status-success-on-solid,#fff)}:host([status='away']) .status{background-color:var(--und-status-warning-solid,#e9af08);color:var(--und-status-warning-on-solid,#0a1317)}:host([status='online']) .status::after,:host([status='away']) .status::after{content:none}:host([status='busy']) .status{background-color:var(--und-status-danger-solid,#e3193b);color:var(--und-status-danger-on-solid,#fff)}:host([status='busy']) .status::after{inline-size:75%;block-size:var(--_glyph);border:0;border-radius:var(--und-radius-full,9999px);background-color:currentcolor}@media (forced-colors:active){.avatar{border:1px solid CanvasText}.status{border-color:Canvas;background-color:CanvasText;color:Canvas}}}
4012
+ `;constructor(){super(),this.shape="text",this.lines=1,this.effect="pulse",this.index=0}updated(e){super.updated(e);let t=Number.isFinite(this.index)?Math.max(0,Math.floor(this.index)):0;this.renderRoot.querySelectorAll(".bone").forEach((i,r)=>{i.style.setProperty("--_index",String(t+r))})}render(){let e=this.shape==="text"?Math.max(1,Math.floor(this.lines)||1):1;return l`<div part="base" class="skeleton" aria-hidden="true">
4013
+ ${Array.from({length:e},()=>l`<span part="bone" class="bone"></span>`)}
4014
+ </div>`}};zi.define();function Xs(n){let e=Intl.Segmenter;return e?Array.from(new e(void 0,{granularity:"grapheme"}).segment(n),t=>t.segment):Array.from(n)}function Kl(n,e){let t=n.trim().split(/\s+/u).filter(Boolean),[i,...r]=t;if(i===void 0)return"";let s=r.at(-1),o=Xs(i)[0]??"",a=s===void 0?"":Xs(s)[0]??"";return(o+a).toLocaleUpperCase(e)}var $i=class extends p{static tagName="und-avatar";static properties={src:{},name:{},size:{reflect:!0},shape:{reflect:!0},status:{reflect:!0},statusLabel:{attribute:"status-label"},decorative:{type:Boolean,reflect:!0},loading:{},referrerPolicy:{attribute:"referrerpolicy"}};static styles=u` @layer und.components{:host{--_size:var(--und-avatar-size,var(--und-avatar-size-md,36px));--_radius:var(--und-radius-full,9999px);--_dot:10px;--_dot-ring:1px;--_glyph:1px;--_dot-offset:calc(var(--_size) * 0.1464 - var(--_dot) / 2);display:inline-flex;vertical-align:middle}:host([hidden]){display:none}:host([size='xs']){--_size:var(--und-avatar-size,var(--und-avatar-size-xs,20px))}:host([size='sm']){--_size:var(--und-avatar-size,var(--und-avatar-size-sm,24px))}:host([size='lg']){--_size:var(--und-avatar-size,var(--und-avatar-size-lg,48px));--_dot:20px;--_dot-ring:2px;--_glyph:1.5px}:host([size='xl']){--_size:var(--und-avatar-size,var(--und-avatar-size-xl,128px));--_dot:32px;--_dot-ring:4px;--_glyph:2px}:host([shape='rounded']){--_radius:var(--und-radius-lg,8px);--_dot-offset:calc(var(--_dot) * -0.25)}:host([shape='square']){--_radius:0;--_dot-offset:calc(var(--_dot) * -0.25)}.avatar{position:relative;box-sizing:border-box;display:inline-flex;flex:none;align-items:center;justify-content:center;inline-size:var(--_size);block-size:var(--_size);border-radius:var(--_radius);background-color:var( --und-avatar-bg,color-mix(in srgb,var(--und-fg-default,#0a1317) 10%,var(--und-bg-surface,#fff)) );color:var(--und-avatar-fg,var(--und-fg-default,#0a1317));font-size:calc(var(--_size) * 0.4);font-weight:var(--und-font-weight-medium,500);line-height:1;text-transform:uppercase;user-select:none}.clip{display:inline-flex;align-items:center;justify-content:center;inline-size:100%;block-size:100%;overflow:hidden;border-radius:inherit}.image{inline-size:100%;block-size:100%;object-fit:cover}.icon{inline-size:60%;block-size:60%}.status{position:absolute;inset-block-end:var(--_dot-offset);inset-inline-end:var(--_dot-offset);box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--_dot);block-size:var(--_dot);border:var(--_dot-ring) solid var(--und-avatar-ring,var(--und-bg-surface,#fff));border-radius:50%;background-color:var(--und-bg-surface,#fff);color:var(--und-fg-muted,#445564)}.status::after{box-sizing:border-box;inline-size:100%;block-size:100%;border:var(--_glyph) solid currentcolor;border-radius:50%;content:''}:host([status='online']) .status{background-color:var(--und-status-success-solid,#0d8626);color:var(--und-status-success-on-solid,#fff)}:host([status='away']) .status{background-color:var(--und-status-warning-solid,#e9af08);color:var(--und-status-warning-on-solid,#0a1317)}:host([status='online']) .status::after,:host([status='away']) .status::after{content:none}:host([status='busy']) .status{background-color:var(--und-status-danger-solid,#e3193b);color:var(--und-status-danger-on-solid,#fff)}:host([status='busy']) .status::after{inline-size:75%;block-size:var(--_glyph);border:0;border-radius:var(--und-radius-full,9999px);background-color:currentcolor}@media (forced-colors:active){.avatar{border:1px solid CanvasText}.status{border-color:Canvas;background-color:CanvasText;color:Canvas}}}
4015
4015
 
4016
4016
 
4017
4017
 
@@ -4171,7 +4171,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
4171
4171
 
4172
4172
 
4173
4173
 
4174
- `;#e=!1;constructor(){super(),this.size="md",this.shape="circle",this.decorative=!1,this.loading="lazy"}willUpdate(e){e.has("src")&&(this.#e=!1,this.src&&ve(this.src)===void 0&&C("unsafe-src:und-avatar","<und-avatar> ignored an unsafe src."))}firstUpdated(e){super.firstUpdated(e),!this.name&&!this.decorative&&C("avatar-name","<und-avatar> needs a `name` (its accessible name), or `decorative` next to a visible name.")}#t=()=>{this.#e=!0,this.requestUpdate()};get#i(){let e=this.name?.trim()??"",t=this.status?this.statusLabel??this.status:"";return[e,t].filter(Boolean).join(", ")}render(){let e=this.#i,t=this.decorative||!e,i=this.name?Kl(this.name,this.lang||void 0):"",r,s=ve(this.src);return s&&!this.#e?r=a`<img
4174
+ `;#e=!1;constructor(){super(),this.size="md",this.shape="circle",this.decorative=!1,this.loading="lazy"}willUpdate(e){e.has("src")&&(this.#e=!1,this.src&&ve(this.src)===void 0&&C("unsafe-src:und-avatar","<und-avatar> ignored an unsafe src."))}firstUpdated(e){super.firstUpdated(e),!this.name&&!this.decorative&&C("avatar-name","<und-avatar> needs a `name` (its accessible name), or `decorative` next to a visible name.")}#t=()=>{this.#e=!0,this.requestUpdate()};get#i(){let e=this.name?.trim()??"",t=this.status?this.statusLabel??this.status:"";return[e,t].filter(Boolean).join(", ")}render(){let e=this.#i,t=this.decorative||!e,i=this.name?Kl(this.name,this.lang||void 0):"",r,s=ve(this.src);return s&&!this.#e?r=l`<img
4175
4175
  part="image"
4176
4176
  class="image"
4177
4177
  src=${s}
@@ -4180,16 +4180,16 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
4180
4180
  decoding="async"
4181
4181
  referrerpolicy=${this.referrerPolicy??c}
4182
4182
  @error=${this.#t}
4183
- />`:i?r=a`<span part="initials" class="initials">${i}</span>`:r=a`<svg part="icon" class="icon" viewBox="0 0 24 24" fill="currentColor">
4183
+ />`:i?r=l`<span part="initials" class="initials">${i}</span>`:r=l`<svg part="icon" class="icon" viewBox="0 0 24 24" fill="currentColor">
4184
4184
  <circle cx="12" cy="8" r="4.5"></circle>
4185
4185
  <path d="M3 21.5c0-4.6 4-8 9-8s9 3.4 9 8z"></path>
4186
- </svg>`,a`<span
4186
+ </svg>`,l`<span
4187
4187
  part="base"
4188
4188
  class="avatar"
4189
4189
  role=${t?c:"img"}
4190
4190
  aria-label=${t?c:e}
4191
4191
  aria-hidden=${t?"true":c}
4192
- ><span class="clip">${r}</span>${this.status?a`<span part="status" class="status"></span>`:c}</span
4192
+ ><span class="clip">${r}</span>${this.status?l`<span part="status" class="status"></span>`:c}</span
4193
4193
  >`}};$i.define();var Si=class extends p{static tagName="und-avatar-group";static properties={label:{},max:{type:Number},size:{reflect:!0},shape:{reflect:!0},moreLabel:{attribute:"more-label"}};static styles=u` @layer und.components{:host{--_size:var(--und-avatar-size-md,36px);--_radius:var(--und-radius-full,9999px);display:inline-flex;vertical-align:middle}:host([hidden]){display:none}:host([size='xs']){--_size:var(--und-avatar-size-xs,20px)}:host([size='sm']){--_size:var(--und-avatar-size-sm,24px)}:host([size='lg']){--_size:var(--und-avatar-size-lg,48px)}:host([size='xl']){--_size:var(--und-avatar-size-xl,128px)}:host([shape='rounded']){--_radius:var(--und-radius-lg,8px)}:host([shape='square']){--_radius:0}.group{display:inline-flex;align-items:center}::slotted(*){border-radius:var(--_radius);box-shadow:0 0 0 2px var(--und-avatar-ring,var(--und-bg-surface,#fff))}::slotted(:not(:first-child)),.overflow{margin-inline-start:var(--und-avatar-group-overlap,calc(4px - var(--_size) * 0.25))}.overflow{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--_size);block-size:var(--_size);padding-inline:var(--und-space-2,0.5rem);border-radius:var(--_radius);background-color:color-mix( in srgb,var(--und-fg-default,#0a1317) 10%,var(--und-bg-surface,#fff) );box-shadow:0 0 0 2px var(--und-avatar-ring,var(--und-bg-surface,#fff));color:var(--und-fg-muted,#445564);font-size:max(var(--und-text-caption-size,0.75rem),calc(var(--_size) * 0.35));font-weight:var(--und-font-weight-medium,500);line-height:1.6667}@media (forced-colors:active){.overflow{border:1px solid CanvasText}}}
4194
4194
 
4195
4195
 
@@ -4270,8 +4270,8 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
4270
4270
 
4271
4271
 
4272
4272
 
4273
- `;#e=0;#t=new Set;constructor(){super(),this.size="md",this.shape="circle",this.moreLabel="{count} more"}willUpdate(e){!!1&&e.has("max")&&this.#r()}#i=()=>{this.#r()&&this.requestUpdate()};#r(){let e=[...this.children].filter(s=>!s.hasAttribute("hidden")||this.#t.has(s)),t=this.max!=null&&this.max>=0?Math.floor(this.max):1/0,i=0;e.forEach((s,o)=>{o>=t?(i+=1,this.#t.add(s),s.setAttribute("hidden","")):this.#t.has(s)&&(this.#t.delete(s),s.removeAttribute("hidden"))});let r=i!==this.#e;return this.#e=i,r}render(){let e=this.#e,t=new Intl.NumberFormat(this.lang||void 0).format(e);return a`<div part="base" class="group" role="group" aria-label=${this.label||c}>
4274
- <slot @slotchange=${this.#i}></slot>${e>0?a`<span
4273
+ `;#e=0;#t=new Set;constructor(){super(),this.size="md",this.shape="circle",this.moreLabel="{count} more"}willUpdate(e){!!1&&e.has("max")&&this.#r()}#i=()=>{this.#r()&&this.requestUpdate()};#r(){let e=[...this.children].filter(s=>!s.hasAttribute("hidden")||this.#t.has(s)),t=this.max!=null&&this.max>=0?Math.floor(this.max):1/0,i=0;e.forEach((s,o)=>{o>=t?(i+=1,this.#t.add(s),s.setAttribute("hidden","")):this.#t.has(s)&&(this.#t.delete(s),s.removeAttribute("hidden"))});let r=i!==this.#e;return this.#e=i,r}render(){let e=this.#e,t=new Intl.NumberFormat(this.lang||void 0).format(e);return l`<div part="base" class="group" role="group" aria-label=${this.label||c}>
4274
+ <slot @slotchange=${this.#i}></slot>${e>0?l`<span
4275
4275
  part="overflow"
4276
4276
  class="overflow"
4277
4277
  role="img"
@@ -4468,14 +4468,14 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
4468
4468
 
4469
4469
 
4470
4470
 
4471
- `;#e="media heading body footer";#t=!1;#i(){return[...this.children].some(e=>e.slot==="heading"&&/^H[1-6]$/.test(e.tagName))}constructor(){super(),this.variant="default",this.headingLevel=3}connectedCallback(){super.connectedCallback();let e=new Set;for(let t of this.childNodes)t instanceof Element?e.add(t.slot||"body"):t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()&&e.add("body");this.#e=[...e].join(" "),this.#t=this.#i()}#r=()=>{let e=[...this.renderRoot.querySelectorAll("slot")].filter(i=>i.assignedNodes({flatten:!0}).some(r=>r.nodeType===Node.ELEMENT_NODE||r.textContent?.trim())).map(i=>i.name||"body").join(" "),t=this.#i();(e!==this.#e||t!==this.#t)&&(this.#e=e,this.#t=t,this.requestUpdate())};#n(e){return this.#e.split(" ").includes(e)}isInteractive(e){return e!==void 0}renderControl(e,t){return e!==void 0?a`<a
4471
+ `;#e="media heading body footer";#t=!1;#i(){return[...this.children].some(e=>e.slot==="heading"&&/^H[1-6]$/.test(e.tagName))}constructor(){super(),this.variant="default",this.headingLevel=3}connectedCallback(){super.connectedCallback();let e=new Set;for(let t of this.childNodes)t instanceof Element?e.add(t.slot||"body"):t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()&&e.add("body");this.#e=[...e].join(" "),this.#t=this.#i()}#r=()=>{let e=[...this.renderRoot.querySelectorAll("slot")].filter(i=>i.assignedNodes({flatten:!0}).some(r=>r.nodeType===Node.ELEMENT_NODE||r.textContent?.trim())).map(i=>i.name||"body").join(" "),t=this.#i();(e!==this.#e||t!==this.#t)&&(this.#e=e,this.#t=t,this.requestUpdate())};#n(e){return this.#e.split(" ").includes(e)}isInteractive(e){return e!==void 0}renderControl(e,t){return e!==void 0?l`<a
4472
4472
  part="link"
4473
4473
  class="link"
4474
4474
  href=${e}
4475
4475
  target=${this.target||c}
4476
4476
  rel=${H(this.target,this.rel)??c}
4477
4477
  >${t}</a
4478
- >`:t}render(){let e=Math.min(Math.max(Math.round(this.headingLevel)||3,1),6),t=M(this.href),i=a`<slot name="heading" @slotchange=${this.#r}></slot>`;return a`<div part="base" class="card ${this.isInteractive(t)?"interactive":""}">
4478
+ >`:t}render(){let e=Math.min(Math.max(Math.round(this.headingLevel)||3,1),6),t=M(this.href),i=l`<slot name="heading" @slotchange=${this.#r}></slot>`;return l`<div part="base" class="card ${this.isInteractive(t)?"interactive":""}">
4479
4479
  <div part="media" class="media ${this.#n("media")?"":"empty"}">
4480
4480
  <slot name="media" @slotchange=${this.#r}></slot>
4481
4481
  </div>
@@ -4495,7 +4495,7 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
4495
4495
  <div part="footer" class="footer ${this.#n("footer")?"":"empty"}">
4496
4496
  <slot name="footer" @slotchange=${this.#r}></slot>
4497
4497
  </div>
4498
- </div>`}};We.define();function Ye(n){let e=[];for(let t of n){let i=t.parentElement,r=i instanceof HTMLOptGroupElement?i:void 0;e.push({value:t.value,label:t.label||t.value,disabled:t.disabled||(r?.disabled??!1),...r?{group:r.label}:{}})}return e}var V=n=>`option-${n}`;function we(n,e,t){for(let i=e+t;i>=0&&i<n.length;i+=t)if(!n[i]?.disabled)return i;return-1}var J=(n,e)=>we(n,e===1?-1:n.length,e);function Xe(n,e,t){let i=e,r=t>0?1:-1;for(let s=0;s<Math.abs(t);s+=1){let o=we(n,i,r);if(o===-1)break;i=o}return i}function _e(n,{active:e,isSelected:t,indexOf:i=(r,s)=>s}){let r=[],s=0;for(;s<n.length;){let o=n[s]?.group,l=s,d=[];for(let h=n[s];h&&h.group===o;h=n[s]){let f=i(h,s),m=t(h,f);d.push(a`<div
4498
+ </div>`}};We.define();function Ye(n){let e=[];for(let t of n){let i=t.parentElement,r=i instanceof HTMLOptGroupElement?i:void 0;e.push({value:t.value,label:t.label||t.value,disabled:t.disabled||(r?.disabled??!1),...r?{group:r.label}:{}})}return e}var V=n=>`option-${n}`;function we(n,e,t){for(let i=e+t;i>=0&&i<n.length;i+=t)if(!n[i]?.disabled)return i;return-1}var J=(n,e)=>we(n,e===1?-1:n.length,e);function Xe(n,e,t){let i=e,r=t>0?1:-1;for(let s=0;s<Math.abs(t);s+=1){let o=we(n,i,r);if(o===-1)break;i=o}return i}function _e(n,{active:e,isSelected:t,indexOf:i=(r,s)=>s}){let r=[],s=0;for(;s<n.length;){let o=n[s]?.group,a=s,d=[];for(let h=n[s];h&&h.group===o;h=n[s]){let f=i(h,s),m=t(h,f);d.push(l`<div
4499
4499
  id=${V(f)}
4500
4500
  part="option"
4501
4501
  class="option"
@@ -4506,8 +4506,8 @@ import{a as ge,b as u,c as a,d as k,e as ps,f as c,g as fs,h as ms,i as Te,j as
4506
4506
  ?data-active=${f===e}
4507
4507
  >
4508
4508
  <span class="check" aria-hidden="true"></span><span class="label">${h.label}</span>
4509
- </div>`),s+=1}r.push(o===void 0?a`${d}`:a`<div part="group" class="group" role="group" aria-labelledby="group-${l}">
4510
- <div id="group-${l}" part="group-label" class="group-label">${o}</div>
4509
+ </div>`),s+=1}r.push(o===void 0?l`${d}`:l`<div part="group" class="group" role="group" aria-labelledby="group-${a}">
4510
+ <div id="group-${a}" part="group-label" class="group-label">${o}</div>
4511
4511
  ${d}
4512
4512
  </div>`)}return r}function W(n){for(let e of n.composedPath())if(e instanceof HTMLElement&&e.dataset.index!==void 0)return Number(e.dataset.index);return-1}var Zs=new Map;function Ze(n){if(!1)return"";let e=Zs.get(n);if(e===void 0){let t=document.createElement(n);t.required=!0,e=t.validationMessage,Zs.set(n,e)}return e}function le(n){let e=new Set,t=n.getRootNode();if(n.id&&typeof t.querySelectorAll=="function")for(let r of t.querySelectorAll(`label[for="${CSS.escape(n.id)}"]`))e.add(r);let i=n.closest("label");return i&&!i.htmlFor&&e.add(i),[...e]}function X(n,e){let t=[];for(let i of n){let r="",s=document.createTreeWalker(i,NodeFilter.SHOW_TEXT);for(let o=s.nextNode();o;o=s.nextNode())!e.contains(o)&&!o.parentElement?.closest('[aria-hidden="true"]')&&(r+=o.textContent??"");r=r.replace(/\s+/g," ").trim(),r&&!t.includes(r)&&t.push(r)}return t.join(" ")}function Qe(n){let e=E("und-field"),t=g("label","und-field__label","label");t.slot="label";let i=g("p","und-field__description","description");i.id=`${e}-description`,i.slot="description";let r=g("p","und-field__error","error");return r.id=`${e}-error`,r.slot="error",r.hidden=!0,n.prepend(t,i),n.append(r),{label:t,description:i,error:r}}function Je(n,e){let t=e.label??"";n.label.hidden!==!t&&(n.label.hidden=!t),t&&(Q(n.label,t,e.marker),n.label.htmlFor!==e.forId&&(n.label.htmlFor=e.forId));let i=e.description??"";n.description.textContent!==i&&(n.description.textContent=i),n.description.hidden!==!i&&(n.description.hidden=!i),oe(n.error,e.error)}function de(n,e){let t=n.getRootNode(),i=[];for(let r of(e??"").split(/\s+/)){let s=r?t.getElementById?.(r):null;s&&i.push(s)}return i}function et(n,e,t){n.disconnect();for(let i of t)e.contains(i)||n.observe(i,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["hidden","aria-hidden"]})}var Ie=u` --_height:var(--und-input-height,var(--und-size-element-md,2rem));--_pad:var(--und-input-padding-inline,var(--und-control-padding-x,0.75rem));box-sizing:border-box;min-block-size:var(--_height);min-inline-size:var(--und-input-min-inline-size,10rem);max-inline-size:100%;margin:0;padding-block:0;padding-inline:var(--_pad) calc(var(--_pad) + 1.25em);border:var(--und-border-width,1px) solid var(--und-input-border-color,var(--und-border-control,#80838d));border-radius:var( --und-input-radius,var(--und-shape-control,var(--und-radius-control,0.375rem)) );background-color:var(--und-input-bg,var(--und-bg-surface,#fff));color:var(--und-fg-default,#1c2024);font:inherit;font-size:var(--und-input-font-size,0.875rem);line-height:1.5;text-align:start;transition:border-color var(--und-duration-fast,175ms) ease,box-shadow var(--und-duration-fast,175ms) ease;
4513
4513
 
@@ -4915,10 +4915,10 @@ ${Ie} inline-size:100%;cursor:pointer;appearance:none;background-image:linear-gr
4915
4915
 
4916
4916
 
4917
4917
 
4918
- `;var Li=class extends p{static tagName="und-select";static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static styles=Ci;static properties={mode:{reflect:!0},size:{reflect:!0},label:{},description:{},error:{},placeholder:{},name:{reflect:!0},disabled:{type:Boolean,reflect:!0},required:{type:Boolean,reflect:!0},open:{type:Boolean,reflect:!0}};#e=-1;get active(){return this.#e}set active(e){let t=this.#e;t!==e&&(this.#e=e,this.requestUpdate("active",t))}#t=null;#i={disabled:!1,required:!1};#r=[];#n=-1;#s="native";#o="";#d="";#a="";#l=null;#c;#u="";#h=!1;#p;#f=!1;#m;#b=!1;#g=new y(this);#v=new P(this,{onDismiss:()=>{this.open=!1}});#x=new O(this,{getAnchor:()=>this.#z(),getFloating:()=>this.#$(),placement:"bottom-start",offset:4,getDirection:()=>this.#g.dir});#y=new se(this,{listen:!1,getItems:()=>[...this.renderRoot.querySelectorAll('[role="option"]')],getActiveIndex:()=>this.open?this.active:this.#n,getLabel:e=>{let t=this.#r[Number(e.dataset.index)];return t&&!t.disabled?t.label:""},getLocale:()=>this.#g.lang||void 0,onMatch:e=>{this.open?this.active=e:this.#T(e)}});constructor(){super(),this.mode="auto",this.size="md",this.disabled=!1,this.required=!1,this.open=!1}get value(){return this.#t?.value??this.#l??""}set value(e){this.#l=e,this.#t&&this.#_()&&this.#w()}#_(){let e=this.#t,t=this.#l;return!e||t===null||![...e.options].some(i=>i.value===t)?!1:(this.#l=null,e.value=t,!0)}get selectedIndex(){return this.#t?.selectedIndex??-1}get select(){return this.#t}get form(){return this.internals.form}checkValidity(){return this.#s==="native"?this.#t?.checkValidity()??!0:this.internals.checkValidity()}reportValidity(){return this.#s==="native"?this.#t?.reportValidity()??!0:this.internals.reportValidity()}connectedCallback(){super.connectedCallback(),D(this,[Qs,z]),this.#p??=new MutationObserver(()=>this.#w()),this.addEventListener("invalid",this.#C,!0),this.#m??=new MutationObserver(()=>this.#w()),this.#m.observe(this,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),this.#w(),queueMicrotask(()=>this.#w())}disconnectedCallback(){super.disconnectedCallback(),this.#m?.disconnect(),this.#p?.disconnect(),this.removeEventListener("invalid",this.#C,!0),this.#M(),this.#t=null}formDisabledCallback(e){this.#f=e,this.requestUpdate()}formResetCallback(){this.#a="",this.#l=null,queueMicrotask(()=>this.#w())}formStateRestoreCallback(e){typeof e=="string"&&(this.value=e)}get#k(){return this.disabled||this.#f||this.#i.disabled}#z(){return this.renderRoot.querySelector("#trigger")}#$(){return this.renderRoot.querySelector("#listbox")}#L(){return this.mode==="native"||this.mode==="custom"?this.mode:Te("appearance: base-select")||globalThis.matchMedia?.("(pointer: coarse)").matches?"native":"custom"}#w(){if(!(this.#b||!this.isConnected)){this.#b=!0;try{let e=this.querySelector(":scope > select");if(e!==this.#t&&(this.#M(),this.#t=e,e?this.#i={disabled:e.disabled,required:e.required}:C("select:no-select","<und-select> needs a native <select> child.")),this.#_(),this.#s=this.#L(),e){let t=this.#s==="custom",i=t||this.disabled||this.#i.disabled;e.disabled!==i&&(e.disabled=i);let r=!t&&(this.required||this.#i.required);e.required!==r&&(e.required=r),!t&&this.label&&e.getAttribute("aria-label")!==this.label&&e.setAttribute("aria-label",this.label),t&&!this.name&&e.name&&(this.name=e.name),this.#r=Ye(e.options),this.#n=e.selectedIndex,this.#E(e)}this.requestUpdate()}finally{queueMicrotask(()=>{this.#b=!1})}}}get#S(){return this.error||(this.label||this.description?this.#a:"")}#C=e=>{if(this.error)return;let t=this.#t;this.#a=(e.target===this?this.internals.validationMessage:t?.validationMessage)??"",this.#w()};#E(e){this.#a&&e.value&&(this.#a=""),!this.#c&&(this.label||this.description||this.error||this.#a)&&(this.#c=Qe(this));let t=this.#c,i=this.#S;if(t){e.id||=E("und-select"),Je(t,{label:this.label,description:this.description,error:i,marker:this.required||this.#i.required?"required":void 0,forId:e.id});let o=U(this.description?t.description.id:"",i?t.error.id:""),d=U(e.getAttribute("aria-describedby")).split(" ").filter(f=>f&&!this.#u.split(" ").includes(f)),h=U(...d,o);this.#u=o,h!==(e.getAttribute("aria-describedby")??"")&&(h?e.setAttribute("aria-describedby",h):e.removeAttribute("aria-describedby")),i?(e.setAttribute("aria-invalid","true"),this.#h=!0):this.#h&&(e.removeAttribute("aria-invalid"),this.#h=!1)}e.setCustomValidity(this.error??"");let r=de(this,this.getAttribute("aria-labelledby")),s=[...de(this,e.getAttribute("aria-describedby")),...de(this,this.getAttribute("aria-describedby"))].filter((o,l,d)=>d.indexOf(o)===l);this.#o=X(r,this)||this.label||X([...e.labels,...le(this)],this)||this.getAttribute("aria-label")||"",this.#d=X(s,e),this.#p&&et(this.#p,this,[...r,...s,...le(this)])}get#N(){return!!(this.error||this.#a||this.#t?.getAttribute("aria-invalid")==="true"||this.getAttribute("aria-invalid")==="true")}#M(){let e=this.#t;e&&(e.disabled=this.#i.disabled,e.required=this.#i.required)}willUpdate(e){(e.has("mode")||e.has("disabled")||e.has("required")||e.has("label")||e.has("description")||e.has("error"))&&(this.#b=!1,this.#w()),e.has("open")&&this.#y.reset(),e.has("open")&&!this.open&&(this.active=-1),e.has("open")&&this.open&&(this.#k||this.#s!=="custom"?this.open=!1:this.active<0&&(this.active=this.#n>=0&&!this.#r[this.#n]?.disabled?this.#n:J(this.#r,1)))}updated(e){let t=this.#s==="custom",i=this.renderRoot;"referenceTarget"in i&&(i.referenceTarget=t?"trigger":null),this.setCustomState("custom",t),this.setCustomState("open",this.open);let r=this.#t;if(t&&r){let s=r.selectedIndex>=0?r.value:null;this.internals.setFormValue(s);let o=(this.required||this.#i.required)&&!r.value;this.error?this.internals.setValidity({customError:!0},this.error,this.#z()??void 0):o?this.internals.setValidity({valueMissing:!0},Ze("select"),this.#z()??void 0):this.internals.setValidity({})}else this.internals.setFormValue(null),this.internals.setValidity({});e.has("open")&&this.#A(e.get("open")!==void 0),this.open&&e.has("active")&&this.renderRoot.querySelector(`#${V(this.active)}`)?.scrollIntoView?.({block:"nearest"})}#A(e){let t=this.#$(),i=this.#z();this.open&&t&&i?(t.style.minInlineSize=`${i.offsetWidth}px`,t.matches(":popover-open")||t.showPopover(),this.#x.start(),this.#v.activate()):(this.#v.deactivate(),this.#x.stop(),t?.matches(":popover-open")&&t.hidePopover()),e&&this.emit("und-open-change",{open:this.open})}#T(e){let t=this.#t,i=this.#r[e];!t||!i||i.disabled||t.selectedIndex!==e&&(t.selectedIndex=e,this.#l=null,this.#w(),t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0})))}#D(e){this.open=!0,this.active=e}#I=()=>{this.#k||(this.open=!this.open)};#B=e=>{if(this.#k||e.isComposing||e.ctrlKey||e.metaKey)return;let t=this.#r,{key:i,altKey:r}=e,s=this.#n,o=s>=0&&!t[s]?.disabled?s:J(t,1);if(!this.open){if(["ArrowDown","ArrowUp","Enter"," "].includes(i)){if(i===" "&&this.#y.buffer&&this.#y.handleKeydown(e))return;e.preventDefault(),this.#D(o)}else i==="Home"||i==="End"?(e.preventDefault(),this.#D(J(t,i==="Home"?1:-1))):this.#y.handleKeydown(e);return}let l;switch(i){case"ArrowDown":r||(l=we(t,this.active,1));break;case"ArrowUp":if(r){e.preventDefault(),this.#T(this.active),this.open=!1;return}l=we(t,this.active,-1);break;case"Home":l=J(t,1);break;case"End":l=J(t,-1);break;case"PageDown":l=Xe(t,this.active,10);break;case"PageUp":l=Xe(t,this.active,-10);break;case" ":if(this.#y.buffer&&this.#y.handleKeydown(e))return;e.preventDefault(),this.#T(this.active),this.open=!1;return;case"Enter":e.preventDefault(),this.#T(this.active),this.open=!1;return;case"Tab":this.#T(this.active),this.open=!1;return;default:this.#y.handleKeydown(e);return}e.preventDefault(),l!==void 0&&l!==-1&&(this.active=l)};#P=e=>{e.preventDefault()};#R=e=>{let t=W(e);t!==-1&&!this.#r[t]?.disabled&&(this.active=t)};#U=e=>{let t=W(e);t===-1||this.#r[t]?.disabled||(this.#T(t),this.open=!1,this.#z()?.focus())};#q=e=>{let t=e.relatedTarget;this.open&&!(t instanceof Node&&S(this,t))&&(this.open=!1)};render(){if(this.#s!=="custom")return a`<slot name="label"></slot>
4918
+ `;var Li=class extends p{static tagName="und-select";static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static styles=Ci;static properties={mode:{reflect:!0},size:{reflect:!0},label:{},description:{},error:{},placeholder:{},name:{reflect:!0},disabled:{type:Boolean,reflect:!0},required:{type:Boolean,reflect:!0},open:{type:Boolean,reflect:!0}};#e=-1;get active(){return this.#e}set active(e){let t=this.#e;t!==e&&(this.#e=e,this.requestUpdate("active",t))}#t=null;#i={disabled:!1,required:!1};#r=[];#n=-1;#s="native";#o="";#d="";#a="";#l=null;#c;#u="";#h=!1;#p;#f=!1;#m;#b=!1;#v=new y(this);#g=new P(this,{onDismiss:()=>{this.open=!1}});#x=new O(this,{getAnchor:()=>this.#z(),getFloating:()=>this.#$(),placement:"bottom-start",offset:4,getDirection:()=>this.#v.dir});#y=new se(this,{listen:!1,getItems:()=>[...this.renderRoot.querySelectorAll('[role="option"]')],getActiveIndex:()=>this.open?this.active:this.#n,getLabel:e=>{let t=this.#r[Number(e.dataset.index)];return t&&!t.disabled?t.label:""},getLocale:()=>this.#v.lang||void 0,onMatch:e=>{this.open?this.active=e:this.#T(e)}});constructor(){super(),this.mode="auto",this.size="md",this.disabled=!1,this.required=!1,this.open=!1}get value(){return this.#t?.value??this.#l??""}set value(e){this.#l=e,this.#t&&this.#_()&&this.#k()}#_(){let e=this.#t,t=this.#l;return!e||t===null||![...e.options].some(i=>i.value===t)?!1:(this.#l=null,e.value=t,!0)}get selectedIndex(){return this.#t?.selectedIndex??-1}get select(){return this.#t}get form(){return this.internals.form}checkValidity(){return this.#s==="native"?this.#t?.checkValidity()??!0:this.internals.checkValidity()}reportValidity(){return this.#s==="native"?this.#t?.reportValidity()??!0:this.internals.reportValidity()}connectedCallback(){super.connectedCallback(),D(this,[Qs,z]),this.#p??=new MutationObserver(()=>this.#k()),this.addEventListener("invalid",this.#C,!0),this.#m??=new MutationObserver(()=>this.#k()),this.#m.observe(this,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),this.#k(),queueMicrotask(()=>this.#k())}disconnectedCallback(){super.disconnectedCallback(),this.#m?.disconnect(),this.#p?.disconnect(),this.removeEventListener("invalid",this.#C,!0),this.#N(),this.#t=null}formDisabledCallback(e){this.#f=e,this.requestUpdate()}formResetCallback(){this.#a="",this.#l=null,queueMicrotask(()=>this.#k())}formStateRestoreCallback(e){typeof e=="string"&&(this.value=e)}get#w(){return this.disabled||this.#f||this.#i.disabled}#z(){return this.renderRoot.querySelector("#trigger")}#$(){return this.renderRoot.querySelector("#listbox")}#L(){return this.mode==="native"||this.mode==="custom"?this.mode:Te("appearance: base-select")||globalThis.matchMedia?.("(pointer: coarse)").matches?"native":"custom"}#k(){if(!(this.#b||!this.isConnected)){this.#b=!0;try{let e=this.querySelector(":scope > select");if(e!==this.#t&&(this.#N(),this.#t=e,e?this.#i={disabled:e.disabled,required:e.required}:C("select:no-select","<und-select> needs a native <select> child.")),this.#_(),this.#s=this.#L(),e){let t=this.#s==="custom",i=t||this.disabled||this.#i.disabled;e.disabled!==i&&(e.disabled=i);let r=!t&&(this.required||this.#i.required);e.required!==r&&(e.required=r),!t&&this.label&&e.getAttribute("aria-label")!==this.label&&e.setAttribute("aria-label",this.label),t&&!this.name&&e.name&&(this.name=e.name),this.#r=Ye(e.options),this.#n=e.selectedIndex,this.#A(e)}this.requestUpdate()}finally{queueMicrotask(()=>{this.#b=!1})}}}get#S(){return this.error||(this.label||this.description?this.#a:"")}#C=e=>{if(this.error)return;let t=this.#t;this.#a=(e.target===this?this.internals.validationMessage:t?.validationMessage)??"",this.#k()};#A(e){this.#a&&e.value&&(this.#a=""),!this.#c&&(this.label||this.description||this.error||this.#a)&&(this.#c=Qe(this));let t=this.#c,i=this.#S;if(t){e.id||=E("und-select"),Je(t,{label:this.label,description:this.description,error:i,marker:this.required||this.#i.required?"required":void 0,forId:e.id});let o=U(this.description?t.description.id:"",i?t.error.id:""),d=U(e.getAttribute("aria-describedby")).split(" ").filter(f=>f&&!this.#u.split(" ").includes(f)),h=U(...d,o);this.#u=o,h!==(e.getAttribute("aria-describedby")??"")&&(h?e.setAttribute("aria-describedby",h):e.removeAttribute("aria-describedby")),i?(e.setAttribute("aria-invalid","true"),this.#h=!0):this.#h&&(e.removeAttribute("aria-invalid"),this.#h=!1)}e.setCustomValidity(this.error??"");let r=de(this,this.getAttribute("aria-labelledby")),s=[...de(this,e.getAttribute("aria-describedby")),...de(this,this.getAttribute("aria-describedby"))].filter((o,a,d)=>d.indexOf(o)===a);this.#o=X(r,this)||this.label||X([...e.labels,...le(this)],this)||this.getAttribute("aria-label")||"",this.#d=X(s,e),this.#p&&et(this.#p,this,[...r,...s,...le(this)])}get#M(){return!!(this.error||this.#a||this.#t?.getAttribute("aria-invalid")==="true"||this.getAttribute("aria-invalid")==="true")}#N(){let e=this.#t;e&&(e.disabled=this.#i.disabled,e.required=this.#i.required)}willUpdate(e){(e.has("mode")||e.has("disabled")||e.has("required")||e.has("label")||e.has("description")||e.has("error"))&&(this.#b=!1,this.#k()),e.has("open")&&this.#y.reset(),e.has("open")&&!this.open&&(this.active=-1),e.has("open")&&this.open&&(this.#w||this.#s!=="custom"?this.open=!1:this.active<0&&(this.active=this.#n>=0&&!this.#r[this.#n]?.disabled?this.#n:J(this.#r,1)))}updated(e){let t=this.#s==="custom",i=this.renderRoot;"referenceTarget"in i&&(i.referenceTarget=t?"trigger":null),this.setCustomState("custom",t),this.setCustomState("open",this.open);let r=this.#t;if(t&&r){let s=r.selectedIndex>=0?r.value:null;this.internals.setFormValue(s);let o=(this.required||this.#i.required)&&!r.value;this.error?this.internals.setValidity({customError:!0},this.error,this.#z()??void 0):o?this.internals.setValidity({valueMissing:!0},Ze("select"),this.#z()??void 0):this.internals.setValidity({})}else this.internals.setFormValue(null),this.internals.setValidity({});e.has("open")&&this.#E(e.get("open")!==void 0),this.open&&e.has("active")&&this.renderRoot.querySelector(`#${V(this.active)}`)?.scrollIntoView?.({block:"nearest"})}#E(e){let t=this.#$(),i=this.#z();this.open&&t&&i?(t.style.minInlineSize=`${i.offsetWidth}px`,t.matches(":popover-open")||t.showPopover(),this.#x.start(),this.#g.activate()):(this.#g.deactivate(),this.#x.stop(),t?.matches(":popover-open")&&t.hidePopover()),e&&this.emit("und-open-change",{open:this.open})}#T(e){let t=this.#t,i=this.#r[e];!t||!i||i.disabled||t.selectedIndex!==e&&(t.selectedIndex=e,this.#l=null,this.#k(),t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0})))}#D(e){this.open=!0,this.active=e}#I=()=>{this.#w||(this.open=!this.open)};#B=e=>{if(this.#w||e.isComposing||e.ctrlKey||e.metaKey)return;let t=this.#r,{key:i,altKey:r}=e,s=this.#n,o=s>=0&&!t[s]?.disabled?s:J(t,1);if(!this.open){if(["ArrowDown","ArrowUp","Enter"," "].includes(i)){if(i===" "&&this.#y.buffer&&this.#y.handleKeydown(e))return;e.preventDefault(),this.#D(o)}else i==="Home"||i==="End"?(e.preventDefault(),this.#D(J(t,i==="Home"?1:-1))):this.#y.handleKeydown(e);return}let a;switch(i){case"ArrowDown":r||(a=we(t,this.active,1));break;case"ArrowUp":if(r){e.preventDefault(),this.#T(this.active),this.open=!1;return}a=we(t,this.active,-1);break;case"Home":a=J(t,1);break;case"End":a=J(t,-1);break;case"PageDown":a=Xe(t,this.active,10);break;case"PageUp":a=Xe(t,this.active,-10);break;case" ":if(this.#y.buffer&&this.#y.handleKeydown(e))return;e.preventDefault(),this.#T(this.active),this.open=!1;return;case"Enter":e.preventDefault(),this.#T(this.active),this.open=!1;return;case"Tab":this.#T(this.active),this.open=!1;return;default:this.#y.handleKeydown(e);return}e.preventDefault(),a!==void 0&&a!==-1&&(this.active=a)};#P=e=>{e.preventDefault()};#R=e=>{let t=W(e);t!==-1&&!this.#r[t]?.disabled&&(this.active=t)};#U=e=>{let t=W(e);t===-1||this.#r[t]?.disabled||(this.#T(t),this.open=!1,this.#z()?.focus())};#q=e=>{let t=e.relatedTarget;this.open&&!(t instanceof Node&&S(this,t))&&(this.open=!1)};render(){if(this.#s!=="custom")return l`<slot name="label"></slot>
4919
4919
  <slot name="description"></slot>
4920
4920
  <slot></slot>
4921
- <slot name="error"></slot>`;let e=this.#k,t=this.#r[this.#n],r=(!t||t.value==="")&&this.placeholder,s=this.#o;return a`<slot name="label"></slot><slot name="description"></slot>
4921
+ <slot name="error"></slot>`;let e=this.#w,t=this.#r[this.#n],r=(!t||t.value==="")&&this.placeholder,s=this.#o;return l`<slot name="label"></slot><slot name="description"></slot>
4922
4922
  <div
4923
4923
  id="trigger"
4924
4924
  part="trigger"
@@ -4930,7 +4930,7 @@ ${Ie} inline-size:100%;cursor:pointer;appearance:none;background-image:linear-gr
4930
4930
  aria-controls="listbox"
4931
4931
  aria-label=${s||c}
4932
4932
  aria-describedby=${this.#d?"description":c}
4933
- aria-invalid=${this.#N?"true":c}
4933
+ aria-invalid=${this.#M?"true":c}
4934
4934
  aria-activedescendant=${this.open&&this.active>=0?V(this.active):c}
4935
4935
  aria-disabled=${e?"true":c}
4936
4936
  aria-required=${this.required||this.#i.required?"true":c}
@@ -4955,7 +4955,7 @@ ${Ie} inline-size:100%;cursor:pointer;appearance:none;background-image:linear-gr
4955
4955
  @pointermove=${this.#R}
4956
4956
  @click=${this.#U}
4957
4957
  >
4958
- ${_e(this.#r,{active:this.active,isSelected:(o,l)=>l===this.#n})}
4958
+ ${_e(this.#r,{active:this.active,isSelected:(o,a)=>a===this.#n})}
4959
4959
  </div>
4960
4960
  <slot name="error"></slot>`}};Li.define();var Js=[tt,u` @layer und.components{:host{display:inline-flex;flex-direction:column;gap:var(--und-field-gap,0.375rem);max-inline-size:100%;vertical-align:middle}:host([hidden]){display:none}.field{
4961
4961
 
@@ -5120,7 +5120,7 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5120
5120
 
5121
5121
 
5122
5122
 
5123
- `];var dt=class extends p{static tagName="und-combobox";static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static referenceTarget="input";static styles=Js;static properties={value:{},label:{},description:{},error:{},placeholder:{},name:{reflect:!0},size:{reflect:!0},disabled:{type:Boolean,reflect:!0},required:{type:Boolean,reflect:!0},open:{type:Boolean,reflect:!0},filter:{reflect:!0},allowCustomValue:{type:Boolean,attribute:"allow-custom-value",reflect:!0},loading:{type:Boolean,reflect:!0},debounce:{type:Number},noResultsText:{attribute:"no-results-text"},loadingText:{attribute:"loading-text"},options:{attribute:!1},inputValue:{attribute:!1}};#e=-1;get active(){return this.#e}set active(e){let t=this.#e;t!==e&&(this.#e=e,this.requestUpdate("active",t))}resultsMessage=e=>`${e} ${e===1?"result":"results"} available`;#t=[];#i=null;#r=!1;#n=!1;#s="";#o="";#d="";#a;#l;#c;#u;#h;#p=new y(this);#f=new P(this,{onDismiss:()=>{this.open=!1}});#m=new O(this,{getAnchor:()=>this.renderRoot.querySelector(".field"),getFloating:()=>this.renderRoot.querySelector("#popup"),placement:"bottom-start",offset:4,getDirection:()=>this.#p.dir});constructor(){super(),this.value="",this.inputValue="",this.size="md",this.disabled=!1,this.required=!1,this.open=!1,this.filter="contains",this.allowCustomValue=!1,this.loading=!1,this.debounce=0,this.noResultsText="No results",this.loadingText="Loading\u2026"}get form(){return this.internals.form}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}connectedCallback(){super.connectedCallback(),this.#c??=new MutationObserver(()=>this.#x()),this.#c.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","label","disabled","aria-label","aria-labelledby","aria-describedby","aria-invalid"],characterData:!0}),this.#l??=new MutationObserver(()=>this.#x()),this.addEventListener("invalid",this.#k),D(this,z),this.#x(),queueMicrotask(()=>this.#x())}disconnectedCallback(){super.disconnectedCallback(),this.#c?.disconnect(),this.#l?.disconnect(),this.removeEventListener("invalid",this.#k),clearTimeout(this.#u),clearTimeout(this.#h)}formDisabledCallback(e){this.#n=e,this.requestUpdate()}formResetCallback(){this.#i=null,this.open=!1,this.value=this.getAttribute("value")??"",this.inputValue=this.#z(this.value)}formStateRestoreCallback(e){typeof e=="string"&&(this.value=e)}get#b(){return this.disabled||this.#n}get#g(){return this.options??this.#t}#v(){return this.renderRoot.querySelector("#input")}#x(){if(!1)return;this.#t=Ye(this.querySelectorAll(":scope > option, :scope > optgroup > option, :scope > datalist > option, :scope > datalist > optgroup > option"));let e=de(this,this.getAttribute("aria-labelledby")),t=de(this,this.getAttribute("aria-describedby"));this.#s=X(e,this)||this.label||X(le(this),this)||this.getAttribute("aria-label")||"",this.#o=[X(t,this),this.description,this.#y].filter(Boolean).join(" "),this.#l&&et(this.#l,this,[...e,...t,...le(this)]),this.#i===null&&(this.inputValue=this.#z(this.value)),this.requestUpdate()}get#y(){let e=this.error||(this.label||this.description?this.#d:"");return e?`${fe().errorPrefix} ${e}`:""}get#_(){return!!(this.error||this.#d||this.getAttribute("aria-invalid")==="true")}#k=()=>{this.error||(this.#d=this.internals.validationMessage,this.#x())};#z(e){return e?this.#g.find(t=>t.value===e)?.label??e:""}#$(){let e=this.#g,t=this.#i;if(!t||this.filter==="none")return e;let i=this.#p.lang||void 0,r=t.toLocaleLowerCase(i);return e.filter(s=>{let o=s.label.toLocaleLowerCase(i);return this.filter==="starts-with"?o.startsWith(r):o.includes(r)})}willUpdate(e){e.has("label")&&(this.#s=this.label||this.#s),this.#d&&this.value&&(this.#d=""),(e.has("description")||e.has("error"))&&this.#x(),e.has("value")&&this.#i===null&&(this.inputValue=this.#z(this.value)),e.has("open")&&(this.open&&this.#b&&(this.open=!1),this.open||(this.active=-1,this.#i=null))}updated(e){if(this.setCustomState("open",this.open),this.internals.setFormValue(this.value),this.error?this.internals.setValidity({customError:!0},this.error,this.#v()??void 0):this.required&&!this.value?this.internals.setValidity({valueMissing:!0},Ze("input"),this.#v()??void 0):this.internals.setValidity({}),this.#L(),e.has("open")){let t=this.renderRoot.querySelector("#popup"),i=this.renderRoot.querySelector(".field");this.open&&t&&i?(t.style.minInlineSize=`${i.offsetWidth}px`,t.matches(":popover-open")||t.showPopover(),this.#m.start(),this.#f.activate()):(this.#f.deactivate(),this.#m.stop(),t?.matches(":popover-open")&&t.hidePopover()),e.get("open")!==void 0&&this.emit("und-open-change",{open:this.open})}this.open&&e.has("active")&&this.active>=0&&this.renderRoot.querySelector(`#${V(this.active)}`)?.scrollIntoView?.({block:"nearest"})}#L(){if(!this.#a&&(this.label||this.description||this.error||this.#d)&&(this.#a=Qe(this)),!this.#a)return;this.id||=E("und-combobox");let e=this.error||this.#d;Je(this.#a,{label:this.label,description:this.description,error:this.label||this.description||this.error?e:"",marker:this.required?"required":void 0,forId:this.id})}#w(e){e!==this.value&&(this.value=e,this.dispatchEvent(new Event("change",{bubbles:!0})))}#S(e){!e||e.disabled||(this.#i=null,this.inputValue=e.label,this.open=!1,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.#w(e.value))}#C(){let e=this.inputValue,t=this.#p.lang||void 0,i=e.trim().toLocaleLowerCase(t),r=this.#g.find(s=>!s.disabled&&s.label.toLocaleLowerCase(t)===i);this.#i=null,r?(this.inputValue=r.label,this.#w(r.value)):i?this.allowCustomValue?this.#w(e):this.inputValue=this.#z(this.value):this.#w("")}#E(){this.#i=this.inputValue,this.active=-1,this.#b||(this.open=!0),clearTimeout(this.#u);let e=this.inputValue,t=()=>{this.emit("und-search",{query:e})};this.debounce>0?this.#u=setTimeout(t,this.debounce):t(),clearTimeout(this.#h),this.#h=setTimeout(()=>{if(!this.open||this.loading)return;let i=this.#$().length;N(i===0?this.noResultsText:this.resultsMessage(i))},500)}#N=e=>{this.inputValue=e.target.value,!(e.isComposing||this.#r)&&this.#E()};#M=()=>{this.#r=!0};#A=e=>{this.#r=!1,this.inputValue=e.target.value,this.#E()};#T(e){let t=this.#$(),i=t.findIndex(r=>r.value===this.value&&this.value);this.open=!0,this.active=i>=0?i:this.#D(t,e===1?-1:0,e)}#D(e,t,i){let r=e.length;for(let s=1;s<=r;s+=1){let o=((t+i*s)%r+r)%r;if(!e[o]?.disabled)return o}return-1}#I=e=>{if(e.isComposing||e.keyCode===229||this.#b)return;let t=this.#$();switch(e.key){case"ArrowDown":e.preventDefault(),!this.open&&e.altKey?this.open=!0:this.open?e.altKey||(this.active=this.#D(t,this.active,1)):this.#T(1);break;case"ArrowUp":e.preventDefault(),e.altKey?this.open=!1:this.open?this.active=this.#D(t,this.active<0?0:this.active,-1):this.#T(-1);break;case"Enter":this.open&&this.active>=0?(e.preventDefault(),this.#S(t[this.active])):(this.open&&e.preventDefault(),this.open=!1,this.#C(),e.defaultPrevented||this.internals.form?.requestSubmit());break;case"Escape":!this.open&&this.inputValue&&(e.preventDefault(),this.inputValue="",this.#i=null,this.#w(""));break;case"Home":case"End":case"ArrowLeft":case"ArrowRight":this.active=-1;break;default:}};#B=e=>{let t=e.relatedTarget;t instanceof Node&&S(this,t)||(this.open=!1,this.#C())};#P=()=>{this.#b||(this.open?this.open=!1:this.#T(1),this.#v()?.focus())};#R=e=>{e.preventDefault()};#U=e=>{let t=W(e);t!==-1&&!this.#$()[t]?.disabled&&(this.active=t)};#q=e=>{let t=W(e);t!==-1&&(this.#S(this.#$()[t]),this.#v()?.focus())};render(){let e=this.#b,t=this.#$(),i=this.#s||c,r=this.loading?this.loadingText:t.length===0?this.noResultsText:"";return a`<slot name="label"></slot><slot name="description"></slot>
5123
+ `];var dt=class extends p{static tagName="und-combobox";static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static referenceTarget="input";static styles=Js;static properties={value:{},label:{},description:{},error:{},placeholder:{},name:{reflect:!0},size:{reflect:!0},disabled:{type:Boolean,reflect:!0},required:{type:Boolean,reflect:!0},open:{type:Boolean,reflect:!0},filter:{reflect:!0},allowCustomValue:{type:Boolean,attribute:"allow-custom-value",reflect:!0},loading:{type:Boolean,reflect:!0},debounce:{type:Number},noResultsText:{attribute:"no-results-text"},loadingText:{attribute:"loading-text"},options:{attribute:!1},inputValue:{attribute:!1}};#e=-1;get active(){return this.#e}set active(e){let t=this.#e;t!==e&&(this.#e=e,this.requestUpdate("active",t))}resultsMessage=e=>`${e} ${e===1?"result":"results"} available`;#t=[];#i=null;#r=!1;#n=!1;#s="";#o="";#d="";#a;#l;#c;#u;#h;#p=new y(this);#f=new P(this,{onDismiss:()=>{this.open=!1}});#m=new O(this,{getAnchor:()=>this.renderRoot.querySelector(".field"),getFloating:()=>this.renderRoot.querySelector("#popup"),placement:"bottom-start",offset:4,getDirection:()=>this.#p.dir});constructor(){super(),this.value="",this.inputValue="",this.size="md",this.disabled=!1,this.required=!1,this.open=!1,this.filter="contains",this.allowCustomValue=!1,this.loading=!1,this.debounce=0,this.noResultsText="No results",this.loadingText="Loading\u2026"}get form(){return this.internals.form}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}connectedCallback(){super.connectedCallback(),this.#c??=new MutationObserver(()=>this.#x()),this.#c.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","label","disabled","aria-label","aria-labelledby","aria-describedby","aria-invalid"],characterData:!0}),this.#l??=new MutationObserver(()=>this.#x()),this.addEventListener("invalid",this.#w),D(this,z),this.#x(),queueMicrotask(()=>this.#x())}disconnectedCallback(){super.disconnectedCallback(),this.#c?.disconnect(),this.#l?.disconnect(),this.removeEventListener("invalid",this.#w),clearTimeout(this.#u),clearTimeout(this.#h)}formDisabledCallback(e){this.#n=e,this.requestUpdate()}formResetCallback(){this.#i=null,this.open=!1,this.value=this.getAttribute("value")??"",this.inputValue=this.#z(this.value)}formStateRestoreCallback(e){typeof e=="string"&&(this.value=e)}get#b(){return this.disabled||this.#n}get#v(){return this.options??this.#t}#g(){return this.renderRoot.querySelector("#input")}#x(){if(!1)return;this.#t=Ye(this.querySelectorAll(":scope > option, :scope > optgroup > option, :scope > datalist > option, :scope > datalist > optgroup > option"));let e=de(this,this.getAttribute("aria-labelledby")),t=de(this,this.getAttribute("aria-describedby"));this.#s=X(e,this)||this.label||X(le(this),this)||this.getAttribute("aria-label")||"",this.#o=[X(t,this),this.description,this.#y].filter(Boolean).join(" "),this.#l&&et(this.#l,this,[...e,...t,...le(this)]),this.#i===null&&(this.inputValue=this.#z(this.value)),this.requestUpdate()}get#y(){let e=this.error||(this.label||this.description?this.#d:"");return e?`${fe().errorPrefix} ${e}`:""}get#_(){return!!(this.error||this.#d||this.getAttribute("aria-invalid")==="true")}#w=()=>{this.error||(this.#d=this.internals.validationMessage,this.#x())};#z(e){return e?this.#v.find(t=>t.value===e)?.label??e:""}#$(){let e=this.#v,t=this.#i;if(!t||this.filter==="none")return e;let i=this.#p.lang||void 0,r=t.toLocaleLowerCase(i);return e.filter(s=>{let o=s.label.toLocaleLowerCase(i);return this.filter==="starts-with"?o.startsWith(r):o.includes(r)})}willUpdate(e){e.has("label")&&(this.#s=this.label||this.#s),this.#d&&this.value&&(this.#d=""),(e.has("description")||e.has("error"))&&this.#x(),e.has("value")&&this.#i===null&&(this.inputValue=this.#z(this.value)),e.has("open")&&(this.open&&this.#b&&(this.open=!1),this.open||(this.active=-1,this.#i=null))}updated(e){if(this.setCustomState("open",this.open),this.internals.setFormValue(this.value),this.error?this.internals.setValidity({customError:!0},this.error,this.#g()??void 0):this.required&&!this.value?this.internals.setValidity({valueMissing:!0},Ze("input"),this.#g()??void 0):this.internals.setValidity({}),this.#L(),e.has("open")){let t=this.renderRoot.querySelector("#popup"),i=this.renderRoot.querySelector(".field");this.open&&t&&i?(t.style.minInlineSize=`${i.offsetWidth}px`,t.matches(":popover-open")||t.showPopover(),this.#m.start(),this.#f.activate()):(this.#f.deactivate(),this.#m.stop(),t?.matches(":popover-open")&&t.hidePopover()),e.get("open")!==void 0&&this.emit("und-open-change",{open:this.open})}this.open&&e.has("active")&&this.active>=0&&this.renderRoot.querySelector(`#${V(this.active)}`)?.scrollIntoView?.({block:"nearest"})}#L(){if(!this.#a&&(this.label||this.description||this.error||this.#d)&&(this.#a=Qe(this)),!this.#a)return;this.id||=E("und-combobox");let e=this.error||this.#d;Je(this.#a,{label:this.label,description:this.description,error:this.label||this.description||this.error?e:"",marker:this.required?"required":void 0,forId:this.id})}#k(e){e!==this.value&&(this.value=e,this.dispatchEvent(new Event("change",{bubbles:!0})))}#S(e){!e||e.disabled||(this.#i=null,this.inputValue=e.label,this.open=!1,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.#k(e.value))}#C(){let e=this.inputValue,t=this.#p.lang||void 0,i=e.trim().toLocaleLowerCase(t),r=this.#v.find(s=>!s.disabled&&s.label.toLocaleLowerCase(t)===i);this.#i=null,r?(this.inputValue=r.label,this.#k(r.value)):i?this.allowCustomValue?this.#k(e):this.inputValue=this.#z(this.value):this.#k("")}#A(){this.#i=this.inputValue,this.active=-1,this.#b||(this.open=!0),clearTimeout(this.#u);let e=this.inputValue,t=()=>{this.emit("und-search",{query:e})};this.debounce>0?this.#u=setTimeout(t,this.debounce):t(),clearTimeout(this.#h),this.#h=setTimeout(()=>{if(!this.open||this.loading)return;let i=this.#$().length;N(i===0?this.noResultsText:this.resultsMessage(i))},500)}#M=e=>{this.inputValue=e.target.value,!(e.isComposing||this.#r)&&this.#A()};#N=()=>{this.#r=!0};#E=e=>{this.#r=!1,this.inputValue=e.target.value,this.#A()};#T(e){let t=this.#$(),i=t.findIndex(r=>r.value===this.value&&this.value);this.open=!0,this.active=i>=0?i:this.#D(t,e===1?-1:0,e)}#D(e,t,i){let r=e.length;for(let s=1;s<=r;s+=1){let o=((t+i*s)%r+r)%r;if(!e[o]?.disabled)return o}return-1}#I=e=>{if(e.isComposing||e.keyCode===229||this.#b)return;let t=this.#$();switch(e.key){case"ArrowDown":e.preventDefault(),!this.open&&e.altKey?this.open=!0:this.open?e.altKey||(this.active=this.#D(t,this.active,1)):this.#T(1);break;case"ArrowUp":e.preventDefault(),e.altKey?this.open=!1:this.open?this.active=this.#D(t,this.active<0?0:this.active,-1):this.#T(-1);break;case"Enter":this.open&&this.active>=0?(e.preventDefault(),this.#S(t[this.active])):(this.open&&e.preventDefault(),this.open=!1,this.#C(),e.defaultPrevented||this.internals.form?.requestSubmit());break;case"Escape":!this.open&&this.inputValue&&(e.preventDefault(),this.inputValue="",this.#i=null,this.#k(""));break;case"Home":case"End":case"ArrowLeft":case"ArrowRight":this.active=-1;break;default:}};#B=e=>{let t=e.relatedTarget;t instanceof Node&&S(this,t)||(this.open=!1,this.#C())};#P=()=>{this.#b||(this.open?this.open=!1:this.#T(1),this.#g()?.focus())};#R=e=>{e.preventDefault()};#U=e=>{let t=W(e);t!==-1&&!this.#$()[t]?.disabled&&(this.active=t)};#q=e=>{let t=W(e);t!==-1&&(this.#S(this.#$()[t]),this.#g()?.focus())};render(){let e=this.#b,t=this.#$(),i=this.#s||c,r=this.loading?this.loadingText:t.length===0?this.noResultsText:"";return l`<slot name="label"></slot><slot name="description"></slot>
5124
5124
  <div part="base" class="field" ?data-disabled=${e}>
5125
5125
  <input
5126
5126
  id="input"
@@ -5142,13 +5142,13 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5142
5142
  ?disabled=${e}
5143
5143
  ?required=${this.required}
5144
5144
  .value=${this.inputValue}
5145
- @input=${this.#N}
5146
- @compositionstart=${this.#M}
5147
- @compositionend=${this.#A}
5145
+ @input=${this.#M}
5146
+ @compositionstart=${this.#N}
5147
+ @compositionend=${this.#E}
5148
5148
  @keydown=${this.#I}
5149
5149
  @focusout=${this.#B}
5150
5150
  />
5151
- ${this.loading?a`<span class="spinner" aria-hidden="true"></span>`:c}
5151
+ ${this.loading?l`<span class="spinner" aria-hidden="true"></span>`:c}
5152
5152
  <span
5153
5153
  part="toggle"
5154
5154
  class="toggle"
@@ -5177,7 +5177,7 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5177
5177
  >
5178
5178
  ${_e(t,{active:this.active,isSelected:s=>s.value===this.value&&this.value!==""})}
5179
5179
  </div>
5180
- ${r?a`<div part="message" class="message">${r}</div>`:c}
5180
+ ${r?l`<div part="message" class="message">${r}</div>`:c}
5181
5181
  </div>
5182
5182
  <slot name="error"></slot>`}};dt.define();var eo=u` @layer und.components{:host{display:block}:host([hidden]){display:none}.alert{--_bg:var(--und-status-info-bg,#0082fb33);--_fg:var(--und-status-info-fg,#042f97);--_accent:var(--und-status-info-solid,#0064e0);box-sizing:border-box;display:flex;gap:var(--und-alert-gap,var(--und-space-2,0.5rem));align-items:flex-start;padding-block:var(--und-alert-padding-block,var(--und-space-3,0.75rem));padding-inline:var(--und-alert-padding-inline,var(--und-space-4,1rem));border:0 solid var(--_accent);border-inline-start-width:var(--und-alert-accent-width,0);border-radius:var(--und-alert-radius,var(--und-radius-xl,12px));background:var(--_bg);color:var(--_fg);font-size:var(--und-alert-font-size,var(--und-text-body-sm-size,0.875rem));line-height:1.4286}:host([tone='success']) .alert{--_bg:var(--und-status-success-bg,#0b991f33);--_fg:var(--und-status-success-fg,#09441f);--_accent:var(--und-status-success-solid,#0d8626)}:host([tone='warning']) .alert{--_bg:var(--und-status-warning-bg,#e2a40033);--_fg:var(--und-status-warning-fg,#753f07);--_accent:var(--und-status-warning-solid,#e9af08)}:host([tone='danger']) .alert{--_bg:var(--und-status-danger-bg,#e3193b33);--_fg:var(--und-status-danger-fg,#7b0210);--_accent:var(--und-status-danger-solid,#e3193b)}:host([tone='neutral']) .alert{--_bg:var(--und-bg-muted,#0536590c);--_fg:var(--und-fg-default,#0a1317);--_accent:var(--und-border-default,#ccd3db)}.icon{display:inline-flex;flex:none;align-items:center;block-size:1.25rem;color:inherit}.icon svg{inline-size:1.25rem;block-size:1.25rem}.content{font-weight:var(--und-font-weight-medium,500);flex:1 1 auto;min-inline-size:0;overflow-wrap:anywhere}.has-title .content{font-weight:var(--und-font-weight-regular,400);font-size:var(--und-text-caption-size,0.75rem);line-height:1.6667}.title{display:block;font-size:var(--und-text-label-md-size,0.875rem);font-weight:var(--und-alert-title-font-weight,var(--und-font-weight-semibold,600));line-height:1.4286}.actions{display:flex;flex-wrap:wrap;gap:var(--und-space-2,0.5rem);align-items:center;color:var(--und-fg-default,#0a1317)}.actions:not(.empty){margin-block-start:var(--und-space-2,0.5rem)}.dismiss{display:inline-flex;flex:none;align-items:center;justify-content:center;min-inline-size:var(--und-alert-control-size,28px);min-block-size:var(--und-alert-control-size,28px);margin:calc(var(--und-space-2,0.5rem) - var(--und-space-3,0.75rem)) 0;margin-inline-start:auto;padding:0;border:0;border-radius:var(--und-radius-lg,8px);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--und-duration-fast,175ms) var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}@media (hover:hover){.dismiss:hover{background-color:var( --und-alert-overlay-hover,color-mix(in srgb,var(--und-fg-default,#0a1317) 5%,transparent) )}}.dismiss:active{background-color:var( --und-alert-overlay-pressed,color-mix(in srgb,var(--und-fg-default,#0a1317) 10%,transparent) )}.dismiss:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#0064e0);outline-offset:var(--und-focus-offset,3px)}.dismiss svg{inline-size:1rem;block-size:1rem}@media (pointer:coarse){.dismiss{min-inline-size:var(--und-target-min-coarse,44px);min-block-size:var(--und-target-min-coarse,44px)}}@media (prefers-reduced-motion:reduce){.dismiss{transition:none}}@media (forced-colors:active){.alert{border-color:CanvasText;outline:1px solid CanvasText;outline-offset:-1px}.icon{color:CanvasText}.dismiss{border:1px solid ButtonText;color:ButtonText}.dismiss:focus-visible{outline-color:Highlight}}}
5183
5183
 
@@ -5359,7 +5359,7 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5359
5359
 
5360
5360
 
5361
5361
 
5362
- `;var to={info:k`<circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5v.5"/>`,neutral:k`<circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5v.5"/>`,success:k`<circle cx="12" cy="12" r="9"/><path d="m8 12.5 2.8 2.8L16.5 9.5"/>`,warning:k`<path d="M12 3.5 2.5 20h19z"/><path d="M12 10v4.5M12 17.5v.5"/>`,danger:k`<path d="M8.3 3h7.4L21 8.3v7.4L15.7 21H8.3L3 15.7V8.3z"/><path d="M12 7.5V13M12 16.5v.5"/>`},io=n=>a`<svg
5362
+ `;var to={info:k`<circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5v.5"/>`,neutral:k`<circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5v.5"/>`,success:k`<circle cx="12" cy="12" r="9"/><path d="m8 12.5 2.8 2.8L16.5 9.5"/>`,warning:k`<path d="M12 3.5 2.5 20h19z"/><path d="M12 10v4.5M12 17.5v.5"/>`,danger:k`<path d="M8.3 3h7.4L21 8.3v7.4L15.7 21H8.3L3 15.7V8.3z"/><path d="M12 7.5V13M12 16.5v.5"/>`},io=n=>l`<svg
5363
5363
  viewBox="0 0 24 24"
5364
5364
  fill="none"
5365
5365
  stroke="currentColor"
@@ -5370,7 +5370,7 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5370
5370
  focusable="false"
5371
5371
  >
5372
5372
  ${n}
5373
- </svg>`,Ei=class extends p{static tagName="und-alert";static styles=eo;static properties={tone:{reflect:!0},live:{reflect:!0},dismissible:{type:Boolean,reflect:!0},dismissLabel:{attribute:"dismiss-label"}};#e=!1;#t=!1;#i=!1;constructor(){super(),this.tone="info",this.live="off",this.dismissible=!1,this.dismissLabel="Dismiss"}updated(e){if(!e.has("live"))return;let t=this.live==="assertive"?"alert":this.live==="polite"?"status":null;t?this.setAttribute("role",t):this.#i&&this.removeAttribute("role"),this.#i=t!==null}dismiss(){this.emit("und-dismiss",{reason:"button"},{cancelable:!0})&&(this.hidden=!0)}#r=e=>{let t=e.target.assignedNodes().some(i=>i.nodeType===Node.ELEMENT_NODE||!!i.textContent?.trim());t!==this.#t&&(this.#t=t,this.requestUpdate())};#n=e=>{this.#e=e.target.assignedNodes().length>0,this.requestUpdate()};render(){return a`<div part="base" class="alert ${this.#t?"has-title":""}">
5373
+ </svg>`,Ei=class extends p{static tagName="und-alert";static styles=eo;static properties={tone:{reflect:!0},live:{reflect:!0},dismissible:{type:Boolean,reflect:!0},dismissLabel:{attribute:"dismiss-label"}};#e=!1;#t=!1;#i=!1;constructor(){super(),this.tone="info",this.live="off",this.dismissible=!1,this.dismissLabel="Dismiss"}updated(e){if(!e.has("live"))return;let t=this.live==="assertive"?"alert":this.live==="polite"?"status":null;t?this.setAttribute("role",t):this.#i&&this.removeAttribute("role"),this.#i=t!==null}dismiss(){this.emit("und-dismiss",{reason:"button"},{cancelable:!0})&&(this.hidden=!0)}#r=e=>{let t=e.target.assignedNodes().some(i=>i.nodeType===Node.ELEMENT_NODE||!!i.textContent?.trim());t!==this.#t&&(this.#t=t,this.requestUpdate())};#n=e=>{this.#e=e.target.assignedNodes().length>0,this.requestUpdate()};render(){return l`<div part="base" class="alert ${this.#t?"has-title":""}">
5374
5374
  <span part="icon" class="icon"
5375
5375
  ><slot name="icon">${io(to[this.tone]??to.info)}</slot></span
5376
5376
  >
@@ -5383,7 +5383,7 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5383
5383
  <slot name="actions" @slotchange=${this.#n}></slot>
5384
5384
  </div>
5385
5385
  </div>
5386
- ${this.dismissible?a`<button
5386
+ ${this.dismissible?l`<button
5387
5387
  part="dismiss"
5388
5388
  class="dismiss"
5389
5389
  type="button"
@@ -5496,7 +5496,7 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5496
5496
 
5497
5497
 
5498
5498
 
5499
- `;var Gl=new Set(["ArrowDown","ArrowUp","Home","End"]),Ti=class extends p{static tagName="und-accordion";static styles=ro;static properties={type:{reflect:!0}};#e=E("und-accordion");constructor(){super(),this.type="multiple",!!1&&!("name"in HTMLDetailsElement.prototype)&&this.addEventListener("toggle",this.#r,!0),this.addEventListener("keydown",this.#n)}connectedCallback(){super.connectedCallback(),D(this,Ai)}#t(){return[...this.children].filter(e=>e.localName==="details")}#i=()=>{let e=!1;for(let t of this.#t()){let i=t.getAttribute("name");this.type==="single"?(i||t.setAttribute("name",this.#e),t.open&&e&&(t.open=!1),e||=t.open):i===this.#e&&t.removeAttribute("name")}};#r=e=>{let t=e.target;if(!(this.type!=="single"||t.parentElement!==this||!t.open))for(let i of this.#t())i!==t&&(i.open=!1)};#n=e=>{if(!Gl.has(e.key)||e.altKey||e.ctrlKey||e.metaKey)return;let t=this.#t().map(o=>o.querySelector(":scope > summary")).filter(o=>o!==null),i=t.indexOf(e.target);if(i===-1)return;let r=t.length-1,s=e.key==="Home"?0:e.key==="End"?r:e.key==="ArrowDown"?(i+1)%t.length:(i-1+t.length)%t.length;e.preventDefault(),t[s]?.focus()};updated(){this.#i()}render(){return a`<slot @slotchange=${this.#i}></slot>`}};Ti.define();var no=u` @layer und.components{:host{display:flex;flex-direction:column}:host([orientation='vertical']){flex-direction:row}:host([hidden]){display:none}.tablist{display:flex;flex:none;gap:var(--und-tabs-gap,0.25rem);border-block-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d4d6dd)}:host([orientation='vertical']) .tablist{flex-direction:column;border-block-end:0;border-inline-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d4d6dd)}.panels{flex:1 1 auto;min-inline-size:0}:host([orientation='vertical']) .panels{padding-inline-start:var(--und-tabs-panel-padding,1rem)}:host([orientation='vertical']) ::slotted(und-tab){justify-content:flex-start;margin-block-end:0;margin-inline-end:calc(-1 * var(--und-border-width,1px));background-position:right center;background-size:var(--und-tabs-indicator-width,2px) calc(100% - 1rem)}:host([orientation='vertical']:dir(rtl)) ::slotted(und-tab[selected]){background-position:left center}@media (forced-colors:active){:host([orientation='vertical']) ::slotted(und-tab[selected]){border-inline-end:calc(var(--und-tabs-indicator-width,2px) * 2) solid Highlight}}}
5499
+ `;var Gl=new Set(["ArrowDown","ArrowUp","Home","End"]),Ti=class extends p{static tagName="und-accordion";static styles=ro;static properties={type:{reflect:!0}};#e=E("und-accordion");constructor(){super(),this.type="multiple",!!1&&!("name"in HTMLDetailsElement.prototype)&&this.addEventListener("toggle",this.#r,!0),this.addEventListener("keydown",this.#n)}connectedCallback(){super.connectedCallback(),D(this,Ai)}#t(){return[...this.children].filter(e=>e.localName==="details")}#i=()=>{let e=!1;for(let t of this.#t()){let i=t.getAttribute("name");this.type==="single"?(i||t.setAttribute("name",this.#e),t.open&&e&&(t.open=!1),e||=t.open):i===this.#e&&t.removeAttribute("name")}};#r=e=>{let t=e.target;if(!(this.type!=="single"||t.parentElement!==this||!t.open))for(let i of this.#t())i!==t&&(i.open=!1)};#n=e=>{if(!Gl.has(e.key)||e.altKey||e.ctrlKey||e.metaKey)return;let t=this.#t().map(o=>o.querySelector(":scope > summary")).filter(o=>o!==null),i=t.indexOf(e.target);if(i===-1)return;let r=t.length-1,s=e.key==="Home"?0:e.key==="End"?r:e.key==="ArrowDown"?(i+1)%t.length:(i-1+t.length)%t.length;e.preventDefault(),t[s]?.focus()};updated(){this.#i()}render(){return l`<slot @slotchange=${this.#i}></slot>`}};Ti.define();var no=u` @layer und.components{:host{display:flex;flex-direction:column}:host([orientation='vertical']){flex-direction:row}:host([hidden]){display:none}.tablist{display:flex;flex:none;gap:var(--und-tabs-gap,0.25rem);border-block-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d4d6dd)}:host([orientation='vertical']) .tablist{flex-direction:column;border-block-end:0;border-inline-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d4d6dd)}.panels{flex:1 1 auto;min-inline-size:0}:host([orientation='vertical']) .panels{padding-inline-start:var(--und-tabs-panel-padding,1rem)}:host([orientation='vertical']) ::slotted(und-tab){justify-content:flex-start;margin-block-end:0;margin-inline-end:calc(-1 * var(--und-border-width,1px));background-position:right center;background-size:var(--und-tabs-indicator-width,2px) calc(100% - 1rem)}:host([orientation='vertical']:dir(rtl)) ::slotted(und-tab[selected]){background-position:left center}@media (forced-colors:active){:host([orientation='vertical']) ::slotted(und-tab[selected]){border-inline-end:calc(var(--und-tabs-indicator-width,2px) * 2) solid Highlight}}}
5500
5500
 
5501
5501
 
5502
5502
 
@@ -5683,7 +5683,7 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5683
5683
 
5684
5684
 
5685
5685
 
5686
- `;var Ni=class extends p{static tagName="und-tab";static styles=so;static properties={value:{reflect:!0},disabled:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0}};constructor(){super(),this.value="",this.disabled=!1,this.selected=!1}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setAttribute("role","tab")}updated(){this.setAttribute("aria-selected",String(this.selected)),this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.setCustomState("selected",this.selected)}render(){return a`<slot></slot>`}},Di=class extends p{static tagName="und-tab-panel";static styles=oo;static properties={value:{reflect:!0}};constructor(){super(),this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tabpanel"),this.hasAttribute("tabindex")||(this.tabIndex=0)}render(){return a`<slot></slot>`}},Mi=(n,e)=>n.value||String(e),Ii=class extends p{static tagName="und-tabs";static styles=no;static properties={value:{reflect:!0},orientation:{reflect:!0},activation:{reflect:!0},label:{}};#e=new y(this);#t=!1;#i={getItems:()=>this.#t?[]:this.#r(),getDirection:()=>this.#e.dir,onActiveChange:e=>{this.activation!=="manual"&&this.#o(e)}};constructor(){super(),this.value="",this.orientation="horizontal",this.activation="automatic",this.addEventListener("keydown",this.#d),this.addEventListener("click",this.#a),this.addEventListener("focusout",this.#l),new ne(this,this.#i)}#r(){return[...this.children].filter(e=>e.localName==="und-tab")}#n(){return[...this.children].filter(e=>e.localName==="und-tab-panel")}#s(e){return this.#r().find(t=>t===e)}#o(e){if(e.disabled)return;let t=Mi(e,this.#r().indexOf(e));t!==this.value&&(this.value=t,this.emit("und-change",{value:t}))}#d=e=>{let t=this.#s(e.target);this.#t=!t,!(!t||e.altKey||e.ctrlKey||e.metaKey)&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.#o(t))};#a=e=>{let t=this.#s(e.target.closest?.("und-tab")??null);t&&this.#o(t)};#l=e=>{this.#s(e.relatedTarget)||this.#u()};#c=()=>{this.requestUpdate()};willUpdate(){if(!1)return;let e=this.#r();if(e.length===0||e.some((i,r)=>Mi(i,r)===this.value))return;let t=e.find(i=>!i.disabled);t&&(this.value=Mi(t,e.indexOf(t)))}updated(){let e=this.#r(),t=this.#n(),i=new Set;e.forEach((r,s)=>{let o=Mi(r,s),l=o===this.value;r.selected=l,r.id||=E("und-tab");let d=t.find(h=>h.value!==""&&h.value===o)??t.find((h,f)=>h.value===""&&f===s);d?(i.add(d),d.id||=E("und-tab-panel"),r.setAttribute("aria-controls",d.id),d.setAttribute("aria-labelledby",r.id),d.hidden=!l):r.removeAttribute("aria-controls")});for(let r of t)i.has(r)||(r.hidden=!0);this.#i.orientation=this.orientation==="vertical"?"vertical":"horizontal",this.#u()}#u(){let e=this.#r(),t=e.find(i=>i.selected&&!i.disabled)??e[0];for(let i of e)i.tabIndex=i===t?0:-1}render(){return a`<div
5686
+ `;var Ni=class extends p{static tagName="und-tab";static styles=so;static properties={value:{reflect:!0},disabled:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0}};constructor(){super(),this.value="",this.disabled=!1,this.selected=!1}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setAttribute("role","tab")}updated(){this.setAttribute("aria-selected",String(this.selected)),this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.setCustomState("selected",this.selected)}render(){return l`<slot></slot>`}},Di=class extends p{static tagName="und-tab-panel";static styles=oo;static properties={value:{reflect:!0}};constructor(){super(),this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tabpanel"),this.hasAttribute("tabindex")||(this.tabIndex=0)}render(){return l`<slot></slot>`}},Mi=(n,e)=>n.value||String(e),Ii=class extends p{static tagName="und-tabs";static styles=no;static properties={value:{reflect:!0},orientation:{reflect:!0},activation:{reflect:!0},label:{}};#e=new y(this);#t=!1;#i={getItems:()=>this.#t?[]:this.#r(),getDirection:()=>this.#e.dir,onActiveChange:e=>{this.activation!=="manual"&&this.#o(e)}};constructor(){super(),this.value="",this.orientation="horizontal",this.activation="automatic",this.addEventListener("keydown",this.#d),this.addEventListener("click",this.#a),this.addEventListener("focusout",this.#l),new ne(this,this.#i)}#r(){return[...this.children].filter(e=>e.localName==="und-tab")}#n(){return[...this.children].filter(e=>e.localName==="und-tab-panel")}#s(e){return this.#r().find(t=>t===e)}#o(e){if(e.disabled)return;let t=Mi(e,this.#r().indexOf(e));t!==this.value&&(this.value=t,this.emit("und-change",{value:t}))}#d=e=>{let t=this.#s(e.target);this.#t=!t,!(!t||e.altKey||e.ctrlKey||e.metaKey)&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.#o(t))};#a=e=>{let t=this.#s(e.target.closest?.("und-tab")??null);t&&this.#o(t)};#l=e=>{this.#s(e.relatedTarget)||this.#u()};#c=()=>{this.requestUpdate()};willUpdate(){if(!1)return;let e=this.#r();if(e.length===0||e.some((i,r)=>Mi(i,r)===this.value))return;let t=e.find(i=>!i.disabled);t&&(this.value=Mi(t,e.indexOf(t)))}updated(){let e=this.#r(),t=this.#n(),i=new Set;e.forEach((r,s)=>{let o=Mi(r,s),a=o===this.value;r.selected=a,r.id||=E("und-tab");let d=t.find(h=>h.value!==""&&h.value===o)??t.find((h,f)=>h.value===""&&f===s);d?(i.add(d),d.id||=E("und-tab-panel"),r.setAttribute("aria-controls",d.id),d.setAttribute("aria-labelledby",r.id),d.hidden=!a):r.removeAttribute("aria-controls")});for(let r of t)i.has(r)||(r.hidden=!0);this.#i.orientation=this.orientation==="vertical"?"vertical":"horizontal",this.#u()}#u(){let e=this.#r(),t=e.find(i=>i.selected&&!i.disabled)??e[0];for(let i of e)i.tabIndex=i===t?0:-1}render(){return l`<div
5687
5687
  part="tablist"
5688
5688
  class="tablist"
5689
5689
  role="tablist"
@@ -5788,11 +5788,11 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5788
5788
 
5789
5789
 
5790
5790
 
5791
- `;var Bi=class extends p{static tagName="und-breadcrumb";static styles=ao;static properties={label:{},separator:{reflect:!0}};constructor(){super(),this.label="Breadcrumb",this.separator="slash"}updated(e){e.has("separator")&&this.#e()}#e=()=>{for(let e of this.querySelectorAll(":scope > und-breadcrumb-item"))e.requestUpdate()};render(){return a`<nav part="nav" aria-label=${this.label}>
5791
+ `;var Bi=class extends p{static tagName="und-breadcrumb";static styles=ao;static properties={label:{},separator:{reflect:!0}};constructor(){super(),this.label="Breadcrumb",this.separator="slash"}updated(e){e.has("separator")&&this.#e()}#e=()=>{for(let e of this.querySelectorAll(":scope > und-breadcrumb-item"))e.requestUpdate()};render(){return l`<nav part="nav" aria-label=${this.label}>
5792
5792
  <ol part="list" class="list">
5793
5793
  <slot @slotchange=${this.#e}></slot>
5794
5794
  </ol>
5795
- </nav>`}},Pi=class extends p{static tagName="und-breadcrumb-item";static styles=lo;static properties={href:{reflect:!0},current:{type:Boolean,reflect:!0}};constructor(){super(),this.current=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}updated(e){if(e.has("current")&&e.get("current")!==void 0)for(let t of this.#e())t!==this&&t.requestUpdate()}#e(){let e=this.parentElement;return e?[...e.children].filter(t=>t.localName===this.localName):[this]}get isCurrentPage(){if(this.current)return!0;if(!1)return!1;let e=this.#e();return!e.some(t=>t.hasAttribute("current"))&&e.at(-1)===this}render(){let e=!!1&&this.#e().at(-1)===this,t=this.parentElement?.getAttribute("separator")==="chevron",i=M(this.href),r=this.isCurrentPage?a`<span part="current" class="current" aria-current="page"><slot></slot></span>`:i?a`<a part="link" class="link" href=${i}><slot></slot></a>`:a`<span><slot></slot></span>`;return a`${r}${e?null:a`<span part="separator" class="separator" aria-hidden="true"
5795
+ </nav>`}},Pi=class extends p{static tagName="und-breadcrumb-item";static styles=lo;static properties={href:{reflect:!0},current:{type:Boolean,reflect:!0}};constructor(){super(),this.current=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}updated(e){if(e.has("current")&&e.get("current")!==void 0)for(let t of this.#e())t!==this&&t.requestUpdate()}#e(){let e=this.parentElement;return e?[...e.children].filter(t=>t.localName===this.localName):[this]}get isCurrentPage(){if(this.current)return!0;if(!1)return!1;let e=this.#e();return!e.some(t=>t.hasAttribute("current"))&&e.at(-1)===this}render(){let e=!!1&&this.#e().at(-1)===this,t=this.parentElement?.getAttribute("separator")==="chevron",i=M(this.href),r=this.isCurrentPage?l`<span part="current" class="current" aria-current="page"><slot></slot></span>`:i?l`<a part="link" class="link" href=${i}><slot></slot></a>`:l`<span><slot></slot></span>`;return l`${r}${e?null:l`<span part="separator" class="separator" aria-hidden="true"
5796
5796
  ><svg
5797
5797
  viewBox="0 0 16 16"
5798
5798
  fill="none"
@@ -5980,7 +5980,7 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5980
5980
 
5981
5981
 
5982
5982
 
5983
- `;var _t=(n,e)=>{let t=Math.floor(Number(n));return Number.isFinite(t)?t:e},Ri=(n,e)=>Array.from({length:Math.max(0,e-n+1)},(t,i)=>n+i),Fn=(n,e,t)=>Math.min(Math.max(n,e),t);function Wl(n,e,t=1,i=1){if(e<=2*i+2*t+3)return Ri(1,e);let r=Fn(n-t,i+2,e-i-1-2*t),s=Fn(n+t,i+2+2*t,e-i-1);return[...Ri(1,i),r>i+2?"gap":i+1,...Ri(r,s),s<e-i-1?"gap":e-i,...Ri(e-i+1,e)]}var uo=n=>a`<svg
5983
+ `;var _t=(n,e)=>{let t=Math.floor(Number(n));return Number.isFinite(t)?t:e},Ri=(n,e)=>Array.from({length:Math.max(0,e-n+1)},(t,i)=>n+i),Fn=(n,e,t)=>Math.min(Math.max(n,e),t);function Wl(n,e,t=1,i=1){if(e<=2*i+2*t+3)return Ri(1,e);let r=Fn(n-t,i+2,e-i-1-2*t),s=Fn(n+t,i+2+2*t,e-i-1);return[...Ri(1,i),r>i+2?"gap":i+1,...Ri(r,s),s<e-i-1?"gap":e-i,...Ri(e-i+1,e)]}var uo=n=>l`<svg
5984
5984
  viewBox="0 0 16 16"
5985
5985
  fill="none"
5986
5986
  stroke="currentColor"
@@ -5991,9 +5991,9 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
5991
5991
  focusable="false"
5992
5992
  >
5993
5993
  ${k`<path d=${n} />`}
5994
- </svg>`,Ui=class extends p{static tagName="und-pagination";static styles=co;static properties={page:{type:Number,reflect:!0},total:{type:Number,reflect:!0},siblings:{type:Number},boundaries:{type:Number},hrefTemplate:{attribute:"href-template"},label:{},previousLabel:{attribute:"previous-label"},nextLabel:{attribute:"next-label"},pageLabel:{attribute:"page-label"},variant:{reflect:!0},pageSize:{type:Number,attribute:"page-size"},itemCount:{type:Number,attribute:"item-count"},compactLabel:{attribute:"compact-label"},countLabel:{attribute:"count-label"}};#e=new y(this);#t=!1;constructor(){super(),this.page=1,this.total=1,this.siblings=1,this.boundaries=1,this.label="Pagination",this.previousLabel="Previous page",this.nextLabel="Next page",this.pageLabel="Page {page}",this.variant="pages",this.compactLabel="Page {page} of {total}",this.countLabel="{start}-{end} of {count}"}updated(){this.#t&&(this.#t=!1,this.renderRoot.querySelector('[aria-current="page"]')?.focus())}#i(e){try{return new Intl.NumberFormat(this.#e.lang||void 0).format(e)}catch{return String(e)}}#r(e,t){if(e===this.page)return;if(!this.emit("und-page-change",{page:e},{cancelable:!0})){t.preventDefault();return}this.#t=!this.hrefTemplate&&this.renderRoot.contains(T()),this.page=e}#n(e,t,i){let{part:r,label:s,current:o=!1,disabled:l=!1}=i,d=h=>this.#r(e,h);return this.hrefTemplate?l?a`<a part=${r} class="item" role="link" aria-disabled="true" aria-label=${s}
5994
+ </svg>`,Ui=class extends p{static tagName="und-pagination";static styles=co;static properties={page:{type:Number,reflect:!0},total:{type:Number,reflect:!0},siblings:{type:Number},boundaries:{type:Number},hrefTemplate:{attribute:"href-template"},label:{},previousLabel:{attribute:"previous-label"},nextLabel:{attribute:"next-label"},pageLabel:{attribute:"page-label"},variant:{reflect:!0},pageSize:{type:Number,attribute:"page-size"},itemCount:{type:Number,attribute:"item-count"},compactLabel:{attribute:"compact-label"},countLabel:{attribute:"count-label"}};#e=new y(this);#t=!1;constructor(){super(),this.page=1,this.total=1,this.siblings=1,this.boundaries=1,this.label="Pagination",this.previousLabel="Previous page",this.nextLabel="Next page",this.pageLabel="Page {page}",this.variant="pages",this.compactLabel="Page {page} of {total}",this.countLabel="{start}-{end} of {count}"}updated(){this.#t&&(this.#t=!1,this.renderRoot.querySelector('[aria-current="page"]')?.focus())}#i(e){try{return new Intl.NumberFormat(this.#e.lang||void 0).format(e)}catch{return String(e)}}#r(e,t){if(e===this.page)return;if(!this.emit("und-page-change",{page:e},{cancelable:!0})){t.preventDefault();return}this.#t=!this.hrefTemplate&&this.renderRoot.contains(T()),this.page=e}#n(e,t,i){let{part:r,label:s,current:o=!1,disabled:a=!1}=i,d=h=>this.#r(e,h);return this.hrefTemplate?a?l`<a part=${r} class="item" role="link" aria-disabled="true" aria-label=${s}
5995
5995
  >${t}</a
5996
- >`:a`<a
5996
+ >`:l`<a
5997
5997
  part=${r}
5998
5998
  class="item"
5999
5999
  href=${M(this.hrefTemplate.replaceAll("{page}",String(e)))??c}
@@ -6001,17 +6001,17 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
6001
6001
  aria-current=${o?"page":c}
6002
6002
  @click=${d}
6003
6003
  >${t}</a
6004
- >`:a`<button
6004
+ >`:l`<button
6005
6005
  part=${r}
6006
6006
  class="item"
6007
6007
  type="button"
6008
6008
  aria-label=${s}
6009
6009
  aria-current=${o?"page":c}
6010
- ?disabled=${l}
6010
+ ?disabled=${a}
6011
6011
  @click=${d}
6012
6012
  >
6013
6013
  ${t}
6014
- </button>`}render(){let e=Math.max(1,_t(this.total,1)),t=Fn(_t(this.page,1),1,e),i=Wl(t,e,Math.max(0,_t(this.siblings,1)),Math.max(1,_t(this.boundaries,1)));return a`<nav part="nav" aria-label=${this.label}>
6014
+ </button>`}render(){let e=Math.max(1,_t(this.total,1)),t=Fn(_t(this.page,1),1,e),i=Wl(t,e,Math.max(0,_t(this.siblings,1)),Math.max(1,_t(this.boundaries,1)));return l`<nav part="nav" aria-label=${this.label}>
6015
6015
  <ul part="list" class="list">
6016
6016
  <li>
6017
6017
  ${this.#n(t-1,uo("M10 3.5 5.5 8l4.5 4.5"),{part:"previous",label:this.previousLabel,disabled:t<=1})}
@@ -6021,11 +6021,11 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
6021
6021
  ${this.#n(t+1,uo("m6 3.5 4.5 4.5L6 12.5"),{part:"next",label:this.nextLabel,disabled:t>=e})}
6022
6022
  </li>
6023
6023
  </ul>
6024
- </nav>`}#s(e,t,i){if(this.variant==="compact"||this.variant==="count"){let r=Math.max(0,_t(this.itemCount,0)),s=Math.max(1,_t(this.pageSize,1)),o=this.variant==="compact"?this.compactLabel.replaceAll("{page}",this.#i(e)).replaceAll("{total}",this.#i(t)):this.countLabel.replaceAll("{start}",this.#i(r===0?0:(e-1)*s+1)).replaceAll("{end}",this.#i(Math.min(r,e*s))).replaceAll("{count}",this.#i(r));return a`<li part="status" class="status">${o}</li>`}return this.variant==="dots"?Array.from({length:t},(r,s)=>a`<li>
6025
- ${this.#n(s+1,a`<span class="dot" aria-hidden="true"></span>`,{part:"dot",label:this.pageLabel.replaceAll("{page}",this.#i(s+1)),current:s+1===e})}
6026
- </li>`):i.map(r=>r==="gap"?a`<li aria-hidden="true"><span part="gap" class="item gap">…</span></li>`:a`<li>
6024
+ </nav>`}#s(e,t,i){if(this.variant==="compact"||this.variant==="count"){let r=Math.max(0,_t(this.itemCount,0)),s=Math.max(1,_t(this.pageSize,1)),o=this.variant==="compact"?this.compactLabel.replaceAll("{page}",this.#i(e)).replaceAll("{total}",this.#i(t)):this.countLabel.replaceAll("{start}",this.#i(r===0?0:(e-1)*s+1)).replaceAll("{end}",this.#i(Math.min(r,e*s))).replaceAll("{count}",this.#i(r));return l`<li part="status" class="status">${o}</li>`}return this.variant==="dots"?Array.from({length:t},(r,s)=>l`<li>
6025
+ ${this.#n(s+1,l`<span class="dot" aria-hidden="true"></span>`,{part:"dot",label:this.pageLabel.replaceAll("{page}",this.#i(s+1)),current:s+1===e})}
6026
+ </li>`):i.map(r=>r==="gap"?l`<li aria-hidden="true"><span part="gap" class="item gap">…</span></li>`:l`<li>
6027
6027
  ${this.#n(r,this.#i(r),{part:"page",label:this.pageLabel.replaceAll("{page}",this.#i(r)),current:r===e})}
6028
- </li>`)}};Ui.define();var Vn={info:k`<circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5v.5"/>`,neutral:k`<circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5v.5"/>`,success:k`<circle cx="12" cy="12" r="9"/><path d="m8 12.5 2.8 2.8L16.5 9.5"/>`,warning:k`<path d="M12 3.5 2.5 20h19z"/><path d="M12 10v4.5M12 17.5v.5"/>`,danger:k`<path d="M8.3 3h7.4L21 8.3v7.4L15.7 21H8.3L3 15.7V8.3z"/><path d="M12 7.5V13M12 16.5v.5"/>`},ct=n=>a`<svg
6028
+ </li>`)}};Ui.define();var Vn={info:k`<circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5v.5"/>`,neutral:k`<circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5v.5"/>`,success:k`<circle cx="12" cy="12" r="9"/><path d="m8 12.5 2.8 2.8L16.5 9.5"/>`,warning:k`<path d="M12 3.5 2.5 20h19z"/><path d="M12 10v4.5M12 17.5v.5"/>`,danger:k`<path d="M8.3 3h7.4L21 8.3v7.4L15.7 21H8.3L3 15.7V8.3z"/><path d="M12 7.5V13M12 16.5v.5"/>`},ct=n=>l`<svg
6029
6029
  viewBox="0 0 24 24"
6030
6030
  fill="none"
6031
6031
  stroke="currentColor"
@@ -6036,7 +6036,7 @@ ${Ie} position:relative;display:flex;align-items:center;cursor:text}:host([size=
6036
6036
  focusable="false"
6037
6037
  >
6038
6038
  ${n}
6039
- </svg>`,Ft=k`<path d="M6 6l12 12M18 6 6 18"/>`;function ce(n){let e={...n},t=Object.keys(n);return{get:()=>e,set(i){for(let r of t){if(!Object.hasOwn(i,r))continue;let s=i[r];typeof s=="string"&&(e[r]=s)}}}}function R(n,e){return n.replace(/\{(\w+)\}/g,(t,i)=>Object.hasOwn(e,i)?String(e[i]):t)}var Yl={is:":","is-not":"!:",contains:"~",gt:">",gte:">=",lt:"<",lte:"<="},Xl={text:["contains","is","is-not"],number:["is","is-not","gt","gte","lt","lte"],enum:["is","is-not"],date:["is","gt","lt"]};function ze(n){return(n.operators??Xl[n.type??"text"]).map(t=>{let i=typeof t=="string"?{key:t}:t;return{key:i.key,label:i.label??"",symbol:i.symbol??Yl[i.key]??""}})}function jn(n,e){let t=e.trim();if(!t)return null;switch(n.type??"text"){case"number":return/^[-+]?(\d+\.?\d*|\.\d+)([eE][-+]?\d+)?$/.test(t)?String(Number(t)):null;case"date":{let i=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(!i)return null;let[r,s,o]=[Number(i[1]),Number(i[2]),Number(i[3])],l=new Date(Date.UTC(r,s-1,o));return l.getUTCDate()===o&&l.getUTCMonth()===s-1?t:null}case"enum":{let i=t.toLowerCase(),r=n.values?.find(s=>s.value===t||s.label.toLowerCase()===i||s.value.toLowerCase()===i);return r?r.value:null}default:return t}}function Zl(n){let e=[],t="",i=!1;for(let r=0;r<n.length;r+=1){let s=n.charAt(r);i&&s==="\\"&&r+1<n.length?(t+=s+n.charAt(r+1),r+=1):s==='"'?(i=!i,t+=s):!i&&/\s/.test(s)?(t&&e.push(t),t=""):t+=s}return t&&e.push(t),e}function ho(n){if(!n.includes('"'))return n;let e="";for(let t=0;t<n.length;t+=1){let i=n.charAt(t);i==="\\"&&t+1<n.length?(e+=n.charAt(t+1),t+=1):i!=='"'&&(e+=i)}return e}function po(n){return n&&!/[\s"\\]/.test(n)?n:`"${n.replace(/[\\"]/g,e=>`\\${e}`)}"`}var Ql=(n,e)=>{let t=e.toLowerCase();return n.find(i=>i.key.toLowerCase()===t||i.label.toLowerCase()===t||(i.aliases??[]).some(r=>r.toLowerCase()===t))};function Kn(n,e,t={}){let i=/^([^\s:!<>=~"]+)(!:|>=|<=|:|>|<|~)(.*)$/s.exec(n);if(i){let[,d="",h,f=""]=i,m=Ql(e,d),v=m&&ze(m).find(x=>x.symbol===h);if(m&&v){let x=jn(m,ho(f));return x===null?{term:n,error:"invalid"}:{term:n,filter:{field:m.key,operator:v.key,value:x}}}}let r=t.contentField===void 0?"":t.contentField;if(r===null)return{term:n,error:"unknown"};let s=ho(n).trim();if(!s)return{term:n,error:"invalid"};let o=e.find(d=>d.key===r),l=o?ze(o)[0]?.key??"contains":"contains";return{term:n,filter:{field:r,operator:l,value:s}}}function qi(n,e,t={}){return Zl(n).map(i=>Kn(i,e,t))}function fo(n,e){return n.map(t=>{let i=e.find(s=>s.key===t.field),r=i?ze(i).find(s=>s.key===t.operator)?.symbol:void 0;return!i||!r?po(t.value):`${t.field}${r}${po(t.value)}`}).join(" ")}var mo=[tt,u` @layer und.components{:host{display:inline-flex;flex-direction:column;inline-size:100%;max-inline-size:100%;vertical-align:middle}:host([hidden]){display:none}.field{
6039
+ </svg>`,Ft=k`<path d="M6 6l12 12M18 6 6 18"/>`;function ce(n){let e={...n},t=Object.keys(n);return{get:()=>e,set(i){for(let r of t){if(!Object.hasOwn(i,r))continue;let s=i[r];typeof s=="string"&&(e[r]=s)}}}}function R(n,e){return n.replace(/\{(\w+)\}/g,(t,i)=>Object.hasOwn(e,i)?String(e[i]):t)}var Yl={is:":","is-not":"!:",contains:"~",gt:">",gte:">=",lt:"<",lte:"<="},Xl={text:["contains","is","is-not"],number:["is","is-not","gt","gte","lt","lte"],enum:["is","is-not"],date:["is","gt","lt"]};function ze(n){return(n.operators??Xl[n.type??"text"]).map(t=>{let i=typeof t=="string"?{key:t}:t;return{key:i.key,label:i.label??"",symbol:i.symbol??Yl[i.key]??""}})}function jn(n,e){let t=e.trim();if(!t)return null;switch(n.type??"text"){case"number":return/^[-+]?(\d+\.?\d*|\.\d+)([eE][-+]?\d+)?$/.test(t)?String(Number(t)):null;case"date":{let i=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(!i)return null;let[r,s,o]=[Number(i[1]),Number(i[2]),Number(i[3])],a=new Date(Date.UTC(r,s-1,o));return a.getUTCDate()===o&&a.getUTCMonth()===s-1?t:null}case"enum":{let i=t.toLowerCase(),r=n.values?.find(s=>s.value===t||s.label.toLowerCase()===i||s.value.toLowerCase()===i);return r?r.value:null}default:return t}}function Zl(n){let e=[],t="",i=!1;for(let r=0;r<n.length;r+=1){let s=n.charAt(r);i&&s==="\\"&&r+1<n.length?(t+=s+n.charAt(r+1),r+=1):s==='"'?(i=!i,t+=s):!i&&/\s/.test(s)?(t&&e.push(t),t=""):t+=s}return t&&e.push(t),e}function ho(n){if(!n.includes('"'))return n;let e="";for(let t=0;t<n.length;t+=1){let i=n.charAt(t);i==="\\"&&t+1<n.length?(e+=n.charAt(t+1),t+=1):i!=='"'&&(e+=i)}return e}function po(n){return n&&!/[\s"\\]/.test(n)?n:`"${n.replace(/[\\"]/g,e=>`\\${e}`)}"`}var Ql=(n,e)=>{let t=e.toLowerCase();return n.find(i=>i.key.toLowerCase()===t||i.label.toLowerCase()===t||(i.aliases??[]).some(r=>r.toLowerCase()===t))};function Kn(n,e,t={}){let i=/^([^\s:!<>=~"]+)(!:|>=|<=|:|>|<|~)(.*)$/s.exec(n);if(i){let[,d="",h,f=""]=i,m=Ql(e,d),v=m&&ze(m).find(x=>x.symbol===h);if(m&&v){let x=jn(m,ho(f));return x===null?{term:n,error:"invalid"}:{term:n,filter:{field:m.key,operator:v.key,value:x}}}}let r=t.contentField===void 0?"":t.contentField;if(r===null)return{term:n,error:"unknown"};let s=ho(n).trim();if(!s)return{term:n,error:"invalid"};let o=e.find(d=>d.key===r),a=o?ze(o)[0]?.key??"contains":"contains";return{term:n,filter:{field:r,operator:a,value:s}}}function qi(n,e,t={}){return Zl(n).map(i=>Kn(i,e,t))}function fo(n,e){return n.map(t=>{let i=e.find(s=>s.key===t.field),r=i?ze(i).find(s=>s.key===t.operator)?.symbol:void 0;return!i||!r?po(t.value):`${t.field}${r}${po(t.value)}`}).join(" ")}var mo=[tt,u` @layer und.components{:host{display:inline-flex;flex-direction:column;inline-size:100%;max-inline-size:100%;vertical-align:middle}:host([hidden]){display:none}.field{
6040
6040
 
6041
6041
 
6042
6042
 
@@ -6286,20 +6286,20 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
6286
6286
 
6287
6287
 
6288
6288
 
6289
- `];var ue=ce({label:"Search",placeholder:"Search or filter\u2026",filters:"Filters",text:"Text",searchFor:"Search for \u201C{text}\u201D",fieldsGroup:"Filter by",valuesGroup:"Values",valuePlaceholder:"Value\u2026",datePlaceholder:"YYYY-MM-DD",edit:"Edit filter: {filter}",remove:"Remove filter: {filter}",clear:"Clear all filters",added:"Added filter: {filter}",removed:"Removed filter: {filter}",cleared:"Cleared all filters",invalid:"\u201C{text}\u201D is not a valid value for {field}",is:"is","is-not":"is not",contains:"contains",gt:"greater than",gte:"at least",lt:"less than",lte:"at most",dateIs:"on",dateGt:"after",dateLt:"before"}),Sx=ue.set,Jl=k`<circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/>`,Oi=class extends p{static tagName="und-power-search";static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static referenceTarget="input";static styles=mo;static properties={fields:{attribute:!1},filters:{attribute:!1},label:{},placeholder:{},name:{reflect:!0},size:{reflect:!0},disabled:{type:Boolean,reflect:!0},readOnly:{type:Boolean,reflect:!0,attribute:"readonly"},strict:{type:Boolean},noClear:{type:Boolean,attribute:"no-clear"},contentField:{attribute:"content-field"},maxResults:{type:Number,attribute:"max-results"},open:{type:Boolean,reflect:!0},inputValue:{attribute:!1}};#e;#t;#i=-1;#r=-1;#n=!1;#s=!1;#o=[];#d=[];#a=new y(this);#l=new P(this,{onDismiss:()=>{this.open=!1}});#c=new O(this,{getAnchor:()=>this.renderRoot.querySelector(".field"),getFloating:()=>this.renderRoot.querySelector("#popup"),placement:"bottom-start",offset:4,getDirection:()=>this.#a.dir});constructor(){super(),this.fields=[],this.filters=[],this.size="md",this.disabled=!1,this.readOnly=!1,this.strict=!1,this.noClear=!1,this.contentField="",this.maxResults=10,this.open=!1,this.inputValue=""}get value(){return fo(this.filters,this.fields)}set value(e){this.filters=qi(String(e??""),this.fields,this.#p).flatMap(t=>t.filter?[t.filter]:[])}get form(){return this.internals.form}get active(){return this.#r}set active(e){let t=this.#r;t!==e&&(this.#r=e,this.requestUpdate("active",t))}formDisabledCallback(e){this.#s=e,this.requestUpdate()}formResetCallback(){this.filters=[...this.#o],this.#w()}formStateRestoreCallback(e){typeof e=="string"&&(this.value=e)}firstUpdated(){this.#o=[...this.filters]}get#u(){return this.disabled||this.#s}get#h(){return this.#u||this.readOnly}get#p(){return{contentField:this.strict?null:this.contentField}}#f(){return this.renderRoot.querySelector("#input")}#m(e){return this.fields.find(t=>t.key===e)??{key:e,label:ue.get().text,operators:["contains"]}}#b(e,t){let i=ze(e).find(s=>s.key===t);if(i?.label)return i.label;let r=ue.get();if(e.type==="date"){if(t==="is")return r.dateIs;if(t==="gt")return r.dateGt;if(t==="lt")return r.dateLt}return Object.hasOwn(r,t)?r[t]:t}#g(e,t){return e.values?.find(i=>i.value===t)?.label??t}#v(e){if(this.#x(e))return e.value;let t=this.#m(e.field);return`${t.label} ${this.#b(t,e.operator)} ${this.#g(t,e.value)}`}#x(e){return!this.fields.some(t=>t.key===e.field)||e.field===this.contentField}#y(e,...t){let i=this.#a.lang||void 0,r=e.toLocaleLowerCase(i);return t.some(s=>s?.toLocaleLowerCase(i).includes(r))}#_(){let e=ue.get(),t=this.inputValue.trim(),i=[],r=[],s=(h,f,m)=>{i.push({value:String(i.length),label:h,...m?{group:m}:{}}),r.push(f)};if(this.#e!==void 0){let h=this.#m(this.#e);if(this.#t===void 0)for(let f of ze(h)){let m=this.#b(h,f.key);(!t||this.#y(t,m,f.symbol))&&s(m,{kind:"operator",operator:f.key})}else for(let f of h.values??[])(!t||this.#y(t,f.label,f.value))&&s(f.label,{kind:"filter",filter:{field:h.key,operator:this.#t,value:f.value}});return{options:i,suggestions:r}}let o=t&&!/\s/.test(t)?Kn(t,this.fields,{contentField:null}):void 0;o?.filter?s(this.#v(o.filter),{kind:"filter",filter:o.filter}):t&&!this.strict&&s(R(e.searchFor,{text:t}),{kind:"text",text:t});let l=t?Math.max(1,this.maxResults):1/0,d=0;for(let h of this.fields){if(d>=l)break;(!t||this.#y(t,h.label,h.key,...h.aliases??[]))&&(s(h.label,{kind:"field",field:h.key},h.group??e.fieldsGroup),d+=1)}if(t&&!o?.filter)for(let h of this.fields){let f=ze(h)[0];if(!(h.type!=="enum"||!f))for(let m of h.values??[]){if(d>=l)break;if(!this.#y(t,m.label))continue;let v={field:h.key,operator:f.key,value:m.value};s(this.#v(v),{kind:"filter",filter:v},e.valuesGroup),d+=1}}return{options:i,suggestions:r}}#k(e,t,i){this.filters=e,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("und-change",{filters:[...e],action:t,index:i})}#z(e){let t=ue.get(),i=[...this.filters],r="add",s=i.length;this.#i>=0&&this.#i<i.length?(r="edit",s=this.#i,i[s]={...e}):i.push({...e}),this.#w(),this.#k(i,r,s),N(R(t.added,{filter:this.#v(e)}))}#$(e){if(e.length===0)return;let t=ue.get(),i=[...this.filters,...e];this.#w(),this.#k(i,"add",i.length-1),N(e.map(r=>R(t.added,{filter:this.#v(r)})).join(", "))}#L(e){let t=this.filters[e];!t||t.readOnly||(this.#i===e?this.#w():this.#i>e&&(this.#i-=1),this.#k(this.filters.filter((i,r)=>r!==e),"remove",e),N(R(ue.get().removed,{filter:this.#v(t)})))}clear(){let e=this.filters.filter(t=>t.readOnly);this.#w(),e.length!==this.filters.length&&(this.#k(e,"clear",-1),N(ue.get().cleared))}#w(){this.#e=void 0,this.#t=void 0,this.#i=-1,this.#n=!1,this.inputValue="",this.active=-1,this.requestUpdate()}#S(e){if(e){switch(e.kind){case"text":this.#C();return;case"filter":this.#z(e.filter);return;case"field":{let t=this.#m(e.field);this.#e=t.key;let i=ze(t);this.#t=i.length===1?i[0]?.key:void 0;break}case"operator":this.#t=e.operator;break}this.inputValue="",this.active=-1,this.#n=!1,this.requestUpdate(),this.#A()}}#C(){let e=this.inputValue.trim();if(this.#e!==void 0&&this.#t!==void 0){let o=this.#m(this.#e),l=jn(o,e);return l===null?(this.#E(e,o.label),!1):(this.#z({field:o.key,operator:this.#t,value:l}),!0)}if(this.#e!==void 0){let o=this.#m(this.#e),l=ze(o).find(d=>this.#b(o,d.key).toLowerCase()===e.toLowerCase()||d.symbol===e);return l&&this.#S({kind:"operator",operator:l.key}),!!l}let t=qi(e,this.fields,this.#p),i=t.find(o=>!o.filter);if(i)return this.#E(i.term,""),!1;let r=t.flatMap(o=>o.filter?[o.filter]:[]),[s]=r;return this.#i>=0&&s&&r.length===1?this.#z(s):this.#$(r),!0}#E(e,t){this.#n=!0,this.requestUpdate(),N(R(ue.get().invalid,{text:e,field:t||ue.get().filters}))}#N(e){let t=this.filters[e];if(!(!t||t.readOnly||this.#h)){if(this.#i=e,this.#x(t))this.#e=void 0,this.#t=void 0,this.inputValue=t.value;else{let i=this.#m(t.field);this.#e=i.key,this.#t=t.operator,this.inputValue=this.#g(i,t.value)}this.requestUpdate(),this.updateComplete.then(()=>{let i=this.#f();i?.focus(),i?.select(),this.#A()})}}#M(){if(this.#t!==void 0&&this.#e!==void 0)ze(this.#m(this.#e)).length>1?this.#t=void 0:this.#e=this.#t=void 0;else if(this.#e!==void 0)this.#e=void 0;else{for(let e=this.filters.length-1;e>=0;e-=1)if(!this.filters[e]?.readOnly){this.#L(e);return}return}this.#e===void 0&&(this.#i=-1),this.active=-1,this.requestUpdate(),this.#A()}#A(){this.#h||(this.open=this.#_().options.length>0)}#T=e=>{this.inputValue=e.target.value,this.#n=!1,this.active=-1,e.isComposing||this.#A()};#D=e=>{if(this.#e!==void 0)return;let t=e.clipboardData?.getData("text")??"";if(!/\s/.test(t.trim())||this.inputValue)return;let i=qi(t,this.fields,this.#p);i.some(r=>!r.filter)||(e.preventDefault(),this.#$(i.flatMap(r=>r.filter?[r.filter]:[])))};#I(e,t,i){return e===0?-1:((t+i)%e+e)%e}#B=e=>{if(e.isComposing||e.keyCode===229||this.#h)return;let t=this.#d.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.open?this.active=this.#I(t,this.active,1):this.#A();return;case"ArrowUp":e.preventDefault(),this.open?this.active=this.#I(t,this.active<0?0:this.active,-1):this.#A();return;case"Enter":this.open&&this.active>=0?(e.preventDefault(),this.#S(this.#d[this.active])):this.inputValue.trim()?(e.preventDefault(),this.#C()):this.#e===void 0&&this.internals.form?.requestSubmit();return;case"Escape":this.open?(e.preventDefault(),this.open=!1):(this.#e!==void 0||this.#i>=0||this.inputValue)&&(e.preventDefault(),this.#w());return;case"Backspace":this.inputValue||(e.preventDefault(),this.#M());return;default:}};#P=e=>{let t=e.relatedTarget;t instanceof Node&&S(this,t)||(this.open=!1)};#R=e=>{if(this.#h)return;let t=e.target;t instanceof Element&&t.closest("button")||(this.#f()?.focus(),this.#A())};#U=e=>{e.preventDefault()};#q=e=>{let t=W(e);t!==-1&&(this.active=t)};#O=e=>{let t=W(e);t!==-1&&(this.#S(this.#d[t]),this.#f()?.focus())};willUpdate(e){e.has("open")&&this.open&&this.#h&&(this.open=!1),e.has("open")&&!this.open&&(this.active=-1)}updated(e){if(this.setCustomState("open",this.open),this.internals.setFormValue(this.name&&this.filters.length>0?this.value:null),e.has("open")){let t=this.renderRoot.querySelector("#popup"),i=this.renderRoot.querySelector(".field");this.open&&t&&i?(t.style.minInlineSize=`${i.offsetWidth}px`,t.matches(":popover-open")||t.showPopover(),this.#c.start(),this.#l.activate()):(this.#l.deactivate(),this.#c.stop(),t?.matches(":popover-open")&&t.hidePopover()),e.get("open")!==void 0&&this.emit("und-open-change",{open:this.open})}this.open&&e.has("active")&&this.active>=0&&this.renderRoot.querySelector(`#${V(this.active)}`)?.scrollIntoView?.({block:"nearest"})}#H(e,t){let i=ue.get(),r=this.#v(e),s=!e.readOnly&&!this.#h,o=this.#x(e),l=this.#m(e.field),d=o?a`<span class="value">${e.value}</span>`:a`<span class="name">${l.label}</span>
6290
- <span class="op">${this.#b(l,e.operator)}</span>
6291
- <span class="value">${this.#g(l,e.value)}</span>`;return a`<li
6289
+ `];var ue=ce({label:"Search",placeholder:"Search or filter\u2026",filters:"Filters",text:"Text",searchFor:"Search for \u201C{text}\u201D",fieldsGroup:"Filter by",valuesGroup:"Values",valuePlaceholder:"Value\u2026",datePlaceholder:"YYYY-MM-DD",edit:"Edit filter: {filter}",remove:"Remove filter: {filter}",clear:"Clear all filters",added:"Added filter: {filter}",removed:"Removed filter: {filter}",cleared:"Cleared all filters",invalid:"\u201C{text}\u201D is not a valid value for {field}",is:"is","is-not":"is not",contains:"contains",gt:"greater than",gte:"at least",lt:"less than",lte:"at most",dateIs:"on",dateGt:"after",dateLt:"before"}),Sx=ue.set,Jl=k`<circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/>`,Oi=class extends p{static tagName="und-power-search";static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static referenceTarget="input";static styles=mo;static properties={fields:{attribute:!1},filters:{attribute:!1},label:{},placeholder:{},name:{reflect:!0},size:{reflect:!0},disabled:{type:Boolean,reflect:!0},readOnly:{type:Boolean,reflect:!0,attribute:"readonly"},strict:{type:Boolean},noClear:{type:Boolean,attribute:"no-clear"},contentField:{attribute:"content-field"},maxResults:{type:Number,attribute:"max-results"},open:{type:Boolean,reflect:!0},inputValue:{attribute:!1}};#e;#t;#i=-1;#r=-1;#n=!1;#s=!1;#o=[];#d=[];#a=new y(this);#l=new P(this,{onDismiss:()=>{this.open=!1}});#c=new O(this,{getAnchor:()=>this.renderRoot.querySelector(".field"),getFloating:()=>this.renderRoot.querySelector("#popup"),placement:"bottom-start",offset:4,getDirection:()=>this.#a.dir});constructor(){super(),this.fields=[],this.filters=[],this.size="md",this.disabled=!1,this.readOnly=!1,this.strict=!1,this.noClear=!1,this.contentField="",this.maxResults=10,this.open=!1,this.inputValue=""}get value(){return fo(this.filters,this.fields)}set value(e){this.filters=qi(String(e??""),this.fields,this.#p).flatMap(t=>t.filter?[t.filter]:[])}get form(){return this.internals.form}get active(){return this.#r}set active(e){let t=this.#r;t!==e&&(this.#r=e,this.requestUpdate("active",t))}formDisabledCallback(e){this.#s=e,this.requestUpdate()}formResetCallback(){this.filters=[...this.#o],this.#k()}formStateRestoreCallback(e){typeof e=="string"&&(this.value=e)}firstUpdated(){this.#o=[...this.filters]}get#u(){return this.disabled||this.#s}get#h(){return this.#u||this.readOnly}get#p(){return{contentField:this.strict?null:this.contentField}}#f(){return this.renderRoot.querySelector("#input")}#m(e){return this.fields.find(t=>t.key===e)??{key:e,label:ue.get().text,operators:["contains"]}}#b(e,t){let i=ze(e).find(s=>s.key===t);if(i?.label)return i.label;let r=ue.get();if(e.type==="date"){if(t==="is")return r.dateIs;if(t==="gt")return r.dateGt;if(t==="lt")return r.dateLt}return Object.hasOwn(r,t)?r[t]:t}#v(e,t){return e.values?.find(i=>i.value===t)?.label??t}#g(e){if(this.#x(e))return e.value;let t=this.#m(e.field);return`${t.label} ${this.#b(t,e.operator)} ${this.#v(t,e.value)}`}#x(e){return!this.fields.some(t=>t.key===e.field)||e.field===this.contentField}#y(e,...t){let i=this.#a.lang||void 0,r=e.toLocaleLowerCase(i);return t.some(s=>s?.toLocaleLowerCase(i).includes(r))}#_(){let e=ue.get(),t=this.inputValue.trim(),i=[],r=[],s=(h,f,m)=>{i.push({value:String(i.length),label:h,...m?{group:m}:{}}),r.push(f)};if(this.#e!==void 0){let h=this.#m(this.#e);if(this.#t===void 0)for(let f of ze(h)){let m=this.#b(h,f.key);(!t||this.#y(t,m,f.symbol))&&s(m,{kind:"operator",operator:f.key})}else for(let f of h.values??[])(!t||this.#y(t,f.label,f.value))&&s(f.label,{kind:"filter",filter:{field:h.key,operator:this.#t,value:f.value}});return{options:i,suggestions:r}}let o=t&&!/\s/.test(t)?Kn(t,this.fields,{contentField:null}):void 0;o?.filter?s(this.#g(o.filter),{kind:"filter",filter:o.filter}):t&&!this.strict&&s(R(e.searchFor,{text:t}),{kind:"text",text:t});let a=t?Math.max(1,this.maxResults):1/0,d=0;for(let h of this.fields){if(d>=a)break;(!t||this.#y(t,h.label,h.key,...h.aliases??[]))&&(s(h.label,{kind:"field",field:h.key},h.group??e.fieldsGroup),d+=1)}if(t&&!o?.filter)for(let h of this.fields){let f=ze(h)[0];if(!(h.type!=="enum"||!f))for(let m of h.values??[]){if(d>=a)break;if(!this.#y(t,m.label))continue;let v={field:h.key,operator:f.key,value:m.value};s(this.#g(v),{kind:"filter",filter:v},e.valuesGroup),d+=1}}return{options:i,suggestions:r}}#w(e,t,i){this.filters=e,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("und-change",{filters:[...e],action:t,index:i})}#z(e){let t=ue.get(),i=[...this.filters],r="add",s=i.length;this.#i>=0&&this.#i<i.length?(r="edit",s=this.#i,i[s]={...e}):i.push({...e}),this.#k(),this.#w(i,r,s),N(R(t.added,{filter:this.#g(e)}))}#$(e){if(e.length===0)return;let t=ue.get(),i=[...this.filters,...e];this.#k(),this.#w(i,"add",i.length-1),N(e.map(r=>R(t.added,{filter:this.#g(r)})).join(", "))}#L(e){let t=this.filters[e];!t||t.readOnly||(this.#i===e?this.#k():this.#i>e&&(this.#i-=1),this.#w(this.filters.filter((i,r)=>r!==e),"remove",e),N(R(ue.get().removed,{filter:this.#g(t)})))}clear(){let e=this.filters.filter(t=>t.readOnly);this.#k(),e.length!==this.filters.length&&(this.#w(e,"clear",-1),N(ue.get().cleared))}#k(){this.#e=void 0,this.#t=void 0,this.#i=-1,this.#n=!1,this.inputValue="",this.active=-1,this.requestUpdate()}#S(e){if(e){switch(e.kind){case"text":this.#C();return;case"filter":this.#z(e.filter);return;case"field":{let t=this.#m(e.field);this.#e=t.key;let i=ze(t);this.#t=i.length===1?i[0]?.key:void 0;break}case"operator":this.#t=e.operator;break}this.inputValue="",this.active=-1,this.#n=!1,this.requestUpdate(),this.#E()}}#C(){let e=this.inputValue.trim();if(this.#e!==void 0&&this.#t!==void 0){let o=this.#m(this.#e),a=jn(o,e);return a===null?(this.#A(e,o.label),!1):(this.#z({field:o.key,operator:this.#t,value:a}),!0)}if(this.#e!==void 0){let o=this.#m(this.#e),a=ze(o).find(d=>this.#b(o,d.key).toLowerCase()===e.toLowerCase()||d.symbol===e);return a&&this.#S({kind:"operator",operator:a.key}),!!a}let t=qi(e,this.fields,this.#p),i=t.find(o=>!o.filter);if(i)return this.#A(i.term,""),!1;let r=t.flatMap(o=>o.filter?[o.filter]:[]),[s]=r;return this.#i>=0&&s&&r.length===1?this.#z(s):this.#$(r),!0}#A(e,t){this.#n=!0,this.requestUpdate(),N(R(ue.get().invalid,{text:e,field:t||ue.get().filters}))}#M(e){let t=this.filters[e];if(!(!t||t.readOnly||this.#h)){if(this.#i=e,this.#x(t))this.#e=void 0,this.#t=void 0,this.inputValue=t.value;else{let i=this.#m(t.field);this.#e=i.key,this.#t=t.operator,this.inputValue=this.#v(i,t.value)}this.requestUpdate(),this.updateComplete.then(()=>{let i=this.#f();i?.focus(),i?.select(),this.#E()})}}#N(){if(this.#t!==void 0&&this.#e!==void 0)ze(this.#m(this.#e)).length>1?this.#t=void 0:this.#e=this.#t=void 0;else if(this.#e!==void 0)this.#e=void 0;else{for(let e=this.filters.length-1;e>=0;e-=1)if(!this.filters[e]?.readOnly){this.#L(e);return}return}this.#e===void 0&&(this.#i=-1),this.active=-1,this.requestUpdate(),this.#E()}#E(){this.#h||(this.open=this.#_().options.length>0)}#T=e=>{this.inputValue=e.target.value,this.#n=!1,this.active=-1,e.isComposing||this.#E()};#D=e=>{if(this.#e!==void 0)return;let t=e.clipboardData?.getData("text")??"";if(!/\s/.test(t.trim())||this.inputValue)return;let i=qi(t,this.fields,this.#p);i.some(r=>!r.filter)||(e.preventDefault(),this.#$(i.flatMap(r=>r.filter?[r.filter]:[])))};#I(e,t,i){return e===0?-1:((t+i)%e+e)%e}#B=e=>{if(e.isComposing||e.keyCode===229||this.#h)return;let t=this.#d.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.open?this.active=this.#I(t,this.active,1):this.#E();return;case"ArrowUp":e.preventDefault(),this.open?this.active=this.#I(t,this.active<0?0:this.active,-1):this.#E();return;case"Enter":this.open&&this.active>=0?(e.preventDefault(),this.#S(this.#d[this.active])):this.inputValue.trim()?(e.preventDefault(),this.#C()):this.#e===void 0&&this.internals.form?.requestSubmit();return;case"Escape":this.open?(e.preventDefault(),this.open=!1):(this.#e!==void 0||this.#i>=0||this.inputValue)&&(e.preventDefault(),this.#k());return;case"Backspace":this.inputValue||(e.preventDefault(),this.#N());return;default:}};#P=e=>{let t=e.relatedTarget;t instanceof Node&&S(this,t)||(this.open=!1)};#R=e=>{if(this.#h)return;let t=e.target;t instanceof Element&&t.closest("button")||(this.#f()?.focus(),this.#E())};#U=e=>{e.preventDefault()};#q=e=>{let t=W(e);t!==-1&&(this.active=t)};#O=e=>{let t=W(e);t!==-1&&(this.#S(this.#d[t]),this.#f()?.focus())};willUpdate(e){e.has("open")&&this.open&&this.#h&&(this.open=!1),e.has("open")&&!this.open&&(this.active=-1)}updated(e){if(this.setCustomState("open",this.open),this.internals.setFormValue(this.name&&this.filters.length>0?this.value:null),e.has("open")){let t=this.renderRoot.querySelector("#popup"),i=this.renderRoot.querySelector(".field");this.open&&t&&i?(t.style.minInlineSize=`${i.offsetWidth}px`,t.matches(":popover-open")||t.showPopover(),this.#c.start(),this.#l.activate()):(this.#l.deactivate(),this.#c.stop(),t?.matches(":popover-open")&&t.hidePopover()),e.get("open")!==void 0&&this.emit("und-open-change",{open:this.open})}this.open&&e.has("active")&&this.active>=0&&this.renderRoot.querySelector(`#${V(this.active)}`)?.scrollIntoView?.({block:"nearest"})}#H(e,t){let i=ue.get(),r=this.#g(e),s=!e.readOnly&&!this.#h,o=this.#x(e),a=this.#m(e.field),d=o?l`<span class="value">${e.value}</span>`:l`<span class="name">${a.label}</span>
6290
+ <span class="op">${this.#b(a,e.operator)}</span>
6291
+ <span class="value">${this.#v(a,e.value)}</span>`;return l`<li
6292
6292
  part="token"
6293
6293
  class="token"
6294
6294
  ?data-editing=${t===this.#i}
6295
6295
  ?data-readonly=${e.readOnly}
6296
6296
  >
6297
- ${s?a`<button
6297
+ ${s?l`<button
6298
6298
  type="button"
6299
6299
  part="token-edit"
6300
6300
  class="token-edit"
6301
6301
  aria-label=${R(i.edit,{filter:r})}
6302
- @click=${()=>this.#N(t)}
6302
+ @click=${()=>this.#M(t)}
6303
6303
  >
6304
6304
  ${d}
6305
6305
  </button>
@@ -6311,8 +6311,8 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
6311
6311
  @click=${()=>{this.#L(t),this.#f()?.focus()}}
6312
6312
  >
6313
6313
  ${ct(Ft)}
6314
- </button>`:a`<span class="token-edit">${d}</span>`}
6315
- </li>`}render(){let e=ue.get(),{options:t,suggestions:i}=this.#_();this.#d=i;let r=this.#u,s=this.label||e.label,o=this.#e===void 0?void 0:this.#m(this.#e),l=o?[o.label,this.#t===void 0?"":this.#b(o,this.#t)].filter(Boolean).join(" "):"",d=o!==void 0&&this.#t!==void 0,h=d?o.type==="date"?e.datePlaceholder:e.valuePlaceholder:this.filters.length===0&&!o?this.placeholder||e.placeholder:"",f=!this.noClear&&!this.#h&&this.filters.some(v=>!v.readOnly),m=t.length>0;return a`<div
6314
+ </button>`:l`<span class="token-edit">${d}</span>`}
6315
+ </li>`}render(){let e=ue.get(),{options:t,suggestions:i}=this.#_();this.#d=i;let r=this.#u,s=this.label||e.label,o=this.#e===void 0?void 0:this.#m(this.#e),a=o?[o.label,this.#t===void 0?"":this.#b(o,this.#t)].filter(Boolean).join(" "):"",d=o!==void 0&&this.#t!==void 0,h=d?o.type==="date"?e.datePlaceholder:e.valuePlaceholder:this.filters.length===0&&!o?this.placeholder||e.placeholder:"",f=!this.noClear&&!this.#h&&this.filters.some(v=>!v.readOnly),m=t.length>0;return l`<div
6316
6316
  part="base"
6317
6317
  class="field"
6318
6318
  ?data-disabled=${r}
@@ -6320,10 +6320,10 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
6320
6320
  @click=${this.#R}
6321
6321
  >
6322
6322
  <span part="icon" class="icon">${ct(Jl)}</span>
6323
- ${this.filters.length>0?a`<ul part="tokens" class="tokens" role="list" aria-label=${e.filters}>
6323
+ ${this.filters.length>0?l`<ul part="tokens" class="tokens" role="list" aria-label=${e.filters}>
6324
6324
  ${this.filters.map((v,x)=>this.#H(v,x))}
6325
6325
  </ul>`:c}
6326
- ${l?a`<span id="pending" part="pending" class="pending">${l}</span>`:c}
6326
+ ${a?l`<span id="pending" part="pending" class="pending">${a}</span>`:c}
6327
6327
  <input
6328
6328
  id="input"
6329
6329
  part="input"
@@ -6340,7 +6340,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
6340
6340
  aria-controls="listbox"
6341
6341
  aria-activedescendant=${this.open&&this.active>=0?V(this.active):c}
6342
6342
  aria-label=${s}
6343
- aria-describedby=${l?"pending":c}
6343
+ aria-describedby=${a?"pending":c}
6344
6344
  aria-invalid=${this.#n?"true":c}
6345
6345
  placeholder=${h||c}
6346
6346
  ?disabled=${r}
@@ -6351,7 +6351,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
6351
6351
  @paste=${this.#D}
6352
6352
  @focusout=${this.#P}
6353
6353
  />
6354
- ${f?a`<button
6354
+ ${f?l`<button
6355
6355
  type="button"
6356
6356
  part="clear"
6357
6357
  class="clear"
@@ -6373,7 +6373,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
6373
6373
  <div id="listbox" part="listbox" role="listbox" aria-label=${s} ?hidden=${!m}>
6374
6374
  ${_e(t,{active:this.active,isSelected:()=>!1})}
6375
6375
  </div>
6376
- </div>`}};Oi.define();function Hi(n,e,t){let i=n==null||n==="",r=e==null||e==="";if(i||r)return+!i-+!r;let s=typeof n=="number"?n:Number(n),o=typeof e=="number"?e:Number(e);return Number.isFinite(s)&&Number.isFinite(o)?s-o:n instanceof Date&&e instanceof Date?n.getTime()-e.getTime():t.compare(String(n),String(e))}function ed(n,e,t,i){let r=new Intl.Collator(i,{numeric:!0,sensitivity:"base"}),s=typeof e=="function"?e:l=>l[e],o=t==="ascending"?1:-1;return n.map((l,d)=>({row:l,index:d,value:s(l)})).sort((l,d)=>o*Hi(l.value,d.value,r)||l.index-d.index).map(({row:l})=>l)}var bo=u` @layer und.components{:host{display:block;max-inline-size:100%}:host([hidden]){display:none}.scroll{max-inline-size:100%;max-block-size:var(--und-table-max-height,none);overflow:auto;overscroll-behavior-inline:contain;border:var(--und-border-width,1px) solid var(--und-table-border-color,var(--und-border-subtle,#d9dce1));border-radius:var(--und-table-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-surface,#fff)}:host([bare]) .scroll{border-color:transparent;border-radius:0;background:transparent}.selection{display:flex;flex-wrap:wrap;gap:0.75rem;align-items:center;padding-block:0.5rem;padding-inline:var(--und-table-cell-padding-inline,0.75rem);background:var(--und-table-toolbar-bg,var(--und-accent-bg,#edf2fe));color:var(--und-fg-default,#1b1d21);font-weight:600}.selection[hidden]{display:none}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.scroll:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}@media (forced-colors:active){.scroll:focus-visible{outline-color:Highlight}}}
6376
+ </div>`}};Oi.define();function Hi(n,e,t){let i=n==null||n==="",r=e==null||e==="";if(i||r)return+!i-+!r;let s=typeof n=="number"?n:Number(n),o=typeof e=="number"?e:Number(e);return Number.isFinite(s)&&Number.isFinite(o)?s-o:n instanceof Date&&e instanceof Date?n.getTime()-e.getTime():t.compare(String(n),String(e))}function ed(n,e,t,i){let r=new Intl.Collator(i,{numeric:!0,sensitivity:"base"}),s=typeof e=="function"?e:a=>a[e],o=t==="ascending"?1:-1;return n.map((a,d)=>({row:a,index:d,value:s(a)})).sort((a,d)=>o*Hi(a.value,d.value,r)||a.index-d.index).map(({row:a})=>a)}var bo=u` @layer und.components{:host{display:block;max-inline-size:100%}:host([hidden]){display:none}.scroll{max-inline-size:100%;max-block-size:var(--und-table-max-height,none);overflow:auto;overscroll-behavior-inline:contain;border:var(--und-border-width,1px) solid var(--und-table-border-color,var(--und-border-subtle,#d9dce1));border-radius:var(--und-table-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-surface,#fff)}:host([bare]) .scroll{border-color:transparent;border-radius:0;background:transparent}.selection{display:flex;flex-wrap:wrap;gap:0.75rem;align-items:center;padding-block:0.5rem;padding-inline:var(--und-table-cell-padding-inline,0.75rem);background:var(--und-table-toolbar-bg,var(--und-accent-bg,#edf2fe));color:var(--und-fg-default,#1b1d21);font-weight:600}.selection[hidden]{display:none}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.scroll:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}@media (forced-colors:active){.scroll:focus-visible{outline-color:Highlight}}}
6377
6377
 
6378
6378
 
6379
6379
 
@@ -6766,7 +6766,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
6766
6766
 
6767
6767
 
6768
6768
 
6769
- `;var Fi="input[data-select-row]",Gn="input[data-select-all]",zt="[data-und-resizer]",td=16,id=5,rd=48,nd=800;function sd(n){let e=0;for(let t of n.parentElement.cells){if(t===n)break;e+=t.colSpan}return e}function od(n,e){let t=0;for(let i of n.cells){if(e<t+i.colSpan)return i;t+=i.colSpan}}var ad=n=>(n?.dataset.sortValue??n?.textContent??"").trim(),Vi=class extends p{static tagName="und-table";static styles=bo;static properties={label:{},density:{reflect:!0},bare:{type:Boolean,reflect:!0},striped:{type:Boolean,reflect:!0},hoverable:{type:Boolean,reflect:!0},columnDividers:{type:Boolean,reflect:!0,attribute:"column-dividers"},stickyHeader:{type:Boolean,reflect:!0,attribute:"sticky-header"},stickyFirstColumn:{type:Boolean,reflect:!0,attribute:"sticky-first-column"},resizable:{type:Boolean,reflect:!0},hiddenColumns:{attribute:"hidden-columns",reflect:!0},selectionMessage:{attribute:"selection-message"},resizeLabel:{attribute:"resize-label"},sortMessage:{attribute:"sort-message"},ascendingLabel:{attribute:"ascending-label"},descendingLabel:{attribute:"descending-label"}};#e=new y(this);#t=!1;#i=[];#r=0;#n=!1;#s=new Map;#o;#d;#a;constructor(){super(),this.density="comfortable",this.bare=!1,this.striped=!1,this.hoverable=!1,this.columnDividers=!1,this.stickyHeader=!1,this.stickyFirstColumn=!1,this.resizable=!1,this.selectionMessage="{count} selected",this.resizeLabel="Resize {column} column",this.sortMessage="Sorted by {column}, {direction}",this.ascendingLabel="ascending",this.descendingLabel="descending"}get table(){return this.querySelector(":scope > table")}connectedCallback(){super.connectedCallback(),!!1&&(D(this,go),this.addEventListener("click",this.#A),this.addEventListener("change",this.#p),this.addEventListener("keydown",this.#$),this.addEventListener("pointerdown",this.#L),this.addEventListener("pointermove",this.#w),this.addEventListener("pointerup",this.#S),this.addEventListener("pointercancel",this.#S),this.#d??=new MutationObserver(()=>{this.#u(),this.requestUpdate(),this.#C(),this.#N()}),this.#d.observe(this,{childList:!0,characterData:!0,subtree:!0}),this.#C())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.#A),this.removeEventListener("change",this.#p),this.removeEventListener("keydown",this.#$),this.removeEventListener("pointerdown",this.#L),this.removeEventListener("pointermove",this.#w),this.removeEventListener("pointerup",this.#S),this.removeEventListener("pointercancel",this.#S),this.#d?.disconnect(),this.#a?.disconnect()}firstUpdated(){this.#C()}updated(){this.#u()}get#l(){return new Set((this.hiddenColumns??"").split(",").map(e=>Number.parseInt(e,10)).filter(e=>Number.isInteger(e)&&e>=0))}get columns(){let e=this.table?.tHead?.rows[0];if(!e)return[];let t=this.#l;return[...e.cells].map((i,r)=>({index:r,label:i.textContent?.trim()??"",hidden:t.has(r)}))}setColumnHidden(e,t){let i=this.#l;t?i.add(e):i.delete(e);let r=[...i].sort((s,o)=>s-o);this.hiddenColumns=r.join(",")||void 0,this.emit("und-columns-change",{hidden:r})}#c(){let e=this.table;if(!e)return;let t=this.#l;for(let i of e.rows)for(let r of i.cells)t.has(r.cellIndex)?r.style.display="none":r.style.display==="none"&&r.style.removeProperty("display")}#u(){!this.table||(this.#f(),this.#c(),this.#h(),this.#g())}get selectedValues(){return[...this.#i]}clearSelection(){for(let e of this.querySelectorAll(`${Fi}, ${Gn}`))e.checked=!1;this.#h()}#h(){let e=[...this.querySelectorAll(Fi)],t=e.filter(o=>o.checked),i=e.filter(o=>!o.disabled);for(let o of e)o.closest("tr")?.toggleAttribute("data-selected",o.checked);for(let o of this.querySelectorAll(Gn)){let l=i.length>0&&i.every(d=>d.checked);o.checked=l,o.indeterminate=t.length>0&&!l}let r=t.map(o=>o.value),s=r.join("\0")!==this.#i.join("\0");this.#i=r,(t.length!==this.#r||s)&&(this.#r=t.length,this.requestUpdate())}#p=e=>{let t=e.target;if(t instanceof HTMLInputElement){if(t.matches(Gn))for(let i of this.querySelectorAll(Fi))i.disabled||(i.checked=t.checked);else if(!t.matches(Fi))return;this.#h(),this.emit("und-selection-change",{count:this.#r,values:this.selectedValues})}};#f(){let e=[...this.table?.querySelectorAll(":scope > tbody > tr")??[]];if(!e.some(r=>r.hasAttribute("data-parent")))return;let t=new Map(e.filter(r=>r.id).map(r=>[r.id,r])),i=(r,s=0)=>{let o=r.querySelector("button[data-expand]");if(o&&o.getAttribute("aria-expanded")!=="true")return!1;let l=t.get(r.getAttribute("data-parent")??"");return!l||s>e.length||i(l,s+1)};for(let r of e){let s=t.get(r.getAttribute("data-parent")??"");if(s){let o=!i(s);r.hidden!==o&&(r.hidden=o)}}}#m(e){let t=e.getAttribute("aria-expanded")!=="true";e.setAttribute("aria-expanded",String(t)),this.#f(),this.emit("und-expand-change",{id:e.closest("tr")?.id??"",expanded:t})}#b(){let e=this.table?.tHead;return[...e?.rows.item(e.rows.length-1)?.cells??[]].filter(i=>i.localName==="th"&&i.colSpan===1&&i.dataset.resize!=="false")}#g(){let e=this.resizable?this.#b():[];for(let t of this.querySelectorAll(zt))e.includes(t.parentElement)||t.remove();for(let t of e){let i=t.querySelector(`:scope > ${zt}`);i||(i=document.createElement("span"),i.setAttribute("data-und-resizer",""),i.setAttribute("role","separator"),i.setAttribute("aria-orientation","vertical"),i.tabIndex=0,t.append(i));let r=this.resizeLabel.replace("{column}",this.#v(t));i.getAttribute("aria-label")!==r&&i.setAttribute("aria-label",r),this.#y(t,i,t.getBoundingClientRect().width)}}#v(e){let t="";for(let i of e.childNodes)i instanceof HTMLElement&&i.matches(zt)||(t+=i.textContent??"");return t.trim()}#x(e){let t=Number(e.dataset.minWidth),i=Number(e.dataset.maxWidth);return[t>0?t:rd,i>0?i:nd]}#y(e,t,i){let[r,s]=this.#x(e),o={"aria-valuemin":r,"aria-valuemax":s,"aria-valuenow":Math.round(i)};for(let[l,d]of Object.entries(o))t.getAttribute(l)!==String(d)&&t.setAttribute(l,String(d))}#_(){let e=this.table;if(!(!e||this.#n)){this.#n=!0;for(let t of this.#b()){let i=t.getBoundingClientRect().width;t.style.inlineSize=`${i}px`,this.#s.set(t,i)}e.style.tableLayout="fixed",this.#k()}}#k(){let e=0;for(let t of this.#s.values())e+=t;this.table&&(this.table.style.inlineSize=`${e}px`)}resizeColumn(e,t,i=!1){let r=this.#b()[e];if(!r)return;this.#_();let[s,o]=this.#x(r),l=Math.min(o,Math.max(s,Math.round(t)));r.style.inlineSize=`${l}px`,this.#s.set(r,l),this.#k();let d=r.querySelector(zt);d&&this.#y(r,d,l),i&&this.emit("und-column-resize",{column:e,width:l})}#z(e){let t=e.target,i=t instanceof Element?t.closest(zt):null,r=i?.parentElement;return i&&r instanceof HTMLTableCellElement?{th:r,handle:i}:void 0}#$=e=>{let t=this.#z(e);if(!t)return;let{th:i}=t,[r,s]=this.#x(i),o=i.getBoundingClientRect().width,l=this.#e.dir==="rtl",d=td*(e.shiftKey?id:1),h;switch(e.key){case"ArrowRight":h=o+(l?-d:d);break;case"ArrowLeft":h=o+(l?d:-d);break;case"Home":h=r;break;case"End":h=s;break;default:return}e.preventDefault(),this.resizeColumn(this.#b().indexOf(i),h,!0)};#L=e=>{let t=this.#z(e);if(!(!t||e.button!==0)){e.preventDefault(),this.#_(),t.handle.focus();try{t.handle.setPointerCapture(e.pointerId)}catch{}this.#o={th:t.th,start:e.clientX,width:t.th.getBoundingClientRect().width},t.handle.toggleAttribute("data-dragging",!0)}};#w=e=>{let t=this.#o;if(!t)return;let i=(e.clientX-t.start)*(this.#e.dir==="rtl"?-1:1);this.resizeColumn(this.#b().indexOf(t.th),t.width+i,!0)};#S=()=>{this.#o=void 0;for(let e of this.querySelectorAll(zt))e.removeAttribute("data-dragging")};#C(){this.#a??=new ResizeObserver(()=>this.#N()),this.#a.disconnect();for(let e of[this.#E(),this.table])e&&this.#a.observe(e)}#E(){return this.renderRoot?.querySelector(".scroll")??null}#N(){let e=this.#E();if(!e)return;let t=e.scrollWidth>e.clientWidth+1||e.scrollHeight>e.clientHeight+1;t!==this.#t&&(this.#t=t,this.setCustomState("scrollable",t),this.requestUpdate())}#M(){return this.label?this.label:this.table?.caption?.textContent?.trim()??""}#A=e=>{let t=this.table,i=e.target;if(!t||!(i instanceof Element))return;let r=i.closest("button[data-expand]");if(r){this.#m(r);return}if(!t.tHead)return;let s=i.closest("button"),o=s?.parentElement;if(!s||!(o instanceof HTMLTableCellElement)||o.localName!=="th"||!o.hasAttribute("aria-sort")||o.parentElement?.parentElement!==t.tHead)return;let l=o.getAttribute("aria-sort")==="ascending"?"descending":"ascending";for(let m of t.tHead.querySelectorAll(":scope > tr > th[aria-sort]"))m!==o&&m.setAttribute("aria-sort","none");o.setAttribute("aria-sort",l);let d=sd(o),h=s.textContent?.trim()??"",f={key:s.dataset.sortKey??h,direction:l,column:d};this.emit("und-sort",f,{cancelable:!0})&&this.#T(t,d,l),N(this.sortMessage.replace("{column}",h).replace("{direction}",l==="ascending"?this.ascendingLabel:this.descendingLabel))};#T(e,t,i){let r=new Intl.Collator(this.#e.lang||void 0,{numeric:!0,sensitivity:"base"}),s=i==="ascending"?1:-1;for(let o of e.tBodies){let l=[];for(let d of o.rows){let h=l.at(-1);d.hasAttribute("data-parent")&&h?h.rest.push(d):l.push({row:d,index:l.length,value:ad(od(d,t)),rest:[]})}l.sort((d,h)=>s*Hi(d.value,h.value,r)||d.index-h.index),o.append(...l.flatMap(({row:d,rest:h})=>[d,...h]))}}render(){let e=this.#M();!e&&!!1&&this.table&&C("table:name","<und-table> needs a <caption> or a label attribute to name its scroll region.");let t=this.#r?this.selectionMessage.replace("{count}",String(this.#r)):"";return a`<div role="status" class="visually-hidden">${t}</div>
6769
+ `;var Fi="input[data-select-row]",Gn="input[data-select-all]",zt="[data-und-resizer]",td=16,id=5,rd=48,nd=800;function sd(n){let e=0;for(let t of n.parentElement.cells){if(t===n)break;e+=t.colSpan}return e}function od(n,e){let t=0;for(let i of n.cells){if(e<t+i.colSpan)return i;t+=i.colSpan}}var ad=n=>(n?.dataset.sortValue??n?.textContent??"").trim(),Vi=class extends p{static tagName="und-table";static styles=bo;static properties={label:{},density:{reflect:!0},bare:{type:Boolean,reflect:!0},striped:{type:Boolean,reflect:!0},hoverable:{type:Boolean,reflect:!0},columnDividers:{type:Boolean,reflect:!0,attribute:"column-dividers"},stickyHeader:{type:Boolean,reflect:!0,attribute:"sticky-header"},stickyFirstColumn:{type:Boolean,reflect:!0,attribute:"sticky-first-column"},resizable:{type:Boolean,reflect:!0},hiddenColumns:{attribute:"hidden-columns",reflect:!0},selectionMessage:{attribute:"selection-message"},resizeLabel:{attribute:"resize-label"},sortMessage:{attribute:"sort-message"},ascendingLabel:{attribute:"ascending-label"},descendingLabel:{attribute:"descending-label"}};#e=new y(this);#t=!1;#i=[];#r=0;#n=!1;#s=new Map;#o;#d;#a;constructor(){super(),this.density="comfortable",this.bare=!1,this.striped=!1,this.hoverable=!1,this.columnDividers=!1,this.stickyHeader=!1,this.stickyFirstColumn=!1,this.resizable=!1,this.selectionMessage="{count} selected",this.resizeLabel="Resize {column} column",this.sortMessage="Sorted by {column}, {direction}",this.ascendingLabel="ascending",this.descendingLabel="descending"}get table(){return this.querySelector(":scope > table")}connectedCallback(){super.connectedCallback(),!!1&&(D(this,go),this.addEventListener("click",this.#E),this.addEventListener("change",this.#p),this.addEventListener("keydown",this.#$),this.addEventListener("pointerdown",this.#L),this.addEventListener("pointermove",this.#k),this.addEventListener("pointerup",this.#S),this.addEventListener("pointercancel",this.#S),this.#d??=new MutationObserver(()=>{this.#u(),this.requestUpdate(),this.#C(),this.#M()}),this.#d.observe(this,{childList:!0,characterData:!0,subtree:!0}),this.#C())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.#E),this.removeEventListener("change",this.#p),this.removeEventListener("keydown",this.#$),this.removeEventListener("pointerdown",this.#L),this.removeEventListener("pointermove",this.#k),this.removeEventListener("pointerup",this.#S),this.removeEventListener("pointercancel",this.#S),this.#d?.disconnect(),this.#a?.disconnect()}firstUpdated(){this.#C()}updated(){this.#u()}get#l(){return new Set((this.hiddenColumns??"").split(",").map(e=>Number.parseInt(e,10)).filter(e=>Number.isInteger(e)&&e>=0))}get columns(){let e=this.table?.tHead?.rows[0];if(!e)return[];let t=this.#l;return[...e.cells].map((i,r)=>({index:r,label:i.textContent?.trim()??"",hidden:t.has(r)}))}setColumnHidden(e,t){let i=this.#l;t?i.add(e):i.delete(e);let r=[...i].sort((s,o)=>s-o);this.hiddenColumns=r.join(",")||void 0,this.emit("und-columns-change",{hidden:r})}#c(){let e=this.table;if(!e)return;let t=this.#l;for(let i of e.rows)for(let r of i.cells)t.has(r.cellIndex)?r.style.display="none":r.style.display==="none"&&r.style.removeProperty("display")}#u(){!this.table||(this.#f(),this.#c(),this.#h(),this.#v())}get selectedValues(){return[...this.#i]}clearSelection(){for(let e of this.querySelectorAll(`${Fi}, ${Gn}`))e.checked=!1;this.#h()}#h(){let e=[...this.querySelectorAll(Fi)],t=e.filter(o=>o.checked),i=e.filter(o=>!o.disabled);for(let o of e)o.closest("tr")?.toggleAttribute("data-selected",o.checked);for(let o of this.querySelectorAll(Gn)){let a=i.length>0&&i.every(d=>d.checked);o.checked=a,o.indeterminate=t.length>0&&!a}let r=t.map(o=>o.value),s=r.join("\0")!==this.#i.join("\0");this.#i=r,(t.length!==this.#r||s)&&(this.#r=t.length,this.requestUpdate())}#p=e=>{let t=e.target;if(t instanceof HTMLInputElement){if(t.matches(Gn))for(let i of this.querySelectorAll(Fi))i.disabled||(i.checked=t.checked);else if(!t.matches(Fi))return;this.#h(),this.emit("und-selection-change",{count:this.#r,values:this.selectedValues})}};#f(){let e=[...this.table?.querySelectorAll(":scope > tbody > tr")??[]];if(!e.some(r=>r.hasAttribute("data-parent")))return;let t=new Map(e.filter(r=>r.id).map(r=>[r.id,r])),i=(r,s=0)=>{let o=r.querySelector("button[data-expand]");if(o&&o.getAttribute("aria-expanded")!=="true")return!1;let a=t.get(r.getAttribute("data-parent")??"");return!a||s>e.length||i(a,s+1)};for(let r of e){let s=t.get(r.getAttribute("data-parent")??"");if(s){let o=!i(s);r.hidden!==o&&(r.hidden=o)}}}#m(e){let t=e.getAttribute("aria-expanded")!=="true";e.setAttribute("aria-expanded",String(t)),this.#f(),this.emit("und-expand-change",{id:e.closest("tr")?.id??"",expanded:t})}#b(){let e=this.table?.tHead;return[...e?.rows.item(e.rows.length-1)?.cells??[]].filter(i=>i.localName==="th"&&i.colSpan===1&&i.dataset.resize!=="false")}#v(){let e=this.resizable?this.#b():[];for(let t of this.querySelectorAll(zt))e.includes(t.parentElement)||t.remove();for(let t of e){let i=t.querySelector(`:scope > ${zt}`);i||(i=document.createElement("span"),i.setAttribute("data-und-resizer",""),i.setAttribute("role","separator"),i.setAttribute("aria-orientation","vertical"),i.tabIndex=0,t.append(i));let r=this.resizeLabel.replace("{column}",this.#g(t));i.getAttribute("aria-label")!==r&&i.setAttribute("aria-label",r),this.#y(t,i,t.getBoundingClientRect().width)}}#g(e){let t="";for(let i of e.childNodes)i instanceof HTMLElement&&i.matches(zt)||(t+=i.textContent??"");return t.trim()}#x(e){let t=Number(e.dataset.minWidth),i=Number(e.dataset.maxWidth);return[t>0?t:rd,i>0?i:nd]}#y(e,t,i){let[r,s]=this.#x(e),o={"aria-valuemin":r,"aria-valuemax":s,"aria-valuenow":Math.round(i)};for(let[a,d]of Object.entries(o))t.getAttribute(a)!==String(d)&&t.setAttribute(a,String(d))}#_(){let e=this.table;if(!(!e||this.#n)){this.#n=!0;for(let t of this.#b()){let i=t.getBoundingClientRect().width;t.style.inlineSize=`${i}px`,this.#s.set(t,i)}e.style.tableLayout="fixed",this.#w()}}#w(){let e=0;for(let t of this.#s.values())e+=t;this.table&&(this.table.style.inlineSize=`${e}px`)}resizeColumn(e,t,i=!1){let r=this.#b()[e];if(!r)return;this.#_();let[s,o]=this.#x(r),a=Math.min(o,Math.max(s,Math.round(t)));r.style.inlineSize=`${a}px`,this.#s.set(r,a),this.#w();let d=r.querySelector(zt);d&&this.#y(r,d,a),i&&this.emit("und-column-resize",{column:e,width:a})}#z(e){let t=e.target,i=t instanceof Element?t.closest(zt):null,r=i?.parentElement;return i&&r instanceof HTMLTableCellElement?{th:r,handle:i}:void 0}#$=e=>{let t=this.#z(e);if(!t)return;let{th:i}=t,[r,s]=this.#x(i),o=i.getBoundingClientRect().width,a=this.#e.dir==="rtl",d=td*(e.shiftKey?id:1),h;switch(e.key){case"ArrowRight":h=o+(a?-d:d);break;case"ArrowLeft":h=o+(a?d:-d);break;case"Home":h=r;break;case"End":h=s;break;default:return}e.preventDefault(),this.resizeColumn(this.#b().indexOf(i),h,!0)};#L=e=>{let t=this.#z(e);if(!(!t||e.button!==0)){e.preventDefault(),this.#_(),t.handle.focus();try{t.handle.setPointerCapture(e.pointerId)}catch{}this.#o={th:t.th,start:e.clientX,width:t.th.getBoundingClientRect().width},t.handle.toggleAttribute("data-dragging",!0)}};#k=e=>{let t=this.#o;if(!t)return;let i=(e.clientX-t.start)*(this.#e.dir==="rtl"?-1:1);this.resizeColumn(this.#b().indexOf(t.th),t.width+i,!0)};#S=()=>{this.#o=void 0;for(let e of this.querySelectorAll(zt))e.removeAttribute("data-dragging")};#C(){this.#a??=new ResizeObserver(()=>this.#M()),this.#a.disconnect();for(let e of[this.#A(),this.table])e&&this.#a.observe(e)}#A(){return this.renderRoot?.querySelector(".scroll")??null}#M(){let e=this.#A();if(!e)return;let t=e.scrollWidth>e.clientWidth+1||e.scrollHeight>e.clientHeight+1;t!==this.#t&&(this.#t=t,this.setCustomState("scrollable",t),this.requestUpdate())}#N(){return this.label?this.label:this.table?.caption?.textContent?.trim()??""}#E=e=>{let t=this.table,i=e.target;if(!t||!(i instanceof Element))return;let r=i.closest("button[data-expand]");if(r){this.#m(r);return}if(!t.tHead)return;let s=i.closest("button"),o=s?.parentElement;if(!s||!(o instanceof HTMLTableCellElement)||o.localName!=="th"||!o.hasAttribute("aria-sort")||o.parentElement?.parentElement!==t.tHead)return;let a=o.getAttribute("aria-sort")==="ascending"?"descending":"ascending";for(let m of t.tHead.querySelectorAll(":scope > tr > th[aria-sort]"))m!==o&&m.setAttribute("aria-sort","none");o.setAttribute("aria-sort",a);let d=sd(o),h=s.textContent?.trim()??"",f={key:s.dataset.sortKey??h,direction:a,column:d};this.emit("und-sort",f,{cancelable:!0})&&this.#T(t,d,a),N(this.sortMessage.replace("{column}",h).replace("{direction}",a==="ascending"?this.ascendingLabel:this.descendingLabel))};#T(e,t,i){let r=new Intl.Collator(this.#e.lang||void 0,{numeric:!0,sensitivity:"base"}),s=i==="ascending"?1:-1;for(let o of e.tBodies){let a=[];for(let d of o.rows){let h=a.at(-1);d.hasAttribute("data-parent")&&h?h.rest.push(d):a.push({row:d,index:a.length,value:ad(od(d,t)),rest:[]})}a.sort((d,h)=>s*Hi(d.value,h.value,r)||d.index-h.index),o.append(...a.flatMap(({row:d,rest:h})=>[d,...h]))}}render(){let e=this.#N();!e&&!!1&&this.table&&C("table:name","<und-table> needs a <caption> or a label attribute to name its scroll region.");let t=this.#r?this.selectionMessage.replace("{count}",String(this.#r)):"";return l`<div role="status" class="visually-hidden">${t}</div>
6770
6770
  <div part="selection" class="selection" ?hidden=${!this.#r}>
6771
6771
  <span class="selection-count" aria-hidden="true">${t}</span>
6772
6772
  <slot name="selection"></slot>
@@ -6855,7 +6855,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
6855
6855
 
6856
6856
 
6857
6857
 
6858
- `,ut=class extends p{static tagName="und-button-group";static styles=ld;static properties={label:{},variant:{reflect:!0},orientation:{reflect:!0}};constructor(){super(),this.variant="attached",this.orientation="horizontal"}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","group")}updated(e){super.updated(e),this.label?this.setAttribute("aria-label",this.label):e.has("label")&&e.get("label")!==void 0&&this.removeAttribute("aria-label")}render(){return a`<slot></slot>`}};ut.define();var vo=u` @layer und.components{.und-checkbox-list{display:flex;flex-direction:column;gap:var(--und-field-gap,0.375rem);min-inline-size:0;margin:0;padding:0;border:0;color:var(--und-fg-default,#23252c);font-size:var(--und-text-body-md-size,1rem);line-height:var(--und-text-body-md-lh,1.5)}.und-checkbox-list__items{display:flex;flex-direction:column;gap:var(--und-checkbox-list-gap,0)}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox{position:relative;padding:var( --und-checkbox-list-padding,var(--und-space-2,0.5rem) var(--und-space-2,0.5rem) );border:0;border-radius:var(--und-shape-control,0.375rem);background:transparent;transition:background-color var(--und-motion-hover,130ms) ease}@media (hover:hover) and (forced-colors:none){:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:hover:not(:has(.und-checkbox__input:disabled)){background:var(--und-bg-muted,#f1f2f6)}}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:has(.und-checkbox__input:checked){background:var(--und-accent-bg,#eff2fe)}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:has(.und-checkbox__input[aria-invalid='true']){box-shadow:inset 0 0 0 var(--und-border-width,1px) var(--und-status-danger-fg,#b81e27)}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox__label{font-weight:var(--und-font-weight-normal,400)}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox__label::after{content:'';position:absolute;inset:0;border-radius:inherit}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox__control{position:relative;z-index:1}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:has(.und-checkbox__input:disabled){background:transparent;opacity:1}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:has(.und-checkbox__input:disabled) :is(.und-checkbox__control,.und-checkbox__label){opacity:var(--und-disabled-opacity,0.55)}@media (prefers-reduced-motion:reduce){:is(.und-checkbox-list,und-checkbox-list) .und-checkbox{transition:none}}@media (forced-colors:active){:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:has(.und-checkbox__input:checked){outline:var(--und-border-width-thick,2px) solid Highlight;box-shadow:none}}}
6858
+ `,ut=class extends p{static tagName="und-button-group";static styles=ld;static properties={label:{},variant:{reflect:!0},orientation:{reflect:!0}};constructor(){super(),this.variant="attached",this.orientation="horizontal"}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","group")}updated(e){super.updated(e),this.label?this.setAttribute("aria-label",this.label):e.has("label")&&e.get("label")!==void 0&&this.removeAttribute("aria-label")}render(){return l`<slot></slot>`}};ut.define();var vo=u` @layer und.components{.und-checkbox-list{display:flex;flex-direction:column;gap:var(--und-field-gap,0.375rem);min-inline-size:0;margin:0;padding:0;border:0;color:var(--und-fg-default,#23252c);font-size:var(--und-text-body-md-size,1rem);line-height:var(--und-text-body-md-lh,1.5)}.und-checkbox-list__items{display:flex;flex-direction:column;gap:var(--und-checkbox-list-gap,0)}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox{position:relative;padding:var( --und-checkbox-list-padding,var(--und-space-2,0.5rem) var(--und-space-2,0.5rem) );border:0;border-radius:var(--und-shape-control,0.375rem);background:transparent;transition:background-color var(--und-motion-hover,130ms) ease}@media (hover:hover) and (forced-colors:none){:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:hover:not(:has(.und-checkbox__input:disabled)){background:var(--und-bg-muted,#f1f2f6)}}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:has(.und-checkbox__input:checked){background:var(--und-accent-bg,#eff2fe)}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:has(.und-checkbox__input[aria-invalid='true']){box-shadow:inset 0 0 0 var(--und-border-width,1px) var(--und-status-danger-fg,#b81e27)}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox__label{font-weight:var(--und-font-weight-normal,400)}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox__label::after{content:'';position:absolute;inset:0;border-radius:inherit}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox__control{position:relative;z-index:1}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:has(.und-checkbox__input:disabled){background:transparent;opacity:1}:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:has(.und-checkbox__input:disabled) :is(.und-checkbox__control,.und-checkbox__label){opacity:var(--und-disabled-opacity,0.55)}@media (prefers-reduced-motion:reduce){:is(.und-checkbox-list,und-checkbox-list) .und-checkbox{transition:none}}@media (forced-colors:active){:is(.und-checkbox-list,und-checkbox-list) .und-checkbox:has(.und-checkbox__input:checked){outline:var(--und-border-width-thick,2px) solid Highlight;box-shadow:none}}}
6859
6859
 
6860
6860
 
6861
6861
 
@@ -6982,7 +6982,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
6982
6982
 
6983
6983
 
6984
6984
 
6985
- `;static properties={label:{},description:{},error:{},name:{reflect:!0},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}};#e=E("und-checkbox-list");#t;#i;#r;#n="";#s=new WeakSet;constructor(){super(),this.required=!1,this.disabled=!1}get checkboxes(){return[...this.querySelectorAll("und-checkbox")]}get value(){return this.checkboxes.filter(e=>e.checked).map(e=>e.value)}set value(e){for(let t of this.checkboxes)t.checked=e.includes(t.value);this.requestUpdate()}get form(){return this.internals.form}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}focus(e){this.checkboxes.find(t=>!t.disabled)?.focus(e)}connectedCallback(){super.connectedCallback(),!!1&&(D(this,[z,L,mi,vo]),this.hasAttribute("role")||this.setAttribute("role","group"),!this.#t&&(this.#t=g("div","und-field__label","label"),this.#t.id=`${this.#e}-label`,this.#t.slot="label",this.#i=g("p","und-field__description","description"),this.#i.id=`${this.#e}-description`,this.#i.slot="description",this.#r=g("p","und-field__error","error"),this.#r.id=`${this.#e}-error`,this.#r.slot="error",this.#r.hidden=!0,this.prepend(this.#t,this.#i),this.append(this.#r),this.addEventListener("change",this.#c),this.addEventListener("invalid",this.#u)))}render(){return a`<slot name="label"></slot><slot name="description"></slot>
6985
+ `;static properties={label:{},description:{},error:{},name:{reflect:!0},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}};#e=E("und-checkbox-list");#t;#i;#r;#n="";#s=new WeakSet;constructor(){super(),this.required=!1,this.disabled=!1}get checkboxes(){return[...this.querySelectorAll("und-checkbox")]}get value(){return this.checkboxes.filter(e=>e.checked).map(e=>e.value)}set value(e){for(let t of this.checkboxes)t.checked=e.includes(t.value);this.requestUpdate()}get form(){return this.internals.form}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}focus(e){this.checkboxes.find(t=>!t.disabled)?.focus(e)}connectedCallback(){super.connectedCallback(),!!1&&(D(this,[z,L,mi,vo]),this.hasAttribute("role")||this.setAttribute("role","group"),!this.#t&&(this.#t=g("div","und-field__label","label"),this.#t.id=`${this.#e}-label`,this.#t.slot="label",this.#i=g("p","und-field__description","description"),this.#i.id=`${this.#e}-description`,this.#i.slot="description",this.#r=g("p","und-field__error","error"),this.#r.id=`${this.#e}-error`,this.#r.slot="error",this.#r.hidden=!0,this.prepend(this.#t,this.#i),this.append(this.#r),this.addEventListener("change",this.#c),this.addEventListener("invalid",this.#u)))}render(){return l`<slot name="label"></slot><slot name="description"></slot>
6986
6986
  <div part="items" class="items"><slot @slotchange=${this.#o}></slot></div>
6987
6987
  <slot name="error"></slot>`}updated(e){if(super.updated(e),!this.#t||!this.#i||!this.#r)return;Q(this.#t,this.label??"",this.required?"required":void 0),this.#t.hidden=!this.label;let t=this.description??"";this.#i.textContent=t,this.#i.hidden=!t,this.#a();let i=this.error||this.#n;oe(this.#r,i),this.#l("aria-labelledby",this.label?this.#t.id:""),this.#l("aria-describedby",U(t?this.#i.id:"",i?this.#r.id:"")),this.#l("aria-required",this.required?"true":""),this.setCustomState("invalid",!!i),!this.label&&!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby")&&C("label:und-checkbox-list","<und-checkbox-list> has no label. Set the label attribute (or aria-label)."),this.#d(!!i)}formResetCallback(){this.#n="",queueMicrotask(()=>this.requestUpdate())}#o=()=>{this.requestUpdate()};#d(e){for(let t of this.checkboxes){this.name&&(t.name=this.name),this.disabled?(t.disabled||this.#s.add(t),t.disabled=!0):this.#s.has(t)&&(this.#s.delete(t),t.disabled=!1);let i=t.input;i&&(e?i.setAttribute("aria-invalid","true"):t.error||i.removeAttribute("aria-invalid"))}}#a(){let e=this.checkboxes.find(i=>!i.disabled)?.input??void 0,t=this.internals;this.error?t.setValidity({customError:!0},this.error,e):this.required&&this.value.length===0?t.setValidity({valueMissing:!0},xo.get().valueMissing,e):(t.setValidity({}),this.#n="")}#l(e,t){t?this.setAttribute(e,t):this.removeAttribute(e)}#c=()=>{this.requestUpdate()};#u=()=>{this.error||(this.#n=this.internals.validationMessage,this.requestUpdate())}};kt.define();ji.define();var Ki=class extends We{static tagName="und-clickable-card";static styles=[We.styles??[],u` @layer und.components{button.link{margin:0;padding:0;border:0;background:transparent;font:inherit;text-align:start;cursor:pointer}.interactive{cursor:pointer}:host([disabled]) .card{opacity:var(--und-disabled-opacity,0.5)}button.link:disabled{cursor:default}@media (forced-colors:active){:host([disabled]) .card{border-color:GrayText;color:GrayText;opacity:1}}}
6988
6988
 
@@ -7016,7 +7016,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
7016
7016
 
7017
7017
 
7018
7018
 
7019
- `];static properties={...We.properties,disabled:{type:Boolean,reflect:!0}};constructor(){super(),this.disabled=!1}isInteractive(){return!this.disabled}renderControl(e,t){return this.disabled&&e!==void 0?a`<span part="link" class="link" aria-disabled="true">${t}</span>`:e!==void 0?super.renderControl(e,t):a`<button part="link" class="link" type="button" ?disabled=${this.disabled}>
7019
+ `];static properties={...We.properties,disabled:{type:Boolean,reflect:!0}};constructor(){super(),this.disabled=!1}isInteractive(){return!this.disabled}renderControl(e,t){return this.disabled&&e!==void 0?l`<span part="link" class="link" aria-disabled="true">${t}</span>`:e!==void 0?super.renderControl(e,t):l`<button part="link" class="link" type="button" ?disabled=${this.disabled}>
7020
7020
  ${t}
7021
7021
  </button>`}};Ki.define();var yo=u` @layer und.components{.und-file-input{box-sizing:border-box;display:flex;flex-flow:row wrap;gap:var(--und-space-1,0.25rem) var(--und-space-2,0.5rem);align-items:center;padding:var(--und-file-input-padding-block,0.1875rem) var(--und-file-input-padding-inline,var(--und-space-2,0.5rem));border:var(--und-border-width,1px) solid var(--und-border-control,#898c96);border-radius:var(--und-shape-control,0.375rem);background:var(--und-bg-surface,#fff);color:var(--und-fg-default,#23252c);transition:border-color var(--und-motion-hover,130ms) ease,background-color var(--und-motion-hover,130ms) ease}@media (hover:hover) and (forced-colors:none){.und-file-input:hover:not(:has(.und-file-input__input:disabled)){box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--und-accent-solid,#504bf2) 20%,transparent)}}.und-file-input:focus-within{border-color:var(--und-accent-solid,#504bf2)}.und-file-input--dragging{border-color:var(--und-accent-solid,#504bf2);background:var(--und-accent-bg,#eff2fe)}.und-file-input:has(.und-file-input__input:focus-visible){outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:var(--und-focus-offset,2px)}.und-file-input:has(.und-file-input__input[aria-invalid='true']){border-color:var(--und-status-danger-fg,#b81e27)}.und-file-input:has(.und-file-input__input:disabled){background:var(--und-bg-muted,#f1f2f6);cursor:not-allowed;opacity:var(--und-disabled-opacity,0.55)}.und-file-input__input{max-inline-size:100%;color:inherit;font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);cursor:pointer}.und-file-input__input:focus-visible{outline:2px solid transparent}.und-file-input__input::file-selector-button{box-sizing:border-box;min-block-size:calc(var(--und-size-element-md,2rem) - 0.5rem);margin-inline-end:var(--und-control-gap,0.5rem);padding-inline:var(--und-control-padding-x,0.75rem);border:var(--und-border-width,1px) solid var(--und-border-control,#898c96);border-radius:var(--und-shape-control,0.375rem);background:var(--und-bg-surface,#fff);color:var(--und-fg-default,#23252c);font:inherit;font-weight:var(--und-font-weight-medium,500);cursor:pointer}.und-file-input__input:disabled,.und-file-input__input:disabled::file-selector-button{cursor:not-allowed}.und-file-input__prompt{margin:0;color:var(--und-fg-muted,#62646e);font-size:var(--und-text-body-sm-size,0.875rem)}.und-file-input__list{flex:1 1 100%;display:flex;flex-direction:column;gap:var(--und-space-1,0.25rem);margin:var(--und-space-2,0.5rem) 0 0;padding:0;list-style:none}.und-file-input__list:empty{display:none}.und-file-input__item{display:flex;gap:var(--und-gap-inline-sm,0.5rem);align-items:center;min-block-size:var(--und-target-min,24px);padding-inline:var(--und-space-3,0.75rem) var(--und-space-1,0.25rem);border:var(--und-border-width,1px) solid var(--und-border-subtle,#d6d8dd);border-radius:var(--und-shape-control,0.375rem);background:var(--und-bg-surface,#fff);font-size:var(--und-text-body-md-size,1rem)}.und-file-input__name{flex:1 1 auto;min-inline-size:0;overflow-wrap:anywhere}.und-file-input__size{flex:none;color:var(--und-fg-muted,#62646e);font-size:var(--und-text-body-sm-size,0.875rem);font-variant-numeric:tabular-nums}.und-file-input__remove{flex:none;box-sizing:border-box;min-block-size:max(var(--und-target-min,24px),1lh);min-inline-size:var(--und-target-min,24px);padding-inline:var(--und-space-2,0.5rem);border:0;border-radius:var(--und-shape-control,0.375rem);background:transparent;color:var(--und-accent-fg,#3f3ac0);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);font-weight:var(--und-font-weight-medium,500);cursor:pointer}.und-file-input__remove:hover{background:var(--und-bg-muted,#f1f2f6)}.und-file-input__remove:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:calc(-1 * var(--und-focus-width,2px))}@media (pointer:coarse){.und-file-input__remove{min-block-size:var(--und-target-min-coarse,44px);min-inline-size:var(--und-target-min-coarse,44px)}}@media (prefers-reduced-motion:reduce){.und-file-input{transition:none}}@media (forced-colors:active){.und-file-input,.und-file-input__item{border-color:CanvasText}.und-file-input--dragging{outline:var(--und-border-width-thick,2px) solid Highlight}.und-file-input:has(.und-file-input__input:focus-visible){outline-color:Highlight}.und-file-input:has(.und-file-input__input:disabled){border-color:GrayText;opacity:1}.und-file-input__remove{color:LinkText}}}@layer und.base{und-file-input:not(:defined){display:block;min-block-size:calc(1.4 * 0.875rem + 0.375rem + 6rem)}}
7022
7022
 
@@ -7238,7 +7238,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
7238
7238
 
7239
7239
 
7240
7240
 
7241
- `;var ht=ce({promptMultiple:"or drop files here",promptSingle:"or drop a file here",remove:"Remove {name}",removeText:"Remove",tooLarge:"{name} is larger than {max}.",wrongType:"{name} is not an accepted file type.",tooMany:"Choose at most {count} files.",added:"{count} added",removed:"{name} removed"}),Dy=ht.set,ko=["byte","kilobyte","megabyte","gigabyte"];function wo(n,e){let t=n,i=0;for(;t>=1e3&&i<ko.length-1;)t/=1e3,i+=1;try{return new Intl.NumberFormat(e||void 0,{style:"unit",unit:ko[i],unitDisplay:"short",maximumFractionDigits:i===0?0:1}).format(t)}catch{return`${Math.round(t*10)/10} ${["B","kB","MB","GB"][i]}`}}function dd(n,e){let t=e.split(",").map(s=>s.trim().toLowerCase()).filter(Boolean);if(t.length===0)return!0;let i=n.name.toLowerCase(),r=n.type.toLowerCase();return t.some(s=>s.startsWith(".")?i.endsWith(s):s.endsWith("/*")?r.startsWith(s.slice(0,-1)):r===s)}var cd=(n,e)=>n.name===e.name&&n.size===e.size&&n.lastModified===e.lastModified;function ud(n){try{let e=new DataTransfer;for(let t of n)e.items.add(t);return e.files}catch{return}}var Gi=class extends F{static tagName="und-file-input";static lightStyles=[z,L,yo];static properties={accept:{},multiple:{type:Boolean,reflect:!0},maxSize:{type:Number,attribute:"max-size"},maxFiles:{type:Number,attribute:"max-files"}};#e=new y(this);#t;#i;#r;#n="";#s=!1;#o=0;constructor(){super(),this.multiple=!1}get input(){return this.control}get files(){return[...this.input?.files??[]]}openPicker(){this.input?.click()}clear(){this.#c([],!0)}get shownError(){return this.error||this.#n||super.shownError}findProvidedControl(){return this.querySelector(`:scope > input[type="file"]:not([${B}])`)}createControl(){let e=g("input","und-file-input__input","control");return e.type="file",e}assemble(e){let t=e.control;t.classList.add("und-file-input__input"),t.hasAttribute(B)||(this.multiple||=t.multiple,this.accept??=t.accept||void 0);let i=g("div","und-field","field"),r=g("div","und-file-input","zone");this.#t=r,this.#i=g("p","und-file-input__prompt","prompt"),this.#i.setAttribute("aria-hidden","true"),r.append(t,this.#i),this.#r=g("ul","und-file-input__list","list"),i.append(e.label,e.description,r,this.#r,e.error),this.prepend(i),t.addEventListener("change",this.#u),r.addEventListener("dragenter",this.#p),r.addEventListener("dragover",this.#f),r.addEventListener("dragleave",this.#m),r.addEventListener("drop",this.#b)}resetControl(){let e=this.input;e&&(e.value="",this.#n="",this.#g())}updated(e){let t=this.input;if(t&&(t.multiple=this.multiple,this.accept?t.accept=this.accept:t.removeAttribute("accept")),super.updated(e),this.#i){let i=ht.get();this.#i.textContent=this.multiple?i.promptMultiple:i.promptSingle}(e.has("disabled")||e.has("multiple"))&&this.#g()}#d(e){let t=[],i=[],r=this.multiple?this.maxFiles??Number.POSITIVE_INFINITY:1;for(let s of e)this.accept&&!dd(s,this.accept)?i.push({name:s.name,reason:"type"}):this.maxSize!==void 0&&s.size>this.maxSize?i.push({name:s.name,reason:"size"}):t.length>=r?i.push({name:s.name,reason:"count"}):t.push(s);return{accepted:t,rejections:i}}#a(e){let t=ht.get(),i=this.#e.lang,r=[],s=!1;for(let{name:o,reason:l}of e)if(l==="type")r.push(R(t.wrongType,{name:o}));else if(l==="size"){let d=wo(this.maxSize??0,i);r.push(R(t.tooLarge,{name:o,max:d}))}else s||(s=!0,r.push(R(t.tooMany,{count:this.multiple?this.maxFiles??1:1})));return r.join(" ")}#l(e,t){let{accepted:i,rejections:r}=this.#d(e);this.#n=this.#a(r),this.#c(i,t),r.length>0&&(this.emit("und-reject",{rejections:r}),N(this.#n,{politeness:"assertive"}))}#c(e,t){let i=this.input;if(!i)return;let r=ud(e);if(r?i.files=r:e.length===0&&(i.value=""),this.#g(),this.requestUpdate(),!!t){this.#s=!0;try{i.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),i.dispatchEvent(new Event("change",{bubbles:!0}))}finally{this.#s=!1}}}#u=()=>{if(this.#s)return;let e=this.files,{rejections:t}=this.#d(e);if(t.length>0){this.#l(e,!1);return}this.#n="",this.#g(),this.requestUpdate(),e.length>0&&N(R(ht.get().added,{count:e.length}))};#h(e){return e.dataTransfer?.types.includes("Files")??!1}#p=e=>{this.disabled||!this.#h(e)||(e.preventDefault(),this.#o+=1,this.#t?.classList.add("und-file-input--dragging"))};#f=e=>{this.disabled||!this.#h(e)||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy"))};#m=()=>{this.#o=Math.max(0,this.#o-1),this.#o===0&&this.#t?.classList.remove("und-file-input--dragging")};#b=e=>{if(!this.#h(e)||(e.preventDefault(),this.#o=0,this.#t?.classList.remove("und-file-input--dragging"),this.disabled))return;let t=[...e.dataTransfer?.files??[]];if(t.length===0)return;let i=this.multiple?this.files:[],r=[...i];for(let s of t)r.some(o=>cd(o,s))||r.push(s);this.#l(r,!0),this.files.length>0&&N(R(ht.get().added,{count:this.files.length-i.length}))};#g(){let e=this.#r;if(!e)return;let t=this.files,i=ht.get(),r=this.#e.lang;e.replaceChildren(...t.map((s,o)=>{let l=g("li","und-file-input__item","item"),d=g("span","und-file-input__name","name");d.textContent=s.name,d.setAttribute("dir","auto");let h=g("span","und-file-input__size","size");h.textContent=wo(s.size,r);let f=g("button","und-file-input__remove","remove");return f.type="button",f.textContent=i.removeText,f.setAttribute("aria-label",R(i.remove,{name:s.name})),f.disabled=this.disabled,f.addEventListener("click",()=>this.#v(o)),l.append(d,h,f),l}))}#v(e){let t=this.files,[i]=t.splice(e,1);this.#n="",this.#c(t,!0),i&&N(R(ht.get().removed,{name:i.name}));let r=this.#r?.querySelectorAll("button")??[];(r[Math.min(e,r.length-1)]??this.input)?.focus()}};Gi.define();var _o=u` @layer und.components{.und-input-group{display:flex;align-items:stretch;min-inline-size:0}.und-input-group > .und-text-field{flex:1 1 auto;min-inline-size:0}.und-input-group__addon{box-sizing:border-box;display:inline-flex;flex:none;align-items:center;max-inline-size:50%;padding-inline:var(--und-space-2,0.5rem);border:var(--und-border-width,1px) solid var(--und-border-control,#898c96);background:var(--und-bg-muted,#f1f2f6);color:var(--und-fg-muted,#62646e);font-size:var(--und-text-body-md-size,1rem);line-height:var(--und-text-body-md-lh,1.5);overflow-wrap:anywhere;unicode-bidi:isolate}.und-input-group__addon--action{padding:0;background:transparent;color:var(--und-fg-default,#23252c)}.und-input-group > *{border-radius:var(--und-shape-control,0.375rem)}.und-input-group > :not(:first-child){margin-inline-start:calc(-1 * var(--und-border-width,1px));border-start-start-radius:0;border-end-start-radius:0}.und-input-group > :not(:last-child){border-start-end-radius:0;border-end-end-radius:0}.und-input-group:has(:disabled) > .und-input-group__addon{opacity:var(--und-disabled-opacity,0.5)}.und-input-group > .und-text-field:focus-within{position:relative;z-index:1}@media (forced-colors:active){.und-input-group__addon{border-color:CanvasText;background:Canvas;color:CanvasText}}}
7241
+ `;var ht=ce({promptMultiple:"or drop files here",promptSingle:"or drop a file here",remove:"Remove {name}",removeText:"Remove",tooLarge:"{name} is larger than {max}.",wrongType:"{name} is not an accepted file type.",tooMany:"Choose at most {count} files.",added:"{count} added",removed:"{name} removed"}),Dy=ht.set,ko=["byte","kilobyte","megabyte","gigabyte"];function wo(n,e){let t=n,i=0;for(;t>=1e3&&i<ko.length-1;)t/=1e3,i+=1;try{return new Intl.NumberFormat(e||void 0,{style:"unit",unit:ko[i],unitDisplay:"short",maximumFractionDigits:i===0?0:1}).format(t)}catch{return`${Math.round(t*10)/10} ${["B","kB","MB","GB"][i]}`}}function dd(n,e){let t=e.split(",").map(s=>s.trim().toLowerCase()).filter(Boolean);if(t.length===0)return!0;let i=n.name.toLowerCase(),r=n.type.toLowerCase();return t.some(s=>s.startsWith(".")?i.endsWith(s):s.endsWith("/*")?r.startsWith(s.slice(0,-1)):r===s)}var cd=(n,e)=>n.name===e.name&&n.size===e.size&&n.lastModified===e.lastModified;function ud(n){try{let e=new DataTransfer;for(let t of n)e.items.add(t);return e.files}catch{return}}var Gi=class extends F{static tagName="und-file-input";static lightStyles=[z,L,yo];static properties={accept:{},multiple:{type:Boolean,reflect:!0},maxSize:{type:Number,attribute:"max-size"},maxFiles:{type:Number,attribute:"max-files"}};#e=new y(this);#t;#i;#r;#n="";#s=!1;#o=0;constructor(){super(),this.multiple=!1}get input(){return this.control}get files(){return[...this.input?.files??[]]}openPicker(){this.input?.click()}clear(){this.#c([],!0)}get shownError(){return this.error||this.#n||super.shownError}findProvidedControl(){return this.querySelector(`:scope > input[type="file"]:not([${B}])`)}createControl(){let e=g("input","und-file-input__input","control");return e.type="file",e}assemble(e){let t=e.control;t.classList.add("und-file-input__input"),t.hasAttribute(B)||(this.multiple||=t.multiple,this.accept??=t.accept||void 0);let i=g("div","und-field","field"),r=g("div","und-file-input","zone");this.#t=r,this.#i=g("p","und-file-input__prompt","prompt"),this.#i.setAttribute("aria-hidden","true"),r.append(t,this.#i),this.#r=g("ul","und-file-input__list","list"),i.append(e.label,e.description,r,this.#r,e.error),this.prepend(i),t.addEventListener("change",this.#u),r.addEventListener("dragenter",this.#p),r.addEventListener("dragover",this.#f),r.addEventListener("dragleave",this.#m),r.addEventListener("drop",this.#b)}resetControl(){let e=this.input;e&&(e.value="",this.#n="",this.#v())}updated(e){let t=this.input;if(t&&(t.multiple=this.multiple,this.accept?t.accept=this.accept:t.removeAttribute("accept")),super.updated(e),this.#i){let i=ht.get();this.#i.textContent=this.multiple?i.promptMultiple:i.promptSingle}(e.has("disabled")||e.has("multiple"))&&this.#v()}#d(e){let t=[],i=[],r=this.multiple?this.maxFiles??Number.POSITIVE_INFINITY:1;for(let s of e)this.accept&&!dd(s,this.accept)?i.push({name:s.name,reason:"type"}):this.maxSize!==void 0&&s.size>this.maxSize?i.push({name:s.name,reason:"size"}):t.length>=r?i.push({name:s.name,reason:"count"}):t.push(s);return{accepted:t,rejections:i}}#a(e){let t=ht.get(),i=this.#e.lang,r=[],s=!1;for(let{name:o,reason:a}of e)if(a==="type")r.push(R(t.wrongType,{name:o}));else if(a==="size"){let d=wo(this.maxSize??0,i);r.push(R(t.tooLarge,{name:o,max:d}))}else s||(s=!0,r.push(R(t.tooMany,{count:this.multiple?this.maxFiles??1:1})));return r.join(" ")}#l(e,t){let{accepted:i,rejections:r}=this.#d(e);this.#n=this.#a(r),this.#c(i,t),r.length>0&&(this.emit("und-reject",{rejections:r}),N(this.#n,{politeness:"assertive"}))}#c(e,t){let i=this.input;if(!i)return;let r=ud(e);if(r?i.files=r:e.length===0&&(i.value=""),this.#v(),this.requestUpdate(),!!t){this.#s=!0;try{i.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),i.dispatchEvent(new Event("change",{bubbles:!0}))}finally{this.#s=!1}}}#u=()=>{if(this.#s)return;let e=this.files,{rejections:t}=this.#d(e);if(t.length>0){this.#l(e,!1);return}this.#n="",this.#v(),this.requestUpdate(),e.length>0&&N(R(ht.get().added,{count:e.length}))};#h(e){return e.dataTransfer?.types.includes("Files")??!1}#p=e=>{this.disabled||!this.#h(e)||(e.preventDefault(),this.#o+=1,this.#t?.classList.add("und-file-input--dragging"))};#f=e=>{this.disabled||!this.#h(e)||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy"))};#m=()=>{this.#o=Math.max(0,this.#o-1),this.#o===0&&this.#t?.classList.remove("und-file-input--dragging")};#b=e=>{if(!this.#h(e)||(e.preventDefault(),this.#o=0,this.#t?.classList.remove("und-file-input--dragging"),this.disabled))return;let t=[...e.dataTransfer?.files??[]];if(t.length===0)return;let i=this.multiple?this.files:[],r=[...i];for(let s of t)r.some(o=>cd(o,s))||r.push(s);this.#l(r,!0),this.files.length>0&&N(R(ht.get().added,{count:this.files.length-i.length}))};#v(){let e=this.#r;if(!e)return;let t=this.files,i=ht.get(),r=this.#e.lang;e.replaceChildren(...t.map((s,o)=>{let a=g("li","und-file-input__item","item"),d=g("span","und-file-input__name","name");d.textContent=s.name,d.setAttribute("dir","auto");let h=g("span","und-file-input__size","size");h.textContent=wo(s.size,r);let f=g("button","und-file-input__remove","remove");return f.type="button",f.textContent=i.removeText,f.setAttribute("aria-label",R(i.remove,{name:s.name})),f.disabled=this.disabled,f.addEventListener("click",()=>this.#g(o)),a.append(d,h,f),a}))}#g(e){let t=this.files,[i]=t.splice(e,1);this.#n="",this.#c(t,!0),i&&N(R(ht.get().removed,{name:i.name}));let r=this.#r?.querySelectorAll("button")??[];(r[Math.min(e,r.length-1)]??this.input)?.focus()}};Gi.define();var _o=u` @layer und.components{.und-input-group{display:flex;align-items:stretch;min-inline-size:0}.und-input-group > .und-text-field{flex:1 1 auto;min-inline-size:0}.und-input-group__addon{box-sizing:border-box;display:inline-flex;flex:none;align-items:center;max-inline-size:50%;padding-inline:var(--und-space-2,0.5rem);border:var(--und-border-width,1px) solid var(--und-border-control,#898c96);background:var(--und-bg-muted,#f1f2f6);color:var(--und-fg-muted,#62646e);font-size:var(--und-text-body-md-size,1rem);line-height:var(--und-text-body-md-lh,1.5);overflow-wrap:anywhere;unicode-bidi:isolate}.und-input-group__addon--action{padding:0;background:transparent;color:var(--und-fg-default,#23252c)}.und-input-group > *{border-radius:var(--und-shape-control,0.375rem)}.und-input-group > :not(:first-child){margin-inline-start:calc(-1 * var(--und-border-width,1px));border-start-start-radius:0;border-end-start-radius:0}.und-input-group > :not(:last-child){border-start-end-radius:0;border-end-end-radius:0}.und-input-group:has(:disabled) > .und-input-group__addon{opacity:var(--und-disabled-opacity,0.5)}.und-input-group > .und-text-field:focus-within{position:relative;z-index:1}@media (forced-colors:active){.und-input-group__addon{border-color:CanvasText;background:Canvas;color:CanvasText}}}
7242
7242
 
7243
7243
 
7244
7244
 
@@ -7306,7 +7306,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
7306
7306
 
7307
7307
 
7308
7308
 
7309
- `;var hd='und-button, und-icon-button, button, a[href], und-menu, [role="button"]',Wi=class extends yt{static tagName="und-input-group";static lightStyles=[z,L,ae,_o];#e=[];assemble(e){let t=[...this.querySelectorAll(':scope > [slot="prefix"]')],i=[...this.querySelectorAll(':scope > [slot="suffix"]')];super.assemble(e);let r=this.querySelector(".und-text-field");if(!r)return;let s=g("div","und-input-group","group"),o=h=>{if(h.removeAttribute("slot"),h.matches(hd)){let f=g("span","und-input-group__addon und-input-group__addon--action","addon");return f.append(h),f}return h.classList.add("und-input-group__addon"),h.id||=E("und-input-group-addon"),this.#e.push(h),h},l=t.map(o),d=i.map(o);r.replaceWith(s),s.append(...l,r,...d)}syncParts(){super.syncParts();let e=this.control;!e||this.#e.length===0||e.setAttribute("aria-describedby",U(e.getAttribute("aria-describedby"),...this.#e.map(t=>t.id)))}};Wi.define();function So(n){let e={style:n.currency?"currency":"decimal",useGrouping:n.grouping};n.currency&&(e.currency=n.currency),n.minimumFractionDigits!==void 0&&(e.minimumFractionDigits=n.minimumFractionDigits),n.maximumFractionDigits!==void 0?e.maximumFractionDigits=Math.max(n.maximumFractionDigits,n.minimumFractionDigits??0):n.currency||(e.maximumFractionDigits=Math.max(3,n.minimumFractionDigits??0));try{return new Intl.NumberFormat(n.locale,e)}catch{return new Intl.NumberFormat(void 0,{useGrouping:n.grouping})}}function Yi(n,e){return So(e).format(n)}var zo=new Map;function pd(n){let e=`${n.locale??""}|${n.currency??""}`,t=zo.get(e);if(t)return t;let i=So({...n,grouping:!0}),r=i.formatToParts(-12345.6),s=f=>r.find(m=>m.type===f)?.value??"",o=new Intl.NumberFormat(i.resolvedOptions().locale,{useGrouping:!1}),l=new Map;for(let f=0;f<=9;f+=1)l.set(o.format(f),String(f));let d=r.filter(f=>f.type==="currency"||f.type==="literal").map(f=>f.value).filter(Boolean),h={decimal:s("decimal")||".",group:s("group"),minus:s("minusSign")||"-",digits:l,noise:d};return zo.set(e,h),h}var $o=/\s/g,fd=/[−‒–—﹣-]/g;function $t(n,e){let t=n.trim();if(!t)return null;let i=pd(e);for(let s of i.noise)t=t.split(s).join("");t=t.replace(/%/g,"");let r="";for(let s of t)r+=i.digits.get(s)??s;return r=r.replace($o,"").replace(fd,"-"),i.minus&&i.minus!=="-"&&(r=r.split(i.minus).join("-")),i.group&&(r=r.split(i.group.replace($o,"")).join("")),i.decimal!=="."&&(r=r.split(i.decimal).join(".")),/^-?(\d+\.?\d*|\.\d+)$/.test(r)?Number(r):Number.NaN}function Xi(n){if(!Number.isFinite(n))return 0;let e=String(n),t=/e-(\d+)$/.exec(e);return t?Number(t[1])+(e.split("e")[0]?.split(".")[1]?.length??0):e.split(".")[1]?.length??0}function Co(n,e){let t=10**Math.min(e,15);return Math.round(n*t)/t}var Lo=u` @layer und.components{.und-number-input:has(> .und-number-input__steppers:not([hidden])){padding-inline-end:0}.und-number-input__input{font-variant-numeric:tabular-nums}.und-number-input__units{flex:none;color:var(--und-fg-muted,#62646e)}.und-number-input__units[hidden],.und-number-input__steppers[hidden]{display:none}.und-number-input__steppers{display:flex;flex:none;flex-direction:column-reverse;align-self:stretch;inline-size:var(--und-number-input-stepper-width,var(--und-space-4,1rem));margin-block:calc(-1 * var(--und-space-1,0.25rem));border-inline-start:var(--und-border-width,1px) solid var(--und-border-control,#898c96);border-start-end-radius:var(--und-shape-control,0.375rem);border-end-end-radius:var(--und-shape-control,0.375rem);overflow:hidden}.und-number-input__button{box-sizing:border-box;display:flex;flex:1;align-items:center;justify-content:center;min-block-size:0;margin:0;padding:0;border:0;background:var(--und-bg-surface,#fff);color:var(--und-fg-muted,#62646e);cursor:pointer;user-select:none;transition:background-color var(--und-duration-fast,175ms) var(--und-ease-enter,ease)}.und-number-input__button + .und-number-input__button{border-block-end:var(--und-border-width,1px) solid var(--und-border-control,#898c96)}.und-number-input__button svg{inline-size:0.75rem;block-size:0.75rem}.und-number-input__button:hover{background:var(--und-bg-muted-hover,#e8e9ee);color:var(--und-fg-default,#23252c)}.und-number-input__button:active{background:var(--und-bg-muted-active,#dddfe6)}.und-number-input__button:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:calc(-1 * var(--und-focus-width,2px))}.und-number-input__button:disabled{background:var(--und-bg-surface,#fff);color:var(--und-fg-disabled,#9a9ca6);cursor:default}@media (pointer:coarse){.und-number-input__steppers{display:none}.und-number-input:has(> .und-number-input__steppers){padding-inline-end:var(--und-space-2,0.5rem)}}@media (prefers-reduced-motion:reduce){.und-number-input__button{transition:none}}@media (forced-colors:active){.und-number-input__button{color:ButtonText}.und-number-input__button:hover{background:Highlight;color:HighlightText}.und-number-input__button:disabled{color:GrayText}.und-number-input__button:focus-visible{outline-color:Highlight}}}@layer und.base{und-number-input:not(:defined){display:block;min-block-size:calc(1.4286 * 0.875rem + 0.25rem + 2.5rem)}}
7309
+ `;var hd='und-button, und-icon-button, button, a[href], und-menu, [role="button"]',Wi=class extends yt{static tagName="und-input-group";static lightStyles=[z,L,ae,_o];#e=[];assemble(e){let t=[...this.querySelectorAll(':scope > [slot="prefix"]')],i=[...this.querySelectorAll(':scope > [slot="suffix"]')];super.assemble(e);let r=this.querySelector(".und-text-field");if(!r)return;let s=g("div","und-input-group","group"),o=h=>{if(h.removeAttribute("slot"),h.matches(hd)){let f=g("span","und-input-group__addon und-input-group__addon--action","addon");return f.append(h),f}return h.classList.add("und-input-group__addon"),h.id||=E("und-input-group-addon"),this.#e.push(h),h},a=t.map(o),d=i.map(o);r.replaceWith(s),s.append(...a,r,...d)}syncParts(){super.syncParts();let e=this.control;!e||this.#e.length===0||e.setAttribute("aria-describedby",U(e.getAttribute("aria-describedby"),...this.#e.map(t=>t.id)))}};Wi.define();function So(n){let e={style:n.currency?"currency":"decimal",useGrouping:n.grouping};n.currency&&(e.currency=n.currency),n.minimumFractionDigits!==void 0&&(e.minimumFractionDigits=n.minimumFractionDigits),n.maximumFractionDigits!==void 0?e.maximumFractionDigits=Math.max(n.maximumFractionDigits,n.minimumFractionDigits??0):n.currency||(e.maximumFractionDigits=Math.max(3,n.minimumFractionDigits??0));try{return new Intl.NumberFormat(n.locale,e)}catch{return new Intl.NumberFormat(void 0,{useGrouping:n.grouping})}}function Yi(n,e){return So(e).format(n)}var zo=new Map;function pd(n){let e=`${n.locale??""}|${n.currency??""}`,t=zo.get(e);if(t)return t;let i=So({...n,grouping:!0}),r=i.formatToParts(-12345.6),s=f=>r.find(m=>m.type===f)?.value??"",o=new Intl.NumberFormat(i.resolvedOptions().locale,{useGrouping:!1}),a=new Map;for(let f=0;f<=9;f+=1)a.set(o.format(f),String(f));let d=r.filter(f=>f.type==="currency"||f.type==="literal").map(f=>f.value).filter(Boolean),h={decimal:s("decimal")||".",group:s("group"),minus:s("minusSign")||"-",digits:a,noise:d};return zo.set(e,h),h}var $o=/\s/g,fd=/[−‒–—﹣-]/g;function $t(n,e){let t=n.trim();if(!t)return null;let i=pd(e);for(let s of i.noise)t=t.split(s).join("");t=t.replace(/%/g,"");let r="";for(let s of t)r+=i.digits.get(s)??s;return r=r.replace($o,"").replace(fd,"-"),i.minus&&i.minus!=="-"&&(r=r.split(i.minus).join("-")),i.group&&(r=r.split(i.group.replace($o,"")).join("")),i.decimal!=="."&&(r=r.split(i.decimal).join(".")),/^-?(\d+\.?\d*|\.\d+)$/.test(r)?Number(r):Number.NaN}function Xi(n){if(!Number.isFinite(n))return 0;let e=String(n),t=/e-(\d+)$/.exec(e);return t?Number(t[1])+(e.split("e")[0]?.split(".")[1]?.length??0):e.split(".")[1]?.length??0}function Co(n,e){let t=10**Math.min(e,15);return Math.round(n*t)/t}var Lo=u` @layer und.components{.und-number-input:has(> .und-number-input__steppers:not([hidden])){padding-inline-end:0}.und-number-input__input{font-variant-numeric:tabular-nums}.und-number-input__units{flex:none;color:var(--und-fg-muted,#62646e)}.und-number-input__units[hidden],.und-number-input__steppers[hidden]{display:none}.und-number-input__steppers{display:flex;flex:none;flex-direction:column-reverse;align-self:stretch;inline-size:var(--und-number-input-stepper-width,var(--und-space-4,1rem));margin-block:calc(-1 * var(--und-space-1,0.25rem));border-inline-start:var(--und-border-width,1px) solid var(--und-border-control,#898c96);border-start-end-radius:var(--und-shape-control,0.375rem);border-end-end-radius:var(--und-shape-control,0.375rem);overflow:hidden}.und-number-input__button{box-sizing:border-box;display:flex;flex:1;align-items:center;justify-content:center;min-block-size:0;margin:0;padding:0;border:0;background:var(--und-bg-surface,#fff);color:var(--und-fg-muted,#62646e);cursor:pointer;user-select:none;transition:background-color var(--und-duration-fast,175ms) var(--und-ease-enter,ease)}.und-number-input__button + .und-number-input__button{border-block-end:var(--und-border-width,1px) solid var(--und-border-control,#898c96)}.und-number-input__button svg{inline-size:0.75rem;block-size:0.75rem}.und-number-input__button:hover{background:var(--und-bg-muted-hover,#e8e9ee);color:var(--und-fg-default,#23252c)}.und-number-input__button:active{background:var(--und-bg-muted-active,#dddfe6)}.und-number-input__button:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:calc(-1 * var(--und-focus-width,2px))}.und-number-input__button:disabled{background:var(--und-bg-surface,#fff);color:var(--und-fg-disabled,#9a9ca6);cursor:default}@media (pointer:coarse){.und-number-input__steppers{display:none}.und-number-input:has(> .und-number-input__steppers){padding-inline-end:var(--und-space-2,0.5rem)}}@media (prefers-reduced-motion:reduce){.und-number-input__button{transition:none}}@media (forced-colors:active){.und-number-input__button{color:ButtonText}.und-number-input__button:hover{background:Highlight;color:HighlightText}.und-number-input__button:disabled{color:GrayText}.und-number-input__button:focus-visible{outline-color:Highlight}}}@layer und.base{und-number-input:not(:defined){display:block;min-block-size:calc(1.4286 * 0.875rem + 0.25rem + 2.5rem)}}
7310
7310
 
7311
7311
 
7312
7312
 
@@ -7428,7 +7428,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
7428
7428
 
7429
7429
 
7430
7430
 
7431
- `;var Wn=ce({increase:"Increase {label}",decrease:"Decrease {label}",badInput:"Enter a valid number.",rangeUnderflow:"Enter a number that is {min} or more.",rangeOverflow:"Enter a number that is {max} or less."}),c0=Wn.set,md=n=>{if(n===null||n.trim()==="")return null;let e=Number(n);return Number.isNaN(e)?null:e},bd=400,gd=60,Zi=class extends F{static tagName="und-number-input";static defaultStatusVariant="attached";static lightStyles=[z,L,ae,Lo];static properties={units:{},value:{converter:{fromAttribute:md}},defaultValue:{type:Number,attribute:"default-value"},min:{type:Number},max:{type:Number},step:{type:Number},largeStep:{type:Number,attribute:"large-step"},locale:{},currency:{},minimumFractionDigits:{type:Number,attribute:"minimum-fraction-digits"},maximumFractionDigits:{type:Number,attribute:"maximum-fraction-digits"},noGrouping:{type:Boolean,attribute:"no-grouping",reflect:!0},noSteppers:{type:Boolean,attribute:"no-steppers",reflect:!0},size:{reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},placeholder:{}};#e=new y(this);#t;#i;#r;#n;#s;#o;#d=!1;#a=0;#l=!1;#c=!1;#u=!1;constructor(){super(),this.value=null,this.step=1,this.noGrouping=!1,this.noSteppers=!1,this.size="md",this.readOnly=!1}get input(){return this.control}select(){this.input?.select()}stepUp(e=1){this.#b(e*this.#h)}stepDown(e=1){this.#b(-e*this.#h)}get#h(){return Number.isFinite(this.step)&&this.step>0?this.step:1}get#p(){return{locale:this.locale||this.#e.lang||void 0,currency:this.currency||void 0,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits??(this.currency?void 0:Math.max(3,Xi(this.#h))),grouping:!this.noGrouping}}findProvidedControl(){return this.querySelector(`:scope > input:not([${B}])`)}createControl(){return g("input","und-text-field__input und-number-input__input","control")}assemble(e){let t=e.control;if(t.classList.add("und-text-field__input","und-number-input__input"),!t.hasAttribute(B)&&this.value===null){let d=$t(t.value,this.#p);d!==null&&!Number.isNaN(d)&&(this.value=d)}this.defaultValue??=this.value,t.type="text",t.setAttribute("inputmode","decimal"),t.setAttribute("role","spinbutton"),t.setAttribute("autocomplete","off"),t.setAttribute("autocapitalize","off"),t.spellcheck=!1,t.setAttribute("dir","auto");let i=g("div","und-field","field"),r=g("div","und-text-field und-number-input","box");this.#t=r,this.#s=this.#f("\u2212",-1),this.#o=this.#f("+",1);let s=g("span","und-number-input__units","units");s.hidden=!0;let o=g("span","und-number-input__steppers","end");o.append(this.#s,this.#o);let l=g("span","und-text-field__status-icon","status-icon");l.hidden=!0,l.setAttribute("aria-hidden","true"),this.#r=s,this.#n=l,r.append(t,s,l,o),this.#i=g("input","und-number-input__value","value"),this.#i.type="hidden",i.append(e.label,e.description,r,e.error),this.prepend(i),this.append(this.#i),r.addEventListener("click",d=>{d.target===r&&t.focus()}),t.addEventListener("change",this.#x),t.addEventListener("keydown",this.#y),t.addEventListener("input",this.#v),t.addEventListener("blur",()=>{this.#u&&this.#x()})}#f(e,t){let i=g("button","und-number-input__button",t>0?"increase":"decrease");i.type="button",i.tabIndex=-1,i.dataset.glyph=e,i.append(vd(t)),i.addEventListener("mousedown",s=>s.preventDefault()),i.addEventListener("pointerdown",s=>{s.button!==0||i.disabled||(this.#l=!1,window.clearTimeout(this.#a),this.#a=window.setTimeout(()=>{let o=()=>{this.#l=!0,this.#b(t*this.#h),this.#a=window.setTimeout(o,gd)};o()},bd))});let r=()=>window.clearTimeout(this.#a);for(let s of["pointerup","pointerleave","pointercancel"])i.addEventListener(s,r);return i.addEventListener("click",()=>{if(this.#l){this.#l=!1;return}this.#b(t*this.#h),this.input?.matches(":focus")||this.input?.focus({preventScroll:!0})}),i}disconnectedCallback(){super.disconnectedCallback(),window.clearTimeout(this.#a)}resetControl(){this.value=this.defaultValue??null,this.#d=!1,this.#u=!1,this.#k()}#m(e){let t=e;return this.max!==void 0&&!Number.isNaN(this.max)&&(t=Math.min(t,this.max)),this.min!==void 0&&!Number.isNaN(this.min)&&(t=Math.max(t,this.min)),t}#b(e){let t=this.input;if(!t||this.disabled||this.readOnly)return;let i=$t(t.value,this.#p),r=i!==null&&!Number.isNaN(i)?i:this.value??0,s=Math.max(Xi(r),Xi(e));this.#g(this.#m(Co(r+e,s)))}#g(e){let t=this.input;if(!t)return;let i=e!==this.value;this.value=e,this.#d=!1,this.#u=!1,this.#k(),this.#c=!0;try{t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0}))}finally{this.#c=!1}i&&this.emit("und-value-change",{value:e})}#v=()=>{let e=this.input;if(!e||this.#c)return;let t=$t(e.value,this.#p),i=t===null||Number.isNaN(t)?null:t;this.#d=!1,this.#u=!0,i!==this.value&&(this.value=i,this.emit("und-value-change",{value:i}))};#x=()=>{if(this.#c)return;this.#u=!1;let e=this.input;if(!e)return;let t=$t(e.value,this.#p);if(t!==null&&Number.isNaN(t)){let s=this.value!==null;this.#d=!0,this.value=null,this.requestUpdate(),s&&this.emit("und-value-change",{value:null});return}let i=t===null?null:this.#m(t),r=i!==this.value;this.value=i,this.#d=!1,this.#k(),r&&this.emit("und-value-change",{value:i})};#y=e=>{if(e.altKey||e.ctrlKey||e.metaKey||e.defaultPrevented||this.disabled||this.readOnly)return;let t=this.largeStep&&this.largeStep>0?this.largeStep:this.#h*10;switch(e.key){case"ArrowUp":e.preventDefault(),this.#b(this.#h);break;case"ArrowDown":e.preventDefault(),this.#b(-this.#h);break;case"PageUp":e.preventDefault(),this.#b(t);break;case"PageDown":e.preventDefault(),this.#b(-t);break;case"Home":if(this.min===void 0||Number.isNaN(this.min))return;e.preventDefault(),this.#g(this.min);break;case"End":if(this.max===void 0||Number.isNaN(this.max))return;e.preventDefault(),this.#g(this.max);break;case"Enter":{let i=$t(this.input?.value??"",this.#p);if(i===null||Number.isNaN(i))break;(this.#m(i)!==this.value||this.input?.value!==this.#_())&&this.#x();break}default:}};#_(){return this.value===null||Number.isNaN(this.value)?"":Yi(this.value,this.#p)}#k(){let e=this.input;if(!e||this.#d)return;let t=this.#_();e.value!==t&&(e.value=t)}updated(e){let t=this.input;if(super.updated(e),!t)return;t.removeAttribute("name");let i=this.#i;if(i){this.name?i.name=this.name:i.removeAttribute("name"),i.disabled=this.disabled;let o=this.value===null||Number.isNaN(this.value)?"":String(this.value);i.value!==o&&(i.value=o)}t.readOnly=this.readOnly,this.placeholder?t.placeholder=this.placeholder:t.removeAttribute("placeholder"),(e.has("value")||e.has("locale")||e.has("currency")||e.has("minimumFractionDigits")||e.has("maximumFractionDigits")||e.has("noGrouping")||e.has("step"))&&(this.#u||this.#k()),this.#z(t),this.#$(t),this.#S(),this.#t?.classList.toggle("und-text-field--sm",this.size==="sm"),this.#t?.classList.toggle("und-text-field--lg",this.size==="lg"),this.#t?.classList.toggle("und-number-input--sm",this.size==="sm"),this.#t?.classList.toggle("und-number-input--lg",this.size==="lg");let r=this.shownStatus;for(let o of["error","warning","success"])this.#t?.classList.toggle(`und-text-field--${o}`,r===o);this.#n&&Ht(this.#n,r);let s=this.#r;if(s){let o=this.units??"";s.textContent!==o&&(s.textContent=o),s.hidden=!o}}#z(e){let t=(i,r)=>{r===void 0||Number.isNaN(r)?e.removeAttribute(i):e.setAttribute(i,String(r))};t("aria-valuemin",this.min),t("aria-valuemax",this.max),this.value===null||Number.isNaN(this.value)?(e.removeAttribute("aria-valuenow"),e.removeAttribute("aria-valuetext")):(e.setAttribute("aria-valuenow",String(this.value)),e.setAttribute("aria-valuetext",this.#_()))}#$(e){if(this.error)return;let t=Wn.get(),i=this.value,r="";this.#d?r=t.badInput:i!==null&&this.min!==void 0&&i<this.min?r=R(t.rangeUnderflow,{min:this.#L()}):i!==null&&this.max!==void 0&&i>this.max&&(r=R(t.rangeOverflow,{max:this.#w()})),e.setCustomValidity(r)}#L(){return this.min===void 0?"":Yi(this.min,this.#p)}#w(){return this.max===void 0?"":Yi(this.max,this.#p)}#S(){let e=this.#s,t=this.#o;if(!e||!t||!this.input)return;let i=this.noSteppers;for(let d of[e,t]){let h=d.parentElement;h&&(h.hidden=i),d.setAttribute("aria-controls",this.input.id)}let r=this.label??"",s=Wn.get();e.setAttribute("aria-label",R(s.decrease,{label:r}).trim()),t.setAttribute("aria-label",R(s.increase,{label:r}).trim());let o=this.disabled||this.readOnly,l=this.value;e.disabled=o||l!==null&&this.min!==void 0&&l<=this.min,t.disabled=o||l!==null&&this.max!==void 0&&l>=this.max}},Eo="http://www.w3.org/2000/svg";function vd(n){let e=document.createElementNS(Eo,"svg");e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.setAttribute("stroke","currentColor"),e.setAttribute("stroke-width","2.5"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("aria-hidden","true"),e.setAttribute("focusable","false");let t=document.createElementNS(Eo,"path");return t.setAttribute("d",n>0?"m6 15 6-6 6 6":"m6 9 6 6 6-6"),e.append(t),e}Zi.define();var Ao=u` @layer und.components{:is(.und-radio-list,und-radio-list) .und-radio{position:relative;padding:var(--und-radio-list-padding,var(--und-space-2,0.5rem) var(--und-space-2,0.5rem));transition:background-color var(--und-motion-hover,130ms) ease;border:0;border-radius:var(--und-shape-control,0.375rem);background:transparent}@media (hover:hover) and (forced-colors:none){:is(.und-radio-list,und-radio-list) .und-radio:hover:not(:has(.und-radio__input:disabled)){background:var(--und-bg-muted,#f1f2f6)}}@media (prefers-reduced-motion:reduce){:is(.und-radio-list,und-radio-list) .und-radio{transition:none}}:is(.und-radio-list,und-radio-list) .und-radio:has(.und-radio__input[aria-invalid='true']){box-shadow:inset 0 0 0 var(--und-border-width,1px) var(--und-status-danger-fg,#b81e27)}:is(.und-radio-list,und-radio-list) .und-radio__label{font-weight:var(--und-font-weight-normal,400)}:is(.und-radio-list,und-radio-list) .und-radio__label::after{content:'';position:absolute;inset:0;border-radius:inherit}:is(.und-radio-list,und-radio-list) .und-radio__control{position:relative;z-index:1}:is(.und-radio-list,und-radio-list) .und-radio:has(.und-radio__input:disabled){background:transparent;opacity:1}:is(.und-radio-list,und-radio-list) .und-radio:has(.und-radio__input:disabled) :is(.und-radio__control,.und-radio__label){opacity:var(--und-disabled-opacity,0.55)}:is(.und-radio-list,und-radio-list).und-radio-group--horizontal .und-radio-group__items{column-gap:var(--und-radio-group-gap-inline,1.25rem)}}
7431
+ `;var Wn=ce({increase:"Increase {label}",decrease:"Decrease {label}",badInput:"Enter a valid number.",rangeUnderflow:"Enter a number that is {min} or more.",rangeOverflow:"Enter a number that is {max} or less."}),c0=Wn.set,md=n=>{if(n===null||n.trim()==="")return null;let e=Number(n);return Number.isNaN(e)?null:e},bd=400,gd=60,Zi=class extends F{static tagName="und-number-input";static defaultStatusVariant="attached";static lightStyles=[z,L,ae,Lo];static properties={units:{},value:{converter:{fromAttribute:md}},defaultValue:{type:Number,attribute:"default-value"},min:{type:Number},max:{type:Number},step:{type:Number},largeStep:{type:Number,attribute:"large-step"},locale:{},currency:{},minimumFractionDigits:{type:Number,attribute:"minimum-fraction-digits"},maximumFractionDigits:{type:Number,attribute:"maximum-fraction-digits"},noGrouping:{type:Boolean,attribute:"no-grouping",reflect:!0},noSteppers:{type:Boolean,attribute:"no-steppers",reflect:!0},size:{reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},placeholder:{}};#e=new y(this);#t;#i;#r;#n;#s;#o;#d=!1;#a=0;#l=!1;#c=!1;#u=!1;constructor(){super(),this.value=null,this.step=1,this.noGrouping=!1,this.noSteppers=!1,this.size="md",this.readOnly=!1}get input(){return this.control}select(){this.input?.select()}stepUp(e=1){this.#b(e*this.#h)}stepDown(e=1){this.#b(-e*this.#h)}get#h(){return Number.isFinite(this.step)&&this.step>0?this.step:1}get#p(){return{locale:this.locale||this.#e.lang||void 0,currency:this.currency||void 0,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits??(this.currency?void 0:Math.max(3,Xi(this.#h))),grouping:!this.noGrouping}}findProvidedControl(){return this.querySelector(`:scope > input:not([${B}])`)}createControl(){return g("input","und-text-field__input und-number-input__input","control")}assemble(e){let t=e.control;if(t.classList.add("und-text-field__input","und-number-input__input"),!t.hasAttribute(B)&&this.value===null){let d=$t(t.value,this.#p);d!==null&&!Number.isNaN(d)&&(this.value=d)}this.defaultValue??=this.value,t.type="text",t.setAttribute("inputmode","decimal"),t.setAttribute("role","spinbutton"),t.setAttribute("autocomplete","off"),t.setAttribute("autocapitalize","off"),t.spellcheck=!1,t.setAttribute("dir","auto");let i=g("div","und-field","field"),r=g("div","und-text-field und-number-input","box");this.#t=r,this.#s=this.#f("\u2212",-1),this.#o=this.#f("+",1);let s=g("span","und-number-input__units","units");s.hidden=!0;let o=g("span","und-number-input__steppers","end");o.append(this.#s,this.#o);let a=g("span","und-text-field__status-icon","status-icon");a.hidden=!0,a.setAttribute("aria-hidden","true"),this.#r=s,this.#n=a,r.append(t,s,a,o),this.#i=g("input","und-number-input__value","value"),this.#i.type="hidden",i.append(e.label,e.description,r,e.error),this.prepend(i),this.append(this.#i),r.addEventListener("click",d=>{d.target===r&&t.focus()}),t.addEventListener("change",this.#x),t.addEventListener("keydown",this.#y),t.addEventListener("input",this.#g),t.addEventListener("blur",()=>{this.#u&&this.#x()})}#f(e,t){let i=g("button","und-number-input__button",t>0?"increase":"decrease");i.type="button",i.tabIndex=-1,i.dataset.glyph=e,i.append(vd(t)),i.addEventListener("mousedown",s=>s.preventDefault()),i.addEventListener("pointerdown",s=>{s.button!==0||i.disabled||(this.#l=!1,window.clearTimeout(this.#a),this.#a=window.setTimeout(()=>{let o=()=>{this.#l=!0,this.#b(t*this.#h),this.#a=window.setTimeout(o,gd)};o()},bd))});let r=()=>window.clearTimeout(this.#a);for(let s of["pointerup","pointerleave","pointercancel"])i.addEventListener(s,r);return i.addEventListener("click",()=>{if(this.#l){this.#l=!1;return}this.#b(t*this.#h),this.input?.matches(":focus")||this.input?.focus({preventScroll:!0})}),i}disconnectedCallback(){super.disconnectedCallback(),window.clearTimeout(this.#a)}resetControl(){this.value=this.defaultValue??null,this.#d=!1,this.#u=!1,this.#w()}#m(e){let t=e;return this.max!==void 0&&!Number.isNaN(this.max)&&(t=Math.min(t,this.max)),this.min!==void 0&&!Number.isNaN(this.min)&&(t=Math.max(t,this.min)),t}#b(e){let t=this.input;if(!t||this.disabled||this.readOnly)return;let i=$t(t.value,this.#p),r=i!==null&&!Number.isNaN(i)?i:this.value??0,s=Math.max(Xi(r),Xi(e));this.#v(this.#m(Co(r+e,s)))}#v(e){let t=this.input;if(!t)return;let i=e!==this.value;this.value=e,this.#d=!1,this.#u=!1,this.#w(),this.#c=!0;try{t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0}))}finally{this.#c=!1}i&&this.emit("und-value-change",{value:e})}#g=()=>{let e=this.input;if(!e||this.#c)return;let t=$t(e.value,this.#p),i=t===null||Number.isNaN(t)?null:t;this.#d=!1,this.#u=!0,i!==this.value&&(this.value=i,this.emit("und-value-change",{value:i}))};#x=()=>{if(this.#c)return;this.#u=!1;let e=this.input;if(!e)return;let t=$t(e.value,this.#p);if(t!==null&&Number.isNaN(t)){let s=this.value!==null;this.#d=!0,this.value=null,this.requestUpdate(),s&&this.emit("und-value-change",{value:null});return}let i=t===null?null:this.#m(t),r=i!==this.value;this.value=i,this.#d=!1,this.#w(),r&&this.emit("und-value-change",{value:i})};#y=e=>{if(e.altKey||e.ctrlKey||e.metaKey||e.defaultPrevented||this.disabled||this.readOnly)return;let t=this.largeStep&&this.largeStep>0?this.largeStep:this.#h*10;switch(e.key){case"ArrowUp":e.preventDefault(),this.#b(this.#h);break;case"ArrowDown":e.preventDefault(),this.#b(-this.#h);break;case"PageUp":e.preventDefault(),this.#b(t);break;case"PageDown":e.preventDefault(),this.#b(-t);break;case"Home":if(this.min===void 0||Number.isNaN(this.min))return;e.preventDefault(),this.#v(this.min);break;case"End":if(this.max===void 0||Number.isNaN(this.max))return;e.preventDefault(),this.#v(this.max);break;case"Enter":{let i=$t(this.input?.value??"",this.#p);if(i===null||Number.isNaN(i))break;(this.#m(i)!==this.value||this.input?.value!==this.#_())&&this.#x();break}default:}};#_(){return this.value===null||Number.isNaN(this.value)?"":Yi(this.value,this.#p)}#w(){let e=this.input;if(!e||this.#d)return;let t=this.#_();e.value!==t&&(e.value=t)}updated(e){let t=this.input;if(super.updated(e),!t)return;t.removeAttribute("name");let i=this.#i;if(i){this.name?i.name=this.name:i.removeAttribute("name"),i.disabled=this.disabled;let o=this.value===null||Number.isNaN(this.value)?"":String(this.value);i.value!==o&&(i.value=o)}t.readOnly=this.readOnly,this.placeholder?t.placeholder=this.placeholder:t.removeAttribute("placeholder"),(e.has("value")||e.has("locale")||e.has("currency")||e.has("minimumFractionDigits")||e.has("maximumFractionDigits")||e.has("noGrouping")||e.has("step"))&&(this.#u||this.#w()),this.#z(t),this.#$(t),this.#S(),this.#t?.classList.toggle("und-text-field--sm",this.size==="sm"),this.#t?.classList.toggle("und-text-field--lg",this.size==="lg"),this.#t?.classList.toggle("und-number-input--sm",this.size==="sm"),this.#t?.classList.toggle("und-number-input--lg",this.size==="lg");let r=this.shownStatus;for(let o of["error","warning","success"])this.#t?.classList.toggle(`und-text-field--${o}`,r===o);this.#n&&Ht(this.#n,r);let s=this.#r;if(s){let o=this.units??"";s.textContent!==o&&(s.textContent=o),s.hidden=!o}}#z(e){let t=(i,r)=>{r===void 0||Number.isNaN(r)?e.removeAttribute(i):e.setAttribute(i,String(r))};t("aria-valuemin",this.min),t("aria-valuemax",this.max),this.value===null||Number.isNaN(this.value)?(e.removeAttribute("aria-valuenow"),e.removeAttribute("aria-valuetext")):(e.setAttribute("aria-valuenow",String(this.value)),e.setAttribute("aria-valuetext",this.#_()))}#$(e){if(this.error)return;let t=Wn.get(),i=this.value,r="";this.#d?r=t.badInput:i!==null&&this.min!==void 0&&i<this.min?r=R(t.rangeUnderflow,{min:this.#L()}):i!==null&&this.max!==void 0&&i>this.max&&(r=R(t.rangeOverflow,{max:this.#k()})),e.setCustomValidity(r)}#L(){return this.min===void 0?"":Yi(this.min,this.#p)}#k(){return this.max===void 0?"":Yi(this.max,this.#p)}#S(){let e=this.#s,t=this.#o;if(!e||!t||!this.input)return;let i=this.noSteppers;for(let d of[e,t]){let h=d.parentElement;h&&(h.hidden=i),d.setAttribute("aria-controls",this.input.id)}let r=this.label??"",s=Wn.get();e.setAttribute("aria-label",R(s.decrease,{label:r}).trim()),t.setAttribute("aria-label",R(s.increase,{label:r}).trim());let o=this.disabled||this.readOnly,a=this.value;e.disabled=o||a!==null&&this.min!==void 0&&a<=this.min,t.disabled=o||a!==null&&this.max!==void 0&&a>=this.max}},Eo="http://www.w3.org/2000/svg";function vd(n){let e=document.createElementNS(Eo,"svg");e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.setAttribute("stroke","currentColor"),e.setAttribute("stroke-width","2.5"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("aria-hidden","true"),e.setAttribute("focusable","false");let t=document.createElementNS(Eo,"path");return t.setAttribute("d",n>0?"m6 15 6-6 6 6":"m6 9 6 6 6-6"),e.append(t),e}Zi.define();var Ao=u` @layer und.components{:is(.und-radio-list,und-radio-list) .und-radio{position:relative;padding:var(--und-radio-list-padding,var(--und-space-2,0.5rem) var(--und-space-2,0.5rem));transition:background-color var(--und-motion-hover,130ms) ease;border:0;border-radius:var(--und-shape-control,0.375rem);background:transparent}@media (hover:hover) and (forced-colors:none){:is(.und-radio-list,und-radio-list) .und-radio:hover:not(:has(.und-radio__input:disabled)){background:var(--und-bg-muted,#f1f2f6)}}@media (prefers-reduced-motion:reduce){:is(.und-radio-list,und-radio-list) .und-radio{transition:none}}:is(.und-radio-list,und-radio-list) .und-radio:has(.und-radio__input[aria-invalid='true']){box-shadow:inset 0 0 0 var(--und-border-width,1px) var(--und-status-danger-fg,#b81e27)}:is(.und-radio-list,und-radio-list) .und-radio__label{font-weight:var(--und-font-weight-normal,400)}:is(.und-radio-list,und-radio-list) .und-radio__label::after{content:'';position:absolute;inset:0;border-radius:inherit}:is(.und-radio-list,und-radio-list) .und-radio__control{position:relative;z-index:1}:is(.und-radio-list,und-radio-list) .und-radio:has(.und-radio__input:disabled){background:transparent;opacity:1}:is(.und-radio-list,und-radio-list) .und-radio:has(.und-radio__input:disabled) :is(.und-radio__control,.und-radio__label){opacity:var(--und-disabled-opacity,0.55)}:is(.und-radio-list,und-radio-list).und-radio-group--horizontal .und-radio-group__items{column-gap:var(--und-radio-group-gap-inline,1.25rem)}}
7432
7432
 
7433
7433
 
7434
7434
 
@@ -7749,12 +7749,12 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
7749
7749
 
7750
7750
 
7751
7751
 
7752
- `;#e;#t=0;constructor(){super(),this.orientation="horizontal"}connectedCallback(){if(super.connectedCallback(),typeof ResizeObserver>"u")return;this.#e??=new ResizeObserver(()=>this.#i(!1));let e=this.hasUpdated?this.renderRoot.querySelector(".items"):null;e&&this.#e.observe(e)}disconnectedCallback(){super.disconnectedCallback(),this.#e?.disconnect(),cancelAnimationFrame(this.#t)}firstUpdated(e){super.firstUpdated(e);let t=this.renderRoot.querySelector(".items");t&&this.#e?.observe(t)}updated(e){super.updated(e),this.#i(!0)}render(){return a`<slot name="label"></slot><slot name="description"></slot>
7752
+ `;#e;#t=0;constructor(){super(),this.orientation="horizontal"}connectedCallback(){if(super.connectedCallback(),typeof ResizeObserver>"u")return;this.#e??=new ResizeObserver(()=>this.#i(!1));let e=this.hasUpdated?this.renderRoot.querySelector(".items"):null;e&&this.#e.observe(e)}disconnectedCallback(){super.disconnectedCallback(),this.#e?.disconnect(),cancelAnimationFrame(this.#t)}firstUpdated(e){super.firstUpdated(e);let t=this.renderRoot.querySelector(".items");t&&this.#e?.observe(t)}updated(e){super.updated(e),this.#i(!0)}render(){return l`<slot name="label"></slot><slot name="description"></slot>
7753
7753
  <div part="items" class="items">
7754
7754
  <span part="indicator" class="indicator" hidden></span>
7755
7755
  <slot @slotchange=${()=>this.requestUpdate()}></slot>
7756
7756
  </div>
7757
- <slot name="error"></slot>`}#i(e){let t=this.renderRoot.querySelector(".items"),i=this.renderRoot.querySelector(".indicator");if(!t||!i)return;let s=this.radios.find(v=>v.checked)?.querySelector(".und-segmented-item__label"),o=t.getBoundingClientRect();if(!s||o.width===0){i.hidden=!0,this.removeAttribute("data-und-indicator");return}let l=s.getBoundingClientRect(),h=getComputedStyle(t).direction==="rtl"?-(o.right-t.clientLeft-l.right):l.left-o.left-t.clientLeft,f=l.top-o.top-t.clientTop,m=i.hidden;i.hidden=!1,(m||!e)&&i.classList.remove("animate"),i.style.setProperty("--_x",`${h}px`),i.style.setProperty("--_y",`${f}px`),i.style.setProperty("--_w",`${l.width}px`),i.style.setProperty("--_h",`${l.height}px`),this.setAttribute("data-und-indicator",""),i.classList.contains("animate")||(cancelAnimationFrame(this.#t),this.#t=requestAnimationFrame(()=>i.classList.add("animate")))}};er.define();Ji.define();var To=u` @layer und.components{.und-selectable-card{--_bw:var(--und-border-width,1px);--_ring:var(--und-selectable-card-ring-color,var(--und-accent-solid,#0064e0));position:relative;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--und-space-1,0.25rem) var(--und-space-2,0.5rem);align-items:start;padding:calc( var(--und-selectable-card-padding,var(--und-inset-card,var(--und-space-4,1rem))) - var( --_bw ) );border:var(--_bw) solid var(--und-border-subtle,#05365919);border-radius:var(--und-selectable-card-radius,var(--und-shape-card,12px));background:var(--und-bg-surface,#fff);color:var(--und-fg-default,#0a1317);font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;cursor:pointer;transition:box-shadow var(--und-duration-fast,175ms) var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1)),border-color var(--und-duration-fast,175ms) var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}.und-selectable-card::before{content:'';position:absolute;inset:0;z-index:2;border-radius:inherit;background-color:var(--_overlay,transparent);pointer-events:none;transition:background-color var(--und-duration-fast,175ms) var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}.und-selectable-card > :not(.und-selectable-card__control){grid-column:1}.und-selectable-card__control{grid-area:1 / 2 / span 2;position:relative;z-index:1;display:inline-grid;place-items:center;min-block-size:var(--und-target-min,24px);min-inline-size:var(--und-target-min,24px)}.und-selectable-card__input{box-sizing:border-box;inline-size:var(--und-selectable-card-indicator-size,1.125rem);block-size:var(--und-selectable-card-indicator-size,1.125rem);margin:0;border:var(--und-border-width-thick,2px) solid var(--und-border-control,#647685);border-radius:50%;background:var(--und-bg-surface,#fff);cursor:pointer;appearance:none}.und-selectable-card__input[type='checkbox']{border-radius:var(--und-radius-sm,4px)}.und-selectable-card__input:checked{border-color:var(--_ring);background:var(--_ring);box-shadow:inset 0 0 0 0.1875rem var(--und-bg-surface,#fff)}.und-selectable-card__input:focus-visible{outline:2px solid transparent}.und-selectable-card--no-indicator,und-selectable-card[hide-indicator] > .und-selectable-card{grid-template-columns:minmax(0,1fr)}.und-selectable-card--no-indicator .und-selectable-card__control,und-selectable-card[hide-indicator] > .und-selectable-card .und-selectable-card__control{position:absolute;inset-block-start:0;inset-inline-end:0;opacity:0}.und-selectable-card__label{font-weight:var(--und-font-weight-semibold,600);cursor:pointer;overflow-wrap:anywhere}.und-selectable-card__label::after{content:'';position:absolute;inset:0;border-radius:inherit}.und-selectable-card .und-field__description{position:relative;margin:0;color:var(--und-fg-muted,#445564)}.und-selectable-card:has(.und-selectable-card__input:checked){border-color:var(--_ring);box-shadow:inset 0 0 0 2px var(--_ring)}.und-selectable-card:has(.und-selectable-card__input:focus-visible){outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#0064e0);outline-offset:var(--und-focus-offset,3px)}.und-selectable-card:has(.und-selectable-card__input[aria-invalid='true']){border-color:var(--und-status-danger-fg,#c4112f)}.und-selectable-card:has(.und-selectable-card__input:disabled){cursor:default}.und-selectable-card:has(.und-selectable-card__input:disabled) :is(.und-selectable-card__control,.und-selectable-card__label){opacity:var(--und-disabled-opacity,0.5)}.und-selectable-card:has(.und-selectable-card__input:disabled) .und-selectable-card__label,.und-selectable-card:has(.und-selectable-card__input:disabled) .und-selectable-card__input{cursor:default}@media (hover:hover){.und-selectable-card:hover:not(:has(.und-selectable-card__input:disabled)){--_overlay:var( --und-selectable-card-overlay-hover,color-mix(in srgb,var(--und-fg-default,#0a1317) 5%,transparent) )}}.und-selectable-card:active:not(:has(.und-selectable-card__input:disabled)){--_overlay:var( --und-selectable-card-overlay-pressed,color-mix(in srgb,var(--und-fg-default,#0a1317) 10%,transparent) )}@media (prefers-reduced-motion:reduce){.und-selectable-card,.und-selectable-card::before{transition:none}}@media (forced-colors:active){.und-selectable-card,.und-selectable-card:hover{border-color:CanvasText}.und-selectable-card__input,.und-selectable-card__input:checked{border-color:CanvasText;background:Canvas;forced-color-adjust:none}.und-selectable-card__input:checked{background:Highlight;box-shadow:inset 0 0 0 0.1875rem Canvas}.und-selectable-card:has(.und-selectable-card__input:checked){outline:var(--und-border-width-thick,2px) solid Highlight;border-color:Highlight;box-shadow:none}.und-selectable-card:has(.und-selectable-card__input:focus-visible){outline-color:Highlight}.und-selectable-card:has(.und-selectable-card__input:disabled){border-color:GrayText}}}@layer und.base{und-selectable-card:not(:defined){display:block;min-block-size:4.5rem}}
7757
+ <slot name="error"></slot>`}#i(e){let t=this.renderRoot.querySelector(".items"),i=this.renderRoot.querySelector(".indicator");if(!t||!i)return;let s=this.radios.find(v=>v.checked)?.querySelector(".und-segmented-item__label"),o=t.getBoundingClientRect();if(!s||o.width===0){i.hidden=!0,this.removeAttribute("data-und-indicator");return}let a=s.getBoundingClientRect(),h=getComputedStyle(t).direction==="rtl"?-(o.right-t.clientLeft-a.right):a.left-o.left-t.clientLeft,f=a.top-o.top-t.clientTop,m=i.hidden;i.hidden=!1,(m||!e)&&i.classList.remove("animate"),i.style.setProperty("--_x",`${h}px`),i.style.setProperty("--_y",`${f}px`),i.style.setProperty("--_w",`${a.width}px`),i.style.setProperty("--_h",`${a.height}px`),this.setAttribute("data-und-indicator",""),i.classList.contains("animate")||(cancelAnimationFrame(this.#t),this.#t=requestAnimationFrame(()=>i.classList.add("animate")))}};er.define();Ji.define();var To=u` @layer und.components{.und-selectable-card{--_bw:var(--und-border-width,1px);--_ring:var(--und-selectable-card-ring-color,var(--und-accent-solid,#0064e0));position:relative;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--und-space-1,0.25rem) var(--und-space-2,0.5rem);align-items:start;padding:calc( var(--und-selectable-card-padding,var(--und-inset-card,var(--und-space-4,1rem))) - var( --_bw ) );border:var(--_bw) solid var(--und-border-subtle,#05365919);border-radius:var(--und-selectable-card-radius,var(--und-shape-card,12px));background:var(--und-bg-surface,#fff);color:var(--und-fg-default,#0a1317);font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;cursor:pointer;transition:box-shadow var(--und-duration-fast,175ms) var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1)),border-color var(--und-duration-fast,175ms) var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}.und-selectable-card::before{content:'';position:absolute;inset:0;z-index:2;border-radius:inherit;background-color:var(--_overlay,transparent);pointer-events:none;transition:background-color var(--und-duration-fast,175ms) var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}.und-selectable-card > :not(.und-selectable-card__control){grid-column:1}.und-selectable-card__control{grid-area:1 / 2 / span 2;position:relative;z-index:1;display:inline-grid;place-items:center;min-block-size:var(--und-target-min,24px);min-inline-size:var(--und-target-min,24px)}.und-selectable-card__input{box-sizing:border-box;inline-size:var(--und-selectable-card-indicator-size,1.125rem);block-size:var(--und-selectable-card-indicator-size,1.125rem);margin:0;border:var(--und-border-width-thick,2px) solid var(--und-border-control,#647685);border-radius:50%;background:var(--und-bg-surface,#fff);cursor:pointer;appearance:none}.und-selectable-card__input[type='checkbox']{border-radius:var(--und-radius-sm,4px)}.und-selectable-card__input:checked{border-color:var(--_ring);background:var(--_ring);box-shadow:inset 0 0 0 0.1875rem var(--und-bg-surface,#fff)}.und-selectable-card__input:focus-visible{outline:2px solid transparent}.und-selectable-card--no-indicator,und-selectable-card[hide-indicator] > .und-selectable-card{grid-template-columns:minmax(0,1fr)}.und-selectable-card--no-indicator .und-selectable-card__control,und-selectable-card[hide-indicator] > .und-selectable-card .und-selectable-card__control{position:absolute;inset-block-start:0;inset-inline-end:0;opacity:0}.und-selectable-card__label{font-weight:var(--und-font-weight-semibold,600);cursor:pointer;overflow-wrap:anywhere}.und-selectable-card__label::after{content:'';position:absolute;inset:0;border-radius:inherit}.und-selectable-card .und-field__description{position:relative;margin:0;color:var(--und-fg-muted,#445564)}.und-selectable-card:has(.und-selectable-card__input:checked){border-color:var(--_ring);box-shadow:inset 0 0 0 2px var(--_ring)}.und-selectable-card:has(.und-selectable-card__input:focus-visible){outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#0064e0);outline-offset:var(--und-focus-offset,3px)}.und-selectable-card:has(.und-selectable-card__input[aria-invalid='true']){border-color:var(--und-status-danger-fg,#c4112f)}.und-selectable-card:has(.und-selectable-card__input:disabled){cursor:default}.und-selectable-card:has(.und-selectable-card__input:disabled) :is(.und-selectable-card__control,.und-selectable-card__label){opacity:var(--und-disabled-opacity,0.5)}.und-selectable-card:has(.und-selectable-card__input:disabled) .und-selectable-card__label,.und-selectable-card:has(.und-selectable-card__input:disabled) .und-selectable-card__input{cursor:default}@media (hover:hover){.und-selectable-card:hover:not(:has(.und-selectable-card__input:disabled)){--_overlay:var( --und-selectable-card-overlay-hover,color-mix(in srgb,var(--und-fg-default,#0a1317) 5%,transparent) )}}.und-selectable-card:active:not(:has(.und-selectable-card__input:disabled)){--_overlay:var( --und-selectable-card-overlay-pressed,color-mix(in srgb,var(--und-fg-default,#0a1317) 10%,transparent) )}@media (prefers-reduced-motion:reduce){.und-selectable-card,.und-selectable-card::before{transition:none}}@media (forced-colors:active){.und-selectable-card,.und-selectable-card:hover{border-color:CanvasText}.und-selectable-card__input,.und-selectable-card__input:checked{border-color:CanvasText;background:Canvas;forced-color-adjust:none}.und-selectable-card__input:checked{background:Highlight;box-shadow:inset 0 0 0 0.1875rem Canvas}.und-selectable-card:has(.und-selectable-card__input:checked){outline:var(--und-border-width-thick,2px) solid Highlight;border-color:Highlight;box-shadow:none}.und-selectable-card:has(.und-selectable-card__input:focus-visible){outline-color:Highlight}.und-selectable-card:has(.und-selectable-card__input:disabled){border-color:GrayText}}}@layer und.base{und-selectable-card:not(:defined){display:block;min-block-size:4.5rem}}
7758
7758
 
7759
7759
 
7760
7760
 
@@ -7965,7 +7965,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
7965
7965
 
7966
7966
 
7967
7967
 
7968
- `;var tr=class extends je{static tagName="und-selectable-card";static lightStyles=[z,L,To];static properties={type:{reflect:!0},hideIndicator:{type:Boolean,reflect:!0,attribute:"hide-indicator"}};block="und-selectable-card";constructor(){super(),this.type="checkbox",this.hideIndicator=!1,this.addEventListener("keydown",this.#t)}findProvidedControl(){return this.querySelector(`:scope > input:is([type="checkbox"], [type="radio"]):not([${B}])`)}createControl(){let e=g("input",`${this.block}__input`,"control");return e.type=this.type==="radio"?"radio":"checkbox",e}decorate(){}syncFromInput(){super.syncFromInput(),this.#i()}updated(e){let t=this.input;if(t&&e.has("type")){let i=this.type==="radio"?"radio":"checkbox";t.type!==i&&(t.type=i)}super.updated(e),e.has("checked")&&this.#i()}#e(){return[...this.getRootNode().querySelectorAll("und-selectable-card")].filter(t=>t.input?.type==="radio"&&t.name===this.name&&t.form===this.form&&!t.input.disabled)}#t=e=>{let t=this.input;if(!t||t.type!=="radio"||e.target!==t||!t.name||e.altKey||e.ctrlKey||e.metaKey||e.defaultPrevented)return;let i={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1}[e.key];if(!i)return;(e.key==="ArrowLeft"||e.key==="ArrowRight")&&getComputedStyle(t).direction==="rtl"&&(i=-i);let s=this.#e(),o=s.indexOf(this);if(o===-1)return;e.preventDefault();let l=s[(o+i+s.length)%s.length]?.input;!l||l===t||(l.focus(),!l.checked&&(l.checked=!0,l.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),l.dispatchEvent(new Event("change",{bubbles:!0}))))};#i(){let e=this.input;if(!e||e.type!=="radio"||!this.checked||!e.name)return;let t=this.getRootNode();for(let i of t.querySelectorAll("und-selectable-card"))i===this||i.type!=="radio"||i.name!==this.name||i.form===this.form&&(i.checked=!1)}};tr.define();var Mo=u` @layer und.components{:host{display:flex;flex-flow:row wrap;gap:var(--und-stepper-gap,var(--und-space-3,0.75rem));margin:0;padding:0}:host([orientation='vertical']){flex-direction:column}:host([hidden]){display:none}}
7968
+ `;var tr=class extends je{static tagName="und-selectable-card";static lightStyles=[z,L,To];static properties={type:{reflect:!0},hideIndicator:{type:Boolean,reflect:!0,attribute:"hide-indicator"}};block="und-selectable-card";constructor(){super(),this.type="checkbox",this.hideIndicator=!1,this.addEventListener("keydown",this.#t)}findProvidedControl(){return this.querySelector(`:scope > input:is([type="checkbox"], [type="radio"]):not([${B}])`)}createControl(){let e=g("input",`${this.block}__input`,"control");return e.type=this.type==="radio"?"radio":"checkbox",e}decorate(){}syncFromInput(){super.syncFromInput(),this.#i()}updated(e){let t=this.input;if(t&&e.has("type")){let i=this.type==="radio"?"radio":"checkbox";t.type!==i&&(t.type=i)}super.updated(e),e.has("checked")&&this.#i()}#e(){return[...this.getRootNode().querySelectorAll("und-selectable-card")].filter(t=>t.input?.type==="radio"&&t.name===this.name&&t.form===this.form&&!t.input.disabled)}#t=e=>{let t=this.input;if(!t||t.type!=="radio"||e.target!==t||!t.name||e.altKey||e.ctrlKey||e.metaKey||e.defaultPrevented)return;let i={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1}[e.key];if(!i)return;(e.key==="ArrowLeft"||e.key==="ArrowRight")&&getComputedStyle(t).direction==="rtl"&&(i=-i);let s=this.#e(),o=s.indexOf(this);if(o===-1)return;e.preventDefault();let a=s[(o+i+s.length)%s.length]?.input;!a||a===t||(a.focus(),!a.checked&&(a.checked=!0,a.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),a.dispatchEvent(new Event("change",{bubbles:!0}))))};#i(){let e=this.input;if(!e||e.type!=="radio"||!this.checked||!e.name)return;let t=this.getRootNode();for(let i of t.querySelectorAll("und-selectable-card"))i===this||i.type!=="radio"||i.name!==this.name||i.form===this.form&&(i.checked=!1)}};tr.define();var Mo=u` @layer und.components{:host{display:flex;flex-flow:row wrap;gap:var(--und-stepper-gap,var(--und-space-3,0.75rem));margin:0;padding:0}:host([orientation='vertical']){flex-direction:column}:host([hidden]){display:none}}
7969
7969
 
7970
7970
 
7971
7971
 
@@ -8194,11 +8194,11 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
8194
8194
 
8195
8195
 
8196
8196
 
8197
- `;var Do=ce({complete:"completed",current:"current step",upcoming:"not started",error:"has an error",position:"Step {position} of {total}"}),n1=Do.set,ir=class extends p{static tagName="und-step";static styles=No;static properties={label:{},description:{},status:{reflect:!0},state:{reflect:!0},orientation:{reflect:!0},index:{type:Number},total:{type:Number},clickable:{type:Boolean}};#e=new y(this);constructor(){super(),this.state="upcoming",this.orientation="horizontal",this.index=0,this.total=1,this.clickable=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}updated(e){super.updated(e),this.state==="current"?this.setAttribute("aria-current","step"):this.removeAttribute("aria-current"),this.setCustomState("complete",this.state==="complete"),this.setCustomState("current",this.state==="current"),this.setCustomState("invalid",this.state==="error")}#t(){return this.state==="complete"?a`<svg class="icon" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
8197
+ `;var Do=ce({complete:"completed",current:"current step",upcoming:"not started",error:"has an error",position:"Step {position} of {total}"}),n1=Do.set,ir=class extends p{static tagName="und-step";static styles=No;static properties={label:{},description:{},status:{reflect:!0},state:{reflect:!0},orientation:{reflect:!0},index:{type:Number},total:{type:Number},clickable:{type:Boolean}};#e=new y(this);constructor(){super(),this.state="upcoming",this.orientation="horizontal",this.index=0,this.total=1,this.clickable=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}updated(e){super.updated(e),this.state==="current"?this.setAttribute("aria-current","step"):this.removeAttribute("aria-current"),this.setCustomState("complete",this.state==="complete"),this.setCustomState("current",this.state==="current"),this.setCustomState("invalid",this.state==="error")}#t(){return this.state==="complete"?l`<svg class="icon" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
8198
8198
  <path d="M3.5 8.5l3 3 6-7" />
8199
- </svg>`:this.state==="error"?a`<svg class="icon" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
8199
+ </svg>`:this.state==="error"?l`<svg class="icon" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
8200
8200
  <path d="M8 3.5v5M8 12v.01" />
8201
- </svg>`:new Intl.NumberFormat(this.#e.lang||void 0).format(this.index+1)}render(){let e=Do.get(),t=a`<span part="marker" class="marker" aria-hidden="true"
8201
+ </svg>`:new Intl.NumberFormat(this.#e.lang||void 0).format(this.index+1)}render(){let e=Do.get(),t=l`<span part="marker" class="marker" aria-hidden="true"
8202
8202
  >${this.#t()}</span
8203
8203
  ><span class="text"
8204
8204
  ><span class="label"><slot>${this.label??c}</slot></span
@@ -8207,9 +8207,9 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
8207
8207
  >, ${e[this.state]}.
8208
8208
  ${R(e.position,{position:this.index+1,total:this.total})}</span
8209
8209
  ></span
8210
- >`;return this.clickable?a`<button part="control" class="control" type="button" @click=${this.#i}>
8210
+ >`;return this.clickable?l`<button part="control" class="control" type="button" @click=${this.#i}>
8211
8211
  ${t}
8212
- </button>`:a`<div part="control" class="control">${t}</div>`}#i=()=>{this.dispatchEvent(new CustomEvent("und-step-click",{bubbles:!0,composed:!1}))}},rr=class extends p{static tagName="und-stepper";static styles=Mo;static properties={current:{type:Number,reflect:!0},orientation:{reflect:!0},label:{},clickable:{type:Boolean,reflect:!0},nonLinear:{type:Boolean,reflect:!0,attribute:"non-linear"}};constructor(){super(),this.current=0,this.orientation="horizontal",this.clickable=!1,this.nonLinear=!1,this.addEventListener("und-step-click",this.#t)}get steps(){return[...this.children].filter(e=>e.localName==="und-step")}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","list")}updated(e){super.updated(e),this.label?this.setAttribute("aria-label",this.label):e.has("label")&&e.get("label")!==void 0&&this.removeAttribute("aria-label"),this.#e()}render(){return a`<slot @slotchange=${()=>this.#e()}></slot>`}#e(){let e=this.steps,t=Number.isFinite(this.current)?Math.trunc(this.current):0;e.forEach((i,r)=>{i.index=r,i.total=e.length,i.orientation=this.orientation,i.state=i.status==="error"?"error":r<t?"complete":r===t?"current":"upcoming",i.clickable=this.clickable&&r!==t&&(this.nonLinear||r<t)})}#t=e=>{let t=this.steps.findIndex(r=>r===e.target);if(t===-1)return;e.stopPropagation(),this.emit("und-step-select",{index:t},{cancelable:!0})&&(this.current=t)}};rr.define();ir.define();var Io=ce({valueMissing:"Select at least one option."}),p1=Io.set,xd="und-button, und-toggle-button, und-icon-button, button",yd=n=>(n??"").split(/\s+/).filter(Boolean),nr=class extends ut{static tagName="und-toggle-button-group";static formAssociated=!0;static properties={...ut.properties,multiple:{type:Boolean,reflect:!0},value:{converter:{fromAttribute:yd,toAttribute:e=>e.join(" ")}},name:{reflect:!0},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}};#e=new y(this);#t;#i=!1;#r=new ne(this,{getItems:()=>this.closest("und-toolbar")?[]:this.items,orientation:"both",getDirection:()=>this.#e.dir,isDisabled:e=>this.#n(e)});constructor(){super(),this.multiple=!1,this.value=[],this.required=!1,this.disabled=!1,this.addEventListener("click",this.#a),this.addEventListener("und-pressed-change",this.#l)}get items(){return[...this.children].filter(e=>e.matches(xd))}get form(){return this.internals.form}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}#n(e){return this.disabled||this.#i||e.disabled===!0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}connectedCallback(){super.connectedCallback(),!!1&&(this.#t??=[...this.value])}formResetCallback(){this.value=[...this.#t??[]]}formDisabledCallback(e){this.#i=e,this.requestUpdate()}updated(e){super.updated(e);let t=this.#o();for(let i of this.items){let r=t.includes(this.#s(i));i.localName.startsWith("und-")?(i.toggle=!0,i.pressed=r,this.disabled&&!i.hasAttribute("disabled")&&(i.disabled=!0)):(i.setAttribute("aria-pressed",String(r)),this.disabled&&i.setAttribute("disabled",""))}this.#r.sync(),this.#d(t)}#s(e){return e.value??e.getAttribute("value")??""}#o(){let e=new Set(this.items.map(i=>this.#s(i)));return(this.multiple?this.value:this.value.slice(0,1)).filter(i=>e.has(i))}#d(e){let t=this.internals;if(!this.name||e.length===0)t.setFormValue(null);else{let r=new FormData;for(let s of e)r.append(this.name,s);t.setFormValue(r)}let i=this.required&&e.length===0;i?t.setValidity({valueMissing:!0},Io.get().valueMissing,this.items[0]??this):t.setValidity({}),this.setCustomState("invalid",i)}#a=e=>{let t=this.items.find(i=>i.contains(e.target));!t||t.localName.startsWith("und-")||this.#c(t)};#l=e=>{let t=this.items.find(i=>i===e.target);t&&(e.preventDefault(),e.stopPropagation(),this.#c(t))};#c(e){if(this.#n(e))return;let t=this.#s(e),i=this.#o(),r=i.includes(t),s;if(this.multiple)s=r?i.filter(l=>l!==t):[...i,t];else if(r){if(this.required)return;s=[]}else s=[t];let o=this.items.map(l=>this.#s(l));s.sort((l,d)=>o.indexOf(l)-o.indexOf(d)),this.value=s,this.emit("und-change",{value:[...s]})}};nr.define();var kd=["und-button","und-icon-button","button","a[href]",'input:not([type="hidden"])',"select","textarea",'[role="button"]:not(und-button, und-icon-button, button)',"[data-und-toolbar-item]"].join(","),wd='textarea, select, input:not([type="button"], [type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="image"], [type="file"], [type="range"], [type="color"]), [contenteditable]:not([contenteditable="false"])',_d=u` @layer und.components{:host{box-sizing:border-box;display:flex;flex-flow:row wrap;gap:var(--und-toolbar-gap,var(--und-space-1,0.25rem));align-items:center;padding:var(--und-toolbar-padding,0);border:var(--und-toolbar-border-width,0) solid var(--und-border-subtle,#d6d8dd);border-radius:var(--und-toolbar-radius,var(--und-radius-element,0.5rem));background:var(--und-toolbar-bg,transparent);color:var(--und-fg-default,#23252c)}:host([orientation='vertical']){flex-direction:column;align-items:stretch;inline-size:max-content}:host([hidden]){display:none}::slotted(und-divider){align-self:stretch;margin:0}@media (forced-colors:active){:host{border-color:CanvasText}}}
8212
+ </button>`:l`<div part="control" class="control">${t}</div>`}#i=()=>{this.dispatchEvent(new CustomEvent("und-step-click",{bubbles:!0,composed:!1}))}},rr=class extends p{static tagName="und-stepper";static styles=Mo;static properties={current:{type:Number,reflect:!0},orientation:{reflect:!0},label:{},clickable:{type:Boolean,reflect:!0},nonLinear:{type:Boolean,reflect:!0,attribute:"non-linear"}};constructor(){super(),this.current=0,this.orientation="horizontal",this.clickable=!1,this.nonLinear=!1,this.addEventListener("und-step-click",this.#t)}get steps(){return[...this.children].filter(e=>e.localName==="und-step")}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","list")}updated(e){super.updated(e),this.label?this.setAttribute("aria-label",this.label):e.has("label")&&e.get("label")!==void 0&&this.removeAttribute("aria-label"),this.#e()}render(){return l`<slot @slotchange=${()=>this.#e()}></slot>`}#e(){let e=this.steps,t=Number.isFinite(this.current)?Math.trunc(this.current):0;e.forEach((i,r)=>{i.index=r,i.total=e.length,i.orientation=this.orientation,i.state=i.status==="error"?"error":r<t?"complete":r===t?"current":"upcoming",i.clickable=this.clickable&&r!==t&&(this.nonLinear||r<t)})}#t=e=>{let t=this.steps.findIndex(r=>r===e.target);if(t===-1)return;e.stopPropagation(),this.emit("und-step-select",{index:t},{cancelable:!0})&&(this.current=t)}};rr.define();ir.define();var Io=ce({valueMissing:"Select at least one option."}),p1=Io.set,xd="und-button, und-toggle-button, und-icon-button, button",yd=n=>(n??"").split(/\s+/).filter(Boolean),nr=class extends ut{static tagName="und-toggle-button-group";static formAssociated=!0;static properties={...ut.properties,multiple:{type:Boolean,reflect:!0},value:{converter:{fromAttribute:yd,toAttribute:e=>e.join(" ")}},name:{reflect:!0},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}};#e=new y(this);#t;#i=!1;#r=new ne(this,{getItems:()=>this.closest("und-toolbar")?[]:this.items,orientation:"both",getDirection:()=>this.#e.dir,isDisabled:e=>this.#n(e)});constructor(){super(),this.multiple=!1,this.value=[],this.required=!1,this.disabled=!1,this.addEventListener("click",this.#a),this.addEventListener("und-pressed-change",this.#l)}get items(){return[...this.children].filter(e=>e.matches(xd))}get form(){return this.internals.form}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}#n(e){return this.disabled||this.#i||e.disabled===!0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}connectedCallback(){super.connectedCallback(),!!1&&(this.#t??=[...this.value])}formResetCallback(){this.value=[...this.#t??[]]}formDisabledCallback(e){this.#i=e,this.requestUpdate()}updated(e){super.updated(e);let t=this.#o();for(let i of this.items){let r=t.includes(this.#s(i));i.localName.startsWith("und-")?(i.toggle=!0,i.pressed=r,this.disabled&&!i.hasAttribute("disabled")&&(i.disabled=!0)):(i.setAttribute("aria-pressed",String(r)),this.disabled&&i.setAttribute("disabled",""))}this.#r.sync(),this.#d(t)}#s(e){return e.value??e.getAttribute("value")??""}#o(){let e=new Set(this.items.map(i=>this.#s(i)));return(this.multiple?this.value:this.value.slice(0,1)).filter(i=>e.has(i))}#d(e){let t=this.internals;if(!this.name||e.length===0)t.setFormValue(null);else{let r=new FormData;for(let s of e)r.append(this.name,s);t.setFormValue(r)}let i=this.required&&e.length===0;i?t.setValidity({valueMissing:!0},Io.get().valueMissing,this.items[0]??this):t.setValidity({}),this.setCustomState("invalid",i)}#a=e=>{let t=this.items.find(i=>i.contains(e.target));!t||t.localName.startsWith("und-")||this.#c(t)};#l=e=>{let t=this.items.find(i=>i===e.target);t&&(e.preventDefault(),e.stopPropagation(),this.#c(t))};#c(e){if(this.#n(e))return;let t=this.#s(e),i=this.#o(),r=i.includes(t),s;if(this.multiple)s=r?i.filter(a=>a!==t):[...i,t];else if(r){if(this.required)return;s=[]}else s=[t];let o=this.items.map(a=>this.#s(a));s.sort((a,d)=>o.indexOf(a)-o.indexOf(d)),this.value=s,this.emit("und-change",{value:[...s]})}};nr.define();var kd=["und-button","und-icon-button","button","a[href]",'input:not([type="hidden"])',"select","textarea",'[role="button"]:not(und-button, und-icon-button, button)',"[data-und-toolbar-item]"].join(","),wd='textarea, select, input:not([type="button"], [type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="image"], [type="file"], [type="range"], [type="color"]), [contenteditable]:not([contenteditable="false"])',_d=u` @layer und.components{:host{box-sizing:border-box;display:flex;flex-flow:row wrap;gap:var(--und-toolbar-gap,var(--und-space-1,0.25rem));align-items:center;padding:var(--und-toolbar-padding,0);border:var(--und-toolbar-border-width,0) solid var(--und-border-subtle,#d6d8dd);border-radius:var(--und-toolbar-radius,var(--und-radius-element,0.5rem));background:var(--und-toolbar-bg,transparent);color:var(--und-fg-default,#23252c)}:host([orientation='vertical']){flex-direction:column;align-items:stretch;inline-size:max-content}:host([hidden]){display:none}::slotted(und-divider){align-self:stretch;margin:0}@media (forced-colors:active){:host{border-color:CanvasText}}}
8213
8213
 
8214
8214
 
8215
8215
 
@@ -8245,7 +8245,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
8245
8245
 
8246
8246
 
8247
8247
 
8248
- `,sr=class extends p{static tagName="und-toolbar";static styles=_d;static properties={label:{},orientation:{reflect:!0}};#e=new y(this);#t=!1;#i;#r;constructor(){super(),this.orientation="horizontal",this.addEventListener("keydown",this.#n),this.#r=new ne(this,{getItems:()=>this.#t?[]:this.items,orientation:"both",getDirection:()=>this.#e.dir})}get items(){return[...this.querySelectorAll(kd)].filter(e=>!e.closest("[hidden], [inert]")&&e.getAttribute("aria-hidden")!=="true")}connectedCallback(){super.connectedCallback(),!!1&&(this.hasAttribute("role")||this.setAttribute("role","toolbar"),this.#i??=new MutationObserver(()=>this.#r.sync()),this.#i.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled","hidden","aria-disabled"]}))}disconnectedCallback(){super.disconnectedCallback(),this.#i?.disconnect()}updated(e){super.updated(e),this.label?this.setAttribute("aria-label",this.label):e.has("label")&&e.get("label")!==void 0&&this.removeAttribute("aria-label"),this.orientation==="vertical"?this.setAttribute("aria-orientation","vertical"):this.removeAttribute("aria-orientation")}render(){return a`<slot @slotchange=${()=>this.#r.sync()}></slot>`}#n=e=>{let i=(this.orientation==="vertical"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"]).includes(e.key)||e.key==="Home"||e.key==="End",r=e.target instanceof Element&&e.target.matches(wd);this.#t=!i||r}};sr.define();var Bo=u` @layer und.components{:host{display:inline-flex;max-inline-size:100%;vertical-align:middle}:host([hidden]){display:none}.token{box-sizing:border-box;display:inline-flex;gap:0.25rem;align-items:center;max-inline-size:100%;min-block-size:var(--und-token-height,1.25rem);padding-block:0;padding-inline:0.5rem;border:var(--und-border-width-thin,1px) solid var(--und-token-border,transparent);border-radius:var(--und-token-radius,0.25rem);background-color:var(--und-token-bg,var(--und-bg-muted,#f1f2f6));color:var(--und-token-fg,var(--und-fg-default,#23252c));font:inherit;font-size:var(--und-text-label-sm-size,0.75rem);font-weight:var(--und-font-weight-medium,500);line-height:var(--und-text-label-sm-lh,1.25);unicode-bidi:plaintext}.label{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remove{position:relative;box-sizing:border-box;display:inline-flex;flex:none;align-items:center;justify-content:center;inline-size:var(--und-target-min,24px);block-size:var(--und-target-min,24px);margin:0;margin-block:-0.25rem;margin-inline-end:-0.5rem;padding:0;border:0.25rem solid transparent;border-radius:50%;background:transparent;background-clip:padding-box;color:inherit;font:inherit;cursor:pointer}.remove:hover{background-color:color-mix(in srgb,currentcolor 12%,transparent)}.remove:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:0}.remove::before,.remove::after{position:absolute;inline-size:0.625em;block-size:2px;background:currentcolor;content:''}.remove::before{transform:rotate(45deg)}.remove::after{transform:rotate(-45deg)}:host([disabled]) .token{opacity:var(--und-disabled-opacity,0.55)}@media (pointer:coarse){.remove{inline-size:var(--und-target-min-coarse,44px);block-size:var(--und-target-min-coarse,44px);margin-block:-0.875rem;border-width:0.875rem}}@media (forced-colors:active){.token{border-color:CanvasText}.remove:focus-visible{outline-color:Highlight}}}
8248
+ `,sr=class extends p{static tagName="und-toolbar";static styles=_d;static properties={label:{},orientation:{reflect:!0}};#e=new y(this);#t=!1;#i;#r;constructor(){super(),this.orientation="horizontal",this.addEventListener("keydown",this.#n),this.#r=new ne(this,{getItems:()=>this.#t?[]:this.items,orientation:"both",getDirection:()=>this.#e.dir})}get items(){return[...this.querySelectorAll(kd)].filter(e=>!e.closest("[hidden], [inert]")&&e.getAttribute("aria-hidden")!=="true")}connectedCallback(){super.connectedCallback(),!!1&&(this.hasAttribute("role")||this.setAttribute("role","toolbar"),this.#i??=new MutationObserver(()=>this.#r.sync()),this.#i.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled","hidden","aria-disabled"]}))}disconnectedCallback(){super.disconnectedCallback(),this.#i?.disconnect()}updated(e){super.updated(e),this.label?this.setAttribute("aria-label",this.label):e.has("label")&&e.get("label")!==void 0&&this.removeAttribute("aria-label"),this.orientation==="vertical"?this.setAttribute("aria-orientation","vertical"):this.removeAttribute("aria-orientation")}render(){return l`<slot @slotchange=${()=>this.#r.sync()}></slot>`}#n=e=>{let i=(this.orientation==="vertical"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"]).includes(e.key)||e.key==="Home"||e.key==="End",r=e.target instanceof Element&&e.target.matches(wd);this.#t=!i||r}};sr.define();var Bo=u` @layer und.components{:host{display:inline-flex;max-inline-size:100%;vertical-align:middle}:host([hidden]){display:none}.token{box-sizing:border-box;display:inline-flex;gap:0.25rem;align-items:center;max-inline-size:100%;min-block-size:var(--und-token-height,1.25rem);padding-block:0;padding-inline:0.5rem;border:var(--und-border-width-thin,1px) solid var(--und-token-border,transparent);border-radius:var(--und-token-radius,0.25rem);background-color:var(--und-token-bg,var(--und-bg-muted,#f1f2f6));color:var(--und-token-fg,var(--und-fg-default,#23252c));font:inherit;font-size:var(--und-text-label-sm-size,0.75rem);font-weight:var(--und-font-weight-medium,500);line-height:var(--und-text-label-sm-lh,1.25);unicode-bidi:plaintext}.label{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remove{position:relative;box-sizing:border-box;display:inline-flex;flex:none;align-items:center;justify-content:center;inline-size:var(--und-target-min,24px);block-size:var(--und-target-min,24px);margin:0;margin-block:-0.25rem;margin-inline-end:-0.5rem;padding:0;border:0.25rem solid transparent;border-radius:50%;background:transparent;background-clip:padding-box;color:inherit;font:inherit;cursor:pointer}.remove:hover{background-color:color-mix(in srgb,currentcolor 12%,transparent)}.remove:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:0}.remove::before,.remove::after{position:absolute;inline-size:0.625em;block-size:2px;background:currentcolor;content:''}.remove::before{transform:rotate(45deg)}.remove::after{transform:rotate(-45deg)}:host([disabled]) .token{opacity:var(--und-disabled-opacity,0.55)}@media (pointer:coarse){.remove{inline-size:var(--und-target-min-coarse,44px);block-size:var(--und-target-min-coarse,44px);margin-block:-0.875rem;border-width:0.875rem}}@media (forced-colors:active){.token{border-color:CanvasText}.remove:focus-visible{outline-color:Highlight}}}
8249
8249
 
8250
8250
 
8251
8251
 
@@ -8354,9 +8354,9 @@ ${Ie} display:flex;flex-wrap:wrap;gap:var(--und-space-1,0.25rem);align-items:cen
8354
8354
 
8355
8355
 
8356
8356
 
8357
- `;var or=class extends p{static tagName="und-token";static styles=Bo;static properties={value:{reflect:!0},removable:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},removeLabel:{attribute:"remove-label"},size:{reflect:!0},color:{reflect:!0}};#e="";constructor(){super(),this.removable=!1,this.disabled=!1,this.removeLabel="Remove {label}",this.size="md",this.color="default"}get label(){return(this.textContent??"").replace(/\s+/g," ").trim()}#t;connectedCallback(){super.connectedCallback(),this.#t??=new MutationObserver(this.#i),this.#t.observe(this,{childList:!0,characterData:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this.#t?.disconnect()}#i=()=>{let e=this.label;e!==this.#e&&(this.#e=e,this.requestUpdate())};#r=()=>{this.disabled||this.emit("und-remove",{value:this.value??this.label})};render(){return a`<span part="base" class="token" ?data-removable=${this.removable}
8357
+ `;var or=class extends p{static tagName="und-token";static styles=Bo;static properties={value:{reflect:!0},removable:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},removeLabel:{attribute:"remove-label"},size:{reflect:!0},color:{reflect:!0}};#e="";constructor(){super(),this.removable=!1,this.disabled=!1,this.removeLabel="Remove {label}",this.size="md",this.color="default"}get label(){return(this.textContent??"").replace(/\s+/g," ").trim()}#t;connectedCallback(){super.connectedCallback(),this.#t??=new MutationObserver(this.#i),this.#t.observe(this,{childList:!0,characterData:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this.#t?.disconnect()}#i=()=>{let e=this.label;e!==this.#e&&(this.#e=e,this.requestUpdate())};#r=()=>{this.disabled||this.emit("und-remove",{value:this.value??this.label})};render(){return l`<span part="base" class="token" ?data-removable=${this.removable}
8358
8358
  ><slot name="icon"></slot
8359
- ><span part="label" class="label"><slot @slotchange=${this.#i}></slot></span>${this.removable?a`<button
8359
+ ><span part="label" class="label"><slot @slotchange=${this.#i}></slot></span>${this.removable?l`<button
8360
8360
  part="remove"
8361
8361
  class="remove"
8362
8362
  type="button"
@@ -8484,16 +8484,16 @@ ${Ie} display:flex;flex-wrap:wrap;gap:0.25rem;align-items:center;padding-block:0
8484
8484
 
8485
8485
 
8486
8486
 
8487
- `];var ar=class extends p{static tagName="und-tokenizer";static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static referenceTarget="input";static styles=Po;static properties={value:{attribute:!1},options:{attribute:!1},label:{},description:{},error:{},placeholder:{},name:{reflect:!0},size:{reflect:!0},disabled:{type:Boolean,reflect:!0},required:{type:Boolean,reflect:!0},open:{type:Boolean,reflect:!0},max:{type:Number},allowCustom:{type:Boolean,attribute:"allow-custom"},allowDuplicates:{type:Boolean,attribute:"allow-duplicates"},addOnBlur:{type:Boolean,attribute:"add-on-blur"},separators:{},removeLabel:{attribute:"remove-label"},addedMessage:{attribute:"added-message"},removedMessage:{attribute:"removed-message"},maxMessage:{attribute:"max-message"},inputValue:{attribute:!1}};#e=-1;#t=[];#i=!1;#r=!1;#n="";#s="";#o="";#d=[];#a;#l;#c;#u=new y(this);#h=new P(this,{onDismiss:()=>{this.open=!1}});#p=new O(this,{getAnchor:()=>this.renderRoot.querySelector(".field"),getFloating:()=>this.renderRoot.querySelector("#popup"),placement:"bottom-start",offset:4,getDirection:()=>this.#u.dir});constructor(){super(),this.value=[],this.inputValue="",this.size="md",this.disabled=!1,this.required=!1,this.open=!1,this.max=0,this.allowCustom=!0,this.allowDuplicates=!1,this.addOnBlur=!0,this.separators=",",this.removeLabel="Remove {label}",this.addedMessage="Added {label}",this.removedMessage="Removed {label}",this.maxMessage="Maximum of {max} reached"}get active(){return this.#e}set active(e){let t=this.#e;t!==e&&(this.#e=e,this.requestUpdate("active",t))}get form(){return this.internals.form}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}connectedCallback(){super.connectedCallback(),this.#l??=new MutationObserver(()=>this.#g()),this.#l.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","label","disabled","aria-label","aria-labelledby"],characterData:!0}),this.#c??=new MutationObserver(()=>this.#g()),this.addEventListener("invalid",this.#y),D(this,z),this.#g(),queueMicrotask(()=>this.#g())}firstUpdated(){this.#d=[...this.value]}disconnectedCallback(){super.disconnectedCallback(),this.#l?.disconnect(),this.#c?.disconnect(),this.removeEventListener("invalid",this.#y)}formDisabledCallback(e){this.#r=e,this.requestUpdate()}formResetCallback(){this.value=[...this.#d],this.inputValue="",this.open=!1}formStateRestoreCallback(e){e instanceof FormData&&this.name&&(this.value=e.getAll(this.name).filter(t=>typeof t=="string"))}get#f(){return this.disabled||this.#r}get#m(){return this.options??this.#t}#b(){return this.renderRoot.querySelector("#input")}#g(){if(!1)return;this.#t=Ye(this.querySelectorAll(":scope > option, :scope > optgroup > option, :scope > datalist > option, :scope > datalist > optgroup > option"));let e=de(this,this.getAttribute("aria-labelledby"));this.#n=X(e,this)||this.label||X(le(this),this)||this.getAttribute("aria-label")||"",this.#s=[this.description,this.#v].filter(Boolean).join(" "),this.#c&&et(this.#c,this,[...e,...le(this)]),this.requestUpdate()}get#v(){let e=this.error||(this.label||this.description?this.#o:"");return e?`${fe().errorPrefix} ${e}`:""}get#x(){return!!(this.error||this.#o||this.getAttribute("aria-invalid")==="true")}#y=()=>{this.error||(this.#o=this.internals.validationMessage,this.#g())};#_(e){return this.#m.find(t=>t.value===e)?.label??e}#k(){let e=this.inputValue.trim().toLocaleLowerCase(this.#u.lang||void 0);return this.#m.filter(t=>(this.allowDuplicates||!this.value.includes(t.value))&&(!e||t.label.toLocaleLowerCase(this.#u.lang||void 0).includes(e)))}willUpdate(e){e.has("label")&&(this.#n=this.label||this.#n),this.#o&&this.value.length>0&&(this.#o=""),(e.has("description")||e.has("error"))&&this.#g(),e.has("open")&&(this.open&&(this.#f||this.#m.length===0)&&(this.open=!1),this.open||(this.active=-1))}updated(e){if(this.setCustomState("open",this.open),!!1){let t=this.name;if(t&&this.value.length>0){let i=new FormData;for(let r of this.value)i.append(t,r);this.internals.setFormValue(i)}else this.internals.setFormValue(null);this.error?this.internals.setValidity({customError:!0},this.error,this.#b()??void 0):this.required&&this.value.length===0?this.internals.setValidity({valueMissing:!0},Ze("input"),this.#b()??void 0):this.internals.setValidity({})}if(this.#z(),e.has("open")){let t=this.renderRoot.querySelector("#popup"),i=this.renderRoot.querySelector(".field");this.open&&t&&i?(t.style.minInlineSize=`${i.offsetWidth}px`,t.matches(":popover-open")||t.showPopover(),this.#p.start(),this.#h.activate()):(this.#h.deactivate(),this.#p.stop(),t?.matches(":popover-open")&&t.hidePopover()),e.get("open")!==void 0&&this.emit("und-open-change",{open:this.open})}this.open&&e.has("active")&&this.active>=0&&this.renderRoot.querySelector(`#${V(this.active)}`)?.scrollIntoView?.({block:"nearest"})}#z(){if(!this.#a&&(this.label||this.description||this.error||this.#o)&&(this.#a=Qe(this)),!this.#a)return;this.id||=E("und-tokenizer");let e=this.error||this.#o;Je(this.#a,{label:this.label,description:this.description,error:this.label||this.description||this.error?e:"",marker:this.required?"required":void 0,forId:this.id})}#$(e){let t=new Set([...this.separators,`
8488
- `,"\r"]),i=[],r="";for(let s of e)t.has(s)?(i.push(r),r=""):r+=s;return i.push(r),i.map(s=>s.trim()).filter(Boolean)}#L(e){let t=this.#u.lang||void 0,i=e.toLocaleLowerCase(t),r=this.#m.find(s=>!s.disabled&&(s.label.toLocaleLowerCase(t)===i||s.value===e));return r?r.value:this.allowCustom?e:void 0}#w(e){let t=[],i=!1;for(let r of e){if(this.max>0&&this.value.length+t.length>=this.max){i=!0;break}!this.allowDuplicates&&(this.value.includes(r)||t.includes(r))||t.push(r)}return i&&N(this.maxMessage.replace("{max}",String(this.max))),t.length===0?!1:(this.value=[...this.value,...t],this.#C("add",t),N(t.map(r=>this.addedMessage.replace("{label}",this.#_(r))).join(", ")),!0)}#S(e){let t=this.value[e];t!==void 0&&(this.value=this.value.filter((i,r)=>r!==e),this.#C("remove",[t]),N(this.removedMessage.replace("{label}",this.#_(t))))}#C(e,t){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("und-change",{action:e,values:t})}#E(){let e=this.#$(this.inputValue),t=e.flatMap(r=>this.#L(r)??[]),i=this.#w(t);return t.length===e.length&&(this.inputValue="",this.active=-1),i}#N=e=>{let t=e.target.value;this.inputValue=t,!(e.isComposing||this.#i)&&this.#M()};#M(){let e=this.inputValue;if([...this.separators].some(t=>e.includes(t))){let t=this.#$(e),r=this.separators.includes(e.at(-1)??"")?"":t.pop()??"";this.#w(t.flatMap(s=>this.#L(s)??[])),this.inputValue=r}this.active=-1,!this.#f&&this.#m.length>0&&(this.open=!0)}#A=()=>{this.#i=!0};#T=e=>{this.#i=!1,this.inputValue=e.target.value,this.#M()};#D=e=>{let t=e.clipboardData?.getData("text")??"",i=/[\n\r]/.test(t)||[...this.separators].some(l=>t.includes(l));if(!t||!i)return;e.preventDefault();let r=e.target,s=`${r.value.slice(0,r.selectionStart??0)}${t}${r.value.slice(r.selectionEnd??0)}`,o=this.#$(s);this.#w(o.flatMap(l=>this.#L(l)??[])),this.inputValue=""};#I(e,t,i){let r=e.length;for(let s=1;s<=r;s+=1){let o=((t+i*s)%r+r)%r;if(!e[o]?.disabled)return o}return-1}#B=e=>{if(e.isComposing||e.keyCode===229||this.#f)return;let t=this.#k();switch(e.key){case"ArrowDown":if(this.#m.length===0)return;e.preventDefault(),this.open?this.active=this.#I(t,this.active,1):this.open=!0;return;case"ArrowUp":if(this.#m.length===0)return;e.preventDefault(),this.open?this.active=this.#I(t,this.active<0?0:this.active,-1):this.open=!0;return;case"Enter":this.open&&this.active>=0&&t[this.active]?(e.preventDefault(),this.#P(t[this.active])):this.inputValue.trim()?(e.preventDefault(),this.#E()):e.defaultPrevented||this.internals.form?.requestSubmit();return;case"Backspace":!this.inputValue&&this.value.length>0&&(e.preventDefault(),this.#S(this.value.length-1));return;case"Home":case"End":case"ArrowLeft":case"ArrowRight":this.active=-1;return;default:this.separators.includes(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(e.preventDefault(),this.inputValue.trim()&&this.#E())}};#P(e){!e||e.disabled||(this.#w([e.value]),this.inputValue="",this.active=-1)}#R=e=>{let t=e.relatedTarget;t instanceof Node&&S(this,t)||(this.open=!1,this.addOnBlur&&this.inputValue.trim()&&this.#E())};#U=e=>{if(this.#f)return;let t=e.target;t instanceof Element&&t.closest("und-token")||this.#b()?.focus()};#q=e=>{e.stopPropagation();let t=e.target,i=Number(t.dataset.index);this.#S(i),this.#b()?.focus()};#O=e=>{e.preventDefault()};#H=e=>{let t=W(e);t!==-1&&!this.#k()[t]?.disabled&&(this.active=t)};#F=e=>{let t=W(e);t!==-1&&(this.#P(this.#k()[t]),this.#b()?.focus())};render(){let e=this.#f,t=this.#k(),i=this.#n||c,r=this.#m.length>0;return a`<slot name="label"></slot><slot name="description"></slot>
8487
+ `];var ar=class extends p{static tagName="und-tokenizer";static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static referenceTarget="input";static styles=Po;static properties={value:{attribute:!1},options:{attribute:!1},label:{},description:{},error:{},placeholder:{},name:{reflect:!0},size:{reflect:!0},disabled:{type:Boolean,reflect:!0},required:{type:Boolean,reflect:!0},open:{type:Boolean,reflect:!0},max:{type:Number},allowCustom:{type:Boolean,attribute:"allow-custom"},allowDuplicates:{type:Boolean,attribute:"allow-duplicates"},addOnBlur:{type:Boolean,attribute:"add-on-blur"},separators:{},removeLabel:{attribute:"remove-label"},addedMessage:{attribute:"added-message"},removedMessage:{attribute:"removed-message"},maxMessage:{attribute:"max-message"},inputValue:{attribute:!1}};#e=-1;#t=[];#i=!1;#r=!1;#n="";#s="";#o="";#d=[];#a;#l;#c;#u=new y(this);#h=new P(this,{onDismiss:()=>{this.open=!1}});#p=new O(this,{getAnchor:()=>this.renderRoot.querySelector(".field"),getFloating:()=>this.renderRoot.querySelector("#popup"),placement:"bottom-start",offset:4,getDirection:()=>this.#u.dir});constructor(){super(),this.value=[],this.inputValue="",this.size="md",this.disabled=!1,this.required=!1,this.open=!1,this.max=0,this.allowCustom=!0,this.allowDuplicates=!1,this.addOnBlur=!0,this.separators=",",this.removeLabel="Remove {label}",this.addedMessage="Added {label}",this.removedMessage="Removed {label}",this.maxMessage="Maximum of {max} reached"}get active(){return this.#e}set active(e){let t=this.#e;t!==e&&(this.#e=e,this.requestUpdate("active",t))}get form(){return this.internals.form}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}connectedCallback(){super.connectedCallback(),this.#l??=new MutationObserver(()=>this.#v()),this.#l.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","label","disabled","aria-label","aria-labelledby"],characterData:!0}),this.#c??=new MutationObserver(()=>this.#v()),this.addEventListener("invalid",this.#y),D(this,z),this.#v(),queueMicrotask(()=>this.#v())}firstUpdated(){this.#d=[...this.value]}disconnectedCallback(){super.disconnectedCallback(),this.#l?.disconnect(),this.#c?.disconnect(),this.removeEventListener("invalid",this.#y)}formDisabledCallback(e){this.#r=e,this.requestUpdate()}formResetCallback(){this.value=[...this.#d],this.inputValue="",this.open=!1}formStateRestoreCallback(e){e instanceof FormData&&this.name&&(this.value=e.getAll(this.name).filter(t=>typeof t=="string"))}get#f(){return this.disabled||this.#r}get#m(){return this.options??this.#t}#b(){return this.renderRoot.querySelector("#input")}#v(){if(!1)return;this.#t=Ye(this.querySelectorAll(":scope > option, :scope > optgroup > option, :scope > datalist > option, :scope > datalist > optgroup > option"));let e=de(this,this.getAttribute("aria-labelledby"));this.#n=X(e,this)||this.label||X(le(this),this)||this.getAttribute("aria-label")||"",this.#s=[this.description,this.#g].filter(Boolean).join(" "),this.#c&&et(this.#c,this,[...e,...le(this)]),this.requestUpdate()}get#g(){let e=this.error||(this.label||this.description?this.#o:"");return e?`${fe().errorPrefix} ${e}`:""}get#x(){return!!(this.error||this.#o||this.getAttribute("aria-invalid")==="true")}#y=()=>{this.error||(this.#o=this.internals.validationMessage,this.#v())};#_(e){return this.#m.find(t=>t.value===e)?.label??e}#w(){let e=this.inputValue.trim().toLocaleLowerCase(this.#u.lang||void 0);return this.#m.filter(t=>(this.allowDuplicates||!this.value.includes(t.value))&&(!e||t.label.toLocaleLowerCase(this.#u.lang||void 0).includes(e)))}willUpdate(e){e.has("label")&&(this.#n=this.label||this.#n),this.#o&&this.value.length>0&&(this.#o=""),(e.has("description")||e.has("error"))&&this.#v(),e.has("open")&&(this.open&&(this.#f||this.#m.length===0)&&(this.open=!1),this.open||(this.active=-1))}updated(e){if(this.setCustomState("open",this.open),!!1){let t=this.name;if(t&&this.value.length>0){let i=new FormData;for(let r of this.value)i.append(t,r);this.internals.setFormValue(i)}else this.internals.setFormValue(null);this.error?this.internals.setValidity({customError:!0},this.error,this.#b()??void 0):this.required&&this.value.length===0?this.internals.setValidity({valueMissing:!0},Ze("input"),this.#b()??void 0):this.internals.setValidity({})}if(this.#z(),e.has("open")){let t=this.renderRoot.querySelector("#popup"),i=this.renderRoot.querySelector(".field");this.open&&t&&i?(t.style.minInlineSize=`${i.offsetWidth}px`,t.matches(":popover-open")||t.showPopover(),this.#p.start(),this.#h.activate()):(this.#h.deactivate(),this.#p.stop(),t?.matches(":popover-open")&&t.hidePopover()),e.get("open")!==void 0&&this.emit("und-open-change",{open:this.open})}this.open&&e.has("active")&&this.active>=0&&this.renderRoot.querySelector(`#${V(this.active)}`)?.scrollIntoView?.({block:"nearest"})}#z(){if(!this.#a&&(this.label||this.description||this.error||this.#o)&&(this.#a=Qe(this)),!this.#a)return;this.id||=E("und-tokenizer");let e=this.error||this.#o;Je(this.#a,{label:this.label,description:this.description,error:this.label||this.description||this.error?e:"",marker:this.required?"required":void 0,forId:this.id})}#$(e){let t=new Set([...this.separators,`
8488
+ `,"\r"]),i=[],r="";for(let s of e)t.has(s)?(i.push(r),r=""):r+=s;return i.push(r),i.map(s=>s.trim()).filter(Boolean)}#L(e){let t=this.#u.lang||void 0,i=e.toLocaleLowerCase(t),r=this.#m.find(s=>!s.disabled&&(s.label.toLocaleLowerCase(t)===i||s.value===e));return r?r.value:this.allowCustom?e:void 0}#k(e){let t=[],i=!1;for(let r of e){if(this.max>0&&this.value.length+t.length>=this.max){i=!0;break}!this.allowDuplicates&&(this.value.includes(r)||t.includes(r))||t.push(r)}return i&&N(this.maxMessage.replace("{max}",String(this.max))),t.length===0?!1:(this.value=[...this.value,...t],this.#C("add",t),N(t.map(r=>this.addedMessage.replace("{label}",this.#_(r))).join(", ")),!0)}#S(e){let t=this.value[e];t!==void 0&&(this.value=this.value.filter((i,r)=>r!==e),this.#C("remove",[t]),N(this.removedMessage.replace("{label}",this.#_(t))))}#C(e,t){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})),this.emit("und-change",{action:e,values:t})}#A(){let e=this.#$(this.inputValue),t=e.flatMap(r=>this.#L(r)??[]),i=this.#k(t);return t.length===e.length&&(this.inputValue="",this.active=-1),i}#M=e=>{let t=e.target.value;this.inputValue=t,!(e.isComposing||this.#i)&&this.#N()};#N(){let e=this.inputValue;if([...this.separators].some(t=>e.includes(t))){let t=this.#$(e),r=this.separators.includes(e.at(-1)??"")?"":t.pop()??"";this.#k(t.flatMap(s=>this.#L(s)??[])),this.inputValue=r}this.active=-1,!this.#f&&this.#m.length>0&&(this.open=!0)}#E=()=>{this.#i=!0};#T=e=>{this.#i=!1,this.inputValue=e.target.value,this.#N()};#D=e=>{let t=e.clipboardData?.getData("text")??"",i=/[\n\r]/.test(t)||[...this.separators].some(a=>t.includes(a));if(!t||!i)return;e.preventDefault();let r=e.target,s=`${r.value.slice(0,r.selectionStart??0)}${t}${r.value.slice(r.selectionEnd??0)}`,o=this.#$(s);this.#k(o.flatMap(a=>this.#L(a)??[])),this.inputValue=""};#I(e,t,i){let r=e.length;for(let s=1;s<=r;s+=1){let o=((t+i*s)%r+r)%r;if(!e[o]?.disabled)return o}return-1}#B=e=>{if(e.isComposing||e.keyCode===229||this.#f)return;let t=this.#w();switch(e.key){case"ArrowDown":if(this.#m.length===0)return;e.preventDefault(),this.open?this.active=this.#I(t,this.active,1):this.open=!0;return;case"ArrowUp":if(this.#m.length===0)return;e.preventDefault(),this.open?this.active=this.#I(t,this.active<0?0:this.active,-1):this.open=!0;return;case"Enter":this.open&&this.active>=0&&t[this.active]?(e.preventDefault(),this.#P(t[this.active])):this.inputValue.trim()?(e.preventDefault(),this.#A()):e.defaultPrevented||this.internals.form?.requestSubmit();return;case"Backspace":!this.inputValue&&this.value.length>0&&(e.preventDefault(),this.#S(this.value.length-1));return;case"Home":case"End":case"ArrowLeft":case"ArrowRight":this.active=-1;return;default:this.separators.includes(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(e.preventDefault(),this.inputValue.trim()&&this.#A())}};#P(e){!e||e.disabled||(this.#k([e.value]),this.inputValue="",this.active=-1)}#R=e=>{let t=e.relatedTarget;t instanceof Node&&S(this,t)||(this.open=!1,this.addOnBlur&&this.inputValue.trim()&&this.#A())};#U=e=>{if(this.#f)return;let t=e.target;t instanceof Element&&t.closest("und-token")||this.#b()?.focus()};#q=e=>{e.stopPropagation();let t=e.target,i=Number(t.dataset.index);this.#S(i),this.#b()?.focus()};#O=e=>{e.preventDefault()};#H=e=>{let t=W(e);t!==-1&&!this.#w()[t]?.disabled&&(this.active=t)};#F=e=>{let t=W(e);t!==-1&&(this.#P(this.#w()[t]),this.#b()?.focus())};render(){let e=this.#f,t=this.#w(),i=this.#n||c,r=this.#m.length>0;return l`<slot name="label"></slot><slot name="description"></slot>
8489
8489
  <div part="base" class="field" ?data-disabled=${e} @click=${this.#U}>
8490
- ${this.value.length>0?a`<ul
8490
+ ${this.value.length>0?l`<ul
8491
8491
  part="tokens"
8492
8492
  class="tokens"
8493
8493
  role="list"
8494
8494
  aria-label=${this.#n||c}
8495
8495
  >
8496
- ${this.value.map((s,o)=>a`<li>
8496
+ ${this.value.map((s,o)=>l`<li>
8497
8497
  <und-token
8498
8498
  part="token"
8499
8499
  data-index=${o}
@@ -8526,8 +8526,8 @@ ${Ie} display:flex;flex-wrap:wrap;gap:0.25rem;align-items:center;padding-block:0
8526
8526
  ?disabled=${e}
8527
8527
  ?required=${this.required&&this.value.length===0}
8528
8528
  .value=${this.inputValue}
8529
- @input=${this.#N}
8530
- @compositionstart=${this.#A}
8529
+ @input=${this.#M}
8530
+ @compositionstart=${this.#E}
8531
8531
  @compositionend=${this.#T}
8532
8532
  @keydown=${this.#B}
8533
8533
  @paste=${this.#D}
@@ -8570,7 +8570,7 @@ ${Ie} display:flex;flex-wrap:wrap;gap:0.25rem;align-items:center;padding-block:0
8570
8570
 
8571
8571
 
8572
8572
 
8573
- `];var lr=class extends p{static tagName="und-multi-select";static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static referenceTarget="trigger";static styles=Ro;static properties={value:{attribute:!1,noAccessor:!0},options:{attribute:!1},label:{},description:{},error:{},placeholder:{},name:{reflect:!0},size:{reflect:!0},disabled:{type:Boolean,reflect:!0},required:{type:Boolean,reflect:!0},open:{type:Boolean,reflect:!0},tokens:{type:Boolean,reflect:!0},summaryMax:{type:Number,attribute:"summary-max"},selectedMessage:{attribute:"selected-message"},removeLabel:{attribute:"remove-label"}};get value(){return this.#e}set value(e){this.#s=!0,this.#t(e)}#e=[];#t(e){let t=this.#e;this.#e=e,this.requestUpdate("value",t)}#i=-1;#r=[];#n=[];#s=!1;#o=!1;#d="";#a="";#l="";#c;#u;#h;#p=new y(this);#f=new P(this,{onDismiss:()=>{this.open=!1}});#m=new O(this,{getAnchor:()=>this.renderRoot.querySelector("#trigger"),getFloating:()=>this.renderRoot.querySelector("#listbox"),placement:"bottom-start",offset:4,getDirection:()=>this.#p.dir});#b=new se(this,{listen:!1,getItems:()=>[...this.renderRoot.querySelectorAll('[role="option"]')],getActiveIndex:()=>this.active,getLabel:e=>{let t=this.#v[Number(e.dataset.index)];return t&&!t.disabled?t.label:""},getLocale:()=>this.#p.lang||void 0,onMatch:e=>{this.open||(this.open=!0),this.active=e}});constructor(){super(),this.size="md",this.disabled=!1,this.required=!1,this.open=!1,this.tokens=!1,this.summaryMax=2,this.selectedMessage="{count} selected",this.removeLabel="Remove {label}"}get active(){return this.#i}set active(e){let t=this.#i;t!==e&&(this.#i=e,this.requestUpdate("active",t))}get form(){return this.internals.form}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}connectedCallback(){super.connectedCallback(),this.#u??=new MutationObserver(()=>this.#y()),this.#u.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","label","disabled","selected","aria-label","aria-labelledby"],characterData:!0}),this.#h??=new MutationObserver(()=>this.#y()),this.addEventListener("invalid",this.#z),D(this,z),this.#y(),queueMicrotask(()=>this.#y())}disconnectedCallback(){super.disconnectedCallback(),this.#u?.disconnect(),this.#h?.disconnect(),this.removeEventListener("invalid",this.#z)}formDisabledCallback(e){this.#o=e,this.requestUpdate()}formResetCallback(){this.#s=!1,this.#t([...this.#n]),this.open=!1}formStateRestoreCallback(e){e instanceof FormData&&this.name&&(this.value=e.getAll(this.name).filter(t=>typeof t=="string"))}get#g(){return this.disabled||this.#o}get#v(){return this.options??this.#r}#x(){return this.renderRoot.querySelector("#trigger")}#y(){if(!1)return;let e=this.querySelectorAll(":scope > option, :scope > optgroup > option");this.#r=Ye(e),this.#n=[...e].filter(r=>r.defaultSelected).map(r=>r.value),!this.#s&&this.value.join("\0")!==this.#n.join("\0")&&this.#t([...this.#n]);let t=de(this,this.getAttribute("aria-labelledby")),i=de(this,this.getAttribute("aria-describedby"));this.#d=X(t,this)||this.label||X(le(this),this)||this.getAttribute("aria-label")||"",this.#a=[X(i,this),this.description,this.#_].filter(Boolean).join(" "),this.#h&&et(this.#h,this,[...t,...i,...le(this)]),this.requestUpdate()}get#_(){let e=this.error||(this.label||this.description?this.#l:"");return e?`${fe().errorPrefix} ${e}`:""}get#k(){return!!(this.error||this.#l||this.getAttribute("aria-invalid")==="true")}#z=()=>{this.error||(this.#l=this.internals.validationMessage,this.#y())};get#$(){return this.#v.filter(e=>this.value.includes(e.value))}willUpdate(e){if(e.has("label")&&(this.#d=this.label||this.#d),this.#l&&this.value.length>0&&(this.#l=""),(e.has("description")||e.has("error"))&&this.#y(),e.has("open")){if(this.#b.reset(),this.open&&this.#g)this.open=!1;else if(this.open&&this.active<0){let t=this.#v.findIndex(i=>!i.disabled&&this.value.includes(i.value));this.active=t>=0?t:J(this.#v,1)}this.open||(this.active=-1)}}updated(e){if(this.setCustomState("open",this.open),!!1){let t=this.name;if(t&&this.value.length>0){let i=new FormData;for(let r of this.value)i.append(t,r);this.internals.setFormValue(i)}else this.internals.setFormValue(null);this.error?this.internals.setValidity({customError:!0},this.error,this.#x()??void 0):this.required&&this.value.length===0?this.internals.setValidity({valueMissing:!0},Ze("select"),this.#x()??void 0):this.internals.setValidity({})}if(this.#L(),e.has("open")){let t=this.renderRoot.querySelector("#listbox"),i=this.#x();this.open&&t&&i?(t.style.minInlineSize=`${i.offsetWidth}px`,t.matches(":popover-open")||t.showPopover(),this.#m.start(),this.#f.activate()):(this.#f.deactivate(),this.#m.stop(),t?.matches(":popover-open")&&t.hidePopover()),e.get("open")!==void 0&&this.emit("und-open-change",{open:this.open})}this.open&&e.has("active")&&this.active>=0&&this.renderRoot.querySelector(`#${V(this.active)}`)?.scrollIntoView?.({block:"nearest"})}#L(){if(!this.#c&&(this.label||this.description||this.error||this.#l)&&(this.#c=Qe(this)),!this.#c)return;this.id||=E("und-multi-select");let e=this.error||this.#l;Je(this.#c,{label:this.label,description:this.description,error:this.label||this.description||this.error?e:"",marker:this.required?"required":void 0,forId:this.id})}#w(e){let t=this.#v[e];!t||t.disabled||(this.#s=!0,this.value=this.value.includes(t.value)?this.value.filter(i=>i!==t.value):[...this.value,t.value],this.#C())}#S(){let e=this.#v.filter(r=>!r.disabled),t=e.every(r=>this.value.includes(r.value)),i=this.value.filter(r=>this.#v.find(s=>s.value===r)?.disabled);this.#s=!0,this.value=t?i:[...new Set([...i,...e.map(r=>r.value)])],this.#C()}#C(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0}))}#E=()=>{this.#g||(this.open=!this.open)};#N=e=>{if(this.#g||e.isComposing||e.metaKey)return;let t=this.#v,{key:i,altKey:r}=e;if(e.ctrlKey){i.toLowerCase()==="a"&&this.open&&(e.preventDefault(),this.#S());return}if(!this.open){if(["ArrowDown","ArrowUp","Enter"," "].includes(i)){if(i===" "&&this.#b.buffer&&this.#b.handleKeydown(e))return;e.preventDefault(),this.open=!0}else i==="Home"||i==="End"?(e.preventDefault(),this.open=!0,this.active=J(t,i==="Home"?1:-1)):this.#b.handleKeydown(e);return}let s;switch(i){case"ArrowDown":r||(s=we(t,this.active,1));break;case"ArrowUp":if(r){e.preventDefault(),this.open=!1;return}s=we(t,this.active,-1);break;case"Home":s=J(t,1);break;case"End":s=J(t,-1);break;case"PageDown":s=Xe(t,this.active,10);break;case"PageUp":s=Xe(t,this.active,-10);break;case" ":if(this.#b.buffer&&this.#b.handleKeydown(e))return;e.preventDefault(),this.#w(this.active);return;case"Enter":e.preventDefault(),this.#w(this.active);return;case"Tab":this.open=!1;return;default:this.#b.handleKeydown(e);return}e.preventDefault(),s!==void 0&&s!==-1&&(this.active=s)};#M=e=>{e.preventDefault()};#A=e=>{let t=W(e);t!==-1&&!this.#v[t]?.disabled&&(this.active=t)};#T=e=>{let t=W(e);t===-1||this.#v[t]?.disabled||(this.active=t,this.#w(t),this.#x()?.focus())};#D=e=>{let t=e.relatedTarget;this.open&&!(t instanceof Node&&S(this,t))&&(this.open=!1)};#I=e=>{e.stopPropagation(),this.#s=!0,this.value=this.value.filter(t=>t!==e.detail.value),this.#C(),this.#x()?.focus()};get#B(){let e=this.#$;return e.length===0?"":this.tokens||e.length>this.summaryMax?this.selectedMessage.replace("{count}",String(e.length)):e.map(t=>t.label).join(", ")}render(){let e=this.#g,t=this.#B,i=!t&&this.placeholder,r=this.#d,s=this.#$;return a`<slot name="label"></slot><slot name="description"></slot>
8573
+ `];var lr=class extends p{static tagName="und-multi-select";static formAssociated=!0;static shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};static referenceTarget="trigger";static styles=Ro;static properties={value:{attribute:!1,noAccessor:!0},options:{attribute:!1},label:{},description:{},error:{},placeholder:{},name:{reflect:!0},size:{reflect:!0},disabled:{type:Boolean,reflect:!0},required:{type:Boolean,reflect:!0},open:{type:Boolean,reflect:!0},tokens:{type:Boolean,reflect:!0},summaryMax:{type:Number,attribute:"summary-max"},selectedMessage:{attribute:"selected-message"},removeLabel:{attribute:"remove-label"}};get value(){return this.#e}set value(e){this.#s=!0,this.#t(e)}#e=[];#t(e){let t=this.#e;this.#e=e,this.requestUpdate("value",t)}#i=-1;#r=[];#n=[];#s=!1;#o=!1;#d="";#a="";#l="";#c;#u;#h;#p=new y(this);#f=new P(this,{onDismiss:()=>{this.open=!1}});#m=new O(this,{getAnchor:()=>this.renderRoot.querySelector("#trigger"),getFloating:()=>this.renderRoot.querySelector("#listbox"),placement:"bottom-start",offset:4,getDirection:()=>this.#p.dir});#b=new se(this,{listen:!1,getItems:()=>[...this.renderRoot.querySelectorAll('[role="option"]')],getActiveIndex:()=>this.active,getLabel:e=>{let t=this.#g[Number(e.dataset.index)];return t&&!t.disabled?t.label:""},getLocale:()=>this.#p.lang||void 0,onMatch:e=>{this.open||(this.open=!0),this.active=e}});constructor(){super(),this.size="md",this.disabled=!1,this.required=!1,this.open=!1,this.tokens=!1,this.summaryMax=2,this.selectedMessage="{count} selected",this.removeLabel="Remove {label}"}get active(){return this.#i}set active(e){let t=this.#i;t!==e&&(this.#i=e,this.requestUpdate("active",t))}get form(){return this.internals.form}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}connectedCallback(){super.connectedCallback(),this.#u??=new MutationObserver(()=>this.#y()),this.#u.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","label","disabled","selected","aria-label","aria-labelledby"],characterData:!0}),this.#h??=new MutationObserver(()=>this.#y()),this.addEventListener("invalid",this.#z),D(this,z),this.#y(),queueMicrotask(()=>this.#y())}disconnectedCallback(){super.disconnectedCallback(),this.#u?.disconnect(),this.#h?.disconnect(),this.removeEventListener("invalid",this.#z)}formDisabledCallback(e){this.#o=e,this.requestUpdate()}formResetCallback(){this.#s=!1,this.#t([...this.#n]),this.open=!1}formStateRestoreCallback(e){e instanceof FormData&&this.name&&(this.value=e.getAll(this.name).filter(t=>typeof t=="string"))}get#v(){return this.disabled||this.#o}get#g(){return this.options??this.#r}#x(){return this.renderRoot.querySelector("#trigger")}#y(){if(!1)return;let e=this.querySelectorAll(":scope > option, :scope > optgroup > option");this.#r=Ye(e),this.#n=[...e].filter(r=>r.defaultSelected).map(r=>r.value),!this.#s&&this.value.join("\0")!==this.#n.join("\0")&&this.#t([...this.#n]);let t=de(this,this.getAttribute("aria-labelledby")),i=de(this,this.getAttribute("aria-describedby"));this.#d=X(t,this)||this.label||X(le(this),this)||this.getAttribute("aria-label")||"",this.#a=[X(i,this),this.description,this.#_].filter(Boolean).join(" "),this.#h&&et(this.#h,this,[...t,...i,...le(this)]),this.requestUpdate()}get#_(){let e=this.error||(this.label||this.description?this.#l:"");return e?`${fe().errorPrefix} ${e}`:""}get#w(){return!!(this.error||this.#l||this.getAttribute("aria-invalid")==="true")}#z=()=>{this.error||(this.#l=this.internals.validationMessage,this.#y())};get#$(){return this.#g.filter(e=>this.value.includes(e.value))}willUpdate(e){if(e.has("label")&&(this.#d=this.label||this.#d),this.#l&&this.value.length>0&&(this.#l=""),(e.has("description")||e.has("error"))&&this.#y(),e.has("open")){if(this.#b.reset(),this.open&&this.#v)this.open=!1;else if(this.open&&this.active<0){let t=this.#g.findIndex(i=>!i.disabled&&this.value.includes(i.value));this.active=t>=0?t:J(this.#g,1)}this.open||(this.active=-1)}}updated(e){if(this.setCustomState("open",this.open),!!1){let t=this.name;if(t&&this.value.length>0){let i=new FormData;for(let r of this.value)i.append(t,r);this.internals.setFormValue(i)}else this.internals.setFormValue(null);this.error?this.internals.setValidity({customError:!0},this.error,this.#x()??void 0):this.required&&this.value.length===0?this.internals.setValidity({valueMissing:!0},Ze("select"),this.#x()??void 0):this.internals.setValidity({})}if(this.#L(),e.has("open")){let t=this.renderRoot.querySelector("#listbox"),i=this.#x();this.open&&t&&i?(t.style.minInlineSize=`${i.offsetWidth}px`,t.matches(":popover-open")||t.showPopover(),this.#m.start(),this.#f.activate()):(this.#f.deactivate(),this.#m.stop(),t?.matches(":popover-open")&&t.hidePopover()),e.get("open")!==void 0&&this.emit("und-open-change",{open:this.open})}this.open&&e.has("active")&&this.active>=0&&this.renderRoot.querySelector(`#${V(this.active)}`)?.scrollIntoView?.({block:"nearest"})}#L(){if(!this.#c&&(this.label||this.description||this.error||this.#l)&&(this.#c=Qe(this)),!this.#c)return;this.id||=E("und-multi-select");let e=this.error||this.#l;Je(this.#c,{label:this.label,description:this.description,error:this.label||this.description||this.error?e:"",marker:this.required?"required":void 0,forId:this.id})}#k(e){let t=this.#g[e];!t||t.disabled||(this.#s=!0,this.value=this.value.includes(t.value)?this.value.filter(i=>i!==t.value):[...this.value,t.value],this.#C())}#S(){let e=this.#g.filter(r=>!r.disabled),t=e.every(r=>this.value.includes(r.value)),i=this.value.filter(r=>this.#g.find(s=>s.value===r)?.disabled);this.#s=!0,this.value=t?i:[...new Set([...i,...e.map(r=>r.value)])],this.#C()}#C(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0}))}#A=()=>{this.#v||(this.open=!this.open)};#M=e=>{if(this.#v||e.isComposing||e.metaKey)return;let t=this.#g,{key:i,altKey:r}=e;if(e.ctrlKey){i.toLowerCase()==="a"&&this.open&&(e.preventDefault(),this.#S());return}if(!this.open){if(["ArrowDown","ArrowUp","Enter"," "].includes(i)){if(i===" "&&this.#b.buffer&&this.#b.handleKeydown(e))return;e.preventDefault(),this.open=!0}else i==="Home"||i==="End"?(e.preventDefault(),this.open=!0,this.active=J(t,i==="Home"?1:-1)):this.#b.handleKeydown(e);return}let s;switch(i){case"ArrowDown":r||(s=we(t,this.active,1));break;case"ArrowUp":if(r){e.preventDefault(),this.open=!1;return}s=we(t,this.active,-1);break;case"Home":s=J(t,1);break;case"End":s=J(t,-1);break;case"PageDown":s=Xe(t,this.active,10);break;case"PageUp":s=Xe(t,this.active,-10);break;case" ":if(this.#b.buffer&&this.#b.handleKeydown(e))return;e.preventDefault(),this.#k(this.active);return;case"Enter":e.preventDefault(),this.#k(this.active);return;case"Tab":this.open=!1;return;default:this.#b.handleKeydown(e);return}e.preventDefault(),s!==void 0&&s!==-1&&(this.active=s)};#N=e=>{e.preventDefault()};#E=e=>{let t=W(e);t!==-1&&!this.#g[t]?.disabled&&(this.active=t)};#T=e=>{let t=W(e);t===-1||this.#g[t]?.disabled||(this.active=t,this.#k(t),this.#x()?.focus())};#D=e=>{let t=e.relatedTarget;this.open&&!(t instanceof Node&&S(this,t))&&(this.open=!1)};#I=e=>{e.stopPropagation(),this.#s=!0,this.value=this.value.filter(t=>t!==e.detail.value),this.#C(),this.#x()?.focus()};get#B(){let e=this.#$;return e.length===0?"":this.tokens||e.length>this.summaryMax?this.selectedMessage.replace("{count}",String(e.length)):e.map(t=>t.label).join(", ")}render(){let e=this.#v,t=this.#B,i=!t&&this.placeholder,r=this.#d,s=this.#$;return l`<slot name="label"></slot><slot name="description"></slot>
8574
8574
  <div
8575
8575
  id="trigger"
8576
8576
  part="trigger"
@@ -8582,20 +8582,20 @@ ${Ie} display:flex;flex-wrap:wrap;gap:0.25rem;align-items:center;padding-block:0
8582
8582
  aria-controls="listbox"
8583
8583
  aria-label=${r||c}
8584
8584
  aria-describedby=${this.#a?"description":c}
8585
- aria-invalid=${this.#k?"true":c}
8585
+ aria-invalid=${this.#w?"true":c}
8586
8586
  aria-activedescendant=${this.open&&this.active>=0?V(this.active):c}
8587
8587
  aria-disabled=${e?"true":c}
8588
8588
  aria-required=${this.required?"true":c}
8589
- @click=${this.#E}
8590
- @keydown=${this.#N}
8589
+ @click=${this.#A}
8590
+ @keydown=${this.#M}
8591
8591
  @focusout=${this.#D}
8592
8592
  >
8593
8593
  <span part="value" class="value" ?data-placeholder=${i}
8594
8594
  >${i?this.placeholder:t}</span
8595
8595
  ><span class="chevron" aria-hidden="true"></span>
8596
8596
  </div>
8597
- ${this.tokens&&s.length>0?a`<ul part="tokens" class="tokens" role="list" aria-label=${r||c}>
8598
- ${s.map(o=>a`<li>
8597
+ ${this.tokens&&s.length>0?l`<ul part="tokens" class="tokens" role="list" aria-label=${r||c}>
8598
+ ${s.map(o=>l`<li>
8599
8599
  <und-token
8600
8600
  part="token"
8601
8601
  .value=${o.value}
@@ -8617,13 +8617,13 @@ ${Ie} display:flex;flex-wrap:wrap;gap:0.25rem;align-items:center;padding-block:0
8617
8617
  tabindex="-1"
8618
8618
  aria-multiselectable="true"
8619
8619
  aria-label=${r||c}
8620
- @mousedown=${this.#M}
8621
- @pointermove=${this.#A}
8620
+ @mousedown=${this.#N}
8621
+ @pointermove=${this.#E}
8622
8622
  @click=${this.#T}
8623
8623
  >
8624
- ${_e(this.#v,{active:this.active,isSelected:o=>this.value.includes(o.value)})}
8624
+ ${_e(this.#g,{active:this.active,isSelected:o=>this.value.includes(o.value)})}
8625
8625
  </div>
8626
- <slot name="error"></slot>`}};lr.define();var dr=class extends dt{static tagName="und-typeahead";static properties={...dt.properties,minLength:{type:Number,attribute:"min-length"}};#e;constructor(){super(),this.filter="none",this.debounce=250,this.minLength=1,this.addEventListener("und-search",this.#t)}disconnectedCallback(){super.disconnectedCallback(),this.#e?.abort()}#t=e=>{let t=e.detail;if(this.#e?.abort(),t.query.trim().length<this.minLength){this.#e=void 0,e.stopImmediatePropagation();return}this.#e=new AbortController,t.signal=this.#e.signal};willUpdate(e){super.willUpdate(e),this.open&&this.inputValue.trim().length<this.minLength&&(this.open=!1)}updated(e){if(super.updated(e),e.has("loading")&&this.open){if(this.loading)N(this.loadingText);else if(e.get("loading")===!0){let t=this.options?.length??0;N(t===0?this.noResultsText:this.resultsMessage(t))}}}};dr.define();var Uo=["0","0.5","1","1.5","2","3","4","5","6","8","10","12","16","20","24","32"],zd=new Set(["0.5","1.5"]);function qo(n){if(n==="0")return"0";let e=`${Number(n)/4}rem`;return zd.has(n)?e:`var(${["--und","space",n].join("-")}, ${e})`}function $e(n,e,t){let i=Uo.map(r=>{let s=r==="0"?"var(--und-space-0, 0)":qo(r);return`${n(r)}{${e}:${t?`var(${t},${s})`:s}}`});return ge(i.join(""))}var $d=[["padding","padding"],["padding-inline","padding-inline"],["padding-block","padding-block"],["padding-inline-start","padding-inline-start"],["padding-inline-end","padding-inline-end"],["padding-block-start","padding-block-start"],["padding-block-end","padding-block-end"]];function St(n,e=[]){let t=[];for(let[i,r]of $d)if(!e.includes(i))for(let s of Uo)t.push(`${n(i,s)}{${r}:${qo(s)}}`);return ge(t.join(""))}function Ct(n,e,t){let i=[];for(let r=1;r<=t;r+=1)i.push(`${n(r)}{${e(r)}}`);return ge(i.join(""))}var Oo={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},Ho={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Sd(){let n=":is([direction='row'],[direction='horizontal'])",e=":not([direction='row'],[direction='horizontal'])",t=[],i=(r,s,o,l)=>{for(let[d,h]of Object.entries(o))t.push(`:host(${r}[${s}='${d}']){${l}:${h}}`)};return i(n,"h-align",Oo,"justify-content"),i(n,"v-align",Ho,"align-items"),i(e,"h-align",Ho,"align-items"),i(e,"v-align",Oo,"justify-content"),t.join("")}var Cd={fromAttribute:n=>n===null?!1:n===""?!0:n,toAttribute:n=>n===!0?"":n===!1||n==null?null:n},cr=class extends p{static tagName="und-stack";static properties={direction:{reflect:!0},gap:{reflect:!0},alignItems:{reflect:!0,attribute:"align-items"},justifyContent:{reflect:!0,attribute:"justify-content"},hAlign:{reflect:!0,attribute:"h-align"},vAlign:{reflect:!0,attribute:"v-align"},wrap:{reflect:!0,converter:Cd},inline:{type:Boolean,reflect:!0},scrollable:{type:Boolean,reflect:!0},padding:{reflect:!0},paddingInline:{reflect:!0,attribute:"padding-inline"},paddingBlock:{reflect:!0,attribute:"padding-block"},paddingInlineStart:{reflect:!0,attribute:"padding-inline-start"},paddingInlineEnd:{reflect:!0,attribute:"padding-inline-end"},paddingBlockStart:{reflect:!0,attribute:"padding-block-start"},paddingBlockEnd:{reflect:!0,attribute:"padding-block-end"}};static styles=u` @layer und.components{:host{display:flex;flex-direction:column;gap:var(--und-stack-gap,var(--und-space-4,1rem));box-sizing:border-box;min-inline-size:0}:host([hidden]){display:none}:host([inline]){display:inline-flex}:host([direction='row']),:host([direction='horizontal']){flex-direction:row}:host([wrap]){flex-wrap:wrap}:host([wrap='nowrap']){flex-wrap:nowrap}:host([wrap='wrap-reverse']){flex-wrap:wrap-reverse}:host([scrollable]){overflow:auto}:host([align-items='start']){align-items:flex-start}:host([align-items='center']){align-items:center}:host([align-items='end']){align-items:flex-end}:host([align-items='stretch']){align-items:stretch}:host([align-items='baseline']){align-items:baseline}:host([justify-content='start']){justify-content:flex-start}:host([justify-content='center']){justify-content:center}:host([justify-content='end']){justify-content:flex-end}:host([justify-content='between']){justify-content:space-between}:host([justify-content='around']){justify-content:space-around}:host([justify-content='evenly']){justify-content:space-evenly}
8626
+ <slot name="error"></slot>`}};lr.define();var dr=class extends dt{static tagName="und-typeahead";static properties={...dt.properties,minLength:{type:Number,attribute:"min-length"}};#e;constructor(){super(),this.filter="none",this.debounce=250,this.minLength=1,this.addEventListener("und-search",this.#t)}disconnectedCallback(){super.disconnectedCallback(),this.#e?.abort()}#t=e=>{let t=e.detail;if(this.#e?.abort(),t.query.trim().length<this.minLength){this.#e=void 0,e.stopImmediatePropagation();return}this.#e=new AbortController,t.signal=this.#e.signal};willUpdate(e){super.willUpdate(e),this.open&&this.inputValue.trim().length<this.minLength&&(this.open=!1)}updated(e){if(super.updated(e),e.has("loading")&&this.open){if(this.loading)N(this.loadingText);else if(e.get("loading")===!0){let t=this.options?.length??0;N(t===0?this.noResultsText:this.resultsMessage(t))}}}};dr.define();var Uo=["0","0.5","1","1.5","2","3","4","5","6","8","10","12","16","20","24","32"],zd=new Set(["0.5","1.5"]);function qo(n){if(n==="0")return"0";let e=`${Number(n)/4}rem`;return zd.has(n)?e:`var(${["--und","space",n].join("-")}, ${e})`}function $e(n,e,t){let i=Uo.map(r=>{let s=r==="0"?"var(--und-space-0, 0)":qo(r);return`${n(r)}{${e}:${t?`var(${t},${s})`:s}}`});return ge(i.join(""))}var $d=[["padding","padding"],["padding-inline","padding-inline"],["padding-block","padding-block"],["padding-inline-start","padding-inline-start"],["padding-inline-end","padding-inline-end"],["padding-block-start","padding-block-start"],["padding-block-end","padding-block-end"]];function St(n,e=[]){let t=[];for(let[i,r]of $d)if(!e.includes(i))for(let s of Uo)t.push(`${n(i,s)}{${r}:${qo(s)}}`);return ge(t.join(""))}function Ct(n,e,t){let i=[];for(let r=1;r<=t;r+=1)i.push(`${n(r)}{${e(r)}}`);return ge(i.join(""))}var Oo={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},Ho={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Sd(){let n=":is([direction='row'],[direction='horizontal'])",e=":not([direction='row'],[direction='horizontal'])",t=[],i=(r,s,o,a)=>{for(let[d,h]of Object.entries(o))t.push(`:host(${r}[${s}='${d}']){${a}:${h}}`)};return i(n,"h-align",Oo,"justify-content"),i(n,"v-align",Ho,"align-items"),i(e,"h-align",Ho,"align-items"),i(e,"v-align",Oo,"justify-content"),t.join("")}var Cd={fromAttribute:n=>n===null?!1:n===""?!0:n,toAttribute:n=>n===!0?"":n===!1||n==null?null:n},cr=class extends p{static tagName="und-stack";static properties={direction:{reflect:!0},gap:{reflect:!0},alignItems:{reflect:!0,attribute:"align-items"},justifyContent:{reflect:!0,attribute:"justify-content"},hAlign:{reflect:!0,attribute:"h-align"},vAlign:{reflect:!0,attribute:"v-align"},wrap:{reflect:!0,converter:Cd},inline:{type:Boolean,reflect:!0},scrollable:{type:Boolean,reflect:!0},padding:{reflect:!0},paddingInline:{reflect:!0,attribute:"padding-inline"},paddingBlock:{reflect:!0,attribute:"padding-block"},paddingInlineStart:{reflect:!0,attribute:"padding-inline-start"},paddingInlineEnd:{reflect:!0,attribute:"padding-inline-end"},paddingBlockStart:{reflect:!0,attribute:"padding-block-start"},paddingBlockEnd:{reflect:!0,attribute:"padding-block-end"}};static styles=u` @layer und.components{:host{display:flex;flex-direction:column;gap:var(--und-stack-gap,var(--und-space-4,1rem));box-sizing:border-box;min-inline-size:0}:host([hidden]){display:none}:host([inline]){display:inline-flex}:host([direction='row']),:host([direction='horizontal']){flex-direction:row}:host([wrap]){flex-wrap:wrap}:host([wrap='nowrap']){flex-wrap:nowrap}:host([wrap='wrap-reverse']){flex-wrap:wrap-reverse}:host([scrollable]){overflow:auto}:host([align-items='start']){align-items:flex-start}:host([align-items='center']){align-items:center}:host([align-items='end']){align-items:flex-end}:host([align-items='stretch']){align-items:stretch}:host([align-items='baseline']){align-items:baseline}:host([justify-content='start']){justify-content:flex-start}:host([justify-content='center']){justify-content:center}:host([justify-content='end']){justify-content:flex-end}:host([justify-content='between']){justify-content:space-between}:host([justify-content='around']){justify-content:space-around}:host([justify-content='evenly']){justify-content:space-evenly}
8627
8627
 
8628
8628
 
8629
8629
 
@@ -8710,7 +8710,7 @@ ${ge(Sd())}
8710
8710
  ${$e(e=>`:host([gap='${e}'])`,"gap","--und-stack-gap")}
8711
8711
  ${St((e,t)=>`:host([${e}='${t}'])`)}
8712
8712
  }
8713
- `;constructor(){super(),this.direction="column",this.wrap=!1,this.inline=!1,this.scrollable=!1}render(){return a`<slot></slot>`}};cr.define();var Ld=/^\d+(?:\.\d+)?$/,ur=class extends p{static tagName="und-grid";static properties={columns:{reflect:!0},min:{reflect:!0},gap:{reflect:!0},rowGap:{reflect:!0,attribute:"row-gap"},columnGap:{reflect:!0,attribute:"column-gap"},alignItems:{reflect:!0,attribute:"align-items"},justifyItems:{reflect:!0,attribute:"justify-items"},dense:{type:Boolean,reflect:!0},maxColumns:{reflect:!0,attribute:"max-columns"},repeat:{reflect:!0},rowHeight:{reflect:!0,attribute:"row-height"}};static styles=u` @layer und.components{:host{--_min:16rem;--_repeat:auto-fit;--_gap:var(--und-grid-gap,var(--und-space-4,1rem));--_cgap:var(--_gap);--_row-height:auto;display:grid;grid-template-columns:repeat( var(--_repeat),minmax(min(100%,var(--und-grid-min,var(--_min))),1fr) );grid-auto-rows:var(--und-grid-row-height,var(--_row-height));gap:var(--_gap);column-gap:var(--_cgap);min-inline-size:0}:host([hidden]){display:none}:host([min='xs']){--_min:8rem}:host([min='sm']){--_min:12rem}:host([min='md']){--_min:16rem}:host([min='lg']){--_min:24rem}:host([min='xl']){--_min:32rem}:host([repeat='fill']){--_repeat:auto-fill}:host([max-columns]){grid-template-columns:repeat( var(--_repeat),minmax( min( 100%,max( var(--und-grid-min,var(--_min)),calc((100% - (var(--_max,1) - 1) * var(--_cgap)) / var(--_max,1)) ) ),1fr ) )}:host([dense]){grid-auto-flow:dense}:host([align-items='start']){align-items:start}:host([align-items='center']){align-items:center}:host([align-items='end']){align-items:end}:host([align-items='stretch']){align-items:stretch}:host([justify-items='start']){justify-items:start}:host([justify-items='center']){justify-items:center}:host([justify-items='end']){justify-items:end}:host([justify-items='stretch']){justify-items:stretch}
8713
+ `;constructor(){super(),this.direction="column",this.wrap=!1,this.inline=!1,this.scrollable=!1}render(){return l`<slot></slot>`}};cr.define();var Ld=/^\d+(?:\.\d+)?$/,ur=class extends p{static tagName="und-grid";static properties={columns:{reflect:!0},min:{reflect:!0},gap:{reflect:!0},rowGap:{reflect:!0,attribute:"row-gap"},columnGap:{reflect:!0,attribute:"column-gap"},alignItems:{reflect:!0,attribute:"align-items"},justifyItems:{reflect:!0,attribute:"justify-items"},dense:{type:Boolean,reflect:!0},maxColumns:{reflect:!0,attribute:"max-columns"},repeat:{reflect:!0},rowHeight:{reflect:!0,attribute:"row-height"}};static styles=u` @layer und.components{:host{--_min:16rem;--_repeat:auto-fit;--_gap:var(--und-grid-gap,var(--und-space-4,1rem));--_cgap:var(--_gap);--_row-height:auto;display:grid;grid-template-columns:repeat( var(--_repeat),minmax(min(100%,var(--und-grid-min,var(--_min))),1fr) );grid-auto-rows:var(--und-grid-row-height,var(--_row-height));gap:var(--_gap);column-gap:var(--_cgap);min-inline-size:0}:host([hidden]){display:none}:host([min='xs']){--_min:8rem}:host([min='sm']){--_min:12rem}:host([min='md']){--_min:16rem}:host([min='lg']){--_min:24rem}:host([min='xl']){--_min:32rem}:host([repeat='fill']){--_repeat:auto-fill}:host([max-columns]){grid-template-columns:repeat( var(--_repeat),minmax( min( 100%,max( var(--und-grid-min,var(--_min)),calc((100% - (var(--_max,1) - 1) * var(--_cgap)) / var(--_max,1)) ) ),1fr ) )}:host([dense]){grid-auto-flow:dense}:host([align-items='start']){align-items:start}:host([align-items='center']){align-items:center}:host([align-items='end']){align-items:end}:host([align-items='stretch']){align-items:stretch}:host([justify-items='start']){justify-items:start}:host([justify-items='center']){justify-items:center}:host([justify-items='end']){justify-items:end}:host([justify-items='stretch']){justify-items:stretch}
8714
8714
 
8715
8715
 
8716
8716
 
@@ -8818,7 +8818,7 @@ ${Ct(e=>`:host([max-columns='${e}'])`,e=>`--_max:${e}`,12)}
8818
8818
  ${$e(e=>`:host([row-gap='${e}'])`,"row-gap")}
8819
8819
  ${$e(e=>`:host([column-gap='${e}'])`,"--_cgap")}
8820
8820
  }
8821
- `;constructor(){super(),this.dense=!1}updated(e){e.has("min")&&this.#e("--_min",this.min),e.has("rowHeight")&&this.#e("--_row-height",this.rowHeight)}#e(e,t){let i=(t??"").trim();Ld.test(i)?this.style.setProperty(e,`${Number(i)}px`):this.style.removeProperty(e)}render(){return a`<slot></slot>`}};var hr=class extends p{static tagName="und-grid-item";static properties={span:{reflect:!0},rowSpan:{reflect:!0,attribute:"row-span"}};static styles=u` @layer und.components{:host{display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}:host([hidden]){display:none}:host([span='full']){grid-column:1 / -1}
8821
+ `;constructor(){super(),this.dense=!1}updated(e){e.has("min")&&this.#e("--_min",this.min),e.has("rowHeight")&&this.#e("--_row-height",this.rowHeight)}#e(e,t){let i=(t??"").trim();Ld.test(i)?this.style.setProperty(e,`${Number(i)}px`):this.style.removeProperty(e)}render(){return l`<slot></slot>`}};var hr=class extends p{static tagName="und-grid-item";static properties={span:{reflect:!0},rowSpan:{reflect:!0,attribute:"row-span"}};static styles=u` @layer und.components{:host{display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}:host([hidden]){display:none}:host([span='full']){grid-column:1 / -1}
8822
8822
 
8823
8823
 
8824
8824
 
@@ -8838,7 +8838,7 @@ ${Ct(e=>`:host([max-columns='${e}'])`,e=>`--_max:${e}`,12)}
8838
8838
  ${Ct(e=>`:host([span='${e}'])`,e=>`grid-column:span ${e}`,12)}
8839
8839
  ${Ct(e=>`:host([row-span='${e}'])`,e=>`grid-row:span ${e}`,6)}
8840
8840
  }
8841
- `;render(){return a`<slot></slot>`}};ur.define();hr.define();var pr=class extends p{static tagName="und-center";static properties={max:{reflect:!0},intrinsic:{type:Boolean,reflect:!0},text:{type:Boolean,reflect:!0},axis:{reflect:!0},inline:{type:Boolean,reflect:!0},padding:{reflect:!0},paddingInline:{reflect:!0,attribute:"padding-inline"},paddingBlock:{reflect:!0,attribute:"padding-block"},paddingInlineStart:{reflect:!0,attribute:"padding-inline-start"},paddingInlineEnd:{reflect:!0,attribute:"padding-inline-end"},paddingBlockStart:{reflect:!0,attribute:"padding-block-start"},paddingBlockEnd:{reflect:!0,attribute:"padding-block-end"}};static styles=u` @layer und.components{:host{display:block;box-sizing:border-box;inline-size:100%;max-inline-size:var(--und-center-max,var(--und-container-content,75rem));margin-inline:auto;padding-inline:var(--und-center-gutter,var(--und-space-4,1rem))}:host([hidden]){display:none}:host([max='prose']){max-inline-size:var(--und-center-max,var(--und-container-prose,68ch))}:host([max='wide']){max-inline-size:var(--und-center-max,var(--und-container-wide,90rem))}:host([max='none']){max-inline-size:var(--und-center-max,none)}:host([intrinsic]){display:flex;flex-direction:column;align-items:center}:host([text]){text-align:center}:host([axis]),:host([inline]){display:flex;flex-direction:row;align-items:center;justify-content:center;padding-inline:var(--und-center-gutter,0)}:host([axis]:not([max])){max-inline-size:var(--und-center-max,none)}:host([inline]){display:inline-flex;inline-size:auto;max-inline-size:var(--und-center-max,none);margin-inline:0;vertical-align:middle}:host([axis='horizontal']){align-items:normal}:host([axis='vertical']){justify-content:normal}
8841
+ `;render(){return l`<slot></slot>`}};ur.define();hr.define();var pr=class extends p{static tagName="und-center";static properties={max:{reflect:!0},intrinsic:{type:Boolean,reflect:!0},text:{type:Boolean,reflect:!0},axis:{reflect:!0},inline:{type:Boolean,reflect:!0},padding:{reflect:!0},paddingInline:{reflect:!0,attribute:"padding-inline"},paddingBlock:{reflect:!0,attribute:"padding-block"},paddingInlineStart:{reflect:!0,attribute:"padding-inline-start"},paddingInlineEnd:{reflect:!0,attribute:"padding-inline-end"},paddingBlockStart:{reflect:!0,attribute:"padding-block-start"},paddingBlockEnd:{reflect:!0,attribute:"padding-block-end"}};static styles=u` @layer und.components{:host{display:block;box-sizing:border-box;inline-size:100%;max-inline-size:var(--und-center-max,var(--und-container-content,75rem));margin-inline:auto;padding-inline:var(--und-center-gutter,var(--und-space-4,1rem))}:host([hidden]){display:none}:host([max='prose']){max-inline-size:var(--und-center-max,var(--und-container-prose,68ch))}:host([max='wide']){max-inline-size:var(--und-center-max,var(--und-container-wide,90rem))}:host([max='none']){max-inline-size:var(--und-center-max,none)}:host([intrinsic]){display:flex;flex-direction:column;align-items:center}:host([text]){text-align:center}:host([axis]),:host([inline]){display:flex;flex-direction:row;align-items:center;justify-content:center;padding-inline:var(--und-center-gutter,0)}:host([axis]:not([max])){max-inline-size:var(--und-center-max,none)}:host([inline]){display:inline-flex;inline-size:auto;max-inline-size:var(--und-center-max,none);margin-inline:0;vertical-align:middle}:host([axis='horizontal']){align-items:normal}:host([axis='vertical']){justify-content:normal}
8842
8842
 
8843
8843
 
8844
8844
 
@@ -8906,7 +8906,7 @@ ${Ct(e=>`:host([span='${e}'])`,e=>`grid-column:span ${e}`,12)}
8906
8906
 
8907
8907
  ${St((e,t)=>`:host([${e}='${t}'])`)}
8908
8908
  }
8909
- `;constructor(){super(),this.intrinsic=!1,this.text=!1,this.inline=!1}render(){return a`<slot></slot>`}};pr.define();var Ed=/^(\d+(?:\.\d+)?)\s*(?:[/:]\s*(\d+(?:\.\d+)?))?$/,fr=class extends p{static tagName="und-aspect-ratio";static properties={ratio:{reflect:!0},fit:{reflect:!0},shape:{reflect:!0}};static styles=u` @layer und.components{:host{display:block;position:relative;flex-shrink:0;box-sizing:border-box;aspect-ratio:var(--und-aspect-ratio,var(--_ratio,1 / 1));overflow:clip;min-inline-size:0;min-block-size:0}:host([shape='ellipse']){border-radius:50%}:host([hidden]){display:none}:host([ratio='1/1']){--_ratio:1 / 1}:host([ratio='4/3']){--_ratio:4 / 3}:host([ratio='3/2']){--_ratio:3 / 2}:host([ratio='16/9']){--_ratio:16 / 9}:host([ratio='21/9']){--_ratio:21 / 9}:host([ratio='9/16']){--_ratio:9 / 16}:host([ratio='3/4']){--_ratio:3 / 4}:host([ratio='2/3']){--_ratio:2 / 3}::slotted(*){display:block;box-sizing:border-box;inline-size:100%;block-size:100%;object-fit:var(--und-aspect-ratio-fit,cover)}:host([fit='contain']){--und-aspect-ratio-fit:contain}:host([fit='fill']){--und-aspect-ratio-fit:fill}:host([fit='center']){display:grid;place-items:center}:host([fit='center']) ::slotted(*){inline-size:auto;block-size:auto;max-inline-size:100%;max-block-size:100%}}
8909
+ `;constructor(){super(),this.intrinsic=!1,this.text=!1,this.inline=!1}render(){return l`<slot></slot>`}};pr.define();var Ed=/^(\d+(?:\.\d+)?)\s*(?:[/:]\s*(\d+(?:\.\d+)?))?$/,fr=class extends p{static tagName="und-aspect-ratio";static properties={ratio:{reflect:!0},fit:{reflect:!0},shape:{reflect:!0}};static styles=u` @layer und.components{:host{display:block;position:relative;flex-shrink:0;box-sizing:border-box;aspect-ratio:var(--und-aspect-ratio,var(--_ratio,1 / 1));overflow:clip;min-inline-size:0;min-block-size:0}:host([shape='ellipse']){border-radius:50%}:host([hidden]){display:none}:host([ratio='1/1']){--_ratio:1 / 1}:host([ratio='4/3']){--_ratio:4 / 3}:host([ratio='3/2']){--_ratio:3 / 2}:host([ratio='16/9']){--_ratio:16 / 9}:host([ratio='21/9']){--_ratio:21 / 9}:host([ratio='9/16']){--_ratio:9 / 16}:host([ratio='3/4']){--_ratio:3 / 4}:host([ratio='2/3']){--_ratio:2 / 3}::slotted(*){display:block;box-sizing:border-box;inline-size:100%;block-size:100%;object-fit:var(--und-aspect-ratio-fit,cover)}:host([fit='contain']){--und-aspect-ratio-fit:contain}:host([fit='fill']){--und-aspect-ratio-fit:fill}:host([fit='center']){display:grid;place-items:center}:host([fit='center']) ::slotted(*){inline-size:auto;block-size:auto;max-inline-size:100%;max-block-size:100%}}
8910
8910
 
8911
8911
 
8912
8912
 
@@ -8987,7 +8987,7 @@ ${St((e,t)=>`:host([${e}='${t}'])`)}
8987
8987
 
8988
8988
 
8989
8989
 
8990
- `;updated(e){if(!e.has("ratio"))return;let t=Ed.exec((this.ratio??"").trim()),i=t?Number(t[1]):0,r=t?Number(t[2]??1):0;i>0&&r>0?this.style.setProperty("--_ratio",`${i} / ${r}`):this.style.removeProperty("--_ratio")}render(){return a`<slot></slot>`}};fr.define();var mr=class extends p{static tagName="und-section";static properties={label:{},padding:{reflect:!0},paddingInline:{reflect:!0,attribute:"padding-inline"},paddingBlock:{reflect:!0,attribute:"padding-block"},paddingInlineStart:{reflect:!0,attribute:"padding-inline-start"},paddingInlineEnd:{reflect:!0,attribute:"padding-inline-end"},paddingBlockStart:{reflect:!0,attribute:"padding-block-start"},paddingBlockEnd:{reflect:!0,attribute:"padding-block-end"},tone:{reflect:!0},variant:{reflect:!0},dividers:{reflect:!0},_headingText:{state:!0,attribute:!1}};static styles=u` @layer und.components{:host{display:block;min-inline-size:0}:host([hidden]){display:none}.section{--_bg:var(--und-bg-surface,#fff);display:flex;flex-direction:column;gap:var(--und-section-gap,var(--und-gap-stack-md,1rem));box-sizing:border-box;block-size:100%;padding:var(--und-section-padding,var(--und-space-4,1rem));background-color:var(--und-section-background,var(--_bg))}:host([variant='transparent']) .section{--_bg:transparent}:host([variant='muted']) .section{--_bg:var(--und-bg-muted,#0536590c)}:host([tone='default']) .section{--_bg:transparent}:host([tone='subtle']) .section{--_bg:var(--und-bg-subtle,#f9f9fb);color:var(--und-fg-default,#0a1317)}:host([dividers~='top']) .section{border-block-start:var(--und-border-width,1px) solid var(--und-border-subtle,#05365919)}:host([dividers~='bottom']) .section{border-block-end:var(--und-border-width,1px) solid var(--und-border-subtle,#05365919)}:host([dividers~='start']) .section{border-inline-start:var(--und-border-width,1px) solid var(--und-border-subtle,#05365919)}:host([dividers~='end']) .section{border-inline-end:var(--und-border-width,1px) solid var(--und-border-subtle,#05365919)}.heading:not(.has-heading){display:none}
8990
+ `;updated(e){if(!e.has("ratio"))return;let t=Ed.exec((this.ratio??"").trim()),i=t?Number(t[1]):0,r=t?Number(t[2]??1):0;i>0&&r>0?this.style.setProperty("--_ratio",`${i} / ${r}`):this.style.removeProperty("--_ratio")}render(){return l`<slot></slot>`}};fr.define();var mr=class extends p{static tagName="und-section";static properties={label:{},padding:{reflect:!0},paddingInline:{reflect:!0,attribute:"padding-inline"},paddingBlock:{reflect:!0,attribute:"padding-block"},paddingInlineStart:{reflect:!0,attribute:"padding-inline-start"},paddingInlineEnd:{reflect:!0,attribute:"padding-inline-end"},paddingBlockStart:{reflect:!0,attribute:"padding-block-start"},paddingBlockEnd:{reflect:!0,attribute:"padding-block-end"},tone:{reflect:!0},variant:{reflect:!0},dividers:{reflect:!0},_headingText:{state:!0,attribute:!1}};static styles=u` @layer und.components{:host{display:block;min-inline-size:0}:host([hidden]){display:none}.section{--_bg:var(--und-bg-surface,#fff);display:flex;flex-direction:column;gap:var(--und-section-gap,var(--und-gap-stack-md,1rem));box-sizing:border-box;block-size:100%;padding:var(--und-section-padding,var(--und-space-4,1rem));background-color:var(--und-section-background,var(--_bg))}:host([variant='transparent']) .section{--_bg:transparent}:host([variant='muted']) .section{--_bg:var(--und-bg-muted,#0536590c)}:host([tone='default']) .section{--_bg:transparent}:host([tone='subtle']) .section{--_bg:var(--und-bg-subtle,#f9f9fb);color:var(--und-fg-default,#0a1317)}:host([dividers~='top']) .section{border-block-start:var(--und-border-width,1px) solid var(--und-border-subtle,#05365919)}:host([dividers~='bottom']) .section{border-block-end:var(--und-border-width,1px) solid var(--und-border-subtle,#05365919)}:host([dividers~='start']) .section{border-inline-start:var(--und-border-width,1px) solid var(--und-border-subtle,#05365919)}:host([dividers~='end']) .section{border-inline-end:var(--und-border-width,1px) solid var(--und-border-subtle,#05365919)}.heading:not(.has-heading){display:none}
8991
8991
 
8992
8992
 
8993
8993
 
@@ -9052,7 +9052,7 @@ ${St((e,t)=>`:host([${e}='${t}'])`)}
9052
9052
  ${$e(e=>`:host([padding='${e}']) .section`,"padding","--und-section-padding")}
9053
9053
  ${St((e,t)=>`:host([${e}='${t}']) .section`,["padding"])}
9054
9054
  }
9055
- `;constructor(){super(),this._headingText=""}#e=e=>{let t=e.target;this._headingText=t.assignedNodes({flatten:!0}).map(i=>i.textContent??"").join("").replace(/\s+/g," ").trim()};render(){let e=this.label?.trim()||this._headingText;return a`<section part="base" class="section" aria-label=${e||c}>
9055
+ `;constructor(){super(),this._headingText=""}#e=e=>{let t=e.target;this._headingText=t.assignedNodes({flatten:!0}).map(i=>i.textContent??"").join("").replace(/\s+/g," ").trim()};render(){let e=this.label?.trim()||this._headingText;return l`<section part="base" class="section" aria-label=${e||c}>
9056
9056
  <div part="heading" class="heading ${this._headingText?"has-heading":""}">
9057
9057
  <slot name="heading" @slotchange=${this.#e}></slot>
9058
9058
  </div>
@@ -9142,7 +9142,7 @@ ${$e(e=>`:host([padding='${e}']) .section`,"padding","--und-section-padding")}
9142
9142
 
9143
9143
 
9144
9144
 
9145
- `;#e;#t=new Set;constructor(){super(),this.orientation="vertical",this._overflowing=!1,this._atStart=!1,this._atEnd=!1}get#i(){return this.renderRoot?.querySelector(".viewport")??null}disconnectedCallback(){super.disconnectedCallback(),this.#e?.disconnect(),this.#e=void 0,this.#t.clear()}firstUpdated(){if(!1)return;let e=this.#i;!e||typeof ResizeObserver>"u"||(this.#e=new ResizeObserver(()=>this.#n()),this.#e.observe(e),this.#r(),queueMicrotask(this.#n))}updated(e){e.has("orientation")&&queueMicrotask(this.#n),e.has("_overflowing")&&this._overflowing&&!this.label&&C("scroll-area-label","<und-scroll-area> overflows without a `label`; screen reader users hear an unnamed scrollable area.")}#r(){if(!this.#e)return;let e=new Set(this.children);for(let t of this.#t)e.has(t)||this.#e.unobserve(t);for(let t of e)this.#t.has(t)||this.#e.observe(t);this.#t=e}#n=()=>{let e=this.#i;if(!e)return;let t=this.orientation==="horizontal",i=t?e.clientWidth:e.clientHeight,r=t?e.scrollWidth:e.scrollHeight,s=Math.abs(t?e.scrollLeft:e.scrollTop),o=r-i>Lt||this.orientation==="both"&&e.scrollWidth-e.clientWidth>Lt;this._overflowing=o,this._atStart=r-i>Lt&&s>Lt,this._atEnd=r-i>Lt&&s+i<r-Lt};#s=()=>{this.#r(),this.#n()};render(){let e=this._overflowing?this.label:void 0;return a`<div
9145
+ `;#e;#t=new Set;constructor(){super(),this.orientation="vertical",this._overflowing=!1,this._atStart=!1,this._atEnd=!1}get#i(){return this.renderRoot?.querySelector(".viewport")??null}disconnectedCallback(){super.disconnectedCallback(),this.#e?.disconnect(),this.#e=void 0,this.#t.clear()}firstUpdated(){if(!1)return;let e=this.#i;!e||typeof ResizeObserver>"u"||(this.#e=new ResizeObserver(()=>this.#n()),this.#e.observe(e),this.#r(),queueMicrotask(this.#n))}updated(e){e.has("orientation")&&queueMicrotask(this.#n),e.has("_overflowing")&&this._overflowing&&!this.label&&C("scroll-area-label","<und-scroll-area> overflows without a `label`; screen reader users hear an unnamed scrollable area.")}#r(){if(!this.#e)return;let e=new Set(this.children);for(let t of this.#t)e.has(t)||this.#e.unobserve(t);for(let t of e)this.#t.has(t)||this.#e.observe(t);this.#t=e}#n=()=>{let e=this.#i;if(!e)return;let t=this.orientation==="horizontal",i=t?e.clientWidth:e.clientHeight,r=t?e.scrollWidth:e.scrollHeight,s=Math.abs(t?e.scrollLeft:e.scrollTop),o=r-i>Lt||this.orientation==="both"&&e.scrollWidth-e.clientWidth>Lt;this._overflowing=o,this._atStart=r-i>Lt&&s>Lt,this._atEnd=r-i>Lt&&s+i<r-Lt};#s=()=>{this.#r(),this.#n()};render(){let e=this._overflowing?this.label:void 0;return l`<div
9146
9146
  part="viewport"
9147
9147
  class="viewport ${this._atStart?"at-start":""} ${this._atEnd?"at-end":""}"
9148
9148
  tabindex=${this._overflowing?"0":c}
@@ -9291,13 +9291,13 @@ ${$e(e=>`:host([padding='${e}']) .section`,"padding","--und-section-padding")}
9291
9291
 
9292
9292
 
9293
9293
 
9294
- `;#e=new ke(this,"und-app-shell");constructor(){super(),this.open=!1,this.panelRole="navigation",this.panelLabel="Side panel",this.skipLabel="Skip to main content",this.toggleLabel="Menu",this._hasHeader=!1,this._hasPanel=!1,this._hasFooter=!1}connectedCallback(){super.connectedCallback(),!!1&&(this._hasHeader=this.#t("header"),this._hasPanel=this.#t("panel"),this._hasFooter=this.#t("footer"))}#t(e){return this.querySelector(`:scope > [slot="${e}"]`)!==null}#i=e=>{let t=e.target,i=t.assignedNodes({flatten:!0}).some(r=>r.nodeType===Node.ELEMENT_NODE||(r.textContent??"").trim()!=="");t.name==="header"?this._hasHeader=i:t.name==="panel"?this._hasPanel=i:t.name==="footer"&&(this._hasFooter=i)};#r=e=>{e.preventDefault(),this.renderRoot.querySelector(".main")?.focus()};#n=()=>{this.#s(!this.open)};#s(e){this.open!==e&&(this.open=e,this.emit("und-panel-toggle",{open:e}))}#o=e=>{if(e.key!=="Escape"||!this.open)return;let t=this.renderRoot.querySelector(".toggle");!t||getComputedStyle(t).display==="none"||(this.#s(!1),t.focus())};render(){let e=this.#e.part("panel"),t=this._hasPanel;return a`<div class="shell ${t?"with-panel":""}" @keydown=${this.#o}>
9294
+ `;#e=new ke(this,"und-app-shell");constructor(){super(),this.open=!1,this.panelRole="navigation",this.panelLabel="Side panel",this.skipLabel="Skip to main content",this.toggleLabel="Menu",this._hasHeader=!1,this._hasPanel=!1,this._hasFooter=!1}connectedCallback(){super.connectedCallback(),!!1&&(this._hasHeader=this.#t("header"),this._hasPanel=this.#t("panel"),this._hasFooter=this.#t("footer"))}#t(e){return this.querySelector(`:scope > [slot="${e}"]`)!==null}#i=e=>{let t=e.target,i=t.assignedNodes({flatten:!0}).some(r=>r.nodeType===Node.ELEMENT_NODE||(r.textContent??"").trim()!=="");t.name==="header"?this._hasHeader=i:t.name==="panel"?this._hasPanel=i:t.name==="footer"&&(this._hasFooter=i)};#r=e=>{e.preventDefault(),this.renderRoot.querySelector(".main")?.focus()};#n=()=>{this.#s(!this.open)};#s(e){this.open!==e&&(this.open=e,this.emit("und-panel-toggle",{open:e}))}#o=e=>{if(e.key!=="Escape"||!this.open)return;let t=this.renderRoot.querySelector(".toggle");!t||getComputedStyle(t).display==="none"||(this.#s(!1),t.focus())};render(){let e=this.#e.part("panel"),t=this._hasPanel;return l`<div class="shell ${t?"with-panel":""}" @keydown=${this.#o}>
9295
9295
  <a part="skip-link" class="skip" href="#" @click=${this.#r}>${this.skipLabel}</a>
9296
9296
  <header
9297
9297
  part="header"
9298
9298
  class="header ${this._hasHeader?"has-header":""} ${t?"has-panel":""}"
9299
9299
  >
9300
- ${t?a`<button
9300
+ ${t?l`<button
9301
9301
  part="toggle"
9302
9302
  class="toggle"
9303
9303
  type="button"
@@ -9559,7 +9559,7 @@ ${$e(e=>`:host([padding='${e}']) .section`,"padding","--und-section-padding")}
9559
9559
 
9560
9560
 
9561
9561
 
9562
- `;#e=new y(this);#t;#i=!1;constructor(){super(),this.orientation="vertical",this.min=10,this.max=90,this.step=5,this.collapsible=!1,this.collapsed=!1,this.reverse=!1,this.label="Resize",this._dragging=!1}connectedCallback(){super.connectedCallback(),!!1&&(this.setAttribute("role","separator"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.addEventListener("keydown",this.#p),this.addEventListener("pointerdown",this.#f),this.addEventListener("pointermove",this.#m),this.addEventListener("pointerup",this.#b),this.addEventListener("pointercancel",this.#b))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.#p),this.removeEventListener("pointerdown",this.#f),this.removeEventListener("pointermove",this.#m),this.removeEventListener("pointerup",this.#b),this.removeEventListener("pointercancel",this.#b)}get target(){return this.for?this.getRootNode().getElementById?.(this.for)??null:this.reverse?this.nextElementSibling:this.previousElementSibling}get#r(){return this.reverse}get#n(){return this.orientation!=="horizontal"}get#s(){return this.collapsible?0:this.min}#o(e){let t=(e.parentElement??e).getBoundingClientRect();return this.#n?t.width:t.height}#d(){let e=this.target;if(!e)return;let t=this.#o(e);if(t<=0)return;let i=e.getBoundingClientRect();return(this.#n?i.width:i.height)/t*100}#a(e){return Math.min(this.max,Math.max(this.min,e))}#l(){let e=this.target;if(!e||this.value===void 0)return;let t=this.collapsed?"0%":`${this.value}%`;this.#n?e.style.inlineSize=t:e.style.blockSize=t,e.style.flexShrink="0"}#c(){if(!1)return;this.setAttribute("aria-orientation",this.#n?"vertical":"horizontal"),this.setAttribute("aria-valuemin",String(this.#s)),this.setAttribute("aria-valuemax",String(this.max)),this.value!==void 0&&this.setAttribute("aria-valuenow",String(Math.round(this.collapsed?0:this.value))),(this.#i||!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby"))&&(this.setAttribute("aria-label",this.label),this.#i=!0);let e=this.target?.id;e&&this.setAttribute("aria-controls",e)}firstUpdated(){this.value===void 0&&queueMicrotask(()=>{let e=this.#d();e!==void 0&&this.value===void 0&&(this.value=Math.round(e*10)/10)}),!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby")&&!this.label&&C("resize-handle-name","<und-resize-handle> needs an accessible name (`label`).")}updated(){this.#c(),this.#l()}#u(e,t=!1){t||(this.#t=void 0),this.value=t?this.value:Math.round(this.#a(e)*10)/10,this.collapsed=t,this.emit("und-resize",{value:t?0:this.value??0,collapsed:t})}#h(){this.collapsible&&(this.collapsed?this.#u(this.#t??this.value??this.min):(this.#t=this.value??this.#d(),this.#u(this.value??this.min,!0)))}#p=e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;let t=this.#n,i=0,r;switch(e.key){case"ArrowRight":t&&(i=this.#e.isRtl?-1:1);break;case"ArrowLeft":t&&(i=this.#e.isRtl?1:-1);break;case"ArrowDown":t||(i=1);break;case"ArrowUp":t||(i=-1);break;case"Home":r=this.min;break;case"End":r=this.max;break;case"Enter":e.preventDefault(),this.#h();return;default:return}if(i===0&&r===void 0)return;e.preventDefault();let s=this.collapsed?this.min:this.value??this.#d()??this.min;this.#u(r??s+(this.#r?-i:i)*this.step)};#f=e=>{if(!(e.button!==0||!this.target)){e.preventDefault(),this.focus({preventScroll:!0}),this._dragging=!0;try{this.setPointerCapture(e.pointerId)}catch{}}};#m=e=>{if(!this._dragging)return;let t=this.target;if(!t)return;let i=this.#o(t);if(i<=0)return;let r=t.getBoundingClientRect(),s,o=this.#r;this.#n?this.#e.isRtl!==o?s=r.right-e.clientX:s=e.clientX-r.left:s=o?r.bottom-e.clientY:e.clientY-r.top,this.#u(s/i*100)};#b=e=>{this._dragging&&(this._dragging=!1,this.hasPointerCapture?.(e.pointerId)&&this.releasePointerCapture(e.pointerId))};render(){let e=this._dragging?"dragging":"";return a`<span part="line" class="line ${e}"></span
9562
+ `;#e=new y(this);#t;#i=!1;constructor(){super(),this.orientation="vertical",this.min=10,this.max=90,this.step=5,this.collapsible=!1,this.collapsed=!1,this.reverse=!1,this.label="Resize",this._dragging=!1}connectedCallback(){super.connectedCallback(),!!1&&(this.setAttribute("role","separator"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.addEventListener("keydown",this.#p),this.addEventListener("pointerdown",this.#f),this.addEventListener("pointermove",this.#m),this.addEventListener("pointerup",this.#b),this.addEventListener("pointercancel",this.#b))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.#p),this.removeEventListener("pointerdown",this.#f),this.removeEventListener("pointermove",this.#m),this.removeEventListener("pointerup",this.#b),this.removeEventListener("pointercancel",this.#b)}get target(){return this.for?this.getRootNode().getElementById?.(this.for)??null:this.reverse?this.nextElementSibling:this.previousElementSibling}get#r(){return this.reverse}get#n(){return this.orientation!=="horizontal"}get#s(){return this.collapsible?0:this.min}#o(e){let t=(e.parentElement??e).getBoundingClientRect();return this.#n?t.width:t.height}#d(){let e=this.target;if(!e)return;let t=this.#o(e);if(t<=0)return;let i=e.getBoundingClientRect();return(this.#n?i.width:i.height)/t*100}#a(e){return Math.min(this.max,Math.max(this.min,e))}#l(){let e=this.target;if(!e||this.value===void 0)return;let t=this.collapsed?"0%":`${this.value}%`;this.#n?e.style.inlineSize=t:e.style.blockSize=t,e.style.flexShrink="0"}#c(){if(!1)return;this.setAttribute("aria-orientation",this.#n?"vertical":"horizontal"),this.setAttribute("aria-valuemin",String(this.#s)),this.setAttribute("aria-valuemax",String(this.max)),this.value!==void 0&&this.setAttribute("aria-valuenow",String(Math.round(this.collapsed?0:this.value))),(this.#i||!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby"))&&(this.setAttribute("aria-label",this.label),this.#i=!0);let e=this.target?.id;e&&this.setAttribute("aria-controls",e)}firstUpdated(){this.value===void 0&&queueMicrotask(()=>{let e=this.#d();e!==void 0&&this.value===void 0&&(this.value=Math.round(e*10)/10)}),!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby")&&!this.label&&C("resize-handle-name","<und-resize-handle> needs an accessible name (`label`).")}updated(){this.#c(),this.#l()}#u(e,t=!1){t||(this.#t=void 0),this.value=t?this.value:Math.round(this.#a(e)*10)/10,this.collapsed=t,this.emit("und-resize",{value:t?0:this.value??0,collapsed:t})}#h(){this.collapsible&&(this.collapsed?this.#u(this.#t??this.value??this.min):(this.#t=this.value??this.#d(),this.#u(this.value??this.min,!0)))}#p=e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;let t=this.#n,i=0,r;switch(e.key){case"ArrowRight":t&&(i=this.#e.isRtl?-1:1);break;case"ArrowLeft":t&&(i=this.#e.isRtl?1:-1);break;case"ArrowDown":t||(i=1);break;case"ArrowUp":t||(i=-1);break;case"Home":r=this.min;break;case"End":r=this.max;break;case"Enter":e.preventDefault(),this.#h();return;default:return}if(i===0&&r===void 0)return;e.preventDefault();let s=this.collapsed?this.min:this.value??this.#d()??this.min;this.#u(r??s+(this.#r?-i:i)*this.step)};#f=e=>{if(!(e.button!==0||!this.target)){e.preventDefault(),this.focus({preventScroll:!0}),this._dragging=!0;try{this.setPointerCapture(e.pointerId)}catch{}}};#m=e=>{if(!this._dragging)return;let t=this.target;if(!t)return;let i=this.#o(t);if(i<=0)return;let r=t.getBoundingClientRect(),s,o=this.#r;this.#n?this.#e.isRtl!==o?s=r.right-e.clientX:s=e.clientX-r.left:s=o?r.bottom-e.clientY:e.clientY-r.top,this.#u(s/i*100)};#b=e=>{this._dragging&&(this._dragging=!1,this.hasPointerCapture?.(e.pointerId)&&this.releasePointerCapture(e.pointerId))};render(){let e=this._dragging?"dragging":"";return l`<span part="line" class="line ${e}"></span
9563
9563
  ><span part="pill" class="pill ${e}"></span>`}};Et.define();var xr=class extends p{static tagName="und-banner";static properties={tone:{reflect:!0},live:{reflect:!0},dismissible:{type:Boolean,reflect:!0},sticky:{type:Boolean,reflect:!0},label:{},dismissLabel:{attribute:"dismiss-label"},heading:{},container:{reflect:!0},elevation:{reflect:!0}};static styles=u` @layer und.components{:host{display:block}:host([hidden]){display:none}:host([sticky]){position:sticky;inset-block-start:0;z-index:var(--und-banner-z-index,10)}.banner{--_bg:var(--und-status-info-bg,#0082fb33);--_fg:var(--und-status-info-fg,#042f97);box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--und-banner-gap,var(--und-space-3,0.75rem) var(--und-space-2,0.5rem));align-items:center;padding-block:var(--und-banner-padding-block,var(--und-space-3,0.75rem));padding-inline:var(--und-banner-padding-inline,var(--und-space-4,1rem));border-radius:0;background-color:var(--_bg);box-shadow:var(--_elevation,none);color:var(--_fg);font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286}:host( :is( :lang(hi),:lang(mr),:lang(ne),:lang(bn),:lang(gu),:lang(pa),:lang(ta),:lang(te),:lang(kn),:lang(ml),:lang(or),:lang(as),:lang(sa),:lang(kok) ) ) .banner{line-height:var(--und-text-body-md-lh-indic,1.75)}:host([tone='success']) .banner{--_bg:var(--und-status-success-bg,#0b991f33);--_fg:var(--und-status-success-fg,#09441f)}:host([tone='warning']) .banner{--_bg:var(--und-status-warning-bg,#e2a40033);--_fg:var(--und-status-warning-fg,#753f07)}:host([tone='danger']) .banner{--_bg:var(--und-status-danger-bg,#e3193b33);--_fg:var(--und-status-danger-fg,#7b0210)}:host([tone='neutral']) .banner{--_bg:var(--und-bg-muted,#0536590c);--_fg:var(--und-fg-default,#0a1317)}:host([container='card']) .banner{border-radius:var(--und-banner-radius,var(--und-radius-xl,12px))}:host([elevation='low']) .banner{--_elevation:var(--und-shadow-1,0 1px 1px rgb(0 0 0 / 10%),0 2px 8px rgb(0 0 0 / 10%))}:host([elevation='med']) .banner{--_elevation:var(--und-shadow-2,0 1px 2px rgb(0 0 0 / 10%),0 2px 12px rgb(0 0 0 / 10%))}:host([elevation='high']) .banner{--_elevation:var(--und-shadow-3,0 2px 2px rgb(0 0 0 / 10%),0 8px 24px rgb(0 0 0 / 10%))}.has-heading{align-items:flex-start}.icon{display:inline-flex;flex:none;align-items:center;color:inherit}.icon svg{inline-size:1.25rem;block-size:1.25rem}.message{flex:1 1 8rem;min-inline-size:0;overflow-wrap:anywhere}.heading{font-size:var(--und-text-label-md-size,0.875rem);font-weight:var(--und-font-weight-semibold,600)}.heading.empty{display:none}.has-heading .text{font-size:var(--und-text-caption-size,0.75rem);line-height:1.6667}.actions{display:flex;flex-wrap:wrap;gap:var(--und-space-2,0.5rem);align-items:center;color:var(--und-fg-default,#0a1317)}.actions.empty{display:none}.dismiss{display:inline-flex;flex:none;align-items:center;justify-content:center;min-inline-size:var(--und-banner-control-size,28px);min-block-size:var(--und-banner-control-size,28px);margin:calc(var(--und-space-2,0.5rem) - var(--und-space-3,0.75rem)) 0;margin-inline-start:auto;padding:0;border:0;border-radius:var(--und-radius-lg,8px);background-color:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--und-duration-fast,175ms) var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}@media (hover:hover){.dismiss:hover{background-color:var( --und-banner-overlay-hover,color-mix(in srgb,var(--und-fg-default,#0a1317) 5%,transparent) )}}.dismiss:active{background-color:var( --und-banner-overlay-pressed,color-mix(in srgb,var(--und-fg-default,#0a1317) 10%,transparent) )}.dismiss:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#0064e0);outline-offset:var(--und-focus-offset,3px)}.dismiss svg{inline-size:1rem;block-size:1rem}@media (pointer:coarse){.dismiss{min-inline-size:var(--und-target-min-coarse,44px);min-block-size:var(--und-target-min-coarse,44px)}}@media (prefers-reduced-motion:reduce){.dismiss{transition:none}}@media (forced-colors:active){.banner{outline:1px solid CanvasText;outline-offset:-1px}.icon{color:CanvasText}.dismiss{border:1px solid ButtonText;color:ButtonText}.dismiss:focus-visible{outline-color:Highlight}}}
9564
9564
 
9565
9565
 
@@ -9781,7 +9781,7 @@ ${$e(e=>`:host([padding='${e}']) .section`,"padding","--und-section-padding")}
9781
9781
 
9782
9782
 
9783
9783
 
9784
- `;#e=null;#t=!1;#i=!1;#r=!1;constructor(){super(),this.tone="info",this.live="off",this.dismissible=!1,this.sticky=!1,this.dismissLabel="Dismiss",this.container="section"}updated(e){if(!e.has("live")&&!e.has("label"))return;let t=this.live==="assertive"?"alert":this.live==="polite"?"status":this.label?"region":null;t?this.setAttribute("role",t):this.#e&&this.removeAttribute("role"),this.#e=t,t==="region"&&this.label?(this.setAttribute("aria-label",this.label),this.#t=!0):this.#t&&(this.removeAttribute("aria-label"),this.#t=!1)}dismiss(){this.emit("und-dismiss",{reason:"button"},{cancelable:!0})&&(this.hidden=!0)}#n=e=>{this.#i=e.target.assignedNodes().length>0,this.requestUpdate()};#s=e=>{let t=e.target.assignedNodes().some(i=>i.nodeType===Node.ELEMENT_NODE||!!i.textContent?.trim());t!==this.#r&&(this.#r=t,this.requestUpdate())};render(){let e=!!this.heading||this.#r;return a`<div part="base" class="banner ${e?"has-heading":""}">
9784
+ `;#e=null;#t=!1;#i=!1;#r=!1;constructor(){super(),this.tone="info",this.live="off",this.dismissible=!1,this.sticky=!1,this.dismissLabel="Dismiss",this.container="section"}updated(e){if(!e.has("live")&&!e.has("label"))return;let t=this.live==="assertive"?"alert":this.live==="polite"?"status":this.label?"region":null;t?this.setAttribute("role",t):this.#e&&this.removeAttribute("role"),this.#e=t,t==="region"&&this.label?(this.setAttribute("aria-label",this.label),this.#t=!0):this.#t&&(this.removeAttribute("aria-label"),this.#t=!1)}dismiss(){this.emit("und-dismiss",{reason:"button"},{cancelable:!0})&&(this.hidden=!0)}#n=e=>{this.#i=e.target.assignedNodes().length>0,this.requestUpdate()};#s=e=>{let t=e.target.assignedNodes().some(i=>i.nodeType===Node.ELEMENT_NODE||!!i.textContent?.trim());t!==this.#r&&(this.#r=t,this.requestUpdate())};render(){let e=!!this.heading||this.#r;return l`<div part="base" class="banner ${e?"has-heading":""}">
9785
9785
  <span part="icon" class="icon"
9786
9786
  ><slot name="icon">${ct(Vn[this.tone]??Vn.info)}</slot></span
9787
9787
  >
@@ -9794,7 +9794,7 @@ ${$e(e=>`:host([padding='${e}']) .section`,"padding","--und-section-padding")}
9794
9794
  <div part="actions" class="actions ${this.#i?"":"empty"}">
9795
9795
  <slot name="actions" @slotchange=${this.#n}></slot>
9796
9796
  </div>
9797
- ${this.dismissible?a`<button
9797
+ ${this.dismissible?l`<button
9798
9798
  part="dismiss"
9799
9799
  class="dismiss"
9800
9800
  type="button"
@@ -9849,7 +9849,7 @@ ${he(".quote")} .caption{margin-block-start:var(--und-space-2,0.5rem);font-size:
9849
9849
 
9850
9850
 
9851
9851
 
9852
- `;#e=!1;#t=e=>{this.#e=e.target.assignedNodes().length>0,this.requestUpdate()};render(){return a`<figure part="base" class="figure">
9852
+ `;#e=!1;#t=e=>{this.#e=e.target.assignedNodes().length>0,this.requestUpdate()};render(){return l`<figure part="base" class="figure">
9853
9853
  <blockquote part="quote" class="quote" cite=${yr(M(this.cite))}>
9854
9854
  <slot></slot>
9855
9855
  </blockquote>
@@ -9898,7 +9898,7 @@ ${he(".quote")} .caption{margin-block-start:var(--und-space-2,0.5rem);font-size:
9898
9898
 
9899
9899
 
9900
9900
 
9901
- `;constructor(){super(),this.tone="default",this.size="md"}render(){return a`<code part="base" class="code" dir="ltr"><slot></slot></code>`}};wr.define();var Vo=u` @layer und.components{:host{display:block}:host([hidden]){display:none}.block{--_pad-block:var(--und-space-3,0.75rem);--_pad-inline:var(--und-space-4,1rem);--_font-size:var(--und-code-block-font-size,var(--und-text-body-sm-size,0.875rem));--_lh:var(--und-code-block-line-height,1.4286);box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;border:var(--und-border-width-thin,1px) solid var(--und-code-block-border,var(--und-border-subtle,#05365919));border-radius:var(--und-code-block-radius,var(--und-radius-container,12px));background-color:var(--und-code-block-bg,var(--und-bg-card,#fff));color:var(--und-code-block-fg,var(--und-fg-default,#0a1317))}:host([size='sm']) .block{--_font-size:var(--und-code-block-font-size,var(--und-text-caption-size,0.75rem));--_lh:var(--und-code-block-line-height,1.6667)}:host([container='section']) .block{border-width:0;border-radius:0;background-color:transparent}.block.corner{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr)}.toolbar{display:flex;gap:var(--und-space-2,0.5rem);align-items:center;justify-content:space-between;padding-block:var(--und-space-2,0.5rem);padding-inline:var(--und-space-4,1rem)}.toolbar[hidden]{display:none}.titled .toolbar{border-block-end:var(--und-border-width-thin,1px) solid var(--und-code-block-border,var(--und-border-subtle,#05365919))}.corner .toolbar{grid-row:1;grid-column:2;align-self:start;block-size:calc(2 * var(--_pad-block) + var(--_font-size) * var(--_lh));margin-inline:var(--und-space-2,0.5rem);padding:0}.language{min-inline-size:0;margin:0;color:var(--und-fg-muted,#445564);font-family:var(--und-typeface-code,'SF Mono',Monaco,Consolas,monospace);font-size:var(--und-text-caption-size,0.75rem);font-weight:var(--und-font-weight-medium,500);line-height:1.6667;overflow-wrap:anywhere;white-space:pre-wrap}.language:empty{display:none}.actions{display:flex;flex-shrink:0;gap:var(--und-space-1,0.25rem);align-items:center;margin-inline-start:auto}.action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;inline-size:var(--und-code-block-button-size,28px);block-size:var(--und-code-block-button-size,28px);margin:0;padding:0;border:0;border-radius:var(--und-radius-lg,8px);background:transparent;color:var(--und-fg-muted,#445564);font:inherit;cursor:pointer;transition:background-color var(--und-duration-fast,175ms) var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}@media (hover:hover){.action:hover{background-color:color-mix(in srgb,var(--und-fg-default,#0a1317) 5%,transparent)}}.action:active,.action[aria-pressed='true']{background-color:color-mix(in srgb,var(--und-fg-default,#0a1317) 10%,transparent)}.action[aria-pressed='true']{color:var(--und-fg-default,#0a1317)}.action:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#0064e0);outline-offset:var(--und-focus-offset,3px)}.action svg{inline-size:1rem;block-size:1rem}.sr{position:absolute;inline-size:1px;block-size:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.pre{min-block-size:0;max-block-size:var(--und-code-block-max-height,none);margin:0;padding:0;overflow:auto;font-family:var(--und-typeface-code,'SF Mono',Monaco,Consolas,monospace);font-size:var(--_font-size);line-height:var(--_lh);tab-size:2;white-space:pre}.corner .pre{grid-row:1;grid-column:1}.pre:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#0064e0);outline-offset:calc(var(--und-focus-width,2px) * -1)}:host([wrap]) .pre{overflow-wrap:anywhere;white-space:pre-wrap}.code{box-sizing:border-box;display:block;min-inline-size:max-content;padding-block:var(--_pad-block);padding-inline:var(--_pad-inline);font:inherit}:host([wrap]) .code{min-inline-size:0}.numbered .code{position:relative}.numbered .code::after{position:absolute;inset-block:0;inset-inline-start:calc( var(--_pad-inline) + var(--_gutter,3ch) + var(--und-space-3,0.75rem) );border-inline-start:var(--und-border-width-thin,1px) solid var(--und-code-block-border,var(--und-border-subtle,#05365919));content:'';pointer-events:none}.line{display:block;min-block-size:1lh}.numbered .line{display:grid;grid-template-columns:var(--_gutter,3ch) minmax(0,1fr);column-gap:calc( var(--und-space-3,0.75rem) + var(--und-border-width-thin,1px) + var(--und-space-4,1rem) )}.ln{align-self:start;color:var(--und-fg-muted,#445564);text-align:end;user-select:none}.line.highlighted,.line.added,.line.removed,.line.diff-header{margin-inline:calc(var(--_pad-inline) * -1);padding-inline:var(--_pad-inline)}.line.highlighted{background-color:var(--und-code-block-highlight-bg,var(--und-accent-bg,#0082fb33))}.line.added{background-color:var( --und-code-block-added-bg,color-mix(in srgb,var(--und-status-success-solid,#0d8626) 12%,transparent) )}.line.removed{background-color:var( --und-code-block-removed-bg,color-mix(in srgb,var(--und-status-danger-solid,#d31130) 12%,transparent) )}.line.diff-header{background-color:var(--und-bg-muted,#0536590c);color:var(--und-fg-muted,#445564)}.line.added .ln{color:var(--und-status-success-fg,#09441f)}.line.removed .ln{color:var(--und-status-danger-fg,#7b0210)}.tok-keyword{color:var(--und-code-token-keyword,#0064e0)}.tok-string{color:var(--und-code-token-string,#09441f)}.tok-number,.tok-constant{color:var(--und-code-token-number,#6b2203)}.tok-comment,.tok-punctuation{color:var(--und-code-token-comment,#445564)}.tok-function{color:var(--und-code-token-function,#042f97)}.tok-type{color:var(--und-code-token-type,#3e0697)}.tok-tag{color:var(--und-code-token-tag,#7b0210)}.tok-attribute{color:var(--und-code-token-attribute,#083943)}.tok-property,.tok-operator{color:var(--und-code-token-property,#014975)}@media (pointer:coarse){.action{min-inline-size:var(--und-target-min-coarse,44px);min-block-size:var(--und-target-min-coarse,44px)}}@media (prefers-reduced-motion:reduce){.action{transition:none}}@media (forced-colors:active){.block{border-color:CanvasText}.action{border:1px solid ButtonText;color:ButtonText}.action[aria-pressed='true']{background-color:Highlight;color:HighlightText}.line.highlighted,.line.added,.line.removed{background-color:Highlight;color:HighlightText}.action:focus-visible,.pre:focus-visible{outline-color:Highlight}}}
9901
+ `;constructor(){super(),this.tone="default",this.size="md"}render(){return l`<code part="base" class="code" dir="ltr"><slot></slot></code>`}};wr.define();var Vo=u` @layer und.components{:host{display:block}:host([hidden]){display:none}.block{--_pad-block:var(--und-space-3,0.75rem);--_pad-inline:var(--und-space-4,1rem);--_font-size:var(--und-code-block-font-size,var(--und-text-body-sm-size,0.875rem));--_lh:var(--und-code-block-line-height,1.4286);box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;border:var(--und-border-width-thin,1px) solid var(--und-code-block-border,var(--und-border-subtle,#05365919));border-radius:var(--und-code-block-radius,var(--und-radius-container,12px));background-color:var(--und-code-block-bg,var(--und-bg-card,#fff));color:var(--und-code-block-fg,var(--und-fg-default,#0a1317))}:host([size='sm']) .block{--_font-size:var(--und-code-block-font-size,var(--und-text-caption-size,0.75rem));--_lh:var(--und-code-block-line-height,1.6667)}:host([container='section']) .block{border-width:0;border-radius:0;background-color:transparent}.block.corner{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr)}.toolbar{display:flex;gap:var(--und-space-2,0.5rem);align-items:center;justify-content:space-between;padding-block:var(--und-space-2,0.5rem);padding-inline:var(--und-space-4,1rem)}.toolbar[hidden]{display:none}.titled .toolbar{border-block-end:var(--und-border-width-thin,1px) solid var(--und-code-block-border,var(--und-border-subtle,#05365919))}.corner .toolbar{grid-row:1;grid-column:2;align-self:start;block-size:calc(2 * var(--_pad-block) + var(--_font-size) * var(--_lh));margin-inline:var(--und-space-2,0.5rem);padding:0}.language{min-inline-size:0;margin:0;color:var(--und-fg-muted,#445564);font-family:var(--und-typeface-code,'SF Mono',Monaco,Consolas,monospace);font-size:var(--und-text-caption-size,0.75rem);font-weight:var(--und-font-weight-medium,500);line-height:1.6667;overflow-wrap:anywhere;white-space:pre-wrap}.language:empty{display:none}.actions{display:flex;flex-shrink:0;gap:var(--und-space-1,0.25rem);align-items:center;margin-inline-start:auto}.action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;inline-size:var(--und-code-block-button-size,28px);block-size:var(--und-code-block-button-size,28px);margin:0;padding:0;border:0;border-radius:var(--und-radius-lg,8px);background:transparent;color:var(--und-fg-muted,#445564);font:inherit;cursor:pointer;transition:background-color var(--und-duration-fast,175ms) var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}@media (hover:hover){.action:hover{background-color:color-mix(in srgb,var(--und-fg-default,#0a1317) 5%,transparent)}}.action:active,.action[aria-pressed='true']{background-color:color-mix(in srgb,var(--und-fg-default,#0a1317) 10%,transparent)}.action[aria-pressed='true']{color:var(--und-fg-default,#0a1317)}.action:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#0064e0);outline-offset:var(--und-focus-offset,3px)}.action svg{inline-size:1rem;block-size:1rem}.sr{position:absolute;inline-size:1px;block-size:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.pre{min-block-size:0;max-block-size:var(--und-code-block-max-height,none);margin:0;padding:0;overflow:auto;font-family:var(--und-typeface-code,'SF Mono',Monaco,Consolas,monospace);font-size:var(--_font-size);line-height:var(--_lh);tab-size:2;white-space:pre}.corner .pre{grid-row:1;grid-column:1}.pre:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#0064e0);outline-offset:calc(var(--und-focus-width,2px) * -1)}:host([wrap]) .pre{overflow-wrap:anywhere;white-space:pre-wrap}.code{box-sizing:border-box;display:block;min-inline-size:max-content;padding-block:var(--_pad-block);padding-inline:var(--_pad-inline);font:inherit}:host([wrap]) .code{min-inline-size:0}.numbered .code{position:relative}.numbered .code::after{position:absolute;inset-block:0;inset-inline-start:calc( var(--_pad-inline) + var(--_gutter,3ch) + var(--und-space-3,0.75rem) );border-inline-start:var(--und-border-width-thin,1px) solid var(--und-code-block-border,var(--und-border-subtle,#05365919));content:'';pointer-events:none}.line{display:block;min-block-size:1lh}.numbered .line{display:grid;grid-template-columns:var(--_gutter,3ch) minmax(0,1fr);column-gap:calc( var(--und-space-3,0.75rem) + var(--und-border-width-thin,1px) + var(--und-space-4,1rem) )}.ln{align-self:start;color:var(--und-fg-muted,#445564);text-align:end;user-select:none}.line.highlighted,.line.added,.line.removed,.line.diff-header{margin-inline:calc(var(--_pad-inline) * -1);padding-inline:var(--_pad-inline)}.line.highlighted{background-color:var(--und-code-block-highlight-bg,var(--und-accent-bg,#0082fb33))}.line.added{background-color:var( --und-code-block-added-bg,color-mix(in srgb,var(--und-status-success-solid,#0d8626) 12%,transparent) )}.line.removed{background-color:var( --und-code-block-removed-bg,color-mix(in srgb,var(--und-status-danger-solid,#d31130) 12%,transparent) )}.line.diff-header{background-color:var(--und-bg-muted,#0536590c);color:var(--und-fg-muted,#445564)}.line.added .ln{color:var(--und-status-success-fg,#09441f)}.line.removed .ln{color:var(--und-status-danger-fg,#7b0210)}.tok-keyword{color:var(--und-code-token-keyword,#0064e0)}.tok-string{color:var(--und-code-token-string,#09441f)}.tok-number,.tok-constant{color:var(--und-code-token-number,#6b2203)}.tok-comment,.tok-punctuation{color:var(--und-code-token-comment,#445564)}.tok-function{color:var(--und-code-token-function,#042f97)}.tok-type{color:var(--und-code-token-type,#3e0697)}.tok-tag{color:var(--und-code-token-tag,#7b0210)}.tok-attribute{color:var(--und-code-token-attribute,#083943)}.tok-property,.tok-operator{color:var(--und-code-token-property,#014975)}@media (pointer:coarse){.action{min-inline-size:var(--und-target-min-coarse,44px);min-block-size:var(--und-target-min-coarse,44px)}}@media (prefers-reduced-motion:reduce){.action{transition:none}}@media (forced-colors:active){.block{border-color:CanvasText}.action{border:1px solid ButtonText;color:ButtonText}.action[aria-pressed='true']{background-color:Highlight;color:HighlightText}.line.highlighted,.line.added,.line.removed{background-color:Highlight;color:HighlightText}.action:focus-visible,.pre:focus-visible{outline-color:Highlight}}}
9902
9902
 
9903
9903
 
9904
9904
 
@@ -10247,7 +10247,7 @@ ${he(".quote")} .caption{margin-block-start:var(--und-space-2,0.5rem);font-size:
10247
10247
  `;function Md(n){let e=n.replace(/\r\n?/g,`
10248
10248
  `).split(`
10249
10249
  `);for(;(e[0]??"x").trim()==="";)e.shift();for(;(e[e.length-1]??"x").trim()==="";)e.pop();let t=e.filter(r=>r.trim()!=="").map(r=>r.length-r.trimStart().length),i=t.length>0?Math.min(...t):0;return e.map(r=>r.slice(i)).join(`
10250
- `)}function Nd(n){let e=new Set;for(let t of(n??"").split(",")){let i=/^\s*(\d+)\s*(?:-\s*(\d+))?\s*$/.exec(t);if(!i)continue;let r=Number(i[1]),s=Math.min(Number(i[2]??i[1]),r+1e4);for(let o=r;o<=s;o+=1)e.add(o)}return e}var Dd=n=>n.startsWith("@@")||n.startsWith("+++")||n.startsWith("---")?" diff-header":n.startsWith("+")?" added":n.startsWith("-")?" removed":"",jo=n=>{let e=(n??"").toLowerCase().replace(/[^a-z0-9+#-]/g,"");return e||void 0},Id=k`<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/>`,Bd=k`<path d="m5 12.5 4.5 4.5L19 7.5"/>`,Pd=k`<path d="M4 6h16M4 12h13a3 3 0 0 1 0 6h-4m0 0 2-2m-2 2 2 2M4 18h5"/>`,Ko=n=>a`<svg
10250
+ `)}function Nd(n){let e=new Set;for(let t of(n??"").split(",")){let i=/^\s*(\d+)\s*(?:-\s*(\d+))?\s*$/.exec(t);if(!i)continue;let r=Number(i[1]),s=Math.min(Number(i[2]??i[1]),r+1e4);for(let o=r;o<=s;o+=1)e.add(o)}return e}var Dd=n=>n.startsWith("@@")||n.startsWith("+++")||n.startsWith("---")?" diff-header":n.startsWith("+")?" added":n.startsWith("-")?" removed":"",jo=n=>{let e=(n??"").toLowerCase().replace(/[^a-z0-9+#-]/g,"");return e||void 0},Id=k`<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/>`,Bd=k`<path d="m5 12.5 4.5 4.5L19 7.5"/>`,Pd=k`<path d="M4 6h16M4 12h13a3 3 0 0 1 0 6h-4m0 0 2-2m-2 2 2 2M4 18h5"/>`,Ko=n=>l`<svg
10251
10251
  viewBox="0 0 24 24"
10252
10252
  fill="none"
10253
10253
  stroke="currentColor"
@@ -10259,18 +10259,18 @@ ${he(".quote")} .caption{margin-block-start:var(--und-space-2,0.5rem);font-size:
10259
10259
  >
10260
10260
  ${n}
10261
10261
  </svg>`,_r=class extends p{static tagName="und-code-block";static styles=Vo;static properties={code:{},language:{reflect:!0},heading:{},size:{reflect:!0},container:{reflect:!0},highlightLines:{attribute:"highlight-lines"},diff:{type:Boolean,reflect:!0},lineNumbers:{type:Boolean,reflect:!0,attribute:"line-numbers"},startLine:{type:Number,attribute:"start-line"},wrap:{type:Boolean,reflect:!0},wrapToggle:{type:Boolean,reflect:!0,attribute:"wrap-toggle"},copyable:{type:Boolean,reflect:!0},label:{},copyLabel:{attribute:"copy-label"},copiedLabel:{attribute:"copied-label"},copyFailedLabel:{attribute:"copy-failed-label"},wrapLabel:{attribute:"wrap-label"}};#e;#t;#i="";#r="idle";constructor(){super(),this.lineNumbers=!1,this.size="md",this.container="card",this.diff=!1,this.startLine=1,this.wrap=!1,this.wrapToggle=!1,this.copyable=!1,this.label="Code",this.copyLabel="Copy",this.copiedLabel="Copied",this.copyFailedLabel="Copy failed",this.wrapLabel="Wrap lines"}get text(){return this.code!==void 0?this.code.replace(/\n$/,""):Md(this.#i)}connectedCallback(){super.connectedCallback(),!!1&&(this.#n(),this.#e=new MutationObserver(()=>this.#n()),this.#e.observe(this,{childList:!0,characterData:!0,subtree:!0}))}disconnectedCallback(){super.disconnectedCallback(),this.#e?.disconnect(),this.#e=void 0,clearTimeout(this.#t)}#n(){this.#i=this.textContent??"",this.requestUpdate()}async copy(){let e=!1;try{await navigator.clipboard.writeText(this.text),e=!0}catch{}return clearTimeout(this.#t),this.#r=e?"copied":"idle",this.requestUpdate(),e&&(this.#t=setTimeout(()=>{this.#r="idle",this.requestUpdate()},2e3)),N(e?this.copiedLabel:this.copyFailedLabel),this.emit("und-copy",{success:e}),e}#s=()=>{this.wrap=!this.wrap,this.emit("und-wrap-change",{wrap:this.wrap})};updated(){let e=this.renderRoot.querySelector(".code");if(e)if(this.lineNumbers){let t=(Math.trunc(Number(this.startLine))||1)+this.text.split(`
10262
- `).length-1;e.style.setProperty("--_gutter",`${String(t).length}ch`)}else e.style.removeProperty("--_gutter")}#o(){let e=jo(this.language),t=e?`code language-${e}`:"code",i=Nd(this.highlightLines);if(!this.lineNumbers&&!this.diff&&i.size===0)return a`<code part="code" class=${t} data-language=${e??c}
10262
+ `).length-1;e.style.setProperty("--_gutter",`${String(t).length}ch`)}else e.style.removeProperty("--_gutter")}#o(){let e=jo(this.language),t=e?`code language-${e}`:"code",i=Nd(this.highlightLines);if(!this.lineNumbers&&!this.diff&&i.size===0)return l`<code part="code" class=${t} data-language=${e??c}
10263
10263
  >${this.text}</code
10264
- >`;let r=Math.trunc(Number(this.startLine))||1;return a`<code part="code" class=${t} data-language=${e??c}
10264
+ >`;let r=Math.trunc(Number(this.startLine))||1;return l`<code part="code" class=${t} data-language=${e??c}
10265
10265
  >${this.text.split(`
10266
- `).map((s,o)=>{let l=r+o,d=`line${i.has(l)?" highlighted":""}${this.diff?Dd(s):""}`;return a`<span part="line" class=${d}
10267
- >${this.lineNumbers?a`<span part="line-number" class="ln" aria-hidden="true">${l}</span>`:c}<span class="lc">${s}</span></span
10266
+ `).map((s,o)=>{let a=r+o,d=`line${i.has(a)?" highlighted":""}${this.diff?Dd(s):""}`;return l`<span part="line" class=${d}
10267
+ >${this.lineNumbers?l`<span part="line-number" class="ln" aria-hidden="true">${a}</span>`:c}<span class="lc">${s}</span></span
10268
10268
  >`})}</code
10269
- >`}render(){let e=jo(this.language),t=this.heading?.trim()??"",i=t&&e?`${t} \u2014 ${e}`:t||e||"",r=this.copyable||this.wrapToggle,s=this.#r==="copied",o=`block${i?" titled":r?" corner":""}${this.lineNumbers?" numbered":""}`;return a`<div part="base" class=${o}>
10269
+ >`}render(){let e=jo(this.language),t=this.heading?.trim()??"",i=t&&e?`${t} \u2014 ${e}`:t||e||"",r=this.copyable||this.wrapToggle,s=this.#r==="copied",o=`block${i?" titled":r?" corner":""}${this.lineNumbers?" numbered":""}`;return l`<div part="base" class=${o}>
10270
10270
  <div part="toolbar" class="toolbar" ?hidden=${!i&&!r}>
10271
10271
  <span part="language" class="language">${i}</span>
10272
10272
  <div class="actions">
10273
- ${this.wrapToggle?a`<button
10273
+ ${this.wrapToggle?l`<button
10274
10274
  part="wrap-button"
10275
10275
  class="action"
10276
10276
  type="button"
@@ -10279,7 +10279,7 @@ ${he(".quote")} .caption{margin-block-start:var(--und-space-2,0.5rem);font-size:
10279
10279
  >
10280
10280
  ${Ko(Pd)}<span class="sr">${this.wrapLabel}</span>
10281
10281
  </button>`:c}
10282
- ${this.copyable?a`<button
10282
+ ${this.copyable?l`<button
10283
10283
  part="copy-button"
10284
10284
  class="action"
10285
10285
  type="button"
@@ -10293,7 +10293,7 @@ ${he(".quote")} .caption{margin-block-start:var(--und-space-2,0.5rem);font-size:
10293
10293
  </div>
10294
10294
  <pre part="pre" class="pre" tabindex="0" role="group" aria-label=${this.label}>
10295
10295
  ${this.#o()}</pre>
10296
- </div>`}};_r.define();function At(n){let e=Math.trunc(Number(n));return e>=1&&e<=6?e:2}function zr(n,e,t,i){switch(n){case 1:return a`<h1 part=${t} class=${e}>${i}</h1>`;case 3:return a`<h3 part=${t} class=${e}>${i}</h3>`;case 4:return a`<h4 part=${t} class=${e}>${i}</h4>`;case 5:return a`<h5 part=${t} class=${e}>${i}</h5>`;case 6:return a`<h6 part=${t} class=${e}>${i}</h6>`;default:return a`<h2 part=${t} class=${e}>${i}</h2>`}}var Rd=n=>n.assignedNodes({flatten:!0}).some(e=>e.nodeType===Node.ELEMENT_NODE||!!e.textContent?.trim()),$r=class extends p{static tagName="und-empty-state";static properties={heading:{},headingLevel:{type:Number,attribute:"heading-level"},compact:{type:Boolean,reflect:!0}};static styles=u` @layer und.components{:host{display:block}:host([hidden]){display:none}.base{--_lh-indic:var(--und-text-body-md-lh-indic,1.75);--_gap:var(--und-space-4,1rem);box-sizing:border-box;display:flex;flex-direction:column;gap:var(--_gap);align-items:center;justify-content:center;padding:var( --und-empty-state-padding,var(--und-space-8,2rem) var(--und-space-6,1.5rem) );color:var(--und-fg-muted,#445564);font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;text-align:center}:host([compact]) .base{--_gap:var(--und-space-2,0.5rem);padding:var(--und-empty-state-padding,var(--und-space-4,1rem))}
10296
+ </div>`}};_r.define();function At(n){let e=Math.trunc(Number(n));return e>=1&&e<=6?e:2}function zr(n,e,t,i){switch(n){case 1:return l`<h1 part=${t} class=${e}>${i}</h1>`;case 3:return l`<h3 part=${t} class=${e}>${i}</h3>`;case 4:return l`<h4 part=${t} class=${e}>${i}</h4>`;case 5:return l`<h5 part=${t} class=${e}>${i}</h5>`;case 6:return l`<h6 part=${t} class=${e}>${i}</h6>`;default:return l`<h2 part=${t} class=${e}>${i}</h2>`}}var Rd=n=>n.assignedNodes({flatten:!0}).some(e=>e.nodeType===Node.ELEMENT_NODE||!!e.textContent?.trim()),$r=class extends p{static tagName="und-empty-state";static properties={heading:{},headingLevel:{type:Number,attribute:"heading-level"},compact:{type:Boolean,reflect:!0}};static styles=u` @layer und.components{:host{display:block}:host([hidden]){display:none}.base{--_lh-indic:var(--und-text-body-md-lh-indic,1.75);--_gap:var(--und-space-4,1rem);box-sizing:border-box;display:flex;flex-direction:column;gap:var(--_gap);align-items:center;justify-content:center;padding:var( --und-empty-state-padding,var(--und-space-8,2rem) var(--und-space-6,1.5rem) );color:var(--und-fg-muted,#445564);font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;text-align:center}:host([compact]) .base{--_gap:var(--und-space-2,0.5rem);padding:var(--und-empty-state-padding,var(--und-space-4,1rem))}
10297
10297
 
10298
10298
 
10299
10299
 
@@ -10414,11 +10414,11 @@ ${he(".base")} .icon{display:flex;color:var(--und-empty-state-icon-color,var(--u
10414
10414
 
10415
10415
 
10416
10416
 
10417
- `;#e=Object.freeze({});constructor(){super(),this.headingLevel=2,this.compact=!1}#t(e){return t=>{let i=Rd(t.target);this.#e[e]!==i&&(this.#e={...this.#e,[e]:i},this.requestUpdate())}}#i=this.#t("icon");#r=this.#t("heading");#n=this.#t("description");#s=this.#t("actions");render(){let e=(i,r=!1)=>r||this.#e[i]?"":" empty",t=!!this.heading;return a`<div part="base" class="base">
10417
+ `;#e=Object.freeze({});constructor(){super(),this.headingLevel=2,this.compact=!1}#t(e){return t=>{let i=Rd(t.target);this.#e[e]!==i&&(this.#e={...this.#e,[e]:i},this.requestUpdate())}}#i=this.#t("icon");#r=this.#t("heading");#n=this.#t("description");#s=this.#t("actions");render(){let e=(i,r=!1)=>r||this.#e[i]?"":" empty",t=!!this.heading;return l`<div part="base" class="base">
10418
10418
  <div part="icon" class="icon${e("icon")}">
10419
10419
  <slot name="icon" @slotchange=${this.#i}></slot>
10420
10420
  </div>
10421
- ${zr(At(this.headingLevel),`heading${e("heading",t)}`,"heading",a`<slot name="heading" @slotchange=${this.#r}>${this.heading}</slot>`)}
10421
+ ${zr(At(this.headingLevel),`heading${e("heading",t)}`,"heading",l`<slot name="heading" @slotchange=${this.#r}>${this.heading}</slot>`)}
10422
10422
  <div part="description" class="description${e("description")}">
10423
10423
  <slot @slotchange=${this.#n}></slot>
10424
10424
  </div>
@@ -10575,7 +10575,7 @@ ${he(".base")} .icon{display:flex;color:var(--und-empty-state-icon-color,var(--u
10575
10575
 
10576
10576
  ${he(".heading")}}
10577
10577
 
10578
- `;var Ud={1:"xl",2:"lg",3:"md",4:"sm",5:"xs",6:"2xs"},qd=["display-1","display-2","display-3"],Sr=class extends p{static tagName="und-heading";static styles=Go;static properties={level:{type:Number,reflect:!0},size:{reflect:!0},type:{reflect:!0},tone:{reflect:!0},weight:{reflect:!0},align:{reflect:!0},textWrap:{reflect:!0,attribute:"text-wrap"},lines:{type:Number,reflect:!0},strikethrough:{type:Boolean,reflect:!0}};constructor(){super(),this.level=2,this.tone="default",this.strikethrough=!1}#e(){let e=Math.trunc(Number(this.lines));return e>=1?e:0}updated(e){if(!e.has("lines")&&!e.has("level"))return;let t=this.renderRoot.querySelector(".heading");this.#e()?t?.style.setProperty("--_lines",String(this.#e())):t?.style.removeProperty("--_lines")}render(){let e=At(this.level),t=this.size??Ud[e],i=this.type&&qd.includes(this.type)?` type-${this.type}`:"",r=this.#e()?" clamp":"";return zr(e,`heading size-${t}${i}${r}`,"base",a`<slot></slot>`)}};Sr.define();var Wo=["path","circle","ellipse","rect","line","polyline","polygon"],Od=new Set(["d","cx","cy","r","rx","ry","x","y","x1","y1","x2","y2","width","height","points","fill","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","fill-rule","clip-rule","opacity","fill-opacity","stroke-opacity","transform","pathLength"]),Hd="0 0 24 24",Fd=/^-?\d+(\.\d+)?( -?\d+(\.\d+)?){3}$/,Lr=new Map,Cr=new Set;function Vd(n){if(typeof n=="string")return n.trim()?["path",{d:n}]:void 0;let[e,t]=n;return Wo.includes(e)&&t&&typeof t=="object"?[e,t]:void 0}function Xn(n){let e=Hd,t;if(typeof n=="string")t=[n];else if(Array.isArray(n))t=n;else{let r=n;r.viewBox&&Fd.test(r.viewBox.trim())&&(e=r.viewBox.trim()),t=r.nodes??[]}let i=t.map(Vd).filter(r=>r!==void 0);return i.length>0?{viewBox:e,nodes:i}:void 0}function e2(n){for(let[e,t]of Object.entries(n)){let i=Xn(t);i&&Lr.set(e,i)}for(let e of Cr)e()}function Yo(n){return n?Lr.get(n):void 0}function t2(){return[...Lr.keys()]}function i2(n){if(Lr.delete(n))for(let e of Cr)e()}function Xo(n){return Cr.add(n),()=>Cr.delete(n)}function Zo(n,e){let t=Wo;return e.filter(([i])=>t.includes(i)).map(([i,r])=>{let s=n.createElementNS("http://www.w3.org/2000/svg",i);for(let[o,l]of Object.entries(r))l!==void 0&&Od.has(o)&&s.setAttribute(o,String(l));return s})}var Er=class extends p{static tagName="und-icon";static properties={name:{reflect:!0},definition:{attribute:!1},label:{},size:{reflect:!0},tone:{reflect:!0},flipRtl:{type:Boolean,reflect:!0,attribute:"flip-rtl"},filled:{type:Boolean,reflect:!0}};static styles=u` @layer und.components{:host{display:inline-flex;flex:none;vertical-align:-0.125em}:host([hidden]){display:none}.svg{--_color:currentcolor;inline-size:var(--und-icon-size,1em);block-size:var(--und-icon-size,1em);color:var(--und-icon-color,var(--_color));fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:var(--und-icon-stroke-width,1.5)}:host([size='xs']) .svg,:host([size='xsm']) .svg{--und-icon-size:0.75rem}:host([size='sm']) .svg{--und-icon-size:1rem}:host([size='md']) .svg{--und-icon-size:1.25rem}:host([size='lg']) .svg{--und-icon-size:1.5rem}:host([size='xl']) .svg{--und-icon-size:2rem}:host([tone='primary']) .svg{--_color:var(--und-fg-default,#0a1317)}:host([tone='secondary']) .svg{--_color:var(--und-fg-subtle,#4e606f)}:host([tone='tertiary']) .svg{--_color:var(--und-fg-subtle,#4e606f)}:host([tone='disabled']) .svg{--_color:var(--und-fg-disabled,#a4b0bc)}:host([tone='accent']) .svg{--_color:var(--und-accent-solid,#0064e0)}:host([tone='info']) .svg{--_color:var(--und-status-info-fg,#042f97)}:host([tone='success']) .svg{--_color:var(--und-status-success-fg,#09441f)}:host([tone='warning']) .svg{--_color:var(--und-status-warning-fg,#753f07)}:host([tone='danger']) .svg{--_color:var(--und-status-danger-fg,#7b0210)}:host([tone='error']) .svg{--_color:var(--und-status-danger-fg,#7b0210)}:host([tone='blue']) .svg{--_color:var(--und-color-blue-9,#0064e0)}:host([tone='red']) .svg{--_color:var(--und-color-red-9,#d31130)}:host([tone='green']) .svg{--_color:var(--und-color-green-9,#0d8626)}:host([tone='gray']) .svg{--_color:var(--und-color-gray-11,#4e606f)}:host([tone='cyan']) .svg{--_color:var(--und-color-teal-9,#00acc1)}:host([tone='teal']) .svg{--_color:var(--und-color-teal-10,#009688)}:host([tone='yellow']) .svg{--_color:var(--und-color-amber-9,#fbc02d)}:host([tone='orange']) .svg{--_color:var(--und-color-saffron-9,#e9690b)}:host([tone='pink']) .svg{--_color:var(--und-color-pink-9,#c2185b)}:host([tone='purple']) .svg{--_color:var(--und-color-indigo-9,#5b08d8)}:host([filled]) .svg{fill:currentcolor}:host([flip-rtl]:dir(rtl)) .svg{transform:scaleX(-1)}}
10578
+ `;var Ud={1:"xl",2:"lg",3:"md",4:"sm",5:"xs",6:"2xs"},qd=["display-1","display-2","display-3"],Sr=class extends p{static tagName="und-heading";static styles=Go;static properties={level:{type:Number,reflect:!0},size:{reflect:!0},type:{reflect:!0},tone:{reflect:!0},weight:{reflect:!0},align:{reflect:!0},textWrap:{reflect:!0,attribute:"text-wrap"},lines:{type:Number,reflect:!0},strikethrough:{type:Boolean,reflect:!0}};constructor(){super(),this.level=2,this.tone="default",this.strikethrough=!1}#e(){let e=Math.trunc(Number(this.lines));return e>=1?e:0}updated(e){if(!e.has("lines")&&!e.has("level"))return;let t=this.renderRoot.querySelector(".heading");this.#e()?t?.style.setProperty("--_lines",String(this.#e())):t?.style.removeProperty("--_lines")}render(){let e=At(this.level),t=this.size??Ud[e],i=this.type&&qd.includes(this.type)?` type-${this.type}`:"",r=this.#e()?" clamp":"";return zr(e,`heading size-${t}${i}${r}`,"base",l`<slot></slot>`)}};Sr.define();var Wo=["path","circle","ellipse","rect","line","polyline","polygon"],Od=new Set(["d","cx","cy","r","rx","ry","x","y","x1","y1","x2","y2","width","height","points","fill","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","fill-rule","clip-rule","opacity","fill-opacity","stroke-opacity","transform","pathLength"]),Hd="0 0 24 24",Fd=/^-?\d+(\.\d+)?( -?\d+(\.\d+)?){3}$/,Lr=new Map,Cr=new Set;function Vd(n){if(typeof n=="string")return n.trim()?["path",{d:n}]:void 0;let[e,t]=n;return Wo.includes(e)&&t&&typeof t=="object"?[e,t]:void 0}function Xn(n){let e=Hd,t;if(typeof n=="string")t=[n];else if(Array.isArray(n))t=n;else{let r=n;r.viewBox&&Fd.test(r.viewBox.trim())&&(e=r.viewBox.trim()),t=r.nodes??[]}let i=t.map(Vd).filter(r=>r!==void 0);return i.length>0?{viewBox:e,nodes:i}:void 0}function e2(n){for(let[e,t]of Object.entries(n)){let i=Xn(t);i&&Lr.set(e,i)}for(let e of Cr)e()}function Yo(n){return n?Lr.get(n):void 0}function t2(){return[...Lr.keys()]}function i2(n){if(Lr.delete(n))for(let e of Cr)e()}function Xo(n){return Cr.add(n),()=>Cr.delete(n)}function Zo(n,e){let t=Wo;return e.filter(([i])=>t.includes(i)).map(([i,r])=>{let s=n.createElementNS("http://www.w3.org/2000/svg",i);for(let[o,a]of Object.entries(r))a!==void 0&&Od.has(o)&&s.setAttribute(o,String(a));return s})}var Er=class extends p{static tagName="und-icon";static properties={name:{reflect:!0},definition:{attribute:!1},label:{},size:{reflect:!0},tone:{reflect:!0},flipRtl:{type:Boolean,reflect:!0,attribute:"flip-rtl"},filled:{type:Boolean,reflect:!0}};static styles=u` @layer und.components{:host{display:inline-flex;flex:none;vertical-align:-0.125em}:host([hidden]){display:none}.svg{--_color:currentcolor;inline-size:var(--und-icon-size,1em);block-size:var(--und-icon-size,1em);color:var(--und-icon-color,var(--_color));fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:var(--und-icon-stroke-width,1.5)}:host([size='xs']) .svg,:host([size='xsm']) .svg{--und-icon-size:0.75rem}:host([size='sm']) .svg{--und-icon-size:1rem}:host([size='md']) .svg{--und-icon-size:1.25rem}:host([size='lg']) .svg{--und-icon-size:1.5rem}:host([size='xl']) .svg{--und-icon-size:2rem}:host([tone='primary']) .svg{--_color:var(--und-fg-default,#0a1317)}:host([tone='secondary']) .svg{--_color:var(--und-fg-subtle,#4e606f)}:host([tone='tertiary']) .svg{--_color:var(--und-fg-subtle,#4e606f)}:host([tone='disabled']) .svg{--_color:var(--und-fg-disabled,#a4b0bc)}:host([tone='accent']) .svg{--_color:var(--und-accent-solid,#0064e0)}:host([tone='info']) .svg{--_color:var(--und-status-info-fg,#042f97)}:host([tone='success']) .svg{--_color:var(--und-status-success-fg,#09441f)}:host([tone='warning']) .svg{--_color:var(--und-status-warning-fg,#753f07)}:host([tone='danger']) .svg{--_color:var(--und-status-danger-fg,#7b0210)}:host([tone='error']) .svg{--_color:var(--und-status-danger-fg,#7b0210)}:host([tone='blue']) .svg{--_color:var(--und-color-blue-9,#0064e0)}:host([tone='red']) .svg{--_color:var(--und-color-red-9,#d31130)}:host([tone='green']) .svg{--_color:var(--und-color-green-9,#0d8626)}:host([tone='gray']) .svg{--_color:var(--und-color-gray-11,#4e606f)}:host([tone='cyan']) .svg{--_color:var(--und-color-teal-9,#00acc1)}:host([tone='teal']) .svg{--_color:var(--und-color-teal-10,#009688)}:host([tone='yellow']) .svg{--_color:var(--und-color-amber-9,#fbc02d)}:host([tone='orange']) .svg{--_color:var(--und-color-saffron-9,#e9690b)}:host([tone='pink']) .svg{--_color:var(--und-color-pink-9,#c2185b)}:host([tone='purple']) .svg{--_color:var(--und-color-indigo-9,#5b08d8)}:host([filled]) .svg{fill:currentcolor}:host([flip-rtl]:dir(rtl)) .svg{transform:scaleX(-1)}}
10579
10579
 
10580
10580
 
10581
10581
 
@@ -10709,7 +10709,7 @@ ${he(".heading")}}
10709
10709
 
10710
10710
 
10711
10711
 
10712
- `;#e;constructor(){super(),this.flipRtl=!1,this.filled=!1}connectedCallback(){super.connectedCallback(),!!1&&(this.#e=Xo(()=>{this.requestUpdate()}))}disconnectedCallback(){super.disconnectedCallback(),this.#e?.(),this.#e=void 0}updated(){let e=this.renderRoot.querySelector(".svg");if(!e)return;let t=this.definition?Xn(this.definition):Yo(this.name);if(!t){e.replaceChildren(),(this.name||this.definition)&&C(`icon:${this.name??"definition"}`,`<und-icon> has no icon "${this.name??""}".`);return}e.setAttribute("viewBox",t.viewBox),e.replaceChildren(...Zo(this.ownerDocument,t.nodes))}render(){let e=!!this.label;return a`<svg
10712
+ `;#e;constructor(){super(),this.flipRtl=!1,this.filled=!1}connectedCallback(){super.connectedCallback(),!!1&&(this.#e=Xo(()=>{this.requestUpdate()}))}disconnectedCallback(){super.disconnectedCallback(),this.#e?.(),this.#e=void 0}updated(){let e=this.renderRoot.querySelector(".svg");if(!e)return;let t=this.definition?Xn(this.definition):Yo(this.name);if(!t){e.replaceChildren(),(this.name||this.definition)&&C(`icon:${this.name??"definition"}`,`<und-icon> has no icon "${this.name??""}".`);return}e.setAttribute("viewBox",t.viewBox),e.replaceChildren(...Zo(this.ownerDocument,t.nodes))}render(){let e=!!this.label;return l`<svg
10713
10713
  part="svg"
10714
10714
  class="svg"
10715
10715
  viewBox="0 0 24 24"
@@ -10805,7 +10805,7 @@ ${he(".heading")}}
10805
10805
 
10806
10806
 
10807
10807
 
10808
- `;constructor(){super(),this.label="More information",this.placement="bottom",this.open=!1}show(){this.open=!0}hide(){this.open=!1}get#e(){return this.renderRoot.querySelector("und-popover")}firstUpdated(){this.label||C("info-tip-label","<und-info-tip> needs a `label`.")}updated(e){let t=this.#e;!t||!e.has("open")||this.open!==t.open&&(this.open?t.show():t.hide())}#t=e=>{this.open=e.newState==="open"};#i=()=>{this.open=!0};#r=()=>{this.open=!1};render(){return a`<button
10808
+ `;constructor(){super(),this.label="More information",this.placement="bottom",this.open=!1}show(){this.open=!0}hide(){this.open=!1}get#e(){return this.renderRoot.querySelector("und-popover")}firstUpdated(){this.label||C("info-tip-label","<und-info-tip> needs a `label`.")}updated(e){let t=this.#e;!t||!e.has("open")||this.open!==t.open&&(this.open?t.show():t.hide())}#t=e=>{this.open=e.newState==="open"};#i=()=>{this.open=!0};#r=()=>{this.open=!1};render(){return l`<button
10809
10809
  id="trigger"
10810
10810
  part="trigger"
10811
10811
  class="trigger"
@@ -10885,8 +10885,8 @@ ${he(".heading")}}
10885
10885
 
10886
10886
 
10887
10887
 
10888
- `;render(){let e=this.keys?Zd(this.keys):[];if(e.length===0)return a`<kbd part="base" class="kbd"><slot></slot></kbd>`;let t=Zn(),i=e.map(r=>Jd(r,t)).join(" + ");return a`<span part="base" class="keys" role="img" aria-label=${i}
10889
- >${e.map(r=>a`<kbd part="key" class="kbd" aria-hidden="true">${Qd(r,t)}</kbd>`)}</span
10888
+ `;render(){let e=this.keys?Zd(this.keys):[];if(e.length===0)return l`<kbd part="base" class="kbd"><slot></slot></kbd>`;let t=Zn(),i=e.map(r=>Jd(r,t)).join(" + ");return l`<span part="base" class="keys" role="img" aria-label=${i}
10889
+ >${e.map(r=>l`<kbd part="key" class="kbd" aria-hidden="true">${Qd(r,t)}</kbd>`)}</span
10890
10890
  >`}};Tr.define();var ec="UND-LIST-ITEM",tc=n=>[...n.children].filter(e=>e.tagName===ec),Mr=class extends p{static tagName="und-list";static properties={type:{reflect:!0},start:{type:Number},marker:{reflect:!0},density:{reflect:!0},edge:{reflect:!0},dividers:{type:Boolean,reflect:!0}};static styles=u` @layer und.components{:host{--_list-pad-block:var(--und-space-2,0.5rem);--_list-inset:var(--und-space-2,0.5rem);display:flex;flex-direction:column;gap:var(--und-list-gap,calc(var(--und-space-1,0.25rem) / 2))}:host([hidden]){display:none}:host([density='compact']){--_list-pad-block:var(--und-space-1,0.25rem)}:host([density='spacious']){--_list-pad-block:var(--und-space-3,0.75rem);--_list-inset:var(--und-space-3,0.75rem)}:host([edge='flush']){--_list-inset:0}:host([edge='outset']){margin-inline:calc(-1 * var(--_list-inset))}:host([dividers]){gap:0}:host([dividers]) ::slotted(und-list-item:not(:last-child)){border-block-end:var(--und-border-width-thin,1px) solid var(--und-list-divider-color,var(--und-border-subtle,#d6d8dd));border-end-start-radius:0;border-end-end-radius:0}@media (forced-colors:active){:host([dividers]) ::slotted(und-list-item:not(:last-child)){border-block-end-color:CanvasText}}}
10891
10891
 
10892
10892
 
@@ -10936,7 +10936,7 @@ ${he(".heading")}}
10936
10936
 
10937
10937
 
10938
10938
 
10939
- `;#e;constructor(){super(),this.type="unordered",this.start=1,this.density="balanced",this.edge="padded",this.dividers=!1}connectedCallback(){super.connectedCallback(),!!1&&(K(this,"list"),this.#e=new MutationObserver(()=>this.#t()),this.#e.observe(this,{childList:!0}),this.#t())}disconnectedCallback(){super.disconnectedCallback(),this.#e?.disconnect(),this.#e=void 0}updated(e){(e.has("type")||e.has("start")||e.has("marker"))&&this.#t()}#t(){let e=Math.trunc(Number(this.start))||1,t=this.marker;tc(this).forEach((i,r)=>{i.context={type:this.type,index:e+r,marker:t}})}render(){return a`<slot></slot>`}};var ic=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],rc=n=>{if(n<1||n>3999)return"";let e="";for(let[t,i]of ic)for(;n>=t;)e+=i,n-=t;return e},nc=n=>{let e="";for(;n>0;)n-=1,e=String.fromCharCode(97+n%26)+e,n=Math.floor(n/26);return e},Nr=class extends p{static tagName="und-list-item";static properties={context:{attribute:!1},href:{reflect:!0},target:{reflect:!0},rel:{reflect:!0},interactive:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}};static styles=u` @layer und.components{:host{display:block;border-radius:var(--und-list-item-radius,var(--und-radius-element,8px))}:host([hidden]){display:none}.item{--_lh-indic:var(--und-text-body-sm-lh-indic,1.7);position:relative;box-sizing:border-box;display:flex;gap:var(--und-space-2,0.5rem);align-items:center;padding-block:var(--_list-pad-block,var(--und-space-2,0.5rem));padding-inline:var(--_list-inset,var(--und-space-2,0.5rem));border-radius:var(--und-list-item-radius,var(--und-radius-element,8px));color:var(--und-fg-default,#23252c);font-size:var(--und-text-body-sm-size,0.875rem);line-height:var(--und-text-body-sm-lh,1.45);transition:background-color var(--und-motion-hover,130ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}
10939
+ `;#e;constructor(){super(),this.type="unordered",this.start=1,this.density="balanced",this.edge="padded",this.dividers=!1}connectedCallback(){super.connectedCallback(),!!1&&(K(this,"list"),this.#e=new MutationObserver(()=>this.#t()),this.#e.observe(this,{childList:!0}),this.#t())}disconnectedCallback(){super.disconnectedCallback(),this.#e?.disconnect(),this.#e=void 0}updated(e){(e.has("type")||e.has("start")||e.has("marker"))&&this.#t()}#t(){let e=Math.trunc(Number(this.start))||1,t=this.marker;tc(this).forEach((i,r)=>{i.context={type:this.type,index:e+r,marker:t}})}render(){return l`<slot></slot>`}};var ic=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],rc=n=>{if(n<1||n>3999)return"";let e="";for(let[t,i]of ic)for(;n>=t;)e+=i,n-=t;return e},nc=n=>{let e="";for(;n>0;)n-=1,e=String.fromCharCode(97+n%26)+e,n=Math.floor(n/26);return e},Nr=class extends p{static tagName="und-list-item";static properties={context:{attribute:!1},href:{reflect:!0},target:{reflect:!0},rel:{reflect:!0},interactive:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}};static styles=u` @layer und.components{:host{display:block;border-radius:var(--und-list-item-radius,var(--und-radius-element,8px))}:host([hidden]){display:none}.item{--_lh-indic:var(--und-text-body-sm-lh-indic,1.7);position:relative;box-sizing:border-box;display:flex;gap:var(--und-space-2,0.5rem);align-items:center;padding-block:var(--_list-pad-block,var(--und-space-2,0.5rem));padding-inline:var(--_list-inset,var(--und-space-2,0.5rem));border-radius:var(--und-list-item-radius,var(--und-radius-element,8px));color:var(--und-fg-default,#23252c);font-size:var(--und-text-body-sm-size,0.875rem);line-height:var(--und-text-body-sm-lh,1.45);transition:background-color var(--und-motion-hover,130ms) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}
10940
10940
 
10941
10941
 
10942
10942
 
@@ -11108,16 +11108,16 @@ ${he(".item")} .leading,.trailing{position:relative;z-index:1;display:inline-fle
11108
11108
 
11109
11109
 
11110
11110
 
11111
- `;#e=new y(this);#t=!1;#i=!1;#r=!1;constructor(){super(),this.interactive=!1,this.selected=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),K(this,"listitem")}#n(e,t){let i=t==="lower-alpha"?nc(e):t==="lower-roman"?rc(e):"";if(i)return`${i}.`;let r=String(e);try{r=new Intl.NumberFormat(this.#e.lang||void 0).format(e)}catch{}return`${r}.`}#s(){let{type:e,index:t,marker:i}=this.context??{type:"unordered",index:1};return e==="ordered"?a`<span part="marker" class="marker" aria-hidden="true"
11111
+ `;#e=new y(this);#t=!1;#i=!1;#r=!1;constructor(){super(),this.interactive=!1,this.selected=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),K(this,"listitem")}#n(e,t){let i=t==="lower-alpha"?nc(e):t==="lower-roman"?rc(e):"";if(i)return`${i}.`;let r=String(e);try{r=new Intl.NumberFormat(this.#e.lang||void 0).format(e)}catch{}return`${r}.`}#s(){let{type:e,index:t,marker:i}=this.context??{type:"unordered",index:1};return e==="ordered"?l`<span part="marker" class="marker" aria-hidden="true"
11112
11112
  >${this.#n(t,i)}</span
11113
- >`:a`<span part="marker" class="marker bullet" aria-hidden="true"
11113
+ >`:l`<span part="marker" class="marker bullet" aria-hidden="true"
11114
11114
  ><span class="dot ${i==="circle"||i==="square"?i:"disc"}"></span
11115
- ></span>`}#o=e=>e.target.assignedNodes().length>0;#d=e=>{this.#t=this.#o(e),this.requestUpdate()};#a=e=>{this.#i=this.#o(e),this.requestUpdate()};#l=e=>{this.#r=this.#o(e),this.requestUpdate()};#c(){return a`<div part="content" class="content">
11115
+ ></span>`}#o=e=>e.target.assignedNodes().length>0;#d=e=>{this.#t=this.#o(e),this.requestUpdate()};#a=e=>{this.#i=this.#o(e),this.requestUpdate()};#l=e=>{this.#r=this.#o(e),this.requestUpdate()};#c(){return l`<div part="content" class="content">
11116
11116
  <span class="label"><slot></slot></span
11117
11117
  ><span part="description" class="description ${this.#r?"":"empty"}"
11118
11118
  ><slot name="description" @slotchange=${this.#l}></slot
11119
11119
  ></span>
11120
- </div>`}#u(){let e=this.selected?"true":c;if(this.href!=null){let t=this.disabled?void 0:M(this.href);if(t!==void 0)return{active:!0,body:a`<a
11120
+ </div>`}#u(){let e=this.selected?"true":c;if(this.href!=null){let t=this.disabled?void 0:M(this.href);if(t!==void 0)return{active:!0,body:l`<a
11121
11121
  part="action"
11122
11122
  class="action"
11123
11123
  href=${t}
@@ -11125,9 +11125,9 @@ ${he(".item")} .leading,.trailing{position:relative;z-index:1;display:inline-fle
11125
11125
  rel=${H(this.target,this.rel)??c}
11126
11126
  aria-current=${e}
11127
11127
  >${this.#c()}</a
11128
- >`};if(this.disabled)return{active:!1,body:a`<a part="action" class="action" role="link" aria-disabled="true"
11128
+ >`};if(this.disabled)return{active:!1,body:l`<a part="action" class="action" role="link" aria-disabled="true"
11129
11129
  >${this.#c()}</a
11130
- >`}}else if(this.interactive)return{active:!this.disabled,body:a`<button
11130
+ >`}}else if(this.interactive)return{active:!this.disabled,body:l`<button
11131
11131
  part="action"
11132
11132
  class="action"
11133
11133
  type="button"
@@ -11135,7 +11135,7 @@ ${he(".item")} .leading,.trailing{position:relative;z-index:1;display:inline-fle
11135
11135
  aria-current=${e}
11136
11136
  >
11137
11137
  ${this.#c()}
11138
- </button>`};return{active:!1,body:this.#c()}}render(){let t=!(this.context?.type==="plain")&&!this.#t,{body:i,active:r}=this.#u(),s=`leading${this.#t||t?"":" empty"}${t?" has-marker":""}`;return a`<div part="base" class="item ${r?"is-action":""}">
11138
+ </button>`};return{active:!1,body:this.#c()}}render(){let t=!(this.context?.type==="plain")&&!this.#t,{body:i,active:r}=this.#u(),s=`leading${this.#t||t?"":" empty"}${t?" has-marker":""}`;return l`<div part="base" class="item ${r?"is-action":""}">
11139
11139
  <span part="leading" class=${s}
11140
11140
  >${t?this.#s():""}<slot
11141
11141
  name="leading"
@@ -11150,7 +11150,7 @@ ${he(".item")} .leading,.trailing{position:relative;z-index:1;display:inline-fle
11150
11150
 
11151
11151
 
11152
11152
 
11153
- `;constructor(){super(),this.label=""}updated(e){e.has("label")&&this.emit("und-metadata-item-change")}render(){return a`<slot></slot>`}};var sc="UND-METADATA-ITEM",Qo="row-",Ir=class extends p{static tagName="und-metadata-list";static properties={layout:{reflect:!0},divided:{type:Boolean,reflect:!0},columns:{reflect:!0},maxItems:{type:Number,attribute:"max-items"},showMoreLabel:{attribute:"show-more-label"},showLessLabel:{attribute:"show-less-label"}};static styles=u` @layer und.components{:host{display:block}:host([hidden]){display:none}.list{--_lh-indic:var(--und-text-body-md-lh-indic,1.75);display:grid;gap:var(--und-metadata-list-gap,var(--und-space-3,0.75rem));margin:0;color:var(--und-fg-default,#23252c);font-size:var(--und-text-body-sm-size,0.875rem);line-height:var(--und-text-body-sm-lh,1.45)}
11153
+ `;constructor(){super(),this.label=""}updated(e){e.has("label")&&this.emit("und-metadata-item-change")}render(){return l`<slot></slot>`}};var sc="UND-METADATA-ITEM",Qo="row-",Ir=class extends p{static tagName="und-metadata-list";static properties={layout:{reflect:!0},divided:{type:Boolean,reflect:!0},columns:{reflect:!0},maxItems:{type:Number,attribute:"max-items"},showMoreLabel:{attribute:"show-more-label"},showLessLabel:{attribute:"show-less-label"}};static styles=u` @layer und.components{:host{display:block}:host([hidden]){display:none}.list{--_lh-indic:var(--und-text-body-md-lh-indic,1.75);display:grid;gap:var(--und-metadata-list-gap,var(--und-space-3,0.75rem));margin:0;color:var(--und-fg-default,#23252c);font-size:var(--und-text-body-sm-size,0.875rem);line-height:var(--und-text-body-sm-lh,1.45)}
11154
11154
 
11155
11155
 
11156
11156
 
@@ -11270,13 +11270,13 @@ ${he(".list")} .row{display:grid;gap:var(--und-space-1,0.25rem);min-inline-size:
11270
11270
 
11271
11271
 
11272
11272
 
11273
- `;#e=!1;#t;#i=[];constructor(){super(),this.layout="stacked",this.divided=!1,this.columns="single",this.maxItems=0,this.showMoreLabel="Show more",this.showLessLabel="Show less"}connectedCallback(){super.connectedCallback(),!!1&&(this.#t=new MutationObserver(()=>this.refresh()),this.#t.observe(this,{childList:!0}),this.addEventListener("und-metadata-item-change",this.#r),this.refresh())}disconnectedCallback(){super.disconnectedCallback(),this.#t?.disconnect(),this.#t=void 0,this.removeEventListener("und-metadata-item-change",this.#r)}#r=e=>{e.stopPropagation(),this.refresh()};refresh(){let e=[...this.children].filter(t=>t.tagName===sc);e.forEach((t,i)=>{t.slot=`${Qo}${i}`}),this.#i=e,this.requestUpdate()}render(){let e=this.maxItems>0?this.maxItems:this.#i.length,t=this.#i.length>e;return a`<dl part="list" class="list">
11274
- ${this.#i.map((i,r)=>a`<div part="row" class="row" ?hidden=${t&&!this.#e&&r>=e}>
11273
+ `;#e=!1;#t;#i=[];constructor(){super(),this.layout="stacked",this.divided=!1,this.columns="single",this.maxItems=0,this.showMoreLabel="Show more",this.showLessLabel="Show less"}connectedCallback(){super.connectedCallback(),!!1&&(this.#t=new MutationObserver(()=>this.refresh()),this.#t.observe(this,{childList:!0}),this.addEventListener("und-metadata-item-change",this.#r),this.refresh())}disconnectedCallback(){super.disconnectedCallback(),this.#t?.disconnect(),this.#t=void 0,this.removeEventListener("und-metadata-item-change",this.#r)}#r=e=>{e.stopPropagation(),this.refresh()};refresh(){let e=[...this.children].filter(t=>t.tagName===sc);e.forEach((t,i)=>{t.slot=`${Qo}${i}`}),this.#i=e,this.requestUpdate()}render(){let e=this.maxItems>0?this.maxItems:this.#i.length,t=this.#i.length>e;return l`<dl part="list" class="list">
11274
+ ${this.#i.map((i,r)=>l`<div part="row" class="row" ?hidden=${t&&!this.#e&&r>=e}>
11275
11275
  <dt part="label" class="label">${i.label??i.getAttribute("label")}</dt>
11276
11276
  <dd part="value" class="value"><slot name="${Qo}${r}"></slot></dd>
11277
11277
  </div>`)}
11278
11278
  </dl>
11279
- ${t?a`<button
11279
+ ${t?l`<button
11280
11280
  part="toggle"
11281
11281
  class="toggle"
11282
11282
  type="button"
@@ -11358,7 +11358,7 @@ ${he(".list")} .row{display:grid;gap:var(--und-space-1,0.25rem);min-inline-size:
11358
11358
 
11359
11359
 
11360
11360
 
11361
- `;#e=!1;constructor(){super(),this.tone="neutral",this.shape="auto",this.pulse=!1}#t=e=>{this.#e=e.target.assignedNodes().some(t=>t.nodeType===Node.ELEMENT_NODE||!!t.textContent?.trim()),this.requestUpdate()};firstUpdated(){!this.label&&!this.#e&&!this.textContent?.trim()&&C("status-dot-name","<und-status-dot> needs visible text or a `label`; the shape alone is not a name.")}render(){let e=!this.#e&&!!this.label;return a`<span
11361
+ `;#e=!1;constructor(){super(),this.tone="neutral",this.shape="auto",this.pulse=!1}#t=e=>{this.#e=e.target.assignedNodes().some(t=>t.nodeType===Node.ELEMENT_NODE||!!t.textContent?.trim()),this.requestUpdate()};firstUpdated(){!this.label&&!this.#e&&!this.textContent?.trim()&&C("status-dot-name","<und-status-dot> needs visible text or a `label`; the shape alone is not a name.")}render(){let e=!this.#e&&!!this.label;return l`<span
11362
11362
  part="base"
11363
11363
  class="base"
11364
11364
  role=${e?"img":c}
@@ -11568,7 +11568,7 @@ ${he(".list")} .row{display:grid;gap:var(--und-space-1,0.25rem);min-inline-size:
11568
11568
 
11569
11569
  ${he(".text")}}
11570
11570
 
11571
- `;var ac=["body","large","label","supporting","code","display-1","display-2","display-3"],Pr=class extends p{static tagName="und-text";static styles=ea;static properties={size:{reflect:!0},type:{reflect:!0},weight:{reflect:!0},tone:{reflect:!0},align:{reflect:!0},textWrap:{reflect:!0,attribute:"text-wrap"},lines:{type:Number,reflect:!0},block:{type:Boolean,reflect:!0},strikethrough:{type:Boolean,reflect:!0},tabular:{type:Boolean,reflect:!0}};constructor(){super(),this.size="md",this.tone="default",this.block=!1,this.strikethrough=!1,this.tabular=!1}#e(){let e=Math.trunc(Number(this.lines));return e>=1?e:0}updated(e){if(!e.has("lines"))return;let t=this.renderRoot.querySelector(".text");this.#e()?t?.style.setProperty("--_lines",String(this.#e())):t?.style.removeProperty("--_lines")}render(){let e=this.weight?` weight-${this.weight}`:"",t=this.#e()?" clamp":"",i=this.type&&ac.includes(this.type)?` type-${this.type}`:"";return a`<span
11571
+ `;var ac=["body","large","label","supporting","code","display-1","display-2","display-3"],Pr=class extends p{static tagName="und-text";static styles=ea;static properties={size:{reflect:!0},type:{reflect:!0},weight:{reflect:!0},tone:{reflect:!0},align:{reflect:!0},textWrap:{reflect:!0,attribute:"text-wrap"},lines:{type:Number,reflect:!0},block:{type:Boolean,reflect:!0},strikethrough:{type:Boolean,reflect:!0},tabular:{type:Boolean,reflect:!0}};constructor(){super(),this.size="md",this.tone="default",this.block=!1,this.strikethrough=!1,this.tabular=!1}#e(){let e=Math.trunc(Number(this.lines));return e>=1?e:0}updated(e){if(!e.has("lines"))return;let t=this.renderRoot.querySelector(".text");this.#e()?t?.style.setProperty("--_lines",String(this.#e())):t?.style.removeProperty("--_lines")}render(){let e=this.weight?` weight-${this.weight}`:"",t=this.#e()?" clamp":"",i=this.type&&ac.includes(this.type)?` type-${this.type}`:"";return l`<span
11572
11572
  part="base"
11573
11573
  class="text size-${this.size}${i} tone-${this.tone}${e}${t}"
11574
11574
  ><slot></slot
@@ -11774,7 +11774,7 @@ ${he(".text")}}
11774
11774
 
11775
11775
 
11776
11776
 
11777
- `;#e=!1;constructor(){super(),this.fit="cover",this.loading="lazy",this.busy=!1,this.disabled=!1,this.removable=!1,this.showRemoveOn="hover",this.removeLabel="Remove"}willUpdate(e){e.has("src")&&(this.#e=!1)}updated(e){if(e.has("busy")&&(this.busy?this.setAttribute("aria-busy","true"):e.get("busy")&&this.removeAttribute("aria-busy")),!e.has("ratio"))return;let t=this.renderRoot.querySelector(".base"),i=dc(this.ratio);i?t?.style.setProperty("--_ratio",i):t?.style.removeProperty("--_ratio")}firstUpdated(){this.alt===void 0&&C("thumbnail-alt",'<und-thumbnail> needs `alt` (use alt="" for a decorative image).')}#t=()=>{this.emit("und-load")};#i=()=>{this.#e=!0,this.requestUpdate(),this.emit("und-error")};#r=e=>{e.stopPropagation(),!this.disabled&&this.emit("und-remove")};#n=e=>{this.disabled&&(e.key==="Enter"||e.key===" ")&&e.preventDefault()};#s(){return this.removable?a`<button
11777
+ `;#e=!1;constructor(){super(),this.fit="cover",this.loading="lazy",this.busy=!1,this.disabled=!1,this.removable=!1,this.showRemoveOn="hover",this.removeLabel="Remove"}willUpdate(e){e.has("src")&&(this.#e=!1)}updated(e){if(e.has("busy")&&(this.busy?this.setAttribute("aria-busy","true"):e.get("busy")&&this.removeAttribute("aria-busy")),!e.has("ratio"))return;let t=this.renderRoot.querySelector(".base"),i=dc(this.ratio);i?t?.style.setProperty("--_ratio",i):t?.style.removeProperty("--_ratio")}firstUpdated(){this.alt===void 0&&C("thumbnail-alt",'<und-thumbnail> needs `alt` (use alt="" for a decorative image).')}#t=()=>{this.emit("und-load")};#i=()=>{this.#e=!0,this.requestUpdate(),this.emit("und-error")};#r=e=>{e.stopPropagation(),!this.disabled&&this.emit("und-remove")};#n=e=>{this.disabled&&(e.key==="Enter"||e.key===" ")&&e.preventDefault()};#s(){return this.removable?l`<button
11778
11778
  part="remove"
11779
11779
  class="remove"
11780
11780
  type="button"
@@ -11794,8 +11794,8 @@ ${he(".text")}}
11794
11794
  >
11795
11795
  <path d="M6 6l12 12M18 6 6 18" />
11796
11796
  </svg>
11797
- </button>`:c}render(){let e=ve(this.src),t=!!e&&!this.#e,i=this.busy&&!t,r=this.alt??"";return a`<div part="base" class="base ${t?"has-image":""}">
11798
- ${t?a`<img
11797
+ </button>`:c}render(){let e=ve(this.src),t=!!e&&!this.#e,i=this.busy&&!t,r=this.alt??"";return l`<div part="base" class="base ${t?"has-image":""}">
11798
+ ${t?l`<img
11799
11799
  part="image"
11800
11800
  class="image"
11801
11801
  src=${yr(e)}
@@ -11804,13 +11804,13 @@ ${he(".text")}}
11804
11804
  decoding="async"
11805
11805
  @load=${this.#t}
11806
11806
  @error=${this.#i}
11807
- />`:a`<div
11807
+ />`:l`<div
11808
11808
  part="fallback"
11809
11809
  class="fallback ${i?"skeleton":""}"
11810
11810
  role=${r?"img":c}
11811
11811
  aria-label=${r||c}
11812
11812
  >
11813
- ${i?c:a`<slot name="fallback"
11813
+ ${i?c:l`<slot name="fallback"
11814
11814
  ><svg
11815
11815
  viewBox="0 0 24 24"
11816
11816
  fill="currentColor"
@@ -11821,7 +11821,7 @@ ${he(".text")}}
11821
11821
  </svg></slot
11822
11822
  >`}
11823
11823
  </div>`}
11824
- ${this.busy&&t?a`<div part="busy" class="busy"><span class="spinner"></span></div>`:c}
11824
+ ${this.busy&&t?l`<div part="busy" class="busy"><span class="spinner"></span></div>`:c}
11825
11825
  ${this.#s()}
11826
11826
  </div>`}};Rr.define();var Tt=1e3,Ur=60*Tt,qr=60*Ur,Vt=24*qr,uc=[["year",365*Vt],["month",30*Vt],["week",7*Vt],["day",Vt],["hour",qr],["minute",Ur],["second",Tt]];function hc(n){let e=Math.abs(n);return e<Ur?10*Tt:e<qr?30*Tt:e<Vt?5*Ur:qr}var Or=class extends p{static tagName="und-timestamp";static properties={datetime:{},mode:{reflect:!0},format:{},dateStyle:{attribute:"date-style"},timeStyle:{attribute:"time-style"},relativeStyle:{attribute:"relative-style"},numeric:{},timeZone:{attribute:"time-zone"},locale:{},type:{reflect:!0},color:{reflect:!0}};static styles=u` @layer und.components{:host{display:inline}:host([hidden]){display:none}time{color:var(--und-timestamp-color,var(--und-fg-muted,#445564));font-size:var(--und-text-caption-size,0.75rem);font-style:normal;font-weight:inherit;line-height:1.6667;font-variant-numeric:tabular-nums}:host([type='body']) time{font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286}:host([type='inherit']) time{font-size:inherit;line-height:inherit}:host([color='primary']) time{color:var(--und-timestamp-color,var(--und-fg-default,#0a1317))}:host([color='inherit']) time{color:var(--und-timestamp-color,inherit)}}
11827
11827
 
@@ -11860,9 +11860,9 @@ ${he(".text")}}
11860
11860
 
11861
11861
 
11862
11862
 
11863
- `;#e=new y(this);#t;#i=!0;#r;constructor(){super(),this.mode="absolute",this.format="datetime",this.relativeStyle="long",this.numeric="auto",this.type="supporting",this.color="secondary"}get date(){let e=this.datetime;if(e==null||e==="")return;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?void 0:t}connectedCallback(){super.connectedCallback(),!!1&&(document.addEventListener("visibilitychange",this.#d),typeof IntersectionObserver=="function"&&(this.#r=new IntersectionObserver(e=>{let t=e[e.length-1];t&&this.#o(t.isIntersecting)}),this.#r.observe(this)),this.#s())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.#d),this.#r?.disconnect(),this.#r=void 0,this.#n()}updated(e){(e.has("mode")||e.has("datetime"))&&this.#s()}#n(){clearTimeout(this.#t),this.#t=void 0}#s(){this.#n();let e=this.date;!this.isConnected||this.mode!=="relative"||!e||document.visibilityState==="hidden"||!this.#i||(this.#t=setTimeout(()=>{this.requestUpdate(),this.#s()},hc(Date.now()-e.getTime())))}#o(e){e!==this.#i&&(this.#i=e,e&&this.requestUpdate(),this.#s())}#d=()=>{document.visibilityState==="visible"&&this.requestUpdate(),this.#s()};#a(e){let t=this.locale||this.#e.lang||void 0;try{if(this.mode==="relative"){let o=e.getTime()-Date.now(),[l,d]=uc.find(([,m])=>Math.abs(o)>=m)??["second",Tt],h=Math.trunc(o/d),f=new Intl.RelativeTimeFormat(t,{numeric:this.numeric,style:this.relativeStyle});return Math.abs(o)<5*Tt?f.format(0,"second"):f.format(h,l)}let i=this.dateStyle??"medium",r=this.timeStyle??"short",s={timeZone:this.timeZone};return this.format!=="time"&&(s.dateStyle=i),this.format!=="date"&&(s.timeStyle=r),new Intl.DateTimeFormat(t,s).format(e)}catch{return e.toISOString()}}#l(e){try{return new Intl.DateTimeFormat(this.locale||this.#e.lang||void 0,{dateStyle:"full",timeStyle:"short",timeZone:this.timeZone}).format(e)}catch{return e.toISOString()}}render(){let e=this.date;if(!e)return a`<slot></slot>`;let t=this.mode==="relative"?this.#l(e):void 0;return a`<time part="time" datetime=${e.toISOString()} title=${t??c}
11863
+ `;#e=new y(this);#t;#i=!0;#r;constructor(){super(),this.mode="absolute",this.format="datetime",this.relativeStyle="long",this.numeric="auto",this.type="supporting",this.color="secondary"}get date(){let e=this.datetime;if(e==null||e==="")return;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?void 0:t}connectedCallback(){super.connectedCallback(),!!1&&(document.addEventListener("visibilitychange",this.#d),typeof IntersectionObserver=="function"&&(this.#r=new IntersectionObserver(e=>{let t=e[e.length-1];t&&this.#o(t.isIntersecting)}),this.#r.observe(this)),this.#s())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.#d),this.#r?.disconnect(),this.#r=void 0,this.#n()}updated(e){(e.has("mode")||e.has("datetime"))&&this.#s()}#n(){clearTimeout(this.#t),this.#t=void 0}#s(){this.#n();let e=this.date;!this.isConnected||this.mode!=="relative"||!e||document.visibilityState==="hidden"||!this.#i||(this.#t=setTimeout(()=>{this.requestUpdate(),this.#s()},hc(Date.now()-e.getTime())))}#o(e){e!==this.#i&&(this.#i=e,e&&this.requestUpdate(),this.#s())}#d=()=>{document.visibilityState==="visible"&&this.requestUpdate(),this.#s()};#a(e){let t=this.locale||this.#e.lang||void 0;try{if(this.mode==="relative"){let o=e.getTime()-Date.now(),[a,d]=uc.find(([,m])=>Math.abs(o)>=m)??["second",Tt],h=Math.trunc(o/d),f=new Intl.RelativeTimeFormat(t,{numeric:this.numeric,style:this.relativeStyle});return Math.abs(o)<5*Tt?f.format(0,"second"):f.format(h,a)}let i=this.dateStyle??"medium",r=this.timeStyle??"short",s={timeZone:this.timeZone};return this.format!=="time"&&(s.dateStyle=i),this.format!=="date"&&(s.timeStyle=r),new Intl.DateTimeFormat(t,s).format(e)}catch{return e.toISOString()}}#l(e){try{return new Intl.DateTimeFormat(this.locale||this.#e.lang||void 0,{dateStyle:"full",timeStyle:"short",timeZone:this.timeZone}).format(e)}catch{return e.toISOString()}}render(){let e=this.date;if(!e)return l`<slot></slot>`;let t=this.mode==="relative"?this.#l(e):void 0;return l`<time part="time" datetime=${e.toISOString()} title=${t??c}
11864
11864
  >${this.#a(e)}</time
11865
- >`}};Or.define();function ta(n,e,t,i){let r=document.createElement("und-button");return r.variant=e,r.tone=t,r.textContent=n,r.dataset.choice=i,r}function ia(n,e){return typeof document>"u"?Promise.resolve(!1):new Promise(t=>{let i=document.createElement("und-dialog");if(i.variant="alert",i.label=n.title,n.message){let f=document.createElement("div");f.slot="description",f.textContent=n.message,i.append(f)}let r=n.tone==="danger",s=ta(n.confirmLabel??(e?"Confirm":"OK"),r?"soft":"solid",r?"danger":"primary","confirm");s.slot="footer";let o=[s];if(e){let f=ta(n.cancelLabel??"Cancel","ghost","neutral","cancel");f.slot="footer",f.setAttribute("autofocus",""),o.unshift(f)}else s.setAttribute("autofocus","");i.append(...o);let l=!1,d=f=>{let m=f.target.closest("[data-choice]");m&&(l=m.dataset.choice==="confirm",i.close())},h=()=>i.close();i.addEventListener("click",d),n.signal?.addEventListener("abort",h,{once:!0}),i.addEventListener("und-after-close",()=>{n.signal?.removeEventListener("abort",h),i.remove(),t(l)},{once:!0}),(n.container??document.body).append(i),i.updateComplete.then(()=>{if(n.signal?.aborted){i.remove(),t(!1);return}i.show()})})}function Dz(n){return ia(n,!0)}async function Iz(n){await ia(n,!1)}var ra=u` @layer und.components{.dialog{--_settle:var(--und-bottom-sheet-settle,220ms)}:host([placement='bottom']) .dialog{max-inline-size:min(100%,var(--und-bottom-sheet-max-width,40rem));margin-inline:auto;border-inline:var(--_edge);border-start-start-radius:var(--und-bottom-sheet-radius,var(--und-radius-container,12px));border-start-end-radius:var(--und-bottom-sheet-radius,var(--und-radius-container,12px))}.dialog.settling{transition:transform var(--_enter) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1)),block-size var(--_settle) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}.dialog.dragging{transition:none;user-select:none}.grab{display:grid;flex:none;place-items:center;min-block-size:var(--und-space-6,1.5rem);touch-action:none;cursor:grab}.dialog.dragging .grab{cursor:grabbing}.header{padding-block-start:var(--und-space-4,1rem);touch-action:none}.handle{inline-size:2.25rem;block-size:var(--und-space-1,0.25rem);border-radius:var(--und-radius-full,9999px);background:var(--und-border-strong,#8b90a0)}.grab[role='slider']{min-block-size:var(--und-target-min-coarse,44px);cursor:ns-resize}.grab[role='slider']:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:calc(-1 * var(--und-focus-ring-width,2px))}@media (prefers-reduced-motion:reduce){.dialog.settling{--_settle:0ms}}@media (forced-colors:active){.handle{background:CanvasText}.grab[role='slider']:focus-visible{outline-color:Highlight}}}
11865
+ >`}};Or.define();function ta(n,e,t,i){let r=document.createElement("und-button");return r.variant=e,r.tone=t,r.textContent=n,r.dataset.choice=i,r}function ia(n,e){return typeof document>"u"?Promise.resolve(!1):new Promise(t=>{let i=document.createElement("und-dialog");if(i.variant="alert",i.label=n.title,n.message){let f=document.createElement("div");f.slot="description",f.textContent=n.message,i.append(f)}let r=n.tone==="danger",s=ta(n.confirmLabel??(e?"Confirm":"OK"),r?"soft":"solid",r?"danger":"primary","confirm");s.slot="footer";let o=[s];if(e){let f=ta(n.cancelLabel??"Cancel","ghost","neutral","cancel");f.slot="footer",f.setAttribute("autofocus",""),o.unshift(f)}else s.setAttribute("autofocus","");i.append(...o);let a=!1,d=f=>{let m=f.target.closest("[data-choice]");m&&(a=m.dataset.choice==="confirm",i.close())},h=()=>i.close();i.addEventListener("click",d),n.signal?.addEventListener("abort",h,{once:!0}),i.addEventListener("und-after-close",()=>{n.signal?.removeEventListener("abort",h),i.remove(),t(a)},{once:!0}),(n.container??document.body).append(i),i.updateComplete.then(()=>{if(n.signal?.aborted){i.remove(),t(!1);return}i.show()})})}function Dz(n){return ia(n,!0)}async function Iz(n){await ia(n,!1)}var ra=u` @layer und.components{.dialog{--_settle:var(--und-bottom-sheet-settle,220ms)}:host([placement='bottom']) .dialog{max-inline-size:min(100%,var(--und-bottom-sheet-max-width,40rem));margin-inline:auto;border-inline:var(--_edge);border-start-start-radius:var(--und-bottom-sheet-radius,var(--und-radius-container,12px));border-start-end-radius:var(--und-bottom-sheet-radius,var(--und-radius-container,12px))}.dialog.settling{transition:transform var(--_enter) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1)),block-size var(--_settle) var(--und-motion-ease-enter,cubic-bezier(0.24,1,0.4,1))}.dialog.dragging{transition:none;user-select:none}.grab{display:grid;flex:none;place-items:center;min-block-size:var(--und-space-6,1.5rem);touch-action:none;cursor:grab}.dialog.dragging .grab{cursor:grabbing}.header{padding-block-start:var(--und-space-4,1rem);touch-action:none}.handle{inline-size:2.25rem;block-size:var(--und-space-1,0.25rem);border-radius:var(--und-radius-full,9999px);background:var(--und-border-strong,#8b90a0)}.grab[role='slider']{min-block-size:var(--und-target-min-coarse,44px);cursor:ns-resize}.grab[role='slider']:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:calc(-1 * var(--und-focus-ring-width,2px))}@media (prefers-reduced-motion:reduce){.dialog.settling{--_settle:0ms}}@media (forced-colors:active){.handle{background:CanvasText}.grab[role='slider']:focus-visible{outline-color:Highlight}}}
11866
11866
 
11867
11867
 
11868
11868
 
@@ -11938,9 +11938,9 @@ ${he(".text")}}
11938
11938
 
11939
11939
 
11940
11940
 
11941
- `;var pc=.5,fc=120,mc=.6;function bc(n){return(Array.isArray(n)?n:String(n??"").split(/[\s,]+/)).map(Number).filter(t=>Number.isFinite(t)&&t>0&&t<=1).sort((t,i)=>t-i)}var Hr=class extends Me{static tagName="und-bottom-sheet";static styles=[ye,ii,ra];static properties={...Me.properties,snapPoints:{attribute:"snap-points",converter:{fromAttribute:bc,toAttribute:e=>e.join(",")}},snap:{type:Number,reflect:!0},handleLabel:{attribute:"handle-label"}};#e;#t;constructor(){super(),this.placement="bottom",this.snapPoints=[],this.snap=0,this.handleLabel="Sheet height"}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerdown",this.#d),this.addEventListener("pointermove",this.#l),this.addEventListener("pointerup",this.#c),this.addEventListener("pointercancel",this.#c)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.#t),this.removeEventListener("pointerdown",this.#d),this.removeEventListener("pointermove",this.#l),this.removeEventListener("pointerup",this.#c),this.removeEventListener("pointercancel",this.#c)}updated(e){super.updated(e),e.has("open")&&this.open?this.#r(!1):(e.has("snap")||e.has("snapPoints"))&&this.#r(this.open)}#i(){return this.snapPoints.map(e=>Math.round(e*window.innerHeight))}#r(e){let t=this.dialog;if(!t)return;let i=this.#i(),r=i[Math.min(Math.max(this.snap,0),i.length-1)];if(r===void 0){t.style.removeProperty("--und-drawer-size");return}e&&this.#n(t),t.style.setProperty("--und-drawer-size",`${r}px`)}#n(e){e.classList.add("settling"),clearTimeout(this.#t),this.#t=setTimeout(()=>e.classList.remove("settling"),400)}#s(e){let t=Math.min(Math.max(e,0),this.snapPoints.length-1);if(t===this.snap){this.#r(!0);return}this.snap=t,this.emit("und-snap-change",{index:t,fraction:this.snapPoints[t]})}#o=e=>{let t=this.snapPoints.length-1,i=e.key==="ArrowUp"||e.key==="PageUp"?this.snap+1:e.key==="ArrowDown"||e.key==="PageDown"?this.snap-1:e.key==="Home"?0:e.key==="End"?t:void 0;i!==void 0&&(e.preventDefault(),this.#s(i))};#d=e=>{let t=this.dialog;if(!t||!this.open||e.pointerType==="mouse"&&e.button!==0)return;let i=e.composedPath();if(i.some(s=>s instanceof HTMLButtonElement))return;let r=i.find(s=>s instanceof HTMLElement&&(s.classList.contains("grab")||s.classList.contains("header")));if(r){clearTimeout(this.#t),t.classList.remove("settling"),t.classList.add("dragging");try{r.setPointerCapture(e.pointerId)}catch{}this.#e={zone:r,pointerId:e.pointerId,startY:e.clientY,startSize:t.getBoundingClientRect().height,lastY:e.clientY,lastAt:e.timeStamp,speed:0}}};#a(e,t){return Math.min(Math.max(e.startSize-(t-e.startY),0),window.innerHeight)}#l=e=>{let t=this.#e,i=this.dialog;if(!t||!i||e.pointerId!==t.pointerId)return;let r=e.timeStamp-t.lastAt;r>0&&(t.speed=(e.clientY-t.lastY)/r),t.lastY=e.clientY,t.lastAt=e.timeStamp,i.style.setProperty("--und-drawer-size",`${this.#a(t,e.clientY)}px`)};#c=e=>{let t=this.#e,i=this.dialog;if(!t||!i||e.pointerId!==t.pointerId)return;this.#e=void 0,t.zone.hasPointerCapture(t.pointerId)&&t.zone.releasePointerCapture(t.pointerId),i.classList.remove("dragging");let r=Math.abs(t.speed)>pc,s=this.#a(t,t.lastY)-(r?t.speed*fc:0),o=this.#i(),l=o[0]??t.startSize;if(e.type==="pointerup"&&this.closedBy!=="none"&&this.variant!=="alert"&&s<l*mc){this.requestOpen(!1,"swipe"),this.open&&this.#u(i,o,t.startSize);return}if(o.length===0){this.#h(i);return}let d=0;for(let[h,f]of o.entries())Math.abs(f-s)<Math.abs((o[d]??0)-s)&&(d=h);this.#s(d)};#u(e,t,i){t.length>0?this.#s(this.snap):(this.#n(e),e.style.setProperty("--und-drawer-size",`${i}px`),this.#h(e))}#h(e){this.#n(e),e.style.removeProperty("--und-drawer-size")}#p(){let e=this.snapPoints.length;if(e<2)return a`<div part="grab" class="grab" aria-hidden="true">
11941
+ `;var pc=.5,fc=120,mc=.6;function bc(n){return(Array.isArray(n)?n:String(n??"").split(/[\s,]+/)).map(Number).filter(t=>Number.isFinite(t)&&t>0&&t<=1).sort((t,i)=>t-i)}var Hr=class extends Me{static tagName="und-bottom-sheet";static styles=[ye,ii,ra];static properties={...Me.properties,snapPoints:{attribute:"snap-points",converter:{fromAttribute:bc,toAttribute:e=>e.join(",")}},snap:{type:Number,reflect:!0},handleLabel:{attribute:"handle-label"}};#e;#t;constructor(){super(),this.placement="bottom",this.snapPoints=[],this.snap=0,this.handleLabel="Sheet height"}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerdown",this.#d),this.addEventListener("pointermove",this.#l),this.addEventListener("pointerup",this.#c),this.addEventListener("pointercancel",this.#c)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.#t),this.removeEventListener("pointerdown",this.#d),this.removeEventListener("pointermove",this.#l),this.removeEventListener("pointerup",this.#c),this.removeEventListener("pointercancel",this.#c)}updated(e){super.updated(e),e.has("open")&&this.open?this.#r(!1):(e.has("snap")||e.has("snapPoints"))&&this.#r(this.open)}#i(){return this.snapPoints.map(e=>Math.round(e*window.innerHeight))}#r(e){let t=this.dialog;if(!t)return;let i=this.#i(),r=i[Math.min(Math.max(this.snap,0),i.length-1)];if(r===void 0){t.style.removeProperty("--und-drawer-size");return}e&&this.#n(t),t.style.setProperty("--und-drawer-size",`${r}px`)}#n(e){e.classList.add("settling"),clearTimeout(this.#t),this.#t=setTimeout(()=>e.classList.remove("settling"),400)}#s(e){let t=Math.min(Math.max(e,0),this.snapPoints.length-1);if(t===this.snap){this.#r(!0);return}this.snap=t,this.emit("und-snap-change",{index:t,fraction:this.snapPoints[t]})}#o=e=>{let t=this.snapPoints.length-1,i=e.key==="ArrowUp"||e.key==="PageUp"?this.snap+1:e.key==="ArrowDown"||e.key==="PageDown"?this.snap-1:e.key==="Home"?0:e.key==="End"?t:void 0;i!==void 0&&(e.preventDefault(),this.#s(i))};#d=e=>{let t=this.dialog;if(!t||!this.open||e.pointerType==="mouse"&&e.button!==0)return;let i=e.composedPath();if(i.some(s=>s instanceof HTMLButtonElement))return;let r=i.find(s=>s instanceof HTMLElement&&(s.classList.contains("grab")||s.classList.contains("header")));if(r){clearTimeout(this.#t),t.classList.remove("settling"),t.classList.add("dragging");try{r.setPointerCapture(e.pointerId)}catch{}this.#e={zone:r,pointerId:e.pointerId,startY:e.clientY,startSize:t.getBoundingClientRect().height,lastY:e.clientY,lastAt:e.timeStamp,speed:0}}};#a(e,t){return Math.min(Math.max(e.startSize-(t-e.startY),0),window.innerHeight)}#l=e=>{let t=this.#e,i=this.dialog;if(!t||!i||e.pointerId!==t.pointerId)return;let r=e.timeStamp-t.lastAt;r>0&&(t.speed=(e.clientY-t.lastY)/r),t.lastY=e.clientY,t.lastAt=e.timeStamp,i.style.setProperty("--und-drawer-size",`${this.#a(t,e.clientY)}px`)};#c=e=>{let t=this.#e,i=this.dialog;if(!t||!i||e.pointerId!==t.pointerId)return;this.#e=void 0,t.zone.hasPointerCapture(t.pointerId)&&t.zone.releasePointerCapture(t.pointerId),i.classList.remove("dragging");let r=Math.abs(t.speed)>pc,s=this.#a(t,t.lastY)-(r?t.speed*fc:0),o=this.#i(),a=o[0]??t.startSize;if(e.type==="pointerup"&&this.closedBy!=="none"&&this.variant!=="alert"&&s<a*mc){this.requestOpen(!1,"swipe"),this.open&&this.#u(i,o,t.startSize);return}if(o.length===0){this.#h(i);return}let d=0;for(let[h,f]of o.entries())Math.abs(f-s)<Math.abs((o[d]??0)-s)&&(d=h);this.#s(d)};#u(e,t,i){t.length>0?this.#s(this.snap):(this.#n(e),e.style.setProperty("--und-drawer-size",`${i}px`),this.#h(e))}#h(e){this.#n(e),e.style.removeProperty("--und-drawer-size")}#p(){let e=this.snapPoints.length;if(e<2)return l`<div part="grab" class="grab" aria-hidden="true">
11942
11942
  <div part="handle" class="handle"></div>
11943
- </div>`;let t=this.snapPoints[this.snap]??0;return a`<div
11943
+ </div>`;let t=this.snapPoints[this.snap]??0;return l`<div
11944
11944
  part="grab"
11945
11945
  class="grab"
11946
11946
  role="slider"
@@ -11954,7 +11954,7 @@ ${he(".text")}}
11954
11954
  @keydown=${this.#o}
11955
11955
  >
11956
11956
  <div part="handle" class="handle"></div>
11957
- </div>`}renderContent(){return a`${this.#p()}${super.renderContent()}`}};Hr.define();var na=u` @layer und.components{:host{--und-dialog-width:var(--und-command-palette-width,40rem)}.dialog{margin-block:min(15dvh,6rem) auto;max-block-size:min(32rem,calc(100dvh - 2rem))}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;border:0;clip-path:inset(50%);white-space:nowrap}.search{display:flex;gap:var(--und-space-2,0.5rem);align-items:center;padding-block:var(--und-command-palette-search-padding-block,var(--und-space-3,0.75rem));padding-inline:var(--und-command-palette-search-padding-inline,var(--und-space-4,1rem));border-block-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3);color:var(--und-fg-muted,#4b5060)}.search svg{flex:none;inline-size:1.125rem;block-size:1.125rem}.input{flex:1 1 auto;min-inline-size:0;padding:0;border:0;background:transparent;color:var(--und-fg-default,#1b1d26);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:var(--und-text-body-sm-lh,1.45);outline:none}.input::placeholder{color:var(--und-fg-muted,#4b5060)}.search:focus-within{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:calc(-1 * var(--und-focus-ring-width,2px))}.list{flex:1 1 auto;min-block-size:0;display:flex;flex-direction:column;gap:var(--und-space-0-5,0.125rem);padding:var(--und-space-1,0.25rem);overflow:auto;overscroll-behavior:contain}.group-label{padding-block:var(--und-space-1,0.25rem);padding-inline:var(--und-space-3,0.75rem);color:var(--und-fg-muted,#4b5060);font-size:var(--und-text-body-sm-size,0.875rem);line-height:var(--und-text-body-sm-lh,1.25)}.option{box-sizing:border-box;display:flex;gap:var(--und-space-2,0.5rem);align-items:center;min-block-size:max(2.25rem,var(--und-target-min,24px));padding-block:var(--und-space-2,0.5rem);padding-inline:var(--und-space-3,0.75rem);border-radius:var(--und-command-palette-item-radius,var(--und-radius-element,0.5rem));font-size:var(--und-text-label-md-size,0.875rem);cursor:pointer;user-select:none}.option[data-active]{background:var(--und-bg-hover,#e4e6ee)}.option[aria-disabled='true']{color:var(--und-fg-disabled,#8b90a0);cursor:default}.label{flex:1 1 auto;min-inline-size:0;overflow-wrap:anywhere}.shortcut{flex:none;color:var(--und-fg-muted,#4b5060);font-family:inherit;font-size:0.8125rem}.empty{padding-block:var(--und-space-8,2rem);padding-inline:var(--und-space-4,1rem);color:var(--und-fg-muted,#4b5060);font-size:var(--und-text-body-sm-size,0.875rem);text-align:center}.hints{display:flex;flex-wrap:wrap;gap:var(--und-space-2,0.5rem) var(--und-space-4,1rem);padding-block:var(--und-space-2,0.5rem);padding-inline:var(--und-space-4,1rem);border-block-start:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3);color:var(--und-fg-muted,#4b5060);font-size:var(--und-text-body-sm-size,0.875rem)}.hints kbd{padding-inline:var(--und-space-1,0.25rem);border:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3);border-radius:var(--und-radius-sm,0.25rem);background:var(--und-bg-muted,rgb(0 0 0 / 6%));color:var(--und-fg-default,#1b1d26);font-family:inherit}[hidden]{display:none}@media (pointer:coarse){.option{min-block-size:var(--und-target-min-coarse,44px)}.hints{display:none}}@media (forced-colors:active){.option[data-active]{background:Highlight;color:HighlightText;forced-color-adjust:none}.option[aria-disabled='true']{color:GrayText}.search:focus-within{outline-color:Highlight}}}
11957
+ </div>`}renderContent(){return l`${this.#p()}${super.renderContent()}`}};Hr.define();var na=u` @layer und.components{:host{--und-dialog-width:var(--und-command-palette-width,40rem)}.dialog{margin-block:min(15dvh,6rem) auto;max-block-size:min(32rem,calc(100dvh - 2rem))}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;border:0;clip-path:inset(50%);white-space:nowrap}.search{display:flex;gap:var(--und-space-2,0.5rem);align-items:center;padding-block:var(--und-command-palette-search-padding-block,var(--und-space-3,0.75rem));padding-inline:var(--und-command-palette-search-padding-inline,var(--und-space-4,1rem));border-block-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3);color:var(--und-fg-muted,#4b5060)}.search svg{flex:none;inline-size:1.125rem;block-size:1.125rem}.input{flex:1 1 auto;min-inline-size:0;padding:0;border:0;background:transparent;color:var(--und-fg-default,#1b1d26);font:inherit;font-size:var(--und-text-body-sm-size,0.875rem);line-height:var(--und-text-body-sm-lh,1.45);outline:none}.input::placeholder{color:var(--und-fg-muted,#4b5060)}.search:focus-within{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:calc(-1 * var(--und-focus-ring-width,2px))}.list{flex:1 1 auto;min-block-size:0;display:flex;flex-direction:column;gap:var(--und-space-0-5,0.125rem);padding:var(--und-space-1,0.25rem);overflow:auto;overscroll-behavior:contain}.group-label{padding-block:var(--und-space-1,0.25rem);padding-inline:var(--und-space-3,0.75rem);color:var(--und-fg-muted,#4b5060);font-size:var(--und-text-body-sm-size,0.875rem);line-height:var(--und-text-body-sm-lh,1.25)}.option{box-sizing:border-box;display:flex;gap:var(--und-space-2,0.5rem);align-items:center;min-block-size:max(2.25rem,var(--und-target-min,24px));padding-block:var(--und-space-2,0.5rem);padding-inline:var(--und-space-3,0.75rem);border-radius:var(--und-command-palette-item-radius,var(--und-radius-element,0.5rem));font-size:var(--und-text-label-md-size,0.875rem);cursor:pointer;user-select:none}.option[data-active]{background:var(--und-bg-hover,#e4e6ee)}.option[aria-disabled='true']{color:var(--und-fg-disabled,#8b90a0);cursor:default}.label{flex:1 1 auto;min-inline-size:0;overflow-wrap:anywhere}.shortcut{flex:none;color:var(--und-fg-muted,#4b5060);font-family:inherit;font-size:0.8125rem}.empty{padding-block:var(--und-space-8,2rem);padding-inline:var(--und-space-4,1rem);color:var(--und-fg-muted,#4b5060);font-size:var(--und-text-body-sm-size,0.875rem);text-align:center}.hints{display:flex;flex-wrap:wrap;gap:var(--und-space-2,0.5rem) var(--und-space-4,1rem);padding-block:var(--und-space-2,0.5rem);padding-inline:var(--und-space-4,1rem);border-block-start:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3);color:var(--und-fg-muted,#4b5060);font-size:var(--und-text-body-sm-size,0.875rem)}.hints kbd{padding-inline:var(--und-space-1,0.25rem);border:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3);border-radius:var(--und-radius-sm,0.25rem);background:var(--und-bg-muted,rgb(0 0 0 / 6%));color:var(--und-fg-default,#1b1d26);font-family:inherit}[hidden]{display:none}@media (pointer:coarse){.option{min-block-size:var(--und-target-min-coarse,44px)}.hints{display:none}}@media (forced-colors:active){.option[data-active]{background:Highlight;color:HighlightText;forced-color-adjust:none}.option[aria-disabled='true']{color:GrayText}.search:focus-within{outline-color:Highlight}}}
11958
11958
 
11959
11959
 
11960
11960
 
@@ -12128,7 +12128,7 @@ ${he(".text")}}
12128
12128
 
12129
12129
 
12130
12130
 
12131
- `;var sa=6,gc=3;function vc(n,e,t){let i=e.normalize("NFC"),r=n.normalize("NFC");if(!i)return!0;for(let s=0;s<r.length;s+=1)for(let o=0;o<=gc;o+=1){let l=s+i.length+o;if(l>r.length)break;if(t.compare(r.slice(s,l),i)===0)return!0}return!1}var xc=(n,e,t)=>{let i=`${n.label} ${n.keywords??""}`;return e.split(/\s+/).filter(Boolean).every(r=>vc(i,r,t))};function yc(n,e){let t=e.toLowerCase().split("+"),i=t.pop();if(!i)return!1;let r=(...o)=>o.some(l=>t.includes(l));return(r("mod")?n.ctrlKey||n.metaKey:n.ctrlKey===r("ctrl","control")&&n.metaKey===r("meta","cmd"))&&n.altKey===r("alt","option")&&n.shiftKey===r("shift")&&n.key.toLowerCase()===i}var Fr=class extends ie{static tagName="und-command-palette";static styles=[ye,na];static properties={...ie.properties,commands:{attribute:!1},filter:{attribute:!1},hints:{attribute:!1},resultCountLabel:{attribute:!1},placeholder:{},searchLabel:{attribute:"search-label"},emptyLabel:{attribute:"empty-label"},hotkey:{type:Boolean},hotkeyCombo:{attribute:"hotkey-combo"}};#e=new y(this);#t=[];#i=[];#r;#n=-1;#s="";#o=-1;constructor(){super(),this.label="Command palette",this.commands=void 0,this.filter=xc,this.hints={navigate:"to navigate",run:"to run",close:"to close"},this.resultCountLabel=e=>e===1?"1 result":`${e} results`,this.placeholder="Type a command or search\u2026",this.searchLabel="Search commands",this.emptyLabel="No results found",this.hotkey=!1,this.hotkeyCombo="mod+k"}connectedCallback(){super.connectedCallback(),!!1&&(this.#d(),this.#r=new MutationObserver(()=>{this.#d(),this.requestUpdate()}),this.#r.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["value","label","disabled","data-keywords","data-shortcut"]}),document.addEventListener("keydown",this.#a))}disconnectedCallback(){super.disconnectedCallback(),this.#r?.disconnect(),document.removeEventListener("keydown",this.#a)}#d(){this.#t=[...this.querySelectorAll("option")].map(e=>{let t=e.parentElement instanceof HTMLOptGroupElement?e.parentElement:null;return{value:e.value,label:e.label||e.value,disabled:e.disabled||(t?.disabled??!1),...t?{group:t.label}:{},...e.dataset.keywords?{keywords:e.dataset.keywords}:{},...e.dataset.shortcut?{shortcut:e.dataset.shortcut}:{}}})}#a=e=>{!this.hotkey||e.defaultPrevented||e.isComposing||e.repeat||yc(e,this.hotkeyCombo)&&(!this.open&&ti()||(e.preventDefault(),this.requestOpen(!this.open,"command")))};willUpdate(e){super.willUpdate(e),e.has("open")&&this.open&&(this.#s="",this.#o=-1),this.#l(),this.#i[this.#o]?.disabled!==!1&&(this.#o=J(this.#i,1))}updated(e){super.updated(e),this.#o!==this.#n&&this.#o>=0&&(this.#n=this.#o,this.renderRoot.querySelector(`#${V(this.#o)}`)?.scrollIntoView({block:"nearest"}))}#l(){let e=this.commands??this.#t,t=this.#s.trim();if(!t){this.#i=e;return}let i=new Intl.Collator(this.#e.lang||void 0,{usage:"search",sensitivity:"base",ignorePunctuation:!0});this.#i=e.filter(r=>this.filter(r,t,i))}#c(e){let t=we(this.#i,this.#o,e);this.#o=t===-1?J(this.#i,e===1?1:-1):t,this.requestUpdate()}#u(e){let t=this.#i[e];if(!t||t.disabled)return;this.emit("und-select",{value:t.value,label:t.label},{cancelable:!0})&&this.requestOpen(!1,"select")}#h=e=>{this.#s=e.target.value,this.requestUpdate(),this.emit("und-query-change",{query:this.#s})};#p=e=>{e.isComposing||e.altKey||e.ctrlKey||e.metaKey||(e.key==="ArrowDown"||e.key==="ArrowUp"?(e.preventDefault(),this.#c(e.key==="ArrowDown"?1:-1)):e.key==="PageDown"||e.key==="PageUp"?(e.preventDefault(),this.#o=Xe(this.#i,this.#o,e.key==="PageDown"?sa:-sa),this.requestUpdate()):e.key==="Enter"&&(e.preventDefault(),this.#u(this.#o)))};#f=e=>{if(e.pointerType==="touch")return;let t=W(e);t>=0&&t!==this.#o&&!this.#i[t]?.disabled&&(this.#o=t,this.requestUpdate())};#m=e=>{let t=W(e);t>=0&&this.#u(t)};#b=e=>e.preventDefault();#g(e,t){return a`<div
12131
+ `;var sa=6,gc=3;function vc(n,e,t){let i=e.normalize("NFC"),r=n.normalize("NFC");if(!i)return!0;for(let s=0;s<r.length;s+=1)for(let o=0;o<=gc;o+=1){let a=s+i.length+o;if(a>r.length)break;if(t.compare(r.slice(s,a),i)===0)return!0}return!1}var xc=(n,e,t)=>{let i=`${n.label} ${n.keywords??""}`;return e.split(/\s+/).filter(Boolean).every(r=>vc(i,r,t))};function yc(n,e){let t=e.toLowerCase().split("+"),i=t.pop();if(!i)return!1;let r=(...o)=>o.some(a=>t.includes(a));return(r("mod")?n.ctrlKey||n.metaKey:n.ctrlKey===r("ctrl","control")&&n.metaKey===r("meta","cmd"))&&n.altKey===r("alt","option")&&n.shiftKey===r("shift")&&n.key.toLowerCase()===i}var Fr=class extends ie{static tagName="und-command-palette";static styles=[ye,na];static properties={...ie.properties,commands:{attribute:!1},filter:{attribute:!1},hints:{attribute:!1},resultCountLabel:{attribute:!1},placeholder:{},searchLabel:{attribute:"search-label"},emptyLabel:{attribute:"empty-label"},hotkey:{type:Boolean},hotkeyCombo:{attribute:"hotkey-combo"}};#e=new y(this);#t=[];#i=[];#r;#n=-1;#s="";#o=-1;constructor(){super(),this.label="Command palette",this.commands=void 0,this.filter=xc,this.hints={navigate:"to navigate",run:"to run",close:"to close"},this.resultCountLabel=e=>e===1?"1 result":`${e} results`,this.placeholder="Type a command or search\u2026",this.searchLabel="Search commands",this.emptyLabel="No results found",this.hotkey=!1,this.hotkeyCombo="mod+k"}connectedCallback(){super.connectedCallback(),!!1&&(this.#d(),this.#r=new MutationObserver(()=>{this.#d(),this.requestUpdate()}),this.#r.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["value","label","disabled","data-keywords","data-shortcut"]}),document.addEventListener("keydown",this.#a))}disconnectedCallback(){super.disconnectedCallback(),this.#r?.disconnect(),document.removeEventListener("keydown",this.#a)}#d(){this.#t=[...this.querySelectorAll("option")].map(e=>{let t=e.parentElement instanceof HTMLOptGroupElement?e.parentElement:null;return{value:e.value,label:e.label||e.value,disabled:e.disabled||(t?.disabled??!1),...t?{group:t.label}:{},...e.dataset.keywords?{keywords:e.dataset.keywords}:{},...e.dataset.shortcut?{shortcut:e.dataset.shortcut}:{}}})}#a=e=>{!this.hotkey||e.defaultPrevented||e.isComposing||e.repeat||yc(e,this.hotkeyCombo)&&(!this.open&&ti()||(e.preventDefault(),this.requestOpen(!this.open,"command")))};willUpdate(e){super.willUpdate(e),e.has("open")&&this.open&&(this.#s="",this.#o=-1),this.#l(),this.#i[this.#o]?.disabled!==!1&&(this.#o=J(this.#i,1))}updated(e){super.updated(e),this.#o!==this.#n&&this.#o>=0&&(this.#n=this.#o,this.renderRoot.querySelector(`#${V(this.#o)}`)?.scrollIntoView({block:"nearest"}))}#l(){let e=this.commands??this.#t,t=this.#s.trim();if(!t){this.#i=e;return}let i=new Intl.Collator(this.#e.lang||void 0,{usage:"search",sensitivity:"base",ignorePunctuation:!0});this.#i=e.filter(r=>this.filter(r,t,i))}#c(e){let t=we(this.#i,this.#o,e);this.#o=t===-1?J(this.#i,e===1?1:-1):t,this.requestUpdate()}#u(e){let t=this.#i[e];if(!t||t.disabled)return;this.emit("und-select",{value:t.value,label:t.label},{cancelable:!0})&&this.requestOpen(!1,"select")}#h=e=>{this.#s=e.target.value,this.requestUpdate(),this.emit("und-query-change",{query:this.#s})};#p=e=>{e.isComposing||e.altKey||e.ctrlKey||e.metaKey||(e.key==="ArrowDown"||e.key==="ArrowUp"?(e.preventDefault(),this.#c(e.key==="ArrowDown"?1:-1)):e.key==="PageDown"||e.key==="PageUp"?(e.preventDefault(),this.#o=Xe(this.#i,this.#o,e.key==="PageDown"?sa:-sa),this.requestUpdate()):e.key==="Enter"&&(e.preventDefault(),this.#u(this.#o)))};#f=e=>{if(e.pointerType==="touch")return;let t=W(e);t>=0&&t!==this.#o&&!this.#i[t]?.disabled&&(this.#o=t,this.requestUpdate())};#m=e=>{let t=W(e);t>=0&&this.#u(t)};#b=e=>e.preventDefault();#v(e,t){return l`<div
12132
12132
  id=${V(t)}
12133
12133
  part="option"
12134
12134
  class="option"
@@ -12139,11 +12139,11 @@ ${he(".text")}}
12139
12139
  ?data-active=${t===this.#o}
12140
12140
  >
12141
12141
  <span class="label">${e.label}</span>
12142
- ${e.shortcut?a`<span part="shortcut" class="shortcut">${e.shortcut}</span>`:c}
12143
- </div>`}#v(){let e=[],t=0;for(;t<this.#i.length;){let i=this.#i[t]?.group,r=t,s=[];for(;t<this.#i.length&&this.#i[t]?.group===i;)s.push(this.#g(this.#i[t],t)),t+=1;e.push(i===void 0?a`${s}`:a`<div role="group" aria-labelledby="group-${r}">
12142
+ ${e.shortcut?l`<span part="shortcut" class="shortcut">${e.shortcut}</span>`:c}
12143
+ </div>`}#g(){let e=[],t=0;for(;t<this.#i.length;){let i=this.#i[t]?.group,r=t,s=[];for(;t<this.#i.length&&this.#i[t]?.group===i;)s.push(this.#v(this.#i[t],t)),t+=1;e.push(i===void 0?l`${s}`:l`<div role="group" aria-labelledby="group-${r}">
12144
12144
  <div id="group-${r}" part="group-label" class="group-label">${i}</div>
12145
12145
  ${s}
12146
- </div>`)}return e}renderContent(){let e=this.#i.length,t=e===0,i=this.#s.trim()?t?this.emptyLabel:this.resultCountLabel(e):"",r=this.#o>=0?V(this.#o):void 0;return a`<h2 id="title" class="visually-hidden" tabindex="-1">${this.label}</h2>
12146
+ </div>`)}return e}renderContent(){let e=this.#i.length,t=e===0,i=this.#s.trim()?t?this.emptyLabel:this.resultCountLabel(e):"",r=this.#o>=0?V(this.#o):void 0;return l`<h2 id="title" class="visually-hidden" tabindex="-1">${this.label}</h2>
12147
12147
  <div part="search" class="search">
12148
12148
  <svg viewBox="0 0 20 20" fill="none" aria-hidden="true">
12149
12149
  <circle cx="9" cy="9" r="5.5" stroke="currentColor" stroke-width="1.75" />
@@ -12185,7 +12185,7 @@ ${he(".text")}}
12185
12185
  @pointerdown=${this.#b}
12186
12186
  @click=${this.#m}
12187
12187
  >
12188
- ${this.#v()}
12188
+ ${this.#g()}
12189
12189
  </div>
12190
12190
  <p part="empty" class="empty" aria-hidden="true" ?hidden=${!t}>${this.emptyLabel}</p>
12191
12191
  <div class="visually-hidden" role="status">${i}</div>
@@ -12209,7 +12209,7 @@ ${he(".text")}}
12209
12209
 
12210
12210
 
12211
12211
 
12212
- `;var aa,kc=500,jt=class extends pe{static tagName="und-context-menu";static styles=[vt,oa];static properties={...pe.properties,htmlFor:{attribute:"for"},disabled:{type:Boolean,reflect:!0}};triggerSemantics=!1;#e=null;#t=null;#i=-1/0;constructor(){super(),this.disabled=!1,this.label="Context menu"}async showAt(e,t){if(!1)return;await this.updateComplete;let i=this.renderRoot.querySelector(".anchor");i&&(this.#t=T(),this.open&&(this.hide(),await this.updateComplete),i.style.setProperty("left",`${e}px`),i.style.setProperty("top",`${t}px`),this.show("first"))}resolveTrigger(){return this.renderRoot.querySelector(".anchor")}focusReturnTarget(){let e=this.#t;return e?.isConnected&&e!==document.body?e:this.#e}renderTrigger(){return a`<span class="anchor" aria-hidden="true"></span>`}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.#r()}disconnectedCallback(){super.disconnectedCallback(),this.#n()}updated(e){super.updated(e),(e.has("htmlFor")||!this.#e)&&this.#r()}#r(){let e=this.htmlFor?He(this,this.htmlFor):this.parentElement;e!==this.#e&&(this.#n(),e&&(this.#e=e,e.addEventListener("contextmenu",this.#o),e.addEventListener("keydown",this.#d)))}#n(){this.#e?.removeEventListener("contextmenu",this.#o),this.#e?.removeEventListener("keydown",this.#d),this.#e=null}#s(){let e=T(),i=(e&&this.#e?.contains(e)&&e!==document.body?e:this.#e)?.getBoundingClientRect();return{x:i?.left??0,y:i?.bottom??0}}#o=e=>{let t=e;if(this.disabled||t.defaultPrevented||t.composedPath().some(s=>s instanceof aa&&s!==this))return;e.preventDefault();let r=performance.now()-this.#i<kc||t.clientX===0&&t.clientY===0?this.#s():{x:t.clientX,y:t.clientY};this.showAt(r.x,r.y)};#d=e=>{let t=e;if(!(t.key==="ContextMenu"||t.key==="F10"&&t.shiftKey)||this.disabled||t.defaultPrevented)return;t.preventDefault(),this.#i=performance.now();let r=this.#s();this.showAt(r.x,r.y)}};aa=jt;jt.define();var wc=u` @layer und.components{:host{max-inline-size:min(var(--und-hover-card-max-width,22rem),calc(100vw - 1rem));background:var(--und-bg-surface,#fff);box-shadow:var(--und-shadow-2,0 1px 2px #0000001a,0 2px 12px #0000001a)}}
12212
+ `;var aa,kc=500,jt=class extends pe{static tagName="und-context-menu";static styles=[vt,oa];static properties={...pe.properties,htmlFor:{attribute:"for"},disabled:{type:Boolean,reflect:!0}};triggerSemantics=!1;#e=null;#t=null;#i=-1/0;constructor(){super(),this.disabled=!1,this.label="Context menu"}async showAt(e,t){if(!1)return;await this.updateComplete;let i=this.renderRoot.querySelector(".anchor");i&&(this.#t=T(),this.open&&(this.hide(),await this.updateComplete),i.style.setProperty("left",`${e}px`),i.style.setProperty("top",`${t}px`),this.show("first"))}resolveTrigger(){return this.renderRoot.querySelector(".anchor")}focusReturnTarget(){let e=this.#t;return e?.isConnected&&e!==document.body?e:this.#e}renderTrigger(){return l`<span class="anchor" aria-hidden="true"></span>`}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.#r()}disconnectedCallback(){super.disconnectedCallback(),this.#n()}updated(e){super.updated(e),(e.has("htmlFor")||!this.#e)&&this.#r()}#r(){let e=this.htmlFor?He(this,this.htmlFor):this.parentElement;e!==this.#e&&(this.#n(),e&&(this.#e=e,e.addEventListener("contextmenu",this.#o),e.addEventListener("keydown",this.#d)))}#n(){this.#e?.removeEventListener("contextmenu",this.#o),this.#e?.removeEventListener("keydown",this.#d),this.#e=null}#s(){let e=T(),i=(e&&this.#e?.contains(e)&&e!==document.body?e:this.#e)?.getBoundingClientRect();return{x:i?.left??0,y:i?.bottom??0}}#o=e=>{let t=e;if(this.disabled||t.defaultPrevented||t.composedPath().some(s=>s instanceof aa&&s!==this))return;e.preventDefault();let r=performance.now()-this.#i<kc||t.clientX===0&&t.clientY===0?this.#s():{x:t.clientX,y:t.clientY};this.showAt(r.x,r.y)};#d=e=>{let t=e;if(!(t.key==="ContextMenu"||t.key==="F10"&&t.shiftKey)||this.disabled||t.defaultPrevented)return;t.preventDefault(),this.#i=performance.now();let r=this.#s();this.showAt(r.x,r.y)}};aa=jt;jt.define();var wc=u` @layer und.components{:host{max-inline-size:min(var(--und-hover-card-max-width,22rem),calc(100vw - 1rem));background:var(--und-bg-surface,#fff);box-shadow:var(--und-shadow-2,0 1px 2px #0000001a,0 2px 12px #0000001a)}}
12213
12213
 
12214
12214
 
12215
12215
 
@@ -12217,7 +12217,7 @@ ${he(".text")}}
12217
12217
 
12218
12218
 
12219
12219
 
12220
- `,it=null,Vr=class extends p{static tagName="und-hover-card";static styles=[ai,wc];static properties={open:{type:Boolean,reflect:!0},htmlFor:{attribute:"for"},placement:{reflect:!0},offset:{type:Number},openDelay:{type:Number,attribute:"open-delay"},closeDelay:{type:Number,attribute:"close-delay"},disabled:{type:Boolean,reflect:!0},label:{},indication:{}};#e=new y(this);#t=null;#i;#r;#n;#s="";#o=!1;#d=(e=>new O(e,{getAnchor:()=>e.#t,getFloating:()=>e,getDirection:()=>e.#e.dir,get placement(){return e.placement},get offset(){return e.offset}}))(this);#a=new P(this,{onDismiss:()=>this.#m(!1,"escape"),dismissOnOutsidePointer:!1});constructor(){super(),this.open=!1,this.placement="bottom",this.offset=4,this.openDelay=300,this.closeDelay=200,this.disabled=!1,this.indication="auto"}connectedCallback(){super.connectedCallback(),!!1&&(this.id||=E("und-hover-card"),this.popover="manual",K(this,"group"),this.addEventListener("pointerenter",this.#p),this.addEventListener("pointerleave",this.#v),this.addEventListener("focusin",this.#p),this.addEventListener("focusout",this.#g),this.hasUpdated&&this.#l())}disconnectedCallback(){super.disconnectedCallback(),this.#p(),it===this&&(it=null),this.removeEventListener("pointerenter",this.#p),this.removeEventListener("pointerleave",this.#v),this.removeEventListener("focusin",this.#p),this.removeEventListener("focusout",this.#g),this.#c()}willUpdate(e){e.has("disabled")&&this.disabled&&(this.open=!1)}updated(e){e.has("label")&&xe(this,this.label,e.get("label")),(e.has("htmlFor")||e.has("indication")||!this.#t)&&this.#l(),e.has("open")&&this.#b()}#l(){this.#c();let e=this.htmlFor?He(this,this.htmlFor):this.previousElementSibling;if(e){this.#t=e,this.#i=this.#h(e),this.#u(e);for(let[t,i]of this.#x)e.addEventListener(t,i)}}#c(){let e=this.#t;if(e){for(let[t,i]of this.#x)e.removeEventListener(t,i);this.#i?.(),this.#i=void 0,this.#r?.(),this.#r=void 0,this.#t=null}}#u(e){let t=this.indication;if(t==="off"||!(e instanceof HTMLElement)||e.style.textDecorationLine)return;let i=e.childElementCount===0&&!!e.textContent?.trim()&&!e.matches("a,button,input,select,textarea,summary,[role],[tabindex]");if(t!=="on"&&!i)return;let r=e.style;r.textDecorationLine="underline",r.textDecorationStyle="dashed",r.textDecorationColor="var(--und-border-strong, currentColor)",r.textUnderlineOffset="var(--und-space-1, 0.25rem)",this.#r=()=>{r.removeProperty("text-decoration-line"),r.removeProperty("text-decoration-style"),r.removeProperty("text-decoration-color"),r.removeProperty("text-underline-offset")}}#h(e){if(e.getRootNode()===this.getRootNode()&&this.id)return e.setAttribute("aria-details",this.id),()=>{e.getAttribute("aria-details")===this.id&&e.removeAttribute("aria-details")};let t=e;return"ariaDetailsElements"in t?(t.ariaDetailsElements=[this],()=>{t.ariaDetailsElements=null}):()=>{}}#p=()=>{this.#n!==void 0&&clearTimeout(this.#n),this.#n=void 0};#f(e,t,i){if(this.#p(),e!==this.open){if(t<=0){this.#m(e,i);return}this.#n=setTimeout(()=>{this.#n=void 0,this.#m(e,i)},t)}}#m(e,t){if(this.#p(),e&&this.disabled||e===this.open)return;let i=!e&&t==="escape"&&S(this,T())&&this.#t;this.open=e,this.emit("und-open-change",{open:e,reason:t}),i instanceof HTMLElement&&(this.#o=!0,i.focus(),this.#o=!1)}#b(){if(!this.isConnected)return;let e=this.matches(":popover-open");if(this.open&&!e){try{this.showPopover()}catch{this.open=!1;return}this.#d.start(),this.#a.activate(),it&&it!==this&&(it.open=!1),it=this}else!this.open&&e&&(it===this&&(it=null),this.hidePopover(),this.#d.stop(),this.#a.deactivate());this.setCustomState("open",this.open)}#g=e=>{let t=e.relatedTarget;t instanceof Node&&(S(this,t)||this.#t?.contains(t))||this.#f(!1,this.closeDelay,"blur")};#v=()=>{S(this,T())||this.#f(!1,this.closeDelay,"leave")};#x=[["pointerdown",e=>{this.#s=e.pointerType,this.#m(!1,"press")}],["pointerenter",e=>{e.pointerType!=="touch"&&this.#f(!0,this.openDelay,"hover")}],["pointerleave",()=>{this.#f(!1,this.closeDelay,"leave")}],["focusin",()=>{this.#s==="touch"||this.#o||T()?.matches(":focus-visible")&&this.#f(!0,this.openDelay,"focus")}],["focusout",e=>{this.#s="";let t=e.relatedTarget;t instanceof Node&&S(this,t)||this.#f(!1,this.closeDelay,"blur")}]];render(){return a`<slot></slot>`}};Vr.define();var la=u` @layer und.components{.dialog{--_bg:var(--und-lightbox-bg,transparent);--_fg:var(--und-lightbox-fg,#fff);--_control-bg:var(--und-lightbox-control-bg,color-mix(in srgb,#000 75%,transparent));--_control-size:2.25rem;position:relative;background:var(--_bg);box-shadow:none;color:var(--_fg)}.dialog::backdrop{backdrop-filter:var(--und-lightbox-backdrop-filter,blur(2px))}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;border:0;clip-path:inset(50%);white-space:nowrap}.bar{position:absolute;inset-block-start:var(--und-space-3,0.75rem);inset-inline:var(--und-space-3,0.75rem);z-index:1;display:flex;gap:var(--und-space-2,0.5rem);align-items:center;justify-content:flex-end;pointer-events:none}.bar > *{pointer-events:auto}.counter{display:inline-flex;align-items:center;block-size:var(--_control-size);margin-inline-end:auto;padding-inline:var(--und-space-3,0.75rem);border-radius:var(--und-radius-full,9999px);background:var(--_control-bg);font-variant-numeric:tabular-nums}.control,.close{display:inline-grid;flex:none;place-items:center;box-sizing:border-box;inline-size:var(--_control-size);block-size:var(--_control-size);margin:0;padding:0;border:0;border-radius:var(--und-radius-full,9999px);background:var(--_control-bg);color:var(--_fg);font:inherit;cursor:pointer}.control:hover,.close:hover{background:color-mix(in srgb,var(--_control-bg),var(--_fg) 16%)}.control:active,.close:active{background:color-mix(in srgb,var(--_control-bg),var(--_fg) 24%)}.control[aria-disabled='true']{opacity:0.4;cursor:default}.control:focus-visible,.close:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--_fg);outline-offset:var(--und-focus-ring-offset,2px)}.control svg{inline-size:1.25rem;block-size:1.25rem}.stage{position:relative;display:flex;flex:1 1 auto;align-items:stretch;min-block-size:0}.stage > .control{position:absolute;inset-block-start:50%;z-index:1;translate:0 -50%}.stage > [part='previous']{inset-inline-start:var(--und-space-3,0.75rem)}.stage > [part='next']{inset-inline-end:var(--und-space-3,0.75rem)}.figure{display:flex;flex:1 1 auto;flex-direction:column;align-items:center;min-inline-size:0;margin:0}.viewport{display:grid;flex:1 1 0;place-items:center;inline-size:100%;min-block-size:0;overflow:auto}.viewport:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--_fg);outline-offset:calc(-1 * var(--und-focus-ring-width,2px))}.image{display:block;max-inline-size:100%;max-block-size:100%;object-fit:contain}:host([zoomed]) .image{max-inline-size:none;max-block-size:none;inline-size:200%;cursor:zoom-out}:host(:not([zoomed])) .image[data-zoomable]{cursor:zoom-in}.caption{box-sizing:border-box;flex:none;inline-size:100%;min-block-size:calc( var(--und-space-2,0.5rem) + 2lh + var(--und-space-3,0.75rem) + env(safe-area-inset-bottom,0px) );padding-block:var(--und-space-2,0.5rem) calc(var(--und-space-3,0.75rem) + env(safe-area-inset-bottom,0px));padding-inline:max(var(--und-space-3,0.75rem),calc((100% - 600px) / 2));background:var(--und-lightbox-caption-bg,color-mix(in srgb,#000 90%,transparent));text-align:center;overflow-wrap:anywhere}.error{margin:var(--und-space-6,1.5rem);padding:var(--und-space-4,1rem) var(--und-space-6,1.5rem);border-radius:var(--und-radius-container,12px);background:var(--_control-bg);text-align:center}:host(:dir(rtl)) .flip svg{transform:scaleX(-1)}[hidden]{display:none}@media (pointer:coarse){.dialog{--_control-size:var(--und-target-min-coarse,44px)}}@media (forced-colors:active){.dialog{border:1px solid CanvasText}.control,.close,.counter{border:1px solid CanvasText}.control:focus-visible,.close:focus-visible,.viewport:focus-visible{outline-color:Highlight}}}
12220
+ `,it=null,Vr=class extends p{static tagName="und-hover-card";static styles=[ai,wc];static properties={open:{type:Boolean,reflect:!0},htmlFor:{attribute:"for"},placement:{reflect:!0},offset:{type:Number},openDelay:{type:Number,attribute:"open-delay"},closeDelay:{type:Number,attribute:"close-delay"},disabled:{type:Boolean,reflect:!0},label:{},indication:{}};#e=new y(this);#t=null;#i;#r;#n;#s="";#o=!1;#d=(e=>new O(e,{getAnchor:()=>e.#t,getFloating:()=>e,getDirection:()=>e.#e.dir,get placement(){return e.placement},get offset(){return e.offset}}))(this);#a=new P(this,{onDismiss:()=>this.#m(!1,"escape"),dismissOnOutsidePointer:!1});constructor(){super(),this.open=!1,this.placement="bottom",this.offset=4,this.openDelay=300,this.closeDelay=200,this.disabled=!1,this.indication="auto"}connectedCallback(){super.connectedCallback(),!!1&&(this.id||=E("und-hover-card"),this.popover="manual",K(this,"group"),this.addEventListener("pointerenter",this.#p),this.addEventListener("pointerleave",this.#g),this.addEventListener("focusin",this.#p),this.addEventListener("focusout",this.#v),this.hasUpdated&&this.#l())}disconnectedCallback(){super.disconnectedCallback(),this.#p(),it===this&&(it=null),this.removeEventListener("pointerenter",this.#p),this.removeEventListener("pointerleave",this.#g),this.removeEventListener("focusin",this.#p),this.removeEventListener("focusout",this.#v),this.#c()}willUpdate(e){e.has("disabled")&&this.disabled&&(this.open=!1)}updated(e){e.has("label")&&xe(this,this.label,e.get("label")),(e.has("htmlFor")||e.has("indication")||!this.#t)&&this.#l(),e.has("open")&&this.#b()}#l(){this.#c();let e=this.htmlFor?He(this,this.htmlFor):this.previousElementSibling;if(e){this.#t=e,this.#i=this.#h(e),this.#u(e);for(let[t,i]of this.#x)e.addEventListener(t,i)}}#c(){let e=this.#t;if(e){for(let[t,i]of this.#x)e.removeEventListener(t,i);this.#i?.(),this.#i=void 0,this.#r?.(),this.#r=void 0,this.#t=null}}#u(e){let t=this.indication;if(t==="off"||!(e instanceof HTMLElement)||e.style.textDecorationLine)return;let i=e.childElementCount===0&&!!e.textContent?.trim()&&!e.matches("a,button,input,select,textarea,summary,[role],[tabindex]");if(t!=="on"&&!i)return;let r=e.style;r.textDecorationLine="underline",r.textDecorationStyle="dashed",r.textDecorationColor="var(--und-border-strong, currentColor)",r.textUnderlineOffset="var(--und-space-1, 0.25rem)",this.#r=()=>{r.removeProperty("text-decoration-line"),r.removeProperty("text-decoration-style"),r.removeProperty("text-decoration-color"),r.removeProperty("text-underline-offset")}}#h(e){if(e.getRootNode()===this.getRootNode()&&this.id)return e.setAttribute("aria-details",this.id),()=>{e.getAttribute("aria-details")===this.id&&e.removeAttribute("aria-details")};let t=e;return"ariaDetailsElements"in t?(t.ariaDetailsElements=[this],()=>{t.ariaDetailsElements=null}):()=>{}}#p=()=>{this.#n!==void 0&&clearTimeout(this.#n),this.#n=void 0};#f(e,t,i){if(this.#p(),e!==this.open){if(t<=0){this.#m(e,i);return}this.#n=setTimeout(()=>{this.#n=void 0,this.#m(e,i)},t)}}#m(e,t){if(this.#p(),e&&this.disabled||e===this.open)return;let i=!e&&t==="escape"&&S(this,T())&&this.#t;this.open=e,this.emit("und-open-change",{open:e,reason:t}),i instanceof HTMLElement&&(this.#o=!0,i.focus(),this.#o=!1)}#b(){if(!this.isConnected)return;let e=this.matches(":popover-open");if(this.open&&!e){try{this.showPopover()}catch{this.open=!1;return}this.#d.start(),this.#a.activate(),it&&it!==this&&(it.open=!1),it=this}else!this.open&&e&&(it===this&&(it=null),this.hidePopover(),this.#d.stop(),this.#a.deactivate());this.setCustomState("open",this.open)}#v=e=>{let t=e.relatedTarget;t instanceof Node&&(S(this,t)||this.#t?.contains(t))||this.#f(!1,this.closeDelay,"blur")};#g=()=>{S(this,T())||this.#f(!1,this.closeDelay,"leave")};#x=[["pointerdown",e=>{this.#s=e.pointerType,this.#m(!1,"press")}],["pointerenter",e=>{e.pointerType!=="touch"&&this.#f(!0,this.openDelay,"hover")}],["pointerleave",()=>{this.#f(!1,this.closeDelay,"leave")}],["focusin",()=>{this.#s==="touch"||this.#o||T()?.matches(":focus-visible")&&this.#f(!0,this.openDelay,"focus")}],["focusout",e=>{this.#s="";let t=e.relatedTarget;t instanceof Node&&S(this,t)||this.#f(!1,this.closeDelay,"blur")}]];render(){return l`<slot></slot>`}};Vr.define();var la=u` @layer und.components{.dialog{--_bg:var(--und-lightbox-bg,transparent);--_fg:var(--und-lightbox-fg,#fff);--_control-bg:var(--und-lightbox-control-bg,color-mix(in srgb,#000 75%,transparent));--_control-size:2.25rem;position:relative;background:var(--_bg);box-shadow:none;color:var(--_fg)}.dialog::backdrop{backdrop-filter:var(--und-lightbox-backdrop-filter,blur(2px))}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;border:0;clip-path:inset(50%);white-space:nowrap}.bar{position:absolute;inset-block-start:var(--und-space-3,0.75rem);inset-inline:var(--und-space-3,0.75rem);z-index:1;display:flex;gap:var(--und-space-2,0.5rem);align-items:center;justify-content:flex-end;pointer-events:none}.bar > *{pointer-events:auto}.counter{display:inline-flex;align-items:center;block-size:var(--_control-size);margin-inline-end:auto;padding-inline:var(--und-space-3,0.75rem);border-radius:var(--und-radius-full,9999px);background:var(--_control-bg);font-variant-numeric:tabular-nums}.control,.close{display:inline-grid;flex:none;place-items:center;box-sizing:border-box;inline-size:var(--_control-size);block-size:var(--_control-size);margin:0;padding:0;border:0;border-radius:var(--und-radius-full,9999px);background:var(--_control-bg);color:var(--_fg);font:inherit;cursor:pointer}.control:hover,.close:hover{background:color-mix(in srgb,var(--_control-bg),var(--_fg) 16%)}.control:active,.close:active{background:color-mix(in srgb,var(--_control-bg),var(--_fg) 24%)}.control[aria-disabled='true']{opacity:0.4;cursor:default}.control:focus-visible,.close:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--_fg);outline-offset:var(--und-focus-ring-offset,2px)}.control svg{inline-size:1.25rem;block-size:1.25rem}.stage{position:relative;display:flex;flex:1 1 auto;align-items:stretch;min-block-size:0}.stage > .control{position:absolute;inset-block-start:50%;z-index:1;translate:0 -50%}.stage > [part='previous']{inset-inline-start:var(--und-space-3,0.75rem)}.stage > [part='next']{inset-inline-end:var(--und-space-3,0.75rem)}.figure{display:flex;flex:1 1 auto;flex-direction:column;align-items:center;min-inline-size:0;margin:0}.viewport{display:grid;flex:1 1 0;place-items:center;inline-size:100%;min-block-size:0;overflow:auto}.viewport:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--_fg);outline-offset:calc(-1 * var(--und-focus-ring-width,2px))}.image{display:block;max-inline-size:100%;max-block-size:100%;object-fit:contain}:host([zoomed]) .image{max-inline-size:none;max-block-size:none;inline-size:200%;cursor:zoom-out}:host(:not([zoomed])) .image[data-zoomable]{cursor:zoom-in}.caption{box-sizing:border-box;flex:none;inline-size:100%;min-block-size:calc( var(--und-space-2,0.5rem) + 2lh + var(--und-space-3,0.75rem) + env(safe-area-inset-bottom,0px) );padding-block:var(--und-space-2,0.5rem) calc(var(--und-space-3,0.75rem) + env(safe-area-inset-bottom,0px));padding-inline:max(var(--und-space-3,0.75rem),calc((100% - 600px) / 2));background:var(--und-lightbox-caption-bg,color-mix(in srgb,#000 90%,transparent));text-align:center;overflow-wrap:anywhere}.error{margin:var(--und-space-6,1.5rem);padding:var(--und-space-4,1rem) var(--und-space-6,1.5rem);border-radius:var(--und-radius-container,12px);background:var(--_control-bg);text-align:center}:host(:dir(rtl)) .flip svg{transform:scaleX(-1)}[hidden]{display:none}@media (pointer:coarse){.dialog{--_control-size:var(--und-target-min-coarse,44px)}}@media (forced-colors:active){.dialog{border:1px solid CanvasText}.control,.close,.counter{border:1px solid CanvasText}.control:focus-visible,.close:focus-visible,.viewport:focus-visible{outline-color:Highlight}}}
12221
12221
 
12222
12222
 
12223
12223
 
@@ -12440,10 +12440,10 @@ ${he(".text")}}
12440
12440
 
12441
12441
 
12442
12442
 
12443
- `;var jr=class extends ie{static tagName="und-lightbox";static styles=[ye,la];static properties={...ie.properties,images:{attribute:!1},index:{type:Number,reflect:!0},zoomable:{type:Boolean,reflect:!0},zoomed:{type:Boolean,reflect:!0},previousLabel:{attribute:"previous-label"},nextLabel:{attribute:"next-label"},zoomLabel:{attribute:"zoom-label"},errorLabel:{attribute:"error-label"},counterLabel:{attribute:!1}};#e=new y(this);#t=[];#i;#r=!1;constructor(){super(),this.size="full",this.label="Image viewer",this.noCloseButton=!1,this.images=void 0,this.index=0,this.zoomable=!1,this.zoomed=!1,this.previousLabel="Previous image",this.nextLabel="Next image",this.zoomLabel="Zoom",this.errorLabel="This image could not be loaded.",this.counterLabel=(e,t)=>`${e} of ${t}`,this.#r=!1}get#n(){return this.images??this.#t}connectedCallback(){super.connectedCallback(),!!1&&(this.#s(),this.#i=new MutationObserver(()=>{this.#s(),this.requestUpdate()}),this.#i.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src","alt","data-caption"]}),this.addEventListener("keydown",this.#d))}disconnectedCallback(){super.disconnectedCallback(),this.#i?.disconnect(),this.removeEventListener("keydown",this.#d)}#s(){this.#t=[...this.querySelectorAll("img")].map(e=>({src:e.getAttribute("src")??"",alt:e.getAttribute("alt")??"",...e.dataset.caption?{caption:e.dataset.caption}:{}}))}showImage(e){this.index=e,this.open=!0}willUpdate(e){super.willUpdate(e);let t=Math.max(this.#n.length-1,0),i=Math.min(Math.max(Math.trunc(this.index)||0,0),t);i!==this.index&&(this.index=i),(e.has("index")||e.has("images"))&&(this.#r=!1),e.has("open")&&!this.open&&(this.zoomed=!1),e.has("index")&&(this.zoomed=!1)}updated(e){super.updated(e),e.has("index")&&e.get("index")!==void 0&&this.emit("und-index-change",{index:this.index});let t=this.#n[this.index];t&&!t.alt&&C("lightbox-alt","<und-lightbox> images need an `alt` text that says what they show.")}#o(e){let t=this.#n.length-1,i=Math.min(Math.max(e,0),t);i!==this.index&&(this.index=i)}#d=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let t=this.#e.isRtl;if(e.key==="ArrowLeft"||e.key==="ArrowRight"){if(this.zoomed)return;e.preventDefault(),this.#o(this.index+(e.key==="ArrowRight"!==t?1:-1))}else if(e.key==="Home"||e.key==="End"){if(this.zoomed)return;e.preventDefault(),this.#o(e.key==="Home"?0:this.#n.length-1)}};#a=()=>{this.zoomable&&(this.zoomed=!this.zoomed)};renderContent(){let e=this.#n,t=e.length,i=e[this.index],r=i?ve(i.src):void 0,s=t>0?this.counterLabel(this.index+1,t):"",o=this.index<=0,l=this.index>=t-1,d=t>1;return a`<h2 id="title" class="visually-hidden" tabindex="-1">${this.label}</h2>
12443
+ `;var jr=class extends ie{static tagName="und-lightbox";static styles=[ye,la];static properties={...ie.properties,images:{attribute:!1},index:{type:Number,reflect:!0},zoomable:{type:Boolean,reflect:!0},zoomed:{type:Boolean,reflect:!0},previousLabel:{attribute:"previous-label"},nextLabel:{attribute:"next-label"},zoomLabel:{attribute:"zoom-label"},errorLabel:{attribute:"error-label"},counterLabel:{attribute:!1}};#e=new y(this);#t=[];#i;#r=!1;constructor(){super(),this.size="full",this.label="Image viewer",this.noCloseButton=!1,this.images=void 0,this.index=0,this.zoomable=!1,this.zoomed=!1,this.previousLabel="Previous image",this.nextLabel="Next image",this.zoomLabel="Zoom",this.errorLabel="This image could not be loaded.",this.counterLabel=(e,t)=>`${e} of ${t}`,this.#r=!1}get#n(){return this.images??this.#t}connectedCallback(){super.connectedCallback(),!!1&&(this.#s(),this.#i=new MutationObserver(()=>{this.#s(),this.requestUpdate()}),this.#i.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src","alt","data-caption"]}),this.addEventListener("keydown",this.#d))}disconnectedCallback(){super.disconnectedCallback(),this.#i?.disconnect(),this.removeEventListener("keydown",this.#d)}#s(){this.#t=[...this.querySelectorAll("img")].map(e=>({src:e.getAttribute("src")??"",alt:e.getAttribute("alt")??"",...e.dataset.caption?{caption:e.dataset.caption}:{}}))}showImage(e){this.index=e,this.open=!0}willUpdate(e){super.willUpdate(e);let t=Math.max(this.#n.length-1,0),i=Math.min(Math.max(Math.trunc(this.index)||0,0),t);i!==this.index&&(this.index=i),(e.has("index")||e.has("images"))&&(this.#r=!1),e.has("open")&&!this.open&&(this.zoomed=!1),e.has("index")&&(this.zoomed=!1)}updated(e){super.updated(e),e.has("index")&&e.get("index")!==void 0&&this.emit("und-index-change",{index:this.index});let t=this.#n[this.index];t&&!t.alt&&C("lightbox-alt","<und-lightbox> images need an `alt` text that says what they show.")}#o(e){let t=this.#n.length-1,i=Math.min(Math.max(e,0),t);i!==this.index&&(this.index=i)}#d=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let t=this.#e.isRtl;if(e.key==="ArrowLeft"||e.key==="ArrowRight"){if(this.zoomed)return;e.preventDefault(),this.#o(this.index+(e.key==="ArrowRight"!==t?1:-1))}else if(e.key==="Home"||e.key==="End"){if(this.zoomed)return;e.preventDefault(),this.#o(e.key==="Home"?0:this.#n.length-1)}};#a=()=>{this.zoomable&&(this.zoomed=!this.zoomed)};renderContent(){let e=this.#n,t=e.length,i=e[this.index],r=i?ve(i.src):void 0,s=t>0?this.counterLabel(this.index+1,t):"",o=this.index<=0,a=this.index>=t-1,d=t>1;return l`<h2 id="title" class="visually-hidden" tabindex="-1">${this.label}</h2>
12444
12444
  <div part="bar" class="bar">
12445
12445
  <span part="counter" class="counter" ?hidden=${!d}>${s}</span>
12446
- ${this.zoomable?a`<button
12446
+ ${this.zoomable?l`<button
12447
12447
  type="button"
12448
12448
  part="zoom"
12449
12449
  class="control"
@@ -12465,7 +12465,7 @@ ${he(".text")}}
12465
12465
  ${this.renderCloseButton()}
12466
12466
  </div>
12467
12467
  <div class="stage">
12468
- ${d?a`<button
12468
+ ${d?l`<button
12469
12469
  type="button"
12470
12470
  part="previous"
12471
12471
  class="control flip"
@@ -12485,7 +12485,7 @@ ${he(".text")}}
12485
12485
  </button>`:c}
12486
12486
  <figure class="figure">
12487
12487
  <div part="viewport" class="viewport" tabindex=${this.zoomed?"0":"-1"}>
12488
- ${r&&!this.#r?a`<img
12488
+ ${r&&!this.#r?l`<img
12489
12489
  part="image"
12490
12490
  class="image"
12491
12491
  src=${r}
@@ -12493,18 +12493,18 @@ ${he(".text")}}
12493
12493
  ?data-zoomable=${this.zoomable}
12494
12494
  @click=${this.#a}
12495
12495
  @error=${()=>{this.#r=!0,this.requestUpdate()}}
12496
- />`:a`<p class="error" role="alert">${this.errorLabel}</p>`}
12496
+ />`:l`<p class="error" role="alert">${this.errorLabel}</p>`}
12497
12497
  </div>
12498
12498
  <figcaption part="caption" class="caption" ?hidden=${!i?.caption}>
12499
12499
  ${i?.caption}
12500
12500
  </figcaption>
12501
12501
  </figure>
12502
- ${d?a`<button
12502
+ ${d?l`<button
12503
12503
  type="button"
12504
12504
  part="next"
12505
12505
  class="control flip"
12506
12506
  aria-label=${this.nextLabel}
12507
- aria-disabled=${l?"true":"false"}
12507
+ aria-disabled=${a?"true":"false"}
12508
12508
  @click=${()=>this.#o(this.index+1)}
12509
12509
  >
12510
12510
  <svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
@@ -12568,7 +12568,7 @@ ${he(".text")}}
12568
12568
 
12569
12569
 
12570
12570
 
12571
- `;var Kr=class extends pe{static tagName="und-more-menu";static styles=[vt,da];static properties={...pe.properties,triggerLabel:{attribute:"trigger-label"}};constructor(){super(),this.triggerLabel="More actions",this.placement="bottom-end"}resolveTrigger(){return this.renderRoot.querySelector(".trigger")}renderTrigger(){return a`<button
12571
+ `;var Kr=class extends pe{static tagName="und-more-menu";static styles=[vt,da];static properties={...pe.properties,triggerLabel:{attribute:"trigger-label"}};constructor(){super(),this.triggerLabel="More actions",this.placement="bottom-end"}resolveTrigger(){return this.renderRoot.querySelector(".trigger")}renderTrigger(){return l`<button
12572
12572
  type="button"
12573
12573
  part="trigger"
12574
12574
  class="trigger"
@@ -12903,14 +12903,14 @@ ${he(".text")}}
12903
12903
 
12904
12904
 
12905
12905
 
12906
- `;var _c=48,zc=900,Gr=class extends p{static tagName="und-carousel";static styles=ca;static properties={index:{type:Number,reflect:!0},label:{},picker:{reflect:!0},loop:{type:Boolean,reflect:!0},layout:{reflect:!0},slidesPerView:{type:Number,attribute:"slides-per-view"},peek:{type:Boolean,reflect:!0},snap:{type:Boolean,reflect:!0},autoplay:{type:Boolean,reflect:!0},interval:{type:Number},previousLabel:{attribute:"previous-label"},nextLabel:{attribute:"next-label"},pickerLabel:{attribute:"picker-label"},pickLabel:{attribute:"pick-label"},slideLabel:{attribute:"slide-label"},playLabel:{attribute:"play-label"},pauseLabel:{attribute:"pause-label"},count:{state:!0,attribute:!1},playing:{state:!0,attribute:!1},atStart:{state:!0,attribute:!1},atEnd:{state:!0,attribute:!1},overflowing:{state:!0,attribute:!1}};#e=new y(this);#t;#i=!1;#r;#n;#s=0;#o;#d=!1;constructor(){super(),this.index=0,this.label="Carousel",this.picker="tabs",this.loop=!1,this.layout="slide",this.slidesPerView=0,this.peek=!1,this.snap=!1,this.autoplay=!1,this.interval=5e3,this.previousLabel="Previous slide",this.nextLabel="Next slide",this.pickerLabel="Choose a slide",this.pickLabel="Go to slide {n}",this.slideLabel="{n} of {total}",this.playLabel="Start automatic slide show",this.pauseLabel="Stop automatic slide show",this.count=0,this.playing=!1,this.atStart=!0,this.atEnd=!0,this.overflowing=!1,this.addEventListener("pointerenter",this.#x),this.addEventListener("pointerleave",this.#y),this.addEventListener("focusin",this.#_)}get slides(){return[...this.children].filter(e=>e instanceof HTMLElement&&!e.slot)}next(){this.#a?this.#g(1):this.goTo(this.index+1)}previous(){this.#a?this.#g(-1):this.goTo(this.index-1)}goTo(e){let t=this.slides.length;if(t===0)return;let i=this.loop||this.autoplay?(e+t)%t:e;this.index=Math.min(Math.max(i,0),t-1)}play(){this.playing=!0}pause(){this.playing=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-roledescription","carousel"),this.playing=this.autoplay&&!this.#v()}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.#t),clearTimeout(this.#o),this.#o=void 0,cancelAnimationFrame(this.#s),this.#s=0,this.#n?.disconnect(),this.#n=void 0}get#a(){return this.layout==="scroll"}get#l(){return this.renderRoot.querySelector(".viewport")}#c=()=>{this.#s=0;let e=this.#l;if(!e||!this.#a)return;let t=e.scrollWidth-e.clientWidth,i=Math.abs(e.scrollLeft);if(this.overflowing=t>1,this.atStart=i<=1,this.atEnd=i>=t-1,this.#o===void 0){let r=this.#f(e);r!==this.index&&(this.#d=!0,this.index=r)}};#u=()=>{this.#s||(this.#s=requestAnimationFrame(this.#c))};#h(e){return parseFloat(getComputedStyle(e).paddingInlineStart)||0}#p(e,t,i){let r=e.getBoundingClientRect(),s=t.getBoundingClientRect();return this.#e.isRtl?r.right-i-s.right:s.left-r.left-i}#f(e){let t=this.slides;if(t.length===0)return 0;if(this.overflowing&&this.atEnd&&!this.atStart)return t.length-1;let i=this.#h(e),r=0,s=1/0;return t.forEach((o,l)=>{let d=Math.abs(this.#p(e,o,i));d<s&&(s=d,r=l)}),r}#m(e){clearTimeout(this.#o);let t=()=>{clearTimeout(this.#o),this.#o=void 0,e.removeEventListener("scrollend",t),this.#u()};e.addEventListener("scrollend",t,{once:!0}),this.#o=setTimeout(t,zc)}#b(e){let t=this.#l,i=this.slides[e];if(!t||!i)return;let r=this.#p(t,i,this.#h(t));Math.abs(r)<1||(this.#m(t),t.scrollBy({left:this.#e.isRtl?-r:r}))}#g(e){let t=this.#l;if(!t||!this.overflowing)return;let i=this.#e.isRtl?-1:1;if(e===1?this.atEnd:this.atStart){if(!this.loop&&!this.autoplay)return;let o=e===1?0:t.scrollWidth-t.clientWidth;t.scrollTo({left:o*i});return}let s=t.clientWidth-this.#h(t)*2;t.scrollBy({left:e*Math.max(s,1)*i})}#v(){return!!1&&globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches}#x=()=>{this.#i=!0,this.#k()};#y=()=>{this.#i=!1,this.#k()};#_=e=>{let t=e.composedPath()[0];this.playing&&t instanceof Element&&t.matches(":focus-visible")&&(this.playing=!1)};#k(){clearTimeout(this.#t),!(!this.autoplay||!this.playing||this.#i)&&(this.slides.length<2||(this.#t=setTimeout(()=>{this.next()},Math.max(1e3,this.interval))))}#z(e=!1,t=!1){let i=this.slides,r=i.length,s=this.picker==="tabs",o=this.#a;i.forEach((l,d)=>{let h=d===this.index;l.hidden=!o&&!h,l.toggleAttribute("data-und-active",h),l.toggleAttribute("data-und-fade",!o&&h&&t),l.toggleAttribute("inert",!o&&!h),l.setAttribute("role",s?"tabpanel":"group"),l.setAttribute("aria-roledescription","slide"),l.setAttribute("aria-label",this.slideLabel.replaceAll("{n}",String(d+1)).replaceAll("{total}",String(r)))}),e&&this.count!==r&&(this.count=r),o&&this.#u()}willUpdate(e){e.has("autoplay")&&(this.playing=this.autoplay&&!this.#v());let t=this.slides.length;t>0&&(this.index<0||this.index>=t||!Number.isFinite(this.index))&&(this.index=Number.isFinite(this.index)?Math.min(Math.max(this.index,0),t-1):0)}updated(e){let t=this.slides.length,i=this.#l;if(i&&(e.has("layout")||e.has("slidesPerView"))){this.#a&&!!1?(this.#n??=new ResizeObserver(this.#u),this.#n.observe(i)):(this.#n?.disconnect(),this.#n=void 0);let r=Number.isFinite(this.slidesPerView)?Math.max(this.slidesPerView,1):1;i.style.setProperty("--_und-per-view",String(r))}this.#z(!1,e.has("index")&&e.get("index")!==void 0),this.#a&&e.has("index")&&e.get("index")!==void 0&&!this.#d&&this.#b(this.index),this.#d=!1,this.setAttribute("aria-label",this.label),e.has("index")&&e.get("index")!==void 0&&this.emit("und-slide-change",{index:this.index,count:t}),this.#k()}#$=e=>{this.#a||e.pointerType==="mouse"||!e.isPrimary||(this.#r={x:e.clientX,y:e.clientY,id:e.pointerId})};#L=e=>{let t=this.#r;if(this.#r=void 0,!t||t.id!==e.pointerId)return;let i=e.clientX-t.x,r=e.clientY-t.y;if(Math.abs(i)<_c||Math.abs(i)<Math.abs(r)*1.5)return;(this.#e.isRtl?i>0:i<0)?this.next():this.previous()};#w=()=>{this.#r=void 0};#S=e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;let t=this.#e.isRtl,i=this.slides.length,r;if(e.key==="ArrowRight")r=this.index+(t?-1:1);else if(e.key==="ArrowLeft")r=this.index+(t?1:-1);else if(e.key==="Home")r=0;else if(e.key==="End")r=i-1;else return;e.preventDefault(),this.goTo((r+i)%i),this.updateComplete.then(()=>{this.renderRoot.querySelector('[role="tab"][tabindex="0"]')?.focus()})};#C(e){e===1?this.next():this.previous()}#E(e){if(this.#a)return this.overflowing?this.loop||this.autoplay?!0:e===1?!this.atEnd:!this.atStart:!1;if(this.loop||this.autoplay)return this.slides.length>1;let t=this.index+e;return t>=0&&t<this.slides.length}#N(e){try{return new Intl.NumberFormat(this.#e.lang||void 0).format(e)}catch{return String(e)}}#M(e){if(this.picker==="none"||e<2)return c;let t=Array.from({length:e},(r,s)=>s),i=r=>this.pickLabel.replaceAll("{n}",this.#N(r+1));return this.picker==="tabs"?a`<div
12906
+ `;var _c=48,zc=900,Gr=class extends p{static tagName="und-carousel";static styles=ca;static properties={index:{type:Number,reflect:!0},label:{},picker:{reflect:!0},loop:{type:Boolean,reflect:!0},layout:{reflect:!0},slidesPerView:{type:Number,attribute:"slides-per-view"},peek:{type:Boolean,reflect:!0},snap:{type:Boolean,reflect:!0},autoplay:{type:Boolean,reflect:!0},interval:{type:Number},previousLabel:{attribute:"previous-label"},nextLabel:{attribute:"next-label"},pickerLabel:{attribute:"picker-label"},pickLabel:{attribute:"pick-label"},slideLabel:{attribute:"slide-label"},playLabel:{attribute:"play-label"},pauseLabel:{attribute:"pause-label"},count:{state:!0,attribute:!1},playing:{state:!0,attribute:!1},atStart:{state:!0,attribute:!1},atEnd:{state:!0,attribute:!1},overflowing:{state:!0,attribute:!1}};#e=new y(this);#t;#i=!1;#r;#n;#s=0;#o;#d=!1;constructor(){super(),this.index=0,this.label="Carousel",this.picker="tabs",this.loop=!1,this.layout="slide",this.slidesPerView=0,this.peek=!1,this.snap=!1,this.autoplay=!1,this.interval=5e3,this.previousLabel="Previous slide",this.nextLabel="Next slide",this.pickerLabel="Choose a slide",this.pickLabel="Go to slide {n}",this.slideLabel="{n} of {total}",this.playLabel="Start automatic slide show",this.pauseLabel="Stop automatic slide show",this.count=0,this.playing=!1,this.atStart=!0,this.atEnd=!0,this.overflowing=!1,this.addEventListener("pointerenter",this.#y),this.addEventListener("pointerleave",this.#_),this.addEventListener("focusin",this.#w)}get slides(){return[...this.children].filter(e=>e instanceof HTMLElement&&!e.slot)}next(){this.#a?this.#g(1):this.goTo(this.index+1)}previous(){this.#a?this.#g(-1):this.goTo(this.index-1)}goTo(e){let t=this.slides.length;if(t===0)return;let i=this.loop||this.autoplay?(e+t)%t:e;this.index=Math.min(Math.max(i,0),t-1)}play(){this.playing=!0}pause(){this.playing=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-roledescription","carousel"),this.playing=this.autoplay&&!this.#x()}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.#t),clearTimeout(this.#o),this.#o=void 0,cancelAnimationFrame(this.#s),this.#s=0,this.#n?.disconnect(),this.#n=void 0}get#a(){return this.layout==="scroll"}get#l(){return this.renderRoot.querySelector(".viewport")}#c=()=>{this.#s=0;let e=this.#l;if(!e||!this.#a)return;let t=e.scrollWidth-e.clientWidth,i=Math.abs(e.scrollLeft);if(this.overflowing=t>1,this.atStart=i<=1,this.atEnd=i>=t-1,this.#o===void 0){let r=this.#m(e,i,t);r!==this.index&&(this.#d=!0,this.index=r)}};#u=()=>{this.#s||(this.#s=requestAnimationFrame(this.#c))};#h(){this.#s&&cancelAnimationFrame(this.#s),this.#c()}#p(e){return parseFloat(getComputedStyle(e).paddingInlineStart)||0}#f(e,t,i){let r=e.getBoundingClientRect(),s=t.getBoundingClientRect();return this.#e.isRtl?r.right-i-s.right:s.left-r.left-i}#m(e,t,i){let r=this.slides;if(r.length===0)return 0;if(this.overflowing&&t>=i-1&&t>1)return r.length-1;let s=this.#p(e),o=Math.abs(e.scrollLeft),a=0,d=1/0;return r.forEach((h,f)=>{let m=Math.abs(this.#f(e,h,s)+o-t);m<d&&(d=m,a=f)}),a}#b(e){clearTimeout(this.#o);let t=()=>{clearTimeout(this.#o),this.#o=void 0,e.removeEventListener("scrollend",t),this.#u()};e.addEventListener("scrollend",t,{once:!0}),this.#o=setTimeout(t,zc)}#v(e){let t=this.#l,i=this.slides[e];if(!t||!i)return;let r=this.#f(t,i,this.#p(t));Math.abs(r)<1||(this.#b(t),t.scrollBy({left:this.#e.isRtl?-r:r}))}#g(e){let t=this.#l;if(!t||(this.#h(),!this.overflowing))return;let i=this.#e.isRtl?-1:1,r=t.scrollWidth-t.clientWidth,s=Math.abs(t.scrollLeft),o=e===1?this.atEnd:this.atStart,a;if(o){if(!this.loop&&!this.autoplay)return;a=e===1?0:r}else{let h=Math.max(t.clientWidth-this.#p(t)*2,1);a=Math.min(Math.max(s+e*h,0),r)}this.#b(t),t.scrollTo({left:a*i}),this.atStart=a<=1,this.atEnd=a>=r-1;let d=this.#m(t,a,r);d!==this.index&&(this.#d=!0,this.index=d)}#x(){return!!1&&globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches}#y=()=>{this.#i=!0,this.#z()};#_=()=>{this.#i=!1,this.#z()};#w=e=>{let t=e.composedPath()[0];this.playing&&t instanceof Element&&t.matches(":focus-visible")&&(this.playing=!1)};#z(){clearTimeout(this.#t),!(!this.autoplay||!this.playing||this.#i)&&(this.slides.length<2||(this.#t=setTimeout(()=>{this.next()},Math.max(1e3,this.interval))))}#$(e=!1,t=!1){let i=this.slides,r=i.length,s=this.picker==="tabs",o=this.#a;i.forEach((a,d)=>{let h=d===this.index;a.hidden=!o&&!h,a.toggleAttribute("data-und-active",h),a.toggleAttribute("data-und-fade",!o&&h&&t),a.toggleAttribute("inert",!o&&!h),a.setAttribute("role",s?"tabpanel":"group"),a.setAttribute("aria-roledescription","slide"),a.setAttribute("aria-label",this.slideLabel.replaceAll("{n}",String(d+1)).replaceAll("{total}",String(r)))}),e&&this.count!==r&&(this.count=r),o&&this.#u()}willUpdate(e){e.has("autoplay")&&(this.playing=this.autoplay&&!this.#x());let t=this.slides.length;t>0&&(this.index<0||this.index>=t||!Number.isFinite(this.index))&&(this.index=Number.isFinite(this.index)?Math.min(Math.max(this.index,0),t-1):0)}updated(e){let t=this.slides.length,i=this.#l;if(i&&(e.has("layout")||e.has("slidesPerView"))){this.#a&&!!1?(this.#n??=new ResizeObserver(this.#u),this.#n.observe(i)):(this.#n?.disconnect(),this.#n=void 0);let r=Number.isFinite(this.slidesPerView)?Math.max(this.slidesPerView,1):1;i.style.setProperty("--_und-per-view",String(r))}this.#a&&!!1&&queueMicrotask(()=>this.#h()),this.#$(!1,e.has("index")&&e.get("index")!==void 0),this.#a&&e.has("index")&&e.get("index")!==void 0&&!this.#d&&this.#v(this.index),this.#d=!1,this.setAttribute("aria-label",this.label),e.has("index")&&e.get("index")!==void 0&&this.emit("und-slide-change",{index:this.index,count:t}),this.#z()}#L=e=>{this.#a||e.pointerType==="mouse"||!e.isPrimary||(this.#r={x:e.clientX,y:e.clientY,id:e.pointerId})};#k=e=>{let t=this.#r;if(this.#r=void 0,!t||t.id!==e.pointerId)return;let i=e.clientX-t.x,r=e.clientY-t.y;if(Math.abs(i)<_c||Math.abs(i)<Math.abs(r)*1.5)return;(this.#e.isRtl?i>0:i<0)?this.next():this.previous()};#S=()=>{this.#r=void 0};#C=e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;let t=this.#e.isRtl,i=this.slides.length,r;if(e.key==="ArrowRight")r=this.index+(t?-1:1);else if(e.key==="ArrowLeft")r=this.index+(t?1:-1);else if(e.key==="Home")r=0;else if(e.key==="End")r=i-1;else return;e.preventDefault(),this.goTo((r+i)%i),this.updateComplete.then(()=>{this.renderRoot.querySelector('[role="tab"][tabindex="0"]')?.focus()})};#A(e){e===1?this.next():this.previous()}#M(e){if(this.#a)return this.overflowing?this.loop||this.autoplay?!0:e===1?!this.atEnd:!this.atStart:!1;if(this.loop||this.autoplay)return this.slides.length>1;let t=this.index+e;return t>=0&&t<this.slides.length}#N(e){try{return new Intl.NumberFormat(this.#e.lang||void 0).format(e)}catch{return String(e)}}#E(e){if(this.picker==="none"||e<2)return c;let t=Array.from({length:e},(r,s)=>s),i=r=>this.pickLabel.replaceAll("{n}",this.#N(r+1));return this.picker==="tabs"?l`<div
12907
12907
  class="picker"
12908
12908
  part="picker"
12909
12909
  role="tablist"
12910
12910
  aria-label=${this.pickerLabel}
12911
- @keydown=${this.#S}
12911
+ @keydown=${this.#C}
12912
12912
  >
12913
- ${t.map(r=>a`<button
12913
+ ${t.map(r=>l`<button
12914
12914
  class="dot"
12915
12915
  part="dot"
12916
12916
  type="button"
@@ -12920,8 +12920,8 @@ ${he(".text")}}
12920
12920
  tabindex=${r===this.index?"0":"-1"}
12921
12921
  @click=${()=>this.goTo(r)}
12922
12922
  ></button>`)}
12923
- </div>`:a`<div class="picker" part="picker" role="group" aria-label=${this.pickerLabel}>
12924
- ${t.map(r=>a`<button
12923
+ </div>`:l`<div class="picker" part="picker" role="group" aria-label=${this.pickerLabel}>
12924
+ ${t.map(r=>l`<button
12925
12925
  class="dot"
12926
12926
  part="dot"
12927
12927
  type="button"
@@ -12929,16 +12929,16 @@ ${he(".text")}}
12929
12929
  aria-current=${r===this.index?"true":"false"}
12930
12930
  @click=${()=>this.goTo(r)}
12931
12931
  ></button>`)}
12932
- </div>`}render(){let e=this.slides.length,t=this.autoplay&&this.playing,i=(o,l)=>a`<button
12932
+ </div>`}render(){let e=this.slides.length,t=this.autoplay&&this.playing,i=(o,a)=>l`<button
12933
12933
  class="step ${o===-1?"step-start":"step-end"}"
12934
12934
  part=${o===-1?"previous":"next"}
12935
12935
  type="button"
12936
- aria-label=${l}
12937
- aria-disabled=${this.#E(o)?c:"true"}
12938
- @click=${()=>{this.#E(o)&&this.#C(o)}}
12936
+ aria-label=${a}
12937
+ aria-disabled=${this.#M(o)?c:"true"}
12938
+ @click=${()=>{this.#M(o)&&this.#A(o)}}
12939
12939
  >
12940
12940
  ${o===-1?k`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M15 6l-6 6 6 6"></path></svg>`:k`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 6l6 6-6 6"></path></svg>`}
12941
- </button>`,r=this.#a,s=this.#M(e);return a`<div class="rotation ${this.autoplay?"has-rotation":""}" part="rotation">
12941
+ </button>`,r=this.#a,s=this.#E(e);return l`<div class="rotation ${this.autoplay?"has-rotation":""}" part="rotation">
12942
12942
  <button
12943
12943
  class="rotate"
12944
12944
  type="button"
@@ -12958,11 +12958,13 @@ ${he(".text")}}
12958
12958
  aria-live=${t||r?"off":"polite"}
12959
12959
  aria-atomic="false"
12960
12960
  @scroll=${r?this.#u:c}
12961
- @pointerdown=${this.#$}
12962
- @pointerup=${this.#L}
12963
- @pointercancel=${this.#w}
12961
+ @pointerdown=${this.#L}
12962
+ @pointerup=${this.#k}
12963
+ @pointercancel=${this.#S}
12964
12964
  >
12965
- <slot @slotchange=${()=>this.#z(!0)}></slot>
12965
+ <slot
12966
+ @slotchange=${()=>{this.#$(!0),this.#a&&this.#h()}}
12967
+ ></slot>
12966
12968
  </div>
12967
12969
  ${e>1?i(-1,this.previousLabel):c}
12968
12970
  ${e>1?i(1,this.nextLabel):c}
@@ -13291,7 +13293,7 @@ ${he(".text")}}
13291
13293
 
13292
13294
 
13293
13295
 
13294
- `;var Z={check:k`<path d="M20 6 9 17l-5-5"/>`,checkDouble:k`<path d="M18 6 7 17l-5-5"/><path d="m22 10-7.5 7.5L13 16"/>`,clock:k`<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>`,alert:k`<circle cx="12" cy="12" r="10"/><path d="M12 8v4M12 16h.01"/>`,done:k`<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>`,failed:k`<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6M9 9l6 6"/>`,wrench:k`<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94z"/>`,chevron:k`<path d="m6 9 6 6 6-6"/>`,arrowUp:k`<path d="m5 12 7-7 7 7M12 19V5"/>`,arrowDown:k`<path d="M12 5v14M19 12l-7 7-7-7"/>`,mic:k`<path d="M12 19v3M19 10v2a7 7 0 0 1-14 0v-2"/><rect x="9" y="2" width="6" height="13" rx="3"/>`},me=n=>a`<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${n}</svg>`;var Wr=class extends p{static tagName="und-chat-composer";static styles=ua;static properties={label:{},placeholder:{},name:{},disabled:{type:Boolean,reflect:!0},loading:{type:Boolean,reflect:!0},generating:{type:Boolean,reflect:!0},sendKey:{attribute:"send-key",reflect:!0},sendLabel:{attribute:"send-label"},stopLabel:{attribute:"stop-label"},maxLength:{type:Number,attribute:"maxlength"},elevation:{reflect:!0},dictation:{type:Boolean,reflect:!0},listening:{type:Boolean,reflect:!0},dictationLabel:{attribute:"dictation-label"},hasText:{state:!0,attribute:!1},hasAttachments:{state:!0,attribute:!1},hasLeading:{state:!0,attribute:!1},hasHint:{state:!0,attribute:!1},hasTrailing:{state:!0,attribute:!1},hasDrawer:{state:!0,attribute:!1}};#e;#t=!1;constructor(){super(),this.label="Message",this.disabled=!1,this.loading=!1,this.generating=!1,this.sendKey="enter",this.sendLabel="Send",this.stopLabel="Stop generating",this.elevation="low",this.dictation=!1,this.listening=!1,this.dictationLabel="Dictate",this.hasTrailing=!1,this.hasDrawer=!1,this.hasText=!1,this.hasAttachments=!1,this.hasLeading=!1,this.hasHint=!1}get textarea(){return this.#e}get value(){return this.#e?.value??""}set value(e){let t=this.#i();t&&(t.value=e,this.#s())}focus(e){this.#e?.focus(e)}submit(){let e=this.#e;if(!e||this.#t)return!1;let t=e.value;if(this.disabled||this.loading||this.generating||t.trim()==="")return!1;let i=this.emit("und-send",{value:t},{cancelable:!0});return i&&(e.value="",this.#s(),e.focus()),i}connectedCallback(){super.connectedCallback(),D(this,ha),this.#i()}#i(){if(this.#e||!1)return this.#e;let e=this.querySelector(":scope > textarea");return e||(e=this.ownerDocument.createElement("textarea"),e.rows=1,this.append(e)),e.slot="input",e.addEventListener("keydown",this.#r),e.addEventListener("input",this.#n),e.addEventListener("compositionstart",()=>this.#t=!0),e.addEventListener("compositionend",()=>this.#t=!1),this.#e=e,this.hasText=e.value.trim()!=="",e}#r=e=>{if(e.key!=="Enter"||e.defaultPrevented||e.isComposing||e.keyCode===229||this.#t)return;let t=e.ctrlKey||e.metaKey;(this.sendKey==="enter"?!e.shiftKey&&!t&&!e.altKey:this.sendKey==="mod-enter"&&t&&!e.shiftKey&&!e.altKey)&&(e.preventDefault(),this.submit())};#n=()=>{this.#s()};#s(){let e=this.#e;e&&(this.hasText=e.value.trim()!=="",this.#o(e))}#o(e){if(Te("field-sizing: content"))return;e.style.blockSize="auto";let t=e.offsetHeight-e.clientHeight;e.style.blockSize=`${String(e.scrollHeight+t)}px`}#d=()=>{this.loading||this.submit()};#a=()=>{this.emit("und-stop")};#l=()=>{let e=!this.listening;this.emit("und-dictation",{listening:e},{cancelable:!0})&&(this.listening=e)};#c=e=>{if(!(this.disabled||e.defaultPrevented)){for(let t of e.composedPath()){if(t===this)break;if(t instanceof Element&&t.matches("button, a, input, select, textarea, [tabindex]"))return}this.#e?.focus()}};willUpdate(e){e.has("sendKey")&&!["enter","mod-enter","none"].includes(this.sendKey)&&(this.sendKey="enter")}updated(){let e=this.#e;if(e){e.setAttribute("aria-label",this.label),e.disabled=this.disabled,e.setAttribute("enterkeyhint",this.sendKey==="enter"?"send":"enter");for(let[t,i]of[[this.placeholder,"placeholder"],[this.name,"name"],[this.maxLength==null?void 0:String(this.maxLength),"maxlength"]])t==null||t===""?e.removeAttribute(i):e.setAttribute(i,t);e.setAttribute("dir","auto"),e.setAttribute("autocomplete","off"),e.setAttribute("aria-busy",this.loading?"true":"false")}}#u=e=>t=>{this[e]=t.target.assignedNodes().length>0};render(){let e=this.disabled||!this.hasText,t=this.generating?a`<button
13296
+ `;var Z={check:k`<path d="M20 6 9 17l-5-5"/>`,checkDouble:k`<path d="M18 6 7 17l-5-5"/><path d="m22 10-7.5 7.5L13 16"/>`,clock:k`<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>`,alert:k`<circle cx="12" cy="12" r="10"/><path d="M12 8v4M12 16h.01"/>`,done:k`<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>`,failed:k`<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6M9 9l6 6"/>`,wrench:k`<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94z"/>`,chevron:k`<path d="m6 9 6 6 6-6"/>`,arrowUp:k`<path d="m5 12 7-7 7 7M12 19V5"/>`,arrowDown:k`<path d="M12 5v14M19 12l-7 7-7-7"/>`,mic:k`<path d="M12 19v3M19 10v2a7 7 0 0 1-14 0v-2"/><rect x="9" y="2" width="6" height="13" rx="3"/>`},me=n=>l`<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${n}</svg>`;var Wr=class extends p{static tagName="und-chat-composer";static styles=ua;static properties={label:{},placeholder:{},name:{},disabled:{type:Boolean,reflect:!0},loading:{type:Boolean,reflect:!0},generating:{type:Boolean,reflect:!0},sendKey:{attribute:"send-key",reflect:!0},sendLabel:{attribute:"send-label"},stopLabel:{attribute:"stop-label"},maxLength:{type:Number,attribute:"maxlength"},elevation:{reflect:!0},dictation:{type:Boolean,reflect:!0},listening:{type:Boolean,reflect:!0},dictationLabel:{attribute:"dictation-label"},hasText:{state:!0,attribute:!1},hasAttachments:{state:!0,attribute:!1},hasLeading:{state:!0,attribute:!1},hasHint:{state:!0,attribute:!1},hasTrailing:{state:!0,attribute:!1},hasDrawer:{state:!0,attribute:!1}};#e;#t=!1;constructor(){super(),this.label="Message",this.disabled=!1,this.loading=!1,this.generating=!1,this.sendKey="enter",this.sendLabel="Send",this.stopLabel="Stop generating",this.elevation="low",this.dictation=!1,this.listening=!1,this.dictationLabel="Dictate",this.hasTrailing=!1,this.hasDrawer=!1,this.hasText=!1,this.hasAttachments=!1,this.hasLeading=!1,this.hasHint=!1}get textarea(){return this.#e}get value(){return this.#e?.value??""}set value(e){let t=this.#i();t&&(t.value=e,this.#s())}focus(e){this.#e?.focus(e)}submit(){let e=this.#e;if(!e||this.#t)return!1;let t=e.value;if(this.disabled||this.loading||this.generating||t.trim()==="")return!1;let i=this.emit("und-send",{value:t},{cancelable:!0});return i&&(e.value="",this.#s(),e.focus()),i}connectedCallback(){super.connectedCallback(),D(this,ha),this.#i()}#i(){if(this.#e||!1)return this.#e;let e=this.querySelector(":scope > textarea");return e||(e=this.ownerDocument.createElement("textarea"),e.rows=1,this.append(e)),e.slot="input",e.addEventListener("keydown",this.#r),e.addEventListener("input",this.#n),e.addEventListener("compositionstart",()=>this.#t=!0),e.addEventListener("compositionend",()=>this.#t=!1),this.#e=e,this.hasText=e.value.trim()!=="",e}#r=e=>{if(e.key!=="Enter"||e.defaultPrevented||e.isComposing||e.keyCode===229||this.#t)return;let t=e.ctrlKey||e.metaKey;(this.sendKey==="enter"?!e.shiftKey&&!t&&!e.altKey:this.sendKey==="mod-enter"&&t&&!e.shiftKey&&!e.altKey)&&(e.preventDefault(),this.submit())};#n=()=>{this.#s()};#s(){let e=this.#e;e&&(this.hasText=e.value.trim()!=="",this.#o(e))}#o(e){if(Te("field-sizing: content"))return;e.style.blockSize="auto";let t=e.offsetHeight-e.clientHeight;e.style.blockSize=`${String(e.scrollHeight+t)}px`}#d=()=>{this.loading||this.submit()};#a=()=>{this.emit("und-stop")};#l=()=>{let e=!this.listening;this.emit("und-dictation",{listening:e},{cancelable:!0})&&(this.listening=e)};#c=e=>{if(!(this.disabled||e.defaultPrevented)){for(let t of e.composedPath()){if(t===this)break;if(t instanceof Element&&t.matches("button, a, input, select, textarea, [tabindex]"))return}this.#e?.focus()}};willUpdate(e){e.has("sendKey")&&!["enter","mod-enter","none"].includes(this.sendKey)&&(this.sendKey="enter")}updated(){let e=this.#e;if(e){e.setAttribute("aria-label",this.label),e.disabled=this.disabled,e.setAttribute("enterkeyhint",this.sendKey==="enter"?"send":"enter");for(let[t,i]of[[this.placeholder,"placeholder"],[this.name,"name"],[this.maxLength==null?void 0:String(this.maxLength),"maxlength"]])t==null||t===""?e.removeAttribute(i):e.setAttribute(i,t);e.setAttribute("dir","auto"),e.setAttribute("autocomplete","off"),e.setAttribute("aria-busy",this.loading?"true":"false")}}#u=e=>t=>{this[e]=t.target.assignedNodes().length>0};render(){let e=this.disabled||!this.hasText,t=this.generating?l`<button
13295
13297
  class="action stop"
13296
13298
  part="stop"
13297
13299
  type="button"
@@ -13300,7 +13302,7 @@ ${he(".text")}}
13300
13302
  @click=${this.#a}
13301
13303
  >
13302
13304
  ${k`<svg class="stop-icon" viewBox="0 0 24 24" aria-hidden="true"><rect x="7" y="7" width="10" height="10" rx="2"></rect></svg>`}
13303
- </button>`:a`<button
13305
+ </button>`:l`<button
13304
13306
  class="action send"
13305
13307
  part="send"
13306
13308
  type="button"
@@ -13310,8 +13312,8 @@ ${he(".text")}}
13310
13312
  aria-busy=${this.loading?"true":c}
13311
13313
  @click=${this.#d}
13312
13314
  >
13313
- ${this.loading?a`<span class="spinner" aria-hidden="true"></span>`:me(Z.arrowUp)}
13314
- </button>`;return a`<div class="drawer ${this.hasDrawer?"has-content":""}" part="drawer">
13315
+ ${this.loading?l`<span class="spinner" aria-hidden="true"></span>`:me(Z.arrowUp)}
13316
+ </button>`;return l`<div class="drawer ${this.hasDrawer?"has-content":""}" part="drawer">
13315
13317
  <slot name="drawer" @slotchange=${this.#u("hasDrawer")}></slot>
13316
13318
  </div>
13317
13319
  <div class="base" part="base" @click=${this.#c}>
@@ -13327,7 +13329,7 @@ ${he(".text")}}
13327
13329
  <span class="trailing-slot ${this.hasTrailing?"has-content":""}"
13328
13330
  ><slot name="trailing" @slotchange=${this.#u("hasTrailing")}></slot
13329
13331
  ></span>
13330
- ${this.dictation?a`<button
13332
+ ${this.dictation?l`<button
13331
13333
  class="action dictation"
13332
13334
  part="dictation"
13333
13335
  type="button"
@@ -13562,7 +13564,7 @@ ${he(".text")}}
13562
13564
 
13563
13565
 
13564
13566
 
13565
- `;var $c=24,Yr=class extends p{static tagName="und-chat-layout";static styles=pa;static properties={label:{},density:{reflect:!0},jumpLabel:{attribute:"jump-label"},newLabel:{attribute:"new-label"},announceMaxLength:{type:Number,attribute:"announce-max-length"},noAnnounce:{type:Boolean,attribute:"no-announce"},pinned:{state:!0,attribute:!1},busy:{state:!0,attribute:!1},hasHeader:{state:!0,attribute:!1},hasComposer:{state:!0,attribute:!1},hasMessages:{state:!0,attribute:!1},hasEmpty:{state:!0,attribute:!1},unseen:{state:!0,attribute:!1}};#e=new Set;#t;#i=0;#r="";constructor(){super(),this.label="Conversation",this.density="balanced",this.jumpLabel="Jump to latest",this.newLabel="New messages",this.hasMessages=!1,this.hasEmpty=!1,this.unseen=!1,this.announceMaxLength=400,this.noAnnounce=!1,this.pinned=!0,this.busy=!1,this.hasHeader=!1,this.hasComposer=!1,this.addEventListener("und-message-streaming",this.#h),this.addEventListener("und-message-complete",this.#p)}get isPinned(){return this.pinned}get#n(){return this.renderRoot.querySelector(".scroller")}scrollToBottom(e={}){let t=this.#n;t&&(this.#a(!0),e.smooth===!0&&!this.#d()?(t.scrollTo({top:t.scrollHeight,behavior:"smooth"}),this.#i=t.scrollTop):this.#s(t))}#s(e){e.scrollTo({top:e.scrollHeight,behavior:"instant"}),this.#i=e.scrollTop,this.#r=this.#o(e)}#o({scrollHeight:e,clientHeight:t}){return`${String(e)}:${String(t)}`}#d(){return!!1&&globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches}#a(e){e!==this.pinned&&(this.pinned=e,e&&(this.unseen=!1),this.emit("und-scroll-state",{pinned:e}))}#l=()=>{let e=this.#n;if(!e)return;let{scrollTop:t,scrollHeight:i,clientHeight:r}=e,s=t<this.#i-1;this.#i=t,i-t-r<=$c?this.#a(!0):s&&this.#a(!1)};#c(){let e=this.#n;e&&this.pinned&&this.#s(e)}#u=()=>{this.scrollToBottom({smooth:!0}),this.#n?.focus({preventScroll:!0})};#h=e=>{let t=e.target;e.detail.streaming?this.#e.add(t):this.#e.delete(t),this.#f()};#p=e=>{if(this.#e.delete(e.target),this.#f(),this.noAnnounce)return;let{author:t,text:i}=e.detail,r=Math.max(1,this.announceMaxLength),s=i.length>r?`${i.slice(0,r).trimEnd()}\u2026`:i,o=t?`${t}: ${s}`:s;s&&this.updateComplete.then(()=>N(o))};#f(){for(let e of this.#e)e.isConnected||this.#e.delete(e);this.busy=this.#e.size>0}connectedCallback(){super.connectedCallback(),!(typeof ResizeObserver>"u")&&(this.#t=new ResizeObserver(e=>{let t=this.#n;this.pinned?t&&this.#o(t)!==this.#r&&this.#s(t):e.some(i=>i.target.classList.contains("content"))&&(this.unseen=!0)}),this.#m())}disconnectedCallback(){super.disconnectedCallback(),this.#t?.disconnect(),this.#t=void 0}#m(){for(let e of this.renderRoot.querySelectorAll(".scroller, .content"))this.#t?.observe(e)}firstUpdated(){this.#m(),this.scrollToBottom()}updated(e){["hasComposer","hasHeader","hasMessages","hasEmpty"].some(t=>e.has(t))&&this.#c()}#b=e=>{let t=e.target.assignedElements();this.hasMessages=t.length>0,Promise.allSettled(t.map(i=>i.updateComplete)).then(()=>this.#c())};render(){let e=this.hasEmpty&&!this.hasMessages;return a`<div class="header ${this.hasHeader?"has-content":""}" part="header">
13567
+ `;var $c=24,Yr=class extends p{static tagName="und-chat-layout";static styles=pa;static properties={label:{},density:{reflect:!0},jumpLabel:{attribute:"jump-label"},newLabel:{attribute:"new-label"},announceMaxLength:{type:Number,attribute:"announce-max-length"},noAnnounce:{type:Boolean,attribute:"no-announce"},pinned:{state:!0,attribute:!1},busy:{state:!0,attribute:!1},hasHeader:{state:!0,attribute:!1},hasComposer:{state:!0,attribute:!1},hasMessages:{state:!0,attribute:!1},hasEmpty:{state:!0,attribute:!1},unseen:{state:!0,attribute:!1}};#e=new Set;#t;#i=0;#r="";constructor(){super(),this.label="Conversation",this.density="balanced",this.jumpLabel="Jump to latest",this.newLabel="New messages",this.hasMessages=!1,this.hasEmpty=!1,this.unseen=!1,this.announceMaxLength=400,this.noAnnounce=!1,this.pinned=!0,this.busy=!1,this.hasHeader=!1,this.hasComposer=!1,this.addEventListener("und-message-streaming",this.#h),this.addEventListener("und-message-complete",this.#p)}get isPinned(){return this.pinned}get#n(){return this.renderRoot.querySelector(".scroller")}scrollToBottom(e={}){let t=this.#n;t&&(this.#a(!0),e.smooth===!0&&!this.#d()?(t.scrollTo({top:t.scrollHeight,behavior:"smooth"}),this.#i=t.scrollTop):this.#s(t))}#s(e){e.scrollTo({top:e.scrollHeight,behavior:"instant"}),this.#i=e.scrollTop,this.#r=this.#o(e)}#o({scrollHeight:e,clientHeight:t}){return`${String(e)}:${String(t)}`}#d(){return!!1&&globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches}#a(e){e!==this.pinned&&(this.pinned=e,e&&(this.unseen=!1),this.emit("und-scroll-state",{pinned:e}))}#l=()=>{let e=this.#n;if(!e)return;let{scrollTop:t,scrollHeight:i,clientHeight:r}=e,s=t<this.#i-1;this.#i=t,i-t-r<=$c?this.#a(!0):s&&this.#a(!1)};#c(){let e=this.#n;e&&this.pinned&&this.#s(e)}#u=()=>{this.scrollToBottom({smooth:!0}),this.#n?.focus({preventScroll:!0})};#h=e=>{let t=e.target;e.detail.streaming?this.#e.add(t):this.#e.delete(t),this.#f()};#p=e=>{if(this.#e.delete(e.target),this.#f(),this.noAnnounce)return;let{author:t,text:i}=e.detail,r=Math.max(1,this.announceMaxLength),s=i.length>r?`${i.slice(0,r).trimEnd()}\u2026`:i,o=t?`${t}: ${s}`:s;s&&this.updateComplete.then(()=>N(o))};#f(){for(let e of this.#e)e.isConnected||this.#e.delete(e);this.busy=this.#e.size>0}connectedCallback(){super.connectedCallback(),!(typeof ResizeObserver>"u")&&(this.#t=new ResizeObserver(e=>{let t=this.#n;this.pinned?t&&this.#o(t)!==this.#r&&this.#s(t):e.some(i=>i.target.classList.contains("content"))&&(this.unseen=!0)}),this.#m())}disconnectedCallback(){super.disconnectedCallback(),this.#t?.disconnect(),this.#t=void 0}#m(){for(let e of this.renderRoot.querySelectorAll(".scroller, .content"))this.#t?.observe(e)}firstUpdated(){this.#m(),this.scrollToBottom()}updated(e){["hasComposer","hasHeader","hasMessages","hasEmpty"].some(t=>e.has(t))&&this.#c()}#b=e=>{let t=e.target.assignedElements();this.hasMessages=t.length>0,Promise.allSettled(t.map(i=>i.updateComplete)).then(()=>this.#c())};render(){let e=this.hasEmpty&&!this.hasMessages;return l`<div class="header ${this.hasHeader?"has-content":""}" part="header">
13566
13568
  <slot
13567
13569
  name="header"
13568
13570
  @slotchange=${t=>this.hasHeader=t.target.assignedNodes().length>0}
@@ -14173,28 +14175,28 @@ ${he(".text")}}
14173
14175
 
14174
14176
 
14175
14177
 
14176
- `;var Sc={sending:"Sending",sent:"Sent",delivered:"Delivered",read:"Read",error:"Not sent",streaming:"Responding",sources:"Sources",toolCalls:"{count} tool calls",toolInput:"Input",toolOutput:"Output",toolRunning:"Running",toolDone:"Done",toolError:"Failed"},Xr=class extends p{static tagName="und-chat-message";static styles=fa;static properties={variant:{reflect:!0},author:{},time:{},status:{reflect:!0},text:{},format:{},bubble:{reflect:!0},group:{reflect:!0},divider:{type:Boolean,reflect:!0},streaming:{type:Boolean,reflect:!0},citations:{attribute:!1},toolCalls:{attribute:!1},strings:{attribute:!1},hasAvatar:{state:!0,attribute:!1},hasSlotted:{state:!0,attribute:!1},hasMeta:{state:!0,attribute:!1},hasActions:{state:!0,attribute:!1}};#e=new y(this);constructor(){super(),this.variant="assistant",this.author="",this.text="",this.format="auto",this.bubble="filled",this.divider=!1,this.streaming=!1,this.citations=[],this.toolCalls=[],this.strings={},this.hasAvatar=!1,this.hasSlotted=!1,this.hasMeta=!1,this.hasActions=!1}appendText(e){this.text+=e}finish(){this.streaming=!1}#t(){return{...Sc,...this.strings}}#i(){return this.format==="markdown"||this.format==="auto"&&this.variant!=="user"}#r(){if(this.time===void 0||this.time==="")return;let e=this.time instanceof Date?this.time:new Date(this.time);return Number.isNaN(e.getTime())?void 0:e}#n(e,t){let i=this.#e.lang||void 0,r=t?{dateStyle:"full",timeStyle:"medium"}:e.toDateString()===new Date().toDateString()?{timeStyle:"short"}:{dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat(i,r).format(e)}catch{return new Intl.DateTimeFormat(void 0,r).format(e)}}updated(e){if(!e.has("streaming"))return;let t=e.get("streaming");t===void 0&&!this.streaming||t!==this.streaming&&(this.emit("und-message-streaming",{streaming:this.streaming}),t===!0&&!this.streaming&&this.emit("und-message-complete",{author:this.author,text:this.text}))}#s=e=>t=>{this[e]=t.target.assignedNodes().length>0};#o=e=>{this.hasSlotted=e.target.assignedNodes().some(t=>t.nodeType===Node.ELEMENT_NODE||t.textContent?.trim())};#d(e){let t=this.status;if(!t)return c;let i=t==="sending"?Z.clock:t==="error"?Z.alert:t==="sent"?Z.check:Z.checkDouble,r=t==="error"?e.error:e[t];return a`<span class="status" part="status" data-status=${t}
14178
+ `;var Sc={sending:"Sending",sent:"Sent",delivered:"Delivered",read:"Read",error:"Not sent",streaming:"Responding",sources:"Sources",toolCalls:"{count} tool calls",toolInput:"Input",toolOutput:"Output",toolRunning:"Running",toolDone:"Done",toolError:"Failed"},Xr=class extends p{static tagName="und-chat-message";static styles=fa;static properties={variant:{reflect:!0},author:{},time:{},status:{reflect:!0},text:{},format:{},bubble:{reflect:!0},group:{reflect:!0},divider:{type:Boolean,reflect:!0},streaming:{type:Boolean,reflect:!0},citations:{attribute:!1},toolCalls:{attribute:!1},strings:{attribute:!1},hasAvatar:{state:!0,attribute:!1},hasSlotted:{state:!0,attribute:!1},hasMeta:{state:!0,attribute:!1},hasActions:{state:!0,attribute:!1}};#e=new y(this);constructor(){super(),this.variant="assistant",this.author="",this.text="",this.format="auto",this.bubble="filled",this.divider=!1,this.streaming=!1,this.citations=[],this.toolCalls=[],this.strings={},this.hasAvatar=!1,this.hasSlotted=!1,this.hasMeta=!1,this.hasActions=!1}appendText(e){this.text+=e}finish(){this.streaming=!1}#t(){return{...Sc,...this.strings}}#i(){return this.format==="markdown"||this.format==="auto"&&this.variant!=="user"}#r(){if(this.time===void 0||this.time==="")return;let e=this.time instanceof Date?this.time:new Date(this.time);return Number.isNaN(e.getTime())?void 0:e}#n(e,t){let i=this.#e.lang||void 0,r=t?{dateStyle:"full",timeStyle:"medium"}:e.toDateString()===new Date().toDateString()?{timeStyle:"short"}:{dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat(i,r).format(e)}catch{return new Intl.DateTimeFormat(void 0,r).format(e)}}updated(e){if(!e.has("streaming"))return;let t=e.get("streaming");t===void 0&&!this.streaming||t!==this.streaming&&(this.emit("und-message-streaming",{streaming:this.streaming}),t===!0&&!this.streaming&&this.emit("und-message-complete",{author:this.author,text:this.text}))}#s=e=>t=>{this[e]=t.target.assignedNodes().length>0};#o=e=>{this.hasSlotted=e.target.assignedNodes().some(t=>t.nodeType===Node.ELEMENT_NODE||t.textContent?.trim())};#d(e){let t=this.status;if(!t)return c;let i=t==="sending"?Z.clock:t==="error"?Z.alert:t==="sent"?Z.check:Z.checkDouble,r=t==="error"?e.error:e[t];return l`<span class="status" part="status" data-status=${t}
14177
14179
  >${me(i)}${r}</span
14178
- >`}#a(){if(this.text===""&&!this.streaming)return c;if(this.text===""&&!this.hasSlotted)return a`<span class="typing" part="typing" aria-hidden="true"
14180
+ >`}#a(){if(this.text===""&&!this.streaming)return c;if(this.text===""&&!this.hasSlotted)return l`<span class="typing" part="typing" aria-hidden="true"
14179
14181
  ><span></span><span></span><span></span
14180
- ></span>`;let e=this.streaming?a`<span class="cursor" aria-hidden="true"></span>`:c;return this.#i()?a`<und-markdown
14182
+ ></span>`;let e=this.streaming?l`<span class="cursor" aria-hidden="true"></span>`:c;return this.#i()?l`<und-markdown
14181
14183
  .value=${this.text}
14182
14184
  ?streaming=${this.streaming}
14183
14185
  heading-offset="3"
14184
- ></und-markdown>`:a`<div class="plain" part="text">${this.text}${e}</div>`}#l(e,t){let i=e.status??"done",r=i==="running"?t.toolRunning:i==="error"?t.toolError:t.toolDone,s=a`<span class="tool-icon" data-status=${i}
14185
- >${i==="running"?a`<span class="tool-spinner"></span>`:me(i==="error"?Z.failed:Z.done)}</span
14186
+ ></und-markdown>`:l`<div class="plain" part="text">${this.text}${e}</div>`}#l(e,t){let i=e.status??"done",r=i==="running"?t.toolRunning:i==="error"?t.toolError:t.toolDone,s=l`<span class="tool-icon" data-status=${i}
14187
+ >${i==="running"?l`<span class="tool-spinner"></span>`:me(i==="error"?Z.failed:Z.done)}</span
14186
14188
  ><span class="tool-name" dir="auto">${e.name}</span
14187
- ><span class="tool-status" data-status=${i}>${r}</span>${e.target?a`<span class="tool-target" dir="auto">${e.target}</span>`:c}${e.duration?a`<span class="tool-duration">${e.duration}</span>`:c}`;return e.input===void 0&&e.output===void 0?a`<div class="tool"><div class="tool-row">${s}</div></div>`:a`<details class="tool">
14189
+ ><span class="tool-status" data-status=${i}>${r}</span>${e.target?l`<span class="tool-target" dir="auto">${e.target}</span>`:c}${e.duration?l`<span class="tool-duration">${e.duration}</span>`:c}`;return e.input===void 0&&e.output===void 0?l`<div class="tool"><div class="tool-row">${s}</div></div>`:l`<details class="tool">
14188
14190
  <summary class="tool-row">
14189
14191
  ${s}<span class="chevron">${me(Z.chevron)}</span>
14190
14192
  </summary>
14191
14193
  <div class="tool-body">
14192
- ${e.input===void 0?c:a`<h4>${t.toolInput}</h4>
14194
+ ${e.input===void 0?c:l`<h4>${t.toolInput}</h4>
14193
14195
  <pre dir="auto">${e.input}</pre>`}
14194
- ${e.output===void 0?c:a`<h4>${t.toolOutput}</h4>
14196
+ ${e.output===void 0?c:l`<h4>${t.toolOutput}</h4>
14195
14197
  <pre dir="auto">${e.output}</pre>`}
14196
14198
  </div>
14197
- </details>`}#c(e){let t=this.toolCalls;if(t.length===0)return c;let i=t.map(r=>this.#l(r,e));return t.length===1?a`<div class="tools" part="tools">${i}</div>`:a`<div class="tools" part="tools">
14199
+ </details>`}#c(e){let t=this.toolCalls;if(t.length===0)return c;let i=t.map(r=>this.#l(r,e));return t.length===1?l`<div class="tools" part="tools">${i}</div>`:l`<div class="tools" part="tools">
14198
14200
  <details class="tool-group" open>
14199
14201
  <summary class="tool-row group-row">
14200
14202
  <span class="tool-icon">${me(Z.wrench)}</span
@@ -14204,11 +14206,11 @@ ${he(".text")}}
14204
14206
  </summary>
14205
14207
  <div class="tool-list">${i}</div>
14206
14208
  </details>
14207
- </div>`}#u(e){return this.citations.length===0?c:a`<div class="sources" part="sources">
14209
+ </div>`}#u(e){return this.citations.length===0?c:l`<div class="sources" part="sources">
14208
14210
  <div class="sources-title">${e.sources}</div>
14209
14211
  <ol>
14210
- ${this.citations.map(t=>{let i=M(t.href),r=t.title??t.href??"";return a`<li>
14211
- ${i===void 0?r:a`<a
14212
+ ${this.citations.map(t=>{let i=M(t.href),r=t.title??t.href??"";return l`<li>
14213
+ ${i===void 0?r:l`<a
14212
14214
  href=${i}
14213
14215
  target="_blank"
14214
14216
  rel=${H("_blank","nofollow ugc")??"noopener noreferrer"}
@@ -14217,19 +14219,19 @@ ${he(".text")}}
14217
14219
  >`}
14218
14220
  </li>`})}
14219
14221
  </ol>
14220
- </div>`}#h(e){let t=this.#r(),i=t?a`<time part="time" datetime=${t.toISOString()} title=${this.#n(t,!0)}
14222
+ </div>`}#h(e){let t=this.#r(),i=t?l`<time part="time" datetime=${t.toISOString()} title=${this.#n(t,!0)}
14221
14223
  >${this.#n(t,!1)}</time
14222
- >`:c,r=this.streaming?a`<span class="status" part="status" data-status="streaming">${e.streaming}</span>`:c,s=this.#d(e),o=this.variant==="user"?[s,r,i]:[i,s,r],l=!t&&!this.status&&!this.streaming&&!this.hasMeta;return a`<div class="meta ${l?"empty":""}" part="metadata">
14224
+ >`:c,r=this.streaming?l`<span class="status" part="status" data-status="streaming">${e.streaming}</span>`:c,s=this.#d(e),o=this.variant==="user"?[s,r,i]:[i,s,r],a=!t&&!this.status&&!this.streaming&&!this.hasMeta;return l`<div class="meta ${a?"empty":""}" part="metadata">
14223
14225
  ${o}<span class="meta-extra ${this.hasMeta?"":"empty"}"
14224
14226
  ><slot name="metadata" @slotchange=${this.#s("hasMeta")}></slot
14225
14227
  ></span>
14226
- </div>`}render(){let e=this.#t(),t=this.text===""&&!this.streaming&&!this.hasSlotted,i=["base",this.hasAvatar?"":"no-avatar",this.author?"has-author":""].join(" ");return a`<div class=${i} part="base">
14228
+ </div>`}render(){let e=this.#t(),t=this.text===""&&!this.streaming&&!this.hasSlotted,i=["base",this.hasAvatar?"":"no-avatar",this.author?"has-author":""].join(" ");return l`<div class=${i} part="base">
14227
14229
  <div class="avatar ${this.hasAvatar?"has-avatar":""}" part="avatar">
14228
14230
  <slot name="avatar" @slotchange=${this.#s("hasAvatar")}></slot>
14229
14231
  </div>
14230
14232
  <div class="main">
14231
14233
  <div class="header ${this.author?"":"empty"}" part="header">
14232
- ${this.author?a`<span class="author" part="author" dir="auto">${this.author}</span>`:c}
14234
+ ${this.author?l`<span class="author" part="author" dir="auto">${this.author}</span>`:c}
14233
14235
  </div>
14234
14236
  <div
14235
14237
  class="bubble ${t?"empty":""}"
@@ -14545,15 +14547,15 @@ ${he(".text")}}
14545
14547
  `;var Cc=/[!-/:-@[-`{-~]/,ga=/^ {0,3}(`{3,}|~{3,})[ \t]*([^\s`]*)[^`]*$/,va=/^ {0,3}(#{1,6})(?:[ \t]|$)/,es=/^ {0,3}([-*_])(?:[ \t]*\1){2,}[ \t]*$/,ts=/^( {0,3})([-*+])[ \t]+(.*)$/,is=/^( {0,3})(\d{1,9})([.)])[ \t]+(.*)$/,rs=/^ {0,3}> ?(.*)$/,Lc=/^[\w#+.-]{1,32}$/,Ec=/^[ \t]*\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/,Mt=n=>n.trim()==="";function Ac(n){let e=0;for(;e<n.length&&n[n.length-1-e]===" ";)e+=1;return e}function Zr(n){let e=0;for(;n[e]===" ";)e+=1;return e}function Tc(n,e){let t=n.slice(n.indexOf("#")+e).trim(),i=t.length;for(;i>0&&t[i-1]==="#";)i-=1;return i<t.length&&(i===0||t[i-1]===" "||t[i-1]===" ")&&(t=t.slice(0,i).trimEnd()),t}function Qr(n,e=0){let t=n.replace(/\r\n?/g,`
14546
14548
  `).split(`
14547
14549
  `),i=[],r=0;for(;r<t.length;){let s=t[r]??"";if(Mt(s)){r+=1;continue}let o=ga.exec(s);if(o){let v=o[1]??"```",x=o[2]??"",w=[];r+=1;let $=new RegExp(`^ {0,3}${v[0]==="`"?"`":"~"}{${String(v.length)},}[ \\t]*$`);for(;r<t.length&&!$.test(t[r]??"");)w.push(t[r]??""),r+=1;r+=1,i.push({type:"code",language:Lc.test(x)?x:"",value:w.join(`
14548
- `)});continue}let l=va.exec(s);if(l){let v=(l[1]??"#").length;i.push({type:"heading",level:v,children:Nt(Tc(s,v))}),r+=1;continue}if(es.test(s)){i.push({type:"hr"}),r+=1;continue}if(rs.test(s)){let v=[];for(;r<t.length;){let x=t[r]??"",w=rs.exec(x);if(w)v.push(w[1]??"");else if(!Mt(x)&&v.length>0&&!Qn(x))v.push(x);else break;r+=1}i.push({type:"quote",children:e<6?Qr(v.join(`
14550
+ `)});continue}let a=va.exec(s);if(a){let v=(a[1]??"#").length;i.push({type:"heading",level:v,children:Nt(Tc(s,v))}),r+=1;continue}if(es.test(s)){i.push({type:"hr"}),r+=1;continue}if(rs.test(s)){let v=[];for(;r<t.length;){let x=t[r]??"",w=rs.exec(x);if(w)v.push(w[1]??"");else if(!Mt(x)&&v.length>0&&!Qn(x))v.push(x);else break;r+=1}i.push({type:"quote",children:e<6?Qr(v.join(`
14549
14551
  `),e+1):ba(v)});continue}let d=ts.exec(s),h=d?null:is.exec(s);if(d||h){let v=h!==null,x=h?Number(h[2]):1,w=[],$=null,_=2,I=()=>{$&&w.push(e<6?Qr($.join(`
14550
14552
  `),e+1):ba($)),$=null};for(;r<t.length;){let q=t[r]??"",ll=ts.exec(q),dl=is.exec(q),lt=v?dl:ll;if(lt&&!es.test(q)&&($===null||Zr(q)<_)){I();let Yt=v?`${lt[2]??""}${lt[3]??""}`:lt[2]??"-";_=(lt[1]?.length??0)+Yt.length+1,$=[v?lt[4]??"":lt[3]??""],r+=1;continue}if(Mt(q)){let Yt=t[r+1]??"";if($&&Zr(Yt)>=2&&!Mt(Yt)){$.push(""),r+=1;continue}break}if($&&Zr(q)>=2){$.push(q.slice(Math.min(_,Zr(q)))),r+=1;continue}if($&&!Qn(q)){$.push(q),r+=1;continue}break}I(),i.push({type:"list",ordered:v,start:x,items:w});continue}let f=t[r+1]??"";if(s.includes("|")&&f.includes("-")&&Ec.test(f)){let v=Jn(s),x=Jn(f);if(v.length===x.length&&v.length<=24){let w=x.map(_=>{let I=_.startsWith(":"),q=_.endsWith(":");return I&&q?"center":q?"right":I?"left":null}),$=[];for(r+=2;r<t.length&&!Mt(t[r]??"")&&(t[r]??"").includes("|");){let _=Jn(t[r]??"");$.push(v.map((I,q)=>Nt(_[q]??""))),r+=1}i.push({type:"table",align:w,head:v.map(_=>Nt(_)),rows:$});continue}}let m=[s];for(r+=1;r<t.length&&!Mt(t[r]??"")&&!Qn(t[r]??"");)m.push(t[r]??""),r+=1;i.push({type:"paragraph",children:Nt(m.join(`
14551
14553
  `))})}return i}function ba(n){return[{type:"paragraph",children:[{type:"text",value:n.join(`
14552
- `)}]}]}function Qn(n){return ga.test(n)||va.test(n)||es.test(n)||rs.test(n)||ts.test(n)||is.test(n)}function Jn(n){let e=n.trim();e.startsWith("|")&&(e=e.slice(1)),e.endsWith("|")&&!e.endsWith("\\|")&&(e=e.slice(0,-1));let t=[],i="";for(let r=0;r<e.length;r+=1){let s=e[r]??"";s==="\\"&&e[r+1]==="|"?(i+="|",r+=1):s==="|"?(t.push(i.trim()),i=""):i+=s}return t.push(i.trim()),t}var xa=n=>n===void 0||/\s/.test(n),ya=n=>n!==void 0&&/[\p{L}\p{N}]/u.test(n);function Nt(n,e=0,t=!0){let i=[],r="",s=new Map,o={left:4*n.length+2048},l=()=>{r&&i.push({type:"text",value:r}),r=""},d=0;for(;d<n.length;){let h=n[d]??"";if(h==="\\"){let f=n[d+1];f===`
14553
- `?(l(),i.push({type:"br"}),d+=2):f!==void 0&&Cc.test(f)?(r+=f,d+=2):(r+=h,d+=1);continue}if(h===`
14554
- `){let f=Ac(r);r=r.slice(0,r.length-f),f>=2?(l(),i.push({type:"br"})):r+=" ",d+=1;continue}if(h==="`"){let f=1;for(;n[d+f]==="`";)f+=1;let m="`".repeat(f),v=d+f,x=-1,w=`\`${String(f)}`,$=s.get(w);for($!==void 0&&v>=$&&(v=n.length);v<n.length;){let _=n.indexOf(m,v);if(_===-1)break;let I=_+f;for(;n[I]==="`";)I+=1;if(I-_===f){x=_;break}v=I}if(x===-1&&$===void 0&&s.set(w,d+f),x!==-1){l();let _=n.slice(d+f,x).replace(/\n/g," ");_.length>2&&_.startsWith(" ")&&_.endsWith(" ")&&_.trim()!==""&&(_=_.slice(1,-1)),i.push({type:"code",value:_}),d=x+f}else r+=m,d+=f;continue}if((h==="["||h==="!"&&n[d+1]==="[")&&t){let f=h==="!",m=e<6?Nc(n,f?d+1:d,o):null;if(m){l(),i.push({type:"link",href:m.href,...m.title?{title:m.title}:{},children:f&&m.label.trim()===""?[{type:"text",value:"image"}]:Nt(m.label,e+1,!1)}),d=m.end;continue}}if(h==="*"||h==="_"||h==="~"){let f=1;for(;n[d+f]===h;)f+=1;let m=n[d-1],v=n[d+f],x=h==="~"?f===2?2:0:Math.min(f,3),w=x>0&&f===x&&!xa(v)&&e<6,$=h==="_"&&ya(m);if(w&&!$){let _=Mc(n,d+f,h,x,s);if(_!==-1){l();let I=Nt(n.slice(d+x,_),e+1,t);i.push(x===3?{type:"em",children:[{type:"strong",children:I}]}:{type:h==="~"?"del":x===2?"strong":"em",children:I}),d=_+x;continue}}r+=h.repeat(f),d+=f;continue}r+=h,d+=1}return l(),i}function Mc(n,e,t,i,r){let s=t+String(i),o=r.get(s);if(o!==void 0&&e>=o)return-1;let l=e;for(;l<n.length;){let d=n[l]??"";if(d==="\\"){l+=2;continue}if(d==="`"){let h=1;for(;n[l+h]==="`";)h+=1;let f=n.indexOf("`".repeat(h),l+h);l=f===-1?l+h:f+h;continue}if(d===t){let h=1;for(;n[l+h]===t;)h+=1;let f=i===3?h>=3:h===i,m=!xa(n[l-1]),v=t!=="_"||!ya(n[l+h]);if(f&&m&&v&&l>e)return l+h-i;l+=h;continue}l+=1}return(o===void 0||e<o)&&r.set(s,e),-1}function Nc(n,e,t){if(t.left<=0)return null;let i=0,r=e,s=-1,o=Math.min(n.length,e+2048);for(;r<o;){let m=n[r];if(m==="\\"){r+=2;continue}if(m==="[")i+=1;else if(m==="]"&&(i-=1,i===0)){s=r;break}r+=1}if(t.left-=r-e,s===-1||n[s+1]!=="(")return null;let l=s+2;for(;n[l]===" "||n[l]===" ";)l+=1;let d;if(n[l]==="<"){let m=n.indexOf(">",l+1);if(m===-1||n.slice(l+1,m).includes(`
14555
- `))return null;d=n.slice(l+1,m),l=m+1}else{let m=0,v=l,x=Math.min(n.length,l+2048);for(;l<x;){let w=n[l]??"";if(w==="\\"){l+=2;continue}if(w===" "||w===" "||w===`
14556
- `)break;if(w==="(")m+=1;else if(w===")"){if(m===0)break;m-=1}l+=1}d=n.slice(v,l).replace(/\\([!-/:-@[-`{-~])/g,"$1")}for(t.left-=l-s;n[l]===" "||n[l]===" ";)l+=1;let h,f=n[l];if(f==='"'||f==="'"||f==="("){let m=f==="("?")":f,v=n.indexOf(m,l+1);if(v===-1)return null;for(h=n.slice(l+1,v),l=v+1;n[l]===" "||n[l]===" ";)l+=1}return n[l]!==")"?null:{label:n.slice(e+1,s),href:d,title:h,end:l+1}}var ka="und-markdown__";function Se(n,e,t){let i=n.createElement(e);return t&&(i.className=ka+t),i}function pt(n,e,t,i){for(let r of n)switch(r.type){case"text":e.appendChild(t.createTextNode(r.value));break;case"br":e.appendChild(t.createElement("br"));break;case"code":{let s=Se(t,"code","inline-code");s.textContent=r.value,e.appendChild(s);break}case"em":case"strong":case"del":{let s=r.type==="del"?"s":r.type,o=t.createElement(s);pt(r.children,o,t,i),e.appendChild(o);break}case"link":{let s=M(r.href.trim());if(s===void 0){pt(r.children,e,t,i);break}let o=t.createElement("a");o.className=`${ka}link`,o.setAttribute("href",s);let l=i.linkTarget??"_blank";l&&o.setAttribute("target",l),o.setAttribute("rel",H(l,"nofollow ugc")??"nofollow ugc"),o.setAttribute("referrerpolicy","no-referrer"),r.title&&o.setAttribute("title",r.title),pt(r.children,o,t,i),e.appendChild(o);break}}}function ns(n,e,t,i){for(let r of n)switch(r.type){case"heading":{let s=Math.min(6,r.level+(i.headingOffset??2)),o=Se(t,`h${String(s)}`,"heading");o.setAttribute("data-level",String(r.level)),pt(r.children,o,t,i),e.appendChild(o);break}case"paragraph":{let s=Se(t,"p","paragraph");pt(r.children,s,t,i),e.appendChild(s);break}case"code":{let s=Se(t,"pre","code-block");s.tabIndex=0,s.setAttribute("role","group"),s.setAttribute("aria-label",i.codeLabel??"Code"),r.language&&s.setAttribute("data-language",r.language);let o=t.createElement("code");o.textContent=r.value,s.appendChild(o),e.appendChild(s);break}case"quote":{let s=Se(t,"blockquote","quote");ns(r.children,s,t,i),e.appendChild(s);break}case"list":{let s=Se(t,r.ordered?"ol":"ul","list");r.ordered&&r.start!==1&&s.setAttribute("start",String(r.start));for(let o of r.items){let l=t.createElement("li");ns(o,l,t,i),s.appendChild(l)}e.appendChild(s);break}case"hr":e.appendChild(Se(t,"hr","rule"));break;case"table":{let s=Se(t,"div","table-wrap");s.tabIndex=0,s.setAttribute("role","group"),s.setAttribute("aria-label",i.tableLabel??"Table");let o=Se(t,"table","table"),l=t.createElement("thead"),d=t.createElement("tr");r.head.forEach((f,m)=>{let v=t.createElement("th");v.setAttribute("scope","col");let x=r.align[m];x&&(v.style.textAlign=x),pt(f,v,t,i),d.appendChild(v)}),l.appendChild(d),o.appendChild(l);let h=t.createElement("tbody");for(let f of r.rows){let m=t.createElement("tr");f.forEach((v,x)=>{let w=t.createElement("td"),$=r.align[x];$&&(w.style.textAlign=$),pt(v,w,t,i),m.appendChild(w)}),h.appendChild(m)}o.appendChild(h),s.appendChild(o),e.appendChild(s);break}}}function Dc(n){let e=n.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li, td, th, pre > code");return e[e.length-1]??null}function wa(n,e={},t=document){let i=t.createDocumentFragment();if(ns(n,i,t,e),e.cursor){let r=Se(t,"span","cursor");r.setAttribute("aria-hidden","true"),(Dc(i)??i).appendChild(r)}return i}var Ic=1e5,Dt=class extends p{static tagName="und-markdown";static styles=ma;static properties={value:{},linkTarget:{attribute:"link-target"},headingOffset:{type:Number,attribute:"heading-offset"},maxLength:{type:Number,attribute:"max-length"},streaming:{type:Boolean,reflect:!0},density:{reflect:!0},codeLabel:{attribute:"code-label"},tableLabel:{attribute:"table-label"}};#e=0;#t="";constructor(){super(),this.value="",this.linkTarget="_blank",this.headingOffset=2,this.maxLength=Ic,this.streaming=!1,this.density="default",this.codeLabel="Code",this.tableLabel="Table"}appendText(e){this.value+=e}disconnectedCallback(){super.disconnectedCallback(),this.#e&&cancelAnimationFrame(this.#e),this.#e=0}updated(){this.streaming?this.#e||(this.#e=requestAnimationFrame(()=>{this.#e=0,this.#i()})):(this.#e&&cancelAnimationFrame(this.#e),this.#e=0,this.#i())}#i(){let e=this.renderRoot.querySelector(".content");if(!e)return;let t=this.value.length>this.maxLength?this.value.slice(0,this.maxLength):this.value,i=[this.linkTarget,this.headingOffset,this.streaming,this.codeLabel,this.tableLabel,t].join("\0");i!==this.#t&&(this.#t=i,e.replaceChildren(wa(Qr(t),{linkTarget:this.linkTarget,headingOffset:this.headingOffset,codeLabel:this.codeLabel,tableLabel:this.tableLabel,cursor:this.streaming},this.ownerDocument)))}render(){return a`<div class="content" part="content"></div>`}};Dt.define();Xr.define();var Jr=class extends p{static tagName="und-citation";static properties={index:{type:Number,reflect:!0},href:{},target:{},label:{},sourceTitle:{attribute:"source-title"},variant:{reflect:!0},src:{},hasPreview:{state:!0,attribute:!1},dismissed:{state:!0,attribute:!1}};static styles=u` @layer und.components{:host{position:relative;display:inline-block;line-height:1;vertical-align:super}:host([variant='label']){vertical-align:middle}:host([hidden]){display:none}.ref{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--und-citation-size,1.25rem);block-size:max(var(--und-citation-size,1.25rem),min(1lh,1.5em));padding-inline:var(--und-space-1,0.25rem);border-radius:var(--und-radius-full,9999px);background-color:var(--und-accent-bg,#0082fb33);color:var(--und-fg-muted,#445564);font-size:var(--und-text-caption-size,0.75rem);font-variant-numeric:tabular-nums;font-weight:var(--und-font-weight-semibold,600);line-height:1.6667;text-decoration:none;transition-duration:var(--und-duration-fast,175ms);transition-property:background-color,border-color,color;transition-timing-function:var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}.bracket{display:none}.label{gap:var(--und-space-1,0.25rem);max-inline-size:15em;min-inline-size:0;margin-inline-start:0.125rem;padding-inline:var(--und-space-2,0.5rem);overflow:hidden;border:var(--und-border-width-thin,1px) solid var(--und-border-subtle,#05365919);border-radius:var(--und-radius-lg,8px);background-color:transparent;font-weight:var(--und-font-weight-regular,400)}.label.with-icon{padding-inline-start:0.125rem}.title{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon{box-sizing:border-box;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;inline-size:var(--und-space-4,1rem);block-size:var(--und-space-4,1rem);overflow:hidden;border:var(--und-border-width-thin,1px) solid var(--und-border-subtle,#05365919);border-radius:var(--und-radius-full,9999px);background-color:var(--und-bg-surface,#fff)}.icon img{inline-size:var(--und-space-3,0.75rem);block-size:var(--und-space-3,0.75rem)}@media (hover:hover){a.ref:hover{background-color:var( --und-citation-hover-bg,color-mix(in srgb,var(--und-fg-default,#0a1317) 5%,transparent) );color:var(--und-fg-default,#0a1317)}}a.ref:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#0064e0);outline-offset:var(--und-focus-offset,3px)}.preview{position:absolute;z-index:1;inset-block-start:100%;inset-inline-start:0;box-sizing:border-box;inline-size:max-content;max-inline-size:min(20rem,80vw);margin-block-start:var(--und-space-1,0.25rem);padding-block:var(--und-space-2,0.5rem);padding-inline:var(--und-space-3,0.75rem);border:var(--und-border-width-thin,1px) solid var(--und-border-subtle,#05365919);border-radius:var(--und-radius-lg,8px);background:var(--und-bg-raised,#fff);box-shadow:var(--und-shadow-2,0 4px 12px rgb(0 0 0 / 15%));color:var(--und-fg-default,#0a1317);font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;vertical-align:baseline;visibility:hidden}:host(:hover) .preview:not(.dismissed),:host(:focus-within) .preview:not(.dismissed){visibility:visible}@media (prefers-reduced-motion:reduce){.ref{transition-duration:0s}}@media (forced-colors:active){.ref{border:1px solid CanvasText;background:Canvas;color:LinkText}span.ref{color:CanvasText}.preview{border-color:CanvasText}}}
14554
+ `)}]}]}function Qn(n){return ga.test(n)||va.test(n)||es.test(n)||rs.test(n)||ts.test(n)||is.test(n)}function Jn(n){let e=n.trim();e.startsWith("|")&&(e=e.slice(1)),e.endsWith("|")&&!e.endsWith("\\|")&&(e=e.slice(0,-1));let t=[],i="";for(let r=0;r<e.length;r+=1){let s=e[r]??"";s==="\\"&&e[r+1]==="|"?(i+="|",r+=1):s==="|"?(t.push(i.trim()),i=""):i+=s}return t.push(i.trim()),t}var xa=n=>n===void 0||/\s/.test(n),ya=n=>n!==void 0&&/[\p{L}\p{N}]/u.test(n);function Nt(n,e=0,t=!0){let i=[],r="",s=new Map,o={left:4*n.length+2048},a=()=>{r&&i.push({type:"text",value:r}),r=""},d=0;for(;d<n.length;){let h=n[d]??"";if(h==="\\"){let f=n[d+1];f===`
14555
+ `?(a(),i.push({type:"br"}),d+=2):f!==void 0&&Cc.test(f)?(r+=f,d+=2):(r+=h,d+=1);continue}if(h===`
14556
+ `){let f=Ac(r);r=r.slice(0,r.length-f),f>=2?(a(),i.push({type:"br"})):r+=" ",d+=1;continue}if(h==="`"){let f=1;for(;n[d+f]==="`";)f+=1;let m="`".repeat(f),v=d+f,x=-1,w=`\`${String(f)}`,$=s.get(w);for($!==void 0&&v>=$&&(v=n.length);v<n.length;){let _=n.indexOf(m,v);if(_===-1)break;let I=_+f;for(;n[I]==="`";)I+=1;if(I-_===f){x=_;break}v=I}if(x===-1&&$===void 0&&s.set(w,d+f),x!==-1){a();let _=n.slice(d+f,x).replace(/\n/g," ");_.length>2&&_.startsWith(" ")&&_.endsWith(" ")&&_.trim()!==""&&(_=_.slice(1,-1)),i.push({type:"code",value:_}),d=x+f}else r+=m,d+=f;continue}if((h==="["||h==="!"&&n[d+1]==="[")&&t){let f=h==="!",m=e<6?Nc(n,f?d+1:d,o):null;if(m){a(),i.push({type:"link",href:m.href,...m.title?{title:m.title}:{},children:f&&m.label.trim()===""?[{type:"text",value:"image"}]:Nt(m.label,e+1,!1)}),d=m.end;continue}}if(h==="*"||h==="_"||h==="~"){let f=1;for(;n[d+f]===h;)f+=1;let m=n[d-1],v=n[d+f],x=h==="~"?f===2?2:0:Math.min(f,3),w=x>0&&f===x&&!xa(v)&&e<6,$=h==="_"&&ya(m);if(w&&!$){let _=Mc(n,d+f,h,x,s);if(_!==-1){a();let I=Nt(n.slice(d+x,_),e+1,t);i.push(x===3?{type:"em",children:[{type:"strong",children:I}]}:{type:h==="~"?"del":x===2?"strong":"em",children:I}),d=_+x;continue}}r+=h.repeat(f),d+=f;continue}r+=h,d+=1}return a(),i}function Mc(n,e,t,i,r){let s=t+String(i),o=r.get(s);if(o!==void 0&&e>=o)return-1;let a=e;for(;a<n.length;){let d=n[a]??"";if(d==="\\"){a+=2;continue}if(d==="`"){let h=1;for(;n[a+h]==="`";)h+=1;let f=n.indexOf("`".repeat(h),a+h);a=f===-1?a+h:f+h;continue}if(d===t){let h=1;for(;n[a+h]===t;)h+=1;let f=i===3?h>=3:h===i,m=!xa(n[a-1]),v=t!=="_"||!ya(n[a+h]);if(f&&m&&v&&a>e)return a+h-i;a+=h;continue}a+=1}return(o===void 0||e<o)&&r.set(s,e),-1}function Nc(n,e,t){if(t.left<=0)return null;let i=0,r=e,s=-1,o=Math.min(n.length,e+2048);for(;r<o;){let m=n[r];if(m==="\\"){r+=2;continue}if(m==="[")i+=1;else if(m==="]"&&(i-=1,i===0)){s=r;break}r+=1}if(t.left-=r-e,s===-1||n[s+1]!=="(")return null;let a=s+2;for(;n[a]===" "||n[a]===" ";)a+=1;let d;if(n[a]==="<"){let m=n.indexOf(">",a+1);if(m===-1||n.slice(a+1,m).includes(`
14557
+ `))return null;d=n.slice(a+1,m),a=m+1}else{let m=0,v=a,x=Math.min(n.length,a+2048);for(;a<x;){let w=n[a]??"";if(w==="\\"){a+=2;continue}if(w===" "||w===" "||w===`
14558
+ `)break;if(w==="(")m+=1;else if(w===")"){if(m===0)break;m-=1}a+=1}d=n.slice(v,a).replace(/\\([!-/:-@[-`{-~])/g,"$1")}for(t.left-=a-s;n[a]===" "||n[a]===" ";)a+=1;let h,f=n[a];if(f==='"'||f==="'"||f==="("){let m=f==="("?")":f,v=n.indexOf(m,a+1);if(v===-1)return null;for(h=n.slice(a+1,v),a=v+1;n[a]===" "||n[a]===" ";)a+=1}return n[a]!==")"?null:{label:n.slice(e+1,s),href:d,title:h,end:a+1}}var ka="und-markdown__";function Se(n,e,t){let i=n.createElement(e);return t&&(i.className=ka+t),i}function pt(n,e,t,i){for(let r of n)switch(r.type){case"text":e.appendChild(t.createTextNode(r.value));break;case"br":e.appendChild(t.createElement("br"));break;case"code":{let s=Se(t,"code","inline-code");s.textContent=r.value,e.appendChild(s);break}case"em":case"strong":case"del":{let s=r.type==="del"?"s":r.type,o=t.createElement(s);pt(r.children,o,t,i),e.appendChild(o);break}case"link":{let s=M(r.href.trim());if(s===void 0){pt(r.children,e,t,i);break}let o=t.createElement("a");o.className=`${ka}link`,o.setAttribute("href",s);let a=i.linkTarget??"_blank";a&&o.setAttribute("target",a),o.setAttribute("rel",H(a,"nofollow ugc")??"nofollow ugc"),o.setAttribute("referrerpolicy","no-referrer"),r.title&&o.setAttribute("title",r.title),pt(r.children,o,t,i),e.appendChild(o);break}}}function ns(n,e,t,i){for(let r of n)switch(r.type){case"heading":{let s=Math.min(6,r.level+(i.headingOffset??2)),o=Se(t,`h${String(s)}`,"heading");o.setAttribute("data-level",String(r.level)),pt(r.children,o,t,i),e.appendChild(o);break}case"paragraph":{let s=Se(t,"p","paragraph");pt(r.children,s,t,i),e.appendChild(s);break}case"code":{let s=Se(t,"pre","code-block");s.tabIndex=0,s.setAttribute("role","group"),s.setAttribute("aria-label",i.codeLabel??"Code"),r.language&&s.setAttribute("data-language",r.language);let o=t.createElement("code");o.textContent=r.value,s.appendChild(o),e.appendChild(s);break}case"quote":{let s=Se(t,"blockquote","quote");ns(r.children,s,t,i),e.appendChild(s);break}case"list":{let s=Se(t,r.ordered?"ol":"ul","list");r.ordered&&r.start!==1&&s.setAttribute("start",String(r.start));for(let o of r.items){let a=t.createElement("li");ns(o,a,t,i),s.appendChild(a)}e.appendChild(s);break}case"hr":e.appendChild(Se(t,"hr","rule"));break;case"table":{let s=Se(t,"div","table-wrap");s.tabIndex=0,s.setAttribute("role","group"),s.setAttribute("aria-label",i.tableLabel??"Table");let o=Se(t,"table","table"),a=t.createElement("thead"),d=t.createElement("tr");r.head.forEach((f,m)=>{let v=t.createElement("th");v.setAttribute("scope","col");let x=r.align[m];x&&(v.style.textAlign=x),pt(f,v,t,i),d.appendChild(v)}),a.appendChild(d),o.appendChild(a);let h=t.createElement("tbody");for(let f of r.rows){let m=t.createElement("tr");f.forEach((v,x)=>{let w=t.createElement("td"),$=r.align[x];$&&(w.style.textAlign=$),pt(v,w,t,i),m.appendChild(w)}),h.appendChild(m)}o.appendChild(h),s.appendChild(o),e.appendChild(s);break}}}function Dc(n){let e=n.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li, td, th, pre > code");return e[e.length-1]??null}function wa(n,e={},t=document){let i=t.createDocumentFragment();if(ns(n,i,t,e),e.cursor){let r=Se(t,"span","cursor");r.setAttribute("aria-hidden","true"),(Dc(i)??i).appendChild(r)}return i}var Ic=1e5,Dt=class extends p{static tagName="und-markdown";static styles=ma;static properties={value:{},linkTarget:{attribute:"link-target"},headingOffset:{type:Number,attribute:"heading-offset"},maxLength:{type:Number,attribute:"max-length"},streaming:{type:Boolean,reflect:!0},density:{reflect:!0},codeLabel:{attribute:"code-label"},tableLabel:{attribute:"table-label"}};#e=0;#t="";constructor(){super(),this.value="",this.linkTarget="_blank",this.headingOffset=2,this.maxLength=Ic,this.streaming=!1,this.density="default",this.codeLabel="Code",this.tableLabel="Table"}appendText(e){this.value+=e}disconnectedCallback(){super.disconnectedCallback(),this.#e&&cancelAnimationFrame(this.#e),this.#e=0}updated(){this.streaming?this.#e||(this.#e=requestAnimationFrame(()=>{this.#e=0,this.#i()})):(this.#e&&cancelAnimationFrame(this.#e),this.#e=0,this.#i())}#i(){let e=this.renderRoot.querySelector(".content");if(!e)return;let t=this.value.length>this.maxLength?this.value.slice(0,this.maxLength):this.value,i=[this.linkTarget,this.headingOffset,this.streaming,this.codeLabel,this.tableLabel,t].join("\0");i!==this.#t&&(this.#t=i,e.replaceChildren(wa(Qr(t),{linkTarget:this.linkTarget,headingOffset:this.headingOffset,codeLabel:this.codeLabel,tableLabel:this.tableLabel,cursor:this.streaming},this.ownerDocument)))}render(){return l`<div class="content" part="content"></div>`}};Dt.define();Xr.define();var Jr=class extends p{static tagName="und-citation";static properties={index:{type:Number,reflect:!0},href:{},target:{},label:{},sourceTitle:{attribute:"source-title"},variant:{reflect:!0},src:{},hasPreview:{state:!0,attribute:!1},dismissed:{state:!0,attribute:!1}};static styles=u` @layer und.components{:host{position:relative;display:inline-block;line-height:1;vertical-align:super}:host([variant='label']){vertical-align:middle}:host([hidden]){display:none}.ref{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--und-citation-size,1.25rem);block-size:max(var(--und-citation-size,1.25rem),min(1lh,1.5em));padding-inline:var(--und-space-1,0.25rem);border-radius:var(--und-radius-full,9999px);background-color:var(--und-accent-bg,#0082fb33);color:var(--und-fg-muted,#445564);font-size:var(--und-text-caption-size,0.75rem);font-variant-numeric:tabular-nums;font-weight:var(--und-font-weight-semibold,600);line-height:1.6667;text-decoration:none;transition-duration:var(--und-duration-fast,175ms);transition-property:background-color,border-color,color;transition-timing-function:var(--und-ease-enter,cubic-bezier(0.24,1,0.4,1))}.bracket{display:none}.label{gap:var(--und-space-1,0.25rem);max-inline-size:15em;min-inline-size:0;margin-inline-start:0.125rem;padding-inline:var(--und-space-2,0.5rem);overflow:hidden;border:var(--und-border-width-thin,1px) solid var(--und-border-subtle,#05365919);border-radius:var(--und-radius-lg,8px);background-color:transparent;font-weight:var(--und-font-weight-regular,400)}.label.with-icon{padding-inline-start:0.125rem}.title{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon{box-sizing:border-box;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;inline-size:var(--und-space-4,1rem);block-size:var(--und-space-4,1rem);overflow:hidden;border:var(--und-border-width-thin,1px) solid var(--und-border-subtle,#05365919);border-radius:var(--und-radius-full,9999px);background-color:var(--und-bg-surface,#fff)}.icon img{inline-size:var(--und-space-3,0.75rem);block-size:var(--und-space-3,0.75rem)}@media (hover:hover){a.ref:hover{background-color:var( --und-citation-hover-bg,color-mix(in srgb,var(--und-fg-default,#0a1317) 5%,transparent) );color:var(--und-fg-default,#0a1317)}}a.ref:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#0064e0);outline-offset:var(--und-focus-offset,3px)}.preview{position:absolute;z-index:1;inset-block-start:100%;inset-inline-start:0;box-sizing:border-box;inline-size:max-content;max-inline-size:min(20rem,80vw);margin-block-start:var(--und-space-1,0.25rem);padding-block:var(--und-space-2,0.5rem);padding-inline:var(--und-space-3,0.75rem);border:var(--und-border-width-thin,1px) solid var(--und-border-subtle,#05365919);border-radius:var(--und-radius-lg,8px);background:var(--und-bg-raised,#fff);box-shadow:var(--und-shadow-2,0 4px 12px rgb(0 0 0 / 15%));color:var(--und-fg-default,#0a1317);font-size:var(--und-text-body-sm-size,0.875rem);line-height:1.4286;vertical-align:baseline;visibility:hidden}:host(:hover) .preview:not(.dismissed),:host(:focus-within) .preview:not(.dismissed){visibility:visible}@media (prefers-reduced-motion:reduce){.ref{transition-duration:0s}}@media (forced-colors:active){.ref{border:1px solid CanvasText;background:Canvas;color:LinkText}span.ref{color:CanvasText}.preview{border-color:CanvasText}}}
14557
14559
 
14558
14560
 
14559
14561
 
@@ -14702,8 +14704,8 @@ ${he(".text")}}
14702
14704
 
14703
14705
 
14704
14706
 
14705
- `;#e=new y(this);#t=E("und-citation-preview");constructor(){super(),this.index=1,this.variant="number",this.target="_blank",this.label="Source {n}",this.hasPreview=!1,this.dismissed=!1,this.addEventListener("keydown",e=>{e.key==="Escape"&&this.hasPreview&&!this.dismissed&&(this.dismissed=!0,e.stopPropagation())}),this.addEventListener("pointerleave",()=>this.dismissed=!1),this.addEventListener("focusout",()=>this.dismissed=!1)}#i(){try{return new Intl.NumberFormat(this.#e.lang||void 0).format(this.index)}catch{return String(this.index)}}#r=e=>{let t=e.target;this.hasPreview=t.assignedNodes({flatten:!0}).some(i=>i.textContent?.trim())};#n(e){if(this.variant==="label"){let t=ve(this.src);return a`${t?a`<span class="icon" aria-hidden="true"><img src=${t} alt="" /></span>`:c}<span class="title">${this.sourceTitle||e}</span>`}return a`${`[${e}]`}`}render(){let e=M(this.href),t=this.#i(),i=this.label.replaceAll("{n}",t),r=this.sourceTitle?`${i}: ${this.sourceTitle}`:i,s=this.variant==="label",o=s&&ve(this.src)?" with-icon":"",l=s?`ref label${o}`:"ref";return a`${e===void 0?a`<span class=${l} part="link">${this.#n(t)}</span>`:a`<a
14706
- class=${l}
14707
+ `;#e=new y(this);#t=E("und-citation-preview");constructor(){super(),this.index=1,this.variant="number",this.target="_blank",this.label="Source {n}",this.hasPreview=!1,this.dismissed=!1,this.addEventListener("keydown",e=>{e.key==="Escape"&&this.hasPreview&&!this.dismissed&&(this.dismissed=!0,e.stopPropagation())}),this.addEventListener("pointerleave",()=>this.dismissed=!1),this.addEventListener("focusout",()=>this.dismissed=!1)}#i(){try{return new Intl.NumberFormat(this.#e.lang||void 0).format(this.index)}catch{return String(this.index)}}#r=e=>{let t=e.target;this.hasPreview=t.assignedNodes({flatten:!0}).some(i=>i.textContent?.trim())};#n(e){if(this.variant==="label"){let t=ve(this.src);return l`${t?l`<span class="icon" aria-hidden="true"><img src=${t} alt="" /></span>`:c}<span class="title">${this.sourceTitle||e}</span>`}return l`${`[${e}]`}`}render(){let e=M(this.href),t=this.#i(),i=this.label.replaceAll("{n}",t),r=this.sourceTitle?`${i}: ${this.sourceTitle}`:i,s=this.variant==="label",o=s&&ve(this.src)?" with-icon":"",a=s?`ref label${o}`:"ref";return l`${e===void 0?l`<span class=${a} part="link">${this.#n(t)}</span>`:l`<a
14708
+ class=${a}
14707
14709
  part="link"
14708
14710
  href=${e}
14709
14711
  target=${this.target||c}
@@ -14728,7 +14730,7 @@ ${he(".text")}}
14728
14730
 
14729
14731
 
14730
14732
 
14731
- `,za=ge(Ai.cssText.replaceAll(":where(und-accordion)",":where(und-collapsible)"));var en=class extends p{static tagName="und-collapsible";static styles=_a;static properties={open:{type:Boolean,reflect:!0}};constructor(){super(),this.open=!1,this.addEventListener("toggle",this.#i,!0)}connectedCallback(){super.connectedCallback(),D(this,za)}get details(){return this.querySelector(":scope > details")}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}#e=!1;#t=!1;#i=e=>{let t=this.details;e.target!==t||!t||(this.open=t.open,t.open!==this.#t&&(this.#t=t.open,this.emit("und-toggle",{open:t.open})))};#r=()=>{let e=this.details;!e||this.#e||(this.#e=!0,e.open&&!this.open&&(this.open=!0),this.#t=this.open)};#n=()=>{this.#r();let e=this.details;e&&e.open!==this.open&&(e.open=this.open)};willUpdate(){this.#r()}updated(){this.#n()}render(){return a`<slot @slotchange=${this.#n}></slot>`}};en.define();Dt.define();var $a=u` @layer und.components{:host{display:inline;color:var(--und-timer-color,inherit);font:inherit;font-size:var(--und-timer-font-size,inherit);font-variant-numeric:tabular-nums;font-weight:var(--und-timer-font-weight,inherit);line-height:inherit}:host([hidden]){display:none}:host([data-complete]){color:var(--und-status-danger-fg,#b3261e)}time{unicode-bidi:isolate;direction:ltr}@media (forced-colors:active){:host{color:CanvasText}}}
14733
+ `,za=ge(Ai.cssText.replaceAll(":where(und-accordion)",":where(und-collapsible)"));var en=class extends p{static tagName="und-collapsible";static styles=_a;static properties={open:{type:Boolean,reflect:!0}};constructor(){super(),this.open=!1,this.addEventListener("toggle",this.#i,!0)}connectedCallback(){super.connectedCallback(),D(this,za)}get details(){return this.querySelector(":scope > details")}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}#e=!1;#t=!1;#i=e=>{let t=this.details;e.target!==t||!t||(this.open=t.open,t.open!==this.#t&&(this.#t=t.open,this.emit("und-toggle",{open:t.open})))};#r=()=>{let e=this.details;!e||this.#e||(this.#e=!0,e.open&&!this.open&&(this.open=!0),this.#t=this.open)};#n=()=>{this.#r();let e=this.details;e&&e.open!==this.open&&(e.open=this.open)};willUpdate(){this.#r()}updated(){this.#n()}render(){return l`<slot @slotchange=${this.#n}></slot>`}};en.define();Dt.define();var $a=u` @layer und.components{:host{display:inline;color:var(--und-timer-color,inherit);font:inherit;font-size:var(--und-timer-font-size,inherit);font-variant-numeric:tabular-nums;font-weight:var(--und-timer-font-weight,inherit);line-height:inherit}:host([hidden]){display:none}:host([data-complete]){color:var(--und-status-danger-fg,#b3261e)}time{unicode-bidi:isolate;direction:ltr}@media (forced-colors:active){:host{color:CanvasText}}}
14732
14734
 
14733
14735
 
14734
14736
 
@@ -14759,7 +14761,7 @@ ${he(".text")}}
14759
14761
 
14760
14762
 
14761
14763
 
14762
- `;var Bc=250,tn=class extends p{static tagName="und-timer";static styles=$a;static properties={mode:{reflect:!0},duration:{type:Number},autostart:{type:Boolean},label:{},completeLabel:{attribute:"complete-label"},announceEvery:{type:Number,attribute:"announce-every"},running:{state:!0,attribute:!1},shown:{state:!0,attribute:!1}};#e=0;#t=null;#i;#r=-1;#n=new y(this);constructor(){super(),this.mode="elapsed",this.duration=0,this.autostart=!1,this.label="Timer",this.completeLabel="Time is up",this.announceEvery=0,this.running=!1,this.shown=0}get isRunning(){return this.running}get elapsedMs(){let e=this.#t===null?0:performance.now()-this.#t;return this.#e+e}start(){this.running||this.#s()||(this.#t=performance.now(),this.running=!0,this.#i=setInterval(this.#l,Bc),this.#l())}pause(){this.running&&(this.#e=this.elapsedMs,this.#t=null,this.#o(),this.running=!1,this.#a())}reset(){this.#o(),this.#e=0,this.#t=null,this.running=!1,this.#r=-1,this.removeAttribute("data-complete"),this.#a()}connectedCallback(){super.connectedCallback(),this.setAttribute("role","timer"),this.autostart&&!this.running&&this.elapsedMs===0&&this.start()}disconnectedCallback(){super.disconnectedCallback(),this.running&&this.pause()}#s(){return this.mode==="countdown"&&this.elapsedMs>=this.duration*1e3}#o(){this.#i!==void 0&&clearInterval(this.#i),this.#i=void 0}#d(){return this.mode==="countdown"?Math.max(0,Math.ceil(this.duration-this.elapsedMs/1e3)):Math.floor(this.elapsedMs/1e3)}#a(){let e=this.#d();e!==this.shown&&(this.shown=e)}#l=()=>{let e=this.shown;this.#a();let t=this.shown;if(t!==e&&this.emit("und-tick",{elapsed:Math.floor(this.elapsedMs/1e3),remaining:this.mode==="countdown"?t:null}),this.mode==="countdown"&&this.#s()){this.#e=this.duration*1e3,this.#t=null,this.#o(),this.running=!1,this.shown=0,this.setAttribute("data-complete",""),this.emit("und-complete"),N(this.completeLabel);return}let i=this.announceEvery;i>0&&t!==this.#r&&t%i===0&&t!==0&&(this.#r=t,N(this.#c(t)))};#c(e){let t;try{t=new Intl.NumberFormat(this.#n.lang||void 0,{minimumIntegerDigits:2,useGrouping:!1})}catch{t=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2,useGrouping:!1})}let i=Math.floor(e/3600),r=Math.floor(e%3600/60),s=e%60,o=`${t.format(r)}:${t.format(s)}`;return i>0?`${t.format(i)}:${o}`:o}#u(e){let t=Math.floor(e/3600),i=Math.floor(e%3600/60),r=e%60;return`PT${String(t)}H${String(i)}M${String(r)}S`}willUpdate(e){(e.has("mode")||e.has("duration"))&&!this.running&&(this.shown=this.#d())}updated(){this.setAttribute("aria-label",this.label)}render(){return a`<time part="time" datetime=${this.#u(this.shown)}
14764
+ `;var Bc=250,tn=class extends p{static tagName="und-timer";static styles=$a;static properties={mode:{reflect:!0},duration:{type:Number},autostart:{type:Boolean},label:{},completeLabel:{attribute:"complete-label"},announceEvery:{type:Number,attribute:"announce-every"},running:{state:!0,attribute:!1},shown:{state:!0,attribute:!1}};#e=0;#t=null;#i;#r=-1;#n=new y(this);constructor(){super(),this.mode="elapsed",this.duration=0,this.autostart=!1,this.label="Timer",this.completeLabel="Time is up",this.announceEvery=0,this.running=!1,this.shown=0}get isRunning(){return this.running}get elapsedMs(){let e=this.#t===null?0:performance.now()-this.#t;return this.#e+e}start(){this.running||this.#s()||(this.#t=performance.now(),this.running=!0,this.#i=setInterval(this.#l,Bc),this.#l())}pause(){this.running&&(this.#e=this.elapsedMs,this.#t=null,this.#o(),this.running=!1,this.#a())}reset(){this.#o(),this.#e=0,this.#t=null,this.running=!1,this.#r=-1,this.removeAttribute("data-complete"),this.#a()}connectedCallback(){super.connectedCallback(),this.setAttribute("role","timer"),this.autostart&&!this.running&&this.elapsedMs===0&&this.start()}disconnectedCallback(){super.disconnectedCallback(),this.running&&this.pause()}#s(){return this.mode==="countdown"&&this.elapsedMs>=this.duration*1e3}#o(){this.#i!==void 0&&clearInterval(this.#i),this.#i=void 0}#d(){return this.mode==="countdown"?Math.max(0,Math.ceil(this.duration-this.elapsedMs/1e3)):Math.floor(this.elapsedMs/1e3)}#a(){let e=this.#d();e!==this.shown&&(this.shown=e)}#l=()=>{let e=this.shown;this.#a();let t=this.shown;if(t!==e&&this.emit("und-tick",{elapsed:Math.floor(this.elapsedMs/1e3),remaining:this.mode==="countdown"?t:null}),this.mode==="countdown"&&this.#s()){this.#e=this.duration*1e3,this.#t=null,this.#o(),this.running=!1,this.shown=0,this.setAttribute("data-complete",""),this.emit("und-complete"),N(this.completeLabel);return}let i=this.announceEvery;i>0&&t!==this.#r&&t%i===0&&t!==0&&(this.#r=t,N(this.#c(t)))};#c(e){let t;try{t=new Intl.NumberFormat(this.#n.lang||void 0,{minimumIntegerDigits:2,useGrouping:!1})}catch{t=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2,useGrouping:!1})}let i=Math.floor(e/3600),r=Math.floor(e%3600/60),s=e%60,o=`${t.format(r)}:${t.format(s)}`;return i>0?`${t.format(i)}:${o}`:o}#u(e){let t=Math.floor(e/3600),i=Math.floor(e%3600/60),r=e%60;return`PT${String(t)}H${String(i)}M${String(r)}S`}willUpdate(e){(e.has("mode")||e.has("duration"))&&!this.running&&(this.shown=this.#d())}updated(){this.setAttribute("aria-label",this.label)}render(){return l`<time part="time" datetime=${this.#u(this.shown)}
14763
14765
  >${this.#c(this.shown)}</time
14764
14766
  >`}};tn.define();var Sa=u` @layer und.components{:host{display:inline-block}:host([hidden]){display:none}.toggle{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-block-size:var(--und-target-min,24px);min-inline-size:var(--und-target-min,24px);padding:var(--und-mobile-nav-toggle-padding,var(--und-space-2,0.5rem));border:0;border-radius:var(--und-mobile-nav-toggle-radius,var(--und-radius-element,0.5rem));background:transparent;color:var(--und-fg-default,#1a1d21);cursor:pointer;-webkit-tap-highlight-color:transparent}.toggle:hover{background:var(--und-mobile-nav-toggle-hover-bg,var(--und-bg-hover,rgb(0 0 0 / 6%)))}.toggle:active{background:var(--und-mobile-nav-toggle-pressed-bg,var(--und-bg-pressed,rgb(0 0 0 / 10%)))}.toggle:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}und-drawer::part(header){align-items:center;min-block-size:var(--und-space-12,3rem);padding-block:0;padding-inline:var(--und-space-2,0.5rem);border-block-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3)}und-drawer::part(title){margin-inline-start:var(--und-space-1,0.25rem)}und-drawer::part(close-button){margin-inline-end:0}und-drawer::part(body){padding:var(--und-space-2,0.5rem)}.icon{inline-size:1.25rem;block-size:1.25rem}@media (pointer:coarse){.toggle{min-block-size:var(--und-target-min-coarse,44px);min-inline-size:var(--und-target-min-coarse,44px)}}@media (forced-colors:active){.toggle:focus-visible{outline-color:Highlight}}}
14765
14767
 
@@ -14840,7 +14842,7 @@ ${he(".text")}}
14840
14842
 
14841
14843
 
14842
14844
 
14843
- `;var rn=class extends p{static tagName="und-mobile-nav";static styles=Sa;static properties={open:{type:Boolean,reflect:!0},label:{},toggleLabel:{attribute:"toggle-label"},closeLabel:{attribute:"close-label"},placement:{reflect:!0}};#e=new ke(this,"und-mobile-nav");constructor(){super(),this.open=!1,this.label="Menu",this.toggleLabel="Open menu",this.closeLabel="Close menu",this.placement="start"}connectedCallback(){super.connectedCallback(),!!1&&(this.addEventListener("click",this.#r),window.addEventListener("popstate",this.#i),window.addEventListener("hashchange",this.#i))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.#r),window.removeEventListener("popstate",this.#i),window.removeEventListener("hashchange",this.#i)}updated(e){e.has("open")&&this.setCustomState("open",this.open)}#t(e,t){if(e===this.open)return;this.emit("und-open-change",{open:e,reason:t},{cancelable:!0})&&(this.open=e)}#i=()=>{this.open&&(this.open=!1)};#r=e=>{if(!this.open)return;let t=e.composedPath().find(i=>i instanceof HTMLAnchorElement);!t||!t.hasAttribute("href")||!this.contains(t)||t.target&&t.target!=="_self"||this.#t(!1,"navigation")};#n=e=>{let t=e.currentTarget;queueMicrotask(()=>{this.open=t.open})};render(){let e=this.#e.part("panel");return a`<button
14845
+ `;var rn=class extends p{static tagName="und-mobile-nav";static styles=Sa;static properties={open:{type:Boolean,reflect:!0},label:{},toggleLabel:{attribute:"toggle-label"},closeLabel:{attribute:"close-label"},placement:{reflect:!0}};#e=new ke(this,"und-mobile-nav");constructor(){super(),this.open=!1,this.label="Menu",this.toggleLabel="Open menu",this.closeLabel="Close menu",this.placement="start"}connectedCallback(){super.connectedCallback(),!!1&&(this.addEventListener("click",this.#r),window.addEventListener("popstate",this.#i),window.addEventListener("hashchange",this.#i))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.#r),window.removeEventListener("popstate",this.#i),window.removeEventListener("hashchange",this.#i)}updated(e){e.has("open")&&this.setCustomState("open",this.open)}#t(e,t){if(e===this.open)return;this.emit("und-open-change",{open:e,reason:t},{cancelable:!0})&&(this.open=e)}#i=()=>{this.open&&(this.open=!1)};#r=e=>{if(!this.open)return;let t=e.composedPath().find(i=>i instanceof HTMLAnchorElement);!t||!t.hasAttribute("href")||!this.contains(t)||t.target&&t.target!=="_self"||this.#t(!1,"navigation")};#n=e=>{let t=e.currentTarget;queueMicrotask(()=>{this.open=t.open})};render(){let e=this.#e.part("panel");return l`<button
14844
14846
  part="toggle"
14845
14847
  class="toggle"
14846
14848
  type="button"
@@ -15014,8 +15016,8 @@ ${he(".text")}}
15014
15016
 
15015
15017
 
15016
15018
 
15017
- `;var Pc=n=>n.trim().toLocaleLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"");function Rc(n){let e=[],t=[];for(let i of n){let r=i.level??2,s={item:i,children:[]};for(;t.length>0&&(t.at(-1)?.level??0)>=r;)t.pop();let o=t.at(-1);o?o.node.children.push(s):e.push(s),t.push({level:r,node:s})}return e}function Uc(n){return n.localName==="und-heading"?At(Number(n.getAttribute("level")??2)):Number(n.localName.slice(1))}var nn=class extends p{static tagName="und-outline";static styles=Ca;static properties={label:{},heading:{},target:{},minLevel:{type:Number,attribute:"min-level"},maxLevel:{type:Number,attribute:"max-level"},current:{reflect:!0},density:{reflect:!0},items:{attribute:!1},targetElement:{attribute:!1}};#e=[];#t;#i;#r=new Set;#n=[];#s=!1;constructor(){super(),this.label="On this page",this.heading="",this.minLevel=2,this.maxLevel=3,this.current=""}get entries(){return this.items??this.#e}connectedCallback(){super.connectedCallback(),!!1&&this.#d()}disconnectedCallback(){super.disconnectedCallback(),this.#l()}willUpdate(e){(e.has("target")||e.has("targetElement")||e.has("minLevel")||e.has("maxLevel")||e.has("items"))&&this.#d()}updated(){this.#u()}#o(){if(this.targetElement)return this.targetElement;if(!this.target)return null;let e=this.getRootNode();try{return e.querySelector(this.target)??document.querySelector(this.target)}catch{return null}}#d(){if(this.items){this.#a(null);return}let e=this.#o();if(this.#a(e),!e){this.#e.length>0&&(this.#e=[],this.requestUpdate());return}let t=Math.max(1,Math.min(6,this.minLevel)),i=Math.max(t,Math.min(6,this.maxLevel)),r=[...Array.from({length:i-t+1},(h,f)=>`h${t+f}`),"und-heading"].join(","),s=new Set,o=[],l=this.getRootNode();for(let h of e.querySelectorAll(r)){let f=Uc(h);if(f<t||f>i)continue;let m=(h.textContent??"").trim();if(m){if(!h.id){let v=Pc(m)||E("und-outline");for(;s.has(v)||l.getElementById?.(v);)v=`${v}-${s.size+1}`;h.id=v}s.add(h.id),o.push({id:h.id,label:m,level:f})}}o.length===this.#e.length&&o.every((h,f)=>{let m=this.#e[f];return m?.id===h.id&&m.label===h.label&&m.level===h.level})||(this.#e=o,this.requestUpdate())}#a(e){this.#i?.disconnect(),this.#i=void 0,!(!e||typeof MutationObserver>"u")&&(this.#i=new MutationObserver(()=>{this.#s||(this.#s=!0,queueMicrotask(()=>{this.#s=!1,this.isConnected&&this.#d()}))}),this.#i.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["level"]}))}#l(){this.#t?.disconnect(),this.#t=void 0,this.#i?.disconnect(),this.#i=void 0,this.#n=[],this.#r.clear()}#c(e){return this.getRootNode().getElementById?.(e)??document.getElementById(e)}#u(){if(typeof IntersectionObserver>"u")return;let e=this.entries.map(t=>this.#c(t.id)).filter(t=>t!==null);if(!(e.length===this.#n.length&&e.every((t,i)=>t===this.#n[i]))){this.#t?.disconnect(),this.#r.clear(),this.#n=e,this.#t=new IntersectionObserver(this.#h,{rootMargin:"0px 0px -70% 0px"});for(let t of e)this.#t.observe(t)}}#h=e=>{for(let i of e){let r=i.target.id;i.isIntersecting?this.#r.add(r):this.#r.delete(r)}let t=this.entries.find(i=>this.#r.has(i.id));t&&this.#p(t.id)};#p(e){e!==this.current&&(this.current=e,this.emit("und-current-change",{id:e}))}#f(e,t){let i=t.href??`#${t.id}`;if(!i.startsWith("#")||e.defaultPrevented||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;let r=this.#c(t.id);if(!r)return;e.preventDefault();let s=globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1;r.scrollIntoView({behavior:s?"auto":"smooth",block:"start"}),r.hasAttribute("tabindex")||(r.tabIndex=-1),r.focus({preventScroll:!0});try{history.replaceState(history.state,"",i)}catch{}this.#p(t.id)}#m(e){return a`<ol part="list" class="list">
15018
- ${e.map(t=>{let i=t.item,r=M(i.href??`#${i.id}`);return a`<li>
15019
+ `;var Pc=n=>n.trim().toLocaleLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"");function Rc(n){let e=[],t=[];for(let i of n){let r=i.level??2,s={item:i,children:[]};for(;t.length>0&&(t.at(-1)?.level??0)>=r;)t.pop();let o=t.at(-1);o?o.node.children.push(s):e.push(s),t.push({level:r,node:s})}return e}function Uc(n){return n.localName==="und-heading"?At(Number(n.getAttribute("level")??2)):Number(n.localName.slice(1))}var nn=class extends p{static tagName="und-outline";static styles=Ca;static properties={label:{},heading:{},target:{},minLevel:{type:Number,attribute:"min-level"},maxLevel:{type:Number,attribute:"max-level"},current:{reflect:!0},density:{reflect:!0},items:{attribute:!1},targetElement:{attribute:!1}};#e=[];#t;#i;#r=new Set;#n=[];#s=!1;constructor(){super(),this.label="On this page",this.heading="",this.minLevel=2,this.maxLevel=3,this.current=""}get entries(){return this.items??this.#e}connectedCallback(){super.connectedCallback(),!!1&&this.#d()}disconnectedCallback(){super.disconnectedCallback(),this.#l()}willUpdate(e){(e.has("target")||e.has("targetElement")||e.has("minLevel")||e.has("maxLevel")||e.has("items"))&&this.#d()}updated(){this.#u()}#o(){if(this.targetElement)return this.targetElement;if(!this.target)return null;let e=this.getRootNode();try{return e.querySelector(this.target)??document.querySelector(this.target)}catch{return null}}#d(){if(this.items){this.#a(null);return}let e=this.#o();if(this.#a(e),!e){this.#e.length>0&&(this.#e=[],this.requestUpdate());return}let t=Math.max(1,Math.min(6,this.minLevel)),i=Math.max(t,Math.min(6,this.maxLevel)),r=[...Array.from({length:i-t+1},(h,f)=>`h${t+f}`),"und-heading"].join(","),s=new Set,o=[],a=this.getRootNode();for(let h of e.querySelectorAll(r)){let f=Uc(h);if(f<t||f>i)continue;let m=(h.textContent??"").trim();if(m){if(!h.id){let v=Pc(m)||E("und-outline");for(;s.has(v)||a.getElementById?.(v);)v=`${v}-${s.size+1}`;h.id=v}s.add(h.id),o.push({id:h.id,label:m,level:f})}}o.length===this.#e.length&&o.every((h,f)=>{let m=this.#e[f];return m?.id===h.id&&m.label===h.label&&m.level===h.level})||(this.#e=o,this.requestUpdate())}#a(e){this.#i?.disconnect(),this.#i=void 0,!(!e||typeof MutationObserver>"u")&&(this.#i=new MutationObserver(()=>{this.#s||(this.#s=!0,queueMicrotask(()=>{this.#s=!1,this.isConnected&&this.#d()}))}),this.#i.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["level"]}))}#l(){this.#t?.disconnect(),this.#t=void 0,this.#i?.disconnect(),this.#i=void 0,this.#n=[],this.#r.clear()}#c(e){return this.getRootNode().getElementById?.(e)??document.getElementById(e)}#u(){if(typeof IntersectionObserver>"u")return;let e=this.entries.map(t=>this.#c(t.id)).filter(t=>t!==null);if(!(e.length===this.#n.length&&e.every((t,i)=>t===this.#n[i]))){this.#t?.disconnect(),this.#r.clear(),this.#n=e,this.#t=new IntersectionObserver(this.#h,{rootMargin:"0px 0px -70% 0px"});for(let t of e)this.#t.observe(t)}}#h=e=>{for(let i of e){let r=i.target.id;i.isIntersecting?this.#r.add(r):this.#r.delete(r)}let t=this.entries.find(i=>this.#r.has(i.id));t&&this.#p(t.id)};#p(e){e!==this.current&&(this.current=e,this.emit("und-current-change",{id:e}))}#f(e,t){let i=t.href??`#${t.id}`;if(!i.startsWith("#")||e.defaultPrevented||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;let r=this.#c(t.id);if(!r)return;e.preventDefault();let s=globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1;r.scrollIntoView({behavior:s?"auto":"smooth",block:"start"}),r.hasAttribute("tabindex")||(r.tabIndex=-1),r.focus({preventScroll:!0});try{history.replaceState(history.state,"",i)}catch{}this.#p(t.id)}#m(e){return l`<ol part="list" class="list">
15020
+ ${e.map(t=>{let i=t.item,r=M(i.href??`#${i.id}`);return l`<li>
15019
15021
  <a
15020
15022
  part="link"
15021
15023
  class="link"
@@ -15026,8 +15028,8 @@ ${he(".text")}}
15026
15028
  >
15027
15029
  ${t.children.length>0?this.#m(t.children):c}
15028
15030
  </li>`})}
15029
- </ol>`}render(){let e=Rc(this.entries);return a`<nav part="nav" aria-label=${this.label}>
15030
- ${this.heading?a`<p part="title" class="title">${this.heading}</p>`:c}
15031
+ </ol>`}render(){let e=Rc(this.entries);return l`<nav part="nav" aria-label=${this.label}>
15032
+ ${this.heading?l`<p part="title" class="title">${this.heading}</p>`:c}
15031
15033
  ${e.length>0?this.#m(e):c}
15032
15034
  </nav>`}};nn.define();var La=u` @layer und.components{:host{display:flex;gap:var(--und-overflow-list-gap,0.5rem);align-items:center;min-inline-size:0}:host([hidden]){display:none}.list{display:flex;flex:1 1 auto;gap:var(--und-overflow-list-gap,0.5rem);align-items:center;min-inline-size:0;overflow:hidden}::slotted(*){flex:none}.more{position:relative;flex:none}.more[hidden]{display:none}.trigger{box-sizing:border-box;display:inline-flex;gap:0.25em;align-items:center;min-block-size:var(--und-target-min,24px);min-inline-size:var(--und-target-min,24px);padding-block:0;padding-inline:var(--und-overflow-list-trigger-padding-inline,0.75rem);border:0;border-radius:var(--und-overflow-list-trigger-radius,var(--und-radius-element,0.5rem));background:transparent;color:var(--und-fg-default,#1a1d21);font:inherit;line-height:1.5;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}.trigger:hover,.trigger[aria-expanded='true']{background:var(--und-overflow-list-hover-bg,var(--und-bg-hover,rgb(0 0 0 / 6%)))}.trigger:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-ring-offset,2px)}.panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inset-inline-end:0;z-index:var(--und-z-dropdown,10);display:flex;flex-direction:column;gap:var(--und-space-0-5,0.125rem);align-items:stretch;min-inline-size:var(--und-overflow-list-panel-min-width,10rem);max-inline-size:calc(100vw - 1rem);margin-block-start:0.25rem;padding:var(--und-overflow-list-panel-padding,var(--und-space-1,0.25rem));border:var(--und-overflow-list-panel-border-width,0) solid var(--und-border-subtle,#d9dbe3);border-radius:var(--und-overflow-list-panel-radius,var(--und-radius-container,0.75rem));background:var(--und-bg-raised,#fff);color:var(--und-fg-default,#1a1d21);box-shadow:var( --und-overflow-list-panel-shadow,var(--und-shadow-1,0 1px 1px #0000001a,0 2px 8px #0000001a) )}.panel[hidden]{display:none}@media (pointer:coarse){.trigger{min-block-size:var(--und-target-min-coarse,44px);min-inline-size:var(--und-target-min-coarse,44px)}}@media (forced-colors:active){.trigger,.panel{border-color:CanvasText}.trigger:focus-visible{outline-color:Highlight}}}
15033
15035
 
@@ -15140,7 +15142,7 @@ ${he(".text")}}
15140
15142
 
15141
15143
 
15142
15144
 
15143
- `;var sn="overflow",on=class extends p{static tagName="und-overflow-list";static styles=La;static properties={moreLabel:{attribute:"more-label"},open:{type:Boolean,reflect:!0}};#e=0;get count(){return this.#e}#t=new ke(this,"und-overflow-list");#i=new y(this);#r=[];#n;#s=!1;#o=0;#d=new P(this,{onDismiss:e=>this.#u(e==="escape")});constructor(){super(),this.moreLabel="more",this.open=!1}get items(){return[...this.children].filter(e=>e instanceof HTMLElement&&(!e.slot||e.slot===sn))}connectedCallback(){super.connectedCallback(),!!1&&(this.addEventListener("focusout",this.#h),this.#n=new ResizeObserver(()=>this.#a()),this.#n.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.#h),this.#n?.disconnect(),this.#n=void 0,cancelAnimationFrame(this.#o),this.#d.deactivate()}firstUpdated(){this.#a()}updated(e){e.has("open")&&(this.open?this.#d.activate():this.#d.deactivate()),e.has("moreLabel")&&this.#a()}#a(){this.#s||(cancelAnimationFrame(this.#o),this.#o=requestAnimationFrame(()=>this.recompute()))}recompute(){let e=this.renderRoot.querySelector(".list"),t=this.renderRoot.querySelector(".more");if(!(!e||!t||!1)){this.#s=!0;try{let i=this.items;this.#r=i;for(let m of i)this.#l(m,!1);t.hidden=!1;let r=parseFloat(getComputedStyle(e).columnGap)||0,s=t.getBoundingClientRect().width,o=i.map(m=>m.getBoundingClientRect().width),l=this.getBoundingClientRect().width,d=o.reduce((m,v)=>m+v,0)+r*Math.max(0,i.length-1),h=i.length;if(d>l+.5){let m=s+r;h=0;for(let v of o){let x=m+v+(h>0?r:0);if(x>l+.5)break;m=x,h+=1}}i.forEach((m,v)=>this.#l(m,v>=h));let f=i.length-h;t.hidden=f===0,f===0&&this.open&&(this.open=!1),f!==this.#e&&(this.#e=f,this.requestUpdate(),this.emit("und-overflow-change",{count:f}))}finally{this.#s=!1}}}#l(e,t){t?e.slot=sn:e.slot===sn&&e.removeAttribute("slot")}#c=()=>{let e=this.items;e.length===this.#r.length&&e.every((t,i)=>t===this.#r[i])||this.#a()};#u(e){this.open&&(e&&S(this,T())&&this.renderRoot.querySelector(".trigger")?.focus(),this.open=!1)}#h=e=>{if(!this.open)return;let t=e.relatedTarget;!(t instanceof Node)||S(this,t)||(this.open=!1)};#p(){let e=this.#i.lang||void 0;try{return new Intl.NumberFormat(e).format(this.#e)}catch{return String(this.#e)}}render(){let e=this.#t.part("panel");return a`<div part="list" class="list"><slot @slotchange=${this.#c}></slot></div>
15145
+ `;var sn="overflow",on=class extends p{static tagName="und-overflow-list";static styles=La;static properties={moreLabel:{attribute:"more-label"},open:{type:Boolean,reflect:!0}};#e=0;get count(){return this.#e}#t=new ke(this,"und-overflow-list");#i=new y(this);#r=[];#n;#s=!1;#o=0;#d=new P(this,{onDismiss:e=>this.#u(e==="escape")});constructor(){super(),this.moreLabel="more",this.open=!1}get items(){return[...this.children].filter(e=>e instanceof HTMLElement&&(!e.slot||e.slot===sn))}connectedCallback(){super.connectedCallback(),!!1&&(this.addEventListener("focusout",this.#h),this.#n=new ResizeObserver(()=>this.#a()),this.#n.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.#h),this.#n?.disconnect(),this.#n=void 0,cancelAnimationFrame(this.#o),this.#d.deactivate()}firstUpdated(){this.#a()}updated(e){e.has("open")&&(this.open?this.#d.activate():this.#d.deactivate()),e.has("moreLabel")&&this.#a()}#a(){this.#s||(cancelAnimationFrame(this.#o),this.#o=requestAnimationFrame(()=>this.recompute()))}recompute(){let e=this.renderRoot.querySelector(".list"),t=this.renderRoot.querySelector(".more");if(!(!e||!t||!1)){this.#s=!0;try{let i=this.items;this.#r=i;for(let m of i)this.#l(m,!1);t.hidden=!1;let r=parseFloat(getComputedStyle(e).columnGap)||0,s=t.getBoundingClientRect().width,o=i.map(m=>m.getBoundingClientRect().width),a=this.getBoundingClientRect().width,d=o.reduce((m,v)=>m+v,0)+r*Math.max(0,i.length-1),h=i.length;if(d>a+.5){let m=s+r;h=0;for(let v of o){let x=m+v+(h>0?r:0);if(x>a+.5)break;m=x,h+=1}}i.forEach((m,v)=>this.#l(m,v>=h));let f=i.length-h;t.hidden=f===0,f===0&&this.open&&(this.open=!1),f!==this.#e&&(this.#e=f,this.requestUpdate(),this.emit("und-overflow-change",{count:f}))}finally{this.#s=!1}}}#l(e,t){t?e.slot=sn:e.slot===sn&&e.removeAttribute("slot")}#c=()=>{let e=this.items;e.length===this.#r.length&&e.every((t,i)=>t===this.#r[i])||this.#a()};#u(e){this.open&&(e&&S(this,T())&&this.renderRoot.querySelector(".trigger")?.focus(),this.open=!1)}#h=e=>{if(!this.open)return;let t=e.relatedTarget;!(t instanceof Node)||S(this,t)||(this.open=!1)};#p(){let e=this.#i.lang||void 0;try{return new Intl.NumberFormat(e).format(this.#e)}catch{return String(this.#e)}}render(){let e=this.#t.part("panel");return l`<div part="list" class="list"><slot @slotchange=${this.#c}></slot></div>
15144
15146
  <div class="more" ?hidden=${this.#e===0}>
15145
15147
  <button
15146
15148
  part="trigger"
@@ -15579,7 +15581,7 @@ ${he(".text")}}
15579
15581
 
15580
15582
 
15581
15583
 
15582
- `;var Na=n=>a`<svg
15584
+ `;var Na=n=>l`<svg
15583
15585
  viewBox="0 0 16 16"
15584
15586
  fill="none"
15585
15587
  stroke="currentColor"
@@ -15590,13 +15592,13 @@ ${he(".text")}}
15590
15592
  focusable="false"
15591
15593
  >
15592
15594
  <path d=${n} />
15593
- </svg>`;function Da(n,e){let t=n.querySelector(':scope > [slot="icon"]')!==null;return a`<span class="icon" part="icon" ?hidden=${!t}
15595
+ </svg>`;function Da(n,e){let t=n.querySelector(':scope > [slot="icon"]')!==null;return l`<span class="icon" part="icon" ?hidden=${!t}
15594
15596
  ><slot name="icon" @slotchange=${e}></slot
15595
- ></span>`}var qc="und-side-nav-item, und-side-nav-section, und-side-nav-heading";function Oc(n){if(!1)return"";let e="";for(let t of n.childNodes)t.nodeType!==Node.COMMENT_NODE&&(t instanceof Element&&t.hasAttribute("slot")||(e+=t.textContent??""));return e.replace(/\s+/g," ").trim()}var an=class extends p{static tagName="und-side-nav";static styles=Ea;static properties={label:{},collapsed:{type:Boolean,reflect:!0},collapsible:{type:Boolean,reflect:!0},collapseLabel:{attribute:"collapse-label"},expandLabel:{attribute:"expand-label"}};constructor(){super(),this.label="Main",this.collapsed=!1,this.collapsible=!1,this.collapseLabel="Collapse sidebar",this.expandLabel="Expand sidebar"}toggleCollapsed(){this.collapsed=!this.collapsed,this.emit("und-collapse-change",{collapsed:this.collapsed})}#e=()=>{for(let e of this.querySelectorAll(qc))e.rail=this.collapsed};updated(e){e.has("collapsed")&&(this.setCustomState("collapsed",this.collapsed),this.#e())}render(){let e=this.collapsed?this.expandLabel:this.collapseLabel;return a`<nav part="nav" class="nav" aria-label=${this.label}>
15597
+ ></span>`}var qc="und-side-nav-item, und-side-nav-section, und-side-nav-heading";function Oc(n){if(!1)return"";let e="";for(let t of n.childNodes)t.nodeType!==Node.COMMENT_NODE&&(t instanceof Element&&t.hasAttribute("slot")||(e+=t.textContent??""));return e.replace(/\s+/g," ").trim()}var an=class extends p{static tagName="und-side-nav";static styles=Ea;static properties={label:{},collapsed:{type:Boolean,reflect:!0},collapsible:{type:Boolean,reflect:!0},collapseLabel:{attribute:"collapse-label"},expandLabel:{attribute:"expand-label"}};constructor(){super(),this.label="Main",this.collapsed=!1,this.collapsible=!1,this.collapseLabel="Collapse sidebar",this.expandLabel="Expand sidebar"}toggleCollapsed(){this.collapsed=!this.collapsed,this.emit("und-collapse-change",{collapsed:this.collapsed})}#e=()=>{for(let e of this.querySelectorAll(qc))e.rail=this.collapsed};updated(e){e.has("collapsed")&&(this.setCustomState("collapsed",this.collapsed),this.#e())}render(){let e=this.collapsed?this.expandLabel:this.collapseLabel;return l`<nav part="nav" class="nav" aria-label=${this.label}>
15596
15598
  <div part="list" class="list" role="list" tabindex="-1">
15597
15599
  <slot @slotchange=${this.#e}></slot>
15598
15600
  </div>
15599
- ${this.collapsible?a`<button
15601
+ ${this.collapsible?l`<button
15600
15602
  part="toggle"
15601
15603
  class="toggle"
15602
15604
  type="button"
@@ -15606,11 +15608,11 @@ ${he(".text")}}
15606
15608
  >
15607
15609
  ${Na("M10 3.5 5.5 8l4.5 4.5")}
15608
15610
  </button>`:c}
15609
- </nav>`}},ln=class extends p{static tagName="und-side-nav-item";static styles=Aa;static properties={href:{reflect:!0},current:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},label:{},target:{},rail:{type:Boolean,reflect:!0}};constructor(){super(),this.current=!1,this.disabled=!1,this.rail=!1,this.addEventListener("keydown",this.#t),this.addEventListener("focusout",this.#e),this.addEventListener("pointerleave",this.#e)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}#e=()=>{this.removeAttribute("data-tip-dismissed")};#t=e=>{e.key==="Escape"&&this.rail&&this.setAttribute("data-tip-dismissed","")};#i(){return{rel:this.target&&!["_self","_parent","_top"].includes(this.target.toLowerCase())?"noopener noreferrer":void 0}}render(){let e=this.label||Oc(this),t=a`${Da(this,()=>this.requestUpdate())}<span
15611
+ </nav>`}},ln=class extends p{static tagName="und-side-nav-item";static styles=Aa;static properties={href:{reflect:!0},current:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},label:{},target:{},rail:{type:Boolean,reflect:!0}};constructor(){super(),this.current=!1,this.disabled=!1,this.rail=!1,this.addEventListener("keydown",this.#t),this.addEventListener("focusout",this.#e),this.addEventListener("pointerleave",this.#e)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}#e=()=>{this.removeAttribute("data-tip-dismissed")};#t=e=>{e.key==="Escape"&&this.rail&&this.setAttribute("data-tip-dismissed","")};#i(){return{rel:this.target&&!["_self","_parent","_top"].includes(this.target.toLowerCase())?"noopener noreferrer":void 0}}render(){let e=this.label||Oc(this),t=l`${Da(this,()=>this.requestUpdate())}<span
15610
15612
  class="label"
15611
15613
  part="label"
15612
15614
  ><slot @slotchange=${()=>this.requestUpdate()}></slot></span
15613
- ><span class="end"><slot name="end"></slot></span>`,i=this.rail?a`<span part="tip" class="tip" aria-hidden="true">${e}</span>`:c,r=this.disabled?void 0:M(this.href),s=this.label||c,o=this.current?"page":c;return this.href!==void 0&&!r&&!this.disabled?a`<span class="link" part="link" aria-disabled="true">${t}</span>${i}`:this.href!==void 0?a`<a
15615
+ ><span class="end"><slot name="end"></slot></span>`,i=this.rail?l`<span part="tip" class="tip" aria-hidden="true">${e}</span>`:c,r=this.disabled?void 0:M(this.href),s=this.label||c,o=this.current?"page":c;return this.href!==void 0&&!r&&!this.disabled?l`<span class="link" part="link" aria-disabled="true">${t}</span>${i}`:this.href!==void 0?l`<a
15614
15616
  class="link"
15615
15617
  part="link"
15616
15618
  href=${r??c}
@@ -15621,7 +15623,7 @@ ${he(".text")}}
15621
15623
  target=${this.target||c}
15622
15624
  rel=${this.#i().rel??c}
15623
15625
  >${t}</a
15624
- >${i}`:a`<button
15626
+ >${i}`:l`<button
15625
15627
  class="link"
15626
15628
  part="link"
15627
15629
  type="button"
@@ -15630,7 +15632,7 @@ ${he(".text")}}
15630
15632
  aria-label=${s}
15631
15633
  >
15632
15634
  ${t}</button
15633
- >${i}`}},dn=class extends p{static tagName="und-side-nav-section";static styles=Ta;static properties={label:{},expanded:{type:Boolean,reflect:!0},rail:{type:Boolean,reflect:!0}};#e=E("und-side-nav-panel");#t=!1;constructor(){super(),this.label="",this.expanded=!1,this.rail=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}#i=()=>{if(this.#t=!0,this.rail){let e=this.closest("und-side-nav");e?.collapsed&&e.toggleCollapsed(),this.expanded=!0}else this.expanded=!this.expanded;this.emit("und-toggle",{expanded:this.expanded})};#r=()=>{!this.#t&&this.querySelector("und-side-nav-item[current]")&&(this.expanded=!0)};render(){let e=this.expanded&&!this.rail;return a`<button
15635
+ >${i}`}},dn=class extends p{static tagName="und-side-nav-section";static styles=Ta;static properties={label:{},expanded:{type:Boolean,reflect:!0},rail:{type:Boolean,reflect:!0}};#e=E("und-side-nav-panel");#t=!1;constructor(){super(),this.label="",this.expanded=!1,this.rail=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}#i=()=>{if(this.#t=!0,this.rail){let e=this.closest("und-side-nav");e?.collapsed&&e.toggleCollapsed(),this.expanded=!0}else this.expanded=!this.expanded;this.emit("und-toggle",{expanded:this.expanded})};#r=()=>{!this.#t&&this.querySelector("und-side-nav-item[current]")&&(this.expanded=!0)};render(){let e=this.expanded&&!this.rail;return l`<button
15634
15636
  class="toggle"
15635
15637
  part="toggle"
15636
15638
  type="button"
@@ -15645,7 +15647,7 @@ ${he(".text")}}
15645
15647
  </button>
15646
15648
  <div class="panel" part="panel" id=${this.#e} role="list" ?hidden=${!e}>
15647
15649
  <slot @slotchange=${this.#r}></slot>
15648
- </div>`}},cn=class extends p{static tagName="und-side-nav-heading";static styles=Ma;static properties={rail:{type:Boolean,reflect:!0}};constructor(){super(),this.rail=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}render(){return a`<slot></slot>`}};cn.define();ln.define();dn.define();an.define();var Ia=u` @layer und.components{:host{display:block}:host([hidden]){display:none}.list{display:flex;gap:var(--und-tab-menu-gap,0.25rem);border-block-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d4d6dd);overflow-x:auto}:host([orientation='vertical']) .list{flex-direction:column;border-block-end:0;border-inline-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d4d6dd);overflow:visible}::slotted(a){--_indicator:transparent;box-sizing:border-box;display:inline-flex;flex:none;gap:0.5em;align-items:center;justify-content:center;min-block-size:var(--und-tab-menu-height,var(--und-size-element-lg,2.25rem));min-inline-size:var(--und-target-min,24px);margin-block-end:calc(-1 * var(--und-border-width,1px));padding-block:0;padding-inline:var(--und-tab-menu-padding-inline,var(--und-space-3,0.75rem));border-block-end:0;border-radius:var(--und-tab-menu-radius,var(--und-radius-element,0.5rem));background-color:transparent;background-image:linear-gradient(var(--_indicator),var(--_indicator));background-repeat:no-repeat;background-position:center bottom;background-size:calc( 100% - 2 * var(--und-tab-menu-padding-inline,var(--und-space-3,0.75rem)) ) var(--und-tab-menu-indicator-width,2px);color:var(--und-fg-muted,#5b616e);font-size:var(--und-text-body-sm-size,0.875rem);font-weight:var(--und-tab-menu-font-weight,400);line-height:1.5;text-decoration:none;white-space:nowrap;-webkit-tap-highlight-color:transparent;transition:color var(--und-duration-fast,120ms) ease,background-color var(--und-duration-fast,120ms) ease}:host([orientation='vertical']) ::slotted(a){justify-content:flex-start;margin-block-end:0;margin-inline-end:calc(-1 * var(--und-border-width,1px));background-position:right center;background-size:var(--und-tab-menu-indicator-width,2px) calc(100% - 1rem)}:host([orientation='vertical']) ::slotted(a:dir(rtl)){background-position:left center}::slotted(a:hover){background-color:var(--und-tab-menu-hover-bg,var(--und-bg-hover,rgb(0 0 0 / 6%)));color:var(--und-fg-default,#1b1d22)}::slotted(a:active){background-color:var(--und-tab-menu-pressed-bg,var(--und-bg-pressed,rgb(0 0 0 / 10%)))}::slotted(a[aria-current]:not([aria-current='false'])){--_indicator:var(--und-tab-menu-indicator-color,var(--und-accent-solid,#504bf2));color:var(--und-fg-default,#1b1d22);font-weight:var(--und-tab-menu-selected-font-weight,600)}::slotted(a:focus-visible){outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:calc(-1 * var(--und-focus-ring-width,2px))}::slotted(a[aria-disabled='true']){cursor:not-allowed;opacity:var(--und-disabled-opacity,0.55)}@media (pointer:coarse){::slotted(a){min-block-size:max( var(--und-tab-menu-height,var(--und-size-element-lg,2.25rem)),var(--und-target-min-coarse,44px) )}}@media (prefers-reduced-motion:reduce){::slotted(a){transition:none}}@media (forced-colors:active){::slotted(a){--_indicator:Canvas;color:LinkText}::slotted(a[aria-current]:not([aria-current='false'])){--_indicator:Highlight;border-block-end:calc(var(--und-tab-menu-indicator-width,2px) * 2) solid Highlight}:host([orientation='vertical']) ::slotted(a[aria-current]:not([aria-current='false'])){border-block-end:0;border-inline-end:calc(var(--und-tab-menu-indicator-width,2px) * 2) solid Highlight}::slotted(a:focus-visible){outline-color:Highlight}::slotted(a[aria-disabled='true']){color:GrayText;opacity:1}}}
15650
+ </div>`}},cn=class extends p{static tagName="und-side-nav-heading";static styles=Ma;static properties={rail:{type:Boolean,reflect:!0}};constructor(){super(),this.rail=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}render(){return l`<slot></slot>`}};cn.define();ln.define();dn.define();an.define();var Ia=u` @layer und.components{:host{display:block}:host([hidden]){display:none}.list{display:flex;gap:var(--und-tab-menu-gap,0.25rem);border-block-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d4d6dd);overflow-x:auto}:host([orientation='vertical']) .list{flex-direction:column;border-block-end:0;border-inline-end:var(--und-border-width,1px) solid var(--und-border-subtle,#d4d6dd);overflow:visible}::slotted(a){--_indicator:transparent;box-sizing:border-box;display:inline-flex;flex:none;gap:0.5em;align-items:center;justify-content:center;min-block-size:var(--und-tab-menu-height,var(--und-size-element-lg,2.25rem));min-inline-size:var(--und-target-min,24px);margin-block-end:calc(-1 * var(--und-border-width,1px));padding-block:0;padding-inline:var(--und-tab-menu-padding-inline,var(--und-space-3,0.75rem));border-block-end:0;border-radius:var(--und-tab-menu-radius,var(--und-radius-element,0.5rem));background-color:transparent;background-image:linear-gradient(var(--_indicator),var(--_indicator));background-repeat:no-repeat;background-position:center bottom;background-size:calc( 100% - 2 * var(--und-tab-menu-padding-inline,var(--und-space-3,0.75rem)) ) var(--und-tab-menu-indicator-width,2px);color:var(--und-fg-muted,#5b616e);font-size:var(--und-text-body-sm-size,0.875rem);font-weight:var(--und-tab-menu-font-weight,400);line-height:1.5;text-decoration:none;white-space:nowrap;-webkit-tap-highlight-color:transparent;transition:color var(--und-duration-fast,120ms) ease,background-color var(--und-duration-fast,120ms) ease}:host([orientation='vertical']) ::slotted(a){justify-content:flex-start;margin-block-end:0;margin-inline-end:calc(-1 * var(--und-border-width,1px));background-position:right center;background-size:var(--und-tab-menu-indicator-width,2px) calc(100% - 1rem)}:host([orientation='vertical']) ::slotted(a:dir(rtl)){background-position:left center}::slotted(a:hover){background-color:var(--und-tab-menu-hover-bg,var(--und-bg-hover,rgb(0 0 0 / 6%)));color:var(--und-fg-default,#1b1d22)}::slotted(a:active){background-color:var(--und-tab-menu-pressed-bg,var(--und-bg-pressed,rgb(0 0 0 / 10%)))}::slotted(a[aria-current]:not([aria-current='false'])){--_indicator:var(--und-tab-menu-indicator-color,var(--und-accent-solid,#504bf2));color:var(--und-fg-default,#1b1d22);font-weight:var(--und-tab-menu-selected-font-weight,600)}::slotted(a:focus-visible){outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:calc(-1 * var(--und-focus-ring-width,2px))}::slotted(a[aria-disabled='true']){cursor:not-allowed;opacity:var(--und-disabled-opacity,0.55)}@media (pointer:coarse){::slotted(a){min-block-size:max( var(--und-tab-menu-height,var(--und-size-element-lg,2.25rem)),var(--und-target-min-coarse,44px) )}}@media (prefers-reduced-motion:reduce){::slotted(a){transition:none}}@media (forced-colors:active){::slotted(a){--_indicator:Canvas;color:LinkText}::slotted(a[aria-current]:not([aria-current='false'])){--_indicator:Highlight;border-block-end:calc(var(--und-tab-menu-indicator-width,2px) * 2) solid Highlight}:host([orientation='vertical']) ::slotted(a[aria-current]:not([aria-current='false'])){border-block-end:0;border-inline-end:calc(var(--und-tab-menu-indicator-width,2px) * 2) solid Highlight}::slotted(a:focus-visible){outline-color:Highlight}::slotted(a[aria-disabled='true']){color:GrayText;opacity:1}}}
15649
15651
 
15650
15652
 
15651
15653
 
@@ -15786,7 +15788,7 @@ ${he(".text")}}
15786
15788
 
15787
15789
 
15788
15790
 
15789
- `;var un=class extends p{static tagName="und-tab-menu";static styles=Ia;static properties={label:{},orientation:{reflect:!0}};constructor(){super(),this.label="Page sections",this.orientation="horizontal"}render(){return a`<nav part="nav" aria-label=${this.label}>
15791
+ `;var un=class extends p{static tagName="und-tab-menu";static styles=Ia;static properties={label:{},orientation:{reflect:!0}};constructor(){super(),this.label="Page sections",this.orientation="horizontal"}render(){return l`<nav part="nav" aria-label=${this.label}>
15790
15792
  <div part="list" class="list" tabindex="-1"><slot></slot></div>
15791
15793
  </nav>`}};un.define();var Ba=u` @layer und.components{:host{display:block;position:relative}:host([hidden]){display:none}:host::before{content:'';position:absolute;inset:0;border-radius:inherit;background:var( --und-top-nav-bg,color-mix(in srgb,var(--und-bg-surface,#fff) 80%,transparent) );backdrop-filter:blur(12px);pointer-events:none}.list{position:relative;display:flex;flex-wrap:wrap;gap:var(--und-top-nav-gap,0.25rem);align-items:center;margin:0;padding:0;list-style:none}}
15792
15794
 
@@ -16059,7 +16061,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16059
16061
 
16060
16062
 
16061
16063
 
16062
- `;var Hc=()=>a`<svg
16064
+ `;var Hc=()=>l`<svg
16063
16065
  class="chevron"
16064
16066
  viewBox="0 0 16 16"
16065
16067
  fill="none"
@@ -16071,17 +16073,17 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16071
16073
  aria-hidden="true"
16072
16074
  >
16073
16075
  <path d="m3.5 6 4.5 4.5L12.5 6" />
16074
- </svg>`,hn=class extends p{static tagName="und-top-nav";static styles=Ba;static properties={label:{}};constructor(){super(),this.label="Main",this.addEventListener("und-open-change",this.#e)}#e=e=>{let t=e.target;if(!(!(t instanceof Kt)||!t.open))for(let i of this.querySelectorAll(":scope > und-top-nav-menu"))i!==t&&(i.open=!1)};render(){return a`<nav part="nav" aria-label=${this.label}>
16076
+ </svg>`,hn=class extends p{static tagName="und-top-nav";static styles=Ba;static properties={label:{}};constructor(){super(),this.label="Main",this.addEventListener("und-open-change",this.#e)}#e=e=>{let t=e.target;if(!(!(t instanceof Kt)||!t.open))for(let i of this.querySelectorAll(":scope > und-top-nav-menu"))i!==t&&(i.open=!1)};render(){return l`<nav part="nav" aria-label=${this.label}>
16075
16077
  <ul part="list" class="list">
16076
16078
  <slot></slot>
16077
16079
  </ul>
16078
- </nav>`}},pn=class extends p{static tagName="und-top-nav-item";static styles=Ua;static properties={href:{reflect:!0},current:{type:Boolean,reflect:!0}};constructor(){super(),this.current=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}render(){return a`<a
16080
+ </nav>`}},pn=class extends p{static tagName="und-top-nav-item";static styles=Ua;static properties={href:{reflect:!0},current:{type:Boolean,reflect:!0}};constructor(){super(),this.current=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}render(){return l`<a
16079
16081
  part="link"
16080
16082
  class="control"
16081
16083
  href=${M(this.href)??c}
16082
16084
  aria-current=${this.current?"page":c}
16083
16085
  ><slot></slot
16084
- ></a>`}},Kt=class extends p{static tagName="und-top-nav-menu";static styles=qa;static properties={open:{type:Boolean,reflect:!0},label:{},variant:{reflect:!0}};#e=new ke(this,"und-top-nav-menu");#t=!1;#i=new P(this,{onDismiss:e=>this.#n(e==="escape")});constructor(){super(),this.open=!1,this.variant="dropdown"}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem"),!!1&&this.addEventListener("focusout",this.#s)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.#s),this.#i.deactivate()}updated(e){e.has("open")&&(this.setCustomState("open",this.open),this.open?this.#i.activate():this.#i.deactivate())}#r(e){e!==this.open&&(this.open=e,this.emit("und-open-change",{open:e}))}#n(e){this.open&&(e&&S(this,T())&&this.renderRoot.querySelector(".control")?.focus(),this.#r(!1))}#s=e=>{if(!this.open)return;let t=e.relatedTarget;!(t instanceof Node)||S(this,t)||this.#r(!1)};#o=e=>{let i=e.target.assignedNodes({flatten:!0}).some(r=>r.nodeType===1);i!==this.#t&&(this.#t=i,this.requestUpdate())};render(){let e=this.#e.part("panel"),t=this.variant==="mega"&&this.#t;return a`<button
16086
+ ></a>`}},Kt=class extends p{static tagName="und-top-nav-menu";static styles=qa;static properties={open:{type:Boolean,reflect:!0},label:{},variant:{reflect:!0}};#e=new ke(this,"und-top-nav-menu");#t=!1;#i=new P(this,{onDismiss:e=>this.#n(e==="escape")});constructor(){super(),this.open=!1,this.variant="dropdown"}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem"),!!1&&this.addEventListener("focusout",this.#s)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.#s),this.#i.deactivate()}updated(e){e.has("open")&&(this.setCustomState("open",this.open),this.open?this.#i.activate():this.#i.deactivate())}#r(e){e!==this.open&&(this.open=e,this.emit("und-open-change",{open:e}))}#n(e){this.open&&(e&&S(this,T())&&this.renderRoot.querySelector(".control")?.focus(),this.#r(!1))}#s=e=>{if(!this.open)return;let t=e.relatedTarget;!(t instanceof Node)||S(this,t)||this.#r(!1)};#o=e=>{let i=e.target.assignedNodes({flatten:!0}).some(r=>r.nodeType===1);i!==this.#t&&(this.#t=i,this.requestUpdate())};render(){let e=this.#e.part("panel"),t=this.variant==="mega"&&this.#t;return l`<button
16085
16087
  part="button"
16086
16088
  class="control"
16087
16089
  type="button"
@@ -16297,7 +16299,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16297
16299
 
16298
16300
 
16299
16301
 
16300
- `;var Fc=a`<svg
16302
+ `;var Fc=l`<svg
16301
16303
  viewBox="0 0 16 16"
16302
16304
  fill="none"
16303
16305
  stroke="currentColor"
@@ -16307,14 +16309,14 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16307
16309
  focusable="false"
16308
16310
  >
16309
16311
  <path d="m6 3.5 4.5 4.5L6 12.5" />
16310
- </svg>`,ee=class n extends p{static tagName="und-tree-item";static styles=Ha;static properties={value:{reflect:!0},expanded:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},lazy:{type:Boolean,reflect:!0},loading:{type:Boolean,reflect:!0}};#e=!1;#t=!1;#i=null;constructor(){super(),this.value="",this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1,this.loading=!1}get tree(){let e=this.closest("und-tree-list");return e&&typeof e.requestSync=="function"?e:null}get childItems(){return[...this.children].filter(e=>e instanceof n)}get expandable(){return this.lazy||this.childItems.length>0}get labelText(){let e="";for(let t of this.childNodes)(t.nodeType===Node.TEXT_NODE||t instanceof Element&&!t.hasAttribute("slot"))&&(e+=t.textContent??"");return e.replace(/\s+/g," ").trim()}get itemValue(){return this.value||this.labelText}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","treeitem"),this.parentElement instanceof n&&!this.slot&&(this.slot="children"),this.#i=this.tree,this.#i?.requestSync?.(),!this.#i&&this.closest("und-tree-list")&&customElements.whenDefined("und-tree-list").then(()=>{this.isConnected&&(this.#i=this.tree,this.#i?.requestSync?.())})}disconnectedCallback(){super.disconnectedCallback(),this.#i?.requestSync?.(),this.#i=null}setExpanded(e){this.disabled||!this.expandable||this.expanded===e||(this.expanded=e,this.emit("und-expand-change",{expanded:e,value:this.itemValue}))}announceActivate(){this.emit("und-activate",{value:this.itemValue})}willUpdate(e){e.has("expanded")&&(this.expanded?this.lazy&&!this.#e&&this.childItems.length===0&&(this.#e=!0,this.loading=!0,this.#t=!0):this.#e=!1),this.loading&&this.childItems.length>0&&(this.loading=!1)}updated(e){if(this.expandable?this.setAttribute("aria-expanded",String(this.expanded)):this.removeAttribute("aria-expanded"),this.loading?this.setAttribute("aria-busy","true"):this.removeAttribute("aria-busy"),this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.setCustomState("expanded",this.expanded),this.setCustomState("selected",this.selected),this.setCustomState("loading",this.loading),e.has("expanded")&&!this.expanded){let i=T();i&&i!==this&&S(this,i)&&this.focus()}this.#t&&(this.#t=!1,this.emit("und-load-children",{value:this.itemValue})),(e.has("expanded")||e.has("selected")||e.has("disabled")||e.has("lazy"))&&this.tree?.requestSync()}#r=()=>{this.disabled||this.tree?.pointerActivate(this)};#n=e=>{e.stopPropagation(),!this.disabled&&(this.tree?.focusItem(this),this.setExpanded(!this.expanded))};#s=()=>{this.requestUpdate(),this.tree?.requestSync()};#o=()=>{this.requestUpdate()};render(){let e=this.childItems.length>0;return a`<div part="row" class="row" @click=${this.#r}>
16312
+ </svg>`,ee=class n extends p{static tagName="und-tree-item";static styles=Ha;static properties={value:{reflect:!0},expanded:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},lazy:{type:Boolean,reflect:!0},loading:{type:Boolean,reflect:!0}};#e=!1;#t=!1;#i=null;constructor(){super(),this.value="",this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1,this.loading=!1}get tree(){let e=this.closest("und-tree-list");return e&&typeof e.requestSync=="function"?e:null}get childItems(){return[...this.children].filter(e=>e instanceof n)}get expandable(){return this.lazy||this.childItems.length>0}get labelText(){let e="";for(let t of this.childNodes)(t.nodeType===Node.TEXT_NODE||t instanceof Element&&!t.hasAttribute("slot"))&&(e+=t.textContent??"");return e.replace(/\s+/g," ").trim()}get itemValue(){return this.value||this.labelText}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","treeitem"),this.parentElement instanceof n&&!this.slot&&(this.slot="children"),this.#i=this.tree,this.#i?.requestSync?.(),!this.#i&&this.closest("und-tree-list")&&customElements.whenDefined("und-tree-list").then(()=>{this.isConnected&&(this.#i=this.tree,this.#i?.requestSync?.())})}disconnectedCallback(){super.disconnectedCallback(),this.#i?.requestSync?.(),this.#i=null}setExpanded(e){this.disabled||!this.expandable||this.expanded===e||(this.expanded=e,this.emit("und-expand-change",{expanded:e,value:this.itemValue}))}announceActivate(){this.emit("und-activate",{value:this.itemValue})}willUpdate(e){e.has("expanded")&&(this.expanded?this.lazy&&!this.#e&&this.childItems.length===0&&(this.#e=!0,this.loading=!0,this.#t=!0):this.#e=!1),this.loading&&this.childItems.length>0&&(this.loading=!1)}updated(e){if(this.expandable?this.setAttribute("aria-expanded",String(this.expanded)):this.removeAttribute("aria-expanded"),this.loading?this.setAttribute("aria-busy","true"):this.removeAttribute("aria-busy"),this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.setCustomState("expanded",this.expanded),this.setCustomState("selected",this.selected),this.setCustomState("loading",this.loading),e.has("expanded")&&!this.expanded){let i=T();i&&i!==this&&S(this,i)&&this.focus()}this.#t&&(this.#t=!1,this.emit("und-load-children",{value:this.itemValue})),(e.has("expanded")||e.has("selected")||e.has("disabled")||e.has("lazy"))&&this.tree?.requestSync()}#r=()=>{this.disabled||this.tree?.pointerActivate(this)};#n=e=>{e.stopPropagation(),!this.disabled&&(this.tree?.focusItem(this),this.setExpanded(!this.expanded))};#s=()=>{this.requestUpdate(),this.tree?.requestSync()};#o=()=>{this.requestUpdate()};render(){let e=this.childItems.length>0;return l`<div part="row" class="row" @click=${this.#r}>
16311
16313
  <span
16312
16314
  part="toggle"
16313
16315
  class="toggle"
16314
16316
  aria-hidden="true"
16315
16317
  ?hidden=${!(this.lazy||e)}
16316
16318
  @click=${this.#n}
16317
- >${this.loading?a`<span class="spinner"></span>`:Fc}</span
16319
+ >${this.loading?l`<span class="spinner"></span>`:Fc}</span
16318
16320
  >
16319
16321
  <slot name="icon"></slot>
16320
16322
  <span part="label" class="label"><slot @slotchange=${this.#o}></slot></span>
@@ -16326,7 +16328,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16326
16328
  ?hidden=${!(this.expanded&&e)}
16327
16329
  >
16328
16330
  <slot name="children" @slotchange=${this.#s}></slot>
16329
- </div>`}},fn=class extends p{static tagName="und-tree-list";static styles=Oa;static properties={label:{},selection:{reflect:!0},density:{reflect:!0}};#e=new y(this);#t=null;#i=!1;#r=new se(this,{listen:!1,getItems:()=>this.#o(),getActiveIndex:()=>this.#o().findIndex(e=>e===this.#t),onMatch:(e,t)=>this.focusItem(t),getLabel:e=>e.labelText,getLocale:()=>this.#e.lang||void 0});constructor(){super(),this.selection="single",this.density="balanced"}get value(){return this.#n().filter(e=>e.selected).map(e=>e.itemValue)}set value(e){let t=new Set(e),i=!1;for(let r of this.#n()){let s=t.has(r.itemValue)&&(this.selection!=="single"||!i);s&&(i=!0),r.selected=s}this.requestSync()}connectedCallback(){super.connectedCallback(),!!1&&(this.setAttribute("role","tree"),this.addEventListener("keydown",this.#u),this.addEventListener("focusin",this.#c))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.#u),this.removeEventListener("focusin",this.#c)}requestSync(){this.#i||(this.#i=!0,this.requestUpdate())}updated(){this.#i=!1,!!1&&this.#d()}#n(){return[...this.querySelectorAll("und-tree-item")].filter(e=>e instanceof ee)}#s(e){if(e.hidden)return!1;for(let t=e.parentElement;t&&t!==this;t=t.parentElement)if(t instanceof ee&&(!t.expanded||t.hidden))return!1;return!0}#o(){return this.#n().filter(e=>this.#s(e)&&!e.disabled)}#d(){this.selection==="multiple"?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),this.label&&this.setAttribute("aria-label",this.label);let e=this.#n();if(this.selection==="single"){let t=!1;for(let i of e)i.selected&&(t&&(i.selected=!1),t=!0)}for(let t of e){let i=1,r=t.parentElement;for(;r&&r!==this;)r instanceof ee&&(i+=1),r=r.parentElement;let s=[...t.parentElement?.children??[]].filter(o=>o instanceof ee);t.setAttribute("aria-level",String(i)),t.setAttribute("aria-setsize",String(s.length)),t.setAttribute("aria-posinset",String(s.indexOf(t)+1)),t.style.setProperty("--_level",String(i)),this.selection==="none"?t.removeAttribute("aria-selected"):t.setAttribute("aria-selected",String(t.selected))}this.#a(e)}#a(e=this.#n()){let t=this.#o(),i=this.#t;if(i&&!t.includes(i)){let r=i.isConnected?i.parentElement:null;for(i=null;r&&r!==this;){if(r instanceof ee&&t.includes(r)){i=r;break}r=r.parentElement}}i??=t.find(r=>r.selected)??t[0]??null,this.#t=i;for(let r of e)r.disabled?r.removeAttribute("tabindex"):r.tabIndex=r===i?0:-1}focusItem(e){e.disabled||(this.#t=e,this.#a(),e.focus())}pointerActivate(e){this.focusItem(e),this.#l(e)}#l(e){if(!(this.selection==="none"||e.disabled)){if(this.selection==="single"){if(e.selected)return;for(let t of this.#n())t.selected=t===e}else e.selected=!e.selected;for(let t of this.#n())t.setAttribute("aria-selected",String(t.selected));this.emit("und-select",{value:this.value,item:e})}}#c=e=>{let t=e.composedPath().find(i=>i instanceof ee);t instanceof ee&&t!==this.#t&&!t.disabled&&(this.#t=t,this.#a())};#u=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.target;if(!(t instanceof ee)||t.disabled)return;let i=this.#o(),r=i.indexOf(t);if(r===-1)return;let s=this.#e.isRtl,o=s?"ArrowLeft":"ArrowRight",l=s?"ArrowRight":"ArrowLeft",d=h=>{h&&this.focusItem(h)};switch(e.key){case"ArrowDown":e.preventDefault(),d(i[r+1]);return;case"ArrowUp":e.preventDefault(),d(i[r-1]);return;case"Home":e.preventDefault(),d(i[0]);return;case"End":e.preventDefault(),d(i.at(-1));return;case o:if(e.preventDefault(),!t.expandable)return;t.expanded?d(t.childItems.find(h=>i.includes(h))):t.setExpanded(!0);return;case l:{if(e.preventDefault(),t.expandable&&t.expanded){t.setExpanded(!1);return}let h=t.parentElement;h instanceof ee&&d(h);return}case"Enter":e.preventDefault(),this.#l(t),t.announceActivate();return;case"*":{e.preventDefault();let h=[...t.parentElement?.children??[]].filter(f=>f instanceof ee);for(let f of h)f.setExpanded(!0);return}default:break}if(e.key===" "&&this.#r.buffer===""){e.preventDefault(),this.#l(t);return}this.#r.handleKeydown(e)};render(){return a`<slot @slotchange=${()=>this.requestSync()}></slot>`}};ee.define();fn.define();var Fa={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Va=n=>(...e)=>({_$litDirective$:n,values:e}),mn=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var bn=Va(class extends mn{constructor(n){if(super(n),n.type!==Fa.ATTRIBUTE||n.name!=="class"||n.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(e=>n[e]).join(" ")+" "}update(n,[e]){if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let t=n.element.classList;for(let i of this.st)i in e||(t.remove(i),this.st.delete(i));for(let i in e){let r=!!e[i];r===this.st.has(i)||this.nt?.has(i)||(r?(t.add(i),this.st.add(i)):(t.remove(i),this.st.delete(i)))}return ps}});var ja={chooseDate:"Choose date",chooseDates:"Choose dates",previousMonth:"Previous month",nextMonth:"Next month",calendar:"Calendar",startDate:"Start date",endDate:"End date",date:"Date",time:"Time",day:"dd",month:"mm",year:"yyyy",hourMinute:"hh:mm",formatHint:"Format: {pattern}",invalidDate:"Enter a date as {pattern}.",invalidTime:"Enter a time such as {pattern}.",dateBeforeMin:"Enter a date on or after {date}.",dateAfterMax:"Enter a date on or before {date}.",timeBeforeMin:"Enter a time at or after {time}.",timeAfterMax:"Enter a time at or before {time}.",dateUnavailable:"This date is not available.",rangeOrder:"The end date must not be before the start date."},C4=Object.keys(ja);function j(){return ja}function re(n,e){return n.replace(/\{(\w+)\}/g,(t,i)=>e[i]??t)}var be=(n,e=2)=>String(n).padStart(e,"0");function rt(n){let e=new Date(0);return e.setUTCFullYear(n.y,n.m-1,n.d),e}var Ya=n=>({y:n.getUTCFullYear(),m:n.getUTCMonth()+1,d:n.getUTCDate()});function vn(n,e){return Ya(rt({y:n,m:e+1,d:0})).d}function Xa({y:n,m:e,d:t}){return Number.isInteger(n)&&n>=1&&n<=9999&&e>=1&&e<=12&&t>=1&&t<=vn(n,e)}var Ce=({y:n,m:e,d:t})=>`${be(n,4)}-${be(e)}-${be(t)}`;function A(n){let e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(n??"");if(!e)return null;let t={y:Number(e[1]),m:Number(e[2]),d:Number(e[3])};return Xa(t)?t:null}var Y=(n,e)=>n.y-e.y||n.m-e.m||n.d-e.d,Le=(n,e)=>!!(n&&e&&Y(n,e)===0);function Be(n,e){let t=rt(n);return t.setUTCDate(t.getUTCDate()+e),Ya(t)}function Pe(n,e){let t=n.y*12+(n.m-1)+e,i=Math.floor(t/12),r=t%12+1;return{y:i,m:r,d:Math.min(n.d,vn(i,r))}}var os=n=>rt(n).getUTCDay();function xn(){let n=new Date;return{y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate()}}function Gt(n,e,t){return e&&Y(n,e)<0?e:t&&Y(n,t)>0?t:n}var gn="en";function nt(n){if(!n)return gn;try{return Intl.getCanonicalLocales(n)[0]??gn}catch{return gn}}var Vc=new Set("AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PT PY SA SG SV TH TT TW UM US VE VI WS YE ZA ZW".split(" "));function as(n){try{let e=new Intl.Locale(n),t=(e.getWeekInfo?.()??e.weekInfo)?.firstDay;return typeof t=="number"?t%7:Vc.has(e.maximize().region??"")?0:1}catch{return 1}}var Ka=new Map;function yn(n,e){let t=`${n}|${JSON.stringify(e)}`,i=Ka.get(t);if(!i){try{i=new Intl.DateTimeFormat(n,{...e,timeZone:"UTC"})}catch{i=new Intl.DateTimeFormat(gn,{...e,timeZone:"UTC"})}Ka.set(t,i)}return i}var Za=(n,e,t)=>yn(n,{month:"long",year:"numeric"}).format(rt({y:e,m:t,d:1})),ls=(n,e,t)=>yn(n,{weekday:t}).format(rt({y:2027,m:1,d:3+e})),Qa=(n,e)=>new Intl.NumberFormat(n,{useGrouping:!1}).format(e),Ja=(n,e)=>yn(n,{dateStyle:"full"}).format(rt(e)),ds=(n,e)=>yn(n,{dateStyle:"medium"}).format(rt(e)),jc=/[‎‏؜]/g,Ga=new Map;function kn(n,e="locale"){let t=`${n}|${e}`,i=Ga.get(t);if(i)return i;let r=["y","m","d"],s="-";if(e==="locale")try{let d=new Intl.DateTimeFormat(new Intl.Locale(n,{numberingSystem:"latn"}),{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"}).formatToParts(rt({y:2033,m:11,d:22})),h=[];for(let m of d)m.type==="day"?h.push("d"):m.type==="month"?h.push("m"):m.type==="year"&&h.push("y");h.length===3&&(r=h);let f=d.find(m=>m.type==="literal")?.value.replace(jc,"").trim();s=f&&/^[./-]$/.test(f)?f:"/"}catch{r=["d","m","y"],s="/"}let o=d=>({d:be(d.d),m:be(d.m),y:be(d.y,4)}),l={order:r,separator:s,format:d=>r.map(h=>o(d)[h]).join(s),pattern:d=>r.map(h=>d[h]).join(s),parse(d){let h=d.trim(),f=/^(\d{4})[-./](\d{1,2})[-./](\d{1,2})$/.exec(h),m,v=r;if(f)m=[Number(f[1]),Number(f[2]),Number(f[3])],v=["y","m","d"];else if(/^\d{8}$/.test(h)){let w=r.map(_=>_==="y"?4:2),$=0;m=w.map(_=>Number(h.slice($,$+=_)))}else{let w=h.split(/\s*[\s./-]\s*/);if(w.length===3&&w.every($=>/^\d+$/.test($))){if(w[r.indexOf("y")]?.length!==4)return null;m=w.map(Number)}}if(!m)return null;let x={y:0,m:0,d:0};return v.forEach((w,$)=>{x[w]=m[$]??0}),Xa(x)?x:null}};return Ga.set(t,l),l}var Wa=new Map,ss=n=>n.toLowerCase().replace(/[\s.]/g,"");function el(n,e="auto"){let t=`${n}|${e}`,i=Wa.get(t);if(i)return i;let r=!1,s="am",o="pm";try{if(e==="auto"){let v=new Intl.DateTimeFormat(n,{hour:"numeric"}).resolvedOptions();r=v.hourCycle==="h11"||v.hourCycle==="h12"}else r=e==="12";let f=new Intl.DateTimeFormat(new Intl.Locale(n,{numberingSystem:"latn"}),{hour:"numeric",hour12:!0,timeZone:"UTC"}),m=v=>f.formatToParts(new Date(Date.UTC(2027,0,1,v))).find(x=>x.type==="dayPeriod")?.value??"";s=m(9)||s,o=m(15)||o}catch{}let l=ss(s),d=ss(o),h={hour12:r,am:s,pm:o,format:({h:f,m})=>r?`${f%12||12}:${be(m)} ${f<12?s:o}`:`${be(f)}:${be(m)}`,parse(f){let m=/^(\d{1,4})(?:\s*[:.hH]\s*(\d{1,2}))?\s*([^\d\s].*)?$/.exec(f.trim());if(!m?.[1])return null;let v,x;if(m[2]!==void 0){if(m[1].length>2)return null;v=Number(m[1]),x=Number(m[2])}else m[1].length<=2?(v=Number(m[1]),x=0):(v=Number(m[1].slice(0,-2)),x=Number(m[1].slice(-2)));if(x>59)return null;if(m[3]!==void 0){let w=ss(m[3]),$=w===l||w==="am"||w==="a",_=w===d||w==="pm"||w==="p";if(!$&&!_||v<1||v>12)return null;v=v%12+(_?12:0)}return v>23?null:{h:v,m:x}}};return Wa.set(t,h),h}var cs=({h:n,m:e})=>`${be(n)}:${be(e)}`;function Ee(n){let e=/^(\d{2}):(\d{2})$/.exec(n??"");if(!e)return null;let t=Number(e[1]),i=Number(e[2]);return t>23||i>59?null:{h:t,m:i}}var Re=({h:n,m:e})=>n*60+e,tl=n=>({h:Math.floor(n/60),m:n%60});var il=u` @layer und.components{:host{--_day:var(--und-calendar-day-size,2rem);--_accent:var(--und-accent-solid,#4b4dd5);--_on-accent:var(--und-fg-on-accent,#fff);display:inline-block;box-sizing:border-box;min-inline-size:220px;max-inline-size:100%;padding:var(--und-calendar-padding,var(--und-space-3,0.75rem));color:var(--und-fg-default,#23252c);font:inherit}:host([hidden]){display:none}.months{display:flex;flex-wrap:wrap;gap:var(--und-space-4,1rem)}.month{min-inline-size:0}.head{display:flex;gap:var(--und-space-2,0.5rem);align-items:center;justify-content:space-between;margin-block-end:var(--und-space-2,0.5rem)}.heading{flex:1 1 auto;margin:0;font-size:var(--und-text-label-md-size,0.875rem);font-weight:var(--und-font-weight-semibold,600);line-height:var(--und-text-label-md-lh,1.25);text-align:center}.nav,.spacer{flex:none;box-sizing:border-box;inline-size:var(--_day);block-size:var(--_day)}.nav{display:grid;place-items:center;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;cursor:pointer}.nav:hover{background:var(--und-bg-muted,#f1f2f6)}.nav[aria-disabled='true']{cursor:not-allowed;opacity:var(--und-disabled-opacity,0.55)}.nav[aria-disabled='true']:hover{background:transparent}.nav svg{inline-size:1.25rem;block-size:1.25rem;fill:none;stroke:currentcolor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.rtl .nav svg{transform:scaleX(-1)}table{border-collapse:collapse;table-layout:fixed}th{inline-size:var(--_day);padding:0;color:var(--und-fg-muted,#62646e);font-size:var(--und-text-label-sm-size,0.75rem);font-weight:var(--und-font-weight-normal,400);line-height:var(--und-text-label-sm-lh,1.25);text-align:center}td{padding:0;text-align:center}.day{box-sizing:border-box;display:grid;place-items:center;inline-size:var(--_day);block-size:var(--_day);margin:0;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:var(--und-text-label-md-size,0.875rem);font-variant-numeric:tabular-nums;cursor:pointer}.day:hover{background:var(--und-bg-muted,#f1f2f6)}.day:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:calc(var(--und-focus-width,2px) * -1)}.outside{color:var(--und-fg-muted,#62646e)}.today{box-shadow:inset 0 0 0 1px var(--und-border-strong,#62646e)}.today.in-range{box-shadow:inset 0 0 0 1px var(--und-fg-default,#23252c)}td.band{background:var(--und-accent-bg,#eceefc)}td.band-start{background:linear-gradient(to right,transparent 50%,var(--und-accent-bg,#eceefc) 50%)}td.band-end{background:linear-gradient(to left,transparent 50%,var(--und-accent-bg,#eceefc) 50%)}td.band-start.band-end{background:transparent}:host(:dir(rtl)) td.band-start{background:linear-gradient(to left,transparent 50%,var(--und-accent-bg,#eceefc) 50%)}:host(:dir(rtl)) td.band-end{background:linear-gradient(to right,transparent 50%,var(--und-accent-bg,#eceefc) 50%)}td.band:first-child{border-start-start-radius:999px;border-end-start-radius:999px}td.band:last-child{border-start-end-radius:999px;border-end-end-radius:999px}.in-range:not(.selected){background:transparent}.in-range:not(.selected):hover{background:color-mix(in srgb,var(--und-accent-bg,#eceefc),currentcolor 8%)}.selected,.selected:hover{background:var(--_accent);color:var(--_on-accent);box-shadow:none}.disabled,.disabled:hover{background:transparent;color:var(--und-fg-default,#23252c);cursor:not-allowed;opacity:0.3}@media (pointer:coarse){:host{--_day:max( var(--und-calendar-day-size,var(--und-control-height-md,2.5rem)),var(--und-target-min-coarse,44px) )}}@media (prefers-reduced-motion:no-preference){.day,.nav{transition:background-color var(--und-motion-hover,130ms) ease}}@media (forced-colors:active){.day,.nav{forced-color-adjust:none;color:ButtonText}.selected,.selected:hover{background:Highlight;color:HighlightText}td.band{border-block:1px solid Highlight;background:Canvas}.today{box-shadow:inset 0 0 0 1px CanvasText;text-decoration:underline}.disabled,.disabled:hover,.nav[aria-disabled='true']{color:GrayText;opacity:1}.day:focus-visible,.nav:focus-visible{outline-color:Highlight}}}
16331
+ </div>`}},fn=class extends p{static tagName="und-tree-list";static styles=Oa;static properties={label:{},selection:{reflect:!0},density:{reflect:!0}};#e=new y(this);#t=null;#i=!1;#r=new se(this,{listen:!1,getItems:()=>this.#o(),getActiveIndex:()=>this.#o().findIndex(e=>e===this.#t),onMatch:(e,t)=>this.focusItem(t),getLabel:e=>e.labelText,getLocale:()=>this.#e.lang||void 0});constructor(){super(),this.selection="single",this.density="balanced"}get value(){return this.#n().filter(e=>e.selected).map(e=>e.itemValue)}set value(e){let t=new Set(e),i=!1;for(let r of this.#n()){let s=t.has(r.itemValue)&&(this.selection!=="single"||!i);s&&(i=!0),r.selected=s}this.requestSync()}connectedCallback(){super.connectedCallback(),!!1&&(this.setAttribute("role","tree"),this.addEventListener("keydown",this.#u),this.addEventListener("focusin",this.#c))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.#u),this.removeEventListener("focusin",this.#c)}requestSync(){this.#i||(this.#i=!0,this.requestUpdate())}updated(){this.#i=!1,!!1&&this.#d()}#n(){return[...this.querySelectorAll("und-tree-item")].filter(e=>e instanceof ee)}#s(e){if(e.hidden)return!1;for(let t=e.parentElement;t&&t!==this;t=t.parentElement)if(t instanceof ee&&(!t.expanded||t.hidden))return!1;return!0}#o(){return this.#n().filter(e=>this.#s(e)&&!e.disabled)}#d(){this.selection==="multiple"?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),this.label&&this.setAttribute("aria-label",this.label);let e=this.#n();if(this.selection==="single"){let t=!1;for(let i of e)i.selected&&(t&&(i.selected=!1),t=!0)}for(let t of e){let i=1,r=t.parentElement;for(;r&&r!==this;)r instanceof ee&&(i+=1),r=r.parentElement;let s=[...t.parentElement?.children??[]].filter(o=>o instanceof ee);t.setAttribute("aria-level",String(i)),t.setAttribute("aria-setsize",String(s.length)),t.setAttribute("aria-posinset",String(s.indexOf(t)+1)),t.style.setProperty("--_level",String(i)),this.selection==="none"?t.removeAttribute("aria-selected"):t.setAttribute("aria-selected",String(t.selected))}this.#a(e)}#a(e=this.#n()){let t=this.#o(),i=this.#t;if(i&&!t.includes(i)){let r=i.isConnected?i.parentElement:null;for(i=null;r&&r!==this;){if(r instanceof ee&&t.includes(r)){i=r;break}r=r.parentElement}}i??=t.find(r=>r.selected)??t[0]??null,this.#t=i;for(let r of e)r.disabled?r.removeAttribute("tabindex"):r.tabIndex=r===i?0:-1}focusItem(e){e.disabled||(this.#t=e,this.#a(),e.focus())}pointerActivate(e){this.focusItem(e),this.#l(e)}#l(e){if(!(this.selection==="none"||e.disabled)){if(this.selection==="single"){if(e.selected)return;for(let t of this.#n())t.selected=t===e}else e.selected=!e.selected;for(let t of this.#n())t.setAttribute("aria-selected",String(t.selected));this.emit("und-select",{value:this.value,item:e})}}#c=e=>{let t=e.composedPath().find(i=>i instanceof ee);t instanceof ee&&t!==this.#t&&!t.disabled&&(this.#t=t,this.#a())};#u=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.target;if(!(t instanceof ee)||t.disabled)return;let i=this.#o(),r=i.indexOf(t);if(r===-1)return;let s=this.#e.isRtl,o=s?"ArrowLeft":"ArrowRight",a=s?"ArrowRight":"ArrowLeft",d=h=>{h&&this.focusItem(h)};switch(e.key){case"ArrowDown":e.preventDefault(),d(i[r+1]);return;case"ArrowUp":e.preventDefault(),d(i[r-1]);return;case"Home":e.preventDefault(),d(i[0]);return;case"End":e.preventDefault(),d(i.at(-1));return;case o:if(e.preventDefault(),!t.expandable)return;t.expanded?d(t.childItems.find(h=>i.includes(h))):t.setExpanded(!0);return;case a:{if(e.preventDefault(),t.expandable&&t.expanded){t.setExpanded(!1);return}let h=t.parentElement;h instanceof ee&&d(h);return}case"Enter":e.preventDefault(),this.#l(t),t.announceActivate();return;case"*":{e.preventDefault();let h=[...t.parentElement?.children??[]].filter(f=>f instanceof ee);for(let f of h)f.setExpanded(!0);return}default:break}if(e.key===" "&&this.#r.buffer===""){e.preventDefault(),this.#l(t);return}this.#r.handleKeydown(e)};render(){return l`<slot @slotchange=${()=>this.requestSync()}></slot>`}};ee.define();fn.define();var Fa={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Va=n=>(...e)=>({_$litDirective$:n,values:e}),mn=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var bn=Va(class extends mn{constructor(n){if(super(n),n.type!==Fa.ATTRIBUTE||n.name!=="class"||n.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(e=>n[e]).join(" ")+" "}update(n,[e]){if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let t=n.element.classList;for(let i of this.st)i in e||(t.remove(i),this.st.delete(i));for(let i in e){let r=!!e[i];r===this.st.has(i)||this.nt?.has(i)||(r?(t.add(i),this.st.add(i)):(t.remove(i),this.st.delete(i)))}return ps}});var ja={chooseDate:"Choose date",chooseDates:"Choose dates",previousMonth:"Previous month",nextMonth:"Next month",calendar:"Calendar",startDate:"Start date",endDate:"End date",date:"Date",time:"Time",day:"dd",month:"mm",year:"yyyy",hourMinute:"hh:mm",formatHint:"Format: {pattern}",invalidDate:"Enter a date as {pattern}.",invalidTime:"Enter a time such as {pattern}.",dateBeforeMin:"Enter a date on or after {date}.",dateAfterMax:"Enter a date on or before {date}.",timeBeforeMin:"Enter a time at or after {time}.",timeAfterMax:"Enter a time at or before {time}.",dateUnavailable:"This date is not available.",rangeOrder:"The end date must not be before the start date."},C4=Object.keys(ja);function j(){return ja}function re(n,e){return n.replace(/\{(\w+)\}/g,(t,i)=>e[i]??t)}var be=(n,e=2)=>String(n).padStart(e,"0");function rt(n){let e=new Date(0);return e.setUTCFullYear(n.y,n.m-1,n.d),e}var Ya=n=>({y:n.getUTCFullYear(),m:n.getUTCMonth()+1,d:n.getUTCDate()});function vn(n,e){return Ya(rt({y:n,m:e+1,d:0})).d}function Xa({y:n,m:e,d:t}){return Number.isInteger(n)&&n>=1&&n<=9999&&e>=1&&e<=12&&t>=1&&t<=vn(n,e)}var Ce=({y:n,m:e,d:t})=>`${be(n,4)}-${be(e)}-${be(t)}`;function A(n){let e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(n??"");if(!e)return null;let t={y:Number(e[1]),m:Number(e[2]),d:Number(e[3])};return Xa(t)?t:null}var Y=(n,e)=>n.y-e.y||n.m-e.m||n.d-e.d,Le=(n,e)=>!!(n&&e&&Y(n,e)===0);function Be(n,e){let t=rt(n);return t.setUTCDate(t.getUTCDate()+e),Ya(t)}function Pe(n,e){let t=n.y*12+(n.m-1)+e,i=Math.floor(t/12),r=t%12+1;return{y:i,m:r,d:Math.min(n.d,vn(i,r))}}var os=n=>rt(n).getUTCDay();function xn(){let n=new Date;return{y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate()}}function Gt(n,e,t){return e&&Y(n,e)<0?e:t&&Y(n,t)>0?t:n}var gn="en";function nt(n){if(!n)return gn;try{return Intl.getCanonicalLocales(n)[0]??gn}catch{return gn}}var Vc=new Set("AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PT PY SA SG SV TH TT TW UM US VE VI WS YE ZA ZW".split(" "));function as(n){try{let e=new Intl.Locale(n),t=(e.getWeekInfo?.()??e.weekInfo)?.firstDay;return typeof t=="number"?t%7:Vc.has(e.maximize().region??"")?0:1}catch{return 1}}var Ka=new Map;function yn(n,e){let t=`${n}|${JSON.stringify(e)}`,i=Ka.get(t);if(!i){try{i=new Intl.DateTimeFormat(n,{...e,timeZone:"UTC"})}catch{i=new Intl.DateTimeFormat(gn,{...e,timeZone:"UTC"})}Ka.set(t,i)}return i}var Za=(n,e,t)=>yn(n,{month:"long",year:"numeric"}).format(rt({y:e,m:t,d:1})),ls=(n,e,t)=>yn(n,{weekday:t}).format(rt({y:2027,m:1,d:3+e})),Qa=(n,e)=>new Intl.NumberFormat(n,{useGrouping:!1}).format(e),Ja=(n,e)=>yn(n,{dateStyle:"full"}).format(rt(e)),ds=(n,e)=>yn(n,{dateStyle:"medium"}).format(rt(e)),jc=/[‎‏؜]/g,Ga=new Map;function kn(n,e="locale"){let t=`${n}|${e}`,i=Ga.get(t);if(i)return i;let r=["y","m","d"],s="-";if(e==="locale")try{let d=new Intl.DateTimeFormat(new Intl.Locale(n,{numberingSystem:"latn"}),{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"}).formatToParts(rt({y:2033,m:11,d:22})),h=[];for(let m of d)m.type==="day"?h.push("d"):m.type==="month"?h.push("m"):m.type==="year"&&h.push("y");h.length===3&&(r=h);let f=d.find(m=>m.type==="literal")?.value.replace(jc,"").trim();s=f&&/^[./-]$/.test(f)?f:"/"}catch{r=["d","m","y"],s="/"}let o=d=>({d:be(d.d),m:be(d.m),y:be(d.y,4)}),a={order:r,separator:s,format:d=>r.map(h=>o(d)[h]).join(s),pattern:d=>r.map(h=>d[h]).join(s),parse(d){let h=d.trim(),f=/^(\d{4})[-./](\d{1,2})[-./](\d{1,2})$/.exec(h),m,v=r;if(f)m=[Number(f[1]),Number(f[2]),Number(f[3])],v=["y","m","d"];else if(/^\d{8}$/.test(h)){let w=r.map(_=>_==="y"?4:2),$=0;m=w.map(_=>Number(h.slice($,$+=_)))}else{let w=h.split(/\s*[\s./-]\s*/);if(w.length===3&&w.every($=>/^\d+$/.test($))){if(w[r.indexOf("y")]?.length!==4)return null;m=w.map(Number)}}if(!m)return null;let x={y:0,m:0,d:0};return v.forEach((w,$)=>{x[w]=m[$]??0}),Xa(x)?x:null}};return Ga.set(t,a),a}var Wa=new Map,ss=n=>n.toLowerCase().replace(/[\s.]/g,"");function el(n,e="auto"){let t=`${n}|${e}`,i=Wa.get(t);if(i)return i;let r=!1,s="am",o="pm";try{if(e==="auto"){let v=new Intl.DateTimeFormat(n,{hour:"numeric"}).resolvedOptions();r=v.hourCycle==="h11"||v.hourCycle==="h12"}else r=e==="12";let f=new Intl.DateTimeFormat(new Intl.Locale(n,{numberingSystem:"latn"}),{hour:"numeric",hour12:!0,timeZone:"UTC"}),m=v=>f.formatToParts(new Date(Date.UTC(2027,0,1,v))).find(x=>x.type==="dayPeriod")?.value??"";s=m(9)||s,o=m(15)||o}catch{}let a=ss(s),d=ss(o),h={hour12:r,am:s,pm:o,format:({h:f,m})=>r?`${f%12||12}:${be(m)} ${f<12?s:o}`:`${be(f)}:${be(m)}`,parse(f){let m=/^(\d{1,4})(?:\s*[:.hH]\s*(\d{1,2}))?\s*([^\d\s].*)?$/.exec(f.trim());if(!m?.[1])return null;let v,x;if(m[2]!==void 0){if(m[1].length>2)return null;v=Number(m[1]),x=Number(m[2])}else m[1].length<=2?(v=Number(m[1]),x=0):(v=Number(m[1].slice(0,-2)),x=Number(m[1].slice(-2)));if(x>59)return null;if(m[3]!==void 0){let w=ss(m[3]),$=w===a||w==="am"||w==="a",_=w===d||w==="pm"||w==="p";if(!$&&!_||v<1||v>12)return null;v=v%12+(_?12:0)}return v>23?null:{h:v,m:x}}};return Wa.set(t,h),h}var cs=({h:n,m:e})=>`${be(n)}:${be(e)}`;function Ee(n){let e=/^(\d{2}):(\d{2})$/.exec(n??"");if(!e)return null;let t=Number(e[1]),i=Number(e[2]);return t>23||i>59?null:{h:t,m:i}}var Re=({h:n,m:e})=>n*60+e,tl=n=>({h:Math.floor(n/60),m:n%60});var il=u` @layer und.components{:host{--_day:var(--und-calendar-day-size,2rem);--_accent:var(--und-accent-solid,#4b4dd5);--_on-accent:var(--und-fg-on-accent,#fff);display:inline-block;box-sizing:border-box;min-inline-size:220px;max-inline-size:100%;padding:var(--und-calendar-padding,var(--und-space-3,0.75rem));color:var(--und-fg-default,#23252c);font:inherit}:host([hidden]){display:none}.months{display:flex;flex-wrap:wrap;gap:var(--und-space-4,1rem)}.month{min-inline-size:0}.head{display:flex;gap:var(--und-space-2,0.5rem);align-items:center;justify-content:space-between;margin-block-end:var(--und-space-2,0.5rem)}.heading{flex:1 1 auto;margin:0;font-size:var(--und-text-label-md-size,0.875rem);font-weight:var(--und-font-weight-semibold,600);line-height:var(--und-text-label-md-lh,1.25);text-align:center}.nav,.spacer{flex:none;box-sizing:border-box;inline-size:var(--_day);block-size:var(--_day)}.nav{display:grid;place-items:center;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;cursor:pointer}.nav:hover{background:var(--und-bg-muted,#f1f2f6)}.nav[aria-disabled='true']{cursor:not-allowed;opacity:var(--und-disabled-opacity,0.55)}.nav[aria-disabled='true']:hover{background:transparent}.nav svg{inline-size:1.25rem;block-size:1.25rem;fill:none;stroke:currentcolor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.rtl .nav svg{transform:scaleX(-1)}table{border-collapse:collapse;table-layout:fixed}th{inline-size:var(--_day);padding:0;color:var(--und-fg-muted,#62646e);font-size:var(--und-text-label-sm-size,0.75rem);font-weight:var(--und-font-weight-normal,400);line-height:var(--und-text-label-sm-lh,1.25);text-align:center}td{padding:0;text-align:center}.day{box-sizing:border-box;display:grid;place-items:center;inline-size:var(--_day);block-size:var(--_day);margin:0;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:var(--und-text-label-md-size,0.875rem);font-variant-numeric:tabular-nums;cursor:pointer}.day:hover{background:var(--und-bg-muted,#f1f2f6)}.day:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:calc(var(--und-focus-width,2px) * -1)}.outside{color:var(--und-fg-muted,#62646e)}.today{box-shadow:inset 0 0 0 1px var(--und-border-strong,#62646e)}.today.in-range{box-shadow:inset 0 0 0 1px var(--und-fg-default,#23252c)}td.band{background:var(--und-accent-bg,#eceefc)}td.band-start{background:linear-gradient(to right,transparent 50%,var(--und-accent-bg,#eceefc) 50%)}td.band-end{background:linear-gradient(to left,transparent 50%,var(--und-accent-bg,#eceefc) 50%)}td.band-start.band-end{background:transparent}:host(:dir(rtl)) td.band-start{background:linear-gradient(to left,transparent 50%,var(--und-accent-bg,#eceefc) 50%)}:host(:dir(rtl)) td.band-end{background:linear-gradient(to right,transparent 50%,var(--und-accent-bg,#eceefc) 50%)}td.band:first-child{border-start-start-radius:999px;border-end-start-radius:999px}td.band:last-child{border-start-end-radius:999px;border-end-end-radius:999px}.in-range:not(.selected){background:transparent}.in-range:not(.selected):hover{background:color-mix(in srgb,var(--und-accent-bg,#eceefc),currentcolor 8%)}.selected,.selected:hover{background:var(--_accent);color:var(--_on-accent);box-shadow:none}.disabled,.disabled:hover{background:transparent;color:var(--und-fg-default,#23252c);cursor:not-allowed;opacity:0.3}@media (pointer:coarse){:host{--_day:max( var(--und-calendar-day-size,var(--und-control-height-md,2.5rem)),var(--und-target-min-coarse,44px) )}}@media (prefers-reduced-motion:no-preference){.day,.nav{transition:background-color var(--und-motion-hover,130ms) ease}}@media (forced-colors:active){.day,.nav{forced-color-adjust:none;color:ButtonText}.selected,.selected:hover{background:Highlight;color:HighlightText}td.band{border-block:1px solid Highlight;background:Canvas}.today{box-shadow:inset 0 0 0 1px CanvasText;text-decoration:underline}.disabled,.disabled:hover,.nav[aria-disabled='true']{color:GrayText;opacity:1}.day:focus-visible,.nav:focus-visible{outline-color:Highlight}}}
16330
16332
 
16331
16333
 
16332
16334
 
@@ -16588,7 +16590,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16588
16590
 
16589
16591
 
16590
16592
 
16591
- `;var te=n=>n.y*12+n.m,wn=n=>({y:n.y,m:n.m,d:1}),rl=n=>k`<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="${n==="previous"?"m15 18-6-6 6-6":"m9 18 6-6-6-6"}"/></svg>`,Ae=class extends p{static tagName="und-calendar";static styles=il;static properties={mode:{reflect:!0},value:{reflect:!0},start:{reflect:!0},end:{reflect:!0},min:{reflect:!0},max:{reflect:!0},months:{type:Number,reflect:!0},locale:{reflect:!0},weekStart:{type:Number,attribute:"week-start"},hideOutsideDays:{type:Boolean,attribute:"hide-outside-days",reflect:!0},today:{},isDateDisabled:{attribute:!1}};#e=wn(xn());#t=xn();#i="";#r;get _view(){return this.#e}set _view(e){this.#e=e,this.requestUpdate()}get _focus(){return this.#t}set _focus(e){this.#t=e,this.requestUpdate()}get _hover(){return this.#i}set _hover(e){this.#i=e,this.requestUpdate()}#n=new y(this);#s=!1;constructor(){super(),this.mode="single",this.value="",this.start="",this.end="",this.months=1,this.hideOutsideDays=!1}async focusDay(){await this.updateComplete,this.renderRoot.querySelector('.day[tabindex="0"]')?.focus()}resetView(){let e=A(this.mode==="range"?this.start:this.value),[t,i]=this.#a();this._focus=Gt(e??this.#d(),t,i),this._view=wn(this._focus)}#o(){return nt(this.locale||this.#n.lang)}#d(){return A(this.today)??xn()}#a(){return[A(this.min),A(this.max)]}#l(){return Math.min(3,Math.max(1,Math.round(this.months)||1))}#c(e){let[t,i]=this.#a();if(t&&Y(e,t)<0||i&&Y(e,i)>0)return!0;try{return!!this.isDateDisabled?.(Ce(e))}catch{return!1}}willUpdate(e){if(!this.#s)this.resetView(),this.#s=!0;else if(e.has("value")||e.has("start"))A(this.mode==="range"?this.start:this.value)&&this.resetView();else if(e.has("min")||e.has("max")){let[t,i]=this.#a();this._focus=Gt(this._focus,t,i)}(e.has("months")||e.has("mode"))&&this.#u()}updated(){let e=this.#r;this.#r=this.#e,e&&te(e)!==te(this.#e)&&this.emit("und-view-change",{year:this.#e.y,month:this.#e.m})}#u(){let e=this.#l(),t=te(this._view),i=te(this._focus);i<t?this._view=wn(this._focus):i>t+e-1&&(this._view=wn(Pe(this._focus,1-e)))}#h(e){let[t,i]=this.#a();this._focus=Gt(e,t,i),this.#u(),this.mode==="range"&&this.start&&!this.end&&(this._hover=Ce(this._focus)),this.focusDay()}#p(e){let t=Pe(this._view,e),[i,r]=this.#a();if(e<0&&i&&te(t)<te(i)||e>0&&r&&te(Pe(t,this.#l()-1))>te(r))return;this._view=t;let s=te(t),o=te(this._focus);(o<s||o>s+this.#l()-1)&&(this._focus=Gt(Pe(this._focus,e),i,r))}#f(e){if(this.#c(e))return;this._focus=e;let t=Ce(e);if(this.mode==="range"){let i=A(this.start);!i||this.end?(this.start=t,this.end=""):Y(e,i)<0?(this.end=this.start,this.start=t):this.end=t,this._hover="",this.#u(),this.emit("und-change",{value:"",start:this.start,end:this.end,complete:!!this.end});return}this.value=t,this.#u(),this.emit("und-change",{value:t,start:"",end:"",complete:!0})}#m(e){let t=e.composedPath().find(i=>i instanceof HTMLElement&&i.dataset.date!==void 0);return A(t?.dataset.date)}#b=e=>{let t=this.#m(e);t&&this.#f(t)};#g=e=>{if(this.mode!=="range"||!this.start||this.end)return;let t=this.#m(e);t&&(this._hover=Ce(t))};#v=e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;let t=this.#m(e);if(!t)return;let i=this.#n.isRtl,r=this.weekStart??as(this.#o()),s=(os(t)-r+7)%7,o;switch(e.key){case"ArrowLeft":o=Be(t,i?1:-1);break;case"ArrowRight":o=Be(t,i?-1:1);break;case"ArrowUp":o=Be(t,-7);break;case"ArrowDown":o=Be(t,7);break;case"Home":o=Be(t,-s);break;case"End":o=Be(t,6-s);break;case"PageUp":o=Pe(t,e.shiftKey?-12:-1);break;case"PageDown":o=Pe(t,e.shiftKey?12:1);break;default:return}e.preventDefault(),this.#h(o)};render(){let e=this.#o(),t=this.#l(),i=j(),[r,s]=this.#a(),o=this._view,l=Pe(o,t-1),d=!!(r&&te(o)<=te(r)),h=!!(s&&te(l)>=te(s)),f=this.#x(e),m=a`<button
16593
+ `;var te=n=>n.y*12+n.m,wn=n=>({y:n.y,m:n.m,d:1}),rl=n=>k`<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="${n==="previous"?"m15 18-6-6 6-6":"m9 18 6-6-6-6"}"/></svg>`,Ae=class extends p{static tagName="und-calendar";static styles=il;static properties={mode:{reflect:!0},value:{reflect:!0},start:{reflect:!0},end:{reflect:!0},min:{reflect:!0},max:{reflect:!0},months:{type:Number,reflect:!0},locale:{reflect:!0},weekStart:{type:Number,attribute:"week-start"},hideOutsideDays:{type:Boolean,attribute:"hide-outside-days",reflect:!0},today:{},isDateDisabled:{attribute:!1}};#e=wn(xn());#t=xn();#i="";#r;get _view(){return this.#e}set _view(e){this.#e=e,this.requestUpdate()}get _focus(){return this.#t}set _focus(e){this.#t=e,this.requestUpdate()}get _hover(){return this.#i}set _hover(e){this.#i=e,this.requestUpdate()}#n=new y(this);#s=!1;constructor(){super(),this.mode="single",this.value="",this.start="",this.end="",this.months=1,this.hideOutsideDays=!1}async focusDay(){await this.updateComplete,this.renderRoot.querySelector('.day[tabindex="0"]')?.focus()}resetView(){let e=A(this.mode==="range"?this.start:this.value),[t,i]=this.#a();this._focus=Gt(e??this.#d(),t,i),this._view=wn(this._focus)}#o(){return nt(this.locale||this.#n.lang)}#d(){return A(this.today)??xn()}#a(){return[A(this.min),A(this.max)]}#l(){return Math.min(3,Math.max(1,Math.round(this.months)||1))}#c(e){let[t,i]=this.#a();if(t&&Y(e,t)<0||i&&Y(e,i)>0)return!0;try{return!!this.isDateDisabled?.(Ce(e))}catch{return!1}}willUpdate(e){if(!this.#s)this.resetView(),this.#s=!0;else if(e.has("value")||e.has("start"))A(this.mode==="range"?this.start:this.value)&&this.resetView();else if(e.has("min")||e.has("max")){let[t,i]=this.#a();this._focus=Gt(this._focus,t,i)}(e.has("months")||e.has("mode"))&&this.#u()}updated(){let e=this.#r;this.#r=this.#e,e&&te(e)!==te(this.#e)&&this.emit("und-view-change",{year:this.#e.y,month:this.#e.m})}#u(){let e=this.#l(),t=te(this._view),i=te(this._focus);i<t?this._view=wn(this._focus):i>t+e-1&&(this._view=wn(Pe(this._focus,1-e)))}#h(e){let[t,i]=this.#a();this._focus=Gt(e,t,i),this.#u(),this.mode==="range"&&this.start&&!this.end&&(this._hover=Ce(this._focus)),this.focusDay()}#p(e){let t=Pe(this._view,e),[i,r]=this.#a();if(e<0&&i&&te(t)<te(i)||e>0&&r&&te(Pe(t,this.#l()-1))>te(r))return;this._view=t;let s=te(t),o=te(this._focus);(o<s||o>s+this.#l()-1)&&(this._focus=Gt(Pe(this._focus,e),i,r))}#f(e){if(this.#c(e))return;this._focus=e;let t=Ce(e);if(this.mode==="range"){let i=A(this.start);!i||this.end?(this.start=t,this.end=""):Y(e,i)<0?(this.end=this.start,this.start=t):this.end=t,this._hover="",this.#u(),this.emit("und-change",{value:"",start:this.start,end:this.end,complete:!!this.end});return}this.value=t,this.#u(),this.emit("und-change",{value:t,start:"",end:"",complete:!0})}#m(e){let t=e.composedPath().find(i=>i instanceof HTMLElement&&i.dataset.date!==void 0);return A(t?.dataset.date)}#b=e=>{let t=this.#m(e);t&&this.#f(t)};#v=e=>{if(this.mode!=="range"||!this.start||this.end)return;let t=this.#m(e);t&&(this._hover=Ce(t))};#g=e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;let t=this.#m(e);if(!t)return;let i=this.#n.isRtl,r=this.weekStart??as(this.#o()),s=(os(t)-r+7)%7,o;switch(e.key){case"ArrowLeft":o=Be(t,i?1:-1);break;case"ArrowRight":o=Be(t,i?-1:1);break;case"ArrowUp":o=Be(t,-7);break;case"ArrowDown":o=Be(t,7);break;case"Home":o=Be(t,-s);break;case"End":o=Be(t,6-s);break;case"PageUp":o=Pe(t,e.shiftKey?-12:-1);break;case"PageDown":o=Pe(t,e.shiftKey?12:1);break;default:return}e.preventDefault(),this.#h(o)};render(){let e=this.#o(),t=this.#l(),i=j(),[r,s]=this.#a(),o=this._view,a=Pe(o,t-1),d=!!(r&&te(o)<=te(r)),h=!!(s&&te(a)>=te(s)),f=this.#x(e),m=l`<button
16592
16594
  type="button"
16593
16595
  class="nav"
16594
16596
  aria-label=${i.previousMonth}
@@ -16596,7 +16598,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16596
16598
  @click=${()=>this.#p(-1)}
16597
16599
  >
16598
16600
  ${rl("previous")}
16599
- </button>`,v=a`<button
16601
+ </button>`,v=l`<button
16600
16602
  type="button"
16601
16603
  class="nav"
16602
16604
  aria-label=${i.nextMonth}
@@ -16604,7 +16606,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16604
16606
  @click=${()=>this.#p(1)}
16605
16607
  >
16606
16608
  ${rl("next")}
16607
- </button>`,x=a`<span class="spacer"></span>`,w=Array.from({length:t},($,_)=>{let I=Pe(o,_);return a`<div class="month">
16609
+ </button>`,x=l`<span class="spacer"></span>`,w=Array.from({length:t},($,_)=>{let I=Pe(o,_);return l`<div class="month">
16608
16610
  <div class="head">
16609
16611
  ${_===0?m:x}
16610
16612
  <h2 class="heading" id="h${_}" aria-live="polite" aria-atomic="true">
@@ -16613,34 +16615,34 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16613
16615
  ${_===t-1?v:x}
16614
16616
  </div>
16615
16617
  ${this.#y(I,_,f,t>1)}
16616
- </div>`});return a`<div
16618
+ </div>`});return l`<div
16617
16619
  class=${bn({months:!0,rtl:this.#n.isRtl})}
16618
16620
  @click=${this.#b}
16619
- @keydown=${this.#v}
16620
- @pointerover=${this.#g}
16621
+ @keydown=${this.#g}
16622
+ @pointerover=${this.#v}
16621
16623
  >
16622
16624
  ${w}
16623
- </div>`}#x(e){let t=A(this.start),i=A(this.end),r=!1;return this.mode==="range"&&t&&!i&&(i=A(this._hover),r=!!i),t&&i&&Y(t,i)>0&&([t,i]=[i,t]),{locale:e,today:this.#d(),single:A(this.value),from:this.mode==="range"?t:null,to:this.mode==="range"?i:null,preview:r}}#y(e,t,i,r){let{locale:s}=i,o=this.weekStart??as(s),l=this.hideOutsideDays||r,d=(os(e)-o+7)%7,h=l?Math.ceil((d+vn(e.y,e.m))/7):6,f=Be(e,-d),m=Array.from({length:7},(v,x)=>(o+x)%7);return a`<table role="grid" aria-labelledby="h${t}">
16625
+ </div>`}#x(e){let t=A(this.start),i=A(this.end),r=!1;return this.mode==="range"&&t&&!i&&(i=A(this._hover),r=!!i),t&&i&&Y(t,i)>0&&([t,i]=[i,t]),{locale:e,today:this.#d(),single:A(this.value),from:this.mode==="range"?t:null,to:this.mode==="range"?i:null,preview:r}}#y(e,t,i,r){let{locale:s}=i,o=this.weekStart??as(s),a=this.hideOutsideDays||r,d=(os(e)-o+7)%7,h=a?Math.ceil((d+vn(e.y,e.m))/7):6,f=Be(e,-d),m=Array.from({length:7},(v,x)=>(o+x)%7);return l`<table role="grid" aria-labelledby="h${t}">
16624
16626
  <thead>
16625
16627
  <tr>
16626
- ${m.map(v=>a`<th scope="col" abbr=${ls(s,v,"long")}>
16628
+ ${m.map(v=>l`<th scope="col" abbr=${ls(s,v,"long")}>
16627
16629
  ${ls(s,v,"short")}
16628
16630
  </th>`)}
16629
16631
  </tr>
16630
16632
  </thead>
16631
16633
  <tbody>
16632
- ${Array.from({length:h},(v,x)=>{let w=Array.from({length:7},($,_)=>{let I=Be(f,x*7+_),q=I.m!==e.m;return q&&l?a`<td role="gridcell" aria-hidden="true"></td>`:this.#_(I,q,i)});return a`<tr>
16634
+ ${Array.from({length:h},(v,x)=>{let w=Array.from({length:7},($,_)=>{let I=Be(f,x*7+_),q=I.m!==e.m;return q&&a?l`<td role="gridcell" aria-hidden="true"></td>`:this.#_(I,q,i)});return l`<tr>
16633
16635
  ${w}
16634
16636
  </tr>`})}
16635
16637
  </tbody>
16636
- </table>`}#_(e,t,i){let{from:r,to:s,preview:o}=i,l=this.mode==="range"?Le(e,r)||!o&&Le(e,s):Le(e,i.single),d=!!(r&&s&&Y(e,r)>0&&Y(e,s)<0),h=o&&Le(e,s)&&!Le(e,r),f=this.#c(e),m=Le(e,i.today),v=!t&&Le(e,this._focus),x=l||d&&!o,w=!!(r&&s&&Y(r,s)<0),$=d||h||w&&l,_=w&&!h&&Le(e,r),I=w&&!o&&Le(e,s);return a`<td
16638
+ </table>`}#_(e,t,i){let{from:r,to:s,preview:o}=i,a=this.mode==="range"?Le(e,r)||!o&&Le(e,s):Le(e,i.single),d=!!(r&&s&&Y(e,r)>0&&Y(e,s)<0),h=o&&Le(e,s)&&!Le(e,r),f=this.#c(e),m=Le(e,i.today),v=!t&&Le(e,this._focus),x=a||d&&!o,w=!!(r&&s&&Y(r,s)<0),$=d||h||w&&a,_=w&&!h&&Le(e,r),I=w&&!o&&Le(e,s);return l`<td
16637
16639
  role="gridcell"
16638
16640
  class=${bn({band:$,"band-start":_,"band-end":I})}
16639
16641
  aria-selected=${x?"true":"false"}
16640
16642
  >
16641
16643
  <button
16642
16644
  type="button"
16643
- class=${bn({day:!0,outside:t,today:m,selected:l&&!h,"in-range":d||h,disabled:f})}
16645
+ class=${bn({day:!0,outside:t,today:m,selected:a&&!h,"in-range":d||h,disabled:f})}
16644
16646
  data-date=${Ce(e)}
16645
16647
  tabindex=${v?"0":"-1"}
16646
16648
  aria-label=${Ja(i.locale,e)}
@@ -16649,7 +16651,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16649
16651
  >
16650
16652
  ${Qa(i.locale,e.d)}
16651
16653
  </button>
16652
- </td>`}};Ae.define();var nl="http://www.w3.org/2000/svg",Kc="M8 2v4M16 2v4M3 10h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z";function Gc(){let n=document.createElementNS(nl,"svg");n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("aria-hidden","true"),n.setAttribute("focusable","false");let e=document.createElementNS(nl,"path");return e.setAttribute("d",Kc),n.append(e),n}var It=class{#e;#t;#i;button;popover;presets;calendar;#r=null;constructor(e,t){this.#e=e,this.#t=t,this.#i=new O(e,{getAnchor:t.getAnchor,getFloating:()=>this.popover??null,getDirection:t.getDirection,placement:"bottom-start",offset:4}),e.addController(this)}get isOpen(){return!!this.popover?.matches(":popover-open")}hostConnected(){}build(){let e=g("button","und-date-field__button","calendar-button");e.type="button",e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","false"),e.append(Gc());let t=g("div","und-date-field__popover","popover");t.popover="auto",t.setAttribute("role","dialog");let i=g("div","und-date-field__presets","presets"),r=document.createElement("und-calendar");return t.append(i,r),e.popoverTargetElement=t,this.button=e,this.popover=t,this.presets=i,this.calendar=r,t.addEventListener("beforetoggle",this.#n),t.addEventListener("toggle",this.#s),t.addEventListener("focusout",this.#o),t.addEventListener("click",this.#l),r.addEventListener("und-change",this.#d),r.addEventListener("und-view-change",s=>s.stopPropagation()),this.refreshLabels(),{button:e,popover:t}}refreshLabels(){let e=this.#t.getLabel()||j().chooseDate;this.button.setAttribute("aria-label",e),this.popover.setAttribute("aria-label",e)}setDisabled(e){this.button.disabled=e,e&&this.close()}open(){this.isOpen||this.button.disabled||this.popover.showPopover({source:this.button})}close(){this.isOpen&&this.popover.hidePopover()}hostDisconnected(){this.#i.stop()}#n=e=>{if(e.newState==="open"){let t=T();this.#r=t instanceof HTMLElement&&S(this.#e,t)?t:this.button,this.#t.configure(this.calendar),this.calendar.resetView()}};#s=e=>{let t=e.newState==="open";if(this.button.setAttribute("aria-expanded",String(t)),t){this.#i.start(),this.calendar.focusDay();return}this.#i.stop();let i=T();(!i||i===document.body||S(this.popover,i))&&this.#a()};#o=e=>{let t=e.relatedTarget;!(t instanceof Node)||S(this.popover,t)||t===this.button||this.close()};#d=e=>{let t=e.detail;e.stopPropagation(),this.#t.onChange(t)&&(this.close(),this.#a())};#a(){let e=this.#r?.isConnected?this.#r:this.button;e.hasAttribute("disabled")||e.focus()}#l=e=>{let t=e.target;if(!(t instanceof Element))return;let i=t.closest("[data-start][data-end]");!i||!this.presets.contains(i)||!this.#t.onPreset||(this.#t.onPreset(i.dataset.start??"",i.dataset.end??""),this.close(),this.#a())}};function Wt(n){let{day:e,month:t,year:i}=j();return n.pattern({d:e,m:t,y:i})}function ft(n,e){let t=j(),i=n.trim();if(!i)return{iso:"",message:""};let r=e.format.parse(i);if(!r)return{iso:"",message:re(t.invalidDate,{pattern:Wt(e.format)})};let s=Ce(r),o=A(e.min),l=A(e.max),d="";if(o&&Y(r,o)<0)d=re(t.dateBeforeMin,{date:ds(e.locale,o)});else if(l&&Y(r,l)>0)d=re(t.dateAfterMax,{date:ds(e.locale,l)});else{let h;try{h=!!e.isDisabled?.(s)}catch{h=!1}h&&(d=t.dateUnavailable)}return{iso:s,message:d}}var st=u` @layer und.components{.und-date-field__button{display:inline-grid;flex:none;place-items:center;box-sizing:border-box;inline-size:var(--und-date-input-button-size,1.5rem);block-size:var(--und-date-input-button-size,1.5rem);margin-block:-0.125rem;padding:0;border:0;border-radius:var(--und-shape-control,0.375rem);background:transparent;color:var(--und-fg-muted,#62646e);transition:background-color var(--und-motion-hover,130ms) ease;cursor:pointer}@media (hover:hover) and (forced-colors:none){.und-date-field__button:hover:not(:disabled){background:var(--und-bg-muted,#f1f2f6)}}.und-date-field__button:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:var(--und-focus-offset,2px)}.und-date-field__button:disabled{cursor:not-allowed}.und-date-field__button svg{inline-size:1.25rem;block-size:1.25rem;fill:none;stroke:currentcolor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.und-date-field__popover{box-sizing:border-box;inset:auto;inline-size:max-content;max-inline-size:calc(100vw - 1rem);max-block-size:calc(100dvh - 1rem);margin:0;padding:0;overflow:auto;border:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3);border-radius:var(--und-popover-radius,var(--und-shape-popover,0.5rem));background:var(--und-bg-raised,#fff);color:var(--und-fg-default,#23252c);box-shadow:var(--und-shadow-2,0 2px 4px #13151f0f,0 4px 12px #13151f1a)}.und-date-field__popover:not([popover]){display:none}.und-date-field__presets{display:flex;flex-wrap:wrap;gap:var(--und-space-2,0.5rem);padding:var(--und-space-3,0.75rem) var(--und-space-3,0.75rem) 0}.und-date-field__presets:empty{display:none}.und-date-field__range{display:flex;flex:1 1 auto;gap:var(--und-control-gap,0.5rem);align-items:center;min-inline-size:0}.und-date-field__range .und-text-field__input{min-inline-size:5.5rem}.und-date-field__separator{flex:none;color:var(--und-fg-muted,#62646e)}.und-date-field__sr{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.und-date-time-input__row{display:flex;flex-wrap:wrap;gap:var(--und-space-3,0.75rem)}.und-date-time-input__row > *{flex:1 1 10rem}@media (pointer:coarse){.und-date-field__button{inline-size:max( var(--und-date-input-button-size,1.75rem),var(--und-target-min-coarse,44px) );block-size:max( var(--und-date-input-button-size,1.75rem),var(--und-target-min-coarse,44px) )}}@media (forced-colors:active){.und-date-field__button{color:ButtonText}.und-date-field__button:focus-visible{outline-color:Highlight}.und-date-field__button:disabled{color:GrayText}.und-date-field__popover{border-color:CanvasText}}}@layer und.base{und-date-input,und-date-range-input,und-time-input,und-date-time-input{min-inline-size:180px}}@layer und.base{und-date-input:not(:defined),und-date-range-input:not(:defined),und-time-input:not(:defined),und-date-time-input:not(:defined){display:block;min-block-size:calc(1.4 * 0.875rem + 0.375rem + 2.5rem)}}
16654
+ </td>`}};Ae.define();var nl="http://www.w3.org/2000/svg",Kc="M8 2v4M16 2v4M3 10h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z";function Gc(){let n=document.createElementNS(nl,"svg");n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("aria-hidden","true"),n.setAttribute("focusable","false");let e=document.createElementNS(nl,"path");return e.setAttribute("d",Kc),n.append(e),n}var It=class{#e;#t;#i;button;popover;presets;calendar;#r=null;constructor(e,t){this.#e=e,this.#t=t,this.#i=new O(e,{getAnchor:t.getAnchor,getFloating:()=>this.popover??null,getDirection:t.getDirection,placement:"bottom-start",offset:4}),e.addController(this)}get isOpen(){return!!this.popover?.matches(":popover-open")}hostConnected(){}build(){let e=g("button","und-date-field__button","calendar-button");e.type="button",e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","false"),e.append(Gc());let t=g("div","und-date-field__popover","popover");t.popover="auto",t.setAttribute("role","dialog");let i=g("div","und-date-field__presets","presets"),r=document.createElement("und-calendar");return t.append(i,r),e.popoverTargetElement=t,this.button=e,this.popover=t,this.presets=i,this.calendar=r,t.addEventListener("beforetoggle",this.#n),t.addEventListener("toggle",this.#s),t.addEventListener("focusout",this.#o),t.addEventListener("click",this.#l),r.addEventListener("und-change",this.#d),r.addEventListener("und-view-change",s=>s.stopPropagation()),this.refreshLabels(),{button:e,popover:t}}refreshLabels(){let e=this.#t.getLabel()||j().chooseDate;this.button.setAttribute("aria-label",e),this.popover.setAttribute("aria-label",e)}setDisabled(e){this.button.disabled=e,e&&this.close()}open(){this.isOpen||this.button.disabled||this.popover.showPopover({source:this.button})}close(){this.isOpen&&this.popover.hidePopover()}hostDisconnected(){this.#i.stop()}#n=e=>{if(e.newState==="open"){let t=T();this.#r=t instanceof HTMLElement&&S(this.#e,t)?t:this.button,this.#t.configure(this.calendar),this.calendar.resetView()}};#s=e=>{let t=e.newState==="open";if(this.button.setAttribute("aria-expanded",String(t)),t){this.#i.start(),this.calendar.focusDay();return}this.#i.stop();let i=T();(!i||i===document.body||S(this.popover,i))&&this.#a()};#o=e=>{let t=e.relatedTarget;!(t instanceof Node)||S(this.popover,t)||t===this.button||this.close()};#d=e=>{let t=e.detail;e.stopPropagation(),this.#t.onChange(t)&&(this.close(),this.#a())};#a(){let e=this.#r?.isConnected?this.#r:this.button;e.hasAttribute("disabled")||e.focus()}#l=e=>{let t=e.target;if(!(t instanceof Element))return;let i=t.closest("[data-start][data-end]");!i||!this.presets.contains(i)||!this.#t.onPreset||(this.#t.onPreset(i.dataset.start??"",i.dataset.end??""),this.close(),this.#a())}};function Wt(n){let{day:e,month:t,year:i}=j();return n.pattern({d:e,m:t,y:i})}function ft(n,e){let t=j(),i=n.trim();if(!i)return{iso:"",message:""};let r=e.format.parse(i);if(!r)return{iso:"",message:re(t.invalidDate,{pattern:Wt(e.format)})};let s=Ce(r),o=A(e.min),a=A(e.max),d="";if(o&&Y(r,o)<0)d=re(t.dateBeforeMin,{date:ds(e.locale,o)});else if(a&&Y(r,a)>0)d=re(t.dateAfterMax,{date:ds(e.locale,a)});else{let h;try{h=!!e.isDisabled?.(s)}catch{h=!1}h&&(d=t.dateUnavailable)}return{iso:s,message:d}}var st=u` @layer und.components{.und-date-field__button{display:inline-grid;flex:none;place-items:center;box-sizing:border-box;inline-size:var(--und-date-input-button-size,1.5rem);block-size:var(--und-date-input-button-size,1.5rem);margin-block:-0.125rem;padding:0;border:0;border-radius:var(--und-shape-control,0.375rem);background:transparent;color:var(--und-fg-muted,#62646e);transition:background-color var(--und-motion-hover,130ms) ease;cursor:pointer}@media (hover:hover) and (forced-colors:none){.und-date-field__button:hover:not(:disabled){background:var(--und-bg-muted,#f1f2f6)}}.und-date-field__button:focus-visible{outline:var(--und-focus-width,2px) solid var(--und-focus-ring,#4b4dd5);outline-offset:var(--und-focus-offset,2px)}.und-date-field__button:disabled{cursor:not-allowed}.und-date-field__button svg{inline-size:1.25rem;block-size:1.25rem;fill:none;stroke:currentcolor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.und-date-field__popover{box-sizing:border-box;inset:auto;inline-size:max-content;max-inline-size:calc(100vw - 1rem);max-block-size:calc(100dvh - 1rem);margin:0;padding:0;overflow:auto;border:var(--und-border-width,1px) solid var(--und-border-subtle,#d9dbe3);border-radius:var(--und-popover-radius,var(--und-shape-popover,0.5rem));background:var(--und-bg-raised,#fff);color:var(--und-fg-default,#23252c);box-shadow:var(--und-shadow-2,0 2px 4px #13151f0f,0 4px 12px #13151f1a)}.und-date-field__popover:not([popover]){display:none}.und-date-field__presets{display:flex;flex-wrap:wrap;gap:var(--und-space-2,0.5rem);padding:var(--und-space-3,0.75rem) var(--und-space-3,0.75rem) 0}.und-date-field__presets:empty{display:none}.und-date-field__range{display:flex;flex:1 1 auto;gap:var(--und-control-gap,0.5rem);align-items:center;min-inline-size:0}.und-date-field__range .und-text-field__input{min-inline-size:5.5rem}.und-date-field__separator{flex:none;color:var(--und-fg-muted,#62646e)}.und-date-field__sr{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.und-date-time-input__row{display:flex;flex-wrap:wrap;gap:var(--und-space-3,0.75rem)}.und-date-time-input__row > *{flex:1 1 10rem}@media (pointer:coarse){.und-date-field__button{inline-size:max( var(--und-date-input-button-size,1.75rem),var(--und-target-min-coarse,44px) );block-size:max( var(--und-date-input-button-size,1.75rem),var(--und-target-min-coarse,44px) )}}@media (forced-colors:active){.und-date-field__button{color:ButtonText}.und-date-field__button:focus-visible{outline-color:Highlight}.und-date-field__button:disabled{color:GrayText}.und-date-field__popover{border-color:CanvasText}}}@layer und.base{und-date-input,und-date-range-input,und-time-input,und-date-time-input{min-inline-size:180px}}@layer und.base{und-date-input:not(:defined),und-date-range-input:not(:defined),und-time-input:not(:defined),und-date-time-input:not(:defined){display:block;min-block-size:calc(1.4 * 0.875rem + 0.375rem + 2.5rem)}}
16653
16655
 
16654
16656
 
16655
16657
 
@@ -16832,7 +16834,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16832
16834
 
16833
16835
 
16834
16836
 
16835
- `;var _n=["aria-labelledby","aria-describedby"],ot=class{#e="";#t="";absorb(e){let t=e.getAttribute("aria-labelledby");t!==null&&(this.#e=t,e.removeAttribute("aria-labelledby"));let i=e.getAttribute("aria-describedby");i!==null&&(this.#t=i,e.removeAttribute("aria-describedby"))}applyTo(e){this.#e&&e.setAttribute("aria-labelledby",this.#e),this.#t&&e.setAttribute("aria-describedby",U(e.getAttribute("aria-describedby"),this.#t))}static fallbackName(e,t,i,r){r||t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby")||e.closest("und-form-field")&&t.setAttribute("aria-label",i)}};var Bt=class extends F{static tagName="und-date-input";static lightStyles=[z,L,ae,st];static define(e){super.define(e),Ae.define()}static properties={value:{reflect:!0},defaultValue:{attribute:"default-value"},min:{},max:{},locale:{},format:{reflect:!0},size:{reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},placeholder:{},autocomplete:{},weekStart:{type:Number,attribute:"week-start"},months:{type:Number},isDateDisabled:{attribute:!1}};static get observedAttributes(){return[...super.observedAttributes,..._n]}#e=new y(this);#t=new ot;#i=new It(this,{getAnchor:()=>this.#r??null,getDirection:()=>this.#e.dir,getLabel:()=>this.label??"",configure:e=>this.#u(e),onChange:e=>this.#h(e)});#r;#n;#s;#o;#d="";#a="";constructor(){super(),this.value="",this.format="locale",this.size="md",this.readOnly=!1}get input(){return this.control}openCalendar(){this.#i.open()}closeCalendar(){this.#i.close()}#l(){return nt(this.locale||this.#e.lang)}#c(){return kn(this.#l(),this.format==="iso"?"iso":"locale")}findProvidedControl(){return this.querySelector(`:scope > input:not([${B}])`)}createControl(){let e=g("input","und-text-field__input","control");return e.type="text",e}assemble(e){let t=e.control;t.classList.add("und-text-field__input"),t.type="text";let i=t.value?this.#c().parse(t.value):null;!this.value&&i&&(this.value=Ce(i)),this.defaultValue??=this.value,this.#a=this.value;let r=g("div","und-field","field"),s=g("div","und-text-field","box");this.#r=s;let{button:o,popover:l}=this.#i.build(),d=g("span","und-text-field__adornment","end");d.append(o),s.append(t,d);let h=g("input","und-date-field__value","value");h.type="hidden",this.#n=h;let f=g("span","und-date-field__sr","format-hint");f.id=`${this.baseId}-format`,this.#s=f,r.append(e.label,e.description,s,f,l,h,e.error),this.prepend(r),s.addEventListener("click",m=>{m.target===s&&t.focus()}),t.addEventListener("input",()=>this.#f()),t.addEventListener("change",()=>this.#m()),t.addEventListener("keydown",m=>{m.altKey&&m.key==="ArrowDown"&&(m.preventDefault(),this.#i.open())})}#u(e){e.mode="single",e.value=A(this.value)?this.value:"",e.min=this.min,e.max=this.max,e.locale=this.#l(),e.weekStart=this.weekStart,e.months=this.months??1,e.isDateDisabled=this.isDateDisabled}#h(e){let t=this.input,i=A(e.value);return!t||!i?!1:(t.value=this.#c().format(i),t.dispatchEvent(new Event("input",{bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0})),!0)}#p(e){return ft(e,{format:this.#c(),locale:this.#l(),min:this.min,max:this.max,isDisabled:this.isDateDisabled})}#f(){let e=this.input;if(!e)return;let{iso:t}=this.#p(e.value);this.#o=t,this.value=t,this.#n&&(this.#n.value=t),this.#b()}#m(){let e=this.input;if(!e)return;let t=A(this.value);t&&(e.value=this.#c().format(t)),this.value!==this.#a&&(this.#a=this.value,this.emit("und-change",{value:this.value}))}#b(){let e=this.input;!e||this.error||e.setCustomValidity(this.#p(e.value).message)}resetControl(){let e=this.input;if(!e)return;let t=this.defaultValue??"",i=A(t);e.value=i?this.#c().format(i):"",this.#o=t,this.value=t,this.#a=t,this.#n&&(this.#n.value=t),this.#b()}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),i!==null&&e.startsWith("aria-")&&this.requestUpdate()}updated(e){this.#t.absorb(this),this.input&&ot.fallbackName(this,this.input,j().date,!!this.label),super.updated(e);let t=this.input;if(!t)return;let i=this.#c(),r=`${this.#l()}|${this.format}`,s=A(this.value);this.value!==this.#o?(t.value=s?i.format(s):"",this.#o=this.value):r!==this.#d&&s&&(t.value=i.format(s)),this.#d=r,t.type="text",t.readOnly=this.readOnly,t.removeAttribute("name"),t.setAttribute("autocomplete",this.autocomplete??"off");let o=Wt(i);t.placeholder=this.placeholder??o,this.#s&&(this.#s.textContent=re(j().formatHint,{pattern:o}),t.setAttribute("aria-describedby",U(t.getAttribute("aria-describedby"),this.#s.id))),this.#t.applyTo(t),this.#n&&(this.name?this.#n.name=this.name:this.#n.removeAttribute("name"),this.#n.value=this.value,this.#n.disabled=this.disabled),this.#i.setDisabled(this.disabled||this.readOnly),this.#i.refreshLabels(),this.#b(),this.#r?.classList.toggle("und-text-field--sm",this.size==="sm"),this.#r?.classList.toggle("und-text-field--lg",this.size==="lg")}};Bt.define();var zn=class extends F{static tagName="und-date-range-input";static lightStyles=[z,L,ae,st];static define(e){super.define(e),Ae.define()}static properties={start:{reflect:!0},end:{reflect:!0},defaultStart:{attribute:"default-start"},defaultEnd:{attribute:"default-end"},min:{},max:{},locale:{},format:{reflect:!0},size:{reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},weekStart:{type:Number,attribute:"week-start"},months:{type:Number},isDateDisabled:{attribute:!1}};#e=new y(this);#t=new It(this,{getAnchor:()=>this.#i??null,getDirection:()=>this.#e.dir,getLabel:()=>this.label??"",configure:e=>this.#b(e),onChange:e=>this.#g(e),onPreset:(e,t)=>{A(e)&&A(t)&&this.#v(e,t,!0)}});#i;#r;#n;#s;#o;#d;#a;#l={start:void 0,end:void 0};#c="";#u="";#h="";constructor(){super(),this.start="",this.end="",this.format="locale",this.size="md",this.readOnly=!1}get input(){return this.control}get endInput(){return this.#r}openCalendar(){this.#t.open()}closeCalendar(){this.#t.close()}#p(){return nt(this.locale||this.#e.lang)}#f(){return kn(this.#p(),this.format==="iso"?"iso":"locale")}createControl(){let e=g("input","und-text-field__input","control");return e.type="text",e}createLabel(){let e=g("span","und-field__label","label");return e.id=`${this.baseId}-label`,e}get shownError(){return super.shownError||this.#h}assemble(e){let t=e.control,i=g("input","und-text-field__input","control-end");i.type="text",i.id=`${this.baseId}-end`,this.#r=i,t.classList.add("und-text-field__input"),this.defaultStart??=this.start,this.defaultEnd??=this.end,this.#u=`${this.start}/${this.end}`;let r=g("div","und-field","field"),s=g("div","und-text-field","box");this.#i=s;let o=g("div","und-date-field__range","range");o.setAttribute("role","group"),o.setAttribute("aria-labelledby",e.label.id);let l=g("label","und-date-field__sr","start-label");l.htmlFor=t.id;let d=g("label","und-date-field__sr","end-label");d.htmlFor=i.id,this.#d=l,this.#a=d;let h=g("span","und-date-field__separator","separator");h.setAttribute("aria-hidden","true"),h.textContent="\u2013",o.append(l,t,h,d,i);let{button:f,popover:m}=this.#t.build(),v=[...this.querySelectorAll(':scope > [slot="presets"]')];this.#t.presets.append(...v);let x=g("span","und-text-field__adornment","end");x.append(f),s.append(o,x);let w=g("span","und-date-field__sr","format-hint");w.id=`${this.baseId}-format`,this.#o=w;let $=g("input","und-date-field__value","value-start"),_=g("input","und-date-field__value","value-end");$.type="hidden",_.type="hidden",this.#n=$,this.#s=_,r.append(e.label,e.description,s,w,m,$,_,e.error),this.prepend(r),e.label.addEventListener("click",()=>t.focus()),s.addEventListener("click",I=>{I.target===s&&t.focus()});for(let I of[t,i])I.addEventListener("input",()=>this.#y()),I.addEventListener("change",()=>this.#_()),I.addEventListener("keydown",q=>{q.altKey&&q.key==="ArrowDown"&&(q.preventDefault(),this.#t.open())});i.addEventListener("invalid",()=>{this.error||(this.#h=i.validationMessage,this.requestUpdate())}),i.addEventListener("input",()=>this.#m())}#m(){let e=this.#r;!e||!this.#h||(this.#h=e.validity.valid?"":e.validationMessage,this.requestUpdate())}#b(e){e.mode="range",e.start=A(this.start)?this.start:"",e.end=A(this.end)?this.end:"",e.min=this.min,e.max=this.max,e.locale=this.#p(),e.weekStart=this.weekStart,e.months=this.months??2,e.isDateDisabled=this.isDateDisabled}#g(e){return this.#v(e.start,e.end,e.complete),e.complete}#v(e,t,i){let r=this.input,s=this.#r;if(!r||!s)return;let o=this.#f(),l=A(e),d=A(t);r.value=l?o.format(l):"",s.value=d?o.format(d):"",r.dispatchEvent(new Event("input",{bubbles:!0})),i&&r.dispatchEvent(new Event("change",{bubbles:!0}))}#x(){return{format:this.#f(),locale:this.#p(),min:this.min,max:this.max,isDisabled:this.isDateDisabled}}#y(){let e=this.input,t=this.#r;if(!e||!t)return;let i=this.#x(),r=ft(e.value,i).iso,s=ft(t.value,i).iso;this.#l={start:r,end:s},this.start=r,this.end=s,this.#n&&(this.#n.value=r),this.#s&&(this.#s.value=s),this.#k()}#_(){let e=this.input,t=this.#r;if(!e||!t)return;let i=this.#f(),r=A(this.start),s=A(this.end);r&&(e.value=i.format(r)),s&&(t.value=i.format(s));let o=!!this.start!=!!this.end,l=`${this.start}/${this.end}`;!o&&l!==this.#u&&(this.#u=l,this.emit("und-change",{start:this.start,end:this.end}))}#k(){let e=this.input,t=this.#r;if(!e||!t)return;let i=this.#x(),r=ft(e.value,i),s=ft(t.value,i),o=s.message,l=A(r.iso),d=A(s.iso);!o&&l&&d&&Y(d,l)<0&&(o=j().rangeOrder),this.error||e.setCustomValidity(r.message),t.setCustomValidity(this.error?"":o)}resetControl(){let e=this.input,t=this.#r;if(!e||!t)return;let i=this.#f(),r=this.defaultStart??"",s=this.defaultEnd??"",o=A(r),l=A(s);e.value=o?i.format(o):"",t.value=l?i.format(l):"",this.#l={start:r,end:s},this.start=r,this.end=s,this.#u=`${r}/${s}`,this.#h="",this.#k()}updated(e){super.updated(e);let t=this.input,i=this.#r;if(!t||!i)return;let r=this.#f(),s=`${this.#p()}|${this.format}`,o=s!==this.#c,l=(m,v,x)=>{let w=A(v);v!==this.#l[x]?(m.value=w?r.format(w):"",this.#l[x]=v):o&&w&&(m.value=r.format(w))};l(t,this.start,"start"),l(i,this.end,"end"),this.#c=s;let d=j(),h=Wt(r);for(let m of[t,i])m.type="text",m.readOnly=this.readOnly,m.removeAttribute("name"),m.autocomplete="off",m.placeholder=h,m.required=this.required,m.disabled=this.disabled;this.#d&&(this.#d.textContent=d.startDate),this.#a&&(this.#a.textContent=d.endDate),this.#o&&(this.#o.textContent=re(d.formatHint,{pattern:h}),t.setAttribute("aria-describedby",U(t.getAttribute("aria-describedby"),this.#o.id)));let f=t.getAttribute("aria-describedby");f?i.setAttribute("aria-describedby",f):i.removeAttribute("aria-describedby"),this.shownError?i.setAttribute("aria-invalid","true"):i.removeAttribute("aria-invalid");for(let[m,v,x]of[[this.#n,"start",this.start],[this.#s,"end",this.end]])m&&(this.name?m.name=`${this.name}-${v}`:m.removeAttribute("name"),m.value=x,m.disabled=this.disabled);this.#t.setDisabled(this.disabled||this.readOnly),this.#t.refreshLabels(),this.#k(),this.#i?.classList.toggle("und-text-field--sm",this.size==="sm"),this.#i?.classList.toggle("und-text-field--lg",this.size==="lg")}};zn.define();var Pt=class extends F{static tagName="und-time-input";static lightStyles=[z,L,ae,st];static properties={value:{reflect:!0},defaultValue:{attribute:"default-value"},min:{},max:{},step:{type:Number},locale:{},hourCycle:{attribute:"hour-cycle",reflect:!0},size:{reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},placeholder:{},autocomplete:{}};static get observedAttributes(){return[...super.observedAttributes,..._n]}#e=new y(this);#t=new ot;#i;#r;#n;#s;#o="";#d="";constructor(){super(),this.value="",this.step=1,this.hourCycle="auto",this.size="md",this.readOnly=!1}get input(){return this.control}#a(){return nt(this.locale||this.#e.lang)}#l(){let e=this.hourCycle==="12"||this.hourCycle==="24"?this.hourCycle:"auto";return el(this.#a(),e)}findProvidedControl(){return this.querySelector(`:scope > input:not([${B}])`)}createControl(){let e=g("input","und-text-field__input","control");return e.type="text",e}assemble(e){let t=e.control;t.classList.add("und-text-field__input"),t.type="text";let i=t.value?this.#l().parse(t.value):null;!this.value&&i&&(this.value=cs(i)),this.defaultValue??=this.value,this.#d=this.value;let r=g("div","und-field","field"),s=g("div","und-text-field","box");this.#i=s,s.append(t);let o=g("input","und-date-field__value","value");o.type="hidden",this.#r=o;let l=g("span","und-date-field__sr","format-hint");l.id=`${this.baseId}-format`,this.#n=l,r.append(e.label,e.description,s,l,o,e.error),this.prepend(r),s.addEventListener("click",d=>{d.target===s&&t.focus()}),t.addEventListener("input",()=>this.#h()),t.addEventListener("change",()=>this.#p()),t.addEventListener("keydown",d=>this.#c(d))}#c(e){let t=this.input;if(!t||this.readOnly||e.altKey||e.ctrlKey||e.metaKey||!["ArrowUp","ArrowDown","PageUp","PageDown"].includes(e.key))return;e.preventDefault();let r=e.key==="ArrowUp"||e.key==="PageUp",s=Ee(this.min),o=Ee(this.max),l=this.#l().parse(t.value),d;if(!l)d=s?Re(s):0;else{let m=Re(l);if(e.key.startsWith("Page"))d=m+(r?60:-60);else{let v=Math.max(1,Math.round(this.step)||1);d=r?(Math.floor(m/v)+1)*v:(Math.ceil(m/v)-1)*v}}let h=s?Re(s):0,f=o?Re(o):1439;d=Math.min(Math.max(d,h),Math.max(h,f)),t.value=this.#l().format(tl(d)),t.dispatchEvent(new Event("input",{bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0}))}#u(e){let t=j(),i=this.#l(),r=e.trim();if(!r)return{iso:"",message:""};let s=i.parse(r);if(!s){let h=i.format({h:14,m:30});return{iso:"",message:re(t.invalidTime,{pattern:h})}}let o=Ee(this.min),l=Ee(this.max),d="";return o&&Re(s)<Re(o)?d=re(t.timeBeforeMin,{time:i.format(o)}):l&&Re(s)>Re(l)&&(d=re(t.timeAfterMax,{time:i.format(l)})),{iso:cs(s),message:d}}#h(){let e=this.input;if(!e)return;let{iso:t}=this.#u(e.value);this.#s=t,this.value=t,this.#r&&(this.#r.value=t),this.#f()}#p(){let e=this.input;if(!e)return;let t=Ee(this.value);t&&(e.value=this.#l().format(t)),this.value!==this.#d&&(this.#d=this.value,this.emit("und-change",{value:this.value}))}#f(){let e=this.input;!e||this.error||e.setCustomValidity(this.#u(e.value).message)}resetControl(){let e=this.input;if(!e)return;let t=this.defaultValue??"",i=Ee(t);e.value=i?this.#l().format(i):"",this.#s=t,this.value=t,this.#d=t,this.#r&&(this.#r.value=t),this.#f()}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),i!==null&&e.startsWith("aria-")&&this.requestUpdate()}updated(e){this.#t.absorb(this),this.input&&ot.fallbackName(this,this.input,j().time,!!this.label),super.updated(e);let t=this.input;if(!t)return;let i=this.#l(),r=`${this.#a()}|${this.hourCycle}`,s=Ee(this.value);this.value!==this.#s?(t.value=s?i.format(s):"",this.#s=this.value):r!==this.#o&&s&&(t.value=i.format(s)),this.#o=r,t.type="text",t.readOnly=this.readOnly,t.removeAttribute("name"),t.setAttribute("autocomplete",this.autocomplete??"off");let o=j(),l=i.hour12?`${o.hourMinute} ${i.am}`:o.hourMinute;t.placeholder=this.placeholder??l,this.#n&&(this.#n.textContent=re(o.formatHint,{pattern:l}),t.setAttribute("aria-describedby",U(t.getAttribute("aria-describedby"),this.#n.id))),this.#t.applyTo(t),this.#r&&(this.name?this.#r.name=this.name:this.#r.removeAttribute("name"),this.#r.value=this.value,this.#r.disabled=this.disabled),this.#f(),this.#i?.classList.toggle("und-text-field--sm",this.size==="sm"),this.#i?.classList.toggle("und-text-field--lg",this.size==="lg")}};Pt.define();function Rt(n){let e=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})$/.exec(n??"");return!e?.[1]||!e[2]||!A(e[1])||!Ee(e[2])?["",""]:[e[1],e[2]]}var $n=class extends p{static tagName="und-date-time-input";static formAssociated=!0;static styles=u` :host{display:block}:host([hidden]){display:none}
16837
+ `;var _n=["aria-labelledby","aria-describedby"],ot=class{#e="";#t="";absorb(e){let t=e.getAttribute("aria-labelledby");t!==null&&(this.#e=t,e.removeAttribute("aria-labelledby"));let i=e.getAttribute("aria-describedby");i!==null&&(this.#t=i,e.removeAttribute("aria-describedby"))}applyTo(e){this.#e&&e.setAttribute("aria-labelledby",this.#e),this.#t&&e.setAttribute("aria-describedby",U(e.getAttribute("aria-describedby"),this.#t))}static fallbackName(e,t,i,r){r||t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby")||e.closest("und-form-field")&&t.setAttribute("aria-label",i)}};var Bt=class extends F{static tagName="und-date-input";static lightStyles=[z,L,ae,st];static define(e){super.define(e),Ae.define()}static properties={value:{reflect:!0},defaultValue:{attribute:"default-value"},min:{},max:{},locale:{},format:{reflect:!0},size:{reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},placeholder:{},autocomplete:{},weekStart:{type:Number,attribute:"week-start"},months:{type:Number},isDateDisabled:{attribute:!1}};static get observedAttributes(){return[...super.observedAttributes,..._n]}#e=new y(this);#t=new ot;#i=new It(this,{getAnchor:()=>this.#r??null,getDirection:()=>this.#e.dir,getLabel:()=>this.label??"",configure:e=>this.#u(e),onChange:e=>this.#h(e)});#r;#n;#s;#o;#d="";#a="";constructor(){super(),this.value="",this.format="locale",this.size="md",this.readOnly=!1}get input(){return this.control}openCalendar(){this.#i.open()}closeCalendar(){this.#i.close()}#l(){return nt(this.locale||this.#e.lang)}#c(){return kn(this.#l(),this.format==="iso"?"iso":"locale")}findProvidedControl(){return this.querySelector(`:scope > input:not([${B}])`)}createControl(){let e=g("input","und-text-field__input","control");return e.type="text",e}assemble(e){let t=e.control;t.classList.add("und-text-field__input"),t.type="text";let i=t.value?this.#c().parse(t.value):null;!this.value&&i&&(this.value=Ce(i)),this.defaultValue??=this.value,this.#a=this.value;let r=g("div","und-field","field"),s=g("div","und-text-field","box");this.#r=s;let{button:o,popover:a}=this.#i.build(),d=g("span","und-text-field__adornment","end");d.append(o),s.append(t,d);let h=g("input","und-date-field__value","value");h.type="hidden",this.#n=h;let f=g("span","und-date-field__sr","format-hint");f.id=`${this.baseId}-format`,this.#s=f,r.append(e.label,e.description,s,f,a,h,e.error),this.prepend(r),s.addEventListener("click",m=>{m.target===s&&t.focus()}),t.addEventListener("input",()=>this.#f()),t.addEventListener("change",()=>this.#m()),t.addEventListener("keydown",m=>{m.altKey&&m.key==="ArrowDown"&&(m.preventDefault(),this.#i.open())})}#u(e){e.mode="single",e.value=A(this.value)?this.value:"",e.min=this.min,e.max=this.max,e.locale=this.#l(),e.weekStart=this.weekStart,e.months=this.months??1,e.isDateDisabled=this.isDateDisabled}#h(e){let t=this.input,i=A(e.value);return!t||!i?!1:(t.value=this.#c().format(i),t.dispatchEvent(new Event("input",{bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0})),!0)}#p(e){return ft(e,{format:this.#c(),locale:this.#l(),min:this.min,max:this.max,isDisabled:this.isDateDisabled})}#f(){let e=this.input;if(!e)return;let{iso:t}=this.#p(e.value);this.#o=t,this.value=t,this.#n&&(this.#n.value=t),this.#b()}#m(){let e=this.input;if(!e)return;let t=A(this.value);t&&(e.value=this.#c().format(t)),this.value!==this.#a&&(this.#a=this.value,this.emit("und-change",{value:this.value}))}#b(){let e=this.input;!e||this.error||e.setCustomValidity(this.#p(e.value).message)}resetControl(){let e=this.input;if(!e)return;let t=this.defaultValue??"",i=A(t);e.value=i?this.#c().format(i):"",this.#o=t,this.value=t,this.#a=t,this.#n&&(this.#n.value=t),this.#b()}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),i!==null&&e.startsWith("aria-")&&this.requestUpdate()}updated(e){this.#t.absorb(this),this.input&&ot.fallbackName(this,this.input,j().date,!!this.label),super.updated(e);let t=this.input;if(!t)return;let i=this.#c(),r=`${this.#l()}|${this.format}`,s=A(this.value);this.value!==this.#o?(t.value=s?i.format(s):"",this.#o=this.value):r!==this.#d&&s&&(t.value=i.format(s)),this.#d=r,t.type="text",t.readOnly=this.readOnly,t.removeAttribute("name"),t.setAttribute("autocomplete",this.autocomplete??"off");let o=Wt(i);t.placeholder=this.placeholder??o,this.#s&&(this.#s.textContent=re(j().formatHint,{pattern:o}),t.setAttribute("aria-describedby",U(t.getAttribute("aria-describedby"),this.#s.id))),this.#t.applyTo(t),this.#n&&(this.name?this.#n.name=this.name:this.#n.removeAttribute("name"),this.#n.value=this.value,this.#n.disabled=this.disabled),this.#i.setDisabled(this.disabled||this.readOnly),this.#i.refreshLabels(),this.#b(),this.#r?.classList.toggle("und-text-field--sm",this.size==="sm"),this.#r?.classList.toggle("und-text-field--lg",this.size==="lg")}};Bt.define();var zn=class extends F{static tagName="und-date-range-input";static lightStyles=[z,L,ae,st];static define(e){super.define(e),Ae.define()}static properties={start:{reflect:!0},end:{reflect:!0},defaultStart:{attribute:"default-start"},defaultEnd:{attribute:"default-end"},min:{},max:{},locale:{},format:{reflect:!0},size:{reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},weekStart:{type:Number,attribute:"week-start"},months:{type:Number},isDateDisabled:{attribute:!1}};#e=new y(this);#t=new It(this,{getAnchor:()=>this.#i??null,getDirection:()=>this.#e.dir,getLabel:()=>this.label??"",configure:e=>this.#b(e),onChange:e=>this.#v(e),onPreset:(e,t)=>{A(e)&&A(t)&&this.#g(e,t,!0)}});#i;#r;#n;#s;#o;#d;#a;#l={start:void 0,end:void 0};#c="";#u="";#h="";constructor(){super(),this.start="",this.end="",this.format="locale",this.size="md",this.readOnly=!1}get input(){return this.control}get endInput(){return this.#r}openCalendar(){this.#t.open()}closeCalendar(){this.#t.close()}#p(){return nt(this.locale||this.#e.lang)}#f(){return kn(this.#p(),this.format==="iso"?"iso":"locale")}createControl(){let e=g("input","und-text-field__input","control");return e.type="text",e}createLabel(){let e=g("span","und-field__label","label");return e.id=`${this.baseId}-label`,e}get shownError(){return super.shownError||this.#h}assemble(e){let t=e.control,i=g("input","und-text-field__input","control-end");i.type="text",i.id=`${this.baseId}-end`,this.#r=i,t.classList.add("und-text-field__input"),this.defaultStart??=this.start,this.defaultEnd??=this.end,this.#u=`${this.start}/${this.end}`;let r=g("div","und-field","field"),s=g("div","und-text-field","box");this.#i=s;let o=g("div","und-date-field__range","range");o.setAttribute("role","group"),o.setAttribute("aria-labelledby",e.label.id);let a=g("label","und-date-field__sr","start-label");a.htmlFor=t.id;let d=g("label","und-date-field__sr","end-label");d.htmlFor=i.id,this.#d=a,this.#a=d;let h=g("span","und-date-field__separator","separator");h.setAttribute("aria-hidden","true"),h.textContent="\u2013",o.append(a,t,h,d,i);let{button:f,popover:m}=this.#t.build(),v=[...this.querySelectorAll(':scope > [slot="presets"]')];this.#t.presets.append(...v);let x=g("span","und-text-field__adornment","end");x.append(f),s.append(o,x);let w=g("span","und-date-field__sr","format-hint");w.id=`${this.baseId}-format`,this.#o=w;let $=g("input","und-date-field__value","value-start"),_=g("input","und-date-field__value","value-end");$.type="hidden",_.type="hidden",this.#n=$,this.#s=_,r.append(e.label,e.description,s,w,m,$,_,e.error),this.prepend(r),e.label.addEventListener("click",()=>t.focus()),s.addEventListener("click",I=>{I.target===s&&t.focus()});for(let I of[t,i])I.addEventListener("input",()=>this.#y()),I.addEventListener("change",()=>this.#_()),I.addEventListener("keydown",q=>{q.altKey&&q.key==="ArrowDown"&&(q.preventDefault(),this.#t.open())});i.addEventListener("invalid",()=>{this.error||(this.#h=i.validationMessage,this.requestUpdate())}),i.addEventListener("input",()=>this.#m())}#m(){let e=this.#r;!e||!this.#h||(this.#h=e.validity.valid?"":e.validationMessage,this.requestUpdate())}#b(e){e.mode="range",e.start=A(this.start)?this.start:"",e.end=A(this.end)?this.end:"",e.min=this.min,e.max=this.max,e.locale=this.#p(),e.weekStart=this.weekStart,e.months=this.months??2,e.isDateDisabled=this.isDateDisabled}#v(e){return this.#g(e.start,e.end,e.complete),e.complete}#g(e,t,i){let r=this.input,s=this.#r;if(!r||!s)return;let o=this.#f(),a=A(e),d=A(t);r.value=a?o.format(a):"",s.value=d?o.format(d):"",r.dispatchEvent(new Event("input",{bubbles:!0})),i&&r.dispatchEvent(new Event("change",{bubbles:!0}))}#x(){return{format:this.#f(),locale:this.#p(),min:this.min,max:this.max,isDisabled:this.isDateDisabled}}#y(){let e=this.input,t=this.#r;if(!e||!t)return;let i=this.#x(),r=ft(e.value,i).iso,s=ft(t.value,i).iso;this.#l={start:r,end:s},this.start=r,this.end=s,this.#n&&(this.#n.value=r),this.#s&&(this.#s.value=s),this.#w()}#_(){let e=this.input,t=this.#r;if(!e||!t)return;let i=this.#f(),r=A(this.start),s=A(this.end);r&&(e.value=i.format(r)),s&&(t.value=i.format(s));let o=!!this.start!=!!this.end,a=`${this.start}/${this.end}`;!o&&a!==this.#u&&(this.#u=a,this.emit("und-change",{start:this.start,end:this.end}))}#w(){let e=this.input,t=this.#r;if(!e||!t)return;let i=this.#x(),r=ft(e.value,i),s=ft(t.value,i),o=s.message,a=A(r.iso),d=A(s.iso);!o&&a&&d&&Y(d,a)<0&&(o=j().rangeOrder),this.error||e.setCustomValidity(r.message),t.setCustomValidity(this.error?"":o)}resetControl(){let e=this.input,t=this.#r;if(!e||!t)return;let i=this.#f(),r=this.defaultStart??"",s=this.defaultEnd??"",o=A(r),a=A(s);e.value=o?i.format(o):"",t.value=a?i.format(a):"",this.#l={start:r,end:s},this.start=r,this.end=s,this.#u=`${r}/${s}`,this.#h="",this.#w()}updated(e){super.updated(e);let t=this.input,i=this.#r;if(!t||!i)return;let r=this.#f(),s=`${this.#p()}|${this.format}`,o=s!==this.#c,a=(m,v,x)=>{let w=A(v);v!==this.#l[x]?(m.value=w?r.format(w):"",this.#l[x]=v):o&&w&&(m.value=r.format(w))};a(t,this.start,"start"),a(i,this.end,"end"),this.#c=s;let d=j(),h=Wt(r);for(let m of[t,i])m.type="text",m.readOnly=this.readOnly,m.removeAttribute("name"),m.autocomplete="off",m.placeholder=h,m.required=this.required,m.disabled=this.disabled;this.#d&&(this.#d.textContent=d.startDate),this.#a&&(this.#a.textContent=d.endDate),this.#o&&(this.#o.textContent=re(d.formatHint,{pattern:h}),t.setAttribute("aria-describedby",U(t.getAttribute("aria-describedby"),this.#o.id)));let f=t.getAttribute("aria-describedby");f?i.setAttribute("aria-describedby",f):i.removeAttribute("aria-describedby"),this.shownError?i.setAttribute("aria-invalid","true"):i.removeAttribute("aria-invalid");for(let[m,v,x]of[[this.#n,"start",this.start],[this.#s,"end",this.end]])m&&(this.name?m.name=`${this.name}-${v}`:m.removeAttribute("name"),m.value=x,m.disabled=this.disabled);this.#t.setDisabled(this.disabled||this.readOnly),this.#t.refreshLabels(),this.#w(),this.#i?.classList.toggle("und-text-field--sm",this.size==="sm"),this.#i?.classList.toggle("und-text-field--lg",this.size==="lg")}};zn.define();var Pt=class extends F{static tagName="und-time-input";static lightStyles=[z,L,ae,st];static properties={value:{reflect:!0},defaultValue:{attribute:"default-value"},min:{},max:{},step:{type:Number},locale:{},hourCycle:{attribute:"hour-cycle",reflect:!0},size:{reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},placeholder:{},autocomplete:{}};static get observedAttributes(){return[...super.observedAttributes,..._n]}#e=new y(this);#t=new ot;#i;#r;#n;#s;#o="";#d="";constructor(){super(),this.value="",this.step=1,this.hourCycle="auto",this.size="md",this.readOnly=!1}get input(){return this.control}#a(){return nt(this.locale||this.#e.lang)}#l(){let e=this.hourCycle==="12"||this.hourCycle==="24"?this.hourCycle:"auto";return el(this.#a(),e)}findProvidedControl(){return this.querySelector(`:scope > input:not([${B}])`)}createControl(){let e=g("input","und-text-field__input","control");return e.type="text",e}assemble(e){let t=e.control;t.classList.add("und-text-field__input"),t.type="text";let i=t.value?this.#l().parse(t.value):null;!this.value&&i&&(this.value=cs(i)),this.defaultValue??=this.value,this.#d=this.value;let r=g("div","und-field","field"),s=g("div","und-text-field","box");this.#i=s,s.append(t);let o=g("input","und-date-field__value","value");o.type="hidden",this.#r=o;let a=g("span","und-date-field__sr","format-hint");a.id=`${this.baseId}-format`,this.#n=a,r.append(e.label,e.description,s,a,o,e.error),this.prepend(r),s.addEventListener("click",d=>{d.target===s&&t.focus()}),t.addEventListener("input",()=>this.#h()),t.addEventListener("change",()=>this.#p()),t.addEventListener("keydown",d=>this.#c(d))}#c(e){let t=this.input;if(!t||this.readOnly||e.altKey||e.ctrlKey||e.metaKey||!["ArrowUp","ArrowDown","PageUp","PageDown"].includes(e.key))return;e.preventDefault();let r=e.key==="ArrowUp"||e.key==="PageUp",s=Ee(this.min),o=Ee(this.max),a=this.#l().parse(t.value),d;if(!a)d=s?Re(s):0;else{let m=Re(a);if(e.key.startsWith("Page"))d=m+(r?60:-60);else{let v=Math.max(1,Math.round(this.step)||1);d=r?(Math.floor(m/v)+1)*v:(Math.ceil(m/v)-1)*v}}let h=s?Re(s):0,f=o?Re(o):1439;d=Math.min(Math.max(d,h),Math.max(h,f)),t.value=this.#l().format(tl(d)),t.dispatchEvent(new Event("input",{bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0}))}#u(e){let t=j(),i=this.#l(),r=e.trim();if(!r)return{iso:"",message:""};let s=i.parse(r);if(!s){let h=i.format({h:14,m:30});return{iso:"",message:re(t.invalidTime,{pattern:h})}}let o=Ee(this.min),a=Ee(this.max),d="";return o&&Re(s)<Re(o)?d=re(t.timeBeforeMin,{time:i.format(o)}):a&&Re(s)>Re(a)&&(d=re(t.timeAfterMax,{time:i.format(a)})),{iso:cs(s),message:d}}#h(){let e=this.input;if(!e)return;let{iso:t}=this.#u(e.value);this.#s=t,this.value=t,this.#r&&(this.#r.value=t),this.#f()}#p(){let e=this.input;if(!e)return;let t=Ee(this.value);t&&(e.value=this.#l().format(t)),this.value!==this.#d&&(this.#d=this.value,this.emit("und-change",{value:this.value}))}#f(){let e=this.input;!e||this.error||e.setCustomValidity(this.#u(e.value).message)}resetControl(){let e=this.input;if(!e)return;let t=this.defaultValue??"",i=Ee(t);e.value=i?this.#l().format(i):"",this.#s=t,this.value=t,this.#d=t,this.#r&&(this.#r.value=t),this.#f()}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),i!==null&&e.startsWith("aria-")&&this.requestUpdate()}updated(e){this.#t.absorb(this),this.input&&ot.fallbackName(this,this.input,j().time,!!this.label),super.updated(e);let t=this.input;if(!t)return;let i=this.#l(),r=`${this.#a()}|${this.hourCycle}`,s=Ee(this.value);this.value!==this.#s?(t.value=s?i.format(s):"",this.#s=this.value):r!==this.#o&&s&&(t.value=i.format(s)),this.#o=r,t.type="text",t.readOnly=this.readOnly,t.removeAttribute("name"),t.setAttribute("autocomplete",this.autocomplete??"off");let o=j(),a=i.hour12?`${o.hourMinute} ${i.am}`:o.hourMinute;t.placeholder=this.placeholder??a,this.#n&&(this.#n.textContent=re(o.formatHint,{pattern:a}),t.setAttribute("aria-describedby",U(t.getAttribute("aria-describedby"),this.#n.id))),this.#t.applyTo(t),this.#r&&(this.name?this.#r.name=this.name:this.#r.removeAttribute("name"),this.#r.value=this.value,this.#r.disabled=this.disabled),this.#f(),this.#i?.classList.toggle("und-text-field--sm",this.size==="sm"),this.#i?.classList.toggle("und-text-field--lg",this.size==="lg")}};Pt.define();function Rt(n){let e=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})$/.exec(n??"");return!e?.[1]||!e[2]||!A(e[1])||!Ee(e[2])?["",""]:[e[1],e[2]]}var $n=class extends p{static tagName="und-date-time-input";static formAssociated=!0;static styles=u` :host{display:block}:host([hidden]){display:none}
16836
16838
 
16837
16839
 
16838
16840
 
@@ -16840,7 +16842,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
16840
16842
 
16841
16843
 
16842
16844
 
16843
- `;static define(e){super.define(e),Bt.define(),Pt.define(),Ae.define()}static properties={value:{reflect:!0},defaultValue:{attribute:"default-value"},label:{},description:{},error:{},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},name:{reflect:!0},min:{},max:{},locale:{},hourCycle:{attribute:"hour-cycle"},size:{reflect:!0},weekStart:{type:Number,attribute:"week-start"},isDateDisabled:{attribute:!1}};#e=E("und-date-time-input");#t=!1;#i;#r;#n;#s;#o;#d;#a;#l;#c="";constructor(){super(),this.value="",this.required=!1,this.disabled=!1,this.readOnly=!1,this.size="md"}get dateInput(){return this.#i}get timeInput(){return this.#r}checkValidity(){let e=this.#i?.checkValidity()??!0;return(this.#r?.checkValidity()??!0)&&e}reportValidity(){return(this.#i?.reportValidity()??!0)&&(this.#r?.reportValidity()??!0)}focus(e){this.#i?.focus(e)}connectedCallback(){if(super.connectedCallback(),D(this,[z,L,st]),this.#t)return;this.#t=!0,this.defaultValue??=this.value,this.#c=this.value;let e=g("div","und-field","field"),t=g("span","und-field__label","label");t.id=`${this.#e}-label`;let i=g("p","und-field__description","description");i.id=`${this.#e}-description`;let r=g("p","und-field__error","error");r.id=`${this.#e}-error`,r.hidden=!0;let s=g("div","und-date-time-input__row","row");s.setAttribute("role","group"),s.setAttribute("aria-labelledby",t.id);let o=document.createElement("und-date-input"),l=document.createElement("und-time-input");s.append(o,l);let d=g("input","und-date-field__value","value");d.type="hidden",e.append(t,i,s,d,r),this.prepend(e),this.#i=o,this.#r=l,this.#n=d,this.#s=t,this.#o=i,this.#d=r,this.#a=s,s.addEventListener("input",this.#u),s.addEventListener("und-change",this.#h)}formResetCallback(){this.value=this.defaultValue??"",this.#l=void 0,this.#c=this.value,this.requestUpdate()}formDisabledCallback(e){this.setCustomState("disabled",e||this.disabled)}#u=e=>{(e.target===this.#i?.input||e.target===this.#r?.input)&&this.#p()};#h=e=>{e.stopPropagation(),this.#p(),this.value!==this.#c&&(this.#c=this.value,this.emit("und-change",{value:this.value}))};#p(){let e=this.#i,t=this.#r;if(!e||!t)return;let i=e.value&&t.value?`${e.value}T${t.value}`:"";this.#l=i,this.value=i,this.#n&&(this.#n.value=i),this.#f()}#f(){let e=this.#i,t=this.#r;if(!e||!t)return;e.required=this.required||!!t.value,t.required=this.required||!!e.value;let[i,r]=Rt(this.min),[s,o]=Rt(this.max);t.min=i&&e.value===i?r:void 0,t.max=s&&e.value===s?o:void 0}willUpdate(e){if(e.has("value")&&this.value!==this.#l){let[t,i]=Rt(this.value);this.#i&&this.#r&&(this.#i.value=t,this.#r.value=i),this.#l=this.value}}updated(){let e=this.#i,t=this.#r;if(!e||!t)return;let i=j(),[r,s]=Rt(this.defaultValue),[o]=Rt(this.min),[l]=Rt(this.max);e.label=i.date,t.label=i.time,e.defaultValue=r,t.defaultValue=s,e.min=o||void 0,e.max=l||void 0;for(let d of[e,t])d.disabled=this.disabled,d.readOnly=this.readOnly,d.size=this.size,d.locale=this.locale;e.weekStart=this.weekStart,e.isDateDisabled=this.isDateDisabled,t.hourCycle=this.hourCycle??"auto",this.#f(),this.#n&&(this.name?this.#n.name=this.name:this.#n.removeAttribute("name"),this.#n.value=this.value,this.#n.disabled=this.disabled),this.#m()}#m(){let e=this.#s,t=this.#o,i=this.#d,r=this.#a;if(!e||!t||!i||!r)return;let s=this.label??"";e.hidden=!s,s&&Q(e,s,this.required?"required":void 0),t.textContent=this.description??"",t.hidden=!this.description,oe(i,this.error??""),r.setAttribute("aria-describedby",U(this.description?t.id:"",this.error?i.id:"")),r.getAttribute("aria-describedby")||r.removeAttribute("aria-describedby"),this.setCustomState("invalid",!!this.error)}render(){return a`<slot></slot>`}};$n.define();var Sn=class extends p{static tagName="und-indicator";static properties={type:{reflect:!0},state:{reflect:!0},size:{reflect:!0},disabled:{type:Boolean,reflect:!0}};static styles=u` @layer und.components{:host{--_size:var(--und-indicator-size,24px);--_accent:var(--und-indicator-color,var(--und-accent-solid,#504bf2));--_on:var(--und-indicator-on-color,var(--und-fg-on-accent,#fff));--_border:var(--und-indicator-border-color,var(--und-border-control,#8b8d98));--_bw:var(--und-border-width-thin,1px);--_hover:var(--und-indicator-hover,0);display:inline-flex;flex:none;vertical-align:middle}:host([hidden]),.base.empty{display:none}:host([size='sm']){--_size:var(--und-indicator-size,20px)}.base{box-sizing:border-box;display:flex;flex:none;align-items:center;justify-content:center;inline-size:var(--_size);block-size:var(--_size);border:var(--_bw) solid color-mix(in srgb,var(--_border),currentcolor calc(var(--_hover) * 20%));border-radius:var(--und-indicator-radius,var(--und-radius-sm,4px));background-color:color-mix( in srgb,var(--und-bg-surface,#fff),currentcolor calc(var(--_hover) * 5%) );color:var(--und-fg-default,#1c2024);transition-property:background-color,border-color;transition-duration:var(--und-duration-fast,175ms);transition-timing-function:var(--und-ease-move,ease)}:host([type='radio']) .base{border-radius:50%}:host(:not([state='unchecked'])) .base{border-color:color-mix( in srgb,var(--_accent),var(--und-fg-default,#1c2024) calc(var(--_hover) * 15%) );background-color:color-mix( in srgb,var(--_accent),var(--und-fg-default,#1c2024) calc(var(--_hover) * 15%) );color:var(--_on)}:host([disabled]) .base{--_hover:0;border-color:var(--und-border-subtle,#d9d9e0);opacity:var(--und-disabled-opacity,0.5)}:host([disabled][state='unchecked']) .base{background-color:var(--und-bg-muted,#f0f0f3)}:host([type='check']) .base{inline-size:var(--und-size-icon-sm,1rem);block-size:var(--und-size-icon-sm,1rem);border:0;background:none;color:var(--und-indicator-color,var(--und-accent-fg,#4b4dd5))}:host([type='check'][disabled]) .base{color:var(--und-fg-disabled,#b9bbc6);opacity:1}.check{display:block;inline-size:calc((100% + 2 * var(--_bw)) * 14 / 24);block-size:calc((100% + 2 * var(--_bw)) * 14 / 24)}:host([size='sm']) .check{inline-size:calc((100% + 2 * var(--_bw)) * 12 / 20);block-size:calc((100% + 2 * var(--_bw)) * 12 / 20)}:host([type='check']) .check{inline-size:100%;block-size:100%}.dash{display:block;inline-size:calc((100% + 2 * var(--_bw)) / 2);block-size:2px;border-radius:var(--und-radius-full,9999px);background-color:currentcolor}.dot{--_dot:calc((100% + 2 * var(--_bw)) * 10 / 24);display:block;inline-size:var(--_dot);block-size:var(--_dot);border-radius:50%;background-color:currentcolor}:host([size='sm']) .dot{--_dot:calc((100% + 2 * var(--_bw)) * 8 / 20)}@supports (width:round(1px,1px)){.dot{inline-size:round(var(--_dot),1px);block-size:round(var(--_dot),1px)}}::slotted(*){max-inline-size:100%;max-block-size:100%}@media (prefers-reduced-motion:reduce){.base{transition-duration:0s}}@media (forced-colors:active){.base{border-color:CanvasText}.dash,.dot{background-color:CanvasText}.check{color:CanvasText}}}
16845
+ `;static define(e){super.define(e),Bt.define(),Pt.define(),Ae.define()}static properties={value:{reflect:!0},defaultValue:{attribute:"default-value"},label:{},description:{},error:{},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},readOnly:{type:Boolean,attribute:"readonly",reflect:!0},name:{reflect:!0},min:{},max:{},locale:{},hourCycle:{attribute:"hour-cycle"},size:{reflect:!0},weekStart:{type:Number,attribute:"week-start"},isDateDisabled:{attribute:!1}};#e=E("und-date-time-input");#t=!1;#i;#r;#n;#s;#o;#d;#a;#l;#c="";constructor(){super(),this.value="",this.required=!1,this.disabled=!1,this.readOnly=!1,this.size="md"}get dateInput(){return this.#i}get timeInput(){return this.#r}checkValidity(){let e=this.#i?.checkValidity()??!0;return(this.#r?.checkValidity()??!0)&&e}reportValidity(){return(this.#i?.reportValidity()??!0)&&(this.#r?.reportValidity()??!0)}focus(e){this.#i?.focus(e)}connectedCallback(){if(super.connectedCallback(),D(this,[z,L,st]),this.#t)return;this.#t=!0,this.defaultValue??=this.value,this.#c=this.value;let e=g("div","und-field","field"),t=g("span","und-field__label","label");t.id=`${this.#e}-label`;let i=g("p","und-field__description","description");i.id=`${this.#e}-description`;let r=g("p","und-field__error","error");r.id=`${this.#e}-error`,r.hidden=!0;let s=g("div","und-date-time-input__row","row");s.setAttribute("role","group"),s.setAttribute("aria-labelledby",t.id);let o=document.createElement("und-date-input"),a=document.createElement("und-time-input");s.append(o,a);let d=g("input","und-date-field__value","value");d.type="hidden",e.append(t,i,s,d,r),this.prepend(e),this.#i=o,this.#r=a,this.#n=d,this.#s=t,this.#o=i,this.#d=r,this.#a=s,s.addEventListener("input",this.#u),s.addEventListener("und-change",this.#h)}formResetCallback(){this.value=this.defaultValue??"",this.#l=void 0,this.#c=this.value,this.requestUpdate()}formDisabledCallback(e){this.setCustomState("disabled",e||this.disabled)}#u=e=>{(e.target===this.#i?.input||e.target===this.#r?.input)&&this.#p()};#h=e=>{e.stopPropagation(),this.#p(),this.value!==this.#c&&(this.#c=this.value,this.emit("und-change",{value:this.value}))};#p(){let e=this.#i,t=this.#r;if(!e||!t)return;let i=e.value&&t.value?`${e.value}T${t.value}`:"";this.#l=i,this.value=i,this.#n&&(this.#n.value=i),this.#f()}#f(){let e=this.#i,t=this.#r;if(!e||!t)return;e.required=this.required||!!t.value,t.required=this.required||!!e.value;let[i,r]=Rt(this.min),[s,o]=Rt(this.max);t.min=i&&e.value===i?r:void 0,t.max=s&&e.value===s?o:void 0}willUpdate(e){if(e.has("value")&&this.value!==this.#l){let[t,i]=Rt(this.value);this.#i&&this.#r&&(this.#i.value=t,this.#r.value=i),this.#l=this.value}}updated(){let e=this.#i,t=this.#r;if(!e||!t)return;let i=j(),[r,s]=Rt(this.defaultValue),[o]=Rt(this.min),[a]=Rt(this.max);e.label=i.date,t.label=i.time,e.defaultValue=r,t.defaultValue=s,e.min=o||void 0,e.max=a||void 0;for(let d of[e,t])d.disabled=this.disabled,d.readOnly=this.readOnly,d.size=this.size,d.locale=this.locale;e.weekStart=this.weekStart,e.isDateDisabled=this.isDateDisabled,t.hourCycle=this.hourCycle??"auto",this.#f(),this.#n&&(this.name?this.#n.name=this.name:this.#n.removeAttribute("name"),this.#n.value=this.value,this.#n.disabled=this.disabled),this.#m()}#m(){let e=this.#s,t=this.#o,i=this.#d,r=this.#a;if(!e||!t||!i||!r)return;let s=this.label??"";e.hidden=!s,s&&Q(e,s,this.required?"required":void 0),t.textContent=this.description??"",t.hidden=!this.description,oe(i,this.error??""),r.setAttribute("aria-describedby",U(this.description?t.id:"",this.error?i.id:"")),r.getAttribute("aria-describedby")||r.removeAttribute("aria-describedby"),this.setCustomState("invalid",!!this.error)}render(){return l`<slot></slot>`}};$n.define();var Sn=class extends p{static tagName="und-indicator";static properties={type:{reflect:!0},state:{reflect:!0},size:{reflect:!0},disabled:{type:Boolean,reflect:!0}};static styles=u` @layer und.components{:host{--_size:var(--und-indicator-size,24px);--_accent:var(--und-indicator-color,var(--und-accent-solid,#504bf2));--_on:var(--und-indicator-on-color,var(--und-fg-on-accent,#fff));--_border:var(--und-indicator-border-color,var(--und-border-control,#8b8d98));--_bw:var(--und-border-width-thin,1px);--_hover:var(--und-indicator-hover,0);display:inline-flex;flex:none;vertical-align:middle}:host([hidden]),.base.empty{display:none}:host([size='sm']){--_size:var(--und-indicator-size,20px)}.base{box-sizing:border-box;display:flex;flex:none;align-items:center;justify-content:center;inline-size:var(--_size);block-size:var(--_size);border:var(--_bw) solid color-mix(in srgb,var(--_border),currentcolor calc(var(--_hover) * 20%));border-radius:var(--und-indicator-radius,var(--und-radius-sm,4px));background-color:color-mix( in srgb,var(--und-bg-surface,#fff),currentcolor calc(var(--_hover) * 5%) );color:var(--und-fg-default,#1c2024);transition-property:background-color,border-color;transition-duration:var(--und-duration-fast,175ms);transition-timing-function:var(--und-ease-move,ease)}:host([type='radio']) .base{border-radius:50%}:host(:not([state='unchecked'])) .base{border-color:color-mix( in srgb,var(--_accent),var(--und-fg-default,#1c2024) calc(var(--_hover) * 15%) );background-color:color-mix( in srgb,var(--_accent),var(--und-fg-default,#1c2024) calc(var(--_hover) * 15%) );color:var(--_on)}:host([disabled]) .base{--_hover:0;border-color:var(--und-border-subtle,#d9d9e0);opacity:var(--und-disabled-opacity,0.5)}:host([disabled][state='unchecked']) .base{background-color:var(--und-bg-muted,#f0f0f3)}:host([type='check']) .base{inline-size:var(--und-size-icon-sm,1rem);block-size:var(--und-size-icon-sm,1rem);border:0;background:none;color:var(--und-indicator-color,var(--und-accent-fg,#4b4dd5))}:host([type='check'][disabled]) .base{color:var(--und-fg-disabled,#b9bbc6);opacity:1}.check{display:block;inline-size:calc((100% + 2 * var(--_bw)) * 14 / 24);block-size:calc((100% + 2 * var(--_bw)) * 14 / 24)}:host([size='sm']) .check{inline-size:calc((100% + 2 * var(--_bw)) * 12 / 20);block-size:calc((100% + 2 * var(--_bw)) * 12 / 20)}:host([type='check']) .check{inline-size:100%;block-size:100%}.dash{display:block;inline-size:calc((100% + 2 * var(--_bw)) / 2);block-size:2px;border-radius:var(--und-radius-full,9999px);background-color:currentcolor}.dot{--_dot:calc((100% + 2 * var(--_bw)) * 10 / 24);display:block;inline-size:var(--_dot);block-size:var(--_dot);border-radius:50%;background-color:currentcolor}:host([size='sm']) .dot{--_dot:calc((100% + 2 * var(--_bw)) * 8 / 20)}@supports (width:round(1px,1px)){.dot{inline-size:round(var(--_dot),1px);block-size:round(var(--_dot),1px)}}::slotted(*){max-inline-size:100%;max-block-size:100%}@media (prefers-reduced-motion:reduce){.base{transition-duration:0s}}@media (forced-colors:active){.base{border-color:CanvasText}.dash,.dot{background-color:CanvasText}.check{color:CanvasText}}}
16844
16846
 
16845
16847
 
16846
16848
 
@@ -17001,9 +17003,9 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
17001
17003
 
17002
17004
 
17003
17005
 
17004
- `;#e=!1;constructor(){super(),this.type="checkbox",this.state="unchecked",this.size="md",this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}#t(){let{type:e,state:t}=this;return t==="unchecked"?c:e==="radio"?a`<span part="mark" class="dot"></span>`:e==="checkbox"&&t==="indeterminate"?a`<span part="mark" class="dash"></span>`:a`<svg part="mark" class="check" viewBox="0 0 10 10" focusable="false">
17006
+ `;#e=!1;constructor(){super(),this.type="checkbox",this.state="unchecked",this.size="md",this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}#t(){let{type:e,state:t}=this;return t==="unchecked"?c:e==="radio"?l`<span part="mark" class="dot"></span>`:e==="checkbox"&&t==="indeterminate"?l`<span part="mark" class="dash"></span>`:l`<svg part="mark" class="check" viewBox="0 0 10 10" focusable="false">
17005
17007
  ${k`<path d="M8.5 2.5 4 7.5 1.5 5" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>`}
17006
- </svg>`}#i=e=>{let t=e.target.assignedNodes().length>0;t!==this.#e&&(this.#e=t,this.requestUpdate())};render(){let e=this.type==="check"&&this.state==="unchecked"&&!this.#e;return a`<span part="base" class="base ${e?"empty":""}" aria-hidden="true"
17008
+ </svg>`}#i=e=>{let t=e.target.assignedNodes().length>0;t!==this.#e&&(this.#e=t,this.requestUpdate())};render(){let e=this.type==="check"&&this.state==="unchecked"&&!this.#e;return l`<span part="base" class="base ${e?"empty":""}" aria-hidden="true"
17007
17009
  ><slot @slotchange=${this.#i}>${this.#t()}</slot></span
17008
17010
  >`}};Sn.define();var at=class{#e;#t=new Set;constructor(e){this.#e=e,e.addController(this)}hostConnected(){}has(e=""){return this.#t.has(e)}onSlotChange=e=>{let t=e.target,i=t.assignedNodes({flatten:!0}).some(r=>r.nodeType===Node.ELEMENT_NODE||!!r.textContent?.trim());i!==this.#t.has(t.name)&&(i?this.#t.add(t.name):this.#t.delete(t.name),this.#e.requestUpdate())}};var sl=new Set(["option","tab","row","gridcell","columnheader","rowheader","treeitem"]),Cn=class extends p{static tagName="und-item";static properties={align:{reflect:!0},density:{reflect:!0},layout:{reflect:!0},labelLines:{type:Number,attribute:"label-lines"},descriptionLines:{type:Number,attribute:"description-lines"},interactive:{type:Boolean,reflect:!0},href:{},target:{},rel:{},highlighted:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}};static styles=u` @layer und.components{:host{--_inset:var(--und-item-inset-inline,var(--und-space-2,0.5rem));--_gap:var(--und-item-gap,var(--und-space-2,0.5rem));display:block;min-inline-size:0}:host([hidden]){display:none}:host([density='spacious']){--_inset:var(--und-item-inset-inline,var(--und-space-3,0.75rem))}.base{position:relative;box-sizing:border-box;display:flex;align-items:center;gap:var(--_gap);padding-inline:var(--_inset);padding-block:var(--und-space-2,0.5rem);border-radius:var(--und-item-radius,var(--und-radius-control,6px));text-align:start;color:var(--und-fg-default,#1c2024)}:host([density='compact']) .base{padding-block:var(--und-space-1,0.25rem)}:host([density='spacious']) .base{padding-block:var(--und-space-3,0.75rem)}:host([align='start']) .base{align-items:flex-start}:host([align='first-line']) .base{align-items:baseline}.base.interactive{cursor:pointer;transition:background-color var(--und-duration-fast,175ms) var(--und-ease-move,ease)}.base.interactive:has(.action:focus-visible){outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:calc(-1 * var(--und-focus-ring-width,2px))}@media (hover:hover){.base.interactive:hover:not(.disabled){background-color:var(--und-bg-subtle,#f1f2f5)}}:host([highlighted]) .base{background-color:var(--und-bg-subtle,#f1f2f5)}:host([selected]) .base,:host([selected]) .base.interactive:hover:not(.disabled){background-color:var(--und-accent-bg,#ebebff)}.base.disabled{cursor:default}.base.disabled .content,.base.disabled .start,.base.disabled .end,.base.disabled .marker{opacity:var(--und-disabled-opacity,0.5)}.marker,.start,.end{display:flex;flex:none}.end{margin-inline-start:auto}.marker[hidden],.start[hidden],.end[hidden],.description[hidden]{display:none}.interactive .marker,.interactive .start,.interactive .end{position:relative;z-index:1}:host([align='first-line']) .start,:host([align='first-line']) .end,:host([align='first-line']) .marker{align-items:center}:host([align='first-line']) .start::before,:host([align='first-line']) .end::before,:host([align='first-line']) .marker::before{content:'\\200B';inline-size:0;overflow:hidden;font-size:var(--und-text-body-md-size,1rem);line-height:var(--und-text-body-md-lh,1.5)}.action{all:unset;display:contents}.content{display:flex;flex:1;flex-direction:column;min-inline-size:0;text-align:start;color:inherit;text-decoration:none;font:inherit}.interactive .content{cursor:inherit}.interactive .content::after{content:'';position:absolute;inset:0;border-radius:inherit}:host([layout='inline']) .content{flex-direction:row;align-items:center;column-gap:var(--und-space-1,0.25rem)}.label{color:var(--und-item-label-color,var(--und-fg-default,#1c2024));font-size:var(--und-text-body-md-size,1rem);line-height:var(--und-text-body-md-lh,1.5)}:host([layout='inline']) .label{flex-shrink:0}.description{color:var(--und-item-description-color,var(--und-fg-muted,#60646c));font-size:var(--und-text-body-sm-size,0.875rem);line-height:var(--und-text-body-sm-lh,1.45)}:host([layout='inline']) .description{flex-shrink:1;min-inline-size:0}.single{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.label.multi{-webkit-line-clamp:var(--und-item-label-lines,2)}.description.multi{-webkit-line-clamp:var(--und-item-description-lines,2)}@media (prefers-reduced-motion:reduce){.base.interactive{transition-duration:0s}}@media (forced-colors:active){:host([selected]) .base,:host([selected]) .base.interactive:hover:not(.disabled){background-color:Highlight;color:HighlightText;forced-color-adjust:none}.base.interactive:has(.action:focus-visible){outline-color:Highlight}}}
17009
17011
 
@@ -17224,14 +17226,14 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
17224
17226
 
17225
17227
 
17226
17228
 
17227
- `;#e=new at(this);#t=!1;constructor(){super(),this.align="center",this.density="balanced",this.layout="stacked",this.interactive=!1,this.highlighted=!1,this.selected=!1,this.disabled=!1,this.addEventListener("click",this.#i,!0)}#i=e=>{this.disabled&&this.#r&&(e.preventDefault(),e.stopImmediatePropagation())};get#r(){return this.interactive||this.href!==void 0}updated(){let e=this.getAttribute("role")??"";if(sl.has(e))G(this,"aria-selected",this.selected?"true":"false"),this.#t&&G(this,"aria-current",null),this.#t=!1;else{G(this,"aria-selected",null);let t=!this.#r&&this.selected;(!this.hasAttribute("aria-current")||this.#t)&&(G(this,"aria-current",t?"true":null),this.#t=t)}G(this,"aria-disabled",this.disabled&&!this.#r?"true":null),this.labelLines?this.style.setProperty("--und-item-label-lines",String(this.labelLines)):this.style.removeProperty("--und-item-label-lines"),this.descriptionLines?this.style.setProperty("--und-item-description-lines",String(this.descriptionLines)):this.style.removeProperty("--und-item-description-lines"),this.setCustomState("selected",this.selected),this.setCustomState("interactive",this.#r)}#n(e){return e?e===1?"single":"multi":""}#s(){let e=a`<span part="label" class="label ${this.#n(this.labelLines)}"
17229
+ `;#e=new at(this);#t=!1;constructor(){super(),this.align="center",this.density="balanced",this.layout="stacked",this.interactive=!1,this.highlighted=!1,this.selected=!1,this.disabled=!1,this.addEventListener("click",this.#i,!0)}#i=e=>{this.disabled&&this.#r&&(e.preventDefault(),e.stopImmediatePropagation())};get#r(){return this.interactive||this.href!==void 0}updated(){let e=this.getAttribute("role")??"";if(sl.has(e))G(this,"aria-selected",this.selected?"true":"false"),this.#t&&G(this,"aria-current",null),this.#t=!1;else{G(this,"aria-selected",null);let t=!this.#r&&this.selected;(!this.hasAttribute("aria-current")||this.#t)&&(G(this,"aria-current",t?"true":null),this.#t=t)}G(this,"aria-disabled",this.disabled&&!this.#r?"true":null),this.labelLines?this.style.setProperty("--und-item-label-lines",String(this.labelLines)):this.style.removeProperty("--und-item-label-lines"),this.descriptionLines?this.style.setProperty("--und-item-description-lines",String(this.descriptionLines)):this.style.removeProperty("--und-item-description-lines"),this.setCustomState("selected",this.selected),this.setCustomState("interactive",this.#r)}#n(e){return e?e===1?"single":"multi":""}#s(){let e=l`<span part="label" class="label ${this.#n(this.labelLines)}"
17228
17230
  ><slot></slot
17229
- ></span>`,t=a`<span
17231
+ ></span>`,t=l`<span
17230
17232
  part="description"
17231
17233
  class="description ${this.#n(this.descriptionLines)}"
17232
17234
  ?hidden=${!this.#e.has("description")}
17233
17235
  ><slot name="description" @slotchange=${this.#e.onSlotChange}></slot
17234
- ></span>`,i=a`<span class="content">${e}${t}</span>`,r=this.selected&&!sl.has(this.getAttribute("role")??"")?"true":c;if(this.href!==void 0){let s=this.disabled?void 0:M(this.href),o=s!==void 0;return a`<a
17236
+ ></span>`,i=l`<span class="content">${e}${t}</span>`,r=this.selected&&!sl.has(this.getAttribute("role")??"")?"true":c;if(this.href!==void 0){let s=this.disabled?void 0:M(this.href),o=s!==void 0;return l`<a
17235
17237
  part="action"
17236
17238
  class="action"
17237
17239
  href=${o?s:c}
@@ -17241,7 +17243,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
17241
17243
  aria-disabled=${this.disabled?"true":c}
17242
17244
  aria-current=${r}
17243
17245
  >${i}</a
17244
- >`}return this.interactive?a`<button
17246
+ >`}return this.interactive?l`<button
17245
17247
  part="action"
17246
17248
  class="action"
17247
17249
  type="button"
@@ -17249,7 +17251,7 @@ ${Ra} .panel{box-sizing:border-box;position:absolute;inset-block-start:100%;inse
17249
17251
  aria-current=${r}
17250
17252
  >
17251
17253
  ${i}
17252
- </button>`:i}render(){let e=this.#r;return a`<div
17254
+ </button>`:i}render(){let e=this.#r;return l`<div
17253
17255
  part="base"
17254
17256
  class="base ${e?"interactive":""} ${this.disabled?"disabled":""}"
17255
17257
  >
@@ -17389,7 +17391,7 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17389
17391
  overflow: visible;
17390
17392
  }
17391
17393
  }
17392
- `;#e=new at(this);constructor(){super(),this.height="fill",this.dividers=!1,this.startResizable=!1,this.endResizable=!1}updated(){this.contentWidth?this.style.setProperty("--_cw",this.contentWidth):this.style.removeProperty("--_cw")}render(){let e=this.#e.onSlotChange,t=this.startLabel||void 0,i=this.endLabel||void 0;return a`<div part="base" class="layout">
17394
+ `;#e=new at(this);constructor(){super(),this.height="fill",this.dividers=!1,this.startResizable=!1,this.endResizable=!1}updated(){this.contentWidth?this.style.setProperty("--_cw",this.contentWidth):this.style.removeProperty("--_cw")}render(){let e=this.#e.onSlotChange,t=this.startLabel||void 0,i=this.endLabel||void 0;return l`<div part="base" class="layout">
17393
17395
  <div part="header" class="header" ?hidden=${!this.#e.has("header")}>
17394
17396
  <slot name="header" @slotchange=${e}></slot>
17395
17397
  </div>
@@ -17404,7 +17406,7 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17404
17406
  >
17405
17407
  <slot name="start" @slotchange=${e}></slot>
17406
17408
  </div>
17407
- ${this.startResizable&&this.#e.has("start")?a`<und-resize-handle
17409
+ ${this.startResizable&&this.#e.has("start")?l`<und-resize-handle
17408
17410
  part="start-handle"
17409
17411
  for="start"
17410
17412
  label=${this.startLabel?`Resize ${this.startLabel}`:"Resize start panel"}
@@ -17412,7 +17414,7 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17412
17414
  max="50"
17413
17415
  ></und-resize-handle>`:c}
17414
17416
  <div part="content" class="content"><slot></slot></div>
17415
- ${this.endResizable&&this.#e.has("end")?a`<und-resize-handle
17417
+ ${this.endResizable&&this.#e.has("end")?l`<und-resize-handle
17416
17418
  part="end-handle"
17417
17419
  for="end"
17418
17420
  reverse
@@ -17474,7 +17476,7 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17474
17476
 
17475
17477
 
17476
17478
 
17477
- `;render(){return a`<span
17479
+ `;render(){return l`<span
17478
17480
  part="base"
17479
17481
  class="base"
17480
17482
  role=${this.label?"img":"presentation"}
@@ -17598,9 +17600,9 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17598
17600
 
17599
17601
 
17600
17602
 
17601
- `];constructor(){super(),this.size="md",this.current=!1,this.disabled=!1}updated(){this.setCustomState("current",this.current)}#e(){return a`<span class="start"><slot name="start"></slot></span
17603
+ `];constructor(){super(),this.size="md",this.current=!1,this.disabled=!1}updated(){this.setCustomState("current",this.current)}#e(){return l`<span class="start"><slot name="start"></slot></span
17602
17604
  ><span part="label" class="label"><slot></slot></span
17603
- ><span class="end"><slot name="end"></slot></span>`}render(){let e=this.current?"page":c,t=this.label||c;if(this.href!==void 0){let i=this.disabled?void 0:M(this.href),r=i!==void 0;return a`<a
17605
+ ><span class="end"><slot name="end"></slot></span>`}render(){let e=this.current?"page":c,t=this.label||c;if(this.href!==void 0){let i=this.disabled?void 0:M(this.href),r=i!==void 0;return l`<a
17604
17606
  part="base"
17605
17607
  class="item ${r?"":"disabled"}"
17606
17608
  href=${r?i:c}
@@ -17612,7 +17614,7 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17612
17614
  aria-label=${t}
17613
17615
  tabindex=${r?c:"-1"}
17614
17616
  >${this.#e()}</a
17615
- >`}return a`<button
17617
+ >`}return l`<button
17616
17618
  part="base"
17617
17619
  class="item ${this.disabled?"disabled":""}"
17618
17620
  type="button"
@@ -17667,7 +17669,7 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17667
17669
 
17668
17670
 
17669
17671
 
17670
- `;#e=new y(this);#t=new ne(this,{getItems:()=>this.items,orientation:"vertical",getDirection:()=>this.#e.dir,isDisabled:()=>!1});#i=new se(this,{getItems:()=>this.items,getActiveIndex:()=>this.items.findIndex(e=>e===document.activeElement),onMatch:e=>this.#t.focusItem(e),getLabel:e=>e.textContent??""});constructor(){super(),this.size="md",this.addEventListener("keydown",this.#r),this.addEventListener("und-nav-menu-choose",this.#n)}get items(){return[...this.querySelectorAll(us)]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menu")}updated(){let e=this.label||this.heading;e?this.setAttribute("aria-label",e):this.hasAttribute("aria-labelledby")||this.removeAttribute("aria-label"),this.#t.sync()}#r=e=>{if(e.key==="Escape"){e.stopPropagation(),this.emit("und-close",{reason:"escape"});return}if(e.key==="Enter"||e.key===" "){let t=e.target;t.localName===us&&(e.preventDefault(),t.click());return}e.target.localName===us&&this.#i.handleKeydown(e)};#n=()=>{this.emit("und-close",{reason:"select"})};render(){return a`<div part="base" class="base">
17672
+ `;#e=new y(this);#t=new ne(this,{getItems:()=>this.items,orientation:"vertical",getDirection:()=>this.#e.dir,isDisabled:()=>!1});#i=new se(this,{getItems:()=>this.items,getActiveIndex:()=>this.items.findIndex(e=>e===document.activeElement),onMatch:e=>this.#t.focusItem(e),getLabel:e=>e.textContent??""});constructor(){super(),this.size="md",this.addEventListener("keydown",this.#r),this.addEventListener("und-nav-menu-choose",this.#n)}get items(){return[...this.querySelectorAll(us)]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menu")}updated(){let e=this.label||this.heading;e?this.setAttribute("aria-label",e):this.hasAttribute("aria-labelledby")||this.removeAttribute("aria-label"),this.#t.sync()}#r=e=>{if(e.key==="Escape"){e.stopPropagation(),this.emit("und-close",{reason:"escape"});return}if(e.key==="Enter"||e.key===" "){let t=e.target;t.localName===us&&(e.preventDefault(),t.click());return}e.target.localName===us&&this.#i.handleKeydown(e)};#n=()=>{this.emit("und-close",{reason:"select"})};render(){return l`<div part="base" class="base">
17671
17673
  <div part="heading" class="heading" aria-hidden="true" ?hidden=${!this.heading}>
17672
17674
  ${this.heading}
17673
17675
  </div>
@@ -17762,13 +17764,13 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17762
17764
 
17763
17765
 
17764
17766
 
17765
- `;#e=new at(this);constructor(){super(),this.disabled=!1,this.addEventListener("click",this.#t)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.tabIndex=-1,this.draggable=!1}updated(){G(this,"aria-disabled",this.disabled?"true":null)}#t=e=>{if(this.disabled){e.stopImmediatePropagation();return}this.href!==void 0&&ol(this.href,this.target,this.rel,e),this.emit("und-nav-menu-choose",{})};render(){return a`<span class="start" ?hidden=${!this.#e.has("start")}
17767
+ `;#e=new at(this);constructor(){super(),this.disabled=!1,this.addEventListener("click",this.#t)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.tabIndex=-1,this.draggable=!1}updated(){G(this,"aria-disabled",this.disabled?"true":null)}#t=e=>{if(this.disabled){e.stopImmediatePropagation();return}this.href!==void 0&&ol(this.href,this.target,this.rel,e),this.emit("und-nav-menu-choose",{})};render(){return l`<span class="start" ?hidden=${!this.#e.has("start")}
17766
17768
  ><slot name="start" @slotchange=${this.#e.onSlotChange}></slot></span
17767
17769
  ><span class="content"
17768
17770
  ><span part="label" class="label"><slot></slot></span
17769
17771
  ><span part="description" class="description" ?hidden=${!this.#e.has("description")}
17770
17772
  ><slot name="description" @slotchange=${this.#e.onSlotChange}></slot></span
17771
- ></span>`}};Tn.define();Mn.define();var hs="data-und-page-start";function Yc(n,e,t){let i=o=>n[o]??0,r=o=>{let l=0;for(let d=1;d<n.length;d+=1)Math.abs(i(d)-o)<Math.abs(i(l)-o)&&(l=d);return l},s=[e];for(let o=e;o<n.length-1;)o=Math.max(r(i(o)+t),o+1),s.push(o);for(let o=e;o>0;)o=Math.min(r(i(o)-t),o-1),s.unshift(o);return s}var Nn=class extends p{static tagName="und-snap-paging";static properties={pages:{reflect:!0},label:{}};static styles=u` @layer und.components{:host{display:block;min-inline-size:0}:host([hidden]){display:none}.row{display:flex;gap:var(--und-snap-paging-gap,var(--und-space-3,0.75rem));overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}.row::-webkit-scrollbar{display:none}.row:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-offset,2px)}::slotted(*){flex:none}:host(:not([pages='view'])) ::slotted(*){scroll-snap-align:start;scroll-snap-stop:always}:host([pages='view']) ::slotted([data-und-page-start]){scroll-snap-align:start;scroll-snap-stop:always}@media (prefers-reduced-motion:no-preference){.row{scroll-behavior:smooth}}}
17773
+ ></span>`}};Tn.define();Mn.define();var hs="data-und-page-start";function Yc(n,e,t){let i=o=>n[o]??0,r=o=>{let a=0;for(let d=1;d<n.length;d+=1)Math.abs(i(d)-o)<Math.abs(i(a)-o)&&(a=d);return a},s=[e];for(let o=e;o<n.length-1;)o=Math.max(r(i(o)+t),o+1),s.push(o);for(let o=e;o>0;)o=Math.min(r(i(o)-t),o-1),s.unshift(o);return s}var Nn=class extends p{static tagName="und-snap-paging";static properties={pages:{reflect:!0},label:{}};static styles=u` @layer und.components{:host{display:block;min-inline-size:0}:host([hidden]){display:none}.row{display:flex;gap:var(--und-snap-paging-gap,var(--und-space-3,0.75rem));overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}.row::-webkit-scrollbar{display:none}.row:focus-visible{outline:var(--und-focus-ring-width,2px) solid var(--und-focus-ring-color,#1f4fd1);outline-offset:var(--und-focus-offset,2px)}::slotted(*){flex:none}:host(:not([pages='view'])) ::slotted(*){scroll-snap-align:start;scroll-snap-stop:always}:host([pages='view']) ::slotted([data-und-page-start]){scroll-snap-align:start;scroll-snap-stop:always}@media (prefers-reduced-motion:no-preference){.row{scroll-behavior:smooth}}}
17772
17774
 
17773
17775
 
17774
17776
 
@@ -17820,7 +17822,7 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17820
17822
 
17821
17823
 
17822
17824
 
17823
- `;get page(){return this.#e}get pageCount(){return this.#t.length}#e=0;#t=[];#i;#r;constructor(){super(),this.pages="view"}get#n(){return this.renderRoot.querySelector(".row")}get#s(){return[...this.children].filter(e=>e instanceof HTMLElement)}connectedCallback(){super.connectedCallback(),!!1&&(this.#i=new ResizeObserver(()=>this.#a()))}disconnectedCallback(){super.disconnectedCallback(),this.#i?.disconnect(),this.#i=void 0,clearTimeout(this.#r)}firstUpdated(){let e=this.#n;e&&this.#i?.observe(e)}updated(e){e.has("pages")&&this.#a()}get#o(){let e=this.#n;return e?getComputedStyle(e).direction==="rtl":!1}#d(){let e=this.#n;if(!e)return[];let t=e.getBoundingClientRect(),i=this.#o;return this.#s.map(r=>{let s=r.getBoundingClientRect();return i?t.right-s.right-e.scrollLeft:s.left-t.left+e.scrollLeft})}#a(){let e=this.#n;if(!e)return;let t=this.#s,i=this.#d();if(this.pages==="item"){for(let r of t)r.removeAttribute(hs);this.#t=t.map((r,s)=>s)}else{let r=e.scrollWidth-e.clientWidth-1,s=i.length>0?Yc(i,0,e.clientWidth):[],o=s.filter(h=>(i[h]??0)<r),l=s.find(h=>(i[h]??0)>=r);this.#t=l===void 0?o:[...o,l];let d=new Set(this.#t);t.forEach((h,f)=>{d.has(f)?h.setAttribute(hs,""):h.removeAttribute(hs)})}this.#c(!1)}#l(){let e=this.#n;if(!e||this.#t.length===0)return 0;let t=Math.abs(e.scrollLeft);if(t<=1)return 0;if(t>=e.scrollWidth-e.clientWidth-1)return this.#t.length-1;let i=this.#d(),r=o=>Math.abs((i[this.#t[o]??0]??0)-t),s=0;for(let o=1;o<this.#t.length;o+=1)r(o)<r(s)&&(s=o);return s}#c(e){let t=this.#l();t!==this.#e&&(this.#e=t,e&&this.emit("und-page-change",{page:t,pages:this.pageCount}))}#u=()=>{clearTimeout(this.#r),this.#r=setTimeout(()=>this.#c(!0),100)};goTo(e){let t=this.#n;if(!t||this.#t.length===0)return;let i=Math.max(0,Math.min(this.#t.length-1,Math.trunc(e))),r=t.scrollWidth-t.clientWidth,s=Math.min(this.#d()[this.#t[i]??0]??0,r);t.scrollTo({left:this.#o?-s:s})}next(){this.goTo(this.#l()+1)}previous(){this.goTo(this.#l()-1)}render(){return a`<div
17825
+ `;get page(){return this.#e}get pageCount(){return this.#t.length}#e=0;#t=[];#i;#r;constructor(){super(),this.pages="view"}get#n(){return this.renderRoot.querySelector(".row")}get#s(){return[...this.children].filter(e=>e instanceof HTMLElement)}connectedCallback(){super.connectedCallback(),!!1&&(this.#i=new ResizeObserver(()=>this.#a()))}disconnectedCallback(){super.disconnectedCallback(),this.#i?.disconnect(),this.#i=void 0,clearTimeout(this.#r)}firstUpdated(){let e=this.#n;e&&this.#i?.observe(e)}updated(e){e.has("pages")&&this.#a()}get#o(){let e=this.#n;return e?getComputedStyle(e).direction==="rtl":!1}#d(){let e=this.#n;if(!e)return[];let t=e.getBoundingClientRect(),i=this.#o;return this.#s.map(r=>{let s=r.getBoundingClientRect();return i?t.right-s.right-e.scrollLeft:s.left-t.left+e.scrollLeft})}#a(){let e=this.#n;if(!e)return;let t=this.#s,i=this.#d();if(this.pages==="item"){for(let r of t)r.removeAttribute(hs);this.#t=t.map((r,s)=>s)}else{let r=e.scrollWidth-e.clientWidth-1,s=i.length>0?Yc(i,0,e.clientWidth):[],o=s.filter(h=>(i[h]??0)<r),a=s.find(h=>(i[h]??0)>=r);this.#t=a===void 0?o:[...o,a];let d=new Set(this.#t);t.forEach((h,f)=>{d.has(f)?h.setAttribute(hs,""):h.removeAttribute(hs)})}this.#c(!1)}#l(){let e=this.#n;if(!e||this.#t.length===0)return 0;let t=Math.abs(e.scrollLeft);if(t<=1)return 0;if(t>=e.scrollWidth-e.clientWidth-1)return this.#t.length-1;let i=this.#d(),r=o=>Math.abs((i[this.#t[o]??0]??0)-t),s=0;for(let o=1;o<this.#t.length;o+=1)r(o)<r(s)&&(s=o);return s}#c(e){let t=this.#l();t!==this.#e&&(this.#e=t,e&&this.emit("und-page-change",{page:t,pages:this.pageCount}))}#u=()=>{clearTimeout(this.#r),this.#r=setTimeout(()=>this.#c(!0),100)};goTo(e){let t=this.#n;if(!t||this.#t.length===0)return;let i=Math.max(0,Math.min(this.#t.length-1,Math.trunc(e))),r=t.scrollWidth-t.clientWidth,s=Math.min(this.#d()[this.#t[i]??0]??0,r);t.scrollTo({left:this.#o?-s:s})}next(){this.goTo(this.#l()+1)}previous(){this.goTo(this.#l()-1)}render(){return l`<div
17824
17826
  part="row"
17825
17827
  class="row"
17826
17828
  role="group"
@@ -17882,7 +17884,7 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17882
17884
 
17883
17885
 
17884
17886
 
17885
- `;#e=0;#t=!1;#i(e){this.#t=e,this.toggleAttribute("data-dragging",e)}#r;#n=[];#s;constructor(){super(),this.behavior="reveal",this.open=null,this.disabled=!1,this.addEventListener("keydown",this.#f),this.addEventListener("click",this.#b,!0),this.addEventListener("click",this.#m),this.addEventListener("wheel",this.#y,{passive:!1})}disconnectedCallback(){super.disconnectedCallback(),this.#u(),clearTimeout(this.#s)}get#o(){return getComputedStyle(this).direction==="rtl"?-1:1}#d(e){let t=this.renderRoot.querySelector(`.panel.${e}`);return!t||!this.querySelector(`:scope > [slot="${e}"]`)?0:t.getBoundingClientRect().width}#a(e){this.#e=e,this.style.setProperty("--_x",`${e*this.#o}px`);let t=e!==0;this.toggleAttribute("data-revealed",t)}#l(e){return e==="leading"?this.#d("leading"):e==="trailing"?-this.#d("trailing"):0}willUpdate(e){e.has("open")&&this.open!=="leading"&&this.open!=="trailing"&&(this.open=null)}updated(e){e.has("open")&&!this.#t&&(this.toggleAttribute("data-revealed",this.open!==null||this.#e!==0),this.#a(this.#l(this.open)),this.open?this.#c():this.#u(),(e.get("open")!==void 0||this.open!==null)&&this.emit("und-swipe-change",{open:this.open}))}openSide(e){this.disabled||(this.open=e)}close(){this.open=null}#c(){document.addEventListener("pointerdown",this.#h,!0),document.addEventListener("scroll",this.#p,!0)}#u(){document.removeEventListener("pointerdown",this.#h,!0),document.removeEventListener("scroll",this.#p,!0)}#h=e=>{e.composedPath().includes(this)||this.close()};#p=e=>{let t=e.target;t instanceof Node&&this.contains(t)||this.matches(":focus-within")||this.close()};#f=e=>{e.key==="Escape"&&this.open&&(e.stopPropagation(),this.close())};#m=e=>{let i=e.composedPath().find(r=>r instanceof HTMLElement&&r.localName==="und-swipe-action");if(i){let r=i.getAttribute("slot")==="leading"?"leading":"trailing";this.emit("und-swipe-action",{action:i,side:r}),this.close();return}};#b=e=>{if(!this.open)return;let t=e.composedPath(),i=t.some(s=>s instanceof HTMLElement&&s.localName==="und-swipe-action");t.some(s=>s instanceof HTMLElement&&s.classList?.contains("surface"))&&!i&&(e.preventDefault(),e.stopImmediatePropagation(),this.close())};#g=e=>{this.disabled||e.pointerType==="mouse"||!e.isPrimary||(this.#r={id:e.pointerId,x:e.clientX,y:e.clientY,start:this.#e,locked:!1},this.#n=[{x:e.clientX,t:e.timeStamp}])};#v=e=>{let t=this.#r;if(!t||e.pointerId!==t.id)return;let i=e.clientX-t.x,r=e.clientY-t.y;if(!t.locked){if(Math.abs(r)>al&&Math.abs(r)>=Math.abs(i)){this.#r=void 0;return}if(Math.abs(i)<al||Math.abs(i)<=Math.abs(r))return;t.locked=!0,this.#i(!0),this.toggleAttribute("data-revealed",!0);try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}}this.#n.push({x:e.clientX,t:e.timeStamp}),this.#n.length>6&&this.#n.shift(),this.#_(t.start+i*this.#o)};#x=e=>{let t=this.#r;if(!t||e.pointerId!==t.id||(this.#r=void 0,!t.locked))return;let i=this.#n[0],r=this.#n[this.#n.length-1],s=i&&r&&r.t>i.t?(r.x-i.x)/(r.t-i.t)*this.#o:0;this.#k(s)};#y=e=>{this.disabled||e.ctrlKey||e.deltaMode!==0||Math.abs(e.deltaX)<=Math.abs(e.deltaY)||Math.abs(e.deltaX)>Zc||(e.preventDefault(),this.#i(!0),this.toggleAttribute("data-revealed",!0),this.#_(this.#e-e.deltaX*this.#o),clearTimeout(this.#s),this.#s=setTimeout(()=>this.#k(0),Xc))};#_(e){let t=this.#d("leading"),i=-this.#d("trailing"),r=this.behavior==="commit"?this.offsetWidth:0;this.#a(Math.max(i-r,Math.min(t+r,e)))}#k(e){this.#i(!1);let t=this.#e,i=this.#d("leading"),r=this.#d("trailing");if(this.behavior==="commit"){let o=this.offsetWidth*.6,l=t>o?"leading":t<-o?"trailing":null,d=l?this.#z(l):null;if(l&&d&&!d.disabled){this.emit("und-swipe-action",{action:d,side:l}),this.open=null,this.#a(0);return}}let s=null;t>0&&i>0?s=e>Dn||Math.abs(e)<=Dn&&t>i/2?"leading":null:t<0&&r>0&&(s=e<-Dn||Math.abs(e)<=Dn&&-t>r/2?"trailing":null),s===this.open?(this.#a(this.#l(s)),this.toggleAttribute("data-revealed",s!==null)):this.open=s}#z(e){let t=this.querySelectorAll(`:scope > [slot="${e}"]`);return t[t.length-1]??null}render(){let e=this.open===null;return a`<div class="base">
17887
+ `;#e=0;#t=!1;#i(e){this.#t=e,this.toggleAttribute("data-dragging",e)}#r;#n=[];#s;constructor(){super(),this.behavior="reveal",this.open=null,this.disabled=!1,this.addEventListener("keydown",this.#f),this.addEventListener("click",this.#b,!0),this.addEventListener("click",this.#m),this.addEventListener("wheel",this.#y,{passive:!1})}disconnectedCallback(){super.disconnectedCallback(),this.#u(),clearTimeout(this.#s)}get#o(){return getComputedStyle(this).direction==="rtl"?-1:1}#d(e){let t=this.renderRoot.querySelector(`.panel.${e}`);return!t||!this.querySelector(`:scope > [slot="${e}"]`)?0:t.getBoundingClientRect().width}#a(e){this.#e=e,this.style.setProperty("--_x",`${e*this.#o}px`);let t=e!==0;this.toggleAttribute("data-revealed",t)}#l(e){return e==="leading"?this.#d("leading"):e==="trailing"?-this.#d("trailing"):0}willUpdate(e){e.has("open")&&this.open!=="leading"&&this.open!=="trailing"&&(this.open=null)}updated(e){e.has("open")&&!this.#t&&(this.toggleAttribute("data-revealed",this.open!==null||this.#e!==0),this.#a(this.#l(this.open)),this.open?this.#c():this.#u(),(e.get("open")!==void 0||this.open!==null)&&this.emit("und-swipe-change",{open:this.open}))}openSide(e){this.disabled||(this.open=e)}close(){this.open=null}#c(){document.addEventListener("pointerdown",this.#h,!0),document.addEventListener("scroll",this.#p,!0)}#u(){document.removeEventListener("pointerdown",this.#h,!0),document.removeEventListener("scroll",this.#p,!0)}#h=e=>{e.composedPath().includes(this)||this.close()};#p=e=>{let t=e.target;t instanceof Node&&this.contains(t)||this.matches(":focus-within")||this.close()};#f=e=>{e.key==="Escape"&&this.open&&(e.stopPropagation(),this.close())};#m=e=>{let i=e.composedPath().find(r=>r instanceof HTMLElement&&r.localName==="und-swipe-action");if(i){let r=i.getAttribute("slot")==="leading"?"leading":"trailing";this.emit("und-swipe-action",{action:i,side:r}),this.close();return}};#b=e=>{if(!this.open)return;let t=e.composedPath(),i=t.some(s=>s instanceof HTMLElement&&s.localName==="und-swipe-action");t.some(s=>s instanceof HTMLElement&&s.classList?.contains("surface"))&&!i&&(e.preventDefault(),e.stopImmediatePropagation(),this.close())};#v=e=>{this.disabled||e.pointerType==="mouse"||!e.isPrimary||(this.#r={id:e.pointerId,x:e.clientX,y:e.clientY,start:this.#e,locked:!1},this.#n=[{x:e.clientX,t:e.timeStamp}])};#g=e=>{let t=this.#r;if(!t||e.pointerId!==t.id)return;let i=e.clientX-t.x,r=e.clientY-t.y;if(!t.locked){if(Math.abs(r)>al&&Math.abs(r)>=Math.abs(i)){this.#r=void 0;return}if(Math.abs(i)<al||Math.abs(i)<=Math.abs(r))return;t.locked=!0,this.#i(!0),this.toggleAttribute("data-revealed",!0);try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}}this.#n.push({x:e.clientX,t:e.timeStamp}),this.#n.length>6&&this.#n.shift(),this.#_(t.start+i*this.#o)};#x=e=>{let t=this.#r;if(!t||e.pointerId!==t.id||(this.#r=void 0,!t.locked))return;let i=this.#n[0],r=this.#n[this.#n.length-1],s=i&&r&&r.t>i.t?(r.x-i.x)/(r.t-i.t)*this.#o:0;this.#w(s)};#y=e=>{this.disabled||e.ctrlKey||e.deltaMode!==0||Math.abs(e.deltaX)<=Math.abs(e.deltaY)||Math.abs(e.deltaX)>Zc||(e.preventDefault(),this.#i(!0),this.toggleAttribute("data-revealed",!0),this.#_(this.#e-e.deltaX*this.#o),clearTimeout(this.#s),this.#s=setTimeout(()=>this.#w(0),Xc))};#_(e){let t=this.#d("leading"),i=-this.#d("trailing"),r=this.behavior==="commit"?this.offsetWidth:0;this.#a(Math.max(i-r,Math.min(t+r,e)))}#w(e){this.#i(!1);let t=this.#e,i=this.#d("leading"),r=this.#d("trailing");if(this.behavior==="commit"){let o=this.offsetWidth*.6,a=t>o?"leading":t<-o?"trailing":null,d=a?this.#z(a):null;if(a&&d&&!d.disabled){this.emit("und-swipe-action",{action:d,side:a}),this.open=null,this.#a(0);return}}let s=null;t>0&&i>0?s=e>Dn||Math.abs(e)<=Dn&&t>i/2?"leading":null:t<0&&r>0&&(s=e<-Dn||Math.abs(e)<=Dn&&-t>r/2?"trailing":null),s===this.open?(this.#a(this.#l(s)),this.toggleAttribute("data-revealed",s!==null)):this.open=s}#z(e){let t=this.querySelectorAll(`:scope > [slot="${e}"]`);return t[t.length-1]??null}render(){let e=this.open===null;return l`<div class="base">
17886
17888
  <div class="panel leading" ?inert=${e||this.open!=="leading"}>
17887
17889
  <slot name="leading"></slot>
17888
17890
  </div>
@@ -17892,8 +17894,8 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17892
17894
  <div
17893
17895
  part="surface"
17894
17896
  class="surface"
17895
- @pointerdown=${this.#g}
17896
- @pointermove=${this.#v}
17897
+ @pointerdown=${this.#v}
17898
+ @pointermove=${this.#g}
17897
17899
  @pointerup=${this.#x}
17898
17900
  @pointercancel=${this.#x}
17899
17901
  >
@@ -17974,7 +17976,7 @@ ${$e(e=>`:host([padding='${e}'])`,"--_pad")}
17974
17976
 
17975
17977
 
17976
17978
 
17977
- `;constructor(){super(),this.variant="accent",this.disabled=!1}render(){return a`<button
17979
+ `;constructor(){super(),this.variant="accent",this.disabled=!1}render(){return l`<button
17978
17980
  part="base"
17979
17981
  class="base"
17980
17982
  type="button"