@deepfuture/dui-cdn 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dui.js +1137 -1971
  2. package/dui.min.js +568 -884
  3. package/package.json +1 -1
package/dui.min.js CHANGED
@@ -1,16 +1,16 @@
1
- var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDescriptor;var ek=(n,o)=>(o=Symbol[n])?o:Symbol.for("Symbol."+n),Bi=n=>{throw TypeError(n)};var rk=(n,o,t)=>o in n?Mp(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t;var tk=(n,o)=>Mp(n,"name",{value:o,configurable:!0});var C=n=>[,,,O2(n?.[ek("metadata")]??null)],ok=["class","method","getter","setter","accessor","field","value","get","set"],Fs=n=>n!==void 0&&typeof n!="function"?Bi("Function expected"):n,P2=(n,o,t,r,a)=>({kind:ok[n],name:o,metadata:r,addInitializer:d=>t._?Bi("Already initialized"):a.push(Fs(d||null))}),S=(n,o)=>rk(o,ek("metadata"),n[3]),i=(n,o,t,r)=>{for(var a=0,d=n[o>>1],p=d&&d.length;a<p;a++)o&1?d[a].call(t):r=d[a].call(t,r);return r},l=(n,o,t,r,a,d)=>{var p,v,x,E,$,w=o&7,I=!!(o&8),R=!!(o&16),z=w>3?n.length+1:w?I?1:2:0,B=ok[w+5],J=w>3&&(n[z-1]=[]),U=n[z]||(n[z]=[]),_=w&&(!R&&!I&&(a=a.prototype),w<5&&(w>3||!R)&&L2(w<4?a:{get[t](){return e(this,d)},set[t](K){return h(this,d,K)}},t));w?R&&w<4&&tk(d,(w>2?"set ":w>1?"get ":"")+t):tk(a,t);for(var q=r.length-1;q>=0;q--)E=P2(w,t,x={},n[3],U),w&&(E.static=I,E.private=R,$=E.access={has:R?K=>z2(a,K):K=>t in K},w^3&&($.get=R?K=>(w^1?e:m)(K,a,w^4?d:_.get):K=>K[t]),w>2&&($.set=R?(K,Kt)=>h(K,a,Kt,w^4?d:_.set):(K,Kt)=>K[t]=Kt)),v=(0,r[q])(w?w<4?R?d:_[B]:w>4?void 0:{get:_.get,set:_.set}:a,E),x._=1,w^4||v===void 0?Fs(v)&&(w>4?J.unshift(v):w?R?d=v:_[B]=v:a=v):typeof v!="object"||v===null?Bi("Object expected"):(Fs(p=v.get)&&(_.get=p),Fs(p=v.set)&&(_.set=p),Fs(p=v.init)&&J.unshift(p));return w||S(n,a),_&&Mp(a,t,_),R?w^4?d:_:a},b=(n,o,t)=>rk(n,typeof o!="symbol"?o+"":o,t),Fp=(n,o,t)=>o.has(n)||Bi("Cannot "+t),z2=(n,o)=>Object(o)!==o?Bi('Cannot use the "in" operator on this value'):n.has(o),e=(n,o,t)=>(Fp(n,o,"read from private field"),t?t.call(n):o.get(n)),s=(n,o,t)=>o.has(n)?Bi("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(n):o.set(n,t),h=(n,o,t,r)=>(Fp(n,o,"write to private field"),r?r.call(n,t):o.set(n,t),t),m=(n,o,t)=>(Fp(n,o,"access private method"),t);var Di=(n,o,t,r)=>({set _(a){h(n,o,a,t)},get _(){return e(n,o,r)}});var ik=null;function sk(){return ik}function nk({theme:n,components:o}){ik=n,document.adoptedStyleSheets.includes(n.tokens)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,n.tokens]),n.prose&&!document.adoptedStyleSheets.includes(n.prose)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,n.prose]);for(let t of o){let r=t.tagName;if(customElements.get(r))continue;let a=n.styles.get(r),p=[...Array.isArray(t.styles)?t.styles:t.styles?[t.styles]:[],n.base,...a?[a]:[]],v=class extends t{static styles=p};customElements.define(r,v)}}var va=globalThis,ga=va.ShadowRoot&&(va.ShadyCSS===void 0||va.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hp=Symbol(),ak=new WeakMap,Hs=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==Hp)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(ga&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=ak.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&ak.set(t,o))}return o}toString(){return this.cssText}},ba=n=>new Hs(typeof n=="string"?n:n+"",void 0,Hp),c=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((r,a,d)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+n[d+1],n[0]);return new Hs(t,n,Hp)},ya=(n,o)=>{if(ga)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),a=va.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=t.cssText,n.appendChild(r)}},Np=ga?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return ba(t)})(n):n;var{is:_2,defineProperty:M2,getOwnPropertyDescriptor:F2,getOwnPropertyNames:H2,getOwnPropertySymbols:N2,getPrototypeOf:B2}=Object,xa=globalThis,lk=xa.trustedTypes,D2=lk?lk.emptyScript:"",q2=xa.reactiveElementPolyfillSupport,Ns=(n,o)=>n,Bs={toAttribute(n,o){switch(o){case Boolean:n=n?D2:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},wa=(n,o)=>!_2(n,o),dk={attribute:!0,type:String,converter:Bs,reflect:!1,useDefault:!1,hasChanged:wa};Symbol.metadata??=Symbol("metadata"),xa.litPropertyMetadata??=new WeakMap;var Ur=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=dk){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),a=this.getPropertyDescriptor(o,r,t);a!==void 0&&M2(this.prototype,o,a)}}static getPropertyDescriptor(o,t,r){let{get:a,set:d}=F2(this.prototype,o)??{get(){return this[t]},set(p){this[t]=p}};return{get:a,set(p){let v=a?.call(this);d?.call(this,p),this.requestUpdate(o,v,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??dk}static _$Ei(){if(this.hasOwnProperty(Ns("elementProperties")))return;let o=B2(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Ns("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ns("properties"))){let t=this.properties,r=[...H2(t),...N2(t)];for(let a of r)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,a]of t)this.elementProperties.set(r,a)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let a=this._$Eu(t,r);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let a of r)t.unshift(Np(a))}else o!==void 0&&t.push(Np(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ya(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$ET(o,t){let r=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,r);if(a!==void 0&&r.reflect===!0){let d=(r.converter?.toAttribute!==void 0?r.converter:Bs).toAttribute(t,r.type);this._$Em=o,d==null?this.removeAttribute(a):this.setAttribute(a,d),this._$Em=null}}_$AK(o,t){let r=this.constructor,a=r._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let d=r.getPropertyOptions(a),p=typeof d.converter=="function"?{fromAttribute:d.converter}:d.converter?.fromAttribute!==void 0?d.converter:Bs;this._$Em=a;let v=p.fromAttribute(t,d.type);this[a]=v??this._$Ej?.get(a)??v,this._$Em=null}}requestUpdate(o,t,r,a=!1,d){if(o!==void 0){let p=this.constructor;if(a===!1&&(d=this[o]),r??=p.getPropertyOptions(o),!((r.hasChanged??wa)(d,t)||r.useDefault&&r.reflect&&d===this._$Ej?.get(o)&&!this.hasAttribute(p._$Eu(o,r))))return;this.C(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:r,reflect:a,wrapped:d},p){r&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,p??t??this[o]),d!==!0||p!==void 0)||(this._$AL.has(o)||(this.hasUpdated||r||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,d]of this._$Ep)this[a]=d;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[a,d]of r){let{wrapped:p}=d,v=this[a];p!==!0||this._$AL.has(a)||v===void 0||this.C(a,void 0,d,v)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw o=!1,this._$EM(),r}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};Ur.elementStyles=[],Ur.shadowRootOptions={mode:"open"},Ur[Ns("elementProperties")]=new Map,Ur[Ns("finalized")]=new Map,q2?.({ReactiveElement:Ur}),(xa.reactiveElementVersions??=[]).push("2.1.2");var Dp=globalThis,ck=n=>n,ka=Dp.trustedTypes,pk=ka?ka.createPolicy("lit-html",{createHTML:n=>n}):void 0,qp="$lit$",jr=`lit$${Math.random().toFixed(9).slice(2)}$`,Vp="?"+jr,V2=`<${Vp}>`,Yo=document,qs=()=>Yo.createComment(""),Vs=n=>n===null||typeof n!="object"&&typeof n!="function",Up=Array.isArray,gk=n=>Up(n)||typeof n?.[Symbol.iterator]=="function",Bp=`[
2
- \f\r]`,Ds=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hk=/-->/g,uk=/>/g,Ko=RegExp(`>|${Bp}(?:([^\\s"'>=/]+)(${Bp}*=${Bp}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),mk=/'/g,fk=/"/g,bk=/^(?:script|style|textarea|title)$/i,jp=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),f=jp(1),Ra=jp(2),$5=jp(3),Zt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),vk=new WeakMap,Go=Yo.createTreeWalker(Yo,129);function yk(n,o){if(!Up(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return pk!==void 0?pk.createHTML(o):o}var xk=(n,o)=>{let t=n.length-1,r=[],a,d=o===2?"<svg>":o===3?"<math>":"",p=Ds;for(let v=0;v<t;v++){let x=n[v],E,$,w=-1,I=0;for(;I<x.length&&(p.lastIndex=I,$=p.exec(x),$!==null);)I=p.lastIndex,p===Ds?$[1]==="!--"?p=hk:$[1]!==void 0?p=uk:$[2]!==void 0?(bk.test($[2])&&(a=RegExp("</"+$[2],"g")),p=Ko):$[3]!==void 0&&(p=Ko):p===Ko?$[0]===">"?(p=a??Ds,w=-1):$[1]===void 0?w=-2:(w=p.lastIndex-$[2].length,E=$[1],p=$[3]===void 0?Ko:$[3]==='"'?fk:mk):p===fk||p===mk?p=Ko:p===hk||p===uk?p=Ds:(p=Ko,a=void 0);let R=p===Ko&&n[v+1].startsWith("/>")?" ":"";d+=p===Ds?x+V2:w>=0?(r.push(E),x.slice(0,w)+qp+x.slice(w)+jr+R):x+jr+(w===-2?v:R)}return[yk(n,d+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},Us=class n{constructor({strings:o,_$litType$:t},r){let a;this.parts=[];let d=0,p=0,v=o.length-1,x=this.parts,[E,$]=xk(o,t);if(this.el=n.createElement(E,r),Go.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=Go.nextNode())!==null&&x.length<v;){if(a.nodeType===1){if(a.hasAttributes())for(let w of a.getAttributeNames())if(w.endsWith(qp)){let I=$[p++],R=a.getAttribute(w).split(jr),z=/([.?@])?(.*)/.exec(I);x.push({type:1,index:d,name:z[2],strings:R,ctor:z[1]==="."?Ca:z[1]==="?"?Ea:z[1]==="@"?$a:Jo}),a.removeAttribute(w)}else w.startsWith(jr)&&(x.push({type:6,index:d}),a.removeAttribute(w));if(bk.test(a.tagName)){let w=a.textContent.split(jr),I=w.length-1;if(I>0){a.textContent=ka?ka.emptyScript:"";for(let R=0;R<I;R++)a.append(w[R],qs()),Go.nextNode(),x.push({type:2,index:++d});a.append(w[I],qs())}}}else if(a.nodeType===8)if(a.data===Vp)x.push({type:2,index:d});else{let w=-1;for(;(w=a.data.indexOf(jr,w+1))!==-1;)x.push({type:7,index:d}),w+=jr.length-1}d++}}static createElement(o,t){let r=Yo.createElement("template");return r.innerHTML=o,r}};function Xo(n,o,t=n,r){if(o===Zt)return o;let a=r!==void 0?t._$Co?.[r]:t._$Cl,d=Vs(o)?void 0:o._$litDirective$;return a?.constructor!==d&&(a?._$AO?.(!1),d===void 0?a=void 0:(a=new d(n),a._$AT(n,t,r)),r!==void 0?(t._$Co??=[])[r]=a:t._$Cl=a),a!==void 0&&(o=Xo(n,a._$AS(n,o.values),a,r)),o}var Sa=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:r}=this._$AD,a=(o?.creationScope??Yo).importNode(t,!0);Go.currentNode=a;let d=Go.nextNode(),p=0,v=0,x=r[0];for(;x!==void 0;){if(p===x.index){let E;x.type===2?E=new qi(d,d.nextSibling,this,o):x.type===1?E=new x.ctor(d,x.name,x.strings,this,o):x.type===6&&(E=new Ta(d,this,o)),this._$AV.push(E),x=r[++v]}p!==x?.index&&(d=Go.nextNode(),p++)}return Go.currentNode=Yo,a}p(o){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(o,r,t),t+=r.strings.length-2):r._$AI(o[t])),t++}},qi=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,r,a){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Xo(this,o,t),Vs(o)?o===T||o==null||o===""?(this._$AH!==T&&this._$AR(),this._$AH=T):o!==this._$AH&&o!==Zt&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):gk(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==T&&Vs(this._$AH)?this._$AA.nextSibling.data=o:this.T(Yo.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:r}=o,a=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=Us.createElement(yk(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===a)this._$AH.p(t);else{let d=new Sa(a,this),p=d.u(this.options);d.p(t),this.T(p),this._$AH=d}}_$AC(o){let t=vk.get(o.strings);return t===void 0&&vk.set(o.strings,t=new Us(o)),t}k(o){Up(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,a=0;for(let d of o)a===t.length?t.push(r=new n(this.O(qs()),this.O(qs()),this,this.options)):r=t[a],r._$AI(d),a++;a<t.length&&(this._$AR(r&&r._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let r=ck(o).nextSibling;ck(o).remove(),o=r}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Jo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,a,d){this.type=1,this._$AH=T,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=T}_$AI(o,t=this,r,a){let d=this.strings,p=!1;if(d===void 0)o=Xo(this,o,t,0),p=!Vs(o)||o!==this._$AH&&o!==Zt,p&&(this._$AH=o);else{let v=o,x,E;for(o=d[0],x=0;x<d.length-1;x++)E=Xo(this,v[r+x],t,x),E===Zt&&(E=this._$AH[x]),p||=!Vs(E)||E!==this._$AH[x],E===T?o=T:o!==T&&(o+=(E??"")+d[x+1]),this._$AH[x]=E}p&&!a&&this.j(o)}j(o){o===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Ca=class extends Jo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===T?void 0:o}},Ea=class extends Jo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==T)}},$a=class extends Jo{constructor(o,t,r,a,d){super(o,t,r,a,d),this.type=5}_$AI(o,t=this){if((o=Xo(this,o,t,0)??T)===Zt)return;let r=this._$AH,a=o===T&&r!==T||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,d=o!==T&&(r===T||a);a&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},Ta=class{constructor(o,t,r){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(o){Xo(this,o)}},wk={M:qp,P:jr,A:Vp,C:1,L:xk,R:Sa,D:gk,V:Xo,I:qi,H:Jo,N:Ea,U:$a,B:Ca,F:Ta},U2=Dp.litHtmlPolyfillSupport;U2?.(Us,qi),(Dp.litHtmlVersions??=[]).push("3.3.2");var Ia=(n,o,t)=>{let r=t?.renderBefore??o,a=r._$litPart$;if(a===void 0){let d=t?.renderBefore??null;r._$litPart$=a=new qi(o.insertBefore(qs(),d),d,void 0,t??{})}return a._$AI(n),a};var Wp=globalThis,g=class extends Ur{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=Ia(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Zt}};g._$litElement$=!0,g.finalized=!0,Wp.litElementHydrateSupport?.({LitElement:g});var j2=Wp.litElementPolyfillSupport;j2?.({LitElement:g});(Wp.litElementVersions??=[]).push("4.2.2");var Kp=c`
1
+ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDescriptor;var T0=(n,o)=>(o=Symbol[n])?o:Symbol.for("Symbol."+n),Ti=n=>{throw TypeError(n)};var R0=(n,o,t)=>o in n?Vc(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t;var $0=(n,o)=>Vc(n,"name",{value:o,configurable:!0});var S=n=>[,,,tA(n?.[T0("metadata")]??null)],I0=["class","method","getter","setter","accessor","field","value","get","set"],Cs=n=>n!==void 0&&typeof n!="function"?Ti("Function expected"):n,rA=(n,o,t,e,a)=>({kind:I0[n],name:o,metadata:e,addInitializer:l=>t._?Ti("Already initialized"):a.push(Cs(l||null))}),C=(n,o)=>R0(o,T0("metadata"),n[3]),i=(n,o,t,e)=>{for(var a=0,l=n[o>>1],p=l&&l.length;a<p;a++)o&1?l[a].call(t):e=l[a].call(t,e);return e},d=(n,o,t,e,a,l)=>{var p,f,y,E,$,x=o&7,I=!!(o&8),R=!!(o&16),P=x>3?n.length+1:x?I?1:2:0,F=I0[x+5],X=x>3&&(n[P-1]=[]),q=n[P]||(n[P]=[]),z=x&&(!R&&!I&&(a=a.prototype),x<5&&(x>3||!R)&&eA(x<4?a:{get[t](){return r(this,l)},set[t](K){return h(this,l,K)}},t));x?R&&x<4&&$0(l,(x>2?"set ":x>1?"get ":"")+t):$0(a,t);for(var B=e.length-1;B>=0;B--)E=rA(x,t,y={},n[3],q),x&&(E.static=I,E.private=R,$=E.access={has:R?K=>oA(a,K):K=>t in K},x^3&&($.get=R?K=>(x^1?r:m)(K,a,x^4?l:z.get):K=>K[t]),x>2&&($.set=R?(K,qt)=>h(K,a,qt,x^4?l:z.set):(K,qt)=>K[t]=qt)),f=(0,e[B])(x?x<4?R?l:z[F]:x>4?void 0:{get:z.get,set:z.set}:a,E),y._=1,x^4||f===void 0?Cs(f)&&(x>4?X.unshift(f):x?R?l=f:z[F]=f:a=f):typeof f!="object"||f===null?Ti("Object expected"):(Cs(p=f.get)&&(z.get=p),Cs(p=f.set)&&(z.set=p),Cs(p=f.init)&&X.unshift(p));return x||C(n,a),z&&Vc(a,t,z),R?x^4?l:z:a},g=(n,o,t)=>R0(n,typeof o!="symbol"?o+"":o,t),Uc=(n,o,t)=>o.has(n)||Ti("Cannot "+t),oA=(n,o)=>Object(o)!==o?Ti('Cannot use the "in" operator on this value'):n.has(o),r=(n,o,t)=>(Uc(n,o,"read from private field"),t?t.call(n):o.get(n)),s=(n,o,t)=>o.has(n)?Ti("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(n):o.set(n,t),h=(n,o,t,e)=>(Uc(n,o,"write to private field"),e?e.call(n,t):o.set(n,t),t),m=(n,o,t)=>(Uc(n,o,"access private method"),t);var Ri=(n,o,t,e)=>({set _(a){h(n,o,a,t)},get _(){return r(n,o,e)}});var A0=null;function _0(){return A0}function O0({theme:n,components:o}){A0=n,document.adoptedStyleSheets.includes(n.tokens)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,n.tokens]),n.prose&&!document.adoptedStyleSheets.includes(n.prose)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,n.prose]);for(let t of o){let e=t.tagName;if(customElements.get(e))continue;let a=n.styles.get(e),p=[...Array.isArray(t.styles)?t.styles:t.styles?[t.styles]:[],n.base,...a?[a]:[]],f=class extends t{static styles=p};customElements.define(e,f)}}var En=globalThis,$n=En.ShadowRoot&&(En.ShadyCSS===void 0||En.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jc=Symbol(),L0=new WeakMap,Ss=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==jc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if($n&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=L0.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&L0.set(t,o))}return o}toString(){return this.cssText}},Tn=n=>new Ss(typeof n=="string"?n:n+"",void 0,jc),c=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,a,l)=>e+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+n[l+1],n[0]);return new Ss(t,n,jc)},Rn=(n,o)=>{if($n)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),a=En.litNonce;a!==void 0&&e.setAttribute("nonce",a),e.textContent=t.cssText,n.appendChild(e)}},Kc=$n?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return Tn(t)})(n):n;var{is:iA,defineProperty:sA,getOwnPropertyDescriptor:nA,getOwnPropertyNames:aA,getOwnPropertySymbols:lA,getPrototypeOf:dA}=Object,In=globalThis,P0=In.trustedTypes,cA=P0?P0.emptyScript:"",pA=In.reactiveElementPolyfillSupport,Es=(n,o)=>n,$s={toAttribute(n,o){switch(o){case Boolean:n=n?cA:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},An=(n,o)=>!iA(n,o),z0={attribute:!0,type:String,converter:$s,reflect:!1,useDefault:!1,hasChanged:An};Symbol.metadata??=Symbol("metadata"),In.litPropertyMetadata??=new WeakMap;var Lr=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=z0){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),a=this.getPropertyDescriptor(o,e,t);a!==void 0&&sA(this.prototype,o,a)}}static getPropertyDescriptor(o,t,e){let{get:a,set:l}=nA(this.prototype,o)??{get(){return this[t]},set(p){this[t]=p}};return{get:a,set(p){let f=a?.call(this);l?.call(this,p),this.requestUpdate(o,f,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??z0}static _$Ei(){if(this.hasOwnProperty(Es("elementProperties")))return;let o=dA(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Es("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Es("properties"))){let t=this.properties,e=[...aA(t),...lA(t)];for(let a of e)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,a]of t)this.elementProperties.set(e,a)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let a=this._$Eu(t,e);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let a of e)t.unshift(Kc(a))}else o!==void 0&&t.push(Kc(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Rn(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$ET(o,t){let e=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,e);if(a!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:$s).toAttribute(t,e.type);this._$Em=o,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(o,t){let e=this.constructor,a=e._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let l=e.getPropertyOptions(a),p=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:$s;this._$Em=a;let f=p.fromAttribute(t,l.type);this[a]=f??this._$Ej?.get(a)??f,this._$Em=null}}requestUpdate(o,t,e,a=!1,l){if(o!==void 0){let p=this.constructor;if(a===!1&&(l=this[o]),e??=p.getPropertyOptions(o),!((e.hasChanged??An)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(o)&&!this.hasAttribute(p._$Eu(o,e))))return;this.C(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:e,reflect:a,wrapped:l},p){e&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,p??t??this[o]),l!==!0||p!==void 0)||(this._$AL.has(o)||(this.hasUpdated||e||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[a,l]of e){let{wrapped:p}=l,f=this[a];p!==!0||this._$AL.has(a)||f===void 0||this.C(a,void 0,l,f)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw o=!1,this._$EM(),e}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};Lr.elementStyles=[],Lr.shadowRootOptions={mode:"open"},Lr[Es("elementProperties")]=new Map,Lr[Es("finalized")]=new Map,pA?.({ReactiveElement:Lr}),(In.reactiveElementVersions??=[]).push("2.1.2");var Gc=globalThis,M0=n=>n,_n=Gc.trustedTypes,D0=_n?_n.createPolicy("lit-html",{createHTML:n=>n}):void 0,Yc="$lit$",Pr=`lit$${Math.random().toFixed(9).slice(2)}$`,Xc="?"+Pr,hA=`<${Xc}>`,zo=document,Rs=()=>zo.createComment(""),Is=n=>n===null||typeof n!="object"&&typeof n!="function",Qc=Array.isArray,V0=n=>Qc(n)||typeof n?.[Symbol.iterator]=="function",Wc=`[
2
+ \f\r]`,Ts=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F0=/-->/g,H0=/>/g,Lo=RegExp(`>|${Wc}(?:([^\\s"'>=/]+)(${Wc}*=${Wc}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),N0=/'/g,B0=/"/g,U0=/^(?:script|style|textarea|title)$/i,Jc=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),v=Jc(1),Dn=Jc(2),$L=Jc(3),jt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),q0=new WeakMap,Po=zo.createTreeWalker(zo,129);function j0(n,o){if(!Qc(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return D0!==void 0?D0.createHTML(o):o}var K0=(n,o)=>{let t=n.length-1,e=[],a,l=o===2?"<svg>":o===3?"<math>":"",p=Ts;for(let f=0;f<t;f++){let y=n[f],E,$,x=-1,I=0;for(;I<y.length&&(p.lastIndex=I,$=p.exec(y),$!==null);)I=p.lastIndex,p===Ts?$[1]==="!--"?p=F0:$[1]!==void 0?p=H0:$[2]!==void 0?(U0.test($[2])&&(a=RegExp("</"+$[2],"g")),p=Lo):$[3]!==void 0&&(p=Lo):p===Lo?$[0]===">"?(p=a??Ts,x=-1):$[1]===void 0?x=-2:(x=p.lastIndex-$[2].length,E=$[1],p=$[3]===void 0?Lo:$[3]==='"'?B0:N0):p===B0||p===N0?p=Lo:p===F0||p===H0?p=Ts:(p=Lo,a=void 0);let R=p===Lo&&n[f+1].startsWith("/>")?" ":"";l+=p===Ts?y+hA:x>=0?(e.push(E),y.slice(0,x)+Yc+y.slice(x)+Pr+R):y+Pr+(x===-2?f:R)}return[j0(n,l+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},As=class n{constructor({strings:o,_$litType$:t},e){let a;this.parts=[];let l=0,p=0,f=o.length-1,y=this.parts,[E,$]=K0(o,t);if(this.el=n.createElement(E,e),Po.currentNode=this.el.content,t===2||t===3){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(a=Po.nextNode())!==null&&y.length<f;){if(a.nodeType===1){if(a.hasAttributes())for(let x of a.getAttributeNames())if(x.endsWith(Yc)){let I=$[p++],R=a.getAttribute(x).split(Pr),P=/([.?@])?(.*)/.exec(I);y.push({type:1,index:l,name:P[2],strings:R,ctor:P[1]==="."?Ln:P[1]==="?"?Pn:P[1]==="@"?zn:Do}),a.removeAttribute(x)}else x.startsWith(Pr)&&(y.push({type:6,index:l}),a.removeAttribute(x));if(U0.test(a.tagName)){let x=a.textContent.split(Pr),I=x.length-1;if(I>0){a.textContent=_n?_n.emptyScript:"";for(let R=0;R<I;R++)a.append(x[R],Rs()),Po.nextNode(),y.push({type:2,index:++l});a.append(x[I],Rs())}}}else if(a.nodeType===8)if(a.data===Xc)y.push({type:2,index:l});else{let x=-1;for(;(x=a.data.indexOf(Pr,x+1))!==-1;)y.push({type:7,index:l}),x+=Pr.length-1}l++}}static createElement(o,t){let e=zo.createElement("template");return e.innerHTML=o,e}};function Mo(n,o,t=n,e){if(o===jt)return o;let a=e!==void 0?t._$Co?.[e]:t._$Cl,l=Is(o)?void 0:o._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(n),a._$AT(n,t,e)),e!==void 0?(t._$Co??=[])[e]=a:t._$Cl=a),a!==void 0&&(o=Mo(n,a._$AS(n,o.values),a,e)),o}var On=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:e}=this._$AD,a=(o?.creationScope??zo).importNode(t,!0);Po.currentNode=a;let l=Po.nextNode(),p=0,f=0,y=e[0];for(;y!==void 0;){if(p===y.index){let E;y.type===2?E=new Ii(l,l.nextSibling,this,o):y.type===1?E=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(E=new Mn(l,this,o)),this._$AV.push(E),y=e[++f]}p!==y?.index&&(l=Po.nextNode(),p++)}return Po.currentNode=zo,a}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Ii=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,e,a){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Mo(this,o,t),Is(o)?o===T||o==null||o===""?(this._$AH!==T&&this._$AR(),this._$AH=T):o!==this._$AH&&o!==jt&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):V0(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==T&&Is(this._$AH)?this._$AA.nextSibling.data=o:this.T(zo.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:e}=o,a=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=As.createElement(j0(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===a)this._$AH.p(t);else{let l=new On(a,this),p=l.u(this.options);l.p(t),this.T(p),this._$AH=l}}_$AC(o){let t=q0.get(o.strings);return t===void 0&&q0.set(o.strings,t=new As(o)),t}k(o){Qc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,a=0;for(let l of o)a===t.length?t.push(e=new n(this.O(Rs()),this.O(Rs()),this,this.options)):e=t[a],e._$AI(l),a++;a<t.length&&(this._$AR(e&&e._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let e=M0(o).nextSibling;M0(o).remove(),o=e}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Do=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,a,l){this.type=1,this._$AH=T,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=T}_$AI(o,t=this,e,a){let l=this.strings,p=!1;if(l===void 0)o=Mo(this,o,t,0),p=!Is(o)||o!==this._$AH&&o!==jt,p&&(this._$AH=o);else{let f=o,y,E;for(o=l[0],y=0;y<l.length-1;y++)E=Mo(this,f[e+y],t,y),E===jt&&(E=this._$AH[y]),p||=!Is(E)||E!==this._$AH[y],E===T?o=T:o!==T&&(o+=(E??"")+l[y+1]),this._$AH[y]=E}p&&!a&&this.j(o)}j(o){o===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Ln=class extends Do{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===T?void 0:o}},Pn=class extends Do{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==T)}},zn=class extends Do{constructor(o,t,e,a,l){super(o,t,e,a,l),this.type=5}_$AI(o,t=this){if((o=Mo(this,o,t,0)??T)===jt)return;let e=this._$AH,a=o===T&&e!==T||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==T&&(e===T||a);a&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},Mn=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Mo(this,o)}},W0={M:Yc,P:Pr,A:Xc,C:1,L:K0,R:On,D:V0,V:Mo,I:Ii,H:Do,N:Pn,U:zn,B:Ln,F:Mn},uA=Gc.litHtmlPolyfillSupport;uA?.(As,Ii),(Gc.litHtmlVersions??=[]).push("3.3.2");var Fn=(n,o,t)=>{let e=t?.renderBefore??o,a=e._$litPart$;if(a===void 0){let l=t?.renderBefore??null;e._$litPart$=a=new Ii(o.insertBefore(Rs(),l),l,void 0,t??{})}return a._$AI(n),a};var Zc=globalThis,b=class extends Lr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=Fn(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return jt}};b._$litElement$=!0,b.finalized=!0,Zc.litElementHydrateSupport?.({LitElement:b});var mA=Zc.litElementPolyfillSupport;mA?.({LitElement:b});(Zc.litElementVersions??=[]).push("4.2.2");var tp=c`
4
4
  :host {
5
5
  font-size: inherit;
6
6
  letter-spacing: inherit;
7
7
  font-optical-sizing: auto;
8
8
  }
9
- `;var Gp=c`
9
+ `;var ep=c`
10
10
  ::slotted(:last-child) {
11
11
  --accordion-item-border: none;
12
12
  }
13
- `;var kk={"2xs":{fontSize:"var(--font-size-2xs)",letterSpacing:"var(--letter-spacing-wider)",lineHeight:"var(--line-height-normal)"},xs:{fontSize:"var(--font-size-xs)",letterSpacing:"var(--letter-spacing-wide)",lineHeight:"var(--line-height-normal)"},sm:{fontSize:"var(--font-size-sm)",letterSpacing:"var(--letter-spacing-wide)",lineHeight:"var(--line-height-normal)"},base:{fontSize:"var(--font-size-base)",letterSpacing:"var(--letter-spacing-normal)",lineHeight:"var(--line-height-normal)"},md:{fontSize:"var(--font-size-md)",letterSpacing:"var(--letter-spacing-normal)",lineHeight:"var(--line-height-normal)"},lg:{fontSize:"var(--font-size-lg)",letterSpacing:"var(--letter-spacing-tight)",lineHeight:"var(--line-height-snug)"},xl:{fontSize:"var(--font-size-xl)",letterSpacing:"var(--letter-spacing-tight)",lineHeight:"var(--line-height-snug)"},"2xl":{fontSize:"var(--font-size-2xl)",letterSpacing:"var(--letter-spacing-tighter)",lineHeight:"var(--line-height-tight)"},"3xl":{fontSize:"var(--font-size-3xl)",letterSpacing:"var(--letter-spacing-tighter)",lineHeight:"var(--line-height-tight)"},"4xl":{fontSize:"var(--font-size-4xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-tight)"},"5xl":{fontSize:"var(--font-size-5xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-none)"},"6xl":{fontSize:"var(--font-size-6xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-none)"},"7xl":{fontSize:"var(--font-size-7xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-none)"}};function P(n,o){let t=kk[n],r=o?.letterSpacing??t.letterSpacing,a=o?.lineHeight??t.lineHeight;return ba(`font-size: ${t.fontSize}; letter-spacing: ${r}; line-height: ${a};`)}var Yp=c`
13
+ `;var G0={"2xs":{fontSize:"var(--font-size-2xs)",letterSpacing:"var(--letter-spacing-wider)",lineHeight:"var(--line-height-normal)"},xs:{fontSize:"var(--font-size-xs)",letterSpacing:"var(--letter-spacing-wide)",lineHeight:"var(--line-height-normal)"},sm:{fontSize:"var(--font-size-sm)",letterSpacing:"var(--letter-spacing-wide)",lineHeight:"var(--line-height-normal)"},base:{fontSize:"var(--font-size-base)",letterSpacing:"var(--letter-spacing-normal)",lineHeight:"var(--line-height-normal)"},md:{fontSize:"var(--font-size-md)",letterSpacing:"var(--letter-spacing-normal)",lineHeight:"var(--line-height-normal)"},lg:{fontSize:"var(--font-size-lg)",letterSpacing:"var(--letter-spacing-tight)",lineHeight:"var(--line-height-snug)"},xl:{fontSize:"var(--font-size-xl)",letterSpacing:"var(--letter-spacing-tight)",lineHeight:"var(--line-height-snug)"},"2xl":{fontSize:"var(--font-size-2xl)",letterSpacing:"var(--letter-spacing-tighter)",lineHeight:"var(--line-height-tight)"},"3xl":{fontSize:"var(--font-size-3xl)",letterSpacing:"var(--letter-spacing-tighter)",lineHeight:"var(--line-height-tight)"},"4xl":{fontSize:"var(--font-size-4xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-tight)"},"5xl":{fontSize:"var(--font-size-5xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-none)"},"6xl":{fontSize:"var(--font-size-6xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-none)"},"7xl":{fontSize:"var(--font-size-7xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-none)"}};function L(n,o){let t=G0[n],e=o?.letterSpacing??t.letterSpacing,a=o?.lineHeight??t.lineHeight;return Tn(`font-size: ${t.fontSize}; letter-spacing: ${e}; line-height: ${a};`)}var rp=c`
14
14
  /* ── Item ── */
15
15
 
16
16
  [part="item"] {
@@ -29,7 +29,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
29
29
  color: var(--text-1);
30
30
  font-family: var(--font-sans);
31
31
  font-weight: var(--font-weight-semibold);
32
- ${P("sm")}
32
+ ${L("sm")}
33
33
  height: var(--component-height-md);
34
34
  border-radius: var(--radius-sm);
35
35
  transition-property: background, box-shadow, filter, transform;
@@ -83,7 +83,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
83
83
  [part="content"] {
84
84
  padding: 0 0 var(--space-3);
85
85
  font-family: var(--font-sans);
86
- ${P("sm")}
86
+ ${L("sm")}
87
87
  font-weight: var(--font-weight-regular);
88
88
  color: var(--text-2);
89
89
  }
@@ -97,7 +97,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
97
97
  transition-duration: 0s;
98
98
  }
99
99
  }
100
- `;var Xp=c`
100
+ `;var op=c`
101
101
  /* =================================================================
102
102
  * Two-axis variant system:
103
103
  * variant → semantic intent (neutral, primary, danger)
@@ -269,7 +269,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
269
269
  :host([data-open]) [part="root"]:not(:disabled):not([aria-disabled="true"]) {
270
270
  background: oklch(from var(--foreground) l c h / 0.05);
271
271
  }
272
- `;var Jp=c`
272
+ `;var ip=c`
273
273
  :host {
274
274
  --switch-width: var(--space-9);
275
275
  --switch-height: var(--space-5);
@@ -337,7 +337,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
337
337
  [part="root"][data-checked] [part="thumb"] {
338
338
  background: oklch(from var(--accent) 0.98 0.01 h);
339
339
  }
340
- `;var Qp=c`
340
+ `;var sp=c`
341
341
  /* =================================================================
342
342
  * Two-axis variant system:
343
343
  * variant → semantic intent (neutral, accent, danger)
@@ -413,12 +413,12 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
413
413
  background: var(--badge-bg);
414
414
  color: var(--badge-fg);
415
415
  font-family: var(--font-sans);
416
- ${P("xs",{letterSpacing:"var(--letter-spacing-normal)",lineHeight:"var(--line-height-snug)"})}
416
+ ${L("xs",{letterSpacing:"var(--letter-spacing-normal)",lineHeight:"var(--line-height-snug)"})}
417
417
  font-weight: var(--font-weight-medium);
418
418
  white-space: nowrap;
419
419
  border: var(--border-width-thin) solid var(--badge-border);
420
420
  }
421
- `;var Zp=c`
421
+ `;var np=c`
422
422
  .ScrollFade {
423
423
  box-shadow: var(--scroll-fade-offset-x, 0) var(--scroll-fade-offset-y, 0)
424
424
  var(--scroll-fade-blur-radius, var(--space-3))
@@ -461,7 +461,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
461
461
  opacity: 0.8;
462
462
  }
463
463
  }
464
- `;var th=c`
464
+ `;var ap=c`
465
465
  /* ---- Chips (multi-select container) ---- */
466
466
 
467
467
  .Chips {
@@ -491,7 +491,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
491
491
  height: var(--component-height-md);
492
492
  color: var(--text-1);
493
493
  font-family: var(--font-sans);
494
- ${P("sm")}
494
+ ${L("sm")}
495
495
  }
496
496
 
497
497
  .Input::placeholder {
@@ -539,7 +539,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
539
539
  background: oklch(from var(--foreground) l c h / 0.05);
540
540
  color: var(--text-1);
541
541
  border-radius: var(--radius-sm);
542
- ${P("xs")}
542
+ ${L("xs")}
543
543
  padding: var(--space-0_5) var(--space-0_5) var(--space-0_5) var(--space-2);
544
544
  }
545
545
 
@@ -582,7 +582,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
582
582
  gap: var(--space-2);
583
583
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
584
584
  border-radius: var(--radius-sm);
585
- ${P("sm")}
585
+ ${L("sm")}
586
586
  font-family: var(--font-sans);
587
587
  color: var(--text-1);
588
588
  }
@@ -599,11 +599,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
599
599
 
600
600
  .Empty {
601
601
  padding: var(--space-3);
602
- ${P("sm")}
602
+ ${L("sm")}
603
603
  color: var(--text-2);
604
604
  text-align: center;
605
605
  }
606
- `;var eh=c`
606
+ `;var lp=c`
607
607
  .Popup {
608
608
  background: var(--surface-3);
609
609
  border: var(--border-width-thin) solid var(--border);
@@ -621,14 +621,14 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
621
621
  .Menu {
622
622
  padding: var(--space-1);
623
623
  }
624
- `;var rh=c`
624
+ `;var dp=c`
625
625
  .Item {
626
626
  --icon-size: var(--space-4);
627
627
  --icon-color: var(--text-2);
628
628
  gap: var(--space-2);
629
629
  padding: var(--space-2) var(--space-3);
630
630
  border-radius: var(--radius-sm);
631
- ${P("sm")}
631
+ ${L("sm")}
632
632
  font-family: var(--font-sans);
633
633
  color: var(--text-1);
634
634
  }
@@ -656,14 +656,14 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
656
656
  opacity: 0.4;
657
657
  cursor: not-allowed;
658
658
  }
659
- `;var oh=c``;var ih=c`
659
+ `;var cp=c``;var pp=c`
660
660
  .Popup {
661
661
  padding: var(--space-1);
662
662
  border-radius: var(--radius-md);
663
663
  background: var(--surface-3);
664
664
  color: var(--text-1);
665
665
  font-family: var(--font-sans);
666
- ${P("sm")}
666
+ ${L("sm")}
667
667
  box-shadow: var(--shadow-md);
668
668
  border: var(--border-width-thin) solid var(--border);
669
669
  transition-duration: var(--duration-fast);
@@ -679,7 +679,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
679
679
  stroke: var(--border);
680
680
  stroke-width: 1px;
681
681
  }
682
- `;var sh=c``;var nh=c`
682
+ `;var hp=c``;var up=c`
683
683
  .Popup {
684
684
  padding: var(--space-0_5) var(--space-1_5);
685
685
  border-radius: var(--radius-sm);
@@ -691,7 +691,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
691
691
  backdrop-filter: var(--filter-blur-sm);
692
692
  color: var(--background);
693
693
  font-family: var(--font-sans);
694
- ${P("xs",{lineHeight:"var(--line-height-snug)"})}
694
+ ${L("xs",{lineHeight:"var(--line-height-snug)"})}
695
695
  box-shadow: var(--shadow-sm);
696
696
  max-width: var(--space-80);
697
697
  transition-duration: var(--duration-fastest);
@@ -706,7 +706,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
706
706
  fill: none;
707
707
  stroke: none;
708
708
  }
709
- `;var ah=c``;var lh=c`
709
+ `;var mp=c``;var fp=c`
710
710
  /* ── Backdrop ── */
711
711
 
712
712
  [part="backdrop"] {
@@ -745,7 +745,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
745
745
  margin-top: calc(-1 * var(--space-1));
746
746
  margin-bottom: var(--space-1);
747
747
  font-family: var(--font-sans);
748
- ${P("lg",{letterSpacing:"var(--letter-spacing-tighter)",lineHeight:"var(--line-height-tight)"})}
748
+ ${L("lg",{letterSpacing:"var(--letter-spacing-tighter)",lineHeight:"var(--line-height-tight)"})}
749
749
  font-weight: var(--font-weight-medium);
750
750
  color: var(--text-1);
751
751
  }
@@ -755,7 +755,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
755
755
  [part="description"] {
756
756
  margin: 0 0 var(--space-6);
757
757
  font-family: var(--font-sans);
758
- ${P("md")}
758
+ ${L("md")}
759
759
  color: var(--text-2);
760
760
  }
761
761
 
@@ -767,7 +767,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
767
767
  transition-duration: 0s;
768
768
  }
769
769
  }
770
- `;var dh=c``;var ch=c`
770
+ `;var vp=c``;var gp=c`
771
771
  /* ── Backdrop ── */
772
772
 
773
773
  [part="backdrop"] {
@@ -806,7 +806,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
806
806
  margin-top: calc(-1 * var(--space-1));
807
807
  margin-bottom: var(--space-1);
808
808
  font-family: var(--font-sans);
809
- ${P("lg",{letterSpacing:"var(--letter-spacing-tighter)",lineHeight:"var(--line-height-tight)"})}
809
+ ${L("lg",{letterSpacing:"var(--letter-spacing-tighter)",lineHeight:"var(--line-height-tight)"})}
810
810
  font-weight: var(--font-weight-medium);
811
811
  color: var(--text-1);
812
812
  }
@@ -816,7 +816,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
816
816
  [part="description"] {
817
817
  margin: 0 0 var(--space-6);
818
818
  font-family: var(--font-sans);
819
- ${P("md")}
819
+ ${L("md")}
820
820
  color: var(--text-2);
821
821
  }
822
822
 
@@ -828,18 +828,18 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
828
828
  transition-duration: 0s;
829
829
  }
830
830
  }
831
- `;var ph=c`
831
+ `;var bp=c`
832
832
  [part="root"] {
833
833
  gap: var(--space-2);
834
- ${P("sm")}
834
+ ${L("sm")}
835
835
  font-family: var(--font-sans);
836
836
  color: var(--text-2);
837
837
  }
838
- `;var hh=c`
838
+ `;var yp=c`
839
839
  [part="root"] {
840
840
  gap: var(--space-1_5);
841
841
  }
842
- `;var uh=c`
842
+ `;var xp=c`
843
843
  [part="root"] {
844
844
  color: var(--text-2);
845
845
  }
@@ -853,22 +853,22 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
853
853
  [part="root"] ::slotted(a:hover) {
854
854
  color: var(--text-1);
855
855
  }
856
- `;var mh=c`
856
+ `;var wp=c`
857
857
  [part="root"] {
858
858
  color: var(--text-1);
859
859
  font-weight: var(--font-weight-regular);
860
860
  }
861
- `;var fh=c`
861
+ `;var kp=c`
862
862
  [part="root"] {
863
863
  --icon-size: var(--space-3_5);
864
864
  color: color-mix(in oklch, var(--text-2) 50%, transparent);
865
865
  }
866
- `;var vh=c`
866
+ `;var Cp=c`
867
867
  [part="root"] {
868
868
  color: var(--text-2);
869
869
  width: var(--space-4);
870
870
  }
871
- `;var gh=c`
871
+ `;var Sp=c`
872
872
  :host {
873
873
  --checkbox-size: var(--space-4_5);
874
874
  gap: var(--space-2);
@@ -920,7 +920,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
920
920
  width: var(--space-3);
921
921
  height: var(--space-3);
922
922
  }
923
- `;var bh=c`
923
+ `;var Ep=c`
924
924
  [part="root"] {
925
925
  gap: var(--space-1);
926
926
  }
@@ -928,7 +928,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
928
928
  [part="root"][data-disabled] {
929
929
  opacity: 0.4;
930
930
  }
931
- `;var yh=c`
931
+ `;var $p=c`
932
932
  /* ── Trigger ── */
933
933
 
934
934
  [part="trigger"] {
@@ -938,7 +938,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
938
938
  color: var(--text-1);
939
939
  font-family: var(--font-sans);
940
940
  font-weight: var(--font-weight-semibold);
941
- ${P("sm")}
941
+ ${L("sm")}
942
942
  height: var(--component-height-md);
943
943
  border-radius: var(--radius-sm);
944
944
  transition-property: background, box-shadow, filter, transform;
@@ -992,7 +992,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
992
992
  [part="content"] {
993
993
  padding: var(--space-1) var(--space-4) var(--space-3);
994
994
  font-family: var(--font-sans);
995
- ${P("sm")}
995
+ ${L("sm")}
996
996
  font-weight: var(--font-weight-regular);
997
997
  color: var(--text-2);
998
998
  }
@@ -1006,7 +1006,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1006
1006
  transition-duration: 0s;
1007
1007
  }
1008
1008
  }
1009
- `;var xh=c`
1009
+ `;var Tp=c`
1010
1010
  /* ── Root ── */
1011
1011
 
1012
1012
  [part="root"] {
@@ -1053,7 +1053,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1053
1053
  [part="right"] {
1054
1054
  gap: var(--space-2);
1055
1055
  }
1056
- `;var wh=c`
1056
+ `;var Rp=c`
1057
1057
  :host {
1058
1058
  --slider-track-height: var(--space-1_5);
1059
1059
  --slider-thumb-size: var(--space-4_5);
@@ -1109,7 +1109,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1109
1109
  0 0 0 var(--focus-ring-offset) var(--background),
1110
1110
  0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
1111
1111
  }
1112
- `;var kh=c`
1112
+ `;var Ip=c`
1113
1113
  :host {
1114
1114
  --spinner-size: var(--component-height-xxs);
1115
1115
  --spinner-color: currentColor;
@@ -1131,10 +1131,10 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1131
1131
  animation-duration: 3s;
1132
1132
  }
1133
1133
  }
1134
- `;var Sh=c`
1134
+ `;var Ap=c`
1135
1135
  [part="tab"] {
1136
1136
  color: var(--text-2);
1137
- ${P("sm",{lineHeight:"var(--line-height-snug)"})}
1137
+ ${L("sm",{lineHeight:"var(--line-height-snug)"})}
1138
1138
  font-weight: var(--font-weight-medium);
1139
1139
  padding-inline: var(--space-2);
1140
1140
  height: var(--component-height-md);
@@ -1163,7 +1163,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1163
1163
  [part="tab"][data-disabled] {
1164
1164
  opacity: 0.4;
1165
1165
  }
1166
- `;var Ch=c``;var Eh=c`
1166
+ `;var _p=c``;var Op=c`
1167
1167
  :host {
1168
1168
  height: var(--space-6);
1169
1169
  border-radius: var(--radius-sm);
@@ -1171,7 +1171,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1171
1171
  transition-duration: var(--duration-normal);
1172
1172
  transition-timing-function: var(--ease-in-out-3);
1173
1173
  }
1174
- `;var $h=c`
1174
+ `;var Lp=c`
1175
1175
  [part="list"] {
1176
1176
  padding-inline: 0;
1177
1177
  gap: 0;
@@ -1182,7 +1182,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1182
1182
  padding-inline: 0;
1183
1183
  padding-block: var(--space-1);
1184
1184
  }
1185
- `;var Th=c`
1185
+ `;var Pp=c`
1186
1186
  [part="panel"] {
1187
1187
  transition-property: box-shadow;
1188
1188
  transition-duration: var(--duration-fast);
@@ -1194,7 +1194,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1194
1194
  0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
1195
1195
  border-radius: var(--radius-md);
1196
1196
  }
1197
- `;var Rh=c`
1197
+ `;var zp=c`
1198
1198
  :host {
1199
1199
  --font-size: var(--font-size-sm);
1200
1200
  }
@@ -1269,13 +1269,13 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1269
1269
  :host([variant="ghost"]) [part="textarea"]:focus-visible {
1270
1270
  box-shadow: none;
1271
1271
  }
1272
- `;var Ih=c`
1272
+ `;var Mp=c`
1273
1273
  [part="root"] {
1274
1274
  font-family: var(--font-sans);
1275
- ${P("sm")}
1275
+ ${L("sm")}
1276
1276
  color: var(--text-1);
1277
1277
  }
1278
- `;var Ah=c``;var Oh=c``;var Lh=c``;var Ph=c``;var zh=c``;var _h=c`
1278
+ `;var Dp=c``;var Fp=c`
1279
1279
  :host {
1280
1280
  --avatar-bg: var(--surface-1);
1281
1281
  --avatar-fg: var(--text-2);
@@ -1295,11 +1295,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1295
1295
  font-weight: var(--font-weight-medium);
1296
1296
  line-height: var(--line-height-none);
1297
1297
  }
1298
- `;var Mh=c``;var Fh=c`
1298
+ `;var Hp=c``;var Np=c`
1299
1299
  [part="input"] {
1300
1300
  padding: var(--space-2);
1301
1301
  font-family: var(--font-sans);
1302
- ${P("sm")}
1302
+ ${L("sm")}
1303
1303
  height: var(--component-height-md);
1304
1304
  color: var(--text-1);
1305
1305
  border: var(--border-width-thin) solid var(--border);
@@ -1346,7 +1346,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1346
1346
  -webkit-text-fill-color: var(--text-1);
1347
1347
  transition: background-color 5000s ease-in-out 0s;
1348
1348
  }
1349
- `;var Hh=c`
1349
+ `;var Bp=c`
1350
1350
  :host {
1351
1351
  --radio-size: var(--space-4_5);
1352
1352
  gap: var(--space-2);
@@ -1392,11 +1392,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1392
1392
  border-radius: 50%;
1393
1393
  background: oklch(from var(--accent) 0.98 0.01 h);
1394
1394
  }
1395
- `;var Nh=c`
1395
+ `;var qp=c`
1396
1396
  [part="root"] {
1397
1397
  gap: var(--space-1);
1398
1398
  }
1399
- `;var Bh=c`
1399
+ `;var Vp=c`
1400
1400
  :host([disabled]) {
1401
1401
  opacity: 0.4;
1402
1402
  }
@@ -1427,7 +1427,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1427
1427
  border-color: var(--accent);
1428
1428
  background: var(--accent-subtle);
1429
1429
  }
1430
- `;var Dh=c`
1430
+ `;var Up=c`
1431
1431
  .Trigger {
1432
1432
  height: var(--component-height-md);
1433
1433
  gap: var(--space-2);
@@ -1437,7 +1437,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1437
1437
  background: var(--sunken);
1438
1438
  color: var(--text-1);
1439
1439
  font-family: var(--font-sans);
1440
- ${P("sm")}
1440
+ ${L("sm")}
1441
1441
  transition-property: border-color, box-shadow, background, filter, transform;
1442
1442
  transition-duration: var(--duration-fast);
1443
1443
  }
@@ -1494,7 +1494,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1494
1494
  gap: var(--space-2);
1495
1495
  padding: var(--space-1_5) var(--space-2);
1496
1496
  border-radius: var(--radius-sm);
1497
- ${P("sm")}
1497
+ ${L("sm")}
1498
1498
  font-family: var(--font-sans);
1499
1499
  color: var(--text-1);
1500
1500
  }
@@ -1520,14 +1520,14 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1520
1520
  .ItemIndicator dui-icon {
1521
1521
  --icon-size: var(--space-3_5);
1522
1522
  }
1523
- `;var qh=c``;var Vh=c`
1523
+ `;var jp=c``;var Kp=c`
1524
1524
  .Popup {
1525
1525
  padding: var(--space-4);
1526
1526
  border-radius: var(--radius-md);
1527
1527
  background: var(--surface-3);
1528
1528
  color: var(--text-1);
1529
1529
  font-family: var(--font-sans);
1530
- ${P("sm")}
1530
+ ${L("sm")}
1531
1531
  box-shadow: var(--shadow-lg);
1532
1532
  border: var(--border-width-thin) solid var(--border);
1533
1533
  max-width: var(--max-width, var(--space-80));
@@ -1544,7 +1544,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1544
1544
  stroke: var(--border);
1545
1545
  stroke-width: 1px;
1546
1546
  }
1547
- `;var Uh=c`
1547
+ `;var Wp=c`
1548
1548
  .DataTable {
1549
1549
  gap: var(--space-2);
1550
1550
  }
@@ -1558,14 +1558,14 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1558
1558
 
1559
1559
  table {
1560
1560
  font-family: var(--font-sans);
1561
- ${P("sm")}
1561
+ ${L("sm")}
1562
1562
  }
1563
1563
 
1564
1564
  th {
1565
1565
  height: var(--component-height-lg);
1566
1566
  padding: 0 var(--space-3);
1567
1567
  font-weight: var(--font-weight-medium);
1568
- ${P("xs")}
1568
+ ${L("xs")}
1569
1569
  color: var(--text-2);
1570
1570
  background: var(--surface-1);
1571
1571
  border-bottom: var(--border-width-thin) solid var(--border);
@@ -1618,7 +1618,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1618
1618
 
1619
1619
  .Pagination {
1620
1620
  padding: 0 var(--space-1);
1621
- ${P("sm")}
1621
+ ${L("sm")}
1622
1622
  color: var(--text-2);
1623
1623
  }
1624
1624
 
@@ -1636,7 +1636,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1636
1636
  border: var(--border-width-thin) solid var(--border);
1637
1637
  border-radius: var(--radius-md);
1638
1638
  color: var(--text-1);
1639
- ${P("sm")}
1639
+ ${L("sm")}
1640
1640
  transition-property: background;
1641
1641
  transition-duration: var(--duration-fast);
1642
1642
  }
@@ -1655,13 +1655,13 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1655
1655
  0 0 0 var(--focus-ring-offset) var(--background),
1656
1656
  0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
1657
1657
  }
1658
- `;var jh=c`
1658
+ `;var Gp=c`
1659
1659
  :host {
1660
1660
  border-radius: var(--radius-md);
1661
1661
  background: var(--surface-3);
1662
1662
  color: var(--text-1);
1663
1663
  }
1664
- `;var Wh=c`
1664
+ `;var Yp=c`
1665
1665
  .InputWrapper {
1666
1666
  gap: var(--space-2);
1667
1667
  border-bottom: var(--border-width-thin) solid var(--border);
@@ -1677,18 +1677,18 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1677
1677
  .Input {
1678
1678
  height: var(--component-height-lg);
1679
1679
  border-radius: var(--radius-md);
1680
- ${P("sm")}
1680
+ ${L("sm")}
1681
1681
  }
1682
1682
 
1683
1683
  .Input::placeholder {
1684
1684
  color: var(--text-3);
1685
1685
  }
1686
- `;var Kh=c`
1686
+ `;var Xp=c`
1687
1687
  .Item {
1688
1688
  gap: var(--space-2);
1689
1689
  border-radius: var(--radius-sm);
1690
1690
  padding: var(--space-1_5) var(--space-2);
1691
- ${P("sm")}
1691
+ ${L("sm")}
1692
1692
  font-weight: var(--font-weight-medium);
1693
1693
  }
1694
1694
 
@@ -1705,7 +1705,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1705
1705
  --icon-size: var(--space-4);
1706
1706
  color: var(--text-2);
1707
1707
  }
1708
- `;var Gh=c`
1708
+ `;var Qp=c`
1709
1709
  dui-scroll-area {
1710
1710
  max-height: calc(var(--space-5) * 15);
1711
1711
  height: auto;
@@ -1714,35 +1714,35 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1714
1714
  .List {
1715
1715
  padding: var(--space-1) 0;
1716
1716
  }
1717
- `;var Yh=c`
1717
+ `;var Jp=c`
1718
1718
  .Group {
1719
1719
  padding: var(--space-1_5);
1720
1720
  }
1721
1721
 
1722
1722
  .Heading {
1723
1723
  padding: var(--space-1_5) var(--space-2);
1724
- ${P("xs")}
1724
+ ${L("xs")}
1725
1725
  font-weight: var(--font-weight-medium);
1726
1726
  color: var(--text-2);
1727
1727
  }
1728
- `;var Xh=c`
1728
+ `;var Zp=c`
1729
1729
  .Empty {
1730
1730
  padding: var(--space-6);
1731
- ${P("sm")}
1731
+ ${L("sm")}
1732
1732
  color: var(--text-2);
1733
1733
  }
1734
- `;var Jh=c`
1734
+ `;var th=c`
1735
1735
  .Separator {
1736
1736
  height: var(--border-width-thin);
1737
1737
  margin-inline: calc(-1 * var(--space-1));
1738
1738
  background: var(--border);
1739
1739
  }
1740
- `;var Qh=c`
1740
+ `;var eh=c`
1741
1741
  .Shortcut {
1742
- ${P("xs")}
1742
+ ${L("xs")}
1743
1743
  color: var(--text-2);
1744
1744
  }
1745
- `;var Zh=c`
1745
+ `;var rh=c`
1746
1746
  :host {
1747
1747
  --sidebar-width: var(--space-64);
1748
1748
  --sidebar-width-mobile: var(--space-72);
@@ -1760,7 +1760,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1760
1760
  --sidebar-muted-fg: var(--text-2);
1761
1761
  --sidebar-ring: var(--accent);
1762
1762
  }
1763
- `;var tu=c`
1763
+ `;var oh=c`
1764
1764
  /* ── Desktop Outer ── */
1765
1765
 
1766
1766
  .DesktopOuter {
@@ -1848,27 +1848,27 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1848
1848
  box-shadow: var(--shadow-lg);
1849
1849
  transition: transform var(--duration-normal) var(--ease-out-3);
1850
1850
  }
1851
- `;var eu=c`
1851
+ `;var ih=c`
1852
1852
  dui-button {
1853
1853
  --button-width: var(--button-height);
1854
1854
  --button-padding-x: 0;
1855
1855
  --button-gap: 0;
1856
1856
  }
1857
- `;var ru=c``;var ou=c`
1857
+ `;var sh=c``;var nh=c`
1858
1858
  :host {
1859
1859
  margin-bottom: var(--sidebar-header-content-gap);
1860
1860
  }
1861
- `;var iu=c``;var su=c`
1861
+ `;var ah=c``;var lh=c`
1862
1862
  :host {
1863
1863
  padding: var(--sidebar-group-padding-y) 0;
1864
1864
  }
1865
- `;var nu=c`
1865
+ `;var dh=c`
1866
1866
  :host {
1867
1867
  margin-left: var(--sidebar-group-label-inset);
1868
1868
  height: var(--component-height-sm);
1869
1869
  color: var(--sidebar-muted-fg);
1870
1870
  font-family: var(--font-sans);
1871
- ${P("xs",{lineHeight:"var(--line-height-snug)"})}
1871
+ ${L("xs",{lineHeight:"var(--line-height-snug)"})}
1872
1872
  font-weight: var(--font-weight-medium);
1873
1873
  }
1874
1874
 
@@ -1878,11 +1878,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1878
1878
  transition-duration: var(--duration-normal);
1879
1879
  transition-timing-function: var(--ease-out-3);
1880
1880
  }
1881
- `;var au=c`
1881
+ `;var ch=c`
1882
1882
  .Menu {
1883
1883
  gap: var(--space-px);
1884
1884
  }
1885
- `;var lu=c``;var du=c`
1885
+ `;var ph=c``;var hh=c`
1886
1886
  :host {
1887
1887
  --smb-height: var(--component-height-md);
1888
1888
  --smb-padding-x: var(--sidebar-button-inset);
@@ -1954,13 +1954,13 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1954
1954
  font-weight: var(--font-weight-medium);
1955
1955
  --icon-color: var(--sidebar-fg);
1956
1956
  }
1957
- `;var cu=c`
1957
+ `;var uh=c`
1958
1958
  .Separator {
1959
1959
  height: var(--border-width-thin);
1960
1960
  margin: var(--space-2) var(--space-2);
1961
1961
  background: var(--sidebar-separator);
1962
1962
  }
1963
- `;var pu=c``;var hu=c`
1963
+ `;var mh=c``;var fh=c`
1964
1964
  [part="root"] {
1965
1965
  border: none;
1966
1966
  }
@@ -1975,7 +1975,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
1975
1975
  height: 100%;
1976
1976
  border-left: var(--border-width-thin) solid var(--border);
1977
1977
  }
1978
- `;var uu=c`
1978
+ `;var vh=c`
1979
1979
  :host {
1980
1980
  --progress-height: var(--space-2);
1981
1981
  }
@@ -2005,7 +2005,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2005
2005
  left: 100%;
2006
2006
  }
2007
2007
  }
2008
- `;var mu=c`
2008
+ `;var gh=c`
2009
2009
  /* --_select / --_interact alpha overlay pattern */
2010
2010
 
2011
2011
  [part="root"] {
@@ -2018,7 +2018,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2018
2018
  padding: 0 var(--space-2_5);
2019
2019
  border-radius: var(--radius-md);
2020
2020
  border: var(--border-width-thin) solid var(--border);
2021
- ${P("sm")}
2021
+ ${L("sm")}
2022
2022
  font-weight: var(--font-weight-medium);
2023
2023
  color: var(--text-2);
2024
2024
  background: oklch(from var(--foreground) l c h / calc(var(--_select) + var(--_interact)));
@@ -2053,13 +2053,13 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2053
2053
  [part="root"]:disabled {
2054
2054
  opacity: 0.4;
2055
2055
  }
2056
- `;var fu=c`
2056
+ `;var bh=c`
2057
2057
  [part="root"] {
2058
2058
  gap: var(--space-1);
2059
2059
  border-radius: var(--radius-md);
2060
2060
  padding: var(--space-0_5);
2061
2061
  }
2062
- `;var vu=c`
2062
+ `;var yh=c`
2063
2063
  [part="root"] {
2064
2064
  border: var(--border-width-thin) solid var(--border);
2065
2065
  border-radius: var(--radius-md);
@@ -2086,7 +2086,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2086
2086
  height: var(--component-height-md);
2087
2087
  width: var(--space-16);
2088
2088
  font-family: var(--font-sans);
2089
- ${P("sm")}
2089
+ ${L("sm")}
2090
2090
  color: var(--text-1);
2091
2091
  }
2092
2092
 
@@ -2113,7 +2113,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2113
2113
  [part="increment"]:disabled {
2114
2114
  opacity: 0.4;
2115
2115
  }
2116
- `;var gu=c`
2116
+ `;var xh=c`
2117
2117
  [part="root"] {
2118
2118
  gap: var(--space-1);
2119
2119
  border: var(--border-width-thin) solid var(--border);
@@ -2121,11 +2121,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2121
2121
  background: var(--background);
2122
2122
  padding: var(--space-1);
2123
2123
  }
2124
- `;var bu=c`
2124
+ `;var wh=c`
2125
2125
  [part="root"] {
2126
2126
  padding: var(--space-3);
2127
2127
  font-family: var(--font-sans);
2128
- ${P("sm")}
2128
+ ${L("sm")}
2129
2129
  }
2130
2130
 
2131
2131
  [part="header"] {
@@ -2133,7 +2133,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2133
2133
  }
2134
2134
 
2135
2135
  [part="heading"] {
2136
- ${P("sm")}
2136
+ ${L("sm")}
2137
2137
  font-weight: var(--font-weight-medium);
2138
2138
  color: var(--text-1);
2139
2139
  }
@@ -2160,7 +2160,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2160
2160
  [part="weekday"] {
2161
2161
  width: var(--space-8);
2162
2162
  height: var(--space-8);
2163
- ${P("xs")}
2163
+ ${L("xs")}
2164
2164
  font-weight: var(--font-weight-regular);
2165
2165
  color: var(--text-2);
2166
2166
  display: flex;
@@ -2172,7 +2172,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2172
2172
  width: var(--space-8);
2173
2173
  height: var(--space-8);
2174
2174
  border-radius: var(--radius-md);
2175
- ${P("sm")}
2175
+ ${L("sm")}
2176
2176
  color: var(--text-1);
2177
2177
  transition-property: background, color;
2178
2178
  transition-duration: var(--duration-fast);
@@ -2209,7 +2209,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2209
2209
  0 0 0 var(--focus-ring-offset) var(--background),
2210
2210
  0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
2211
2211
  }
2212
- `;var Sk=`/* =================================================================
2212
+ `;var Y0=`/* =================================================================
2213
2213
  * DUI Prose \u2014 Rich-text / markdown content styles
2214
2214
  * =================================================================
2215
2215
  * Apply class="dui-prose" to any container with rendered HTML
@@ -2459,7 +2459,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2459
2459
  cursor: pointer;
2460
2460
  font-weight: var(--font-weight-medium);
2461
2461
  }
2462
- `;var Aa=new CSSStyleSheet;Aa.replaceSync(Sk);var Ck=`/* =================================================================
2462
+ `;var Hn=new CSSStyleSheet;Hn.replaceSync(Y0);var X0=`/* =================================================================
2463
2463
  * DUI Design Tokens
2464
2464
  * =================================================================
2465
2465
  * Combined token system: spacing, typography, borders, elevation,
@@ -2820,7 +2820,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
2820
2820
  -webkit-font-smoothing: antialiased;
2821
2821
  -moz-osx-font-smoothing: grayscale;
2822
2822
  }
2823
- `;var Ek=`/* =================================================================
2823
+ `;var Q0=`/* =================================================================
2824
2824
  * CSS @property Declarations
2825
2825
  * =================================================================
2826
2826
  * Typed API surface for theme-default's component-level CSS custom
@@ -3182,8 +3182,8 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3182
3182
  inherits: true;
3183
3183
  initial-value: 0.5rem;
3184
3184
  }
3185
- `;var yu=new CSSStyleSheet;yu.replaceSync(Ek+`
3186
- `+Ck);var $k={tokens:yu,base:Kp,prose:Aa,styles:new Map([["dui-accordion",Gp],["dui-accordion-item",Yp],["dui-button",Xp],["dui-switch",Jp],["dui-badge",Qp],["dui-scroll-area",Zp],["dui-combobox",th],["dui-menu",eh],["dui-menu-item",rh],["dui-popover",oh],["dui-popover-popup",ih],["dui-tooltip",sh],["dui-tooltip-popup",nh],["dui-dialog",ah],["dui-dialog-popup",lh],["dui-alert-dialog",dh],["dui-alert-dialog-popup",ch],["dui-breadcrumb",ph],["dui-breadcrumb-item",hh],["dui-breadcrumb-link",uh],["dui-breadcrumb-page",mh],["dui-breadcrumb-separator",fh],["dui-breadcrumb-ellipsis",vh],["dui-checkbox",gh],["dui-checkbox-group",bh],["dui-collapsible",yh],["dui-toolbar",xh],["dui-slider",wh],["dui-spinner",kh],["dui-tab",Sh],["dui-tabs",Ch],["dui-tabs-indicator",Eh],["dui-tabs-list",$h],["dui-tabs-panel",Th],["dui-textarea",Rh],["dui-trunc",Ih],["dui-center",Ah],["dui-hstack",Oh],["dui-vstack",Lh],["dui-page-inset",Ph],["dui-link",zh],["dui-avatar",_h],["dui-portal",Mh],["dui-input",Fh],["dui-radio",Hh],["dui-radio-group",Nh],["dui-dropzone",Bh],["dui-select",Dh],["dui-preview-card",qh],["dui-preview-card-popup",Vh],["dui-data-table",Uh],["dui-command",jh],["dui-command-input",Wh],["dui-command-item",Kh],["dui-command-list",Gh],["dui-command-group",Yh],["dui-command-empty",Xh],["dui-command-separator",Jh],["dui-command-shortcut",Qh],["dui-sidebar-provider",Zh],["dui-sidebar",tu],["dui-sidebar-trigger",eu],["dui-sidebar-content",ru],["dui-sidebar-header",ou],["dui-sidebar-footer",iu],["dui-sidebar-group",su],["dui-sidebar-group-label",nu],["dui-sidebar-menu",au],["dui-sidebar-menu-item",lu],["dui-sidebar-menu-button",du],["dui-sidebar-separator",cu],["dui-sidebar-inset",pu],["dui-separator",hu],["dui-progress",uu],["dui-toggle",mu],["dui-toggle-group",fu],["dui-number-field",vu],["dui-menubar",gu],["dui-calendar",bu]])};var W2={attribute:!0,type:String,converter:Bs,reflect:!1,hasChanged:wa},K2=(n=W2,o,t)=>{let{kind:r,metadata:a}=t,d=globalThis.litPropertyMetadata.get(a);if(d===void 0&&globalThis.litPropertyMetadata.set(a,d=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),d.set(t.name,n),r==="accessor"){let{name:p}=t;return{set(v){let x=o.get.call(this);o.set.call(this,v),this.requestUpdate(p,x,n,!0,v)},init(v){return v!==void 0&&this.C(p,void 0,n,v),v}}}if(r==="setter"){let{name:p}=t;return function(v){let x=this[p];o.call(this,v),this.requestUpdate(p,x,n,!0,v)}}throw Error("Unsupported decorator location: "+r)};function u(n){return(o,t)=>typeof t=="object"?K2(n,o,t):((r,a,d)=>{let p=a.hasOwnProperty(d);return a.constructor.createProperty(d,r),p?Object.getOwnPropertyDescriptor(a,d):void 0})(n,o,t)}function k(n){return u({...n,state:!0,attribute:!1})}var go=class extends Event{constructor(o,t,r,a){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t,this.callback=r,this.subscribe=a??!1}};var V=class{constructor(o,t,r,a){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(d,p)=>{this.unsubscribe&&(this.unsubscribe!==p&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=d,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(d,p)),this.unsubscribe=p},this.host=o,t.context!==void 0){let d=t;this.context=d.context,this.callback=d.callback,this.subscribe=d.subscribe??!1}else this.context=t,this.callback=r,this.subscribe=a??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new go(this.context,this.host,this.t,this.subscribe))}};var La=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let r=t||!Object.is(o,this.o);this.o=o,r&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:r}]of this.subscriptions)t(this.o,r)},o!==void 0&&(this.value=o)}addCallback(o,t,r){if(!r)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:a}=this.subscriptions.get(o);o(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var xu=class extends Event{constructor(o,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t}},Vi=class extends La{constructor(o,t,r){super(t.context!==void 0?t.initialValue:r),this.onContextRequest=a=>{if(a.context!==this.context)return;let d=a.contextTarget??a.composedPath()[0];d!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,d,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;let d=new Set;for(let[p,{consumerHost:v}]of this.subscriptions)d.has(p)||(d.add(p),v.dispatchEvent(new go(this.context,v,p,!0)));a.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new xu(this.context,this.host))}};function yt({context:n}){return(o,t)=>{let r=new WeakMap;if(typeof t=="object")return{get(){return o.get.call(this)},set(a){return r.get(this).setValue(a),o.set.call(this,a)},init(a){return r.set(this,new Vi(this,{context:n,initialValue:a})),a}};{o.constructor.addInitializer(p=>{r.set(p,new Vi(p,{context:n}))});let a=Object.getOwnPropertyDescriptor(o,t),d;if(a===void 0){let p=new WeakMap;d={get(){return p.get(this)},set(v){r.get(this).setValue(v),p.set(this,v)},configurable:!0,enumerable:!0}}else{let p=a.set;d={...a,set(v){r.get(this).setValue(v),p?.call(this,v)}}}return void Object.defineProperty(o,t,d)}}}function at({context:n,subscribe:o}){return(t,r)=>{typeof r=="object"?r.addInitializer(function(){new V(this,{context:n,callback:a=>{t.set.call(this,a)},subscribe:o})}):t.constructor.addInitializer(a=>{new V(a,{context:n,callback:d=>{a[r]=d},subscribe:o})})}}var y=c`
3185
+ `;var kh=new CSSStyleSheet;kh.replaceSync(Q0+`
3186
+ `+X0);var J0={tokens:kh,base:tp,prose:Hn,styles:new Map([["dui-accordion",ep],["dui-accordion-item",rp],["dui-button",op],["dui-switch",ip],["dui-badge",sp],["dui-scroll-area",np],["dui-combobox",ap],["dui-menu",lp],["dui-menu-item",dp],["dui-popover",cp],["dui-popover-popup",pp],["dui-tooltip",hp],["dui-tooltip-popup",up],["dui-dialog",mp],["dui-dialog-popup",fp],["dui-alert-dialog",vp],["dui-alert-dialog-popup",gp],["dui-breadcrumb",bp],["dui-breadcrumb-item",yp],["dui-breadcrumb-link",xp],["dui-breadcrumb-page",wp],["dui-breadcrumb-separator",kp],["dui-breadcrumb-ellipsis",Cp],["dui-checkbox",Sp],["dui-checkbox-group",Ep],["dui-collapsible",$p],["dui-toolbar",Tp],["dui-slider",Rp],["dui-spinner",Ip],["dui-tab",Ap],["dui-tabs",_p],["dui-tabs-indicator",Op],["dui-tabs-list",Lp],["dui-tabs-panel",Pp],["dui-textarea",zp],["dui-trunc",Mp],["dui-link",Dp],["dui-avatar",Fp],["dui-portal",Hp],["dui-input",Np],["dui-radio",Bp],["dui-radio-group",qp],["dui-dropzone",Vp],["dui-select",Up],["dui-preview-card",jp],["dui-preview-card-popup",Kp],["dui-data-table",Wp],["dui-command",Gp],["dui-command-input",Yp],["dui-command-item",Xp],["dui-command-list",Qp],["dui-command-group",Jp],["dui-command-empty",Zp],["dui-command-separator",th],["dui-command-shortcut",eh],["dui-sidebar-provider",rh],["dui-sidebar",oh],["dui-sidebar-trigger",ih],["dui-sidebar-content",sh],["dui-sidebar-header",nh],["dui-sidebar-footer",ah],["dui-sidebar-group",lh],["dui-sidebar-group-label",dh],["dui-sidebar-menu",ch],["dui-sidebar-menu-item",ph],["dui-sidebar-menu-button",hh],["dui-sidebar-separator",uh],["dui-sidebar-inset",mh],["dui-separator",fh],["dui-progress",vh],["dui-toggle",gh],["dui-toggle-group",bh],["dui-number-field",yh],["dui-menubar",xh],["dui-calendar",wh]])};var fA={attribute:!0,type:String,converter:$s,reflect:!1,hasChanged:An},vA=(n=fA,o,t)=>{let{kind:e,metadata:a}=t,l=globalThis.litPropertyMetadata.get(a);if(l===void 0&&globalThis.litPropertyMetadata.set(a,l=new Map),e==="setter"&&((n=Object.create(n)).wrapped=!0),l.set(t.name,n),e==="accessor"){let{name:p}=t;return{set(f){let y=o.get.call(this);o.set.call(this,f),this.requestUpdate(p,y,n,!0,f)},init(f){return f!==void 0&&this.C(p,void 0,n,f),f}}}if(e==="setter"){let{name:p}=t;return function(f){let y=this[p];o.call(this,f),this.requestUpdate(p,y,n,!0,f)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(o,t)=>typeof t=="object"?vA(n,o,t):((e,a,l)=>{let p=a.hasOwnProperty(l);return a.constructor.createProperty(l,e),p?Object.getOwnPropertyDescriptor(a,l):void 0})(n,o,t)}function k(n){return u({...n,state:!0,attribute:!1})}var Jr=class extends Event{constructor(o,t,e,a){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t,this.callback=e,this.subscribe=a??!1}};var J=class{constructor(o,t,e,a){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,p)=>{this.unsubscribe&&(this.unsubscribe!==p&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,p)),this.unsubscribe=p},this.host=o,t.context!==void 0){let l=t;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=t,this.callback=e,this.subscribe=a??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Jr(this.context,this.host,this.t,this.subscribe))}};var Bn=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:a}=this.subscriptions.get(o);o(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var Ch=class extends Event{constructor(o,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t}},Ai=class extends Bn{constructor(o,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=a=>{if(a.context!==this.context)return;let l=a.contextTarget??a.composedPath()[0];l!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,l,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;let l=new Set;for(let[p,{consumerHost:f}]of this.subscriptions)l.has(p)||(l.add(p),f.dispatchEvent(new Jr(this.context,f,p,!0)));a.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ch(this.context,this.host))}};function bt({context:n}){return(o,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return o.get.call(this)},set(a){return e.get(this).setValue(a),o.set.call(this,a)},init(a){return e.set(this,new Ai(this,{context:n,initialValue:a})),a}};{o.constructor.addInitializer(p=>{e.set(p,new Ai(p,{context:n}))});let a=Object.getOwnPropertyDescriptor(o,t),l;if(a===void 0){let p=new WeakMap;l={get(){return p.get(this)},set(f){e.get(this).setValue(f),p.set(this,f)},configurable:!0,enumerable:!0}}else{let p=a.set;l={...a,set(f){e.get(this).setValue(f),p?.call(this,f)}}}return void Object.defineProperty(o,t,l)}}}function ot({context:n,subscribe:o}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new J(this,{context:n,callback:a=>{t.set.call(this,a)},subscribe:o})}):t.constructor.addInitializer(a=>{new J(a,{context:n,callback:l=>{a[e]=l},subscribe:o})})}}var w=c`
3187
3187
  * {
3188
3188
  box-sizing: border-box;
3189
3189
  }
@@ -3251,7 +3251,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3251
3251
  scroll-behavior: auto !important;
3252
3252
  }
3253
3253
  }
3254
- `;var O=(n,o={})=>t=>new CustomEvent(n,{...o,detail:t});var Pa=Symbol("dui-accordion");var Fk=O("value-change",{bubbles:!0,composed:!0}),G2=c`
3254
+ `;var _=(n,o={})=>t=>new CustomEvent(n,{...o,detail:t});var qn=Symbol("dui-accordion");var dw=_("value-change",{bubbles:!0,composed:!0}),gA=c`
3255
3255
  :host {
3256
3256
  display: block;
3257
3257
  }
@@ -3260,7 +3260,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3260
3260
  display: flex;
3261
3261
  flex-direction: column;
3262
3262
  }
3263
- `,Tk,Rk,Ik,Ak,Ok,Lk,Pk,zk,_k,Mk,ut,wu,ku,Su,Cu,Eu,$u,Tu,Ru,Iu,Hk,Ou,Xe,Ui,mr,js,_a,Ma,Fa,Ha,Au,za,te=class extends(Mk=g,_k=[u({type:Array})],zk=[u({type:Array,attribute:"default-value"})],Pk=[u({type:Boolean})],Lk=[u({type:Boolean})],Ok=[u({type:Boolean,attribute:"loop-focus"})],Ak=[u({type:String})],Ik=[u({type:Boolean,attribute:"keep-mounted"})],Rk=[k()],Tk=[yt({context:Pa}),k()],Mk){constructor(){super(...arguments);s(this,Xe);s(this,wu,i(ut,8,this)),i(ut,11,this);s(this,ku,i(ut,12,this,[])),i(ut,15,this);s(this,Su,i(ut,16,this,!1)),i(ut,19,this);s(this,Cu,i(ut,20,this,!1)),i(ut,23,this);s(this,Eu,i(ut,24,this,!0)),i(ut,27,this);s(this,$u,i(ut,28,this,"vertical")),i(ut,31,this);s(this,Tu,i(ut,32,this,!1)),i(ut,35,this);s(this,Ru,i(ut,36,this,[])),i(ut,39,this);s(this,Ui,new Map);s(this,mr,[]);s(this,js,()=>this.value??e(this,Xe,Hk));s(this,_a,t=>{let r=[...e(this,js).call(this)],a=r.indexOf(t),d;a>=0?d=r.filter(p=>p!==t):this.multiple?d=[...r,t]:d=[t],this.value===void 0&&h(this,Xe,d,Ou),this.dispatchEvent(Fk(d))});s(this,Ma,(t,r)=>{e(this,Ui).set(t,r),e(this,mr).includes(t)||e(this,mr).push(t)});s(this,Fa,t=>{e(this,Ui).delete(t),h(this,mr,e(this,mr).filter(r=>r!==t))});s(this,Ha,(t,r)=>{let a=e(this,mr).indexOf(t);if(a===-1)return;let d=e(this,mr).length,p;switch(r){case"next":a<d-1?p=a+1:this.loopFocus&&(p=0);break;case"prev":a>0?p=a-1:this.loopFocus&&(p=d-1);break;case"first":p=0;break;case"last":p=d-1;break}if(p!==void 0){let v=e(this,mr)[p];e(this,Ui).get(v)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});s(this,Au,i(ut,40,this,m(this,Xe,za).call(this))),i(ut,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Xe,[...this.defaultValue],Ou),this._ctx=m(this,Xe,za).call(this)}willUpdate(){this._ctx=m(this,Xe,za).call(this)}render(){return f`
3263
+ `,Z0,tw,ew,rw,ow,iw,sw,nw,aw,lw,ht,Sh,Eh,$h,Th,Rh,Ih,Ah,_h,Oh,cw,Ph,Be,_i,rr,_s,Un,jn,Kn,Wn,Lh,Vn,Yt=class extends(lw=b,aw=[u({type:Array})],nw=[u({type:Array,attribute:"default-value"})],sw=[u({type:Boolean})],iw=[u({type:Boolean})],ow=[u({type:Boolean,attribute:"loop-focus"})],rw=[u({type:String})],ew=[u({type:Boolean,attribute:"keep-mounted"})],tw=[k()],Z0=[bt({context:qn}),k()],lw){constructor(){super(...arguments);s(this,Be);s(this,Sh,i(ht,8,this)),i(ht,11,this);s(this,Eh,i(ht,12,this,[])),i(ht,15,this);s(this,$h,i(ht,16,this,!1)),i(ht,19,this);s(this,Th,i(ht,20,this,!1)),i(ht,23,this);s(this,Rh,i(ht,24,this,!0)),i(ht,27,this);s(this,Ih,i(ht,28,this,"vertical")),i(ht,31,this);s(this,Ah,i(ht,32,this,!1)),i(ht,35,this);s(this,_h,i(ht,36,this,[])),i(ht,39,this);s(this,_i,new Map);s(this,rr,[]);s(this,_s,()=>this.value??r(this,Be,cw));s(this,Un,t=>{let e=[...r(this,_s).call(this)],a=e.indexOf(t),l;a>=0?l=e.filter(p=>p!==t):this.multiple?l=[...e,t]:l=[t],this.value===void 0&&h(this,Be,l,Ph),this.dispatchEvent(dw(l))});s(this,jn,(t,e)=>{r(this,_i).set(t,e),r(this,rr).includes(t)||r(this,rr).push(t)});s(this,Kn,t=>{r(this,_i).delete(t),h(this,rr,r(this,rr).filter(e=>e!==t))});s(this,Wn,(t,e)=>{let a=r(this,rr).indexOf(t);if(a===-1)return;let l=r(this,rr).length,p;switch(e){case"next":a<l-1?p=a+1:this.loopFocus&&(p=0);break;case"prev":a>0?p=a-1:this.loopFocus&&(p=l-1);break;case"first":p=0;break;case"last":p=l-1;break}if(p!==void 0){let f=r(this,rr)[p];r(this,_i).get(f)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});s(this,Lh,i(ht,40,this,m(this,Be,Vn).call(this))),i(ht,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Be,[...this.defaultValue],Ph),this._ctx=m(this,Be,Vn).call(this)}willUpdate(){this._ctx=m(this,Be,Vn).call(this)}render(){return v`
3264
3264
  <div
3265
3265
  part="root"
3266
3266
  data-orientation=${this.orientation}
@@ -3268,7 +3268,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3268
3268
  >
3269
3269
  <slot></slot>
3270
3270
  </div>
3271
- `}};ut=C(Mk),wu=new WeakMap,ku=new WeakMap,Su=new WeakMap,Cu=new WeakMap,Eu=new WeakMap,$u=new WeakMap,Tu=new WeakMap,Ru=new WeakMap,Xe=new WeakSet,Ui=new WeakMap,mr=new WeakMap,js=new WeakMap,_a=new WeakMap,Ma=new WeakMap,Fa=new WeakMap,Ha=new WeakMap,Au=new WeakMap,za=function(){return{openValues:e(this,js).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:e(this,_a),registerItem:e(this,Ma),unregisterItem:e(this,Fa),focusItem:e(this,Ha)}},l(ut,4,"value",_k,te,wu),l(ut,4,"defaultValue",zk,te,ku),l(ut,4,"disabled",Pk,te,Su),l(ut,4,"multiple",Lk,te,Cu),l(ut,4,"loopFocus",Ok,te,Eu),l(ut,4,"orientation",Ak,te,$u),l(ut,4,"keepMounted",Ik,te,Tu),Iu=l(ut,20,"#internalOpenValues",Rk,Xe,Ru),Hk=Iu.get,Ou=Iu.set,l(ut,4,"_ctx",Tk,te,Au),S(ut,te),b(te,"tagName","dui-accordion"),b(te,"styles",[y,G2]);var Kk=O("open-change",{bubbles:!0,composed:!0}),Y2=c`
3271
+ `}};ht=S(lw),Sh=new WeakMap,Eh=new WeakMap,$h=new WeakMap,Th=new WeakMap,Rh=new WeakMap,Ih=new WeakMap,Ah=new WeakMap,_h=new WeakMap,Be=new WeakSet,_i=new WeakMap,rr=new WeakMap,_s=new WeakMap,Un=new WeakMap,jn=new WeakMap,Kn=new WeakMap,Wn=new WeakMap,Lh=new WeakMap,Vn=function(){return{openValues:r(this,_s).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:r(this,Un),registerItem:r(this,jn),unregisterItem:r(this,Kn),focusItem:r(this,Wn)}},d(ht,4,"value",aw,Yt,Sh),d(ht,4,"defaultValue",nw,Yt,Eh),d(ht,4,"disabled",sw,Yt,$h),d(ht,4,"multiple",iw,Yt,Th),d(ht,4,"loopFocus",ow,Yt,Rh),d(ht,4,"orientation",rw,Yt,Ih),d(ht,4,"keepMounted",ew,Yt,Ah),Oh=d(ht,20,"#internalOpenValues",tw,Be,_h),cw=Oh.get,Ph=Oh.set,d(ht,4,"_ctx",Z0,Yt,Lh),C(ht,Yt),g(Yt,"tagName","dui-accordion"),g(Yt,"styles",[w,gA]);var yw=_("open-change",{bubbles:!0,composed:!0}),bA=c`
3272
3272
  :host {
3273
3273
  display: block;
3274
3274
  }
@@ -3299,7 +3299,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3299
3299
  overflow: hidden;
3300
3300
  transition-property: height;
3301
3301
  }
3302
- `,X2=f`<svg
3302
+ `,yA=v`<svg
3303
3303
  part="indicator"
3304
3304
  width="16"
3305
3305
  height="16"
@@ -3311,39 +3311,39 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3311
3311
  stroke-linejoin="round"
3312
3312
  >
3313
3313
  <path d="m6 9 6 6 6-6" />
3314
- </svg>`,Nk,Bk,Dk,qk,Vk,Uk,jk,Wk,Et,Lu,Pu,zu,_u,Mu,Vu,Na,H,Fu,Hu,Ba,Da,Nu,Bu,Gk,Qo,Du,qu,Uu,qa,ji,ti,Zo,Ws,ju,Wu,Yk,Xk,Va,Ua,ja,Je=class extends(Wk=g,jk=[u({type:String})],Uk=[u({type:Boolean})],Vk=[at({context:Pa,subscribe:!0})],qk=[k()],Dk=[k()],Bk=[k()],Nk=[k()],Wk){constructor(){super(...arguments);s(this,H);s(this,Lu,i(Et,8,this,"")),i(Et,11,this);s(this,Pu,i(Et,12,this,!1)),i(Et,15,this);s(this,zu,i(Et,16,this)),i(Et,19,this);s(this,_u,i(Et,20,this,!1)),i(Et,23,this);s(this,Fu,i(Et,24,this,!1)),i(Et,27,this);s(this,Nu,i(Et,28,this,"0")),i(Et,31,this);s(this,Du,i(Et,32,this,!1)),i(Et,35,this);s(this,ji);s(this,ti,0);s(this,Va,t=>{t.propertyName==="height"&&(e(this,H,Ba)?(h(this,H,!1,Da),this._ctx?.keepMounted||h(this,H,!1,qa)):e(this,H,Zo)&&h(this,H,"auto",Qo))});s(this,Ua,()=>{e(this,H,Ws)||this._ctx.toggle(this.value)});s(this,ja,t=>{if(e(this,H,Ws))return;let r=this._ctx.orientation==="vertical",a=r?"ArrowDown":"ArrowRight",d=r?"ArrowUp":"ArrowLeft";switch(t.key){case a:t.preventDefault(),this._ctx.focusItem(this.value,"next");break;case d:t.preventDefault(),this._ctx.focusItem(this.value,"prev");break;case"Home":t.preventDefault(),this._ctx.focusItem(this.value,"first");break;case"End":t.preventDefault(),this._ctx.focusItem(this.value,"last");break}})}connectedCallback(){super.connectedCallback(),this._ctx?.registerItem(this.value,this)}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(this.value)}willUpdate(){let t=e(this,H,Zo);e(this,ji)===void 0?(h(this,H,t,qa),h(this,H,t?"auto":"0",Qo)):e(this,ji)!==t&&(t?m(this,H,Yk).call(this):m(this,H,Xk).call(this),this.dispatchEvent(Kk({value:this.value,open:t}))),h(this,ji,t)}render(){let t=e(this,H,Uu)||this._ctx?.keepMounted;return f`
3314
+ </svg>`,pw,hw,uw,mw,fw,vw,gw,bw,Ct,zh,Mh,Dh,Fh,Hh,Kh,Gn,D,Nh,Bh,Yn,Xn,qh,Vh,xw,Fo,Uh,jh,Wh,Qn,Oi,No,Ho,Os,Gh,Yh,ww,kw,Jn,Zn,ta,or=class extends(bw=b,gw=[u({type:String})],vw=[u({type:Boolean})],fw=[ot({context:qn,subscribe:!0})],mw=[k()],uw=[k()],hw=[k()],pw=[k()],bw){constructor(){super(...arguments);s(this,D);s(this,zh,i(Ct,8,this,"")),i(Ct,11,this);s(this,Mh,i(Ct,12,this,!1)),i(Ct,15,this);s(this,Dh,i(Ct,16,this)),i(Ct,19,this);s(this,Fh,i(Ct,20,this,!1)),i(Ct,23,this);s(this,Nh,i(Ct,24,this,!1)),i(Ct,27,this);s(this,qh,i(Ct,28,this,"0")),i(Ct,31,this);s(this,Uh,i(Ct,32,this,!1)),i(Ct,35,this);s(this,Oi);s(this,No,0);s(this,Jn,t=>{t.propertyName==="height"&&(r(this,D,Yn)?(h(this,D,!1,Xn),this._ctx?.keepMounted||h(this,D,!1,Qn)):r(this,D,Ho)&&h(this,D,"auto",Fo))});s(this,Zn,()=>{r(this,D,Os)||this._ctx.toggle(this.value)});s(this,ta,t=>{if(r(this,D,Os))return;let e=this._ctx.orientation==="vertical",a=e?"ArrowDown":"ArrowRight",l=e?"ArrowUp":"ArrowLeft";switch(t.key){case a:t.preventDefault(),this._ctx.focusItem(this.value,"next");break;case l:t.preventDefault(),this._ctx.focusItem(this.value,"prev");break;case"Home":t.preventDefault(),this._ctx.focusItem(this.value,"first");break;case"End":t.preventDefault(),this._ctx.focusItem(this.value,"last");break}})}connectedCallback(){super.connectedCallback(),this._ctx?.registerItem(this.value,this)}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(this.value)}willUpdate(){let t=r(this,D,Ho);r(this,Oi)===void 0?(h(this,D,t,Qn),h(this,D,t?"auto":"0",Fo)):r(this,Oi)!==t&&(t?m(this,D,ww).call(this):m(this,D,kw).call(this),this.dispatchEvent(yw({value:this.value,open:t}))),h(this,Oi,t)}render(){let t=r(this,D,Wh)||this._ctx?.keepMounted;return v`
3315
3315
  <div
3316
3316
  part="item"
3317
- ?data-open=${e(this,H,Zo)}
3318
- ?data-disabled=${e(this,H,Ws)}
3317
+ ?data-open=${r(this,D,Ho)}
3318
+ ?data-disabled=${r(this,D,Os)}
3319
3319
  >
3320
3320
  <h3 part="header">
3321
3321
  <button
3322
3322
  part="trigger"
3323
- id=${e(this,H,ju)}
3324
- aria-expanded=${e(this,H,Zo)}
3325
- aria-controls=${e(this,H,Wu)}
3326
- ?data-open=${e(this,H,Zo)}
3327
- ?data-disabled=${e(this,H,Ws)}
3328
- @click=${e(this,Ua)}
3329
- @keydown=${e(this,ja)}
3323
+ id=${r(this,D,Gh)}
3324
+ aria-expanded=${r(this,D,Ho)}
3325
+ aria-controls=${r(this,D,Yh)}
3326
+ ?data-open=${r(this,D,Ho)}
3327
+ ?data-disabled=${r(this,D,Os)}
3328
+ @click=${r(this,Zn)}
3329
+ @keydown=${r(this,ta)}
3330
3330
  >
3331
3331
  <slot name="trigger"></slot>
3332
- ${X2}
3332
+ ${yA}
3333
3333
  </button>
3334
3334
  </h3>
3335
- ${t?f`
3335
+ ${t?v`
3336
3336
  <div
3337
3337
  part="panel"
3338
- id=${e(this,H,Wu)}
3338
+ id=${r(this,D,Yh)}
3339
3339
  role="region"
3340
- aria-labelledby=${e(this,H,ju)}
3341
- style="height: ${e(this,H,Gk)}"
3342
- ?data-open=${e(this,H,Zo)&&!e(this,H,Vu)}
3343
- ?data-starting-style=${e(this,H,Vu)}
3344
- ?data-ending-style=${e(this,H,Ba)}
3345
- ?hidden=${!e(this,H,Uu)&&!e(this,H,Ba)}
3346
- @transitionend=${e(this,Va)}
3340
+ aria-labelledby=${r(this,D,Gh)}
3341
+ style="height: ${r(this,D,xw)}"
3342
+ ?data-open=${r(this,D,Ho)&&!r(this,D,Kh)}
3343
+ ?data-starting-style=${r(this,D,Kh)}
3344
+ ?data-ending-style=${r(this,D,Yn)}
3345
+ ?hidden=${!r(this,D,Wh)&&!r(this,D,Yn)}
3346
+ @transitionend=${r(this,Jn)}
3347
3347
  >
3348
3348
  <div part="content">
3349
3349
  <slot></slot>
@@ -3351,32 +3351,19 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3351
3351
  </div>
3352
3352
  `:T}
3353
3353
  </div>
3354
- `}};Et=C(Wk),Lu=new WeakMap,Pu=new WeakMap,zu=new WeakMap,_u=new WeakMap,H=new WeakSet,Fu=new WeakMap,Nu=new WeakMap,Du=new WeakMap,ji=new WeakMap,ti=new WeakMap,Zo=function(){return this._ctx?.openValues.includes(this.value)??!1},Ws=function(){return this.disabled||this._ctx?.disabled},ju=function(){return`dui-trigger-${this.value}`},Wu=function(){return`dui-panel-${this.value}`},Yk=function(){let t=++Di(this,ti)._;h(this,H,!1,Da),h(this,H,!0,qa),h(this,H,!0,Na),h(this,H,"0",Qo),requestAnimationFrame(()=>{if(e(this,ti)!==t)return;let r=this.shadowRoot?.querySelector("[part='panel']");r&&h(this,H,`${r.scrollHeight}px`,Qo),h(this,H,!1,Na)})},Xk=function(){let t=++Di(this,ti)._;h(this,H,!1,Na);let r=this.shadowRoot?.querySelector("[part='panel']");r&&h(this,H,`${r.scrollHeight}px`,Qo),requestAnimationFrame(()=>{e(this,ti)===t&&(h(this,H,!0,Da),h(this,H,"0",Qo))})},Va=new WeakMap,Ua=new WeakMap,ja=new WeakMap,l(Et,4,"value",jk,Je,Lu),l(Et,4,"disabled",Uk,Je,Pu),l(Et,4,"_ctx",Vk,Je,zu),Mu=l(Et,20,"#starting",qk,H,_u),Vu=Mu.get,Na=Mu.set,Hu=l(Et,20,"#ending",Dk,H,Fu),Ba=Hu.get,Da=Hu.set,Bu=l(Et,20,"#panelHeight",Bk,H,Nu),Gk=Bu.get,Qo=Bu.set,qu=l(Et,20,"#visible",Nk,H,Du),Uu=qu.get,qa=qu.set,S(Et,Je),b(Je,"tagName","dui-accordion-item"),b(Je,"styles",[y,Y2]);var Jk=[te,Je];var bo=Symbol("dui-alert-dialog");var Zu=O("open-change",{bubbles:!0,composed:!0}),J2=c`
3354
+ `}};Ct=S(bw),zh=new WeakMap,Mh=new WeakMap,Dh=new WeakMap,Fh=new WeakMap,D=new WeakSet,Nh=new WeakMap,qh=new WeakMap,Uh=new WeakMap,Oi=new WeakMap,No=new WeakMap,Ho=function(){return this._ctx?.openValues.includes(this.value)??!1},Os=function(){return this.disabled||this._ctx?.disabled},Gh=function(){return`dui-trigger-${this.value}`},Yh=function(){return`dui-panel-${this.value}`},ww=function(){let t=++Ri(this,No)._;h(this,D,!1,Xn),h(this,D,!0,Qn),h(this,D,!0,Gn),h(this,D,"0",Fo),requestAnimationFrame(()=>{if(r(this,No)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,D,`${e.scrollHeight}px`,Fo),h(this,D,!1,Gn)})},kw=function(){let t=++Ri(this,No)._;h(this,D,!1,Gn);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,D,`${e.scrollHeight}px`,Fo),requestAnimationFrame(()=>{r(this,No)===t&&(h(this,D,!0,Xn),h(this,D,"0",Fo))})},Jn=new WeakMap,Zn=new WeakMap,ta=new WeakMap,d(Ct,4,"value",gw,or,zh),d(Ct,4,"disabled",vw,or,Mh),d(Ct,4,"_ctx",fw,or,Dh),Hh=d(Ct,20,"#starting",mw,D,Fh),Kh=Hh.get,Gn=Hh.set,Bh=d(Ct,20,"#ending",uw,D,Nh),Yn=Bh.get,Xn=Bh.set,Vh=d(Ct,20,"#panelHeight",hw,D,qh),xw=Vh.get,Fo=Vh.set,jh=d(Ct,20,"#visible",pw,D,Uh),Wh=jh.get,Qn=jh.set,C(Ct,or),g(or,"tagName","dui-accordion-item"),g(or,"styles",[w,bA]);var Li=Symbol("dui-alert-dialog");var eu=_("open-change",{bubbles:!0,composed:!0}),xA=c`
3355
3355
  :host {
3356
3356
  display: contents;
3357
3357
  }
3358
- `,Qk,Zk,tS,eS,rS,we,Ku,Gu,Yu,Xu,oS,Wa,Gt,ei,Ga,Ya,Xa,Ja,iS,Qa,Za,Ju,Qu,Q2,tm,Ka,fr=class extends(rS=g,eS=[u({type:Boolean,reflect:!0})],tS=[u({type:Boolean,attribute:"default-open"})],Zk=[k()],Qk=[yt({context:bo}),k()],rS){constructor(){super(...arguments);s(this,Gt);s(this,Ku,i(we,8,this)),i(we,11,this);s(this,Gu,i(we,12,this,!1)),i(we,15,this);s(this,Yu,i(we,16,this,!1)),i(we,19,this);s(this,ei,crypto.randomUUID().slice(0,8));s(this,Ga,`dui-alert-dialog-${e(this,ei)}`);s(this,Ya,`dui-alert-trigger-${e(this,ei)}`);s(this,Xa,`dui-alert-title-${e(this,ei)}`);s(this,Ja,`dui-alert-desc-${e(this,ei)}`);s(this,Qa,()=>{this.open===void 0&&h(this,Gt,!0,Wa),this.dispatchEvent(Zu({open:!0}))});s(this,Za,()=>{this.open===void 0&&h(this,Gt,!1,Wa),this.dispatchEvent(Zu({open:!1}))});s(this,Ju,i(we,20,this,m(this,Gt,Ka).call(this))),i(we,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Gt,!0,Wa),h(this,Gt,m(this,Gt,Ka).call(this),tm)}willUpdate(){h(this,Gt,m(this,Gt,Ka).call(this),tm)}render(){return f`<slot></slot>`}};we=C(rS),Ku=new WeakMap,Gu=new WeakMap,Yu=new WeakMap,Gt=new WeakSet,ei=new WeakMap,Ga=new WeakMap,Ya=new WeakMap,Xa=new WeakMap,Ja=new WeakMap,iS=function(){return this.open??e(this,Gt,oS)},Qa=new WeakMap,Za=new WeakMap,Ju=new WeakMap,Ka=function(){return{open:e(this,Gt,iS),dialogId:e(this,Ga),triggerId:e(this,Ya),titleId:e(this,Xa),descriptionId:e(this,Ja),openDialog:e(this,Qa),closeDialog:e(this,Za)}},l(we,4,"open",eS,fr,Ku),l(we,4,"defaultOpen",tS,fr,Gu),Xu=l(we,20,"#internalOpen",Zk,Gt,Yu),oS=Xu.get,Wa=Xu.set,Qu=l(we,20,"#ctx",Qk,Gt,Ju),Q2=Qu.get,tm=Qu.set,S(we,fr),b(fr,"tagName","dui-alert-dialog"),b(fr,"styles",[y,J2]);var Z2=c`
3358
+ `,Cw,Sw,Ew,$w,Tw,ve,Xh,Qh,Jh,Zh,Rw,ea,ee,Bo,oa,ia,sa,na,Iw,aa,la,tu,ra,ir=class extends(Tw=b,$w=[u({type:Boolean,reflect:!0})],Ew=[u({type:Boolean,attribute:"default-open"})],Sw=[k()],Cw=[bt({context:Li}),k()],Tw){constructor(){super(...arguments);s(this,ee);s(this,Xh,i(ve,8,this)),i(ve,11,this);s(this,Qh,i(ve,12,this,!1)),i(ve,15,this);s(this,Jh,i(ve,16,this,!1)),i(ve,19,this);s(this,Bo,crypto.randomUUID().slice(0,8));s(this,oa,`dui-alert-dialog-${r(this,Bo)}`);s(this,ia,`dui-alert-trigger-${r(this,Bo)}`);s(this,sa,`dui-alert-title-${r(this,Bo)}`);s(this,na,`dui-alert-desc-${r(this,Bo)}`);s(this,aa,()=>{this.open===void 0&&h(this,ee,!0,ea),this.dispatchEvent(eu({open:!0}))});s(this,la,()=>{this.open===void 0&&h(this,ee,!1,ea),this.dispatchEvent(eu({open:!1}))});s(this,tu,i(ve,20,this,m(this,ee,ra).call(this))),i(ve,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,ee,!0,ea),this._ctx=m(this,ee,ra).call(this)}willUpdate(){this._ctx=m(this,ee,ra).call(this)}render(){return v`<slot></slot>`}};ve=S(Tw),Xh=new WeakMap,Qh=new WeakMap,Jh=new WeakMap,ee=new WeakSet,Bo=new WeakMap,oa=new WeakMap,ia=new WeakMap,sa=new WeakMap,na=new WeakMap,Iw=function(){return this.open??r(this,ee,Rw)},aa=new WeakMap,la=new WeakMap,tu=new WeakMap,ra=function(){return{open:r(this,ee,Iw),dialogId:r(this,oa),triggerId:r(this,ia),titleId:r(this,sa),descriptionId:r(this,na),openDialog:r(this,aa),closeDialog:r(this,la)}},d(ve,4,"open",$w,ir,Xh),d(ve,4,"defaultOpen",Ew,ir,Qh),Zh=d(ve,20,"#internalOpen",Sw,ee,Jh),Rw=Zh.get,ea=Zh.set,d(ve,4,"_ctx",Cw,ir,tu),C(ve,ir),g(ir,"tagName","dui-alert-dialog"),g(ir,"styles",[w,xA]);var HH=c`
3359
3359
  :host {
3360
3360
  display: contents;
3361
3361
  }
3362
- `,tL=c`
3362
+ `,NH=c`
3363
3363
  .Trigger {
3364
3364
  display: contents;
3365
3365
  }
3366
- `,Ks=class extends g{static tagName="dui-alert-dialog-trigger";static styles=[y,Z2,tL];#t=new V(this,{context:bo,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let o=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",r=this.#t.value?.dialogId??"";return f`
3367
- <span
3368
- class="Trigger"
3369
- part="trigger"
3370
- id="${t}"
3371
- aria-haspopup="dialog"
3372
- aria-expanded="${o}"
3373
- aria-controls="${o?r:""}"
3374
- ?data-popup-open="${o}"
3375
- @click="${this.#e}"
3376
- >
3377
- <slot></slot>
3378
- </span>
3379
- `}};var sS=(n,{composed:o=!0}={})=>{let t=n.getRootNode({composed:o});if(t instanceof DocumentFragment)return t;if(t instanceof Document)return t},eL='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',tl=n=>n instanceof HTMLSlotElement?n.assignedNodes({flatten:!0}):n instanceof Element&&n.shadowRoot?Array.from(n.shadowRoot.childNodes):Array.from(n.childNodes),Wi=n=>{let o=[],t=r=>{if(r instanceof HTMLElement&&r.matches(eL)&&!r.hasAttribute("disabled")){o.push(r);return}for(let a of tl(r))t(a)};for(let r of tl(n))t(r);return o},rL=(n,o)=>{let t=r=>{if(r instanceof HTMLElement&&r.matches(o))return r;for(let a of tl(r)){let d=t(a);if(d)return d}return null};for(let r of tl(n)){let a=t(r);if(a)return a}return null},el=n=>rL(n,"[autofocus]");var oL=c`
3366
+ `;var Aw=(n,{composed:o=!0}={})=>{let t=n.getRootNode({composed:o});if(t instanceof DocumentFragment)return t;if(t instanceof Document)return t},wA='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',da=n=>n instanceof HTMLSlotElement?n.assignedNodes({flatten:!0}):n instanceof Element&&n.shadowRoot?Array.from(n.shadowRoot.childNodes):Array.from(n.childNodes),Pi=n=>{let o=[],t=e=>{if(e instanceof HTMLElement&&e.matches(wA)&&!e.hasAttribute("disabled")){o.push(e);return}for(let a of da(e))t(a)};for(let e of da(n))t(e);return o},kA=(n,o)=>{let t=e=>{if(e instanceof HTMLElement&&e.matches(o))return e;for(let a of da(e)){let l=t(a);if(l)return l}return null};for(let e of da(n)){let a=t(e);if(a)return a}return null},ca=n=>kA(n,"[autofocus]");var CA=c`
3380
3367
  :host {
3381
3368
  display: contents;
3382
3369
  }
@@ -3385,7 +3372,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3385
3372
  :host(:not([mounted])) [part="popup"] {
3386
3373
  display: none;
3387
3374
  }
3388
- `,iL=c`
3375
+ `,SA=c`
3389
3376
  [part="backdrop"] {
3390
3377
  position: fixed;
3391
3378
  min-height: 100dvh;
@@ -3405,40 +3392,36 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3405
3392
  z-index: 1000;
3406
3393
  transition-property: opacity, transform;
3407
3394
  }
3408
- `,nS,aS,lS,dS,cS,pS,hS,Dt,em,rm,om,im,sm,Ki,cm,j,nm,am,pm,hm,lm,dm,Wr,um,Gi,yo,uS,mS,mm,fS,vS,rl,gS,Qe=class extends(hS=g,pS=[u({type:Boolean,attribute:"keep-mounted"})],cS=[u({attribute:"initial-focus"})],dS=[u({attribute:"final-focus"})],lS=[k()],aS=[k()],nS=[k()],hS){constructor(){super(...arguments);s(this,j);s(this,em,i(Dt,8,this,!1)),i(Dt,11,this);s(this,rm,i(Dt,12,this)),i(Dt,15,this);s(this,om,i(Dt,16,this)),i(Dt,19,this);s(this,im,i(Dt,20,this,!1)),i(Dt,23,this);s(this,nm,i(Dt,24,this,!1)),i(Dt,27,this);s(this,lm,i(Dt,28,this,!1)),i(Dt,31,this);s(this,Gi);s(this,yo,new V(this,{context:bo,subscribe:!0}));s(this,rl,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),e(this,yo).value?.closeDialog()),t.key==="Tab"&&m(this,j,gS).call(this,t)})}updated(){let t=e(this,yo).value?.open??!1;t&&!e(this,j,Ki)?m(this,j,uS).call(this):!t&&e(this,j,Ki)&&!e(this,j,Wr)&&m(this,j,mS).call(this)}willUpdate(){e(this,j,Ki)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=e(this,yo).value?.open??!1,r=e(this,yo).value?.titleId??"",a=e(this,yo).value?.descriptionId??"";return!e(this,j,Ki)&&!this.keepMounted?f``:f`
3395
+ `,_w,Ow,Lw,Pw,zw,Mw,Dw,zt,ru,ou,iu,su,nu,zi,pu,U,au,lu,hu,uu,du,cu,zr,mu,Mi,Zr,Fw,Hw,fu,Nw,Bw,pa,qw,sr=class extends(Dw=b,Mw=[u({type:Boolean,attribute:"keep-mounted"})],zw=[u({attribute:"initial-focus"})],Pw=[u({attribute:"final-focus"})],Lw=[k()],Ow=[k()],_w=[k()],Dw){constructor(){super(...arguments);s(this,U);s(this,ru,i(zt,8,this,!1)),i(zt,11,this);s(this,ou,i(zt,12,this)),i(zt,15,this);s(this,iu,i(zt,16,this)),i(zt,19,this);s(this,su,i(zt,20,this,!1)),i(zt,23,this);s(this,au,i(zt,24,this,!1)),i(zt,27,this);s(this,du,i(zt,28,this,!1)),i(zt,31,this);s(this,Mi);s(this,Zr,new J(this,{context:Li,subscribe:!0}));s(this,pa,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),r(this,Zr).value?.closeDialog()),t.key==="Tab"&&m(this,U,qw).call(this,t)})}updated(){let t=r(this,Zr).value?.open??!1;t&&!r(this,U,zi)?m(this,U,Fw).call(this):!t&&r(this,U,zi)&&!r(this,U,zr)&&m(this,U,Hw).call(this)}willUpdate(){r(this,U,zi)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=r(this,Zr).value?.open??!1,e=r(this,Zr).value?.titleId??"",a=r(this,Zr).value?.descriptionId??"";return!r(this,U,zi)&&!this.keepMounted?v``:v`
3409
3396
  <div
3410
3397
  part="backdrop"
3411
- ?data-open="${t&&!e(this,j,Wr)}"
3412
- ?data-closed="${!t||e(this,j,Wr)}"
3413
- ?data-starting-style="${e(this,j,pm)}"
3414
- ?data-ending-style="${e(this,j,Wr)}"
3398
+ ?data-open="${t&&!r(this,U,zr)}"
3399
+ ?data-closed="${!t||r(this,U,zr)}"
3400
+ ?data-starting-style="${r(this,U,hu)}"
3401
+ ?data-ending-style="${r(this,U,zr)}"
3415
3402
  ></div>
3416
3403
  <div
3417
3404
  part="popup"
3418
3405
  role="alertdialog"
3419
3406
  aria-modal="true"
3420
- aria-labelledby="${r}"
3407
+ aria-labelledby="${e}"
3421
3408
  aria-describedby="${a}"
3422
- ?data-open="${t&&!e(this,j,Wr)}"
3423
- ?data-closed="${!t||e(this,j,Wr)}"
3424
- ?data-starting-style="${e(this,j,pm)}"
3425
- ?data-ending-style="${e(this,j,Wr)}"
3409
+ ?data-open="${t&&!r(this,U,zr)}"
3410
+ ?data-closed="${!t||r(this,U,zr)}"
3411
+ ?data-starting-style="${r(this,U,hu)}"
3412
+ ?data-ending-style="${r(this,U,zr)}"
3426
3413
  tabindex="-1"
3427
- @keydown="${e(this,rl)}"
3414
+ @keydown="${r(this,pa)}"
3428
3415
  >
3429
- <h2 part="title" id="${r}"><slot name="title"></slot></h2>
3416
+ <h2 part="title" id="${e}"><slot name="title"></slot></h2>
3430
3417
  <p part="description" id="${a}"><slot name="description"></slot></p>
3431
3418
  <slot></slot>
3432
3419
  </div>
3433
- `}};Dt=C(hS),em=new WeakMap,rm=new WeakMap,om=new WeakMap,im=new WeakMap,j=new WeakSet,nm=new WeakMap,lm=new WeakMap,Gi=new WeakMap,yo=new WeakMap,uS=async function(){h(this,Gi,document.activeElement??void 0),h(this,j,!0,cm),h(this,j,!0,hm),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,j,!1,hm),await this.updateComplete,m(this,j,fS).call(this)},mS=function(){h(this,j,!0,um);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){m(this,j,mm).call(this);return}let r=!1,a=()=>{r||(r=!0,t.removeEventListener("transitionend",d),clearTimeout(p),m(this,j,mm).call(this))},d=v=>{v.propertyName==="opacity"&&a()};t.addEventListener("transitionend",d);let p=setTimeout(a,200)},mm=function(){!e(this,j,Wr)&&!e(this,j,Ki)||(h(this,j,!1,um),this.keepMounted||h(this,j,!1,cm),m(this,j,vS).call(this))},fS=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let d=t.querySelector(this.initialFocus);if(d){d.focus();return}}let r=el(t);if(r){r.focus();return}let a=Wi(t);if(a.length>0){a[0].focus();return}t.focus()},vS=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}e(this,Gi)?.focus(),h(this,Gi,void 0)},rl=new WeakMap,gS=function(t){let r=this.shadowRoot?.querySelector('[part="popup"]');if(!r)return;let a=Wi(r);if(a.length===0){t.preventDefault();return}let d=a[0],p=a[a.length-1],v=d.matches(":focus"),x=p.matches(":focus"),E=!a.some($=>$.matches(":focus"));t.shiftKey&&(v||E)?(t.preventDefault(),p.focus()):!t.shiftKey&&x&&(t.preventDefault(),d.focus())},l(Dt,4,"keepMounted",pS,Qe,em),l(Dt,4,"initialFocus",cS,Qe,rm),l(Dt,4,"finalFocus",dS,Qe,om),sm=l(Dt,20,"#mounted",lS,j,im),Ki=sm.get,cm=sm.set,am=l(Dt,20,"#startingStyle",aS,j,nm),pm=am.get,hm=am.set,dm=l(Dt,20,"#endingStyle",nS,j,lm),Wr=dm.get,um=dm.set,S(Dt,Qe),b(Qe,"tagName","dui-alert-dialog-popup"),b(Qe,"styles",[y,oL,iL]);var sL=c`
3420
+ `}};zt=S(Dw),ru=new WeakMap,ou=new WeakMap,iu=new WeakMap,su=new WeakMap,U=new WeakSet,au=new WeakMap,du=new WeakMap,Mi=new WeakMap,Zr=new WeakMap,Fw=async function(){h(this,Mi,document.activeElement??void 0),h(this,U,!0,pu),h(this,U,!0,uu),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,U,!1,uu),await this.updateComplete,m(this,U,Nw).call(this)},Hw=function(){h(this,U,!0,mu);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){m(this,U,fu).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(p),m(this,U,fu).call(this))},l=f=>{f.propertyName==="opacity"&&a()};t.addEventListener("transitionend",l);let p=setTimeout(a,200)},fu=function(){!r(this,U,zr)&&!r(this,U,zi)||(h(this,U,!1,mu),this.keepMounted||h(this,U,!1,pu),m(this,U,Bw).call(this))},Nw=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=ca(t);if(e){e.focus();return}let a=Pi(t);if(a.length>0){a[0].focus();return}t.focus()},Bw=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}r(this,Mi)?.focus(),h(this,Mi,void 0)},pa=new WeakMap,qw=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let a=Pi(e);if(a.length===0){t.preventDefault();return}let l=a[0],p=a[a.length-1],f=l.matches(":focus"),y=p.matches(":focus"),E=!a.some($=>$.matches(":focus"));t.shiftKey&&(f||E)?(t.preventDefault(),p.focus()):!t.shiftKey&&y&&(t.preventDefault(),l.focus())},d(zt,4,"keepMounted",Mw,sr,ru),d(zt,4,"initialFocus",zw,sr,ou),d(zt,4,"finalFocus",Pw,sr,iu),nu=d(zt,20,"#mounted",Lw,U,su),zi=nu.get,pu=nu.set,lu=d(zt,20,"#startingStyle",Ow,U,au),hu=lu.get,uu=lu.set,cu=d(zt,20,"#endingStyle",_w,U,du),zr=cu.get,mu=cu.set,C(zt,sr),g(sr,"tagName","dui-alert-dialog-popup"),g(sr,"styles",[w,CA,SA]);var eN=c`
3434
3421
  :host {
3435
3422
  display: contents;
3436
3423
  }
3437
- `,Gs=class extends g{static tagName="dui-alert-dialog-close";static styles=[y,sL];#t=new V(this,{context:bo,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
3438
- <span @click="${this.#e}">
3439
- <slot></slot>
3440
- </span>
3441
- `}};var bS=[fr,Ks,Qe,Gs];var $S=O("loading-status-change",{bubbles:!0,composed:!0}),nL=c`
3424
+ `;var Xw=_("loading-status-change",{bubbles:!0,composed:!0}),TA=c`
3442
3425
  :host {
3443
3426
  --avatar-size: var(--space-12);
3444
3427
  display: inline-block;
@@ -3468,19 +3451,19 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3468
3451
  height: 100%;
3469
3452
  width: 100%;
3470
3453
  }
3471
- `,yS,xS,wS,kS,SS,CS,ES,qt,fm,vm,gm,bm,ym,xm,TS,RS,pt,wm,km,IS,ol,xo,ri,Ys,Sm,Cm,Em,$m,Fe=class extends(ES=g,CS=[u()],SS=[u()],kS=[u({type:Number,attribute:"fallback-delay"})],wS=[u({reflect:!0})],xS=[k()],yS=[k()],ES){constructor(){super(...arguments);s(this,pt);s(this,fm,i(qt,8,this)),i(qt,11,this);s(this,vm,i(qt,12,this,"")),i(qt,15,this);s(this,gm,i(qt,16,this)),i(qt,19,this);s(this,bm,i(qt,20,this)),i(qt,23,this);s(this,ym,i(qt,24,this,"idle")),i(qt,27,this);s(this,wm,i(qt,28,this,!1)),i(qt,31,this);s(this,xo);s(this,ri)}connectedCallback(){super.connectedCallback(),m(this,pt,Em).call(this),m(this,pt,Sm).call(this)}disconnectedCallback(){super.disconnectedCallback(),m(this,pt,Cm).call(this),m(this,pt,$m).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&m(this,pt,Sm).call(this),t.has("fallbackDelay")&&m(this,pt,Em).call(this)}render(){let t=this.src&&e(this,pt,TS)==="loaded",r=!t&&e(this,pt,IS);return f`
3454
+ `,Vw,Uw,jw,Kw,Ww,Gw,Yw,Mt,vu,gu,bu,yu,xu,wu,Qw,Jw,ct,ku,Cu,Zw,ha,to,qo,Ls,Su,Eu,$u,Tu,qe=class extends(Yw=b,Gw=[u()],Ww=[u()],Kw=[u({type:Number,attribute:"fallback-delay"})],jw=[u({reflect:!0})],Uw=[k()],Vw=[k()],Yw){constructor(){super(...arguments);s(this,ct);s(this,vu,i(Mt,8,this)),i(Mt,11,this);s(this,gu,i(Mt,12,this,"")),i(Mt,15,this);s(this,bu,i(Mt,16,this)),i(Mt,19,this);s(this,yu,i(Mt,20,this)),i(Mt,23,this);s(this,xu,i(Mt,24,this,"idle")),i(Mt,27,this);s(this,ku,i(Mt,28,this,!1)),i(Mt,31,this);s(this,to);s(this,qo)}connectedCallback(){super.connectedCallback(),m(this,ct,$u).call(this),m(this,ct,Su).call(this)}disconnectedCallback(){super.disconnectedCallback(),m(this,ct,Eu).call(this),m(this,ct,Tu).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&m(this,ct,Su).call(this),t.has("fallbackDelay")&&m(this,ct,$u).call(this)}render(){let t=this.src&&r(this,ct,Qw)==="loaded",e=!t&&r(this,ct,Zw);return v`
3472
3455
  <span part="root">
3473
- ${t?f`
3456
+ ${t?v`
3474
3457
  <img
3475
3458
  part="image"
3476
3459
  src="${this.src}"
3477
3460
  alt="${this.alt}"
3478
3461
  />
3479
- `:r?f`
3462
+ `:e?v`
3480
3463
  <span part="fallback"><slot></slot></span>
3481
3464
  `:T}
3482
3465
  </span>
3483
- `}};qt=C(ES),fm=new WeakMap,vm=new WeakMap,gm=new WeakMap,bm=new WeakMap,ym=new WeakMap,pt=new WeakSet,wm=new WeakMap,xo=new WeakMap,ri=new WeakMap,Ys=function(t){h(this,pt,t,RS),this.dispatchEvent($S({status:t}))},Sm=function(){if(m(this,pt,Cm).call(this),!this.src){m(this,pt,Ys).call(this,"error");return}m(this,pt,Ys).call(this,"loading");let t=new Image;t.onload=()=>m(this,pt,Ys).call(this,"loaded"),t.onerror=()=>m(this,pt,Ys).call(this,"error"),t.src=this.src,h(this,xo,t)},Cm=function(){e(this,xo)&&(e(this,xo).onload=null,e(this,xo).onerror=null,h(this,xo,void 0))},Em=function(){if(m(this,pt,$m).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){h(this,pt,!0,ol);return}h(this,pt,!1,ol),h(this,ri,setTimeout(()=>{h(this,pt,!0,ol)},this.fallbackDelay))},$m=function(){e(this,ri)!==void 0&&(clearTimeout(e(this,ri)),h(this,ri,void 0))},l(qt,4,"src",CS,Fe,fm),l(qt,4,"alt",SS,Fe,vm),l(qt,4,"fallbackDelay",kS,Fe,gm),l(qt,4,"size",wS,Fe,bm),xm=l(qt,20,"#imageStatus",xS,pt,ym),TS=xm.get,RS=xm.set,km=l(qt,20,"#delayPassed",yS,pt,wm),IS=km.get,ol=km.set,S(qt,Fe),b(Fe,"tagName","dui-avatar"),b(Fe,"styles",[y,nL]);var AS=[Fe];var aL=c`
3466
+ `}};Mt=S(Yw),vu=new WeakMap,gu=new WeakMap,bu=new WeakMap,yu=new WeakMap,xu=new WeakMap,ct=new WeakSet,ku=new WeakMap,to=new WeakMap,qo=new WeakMap,Ls=function(t){h(this,ct,t,Jw),this.dispatchEvent(Xw({status:t}))},Su=function(){if(m(this,ct,Eu).call(this),!this.src){m(this,ct,Ls).call(this,"error");return}m(this,ct,Ls).call(this,"loading");let t=new Image;t.onload=()=>m(this,ct,Ls).call(this,"loaded"),t.onerror=()=>m(this,ct,Ls).call(this,"error"),t.src=this.src,h(this,to,t)},Eu=function(){r(this,to)&&(r(this,to).onload=null,r(this,to).onerror=null,h(this,to,void 0))},$u=function(){if(m(this,ct,Tu).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){h(this,ct,!0,ha);return}h(this,ct,!1,ha),h(this,qo,setTimeout(()=>{h(this,ct,!0,ha)},this.fallbackDelay))},Tu=function(){r(this,qo)!==void 0&&(clearTimeout(r(this,qo)),h(this,qo,void 0))},d(Mt,4,"src",Gw,qe,vu),d(Mt,4,"alt",Ww,qe,gu),d(Mt,4,"fallbackDelay",Kw,qe,bu),d(Mt,4,"size",jw,qe,yu),wu=d(Mt,20,"#imageStatus",Uw,ct,xu),Qw=wu.get,Jw=wu.set,Cu=d(Mt,20,"#delayPassed",Vw,ct,ku),Zw=Cu.get,ha=Cu.set,C(Mt,qe),g(qe,"tagName","dui-avatar"),g(qe,"styles",[w,TA]);var bN=c`
3484
3467
  :host {
3485
3468
  display: inline-block;
3486
3469
  }
@@ -3489,11 +3472,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3489
3472
  display: inline-flex;
3490
3473
  align-items: center;
3491
3474
  }
3492
- `,Xs=class extends g{static tagName="dui-badge";static styles=[y,aL];render(){return f`
3493
- <span part="root">
3494
- <slot></slot>
3495
- </span>
3496
- `}};var OS=[Xs];var lL=c`
3475
+ `;var SN=c`
3497
3476
  :host {
3498
3477
  display: block;
3499
3478
  }
@@ -3506,13 +3485,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3506
3485
  margin: 0;
3507
3486
  padding: 0;
3508
3487
  }
3509
- `,Js=class extends g{static tagName="dui-breadcrumb";static styles=[y,lL];render(){return f`
3510
- <nav aria-label="breadcrumb">
3511
- <ol part="root">
3512
- <slot></slot>
3513
- </ol>
3514
- </nav>
3515
- `}};var dL=c`
3488
+ `;var RN=c`
3516
3489
  :host {
3517
3490
  display: inline-flex;
3518
3491
  }
@@ -3521,11 +3494,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3521
3494
  display: inline-flex;
3522
3495
  align-items: center;
3523
3496
  }
3524
- `,Qs=class extends g{static tagName="dui-breadcrumb-item";static styles=[y,dL];render(){return f`
3525
- <li part="root">
3526
- <slot></slot>
3527
- </li>
3528
- `}};var cL=c`
3497
+ `;var ON=c`
3529
3498
  :host {
3530
3499
  display: inline-flex;
3531
3500
  }
@@ -3534,11 +3503,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3534
3503
  display: inline-flex;
3535
3504
  align-items: center;
3536
3505
  }
3537
- `,Zs=class extends g{static tagName="dui-breadcrumb-link";static styles=[y,cL];render(){return f`
3538
- <span part="root">
3539
- <slot></slot>
3540
- </span>
3541
- `}};var pL=c`
3506
+ `;var MN=c`
3542
3507
  :host {
3543
3508
  display: inline-flex;
3544
3509
  }
@@ -3547,16 +3512,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3547
3512
  display: inline-flex;
3548
3513
  align-items: center;
3549
3514
  }
3550
- `,tn=class extends g{static tagName="dui-breadcrumb-page";static styles=[y,pL];render(){return f`
3551
- <span
3552
- role="link"
3553
- aria-disabled="true"
3554
- aria-current="page"
3555
- part="root"
3556
- >
3557
- <slot></slot>
3558
- </span>
3559
- `}};var hL=c`
3515
+ `;var NN=c`
3560
3516
  :host {
3561
3517
  display: flex;
3562
3518
  }
@@ -3565,15 +3521,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3565
3521
  display: flex;
3566
3522
  align-items: center;
3567
3523
  }
3568
- `,en=class extends g{static tagName="dui-breadcrumb-separator";static styles=[y,hL];render(){return f`
3569
- <li
3570
- role="presentation"
3571
- aria-hidden="true"
3572
- part="root"
3573
- >
3574
- <slot>/</slot>
3575
- </li>
3576
- `}};var uL=c`
3524
+ `;var UN=c`
3577
3525
  :host {
3578
3526
  display: flex;
3579
3527
  align-items: center;
@@ -3585,15 +3533,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3585
3533
  align-items: center;
3586
3534
  justify-content: center;
3587
3535
  }
3588
- `,rn=class extends g{static tagName="dui-breadcrumb-ellipsis";static styles=[y,uL];render(){return f`
3589
- <span
3590
- role="presentation"
3591
- aria-hidden="true"
3592
- part="root"
3593
- >
3594
- <slot>&hellip;</slot>
3595
- </span>
3596
- `}};var LS=[Js,Qs,Zs,tn,en,rn];var HS=O("dui-navigate",{bubbles:!0,composed:!0}),mL=c`
3536
+ `;var sk=_("dui-navigate",{bubbles:!0,composed:!0}),zA=c`
3597
3537
  :host {
3598
3538
  display: inline-block;
3599
3539
  }
@@ -3618,26 +3558,26 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3618
3558
  user-select: none;
3619
3559
  -webkit-tap-highlight-color: transparent;
3620
3560
  }
3621
- `,PS,zS,_S,MS,FS,ke,Tm,Rm,Im,Am,il,sl,Yi,NS,BS,Se=class extends(FS=g,MS=[u({type:Boolean,reflect:!0})],_S=[u({type:Boolean,attribute:"focusable-when-disabled"})],zS=[u()],PS=[u()],FS){constructor(){super(...arguments);s(this,Yi);s(this,Tm,i(ke,8,this,!1)),i(ke,11,this);s(this,Rm,i(ke,12,this,!1)),i(ke,15,this);s(this,Im,i(ke,16,this,"button")),i(ke,19,this);s(this,Am,i(ke,20,this)),i(ke,23,this);s(this,il,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});s(this,sl,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(HS({href:this.href})))})}render(){return this.href!==void 0?m(this,Yi,BS).call(this):m(this,Yi,NS).call(this)}};ke=C(FS),Tm=new WeakMap,Rm=new WeakMap,Im=new WeakMap,Am=new WeakMap,il=new WeakMap,sl=new WeakMap,Yi=new WeakSet,NS=function(){let t=this.disabled&&this.focusableWhenDisabled;return f`
3561
+ `,tk,ek,rk,ok,ik,ge,Ru,Iu,Au,_u,ua,ma,Di,nk,ak,Ie=class extends(ik=b,ok=[u({type:Boolean,reflect:!0})],rk=[u({type:Boolean,attribute:"focusable-when-disabled"})],ek=[u()],tk=[u()],ik){constructor(){super(...arguments);s(this,Di);s(this,Ru,i(ge,8,this,!1)),i(ge,11,this);s(this,Iu,i(ge,12,this,!1)),i(ge,15,this);s(this,Au,i(ge,16,this,"button")),i(ge,19,this);s(this,_u,i(ge,20,this)),i(ge,23,this);s(this,ua,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});s(this,ma,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(sk({href:this.href})))})}render(){return this.href!==void 0?m(this,Di,ak).call(this):m(this,Di,nk).call(this)}};ge=S(ik),Ru=new WeakMap,Iu=new WeakMap,Au=new WeakMap,_u=new WeakMap,ua=new WeakMap,ma=new WeakMap,Di=new WeakSet,nk=function(){let t=this.disabled&&this.focusableWhenDisabled;return v`
3622
3562
  <button
3623
3563
  part="root"
3624
3564
  type="${this.type}"
3625
3565
  ?disabled="${this.disabled&&!this.focusableWhenDisabled}"
3626
3566
  aria-disabled="${t||T}"
3627
- @click="${e(this,il)}"
3567
+ @click="${r(this,ua)}"
3628
3568
  >
3629
3569
  <slot></slot>
3630
3570
  </button>
3631
- `},BS=function(){return f`
3571
+ `},ak=function(){return v`
3632
3572
  <a
3633
3573
  part="root"
3634
3574
  href="${this.href??T}"
3635
3575
  aria-disabled="${this.disabled||T}"
3636
- @click="${e(this,sl)}"
3576
+ @click="${r(this,ma)}"
3637
3577
  >
3638
3578
  <slot></slot>
3639
3579
  </a>
3640
- `},l(ke,4,"disabled",MS,Se,Tm),l(ke,4,"focusableWhenDisabled",_S,Se,Rm),l(ke,4,"type",zS,Se,Im),l(ke,4,"href",PS,Se,Am),S(ke,Se),b(Se,"tagName","dui-button"),b(Se,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Se,"styles",[y,mL]);var DS=[Se];var tC=O("value-change",{bubbles:!0,composed:!0}),fL=c`
3580
+ `},d(ge,4,"disabled",ok,Ie,Ru),d(ge,4,"focusableWhenDisabled",rk,Ie,Iu),d(ge,4,"type",ek,Ie,Au),d(ge,4,"href",tk,Ie,_u),C(ge,Ie),g(Ie,"tagName","dui-button"),g(Ie,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Ie,"styles",[w,zA]);var xk=_("value-change",{bubbles:!0,composed:!0}),MA=c`
3641
3581
  :host {
3642
3582
  display: inline-block;
3643
3583
  }
@@ -3697,14 +3637,14 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3697
3637
  [part="day"]:disabled {
3698
3638
  cursor: not-allowed;
3699
3639
  }
3700
- `,qS,VS,US,jS,WS,KS,GS,YS,XS,JS,QS,ZS,rt,Om,Lm,Pm,zm,_m,Mm,Fm,Hm,Nm,eC,Wm,A,Bm,Dm,Km,nl,qm,Vm,al,ll,Um,jm,dl,cl,Gm,Ze,pl,on,hl,Ym,rC,oC,iC,Xm,Jm,ul,ml,fl,vl,ie=class extends(ZS=g,QS=[u()],JS=[u({attribute:"default-value"})],XS=[u()],YS=[u()],GS=[u()],KS=[u({type:Boolean,reflect:!0})],WS=[u({type:Boolean,reflect:!0,attribute:"read-only"})],jS=[k()],US=[k()],VS=[k()],qS=[k()],ZS){constructor(){super(...arguments);s(this,A);s(this,Om,i(rt,8,this)),i(rt,11,this);s(this,Lm,i(rt,12,this)),i(rt,15,this);s(this,Pm,i(rt,16,this)),i(rt,19,this);s(this,zm,i(rt,20,this)),i(rt,23,this);s(this,_m,i(rt,24,this,"en-US")),i(rt,27,this);s(this,Mm,i(rt,28,this,!1)),i(rt,31,this);s(this,Fm,i(rt,32,this,!1)),i(rt,35,this);s(this,Hm,i(rt,36,this)),i(rt,39,this);s(this,Bm,i(rt,40,this,new Date)),i(rt,43,this);s(this,qm,i(rt,44,this,new Date().getMonth())),i(rt,47,this);s(this,Um,i(rt,48,this,new Date().getFullYear())),i(rt,51,this);s(this,ul,t=>{let r=t.currentTarget,a=r.dataset.date;a&&!r.disabled&&m(this,A,Xm).call(this,a)});s(this,ml,t=>{let r=new Date(e(this,A,Km)),a=!0;switch(t.key){case"ArrowLeft":r.setDate(r.getDate()-1);break;case"ArrowRight":r.setDate(r.getDate()+1);break;case"ArrowUp":r.setDate(r.getDate()-7);break;case"ArrowDown":r.setDate(r.getDate()+7);break;case"PageUp":t.shiftKey?r.setFullYear(r.getFullYear()-1):r.setMonth(r.getMonth()-1);break;case"PageDown":t.shiftKey?r.setFullYear(r.getFullYear()+1):r.setMonth(r.getMonth()+1);break;case"Home":{r.setDate(1);break}case"End":{let d=m(this,A,hl).call(this,r.getFullYear(),r.getMonth());r.setDate(d);break}case"Enter":case" ":t.preventDefault(),m(this,A,on).call(this,r)||m(this,A,Xm).call(this,m(this,A,Ze).call(this,r));return;default:a=!1}a&&(t.preventDefault(),h(this,A,r,nl),h(this,A,r.getMonth(),ll),h(this,A,r.getFullYear(),cl),this.updateComplete.then(()=>{let d=m(this,A,Ze).call(this,r);this.shadowRoot?.querySelector(`[data-date="${d}"]`)?.focus()}))});s(this,fl,()=>{m(this,A,Jm).call(this,-1)});s(this,vl,()=>{m(this,A,Jm).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,A,this.defaultValue,Wm);let t=e(this,A,Gm);if(t){let r=new Date(t+"T00:00:00");h(this,A,r.getMonth(),ll),h(this,A,r.getFullYear(),cl),h(this,A,r,nl)}}render(){let t=m(this,A,rC).call(this),r=m(this,A,oC).call(this),a=m(this,A,iC).call(this),d=m(this,A,Ze).call(this,e(this,A,Km));return f`
3701
- <div part="root" role="grid" @keydown="${e(this,ml)}">
3640
+ `,lk,dk,ck,pk,hk,uk,mk,fk,vk,gk,bk,yk,Z,Ou,Lu,Pu,zu,Mu,Du,Fu,Hu,Nu,wk,Wu,A,Bu,qu,Gu,fa,Vu,Uu,va,ga,ju,Ku,ba,ya,Yu,Ve,xa,Ps,wa,Xu,kk,Ck,Sk,Qu,Ju,ka,Ca,Sa,Ea,re=class extends(yk=b,bk=[u()],gk=[u({attribute:"default-value"})],vk=[u()],fk=[u()],mk=[u()],uk=[u({type:Boolean,reflect:!0})],hk=[u({type:Boolean,reflect:!0,attribute:"read-only"})],pk=[k()],ck=[k()],dk=[k()],lk=[k()],yk){constructor(){super(...arguments);s(this,A);s(this,Ou,i(Z,8,this)),i(Z,11,this);s(this,Lu,i(Z,12,this)),i(Z,15,this);s(this,Pu,i(Z,16,this)),i(Z,19,this);s(this,zu,i(Z,20,this)),i(Z,23,this);s(this,Mu,i(Z,24,this,"en-US")),i(Z,27,this);s(this,Du,i(Z,28,this,!1)),i(Z,31,this);s(this,Fu,i(Z,32,this,!1)),i(Z,35,this);s(this,Hu,i(Z,36,this)),i(Z,39,this);s(this,Bu,i(Z,40,this,new Date)),i(Z,43,this);s(this,Vu,i(Z,44,this,new Date().getMonth())),i(Z,47,this);s(this,ju,i(Z,48,this,new Date().getFullYear())),i(Z,51,this);s(this,ka,t=>{let e=t.currentTarget,a=e.dataset.date;a&&!e.disabled&&m(this,A,Qu).call(this,a)});s(this,Ca,t=>{let e=new Date(r(this,A,Gu)),a=!0;switch(t.key){case"ArrowLeft":e.setDate(e.getDate()-1);break;case"ArrowRight":e.setDate(e.getDate()+1);break;case"ArrowUp":e.setDate(e.getDate()-7);break;case"ArrowDown":e.setDate(e.getDate()+7);break;case"PageUp":t.shiftKey?e.setFullYear(e.getFullYear()-1):e.setMonth(e.getMonth()-1);break;case"PageDown":t.shiftKey?e.setFullYear(e.getFullYear()+1):e.setMonth(e.getMonth()+1);break;case"Home":{e.setDate(1);break}case"End":{let l=m(this,A,wa).call(this,e.getFullYear(),e.getMonth());e.setDate(l);break}case"Enter":case" ":t.preventDefault(),m(this,A,Ps).call(this,e)||m(this,A,Qu).call(this,m(this,A,Ve).call(this,e));return;default:a=!1}a&&(t.preventDefault(),h(this,A,e,fa),h(this,A,e.getMonth(),ga),h(this,A,e.getFullYear(),ya),this.updateComplete.then(()=>{let l=m(this,A,Ve).call(this,e);this.shadowRoot?.querySelector(`[data-date="${l}"]`)?.focus()}))});s(this,Sa,()=>{m(this,A,Ju).call(this,-1)});s(this,Ea,()=>{m(this,A,Ju).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,A,this.defaultValue,Wu);let t=r(this,A,Yu);if(t){let e=new Date(t+"T00:00:00");h(this,A,e.getMonth(),ga),h(this,A,e.getFullYear(),ya),h(this,A,e,fa)}}render(){let t=m(this,A,kk).call(this),e=m(this,A,Ck).call(this),a=m(this,A,Sk).call(this),l=m(this,A,Ve).call(this,r(this,A,Gu));return v`
3641
+ <div part="root" role="grid" @keydown="${r(this,Ca)}">
3702
3642
  <div part="header">
3703
3643
  <button
3704
3644
  part="prev"
3705
3645
  type="button"
3706
3646
  aria-label="Previous month"
3707
- @click="${e(this,fl)}"
3647
+ @click="${r(this,Sa)}"
3708
3648
  >
3709
3649
  <slot name="prev">&lsaquo;</slot>
3710
3650
  </button>
@@ -3713,50 +3653,32 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3713
3653
  part="next"
3714
3654
  type="button"
3715
3655
  aria-label="Next month"
3716
- @click="${e(this,vl)}"
3656
+ @click="${r(this,Ea)}"
3717
3657
  >
3718
3658
  <slot name="next">&rsaquo;</slot>
3719
3659
  </button>
3720
3660
  </div>
3721
3661
 
3722
3662
  <div part="grid" role="grid">
3723
- ${r.map(p=>f`<div part="weekday" role="columnheader">${p}</div>`)}
3724
- ${t.flat().map(p=>f`
3663
+ ${e.map(p=>v`<div part="weekday" role="columnheader">${p}</div>`)}
3664
+ ${t.flat().map(p=>v`
3725
3665
  <button
3726
3666
  part="day"
3727
3667
  type="button"
3728
3668
  role="gridcell"
3729
3669
  data-date="${p.iso}"
3730
- tabindex="${p.iso===d?0:-1}"
3670
+ tabindex="${p.iso===l?0:-1}"
3731
3671
  ?data-selected="${p.isSelected}"
3732
3672
  ?data-today="${p.isToday}"
3733
3673
  ?data-outside-month="${p.isOutsideMonth}"
3734
3674
  ?disabled="${p.isDisabled}"
3735
3675
  aria-selected="${p.isSelected?"true":"false"}"
3736
- @click="${e(this,ul)}"
3676
+ @click="${r(this,ka)}"
3737
3677
  >${p.day}</button>
3738
3678
  `)}
3739
3679
  </div>
3740
3680
  </div>
3741
- `}};rt=C(ZS),Om=new WeakMap,Lm=new WeakMap,Pm=new WeakMap,zm=new WeakMap,_m=new WeakMap,Mm=new WeakMap,Fm=new WeakMap,Hm=new WeakMap,A=new WeakSet,Bm=new WeakMap,qm=new WeakMap,Um=new WeakMap,Gm=function(){return this.value??e(this,A,eC)},Ze=function(t){let r=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),d=String(t.getDate()).padStart(2,"0");return`${r}-${a}-${d}`},pl=function(t,r){return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()},on=function(t){if(this.disabled)return!0;let r=m(this,A,Ze).call(this,t);return!!(this.min&&r<this.min||this.max&&r>this.max)},hl=function(t,r){return new Date(t,r+1,0).getDate()},Ym=function(){try{let t=new Intl.Locale(this.locale),r=t.weekInfo??t.getWeekInfo?.();return r?.firstDay===7?0:r?.firstDay??0}catch{return 0}},rC=function(){let t=e(this,A,dl),r=e(this,A,al),a=m(this,A,hl).call(this,t,r),d=new Date(t,r,1).getDay(),p=m(this,A,Ym).call(this),v=new Date,x=e(this,A,Gm),E=d-p;E<0&&(E+=7);let $=[],w=r===0?11:r-1,I=r===0?t-1:t,R=m(this,A,hl).call(this,I,w);for(let _=E-1;_>=0;_--){let q=R-_,K=new Date(I,w,q);$.push({date:K,day:q,iso:m(this,A,Ze).call(this,K),isToday:m(this,A,pl).call(this,K,v),isSelected:m(this,A,Ze).call(this,K)===x,isOutsideMonth:!0,isDisabled:m(this,A,on).call(this,K)})}for(let _=1;_<=a;_++){let q=new Date(t,r,_);$.push({date:q,day:_,iso:m(this,A,Ze).call(this,q),isToday:m(this,A,pl).call(this,q,v),isSelected:m(this,A,Ze).call(this,q)===x,isOutsideMonth:!1,isDisabled:m(this,A,on).call(this,q)})}let z=42-$.length,B=r===11?0:r+1,J=r===11?t+1:t;for(let _=1;_<=z;_++){let q=new Date(J,B,_);$.push({date:q,day:_,iso:m(this,A,Ze).call(this,q),isToday:m(this,A,pl).call(this,q,v),isSelected:m(this,A,Ze).call(this,q)===x,isOutsideMonth:!0,isDisabled:m(this,A,on).call(this,q)})}let U=[];for(let _=0;_<$.length;_+=7)U.push($.slice(_,_+7));return U},oC=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),r=m(this,A,Ym).call(this),a=[];for(let d=0;d<7;d++){let p=new Date(2015,0,4+r+d);a.push(t.format(p))}return a},iC=function(){let t=new Date(e(this,A,dl),e(this,A,al),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},Xm=function(t){this.disabled||this.readOnly||(this.value===void 0&&h(this,A,t,Wm),this.dispatchEvent(tC({value:t})))},Jm=function(t){let r=e(this,A,al)+t,a=e(this,A,dl);r<0?(r=11,a--):r>11&&(r=0,a++),h(this,A,r,ll),h(this,A,a,cl),h(this,A,new Date(a,r,1),nl)},ul=new WeakMap,ml=new WeakMap,fl=new WeakMap,vl=new WeakMap,l(rt,4,"value",QS,ie,Om),l(rt,4,"defaultValue",JS,ie,Lm),l(rt,4,"min",XS,ie,Pm),l(rt,4,"max",YS,ie,zm),l(rt,4,"locale",GS,ie,_m),l(rt,4,"disabled",KS,ie,Mm),l(rt,4,"readOnly",WS,ie,Fm),Nm=l(rt,20,"#internalValue",jS,A,Hm),eC=Nm.get,Wm=Nm.set,Dm=l(rt,20,"#focusedDate",US,A,Bm),Km=Dm.get,nl=Dm.set,Vm=l(rt,20,"#viewMonth",VS,A,qm),al=Vm.get,ll=Vm.set,jm=l(rt,20,"#viewYear",qS,A,Um),dl=jm.get,cl=jm.set,S(rt,ie),b(ie,"tagName","dui-calendar"),b(ie,"styles",[y,fL]);var sC=[ie];var vL=c`
3742
- :host {
3743
- display: block;
3744
- min-height: 100cqh;
3745
- width: 100cqw;
3746
- }
3747
-
3748
- [part="root"] {
3749
- display: flex;
3750
- justify-content: center;
3751
- align-items: center;
3752
- min-height: 100cqh;
3753
- width: 100cqw;
3754
- }
3755
- `,sn=class extends g{static tagName="dui-center";static styles=[y,vL];render(){return f`
3756
- <div part="root">
3757
- <slot></slot>
3758
- </div>
3759
- `}};var nC=[sn];var Ce=Symbol("dui-field");var gl=Symbol("dui-checkbox-group");var yC=O("checked-change",{bubbles:!0,composed:!0}),gL=c`
3681
+ `}};Z=S(yk),Ou=new WeakMap,Lu=new WeakMap,Pu=new WeakMap,zu=new WeakMap,Mu=new WeakMap,Du=new WeakMap,Fu=new WeakMap,Hu=new WeakMap,A=new WeakSet,Bu=new WeakMap,Vu=new WeakMap,ju=new WeakMap,Yu=function(){return this.value??r(this,A,wk)},Ve=function(t){let e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return`${e}-${a}-${l}`},xa=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},Ps=function(t){if(this.disabled)return!0;let e=m(this,A,Ve).call(this,t);return!!(this.min&&e<this.min||this.max&&e>this.max)},wa=function(t,e){return new Date(t,e+1,0).getDate()},Xu=function(){try{let t=new Intl.Locale(this.locale),e=t.weekInfo??t.getWeekInfo?.();return e?.firstDay===7?0:e?.firstDay??0}catch{return 0}},kk=function(){let t=r(this,A,ba),e=r(this,A,va),a=m(this,A,wa).call(this,t,e),l=new Date(t,e,1).getDay(),p=m(this,A,Xu).call(this),f=new Date,y=r(this,A,Yu),E=l-p;E<0&&(E+=7);let $=[],x=e===0?11:e-1,I=e===0?t-1:t,R=m(this,A,wa).call(this,I,x);for(let z=E-1;z>=0;z--){let B=R-z,K=new Date(I,x,B);$.push({date:K,day:B,iso:m(this,A,Ve).call(this,K),isToday:m(this,A,xa).call(this,K,f),isSelected:m(this,A,Ve).call(this,K)===y,isOutsideMonth:!0,isDisabled:m(this,A,Ps).call(this,K)})}for(let z=1;z<=a;z++){let B=new Date(t,e,z);$.push({date:B,day:z,iso:m(this,A,Ve).call(this,B),isToday:m(this,A,xa).call(this,B,f),isSelected:m(this,A,Ve).call(this,B)===y,isOutsideMonth:!1,isDisabled:m(this,A,Ps).call(this,B)})}let P=42-$.length,F=e===11?0:e+1,X=e===11?t+1:t;for(let z=1;z<=P;z++){let B=new Date(X,F,z);$.push({date:B,day:z,iso:m(this,A,Ve).call(this,B),isToday:m(this,A,xa).call(this,B,f),isSelected:m(this,A,Ve).call(this,B)===y,isOutsideMonth:!0,isDisabled:m(this,A,Ps).call(this,B)})}let q=[];for(let z=0;z<$.length;z+=7)q.push($.slice(z,z+7));return q},Ck=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),e=m(this,A,Xu).call(this),a=[];for(let l=0;l<7;l++){let p=new Date(2015,0,4+e+l);a.push(t.format(p))}return a},Sk=function(){let t=new Date(r(this,A,ba),r(this,A,va),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},Qu=function(t){this.disabled||this.readOnly||(this.value===void 0&&h(this,A,t,Wu),this.dispatchEvent(xk({value:t})))},Ju=function(t){let e=r(this,A,va)+t,a=r(this,A,ba);e<0?(e=11,a--):e>11&&(e=0,a++),h(this,A,e,ga),h(this,A,a,ya),h(this,A,new Date(a,e,1),fa)},ka=new WeakMap,Ca=new WeakMap,Sa=new WeakMap,Ea=new WeakMap,d(Z,4,"value",bk,re,Ou),d(Z,4,"defaultValue",gk,re,Lu),d(Z,4,"min",vk,re,Pu),d(Z,4,"max",fk,re,zu),d(Z,4,"locale",mk,re,Mu),d(Z,4,"disabled",uk,re,Du),d(Z,4,"readOnly",hk,re,Fu),Nu=d(Z,20,"#internalValue",pk,A,Hu),wk=Nu.get,Wu=Nu.set,qu=d(Z,20,"#focusedDate",ck,A,Bu),Gu=qu.get,fa=qu.set,Uu=d(Z,20,"#viewMonth",dk,A,Vu),va=Uu.get,ga=Uu.set,Ku=d(Z,20,"#viewYear",lk,A,ju),ba=Ku.get,ya=Ku.set,C(Z,re),g(re,"tagName","dui-calendar"),g(re,"styles",[w,MA]);var be=Symbol("dui-field");var $a=Symbol("dui-checkbox-group");var Dk=_("checked-change",{bubbles:!0,composed:!0}),DA=c`
3760
3682
  :host {
3761
3683
  display: inline-flex;
3762
3684
  align-items: start;
@@ -3806,7 +3728,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3806
3728
  width: 0;
3807
3729
  height: 0;
3808
3730
  }
3809
- `,bL=f`
3731
+ `,FA=v`
3810
3732
  <svg
3811
3733
  class="Icon"
3812
3734
  xmlns="http://www.w3.org/2000/svg"
@@ -3819,7 +3741,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3819
3741
  >
3820
3742
  <polyline points="20 6 9 17 4 12"></polyline>
3821
3743
  </svg>
3822
- `,yL=f`
3744
+ `,HA=v`
3823
3745
  <svg
3824
3746
  class="Icon"
3825
3747
  xmlns="http://www.w3.org/2000/svg"
@@ -3832,40 +3754,40 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3832
3754
  >
3833
3755
  <line x1="5" y1="12" x2="19" y2="12"></line>
3834
3756
  </svg>
3835
- `,aC,lC,dC,cC,pC,hC,uC,mC,fC,vC,gC,bC,ot,Qm,Zm,tf,ef,rf,of,sf,nf,af,lf,df,xC,hf,xt,oi,cf,pf,wo,xL,bl,wC,uf,kC,nn,an,yl,Jt=class extends(bC=g,gC=[u({type:Boolean,reflect:!0})],vC=[u({type:Boolean,attribute:"default-checked"})],fC=[u({type:Boolean,reflect:!0})],mC=[u({type:Boolean,reflect:!0})],uC=[u({type:Boolean,reflect:!0,attribute:"read-only"})],hC=[u({type:Boolean,reflect:!0})],pC=[u()],cC=[u()],dC=[u({type:Boolean})],lC=[k()],aC=[at({context:Ce,subscribe:!0}),k()],bC){constructor(){super(...arguments);s(this,xt);s(this,Qm,i(ot,8,this)),i(ot,11,this);s(this,Zm,i(ot,12,this,!1)),i(ot,15,this);s(this,tf,i(ot,16,this,!1)),i(ot,19,this);s(this,ef,i(ot,20,this,!1)),i(ot,23,this);s(this,rf,i(ot,24,this,!1)),i(ot,27,this);s(this,of,i(ot,28,this,!1)),i(ot,31,this);s(this,sf,i(ot,32,this)),i(ot,35,this);s(this,nf,i(ot,36,this)),i(ot,39,this);s(this,af,i(ot,40,this,!1)),i(ot,43,this);s(this,lf,i(ot,44,this,!1)),i(ot,47,this);s(this,oi,new V(this,{context:gl,subscribe:!0}));s(this,cf,i(ot,48,this)),i(ot,51,this);s(this,nn,t=>{e(this,an).call(this)});s(this,an,()=>{if(e(this,xt,uf)||this.readOnly)return;let t=e(this,oi).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!e(this,xt,bl)):t.toggle(this.value),e(this,xt,wo)?.markDirty(),e(this,xt,wo)?.markTouched();return}let r=!e(this,xt,bl);this.checked===void 0&&(h(this,xt,r,hf),this.indeterminate=!1),e(this,xt,wo)?.markDirty(),e(this,xt,wo)?.markTouched(),this.dispatchEvent(yC({checked:r,indeterminate:!1}))});s(this,yl,t=>{t.key===" "&&(t.preventDefault(),e(this,an).call(this))})}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,xt,!0,hf),this.addEventListener("click",e(this,nn))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,nn))}render(){let t=e(this,xt,bl),r=e(this,xt,wC),a=e(this,xt,uf),d=e(this,xt,kC),p=t||r,v=e(this,xt,wo)?.controlId??"";return f`
3757
+ `,Ek,$k,Tk,Rk,Ik,Ak,_k,Ok,Lk,Pk,zk,Mk,tt,Zu,tm,em,rm,om,im,sm,nm,am,lm,dm,Fk,pm,Vt,Vo,cm,Ta,Hk,hm,Nk,zs,Ms,Ra,Ut=class extends(Mk=b,zk=[u({type:Boolean,reflect:!0})],Pk=[u({type:Boolean,attribute:"default-checked"})],Lk=[u({type:Boolean,reflect:!0})],Ok=[u({type:Boolean,reflect:!0})],_k=[u({type:Boolean,reflect:!0,attribute:"read-only"})],Ak=[u({type:Boolean,reflect:!0})],Ik=[u()],Rk=[u()],Tk=[u({type:Boolean})],$k=[k()],Ek=[ot({context:be,subscribe:!0}),k()],Mk){constructor(){super(...arguments);s(this,Vt);s(this,Zu,i(tt,8,this)),i(tt,11,this);s(this,tm,i(tt,12,this,!1)),i(tt,15,this);s(this,em,i(tt,16,this,!1)),i(tt,19,this);s(this,rm,i(tt,20,this,!1)),i(tt,23,this);s(this,om,i(tt,24,this,!1)),i(tt,27,this);s(this,im,i(tt,28,this,!1)),i(tt,31,this);s(this,sm,i(tt,32,this)),i(tt,35,this);s(this,nm,i(tt,36,this)),i(tt,39,this);s(this,am,i(tt,40,this,!1)),i(tt,43,this);s(this,lm,i(tt,44,this,!1)),i(tt,47,this);s(this,Vo,new J(this,{context:$a,subscribe:!0}));s(this,cm,i(tt,48,this)),i(tt,51,this);s(this,zs,t=>{r(this,Ms).call(this)});s(this,Ms,()=>{if(r(this,Vt,hm)||this.readOnly)return;let t=r(this,Vo).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!r(this,Vt,Ta)):t.toggle(this.value),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched();return}let e=!r(this,Vt,Ta);this.checked===void 0&&(h(this,Vt,e,pm),this.indeterminate=!1),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched(),this.dispatchEvent(Dk({checked:e,indeterminate:!1}))});s(this,Ra,t=>{t.key===" "&&(t.preventDefault(),r(this,Ms).call(this))})}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,Vt,!0,pm),this.addEventListener("click",r(this,zs))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,zs))}render(){let t=r(this,Vt,Ta),e=r(this,Vt,Hk),a=r(this,Vt,hm),l=r(this,Vt,Nk),p=t||e,f=this._fieldCtx?.controlId??"";return v`
3836
3758
  <span
3837
3759
  part="root"
3838
3760
  role="checkbox"
3839
- id="${v||T}"
3840
- aria-checked="${r?"mixed":String(t)}"
3761
+ id="${f||T}"
3762
+ aria-checked="${e?"mixed":String(t)}"
3841
3763
  aria-disabled="${a?"true":T}"
3842
3764
  aria-readonly="${this.readOnly?"true":T}"
3843
3765
  aria-required="${this.required?"true":T}"
3844
- aria-invalid="${d?"true":T}"
3766
+ aria-invalid="${l?"true":T}"
3845
3767
  tabindex="${a?T:"0"}"
3846
- ?data-checked="${t&&!r}"
3847
- ?data-unchecked="${!t&&!r}"
3848
- ?data-indeterminate="${r}"
3768
+ ?data-checked="${t&&!e}"
3769
+ ?data-unchecked="${!t&&!e}"
3770
+ ?data-indeterminate="${e}"
3849
3771
  ?data-disabled="${a}"
3850
3772
  ?data-readonly="${this.readOnly}"
3851
3773
  ?data-required="${this.required}"
3852
- ?data-invalid="${d}"
3853
- @keydown="${e(this,yl)}"
3774
+ ?data-invalid="${l}"
3775
+ @keydown="${r(this,Ra)}"
3854
3776
  >
3855
3777
  <span
3856
3778
  part="indicator"
3857
- ?data-checked="${t&&!r}"
3858
- ?data-unchecked="${!t&&!r}"
3859
- ?data-indeterminate="${r}"
3779
+ ?data-checked="${t&&!e}"
3780
+ ?data-unchecked="${!t&&!e}"
3781
+ ?data-indeterminate="${e}"
3860
3782
  >
3861
- ${p?r?yL:bL:T}
3783
+ ${p?e?HA:FA:T}
3862
3784
  </span>
3863
3785
  <input
3864
3786
  type="checkbox"
3865
3787
  name="${this.name??T}"
3866
3788
  value="${this.value??T}"
3867
3789
  .checked="${t}"
3868
- .indeterminate="${r}"
3790
+ .indeterminate="${e}"
3869
3791
  ?disabled="${a}"
3870
3792
  ?required="${this.required}"
3871
3793
  class="HiddenInput"
@@ -3874,7 +3796,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3874
3796
  />
3875
3797
  </span>
3876
3798
  <slot></slot>
3877
- `}};ot=C(bC),Qm=new WeakMap,Zm=new WeakMap,tf=new WeakMap,ef=new WeakMap,rf=new WeakMap,of=new WeakMap,sf=new WeakMap,nf=new WeakMap,af=new WeakMap,lf=new WeakMap,xt=new WeakSet,oi=new WeakMap,cf=new WeakMap,bl=function(){let t=e(this,oi).value;return t&&this.value!==void 0?this.parent?t.allValues.length>0&&t.allValues.every(r=>t.checkedValues.includes(r)):t.checkedValues.includes(this.value):this.checked??e(this,xt,xC)},wC=function(){let t=e(this,oi).value;if(t&&this.parent&&this.value!==void 0){let r=t.allValues.filter(a=>t.checkedValues.includes(a)).length;return r>0&&r<t.allValues.length}return this.indeterminate},uf=function(){return this.disabled||(e(this,oi).value?.disabled??!1)||(e(this,xt,wo)?.disabled??!1)},kC=function(){return e(this,xt,wo)?.invalid??!1},nn=new WeakMap,an=new WeakMap,yl=new WeakMap,l(ot,4,"checked",gC,Jt,Qm),l(ot,4,"defaultChecked",vC,Jt,Zm),l(ot,4,"indeterminate",fC,Jt,tf),l(ot,4,"disabled",mC,Jt,ef),l(ot,4,"readOnly",uC,Jt,rf),l(ot,4,"required",hC,Jt,of),l(ot,4,"name",pC,Jt,sf),l(ot,4,"value",cC,Jt,nf),l(ot,4,"parent",dC,Jt,af),df=l(ot,20,"#internalChecked",lC,xt,lf),xC=df.get,hf=df.set,pf=l(ot,20,"#fieldCtx",aC,xt,cf),wo=pf.get,xL=pf.set,S(ot,Jt),b(Jt,"tagName","dui-checkbox"),b(Jt,"styles",[y,gL]);var kf=O("value-change",{bubbles:!0,composed:!0}),wL=c`
3799
+ `}};tt=S(Mk),Zu=new WeakMap,tm=new WeakMap,em=new WeakMap,rm=new WeakMap,om=new WeakMap,im=new WeakMap,sm=new WeakMap,nm=new WeakMap,am=new WeakMap,lm=new WeakMap,Vt=new WeakSet,Vo=new WeakMap,cm=new WeakMap,Ta=function(){let t=r(this,Vo).value;return t&&this.value!==void 0?this.parent?t.allValues.length>0&&t.allValues.every(e=>t.checkedValues.includes(e)):t.checkedValues.includes(this.value):this.checked??r(this,Vt,Fk)},Hk=function(){let t=r(this,Vo).value;if(t&&this.parent&&this.value!==void 0){let e=t.allValues.filter(a=>t.checkedValues.includes(a)).length;return e>0&&e<t.allValues.length}return this.indeterminate},hm=function(){return this.disabled||(r(this,Vo).value?.disabled??!1)||(this._fieldCtx?.disabled??!1)},Nk=function(){return this._fieldCtx?.invalid??!1},zs=new WeakMap,Ms=new WeakMap,Ra=new WeakMap,d(tt,4,"checked",zk,Ut,Zu),d(tt,4,"defaultChecked",Pk,Ut,tm),d(tt,4,"indeterminate",Lk,Ut,em),d(tt,4,"disabled",Ok,Ut,rm),d(tt,4,"readOnly",_k,Ut,om),d(tt,4,"required",Ak,Ut,im),d(tt,4,"name",Ik,Ut,sm),d(tt,4,"value",Rk,Ut,nm),d(tt,4,"parent",Tk,Ut,am),dm=d(tt,20,"#internalChecked",$k,Vt,lm),Fk=dm.get,pm=dm.set,d(tt,4,"_fieldCtx",Ek,Ut,cm),C(tt,Ut),g(Ut,"tagName","dui-checkbox"),g(Ut,"styles",[w,DA]);var xm=_("value-change",{bubbles:!0,composed:!0}),NA=c`
3878
3800
  :host {
3879
3801
  display: block;
3880
3802
  }
@@ -3884,7 +3806,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3884
3806
  flex-direction: column;
3885
3807
  align-items: start;
3886
3808
  }
3887
- `,SC,CC,EC,$C,TC,RC,IC,Vt,mf,ff,vf,gf,bf,yf,AC,xl,ee,ln,kl,Sl,xf,wf,kL,Sf,wl,He=class extends(IC=g,RC=[u({attribute:!1})],TC=[u({attribute:!1})],$C=[u({attribute:!1})],EC=[u({type:Boolean,reflect:!0})],CC=[k()],SC=[yt({context:gl}),k()],IC){constructor(){super(...arguments);s(this,ee);s(this,mf,i(Vt,8,this)),i(Vt,11,this);s(this,ff,i(Vt,12,this,[])),i(Vt,15,this);s(this,vf,i(Vt,16,this,[])),i(Vt,19,this);s(this,gf,i(Vt,20,this,!1)),i(Vt,23,this);s(this,bf,i(Vt,24,this,[])),i(Vt,27,this);s(this,ln,()=>this.value??e(this,ee,AC));s(this,kl,t=>{let r=e(this,ln).call(this),a=r.includes(t)?r.filter(d=>d!==t):[...r,t];this.value===void 0&&h(this,ee,a,xl),this.dispatchEvent(kf(a))});s(this,Sl,t=>{let r=t?[...this.allValues]:[];this.value===void 0&&h(this,ee,r,xl),this.dispatchEvent(kf(r))});s(this,xf,i(Vt,28,this,m(this,ee,wl).call(this))),i(Vt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,ee,[...this.defaultValue],xl),h(this,ee,m(this,ee,wl).call(this),Sf)}willUpdate(){h(this,ee,m(this,ee,wl).call(this),Sf)}render(){return f`
3809
+ `,Bk,qk,Vk,Uk,jk,Kk,Wk,Dt,um,mm,fm,vm,gm,bm,Gk,Ia,_e,Ds,_a,Oa,ym,Aa,Ae=class extends(Wk=b,Kk=[u({attribute:!1})],jk=[u({attribute:!1})],Uk=[u({attribute:!1})],Vk=[u({type:Boolean,reflect:!0})],qk=[k()],Bk=[bt({context:$a}),k()],Wk){constructor(){super(...arguments);s(this,_e);s(this,um,i(Dt,8,this)),i(Dt,11,this);s(this,mm,i(Dt,12,this,[])),i(Dt,15,this);s(this,fm,i(Dt,16,this,[])),i(Dt,19,this);s(this,vm,i(Dt,20,this,!1)),i(Dt,23,this);s(this,gm,i(Dt,24,this,[])),i(Dt,27,this);s(this,Ds,()=>this.value??r(this,_e,Gk));s(this,_a,t=>{let e=r(this,Ds).call(this),a=e.includes(t)?e.filter(l=>l!==t):[...e,t];this.value===void 0&&h(this,_e,a,Ia),this.dispatchEvent(xm(a))});s(this,Oa,t=>{let e=t?[...this.allValues]:[];this.value===void 0&&h(this,_e,e,Ia),this.dispatchEvent(xm(e))});s(this,ym,i(Dt,28,this,m(this,_e,Aa).call(this))),i(Dt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,_e,[...this.defaultValue],Ia),this._ctx=m(this,_e,Aa).call(this)}willUpdate(){this._ctx=m(this,_e,Aa).call(this)}render(){return v`
3888
3810
  <div
3889
3811
  part="root"
3890
3812
  role="group"
@@ -3892,7 +3814,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3892
3814
  >
3893
3815
  <slot></slot>
3894
3816
  </div>
3895
- `}};Vt=C(IC),mf=new WeakMap,ff=new WeakMap,vf=new WeakMap,gf=new WeakMap,bf=new WeakMap,ee=new WeakSet,ln=new WeakMap,kl=new WeakMap,Sl=new WeakMap,xf=new WeakMap,wl=function(){return{checkedValues:e(this,ln).call(this),allValues:this.allValues,disabled:this.disabled,toggle:e(this,kl),toggleAll:e(this,Sl)}},l(Vt,4,"value",RC,He,mf),l(Vt,4,"defaultValue",TC,He,ff),l(Vt,4,"allValues",$C,He,vf),l(Vt,4,"disabled",EC,He,gf),yf=l(Vt,20,"#internalValues",CC,ee,bf),AC=yf.get,xl=yf.set,wf=l(Vt,20,"#ctx",SC,ee,xf),kL=wf.get,Sf=wf.set,S(Vt,He),b(He,"tagName","dui-checkbox-group"),b(He,"styles",[y,wL]);var OC=[Jt,He];var qC=O("open-change",{bubbles:!0,composed:!0}),SL=c`
3817
+ `}};Dt=S(Wk),um=new WeakMap,mm=new WeakMap,fm=new WeakMap,vm=new WeakMap,gm=new WeakMap,_e=new WeakSet,Ds=new WeakMap,_a=new WeakMap,Oa=new WeakMap,ym=new WeakMap,Aa=function(){return{checkedValues:r(this,Ds).call(this),allValues:this.allValues,disabled:this.disabled,toggle:r(this,_a),toggleAll:r(this,Oa)}},d(Dt,4,"value",Kk,Ae,um),d(Dt,4,"defaultValue",jk,Ae,mm),d(Dt,4,"allValues",Uk,Ae,fm),d(Dt,4,"disabled",Vk,Ae,vm),bm=d(Dt,20,"#internalValues",qk,_e,gm),Gk=bm.get,Ia=bm.set,d(Dt,4,"_ctx",Bk,Ae,ym),C(Dt,Ae),g(Ae,"tagName","dui-checkbox-group"),g(Ae,"styles",[w,NA]);var sC=_("open-change",{bubbles:!0,composed:!0}),BA=c`
3896
3818
  :host {
3897
3819
  display: block;
3898
3820
  }
@@ -3923,7 +3845,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3923
3845
  overflow: hidden;
3924
3846
  transition-property: height;
3925
3847
  }
3926
- `,CL=f`<svg
3848
+ `,qA=v`<svg
3927
3849
  part="indicator"
3928
3850
  width="16"
3929
3851
  height="16"
@@ -3935,44 +3857,44 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
3935
3857
  stroke-linejoin="round"
3936
3858
  >
3937
3859
  <path d="m6 9 6 6 6-6" />
3938
- </svg>`,LC,PC,zC,_C,MC,FC,HC,NC,BC,DC,mt,Cf,Ef,$f,Tf,Rf,If,Hf,Cl,D,Af,Of,El,$l,Lf,Pf,VC,ii,zf,_f,Nf,Tl,Mf,Ff,UC,Bf,si,ni,ko,dn,jC,WC,Rl,Il,Ne=class extends(DC=g,BC=[u({type:Boolean,reflect:!0})],NC=[u({type:Boolean,attribute:"default-open"})],HC=[u({type:Boolean,reflect:!0})],FC=[u({type:Boolean,attribute:"keep-mounted"})],MC=[k()],_C=[k()],zC=[k()],PC=[k()],LC=[k()],DC){constructor(){super(...arguments);s(this,D);s(this,Cf,i(mt,8,this,!1)),i(mt,11,this);s(this,Ef,i(mt,12,this,!1)),i(mt,15,this);s(this,$f,i(mt,16,this,!1)),i(mt,19,this);s(this,Tf,i(mt,20,this,!1)),i(mt,23,this);s(this,Rf,i(mt,24,this,!1)),i(mt,27,this);s(this,Af,i(mt,28,this,!1)),i(mt,31,this);s(this,Lf,i(mt,32,this,"0")),i(mt,35,this);s(this,zf,i(mt,36,this,!1)),i(mt,39,this);s(this,Mf,i(mt,40,this,!1)),i(mt,43,this);s(this,si);s(this,ni,0);s(this,ko,!1);s(this,Rl,t=>{t.propertyName==="height"&&(e(this,D,El)?(h(this,D,!1,$l),this.keepMounted||h(this,D,!1,Tl)):e(this,D,dn)&&h(this,D,"auto",ii))});s(this,Il,()=>{if(this.disabled)return;let t=!e(this,D,dn);e(this,ko)||h(this,D,t,Bf),this.dispatchEvent(qC({open:t}))})}connectedCallback(){super.connectedCallback(),h(this,ko,this.hasAttribute("open")),!e(this,ko)&&this.defaultOpen&&h(this,D,!0,Bf)}willUpdate(t){t.has("open")&&e(this,si)!==void 0&&h(this,ko,!0);let r=e(this,D,dn);e(this,si)===void 0?(h(this,D,r,Tl),h(this,D,r?"auto":"0",ii)):e(this,si)!==r&&(r?m(this,D,jC).call(this):m(this,D,WC).call(this)),h(this,si,r)}render(){let t=e(this,D,dn),r=e(this,D,Nf)||this.keepMounted;return f`
3860
+ </svg>`,Yk,Xk,Qk,Jk,Zk,tC,eC,rC,oC,iC,ut,wm,km,Cm,Sm,Em,$m,zm,La,H,Tm,Rm,Pa,za,Im,Am,nC,Uo,_m,Om,Mm,Ma,Lm,Pm,aC,Dm,jo,Ko,eo,Fs,lC,dC,Da,Fa,Ue=class extends(iC=b,oC=[u({type:Boolean,reflect:!0})],rC=[u({type:Boolean,attribute:"default-open"})],eC=[u({type:Boolean,reflect:!0})],tC=[u({type:Boolean,attribute:"keep-mounted"})],Zk=[k()],Jk=[k()],Qk=[k()],Xk=[k()],Yk=[k()],iC){constructor(){super(...arguments);s(this,H);s(this,wm,i(ut,8,this,!1)),i(ut,11,this);s(this,km,i(ut,12,this,!1)),i(ut,15,this);s(this,Cm,i(ut,16,this,!1)),i(ut,19,this);s(this,Sm,i(ut,20,this,!1)),i(ut,23,this);s(this,Em,i(ut,24,this,!1)),i(ut,27,this);s(this,Tm,i(ut,28,this,!1)),i(ut,31,this);s(this,Im,i(ut,32,this,"0")),i(ut,35,this);s(this,_m,i(ut,36,this,!1)),i(ut,39,this);s(this,Lm,i(ut,40,this,!1)),i(ut,43,this);s(this,jo);s(this,Ko,0);s(this,eo,!1);s(this,Da,t=>{t.propertyName==="height"&&(r(this,H,Pa)?(h(this,H,!1,za),this.keepMounted||h(this,H,!1,Ma)):r(this,H,Fs)&&h(this,H,"auto",Uo))});s(this,Fa,()=>{if(this.disabled)return;let t=!r(this,H,Fs);r(this,eo)||h(this,H,t,Dm),this.dispatchEvent(sC({open:t}))})}connectedCallback(){super.connectedCallback(),h(this,eo,this.hasAttribute("open")),!r(this,eo)&&this.defaultOpen&&h(this,H,!0,Dm)}willUpdate(t){t.has("open")&&r(this,jo)!==void 0&&h(this,eo,!0);let e=r(this,H,Fs);r(this,jo)===void 0?(h(this,H,e,Ma),h(this,H,e?"auto":"0",Uo)):r(this,jo)!==e&&(e?m(this,H,lC).call(this):m(this,H,dC).call(this)),h(this,jo,e)}render(){let t=r(this,H,Fs),e=r(this,H,Mm)||this.keepMounted;return v`
3939
3861
  <button
3940
3862
  part="trigger"
3941
3863
  aria-expanded=${t}
3942
3864
  ?data-open=${t}
3943
3865
  ?data-disabled=${this.disabled}
3944
3866
  ?disabled=${this.disabled}
3945
- @click=${e(this,Il)}
3867
+ @click=${r(this,Fa)}
3946
3868
  >
3947
3869
  <slot name="trigger"></slot>
3948
- ${CL}
3870
+ ${qA}
3949
3871
  </button>
3950
- ${r?f`
3872
+ ${e?v`
3951
3873
  <div
3952
3874
  part="panel"
3953
3875
  role="region"
3954
- style="height: ${e(this,D,VC)}"
3955
- ?data-open=${t&&!e(this,D,Hf)}
3956
- ?data-starting-style=${e(this,D,Hf)}
3957
- ?data-ending-style=${e(this,D,El)}
3958
- ?hidden=${!e(this,D,Nf)&&!e(this,D,El)}
3959
- @transitionend=${e(this,Rl)}
3876
+ style="height: ${r(this,H,nC)}"
3877
+ ?data-open=${t&&!r(this,H,zm)}
3878
+ ?data-starting-style=${r(this,H,zm)}
3879
+ ?data-ending-style=${r(this,H,Pa)}
3880
+ ?hidden=${!r(this,H,Mm)&&!r(this,H,Pa)}
3881
+ @transitionend=${r(this,Da)}
3960
3882
  >
3961
3883
  <div part="content">
3962
3884
  <slot></slot>
3963
3885
  </div>
3964
3886
  </div>
3965
3887
  `:T}
3966
- `}};mt=C(DC),Cf=new WeakMap,Ef=new WeakMap,$f=new WeakMap,Tf=new WeakMap,Rf=new WeakMap,D=new WeakSet,Af=new WeakMap,Lf=new WeakMap,zf=new WeakMap,Mf=new WeakMap,si=new WeakMap,ni=new WeakMap,ko=new WeakMap,dn=function(){return e(this,ko)?this.open:e(this,D,UC)},jC=function(){let t=++Di(this,ni)._;h(this,D,!1,$l),h(this,D,!0,Tl),h(this,D,!0,Cl),h(this,D,"0",ii),requestAnimationFrame(()=>{if(e(this,ni)!==t)return;let r=this.shadowRoot?.querySelector("[part='panel']");r&&h(this,D,`${r.scrollHeight}px`,ii),h(this,D,!1,Cl)})},WC=function(){let t=++Di(this,ni)._;h(this,D,!1,Cl);let r=this.shadowRoot?.querySelector("[part='panel']");r&&h(this,D,`${r.scrollHeight}px`,ii),requestAnimationFrame(()=>{e(this,ni)===t&&(h(this,D,!0,$l),h(this,D,"0",ii))})},Rl=new WeakMap,Il=new WeakMap,l(mt,4,"open",BC,Ne,Cf),l(mt,4,"defaultOpen",NC,Ne,Ef),l(mt,4,"disabled",HC,Ne,$f),l(mt,4,"keepMounted",FC,Ne,Tf),If=l(mt,20,"#starting",MC,D,Rf),Hf=If.get,Cl=If.set,Of=l(mt,20,"#ending",_C,D,Af),El=Of.get,$l=Of.set,Pf=l(mt,20,"#panelHeight",zC,D,Lf),VC=Pf.get,ii=Pf.set,_f=l(mt,20,"#visible",PC,D,zf),Nf=_f.get,Tl=_f.set,Ff=l(mt,20,"#internalOpen",LC,D,Mf),UC=Ff.get,Bf=Ff.set,S(mt,Ne),b(Ne,"tagName","dui-collapsible"),b(Ne,"styles",[y,SL]);var KC=[Ne];var tr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Xi=n=>(...o)=>({_$litDirective$:n,values:o}),So=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,r){this._$Ct=o,this._$AM=t,this._$Ci=r}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var{I:EL}=wk,GC=n=>n;var XC=n=>n.strings===void 0,YC=()=>document.createComment(""),Ji=(n,o,t)=>{let r=n._$AA.parentNode,a=o===void 0?n._$AB:o._$AA;if(t===void 0){let d=r.insertBefore(YC(),a),p=r.insertBefore(YC(),a);t=new EL(d,p,n,n.options)}else{let d=t._$AB.nextSibling,p=t._$AM,v=p!==n;if(v){let x;t._$AQ?.(n),t._$AM=n,t._$AP!==void 0&&(x=n._$AU)!==p._$AU&&t._$AP(x)}if(d!==a||v){let x=t._$AA;for(;x!==d;){let E=GC(x).nextSibling;GC(r).insertBefore(x,a),x=E}}}return t},Co=(n,o,t=n)=>(n._$AI(o,t),n),$L={},Al=(n,o=$L)=>n._$AH=o,JC=n=>n._$AH,Ol=n=>{n._$AR(),n._$AA.remove()};var QC=(n,o,t)=>{let r=new Map;for(let a=o;a<=t;a++)r.set(n[a],a);return r},Eo=Xi(class extends So{constructor(n){if(super(n),n.type!==tr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let r;t===void 0?t=o:o!==void 0&&(r=o);let a=[],d=[],p=0;for(let v of n)a[p]=r?r(v,p):p,d[p]=t(v,p),p++;return{values:d,keys:a}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,r]){let a=JC(n),{values:d,keys:p}=this.dt(o,t,r);if(!Array.isArray(a))return this.ut=p,d;let v=this.ut??=[],x=[],E,$,w=0,I=a.length-1,R=0,z=d.length-1;for(;w<=I&&R<=z;)if(a[w]===null)w++;else if(a[I]===null)I--;else if(v[w]===p[R])x[R]=Co(a[w],d[R]),w++,R++;else if(v[I]===p[z])x[z]=Co(a[I],d[z]),I--,z--;else if(v[w]===p[z])x[z]=Co(a[w],d[z]),Ji(n,x[z+1],a[w]),w++,z--;else if(v[I]===p[R])x[R]=Co(a[I],d[R]),Ji(n,a[w],a[I]),I--,R++;else if(E===void 0&&(E=QC(p,R,z),$=QC(v,w,I)),E.has(v[w]))if(E.has(v[I])){let B=$.get(p[R]),J=B!==void 0?a[B]:null;if(J===null){let U=Ji(n,a[w]);Co(U,d[R]),x[R]=U}else x[R]=Co(J,d[R]),Ji(n,a[w],J),a[B]=null;R++}else Ol(a[I]),I--;else Ol(a[w]),w++;for(;R<=z;){let B=Ji(n,x[z+1]);Co(B,d[R]),x[R++]=B}for(;w<=I;){let B=a[w++];B!==null&&Ol(B)}return this.ut=p,Al(n,x),Zt}});var $o=Xi(class extends So{constructor(n){if(super(n),n.type!==tr.PROPERTY&&n.type!==tr.ATTRIBUTE&&n.type!==tr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!XC(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===Zt||o===T)return o;let t=n.element,r=n.name;if(n.type===tr.PROPERTY){if(o===t[r])return Zt}else if(n.type===tr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return Zt}else if(n.type===tr.ATTRIBUTE&&t.getAttribute(r)===o+"")return Zt;return Al(n),o}});var Ll=new Map,ZC=(n,o)=>{for(let[t,r]of Ll)t!==n&&r();Ll.clear(),Ll.set(n,o)},Df=n=>{Ll.delete(n)};var To=Math.min,se=Math.max,pn=Math.round,hn=Math.floor,er=n=>({x:n,y:n}),TL={left:"right",right:"left",bottom:"top",top:"bottom"},RL={start:"end",end:"start"};function qf(n,o,t){return se(n,To(o,t))}function Qi(n,o){return typeof n=="function"?n(o):n}function Kr(n){return n.split("-")[0]}function Zi(n){return n.split("-")[1]}function Vf(n){return n==="x"?"y":"x"}function Uf(n){return n==="y"?"height":"width"}var IL=new Set(["top","bottom"]);function vr(n){return IL.has(Kr(n))?"y":"x"}function jf(n){return Vf(vr(n))}function rE(n,o,t){t===void 0&&(t=!1);let r=Zi(n),a=jf(n),d=Uf(a),p=a==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(p=cn(p)),[p,cn(p)]}function oE(n){let o=cn(n);return[Pl(n),o,Pl(o)]}function Pl(n){return n.replace(/start|end/g,o=>RL[o])}var tE=["left","right"],eE=["right","left"],AL=["top","bottom"],OL=["bottom","top"];function LL(n,o,t){switch(n){case"top":case"bottom":return t?o?eE:tE:o?tE:eE;case"left":case"right":return o?AL:OL;default:return[]}}function iE(n,o,t,r){let a=Zi(n),d=LL(Kr(n),t==="start",r);return a&&(d=d.map(p=>p+"-"+a),o&&(d=d.concat(d.map(Pl)))),d}function cn(n){return n.replace(/left|right|bottom|top/g,o=>TL[o])}function PL(n){return{top:0,right:0,bottom:0,left:0,...n}}function sE(n){return typeof n!="number"?PL(n):{top:n,right:n,bottom:n,left:n}}function ai(n){let{x:o,y:t,width:r,height:a}=n;return{width:r,height:a,top:t,left:o,right:o+r,bottom:t+a,x:o,y:t}}function nE(n,o,t){let{reference:r,floating:a}=n,d=vr(o),p=jf(o),v=Uf(p),x=Kr(o),E=d==="y",$=r.x+r.width/2-a.width/2,w=r.y+r.height/2-a.height/2,I=r[v]/2-a[v]/2,R;switch(x){case"top":R={x:$,y:r.y-a.height};break;case"bottom":R={x:$,y:r.y+r.height};break;case"right":R={x:r.x+r.width,y:w};break;case"left":R={x:r.x-a.width,y:w};break;default:R={x:r.x,y:r.y}}switch(Zi(o)){case"start":R[p]-=I*(t&&E?-1:1);break;case"end":R[p]+=I*(t&&E?-1:1);break}return R}async function aE(n,o){var t;o===void 0&&(o={});let{x:r,y:a,platform:d,rects:p,elements:v,strategy:x}=n,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:w="floating",altBoundary:I=!1,padding:R=0}=Qi(o,n),z=sE(R),J=v[I?w==="floating"?"reference":"floating":w],U=ai(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(J)))==null||t?J:J.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:E,rootBoundary:$,strategy:x})),_=w==="floating"?{x:r,y:a,width:p.floating.width,height:p.floating.height}:p.reference,q=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),K=await(d.isElement==null?void 0:d.isElement(q))?await(d.getScale==null?void 0:d.getScale(q))||{x:1,y:1}:{x:1,y:1},Kt=ai(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:_,offsetParent:q,strategy:x}):_);return{top:(U.top-Kt.top+z.top)/K.y,bottom:(Kt.bottom-U.bottom+z.bottom)/K.y,left:(U.left-Kt.left+z.left)/K.x,right:(Kt.right-U.right+z.right)/K.x}}var lE=async(n,o,t)=>{let{placement:r="bottom",strategy:a="absolute",middleware:d=[],platform:p}=t,v=d.filter(Boolean),x=await(p.isRTL==null?void 0:p.isRTL(o)),E=await p.getElementRects({reference:n,floating:o,strategy:a}),{x:$,y:w}=nE(E,r,x),I=r,R={},z=0;for(let J=0;J<v.length;J++){var B;let{name:U,fn:_}=v[J],{x:q,y:K,data:Kt,reset:oe}=await _({x:$,y:w,initialPlacement:r,placement:I,strategy:a,middlewareData:R,rects:E,platform:{...p,detectOverflow:(B=p.detectOverflow)!=null?B:aE},elements:{reference:n,floating:o}});$=q??$,w=K??w,R={...R,[U]:{...R[U],...Kt}},oe&&z<=50&&(z++,typeof oe=="object"&&(oe.placement&&(I=oe.placement),oe.rects&&(E=oe.rects===!0?await p.getElementRects({reference:n,floating:o,strategy:a}):oe.rects),{x:$,y:w}=nE(E,I,x)),J=-1)}return{x:$,y:w,placement:I,strategy:a,middlewareData:R}};var dE=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,r;let{placement:a,middlewareData:d,rects:p,initialPlacement:v,platform:x,elements:E}=o,{mainAxis:$=!0,crossAxis:w=!0,fallbackPlacements:I,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:B=!0,...J}=Qi(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let U=Kr(a),_=vr(v),q=Kr(v)===v,K=await(x.isRTL==null?void 0:x.isRTL(E.floating)),Kt=I||(q||!B?[cn(v)]:oE(v)),oe=z!=="none";!I&&oe&&Kt.push(...iE(v,B,z,K));let ur=[v,...Kt],Vo=await x.detectOverflow(o,J),Uo=[],Vr=((r=d.flip)==null?void 0:r.overflows)||[];if($&&Uo.push(Vo[U]),w){let jo=rE(a,p,K);Uo.push(Vo[jo[0]],Vo[jo[1]])}if(Vr=[...Vr,{placement:a,overflows:Uo}],!Uo.every(jo=>jo<=0)){var Ps,zs;let jo=(((Ps=d.flip)==null?void 0:Ps.index)||0)+1,_p=ur[jo];if(_p&&(!(w==="alignment"?_!==vr(_p):!1)||Vr.every(Ye=>vr(Ye.placement)===_?Ye.overflows[0]>0:!0)))return{data:{index:jo,overflows:Vr},reset:{placement:_p}};let Ms=(zs=Vr.filter(Wo=>Wo.overflows[0]<=0).sort((Wo,Ye)=>Wo.overflows[1]-Ye.overflows[1])[0])==null?void 0:zs.placement;if(!Ms)switch(R){case"bestFit":{var _s;let Wo=(_s=Vr.filter(Ye=>{if(oe){let vo=vr(Ye.placement);return vo===_||vo==="y"}return!0}).map(Ye=>[Ye.placement,Ye.overflows.filter(vo=>vo>0).reduce((vo,A2)=>vo+A2,0)]).sort((Ye,vo)=>Ye[1]-vo[1])[0])==null?void 0:_s[0];Wo&&(Ms=Wo);break}case"initialPlacement":Ms=v;break}if(a!==Ms)return{reset:{placement:Ms}}}return{}}}};var zL=new Set(["left","top"]);async function _L(n,o){let{placement:t,platform:r,elements:a}=n,d=await(r.isRTL==null?void 0:r.isRTL(a.floating)),p=Kr(t),v=Zi(t),x=vr(t)==="y",E=zL.has(p)?-1:1,$=d&&x?-1:1,w=Qi(o,n),{mainAxis:I,crossAxis:R,alignmentAxis:z}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return v&&typeof z=="number"&&(R=v==="end"?z*-1:z),x?{x:R*$,y:I*E}:{x:I*E,y:R*$}}var cE=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,r;let{x:a,y:d,placement:p,middlewareData:v}=o,x=await _L(o,n);return p===((t=v.offset)==null?void 0:t.placement)&&(r=v.arrow)!=null&&r.alignmentOffset?{}:{x:a+x.x,y:d+x.y,data:{...x,placement:p}}}}},pE=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:r,placement:a,platform:d}=o,{mainAxis:p=!0,crossAxis:v=!1,limiter:x={fn:U=>{let{x:_,y:q}=U;return{x:_,y:q}}},...E}=Qi(n,o),$={x:t,y:r},w=await d.detectOverflow(o,E),I=vr(Kr(a)),R=Vf(I),z=$[R],B=$[I];if(p){let U=R==="y"?"top":"left",_=R==="y"?"bottom":"right",q=z+w[U],K=z-w[_];z=qf(q,z,K)}if(v){let U=I==="y"?"top":"left",_=I==="y"?"bottom":"right",q=B+w[U],K=B-w[_];B=qf(q,B,K)}let J=x.fn({...o,[R]:z,[I]:B});return{...J,data:{x:J.x-t,y:J.y-r,enabled:{[R]:p,[I]:v}}}}}};var hE=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,r;let{placement:a,rects:d,platform:p,elements:v}=o,{apply:x=()=>{},...E}=Qi(n,o),$=await p.detectOverflow(o,E),w=Kr(a),I=Zi(a),R=vr(a)==="y",{width:z,height:B}=d.floating,J,U;w==="top"||w==="bottom"?(J=w,U=I===(await(p.isRTL==null?void 0:p.isRTL(v.floating))?"start":"end")?"left":"right"):(U=w,J=I==="end"?"top":"bottom");let _=B-$.top-$.bottom,q=z-$.left-$.right,K=To(B-$[J],_),Kt=To(z-$[U],q),oe=!o.middlewareData.shift,ur=K,Vo=Kt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(Vo=q),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(ur=_),oe&&!I){let Vr=se($.left,0),Ps=se($.right,0),zs=se($.top,0),_s=se($.bottom,0);R?Vo=z-2*(Vr!==0||Ps!==0?Vr+Ps:se($.left,$.right)):ur=B-2*(zs!==0||_s!==0?zs+_s:se($.top,$.bottom))}await x({...o,availableWidth:Vo,availableHeight:ur});let Uo=await p.getDimensions(v.floating);return z!==Uo.width||B!==Uo.height?{reset:{rects:!0}}:{}}}};function zl(){return typeof window<"u"}function li(n){return mE(n)?(n.nodeName||"").toLowerCase():"#document"}function he(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function rr(n){var o;return(o=(mE(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function mE(n){return zl()?n instanceof Node||n instanceof he(n).Node:!1}function Be(n){return zl()?n instanceof Element||n instanceof he(n).Element:!1}function or(n){return zl()?n instanceof HTMLElement||n instanceof he(n).HTMLElement:!1}function uE(n){return!zl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof he(n).ShadowRoot}var ML=new Set(["inline","contents"]);function es(n){let{overflow:o,overflowX:t,overflowY:r,display:a}=De(n);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!ML.has(a)}var FL=new Set(["table","td","th"]);function fE(n){return FL.has(li(n))}var HL=[":popover-open",":modal"];function un(n){return HL.some(o=>{try{return n.matches(o)}catch{return!1}})}var NL=["transform","translate","scale","rotate","perspective"],BL=["transform","translate","scale","rotate","perspective","filter"],DL=["paint","layout","strict","content"];function _l(n){let o=Ml(),t=Be(n)?De(n):n;return NL.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||BL.some(r=>(t.willChange||"").includes(r))||DL.some(r=>(t.contain||"").includes(r))}function vE(n){let o=Gr(n);for(;or(o)&&!di(o);){if(_l(o))return o;if(un(o))return null;o=Gr(o)}return null}function Ml(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var qL=new Set(["html","body","#document"]);function di(n){return qL.has(li(n))}function De(n){return he(n).getComputedStyle(n)}function mn(n){return Be(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Gr(n){if(li(n)==="html")return n;let o=n.assignedSlot||n.parentNode||uE(n)&&n.host||rr(n);return uE(o)?o.host:o}function gE(n){let o=Gr(n);return di(o)?n.ownerDocument?n.ownerDocument.body:n.body:or(o)&&es(o)?o:gE(o)}function ts(n,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=gE(n),d=a===((r=n.ownerDocument)==null?void 0:r.body),p=he(a);if(d){let v=Fl(p);return o.concat(p,p.visualViewport||[],es(a)?a:[],v&&t?ts(v):[])}return o.concat(a,ts(a,[],t))}function Fl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function wE(n){let o=De(n),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,a=or(n),d=a?n.offsetWidth:t,p=a?n.offsetHeight:r,v=pn(t)!==d||pn(r)!==p;return v&&(t=d,r=p),{width:t,height:r,$:v}}function Kf(n){return Be(n)?n:n.contextElement}function rs(n){let o=Kf(n);if(!or(o))return er(1);let t=o.getBoundingClientRect(),{width:r,height:a,$:d}=wE(o),p=(d?pn(t.width):t.width)/r,v=(d?pn(t.height):t.height)/a;return(!p||!Number.isFinite(p))&&(p=1),(!v||!Number.isFinite(v))&&(v=1),{x:p,y:v}}var VL=er(0);function kE(n){let o=he(n);return!Ml()||!o.visualViewport?VL:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function UL(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==he(n)?!1:o}function ci(n,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=Kf(n),p=er(1);o&&(r?Be(r)&&(p=rs(r)):p=rs(n));let v=UL(d,t,r)?kE(d):er(0),x=(a.left+v.x)/p.x,E=(a.top+v.y)/p.y,$=a.width/p.x,w=a.height/p.y;if(d){let I=he(d),R=r&&Be(r)?he(r):r,z=I,B=Fl(z);for(;B&&r&&R!==z;){let J=rs(B),U=B.getBoundingClientRect(),_=De(B),q=U.left+(B.clientLeft+parseFloat(_.paddingLeft))*J.x,K=U.top+(B.clientTop+parseFloat(_.paddingTop))*J.y;x*=J.x,E*=J.y,$*=J.x,w*=J.y,x+=q,E+=K,z=he(B),B=Fl(z)}}return ai({width:$,height:w,x,y:E})}function Hl(n,o){let t=mn(n).scrollLeft;return o?o.left+t:ci(rr(n)).left+t}function SE(n,o){let t=n.getBoundingClientRect(),r=t.left+o.scrollLeft-Hl(n,t),a=t.top+o.scrollTop;return{x:r,y:a}}function jL(n){let{elements:o,rect:t,offsetParent:r,strategy:a}=n,d=a==="fixed",p=rr(r),v=o?un(o.floating):!1;if(r===p||v&&d)return t;let x={scrollLeft:0,scrollTop:0},E=er(1),$=er(0),w=or(r);if((w||!w&&!d)&&((li(r)!=="body"||es(p))&&(x=mn(r)),or(r))){let R=ci(r);E=rs(r),$.x=R.x+r.clientLeft,$.y=R.y+r.clientTop}let I=p&&!w&&!d?SE(p,x):er(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-x.scrollLeft*E.x+$.x+I.x,y:t.y*E.y-x.scrollTop*E.y+$.y+I.y}}function WL(n){return Array.from(n.getClientRects())}function KL(n){let o=rr(n),t=mn(n),r=n.ownerDocument.body,a=se(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=se(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),p=-t.scrollLeft+Hl(n),v=-t.scrollTop;return De(r).direction==="rtl"&&(p+=se(o.clientWidth,r.clientWidth)-a),{width:a,height:d,x:p,y:v}}var bE=25;function GL(n,o){let t=he(n),r=rr(n),a=t.visualViewport,d=r.clientWidth,p=r.clientHeight,v=0,x=0;if(a){d=a.width,p=a.height;let $=Ml();(!$||$&&o==="fixed")&&(v=a.offsetLeft,x=a.offsetTop)}let E=Hl(r);if(E<=0){let $=r.ownerDocument,w=$.body,I=getComputedStyle(w),R=$.compatMode==="CSS1Compat"&&parseFloat(I.marginLeft)+parseFloat(I.marginRight)||0,z=Math.abs(r.clientWidth-w.clientWidth-R);z<=bE&&(d-=z)}else E<=bE&&(d+=E);return{width:d,height:p,x:v,y:x}}var YL=new Set(["absolute","fixed"]);function XL(n,o){let t=ci(n,!0,o==="fixed"),r=t.top+n.clientTop,a=t.left+n.clientLeft,d=or(n)?rs(n):er(1),p=n.clientWidth*d.x,v=n.clientHeight*d.y,x=a*d.x,E=r*d.y;return{width:p,height:v,x,y:E}}function yE(n,o,t){let r;if(o==="viewport")r=GL(n,t);else if(o==="document")r=KL(rr(n));else if(Be(o))r=XL(o,t);else{let a=kE(n);r={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return ai(r)}function CE(n,o){let t=Gr(n);return t===o||!Be(t)||di(t)?!1:De(t).position==="fixed"||CE(t,o)}function JL(n,o){let t=o.get(n);if(t)return t;let r=ts(n,[],!1).filter(v=>Be(v)&&li(v)!=="body"),a=null,d=De(n).position==="fixed",p=d?Gr(n):n;for(;Be(p)&&!di(p);){let v=De(p),x=_l(p);!x&&v.position==="fixed"&&(a=null),(d?!x&&!a:!x&&v.position==="static"&&!!a&&YL.has(a.position)||es(p)&&!x&&CE(n,p))?r=r.filter($=>$!==p):a=v,p=Gr(p)}return o.set(n,r),r}function QL(n){let{element:o,boundary:t,rootBoundary:r,strategy:a}=n,p=[...t==="clippingAncestors"?un(o)?[]:JL(o,this._c):[].concat(t),r],v=p[0],x=p.reduce((E,$)=>{let w=yE(o,$,a);return E.top=se(w.top,E.top),E.right=To(w.right,E.right),E.bottom=To(w.bottom,E.bottom),E.left=se(w.left,E.left),E},yE(o,v,a));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function ZL(n){let{width:o,height:t}=wE(n);return{width:o,height:t}}function tP(n,o,t){let r=or(o),a=rr(o),d=t==="fixed",p=ci(n,!0,d,o),v={scrollLeft:0,scrollTop:0},x=er(0);function E(){x.x=Hl(a)}if(r||!r&&!d)if((li(o)!=="body"||es(a))&&(v=mn(o)),r){let R=ci(o,!0,d,o);x.x=R.x+o.clientLeft,x.y=R.y+o.clientTop}else a&&E();d&&!r&&a&&E();let $=a&&!r&&!d?SE(a,v):er(0),w=p.left+v.scrollLeft-x.x-$.x,I=p.top+v.scrollTop-x.y-$.y;return{x:w,y:I,width:p.width,height:p.height}}function Wf(n){return De(n).position==="static"}function xE(n,o){if(!or(n)||De(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return rr(n)===t&&(t=t.ownerDocument.body),t}function EE(n,o){let t=he(n);if(un(n))return t;if(!or(n)){let a=Gr(n);for(;a&&!di(a);){if(Be(a)&&!Wf(a))return a;a=Gr(a)}return t}let r=xE(n,o);for(;r&&fE(r)&&Wf(r);)r=xE(r,o);return r&&di(r)&&Wf(r)&&!_l(r)?t:r||vE(n)||t}var eP=async function(n){let o=this.getOffsetParent||EE,t=this.getDimensions,r=await t(n.floating);return{reference:tP(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rP(n){return De(n).direction==="rtl"}var Gf={convertOffsetParentRelativeRectToViewportRelativeRect:jL,getDocumentElement:rr,getClippingRect:QL,getOffsetParent:EE,getElementRects:eP,getClientRects:WL,getDimensions:ZL,getScale:rs,isElement:Be,isRTL:rP};function $E(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function oP(n,o){let t=null,r,a=rr(n);function d(){var v;clearTimeout(r),(v=t)==null||v.disconnect(),t=null}function p(v,x){v===void 0&&(v=!1),x===void 0&&(x=1),d();let E=n.getBoundingClientRect(),{left:$,top:w,width:I,height:R}=E;if(v||o(),!I||!R)return;let z=hn(w),B=hn(a.clientWidth-($+I)),J=hn(a.clientHeight-(w+R)),U=hn($),q={rootMargin:-z+"px "+-B+"px "+-J+"px "+-U+"px",threshold:se(0,To(1,x))||1},K=!0;function Kt(oe){let ur=oe[0].intersectionRatio;if(ur!==x){if(!K)return p();ur?p(!1,ur):r=setTimeout(()=>{p(!1,1e-7)},1e3)}ur===1&&!$E(E,n.getBoundingClientRect())&&p(),K=!1}try{t=new IntersectionObserver(Kt,{...q,root:a.ownerDocument})}catch{t=new IntersectionObserver(Kt,q)}t.observe(n)}return p(!0),d}function TE(n,o,t,r){r===void 0&&(r={});let{ancestorScroll:a=!0,ancestorResize:d=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:x=!1}=r,E=Kf(n),$=a||d?[...E?ts(E):[],...ts(o)]:[];$.forEach(U=>{a&&U.addEventListener("scroll",t,{passive:!0}),d&&U.addEventListener("resize",t)});let w=E&&v?oP(E,t):null,I=-1,R=null;p&&(R=new ResizeObserver(U=>{let[_]=U;_&&_.target===E&&R&&(R.unobserve(o),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var q;(q=R)==null||q.observe(o)})),t()}),E&&!x&&R.observe(E),R.observe(o));let z,B=x?ci(n):null;x&&J();function J(){let U=ci(n);B&&!$E(B,U)&&t(),B=U,z=requestAnimationFrame(J)}return t(),()=>{var U;$.forEach(_=>{a&&_.removeEventListener("scroll",t),d&&_.removeEventListener("resize",t)}),w?.(),(U=R)==null||U.disconnect(),R=null,x&&cancelAnimationFrame(z)}}var RE=cE;var IE=pE,AE=dE,OE=hE;var LE=(n,o,t)=>{let r=new Map,a={platform:Gf,...t},d={...a.platform,_c:r};return lE(n,o,{...a,platform:d})};var PE=()=>new Promise(n=>requestAnimationFrame(()=>requestAnimationFrame(()=>n()))),zE=(n,o,t=200)=>{let r=!1,a=()=>{r||(r=!0,n.removeEventListener("transitionend",d),clearTimeout(p),o())},d=()=>a();n.addEventListener("transitionend",d);let p=setTimeout(a,t)},os=n=>f`
3888
+ `}};ut=S(iC),wm=new WeakMap,km=new WeakMap,Cm=new WeakMap,Sm=new WeakMap,Em=new WeakMap,H=new WeakSet,Tm=new WeakMap,Im=new WeakMap,_m=new WeakMap,Lm=new WeakMap,jo=new WeakMap,Ko=new WeakMap,eo=new WeakMap,Fs=function(){return r(this,eo)?this.open:r(this,H,aC)},lC=function(){let t=++Ri(this,Ko)._;h(this,H,!1,za),h(this,H,!0,Ma),h(this,H,!0,La),h(this,H,"0",Uo),requestAnimationFrame(()=>{if(r(this,Ko)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,H,`${e.scrollHeight}px`,Uo),h(this,H,!1,La)})},dC=function(){let t=++Ri(this,Ko)._;h(this,H,!1,La);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,H,`${e.scrollHeight}px`,Uo),requestAnimationFrame(()=>{r(this,Ko)===t&&(h(this,H,!0,za),h(this,H,"0",Uo))})},Da=new WeakMap,Fa=new WeakMap,d(ut,4,"open",oC,Ue,wm),d(ut,4,"defaultOpen",rC,Ue,km),d(ut,4,"disabled",eC,Ue,Cm),d(ut,4,"keepMounted",tC,Ue,Sm),$m=d(ut,20,"#starting",Zk,H,Em),zm=$m.get,La=$m.set,Rm=d(ut,20,"#ending",Jk,H,Tm),Pa=Rm.get,za=Rm.set,Am=d(ut,20,"#panelHeight",Qk,H,Im),nC=Am.get,Uo=Am.set,Om=d(ut,20,"#visible",Xk,H,_m),Mm=Om.get,Ma=Om.set,Pm=d(ut,20,"#internalOpen",Yk,H,Lm),aC=Pm.get,Dm=Pm.set,C(ut,Ue),g(Ue,"tagName","dui-collapsible"),g(Ue,"styles",[w,BA]);var je={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Fi=n=>(...o)=>({_$litDirective$:n,values:o}),ro=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this._$Ct=o,this._$AM=t,this._$Ci=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var{I:VA}=W0,cC=n=>n;var hC=n=>n.strings===void 0,pC=()=>document.createComment(""),Hi=(n,o,t)=>{let e=n._$AA.parentNode,a=o===void 0?n._$AB:o._$AA;if(t===void 0){let l=e.insertBefore(pC(),a),p=e.insertBefore(pC(),a);t=new VA(l,p,n,n.options)}else{let l=t._$AB.nextSibling,p=t._$AM,f=p!==n;if(f){let y;t._$AQ?.(n),t._$AM=n,t._$AP!==void 0&&(y=n._$AU)!==p._$AU&&t._$AP(y)}if(l!==a||f){let y=t._$AA;for(;y!==l;){let E=cC(y).nextSibling;cC(e).insertBefore(y,a),y=E}}}return t},oo=(n,o,t=n)=>(n._$AI(o,t),n),UA={},Ha=(n,o=UA)=>n._$AH=o,uC=n=>n._$AH,Na=n=>{n._$AR(),n._$AA.remove()};var mC=(n,o,t)=>{let e=new Map;for(let a=o;a<=t;a++)e.set(n[a],a);return e},io=Fi(class extends ro{constructor(n){if(super(n),n.type!==je.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let a=[],l=[],p=0;for(let f of n)a[p]=e?e(f,p):p,l[p]=t(f,p),p++;return{values:l,keys:a}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,e]){let a=uC(n),{values:l,keys:p}=this.dt(o,t,e);if(!Array.isArray(a))return this.ut=p,l;let f=this.ut??=[],y=[],E,$,x=0,I=a.length-1,R=0,P=l.length-1;for(;x<=I&&R<=P;)if(a[x]===null)x++;else if(a[I]===null)I--;else if(f[x]===p[R])y[R]=oo(a[x],l[R]),x++,R++;else if(f[I]===p[P])y[P]=oo(a[I],l[P]),I--,P--;else if(f[x]===p[P])y[P]=oo(a[x],l[P]),Hi(n,y[P+1],a[x]),x++,P--;else if(f[I]===p[R])y[R]=oo(a[I],l[R]),Hi(n,a[x],a[I]),I--,R++;else if(E===void 0&&(E=mC(p,R,P),$=mC(f,x,I)),E.has(f[x]))if(E.has(f[I])){let F=$.get(p[R]),X=F!==void 0?a[F]:null;if(X===null){let q=Hi(n,a[x]);oo(q,l[R]),y[R]=q}else y[R]=oo(X,l[R]),Hi(n,a[x],X),a[F]=null;R++}else Na(a[I]),I--;else Na(a[x]),x++;for(;R<=P;){let F=Hi(n,y[P+1]);oo(F,l[R]),y[R++]=F}for(;x<=I;){let F=a[x++];F!==null&&Na(F)}return this.ut=p,Ha(n,y),jt}});var so=Fi(class extends ro{constructor(n){if(super(n),n.type!==je.PROPERTY&&n.type!==je.ATTRIBUTE&&n.type!==je.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!hC(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===jt||o===T)return o;let t=n.element,e=n.name;if(n.type===je.PROPERTY){if(o===t[e])return jt}else if(n.type===je.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return jt}else if(n.type===je.ATTRIBUTE&&t.getAttribute(e)===o+"")return jt;return Ha(n),o}});var Ba=new Map,fC=(n,o)=>{for(let[t,e]of Ba)t!==n&&e();Ba.clear(),Ba.set(n,o)},Fm=n=>{Ba.delete(n)};var no=Math.min,Xt=Math.max,Ns=Math.round,Bs=Math.floor,Ke=n=>({x:n,y:n}),jA={left:"right",right:"left",bottom:"top",top:"bottom"},KA={start:"end",end:"start"};function Hm(n,o,t){return Xt(n,no(o,t))}function Ni(n,o){return typeof n=="function"?n(o):n}function Mr(n){return n.split("-")[0]}function Bi(n){return n.split("-")[1]}function Nm(n){return n==="x"?"y":"x"}function Bm(n){return n==="y"?"height":"width"}var WA=new Set(["top","bottom"]);function nr(n){return WA.has(Mr(n))?"y":"x"}function qm(n){return Nm(nr(n))}function bC(n,o,t){t===void 0&&(t=!1);let e=Bi(n),a=qm(n),l=Bm(a),p=a==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(p=Hs(p)),[p,Hs(p)]}function yC(n){let o=Hs(n);return[qa(n),o,qa(o)]}function qa(n){return n.replace(/start|end/g,o=>KA[o])}var vC=["left","right"],gC=["right","left"],GA=["top","bottom"],YA=["bottom","top"];function XA(n,o,t){switch(n){case"top":case"bottom":return t?o?gC:vC:o?vC:gC;case"left":case"right":return o?GA:YA;default:return[]}}function xC(n,o,t,e){let a=Bi(n),l=XA(Mr(n),t==="start",e);return a&&(l=l.map(p=>p+"-"+a),o&&(l=l.concat(l.map(qa)))),l}function Hs(n){return n.replace(/left|right|bottom|top/g,o=>jA[o])}function QA(n){return{top:0,right:0,bottom:0,left:0,...n}}function wC(n){return typeof n!="number"?QA(n):{top:n,right:n,bottom:n,left:n}}function Wo(n){let{x:o,y:t,width:e,height:a}=n;return{width:e,height:a,top:t,left:o,right:o+e,bottom:t+a,x:o,y:t}}function kC(n,o,t){let{reference:e,floating:a}=n,l=nr(o),p=qm(o),f=Bm(p),y=Mr(o),E=l==="y",$=e.x+e.width/2-a.width/2,x=e.y+e.height/2-a.height/2,I=e[f]/2-a[f]/2,R;switch(y){case"top":R={x:$,y:e.y-a.height};break;case"bottom":R={x:$,y:e.y+e.height};break;case"right":R={x:e.x+e.width,y:x};break;case"left":R={x:e.x-a.width,y:x};break;default:R={x:e.x,y:e.y}}switch(Bi(o)){case"start":R[p]-=I*(t&&E?-1:1);break;case"end":R[p]+=I*(t&&E?-1:1);break}return R}async function CC(n,o){var t;o===void 0&&(o={});let{x:e,y:a,platform:l,rects:p,elements:f,strategy:y}=n,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:x="floating",altBoundary:I=!1,padding:R=0}=Ni(o,n),P=wC(R),X=f[I?x==="floating"?"reference":"floating":x],q=Wo(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(X)))==null||t?X:X.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:E,rootBoundary:$,strategy:y})),z=x==="floating"?{x:e,y:a,width:p.floating.width,height:p.floating.height}:p.reference,B=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),K=await(l.isElement==null?void 0:l.isElement(B))?await(l.getScale==null?void 0:l.getScale(B))||{x:1,y:1}:{x:1,y:1},qt=Wo(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:z,offsetParent:B,strategy:y}):z);return{top:(q.top-qt.top+P.top)/K.y,bottom:(qt.bottom-q.bottom+P.bottom)/K.y,left:(q.left-qt.left+P.left)/K.x,right:(qt.right-q.right+P.right)/K.x}}var SC=async(n,o,t)=>{let{placement:e="bottom",strategy:a="absolute",middleware:l=[],platform:p}=t,f=l.filter(Boolean),y=await(p.isRTL==null?void 0:p.isRTL(o)),E=await p.getElementRects({reference:n,floating:o,strategy:a}),{x:$,y:x}=kC(E,e,y),I=e,R={},P=0;for(let X=0;X<f.length;X++){var F;let{name:q,fn:z}=f[X],{x:B,y:K,data:qt,reset:Gt}=await z({x:$,y:x,initialPlacement:e,placement:I,strategy:a,middlewareData:R,rects:E,platform:{...p,detectOverflow:(F=p.detectOverflow)!=null?F:CC},elements:{reference:n,floating:o}});$=B??$,x=K??x,R={...R,[q]:{...R[q],...qt}},Gt&&P<=50&&(P++,typeof Gt=="object"&&(Gt.placement&&(I=Gt.placement),Gt.rects&&(E=Gt.rects===!0?await p.getElementRects({reference:n,floating:o,strategy:a}):Gt.rects),{x:$,y:x}=kC(E,I,y)),X=-1)}return{x:$,y:x,placement:I,strategy:a,middlewareData:R}};var EC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:a,middlewareData:l,rects:p,initialPlacement:f,platform:y,elements:E}=o,{mainAxis:$=!0,crossAxis:x=!0,fallbackPlacements:I,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:F=!0,...X}=Ni(n,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let q=Mr(a),z=nr(f),B=Mr(f)===f,K=await(y.isRTL==null?void 0:y.isRTL(E.floating)),qt=I||(B||!F?[Hs(f)]:yC(f)),Gt=P!=="none";!I&&Gt&&qt.push(...xC(f,F,P,K));let er=[f,...qt],Io=await y.detectOverflow(o,X),Ao=[],Or=((e=l.flip)==null?void 0:e.overflows)||[];if($&&Ao.push(Io[q]),x){let _o=bC(a,p,K);Ao.push(Io[_o[0]],Io[_o[1]])}if(Or=[...Or,{placement:a,overflows:Ao}],!Ao.every(_o=>_o<=0)){var ys,xs;let _o=(((ys=l.flip)==null?void 0:ys.index)||0)+1,qc=er[_o];if(qc&&(!(x==="alignment"?z!==nr(qc):!1)||Or.every(Ne=>nr(Ne.placement)===z?Ne.overflows[0]>0:!0)))return{data:{index:_o,overflows:Or},reset:{placement:qc}};let ks=(xs=Or.filter(Oo=>Oo.overflows[0]<=0).sort((Oo,Ne)=>Oo.overflows[1]-Ne.overflows[1])[0])==null?void 0:xs.placement;if(!ks)switch(R){case"bestFit":{var ws;let Oo=(ws=Or.filter(Ne=>{if(Gt){let Qr=nr(Ne.placement);return Qr===z||Qr==="y"}return!0}).map(Ne=>[Ne.placement,Ne.overflows.filter(Qr=>Qr>0).reduce((Qr,ZI)=>Qr+ZI,0)]).sort((Ne,Qr)=>Ne[1]-Qr[1])[0])==null?void 0:ws[0];Oo&&(ks=Oo);break}case"initialPlacement":ks=f;break}if(a!==ks)return{reset:{placement:ks}}}return{}}}};var JA=new Set(["left","top"]);async function ZA(n,o){let{placement:t,platform:e,elements:a}=n,l=await(e.isRTL==null?void 0:e.isRTL(a.floating)),p=Mr(t),f=Bi(t),y=nr(t)==="y",E=JA.has(p)?-1:1,$=l&&y?-1:1,x=Ni(o,n),{mainAxis:I,crossAxis:R,alignmentAxis:P}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return f&&typeof P=="number"&&(R=f==="end"?P*-1:P),y?{x:R*$,y:I*E}:{x:I*E,y:R*$}}var $C=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:a,y:l,placement:p,middlewareData:f}=o,y=await ZA(o,n);return p===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:a+y.x,y:l+y.y,data:{...y,placement:p}}}}},TC=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:a,platform:l}=o,{mainAxis:p=!0,crossAxis:f=!1,limiter:y={fn:q=>{let{x:z,y:B}=q;return{x:z,y:B}}},...E}=Ni(n,o),$={x:t,y:e},x=await l.detectOverflow(o,E),I=nr(Mr(a)),R=Nm(I),P=$[R],F=$[I];if(p){let q=R==="y"?"top":"left",z=R==="y"?"bottom":"right",B=P+x[q],K=P-x[z];P=Hm(B,P,K)}if(f){let q=I==="y"?"top":"left",z=I==="y"?"bottom":"right",B=F+x[q],K=F-x[z];F=Hm(B,F,K)}let X=y.fn({...o,[R]:P,[I]:F});return{...X,data:{x:X.x-t,y:X.y-e,enabled:{[R]:p,[I]:f}}}}}};var RC=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:a,rects:l,platform:p,elements:f}=o,{apply:y=()=>{},...E}=Ni(n,o),$=await p.detectOverflow(o,E),x=Mr(a),I=Bi(a),R=nr(a)==="y",{width:P,height:F}=l.floating,X,q;x==="top"||x==="bottom"?(X=x,q=I===(await(p.isRTL==null?void 0:p.isRTL(f.floating))?"start":"end")?"left":"right"):(q=x,X=I==="end"?"top":"bottom");let z=F-$.top-$.bottom,B=P-$.left-$.right,K=no(F-$[X],z),qt=no(P-$[q],B),Gt=!o.middlewareData.shift,er=K,Io=qt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(Io=B),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(er=z),Gt&&!I){let Or=Xt($.left,0),ys=Xt($.right,0),xs=Xt($.top,0),ws=Xt($.bottom,0);R?Io=P-2*(Or!==0||ys!==0?Or+ys:Xt($.left,$.right)):er=F-2*(xs!==0||ws!==0?xs+ws:Xt($.top,$.bottom))}await y({...o,availableWidth:Io,availableHeight:er});let Ao=await p.getDimensions(f.floating);return P!==Ao.width||F!==Ao.height?{reset:{rects:!0}}:{}}}};function Va(){return typeof window<"u"}function Go(n){return AC(n)?(n.nodeName||"").toLowerCase():"#document"}function oe(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function We(n){var o;return(o=(AC(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function AC(n){return Va()?n instanceof Node||n instanceof oe(n).Node:!1}function Oe(n){return Va()?n instanceof Element||n instanceof oe(n).Element:!1}function Ge(n){return Va()?n instanceof HTMLElement||n instanceof oe(n).HTMLElement:!1}function IC(n){return!Va()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof oe(n).ShadowRoot}var t_=new Set(["inline","contents"]);function Vi(n){let{overflow:o,overflowX:t,overflowY:e,display:a}=Le(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!t_.has(a)}var e_=new Set(["table","td","th"]);function _C(n){return e_.has(Go(n))}var r_=[":popover-open",":modal"];function qs(n){return r_.some(o=>{try{return n.matches(o)}catch{return!1}})}var o_=["transform","translate","scale","rotate","perspective"],i_=["transform","translate","scale","rotate","perspective","filter"],s_=["paint","layout","strict","content"];function Ua(n){let o=ja(),t=Oe(n)?Le(n):n;return o_.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||i_.some(e=>(t.willChange||"").includes(e))||s_.some(e=>(t.contain||"").includes(e))}function OC(n){let o=Dr(n);for(;Ge(o)&&!Yo(o);){if(Ua(o))return o;if(qs(o))return null;o=Dr(o)}return null}function ja(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var n_=new Set(["html","body","#document"]);function Yo(n){return n_.has(Go(n))}function Le(n){return oe(n).getComputedStyle(n)}function Vs(n){return Oe(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dr(n){if(Go(n)==="html")return n;let o=n.assignedSlot||n.parentNode||IC(n)&&n.host||We(n);return IC(o)?o.host:o}function LC(n){let o=Dr(n);return Yo(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ge(o)&&Vi(o)?o:LC(o)}function qi(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=LC(n),l=a===((e=n.ownerDocument)==null?void 0:e.body),p=oe(a);if(l){let f=Ka(p);return o.concat(p,p.visualViewport||[],Vi(a)?a:[],f&&t?qi(f):[])}return o.concat(a,qi(a,[],t))}function Ka(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function DC(n){let o=Le(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,a=Ge(n),l=a?n.offsetWidth:t,p=a?n.offsetHeight:e,f=Ns(t)!==l||Ns(e)!==p;return f&&(t=l,e=p),{width:t,height:e,$:f}}function Um(n){return Oe(n)?n:n.contextElement}function Ui(n){let o=Um(n);if(!Ge(o))return Ke(1);let t=o.getBoundingClientRect(),{width:e,height:a,$:l}=DC(o),p=(l?Ns(t.width):t.width)/e,f=(l?Ns(t.height):t.height)/a;return(!p||!Number.isFinite(p))&&(p=1),(!f||!Number.isFinite(f))&&(f=1),{x:p,y:f}}var a_=Ke(0);function FC(n){let o=oe(n);return!ja()||!o.visualViewport?a_:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function l_(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==oe(n)?!1:o}function Xo(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),l=Um(n),p=Ke(1);o&&(e?Oe(e)&&(p=Ui(e)):p=Ui(n));let f=l_(l,t,e)?FC(l):Ke(0),y=(a.left+f.x)/p.x,E=(a.top+f.y)/p.y,$=a.width/p.x,x=a.height/p.y;if(l){let I=oe(l),R=e&&Oe(e)?oe(e):e,P=I,F=Ka(P);for(;F&&e&&R!==P;){let X=Ui(F),q=F.getBoundingClientRect(),z=Le(F),B=q.left+(F.clientLeft+parseFloat(z.paddingLeft))*X.x,K=q.top+(F.clientTop+parseFloat(z.paddingTop))*X.y;y*=X.x,E*=X.y,$*=X.x,x*=X.y,y+=B,E+=K,P=oe(F),F=Ka(P)}}return Wo({width:$,height:x,x:y,y:E})}function Wa(n,o){let t=Vs(n).scrollLeft;return o?o.left+t:Xo(We(n)).left+t}function HC(n,o){let t=n.getBoundingClientRect(),e=t.left+o.scrollLeft-Wa(n,t),a=t.top+o.scrollTop;return{x:e,y:a}}function d_(n){let{elements:o,rect:t,offsetParent:e,strategy:a}=n,l=a==="fixed",p=We(e),f=o?qs(o.floating):!1;if(e===p||f&&l)return t;let y={scrollLeft:0,scrollTop:0},E=Ke(1),$=Ke(0),x=Ge(e);if((x||!x&&!l)&&((Go(e)!=="body"||Vi(p))&&(y=Vs(e)),Ge(e))){let R=Xo(e);E=Ui(e),$.x=R.x+e.clientLeft,$.y=R.y+e.clientTop}let I=p&&!x&&!l?HC(p,y):Ke(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-y.scrollLeft*E.x+$.x+I.x,y:t.y*E.y-y.scrollTop*E.y+$.y+I.y}}function c_(n){return Array.from(n.getClientRects())}function p_(n){let o=We(n),t=Vs(n),e=n.ownerDocument.body,a=Xt(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=Xt(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),p=-t.scrollLeft+Wa(n),f=-t.scrollTop;return Le(e).direction==="rtl"&&(p+=Xt(o.clientWidth,e.clientWidth)-a),{width:a,height:l,x:p,y:f}}var PC=25;function h_(n,o){let t=oe(n),e=We(n),a=t.visualViewport,l=e.clientWidth,p=e.clientHeight,f=0,y=0;if(a){l=a.width,p=a.height;let $=ja();(!$||$&&o==="fixed")&&(f=a.offsetLeft,y=a.offsetTop)}let E=Wa(e);if(E<=0){let $=e.ownerDocument,x=$.body,I=getComputedStyle(x),R=$.compatMode==="CSS1Compat"&&parseFloat(I.marginLeft)+parseFloat(I.marginRight)||0,P=Math.abs(e.clientWidth-x.clientWidth-R);P<=PC&&(l-=P)}else E<=PC&&(l+=E);return{width:l,height:p,x:f,y}}var u_=new Set(["absolute","fixed"]);function m_(n,o){let t=Xo(n,!0,o==="fixed"),e=t.top+n.clientTop,a=t.left+n.clientLeft,l=Ge(n)?Ui(n):Ke(1),p=n.clientWidth*l.x,f=n.clientHeight*l.y,y=a*l.x,E=e*l.y;return{width:p,height:f,x:y,y:E}}function zC(n,o,t){let e;if(o==="viewport")e=h_(n,t);else if(o==="document")e=p_(We(n));else if(Oe(o))e=m_(o,t);else{let a=FC(n);e={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Wo(e)}function NC(n,o){let t=Dr(n);return t===o||!Oe(t)||Yo(t)?!1:Le(t).position==="fixed"||NC(t,o)}function f_(n,o){let t=o.get(n);if(t)return t;let e=qi(n,[],!1).filter(f=>Oe(f)&&Go(f)!=="body"),a=null,l=Le(n).position==="fixed",p=l?Dr(n):n;for(;Oe(p)&&!Yo(p);){let f=Le(p),y=Ua(p);!y&&f.position==="fixed"&&(a=null),(l?!y&&!a:!y&&f.position==="static"&&!!a&&u_.has(a.position)||Vi(p)&&!y&&NC(n,p))?e=e.filter($=>$!==p):a=f,p=Dr(p)}return o.set(n,e),e}function v_(n){let{element:o,boundary:t,rootBoundary:e,strategy:a}=n,p=[...t==="clippingAncestors"?qs(o)?[]:f_(o,this._c):[].concat(t),e],f=p[0],y=p.reduce((E,$)=>{let x=zC(o,$,a);return E.top=Xt(x.top,E.top),E.right=no(x.right,E.right),E.bottom=no(x.bottom,E.bottom),E.left=Xt(x.left,E.left),E},zC(o,f,a));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function g_(n){let{width:o,height:t}=DC(n);return{width:o,height:t}}function b_(n,o,t){let e=Ge(o),a=We(o),l=t==="fixed",p=Xo(n,!0,l,o),f={scrollLeft:0,scrollTop:0},y=Ke(0);function E(){y.x=Wa(a)}if(e||!e&&!l)if((Go(o)!=="body"||Vi(a))&&(f=Vs(o)),e){let R=Xo(o,!0,l,o);y.x=R.x+o.clientLeft,y.y=R.y+o.clientTop}else a&&E();l&&!e&&a&&E();let $=a&&!e&&!l?HC(a,f):Ke(0),x=p.left+f.scrollLeft-y.x-$.x,I=p.top+f.scrollTop-y.y-$.y;return{x,y:I,width:p.width,height:p.height}}function Vm(n){return Le(n).position==="static"}function MC(n,o){if(!Ge(n)||Le(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return We(n)===t&&(t=t.ownerDocument.body),t}function BC(n,o){let t=oe(n);if(qs(n))return t;if(!Ge(n)){let a=Dr(n);for(;a&&!Yo(a);){if(Oe(a)&&!Vm(a))return a;a=Dr(a)}return t}let e=MC(n,o);for(;e&&_C(e)&&Vm(e);)e=MC(e,o);return e&&Yo(e)&&Vm(e)&&!Ua(e)?t:e||OC(n)||t}var y_=async function(n){let o=this.getOffsetParent||BC,t=this.getDimensions,e=await t(n.floating);return{reference:b_(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function x_(n){return Le(n).direction==="rtl"}var jm={convertOffsetParentRelativeRectToViewportRelativeRect:d_,getDocumentElement:We,getClippingRect:v_,getOffsetParent:BC,getElementRects:y_,getClientRects:c_,getDimensions:g_,getScale:Ui,isElement:Oe,isRTL:x_};function qC(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function w_(n,o){let t=null,e,a=We(n);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function p(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let E=n.getBoundingClientRect(),{left:$,top:x,width:I,height:R}=E;if(f||o(),!I||!R)return;let P=Bs(x),F=Bs(a.clientWidth-($+I)),X=Bs(a.clientHeight-(x+R)),q=Bs($),B={rootMargin:-P+"px "+-F+"px "+-X+"px "+-q+"px",threshold:Xt(0,no(1,y))||1},K=!0;function qt(Gt){let er=Gt[0].intersectionRatio;if(er!==y){if(!K)return p();er?p(!1,er):e=setTimeout(()=>{p(!1,1e-7)},1e3)}er===1&&!qC(E,n.getBoundingClientRect())&&p(),K=!1}try{t=new IntersectionObserver(qt,{...B,root:a.ownerDocument})}catch{t=new IntersectionObserver(qt,B)}t.observe(n)}return p(!0),l}function VC(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=e,E=Um(n),$=a||l?[...E?qi(E):[],...qi(o)]:[];$.forEach(q=>{a&&q.addEventListener("scroll",t,{passive:!0}),l&&q.addEventListener("resize",t)});let x=E&&f?w_(E,t):null,I=-1,R=null;p&&(R=new ResizeObserver(q=>{let[z]=q;z&&z.target===E&&R&&(R.unobserve(o),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var B;(B=R)==null||B.observe(o)})),t()}),E&&!y&&R.observe(E),R.observe(o));let P,F=y?Xo(n):null;y&&X();function X(){let q=Xo(n);F&&!qC(F,q)&&t(),F=q,P=requestAnimationFrame(X)}return t(),()=>{var q;$.forEach(z=>{a&&z.removeEventListener("scroll",t),l&&z.removeEventListener("resize",t)}),x?.(),(q=R)==null||q.disconnect(),R=null,y&&cancelAnimationFrame(P)}}var UC=$C;var jC=TC,KC=EC,WC=RC;var GC=(n,o,t)=>{let e=new Map,a={platform:jm,...t},l={...a.platform,_c:e};return SC(n,o,{...a,platform:l})};var YC=()=>new Promise(n=>requestAnimationFrame(()=>requestAnimationFrame(()=>n()))),XC=(n,o,t=200)=>{let e=!1,a=()=>{e||(e=!0,n.removeEventListener("transitionend",l),clearTimeout(p),o())},l=()=>a();n.addEventListener("transitionend",l);let p=setTimeout(a,t)},ji=n=>v`
3967
3889
  <svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${n}">
3968
3890
  <polygon class="arrow-fill" points="0,0 5,6 10,0" />
3969
3891
  <path class="arrow-stroke" d="M 0,0 L 5,6 L 10,0" />
3970
3892
  </svg>
3971
- `,iP={...Gf,getOffsetParent:()=>window},sP=(n,o,t={})=>{let{placement:r="bottom-start",offsetPx:a=4,matchWidth:d=!1,padding:p=8}=t,v=[RE(a),AE(),IE({padding:p})];return d&&v.push(OE({apply({rects:x,elements:E}){Object.assign(E.floating.style,{width:`${x.reference.width}px`})}})),LE(n,o,{placement:r,strategy:"fixed",middleware:v,platform:iP})},_E=(n,o,t={})=>{let{onPosition:r,...a}=t;return TE(n,o,()=>{sP(n,o,a).then(d=>{Object.assign(o.style,{left:`${d.x}px`,top:`${d.y}px`}),r?.(d)})})};var ue=class{#t;#e;#s;#n;#a;#d;#l;#v;#g;#u;#m;#f;#b;#c=[];#r=null;#p=null;#o=!1;#i=!1;#h=0;get isOpen(){return this.#o}get isAnimating(){return this.#i}get isStarting(){return this.#o&&this.#i}get isEnding(){return!this.#o&&this.#i}get positionerElement(){return this.#r}get renderRoot(){return this.#r?.shadowRoot??this.#r}set placement(o){this.#n=o}set offset(o){this.#a=o}constructor(o,t){this.#t=o,this.#e=t.getAnchor,this.#s=t.matchWidth??!0,this.#n=t.placement??"bottom-start",this.#a=t.offset??4,this.#d=t.styles,this.#l=t.onOpen,this.#v=t.onClose,this.#g=t.onPosition,this.#u=t.renderPopup,this.#m=t.contentContainer,this.#f=t.contentSelector,this.#b=t.getOverlayRoot??(()=>document.body),o.addController(this)}hostConnected(){document.addEventListener("click",this.#x)}hostDisconnected(){document.removeEventListener("click",this.#x),this.#I(),Df(this.#t)}hostUpdated(){if(this.#o?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#u&&(this.#o||this.isEnding)){let o=this.renderRoot;o&&Ia(this.#u(this),o)}this.#m&&this.#o&&this.#c.length===0&&this.#T()}open(){if(this.#o)return;this.#h++;let o=this.#h;ZC(this.#t,()=>this.close()),this.#o=!0,this.#i=!0,this.#S(),this.#$(),this.#l?.(),this.#t.requestUpdate(),PE().then(()=>{o===this.#h&&(this.#i=!1,this.#t.requestUpdate())})}close(){if(!this.#o)return;this.#h++,this.#i=!0,this.#t.requestUpdate();let o=this.renderRoot?.querySelector(".Popup");if(!o){this.#y();return}zE(o,()=>this.#y())}#y(){this.#o&&(this.#o=!1,this.#i=!1,this.#w(),Df(this.#t),this.#v?.(),this.#C(),this.#t.requestUpdate())}#x=o=>{if(!this.#o)return;let t=o.composedPath();!t.includes(this.#t)&&!this.#k(t)&&this.close()};#k(o){return this.#r?o.includes(this.#r):!1}#S(){if(this.#r){this.#r.style.display="";return}let o=this.#b(),t=document.createElement("div");t.style.position="fixed",t.style.zIndex="1000",t.style.pointerEvents="none",t.setAttribute("data-floating-portal",""),t.setAttribute("data-dui-portal-for",this.#t.tagName.toLowerCase());let r=sk(),a=this.#t.tagName.toLowerCase(),d=r?.styles.get(a),p=[...this.#d??[],...r?.base?[r.base]:[],...d?[d]:[]];if(p.length>0){let v=t.attachShadow({mode:"open"});ya(v,p)}o.appendChild(t),this.#r=t}#C(){this.#r&&(this.#r.style.display="none")}#E(){this.#r?.remove(),this.#r=null}#$(){if(this.#p)return;let o=this.#e(),t=this.#r;!o||!t||(this.#p=_E(o,t,{placement:this.#n,offsetPx:this.#a,matchWidth:this.#s,onPosition:this.#g}))}#w(){this.#p?.(),this.#p=null}#T(){let o=this.renderRoot?.querySelector(this.#m);if(!o)return;let t=this.#f?Array.from(this.#t.querySelectorAll(`:scope > ${this.#f}`)):Array.from(this.#t.childNodes);for(let r of t)o.appendChild(r),this.#c.push(r)}#R(){for(let o of this.#c)this.#t.appendChild(o);this.#c=[]}#I(){this.#w(),this.#R(),this.#E()}};var WE=O("value-change",{bubbles:!0,composed:!0}),nv=O("values-change",{bubbles:!0,composed:!0}),nP=c`
3893
+ `,k_={...jm,getOffsetParent:()=>window},C_=(n,o,t={})=>{let{placement:e="bottom-start",offsetPx:a=4,matchWidth:l=!1,padding:p=8}=t,f=[UC(a),KC(),jC({padding:p})];return l&&f.push(WC({apply({rects:y,elements:E}){Object.assign(E.floating.style,{width:`${y.reference.width}px`})}})),GC(n,o,{placement:e,strategy:"fixed",middleware:f,platform:k_})},QC=(n,o,t={})=>{let{onPosition:e,...a}=t;return VC(n,o,()=>{C_(n,o,a).then(l=>{Object.assign(o.style,{left:`${l.x}px`,top:`${l.y}px`}),e?.(l)})})};var ie=class{#t;#h;#u;#a;#l;#m;#f;#v;#g;#d;#c;#p;#b;#i=[];#e=null;#s=null;#r=!1;#o=!1;#n=0;get isOpen(){return this.#r}get isAnimating(){return this.#o}get isStarting(){return this.#r&&this.#o}get isEnding(){return!this.#r&&this.#o}get positionerElement(){return this.#e}get renderRoot(){return this.#e?.shadowRoot??this.#e}set placement(o){this.#a=o}set offset(o){this.#l=o}constructor(o,t){this.#t=o,this.#h=t.getAnchor,this.#u=t.matchWidth??!0,this.#a=t.placement??"bottom-start",this.#l=t.offset??4,this.#m=t.styles,this.#f=t.onOpen,this.#v=t.onClose,this.#g=t.onPosition,this.#d=t.renderPopup,this.#c=t.contentContainer,this.#p=t.contentSelector,this.#b=t.getOverlayRoot??(()=>document.body),o.addController(this)}hostConnected(){document.addEventListener("click",this.#x)}hostDisconnected(){document.removeEventListener("click",this.#x),this.#I(),Fm(this.#t)}hostUpdated(){if(this.#r?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#d&&(this.#r||this.isEnding)){let o=this.renderRoot;o&&Fn(this.#d(this),o)}this.#c&&this.#r&&this.#i.length===0&&this.#T()}open(){if(this.#r)return;this.#n++;let o=this.#n;fC(this.#t,()=>this.close()),this.#r=!0,this.#o=!0,this.#C(),this.#$(),this.#f?.(),this.#t.requestUpdate(),YC().then(()=>{o===this.#n&&(this.#o=!1,this.#t.requestUpdate())})}close(){if(!this.#r)return;this.#n++,this.#o=!0,this.#t.requestUpdate();let o=this.renderRoot?.querySelector(".Popup");if(!o){this.#y();return}XC(o,()=>this.#y())}#y(){this.#r&&(this.#r=!1,this.#o=!1,this.#w(),Fm(this.#t),this.#v?.(),this.#S(),this.#t.requestUpdate())}#x=o=>{if(!this.#r)return;let t=o.composedPath();!t.includes(this.#t)&&!this.#k(t)&&this.close()};#k(o){return this.#e?o.includes(this.#e):!1}#C(){if(this.#e){this.#e.style.display="";return}let o=this.#b(),t=document.createElement("div");t.style.position="fixed",t.style.zIndex="1000",t.style.pointerEvents="none",t.setAttribute("data-floating-portal",""),t.setAttribute("data-dui-portal-for",this.#t.tagName.toLowerCase());let e=_0(),a=this.#t.tagName.toLowerCase(),l=e?.styles.get(a),p=[...this.#m??[],...e?.base?[e.base]:[],...l?[l]:[]];if(p.length>0){let f=t.attachShadow({mode:"open"});Rn(f,p)}o.appendChild(t),this.#e=t}#S(){this.#e&&(this.#e.style.display="none")}#E(){this.#e?.remove(),this.#e=null}#$(){if(this.#s)return;let o=this.#h(),t=this.#e;!o||!t||(this.#s=QC(o,t,{placement:this.#a,offsetPx:this.#l,matchWidth:this.#u,onPosition:this.#g}))}#w(){this.#s?.(),this.#s=null}#T(){let o=this.renderRoot?.querySelector(this.#c);if(!o)return;let t=this.#p?Array.from(this.#t.querySelectorAll(`:scope > ${this.#p}`)):Array.from(this.#t.childNodes);for(let e of t)o.appendChild(e),this.#i.push(e)}#R(){for(let o of this.#i)this.#t.appendChild(o);this.#i=[]}#I(){this.#w(),this.#R(),this.#E()}};var lS=_("value-change",{bubbles:!0,composed:!0}),of=_("values-change",{bubbles:!0,composed:!0}),S_=c`
3972
3894
  :host {
3973
3895
  display: block;
3974
3896
  }
3975
- `,aP=c`
3897
+ `,E_=c`
3976
3898
  /* ---- Input area (structural) ---- */
3977
3899
 
3978
3900
  .Chips {
@@ -4039,7 +3961,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4039
3961
  cursor: pointer;
4040
3962
  flex-shrink: 0;
4041
3963
  }
4042
- `,lP=[c`
3964
+ `,$_=[c`
4043
3965
  .Popup {
4044
3966
  opacity: 1;
4045
3967
  transform: translateY(0);
@@ -4076,7 +3998,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4076
3998
  text-overflow: ellipsis;
4077
3999
  white-space: nowrap;
4078
4000
  }
4079
- `],ME,FE,HE,NE,BE,DE,qE,VE,UE,jE,ft,Yf,Xf,Jf,Qf,Zf,tv,ev,rv,ov,Yr,gr,G,iv,sv,Nl,pi,zt,fn,hi,av,Bl,Dl,ql,lv,dv,Vl,Ul,jl,Wl,Kl,Gl,ne=class extends(jE=g,UE=[u({attribute:!1})],VE=[u({type:String})],qE=[u({attribute:!1})],DE=[u({type:Boolean,reflect:!0})],BE=[u({type:String})],NE=[u({type:Boolean,reflect:!0})],HE=[u({type:String})],FE=[k()],ME=[k()],jE){constructor(){super(...arguments);s(this,G);s(this,Yf,i(ft,8,this,[])),i(ft,11,this);s(this,Xf,i(ft,12,this,"")),i(ft,15,this);s(this,Jf,i(ft,16,this,new Set)),i(ft,19,this);s(this,Qf,i(ft,20,this,!1)),i(ft,23,this);s(this,Zf,i(ft,24,this,"Search...")),i(ft,27,this);s(this,tv,i(ft,28,this,!1)),i(ft,31,this);s(this,ev,i(ft,32,this,"")),i(ft,35,this);s(this,rv,i(ft,36,this,-1)),i(ft,39,this);s(this,iv,i(ft,40,this,"")),i(ft,43,this);s(this,zt,new ue(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:lP,onOpen:()=>{if(h(this,G,-1,gr),!this.multiple){h(this,G,"",pi);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(h(this,G,-1,gr),!this.multiple){let t=this.options.find(r=>r.value===this.value);h(this,G,t?.label??"",pi)}},renderPopup:t=>{let r=e(this,G,av),a=r.length===0;return f`
4001
+ `],JC,ZC,tS,eS,rS,oS,iS,sS,nS,aS,mt,Km,Wm,Gm,Ym,Xm,Qm,Jm,Zm,tf,Fr,ar,W,ef,rf,Ga,Qo,_t,Us,Jo,sf,Ya,Xa,Qa,nf,af,Ja,Za,tl,el,rl,ol,se=class extends(aS=b,nS=[u({attribute:!1})],sS=[u({type:String})],iS=[u({attribute:!1})],oS=[u({type:Boolean,reflect:!0})],rS=[u({type:String})],eS=[u({type:Boolean,reflect:!0})],tS=[u({type:String})],ZC=[k()],JC=[k()],aS){constructor(){super(...arguments);s(this,W);s(this,Km,i(mt,8,this,[])),i(mt,11,this);s(this,Wm,i(mt,12,this,"")),i(mt,15,this);s(this,Gm,i(mt,16,this,new Set)),i(mt,19,this);s(this,Ym,i(mt,20,this,!1)),i(mt,23,this);s(this,Xm,i(mt,24,this,"Search...")),i(mt,27,this);s(this,Qm,i(mt,28,this,!1)),i(mt,31,this);s(this,Jm,i(mt,32,this,"")),i(mt,35,this);s(this,Zm,i(mt,36,this,-1)),i(mt,39,this);s(this,ef,i(mt,40,this,"")),i(mt,43,this);s(this,_t,new ie(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:$_,onOpen:()=>{if(h(this,W,-1,ar),!this.multiple){h(this,W,"",Qo);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(h(this,W,-1,ar),!this.multiple){let t=this.options.find(e=>e.value===this.value);h(this,W,t?.label??"",Qo)}},renderPopup:t=>{let e=r(this,W,sf),a=e.length===0;return v`
4080
4002
  <div
4081
4003
  class="Popup"
4082
4004
  ?data-starting-style="${t.isStarting}"
@@ -4085,93 +4007,93 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4085
4007
  <dui-scroll-area>
4086
4008
  <div
4087
4009
  class="List"
4088
- id="${e(this,hi)}"
4010
+ id="${r(this,Jo)}"
4089
4011
  role="listbox"
4090
- aria-labelledby="${e(this,fn)}"
4012
+ aria-labelledby="${r(this,Us)}"
4091
4013
  ?data-empty="${a}"
4092
- @mousedown="${e(this,Ul)}"
4093
- @mousemove="${e(this,jl)}"
4014
+ @mousedown="${r(this,Za)}"
4015
+ @mousemove="${r(this,tl)}"
4094
4016
  >
4095
- ${Eo(r,d=>d.value,e(this,Gl))}
4096
- ${a?f` <div class="Empty">No results</div> `:T}
4017
+ ${io(e,l=>l.value,r(this,ol))}
4018
+ ${a?v` <div class="Empty">No results</div> `:T}
4097
4019
  </div>
4098
4020
  </dui-scroll-area>
4099
4021
  </div>
4100
- `}}));s(this,fn,`combobox-input-${crypto.randomUUID().slice(0,8)}`);s(this,hi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);s(this,Bl,t=>{let r=t.target;h(this,G,r.value,pi),e(this,zt).isOpen||this.disabled||e(this,zt).open(),h(this,G,-1,gr)});s(this,Dl,()=>{!e(this,zt).isOpen&&!this.disabled&&e(this,zt).open()});s(this,ql,t=>{let r=e(this,G,av);switch(t.key){case"ArrowDown":t.preventDefault(),e(this,zt).isOpen?h(this,G,Math.min(e(this,G,Yr)+1,r.length-1),gr):this.disabled||e(this,zt).open();break;case"ArrowUp":t.preventDefault(),e(this,zt).isOpen?h(this,G,Math.max(e(this,G,Yr)-1,0),gr):this.disabled||e(this,zt).open();break;case"Enter":{if(t.preventDefault(),e(this,zt).isOpen){let a=e(this,G,Yr)>=0?e(this,G,Yr):0,d=r[a];d&&m(this,G,lv).call(this,d)}else this.disabled||e(this,zt).open();break}case"Escape":e(this,zt).isOpen&&(t.preventDefault(),h(this,G,"",pi),e(this,zt).close());break;case"Tab":e(this,zt).isOpen&&e(this,zt).close();break;case"Home":e(this,zt).isOpen&&(t.preventDefault(),h(this,G,0,gr));break;case"End":e(this,zt).isOpen&&(t.preventDefault(),h(this,G,r.length-1,gr));break;case"Backspace":if(this.multiple&&e(this,G,Nl)===""&&this.values.size>0){let a=Array.from(this.values).at(-1);a&&m(this,G,dv).call(this,a)}break}});s(this,Vl,t=>{m(this,G,lv).call(this,t)});s(this,Ul,t=>{t.preventDefault()});s(this,jl,()=>{e(this,G,Yr)!==-1&&h(this,G,-1,gr)});s(this,Wl,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});s(this,Kl,t=>{let a=this.options.find(d=>d.value===t)?.label??t;return f`
4022
+ `}}));s(this,Us,`combobox-input-${crypto.randomUUID().slice(0,8)}`);s(this,Jo,`combobox-list-${crypto.randomUUID().slice(0,8)}`);s(this,Ya,t=>{let e=t.target;h(this,W,e.value,Qo),r(this,_t).isOpen||this.disabled||r(this,_t).open(),h(this,W,-1,ar)});s(this,Xa,()=>{!r(this,_t).isOpen&&!this.disabled&&r(this,_t).open()});s(this,Qa,t=>{let e=r(this,W,sf);switch(t.key){case"ArrowDown":t.preventDefault(),r(this,_t).isOpen?h(this,W,Math.min(r(this,W,Fr)+1,e.length-1),ar):this.disabled||r(this,_t).open();break;case"ArrowUp":t.preventDefault(),r(this,_t).isOpen?h(this,W,Math.max(r(this,W,Fr)-1,0),ar):this.disabled||r(this,_t).open();break;case"Enter":{if(t.preventDefault(),r(this,_t).isOpen){let a=r(this,W,Fr)>=0?r(this,W,Fr):0,l=e[a];l&&m(this,W,nf).call(this,l)}else this.disabled||r(this,_t).open();break}case"Escape":r(this,_t).isOpen&&(t.preventDefault(),h(this,W,"",Qo),r(this,_t).close());break;case"Tab":r(this,_t).isOpen&&r(this,_t).close();break;case"Home":r(this,_t).isOpen&&(t.preventDefault(),h(this,W,0,ar));break;case"End":r(this,_t).isOpen&&(t.preventDefault(),h(this,W,e.length-1,ar));break;case"Backspace":if(this.multiple&&r(this,W,Ga)===""&&this.values.size>0){let a=Array.from(this.values).at(-1);a&&m(this,W,af).call(this,a)}break}});s(this,Ja,t=>{m(this,W,nf).call(this,t)});s(this,Za,t=>{t.preventDefault()});s(this,tl,()=>{r(this,W,Fr)!==-1&&h(this,W,-1,ar)});s(this,el,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});s(this,rl,t=>{let a=this.options.find(l=>l.value===t)?.label??t;return v`
4101
4023
  <span class="Chip">
4102
4024
  <span class="ChipLabel">${a}</span>
4103
4025
  <button
4104
4026
  class="ChipRemove"
4105
4027
  type="button"
4106
4028
  tabindex="-1"
4107
- @mousedown="${d=>d.preventDefault()}"
4108
- @click="${d=>{d.stopPropagation(),m(this,G,dv).call(this,t)}}"
4029
+ @mousedown="${l=>l.preventDefault()}"
4030
+ @click="${l=>{l.stopPropagation(),m(this,W,af).call(this,t)}}"
4109
4031
  >
4110
4032
  <dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></dui-icon>
4111
4033
  </button>
4112
4034
  </span>
4113
- `});s(this,Gl,(t,r)=>{let a=this.multiple?this.values.has(t.value):t.value===this.value,d=r===e(this,G,Yr);return f`
4035
+ `});s(this,ol,(t,e)=>{let a=this.multiple?this.values.has(t.value):t.value===this.value,l=e===r(this,W,Fr);return v`
4114
4036
  <div
4115
4037
  class="Item"
4116
4038
  role="option"
4117
- id="${e(this,hi)}-option-${r}"
4039
+ id="${r(this,Jo)}-option-${e}"
4118
4040
  aria-selected="${a}"
4119
4041
  ?data-selected="${a}"
4120
- ?data-highlighted="${d}"
4121
- @click="${()=>e(this,Vl).call(this,t)}"
4042
+ ?data-highlighted="${l}"
4043
+ @click="${()=>r(this,Ja).call(this,t)}"
4122
4044
  >
4123
4045
  <span class="ItemText">${t.label}</span>
4124
4046
  <span class="ItemIndicator">
4125
- ${a?f`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:T}
4047
+ ${a?v`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:T}
4126
4048
  </span>
4127
4049
  </div>
4128
- `})}render(){let t=f`
4050
+ `})}render(){let t=v`
4129
4051
  <input
4130
4052
  class="Input"
4131
- id="${e(this,fn)}"
4053
+ id="${r(this,Us)}"
4132
4054
  type="text"
4133
4055
  role="combobox"
4134
4056
  autocomplete="off"
4135
4057
  aria-haspopup="listbox"
4136
- aria-expanded="${e(this,zt).isOpen}"
4137
- aria-controls="${e(this,hi)}"
4138
- aria-activedescendant="${e(this,G,Yr)>=0?`${e(this,hi)}-option-${e(this,G,Yr)}`:T}"
4139
- .value="${$o(e(this,G,Nl))}"
4058
+ aria-expanded="${r(this,_t).isOpen}"
4059
+ aria-controls="${r(this,Jo)}"
4060
+ aria-activedescendant="${r(this,W,Fr)>=0?`${r(this,Jo)}-option-${r(this,W,Fr)}`:T}"
4061
+ .value="${so(r(this,W,Ga))}"
4140
4062
  .placeholder="${this.placeholder}"
4141
4063
  ?disabled="${this.disabled}"
4142
- @input="${e(this,Bl)}"
4143
- @focus="${e(this,Dl)}"
4144
- @keydown="${e(this,ql)}"
4064
+ @input="${r(this,Ya)}"
4065
+ @focus="${r(this,Xa)}"
4066
+ @keydown="${r(this,Qa)}"
4145
4067
  />
4146
- `;return this.multiple?f`
4068
+ `;return this.multiple?v`
4147
4069
  <div
4148
4070
  class="Chips"
4149
4071
  part="chips"
4150
4072
  ?data-disabled="${this.disabled}"
4151
- @click="${e(this,Wl)}"
4073
+ @click="${r(this,el)}"
4152
4074
  >
4153
- ${Eo(Array.from(this.values),r=>r,e(this,Kl))}
4075
+ ${io(Array.from(this.values),e=>e,r(this,rl))}
4154
4076
  ${t}
4155
4077
  <dui-icon class="Arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg></dui-icon>
4156
4078
  </div>
4157
- ${this.name?Eo(Array.from(this.values),r=>r,r=>f`
4158
- <input type="hidden" name="${this.name}" .value="${r}" />
4079
+ ${this.name?io(Array.from(this.values),e=>e,e=>v`
4080
+ <input type="hidden" name="${this.name}" .value="${e}" />
4159
4081
  `):T}
4160
- `:f`
4082
+ `:v`
4161
4083
  <div class="InputWrapper" part="input-wrapper">
4162
4084
  ${t}
4163
4085
  <dui-icon class="Arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg></dui-icon>
4164
4086
  </div>
4165
- ${this.name?f`
4087
+ ${this.name?v`
4166
4088
  <input type="hidden" name="${this.name}" .value="${this.value}" />
4167
4089
  `:T}
4168
- `}};ft=C(jE),Yf=new WeakMap,Xf=new WeakMap,Jf=new WeakMap,Qf=new WeakMap,Zf=new WeakMap,tv=new WeakMap,ev=new WeakMap,rv=new WeakMap,G=new WeakSet,iv=new WeakMap,zt=new WeakMap,fn=new WeakMap,hi=new WeakMap,av=function(){let t=e(this,G,Nl).toLowerCase(),r=this.options;return t?r.filter(a=>a.label.toLowerCase().includes(t)):r},Bl=new WeakMap,Dl=new WeakMap,ql=new WeakMap,lv=function(t){if(this.multiple){let r=new Set(this.values),a=!r.has(t.value);a?r.add(t.value):r.delete(t.value),this.values=r,h(this,G,"",pi),h(this,G,-1,gr),this.dispatchEvent(nv({value:t.value,selected:a,values:r})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,h(this,G,t.label,pi),this.dispatchEvent(WE({value:t.value,option:t})),e(this,zt).close()},dv=function(t){let r=new Set(this.values);r.delete(t),this.values=r,this.dispatchEvent(nv({value:t,selected:!1,values:r}))},Vl=new WeakMap,Ul=new WeakMap,jl=new WeakMap,Wl=new WeakMap,Kl=new WeakMap,Gl=new WeakMap,l(ft,4,"options",UE,ne,Yf),l(ft,4,"value",VE,ne,Xf),l(ft,4,"values",qE,ne,Jf),l(ft,4,"multiple",DE,ne,Qf),l(ft,4,"placeholder",BE,ne,Zf),l(ft,4,"disabled",NE,ne,tv),l(ft,4,"name",HE,ne,ev),ov=l(ft,20,"#highlightedIndex",FE,G,rv),Yr=ov.get,gr=ov.set,sv=l(ft,20,"#inputValue",ME,G,iv),Nl=sv.get,pi=sv.set,S(ft,ne),b(ne,"tagName","dui-combobox"),b(ne,"styles",[y,nP,aP]);var KE=[ne];var qe=Symbol("dui-command");var vn=(n,o,t,r)=>{if(!n)return 1;let a=n.toLowerCase(),d=o.toLowerCase(),p=t.toLowerCase();if(d===a)return 1;if(d.startsWith(a))return .8;if(p.startsWith(a))return .75;if(d.includes(a))return .7;if(p.includes(a))return .6;for(let v of r)if(v.toLowerCase().startsWith(a))return .5;for(let v of r)if(v.toLowerCase().includes(a))return .4;return 0};var dP=O("select",{bubbles:!0,composed:!0}),cP=O("search-change",{bubbles:!0,composed:!0}),pP=O("escape",{bubbles:!0,composed:!0}),hP=0,uP=()=>`dui-command-${++hP}`,mP=c`
4090
+ `}};mt=S(aS),Km=new WeakMap,Wm=new WeakMap,Gm=new WeakMap,Ym=new WeakMap,Xm=new WeakMap,Qm=new WeakMap,Jm=new WeakMap,Zm=new WeakMap,W=new WeakSet,ef=new WeakMap,_t=new WeakMap,Us=new WeakMap,Jo=new WeakMap,sf=function(){let t=r(this,W,Ga).toLowerCase(),e=this.options;return t?e.filter(a=>a.label.toLowerCase().includes(t)):e},Ya=new WeakMap,Xa=new WeakMap,Qa=new WeakMap,nf=function(t){if(this.multiple){let e=new Set(this.values),a=!e.has(t.value);a?e.add(t.value):e.delete(t.value),this.values=e,h(this,W,"",Qo),h(this,W,-1,ar),this.dispatchEvent(of({value:t.value,selected:a,values:e})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,h(this,W,t.label,Qo),this.dispatchEvent(lS({value:t.value,option:t})),r(this,_t).close()},af=function(t){let e=new Set(this.values);e.delete(t),this.values=e,this.dispatchEvent(of({value:t,selected:!1,values:e}))},Ja=new WeakMap,Za=new WeakMap,tl=new WeakMap,el=new WeakMap,rl=new WeakMap,ol=new WeakMap,d(mt,4,"options",nS,se,Km),d(mt,4,"value",sS,se,Wm),d(mt,4,"values",iS,se,Gm),d(mt,4,"multiple",oS,se,Ym),d(mt,4,"placeholder",rS,se,Xm),d(mt,4,"disabled",eS,se,Qm),d(mt,4,"name",tS,se,Jm),tf=d(mt,20,"#highlightedIndex",ZC,W,Zm),Fr=tf.get,ar=tf.set,rf=d(mt,20,"#inputValue",JC,W,ef),Ga=rf.get,Qo=rf.set,C(mt,se),g(se,"tagName","dui-combobox"),g(se,"styles",[w,S_,E_]);var Pe=Symbol("dui-command");var js=(n,o,t,e)=>{if(!n)return 1;let a=n.toLowerCase(),l=o.toLowerCase(),p=t.toLowerCase();if(l===a)return 1;if(l.startsWith(a))return .8;if(p.startsWith(a))return .75;if(l.includes(a))return .7;if(p.includes(a))return .6;for(let f of e)if(f.toLowerCase().startsWith(a))return .5;for(let f of e)if(f.toLowerCase().includes(a))return .4;return 0};var T_=_("select",{bubbles:!0,composed:!0}),R_=_("search-change",{bubbles:!0,composed:!0}),I_=_("escape",{bubbles:!0,composed:!0}),A_=0,__=()=>`dui-command-${++A_}`,O_=c`
4169
4091
  :host {
4170
4092
  display: flex;
4171
4093
  flex-direction: column;
4172
4094
  overflow: hidden;
4173
4095
  }
4174
- `,GE,YE,XE,JE,QE,ZE,t1,e1,$t,cv,pv,hv,uv,mv,fv,Ro,r1,it,vv,gv,gn,bn,Io,Ao,yn,br,Xl,o1,Jl,is,Ql,Zl,td,ed,rd,od,id,sd,nd,xn,wn,bv,Yl,Ee=class extends(e1=g,t1=[u({type:Boolean})],ZE=[u({type:Boolean,attribute:"should-filter"})],QE=[u({type:String})],JE=[u({attribute:!1})],XE=[k()],YE=[k()],GE=[yt({context:qe}),k()],e1){constructor(){super(...arguments);s(this,it);s(this,cv,i($t,8,this,!1)),i($t,11,this);s(this,pv,i($t,12,this,!0)),i($t,15,this);s(this,hv,i($t,16,this)),i($t,19,this);s(this,uv,i($t,20,this)),i($t,23,this);s(this,mv,i($t,24,this,"")),i($t,27,this);s(this,vv,i($t,28,this)),i($t,31,this);s(this,Io,new Map);s(this,Ao,[]);s(this,yn,new Set);s(this,br,new Map);s(this,Xl,uP());s(this,Jl,t=>this.shouldFilter?e(this,br).get(t)??0:1);s(this,Ql,()=>m(this,it,is).call(this).length);s(this,Zl,t=>m(this,it,is).call(this).filter(r=>r.groupId===t).length);s(this,td,t=>{e(this,Io).set(t.id,t),e(this,Ao).includes(t.id)||e(this,Ao).push(t.id);let r=this.filter?this.filter(t.value,e(this,it,Ro),t.keywords):vn(e(this,it,Ro),t.value,t.textContent,t.keywords);if(e(this,br).set(t.id,r),!e(this,it,gn)){let a=m(this,it,is).call(this);a.length>0&&!a[0].disabled&&h(this,it,a[0].id,bn)}this.requestUpdate()});s(this,ed,t=>{e(this,Io).delete(t),h(this,Ao,e(this,Ao).filter(r=>r!==t)),e(this,br).delete(t),this.requestUpdate()});s(this,rd,t=>{e(this,Io).set(t.id,t);let r=this.filter?this.filter(t.value,e(this,it,Ro),t.keywords):vn(e(this,it,Ro),t.value,t.textContent,t.keywords);e(this,br).set(t.id,r),this.requestUpdate()});s(this,od,t=>{e(this,yn).add(t)});s(this,id,t=>{e(this,yn).delete(t)});s(this,sd,t=>{h(this,it,t,r1),m(this,it,o1).call(this);let a=m(this,it,is).call(this).find(d=>!d.disabled);h(this,it,a?.id,bn),this.dispatchEvent(cP(t))});s(this,nd,t=>{h(this,it,t,bn)});s(this,xn,t=>{this.dispatchEvent(dP(t))});s(this,wn,t=>{let r=m(this,it,is).call(this).filter(p=>!p.disabled);if(r.length===0)return;let a=r.findIndex(p=>p.id===e(this,it,gn)),d=p=>{let v=r[p];v&&h(this,it,v.id,bn)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a<r.length-1?d(a+1):this.loop&&d(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a>0?d(a-1):this.loop&&d(r.length-1);break}case"Home":{t.preventDefault(),d(0);break}case"End":{t.preventDefault(),d(r.length-1);break}case"Enter":{t.preventDefault();let p=r.find(v=>v.id===e(this,it,gn));p&&e(this,xn).call(this,p.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(pP());break}}});s(this,bv,i($t,32,this,m(this,it,Yl).call(this))),i($t,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,wn)),this._ctx=m(this,it,Yl).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,wn))}willUpdate(){this._ctx=m(this,it,Yl).call(this)}render(){return f`<slot></slot>`}};$t=C(e1),cv=new WeakMap,pv=new WeakMap,hv=new WeakMap,uv=new WeakMap,mv=new WeakMap,it=new WeakSet,vv=new WeakMap,Io=new WeakMap,Ao=new WeakMap,yn=new WeakMap,br=new WeakMap,Xl=new WeakMap,o1=function(){e(this,br).clear();for(let[t,r]of e(this,Io)){let a=this.filter?this.filter(r.value,e(this,it,Ro),r.keywords):vn(e(this,it,Ro),r.value,r.textContent,r.keywords);e(this,br).set(t,a)}},Jl=new WeakMap,is=function(){return e(this,Ao).map(t=>e(this,Io).get(t)).filter(t=>t?this.shouldFilter?(e(this,br).get(t.id)??0)>0:!0:!1)},Ql=new WeakMap,Zl=new WeakMap,td=new WeakMap,ed=new WeakMap,rd=new WeakMap,od=new WeakMap,id=new WeakMap,sd=new WeakMap,nd=new WeakMap,xn=new WeakMap,wn=new WeakMap,bv=new WeakMap,Yl=function(){return{search:e(this,it,Ro),selectedItemId:e(this,it,gn),listId:e(this,Xl),loop:this.loop,shouldFilter:this.shouldFilter,getScore:e(this,Jl),getVisibleCount:e(this,Ql),getGroupVisibleCount:e(this,Zl),registerItem:e(this,td),unregisterItem:e(this,ed),updateItem:e(this,rd),registerGroup:e(this,od),unregisterGroup:e(this,id),setSearch:e(this,sd),selectItem:e(this,nd),handleItemSelect:e(this,xn)}},l($t,4,"loop",t1,Ee,cv),l($t,4,"shouldFilter",ZE,Ee,pv),l($t,4,"value",QE,Ee,hv),l($t,4,"filter",JE,Ee,uv),fv=l($t,20,"#search",XE,it,mv),Ro=fv.get,r1=fv.set,gv=l($t,20,"#selectedItemId",YE,it,vv),gn=gv.get,bn=gv.set,l($t,4,"_ctx",GE,Ee,bv),S($t,Ee),b(Ee,"tagName","dui-command"),b(Ee,"styles",[y,mP]);var fP=c`
4096
+ `,dS,cS,pS,hS,uS,mS,fS,vS,St,lf,df,cf,pf,hf,uf,ao,gS,et,mf,ff,Ks,Ws,lo,co,Gs,lr,sl,bS,nl,Ki,al,ll,dl,cl,pl,hl,ul,ml,fl,Ys,Xs,vf,il,ze=class extends(vS=b,fS=[u({type:Boolean})],mS=[u({type:Boolean,attribute:"should-filter"})],uS=[u({type:String})],hS=[u({attribute:!1})],pS=[k()],cS=[k()],dS=[bt({context:Pe}),k()],vS){constructor(){super(...arguments);s(this,et);s(this,lf,i(St,8,this,!1)),i(St,11,this);s(this,df,i(St,12,this,!0)),i(St,15,this);s(this,cf,i(St,16,this)),i(St,19,this);s(this,pf,i(St,20,this)),i(St,23,this);s(this,hf,i(St,24,this,"")),i(St,27,this);s(this,mf,i(St,28,this)),i(St,31,this);s(this,lo,new Map);s(this,co,[]);s(this,Gs,new Set);s(this,lr,new Map);s(this,sl,__());s(this,nl,t=>this.shouldFilter?r(this,lr).get(t)??0:1);s(this,al,()=>m(this,et,Ki).call(this).length);s(this,ll,t=>m(this,et,Ki).call(this).filter(e=>e.groupId===t).length);s(this,dl,t=>{r(this,lo).set(t.id,t),r(this,co).includes(t.id)||r(this,co).push(t.id);let e=this.filter?this.filter(t.value,r(this,et,ao),t.keywords):js(r(this,et,ao),t.value,t.textContent,t.keywords);if(r(this,lr).set(t.id,e),!r(this,et,Ks)){let a=m(this,et,Ki).call(this);a.length>0&&!a[0].disabled&&h(this,et,a[0].id,Ws)}this.requestUpdate()});s(this,cl,t=>{r(this,lo).delete(t),h(this,co,r(this,co).filter(e=>e!==t)),r(this,lr).delete(t),this.requestUpdate()});s(this,pl,t=>{r(this,lo).set(t.id,t);let e=this.filter?this.filter(t.value,r(this,et,ao),t.keywords):js(r(this,et,ao),t.value,t.textContent,t.keywords);r(this,lr).set(t.id,e),this.requestUpdate()});s(this,hl,t=>{r(this,Gs).add(t)});s(this,ul,t=>{r(this,Gs).delete(t)});s(this,ml,t=>{h(this,et,t,gS),m(this,et,bS).call(this);let a=m(this,et,Ki).call(this).find(l=>!l.disabled);h(this,et,a?.id,Ws),this.dispatchEvent(R_(t))});s(this,fl,t=>{h(this,et,t,Ws)});s(this,Ys,t=>{this.dispatchEvent(T_(t))});s(this,Xs,t=>{let e=m(this,et,Ki).call(this).filter(p=>!p.disabled);if(e.length===0)return;let a=e.findIndex(p=>p.id===r(this,et,Ks)),l=p=>{let f=e[p];f&&h(this,et,f.id,Ws)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a<e.length-1?l(a+1):this.loop&&l(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a>0?l(a-1):this.loop&&l(e.length-1);break}case"Home":{t.preventDefault(),l(0);break}case"End":{t.preventDefault(),l(e.length-1);break}case"Enter":{t.preventDefault();let p=e.find(f=>f.id===r(this,et,Ks));p&&r(this,Ys).call(this,p.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(I_());break}}});s(this,vf,i(St,32,this,m(this,et,il).call(this))),i(St,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",r(this,Xs)),this._ctx=m(this,et,il).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",r(this,Xs))}willUpdate(){this._ctx=m(this,et,il).call(this)}render(){return v`<slot></slot>`}};St=S(vS),lf=new WeakMap,df=new WeakMap,cf=new WeakMap,pf=new WeakMap,hf=new WeakMap,et=new WeakSet,mf=new WeakMap,lo=new WeakMap,co=new WeakMap,Gs=new WeakMap,lr=new WeakMap,sl=new WeakMap,bS=function(){r(this,lr).clear();for(let[t,e]of r(this,lo)){let a=this.filter?this.filter(e.value,r(this,et,ao),e.keywords):js(r(this,et,ao),e.value,e.textContent,e.keywords);r(this,lr).set(t,a)}},nl=new WeakMap,Ki=function(){return r(this,co).map(t=>r(this,lo).get(t)).filter(t=>t?this.shouldFilter?(r(this,lr).get(t.id)??0)>0:!0:!1)},al=new WeakMap,ll=new WeakMap,dl=new WeakMap,cl=new WeakMap,pl=new WeakMap,hl=new WeakMap,ul=new WeakMap,ml=new WeakMap,fl=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,vf=new WeakMap,il=function(){return{search:r(this,et,ao),selectedItemId:r(this,et,Ks),listId:r(this,sl),loop:this.loop,shouldFilter:this.shouldFilter,getScore:r(this,nl),getVisibleCount:r(this,al),getGroupVisibleCount:r(this,ll),registerItem:r(this,dl),unregisterItem:r(this,cl),updateItem:r(this,pl),registerGroup:r(this,hl),unregisterGroup:r(this,ul),setSearch:r(this,ml),selectItem:r(this,fl),handleItemSelect:r(this,Ys)}},d(St,4,"loop",fS,ze,lf),d(St,4,"shouldFilter",mS,ze,df),d(St,4,"value",uS,ze,cf),d(St,4,"filter",hS,ze,pf),uf=d(St,20,"#search",pS,et,hf),ao=uf.get,gS=uf.set,ff=d(St,20,"#selectedItemId",cS,et,mf),Ks=ff.get,Ws=ff.set,d(St,4,"_ctx",dS,ze,vf),C(St,ze),g(ze,"tagName","dui-command"),g(ze,"styles",[w,O_]);var L_=c`
4175
4097
  :host {
4176
4098
  display: block;
4177
4099
  }
@@ -4194,7 +4116,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4194
4116
  background: transparent;
4195
4117
  padding: 0;
4196
4118
  }
4197
- `,i1,s1,n1,ui,yv,xv,ss,ad,ld,yr=class extends(n1=g,s1=[u({type:String})],i1=[at({context:qe,subscribe:!0})],n1){constructor(){super(...arguments);s(this,yv,i(ui,8,this,"Search...")),i(ui,11,this);s(this,xv,i(ui,12,this)),i(ui,15,this);s(this,ss);s(this,ad,t=>{let r=t.target;this._ctx?.setSearch(r.value)});s(this,ld,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(e(this,ss)!==void 0&&this._ctx?.search===""&&e(this,ss)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}h(this,ss,this._ctx?.search)}render(){return f`
4119
+ `,yS,xS,wS,Zo,gf,bf,Wi,vl,gl,Hr=class extends(wS=b,xS=[u({type:String})],yS=[ot({context:Pe,subscribe:!0})],wS){constructor(){super(...arguments);s(this,gf,i(Zo,8,this,"Search...")),i(Zo,11,this);s(this,bf,i(Zo,12,this)),i(Zo,15,this);s(this,Wi);s(this,vl,t=>{let e=t.target;this._ctx?.setSearch(e.value)});s(this,gl,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(r(this,Wi)!==void 0&&this._ctx?.search===""&&r(this,Wi)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}h(this,Wi,this._ctx?.search)}render(){return v`
4198
4120
  <div class="InputWrapper">
4199
4121
  <svg
4200
4122
  class="SearchIcon"
@@ -4219,11 +4141,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4219
4141
  aria-controls="${this._ctx?.listId??T}"
4220
4142
  aria-activedescendant="${this._ctx?.selectedItemId??T}"
4221
4143
  .placeholder="${this.placeholder}"
4222
- @input="${e(this,ad)}"
4223
- @keydown="${e(this,ld)}"
4144
+ @input="${r(this,vl)}"
4145
+ @keydown="${r(this,gl)}"
4224
4146
  />
4225
4147
  </div>
4226
- `}};ui=C(n1),yv=new WeakMap,xv=new WeakMap,ss=new WeakMap,ad=new WeakMap,ld=new WeakMap,l(ui,4,"placeholder",s1,yr,yv),l(ui,4,"_ctx",i1,yr,xv),S(ui,yr),b(yr,"tagName","dui-command-input"),b(yr,"styles",[y,fP]);var vP=c`
4148
+ `}};Zo=S(wS),gf=new WeakMap,bf=new WeakMap,Wi=new WeakMap,vl=new WeakMap,gl=new WeakMap,d(Zo,4,"placeholder",xS,Hr,gf),d(Zo,4,"_ctx",yS,Hr,bf),C(Zo,Hr),g(Hr,"tagName","dui-command-input"),g(Hr,"styles",[w,L_]);var P_=c`
4227
4149
  :host {
4228
4150
  display: block;
4229
4151
  }
@@ -4231,7 +4153,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4231
4153
  .List {
4232
4154
  overflow: hidden;
4233
4155
  }
4234
- `,a1,l1,dd,wv,Xr=class extends(l1=g,a1=[at({context:qe,subscribe:!0})],l1){constructor(){super(...arguments);s(this,wv,i(dd,8,this)),i(dd,11,this)}render(){return f`
4156
+ `,kS,CS,bl,yf,po=class extends(CS=b,kS=[ot({context:Pe,subscribe:!0})],CS){constructor(){super(...arguments);s(this,yf,i(bl,8,this)),i(bl,11,this)}render(){return v`
4235
4157
  <dui-scroll-area>
4236
4158
  <div
4237
4159
  class="List"
@@ -4241,7 +4163,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4241
4163
  <slot></slot>
4242
4164
  </div>
4243
4165
  </dui-scroll-area>
4244
- `}};dd=C(l1),wv=new WeakMap,l(dd,4,"_ctx",a1,Xr,wv),S(dd,Xr),b(Xr,"tagName","dui-command-list"),b(Xr,"styles",[y,vP]);var gP=0,bP=()=>`dui-command-group-${++gP}`,yP=c`
4166
+ `}};bl=S(CS),yf=new WeakMap,d(bl,4,"_ctx",kS,po,yf),C(bl,po),g(po,"tagName","dui-command-list"),g(po,"styles",[w,P_]);var z_=0,M_=()=>`dui-command-group-${++z_}`,D_=c`
4245
4167
  :host {
4246
4168
  display: block;
4247
4169
  }
@@ -4253,12 +4175,12 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4253
4175
  .Group {
4254
4176
  overflow: hidden;
4255
4177
  }
4256
- `,d1,c1,p1,mi,kv,Sv,fi,xr=class extends(p1=g,c1=[u({type:String})],d1=[at({context:qe,subscribe:!0})],p1){constructor(){super(...arguments);s(this,kv,i(mi,8,this,"")),i(mi,11,this);s(this,Sv,i(mi,12,this)),i(mi,15,this);s(this,fi,bP())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",e(this,fi)),this._ctx?.registerGroup(e(this,fi))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(e(this,fi))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(e(this,fi))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return f`
4178
+ `,SS,ES,$S,ti,xf,wf,ei,Nr=class extends($S=b,ES=[u({type:String})],SS=[ot({context:Pe,subscribe:!0})],$S){constructor(){super(...arguments);s(this,xf,i(ti,8,this,"")),i(ti,11,this);s(this,wf,i(ti,12,this)),i(ti,15,this);s(this,ei,M_())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",r(this,ei)),this._ctx?.registerGroup(r(this,ei))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(r(this,ei))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(r(this,ei))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return v`
4257
4179
  <div class="Group" role="group" aria-label="${this.heading||T}">
4258
- ${this.heading?f`<div class="Heading" aria-hidden="true">${this.heading}</div>`:T}
4180
+ ${this.heading?v`<div class="Heading" aria-hidden="true">${this.heading}</div>`:T}
4259
4181
  <slot></slot>
4260
4182
  </div>
4261
- `}};mi=C(p1),kv=new WeakMap,Sv=new WeakMap,fi=new WeakMap,l(mi,4,"heading",c1,xr,kv),l(mi,4,"_ctx",d1,xr,Sv),S(mi,xr),b(xr,"tagName","dui-command-group"),b(xr,"styles",[y,yP]);var xP=0,wP=()=>`dui-command-item-${++xP}`,kP=c`
4183
+ `}};ti=S($S),xf=new WeakMap,wf=new WeakMap,ei=new WeakMap,d(ti,4,"heading",ES,Nr,xf),d(ti,4,"_ctx",SS,Nr,wf),C(ti,Nr),g(Nr,"tagName","dui-command-group"),g(Nr,"styles",[w,D_]);var F_=0,H_=()=>`dui-command-item-${++F_}`,N_=c`
4262
4184
  :host {
4263
4185
  display: block;
4264
4186
  }
@@ -4275,21 +4197,21 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4275
4197
  user-select: none;
4276
4198
  outline: none;
4277
4199
  }
4278
- `,h1,u1,m1,f1,v1,$e,Cv,Ev,$v,Tv,wr,ns,as,ls,ds,me,kn,g1,b1,Rv,cd,pd,Ve=class extends(v1=g,f1=[u({type:String})],m1=[u({type:Array,attribute:!1})],u1=[u({type:Boolean})],h1=[at({context:qe,subscribe:!0})],v1){constructor(){super(...arguments);s(this,me);s(this,Cv,i($e,8,this,"")),i($e,11,this);s(this,Ev,i($e,12,this,[])),i($e,15,this);s(this,$v,i($e,16,this,!1)),i($e,19,this);s(this,Tv,i($e,20,this)),i($e,23,this);s(this,wr,wP());s(this,ns);s(this,as);s(this,ls);s(this,ds,!1);s(this,cd,()=>{!this.disabled&&this._ctx?.selectedItemId!==e(this,wr)&&this._ctx?.selectItem(e(this,wr))});s(this,pd,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(m(this,me,Rv).call(this)),h(this,ds,!0),h(this,ns,this.value),h(this,as,this.keywords),h(this,ls,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(e(this,wr)),h(this,ds,!1)}willUpdate(){if(e(this,ds)){let t=e(this,ns)!==this.value,r=e(this,as)!==this.keywords,a=e(this,ls)!==this.disabled;(t||r||a)&&(this._ctx?.updateItem(m(this,me,Rv).call(this)),h(this,ns,this.value),h(this,as,this.keywords),h(this,ls,this.disabled))}this._ctx?.shouldFilter?e(this,me,g1)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),e(this,me,kn)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){e(this,me,kn)&&this.scrollIntoView({block:"nearest"})}render(){return f`
4200
+ `,TS,RS,IS,AS,_S,ye,kf,Cf,Sf,Ef,dr,Gi,Yi,Xi,Qi,ne,Qs,OS,LS,$f,yl,xl,Ye=class extends(_S=b,AS=[u({type:String})],IS=[u({type:Array,attribute:!1})],RS=[u({type:Boolean})],TS=[ot({context:Pe,subscribe:!0})],_S){constructor(){super(...arguments);s(this,ne);s(this,kf,i(ye,8,this,"")),i(ye,11,this);s(this,Cf,i(ye,12,this,[])),i(ye,15,this);s(this,Sf,i(ye,16,this,!1)),i(ye,19,this);s(this,Ef,i(ye,20,this)),i(ye,23,this);s(this,dr,H_());s(this,Gi);s(this,Yi);s(this,Xi);s(this,Qi,!1);s(this,yl,()=>{!this.disabled&&this._ctx?.selectedItemId!==r(this,dr)&&this._ctx?.selectItem(r(this,dr))});s(this,xl,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(m(this,ne,$f).call(this)),h(this,Qi,!0),h(this,Gi,this.value),h(this,Yi,this.keywords),h(this,Xi,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(r(this,dr)),h(this,Qi,!1)}willUpdate(){if(r(this,Qi)){let t=r(this,Gi)!==this.value,e=r(this,Yi)!==this.keywords,a=r(this,Xi)!==this.disabled;(t||e||a)&&(this._ctx?.updateItem(m(this,ne,$f).call(this)),h(this,Gi,this.value),h(this,Yi,this.keywords),h(this,Xi,this.disabled))}this._ctx?.shouldFilter?r(this,ne,OS)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),r(this,ne,Qs)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){r(this,ne,Qs)&&this.scrollIntoView({block:"nearest"})}render(){return v`
4279
4201
  <div
4280
4202
  class="Item"
4281
4203
  role="option"
4282
- id="${e(this,wr)}"
4283
- aria-selected="${e(this,me,kn)}"
4204
+ id="${r(this,dr)}"
4205
+ aria-selected="${r(this,ne,Qs)}"
4284
4206
  aria-disabled="${this.disabled}"
4285
- ?data-selected="${e(this,me,kn)}"
4207
+ ?data-selected="${r(this,ne,Qs)}"
4286
4208
  ?data-disabled="${this.disabled}"
4287
- @mousemove="${e(this,cd)}"
4288
- @click="${e(this,pd)}"
4209
+ @mousemove="${r(this,yl)}"
4210
+ @click="${r(this,xl)}"
4289
4211
  >
4290
4212
  <slot></slot>
4291
4213
  </div>
4292
- `}};$e=C(v1),Cv=new WeakMap,Ev=new WeakMap,$v=new WeakMap,Tv=new WeakMap,wr=new WeakMap,ns=new WeakMap,as=new WeakMap,ls=new WeakMap,ds=new WeakMap,me=new WeakSet,kn=function(){return this._ctx?.selectedItemId===e(this,wr)},g1=function(){return this._ctx?this._ctx.getScore(e(this,wr))>0:!0},b1=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},Rv=function(){return{id:e(this,wr),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:m(this,me,b1).call(this)}},cd=new WeakMap,pd=new WeakMap,l($e,4,"value",f1,Ve,Cv),l($e,4,"keywords",m1,Ve,Ev),l($e,4,"disabled",u1,Ve,$v),l($e,4,"_ctx",h1,Ve,Tv),S($e,Ve),b(Ve,"tagName","dui-command-item"),b(Ve,"styles",[y,kP]);var SP=c`
4214
+ `}};ye=S(_S),kf=new WeakMap,Cf=new WeakMap,Sf=new WeakMap,Ef=new WeakMap,dr=new WeakMap,Gi=new WeakMap,Yi=new WeakMap,Xi=new WeakMap,Qi=new WeakMap,ne=new WeakSet,Qs=function(){return this._ctx?.selectedItemId===r(this,dr)},OS=function(){return this._ctx?this._ctx.getScore(r(this,dr))>0:!0},LS=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},$f=function(){return{id:r(this,dr),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:m(this,ne,LS).call(this)}},yl=new WeakMap,xl=new WeakMap,d(ye,4,"value",AS,Ye,kf),d(ye,4,"keywords",IS,Ye,Cf),d(ye,4,"disabled",RS,Ye,Sf),d(ye,4,"_ctx",TS,Ye,Ef),C(ye,Ye),g(Ye,"tagName","dui-command-item"),g(Ye,"styles",[w,N_]);var B_=c`
4293
4215
  :host {
4294
4216
  display: block;
4295
4217
  }
@@ -4301,20 +4223,20 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4301
4223
  .Empty {
4302
4224
  text-align: center;
4303
4225
  }
4304
- `,y1,x1,hd,Iv,Jr=class extends(x1=g,y1=[at({context:qe,subscribe:!0})],x1){constructor(){super(...arguments);s(this,Iv,i(hd,8,this)),i(hd,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
4226
+ `,PS,zS,wl,Tf,ho=class extends(zS=b,PS=[ot({context:Pe,subscribe:!0})],zS){constructor(){super(...arguments);s(this,Tf,i(wl,8,this)),i(wl,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return v`
4305
4227
  <div class="Empty" role="status">
4306
4228
  <slot></slot>
4307
4229
  </div>
4308
- `}};hd=C(x1),Iv=new WeakMap,l(hd,4,"_ctx",y1,Jr,Iv),S(hd,Jr),b(Jr,"tagName","dui-command-empty"),b(Jr,"styles",[y,SP]);var CP=c`
4230
+ `}};wl=S(zS),Tf=new WeakMap,d(wl,4,"_ctx",PS,ho,Tf),C(wl,ho),g(ho,"tagName","dui-command-empty"),g(ho,"styles",[w,B_]);var V3=c`
4309
4231
  :host {
4310
4232
  display: block;
4311
4233
  }
4312
- `,Sn=class extends g{static tagName="dui-command-separator";static styles=[y,CP];render(){return f`<div class="Separator" role="separator"></div>`}};var EP=c`
4234
+ `;var W3=c`
4313
4235
  :host {
4314
4236
  display: inline-flex;
4315
4237
  margin-left: auto;
4316
4238
  }
4317
- `,Cn=class extends g{static tagName="dui-command-shortcut";static styles=[y,EP];render(){return f`<span class="Shortcut"><slot></slot></span>`}};var w1=[Ee,yr,Xr,xr,Ve,Jr,Sn,Cn];var k1="important",$P=" !"+k1,cs=Xi(class extends So{constructor(n){if(super(n),n.type!==tr.ATTRIBUTE||n.name!=="style"||n.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((o,t)=>{let r=n[t];return r==null?o:o+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(n,[o]){let{style:t}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(o)),this.render(o);for(let r of this.ft)o[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(let r in o){let a=o[r];if(a!=null){this.ft.add(r);let d=typeof a=="string"&&a.endsWith($P);r.includes("-")||d?t.setProperty(r,d?a.slice(0,-11):a,d?k1:""):t[r]=a}}return Zt}});var TP=O("sort-change",{bubbles:!0,composed:!0}),RP=O("page-change",{bubbles:!0,composed:!0}),IP=f`<svg
4239
+ `;var MS="important",U_=" !"+MS,Ji=Fi(class extends ro{constructor(n){if(super(n),n.type!==je.ATTRIBUTE||n.name!=="style"||n.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((o,t)=>{let e=n[t];return e==null?o:o+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(n,[o]){let{style:t}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(o)),this.render(o);for(let e of this.ft)o[e]==null&&(this.ft.delete(e),e.includes("-")?t.removeProperty(e):t[e]=null);for(let e in o){let a=o[e];if(a!=null){this.ft.add(e);let l=typeof a=="string"&&a.endsWith(U_);e.includes("-")||l?t.setProperty(e,l?a.slice(0,-11):a,l?MS:""):t[e]=a}}return jt}});var j_=_("sort-change",{bubbles:!0,composed:!0}),K_=_("page-change",{bubbles:!0,composed:!0}),W_=v`<svg
4318
4240
  xmlns="http://www.w3.org/2000/svg"
4319
4241
  width="100%"
4320
4242
  height="100%"
@@ -4327,7 +4249,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4327
4249
  >
4328
4250
  <path d="m7 15 5 5 5-5" />
4329
4251
  <path d="m7 9 5-5 5 5" />
4330
- </svg>`,AP=f`<svg
4252
+ </svg>`,G_=v`<svg
4331
4253
  xmlns="http://www.w3.org/2000/svg"
4332
4254
  width="100%"
4333
4255
  height="100%"
@@ -4339,7 +4261,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4339
4261
  stroke-linejoin="round"
4340
4262
  >
4341
4263
  <path d="m18 15-6-6-6 6" />
4342
- </svg>`,OP=f`<svg
4264
+ </svg>`,Y_=v`<svg
4343
4265
  xmlns="http://www.w3.org/2000/svg"
4344
4266
  width="100%"
4345
4267
  height="100%"
@@ -4351,11 +4273,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4351
4273
  stroke-linejoin="round"
4352
4274
  >
4353
4275
  <path d="m6 9 6 6 6-6" />
4354
- </svg>`;function LP(n,o){return n==null&&o==null?0:n==null?-1:o==null?1:typeof n=="number"&&typeof o=="number"?n-o:typeof n=="string"&&typeof o=="string"?n.localeCompare(o):n instanceof Date&&o instanceof Date?n.getTime()-o.getTime():String(n).localeCompare(String(o))}function PP(n,o){if(!o)return[...n];let{column:t,direction:r}=o,a=r==="asc"?1:-1;return[...n].sort((d,p)=>a*LP(d[t],p[t]))}function zP(n,o,t){let r=(o-1)*t;return n.slice(r,r+t)}var _P=c`
4276
+ </svg>`;function X_(n,o){return n==null&&o==null?0:n==null?-1:o==null?1:typeof n=="number"&&typeof o=="number"?n-o:typeof n=="string"&&typeof o=="string"?n.localeCompare(o):n instanceof Date&&o instanceof Date?n.getTime()-o.getTime():String(n).localeCompare(String(o))}function Q_(n,o){if(!o)return[...n];let{column:t,direction:e}=o,a=e==="asc"?1:-1;return[...n].sort((l,p)=>a*X_(l[t],p[t]))}function J_(n,o,t){let e=(o-1)*t;return n.slice(e,e+t)}var Z_=c`
4355
4277
  :host {
4356
4278
  display: block;
4357
4279
  }
4358
- `,MP=c`
4280
+ `,tO=c`
4359
4281
  .DataTable {
4360
4282
  display: flex;
4361
4283
  flex-direction: column;
@@ -4424,57 +4346,57 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4424
4346
  .PageButton:disabled {
4425
4347
  cursor: not-allowed;
4426
4348
  }
4427
- `,S1,C1,E1,$1,T1,R1,I1,A1,O1,wt,Av,Ov,Lv,Pv,zv,_v,Mv,Qr,ud,M,Fv,Hv,Zr,md,Nv,Bv,Dv,qv,En,L1,P1,$n,z1,_1,M1,F1,Te=class extends(O1=g,A1=[u({attribute:!1})],I1=[u({attribute:!1})],R1=[u({type:Number,attribute:"page-size"})],T1=[u({attribute:!1})],$1=[u({attribute:"empty-text"})],E1=[k()],C1=[k()],S1=[k()],O1){constructor(){super(...arguments);s(this,M);s(this,Av,i(wt,8,this,[])),i(wt,11,this);s(this,Ov,i(wt,12,this,[])),i(wt,15,this);s(this,Lv,i(wt,16,this,10)),i(wt,19,this);s(this,Pv,i(wt,20,this)),i(wt,23,this);s(this,zv,i(wt,24,this,"No results.")),i(wt,27,this);s(this,_v,i(wt,28,this,null)),i(wt,31,this);s(this,Fv,i(wt,32,this,1)),i(wt,35,this);s(this,Nv,i(wt,36,this,[])),i(wt,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&h(this,M,1,md);let r=PP(this.data,e(this,M,Qr));this.pageSize>0?h(this,M,zP(r,e(this,M,Zr),this.pageSize),qv):h(this,M,r,qv)}}render(){return f`
4349
+ `,DS,FS,HS,NS,BS,qS,VS,US,jS,yt,Rf,If,Af,_f,Of,Lf,Pf,Br,kl,M,zf,Mf,qr,Cl,Df,Ff,Hf,Nf,Js,KS,WS,Zs,GS,YS,XS,QS,Me=class extends(jS=b,US=[u({attribute:!1})],VS=[u({attribute:!1})],qS=[u({type:Number,attribute:"page-size"})],BS=[u({attribute:!1})],NS=[u({attribute:"empty-text"})],HS=[k()],FS=[k()],DS=[k()],jS){constructor(){super(...arguments);s(this,M);s(this,Rf,i(yt,8,this,[])),i(yt,11,this);s(this,If,i(yt,12,this,[])),i(yt,15,this);s(this,Af,i(yt,16,this,10)),i(yt,19,this);s(this,_f,i(yt,20,this)),i(yt,23,this);s(this,Of,i(yt,24,this,"No results.")),i(yt,27,this);s(this,Lf,i(yt,28,this,null)),i(yt,31,this);s(this,zf,i(yt,32,this,1)),i(yt,35,this);s(this,Df,i(yt,36,this,[])),i(yt,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&h(this,M,1,Cl);let e=Q_(this.data,r(this,M,Br));this.pageSize>0?h(this,M,J_(e,r(this,M,qr),this.pageSize),Nf):h(this,M,e,Nf)}}render(){return v`
4428
4350
  <div class="DataTable" part="root">
4429
4351
  <div class="TableWindow" part="table-window">
4430
4352
  <table part="table">
4431
- ${m(this,M,_1).call(this)} ${m(this,M,M1).call(this)}
4353
+ ${m(this,M,YS).call(this)} ${m(this,M,XS).call(this)}
4432
4354
  </table>
4433
4355
  </div>
4434
- ${m(this,M,F1).call(this)}
4356
+ ${m(this,M,QS).call(this)}
4435
4357
  </div>
4436
- `}};wt=C(O1),Av=new WeakMap,Ov=new WeakMap,Lv=new WeakMap,Pv=new WeakMap,zv=new WeakMap,_v=new WeakMap,M=new WeakSet,Fv=new WeakMap,Nv=new WeakMap,En=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},L1=function(){return{page:e(this,M,Zr),pageSize:this.pageSize,totalRows:this.data.length,totalPages:e(this,M,En)}},P1=function(t){e(this,M,Qr)?.column===t?e(this,M,Qr).direction==="asc"?h(this,M,{column:t,direction:"desc"},ud):h(this,M,null,ud):h(this,M,{column:t,direction:"asc"},ud),h(this,M,1,md),this.dispatchEvent(TP(e(this,M,Qr)))},$n=function(t){h(this,M,Math.max(1,Math.min(t,e(this,M,En))),md),this.dispatchEvent(RP(e(this,M,L1)))},z1=function(t){return t.sortable?e(this,M,Qr)?.column===t.key?f`<span class="SortIcon"
4437
- >${e(this,M,Qr).direction==="asc"?AP:OP}</span
4438
- >`:f`<span class="SortIcon">${IP}</span>`:T},_1=function(){return f`
4358
+ `}};yt=S(jS),Rf=new WeakMap,If=new WeakMap,Af=new WeakMap,_f=new WeakMap,Of=new WeakMap,Lf=new WeakMap,M=new WeakSet,zf=new WeakMap,Df=new WeakMap,Js=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},KS=function(){return{page:r(this,M,qr),pageSize:this.pageSize,totalRows:this.data.length,totalPages:r(this,M,Js)}},WS=function(t){r(this,M,Br)?.column===t?r(this,M,Br).direction==="asc"?h(this,M,{column:t,direction:"desc"},kl):h(this,M,null,kl):h(this,M,{column:t,direction:"asc"},kl),h(this,M,1,Cl),this.dispatchEvent(j_(r(this,M,Br)))},Zs=function(t){h(this,M,Math.max(1,Math.min(t,r(this,M,Js))),Cl),this.dispatchEvent(K_(r(this,M,KS)))},GS=function(t){return t.sortable?r(this,M,Br)?.column===t.key?v`<span class="SortIcon"
4359
+ >${r(this,M,Br).direction==="asc"?G_:Y_}</span
4360
+ >`:v`<span class="SortIcon">${W_}</span>`:T},YS=function(){return v`
4439
4361
  <thead>
4440
4362
  <tr>
4441
- ${this.columns.map(t=>{let r=t.width?{width:t.width}:{},a=t.sortable?e(this,M,Qr)?.column===t.key?e(this,M,Qr).direction==="asc"?"ascending":"descending":"none":void 0;return f`
4363
+ ${this.columns.map(t=>{let e=t.width?{width:t.width}:{},a=t.sortable?r(this,M,Br)?.column===t.key?r(this,M,Br).direction==="asc"?"ascending":"descending":"none":void 0;return v`
4442
4364
  <th
4443
- style=${cs(r)}
4365
+ style=${Ji(e)}
4444
4366
  aria-sort=${a??T}
4445
- @click=${t.sortable?()=>m(this,M,P1).call(this,t.key):T}
4367
+ @click=${t.sortable?()=>m(this,M,WS).call(this,t.key):T}
4446
4368
  >
4447
4369
  <span class="HeaderContent">
4448
- ${t.header} ${m(this,M,z1).call(this,t)}
4370
+ ${t.header} ${m(this,M,GS).call(this,t)}
4449
4371
  </span>
4450
4372
  </th>
4451
4373
  `})}
4452
4374
  </tr>
4453
4375
  </thead>
4454
- `},M1=function(){if(e(this,M,Dv).length===0)return f`
4376
+ `},XS=function(){if(r(this,M,Hf).length===0)return v`
4455
4377
  <tbody>
4456
4378
  <tr class="EmptyRow">
4457
4379
  <td colspan=${this.columns.length}>${this.emptyText}</td>
4458
4380
  </tr>
4459
4381
  </tbody>
4460
- `;let t=this.rowKey?(r,a)=>this.rowKey(r):(r,a)=>a;return f`
4382
+ `;let t=this.rowKey?(e,a)=>this.rowKey(e):(e,a)=>a;return v`
4461
4383
  <tbody>
4462
- ${Eo(e(this,M,Dv),t,r=>f`
4384
+ ${io(r(this,M,Hf),t,e=>v`
4463
4385
  <tr>
4464
- ${this.columns.map(a=>{let d=r[a.key],p=a.render?a.render(d,r):d??"";return f`<td>${p}</td>`})}
4386
+ ${this.columns.map(a=>{let l=e[a.key],p=a.render?a.render(l,e):l??"";return v`<td>${p}</td>`})}
4465
4387
  </tr>
4466
4388
  `)}
4467
4389
  </tbody>
4468
- `},F1=function(){if(this.pageSize<=0||this.data.length===0)return T;let t=(e(this,M,Zr)-1)*this.pageSize+1,r=Math.min(e(this,M,Zr)*this.pageSize,this.data.length),a=e(this,M,Zr)===1,d=e(this,M,Zr)===e(this,M,En);return f`
4390
+ `},QS=function(){if(this.pageSize<=0||this.data.length===0)return T;let t=(r(this,M,qr)-1)*this.pageSize+1,e=Math.min(r(this,M,qr)*this.pageSize,this.data.length),a=r(this,M,qr)===1,l=r(this,M,qr)===r(this,M,Js);return v`
4469
4391
  <div class="Pagination" part="pagination">
4470
4392
  <div class="PageInfo">
4471
- <span>${t}-${r} of ${this.data.length}</span>
4393
+ <span>${t}-${e} of ${this.data.length}</span>
4472
4394
  </div>
4473
4395
  <div class="PageControls">
4474
4396
  <button
4475
4397
  class="PageButton"
4476
4398
  ?disabled=${a}
4477
- @click=${()=>m(this,M,$n).call(this,1)}
4399
+ @click=${()=>m(this,M,Zs).call(this,1)}
4478
4400
  aria-label="First page"
4479
4401
  >
4480
4402
  <dui-icon style="--icon-size: var(--font-size-sm)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m11 17-5-5 5-5"/><path d="m18 17-5-5 5-5"/></svg></dui-icon>
@@ -4482,55 +4404,42 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4482
4404
  <button
4483
4405
  class="PageButton"
4484
4406
  ?disabled=${a}
4485
- @click=${()=>m(this,M,$n).call(this,e(this,M,Zr)-1)}
4407
+ @click=${()=>m(this,M,Zs).call(this,r(this,M,qr)-1)}
4486
4408
  aria-label="Previous page"
4487
4409
  >
4488
4410
  <dui-icon style="--icon-size: var(--font-size-sm)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg></dui-icon>
4489
4411
  </button>
4490
4412
  <button
4491
4413
  class="PageButton"
4492
- ?disabled=${d}
4493
- @click=${()=>m(this,M,$n).call(this,e(this,M,Zr)+1)}
4414
+ ?disabled=${l}
4415
+ @click=${()=>m(this,M,Zs).call(this,r(this,M,qr)+1)}
4494
4416
  aria-label="Next page"
4495
4417
  >
4496
4418
  <dui-icon style="--icon-size: var(--font-size-sm)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg></dui-icon>
4497
4419
  </button>
4498
4420
  <button
4499
4421
  class="PageButton"
4500
- ?disabled=${d}
4501
- @click=${()=>m(this,M,$n).call(this,e(this,M,En))}
4422
+ ?disabled=${l}
4423
+ @click=${()=>m(this,M,Zs).call(this,r(this,M,Js))}
4502
4424
  aria-label="Last page"
4503
4425
  >
4504
4426
  <dui-icon style="--icon-size: var(--font-size-sm)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 17 5-5-5-5"/><path d="m13 17 5-5-5-5"/></svg></dui-icon>
4505
4427
  </button>
4506
4428
  </div>
4507
4429
  </div>
4508
- `},l(wt,4,"columns",A1,Te,Av),l(wt,4,"data",I1,Te,Ov),l(wt,4,"pageSize",R1,Te,Lv),l(wt,4,"rowKey",T1,Te,Pv),l(wt,4,"emptyText",$1,Te,zv),Mv=l(wt,20,"#sort",E1,M,_v),Qr=Mv.get,ud=Mv.set,Hv=l(wt,20,"#page",C1,M,Fv),Zr=Hv.get,md=Hv.set,Bv=l(wt,20,"#displayRows",S1,M,Nv),Dv=Bv.get,qv=Bv.set,S(wt,Te),b(Te,"tagName","dui-data-table"),b(Te,"styles",[y,_P,MP]);var H1=[Te];var Oo=Symbol("dui-dialog");var Yv=O("open-change",{bubbles:!0,composed:!0}),FP=c`
4430
+ `},d(yt,4,"columns",US,Me,Rf),d(yt,4,"data",VS,Me,If),d(yt,4,"pageSize",qS,Me,Af),d(yt,4,"rowKey",BS,Me,_f),d(yt,4,"emptyText",NS,Me,Of),Pf=d(yt,20,"#sort",HS,M,Lf),Br=Pf.get,kl=Pf.set,Mf=d(yt,20,"#page",FS,M,zf),qr=Mf.get,Cl=Mf.set,Ff=d(yt,20,"#displayRows",DS,M,Df),Hf=Ff.get,Nf=Ff.set,C(yt,Me),g(Me,"tagName","dui-data-table"),g(Me,"styles",[w,Z_,tO]);var Zi=Symbol("dui-dialog");var Kf=_("open-change",{bubbles:!0,composed:!0}),eO=c`
4509
4431
  :host {
4510
4432
  display: contents;
4511
4433
  }
4512
- `,N1,B1,D1,q1,V1,Re,Vv,Uv,jv,Wv,U1,fd,Yt,vi,gd,bd,yd,xd,j1,wd,kd,Kv,Gv,HP,Xv,vd,kr=class extends(V1=g,q1=[u({type:Boolean,reflect:!0})],D1=[u({type:Boolean,attribute:"default-open"})],B1=[k()],N1=[yt({context:Oo}),k()],V1){constructor(){super(...arguments);s(this,Yt);s(this,Vv,i(Re,8,this)),i(Re,11,this);s(this,Uv,i(Re,12,this,!1)),i(Re,15,this);s(this,jv,i(Re,16,this,!1)),i(Re,19,this);s(this,vi,crypto.randomUUID().slice(0,8));s(this,gd,`dui-dialog-${e(this,vi)}`);s(this,bd,`dui-trigger-${e(this,vi)}`);s(this,yd,`dui-title-${e(this,vi)}`);s(this,xd,`dui-desc-${e(this,vi)}`);s(this,wd,()=>{this.open===void 0&&h(this,Yt,!0,fd),this.dispatchEvent(Yv({open:!0}))});s(this,kd,()=>{this.open===void 0&&h(this,Yt,!1,fd),this.dispatchEvent(Yv({open:!1}))});s(this,Kv,i(Re,20,this,m(this,Yt,vd).call(this))),i(Re,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Yt,!0,fd),h(this,Yt,m(this,Yt,vd).call(this),Xv)}willUpdate(){h(this,Yt,m(this,Yt,vd).call(this),Xv)}render(){return f`<slot></slot>`}};Re=C(V1),Vv=new WeakMap,Uv=new WeakMap,jv=new WeakMap,Yt=new WeakSet,vi=new WeakMap,gd=new WeakMap,bd=new WeakMap,yd=new WeakMap,xd=new WeakMap,j1=function(){return this.open??e(this,Yt,U1)},wd=new WeakMap,kd=new WeakMap,Kv=new WeakMap,vd=function(){return{open:e(this,Yt,j1),dialogId:e(this,gd),triggerId:e(this,bd),titleId:e(this,yd),descriptionId:e(this,xd),openDialog:e(this,wd),closeDialog:e(this,kd)}},l(Re,4,"open",q1,kr,Vv),l(Re,4,"defaultOpen",D1,kr,Uv),Wv=l(Re,20,"#internalOpen",B1,Yt,jv),U1=Wv.get,fd=Wv.set,Gv=l(Re,20,"#ctx",N1,Yt,Kv),HP=Gv.get,Xv=Gv.set,S(Re,kr),b(kr,"tagName","dui-dialog"),b(kr,"styles",[y,FP]);var NP=c`
4434
+ `,JS,ZS,tE,eE,rE,xe,Bf,qf,Vf,Uf,oE,Sl,ae,ri,$l,Tl,Rl,Il,iE,Al,_l,jf,El,cr=class extends(rE=b,eE=[u({type:Boolean,reflect:!0})],tE=[u({type:Boolean,attribute:"default-open"})],ZS=[k()],JS=[bt({context:Zi}),k()],rE){constructor(){super(...arguments);s(this,ae);s(this,Bf,i(xe,8,this)),i(xe,11,this);s(this,qf,i(xe,12,this,!1)),i(xe,15,this);s(this,Vf,i(xe,16,this,!1)),i(xe,19,this);s(this,ri,crypto.randomUUID().slice(0,8));s(this,$l,`dui-dialog-${r(this,ri)}`);s(this,Tl,`dui-trigger-${r(this,ri)}`);s(this,Rl,`dui-title-${r(this,ri)}`);s(this,Il,`dui-desc-${r(this,ri)}`);s(this,Al,()=>{this.open===void 0&&h(this,ae,!0,Sl),this.dispatchEvent(Kf({open:!0}))});s(this,_l,()=>{this.open===void 0&&h(this,ae,!1,Sl),this.dispatchEvent(Kf({open:!1}))});s(this,jf,i(xe,20,this,m(this,ae,El).call(this))),i(xe,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,ae,!0,Sl),this._ctx=m(this,ae,El).call(this)}willUpdate(){this._ctx=m(this,ae,El).call(this)}render(){return v`<slot></slot>`}};xe=S(rE),Bf=new WeakMap,qf=new WeakMap,Vf=new WeakMap,ae=new WeakSet,ri=new WeakMap,$l=new WeakMap,Tl=new WeakMap,Rl=new WeakMap,Il=new WeakMap,iE=function(){return this.open??r(this,ae,oE)},Al=new WeakMap,_l=new WeakMap,jf=new WeakMap,El=function(){return{open:r(this,ae,iE),dialogId:r(this,$l),triggerId:r(this,Tl),titleId:r(this,Rl),descriptionId:r(this,Il),openDialog:r(this,Al),closeDialog:r(this,_l)}},d(xe,4,"open",eE,cr,Bf),d(xe,4,"defaultOpen",tE,cr,qf),Uf=d(xe,20,"#internalOpen",ZS,ae,Vf),oE=Uf.get,Sl=Uf.set,d(xe,4,"_ctx",JS,cr,jf),C(xe,cr),g(cr,"tagName","dui-dialog"),g(cr,"styles",[w,eO]);var zq=c`
4513
4435
  :host {
4514
4436
  display: contents;
4515
4437
  }
4516
- `,BP=c`
4438
+ `,Mq=c`
4517
4439
  .Trigger {
4518
4440
  display: contents;
4519
4441
  }
4520
- `,Tn=class extends g{static tagName="dui-dialog-trigger";static styles=[y,NP,BP];#t=new V(this,{context:Oo,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let o=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",r=this.#t.value?.dialogId??"";return f`
4521
- <span
4522
- class="Trigger"
4523
- part="trigger"
4524
- id="${t}"
4525
- aria-haspopup="dialog"
4526
- aria-expanded="${o}"
4527
- aria-controls="${o?r:""}"
4528
- ?data-popup-open="${o}"
4529
- @click="${this.#e}"
4530
- >
4531
- <slot></slot>
4532
- </span>
4533
- `}};var DP=c`
4442
+ `;var rO=c`
4534
4443
  :host {
4535
4444
  display: contents;
4536
4445
  }
@@ -4539,7 +4448,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4539
4448
  :host(:not([mounted])) [part="popup"] {
4540
4449
  display: none;
4541
4450
  }
4542
- `,qP=c`
4451
+ `,oO=c`
4543
4452
  [part="backdrop"] {
4544
4453
  position: fixed;
4545
4454
  min-height: 100dvh;
@@ -4559,41 +4468,37 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4559
4468
  z-index: 1000;
4560
4469
  transition-property: opacity, transform;
4561
4470
  }
4562
- `,W1,K1,G1,Y1,X1,J1,Q1,Z1,Tt,Jv,Qv,Zv,tg,eg,rg,ps,ag,W,og,ig,lg,dg,sg,ng,to,cg,hs,eo,t$,e$,pg,r$,o$,Sd,i$,Cd,Ue=class extends(Z1=g,Q1=[u({type:Boolean,attribute:"keep-mounted"})],J1=[u({attribute:"initial-focus"})],X1=[u({attribute:"final-focus"})],Y1=[u()],G1=[k()],K1=[k()],W1=[k()],Z1){constructor(){super(...arguments);s(this,W);s(this,Jv,i(Tt,8,this,!1)),i(Tt,11,this);s(this,Qv,i(Tt,12,this)),i(Tt,15,this);s(this,Zv,i(Tt,16,this)),i(Tt,19,this);s(this,tg,i(Tt,20,this)),i(Tt,23,this);s(this,eg,i(Tt,24,this,!1)),i(Tt,27,this);s(this,og,i(Tt,28,this,!1)),i(Tt,31,this);s(this,sg,i(Tt,32,this,!1)),i(Tt,35,this);s(this,hs);s(this,eo,new V(this,{context:Oo,subscribe:!0}));s(this,Sd,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),e(this,eo).value?.closeDialog()),t.key==="Tab"&&m(this,W,i$).call(this,t)});s(this,Cd,()=>{e(this,eo).value?.closeDialog()})}updated(){let t=e(this,eo).value?.open??!1;t&&!e(this,W,ps)?m(this,W,t$).call(this):!t&&e(this,W,ps)&&!e(this,W,to)&&m(this,W,e$).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),e(this,W,ps)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=e(this,eo).value?.open??!1,r=e(this,eo).value?.titleId??"",a=e(this,eo).value?.descriptionId??"";return!e(this,W,ps)&&!this.keepMounted?f``:f`
4471
+ `,sE,nE,aE,lE,dE,cE,pE,hE,Et,Wf,Gf,Yf,Xf,Qf,Jf,ts,ov,j,Zf,tv,iv,sv,ev,rv,Vr,nv,es,Ur,uE,mE,av,fE,vE,Ol,gE,Ll,Xe=class extends(hE=b,pE=[u({type:Boolean,attribute:"keep-mounted"})],cE=[u({attribute:"initial-focus"})],dE=[u({attribute:"final-focus"})],lE=[u()],aE=[k()],nE=[k()],sE=[k()],hE){constructor(){super(...arguments);s(this,j);s(this,Wf,i(Et,8,this,!1)),i(Et,11,this);s(this,Gf,i(Et,12,this)),i(Et,15,this);s(this,Yf,i(Et,16,this)),i(Et,19,this);s(this,Xf,i(Et,20,this)),i(Et,23,this);s(this,Qf,i(Et,24,this,!1)),i(Et,27,this);s(this,Zf,i(Et,28,this,!1)),i(Et,31,this);s(this,ev,i(Et,32,this,!1)),i(Et,35,this);s(this,es);s(this,Ur,new J(this,{context:Zi,subscribe:!0}));s(this,Ol,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),r(this,Ur).value?.closeDialog()),t.key==="Tab"&&m(this,j,gE).call(this,t)});s(this,Ll,()=>{r(this,Ur).value?.closeDialog()})}updated(){let t=r(this,Ur).value?.open??!1;t&&!r(this,j,ts)?m(this,j,uE).call(this):!t&&r(this,j,ts)&&!r(this,j,Vr)&&m(this,j,mE).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),r(this,j,ts)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=r(this,Ur).value?.open??!1,e=r(this,Ur).value?.titleId??"",a=r(this,Ur).value?.descriptionId??"";return!r(this,j,ts)&&!this.keepMounted?v``:v`
4563
4472
  <div
4564
4473
  part="backdrop"
4565
- ?data-open="${t&&!e(this,W,to)}"
4566
- ?data-closed="${!t||e(this,W,to)}"
4567
- ?data-starting-style="${e(this,W,lg)}"
4568
- ?data-ending-style="${e(this,W,to)}"
4569
- @click="${e(this,Cd)}"
4474
+ ?data-open="${t&&!r(this,j,Vr)}"
4475
+ ?data-closed="${!t||r(this,j,Vr)}"
4476
+ ?data-starting-style="${r(this,j,iv)}"
4477
+ ?data-ending-style="${r(this,j,Vr)}"
4478
+ @click="${r(this,Ll)}"
4570
4479
  ></div>
4571
4480
  <div
4572
4481
  part="popup"
4573
4482
  role="dialog"
4574
4483
  aria-modal="true"
4575
- aria-labelledby="${r}"
4484
+ aria-labelledby="${e}"
4576
4485
  aria-describedby="${a}"
4577
- ?data-open="${t&&!e(this,W,to)}"
4578
- ?data-closed="${!t||e(this,W,to)}"
4579
- ?data-starting-style="${e(this,W,lg)}"
4580
- ?data-ending-style="${e(this,W,to)}"
4486
+ ?data-open="${t&&!r(this,j,Vr)}"
4487
+ ?data-closed="${!t||r(this,j,Vr)}"
4488
+ ?data-starting-style="${r(this,j,iv)}"
4489
+ ?data-ending-style="${r(this,j,Vr)}"
4581
4490
  tabindex="-1"
4582
- @keydown="${e(this,Sd)}"
4491
+ @keydown="${r(this,Ol)}"
4583
4492
  >
4584
- <h2 part="title" id="${r}"><slot name="title"></slot></h2>
4493
+ <h2 part="title" id="${e}"><slot name="title"></slot></h2>
4585
4494
  <p part="description" id="${a}"><slot name="description"></slot></p>
4586
4495
  <slot></slot>
4587
4496
  </div>
4588
- `}};Tt=C(Z1),Jv=new WeakMap,Qv=new WeakMap,Zv=new WeakMap,tg=new WeakMap,eg=new WeakMap,W=new WeakSet,og=new WeakMap,sg=new WeakMap,hs=new WeakMap,eo=new WeakMap,t$=async function(){h(this,hs,document.activeElement??void 0),h(this,W,!0,ag),h(this,W,!0,dg),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,W,!1,dg),await this.updateComplete,m(this,W,r$).call(this)},e$=function(){h(this,W,!0,cg);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){m(this,W,pg).call(this);return}let r=!1,a=()=>{r||(r=!0,t.removeEventListener("transitionend",d),clearTimeout(p),m(this,W,pg).call(this))},d=v=>{v.propertyName==="opacity"&&a()};t.addEventListener("transitionend",d);let p=setTimeout(a,200)},pg=function(){!e(this,W,to)&&!e(this,W,ps)||(h(this,W,!1,cg),this.keepMounted||h(this,W,!1,ag),m(this,W,o$).call(this))},r$=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let d=t.querySelector(this.initialFocus);if(d){d.focus();return}}let r=el(t);if(r){r.focus();return}let a=Wi(t);if(a.length>0){a[0].focus();return}t.focus()},o$=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}e(this,hs)?.focus(),h(this,hs,void 0)},Sd=new WeakMap,i$=function(t){let r=this.shadowRoot?.querySelector('[part="popup"]');if(!r)return;let a=Wi(r);if(a.length===0){t.preventDefault();return}let d=a[0],p=a[a.length-1],v=d.matches(":focus"),x=p.matches(":focus"),E=!a.some($=>$.matches(":focus"));t.shiftKey&&(v||E)?(t.preventDefault(),p.focus()):!t.shiftKey&&x&&(t.preventDefault(),d.focus())},Cd=new WeakMap,l(Tt,4,"keepMounted",Q1,Ue,Jv),l(Tt,4,"initialFocus",J1,Ue,Qv),l(Tt,4,"finalFocus",X1,Ue,Zv),l(Tt,4,"width",Y1,Ue,tg),rg=l(Tt,20,"#mounted",G1,W,eg),ps=rg.get,ag=rg.set,ig=l(Tt,20,"#startingStyle",K1,W,og),lg=ig.get,dg=ig.set,ng=l(Tt,20,"#endingStyle",W1,W,sg),to=ng.get,cg=ng.set,S(Tt,Ue),b(Ue,"tagName","dui-dialog-popup"),b(Ue,"styles",[y,DP,qP]);var VP=c`
4497
+ `}};Et=S(hE),Wf=new WeakMap,Gf=new WeakMap,Yf=new WeakMap,Xf=new WeakMap,Qf=new WeakMap,j=new WeakSet,Zf=new WeakMap,ev=new WeakMap,es=new WeakMap,Ur=new WeakMap,uE=async function(){h(this,es,document.activeElement??void 0),h(this,j,!0,ov),h(this,j,!0,sv),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,j,!1,sv),await this.updateComplete,m(this,j,fE).call(this)},mE=function(){h(this,j,!0,nv);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){m(this,j,av).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(p),m(this,j,av).call(this))},l=f=>{f.propertyName==="opacity"&&a()};t.addEventListener("transitionend",l);let p=setTimeout(a,200)},av=function(){!r(this,j,Vr)&&!r(this,j,ts)||(h(this,j,!1,nv),this.keepMounted||h(this,j,!1,ov),m(this,j,vE).call(this))},fE=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=ca(t);if(e){e.focus();return}let a=Pi(t);if(a.length>0){a[0].focus();return}t.focus()},vE=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}r(this,es)?.focus(),h(this,es,void 0)},Ol=new WeakMap,gE=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let a=Pi(e);if(a.length===0){t.preventDefault();return}let l=a[0],p=a[a.length-1],f=l.matches(":focus"),y=p.matches(":focus"),E=!a.some($=>$.matches(":focus"));t.shiftKey&&(f||E)?(t.preventDefault(),p.focus()):!t.shiftKey&&y&&(t.preventDefault(),l.focus())},Ll=new WeakMap,d(Et,4,"keepMounted",pE,Xe,Wf),d(Et,4,"initialFocus",cE,Xe,Gf),d(Et,4,"finalFocus",dE,Xe,Yf),d(Et,4,"width",lE,Xe,Xf),Jf=d(Et,20,"#mounted",aE,j,Qf),ts=Jf.get,ov=Jf.set,tv=d(Et,20,"#startingStyle",nE,j,Zf),iv=tv.get,sv=tv.set,rv=d(Et,20,"#endingStyle",sE,j,ev),Vr=rv.get,nv=rv.set,C(Et,Xe),g(Xe,"tagName","dui-dialog-popup"),g(Xe,"styles",[w,rO,oO]);var Xq=c`
4589
4498
  :host {
4590
4499
  display: contents;
4591
4500
  }
4592
- `,Rn=class extends g{static tagName="dui-dialog-close";static styles=[y,VP];#t=new V(this,{context:Oo,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
4593
- <span @click="${this.#e}">
4594
- <slot></slot>
4595
- </span>
4596
- `}};var s$=[kr,Tn,Ue,Rn];var v$=O("drop",{bubbles:!0,composed:!0}),g$=O("drop-accepted",{bubbles:!0,composed:!0}),b$=O("drop-rejected",{bubbles:!0,composed:!0}),UP=O("dragenter",{bubbles:!0,composed:!0}),jP=O("dragover",{bubbles:!0,composed:!0}),WP=O("dragleave",{bubbles:!0,composed:!0}),Ed=O("dropzone-error",{bubbles:!0,composed:!0}),KP=c`
4501
+ `;var RE=_("drop",{bubbles:!0,composed:!0}),IE=_("drop-accepted",{bubbles:!0,composed:!0}),AE=_("drop-rejected",{bubbles:!0,composed:!0}),nO=_("dragenter",{bubbles:!0,composed:!0}),aO=_("dragover",{bubbles:!0,composed:!0}),lO=_("dragleave",{bubbles:!0,composed:!0}),Pl=_("dropzone-error",{bubbles:!0,composed:!0}),dO=c`
4597
4502
  :host {
4598
4503
  display: block;
4599
4504
  }
@@ -4614,17 +4519,17 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4614
4519
  input[type="file"] {
4615
4520
  display: none;
4616
4521
  }
4617
- `,n$,a$,l$,d$,c$,p$,h$,u$,m$,f$,vt,hg,ug,mg,fg,vg,gg,bg,yg,xg,wg,y$,$d,ae,Td,Rd,Id,Ad,Od,Ld,Pd,kg,x$,w$,Rt=class Rt extends(f$=g,m$=[u({type:String,reflect:!0})],u$=[u({type:Boolean,reflect:!0})],h$=[u({type:Boolean,reflect:!0})],p$=[u({type:Number,reflect:!0,attribute:"max-files"})],c$=[u({type:Number,reflect:!0,attribute:"max-size"})],d$=[u({type:Number,reflect:!0,attribute:"min-size"})],l$=[u({type:Boolean,reflect:!0,attribute:"auto-focus"})],a$=[u({type:Boolean,reflect:!0,attribute:"no-style"})],n$=[k()],f$){constructor(){super(...arguments);s(this,ae);s(this,hg,i(vt,8,this)),i(vt,11,this);s(this,ug,i(vt,12,this,!1)),i(vt,15,this);s(this,mg,i(vt,16,this,!1)),i(vt,19,this);s(this,fg,i(vt,20,this,1/0)),i(vt,23,this);s(this,vg,i(vt,24,this,1/0)),i(vt,27,this);s(this,gg,i(vt,28,this,0)),i(vt,31,this);s(this,bg,i(vt,32,this,!1)),i(vt,35,this);s(this,yg,i(vt,36,this,!1)),i(vt,39,this);s(this,xg,i(vt,40,this,!1)),i(vt,43,this);s(this,Td,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,ae,!0,$d),this.dispatchEvent(UP()))});s(this,Rd,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(jP()))});s(this,Id,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,ae,!1,$d),this.dispatchEvent(WP()))});s(this,Ad,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){h(this,ae,!1,$d);try{let r=Array.from(t.dataTransfer?.files??[]);m(this,ae,kg).call(this,r)}catch(r){this.dispatchEvent(Ed({error:r,code:Rt.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});s(this,Od,()=>{this.disabled||this.openFileDialog()});s(this,Ld,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});s(this,Pd,t=>{if(this.disabled)return;let r=t.target,a=Array.from(r.files??[]);try{m(this,ae,kg).call(this,a)}catch(d){this.dispatchEvent(Ed({error:d,code:Rt.ERROR_CODES.FILE_PROCESSING_FAILED}))}finally{r.value=""}})}connectedCallback(){super.connectedCallback(),this.autoFocus&&!this.disabled&&this.updateComplete.then(()=>{this.shadowRoot?.querySelector("[part='root']")?.focus()})}openFileDialog(){if(this.disabled)return;let t=this.shadowRoot?.querySelector('input[type="file"]');if(t)try{t.click()}catch(r){this.dispatchEvent(Ed({error:r,code:Rt.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return f`
4522
+ `,bE,yE,xE,wE,kE,CE,SE,EE,$E,TE,ft,lv,dv,cv,pv,hv,uv,mv,fv,vv,gv,_E,zl,Qt,Dl,Fl,Hl,Nl,Bl,ql,Vl,bv,OE,LE,$t=class $t extends(TE=b,$E=[u({type:String,reflect:!0})],EE=[u({type:Boolean,reflect:!0})],SE=[u({type:Boolean,reflect:!0})],CE=[u({type:Number,reflect:!0,attribute:"max-files"})],kE=[u({type:Number,reflect:!0,attribute:"max-size"})],wE=[u({type:Number,reflect:!0,attribute:"min-size"})],xE=[u({type:Boolean,reflect:!0,attribute:"auto-focus"})],yE=[u({type:Boolean,reflect:!0,attribute:"no-style"})],bE=[k()],TE){constructor(){super(...arguments);s(this,Qt);s(this,lv,i(ft,8,this)),i(ft,11,this);s(this,dv,i(ft,12,this,!1)),i(ft,15,this);s(this,cv,i(ft,16,this,!1)),i(ft,19,this);s(this,pv,i(ft,20,this,1/0)),i(ft,23,this);s(this,hv,i(ft,24,this,1/0)),i(ft,27,this);s(this,uv,i(ft,28,this,0)),i(ft,31,this);s(this,mv,i(ft,32,this,!1)),i(ft,35,this);s(this,fv,i(ft,36,this,!1)),i(ft,39,this);s(this,vv,i(ft,40,this,!1)),i(ft,43,this);s(this,Dl,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,Qt,!0,zl),this.dispatchEvent(nO()))});s(this,Fl,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(aO()))});s(this,Hl,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,Qt,!1,zl),this.dispatchEvent(lO()))});s(this,Nl,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){h(this,Qt,!1,zl);try{let e=Array.from(t.dataTransfer?.files??[]);m(this,Qt,bv).call(this,e)}catch(e){this.dispatchEvent(Pl({error:e,code:$t.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});s(this,Bl,()=>{this.disabled||this.openFileDialog()});s(this,ql,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});s(this,Vl,t=>{if(this.disabled)return;let e=t.target,a=Array.from(e.files??[]);try{m(this,Qt,bv).call(this,a)}catch(l){this.dispatchEvent(Pl({error:l,code:$t.ERROR_CODES.FILE_PROCESSING_FAILED}))}finally{e.value=""}})}connectedCallback(){super.connectedCallback(),this.autoFocus&&!this.disabled&&this.updateComplete.then(()=>{this.shadowRoot?.querySelector("[part='root']")?.focus()})}openFileDialog(){if(this.disabled)return;let t=this.shadowRoot?.querySelector('input[type="file"]');if(t)try{t.click()}catch(e){this.dispatchEvent(Pl({error:e,code:$t.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return v`
4618
4523
  <div
4619
4524
  part="root"
4620
4525
  tabindex="${this.disabled?-1:0}"
4621
- ?data-dragover="${e(this,ae,y$)}"
4622
- @dragenter="${e(this,Td)}"
4623
- @dragover="${e(this,Rd)}"
4624
- @dragleave="${e(this,Id)}"
4625
- @drop="${e(this,Ad)}"
4626
- @click="${e(this,Od)}"
4627
- @keydown="${e(this,Ld)}"
4526
+ ?data-dragover="${r(this,Qt,_E)}"
4527
+ @dragenter="${r(this,Dl)}"
4528
+ @dragover="${r(this,Fl)}"
4529
+ @dragleave="${r(this,Hl)}"
4530
+ @drop="${r(this,Nl)}"
4531
+ @click="${r(this,Bl)}"
4532
+ @keydown="${r(this,ql)}"
4628
4533
  >
4629
4534
  <slot>
4630
4535
  <span>Drag and drop files here or click to select</span>
@@ -4635,104 +4540,12 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4635
4540
  ?multiple="${this.multiple}"
4636
4541
  accept="${this.accept||""}"
4637
4542
  ?disabled="${this.disabled}"
4638
- @change="${e(this,Pd)}"
4543
+ @change="${r(this,Vl)}"
4639
4544
  tabindex="-1"
4640
4545
  aria-hidden="true"
4641
4546
  hidden
4642
4547
  />
4643
- `}};vt=C(f$),hg=new WeakMap,ug=new WeakMap,mg=new WeakMap,fg=new WeakMap,vg=new WeakMap,gg=new WeakMap,bg=new WeakMap,yg=new WeakMap,xg=new WeakMap,ae=new WeakSet,Td=new WeakMap,Rd=new WeakMap,Id=new WeakMap,Ad=new WeakMap,Od=new WeakMap,Ld=new WeakMap,Pd=new WeakMap,kg=function(t){let{acceptedFiles:r,rejectedFiles:a}=m(this,ae,x$).call(this,t);this.dispatchEvent(v$({acceptedFiles:r,rejectedFiles:a})),r.length>0&&this.dispatchEvent(g$({acceptedFiles:r})),a.length>0&&this.dispatchEvent(b$({rejectedFiles:a}))},x$=function(t){let r=[],a=[],d=this.multiple?this.maxFiles:1;if(t.length>d){for(let p of t)a.push({file:p,errors:[{code:Rt.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:r,rejectedFiles:a}}for(let p of t){let v=[];p.size>this.maxSize&&v.push({code:Rt.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),p.size<this.minSize&&v.push({code:Rt.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!m(this,ae,w$).call(this,p)&&v.push({code:Rt.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),v.length>0?a.push({file:p,errors:v}):r.push(p)}return{acceptedFiles:r,rejectedFiles:a}},w$=function(t){if(!this.accept)return!0;let r=this.accept.split(",").map(a=>a.trim().toLowerCase());for(let a of r)if(a.startsWith(".")){if(t.name.toLowerCase().endsWith(a))return!0}else if(a.endsWith("/*")){let d=a.slice(0,-2);if(t.type.toLowerCase().startsWith(d))return!0}else if(t.type.toLowerCase()===a)return!0;return!1},l(vt,4,"accept",m$,Rt,hg),l(vt,4,"multiple",u$,Rt,ug),l(vt,4,"disabled",h$,Rt,mg),l(vt,4,"maxFiles",p$,Rt,fg),l(vt,4,"maxSize",c$,Rt,vg),l(vt,4,"minSize",d$,Rt,gg),l(vt,4,"autoFocus",l$,Rt,bg),l(vt,4,"noStyle",a$,Rt,yg),wg=l(vt,20,"#isDragOver",n$,ae,xg),y$=wg.get,$d=wg.set,S(vt,Rt),b(Rt,"tagName","dui-dropzone"),b(Rt,"styles",[y,KP]),b(Rt,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),b(Rt,"REJECTION_CODES",{TOO_MANY_FILES:"TOO_MANY_FILES",FILE_TOO_LARGE:"FILE_TOO_LARGE",FILE_TOO_SMALL:"FILE_TOO_SMALL",FILE_INVALID_TYPE:"FILE_INVALID_TYPE"});var In=Rt;var k$=[In];var GP=c`
4644
- :host {
4645
- --hstack-gap: var(--space-4);
4646
- --hstack-align: center;
4647
- --hstack-justify: stretch;
4648
- display: block;
4649
- width: 100%;
4650
- }
4651
-
4652
- :host([gap="0"]) {
4653
- --hstack-gap: var(--space-0);
4654
- }
4655
- :host([gap="1"]) {
4656
- --hstack-gap: var(--space-1);
4657
- }
4658
- :host([gap="2"]) {
4659
- --hstack-gap: var(--space-2);
4660
- }
4661
- :host([gap="3"]) {
4662
- --hstack-gap: var(--space-3);
4663
- }
4664
- :host([gap="4"]) {
4665
- --hstack-gap: var(--space-4);
4666
- }
4667
- :host([gap="5"]) {
4668
- --hstack-gap: var(--space-5);
4669
- }
4670
- :host([gap="6"]) {
4671
- --hstack-gap: var(--space-6);
4672
- }
4673
- :host([gap="8"]) {
4674
- --hstack-gap: var(--space-8);
4675
- }
4676
- :host([gap="10"]) {
4677
- --hstack-gap: var(--space-10);
4678
- }
4679
- :host([gap="12"]) {
4680
- --hstack-gap: var(--space-12);
4681
- }
4682
- :host([gap="16"]) {
4683
- --hstack-gap: var(--space-16);
4684
- }
4685
-
4686
- :host([align="start"]) {
4687
- --hstack-align: flex-start;
4688
- }
4689
- :host([align="center"]) {
4690
- --hstack-align: center;
4691
- }
4692
- :host([align="end"]) {
4693
- --hstack-align: flex-end;
4694
- }
4695
- :host([align="stretch"]) {
4696
- --hstack-align: stretch;
4697
- }
4698
- :host([align="baseline"]) {
4699
- --hstack-align: baseline;
4700
- }
4701
-
4702
- :host([justify="start"]) {
4703
- --hstack-justify: flex-start;
4704
- }
4705
- :host([justify="center"]) {
4706
- --hstack-justify: center;
4707
- }
4708
- :host([justify="end"]) {
4709
- --hstack-justify: flex-end;
4710
- }
4711
- :host([justify="between"]) {
4712
- --hstack-justify: space-between;
4713
- }
4714
- :host([justify="around"]) {
4715
- --hstack-justify: space-around;
4716
- }
4717
- :host([justify="evenly"]) {
4718
- --hstack-justify: space-evenly;
4719
- }
4720
- :host([justify="stretch"]) {
4721
- --hstack-justify: stretch;
4722
- }
4723
-
4724
- [part="root"] {
4725
- display: flex;
4726
- flex-direction: row;
4727
- gap: var(--hstack-gap);
4728
- align-items: var(--hstack-align);
4729
- justify-content: var(--hstack-justify);
4730
- }
4731
- `,S$,C$,E$,$$,Sr,Sg,Cg,Eg,ir=class extends($$=g,E$=[u({reflect:!0})],C$=[u({reflect:!0})],S$=[u({reflect:!0})],$$){constructor(){super(...arguments);s(this,Sg,i(Sr,8,this,"4")),i(Sr,11,this);s(this,Cg,i(Sr,12,this,"center")),i(Sr,15,this);s(this,Eg,i(Sr,16,this,"stretch")),i(Sr,19,this)}render(){return f`
4732
- <div part="root">
4733
- <slot></slot>
4734
- </div>
4735
- `}};Sr=C($$),Sg=new WeakMap,Cg=new WeakMap,Eg=new WeakMap,l(Sr,4,"gap",E$,ir,Sg),l(Sr,4,"align",C$,ir,Cg),l(Sr,4,"justify",S$,ir,Eg),S(Sr,ir),b(ir,"tagName","dui-hstack"),b(ir,"styles",[y,GP]);var T$=[ir];var YP=c`
4548
+ `}};ft=S(TE),lv=new WeakMap,dv=new WeakMap,cv=new WeakMap,pv=new WeakMap,hv=new WeakMap,uv=new WeakMap,mv=new WeakMap,fv=new WeakMap,vv=new WeakMap,Qt=new WeakSet,Dl=new WeakMap,Fl=new WeakMap,Hl=new WeakMap,Nl=new WeakMap,Bl=new WeakMap,ql=new WeakMap,Vl=new WeakMap,bv=function(t){let{acceptedFiles:e,rejectedFiles:a}=m(this,Qt,OE).call(this,t);this.dispatchEvent(RE({acceptedFiles:e,rejectedFiles:a})),e.length>0&&this.dispatchEvent(IE({acceptedFiles:e})),a.length>0&&this.dispatchEvent(AE({rejectedFiles:a}))},OE=function(t){let e=[],a=[],l=this.multiple?this.maxFiles:1;if(t.length>l){for(let p of t)a.push({file:p,errors:[{code:$t.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:e,rejectedFiles:a}}for(let p of t){let f=[];p.size>this.maxSize&&f.push({code:$t.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),p.size<this.minSize&&f.push({code:$t.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!m(this,Qt,LE).call(this,p)&&f.push({code:$t.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),f.length>0?a.push({file:p,errors:f}):e.push(p)}return{acceptedFiles:e,rejectedFiles:a}},LE=function(t){if(!this.accept)return!0;let e=this.accept.split(",").map(a=>a.trim().toLowerCase());for(let a of e)if(a.startsWith(".")){if(t.name.toLowerCase().endsWith(a))return!0}else if(a.endsWith("/*")){let l=a.slice(0,-2);if(t.type.toLowerCase().startsWith(l))return!0}else if(t.type.toLowerCase()===a)return!0;return!1},d(ft,4,"accept",$E,$t,lv),d(ft,4,"multiple",EE,$t,dv),d(ft,4,"disabled",SE,$t,cv),d(ft,4,"maxFiles",CE,$t,pv),d(ft,4,"maxSize",kE,$t,hv),d(ft,4,"minSize",wE,$t,uv),d(ft,4,"autoFocus",xE,$t,mv),d(ft,4,"noStyle",yE,$t,fv),gv=d(ft,20,"#isDragOver",bE,Qt,vv),_E=gv.get,zl=gv.set,C(ft,$t),g($t,"tagName","dui-dropzone"),g($t,"styles",[w,dO]),g($t,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),g($t,"REJECTION_CODES",{TOO_MANY_FILES:"TOO_MANY_FILES",FILE_TOO_LARGE:"FILE_TOO_LARGE",FILE_TOO_SMALL:"FILE_TOO_SMALL",FILE_INVALID_TYPE:"FILE_INVALID_TYPE"});var Ml=$t;var uV=c`
4736
4549
  :host {
4737
4550
  display: inline-flex;
4738
4551
  align-items: center;
@@ -4746,7 +4559,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4746
4559
  width: 100%;
4747
4560
  height: 100%;
4748
4561
  }
4749
- `,An=class extends g{static tagName="dui-icon";static styles=[y,YP];render(){return f`<slot></slot>`}};var R$=[An];var us=n=>n??T;var V$=O("input-change",{bubbles:!0,composed:!0}),XP=c`
4562
+ `;var rs=n=>n??T;var GE=_("input-change",{bubbles:!0,composed:!0}),pO=c`
4750
4563
  :host {
4751
4564
  display: block;
4752
4565
  }
@@ -4760,35 +4573,35 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4760
4573
  [part="input"]:disabled {
4761
4574
  cursor: not-allowed;
4762
4575
  }
4763
- `,I$,A$,O$,L$,P$,z$,_$,M$,F$,H$,N$,B$,D$,q$,Y,$g,Tg,Rg,Ig,Ag,Og,Lg,Pg,zg,_g,Mg,Fg,Hg,Ng,le,JP,lt,U$,j$,W$,Bg,On,zd,_d,Md,_t=class extends(q$=g,D$=[u({type:String})],B$=[u({type:String})],N$=[u({type:String})],H$=[u({type:Boolean,reflect:!0})],F$=[u({type:Boolean})],M$=[u({type:Boolean})],_$=[u({type:Number,attribute:"minlength"})],z$=[u({type:Number,attribute:"maxlength"})],P$=[u({type:String})],L$=[u({type:String})],O$=[u({type:String})],A$=[u({type:Boolean})],I$=[at({context:Ce,subscribe:!0}),k()],q$){constructor(){super(...arguments);s(this,lt);s(this,$g,i(Y,8,this,"text")),i(Y,11,this);s(this,Tg,i(Y,12,this,"")),i(Y,15,this);s(this,Rg,i(Y,16,this,"")),i(Y,19,this);s(this,Ig,i(Y,20,this,!1)),i(Y,23,this);s(this,Ag,i(Y,24,this,!1)),i(Y,27,this);s(this,Og,i(Y,28,this,!1)),i(Y,31,this);s(this,Lg,i(Y,32,this)),i(Y,35,this);s(this,Pg,i(Y,36,this)),i(Y,39,this);s(this,zg,i(Y,40,this)),i(Y,43,this);s(this,_g,i(Y,44,this,"")),i(Y,47,this);s(this,Mg,i(Y,48,this)),i(Y,51,this);s(this,Fg,i(Y,52,this,!1)),i(Y,55,this);s(this,Hg,i(Y,56,this)),i(Y,59,this);s(this,zd,t=>{let r=t.target;this.value=r.value,e(this,lt,le)?.markDirty(),e(this,lt,le)?.setFilled(this.value.length>0),this.dispatchEvent(V$({value:this.value}))});s(this,_d,()=>{e(this,lt,le)?.setFocused(!0)});s(this,Md,()=>{e(this,lt,le)?.setFocused(!1),e(this,lt,le)?.markTouched()})}firstUpdated(){this.autofocus&&this.focus()}render(){let t=[e(this,lt,j$),e(this,lt,On)?e(this,lt,W$):void 0].filter(Boolean).join(" ")||void 0;return f`
4576
+ `,PE,zE,ME,DE,FE,HE,NE,BE,qE,VE,UE,jE,KE,WE,G,yv,xv,wv,kv,Cv,Sv,Ev,$v,Tv,Rv,Iv,Av,_v,Kt,YE,XE,QE,Ov,tn,Ul,jl,Kl,Ot=class extends(WE=b,KE=[u({type:String})],jE=[u({type:String})],UE=[u({type:String})],VE=[u({type:Boolean,reflect:!0})],qE=[u({type:Boolean})],BE=[u({type:Boolean})],NE=[u({type:Number,attribute:"minlength"})],HE=[u({type:Number,attribute:"maxlength"})],FE=[u({type:String})],DE=[u({type:String})],ME=[u({type:String})],zE=[u({type:Boolean})],PE=[ot({context:be,subscribe:!0}),k()],WE){constructor(){super(...arguments);s(this,Kt);s(this,yv,i(G,8,this,"text")),i(G,11,this);s(this,xv,i(G,12,this,"")),i(G,15,this);s(this,wv,i(G,16,this,"")),i(G,19,this);s(this,kv,i(G,20,this,!1)),i(G,23,this);s(this,Cv,i(G,24,this,!1)),i(G,27,this);s(this,Sv,i(G,28,this,!1)),i(G,31,this);s(this,Ev,i(G,32,this)),i(G,35,this);s(this,$v,i(G,36,this)),i(G,39,this);s(this,Tv,i(G,40,this)),i(G,43,this);s(this,Rv,i(G,44,this,"")),i(G,47,this);s(this,Iv,i(G,48,this)),i(G,51,this);s(this,Av,i(G,52,this,!1)),i(G,55,this);s(this,_v,i(G,56,this)),i(G,59,this);s(this,Ul,t=>{let e=t.target;this.value=e.value,this._fieldCtx?.markDirty(),this._fieldCtx?.setFilled(this.value.length>0),this.dispatchEvent(GE({value:this.value}))});s(this,jl,()=>{this._fieldCtx?.setFocused(!0)});s(this,Kl,()=>{this._fieldCtx?.setFocused(!1),this._fieldCtx?.markTouched()})}firstUpdated(){this.autofocus&&this.focus()}render(){let t=[r(this,Kt,XE),r(this,Kt,tn)?r(this,Kt,QE):void 0].filter(Boolean).join(" ")||void 0;return v`
4764
4577
  <input
4765
4578
  part="input"
4766
- id="${e(this,lt,U$)}"
4579
+ id="${r(this,Kt,YE)}"
4767
4580
  type="${this.type}"
4768
- .value="${$o(this.value)}"
4581
+ .value="${so(this.value)}"
4769
4582
  placeholder="${this.placeholder}"
4770
- ?disabled="${e(this,lt,Bg)}"
4583
+ ?disabled="${r(this,Kt,Ov)}"
4771
4584
  ?required="${this.required}"
4772
4585
  ?readonly="${this.readonly}"
4773
- minlength="${us(this.minLength)}"
4774
- maxlength="${us(this.maxLength)}"
4775
- pattern="${us(this.pattern)}"
4586
+ minlength="${rs(this.minLength)}"
4587
+ maxlength="${rs(this.maxLength)}"
4588
+ pattern="${rs(this.pattern)}"
4776
4589
  name="${this.name}"
4777
- autocomplete="${us(this.autocomplete)}"
4778
- aria-describedby="${us(t)}"
4779
- aria-invalid="${e(this,lt,On)}"
4780
- ?data-disabled="${e(this,lt,Bg)}"
4781
- ?data-invalid="${e(this,lt,On)}"
4782
- ?data-valid="${!e(this,lt,On)}"
4783
- ?data-dirty="${e(this,lt,le)?.dirty}"
4784
- ?data-touched="${e(this,lt,le)?.touched}"
4785
- ?data-filled="${e(this,lt,le)?.filled}"
4786
- ?data-focused="${e(this,lt,le)?.focused}"
4787
- @input="${e(this,zd)}"
4788
- @focus="${e(this,_d)}"
4789
- @blur="${e(this,Md)}"
4590
+ autocomplete="${rs(this.autocomplete)}"
4591
+ aria-describedby="${rs(t)}"
4592
+ aria-invalid="${r(this,Kt,tn)}"
4593
+ ?data-disabled="${r(this,Kt,Ov)}"
4594
+ ?data-invalid="${r(this,Kt,tn)}"
4595
+ ?data-valid="${!r(this,Kt,tn)}"
4596
+ ?data-dirty="${this._fieldCtx?.dirty}"
4597
+ ?data-touched="${this._fieldCtx?.touched}"
4598
+ ?data-filled="${this._fieldCtx?.filled}"
4599
+ ?data-focused="${this._fieldCtx?.focused}"
4600
+ @input="${r(this,Ul)}"
4601
+ @focus="${r(this,jl)}"
4602
+ @blur="${r(this,Kl)}"
4790
4603
  />
4791
- `}};Y=C(q$),$g=new WeakMap,Tg=new WeakMap,Rg=new WeakMap,Ig=new WeakMap,Ag=new WeakMap,Og=new WeakMap,Lg=new WeakMap,Pg=new WeakMap,zg=new WeakMap,_g=new WeakMap,Mg=new WeakMap,Fg=new WeakMap,Hg=new WeakMap,lt=new WeakSet,U$=function(){return e(this,lt,le)?.controlId??""},j$=function(){return e(this,lt,le)?.descriptionId},W$=function(){return e(this,lt,le)?.errorId},Bg=function(){return this.disabled||(e(this,lt,le)?.disabled??!1)},On=function(){return e(this,lt,le)?.invalid??!1},zd=new WeakMap,_d=new WeakMap,Md=new WeakMap,l(Y,4,"type",D$,_t,$g),l(Y,4,"value",B$,_t,Tg),l(Y,4,"placeholder",N$,_t,Rg),l(Y,4,"disabled",H$,_t,Ig),l(Y,4,"required",F$,_t,Ag),l(Y,4,"readonly",M$,_t,Og),l(Y,4,"minLength",_$,_t,Lg),l(Y,4,"maxLength",z$,_t,Pg),l(Y,4,"pattern",P$,_t,zg),l(Y,4,"name",L$,_t,_g),l(Y,4,"autocomplete",O$,_t,Mg),l(Y,4,"autofocus",A$,_t,Fg),Ng=l(Y,20,"#ctx",I$,lt,Hg),le=Ng.get,JP=Ng.set,S(Y,_t),b(_t,"tagName","dui-input"),b(_t,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(_t,"styles",[y,XP]);var K$=[_t];var X$=O("spa-navigate",{bubbles:!0,composed:!0}),QP=c`
4604
+ `}};G=S(WE),yv=new WeakMap,xv=new WeakMap,wv=new WeakMap,kv=new WeakMap,Cv=new WeakMap,Sv=new WeakMap,Ev=new WeakMap,$v=new WeakMap,Tv=new WeakMap,Rv=new WeakMap,Iv=new WeakMap,Av=new WeakMap,_v=new WeakMap,Kt=new WeakSet,YE=function(){return this._fieldCtx?.controlId??""},XE=function(){return this._fieldCtx?.descriptionId},QE=function(){return this._fieldCtx?.errorId},Ov=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},tn=function(){return this._fieldCtx?.invalid??!1},Ul=new WeakMap,jl=new WeakMap,Kl=new WeakMap,d(G,4,"type",KE,Ot,yv),d(G,4,"value",jE,Ot,xv),d(G,4,"placeholder",UE,Ot,wv),d(G,4,"disabled",VE,Ot,kv),d(G,4,"required",qE,Ot,Cv),d(G,4,"readonly",BE,Ot,Sv),d(G,4,"minLength",NE,Ot,Ev),d(G,4,"maxLength",HE,Ot,$v),d(G,4,"pattern",FE,Ot,Tv),d(G,4,"name",DE,Ot,Rv),d(G,4,"autocomplete",ME,Ot,Iv),d(G,4,"autofocus",zE,Ot,Av),d(G,4,"_fieldCtx",PE,Ot,_v),C(G,Ot),g(Ot,"tagName","dui-input"),g(Ot,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Ot,"styles",[w,pO]);var t1=_("spa-navigate",{bubbles:!0,composed:!0}),hO=c`
4792
4605
  :host {
4793
4606
  display: contents;
4794
4607
  }
@@ -4798,7 +4611,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4798
4611
  color: inherit;
4799
4612
  text-decoration: none;
4800
4613
  }
4801
- `,G$,Y$,Fd,Dg,Hd,ro=class extends(Y$=g,G$=[u()],Y$){constructor(){super(...arguments);s(this,Dg,i(Fd,8,this,"")),i(Fd,11,this);s(this,Hd,t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.button!==0||(t.preventDefault(),this.dispatchEvent(X$({href:this.href})))})}render(){return f`<a href="${this.href}" @click="${e(this,Hd)}"><slot></slot></a>`}};Fd=C(Y$),Dg=new WeakMap,Hd=new WeakMap,l(Fd,4,"href",G$,ro,Dg),S(Fd,ro),b(ro,"tagName","dui-link"),b(ro,"styles",[y,QP]);var J$=[ro];var ZP=c`
4614
+ `,JE,ZE,Wl,Lv,Gl,uo=class extends(ZE=b,JE=[u()],ZE){constructor(){super(...arguments);s(this,Lv,i(Wl,8,this,"")),i(Wl,11,this);s(this,Gl,t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.button!==0||(t.preventDefault(),this.dispatchEvent(t1({href:this.href})))})}render(){return v`<a href="${this.href}" @click="${r(this,Gl)}"><slot></slot></a>`}};Wl=S(ZE),Lv=new WeakMap,Gl=new WeakMap,d(Wl,4,"href",JE,uo,Lv),C(Wl,uo),g(uo,"tagName","dui-link"),g(uo,"styles",[w,hO]);var uO=c`
4802
4615
  :host {
4803
4616
  display: block;
4804
4617
  }
@@ -4806,26 +4619,26 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4806
4619
  :host([disabled]) {
4807
4620
  pointer-events: none;
4808
4621
  }
4809
- `,tz=c`
4622
+ `,mO=c`
4810
4623
  .Item {
4811
4624
  display: flex;
4812
4625
  align-items: center;
4813
4626
  cursor: pointer;
4814
4627
  }
4815
- `,Q$,Z$,Nd,qg,sr=class extends(Z$=g,Q$=[u({type:Boolean,reflect:!0})],Z$){constructor(){super(...arguments);s(this,qg,i(Nd,8,this,!1)),i(Nd,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return f`
4628
+ `,e1,r1,Yl,Pv,pr=class extends(r1=b,e1=[u({type:Boolean,reflect:!0})],r1){constructor(){super(...arguments);s(this,Pv,i(Yl,8,this,!1)),i(Yl,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return v`
4816
4629
  <div class="Item" part="root" aria-disabled="${this.disabled}">
4817
4630
  <slot></slot>
4818
4631
  </div>
4819
- `}};Nd=C(Z$),qg=new WeakMap,l(Nd,4,"disabled",Q$,sr,qg),S(Nd,sr),b(sr,"tagName","dui-menu-item"),b(sr,"styles",[y,ZP,tz]);var ez=c`
4632
+ `}};Yl=S(r1),Pv=new WeakMap,d(Yl,4,"disabled",e1,pr,Pv),C(Yl,pr),g(pr,"tagName","dui-menu-item"),g(pr,"styles",[w,uO,mO]);var fO=c`
4820
4633
  :host {
4821
4634
  display: block;
4822
4635
  }
4823
- `,rz=c`
4636
+ `,vO=c`
4824
4637
  .Trigger {
4825
4638
  display: contents;
4826
4639
  cursor: pointer;
4827
4640
  }
4828
- `,oz=[c`
4641
+ `,gO=[c`
4829
4642
  .Popup {
4830
4643
  max-height: 240px;
4831
4644
  overflow-y: auto;
@@ -4840,7 +4653,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4840
4653
  .Popup[data-ending-style] {
4841
4654
  opacity: 0;
4842
4655
  }
4843
- `],tT,eT,Bd,Vg,Ug,gi,Lo,It,ms,Ct,Ln,jg,rT,Dd,qd,Vd,Ud,Po=class extends(eT=g,tT=[k()],eT){constructor(){super(...arguments);s(this,It);s(this,Vg,i(Bd,8,this,-1)),i(Bd,11,this);s(this,ms,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);s(this,Ct,new ue(this,{getAnchor:()=>e(this,ms).call(this)??this,matchWidth:!1,styles:oz,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{h(this,It,-1,Lo),e(this,ms).call(this)?.setAttribute("data-open","")},onClose:()=>{h(this,It,-1,Lo),e(this,ms).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
4656
+ `],o1,i1,Xl,zv,Mv,oi,mo,Tt,os,kt,en,Dv,s1,Ql,Jl,Zl,td,ii=class extends(i1=b,o1=[k()],i1){constructor(){super(...arguments);s(this,Tt);s(this,zv,i(Xl,8,this,-1)),i(Xl,11,this);s(this,os,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);s(this,kt,new ie(this,{getAnchor:()=>r(this,os).call(this)??this,matchWidth:!1,styles:gO,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{h(this,Tt,-1,mo),r(this,os).call(this)?.setAttribute("data-open","")},onClose:()=>{h(this,Tt,-1,mo),r(this,os).call(this)?.removeAttribute("data-open")},renderPopup:t=>v`
4844
4657
  <div
4845
4658
  class="Popup"
4846
4659
  ?data-starting-style="${t.isStarting}"
@@ -4848,24 +4661,24 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4848
4661
  >
4849
4662
  <div
4850
4663
  class="Menu"
4851
- id="${e(this,Ln)}"
4664
+ id="${r(this,en)}"
4852
4665
  role="menu"
4853
- @click="${e(this,qd)}"
4854
- @mousemove="${e(this,Ud)}"
4666
+ @click="${r(this,Jl)}"
4667
+ @mousemove="${r(this,td)}"
4855
4668
  ></div>
4856
4669
  </div>
4857
- `}));s(this,Ln,`menu-${crypto.randomUUID().slice(0,8)}`);s(this,Dd,t=>{t.stopPropagation(),t.preventDefault(),m(this,It,rT).call(this)});s(this,qd,t=>{let r=t.composedPath().find(a=>a instanceof HTMLElement&&a.matches(sr.tagName));r&&!r.disabled&&e(this,Ct).close()});s(this,Vd,t=>{let r=e(this,It,jg);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!e(this,Ct).isOpen)e(this,Ct).open();else{let a=e(this,It,gi)+1;for(;a<r.length&&r[a]?.disabled;)a++;a<r.length&&h(this,It,a,Lo)}break}case"ArrowUp":{if(t.preventDefault(),!e(this,Ct).isOpen)e(this,Ct).open();else{let a=e(this,It,gi)-1;for(;a>=0&&r[a]?.disabled;)a--;a>=0&&h(this,It,a,Lo)}break}case"Home":if(e(this,Ct).isOpen){t.preventDefault();let a=r.findIndex(d=>!d.disabled);a>=0&&h(this,It,a,Lo)}break;case"End":if(e(this,Ct).isOpen){t.preventDefault();for(let a=r.length-1;a>=0;a--)if(!r[a]?.disabled){h(this,It,a,Lo);break}}break;case"Enter":case" ":{if(e(this,Ct).isOpen&&e(this,It,gi)>=0){t.preventDefault();let a=r[e(this,It,gi)];a&&!a.disabled&&(a.click(),e(this,Ct).close())}else e(this,Ct).isOpen||(t.preventDefault(),e(this,Ct).open());break}case"Escape":e(this,Ct).isOpen&&(t.preventDefault(),e(this,Ct).close());break;case"Tab":e(this,Ct).isOpen&&e(this,Ct).close();break}});s(this,Ud,()=>{e(this,It,gi)>=0&&h(this,It,-1,Lo)})}updated(){let t=e(this,It,jg);for(let r=0;r<t.length;r++)r===e(this,It,gi)?t[r].setAttribute("data-highlighted",""):t[r].removeAttribute("data-highlighted")}render(){return f`
4670
+ `}));s(this,en,`menu-${crypto.randomUUID().slice(0,8)}`);s(this,Ql,t=>{t.stopPropagation(),t.preventDefault(),m(this,Tt,s1).call(this)});s(this,Jl,t=>{let e=t.composedPath().find(a=>a instanceof HTMLElement&&a.matches(pr.tagName));e&&!e.disabled&&r(this,kt).close()});s(this,Zl,t=>{let e=r(this,Tt,Dv);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!r(this,kt).isOpen)r(this,kt).open();else{let a=r(this,Tt,oi)+1;for(;a<e.length&&e[a]?.disabled;)a++;a<e.length&&h(this,Tt,a,mo)}break}case"ArrowUp":{if(t.preventDefault(),!r(this,kt).isOpen)r(this,kt).open();else{let a=r(this,Tt,oi)-1;for(;a>=0&&e[a]?.disabled;)a--;a>=0&&h(this,Tt,a,mo)}break}case"Home":if(r(this,kt).isOpen){t.preventDefault();let a=e.findIndex(l=>!l.disabled);a>=0&&h(this,Tt,a,mo)}break;case"End":if(r(this,kt).isOpen){t.preventDefault();for(let a=e.length-1;a>=0;a--)if(!e[a]?.disabled){h(this,Tt,a,mo);break}}break;case"Enter":case" ":{if(r(this,kt).isOpen&&r(this,Tt,oi)>=0){t.preventDefault();let a=e[r(this,Tt,oi)];a&&!a.disabled&&(a.click(),r(this,kt).close())}else r(this,kt).isOpen||(t.preventDefault(),r(this,kt).open());break}case"Escape":r(this,kt).isOpen&&(t.preventDefault(),r(this,kt).close());break;case"Tab":r(this,kt).isOpen&&r(this,kt).close();break}});s(this,td,()=>{r(this,Tt,oi)>=0&&h(this,Tt,-1,mo)})}updated(){let t=r(this,Tt,Dv);for(let e=0;e<t.length;e++)e===r(this,Tt,oi)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return v`
4858
4671
  <div
4859
4672
  class="Trigger"
4860
4673
  aria-haspopup="menu"
4861
- aria-expanded="${e(this,Ct).isOpen}"
4862
- aria-controls="${e(this,Ln)}"
4863
- @click="${e(this,Dd)}"
4864
- @keydown="${e(this,Vd)}"
4674
+ aria-expanded="${r(this,kt).isOpen}"
4675
+ aria-controls="${r(this,en)}"
4676
+ @click="${r(this,Ql)}"
4677
+ @keydown="${r(this,Zl)}"
4865
4678
  >
4866
4679
  <slot name="trigger"></slot>
4867
4680
  </div>
4868
- `}};Bd=C(eT),Vg=new WeakMap,It=new WeakSet,ms=new WeakMap,Ct=new WeakMap,Ln=new WeakMap,jg=function(){return[...(e(this,Ct).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},rT=function(){e(this,Ct).isOpen?e(this,Ct).close():e(this,Ct).open()},Dd=new WeakMap,qd=new WeakMap,Vd=new WeakMap,Ud=new WeakMap,Ug=l(Bd,20,"#highlightedIndex",tT,It,Vg),gi=Ug.get,Lo=Ug.set,S(Bd,Po),b(Po,"tagName","dui-menu"),b(Po,"styles",[y,ez,rz]);var oT=[Po,sr];var iT=Symbol("dui-menubar");var iz=c`
4681
+ `}};Xl=S(i1),zv=new WeakMap,Tt=new WeakSet,os=new WeakMap,kt=new WeakMap,en=new WeakMap,Dv=function(){return[...(r(this,kt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},s1=function(){r(this,kt).isOpen?r(this,kt).close():r(this,kt).open()},Ql=new WeakMap,Jl=new WeakMap,Zl=new WeakMap,td=new WeakMap,Mv=d(Xl,20,"#highlightedIndex",o1,Tt,zv),oi=Mv.get,mo=Mv.set,C(Xl,ii),g(ii,"tagName","dui-menu"),g(ii,"styles",[w,fO,vO]);var n1=Symbol("dui-menubar");var bO=c`
4869
4682
  :host {
4870
4683
  display: block;
4871
4684
  }
@@ -4879,16 +4692,16 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4879
4692
  flex-direction: column;
4880
4693
  align-items: stretch;
4881
4694
  }
4882
- `,sT,nT,aT,lT,dT,Ie,Wg,Kg,Gg,Yg,Qg,jd,Qt,cT,Wd,Kd,fs,Xg,Jg,sz,pT,Zg,Gd,Cr=class extends(dT=g,lT=[u({type:Boolean})],aT=[u({reflect:!0})],nT=[k()],sT=[yt({context:iT}),k()],dT){constructor(){super(...arguments);s(this,Qt);s(this,Wg,i(Ie,8,this,!0)),i(Ie,11,this);s(this,Kg,i(Ie,12,this,"horizontal")),i(Ie,15,this);s(this,Gg,i(Ie,16,this,null)),i(Ie,19,this);s(this,Wd,t=>{h(this,Qt,t,jd)});s(this,Kd,()=>{h(this,Qt,null,jd)});s(this,fs,t=>{let r=m(this,Qt,cT).call(this);if(r.length===0)return;let a=r.findIndex(E=>E.getAttribute("data-menubar-id")===e(this,Qt,Qg)),d;t==="next"?(d=a+1,d>=r.length&&(d=this.loop?0:r.length-1)):(d=a-1,d<0&&(d=this.loop?r.length-1:0));let p=r[d];if(!p)return;let v=p.getAttribute("data-menubar-id");v&&h(this,Qt,v,jd),p.querySelector('[slot="trigger"]')?.focus()});s(this,Xg,i(Ie,20,this,m(this,Qt,Zg).call(this))),i(Ie,23,this);s(this,Gd,t=>{let r=this.orientation==="horizontal",a=r?"ArrowRight":"ArrowDown",d=r?"ArrowLeft":"ArrowUp";t.key===a?(t.preventDefault(),e(this,fs).call(this,"next")):t.key===d&&(t.preventDefault(),e(this,fs).call(this,"prev"))})}willUpdate(){h(this,Qt,m(this,Qt,Zg).call(this),pT)}render(){return f`
4695
+ `,a1,l1,d1,c1,p1,we,Fv,Hv,Nv,Bv,Vv,ed,le,h1,rd,od,is,qv,Uv,id,hr=class extends(p1=b,c1=[u({type:Boolean})],d1=[u({reflect:!0})],l1=[k()],a1=[bt({context:n1}),k()],p1){constructor(){super(...arguments);s(this,le);s(this,Fv,i(we,8,this,!0)),i(we,11,this);s(this,Hv,i(we,12,this,"horizontal")),i(we,15,this);s(this,Nv,i(we,16,this,null)),i(we,19,this);s(this,rd,t=>{h(this,le,t,ed)});s(this,od,()=>{h(this,le,null,ed)});s(this,is,t=>{let e=m(this,le,h1).call(this);if(e.length===0)return;let a=e.findIndex(E=>E.getAttribute("data-menubar-id")===r(this,le,Vv)),l;t==="next"?(l=a+1,l>=e.length&&(l=this.loop?0:e.length-1)):(l=a-1,l<0&&(l=this.loop?e.length-1:0));let p=e[l];if(!p)return;let f=p.getAttribute("data-menubar-id");f&&h(this,le,f,ed),p.querySelector('[slot="trigger"]')?.focus()});s(this,qv,i(we,20,this,m(this,le,Uv).call(this))),i(we,23,this);s(this,id,t=>{let e=this.orientation==="horizontal",a=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";t.key===a?(t.preventDefault(),r(this,is).call(this,"next")):t.key===l&&(t.preventDefault(),r(this,is).call(this,"prev"))})}willUpdate(){this._ctx=m(this,le,Uv).call(this)}render(){return v`
4883
4696
  <div
4884
4697
  part="root"
4885
4698
  role="menubar"
4886
4699
  aria-orientation="${this.orientation}"
4887
- @keydown="${e(this,Gd)}"
4700
+ @keydown="${r(this,id)}"
4888
4701
  >
4889
4702
  <slot></slot>
4890
4703
  </div>
4891
- `}};Ie=C(dT),Wg=new WeakMap,Kg=new WeakMap,Gg=new WeakMap,Qt=new WeakSet,cT=function(){return[...this.querySelectorAll("dui-menu")]},Wd=new WeakMap,Kd=new WeakMap,fs=new WeakMap,Xg=new WeakMap,Zg=function(){return{activeMenuId:e(this,Qt,Qg),openMenu:e(this,Wd),closeAll:e(this,Kd),navigateToMenu:e(this,fs)}},Gd=new WeakMap,l(Ie,4,"loop",lT,Cr,Wg),l(Ie,4,"orientation",aT,Cr,Kg),Yg=l(Ie,20,"#activeMenuId",nT,Qt,Gg),Qg=Yg.get,jd=Yg.set,Jg=l(Ie,20,"#ctx",sT,Qt,Xg),sz=Jg.get,pT=Jg.set,S(Ie,Cr),b(Cr,"tagName","dui-menubar"),b(Cr,"styles",[y,iz]);var hT=[Cr];var TT=O("value-change",{bubbles:!0,composed:!0}),nz=c`
4704
+ `}};we=S(p1),Fv=new WeakMap,Hv=new WeakMap,Nv=new WeakMap,le=new WeakSet,h1=function(){return[...this.querySelectorAll("dui-menu")]},rd=new WeakMap,od=new WeakMap,is=new WeakMap,qv=new WeakMap,Uv=function(){return{activeMenuId:r(this,le,Vv),openMenu:r(this,rd),closeAll:r(this,od),navigateToMenu:r(this,is)}},id=new WeakMap,d(we,4,"loop",c1,hr,Fv),d(we,4,"orientation",d1,hr,Hv),Bv=d(we,20,"#activeMenuId",l1,le,Nv),Vv=Bv.get,ed=Bv.set,d(we,4,"_ctx",a1,hr,qv),C(we,hr),g(hr,"tagName","dui-menubar"),g(hr,"styles",[w,bO]);var T1=_("value-change",{bubbles:!0,composed:!0}),yO=c`
4892
4705
  :host {
4893
4706
  display: block;
4894
4707
  }
@@ -4941,19 +4754,19 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4941
4754
  width: 0;
4942
4755
  height: 0;
4943
4756
  }
4944
- `,uT,mT,fT,vT,gT,bT,yT,xT,wT,kT,ST,CT,ET,$T,X,tb,eb,rb,ob,ib,sb,nb,ab,lb,db,cb,pb,RT,vb,F,hb,ub,gb,bb,mb,fb,oo,az,bi,Yd,IT,AT,OT,Xd,yb,vs,Pn,zn,xb,Jd,Qd,Zd,tc,ec,rc,Ut=class extends($T=g,ET=[u({type:Number})],CT=[u({type:Number,attribute:"default-value"})],ST=[u({type:Number})],kT=[u({type:Number})],wT=[u({type:Number})],xT=[u({type:Number,attribute:"large-step"})],yT=[u({type:Boolean,reflect:!0})],bT=[u({type:Boolean,reflect:!0,attribute:"read-only"})],gT=[u({type:Boolean})],vT=[u()],fT=[k()],mT=[k()],uT=[at({context:Ce,subscribe:!0}),k()],$T){constructor(){super(...arguments);s(this,F);s(this,tb,i(X,8,this)),i(X,11,this);s(this,eb,i(X,12,this)),i(X,15,this);s(this,rb,i(X,16,this)),i(X,19,this);s(this,ob,i(X,20,this)),i(X,23,this);s(this,ib,i(X,24,this,1)),i(X,27,this);s(this,sb,i(X,28,this,10)),i(X,31,this);s(this,nb,i(X,32,this,!1)),i(X,35,this);s(this,ab,i(X,36,this,!1)),i(X,39,this);s(this,lb,i(X,40,this,!1)),i(X,43,this);s(this,db,i(X,44,this)),i(X,47,this);s(this,cb,i(X,48,this)),i(X,51,this);s(this,hb,i(X,52,this,"")),i(X,55,this);s(this,mb,i(X,56,this)),i(X,59,this);s(this,Pn,t=>{if(e(this,F,Yd)||this.readOnly)return;let r=e(this,F,bi)??this.min??0;m(this,F,vs).call(this,r+t)});s(this,zn,t=>{if(e(this,F,Yd)||this.readOnly)return;let r=e(this,F,bi)??this.max??0;m(this,F,vs).call(this,r-t)});s(this,Jd,t=>{h(this,F,t.target.value,bb)});s(this,Qd,()=>{m(this,F,xb).call(this),e(this,F,oo)?.setFocused(!1),e(this,F,oo)?.markTouched()});s(this,Zd,()=>{e(this,F,oo)?.setFocused(!0)});s(this,tc,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),e(this,Pn).call(this,t.shiftKey?this.largeStep:this.step);break;case"ArrowDown":t.preventDefault(),e(this,zn).call(this,t.shiftKey?this.largeStep:this.step);break;case"Home":this.min!==void 0&&(t.preventDefault(),m(this,F,vs).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),m(this,F,vs).call(this,this.max));break;case"Enter":m(this,F,xb).call(this);break}});s(this,ec,()=>{e(this,zn).call(this,this.step)});s(this,rc,()=>{e(this,Pn).call(this,this.step)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,F,m(this,F,yb).call(this,this.defaultValue),vb),m(this,F,Xd).call(this)}willUpdate(){m(this,F,Xd).call(this)}render(){let t=e(this,F,Yd),r=e(this,F,IT),a=e(this,F,oo)?.controlId??"",d=e(this,F,bi);return f`
4757
+ `,u1,m1,f1,v1,g1,b1,y1,x1,w1,k1,C1,S1,E1,$1,Y,jv,Kv,Wv,Gv,Yv,Xv,Qv,Jv,Zv,tg,eg,rg,R1,ng,N,og,ig,ag,lg,sg,si,sd,I1,A1,_1,nd,dg,ss,rn,on,cg,ad,ld,dd,cd,pd,hd,Ft=class extends($1=b,E1=[u({type:Number})],S1=[u({type:Number,attribute:"default-value"})],C1=[u({type:Number})],k1=[u({type:Number})],w1=[u({type:Number})],x1=[u({type:Number,attribute:"large-step"})],y1=[u({type:Boolean,reflect:!0})],b1=[u({type:Boolean,reflect:!0,attribute:"read-only"})],g1=[u({type:Boolean})],v1=[u()],f1=[k()],m1=[k()],u1=[ot({context:be,subscribe:!0}),k()],$1){constructor(){super(...arguments);s(this,N);s(this,jv,i(Y,8,this)),i(Y,11,this);s(this,Kv,i(Y,12,this)),i(Y,15,this);s(this,Wv,i(Y,16,this)),i(Y,19,this);s(this,Gv,i(Y,20,this)),i(Y,23,this);s(this,Yv,i(Y,24,this,1)),i(Y,27,this);s(this,Xv,i(Y,28,this,10)),i(Y,31,this);s(this,Qv,i(Y,32,this,!1)),i(Y,35,this);s(this,Jv,i(Y,36,this,!1)),i(Y,39,this);s(this,Zv,i(Y,40,this,!1)),i(Y,43,this);s(this,tg,i(Y,44,this)),i(Y,47,this);s(this,eg,i(Y,48,this)),i(Y,51,this);s(this,og,i(Y,52,this,"")),i(Y,55,this);s(this,sg,i(Y,56,this)),i(Y,59,this);s(this,rn,t=>{if(r(this,N,sd)||this.readOnly)return;let e=r(this,N,si)??this.min??0;m(this,N,ss).call(this,e+t)});s(this,on,t=>{if(r(this,N,sd)||this.readOnly)return;let e=r(this,N,si)??this.max??0;m(this,N,ss).call(this,e-t)});s(this,ad,t=>{h(this,N,t.target.value,lg)});s(this,ld,()=>{m(this,N,cg).call(this),this._fieldCtx?.setFocused(!1),this._fieldCtx?.markTouched()});s(this,dd,()=>{this._fieldCtx?.setFocused(!0)});s(this,cd,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),r(this,rn).call(this,t.shiftKey?this.largeStep:this.step);break;case"ArrowDown":t.preventDefault(),r(this,on).call(this,t.shiftKey?this.largeStep:this.step);break;case"Home":this.min!==void 0&&(t.preventDefault(),m(this,N,ss).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),m(this,N,ss).call(this,this.max));break;case"Enter":m(this,N,cg).call(this);break}});s(this,pd,()=>{r(this,on).call(this,this.step)});s(this,hd,()=>{r(this,rn).call(this,this.step)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,N,m(this,N,dg).call(this,this.defaultValue),ng),m(this,N,nd).call(this)}willUpdate(){m(this,N,nd).call(this)}render(){let t=r(this,N,sd),e=r(this,N,I1),a=this._fieldCtx?.controlId??"",l=r(this,N,si);return v`
4945
4758
  <div
4946
4759
  part="root"
4947
4760
  ?data-disabled="${t}"
4948
- ?data-invalid="${r}"
4761
+ ?data-invalid="${e}"
4949
4762
  >
4950
4763
  <button
4951
4764
  part="decrement"
4952
4765
  type="button"
4953
4766
  tabindex="-1"
4954
4767
  aria-label="Decrease"
4955
- ?disabled="${t||this.readOnly||!e(this,F,AT)}"
4956
- @click="${e(this,ec)}"
4768
+ ?disabled="${t||this.readOnly||!r(this,N,A1)}"
4769
+ @click="${r(this,pd)}"
4957
4770
  >
4958
4771
  <slot name="decrement">&minus;</slot>
4959
4772
  </button>
@@ -4962,92 +4775,50 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
4962
4775
  id="${a||T}"
4963
4776
  type="text"
4964
4777
  inputmode="decimal"
4965
- .value="${$o(e(this,F,gb))}"
4778
+ .value="${so(r(this,N,ag))}"
4966
4779
  ?disabled="${t}"
4967
4780
  ?readonly="${this.readOnly}"
4968
4781
  ?required="${this.required}"
4969
- aria-invalid="${r?"true":T}"
4782
+ aria-invalid="${e?"true":T}"
4970
4783
  ?data-disabled="${t}"
4971
- @input="${e(this,Jd)}"
4972
- @keydown="${e(this,tc)}"
4973
- @focus="${e(this,Zd)}"
4974
- @blur="${e(this,Qd)}"
4784
+ @input="${r(this,ad)}"
4785
+ @keydown="${r(this,cd)}"
4786
+ @focus="${r(this,dd)}"
4787
+ @blur="${r(this,ld)}"
4975
4788
  />
4976
4789
  <button
4977
4790
  part="increment"
4978
4791
  type="button"
4979
4792
  tabindex="-1"
4980
4793
  aria-label="Increase"
4981
- ?disabled="${t||this.readOnly||!e(this,F,OT)}"
4982
- @click="${e(this,rc)}"
4794
+ ?disabled="${t||this.readOnly||!r(this,N,_1)}"
4795
+ @click="${r(this,hd)}"
4983
4796
  >
4984
4797
  <slot name="increment">+</slot>
4985
4798
  </button>
4986
- ${this.name?f`<input
4799
+ ${this.name?v`<input
4987
4800
  type="hidden"
4988
4801
  name="${this.name}"
4989
- .value="${String(d??"")}"
4802
+ .value="${String(l??"")}"
4990
4803
  />`:T}
4991
4804
  </div>
4992
- `}};X=C($T),tb=new WeakMap,eb=new WeakMap,rb=new WeakMap,ob=new WeakMap,ib=new WeakMap,sb=new WeakMap,nb=new WeakMap,ab=new WeakMap,lb=new WeakMap,db=new WeakMap,cb=new WeakMap,F=new WeakSet,hb=new WeakMap,mb=new WeakMap,bi=function(){return this.value??e(this,F,RT)},Yd=function(){return this.disabled||(e(this,F,oo)?.disabled??!1)},IT=function(){return e(this,F,oo)?.invalid??!1},AT=function(){let t=e(this,F,bi);return t===void 0?!0:this.min===void 0||t>this.min},OT=function(){let t=e(this,F,bi);return t===void 0?!0:this.max===void 0||t<this.max},Xd=function(){let t=e(this,F,bi);h(this,F,t!==void 0?String(t):"",bb)},yb=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},vs=function(t){let r=m(this,F,yb).call(this,t);this.value===void 0&&h(this,F,r,vb),e(this,F,oo)?.markDirty(),e(this,F,oo)?.setFilled(!0),this.dispatchEvent(TT({value:r}))},Pn=new WeakMap,zn=new WeakMap,xb=function(){let t=parseFloat(e(this,F,gb));Number.isNaN(t)?m(this,F,Xd).call(this):m(this,F,vs).call(this,t)},Jd=new WeakMap,Qd=new WeakMap,Zd=new WeakMap,tc=new WeakMap,ec=new WeakMap,rc=new WeakMap,l(X,4,"value",ET,Ut,tb),l(X,4,"defaultValue",CT,Ut,eb),l(X,4,"min",ST,Ut,rb),l(X,4,"max",kT,Ut,ob),l(X,4,"step",wT,Ut,ib),l(X,4,"largeStep",xT,Ut,sb),l(X,4,"disabled",yT,Ut,nb),l(X,4,"readOnly",bT,Ut,ab),l(X,4,"required",gT,Ut,lb),l(X,4,"name",vT,Ut,db),pb=l(X,20,"#internalValue",fT,F,cb),RT=pb.get,vb=pb.set,ub=l(X,20,"#inputText",mT,F,hb),gb=ub.get,bb=ub.set,fb=l(X,20,"#fieldCtx",uT,F,mb),oo=fb.get,az=fb.set,S(X,Ut),b(Ut,"tagName","dui-number-field"),b(Ut,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Ut,"styles",[y,nz]);var LT=[Ut];var lz=c`
4993
- :host {
4994
- display: block;
4995
- --page-inset-pad-x: var(--space-16);
4996
- --page-inset-pad-y: var(--space-12);
4997
- --page-inset-max-width: 48rem;
4998
- --page-inset-min-width: auto;
4999
- }
5000
-
5001
- [part="root"] {
5002
- display: flex;
5003
- flex-direction: column;
5004
- align-items: center;
5005
- padding: var(--page-inset-pad-y) var(--page-inset-pad-x);
5006
- min-height: 100cqh;
5007
- max-width: 100cqw;
5008
- }
5009
-
5010
- [part="inner"] {
5011
- max-width: var(--page-inset-max-width);
5012
- min-width: var(--page-inset-min-width);
5013
- width: 100%;
5014
- }
5015
- `,PT,zT,_T,MT,FT,Ae,wb,kb,Sb,Cb,yi,_n,je=class extends(FT=g,MT=[u({attribute:"max-width"})],_T=[u({attribute:"min-width"})],zT=[u({attribute:"pad-x"})],PT=[u({attribute:"pad-y"})],FT){constructor(){super(...arguments);s(this,yi);s(this,wb,i(Ae,8,this)),i(Ae,11,this);s(this,kb,i(Ae,12,this)),i(Ae,15,this);s(this,Sb,i(Ae,16,this)),i(Ae,19,this);s(this,Cb,i(Ae,20,this)),i(Ae,23,this)}willUpdate(t){t.has("maxWidth")&&m(this,yi,_n).call(this,"--page-inset-max-width",this.maxWidth),t.has("minWidth")&&m(this,yi,_n).call(this,"--page-inset-min-width",this.minWidth),t.has("padX")&&m(this,yi,_n).call(this,"--page-inset-pad-x",this.padX),t.has("padY")&&m(this,yi,_n).call(this,"--page-inset-pad-y",this.padY)}render(){return f`
5016
- <div part="root">
5017
- <div part="inner">
5018
- <slot></slot>
5019
- </div>
5020
- </div>
5021
- `}};Ae=C(FT),wb=new WeakMap,kb=new WeakMap,Sb=new WeakMap,Cb=new WeakMap,yi=new WeakSet,_n=function(t,r){r?this.style.setProperty(t,r):this.style.removeProperty(t)},l(Ae,4,"maxWidth",MT,je,wb),l(Ae,4,"minWidth",_T,je,kb),l(Ae,4,"padX",zT,je,Sb),l(Ae,4,"padY",PT,je,Cb),S(Ae,je),b(je,"tagName","dui-page-inset"),b(je,"styles",[y,lz]);var HT=[je];var zo=Symbol("dui-popover");var _b=O("open-change",{bubbles:!0,composed:!0}),dz=c`
4805
+ `}};Y=S($1),jv=new WeakMap,Kv=new WeakMap,Wv=new WeakMap,Gv=new WeakMap,Yv=new WeakMap,Xv=new WeakMap,Qv=new WeakMap,Jv=new WeakMap,Zv=new WeakMap,tg=new WeakMap,eg=new WeakMap,N=new WeakSet,og=new WeakMap,sg=new WeakMap,si=function(){return this.value??r(this,N,R1)},sd=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},I1=function(){return this._fieldCtx?.invalid??!1},A1=function(){let t=r(this,N,si);return t===void 0?!0:this.min===void 0||t>this.min},_1=function(){let t=r(this,N,si);return t===void 0?!0:this.max===void 0||t<this.max},nd=function(){let t=r(this,N,si);h(this,N,t!==void 0?String(t):"",lg)},dg=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},ss=function(t){let e=m(this,N,dg).call(this,t);this.value===void 0&&h(this,N,e,ng),this._fieldCtx?.markDirty(),this._fieldCtx?.setFilled(!0),this.dispatchEvent(T1({value:e}))},rn=new WeakMap,on=new WeakMap,cg=function(){let t=parseFloat(r(this,N,ag));Number.isNaN(t)?m(this,N,nd).call(this):m(this,N,ss).call(this,t)},ad=new WeakMap,ld=new WeakMap,dd=new WeakMap,cd=new WeakMap,pd=new WeakMap,hd=new WeakMap,d(Y,4,"value",E1,Ft,jv),d(Y,4,"defaultValue",S1,Ft,Kv),d(Y,4,"min",C1,Ft,Wv),d(Y,4,"max",k1,Ft,Gv),d(Y,4,"step",w1,Ft,Yv),d(Y,4,"largeStep",x1,Ft,Xv),d(Y,4,"disabled",y1,Ft,Qv),d(Y,4,"readOnly",b1,Ft,Jv),d(Y,4,"required",g1,Ft,Zv),d(Y,4,"name",v1,Ft,tg),rg=d(Y,20,"#internalValue",f1,N,eg),R1=rg.get,ng=rg.set,ig=d(Y,20,"#inputText",m1,N,og),ag=ig.get,lg=ig.set,d(Y,4,"_fieldCtx",u1,Ft,sg),C(Y,Ft),g(Ft,"tagName","dui-number-field"),g(Ft,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Ft,"styles",[w,yO]);var ns=Symbol("dui-popover");var xg=_("open-change",{bubbles:!0,composed:!0}),xO=c`
5022
4806
  :host {
5023
4807
  display: contents;
5024
4808
  }
5025
- `,NT,BT,DT,qT,VT,UT,jT,WT,At,Eb,$b,Tb,Rb,Ib,Ab,oc,ic,Q,Ob,Lb,Mb,KT,Mn,ac,lc,Pb,zb,sc,GT,Fn,Fb,nc,YT,XT,We=class extends(WT=g,jT=[u({type:Boolean,reflect:!0})],UT=[u({type:Boolean,attribute:"default-open"})],VT=[u({reflect:!0})],qT=[u({type:Number,attribute:"side-offset"})],DT=[k()],BT=[k()],NT=[yt({context:zo}),k()],WT){constructor(){super(...arguments);s(this,Q);s(this,Eb,i(At,8,this,!1)),i(At,11,this);s(this,$b,i(At,12,this,!1)),i(At,15,this);s(this,Tb,i(At,16,this,"bottom")),i(At,19,this);s(this,Rb,i(At,20,this,8)),i(At,23,this);s(this,Ib,i(At,24,this,!1)),i(At,27,this);s(this,Ob,i(At,28,this)),i(At,31,this);s(this,ac,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,lc,`popover-popup-${crypto.randomUUID().slice(0,8)}`);s(this,Pb,i(At,32,this,{open:!1,triggerId:e(this,ac),popupId:e(this,lc),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>m(this,Q,Fb).call(this),closePopover:()=>m(this,Q,nc).call(this),togglePopover:()=>m(this,Q,YT).call(this),setTriggerEl:t=>m(this,Q,XT).call(this,t)})),i(At,35,this);s(this,Fn,t=>{e(this,Q,Mn)&&t.key==="Escape"&&(t.preventDefault(),m(this,Q,nc).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,Q,!0,ic),document.addEventListener("keydown",e(this,Fn))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",e(this,Fn))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||e(this,Q,sc).open!==e(this,Q,Mn)||e(this,Q,sc).triggerEl!==e(this,Q,Mb))&&h(this,Q,{...e(this,Q,sc),open:e(this,Q,Mn),side:this.side,sideOffset:this.sideOffset,triggerEl:e(this,Q,Mb)},GT)}render(){return f`<slot></slot>`}};At=C(WT),Eb=new WeakMap,$b=new WeakMap,Tb=new WeakMap,Rb=new WeakMap,Ib=new WeakMap,Q=new WeakSet,Ob=new WeakMap,Mn=function(){return this.open||e(this,Q,oc)},ac=new WeakMap,lc=new WeakMap,Pb=new WeakMap,Fn=new WeakMap,Fb=function(){e(this,Q,oc)||(h(this,Q,!0,ic),this.dispatchEvent(_b({open:!0})))},nc=function(){e(this,Q,oc)&&(h(this,Q,!1,ic),this.dispatchEvent(_b({open:!1})))},YT=function(){e(this,Q,Mn)?m(this,Q,nc).call(this):m(this,Q,Fb).call(this)},XT=function(t){h(this,Q,t,KT)},l(At,4,"open",jT,We,Eb),l(At,4,"defaultOpen",UT,We,$b),l(At,4,"side",VT,We,Tb),l(At,4,"sideOffset",qT,We,Rb),Ab=l(At,20,"#internalOpen",DT,Q,Ib),oc=Ab.get,ic=Ab.set,Lb=l(At,20,"#triggerEl",BT,Q,Ob),Mb=Lb.get,KT=Lb.set,zb=l(At,20,"#ctx",NT,Q,Pb),sc=zb.get,GT=zb.set,S(At,We),b(We,"tagName","dui-popover"),b(We,"styles",[y,dz]);var cz=c`
4809
+ `,O1,L1,P1,z1,M1,D1,F1,H1,Rt,pg,hg,ug,mg,fg,vg,ud,md,it,gg,bg,wg,N1,sn,vd,gd,yg,nn,kg,fd,B1,q1,De=class extends(H1=b,F1=[u({type:Boolean,reflect:!0})],D1=[u({type:Boolean,attribute:"default-open"})],M1=[u({reflect:!0})],z1=[u({type:Number,attribute:"side-offset"})],P1=[k()],L1=[k()],O1=[bt({context:ns}),k()],H1){constructor(){super(...arguments);s(this,it);s(this,pg,i(Rt,8,this,!1)),i(Rt,11,this);s(this,hg,i(Rt,12,this,!1)),i(Rt,15,this);s(this,ug,i(Rt,16,this,"bottom")),i(Rt,19,this);s(this,mg,i(Rt,20,this,8)),i(Rt,23,this);s(this,fg,i(Rt,24,this,!1)),i(Rt,27,this);s(this,gg,i(Rt,28,this)),i(Rt,31,this);s(this,vd,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,gd,`popover-popup-${crypto.randomUUID().slice(0,8)}`);s(this,yg,i(Rt,32,this,{open:!1,triggerId:r(this,vd),popupId:r(this,gd),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>m(this,it,kg).call(this),closePopover:()=>m(this,it,fd).call(this),togglePopover:()=>m(this,it,B1).call(this),setTriggerEl:t=>m(this,it,q1).call(this,t)})),i(Rt,35,this);s(this,nn,t=>{r(this,it,sn)&&t.key==="Escape"&&(t.preventDefault(),m(this,it,fd).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,it,!0,md),document.addEventListener("keydown",r(this,nn))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",r(this,nn))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==r(this,it,sn)||this._ctx.triggerEl!==r(this,it,wg))&&(this._ctx={...this._ctx,open:r(this,it,sn),side:this.side,sideOffset:this.sideOffset,triggerEl:r(this,it,wg)})}render(){return v`<slot></slot>`}};Rt=S(H1),pg=new WeakMap,hg=new WeakMap,ug=new WeakMap,mg=new WeakMap,fg=new WeakMap,it=new WeakSet,gg=new WeakMap,sn=function(){return this.open||r(this,it,ud)},vd=new WeakMap,gd=new WeakMap,yg=new WeakMap,nn=new WeakMap,kg=function(){r(this,it,ud)||(h(this,it,!0,md),this.dispatchEvent(xg({open:!0})))},fd=function(){r(this,it,ud)&&(h(this,it,!1,md),this.dispatchEvent(xg({open:!1})))},B1=function(){r(this,it,sn)?m(this,it,fd).call(this):m(this,it,kg).call(this)},q1=function(t){h(this,it,t,N1)},d(Rt,4,"open",F1,De,pg),d(Rt,4,"defaultOpen",D1,De,hg),d(Rt,4,"side",M1,De,ug),d(Rt,4,"sideOffset",z1,De,mg),vg=d(Rt,20,"#internalOpen",P1,it,fg),ud=vg.get,md=vg.set,bg=d(Rt,20,"#triggerEl",L1,it,gg),wg=bg.get,N1=bg.set,d(Rt,4,"_ctx",O1,De,yg),C(Rt,De),g(De,"tagName","dui-popover"),g(De,"styles",[w,xO]);var N6=c`
5026
4810
  :host {
5027
4811
  display: contents;
5028
4812
  }
5029
- `,pz=c`
4813
+ `,B6=c`
5030
4814
  .Trigger {
5031
4815
  display: contents;
5032
4816
  }
5033
- `,Hn=class extends g{static tagName="dui-popover-trigger";static styles=[y,cz,pz];#t=new V(this,{context:zo,subscribe:!0});#e=o=>{o.stopPropagation(),this.#s(),this.#t.value?.togglePopover()};#s(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0]??this;this.#t.value?.setTriggerEl(t)}render(){let o=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",r=this.#t.value?.triggerId??"";return f`
5034
- <span
5035
- class="Trigger"
5036
- part="trigger"
5037
- id="${r}"
5038
- aria-haspopup="dialog"
5039
- aria-expanded="${o}"
5040
- aria-controls="${o?t:""}"
5041
- ?data-popup-open="${o}"
5042
- @click="${this.#e}"
5043
- >
5044
- <slot></slot>
5045
- </span>
5046
- `}};var hz=c`
4817
+ `;var wO=c`
5047
4818
  :host {
5048
4819
  display: none;
5049
4820
  }
5050
- `,uz=[c`
4821
+ `,kO=[c`
5051
4822
  .Popup {
5052
4823
  box-sizing: border-box;
5053
4824
  pointer-events: auto;
@@ -5088,64 +4859,44 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5088
4859
  left: 50%;
5089
4860
  transform: translateX(-50%) rotate(180deg);
5090
4861
  }
5091
- `],JT,QT,ZT,tR,Er,Hb,Nb,Bb,Db,dc,eR,Tr,io,gs,_o,cc,rR,$r=class extends(tR=g,ZT=[u({type:Boolean,attribute:"show-arrow"})],QT=[u({type:Boolean,attribute:"close-on-click"})],JT=[k()],tR){constructor(){super(...arguments);s(this,Tr);s(this,Hb,i(Er,8,this,!0)),i(Er,11,this);s(this,Nb,i(Er,12,this,!1)),i(Er,15,this);s(this,Bb,i(Er,16,this,"bottom")),i(Er,19,this);s(this,io,new V(this,{context:zo,subscribe:!0}));s(this,gs,!1);s(this,_o,new ue(this,{getAnchor:()=>e(this,io).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:uz,contentContainer:".Content",onPosition:({placement:t})=>{let r=t.split("-")[0];r!==e(this,Tr,dc)&&h(this,Tr,r,eR)},renderPopup:t=>{let r=e(this,io).value?.popupId??"";return f`
4862
+ `],V1,U1,j1,K1,ur,Cg,Sg,Eg,$g,bd,W1,mr,Kr,as,fo,yd,G1,jr=class extends(K1=b,j1=[u({type:Boolean,attribute:"show-arrow"})],U1=[u({type:Boolean,attribute:"close-on-click"})],V1=[k()],K1){constructor(){super(...arguments);s(this,mr);s(this,Cg,i(ur,8,this,!0)),i(ur,11,this);s(this,Sg,i(ur,12,this,!1)),i(ur,15,this);s(this,Eg,i(ur,16,this,"bottom")),i(ur,19,this);s(this,Kr,new J(this,{context:ns,subscribe:!0}));s(this,as,!1);s(this,fo,new ie(this,{getAnchor:()=>r(this,Kr).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:kO,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,mr,bd)&&h(this,mr,e,W1)},renderPopup:t=>{let e=r(this,Kr).value?.popupId??"";return v`
5092
4863
  <div
5093
4864
  class="Popup"
5094
- id="${r}"
4865
+ id="${e}"
5095
4866
  role="dialog"
5096
4867
  ?data-starting-style="${t.isStarting}"
5097
4868
  ?data-ending-style="${t.isEnding}"
5098
- data-side="${e(this,Tr,dc)}"
5099
- @click="${e(this,cc)}"
4869
+ data-side="${r(this,mr,bd)}"
4870
+ @click="${r(this,yd)}"
5100
4871
  >
5101
4872
  <div class="Content"></div>
5102
- ${this.showArrow?os(e(this,Tr,dc)):""}
4873
+ ${this.showArrow?ji(r(this,mr,bd)):""}
5103
4874
  </div>
5104
- `}}));s(this,cc,()=>{this.closeOnClick&&e(this,io).value?.closePopover()})}containsEventTarget(t){let r=e(this,_o).positionerElement;return r!==null&&t.includes(r)}updated(){let t=e(this,io).value?.open??!1;t&&!e(this,gs)?(m(this,Tr,rR).call(this),e(this,_o).open()):!t&&e(this,gs)&&e(this,_o).close(),h(this,gs,t)}render(){return f`<slot></slot>`}};Er=C(tR),Hb=new WeakMap,Nb=new WeakMap,Bb=new WeakMap,Tr=new WeakSet,io=new WeakMap,gs=new WeakMap,_o=new WeakMap,cc=new WeakMap,rR=function(){let t=e(this,io).value?.side??"bottom";e(this,_o).placement=t,e(this,_o).offset=e(this,io).value?.sideOffset??8},l(Er,4,"showArrow",ZT,$r,Hb),l(Er,4,"closeOnClick",QT,$r,Nb),Db=l(Er,20,"#side",JT,Tr,Bb),dc=Db.get,eR=Db.set,S(Er,$r),b($r,"tagName","dui-popover-popup"),b($r,"styles",[y,hz]);var mz=c`
4875
+ `}}));s(this,yd,()=>{this.closeOnClick&&r(this,Kr).value?.closePopover()})}containsEventTarget(t){let e=r(this,fo).positionerElement;return e!==null&&t.includes(e)}updated(){let t=r(this,Kr).value?.open??!1;t&&!r(this,as)?(m(this,mr,G1).call(this),r(this,fo).open()):!t&&r(this,as)&&r(this,fo).close(),h(this,as,t)}render(){return v`<slot></slot>`}};ur=S(K1),Cg=new WeakMap,Sg=new WeakMap,Eg=new WeakMap,mr=new WeakSet,Kr=new WeakMap,as=new WeakMap,fo=new WeakMap,yd=new WeakMap,G1=function(){let t=r(this,Kr).value?.side??"bottom";r(this,fo).placement=t,r(this,fo).offset=r(this,Kr).value?.sideOffset??8},d(ur,4,"showArrow",j1,jr,Cg),d(ur,4,"closeOnClick",U1,jr,Sg),$g=d(ur,20,"#side",V1,mr,Eg),bd=$g.get,W1=$g.set,C(ur,jr),g(jr,"tagName","dui-popover-popup"),g(jr,"styles",[w,wO]);var rU=c`
5105
4876
  :host {
5106
4877
  display: contents;
5107
4878
  }
5108
- `,Nn=class extends g{static tagName="dui-popover-close";static styles=[y,mz];#t=new V(this,{context:zo,subscribe:!0});#e=()=>{this.#t.value?.closePopover()};render(){return f`
5109
- <span @click="${this.#e}">
5110
- <slot></slot>
5111
- </span>
5112
- `}};var oR=[We,Hn,$r,Nn];var fz=c`
4879
+ `;var EO=c`
5113
4880
  :host {
5114
4881
  display: contents;
5115
4882
  }
5116
- `,iR,sR,nR,aR,Rr,qb,Vb,Ub,Ir,xi,Mo,fe,jb,lR,Wb,pc,hc,nr=class extends(aR=g,nR=[u({type:String})],sR=[u({type:String,attribute:"target-root",reflect:!0})],iR=[u({attribute:!1})],aR){constructor(){super(...arguments);s(this,fe);s(this,qb,i(Rr,8,this,"body")),i(Rr,11,this);s(this,Vb,i(Rr,12,this,"document")),i(Rr,15,this);s(this,Ub,i(Rr,16,this)),i(Rr,19,this);s(this,Ir);s(this,xi,new Set);s(this,Mo,!1);s(this,hc,()=>{e(this,Mo)||!e(this,Ir)||m(this,fe,pc).call(this)})}connectedCallback(){super.connectedCallback(),h(this,Ir,this.targetElement??m(this,fe,jb).call(this)),e(this,Ir)&&this.childNodes.length>0&&m(this,fe,pc).call(this)}disconnectedCallback(){super.disconnectedCallback(),m(this,fe,Wb).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(m(this,fe,Wb).call(this),m(this,fe,lR).call(this))}render(){return f`<slot @slotchange=${e(this,hc)}></slot>`}};Rr=C(aR),qb=new WeakMap,Vb=new WeakMap,Ub=new WeakMap,Ir=new WeakMap,xi=new WeakMap,Mo=new WeakMap,fe=new WeakSet,jb=function(){return sS(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},lR=function(){h(this,Ir,this.targetElement??m(this,fe,jb).call(this)),m(this,fe,pc).call(this)},Wb=function(){if(e(this,xi).size!==0){h(this,Mo,!0);for(let t of e(this,xi))this.append(t);e(this,xi).clear(),h(this,Mo,!1),h(this,Ir,void 0)}},pc=function(){if(!e(this,Ir))throw new Error(`Portal target does not exist: ${this.target}`);h(this,Mo,!0);let t=Array.from(this.childNodes);for(let r of t)e(this,Ir).appendChild(r),e(this,xi).add(r);h(this,Mo,!1)},hc=new WeakMap,l(Rr,4,"target",nR,nr,qb),l(Rr,4,"targetRoot",sR,nr,Vb),l(Rr,4,"targetElement",iR,nr,Ub),S(Rr,nr),b(nr,"tagName","dui-portal"),b(nr,"styles",[fz]);var dR=[nr];var bs=Symbol("dui-preview-card");var sy=O("open-change",{bubbles:!0,composed:!0}),vz=c`
4883
+ `,Y1,X1,Q1,J1,fr,Tg,Rg,Ig,gr,ni,vo,de,Ag,Z1,_g,xd,wd,vr=class extends(J1=b,Q1=[u({type:String})],X1=[u({type:String,attribute:"target-root",reflect:!0})],Y1=[u({attribute:!1})],J1){constructor(){super(...arguments);s(this,de);s(this,Tg,i(fr,8,this,"body")),i(fr,11,this);s(this,Rg,i(fr,12,this,"document")),i(fr,15,this);s(this,Ig,i(fr,16,this)),i(fr,19,this);s(this,gr);s(this,ni,new Set);s(this,vo,!1);s(this,wd,()=>{r(this,vo)||!r(this,gr)||m(this,de,xd).call(this)})}connectedCallback(){super.connectedCallback(),h(this,gr,this.targetElement??m(this,de,Ag).call(this)),r(this,gr)&&this.childNodes.length>0&&m(this,de,xd).call(this)}disconnectedCallback(){super.disconnectedCallback(),m(this,de,_g).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(m(this,de,_g).call(this),m(this,de,Z1).call(this))}render(){return v`<slot @slotchange=${r(this,wd)}></slot>`}};fr=S(J1),Tg=new WeakMap,Rg=new WeakMap,Ig=new WeakMap,gr=new WeakMap,ni=new WeakMap,vo=new WeakMap,de=new WeakSet,Ag=function(){return Aw(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},Z1=function(){h(this,gr,this.targetElement??m(this,de,Ag).call(this)),m(this,de,xd).call(this)},_g=function(){if(r(this,ni).size!==0){h(this,vo,!0);for(let t of r(this,ni))this.append(t);r(this,ni).clear(),h(this,vo,!1),h(this,gr,void 0)}},xd=function(){if(!r(this,gr))throw new Error(`Portal target does not exist: ${this.target}`);h(this,vo,!0);let t=Array.from(this.childNodes);for(let e of t)r(this,gr).appendChild(e),r(this,ni).add(e);h(this,vo,!1)},wd=new WeakMap,d(fr,4,"target",Q1,vr,Tg),d(fr,4,"targetRoot",X1,vr,Rg),d(fr,4,"targetElement",Y1,vr,Ig),C(fr,vr),g(vr,"tagName","dui-portal"),g(vr,"styles",[EO]);var an=Symbol("dui-preview-card");var Vg=_("open-change",{bubbles:!0,composed:!0}),$O=c`
5117
4884
  :host {
5118
4885
  display: contents;
5119
4886
  }
5120
- `,cR,pR,hR,uR,mR,fR,vR,gR,bR,yR,gt,Kb,Gb,Yb,Xb,Jb,Qb,Zb,ty,uc,mc,Z,ey,ry,ny,xR,wi,ki,gc,bc,oy,iy,fc,wR,vc,kR,SR,ay,ly,CR,ve=class extends(yR=g,bR=[u({type:Boolean,reflect:!0})],gR=[u({type:Boolean,attribute:"default-open"})],vR=[u({reflect:!0})],fR=[u({type:Number,attribute:"side-offset"})],mR=[u({type:Number})],uR=[u({type:Number,attribute:"close-delay"})],hR=[k()],pR=[k()],cR=[yt({context:bs}),k()],yR){constructor(){super(...arguments);s(this,Z);s(this,Kb,i(gt,8,this,!1)),i(gt,11,this);s(this,Gb,i(gt,12,this,!1)),i(gt,15,this);s(this,Yb,i(gt,16,this,"top")),i(gt,19,this);s(this,Xb,i(gt,20,this,8)),i(gt,23,this);s(this,Jb,i(gt,24,this,400)),i(gt,27,this);s(this,Qb,i(gt,28,this,300)),i(gt,31,this);s(this,Zb,i(gt,32,this,!1)),i(gt,35,this);s(this,ey,i(gt,36,this)),i(gt,39,this);s(this,wi);s(this,ki);s(this,gc,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,bc,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);s(this,oy,i(gt,40,this,{open:!1,triggerId:e(this,gc),popupId:e(this,bc),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>m(this,Z,kR).call(this),closePreviewCard:()=>m(this,Z,SR).call(this),setTriggerEl:t=>m(this,Z,CR).call(this,t)})),i(gt,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,Z,!0,mc)}disconnectedCallback(){super.disconnectedCallback(),m(this,Z,vc).call(this)}willUpdate(t){let r=this.open||e(this,Z,uc);(t.has("open")||t.has("side")||t.has("sideOffset")||e(this,Z,fc).open!==r||e(this,Z,fc).triggerEl!==e(this,Z,ny))&&h(this,Z,{...e(this,Z,fc),open:r,side:this.side,sideOffset:this.sideOffset,triggerEl:e(this,Z,ny)},wR)}render(){return f`<slot></slot>`}};gt=C(yR),Kb=new WeakMap,Gb=new WeakMap,Yb=new WeakMap,Xb=new WeakMap,Jb=new WeakMap,Qb=new WeakMap,Zb=new WeakMap,Z=new WeakSet,ey=new WeakMap,wi=new WeakMap,ki=new WeakMap,gc=new WeakMap,bc=new WeakMap,oy=new WeakMap,vc=function(){e(this,wi)&&(clearTimeout(e(this,wi)),h(this,wi,void 0)),e(this,ki)&&(clearTimeout(e(this,ki)),h(this,ki,void 0))},kR=function(){m(this,Z,vc).call(this),this.delay<=0?m(this,Z,ay).call(this):h(this,wi,setTimeout(()=>m(this,Z,ay).call(this),this.delay))},SR=function(){m(this,Z,vc).call(this),this.closeDelay<=0?m(this,Z,ly).call(this):h(this,ki,setTimeout(()=>m(this,Z,ly).call(this),this.closeDelay))},ay=function(){e(this,Z,uc)||(h(this,Z,!0,mc),this.dispatchEvent(sy({open:!0})))},ly=function(){e(this,Z,uc)&&(h(this,Z,!1,mc),this.dispatchEvent(sy({open:!1})))},CR=function(t){h(this,Z,t,xR)},l(gt,4,"open",bR,ve,Kb),l(gt,4,"defaultOpen",gR,ve,Gb),l(gt,4,"side",vR,ve,Yb),l(gt,4,"sideOffset",fR,ve,Xb),l(gt,4,"delay",mR,ve,Jb),l(gt,4,"closeDelay",uR,ve,Qb),ty=l(gt,20,"#internalOpen",hR,Z,Zb),uc=ty.get,mc=ty.set,ry=l(gt,20,"#triggerEl",pR,Z,ey),ny=ry.get,xR=ry.set,iy=l(gt,20,"#ctx",cR,Z,oy),fc=iy.get,wR=iy.set,S(gt,ve),b(ve,"tagName","dui-preview-card"),b(ve,"styles",[y,vz]);var gz=c`
4887
+ `,t$,e$,r$,o$,i$,s$,n$,a$,l$,d$,vt,Og,Lg,Pg,zg,Mg,Dg,Fg,Hg,kd,Cd,st,Ng,Bg,Ug,c$,ai,li,Ed,$d,qg,Sd,p$,h$,jg,Kg,u$,ce=class extends(d$=b,l$=[u({type:Boolean,reflect:!0})],a$=[u({type:Boolean,attribute:"default-open"})],n$=[u({reflect:!0})],s$=[u({type:Number,attribute:"side-offset"})],i$=[u({type:Number})],o$=[u({type:Number,attribute:"close-delay"})],r$=[k()],e$=[k()],t$=[bt({context:an}),k()],d$){constructor(){super(...arguments);s(this,st);s(this,Og,i(vt,8,this,!1)),i(vt,11,this);s(this,Lg,i(vt,12,this,!1)),i(vt,15,this);s(this,Pg,i(vt,16,this,"top")),i(vt,19,this);s(this,zg,i(vt,20,this,8)),i(vt,23,this);s(this,Mg,i(vt,24,this,400)),i(vt,27,this);s(this,Dg,i(vt,28,this,300)),i(vt,31,this);s(this,Fg,i(vt,32,this,!1)),i(vt,35,this);s(this,Ng,i(vt,36,this)),i(vt,39,this);s(this,ai);s(this,li);s(this,Ed,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,$d,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);s(this,qg,i(vt,40,this,{open:!1,triggerId:r(this,Ed),popupId:r(this,$d),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>m(this,st,p$).call(this),closePreviewCard:()=>m(this,st,h$).call(this),setTriggerEl:t=>m(this,st,u$).call(this,t)})),i(vt,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,st,!0,Cd)}disconnectedCallback(){super.disconnectedCallback(),m(this,st,Sd).call(this)}willUpdate(t){let e=this.open||r(this,st,kd);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e||this._ctx.triggerEl!==r(this,st,Ug))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,triggerEl:r(this,st,Ug)})}render(){return v`<slot></slot>`}};vt=S(d$),Og=new WeakMap,Lg=new WeakMap,Pg=new WeakMap,zg=new WeakMap,Mg=new WeakMap,Dg=new WeakMap,Fg=new WeakMap,st=new WeakSet,Ng=new WeakMap,ai=new WeakMap,li=new WeakMap,Ed=new WeakMap,$d=new WeakMap,qg=new WeakMap,Sd=function(){r(this,ai)&&(clearTimeout(r(this,ai)),h(this,ai,void 0)),r(this,li)&&(clearTimeout(r(this,li)),h(this,li,void 0))},p$=function(){m(this,st,Sd).call(this),this.delay<=0?m(this,st,jg).call(this):h(this,ai,setTimeout(()=>m(this,st,jg).call(this),this.delay))},h$=function(){m(this,st,Sd).call(this),this.closeDelay<=0?m(this,st,Kg).call(this):h(this,li,setTimeout(()=>m(this,st,Kg).call(this),this.closeDelay))},jg=function(){r(this,st,kd)||(h(this,st,!0,Cd),this.dispatchEvent(Vg({open:!0})))},Kg=function(){r(this,st,kd)&&(h(this,st,!1,Cd),this.dispatchEvent(Vg({open:!1})))},u$=function(t){h(this,st,t,c$)},d(vt,4,"open",l$,ce,Og),d(vt,4,"defaultOpen",a$,ce,Lg),d(vt,4,"side",n$,ce,Pg),d(vt,4,"sideOffset",s$,ce,zg),d(vt,4,"delay",i$,ce,Mg),d(vt,4,"closeDelay",o$,ce,Dg),Hg=d(vt,20,"#internalOpen",r$,st,Fg),kd=Hg.get,Cd=Hg.set,Bg=d(vt,20,"#triggerEl",e$,st,Ng),Ug=Bg.get,c$=Bg.set,d(vt,4,"_ctx",t$,ce,qg),C(vt,ce),g(ce,"tagName","dui-preview-card"),g(ce,"styles",[w,$O]);var AU=c`
5121
4888
  :host {
5122
4889
  display: contents;
5123
4890
  }
5124
- `,bz=c`
4891
+ `,_U=c`
5125
4892
  .Trigger {
5126
4893
  display: contents;
5127
4894
  }
5128
- `,Bn=class extends g{static tagName="dui-preview-card-trigger";static styles=[y,gz,bz];#t=new V(this,{context:bs,subscribe:!0});#e=()=>{this.#l(),this.#t.value?.openPreviewCard()};#s=()=>{this.#t.value?.closePreviewCard()};#n=()=>{this.#l(),this.#t.value?.openPreviewCard()};#a=()=>{this.#t.value?.closePreviewCard()};#d=o=>{o.key==="Escape"&&this.#t.value?.open&&this.#t.value?.closePreviewCard()};#l(){let r=this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})?.[0]??this;this.#t.value?.setTriggerEl(r)}render(){let o=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",r=this.#t.value?.triggerId??"";return f`
5129
- <span
5130
- class="Trigger"
5131
- part="trigger"
5132
- id="${r}"
5133
- tabindex="0"
5134
- aria-describedby="${o?t:""}"
5135
- ?data-popup-open="${o}"
5136
- @mouseenter="${this.#e}"
5137
- @mouseleave="${this.#s}"
5138
- @focus="${this.#n}"
5139
- @blur="${this.#a}"
5140
- @keydown="${this.#d}"
5141
- >
5142
- <slot></slot>
5143
- </span>
5144
- `}};var yz=c`
4895
+ `;var TO=c`
5145
4896
  :host {
5146
4897
  display: none;
5147
4898
  }
5148
- `,xz=[c`
4899
+ `,RO=[c`
5149
4900
  .Popup {
5150
4901
  box-sizing: border-box;
5151
4902
  pointer-events: auto;
@@ -5186,21 +4937,21 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5186
4937
  left: 50%;
5187
4938
  transform: translateX(-50%) rotate(180deg);
5188
4939
  }
5189
- `],ER,$R,TR,Si,dy,cy,py,yc,RR,Or,Ar,ys,Ci,xc,wc,IR,so=class extends(TR=g,$R=[u({type:Boolean,attribute:"show-arrow"})],ER=[k()],TR){constructor(){super(...arguments);s(this,Or);s(this,dy,i(Si,8,this,!0)),i(Si,11,this);s(this,cy,i(Si,12,this,"top")),i(Si,15,this);s(this,Ar,new V(this,{context:bs,subscribe:!0}));s(this,ys,!1);s(this,Ci,new ue(this,{getAnchor:()=>e(this,Ar).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:xz,contentContainer:".PreviewCardContent",onPosition:({placement:t})=>{let r=t.split("-")[0];r!==e(this,Or,yc)&&h(this,Or,r,RR)},renderPopup:t=>{let r=e(this,Ar).value?.popupId??"";return f`
4940
+ `],m$,f$,v$,di,Wg,Gg,Yg,Td,g$,yr,br,ls,ci,Rd,Id,b$,go=class extends(v$=b,f$=[u({type:Boolean,attribute:"show-arrow"})],m$=[k()],v$){constructor(){super(...arguments);s(this,yr);s(this,Wg,i(di,8,this,!0)),i(di,11,this);s(this,Gg,i(di,12,this,"top")),i(di,15,this);s(this,br,new J(this,{context:an,subscribe:!0}));s(this,ls,!1);s(this,ci,new ie(this,{getAnchor:()=>r(this,br).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:RO,contentContainer:".PreviewCardContent",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,yr,Td)&&h(this,yr,e,g$)},renderPopup:t=>{let e=r(this,br).value?.popupId??"";return v`
5190
4941
  <div
5191
4942
  class="Popup"
5192
- id="${r}"
4943
+ id="${e}"
5193
4944
  role="tooltip"
5194
4945
  ?data-starting-style="${t.isStarting}"
5195
4946
  ?data-ending-style="${t.isEnding}"
5196
- data-side="${e(this,Or,yc)}"
5197
- @mouseenter="${e(this,xc)}"
5198
- @mouseleave="${e(this,wc)}"
4947
+ data-side="${r(this,yr,Td)}"
4948
+ @mouseenter="${r(this,Rd)}"
4949
+ @mouseleave="${r(this,Id)}"
5199
4950
  >
5200
4951
  <div class="PreviewCardContent"></div>
5201
- ${this.showArrow?os(e(this,Or,yc)):""}
4952
+ ${this.showArrow?ji(r(this,yr,Td)):""}
5202
4953
  </div>
5203
- `}}));s(this,xc,()=>{e(this,Ar).value?.openPreviewCard()});s(this,wc,()=>{e(this,Ar).value?.closePreviewCard()})}updated(){let t=e(this,Ar).value?.open??!1;t&&!e(this,ys)?(m(this,Or,IR).call(this),e(this,Ci).open()):!t&&e(this,ys)&&e(this,Ci).close(),h(this,ys,t)}render(){return f`<slot></slot>`}};Si=C(TR),dy=new WeakMap,cy=new WeakMap,Or=new WeakSet,Ar=new WeakMap,ys=new WeakMap,Ci=new WeakMap,xc=new WeakMap,wc=new WeakMap,IR=function(){let t=e(this,Ar).value?.side??"top";e(this,Ci).placement=t,e(this,Ci).offset=e(this,Ar).value?.sideOffset??8},l(Si,4,"showArrow",$R,so,dy),py=l(Si,20,"#side",ER,Or,cy),yc=py.get,RR=py.set,S(Si,so),b(so,"tagName","dui-preview-card-popup"),b(so,"styles",[y,yz]);var AR=[ve,Bn,so];var wz=c`
4954
+ `}}));s(this,Rd,()=>{r(this,br).value?.openPreviewCard()});s(this,Id,()=>{r(this,br).value?.closePreviewCard()})}updated(){let t=r(this,br).value?.open??!1;t&&!r(this,ls)?(m(this,yr,b$).call(this),r(this,ci).open()):!t&&r(this,ls)&&r(this,ci).close(),h(this,ls,t)}render(){return v`<slot></slot>`}};di=S(v$),Wg=new WeakMap,Gg=new WeakMap,yr=new WeakSet,br=new WeakMap,ls=new WeakMap,ci=new WeakMap,Rd=new WeakMap,Id=new WeakMap,b$=function(){let t=r(this,br).value?.side??"top";r(this,ci).placement=t,r(this,ci).offset=r(this,br).value?.sideOffset??8},d(di,4,"showArrow",f$,go,Wg),Yg=d(di,20,"#side",m$,yr,Gg),Td=Yg.get,g$=Yg.set,C(di,go),g(go,"tagName","dui-preview-card-popup"),g(go,"styles",[w,TO]);var AO=c`
5204
4955
  :host {
5205
4956
  display: block;
5206
4957
  }
@@ -5218,23 +4969,23 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5218
4969
  width: var(--progress-value, 0%);
5219
4970
  height: 100%;
5220
4971
  }
5221
- `,OR,LR,PR,zR,Lr,hy,uy,my,Pr,_R,fy,vy,ar=class extends(zR=g,PR=[u({type:Number})],LR=[u({type:Number})],OR=[u({type:Number})],zR){constructor(){super(...arguments);s(this,Pr);s(this,hy,i(Lr,8,this,null)),i(Lr,11,this);s(this,uy,i(Lr,12,this,0)),i(Lr,15,this);s(this,my,i(Lr,16,this,100)),i(Lr,19,this)}render(){let t=e(this,Pr,_R);return f`
4972
+ `,y$,x$,w$,k$,xr,Xg,Qg,Jg,kr,C$,Zg,tb,wr=class extends(k$=b,w$=[u({type:Number})],x$=[u({type:Number})],y$=[u({type:Number})],k$){constructor(){super(...arguments);s(this,kr);s(this,Xg,i(xr,8,this,null)),i(xr,11,this);s(this,Qg,i(xr,12,this,0)),i(xr,15,this);s(this,Jg,i(xr,16,this,100)),i(xr,19,this)}render(){let t=r(this,kr,C$);return v`
5222
4973
  <div
5223
4974
  part="root"
5224
4975
  role="progressbar"
5225
4976
  aria-valuenow="${this.value??T}"
5226
4977
  aria-valuemin="${this.min}"
5227
4978
  aria-valuemax="${this.max}"
5228
- ?data-complete="${e(this,Pr,vy)}"
5229
- ?data-progressing="${!e(this,Pr,fy)&&!e(this,Pr,vy)}"
5230
- ?data-indeterminate="${e(this,Pr,fy)}"
4979
+ ?data-complete="${r(this,kr,tb)}"
4980
+ ?data-progressing="${!r(this,kr,Zg)&&!r(this,kr,tb)}"
4981
+ ?data-indeterminate="${r(this,kr,Zg)}"
5231
4982
  style="--progress-value: ${t}%"
5232
4983
  >
5233
4984
  <div part="track">
5234
4985
  <div part="indicator"></div>
5235
4986
  </div>
5236
4987
  </div>
5237
- `}};Lr=C(zR),hy=new WeakMap,uy=new WeakMap,my=new WeakMap,Pr=new WeakSet,_R=function(){if(this.value===null)return 0;let t=this.max-this.min;return t<=0?0:Math.max(0,Math.min(100,(this.value-this.min)/t*100))},fy=function(){return this.value===null},vy=function(){return this.value!==null&&this.value>=this.max},l(Lr,4,"value",PR,ar,hy),l(Lr,4,"min",LR,ar,uy),l(Lr,4,"max",OR,ar,my),S(Lr,ar),b(ar,"tagName","dui-progress"),b(ar,"styles",[y,wz]);var MR=[ar];var kc=Symbol("dui-radio-group");var kz=c`
4988
+ `}};xr=S(k$),Xg=new WeakMap,Qg=new WeakMap,Jg=new WeakMap,kr=new WeakSet,C$=function(){if(this.value===null)return 0;let t=this.max-this.min;return t<=0?0:Math.max(0,Math.min(100,(this.value-this.min)/t*100))},Zg=function(){return this.value===null},tb=function(){return this.value!==null&&this.value>=this.max},d(xr,4,"value",w$,wr,Xg),d(xr,4,"min",x$,wr,Qg),d(xr,4,"max",y$,wr,Jg),C(xr,wr),g(wr,"tagName","dui-progress"),g(wr,"styles",[w,AO]);var Ad=Symbol("dui-radio-group");var _O=c`
5238
4989
  :host {
5239
4990
  display: inline-flex;
5240
4991
  align-items: center;
@@ -5285,47 +5036,47 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5285
5036
  width: 0;
5286
5037
  height: 0;
5287
5038
  }
5288
- `,FR,HR,NR,BR,DR,Oe,gy,by,yy,no,xy,wy,xs,Sz,Mt,qR,ky,Sy,VR,UR,Dn,ws,Sc,lr=class extends(DR=g,BR=[u()],NR=[u({type:Boolean,reflect:!0})],HR=[u({type:Boolean,reflect:!0,attribute:"read-only"})],FR=[at({context:Ce,subscribe:!0}),k()],DR){constructor(){super(...arguments);s(this,Mt);s(this,gy,i(Oe,8,this,"")),i(Oe,11,this);s(this,by,i(Oe,12,this,!1)),i(Oe,15,this);s(this,yy,i(Oe,16,this,!1)),i(Oe,19,this);s(this,no,new V(this,{context:kc,subscribe:!0}));s(this,xy,i(Oe,20,this)),i(Oe,23,this);s(this,Dn,t=>{t.target.closest("[part='root']")||e(this,ws).call(this,t)});s(this,ws,t=>{if(e(this,Mt,ky)||e(this,Mt,Sy))return;let r=e(this,no).value;r&&(r.select(this.value),e(this,Mt,xs)?.markDirty(),e(this,Mt,xs)?.markTouched())});s(this,Sc,t=>{t.key===" "&&(t.preventDefault(),e(this,ws).call(this,t))})}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Dn))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Dn))}render(){let t=e(this,Mt,qR),r=e(this,Mt,ky),a=e(this,Mt,Sy),d=e(this,Mt,VR),p=e(this,Mt,UR),v=e(this,Mt,xs)?.controlId??"";return f`
5039
+ `,S$,E$,$$,T$,R$,ke,eb,rb,ob,Wr,ib,pe,I$,sb,nb,A$,_$,ln,ds,_d,Qe=class extends(R$=b,T$=[u()],$$=[u({type:Boolean,reflect:!0})],E$=[u({type:Boolean,reflect:!0,attribute:"read-only"})],S$=[ot({context:be,subscribe:!0}),k()],R$){constructor(){super(...arguments);s(this,pe);s(this,eb,i(ke,8,this,"")),i(ke,11,this);s(this,rb,i(ke,12,this,!1)),i(ke,15,this);s(this,ob,i(ke,16,this,!1)),i(ke,19,this);s(this,Wr,new J(this,{context:Ad,subscribe:!0}));s(this,ib,i(ke,20,this)),i(ke,23,this);s(this,ln,t=>{t.target.closest("[part='root']")||r(this,ds).call(this,t)});s(this,ds,t=>{if(r(this,pe,sb)||r(this,pe,nb))return;let e=r(this,Wr).value;e&&(e.select(this.value),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched())});s(this,_d,t=>{t.key===" "&&(t.preventDefault(),r(this,ds).call(this,t))})}connectedCallback(){super.connectedCallback(),this.addEventListener("click",r(this,ln))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,ln))}render(){let t=r(this,pe,I$),e=r(this,pe,sb),a=r(this,pe,nb),l=r(this,pe,A$),p=r(this,pe,_$),f=this._fieldCtx?.controlId??"";return v`
5289
5040
  <span
5290
5041
  part="root"
5291
5042
  role="radio"
5292
- id="${v||T}"
5043
+ id="${f||T}"
5293
5044
  aria-checked="${String(t)}"
5294
- aria-disabled="${r?"true":T}"
5045
+ aria-disabled="${e?"true":T}"
5295
5046
  aria-readonly="${a?"true":T}"
5296
- aria-required="${d?"true":T}"
5047
+ aria-required="${l?"true":T}"
5297
5048
  aria-invalid="${p?"true":T}"
5298
- tabindex="${r?T:"0"}"
5049
+ tabindex="${e?T:"0"}"
5299
5050
  ?data-checked="${t}"
5300
5051
  ?data-unchecked="${!t}"
5301
- ?data-disabled="${r}"
5052
+ ?data-disabled="${e}"
5302
5053
  ?data-readonly="${a}"
5303
- ?data-required="${d}"
5054
+ ?data-required="${l}"
5304
5055
  ?data-invalid="${p}"
5305
- @click="${e(this,ws)}"
5306
- @keydown="${e(this,Sc)}"
5056
+ @click="${r(this,ds)}"
5057
+ @keydown="${r(this,_d)}"
5307
5058
  >
5308
5059
  <span
5309
5060
  part="indicator"
5310
5061
  ?data-checked="${t}"
5311
5062
  ?data-unchecked="${!t}"
5312
5063
  >
5313
- ${t?f`<span part="dot"></span>`:T}
5064
+ ${t?v`<span part="dot"></span>`:T}
5314
5065
  </span>
5315
5066
  <input
5316
5067
  type="radio"
5317
- name="${e(this,no).value?.name??T}"
5068
+ name="${r(this,Wr).value?.name??T}"
5318
5069
  value="${this.value}"
5319
5070
  .checked="${t}"
5320
- ?disabled="${r}"
5321
- ?required="${d}"
5071
+ ?disabled="${e}"
5072
+ ?required="${l}"
5322
5073
  class="hidden-input"
5323
5074
  aria-hidden="true"
5324
5075
  tabindex="-1"
5325
5076
  />
5326
5077
  </span>
5327
5078
  <slot></slot>
5328
- `}};Oe=C(DR),gy=new WeakMap,by=new WeakMap,yy=new WeakMap,no=new WeakMap,xy=new WeakMap,Mt=new WeakSet,qR=function(){return e(this,no).value?.value===this.value},ky=function(){return this.disabled||(e(this,no).value?.disabled??!1)||(e(this,Mt,xs)?.disabled??!1)},Sy=function(){return this.readOnly||(e(this,no).value?.readOnly??!1)},VR=function(){return e(this,no).value?.required??!1},UR=function(){return e(this,Mt,xs)?.invalid??!1},Dn=new WeakMap,ws=new WeakMap,Sc=new WeakMap,l(Oe,4,"value",BR,lr,gy),l(Oe,4,"disabled",NR,lr,by),l(Oe,4,"readOnly",HR,lr,yy),wy=l(Oe,20,"#fieldCtx",FR,Mt,xy),xs=wy.get,Sz=wy.set,S(Oe,lr),b(lr,"tagName","dui-radio"),b(lr,"styles",[y,kz]);var tI=O("value-change",{bubbles:!0,composed:!0}),Cz=c`
5079
+ `}};ke=S(R$),eb=new WeakMap,rb=new WeakMap,ob=new WeakMap,Wr=new WeakMap,ib=new WeakMap,pe=new WeakSet,I$=function(){return r(this,Wr).value?.value===this.value},sb=function(){return this.disabled||(r(this,Wr).value?.disabled??!1)||(this._fieldCtx?.disabled??!1)},nb=function(){return this.readOnly||(r(this,Wr).value?.readOnly??!1)},A$=function(){return r(this,Wr).value?.required??!1},_$=function(){return this._fieldCtx?.invalid??!1},ln=new WeakMap,ds=new WeakMap,_d=new WeakMap,d(ke,4,"value",T$,Qe,eb),d(ke,4,"disabled",$$,Qe,rb),d(ke,4,"readOnly",E$,Qe,ob),d(ke,4,"_fieldCtx",S$,Qe,ib),C(ke,Qe),g(Qe,"tagName","dui-radio"),g(Qe,"styles",[w,_O]);var B$=_("value-change",{bubbles:!0,composed:!0}),OO=c`
5329
5080
  :host {
5330
5081
  display: block;
5331
5082
  }
@@ -5339,7 +5090,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5339
5090
  [part="root"][data-disabled] {
5340
5091
  opacity: 0.5;
5341
5092
  }
5342
- `,jR,WR,KR,GR,YR,XR,JR,QR,ZR,kt,Cy,Ey,$y,Ty,Ry,Iy,Ay,Oy,eI,zy,de,Ec,$c,Ly,Py,Ez,_y,Cc,ge=class extends(ZR=g,QR=[u()],JR=[u()],XR=[u({attribute:"default-value"})],YR=[u({type:Boolean,reflect:!0})],GR=[u({type:Boolean,reflect:!0,attribute:"read-only"})],KR=[u({type:Boolean,reflect:!0})],WR=[k()],jR=[yt({context:kc}),k()],ZR){constructor(){super(...arguments);s(this,de);s(this,Cy,i(kt,8,this)),i(kt,11,this);s(this,Ey,i(kt,12,this)),i(kt,15,this);s(this,$y,i(kt,16,this)),i(kt,19,this);s(this,Ty,i(kt,20,this,!1)),i(kt,23,this);s(this,Ry,i(kt,24,this,!1)),i(kt,27,this);s(this,Iy,i(kt,28,this,!1)),i(kt,31,this);s(this,Ay,i(kt,32,this)),i(kt,35,this);s(this,Ec,()=>this.value??e(this,de,eI));s(this,$c,t=>{this.disabled||this.readOnly||(this.value===void 0&&h(this,de,t,zy),this.dispatchEvent(tI({value:t})))});s(this,Ly,i(kt,36,this,m(this,de,Cc).call(this))),i(kt,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,de,this.defaultValue,zy),h(this,de,m(this,de,Cc).call(this),_y)}willUpdate(){h(this,de,m(this,de,Cc).call(this),_y)}render(){return f`
5093
+ `,O$,L$,P$,z$,M$,D$,F$,H$,N$,xt,ab,lb,db,cb,pb,hb,ub,mb,q$,vb,Je,Ld,Pd,fb,Od,he=class extends(N$=b,H$=[u()],F$=[u()],D$=[u({attribute:"default-value"})],M$=[u({type:Boolean,reflect:!0})],z$=[u({type:Boolean,reflect:!0,attribute:"read-only"})],P$=[u({type:Boolean,reflect:!0})],L$=[k()],O$=[bt({context:Ad}),k()],N$){constructor(){super(...arguments);s(this,Je);s(this,ab,i(xt,8,this)),i(xt,11,this);s(this,lb,i(xt,12,this)),i(xt,15,this);s(this,db,i(xt,16,this)),i(xt,19,this);s(this,cb,i(xt,20,this,!1)),i(xt,23,this);s(this,pb,i(xt,24,this,!1)),i(xt,27,this);s(this,hb,i(xt,28,this,!1)),i(xt,31,this);s(this,ub,i(xt,32,this)),i(xt,35,this);s(this,Ld,()=>this.value??r(this,Je,q$));s(this,Pd,t=>{this.disabled||this.readOnly||(this.value===void 0&&h(this,Je,t,vb),this.dispatchEvent(B$({value:t})))});s(this,fb,i(xt,36,this,m(this,Je,Od).call(this))),i(xt,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,Je,this.defaultValue,vb),this._ctx=m(this,Je,Od).call(this)}willUpdate(){this._ctx=m(this,Je,Od).call(this)}render(){return v`
5343
5094
  <div
5344
5095
  part="root"
5345
5096
  role="radiogroup"
@@ -5349,7 +5100,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5349
5100
  >
5350
5101
  <slot></slot>
5351
5102
  </div>
5352
- `}};kt=C(ZR),Cy=new WeakMap,Ey=new WeakMap,$y=new WeakMap,Ty=new WeakMap,Ry=new WeakMap,Iy=new WeakMap,Ay=new WeakMap,de=new WeakSet,Ec=new WeakMap,$c=new WeakMap,Ly=new WeakMap,Cc=function(){return{name:this.name,value:e(this,Ec).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:e(this,$c)}},l(kt,4,"name",QR,ge,Cy),l(kt,4,"value",JR,ge,Ey),l(kt,4,"defaultValue",XR,ge,$y),l(kt,4,"disabled",YR,ge,Ty),l(kt,4,"readOnly",GR,ge,Ry),l(kt,4,"required",KR,ge,Iy),Oy=l(kt,20,"#internalValue",WR,de,Ay),eI=Oy.get,zy=Oy.set,Py=l(kt,20,"#ctx",jR,de,Ly),Ez=Py.get,_y=Py.set,S(kt,ge),b(ge,"tagName","dui-radio-group"),b(ge,"styles",[y,Cz]);var rI=[lr,ge];var $z=c`
5103
+ `}};xt=S(N$),ab=new WeakMap,lb=new WeakMap,db=new WeakMap,cb=new WeakMap,pb=new WeakMap,hb=new WeakMap,ub=new WeakMap,Je=new WeakSet,Ld=new WeakMap,Pd=new WeakMap,fb=new WeakMap,Od=function(){return{name:this.name,value:r(this,Ld).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:r(this,Pd)}},d(xt,4,"name",H$,he,ab),d(xt,4,"value",F$,he,lb),d(xt,4,"defaultValue",D$,he,db),d(xt,4,"disabled",M$,he,cb),d(xt,4,"readOnly",z$,he,pb),d(xt,4,"required",P$,he,hb),mb=d(xt,20,"#internalValue",L$,Je,ub),q$=mb.get,vb=mb.set,d(xt,4,"_ctx",O$,he,fb),C(xt,he),g(he,"tagName","dui-radio-group"),g(he,"styles",[w,OO]);var LO=c`
5353
5104
  :host {
5354
5105
  display: block;
5355
5106
  position: relative;
@@ -5445,62 +5196,62 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5445
5196
  height: 100%;
5446
5197
  min-width: 1.25rem;
5447
5198
  }
5448
- `,oI,iI,sI,nI,aI,lI,dI,cI,pI,hI,uI,mI,fI,tt,My,Fy,Hy,Ny,By,Tc,vI,L,Dy,qy,Rc,gI,Vy,Uy,ox,ix,jy,Wy,Ic,sx,Ky,Gy,nx,bI,Yy,Xy,ax,yI,Jy,Qy,xI,wI,Zy,tx,kI,SI,ex,rx,lx,CI,Ac,ao,ks,Ss,Ei,$i,Ti,Ri,Fo,EI,$I,Ii,Vn,Oc,Un,jn,Wn,Kn,Gn,Yn,TI,RI,zr=class zr extends(fI=g,mI=[u({reflect:!0})],uI=[u({type:Boolean,reflect:!0})],hI=[u({attribute:"max-height"})],pI=[k()],cI=[k()],dI=[k()],lI=[k()],aI=[k()],nI=[k()],sI=[k()],iI=[k()],oI=[k()],fI){constructor(){super(...arguments);s(this,L);s(this,My,i(tt,8,this,"vertical")),i(tt,11,this);s(this,Fy,i(tt,12,this,!1)),i(tt,15,this);s(this,Hy,i(tt,16,this)),i(tt,19,this);s(this,Ny,i(tt,20,this,!1)),i(tt,23,this);s(this,Dy,i(tt,24,this,!1)),i(tt,27,this);s(this,Vy,i(tt,28,this,!1)),i(tt,31,this);s(this,jy,i(tt,32,this,!1)),i(tt,35,this);s(this,Ky,i(tt,36,this,0)),i(tt,39,this);s(this,Yy,i(tt,40,this,0)),i(tt,43,this);s(this,Jy,i(tt,44,this,0)),i(tt,47,this);s(this,Zy,i(tt,48,this,0)),i(tt,51,this);s(this,ex,i(tt,52,this,!0)),i(tt,55,this);s(this,ao,!0);s(this,ks,0);s(this,Ss);s(this,Ei);s(this,$i);s(this,Ti,0);s(this,Ri,0);s(this,Ii,()=>{let t=e(this,L,Fo);if(!t)return;let r=t.scrollHeight>t.clientHeight,a=t.scrollWidth>t.clientWidth;h(this,L,r,gI),h(this,L,a,vI),r&&h(this,L,t.clientHeight/t.scrollHeight*100,bI),a&&h(this,L,t.clientWidth/t.scrollWidth*100,yI),e(this,Vn).call(this,t)});s(this,Vn,t=>{if(e(this,L,Rc)){let r=t.scrollHeight-t.clientHeight;h(this,L,r>0?t.scrollTop/r*(100-e(this,L,nx)):0,wI)}if(e(this,L,Tc)){let r=t.scrollWidth-t.clientWidth;h(this,L,r>0?t.scrollLeft/r*(100-e(this,L,ax)):0,SI)}});s(this,Oc,()=>{let t=e(this,L,Fo);if(!t)return;h(this,L,!0,sx),e(this,Vn).call(this,t);let r=e(this,ao),a=t.scrollTop<e(this,ks);h(this,L,t.scrollTop<=0,CI),h(this,ao,t.scrollTop+t.clientHeight>=t.scrollHeight-e(zr,Ac)),a&&r&&!e(this,ao)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!r&&e(this,ao)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),h(this,ks,t.scrollTop),clearTimeout(e(this,Ss)),h(this,Ss,setTimeout(()=>{h(this,L,!1,sx)},1e3))});s(this,Un,()=>{h(this,L,!0,ix),e(this,Ii).call(this)});s(this,jn,()=>{h(this,L,!1,ix)});s(this,Wn,(t,r)=>{r.preventDefault(),r.stopPropagation();let a=e(this,L,Fo);if(a)if(t==="vertical"){let d=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!d)return;let p=d.getBoundingClientRect(),v=(r.clientY-p.top)/p.height;a.scrollTop=v*(a.scrollHeight-a.clientHeight)}else{let d=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!d)return;let p=d.getBoundingClientRect(),v=(r.clientX-p.left)/p.width;a.scrollLeft=v*(a.scrollWidth-a.clientWidth)}});s(this,Kn,(t,r)=>{r.preventDefault(),r.stopPropagation();let a=e(this,L,Fo);a&&(h(this,$i,t),t==="vertical"?(h(this,Ti,r.clientY),h(this,Ri,a.scrollTop)):(h(this,Ti,r.clientX),h(this,Ri,a.scrollLeft)),document.addEventListener("pointermove",e(this,Gn)),document.addEventListener("pointerup",e(this,Yn)))});s(this,Gn,t=>{let r=e(this,L,Fo);if(!(!r||!e(this,$i)))if(e(this,$i)==="vertical"){let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!a)return;let d=t.clientY-e(this,Ti),p=a.clientHeight,v=r.scrollHeight-r.clientHeight;r.scrollTop=e(this,Ri)+d/p*v}else{let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!a)return;let d=t.clientX-e(this,Ti),p=a.clientWidth,v=r.scrollWidth-r.clientWidth;r.scrollLeft=e(this,Ri)+d/p*v}});s(this,Yn,()=>{h(this,$i,void 0),document.removeEventListener("pointermove",e(this,Gn)),document.removeEventListener("pointerup",e(this,Yn))})}willUpdate(t){t.has("maxHeight")&&(this.maxHeight?this.style.setProperty("--scroll-area-max-height",this.maxHeight):this.style.removeProperty("--scroll-area-max-height"))}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerenter",e(this,Un)),this.addEventListener("pointerleave",e(this,jn))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",e(this,Un)),this.removeEventListener("pointerleave",e(this,jn)),e(this,Ei)?.disconnect(),clearTimeout(e(this,Ss))}firstUpdated(){let t=e(this,L,Fo);if(!t)return;h(this,Ei,new ResizeObserver(()=>e(this,Ii).call(this))),e(this,Ei).observe(t);let r=t.querySelector("slot");if(r){let a=()=>{for(let d of r.assignedElements())e(this,Ei).observe(d)};r.addEventListener("slotchange",()=>{a(),requestAnimationFrame(()=>e(this,Ii).call(this))}),a()}e(this,Ii).call(this)}async scrollToBottom(){await this.updateComplete;let t=e(this,L,Fo);t&&(t.scrollTop=t.scrollHeight,h(this,ao,!0),h(this,ks,t.scrollTop))}get isAtTop(){return e(this,L,lx)}get isAtBottom(){return e(this,ao)}render(){return f`
5199
+ `,V$,U$,j$,K$,W$,G$,Y$,X$,Q$,J$,Z$,tT,eT,Q,gb,bb,yb,xb,wb,zd,rT,O,kb,Cb,Md,oT,Sb,Eb,Fb,Hb,$b,Tb,Dd,Nb,Rb,Ib,Bb,iT,Ab,_b,qb,sT,Ob,Lb,nT,aT,Pb,zb,lT,dT,Mb,Db,Vb,cT,Hd,Gr,cs,ps,pi,hi,ui,mi,bo,pT,hT,fi,dn,Nd,cn,pn,hn,un,mn,fn,uT,mT,Cr=class Cr extends(eT=b,tT=[u({reflect:!0})],Z$=[u({type:Boolean,reflect:!0})],J$=[u({attribute:"max-height"})],Q$=[k()],X$=[k()],Y$=[k()],G$=[k()],W$=[k()],K$=[k()],j$=[k()],U$=[k()],V$=[k()],eT){constructor(){super(...arguments);s(this,O);s(this,gb,i(Q,8,this,"vertical")),i(Q,11,this);s(this,bb,i(Q,12,this,!1)),i(Q,15,this);s(this,yb,i(Q,16,this)),i(Q,19,this);s(this,xb,i(Q,20,this,!1)),i(Q,23,this);s(this,kb,i(Q,24,this,!1)),i(Q,27,this);s(this,Sb,i(Q,28,this,!1)),i(Q,31,this);s(this,$b,i(Q,32,this,!1)),i(Q,35,this);s(this,Rb,i(Q,36,this,0)),i(Q,39,this);s(this,Ab,i(Q,40,this,0)),i(Q,43,this);s(this,Ob,i(Q,44,this,0)),i(Q,47,this);s(this,Pb,i(Q,48,this,0)),i(Q,51,this);s(this,Mb,i(Q,52,this,!0)),i(Q,55,this);s(this,Gr,!0);s(this,cs,0);s(this,ps);s(this,pi);s(this,hi);s(this,ui,0);s(this,mi,0);s(this,fi,()=>{let t=r(this,O,bo);if(!t)return;let e=t.scrollHeight>t.clientHeight,a=t.scrollWidth>t.clientWidth;h(this,O,e,oT),h(this,O,a,rT),e&&h(this,O,t.clientHeight/t.scrollHeight*100,iT),a&&h(this,O,t.clientWidth/t.scrollWidth*100,sT),r(this,dn).call(this,t)});s(this,dn,t=>{if(r(this,O,Md)){let e=t.scrollHeight-t.clientHeight;h(this,O,e>0?t.scrollTop/e*(100-r(this,O,Bb)):0,aT)}if(r(this,O,zd)){let e=t.scrollWidth-t.clientWidth;h(this,O,e>0?t.scrollLeft/e*(100-r(this,O,qb)):0,dT)}});s(this,Nd,()=>{let t=r(this,O,bo);if(!t)return;h(this,O,!0,Nb),r(this,dn).call(this,t);let e=r(this,Gr),a=t.scrollTop<r(this,cs);h(this,O,t.scrollTop<=0,cT),h(this,Gr,t.scrollTop+t.clientHeight>=t.scrollHeight-r(Cr,Hd)),a&&e&&!r(this,Gr)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!e&&r(this,Gr)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),h(this,cs,t.scrollTop),clearTimeout(r(this,ps)),h(this,ps,setTimeout(()=>{h(this,O,!1,Nb)},1e3))});s(this,cn,()=>{h(this,O,!0,Hb),r(this,fi).call(this)});s(this,pn,()=>{h(this,O,!1,Hb)});s(this,hn,(t,e)=>{e.preventDefault(),e.stopPropagation();let a=r(this,O,bo);if(a)if(t==="vertical"){let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!l)return;let p=l.getBoundingClientRect(),f=(e.clientY-p.top)/p.height;a.scrollTop=f*(a.scrollHeight-a.clientHeight)}else{let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!l)return;let p=l.getBoundingClientRect(),f=(e.clientX-p.left)/p.width;a.scrollLeft=f*(a.scrollWidth-a.clientWidth)}});s(this,un,(t,e)=>{e.preventDefault(),e.stopPropagation();let a=r(this,O,bo);a&&(h(this,hi,t),t==="vertical"?(h(this,ui,e.clientY),h(this,mi,a.scrollTop)):(h(this,ui,e.clientX),h(this,mi,a.scrollLeft)),document.addEventListener("pointermove",r(this,mn)),document.addEventListener("pointerup",r(this,fn)))});s(this,mn,t=>{let e=r(this,O,bo);if(!(!e||!r(this,hi)))if(r(this,hi)==="vertical"){let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!a)return;let l=t.clientY-r(this,ui),p=a.clientHeight,f=e.scrollHeight-e.clientHeight;e.scrollTop=r(this,mi)+l/p*f}else{let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!a)return;let l=t.clientX-r(this,ui),p=a.clientWidth,f=e.scrollWidth-e.clientWidth;e.scrollLeft=r(this,mi)+l/p*f}});s(this,fn,()=>{h(this,hi,void 0),document.removeEventListener("pointermove",r(this,mn)),document.removeEventListener("pointerup",r(this,fn))})}willUpdate(t){t.has("maxHeight")&&(this.maxHeight?this.style.setProperty("--scroll-area-max-height",this.maxHeight):this.style.removeProperty("--scroll-area-max-height"))}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerenter",r(this,cn)),this.addEventListener("pointerleave",r(this,pn))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",r(this,cn)),this.removeEventListener("pointerleave",r(this,pn)),r(this,pi)?.disconnect(),clearTimeout(r(this,ps))}firstUpdated(){let t=r(this,O,bo);if(!t)return;h(this,pi,new ResizeObserver(()=>r(this,fi).call(this))),r(this,pi).observe(t);let e=t.querySelector("slot");if(e){let a=()=>{for(let l of e.assignedElements())r(this,pi).observe(l)};e.addEventListener("slotchange",()=>{a(),requestAnimationFrame(()=>r(this,fi).call(this))}),a()}r(this,fi).call(this)}async scrollToBottom(){await this.updateComplete;let t=r(this,O,bo);t&&(t.scrollTop=t.scrollHeight,h(this,Gr,!0),h(this,cs,t.scrollTop))}get isAtTop(){return r(this,O,Vb)}get isAtBottom(){return r(this,Gr)}render(){return v`
5449
5200
  <div
5450
5201
  class="ScrollArea"
5451
5202
  part="root"
5452
- ?data-has-overflow-x="${e(this,L,Tc)}"
5453
- ?data-has-overflow-y="${e(this,L,Rc)}"
5454
- ?data-scrolling="${e(this,L,Ic)}"
5203
+ ?data-has-overflow-x="${r(this,O,zd)}"
5204
+ ?data-has-overflow-y="${r(this,O,Md)}"
5205
+ ?data-scrolling="${r(this,O,Dd)}"
5455
5206
  >
5456
- ${this.fade?f`<div
5207
+ ${this.fade?v`<div
5457
5208
  class="ScrollFade"
5458
- ?data-scrolled="${!e(this,L,lx)}"
5209
+ ?data-scrolled="${!r(this,O,Vb)}"
5459
5210
  ></div>`:T}
5460
- <div class="Viewport" part="viewport" @scroll="${e(this,Oc)}">
5211
+ <div class="Viewport" part="viewport" @scroll="${r(this,Nd)}">
5461
5212
  <slot></slot>
5462
5213
  </div>
5463
- ${m(this,L,TI).call(this)} ${m(this,L,RI).call(this)}
5214
+ ${m(this,O,uT).call(this)} ${m(this,O,mT).call(this)}
5464
5215
  </div>
5465
- `}};tt=C(fI),My=new WeakMap,Fy=new WeakMap,Hy=new WeakMap,Ny=new WeakMap,L=new WeakSet,Dy=new WeakMap,Vy=new WeakMap,jy=new WeakMap,Ky=new WeakMap,Yy=new WeakMap,Jy=new WeakMap,Zy=new WeakMap,ex=new WeakMap,Ac=new WeakMap,ao=new WeakMap,ks=new WeakMap,Ss=new WeakMap,Ei=new WeakMap,$i=new WeakMap,Ti=new WeakMap,Ri=new WeakMap,Fo=function(){return this.shadowRoot?.querySelector(".Viewport")??null},EI=function(){return this.orientation==="vertical"||this.orientation==="both"},$I=function(){return this.orientation==="horizontal"||this.orientation==="both"},Ii=new WeakMap,Vn=new WeakMap,Oc=new WeakMap,Un=new WeakMap,jn=new WeakMap,Wn=new WeakMap,Kn=new WeakMap,Gn=new WeakMap,Yn=new WeakMap,TI=function(){return!e(this,L,EI)||!e(this,L,Rc)?T:f`
5216
+ `}};Q=S(eT),gb=new WeakMap,bb=new WeakMap,yb=new WeakMap,xb=new WeakMap,O=new WeakSet,kb=new WeakMap,Sb=new WeakMap,$b=new WeakMap,Rb=new WeakMap,Ab=new WeakMap,Ob=new WeakMap,Pb=new WeakMap,Mb=new WeakMap,Hd=new WeakMap,Gr=new WeakMap,cs=new WeakMap,ps=new WeakMap,pi=new WeakMap,hi=new WeakMap,ui=new WeakMap,mi=new WeakMap,bo=function(){return this.shadowRoot?.querySelector(".Viewport")??null},pT=function(){return this.orientation==="vertical"||this.orientation==="both"},hT=function(){return this.orientation==="horizontal"||this.orientation==="both"},fi=new WeakMap,dn=new WeakMap,Nd=new WeakMap,cn=new WeakMap,pn=new WeakMap,hn=new WeakMap,un=new WeakMap,mn=new WeakMap,fn=new WeakMap,uT=function(){return!r(this,O,pT)||!r(this,O,Md)?T:v`
5466
5217
  <div
5467
5218
  class="Scrollbar"
5468
5219
  part="scrollbar-vertical"
5469
5220
  data-orientation="vertical"
5470
- ?data-hovering="${e(this,L,ox)}"
5471
- ?data-scrolling="${e(this,L,Ic)}"
5472
- @pointerdown="${t=>e(this,Wn).call(this,"vertical",t)}"
5221
+ ?data-hovering="${r(this,O,Fb)}"
5222
+ ?data-scrolling="${r(this,O,Dd)}"
5223
+ @pointerdown="${t=>r(this,hn).call(this,"vertical",t)}"
5473
5224
  >
5474
5225
  <div
5475
5226
  class="Thumb"
5476
5227
  part="thumb-vertical"
5477
5228
  data-orientation="vertical"
5478
- style="height: ${e(this,L,nx)}%; top: ${e(this,L,xI)}%; position: absolute;"
5479
- @pointerdown="${t=>e(this,Kn).call(this,"vertical",t)}"
5229
+ style="height: ${r(this,O,Bb)}%; top: ${r(this,O,nT)}%; position: absolute;"
5230
+ @pointerdown="${t=>r(this,un).call(this,"vertical",t)}"
5480
5231
  ></div>
5481
5232
  </div>
5482
- `},RI=function(){return!e(this,L,$I)||!e(this,L,Tc)?T:f`
5233
+ `},mT=function(){return!r(this,O,hT)||!r(this,O,zd)?T:v`
5483
5234
  <div
5484
5235
  class="Scrollbar"
5485
5236
  part="scrollbar-horizontal"
5486
5237
  data-orientation="horizontal"
5487
- ?data-hovering="${e(this,L,ox)}"
5488
- ?data-scrolling="${e(this,L,Ic)}"
5489
- @pointerdown="${t=>e(this,Wn).call(this,"horizontal",t)}"
5238
+ ?data-hovering="${r(this,O,Fb)}"
5239
+ ?data-scrolling="${r(this,O,Dd)}"
5240
+ @pointerdown="${t=>r(this,hn).call(this,"horizontal",t)}"
5490
5241
  >
5491
5242
  <div
5492
5243
  class="Thumb"
5493
5244
  part="thumb-horizontal"
5494
5245
  data-orientation="horizontal"
5495
- style="width: ${e(this,L,ax)}%; left: ${e(this,L,kI)}%; position: absolute;"
5496
- @pointerdown="${t=>e(this,Kn).call(this,"horizontal",t)}"
5246
+ style="width: ${r(this,O,qb)}%; left: ${r(this,O,lT)}%; position: absolute;"
5247
+ @pointerdown="${t=>r(this,un).call(this,"horizontal",t)}"
5497
5248
  ></div>
5498
5249
  </div>
5499
- `},l(tt,4,"orientation",mI,zr,My),l(tt,4,"fade",uI,zr,Fy),l(tt,4,"maxHeight",hI,zr,Hy),By=l(tt,20,"#hasOverflowX",pI,L,Ny),Tc=By.get,vI=By.set,qy=l(tt,20,"#hasOverflowY",cI,L,Dy),Rc=qy.get,gI=qy.set,Uy=l(tt,20,"#hovering",dI,L,Vy),ox=Uy.get,ix=Uy.set,Wy=l(tt,20,"#scrolling",lI,L,jy),Ic=Wy.get,sx=Wy.set,Gy=l(tt,20,"#thumbHeightPercent",aI,L,Ky),nx=Gy.get,bI=Gy.set,Xy=l(tt,20,"#thumbWidthPercent",nI,L,Yy),ax=Xy.get,yI=Xy.set,Qy=l(tt,20,"#thumbTopPercent",sI,L,Jy),xI=Qy.get,wI=Qy.set,tx=l(tt,20,"#thumbLeftPercent",iI,L,Zy),kI=tx.get,SI=tx.set,rx=l(tt,20,"#isAtTop",oI,L,ex),lx=rx.get,CI=rx.set,S(tt,zr),b(zr,"tagName","dui-scroll-area"),b(zr,"styles",[y,$z]),s(zr,Ac,1);var qn=zr;var II=[qn];var Tz=O("value-change",{bubbles:!0,composed:!0}),Rz=c`
5250
+ `},d(Q,4,"orientation",tT,Cr,gb),d(Q,4,"fade",Z$,Cr,bb),d(Q,4,"maxHeight",J$,Cr,yb),wb=d(Q,20,"#hasOverflowX",Q$,O,xb),zd=wb.get,rT=wb.set,Cb=d(Q,20,"#hasOverflowY",X$,O,kb),Md=Cb.get,oT=Cb.set,Eb=d(Q,20,"#hovering",Y$,O,Sb),Fb=Eb.get,Hb=Eb.set,Tb=d(Q,20,"#scrolling",G$,O,$b),Dd=Tb.get,Nb=Tb.set,Ib=d(Q,20,"#thumbHeightPercent",W$,O,Rb),Bb=Ib.get,iT=Ib.set,_b=d(Q,20,"#thumbWidthPercent",K$,O,Ab),qb=_b.get,sT=_b.set,Lb=d(Q,20,"#thumbTopPercent",j$,O,Ob),nT=Lb.get,aT=Lb.set,zb=d(Q,20,"#thumbLeftPercent",U$,O,Pb),lT=zb.get,dT=zb.set,Db=d(Q,20,"#isAtTop",V$,O,Mb),Vb=Db.get,cT=Db.set,C(Q,Cr),g(Cr,"tagName","dui-scroll-area"),g(Cr,"styles",[w,LO]),s(Cr,Hd,1);var Fd=Cr;var PO=_("value-change",{bubbles:!0,composed:!0}),zO=c`
5500
5251
  :host {
5501
5252
  display: block;
5502
5253
  }
5503
- `,Iz=c`
5254
+ `,MO=c`
5504
5255
  .Trigger {
5505
5256
  display: flex;
5506
5257
  align-items: center;
@@ -5525,7 +5276,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5525
5276
  .Icon {
5526
5277
  flex-shrink: 0;
5527
5278
  }
5528
- `,Az=[c`
5279
+ `,DO=[c`
5529
5280
  .Popup {
5530
5281
  max-height: 240px;
5531
5282
  overflow-y: auto;
@@ -5561,7 +5312,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5561
5312
  .ItemText {
5562
5313
  flex: 1;
5563
5314
  }
5564
- `],AI,OI,LI,PI,zI,_I,MI,FI,Ot,dx,cx,px,hx,ux,mx,fx,_r,Oz,N,vx,gx,Ai,Ho,Lc,Oi,Ft,Xn,bx,yx,HI,NI,Pc,zc,_c,Mc,Fc,xx,Jn,wx,Hc,Le=class extends(FI=g,MI=[u({attribute:!1})],_I=[u({type:String})],zI=[u({type:String})],PI=[u({type:Boolean,reflect:!0})],LI=[u({type:String})],OI=[at({context:Ce,subscribe:!0}),k()],AI=[k()],FI){constructor(){super(...arguments);s(this,N);s(this,dx,i(Ot,8,this,[])),i(Ot,11,this);s(this,cx,i(Ot,12,this,"")),i(Ot,15,this);s(this,px,i(Ot,16,this,"Select...")),i(Ot,19,this);s(this,hx,i(Ot,20,this,!1)),i(Ot,23,this);s(this,ux,i(Ot,24,this,"")),i(Ot,27,this);s(this,mx,i(Ot,28,this)),i(Ot,31,this);s(this,vx,i(Ot,32,this,-1)),i(Ot,35,this);s(this,Lc,`select-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,Oi,`select-listbox-${crypto.randomUUID().slice(0,8)}`);s(this,Ft,new ue(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),styles:Az,onOpen:()=>{h(this,N,e(this,N,HI),Ho)},onClose:()=>{h(this,N,-1,Ho),e(this,N,_r)?.markTouched()},renderPopup:t=>f`
5315
+ `],fT,vT,gT,bT,yT,xT,wT,kT,It,Ub,jb,Kb,Wb,Gb,Yb,Xb,Qb,vi,yo,V,Bd,gi,Lt,vn,Jb,Zb,CT,ST,qd,Vd,Ud,jd,Kd,ty,gn,ey,Wd,Ce=class extends(kT=b,wT=[u({attribute:!1})],xT=[u({type:String})],yT=[u({type:String})],bT=[u({type:Boolean,reflect:!0})],gT=[u({type:String})],vT=[ot({context:be,subscribe:!0}),k()],fT=[k()],kT){constructor(){super(...arguments);s(this,V);s(this,Ub,i(It,8,this,[])),i(It,11,this);s(this,jb,i(It,12,this,"")),i(It,15,this);s(this,Kb,i(It,16,this,"Select...")),i(It,19,this);s(this,Wb,i(It,20,this,!1)),i(It,23,this);s(this,Gb,i(It,24,this,"")),i(It,27,this);s(this,Yb,i(It,28,this)),i(It,31,this);s(this,Xb,i(It,32,this,-1)),i(It,35,this);s(this,Bd,`select-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,gi,`select-listbox-${crypto.randomUUID().slice(0,8)}`);s(this,Lt,new ie(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),styles:DO,onOpen:()=>{h(this,V,r(this,V,CT),yo)},onClose:()=>{h(this,V,-1,yo),this._fieldCtx?.markTouched()},renderPopup:t=>v`
5565
5316
  <div
5566
5317
  class="Popup"
5567
5318
  ?data-starting-style="${t.isStarting}"
@@ -5569,66 +5320,66 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5569
5320
  >
5570
5321
  <div
5571
5322
  class="Listbox"
5572
- id="${e(this,Oi)}"
5323
+ id="${r(this,gi)}"
5573
5324
  role="listbox"
5574
- aria-labelledby="${e(this,N,_r)?.labelId??""}"
5575
- @mousedown="${e(this,_c)}"
5325
+ aria-labelledby="${this._fieldCtx?.labelId??""}"
5326
+ @mousedown="${r(this,Ud)}"
5576
5327
  >
5577
- ${Eo(this.options,r=>r.value,e(this,Hc))}
5328
+ ${io(this.options,e=>e.value,r(this,Wd))}
5578
5329
  </div>
5579
5330
  </div>
5580
- `}));s(this,Pc,t=>{t.stopPropagation(),!e(this,N,Xn)&&(e(this,Ft).isOpen?e(this,Ft).close():e(this,Ft).open())});s(this,zc,t=>{if(!e(this,N,Xn))switch(t.key){case"Enter":case" ":{if(t.preventDefault(),e(this,Ft).isOpen){let r=this.options[e(this,N,Ai)];r&&!r.disabled&&m(this,N,xx).call(this,r)}else e(this,Ft).open();break}case"ArrowDown":{t.preventDefault(),e(this,Ft).isOpen?h(this,N,m(this,N,Jn).call(this,e(this,N,Ai),1),Ho):e(this,Ft).open();break}case"ArrowUp":{t.preventDefault(),e(this,Ft).isOpen?h(this,N,m(this,N,Jn).call(this,e(this,N,Ai),-1),Ho):e(this,Ft).open();break}case"Home":{e(this,Ft).isOpen&&(t.preventDefault(),h(this,N,m(this,N,Jn).call(this,-1,1),Ho));break}case"End":{e(this,Ft).isOpen&&(t.preventDefault(),h(this,N,m(this,N,Jn).call(this,this.options.length,-1),Ho));break}case"Escape":{e(this,Ft).isOpen&&(t.preventDefault(),e(this,Ft).close(),m(this,N,wx).call(this));break}case"Tab":{e(this,Ft).isOpen&&e(this,Ft).close();break}}});s(this,_c,t=>{t.preventDefault()});s(this,Mc,t=>{t.disabled||m(this,N,xx).call(this,t)});s(this,Fc,t=>{this.options[t]?.disabled||h(this,N,t,Ho)});s(this,Hc,(t,r)=>{let a=t.value===this.value,d=r===e(this,N,Ai);return f`
5331
+ `}));s(this,qd,t=>{t.stopPropagation(),!r(this,V,vn)&&(r(this,Lt).isOpen?r(this,Lt).close():r(this,Lt).open())});s(this,Vd,t=>{if(!r(this,V,vn))switch(t.key){case"Enter":case" ":{if(t.preventDefault(),r(this,Lt).isOpen){let e=this.options[r(this,V,vi)];e&&!e.disabled&&m(this,V,ty).call(this,e)}else r(this,Lt).open();break}case"ArrowDown":{t.preventDefault(),r(this,Lt).isOpen?h(this,V,m(this,V,gn).call(this,r(this,V,vi),1),yo):r(this,Lt).open();break}case"ArrowUp":{t.preventDefault(),r(this,Lt).isOpen?h(this,V,m(this,V,gn).call(this,r(this,V,vi),-1),yo):r(this,Lt).open();break}case"Home":{r(this,Lt).isOpen&&(t.preventDefault(),h(this,V,m(this,V,gn).call(this,-1,1),yo));break}case"End":{r(this,Lt).isOpen&&(t.preventDefault(),h(this,V,m(this,V,gn).call(this,this.options.length,-1),yo));break}case"Escape":{r(this,Lt).isOpen&&(t.preventDefault(),r(this,Lt).close(),m(this,V,ey).call(this));break}case"Tab":{r(this,Lt).isOpen&&r(this,Lt).close();break}}});s(this,Ud,t=>{t.preventDefault()});s(this,jd,t=>{t.disabled||m(this,V,ty).call(this,t)});s(this,Kd,t=>{this.options[t]?.disabled||h(this,V,t,yo)});s(this,Wd,(t,e)=>{let a=t.value===this.value,l=e===r(this,V,vi);return v`
5581
5332
  <div
5582
5333
  class="Item"
5583
5334
  role="option"
5584
- id="${e(this,Oi)}-option-${r}"
5335
+ id="${r(this,gi)}-option-${e}"
5585
5336
  aria-selected="${a}"
5586
5337
  ?data-selected="${a}"
5587
- ?data-highlighted="${d}"
5338
+ ?data-highlighted="${l}"
5588
5339
  ?data-disabled="${t.disabled}"
5589
- @click="${()=>e(this,Mc).call(this,t)}"
5590
- @mouseenter="${()=>e(this,Fc).call(this,r)}"
5340
+ @click="${()=>r(this,jd).call(this,t)}"
5341
+ @mouseenter="${()=>r(this,Kd).call(this,e)}"
5591
5342
  >
5592
5343
  <span class="ItemIndicator">
5593
- ${a?f`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:T}
5344
+ ${a?v`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:T}
5594
5345
  </span>
5595
5346
  <span class="ItemText">${t.label}</span>
5596
5347
  </div>
5597
- `})}render(){let t=this.value!==""&&e(this,N,yx)!=null;return f`
5348
+ `})}render(){let t=this.value!==""&&r(this,V,Zb)!=null;return v`
5598
5349
  <div
5599
5350
  class="Trigger"
5600
5351
  part="trigger"
5601
- id="${e(this,Lc)}"
5352
+ id="${r(this,Bd)}"
5602
5353
  role="combobox"
5603
- tabindex="${e(this,N,Xn)?-1:0}"
5354
+ tabindex="${r(this,V,vn)?-1:0}"
5604
5355
  aria-haspopup="listbox"
5605
- aria-expanded="${e(this,Ft).isOpen}"
5606
- aria-controls="${e(this,Oi)}"
5607
- aria-activedescendant="${e(this,N,Ai)>=0?`${e(this,Oi)}-option-${e(this,N,Ai)}`:T}"
5608
- aria-labelledby="${e(this,N,_r)?.labelId??""}"
5609
- aria-invalid="${e(this,N,bx)}"
5610
- ?data-disabled="${e(this,N,Xn)}"
5611
- ?data-invalid="${e(this,N,bx)}"
5612
- ?data-open="${e(this,Ft).isOpen}"
5613
- @click="${e(this,Pc)}"
5614
- @keydown="${e(this,zc)}"
5615
- @focus="${()=>e(this,N,_r)?.setFocused(!0)}"
5616
- @blur="${()=>e(this,N,_r)?.setFocused(!1)}"
5356
+ aria-expanded="${r(this,Lt).isOpen}"
5357
+ aria-controls="${r(this,gi)}"
5358
+ aria-activedescendant="${r(this,V,vi)>=0?`${r(this,gi)}-option-${r(this,V,vi)}`:T}"
5359
+ aria-labelledby="${this._fieldCtx?.labelId??""}"
5360
+ aria-invalid="${r(this,V,Jb)}"
5361
+ ?data-disabled="${r(this,V,vn)}"
5362
+ ?data-invalid="${r(this,V,Jb)}"
5363
+ ?data-open="${r(this,Lt).isOpen}"
5364
+ @click="${r(this,qd)}"
5365
+ @keydown="${r(this,Vd)}"
5366
+ @focus="${()=>this._fieldCtx?.setFocused(!0)}"
5367
+ @blur="${()=>this._fieldCtx?.setFocused(!1)}"
5617
5368
  >
5618
5369
  <span
5619
5370
  class="Value"
5620
5371
  part="value"
5621
5372
  ?data-placeholder="${!t}"
5622
5373
  >
5623
- ${t?e(this,N,NI):this.placeholder}
5374
+ ${t?r(this,V,ST):this.placeholder}
5624
5375
  </span>
5625
5376
  <span class="Icon">
5626
5377
  <dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg></dui-icon>
5627
5378
  </span>
5628
5379
  </div>
5629
5380
 
5630
- ${this.name?f`<input type="hidden" name="${this.name}" .value="${this.value}" />`:T}
5631
- `}};Ot=C(FI),dx=new WeakMap,cx=new WeakMap,px=new WeakMap,hx=new WeakMap,ux=new WeakMap,mx=new WeakMap,N=new WeakSet,vx=new WeakMap,Lc=new WeakMap,Oi=new WeakMap,Ft=new WeakMap,Xn=function(){return this.disabled||(e(this,N,_r)?.disabled??!1)},bx=function(){return e(this,N,_r)?.invalid??!1},yx=function(){return this.options.find(t=>t.value===this.value)},HI=function(){return this.options.findIndex(t=>t.value===this.value)},NI=function(){return e(this,N,yx)?.label??""},Pc=new WeakMap,zc=new WeakMap,_c=new WeakMap,Mc=new WeakMap,Fc=new WeakMap,xx=function(t){this.value=t.value,e(this,N,_r)?.markDirty(),e(this,N,_r)?.setFilled(this.value.length>0),this.dispatchEvent(Tz({value:t.value,option:t})),e(this,Ft).close(),m(this,N,wx).call(this)},Jn=function(t,r){let a=this.options.length,d=t+r;for(;d>=0&&d<a;){if(!this.options[d].disabled)return d;d+=r}return t},wx=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},Hc=new WeakMap,l(Ot,4,"options",MI,Le,dx),l(Ot,4,"value",_I,Le,cx),l(Ot,4,"placeholder",zI,Le,px),l(Ot,4,"disabled",PI,Le,hx),l(Ot,4,"name",LI,Le,ux),fx=l(Ot,20,"#ctx",OI,N,mx),_r=fx.get,Oz=fx.set,gx=l(Ot,20,"#highlightedIndex",AI,N,vx),Ai=gx.get,Ho=gx.set,S(Ot,Le),b(Le,"tagName","dui-select"),b(Le,"styles",[y,Rz,Iz]);var BI=[Le];var Lz=c`
5381
+ ${this.name?v`<input type="hidden" name="${this.name}" .value="${this.value}" />`:T}
5382
+ `}};It=S(kT),Ub=new WeakMap,jb=new WeakMap,Kb=new WeakMap,Wb=new WeakMap,Gb=new WeakMap,Yb=new WeakMap,Xb=new WeakMap,V=new WeakSet,Bd=new WeakMap,gi=new WeakMap,Lt=new WeakMap,vn=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},Jb=function(){return this._fieldCtx?.invalid??!1},Zb=function(){return this.options.find(t=>t.value===this.value)},CT=function(){return this.options.findIndex(t=>t.value===this.value)},ST=function(){return r(this,V,Zb)?.label??""},qd=new WeakMap,Vd=new WeakMap,Ud=new WeakMap,jd=new WeakMap,Kd=new WeakMap,ty=function(t){this.value=t.value,this._fieldCtx?.markDirty(),this._fieldCtx?.setFilled(this.value.length>0),this.dispatchEvent(PO({value:t.value,option:t})),r(this,Lt).close(),m(this,V,ey).call(this)},gn=function(t,e){let a=this.options.length,l=t+e;for(;l>=0&&l<a;){if(!this.options[l].disabled)return l;l+=e}return t},ey=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},Wd=new WeakMap,d(It,4,"options",wT,Ce,Ub),d(It,4,"value",xT,Ce,jb),d(It,4,"placeholder",yT,Ce,Kb),d(It,4,"disabled",bT,Ce,Wb),d(It,4,"name",gT,Ce,Gb),d(It,4,"_fieldCtx",vT,Ce,Yb),Qb=d(It,20,"#highlightedIndex",fT,V,Xb),vi=Qb.get,yo=Qb.set,C(It,Ce),g(Ce,"tagName","dui-select"),g(Ce,"styles",[w,zO,MO]);var FO=c`
5632
5383
  :host {
5633
5384
  display: block;
5634
5385
  }
@@ -5643,19 +5394,19 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5643
5394
  margin: 0;
5644
5395
  padding: 0;
5645
5396
  }
5646
- `,DI,qI,Nc,kx,lo=class extends(qI=g,DI=[u({reflect:!0})],qI){constructor(){super(...arguments);s(this,kx,i(Nc,8,this,"horizontal")),i(Nc,11,this)}render(){return f`
5397
+ `,ET,$T,Gd,ry,xo=class extends($T=b,ET=[u({reflect:!0})],$T){constructor(){super(...arguments);s(this,ry,i(Gd,8,this,"horizontal")),i(Gd,11,this)}render(){return v`
5647
5398
  <div
5648
5399
  part="root"
5649
5400
  role="separator"
5650
5401
  aria-orientation="${this.orientation}"
5651
5402
  ></div>
5652
- `}};Nc=C(qI),kx=new WeakMap,l(Nc,4,"orientation",DI,lo,kx),S(Nc,lo),b(lo,"tagName","dui-separator"),b(lo,"styles",[y,Lz]);var VI=[lo];var Mr=Symbol("dui-sidebar");var tA=O("open-change",{bubbles:!0,composed:!0}),Pz=c`
5403
+ `}};Gd=S($T),ry=new WeakMap,d(Gd,4,"orientation",ET,xo,ry),C(Gd,xo),g(xo,"tagName","dui-separator"),g(xo,"styles",[w,FO]);var wo=Symbol("dui-sidebar");var DT=_("open-change",{bubbles:!0,composed:!0}),HO=c`
5653
5404
  :host {
5654
5405
  display: flex;
5655
5406
  width: 100%;
5656
5407
  height: 100%;
5657
5408
  }
5658
- `,UI,jI,WI,KI,GI,YI,XI,JI,QI,ZI,bt,Sx,Cx,Ex,$x,Tx,Rx,Ix,eA,Mx,st,Ax,Ox,Fx,Bc,Lx,Px,Qn,Hx,No,Li,Pi,Dc,Zn,ta,Vc,Uc,zx,_x,zz,Nx,qc,Pe=class extends(ZI=g,QI=[u({type:Boolean})],JI=[u({type:Boolean,attribute:"default-open"})],XI=[u({reflect:!0})],YI=[u({reflect:!0})],GI=[u({reflect:!0})],KI=[k()],WI=[k()],jI=[k()],UI=[yt({context:Mr}),k()],ZI){constructor(){super(...arguments);s(this,st);s(this,Sx,i(bt,8,this)),i(bt,11,this);s(this,Cx,i(bt,12,this,!0)),i(bt,15,this);s(this,Ex,i(bt,16,this,"left")),i(bt,19,this);s(this,$x,i(bt,20,this,"")),i(bt,23,this);s(this,Tx,i(bt,24,this,"offcanvas")),i(bt,27,this);s(this,Rx,i(bt,28,this,!0)),i(bt,31,this);s(this,Ax,i(bt,32,this,!1)),i(bt,35,this);s(this,Lx,i(bt,36,this,!1)),i(bt,39,this);s(this,No);s(this,Li);s(this,Pi);s(this,Zn,t=>{e(this,st,Qn)?h(this,st,t,Bc):(this.open===void 0&&h(this,st,t,Mx),this.dispatchEvent(tA({open:t})))});s(this,ta,()=>{e(this,st,Qn)?h(this,st,!e(this,st,Fx),Bc):e(this,Zn).call(this,!e(this,st,Dc))});s(this,Vc,t=>{h(this,st,!t.matches,Hx),e(this,st,Qn)||h(this,st,!1,Bc)});s(this,Uc,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),e(this,ta).call(this))});s(this,zx,i(bt,40,this,m(this,st,qc).call(this))),i(bt,43,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&h(this,st,this.defaultOpen,Mx),h(this,No,matchMedia("(min-width: 768px)")),h(this,st,!e(this,No).matches,Hx),h(this,Li,e(this,Vc).bind(this)),e(this,No).addEventListener("change",e(this,Li)),h(this,Pi,e(this,Uc).bind(this)),document.addEventListener("keydown",e(this,Pi)),h(this,st,m(this,st,qc).call(this),Nx)}disconnectedCallback(){super.disconnectedCallback(),e(this,No)&&e(this,Li)&&e(this,No).removeEventListener("change",e(this,Li)),e(this,Pi)&&document.removeEventListener("keydown",e(this,Pi))}willUpdate(){h(this,st,m(this,st,qc).call(this),Nx)}render(){return f`<slot></slot>`}};bt=C(ZI),Sx=new WeakMap,Cx=new WeakMap,Ex=new WeakMap,$x=new WeakMap,Tx=new WeakMap,Rx=new WeakMap,st=new WeakSet,Ax=new WeakMap,Lx=new WeakMap,No=new WeakMap,Li=new WeakMap,Pi=new WeakMap,Dc=function(){return this.open??e(this,st,eA)},Zn=new WeakMap,ta=new WeakMap,Vc=new WeakMap,Uc=new WeakMap,zx=new WeakMap,qc=function(){return{state:e(this,st,Dc)?"expanded":"collapsed",open:e(this,st,Dc),openMobile:e(this,st,Fx),isMobile:e(this,st,Qn),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:e(this,Zn),toggleSidebar:e(this,ta)}},l(bt,4,"open",QI,Pe,Sx),l(bt,4,"defaultOpen",JI,Pe,Cx),l(bt,4,"side",XI,Pe,Ex),l(bt,4,"variant",YI,Pe,$x),l(bt,4,"collapsible",GI,Pe,Tx),Ix=l(bt,20,"#internalOpen",KI,st,Rx),eA=Ix.get,Mx=Ix.set,Ox=l(bt,20,"#openMobile",WI,st,Ax),Fx=Ox.get,Bc=Ox.set,Px=l(bt,20,"#isMobile",jI,st,Lx),Qn=Px.get,Hx=Px.set,_x=l(bt,20,"#ctx",UI,st,zx),zz=_x.get,Nx=_x.set,S(bt,Pe),b(Pe,"tagName","dui-sidebar-provider"),b(Pe,"styles",[y,Pz]);var _z=c`
5409
+ `,TT,RT,IT,AT,_T,OT,LT,PT,zT,MT,gt,oy,iy,sy,ny,ay,ly,dy,FT,fy,dt,cy,py,vy,Yd,hy,uy,bn,gy,ko,bi,yi,Xd,yn,xn,Jd,Zd,my,Qd,Se=class extends(MT=b,zT=[u({type:Boolean})],PT=[u({type:Boolean,attribute:"default-open"})],LT=[u({reflect:!0})],OT=[u({reflect:!0})],_T=[u({reflect:!0})],AT=[k()],IT=[k()],RT=[k()],TT=[bt({context:wo}),k()],MT){constructor(){super(...arguments);s(this,dt);s(this,oy,i(gt,8,this)),i(gt,11,this);s(this,iy,i(gt,12,this,!0)),i(gt,15,this);s(this,sy,i(gt,16,this,"left")),i(gt,19,this);s(this,ny,i(gt,20,this,"")),i(gt,23,this);s(this,ay,i(gt,24,this,"offcanvas")),i(gt,27,this);s(this,ly,i(gt,28,this,!0)),i(gt,31,this);s(this,cy,i(gt,32,this,!1)),i(gt,35,this);s(this,hy,i(gt,36,this,!1)),i(gt,39,this);s(this,ko);s(this,bi);s(this,yi);s(this,yn,t=>{r(this,dt,bn)?h(this,dt,t,Yd):(this.open===void 0&&h(this,dt,t,fy),this.dispatchEvent(DT({open:t})))});s(this,xn,()=>{r(this,dt,bn)?h(this,dt,!r(this,dt,vy),Yd):r(this,yn).call(this,!r(this,dt,Xd))});s(this,Jd,t=>{h(this,dt,!t.matches,gy),r(this,dt,bn)||h(this,dt,!1,Yd)});s(this,Zd,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),r(this,xn).call(this))});s(this,my,i(gt,40,this,m(this,dt,Qd).call(this))),i(gt,43,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&h(this,dt,this.defaultOpen,fy),h(this,ko,matchMedia("(min-width: 768px)")),h(this,dt,!r(this,ko).matches,gy),h(this,bi,r(this,Jd).bind(this)),r(this,ko).addEventListener("change",r(this,bi)),h(this,yi,r(this,Zd).bind(this)),document.addEventListener("keydown",r(this,yi)),this._ctx=m(this,dt,Qd).call(this)}disconnectedCallback(){super.disconnectedCallback(),r(this,ko)&&r(this,bi)&&r(this,ko).removeEventListener("change",r(this,bi)),r(this,yi)&&document.removeEventListener("keydown",r(this,yi))}willUpdate(){this._ctx=m(this,dt,Qd).call(this)}render(){return v`<slot></slot>`}};gt=S(MT),oy=new WeakMap,iy=new WeakMap,sy=new WeakMap,ny=new WeakMap,ay=new WeakMap,ly=new WeakMap,dt=new WeakSet,cy=new WeakMap,hy=new WeakMap,ko=new WeakMap,bi=new WeakMap,yi=new WeakMap,Xd=function(){return this.open??r(this,dt,FT)},yn=new WeakMap,xn=new WeakMap,Jd=new WeakMap,Zd=new WeakMap,my=new WeakMap,Qd=function(){return{state:r(this,dt,Xd)?"expanded":"collapsed",open:r(this,dt,Xd),openMobile:r(this,dt,vy),isMobile:r(this,dt,bn),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:r(this,yn),toggleSidebar:r(this,xn)}},d(gt,4,"open",zT,Se,oy),d(gt,4,"defaultOpen",PT,Se,iy),d(gt,4,"side",LT,Se,sy),d(gt,4,"variant",OT,Se,ny),d(gt,4,"collapsible",_T,Se,ay),dy=d(gt,20,"#internalOpen",AT,dt,ly),FT=dy.get,fy=dy.set,py=d(gt,20,"#openMobile",IT,dt,cy),vy=py.get,Yd=py.set,uy=d(gt,20,"#isMobile",RT,dt,hy),bn=uy.get,gy=uy.set,d(gt,4,"_ctx",TT,Se,my),C(gt,Se),g(Se,"tagName","dui-sidebar-provider"),g(Se,"styles",[w,HO]);var NO=c`
5659
5410
  :host {
5660
5411
  display: block;
5661
5412
  flex-shrink: 0;
@@ -5741,13 +5492,13 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5741
5492
  .MobilePanel[data-ending-style] {
5742
5493
  transform: translateX(var(--mobile-end-x));
5743
5494
  }
5744
- `,rA,oA,iA,sA,Fr,Bx,Dx,jc,Wx,ht,qx,Vx,Kx,Gx,Ux,jx,Wc,Yx,zi,nA,aA,Xx,Kc,Gc,Bo=class extends(sA=g,iA=[k()],oA=[k()],rA=[k()],sA){constructor(){super(...arguments);s(this,ht);s(this,Bx,i(Fr,8,this,!1)),i(Fr,11,this);s(this,qx,i(Fr,12,this,!1)),i(Fr,15,this);s(this,Ux,i(Fr,16,this,!1)),i(Fr,19,this);s(this,zi,new V(this,{context:Mr,subscribe:!0}));s(this,Kc,()=>{e(this,zi).value?.setOpen(!1)});s(this,Gc,t=>{t.key==="Escape"&&(t.preventDefault(),e(this,zi).value?.setOpen(!1))})}willUpdate(){let t=e(this,zi).value;t&&(this.dataset.state=t.state,this.dataset.side=t.side,this.dataset.variant=t.variant,this.dataset.collapsible=t.collapsible,t.isMobile&&(t.openMobile&&!e(this,ht,jc)?m(this,ht,nA).call(this):!t.openMobile&&e(this,ht,jc)&&!e(this,ht,Wc)&&m(this,ht,aA).call(this)))}render(){let t=e(this,zi).value;if(!t)return f``;let a=t.side==="left"?"-100%":"100%";return t.isMobile?e(this,ht,jc)?f`
5495
+ `,HT,NT,BT,qT,Sr,by,yy,tc,Sy,pt,xy,wy,Ey,$y,ky,Cy,ec,Ty,wi,VT,UT,Ry,rc,oc,xi=class extends(qT=b,BT=[k()],NT=[k()],HT=[k()],qT){constructor(){super(...arguments);s(this,pt);s(this,by,i(Sr,8,this,!1)),i(Sr,11,this);s(this,xy,i(Sr,12,this,!1)),i(Sr,15,this);s(this,ky,i(Sr,16,this,!1)),i(Sr,19,this);s(this,wi,new J(this,{context:wo,subscribe:!0}));s(this,rc,()=>{r(this,wi).value?.setOpen(!1)});s(this,oc,t=>{t.key==="Escape"&&(t.preventDefault(),r(this,wi).value?.setOpen(!1))})}willUpdate(){let t=r(this,wi).value;t&&(this.dataset.state=t.state,this.dataset.side=t.side,this.dataset.variant=t.variant,this.dataset.collapsible=t.collapsible,t.isMobile&&(t.openMobile&&!r(this,pt,tc)?m(this,pt,VT).call(this):!t.openMobile&&r(this,pt,tc)&&!r(this,pt,ec)&&m(this,pt,UT).call(this)))}render(){let t=r(this,wi).value;if(!t)return v``;let a=t.side==="left"?"-100%":"100%";return t.isMobile?r(this,pt,tc)?v`
5745
5496
  <div
5746
5497
  class="Backdrop"
5747
5498
  part="backdrop"
5748
- ?data-starting-style=${e(this,ht,Kx)}
5749
- ?data-ending-style=${e(this,ht,Wc)}
5750
- @click=${e(this,Kc)}
5499
+ ?data-starting-style=${r(this,pt,Ey)}
5500
+ ?data-ending-style=${r(this,pt,ec)}
5501
+ @click=${r(this,rc)}
5751
5502
  ></div>
5752
5503
  <div
5753
5504
  class="MobilePanel"
@@ -5755,29 +5506,29 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5755
5506
  role="dialog"
5756
5507
  tabindex="-1"
5757
5508
  style="--mobile-start-x: ${a}; --mobile-end-x: ${a}"
5758
- ?data-starting-style=${e(this,ht,Kx)}
5759
- ?data-ending-style=${e(this,ht,Wc)}
5760
- @keydown=${e(this,Gc)}
5509
+ ?data-starting-style=${r(this,pt,Ey)}
5510
+ ?data-ending-style=${r(this,pt,ec)}
5511
+ @keydown=${r(this,oc)}
5761
5512
  >
5762
5513
  <slot></slot>
5763
5514
  </div>
5764
- `:f``:t.collapsible==="none"?f`
5515
+ `:v``:t.collapsible==="none"?v`
5765
5516
  <div class="DesktopOuter" part="desktop-outer">
5766
5517
  <div class="DesktopInner" part="desktop-inner">
5767
5518
  <slot></slot>
5768
5519
  </div>
5769
5520
  </div>
5770
- `:f`
5521
+ `:v`
5771
5522
  <div class="DesktopOuter" part="desktop-outer">
5772
5523
  <div class="DesktopInner" part="desktop-inner">
5773
5524
  <slot></slot>
5774
5525
  </div>
5775
5526
  </div>
5776
- `}};Fr=C(sA),Bx=new WeakMap,ht=new WeakSet,qx=new WeakMap,Ux=new WeakMap,zi=new WeakMap,nA=async function(){h(this,ht,!0,Wx),h(this,ht,!0,Gx),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,ht,!1,Gx)},aA=function(){h(this,ht,!0,Yx);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){m(this,ht,Xx).call(this);return}let r=!1,a=()=>{r||(r=!0,t.removeEventListener("transitionend",d),clearTimeout(p),m(this,ht,Xx).call(this))},d=()=>{a()};t.addEventListener("transitionend",d);let p=setTimeout(a,250)},Xx=function(){h(this,ht,!1,Yx),h(this,ht,!1,Wx)},Kc=new WeakMap,Gc=new WeakMap,Dx=l(Fr,20,"#mounted",iA,ht,Bx),jc=Dx.get,Wx=Dx.set,Vx=l(Fr,20,"#startingStyle",oA,ht,qx),Kx=Vx.get,Gx=Vx.set,jx=l(Fr,20,"#endingStyle",rA,ht,Ux),Wc=jx.get,Yx=jx.set,S(Fr,Bo),b(Bo,"tagName","dui-sidebar"),b(Bo,"styles",[y,_z]);var Mz=c`
5527
+ `}};Sr=S(qT),by=new WeakMap,pt=new WeakSet,xy=new WeakMap,ky=new WeakMap,wi=new WeakMap,VT=async function(){h(this,pt,!0,Sy),h(this,pt,!0,$y),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,pt,!1,$y)},UT=function(){h(this,pt,!0,Ty);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){m(this,pt,Ry).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(p),m(this,pt,Ry).call(this))},l=()=>{a()};t.addEventListener("transitionend",l);let p=setTimeout(a,250)},Ry=function(){h(this,pt,!1,Ty),h(this,pt,!1,Sy)},rc=new WeakMap,oc=new WeakMap,yy=d(Sr,20,"#mounted",BT,pt,by),tc=yy.get,Sy=yy.set,wy=d(Sr,20,"#startingStyle",NT,pt,xy),Ey=wy.get,$y=wy.set,Cy=d(Sr,20,"#endingStyle",HT,pt,ky),ec=Cy.get,Ty=Cy.set,C(Sr,xi),g(xi,"tagName","dui-sidebar"),g(xi,"styles",[w,NO]);var fj=c`
5777
5528
  :host {
5778
5529
  display: inline-block;
5779
5530
  }
5780
- `,Fz=f`<svg
5531
+ `,vj=v`<svg
5781
5532
  viewBox="0 0 24 24"
5782
5533
  fill="none"
5783
5534
  stroke="currentColor"
@@ -5787,13 +5538,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5787
5538
  >
5788
5539
  <rect width="18" height="18" x="3" y="3" rx="2" />
5789
5540
  <path d="M9 3v18" />
5790
- </svg>`,ea=class extends g{static tagName="dui-sidebar-trigger";static styles=[y,Mz];#t=new V(this,{context:Mr,subscribe:!0});#e=()=>{this.#t.value?.toggleSidebar()};render(){return f`
5791
- <dui-button appearance="ghost" size="sm" @click=${this.#e}>
5792
- <slot>
5793
- <dui-icon>${Fz}</dui-icon>
5794
- </slot>
5795
- </dui-button>
5796
- `}};var Hz=c`
5541
+ </svg>`;var xj=c`
5797
5542
  :host {
5798
5543
  display: flex;
5799
5544
  flex-direction: column;
@@ -5801,31 +5546,24 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5801
5546
  min-height: 0;
5802
5547
  overflow: hidden;
5803
5548
  }
5804
- `,ra=class extends g{static tagName="dui-sidebar-content";static styles=[y,Hz];render(){return f`
5805
- <dui-scroll-area>
5806
- <slot></slot>
5807
- </dui-scroll-area>
5808
- `}};var Nz=c`
5549
+ `;var Sj=c`
5809
5550
  :host {
5810
5551
  display: flex;
5811
5552
  flex-direction: column;
5812
5553
  }
5813
- `,oa=class extends g{static tagName="dui-sidebar-header";static styles=[y,Nz];render(){return f`<slot></slot>`}};var Bz=c`
5554
+ `;var Rj=c`
5814
5555
  :host {
5815
5556
  display: flex;
5816
5557
  flex-direction: column;
5817
5558
  }
5818
- `,ia=class extends g{static tagName="dui-sidebar-footer";static styles=[y,Bz];render(){return f`<slot></slot>`}};var Dz=c`
5559
+ `;var Oj=c`
5819
5560
  :host {
5820
5561
  display: flex;
5821
5562
  flex-direction: column;
5822
5563
  position: relative;
5823
5564
  overflow: hidden;
5824
5565
  }
5825
- `,sa=class extends g{static tagName="dui-sidebar-group";static styles=[y,Dz];render(){return f`
5826
- <slot name="label"></slot>
5827
- <slot></slot>
5828
- `}};var qz=c`
5566
+ `;var Fj=c`
5829
5567
  :host {
5830
5568
  display: flex;
5831
5569
  align-items: center;
@@ -5837,7 +5575,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5837
5575
  :host([data-icon-collapsed]) {
5838
5576
  opacity: 0;
5839
5577
  }
5840
- `,na=class extends g{static tagName="dui-sidebar-group-label";static styles=[y,qz];#t=new V(this,{context:Mr,subscribe:!0});get#e(){let o=this.#t.value;return o?.collapsible==="icon"&&o?.state==="collapsed"}updated(){this.#e?this.setAttribute("data-icon-collapsed",""):this.removeAttribute("data-icon-collapsed")}render(){return f`<slot></slot>`}};var Vz=c`
5578
+ `;var qj=c`
5841
5579
  .Menu {
5842
5580
  display: flex;
5843
5581
  flex-direction: column;
@@ -5845,15 +5583,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5845
5583
  margin: 0;
5846
5584
  padding: 0;
5847
5585
  }
5848
- `,aa=class extends g{static tagName="dui-sidebar-menu";static styles=[y,Vz];render(){return f`
5849
- <ul class="Menu" role="list">
5850
- <slot></slot>
5851
- </ul>
5852
- `}};var Uz=c`
5586
+ `;var Kj=c`
5853
5587
  :host {
5854
5588
  display: list-item;
5855
5589
  }
5856
- `,la=class extends g{static tagName="dui-sidebar-menu-item";static styles=[y,Uz];render(){return f`<slot></slot>`}};var jz=c`
5590
+ `;var BO=c`
5857
5591
  :host {
5858
5592
  display: block;
5859
5593
  }
@@ -5911,16 +5645,16 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5911
5645
  :host([disabled]) .Button {
5912
5646
  pointer-events: none;
5913
5647
  }
5914
- `,lA,dA,cA,pA,hA,ze,Jx,Qx,Zx,t0,Yc,Ge,e0,Xc,uA,mA,r0,Ke=class extends(hA=g,pA=[u({type:Boolean,reflect:!0})],cA=[u({type:Boolean,reflect:!0})],dA=[u()],lA=[u()],hA){constructor(){super(...arguments);s(this,Ge);s(this,Jx,i(ze,8,this,!1)),i(ze,11,this);s(this,Qx,i(ze,12,this,!1)),i(ze,15,this);s(this,Zx,i(ze,16,this,"")),i(ze,19,this);s(this,t0,i(ze,20,this)),i(ze,23,this);s(this,Yc,new V(this,{context:Mr,subscribe:!0}));s(this,Xc,t=>{if(this.disabled){t.preventDefault();return}this.href&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&(t.preventDefault(),this.dispatchEvent(new CustomEvent("spa-navigate",{detail:{href:this.href},bubbles:!0,composed:!0})))})}render(){return e(this,Ge,e0)&&this.tooltip?f`
5648
+ `,jT,KT,WT,GT,YT,Ee,Iy,Ay,_y,Oy,ic,Fe,Ly,sc,XT,QT,Py,Ze=class extends(YT=b,GT=[u({type:Boolean,reflect:!0})],WT=[u({type:Boolean,reflect:!0})],KT=[u()],jT=[u()],YT){constructor(){super(...arguments);s(this,Fe);s(this,Iy,i(Ee,8,this,!1)),i(Ee,11,this);s(this,Ay,i(Ee,12,this,!1)),i(Ee,15,this);s(this,_y,i(Ee,16,this,"")),i(Ee,19,this);s(this,Oy,i(Ee,20,this)),i(Ee,23,this);s(this,ic,new J(this,{context:wo,subscribe:!0}));s(this,sc,t=>{if(this.disabled){t.preventDefault();return}this.href&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&(t.preventDefault(),this.dispatchEvent(new CustomEvent("spa-navigate",{detail:{href:this.href},bubbles:!0,composed:!0})))})}render(){return r(this,Fe,Ly)&&this.tooltip?v`
5915
5649
  <dui-tooltip>
5916
5650
  <dui-tooltip-trigger>
5917
- ${m(this,Ge,r0).call(this)}
5651
+ ${m(this,Fe,Py).call(this)}
5918
5652
  </dui-tooltip-trigger>
5919
5653
  <dui-tooltip-popup side="right">
5920
5654
  ${this.tooltip}
5921
5655
  </dui-tooltip-popup>
5922
5656
  </dui-tooltip>
5923
- `:m(this,Ge,r0).call(this)}};ze=C(hA),Jx=new WeakMap,Qx=new WeakMap,Zx=new WeakMap,t0=new WeakMap,Yc=new WeakMap,Ge=new WeakSet,e0=function(){let t=e(this,Yc).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},Xc=new WeakMap,uA=function(){return f`
5657
+ `:m(this,Fe,Py).call(this)}};Ee=S(YT),Iy=new WeakMap,Ay=new WeakMap,_y=new WeakMap,Oy=new WeakMap,ic=new WeakMap,Fe=new WeakSet,Ly=function(){let t=r(this,ic).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},sc=new WeakMap,XT=function(){return v`
5924
5658
  <button
5925
5659
  class="Button"
5926
5660
  ?disabled=${this.disabled}
@@ -5930,27 +5664,27 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5930
5664
  <span class="Label"><slot></slot></span>
5931
5665
  <span class="Suffix"><slot name="suffix"></slot></span>
5932
5666
  </button>
5933
- `},mA=function(){return f`
5667
+ `},QT=function(){return v`
5934
5668
  <a
5935
5669
  class="Button"
5936
5670
  href=${this.href??T}
5937
5671
  aria-disabled=${this.disabled||T}
5938
5672
  ?data-active=${this.active}
5939
- @click=${e(this,Xc)}
5673
+ @click=${r(this,sc)}
5940
5674
  >
5941
5675
  <slot name="icon"></slot>
5942
5676
  <span class="Label"><slot></slot></span>
5943
5677
  <span class="Suffix"><slot name="suffix"></slot></span>
5944
5678
  </a>
5945
- `},r0=function(){let t=e(this,Ge,e0);return f`
5679
+ `},Py=function(){let t=r(this,Fe,Ly);return v`
5946
5680
  <div
5947
5681
  class="Row"
5948
5682
  ?data-icon-collapsed=${t}
5949
5683
  ?data-active=${this.active}
5950
5684
  >
5951
- ${this.href!==void 0?m(this,Ge,mA).call(this):m(this,Ge,uA).call(this)}
5685
+ ${this.href!==void 0?m(this,Fe,QT).call(this):m(this,Fe,XT).call(this)}
5952
5686
  </div>
5953
- `},l(ze,4,"active",pA,Ke,Jx),l(ze,4,"disabled",cA,Ke,Qx),l(ze,4,"tooltip",dA,Ke,Zx),l(ze,4,"href",lA,Ke,t0),S(ze,Ke),b(Ke,"tagName","dui-sidebar-menu-button"),b(Ke,"styles",[y,jz]);var Wz=c`
5687
+ `},d(Ee,4,"active",GT,Ze,Iy),d(Ee,4,"disabled",WT,Ze,Ay),d(Ee,4,"tooltip",KT,Ze,_y),d(Ee,4,"href",jT,Ze,Oy),C(Ee,Ze),g(Ze,"tagName","dui-sidebar-menu-button"),g(Ze,"styles",[w,BO]);var o7=c`
5954
5688
  :host {
5955
5689
  display: block;
5956
5690
  }
@@ -5958,7 +5692,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5958
5692
  .Separator {
5959
5693
  /* Structural only — height and color from theme */
5960
5694
  }
5961
- `,da=class extends g{static tagName="dui-sidebar-separator";static styles=[y,Wz];render(){return f`<div class="Separator" role="separator"></div>`}};var Kz=c`
5695
+ `;var a7=c`
5962
5696
  :host {
5963
5697
  display: flex;
5964
5698
  flex-direction: column;
@@ -5968,7 +5702,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
5968
5702
  overflow: hidden;
5969
5703
  container-type: size;
5970
5704
  }
5971
- `,ca=class extends g{static tagName="dui-sidebar-inset";static styles=[y,Kz];render(){return f`<slot></slot>`}};var fA=[Pe,Bo,ea,ra,oa,ia,sa,na,aa,la,Ke,da,ca];var pa=O("value-change",{bubbles:!0,composed:!0}),Jc=O("value-committed",{bubbles:!0,composed:!0}),Gz=c`
5705
+ `;var wn=_("value-change",{bubbles:!0,composed:!0}),nc=_("value-committed",{bubbles:!0,composed:!0}),JO=c`
5972
5706
  :host {
5973
5707
  display: block;
5974
5708
  }
@@ -6024,14 +5758,14 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6024
5758
  white-space: nowrap;
6025
5759
  border: 0;
6026
5760
  }
6027
- `,vA,gA,bA,yA,xA,wA,kA,SA,Lt,o0,i0,s0,n0,a0,l0,d0,c0,Qc,p0,Ht,CA,Cs,h0,Zc,Es,$s,tp,ep,rp,be=class extends(SA=g,kA=[u({type:Number})],wA=[u({type:Number})],xA=[u({type:Number})],yA=[u({type:Number})],bA=[u({type:Boolean,reflect:!0})],gA=[u()],vA=[k()],SA){constructor(){super(...arguments);s(this,Ht);s(this,o0,i(Lt,8,this,0)),i(Lt,11,this);s(this,i0,i(Lt,12,this,0)),i(Lt,15,this);s(this,s0,i(Lt,16,this,100)),i(Lt,19,this);s(this,n0,i(Lt,20,this,1)),i(Lt,23,this);s(this,a0,i(Lt,24,this,!1)),i(Lt,27,this);s(this,l0,i(Lt,28,this,"")),i(Lt,31,this);s(this,d0,i(Lt,32,this,!1)),i(Lt,35,this);s(this,Zc,t=>{if(this.disabled)return;t.preventDefault(),h(this,Ht,!0,p0);let r=m(this,Ht,h0).call(this,t.clientX);r!==this.value&&(this.value=r,this.dispatchEvent(pa({value:r}))),document.addEventListener("pointermove",e(this,Es)),document.addEventListener("pointerup",e(this,$s))});s(this,Es,t=>{if(!e(this,Ht,Qc))return;let r=m(this,Ht,h0).call(this,t.clientX);r!==this.value&&(this.value=r,this.dispatchEvent(pa({value:r})))});s(this,$s,()=>{e(this,Ht,Qc)&&(h(this,Ht,!1,p0),this.dispatchEvent(Jc({value:this.value})),document.removeEventListener("pointermove",e(this,Es)),document.removeEventListener("pointerup",e(this,$s)))});s(this,tp,t=>{if(this.disabled)return;let r=this.value,a=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),r=m(this,Ht,Cs).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),r=m(this,Ht,Cs).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),r=m(this,Ht,Cs).call(this,this.value+a);break;case"PageDown":t.preventDefault(),r=m(this,Ht,Cs).call(this,this.value-a);break;case"Home":t.preventDefault(),r=this.min;break;case"End":t.preventDefault(),r=this.max;break;default:return}r!==this.value&&(this.value=r,this.dispatchEvent(pa({value:r})),this.dispatchEvent(Jc({value:r})))});s(this,ep,t=>{let r=t.target,a=parseFloat(r.value);!isNaN(a)&&a!==this.value&&(this.value=a,this.dispatchEvent(pa({value:a})))});s(this,rp,()=>{this.dispatchEvent(Jc({value:this.value}))})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",e(this,Es)),document.removeEventListener("pointerup",e(this,$s))}render(){return f`
5761
+ `,JT,ZT,tR,eR,rR,oR,iR,sR,At,zy,My,Dy,Fy,Hy,Ny,By,qy,ac,Vy,Pt,nR,hs,Uy,lc,us,ms,dc,cc,pc,$e=class extends(sR=b,iR=[u({type:Number})],oR=[u({type:Number})],rR=[u({type:Number})],eR=[u({type:Number})],tR=[u({type:Boolean,reflect:!0})],ZT=[u()],JT=[k()],sR){constructor(){super(...arguments);s(this,Pt);s(this,zy,i(At,8,this,0)),i(At,11,this);s(this,My,i(At,12,this,0)),i(At,15,this);s(this,Dy,i(At,16,this,100)),i(At,19,this);s(this,Fy,i(At,20,this,1)),i(At,23,this);s(this,Hy,i(At,24,this,!1)),i(At,27,this);s(this,Ny,i(At,28,this,"")),i(At,31,this);s(this,By,i(At,32,this,!1)),i(At,35,this);s(this,lc,t=>{if(this.disabled)return;t.preventDefault(),h(this,Pt,!0,Vy);let e=m(this,Pt,Uy).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(wn({value:e}))),document.addEventListener("pointermove",r(this,us)),document.addEventListener("pointerup",r(this,ms))});s(this,us,t=>{if(!r(this,Pt,ac))return;let e=m(this,Pt,Uy).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(wn({value:e})))});s(this,ms,()=>{r(this,Pt,ac)&&(h(this,Pt,!1,Vy),this.dispatchEvent(nc({value:this.value})),document.removeEventListener("pointermove",r(this,us)),document.removeEventListener("pointerup",r(this,ms)))});s(this,dc,t=>{if(this.disabled)return;let e=this.value,a=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),e=m(this,Pt,hs).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),e=m(this,Pt,hs).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),e=m(this,Pt,hs).call(this,this.value+a);break;case"PageDown":t.preventDefault(),e=m(this,Pt,hs).call(this,this.value-a);break;case"Home":t.preventDefault(),e=this.min;break;case"End":t.preventDefault(),e=this.max;break;default:return}e!==this.value&&(this.value=e,this.dispatchEvent(wn({value:e})),this.dispatchEvent(nc({value:e})))});s(this,cc,t=>{let e=t.target,a=parseFloat(e.value);!isNaN(a)&&a!==this.value&&(this.value=a,this.dispatchEvent(wn({value:a})))});s(this,pc,()=>{this.dispatchEvent(nc({value:this.value}))})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",r(this,us)),document.removeEventListener("pointerup",r(this,ms))}render(){return v`
6028
5762
  <div
6029
5763
  part="root"
6030
5764
  role="group"
6031
5765
  ?data-disabled=${this.disabled}
6032
- ?data-dragging=${e(this,Ht,Qc)}
6033
- style="--slider-progress: ${e(this,Ht,CA)}%"
6034
- @pointerdown=${e(this,Zc)}
5766
+ ?data-dragging=${r(this,Pt,ac)}
5767
+ style="--slider-progress: ${r(this,Pt,nR)}%"
5768
+ @pointerdown=${r(this,lc)}
6035
5769
  >
6036
5770
  <div part="track">
6037
5771
  <div part="indicator"></div>
@@ -6039,7 +5773,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6039
5773
  <div
6040
5774
  part="thumb"
6041
5775
  tabindex=${this.disabled?-1:0}
6042
- @keydown=${e(this,tp)}
5776
+ @keydown=${r(this,dc)}
6043
5777
  ></div>
6044
5778
  <input
6045
5779
  class="native-input"
@@ -6053,11 +5787,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6053
5787
  aria-valuenow=${this.value}
6054
5788
  aria-valuemin=${this.min}
6055
5789
  aria-valuemax=${this.max}
6056
- @input=${e(this,ep)}
6057
- @change=${e(this,rp)}
5790
+ @input=${r(this,cc)}
5791
+ @change=${r(this,pc)}
6058
5792
  />
6059
5793
  </div>
6060
- `}};Lt=C(SA),o0=new WeakMap,i0=new WeakMap,s0=new WeakMap,n0=new WeakMap,a0=new WeakMap,l0=new WeakMap,d0=new WeakMap,Ht=new WeakSet,CA=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},Cs=function(t){let r=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,r))},h0=function(t){let r=this.shadowRoot?.querySelector("[part='track']");if(!r)return this.value;let a=r.getBoundingClientRect(),d=(t-a.left)/a.width,p=this.min+d*(this.max-this.min);return m(this,Ht,Cs).call(this,p)},Zc=new WeakMap,Es=new WeakMap,$s=new WeakMap,tp=new WeakMap,ep=new WeakMap,rp=new WeakMap,l(Lt,4,"value",kA,be,o0),l(Lt,4,"min",wA,be,i0),l(Lt,4,"max",xA,be,s0),l(Lt,4,"step",yA,be,n0),l(Lt,4,"disabled",bA,be,a0),l(Lt,4,"name",gA,be,l0),c0=l(Lt,20,"#dragging",vA,Ht,d0),Qc=c0.get,p0=c0.set,S(Lt,be),b(be,"tagName","dui-slider"),b(be,"styles",[y,Gz]);var EA=[be];var Yz=Ra`
5794
+ `}};At=S(sR),zy=new WeakMap,My=new WeakMap,Dy=new WeakMap,Fy=new WeakMap,Hy=new WeakMap,Ny=new WeakMap,By=new WeakMap,Pt=new WeakSet,nR=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},hs=function(t){let e=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,e))},Uy=function(t){let e=this.shadowRoot?.querySelector("[part='track']");if(!e)return this.value;let a=e.getBoundingClientRect(),l=(t-a.left)/a.width,p=this.min+l*(this.max-this.min);return m(this,Pt,hs).call(this,p)},lc=new WeakMap,us=new WeakMap,ms=new WeakMap,dc=new WeakMap,cc=new WeakMap,pc=new WeakMap,d(At,4,"value",iR,$e,zy),d(At,4,"min",oR,$e,My),d(At,4,"max",rR,$e,Dy),d(At,4,"step",eR,$e,Fy),d(At,4,"disabled",tR,$e,Hy),d(At,4,"name",ZT,$e,Ny),qy=d(At,20,"#dragging",JT,Pt,By),ac=qy.get,Vy=qy.set,C(At,$e),g($e,"tagName","dui-slider"),g($e,"styles",[w,JO]);var ZO=Dn`
6061
5795
  <svg
6062
5796
  part="svg"
6063
5797
  viewBox="0 0 44 44"
@@ -6086,7 +5820,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6086
5820
  />
6087
5821
  </circle>
6088
5822
  </svg>
6089
- `,Xz=Ra`
5823
+ `,tL=Dn`
6090
5824
  <svg
6091
5825
  part="svg"
6092
5826
  data-rotate
@@ -6109,7 +5843,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6109
5843
  <path d="M2 12h4" />
6110
5844
  <path d="m4.9 4.9 2.9 2.9" />
6111
5845
  </svg>
6112
- `,Jz=Ra`
5846
+ `,eL=Dn`
6113
5847
  <svg
6114
5848
  part="svg"
6115
5849
  data-rotate
@@ -6125,7 +5859,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6125
5859
  >
6126
5860
  <path d="M21 12a9 9 0 1 1-6.219-8.56" />
6127
5861
  </svg>
6128
- `,Qz=c`
5862
+ `,rL=c`
6129
5863
  :host {
6130
5864
  display: block;
6131
5865
  }
@@ -6144,7 +5878,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6144
5878
  from { transform: rotate(0deg); }
6145
5879
  to { transform: rotate(360deg); }
6146
5880
  }
6147
- `,$A,TA,op,u0,ip,RA,co=class extends(TA=g,$A=[u({reflect:!0})],TA){constructor(){super(...arguments);s(this,ip);s(this,u0,i(op,8,this,"")),i(op,11,this)}render(){return f`${m(this,ip,RA).call(this)}`}};op=C(TA),u0=new WeakMap,ip=new WeakSet,RA=function(){switch(this.variant){case"lucide-loader":return Xz;case"lucide-loader-circle":return Jz;default:return Yz}},l(op,4,"variant",$A,co,u0),S(op,co),b(co,"tagName","dui-spinner"),b(co,"styles",[y,Qz]);var IA=[co];var DA=O("checked-change",{bubbles:!0,composed:!0}),Zz=c`
5881
+ `,aR,lR,hc,jy,uc,dR,Co=class extends(lR=b,aR=[u({reflect:!0})],lR){constructor(){super(...arguments);s(this,uc);s(this,jy,i(hc,8,this,"")),i(hc,11,this)}render(){return v`${m(this,uc,dR).call(this)}`}};hc=S(lR),jy=new WeakMap,uc=new WeakSet,dR=function(){switch(this.variant){case"lucide-loader":return tL;case"lucide-loader-circle":return eL;default:return ZO}},d(hc,4,"variant",aR,Co,jy),C(hc,Co),g(Co,"tagName","dui-spinner"),g(Co,"styles",[w,rL]);var wR=_("checked-change",{bubbles:!0,composed:!0}),oL=c`
6148
5882
  :host {
6149
5883
  display: inline-flex;
6150
5884
  align-items: start;
@@ -6185,24 +5919,24 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6185
5919
  width: 0;
6186
5920
  height: 0;
6187
5921
  }
6188
- `,AA,OA,LA,PA,zA,_A,MA,FA,HA,NA,BA,dt,m0,f0,v0,g0,b0,y0,x0,w0,k0,S0,qA,$0,Pt,C0,E0,Ts,t5,T0,R0,VA,ha,ua,sp,re=class extends(BA=g,NA=[u({type:Boolean,reflect:!0})],HA=[u({type:Boolean,attribute:"default-checked"})],FA=[u({type:Boolean,reflect:!0})],MA=[u({type:Boolean,reflect:!0,attribute:"read-only"})],_A=[u({type:Boolean,reflect:!0})],zA=[u()],PA=[u()],LA=[u({attribute:"unchecked-value"})],OA=[k()],AA=[at({context:Ce,subscribe:!0}),k()],BA){constructor(){super(...arguments);s(this,Pt);s(this,m0,i(dt,8,this)),i(dt,11,this);s(this,f0,i(dt,12,this,!1)),i(dt,15,this);s(this,v0,i(dt,16,this,!1)),i(dt,19,this);s(this,g0,i(dt,20,this,!1)),i(dt,23,this);s(this,b0,i(dt,24,this,!1)),i(dt,27,this);s(this,y0,i(dt,28,this)),i(dt,31,this);s(this,x0,i(dt,32,this,"on")),i(dt,35,this);s(this,w0,i(dt,36,this,"")),i(dt,39,this);s(this,k0,i(dt,40,this,!1)),i(dt,43,this);s(this,C0,i(dt,44,this)),i(dt,47,this);s(this,ha,t=>{e(this,ua).call(this)});s(this,ua,()=>{if(e(this,Pt,R0)||this.readOnly)return;let t=!e(this,Pt,T0);this.checked===void 0&&h(this,Pt,t,$0),e(this,Pt,Ts)?.markDirty(),e(this,Pt,Ts)?.markTouched(),this.dispatchEvent(DA({checked:t}))});s(this,sp,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),e(this,ua).call(this))})}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,Pt,!0,$0),this.addEventListener("click",e(this,ha))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,ha))}render(){let t=e(this,Pt,T0),r=e(this,Pt,R0),a=e(this,Pt,VA),d=e(this,Pt,Ts)?.controlId??"";return f`
5922
+ `,cR,pR,hR,uR,mR,fR,vR,gR,bR,yR,xR,nt,Ky,Wy,Gy,Yy,Xy,Qy,Jy,Zy,tx,ex,kR,ox,Jt,rx,ix,sx,CR,kn,Cn,mc,Wt=class extends(xR=b,yR=[u({type:Boolean,reflect:!0})],bR=[u({type:Boolean,attribute:"default-checked"})],gR=[u({type:Boolean,reflect:!0})],vR=[u({type:Boolean,reflect:!0,attribute:"read-only"})],fR=[u({type:Boolean,reflect:!0})],mR=[u()],uR=[u()],hR=[u({attribute:"unchecked-value"})],pR=[k()],cR=[ot({context:be,subscribe:!0}),k()],xR){constructor(){super(...arguments);s(this,Jt);s(this,Ky,i(nt,8,this)),i(nt,11,this);s(this,Wy,i(nt,12,this,!1)),i(nt,15,this);s(this,Gy,i(nt,16,this,!1)),i(nt,19,this);s(this,Yy,i(nt,20,this,!1)),i(nt,23,this);s(this,Xy,i(nt,24,this,!1)),i(nt,27,this);s(this,Qy,i(nt,28,this)),i(nt,31,this);s(this,Jy,i(nt,32,this,"on")),i(nt,35,this);s(this,Zy,i(nt,36,this,"")),i(nt,39,this);s(this,tx,i(nt,40,this,!1)),i(nt,43,this);s(this,rx,i(nt,44,this)),i(nt,47,this);s(this,kn,t=>{r(this,Cn).call(this)});s(this,Cn,()=>{if(r(this,Jt,sx)||this.readOnly)return;let t=!r(this,Jt,ix);this.checked===void 0&&h(this,Jt,t,ox),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched(),this.dispatchEvent(wR({checked:t}))});s(this,mc,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),r(this,Cn).call(this))})}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,Jt,!0,ox),this.addEventListener("click",r(this,kn))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,kn))}render(){let t=r(this,Jt,ix),e=r(this,Jt,sx),a=r(this,Jt,CR),l=this._fieldCtx?.controlId??"";return v`
6189
5923
  <span
6190
5924
  part="root"
6191
5925
  role="switch"
6192
- id="${d||T}"
5926
+ id="${l||T}"
6193
5927
  aria-checked="${String(t)}"
6194
- aria-disabled="${r?"true":T}"
5928
+ aria-disabled="${e?"true":T}"
6195
5929
  aria-readonly="${this.readOnly?"true":T}"
6196
5930
  aria-required="${this.required?"true":T}"
6197
5931
  aria-invalid="${a?"true":T}"
6198
- tabindex="${r?T:"0"}"
5932
+ tabindex="${e?T:"0"}"
6199
5933
  ?data-checked="${t}"
6200
5934
  ?data-unchecked="${!t}"
6201
- ?data-disabled="${r}"
5935
+ ?data-disabled="${e}"
6202
5936
  ?data-readonly="${this.readOnly}"
6203
5937
  ?data-required="${this.required}"
6204
5938
  ?data-invalid="${a}"
6205
- @keydown="${e(this,sp)}"
5939
+ @keydown="${r(this,mc)}"
6206
5940
  >
6207
5941
  <span part="thumb"></span>
6208
5942
  <input
@@ -6210,7 +5944,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6210
5944
  name="${this.name??T}"
6211
5945
  value="${t?this.value:this.uncheckedValue}"
6212
5946
  .checked="${t}"
6213
- ?disabled="${r}"
5947
+ ?disabled="${e}"
6214
5948
  ?required="${this.required}"
6215
5949
  class="HiddenInput"
6216
5950
  aria-hidden="true"
@@ -6218,7 +5952,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6218
5952
  />
6219
5953
  </span>
6220
5954
  <slot></slot>
6221
- `}};dt=C(BA),m0=new WeakMap,f0=new WeakMap,v0=new WeakMap,g0=new WeakMap,b0=new WeakMap,y0=new WeakMap,x0=new WeakMap,w0=new WeakMap,k0=new WeakMap,Pt=new WeakSet,C0=new WeakMap,T0=function(){return this.checked??e(this,Pt,qA)},R0=function(){return this.disabled||(e(this,Pt,Ts)?.disabled??!1)},VA=function(){return e(this,Pt,Ts)?.invalid??!1},ha=new WeakMap,ua=new WeakMap,sp=new WeakMap,l(dt,4,"checked",NA,re,m0),l(dt,4,"defaultChecked",HA,re,f0),l(dt,4,"disabled",FA,re,v0),l(dt,4,"readOnly",MA,re,g0),l(dt,4,"required",_A,re,b0),l(dt,4,"name",zA,re,y0),l(dt,4,"value",PA,re,x0),l(dt,4,"uncheckedValue",LA,re,w0),S0=l(dt,20,"#internalChecked",OA,Pt,k0),qA=S0.get,$0=S0.set,E0=l(dt,20,"#fieldCtx",AA,Pt,C0),Ts=E0.get,t5=E0.set,S(dt,re),b(re,"tagName","dui-switch"),b(re,"styles",[y,Zz]);var UA=[re];var Do=Symbol("dui-tabs");var QA=O("value-change",{bubbles:!0,composed:!0}),e5=c`
5955
+ `}};nt=S(xR),Ky=new WeakMap,Wy=new WeakMap,Gy=new WeakMap,Yy=new WeakMap,Xy=new WeakMap,Qy=new WeakMap,Jy=new WeakMap,Zy=new WeakMap,tx=new WeakMap,Jt=new WeakSet,rx=new WeakMap,ix=function(){return this.checked??r(this,Jt,kR)},sx=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},CR=function(){return this._fieldCtx?.invalid??!1},kn=new WeakMap,Cn=new WeakMap,mc=new WeakMap,d(nt,4,"checked",yR,Wt,Ky),d(nt,4,"defaultChecked",bR,Wt,Wy),d(nt,4,"disabled",gR,Wt,Gy),d(nt,4,"readOnly",vR,Wt,Yy),d(nt,4,"required",fR,Wt,Xy),d(nt,4,"name",mR,Wt,Qy),d(nt,4,"value",uR,Wt,Jy),d(nt,4,"uncheckedValue",hR,Wt,Zy),ex=d(nt,20,"#internalChecked",pR,Jt,tx),kR=ex.get,ox=ex.set,d(nt,4,"_fieldCtx",cR,Wt,rx),C(nt,Wt),g(Wt,"tagName","dui-switch"),g(Wt,"styles",[w,oL]);var So=Symbol("dui-tabs");var _R=_("value-change",{bubbles:!0,composed:!0}),iL=c`
6222
5956
  :host {
6223
5957
  display: block;
6224
5958
  }
@@ -6235,11 +5969,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6235
5969
  :host([controls="footer"]) [part="root"] {
6236
5970
  flex-direction: column-reverse;
6237
5971
  }
6238
- `,jA,WA,KA,GA,YA,XA,JA,jt,I0,A0,O0,L0,P0,z0,ZA,M0,dr,ap,lp,_0,np,_e=class extends(JA=g,XA=[u()],YA=[u({attribute:"default-value"})],GA=[u({reflect:!0})],KA=[u({reflect:!0})],WA=[k()],jA=[yt({context:Do}),k()],JA){constructor(){super(...arguments);s(this,dr);s(this,I0,i(jt,8,this)),i(jt,11,this);s(this,A0,i(jt,12,this)),i(jt,15,this);s(this,O0,i(jt,16,this,"horizontal")),i(jt,19,this);s(this,L0,i(jt,20,this,"header")),i(jt,23,this);s(this,P0,i(jt,24,this)),i(jt,27,this);s(this,ap,()=>this.value??e(this,dr,ZA));s(this,lp,t=>{this.value===void 0&&h(this,dr,t,M0),this.dispatchEvent(QA(t))});s(this,_0,i(jt,28,this,m(this,dr,np).call(this))),i(jt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,dr,this.defaultValue,M0),this._ctx=m(this,dr,np).call(this)}willUpdate(){this._ctx=m(this,dr,np).call(this)}render(){return f`
5972
+ `,SR,ER,$R,TR,RR,IR,AR,Ht,nx,ax,lx,dx,cx,px,OR,ux,tr,vc,gc,hx,fc,He=class extends(AR=b,IR=[u()],RR=[u({attribute:"default-value"})],TR=[u({reflect:!0})],$R=[u({reflect:!0})],ER=[k()],SR=[bt({context:So}),k()],AR){constructor(){super(...arguments);s(this,tr);s(this,nx,i(Ht,8,this)),i(Ht,11,this);s(this,ax,i(Ht,12,this)),i(Ht,15,this);s(this,lx,i(Ht,16,this,"horizontal")),i(Ht,19,this);s(this,dx,i(Ht,20,this,"header")),i(Ht,23,this);s(this,cx,i(Ht,24,this)),i(Ht,27,this);s(this,vc,()=>this.value??r(this,tr,OR));s(this,gc,t=>{this.value===void 0&&h(this,tr,t,ux),this.dispatchEvent(_R(t))});s(this,hx,i(Ht,28,this,m(this,tr,fc).call(this))),i(Ht,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,tr,this.defaultValue,ux),this._ctx=m(this,tr,fc).call(this)}willUpdate(){this._ctx=m(this,tr,fc).call(this)}render(){return v`
6239
5973
  <div part="root" data-orientation=${this.orientation}>
6240
5974
  <slot></slot>
6241
5975
  </div>
6242
- `}};jt=C(JA),I0=new WeakMap,A0=new WeakMap,O0=new WeakMap,L0=new WeakMap,P0=new WeakMap,dr=new WeakSet,ap=new WeakMap,lp=new WeakMap,_0=new WeakMap,np=function(){return{value:e(this,ap).call(this),orientation:this.orientation,select:e(this,lp)}},l(jt,4,"value",XA,_e,I0),l(jt,4,"defaultValue",YA,_e,A0),l(jt,4,"orientation",GA,_e,O0),l(jt,4,"controls",KA,_e,L0),z0=l(jt,20,"#internalValue",WA,dr,P0),ZA=z0.get,M0=z0.set,l(jt,4,"_ctx",jA,_e,_0),S(jt,_e),b(_e,"tagName","dui-tabs"),b(_e,"styles",[y,e5]);var r5=c`
5976
+ `}};Ht=S(AR),nx=new WeakMap,ax=new WeakMap,lx=new WeakMap,dx=new WeakMap,cx=new WeakMap,tr=new WeakSet,vc=new WeakMap,gc=new WeakMap,hx=new WeakMap,fc=function(){return{value:r(this,vc).call(this),orientation:this.orientation,select:r(this,gc)}},d(Ht,4,"value",IR,He,nx),d(Ht,4,"defaultValue",RR,He,ax),d(Ht,4,"orientation",TR,He,lx),d(Ht,4,"controls",$R,He,dx),px=d(Ht,20,"#internalValue",ER,tr,cx),OR=px.get,ux=px.set,d(Ht,4,"_ctx",SR,He,hx),C(Ht,He),g(He,"tagName","dui-tabs"),g(He,"styles",[w,iL]);var sL=c`
6243
5977
  :host {
6244
5978
  display: block;
6245
5979
  }
@@ -6253,11 +5987,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6253
5987
  [part="list"][data-orientation="vertical"] {
6254
5988
  flex-direction: column;
6255
5989
  }
6256
- `,tO,eO,dp,F0,Rs,Is,cp,po=class extends(eO=g,tO=[at({context:Do,subscribe:!0})],eO){constructor(){super(...arguments);s(this,Is);s(this,F0,i(dp,8,this)),i(dp,11,this);s(this,Rs)}connectedCallback(){super.connectedCallback(),h(this,Rs,new ResizeObserver(()=>{m(this,Is,cp).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),e(this,Rs)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&e(this,Rs)?.observe(t),m(this,Is,cp).call(this)}updated(){m(this,Is,cp).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
5990
+ `,LR,PR,bc,mx,fs,vs,yc,Eo=class extends(PR=b,LR=[ot({context:So,subscribe:!0})],PR){constructor(){super(...arguments);s(this,vs);s(this,mx,i(bc,8,this)),i(bc,11,this);s(this,fs)}connectedCallback(){super.connectedCallback(),h(this,fs,new ResizeObserver(()=>{m(this,vs,yc).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),r(this,fs)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&r(this,fs)?.observe(t),m(this,vs,yc).call(this)}updated(){m(this,vs,yc).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return v`
6257
5991
  <div part="list" role="tablist" data-orientation=${t}>
6258
5992
  <slot></slot>
6259
5993
  </div>
6260
- `}};dp=C(eO),F0=new WeakMap,Rs=new WeakMap,Is=new WeakSet,cp=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let d=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(p=>p.tagName==="DUI-TAB"&&p.getAttribute("value")===this._ctx?.value);if(d){let p=t.getBoundingClientRect(),v=d.getBoundingClientRect(),x=v.left-p.left,E=v.width;t.style.setProperty("--active-tab-left",`${x}px`),t.style.setProperty("--active-tab-width",`${E}px`)}},l(dp,4,"_ctx",tO,po,F0),S(dp,po),b(po,"tagName","dui-tabs-list"),b(po,"styles",[y,r5]);var o5=c`
5994
+ `}};bc=S(PR),mx=new WeakMap,fs=new WeakMap,vs=new WeakSet,yc=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(p=>p.tagName==="DUI-TAB"&&p.getAttribute("value")===this._ctx?.value);if(l){let p=t.getBoundingClientRect(),f=l.getBoundingClientRect(),y=f.left-p.left,E=f.width;t.style.setProperty("--active-tab-left",`${y}px`),t.style.setProperty("--active-tab-width",`${E}px`)}},d(bc,4,"_ctx",LR,Eo,mx),C(bc,Eo),g(Eo,"tagName","dui-tabs-list"),g(Eo,"styles",[w,sL]);var nL=c`
6261
5995
  :host {
6262
5996
  display: block;
6263
5997
  }
@@ -6281,7 +6015,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6281
6015
  [part="tab"][data-disabled] {
6282
6016
  cursor: not-allowed;
6283
6017
  }
6284
- `,rO,oO,iO,sO,Hr,H0,N0,B0,pp,nO,hp,up,cr=class extends(sO=g,iO=[u()],oO=[u({type:Boolean,reflect:!0})],rO=[at({context:Do,subscribe:!0})],sO){constructor(){super(...arguments);s(this,pp);s(this,H0,i(Hr,8,this,"")),i(Hr,11,this);s(this,N0,i(Hr,12,this,!1)),i(Hr,15,this);s(this,B0,i(Hr,16,this)),i(Hr,19,this);s(this,hp,()=>{this.disabled||this._ctx?.select(this.value)});s(this,up,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=e(this,pp,nO);return f`
6018
+ `,zR,MR,DR,FR,Er,fx,vx,gx,xc,HR,wc,kc,$r=class extends(FR=b,DR=[u()],MR=[u({type:Boolean,reflect:!0})],zR=[ot({context:So,subscribe:!0})],FR){constructor(){super(...arguments);s(this,xc);s(this,fx,i(Er,8,this,"")),i(Er,11,this);s(this,vx,i(Er,12,this,!1)),i(Er,15,this);s(this,gx,i(Er,16,this)),i(Er,19,this);s(this,wc,()=>{this.disabled||this._ctx?.select(this.value)});s(this,kc,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=r(this,xc,HR);return v`
6285
6019
  <button
6286
6020
  part="tab"
6287
6021
  role="tab"
@@ -6290,12 +6024,12 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6290
6024
  ?data-disabled=${this.disabled}
6291
6025
  ?disabled=${this.disabled}
6292
6026
  tabindex=${t?0:-1}
6293
- @click=${e(this,hp)}
6294
- @keydown=${e(this,up)}
6027
+ @click=${r(this,wc)}
6028
+ @keydown=${r(this,kc)}
6295
6029
  >
6296
6030
  <slot></slot>
6297
6031
  </button>
6298
- `}};Hr=C(sO),H0=new WeakMap,N0=new WeakMap,B0=new WeakMap,pp=new WeakSet,nO=function(){return this._ctx?.value===this.value},hp=new WeakMap,up=new WeakMap,l(Hr,4,"value",iO,cr,H0),l(Hr,4,"disabled",oO,cr,N0),l(Hr,4,"_ctx",rO,cr,B0),S(Hr,cr),b(cr,"tagName","dui-tab"),b(cr,"styles",[y,o5]);var i5=c`
6032
+ `}};Er=S(FR),fx=new WeakMap,vx=new WeakMap,gx=new WeakMap,xc=new WeakSet,HR=function(){return this._ctx?.value===this.value},wc=new WeakMap,kc=new WeakMap,d(Er,4,"value",DR,$r,fx),d(Er,4,"disabled",MR,$r,vx),d(Er,4,"_ctx",zR,$r,gx),C(Er,$r),g($r,"tagName","dui-tab"),g($r,"styles",[w,nL]);var aL=c`
6299
6033
  :host {
6300
6034
  display: block;
6301
6035
  }
@@ -6312,7 +6046,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6312
6046
  [part="panel"][hidden] {
6313
6047
  display: none;
6314
6048
  }
6315
- `,aO,lO,dO,cO,Nr,D0,q0,V0,ma,U0,pr=class extends(cO=g,dO=[u()],lO=[u({type:Boolean,attribute:"keep-mounted"})],aO=[at({context:Do,subscribe:!0})],cO){constructor(){super(...arguments);s(this,ma);s(this,D0,i(Nr,8,this,"")),i(Nr,11,this);s(this,q0,i(Nr,12,this,!1)),i(Nr,15,this);s(this,V0,i(Nr,16,this)),i(Nr,19,this)}willUpdate(){e(this,ma,U0)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=e(this,ma,U0);return!t&&!this.keepMounted?T:f`
6049
+ `,NR,BR,qR,VR,Tr,bx,yx,xx,Sn,wx,Rr=class extends(VR=b,qR=[u()],BR=[u({type:Boolean,attribute:"keep-mounted"})],NR=[ot({context:So,subscribe:!0})],VR){constructor(){super(...arguments);s(this,Sn);s(this,bx,i(Tr,8,this,"")),i(Tr,11,this);s(this,yx,i(Tr,12,this,!1)),i(Tr,15,this);s(this,xx,i(Tr,16,this)),i(Tr,19,this)}willUpdate(){r(this,Sn,wx)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=r(this,Sn,wx);return!t&&!this.keepMounted?T:v`
6316
6050
  <div
6317
6051
  part="panel"
6318
6052
  role="tabpanel"
@@ -6321,7 +6055,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6321
6055
  >
6322
6056
  <slot></slot>
6323
6057
  </div>
6324
- `}};Nr=C(cO),D0=new WeakMap,q0=new WeakMap,V0=new WeakMap,ma=new WeakSet,U0=function(){return this._ctx?.value===this.value},l(Nr,4,"value",dO,pr,D0),l(Nr,4,"keepMounted",lO,pr,q0),l(Nr,4,"_ctx",aO,pr,V0),S(Nr,pr),b(pr,"tagName","dui-tabs-panel"),b(pr,"styles",[y,i5]);var s5=c`
6058
+ `}};Tr=S(VR),bx=new WeakMap,yx=new WeakMap,xx=new WeakMap,Sn=new WeakSet,wx=function(){return this._ctx?.value===this.value},d(Tr,4,"value",qR,Rr,bx),d(Tr,4,"keepMounted",BR,Rr,yx),d(Tr,4,"_ctx",NR,Rr,xx),C(Tr,Rr),g(Rr,"tagName","dui-tabs-panel"),g(Rr,"styles",[w,aL]);var $9=c`
6325
6059
  :host {
6326
6060
  display: block;
6327
6061
  position: absolute;
@@ -6333,7 +6067,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6333
6067
  pointer-events: none;
6334
6068
  transition-property: translate, width;
6335
6069
  }
6336
- `,fa=class extends g{static tagName="dui-tabs-indicator";static styles=[y,s5];render(){return f`<span part="indicator"></span>`}};var pO=[_e,po,cr,pr,fa];var CO=O("textarea-change",{bubbles:!0,composed:!0}),n5=c`
6070
+ `;var rI=_("textarea-change",{bubbles:!0,composed:!0}),dL=c`
6337
6071
  :host {
6338
6072
  display: block;
6339
6073
  }
@@ -6370,11 +6104,11 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6370
6104
  [part="textarea"]:disabled {
6371
6105
  cursor: not-allowed;
6372
6106
  }
6373
- `,hO,uO,mO,fO,vO,gO,bO,yO,xO,wO,kO,SO,nt,j0,W0,K0,G0,Y0,X0,J0,Q0,Z0,tw,ew,mp,Nt=class extends(SO=g,kO=[u()],wO=[u()],xO=[u({type:Boolean,reflect:!0})],yO=[u({type:Boolean})],bO=[u({type:Boolean})],gO=[u({type:Number})],vO=[u({type:Number,attribute:"minlength"})],fO=[u({type:Number,attribute:"maxlength"})],mO=[u()],uO=[u()],hO=[u({attribute:"max-height"})],SO){constructor(){super(...arguments);s(this,j0,i(nt,8,this,"")),i(nt,11,this);s(this,W0,i(nt,12,this,"")),i(nt,15,this);s(this,K0,i(nt,16,this,!1)),i(nt,19,this);s(this,G0,i(nt,20,this,!1)),i(nt,23,this);s(this,Y0,i(nt,24,this,!1)),i(nt,27,this);s(this,X0,i(nt,28,this)),i(nt,31,this);s(this,J0,i(nt,32,this)),i(nt,35,this);s(this,Q0,i(nt,36,this)),i(nt,39,this);s(this,Z0,i(nt,40,this,"")),i(nt,43,this);s(this,tw,i(nt,44,this,"vertical")),i(nt,47,this);s(this,ew,i(nt,48,this)),i(nt,51,this);s(this,mp,t=>{let r=t.target;this.value=r.value,this.dispatchEvent(CO({value:this.value}))})}render(){let t=cs({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return f`
6107
+ `,UR,jR,KR,WR,GR,YR,XR,QR,JR,ZR,tI,eI,rt,kx,Cx,Sx,Ex,$x,Tx,Rx,Ix,Ax,_x,Ox,Cc,Nt=class extends(eI=b,tI=[u()],ZR=[u()],JR=[u({type:Boolean,reflect:!0})],QR=[u({type:Boolean})],XR=[u({type:Boolean})],YR=[u({type:Number})],GR=[u({type:Number,attribute:"minlength"})],WR=[u({type:Number,attribute:"maxlength"})],KR=[u()],jR=[u()],UR=[u({attribute:"max-height"})],eI){constructor(){super(...arguments);s(this,kx,i(rt,8,this,"")),i(rt,11,this);s(this,Cx,i(rt,12,this,"")),i(rt,15,this);s(this,Sx,i(rt,16,this,!1)),i(rt,19,this);s(this,Ex,i(rt,20,this,!1)),i(rt,23,this);s(this,$x,i(rt,24,this,!1)),i(rt,27,this);s(this,Tx,i(rt,28,this)),i(rt,31,this);s(this,Rx,i(rt,32,this)),i(rt,35,this);s(this,Ix,i(rt,36,this)),i(rt,39,this);s(this,Ax,i(rt,40,this,"")),i(rt,43,this);s(this,_x,i(rt,44,this,"vertical")),i(rt,47,this);s(this,Ox,i(rt,48,this)),i(rt,51,this);s(this,Cc,t=>{let e=t.target;this.value=e.value,this.dispatchEvent(rI({value:this.value}))})}render(){let t=Ji({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return v`
6374
6108
  <textarea
6375
6109
  part="textarea"
6376
6110
  style=${t}
6377
- .value=${$o(this.value)}
6111
+ .value=${so(this.value)}
6378
6112
  placeholder=${this.placeholder}
6379
6113
  rows=${this.rows??""}
6380
6114
  ?disabled=${this.disabled}
@@ -6384,9 +6118,9 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6384
6118
  maxlength=${this.maxLength??""}
6385
6119
  name=${this.name}
6386
6120
  data-resize=${this.resize}
6387
- @input=${e(this,mp)}
6121
+ @input=${r(this,Cc)}
6388
6122
  ></textarea>
6389
- `}};nt=C(SO),j0=new WeakMap,W0=new WeakMap,K0=new WeakMap,G0=new WeakMap,Y0=new WeakMap,X0=new WeakMap,J0=new WeakMap,Q0=new WeakMap,Z0=new WeakMap,tw=new WeakMap,ew=new WeakMap,mp=new WeakMap,l(nt,4,"value",kO,Nt,j0),l(nt,4,"placeholder",wO,Nt,W0),l(nt,4,"disabled",xO,Nt,K0),l(nt,4,"required",yO,Nt,G0),l(nt,4,"readonly",bO,Nt,Y0),l(nt,4,"rows",gO,Nt,X0),l(nt,4,"minLength",vO,Nt,J0),l(nt,4,"maxLength",fO,Nt,Q0),l(nt,4,"name",mO,Nt,Z0),l(nt,4,"resize",uO,Nt,tw),l(nt,4,"maxHeight",hO,Nt,ew),S(nt,Nt),b(Nt,"tagName","dui-textarea"),b(Nt,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Nt,"styles",[y,n5]);var EO=[Nt];var fp=Symbol("dui-toggle-group");var PO=O("pressed-change",{bubbles:!0,composed:!0}),a5=c`
6123
+ `}};rt=S(eI),kx=new WeakMap,Cx=new WeakMap,Sx=new WeakMap,Ex=new WeakMap,$x=new WeakMap,Tx=new WeakMap,Rx=new WeakMap,Ix=new WeakMap,Ax=new WeakMap,_x=new WeakMap,Ox=new WeakMap,Cc=new WeakMap,d(rt,4,"value",tI,Nt,kx),d(rt,4,"placeholder",ZR,Nt,Cx),d(rt,4,"disabled",JR,Nt,Sx),d(rt,4,"required",QR,Nt,Ex),d(rt,4,"readonly",XR,Nt,$x),d(rt,4,"rows",YR,Nt,Tx),d(rt,4,"minLength",GR,Nt,Rx),d(rt,4,"maxLength",WR,Nt,Ix),d(rt,4,"name",KR,Nt,Ax),d(rt,4,"resize",jR,Nt,_x),d(rt,4,"maxHeight",UR,Nt,Ox),C(rt,Nt),g(Nt,"tagName","dui-textarea"),g(Nt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Nt,"styles",[w,dL]);var Sc=Symbol("dui-toggle-group");var cI=_("pressed-change",{bubbles:!0,composed:!0}),cL=c`
6390
6124
  :host {
6391
6125
  display: inline-block;
6392
6126
  }
@@ -6408,20 +6142,20 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6408
6142
  [part="root"]:disabled {
6409
6143
  cursor: not-allowed;
6410
6144
  }
6411
- `,$O,TO,RO,IO,AO,OO,LO,Wt,rw,ow,iw,sw,nw,aw,zO,cw,Bt,lw,dw,As,l5,pw,hw,vp,Me=class extends(LO=g,OO=[u({type:Boolean})],AO=[u({type:Boolean,attribute:"default-pressed"})],IO=[u({type:Boolean,reflect:!0})],RO=[u()],TO=[k()],$O=[at({context:fp,subscribe:!0}),k()],LO){constructor(){super(...arguments);s(this,Bt);s(this,rw,i(Wt,8,this)),i(Wt,11,this);s(this,ow,i(Wt,12,this,!1)),i(Wt,15,this);s(this,iw,i(Wt,16,this,!1)),i(Wt,19,this);s(this,sw,i(Wt,20,this)),i(Wt,23,this);s(this,nw,i(Wt,24,this,!1)),i(Wt,27,this);s(this,lw,i(Wt,28,this)),i(Wt,31,this);s(this,vp,()=>{if(e(this,Bt,hw))return;if(e(this,Bt,As)&&this.value!==void 0){e(this,Bt,As).toggle(this.value);return}let t=!e(this,Bt,pw);this.pressed===void 0&&h(this,Bt,t,cw),this.dispatchEvent(PO({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&h(this,Bt,!0,cw)}render(){let t=e(this,Bt,pw),r=e(this,Bt,hw);return f`
6145
+ `,oI,iI,sI,nI,aI,lI,dI,Bt,Lx,Px,zx,Mx,Dx,Fx,pI,Nx,Re,Hx,Bx,qx,Ec,Te=class extends(dI=b,lI=[u({type:Boolean})],aI=[u({type:Boolean,attribute:"default-pressed"})],nI=[u({type:Boolean,reflect:!0})],sI=[u()],iI=[k()],oI=[ot({context:Sc,subscribe:!0}),k()],dI){constructor(){super(...arguments);s(this,Re);s(this,Lx,i(Bt,8,this)),i(Bt,11,this);s(this,Px,i(Bt,12,this,!1)),i(Bt,15,this);s(this,zx,i(Bt,16,this,!1)),i(Bt,19,this);s(this,Mx,i(Bt,20,this)),i(Bt,23,this);s(this,Dx,i(Bt,24,this,!1)),i(Bt,27,this);s(this,Hx,i(Bt,28,this)),i(Bt,31,this);s(this,Ec,()=>{if(r(this,Re,qx))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!r(this,Re,Bx);this.pressed===void 0&&h(this,Re,t,Nx),this.dispatchEvent(cI({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&h(this,Re,!0,Nx)}render(){let t=r(this,Re,Bx),e=r(this,Re,qx);return v`
6412
6146
  <button
6413
6147
  part="root"
6414
6148
  type="button"
6415
6149
  aria-pressed="${String(t)}"
6416
- ?disabled="${r}"
6150
+ ?disabled="${e}"
6417
6151
  ?data-pressed="${t}"
6418
- ?data-disabled="${r}"
6419
- @click="${e(this,vp)}"
6152
+ ?data-disabled="${e}"
6153
+ @click="${r(this,Ec)}"
6420
6154
  >
6421
6155
  <slot name="icon"></slot>
6422
6156
  <slot></slot>
6423
6157
  </button>
6424
- `}};Wt=C(LO),rw=new WeakMap,ow=new WeakMap,iw=new WeakMap,sw=new WeakMap,nw=new WeakMap,Bt=new WeakSet,lw=new WeakMap,pw=function(){return e(this,Bt,As)&&this.value!==void 0?e(this,Bt,As).value.includes(this.value):this.pressed??e(this,Bt,zO)},hw=function(){return this.disabled||(e(this,Bt,As)?.disabled??!1)},vp=new WeakMap,l(Wt,4,"pressed",OO,Me,rw),l(Wt,4,"defaultPressed",AO,Me,ow),l(Wt,4,"disabled",IO,Me,iw),l(Wt,4,"value",RO,Me,sw),aw=l(Wt,20,"#internalPressed",TO,Bt,nw),zO=aw.get,cw=aw.set,dw=l(Wt,20,"#groupCtx",$O,Bt,lw),As=dw.get,l5=dw.set,S(Wt,Me),b(Me,"tagName","dui-toggle"),b(Me,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Me,"styles",[y,a5]);var UO=O("value-change",{bubbles:!0,composed:!0}),d5=c`
6158
+ `}};Bt=S(dI),Lx=new WeakMap,Px=new WeakMap,zx=new WeakMap,Mx=new WeakMap,Dx=new WeakMap,Re=new WeakSet,Hx=new WeakMap,Bx=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??r(this,Re,pI)},qx=function(){return this.disabled||(this._groupCtx?.disabled??!1)},Ec=new WeakMap,d(Bt,4,"pressed",lI,Te,Lx),d(Bt,4,"defaultPressed",aI,Te,Px),d(Bt,4,"disabled",nI,Te,zx),d(Bt,4,"value",sI,Te,Mx),Fx=d(Bt,20,"#internalPressed",iI,Re,Dx),pI=Fx.get,Nx=Fx.set,d(Bt,4,"_groupCtx",oI,Te,Hx),C(Bt,Te),g(Te,"tagName","dui-toggle"),g(Te,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Te,"styles",[w,cL]);var wI=_("value-change",{bubbles:!0,composed:!0}),pL=c`
6425
6159
  :host {
6426
6160
  display: inline-flex;
6427
6161
  }
@@ -6433,16 +6167,16 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6433
6167
  :host([orientation="vertical"]) [part="root"] {
6434
6168
  flex-direction: column;
6435
6169
  }
6436
- `,_O,MO,FO,HO,NO,BO,DO,qO,VO,St,uw,mw,fw,vw,gw,bw,yw,xw,jO,Sw,Xt,Cw,bp,ww,kw,c5,Ew,gp,yp,ye=class extends(VO=g,qO=[u({type:Array})],DO=[u({type:Array,attribute:"default-value"})],BO=[u({reflect:!0})],NO=[u({reflect:!0})],HO=[u({type:Boolean,reflect:!0})],FO=[u({type:Boolean})],MO=[k()],_O=[yt({context:fp}),k()],VO){constructor(){super(...arguments);s(this,Xt);s(this,uw,i(St,8,this)),i(St,11,this);s(this,mw,i(St,12,this,[])),i(St,15,this);s(this,fw,i(St,16,this,"single")),i(St,19,this);s(this,vw,i(St,20,this,"horizontal")),i(St,23,this);s(this,gw,i(St,24,this,!1)),i(St,27,this);s(this,bw,i(St,28,this,!0)),i(St,31,this);s(this,yw,i(St,32,this,[])),i(St,35,this);s(this,bp,t=>{if(this.disabled)return;let r=e(this,Xt,Cw),a;this.type==="single"?a=r.includes(t)?[]:[t]:a=r.includes(t)?r.filter(d=>d!==t):[...r,t],this.value===void 0&&h(this,Xt,a,Sw),this.dispatchEvent(UO({value:a}))});s(this,ww,i(St,36,this,m(this,Xt,gp).call(this))),i(St,39,this);s(this,yp,t=>{let r=this.orientation==="horizontal",a=r?"ArrowRight":"ArrowDown",d=r?"ArrowLeft":"ArrowUp";if(t.key!==a&&t.key!==d)return;t.preventDefault();let p=[...this.querySelectorAll("dui-toggle")],v=p.filter(I=>!I.hasAttribute("disabled"));if(v.length===0)return;let x=this.shadowRoot?.activeElement??document.activeElement,E=p.find(I=>I===x||I.shadowRoot?.activeElement===x||I.contains(x)),$=E?v.indexOf(E):-1,w;t.key===a?(w=$+1,w>=v.length&&(w=this.loop?0:v.length-1)):(w=$-1,w<0&&(w=this.loop?v.length-1:0)),v[w]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Xt,[...this.defaultValue],Sw),h(this,Xt,m(this,Xt,gp).call(this),Ew)}willUpdate(){h(this,Xt,m(this,Xt,gp).call(this),Ew)}render(){return f`
6170
+ `,hI,uI,mI,fI,vI,gI,bI,yI,xI,wt,Vx,Ux,jx,Kx,Wx,Gx,Yx,Xx,kI,Jx,me,Zx,Tc,Qx,$c,Rc,ue=class extends(xI=b,yI=[u({type:Array})],bI=[u({type:Array,attribute:"default-value"})],gI=[u({reflect:!0})],vI=[u({reflect:!0})],fI=[u({type:Boolean,reflect:!0})],mI=[u({type:Boolean})],uI=[k()],hI=[bt({context:Sc}),k()],xI){constructor(){super(...arguments);s(this,me);s(this,Vx,i(wt,8,this)),i(wt,11,this);s(this,Ux,i(wt,12,this,[])),i(wt,15,this);s(this,jx,i(wt,16,this,"single")),i(wt,19,this);s(this,Kx,i(wt,20,this,"horizontal")),i(wt,23,this);s(this,Wx,i(wt,24,this,!1)),i(wt,27,this);s(this,Gx,i(wt,28,this,!0)),i(wt,31,this);s(this,Yx,i(wt,32,this,[])),i(wt,35,this);s(this,Tc,t=>{if(this.disabled)return;let e=r(this,me,Zx),a;this.type==="single"?a=e.includes(t)?[]:[t]:a=e.includes(t)?e.filter(l=>l!==t):[...e,t],this.value===void 0&&h(this,me,a,Jx),this.dispatchEvent(wI({value:a}))});s(this,Qx,i(wt,36,this,m(this,me,$c).call(this))),i(wt,39,this);s(this,Rc,t=>{let e=this.orientation==="horizontal",a=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";if(t.key!==a&&t.key!==l)return;t.preventDefault();let p=[...this.querySelectorAll("dui-toggle")],f=p.filter(I=>!I.hasAttribute("disabled"));if(f.length===0)return;let y=this.shadowRoot?.activeElement??document.activeElement,E=p.find(I=>I===y||I.shadowRoot?.activeElement===y||I.contains(y)),$=E?f.indexOf(E):-1,x;t.key===a?(x=$+1,x>=f.length&&(x=this.loop?0:f.length-1)):(x=$-1,x<0&&(x=this.loop?f.length-1:0)),f[x]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,me,[...this.defaultValue],Jx),this._ctx=m(this,me,$c).call(this)}willUpdate(){this._ctx=m(this,me,$c).call(this)}render(){return v`
6437
6171
  <div
6438
6172
  part="root"
6439
6173
  role="group"
6440
6174
  aria-orientation="${this.orientation}"
6441
- @keydown="${e(this,yp)}"
6175
+ @keydown="${r(this,Rc)}"
6442
6176
  >
6443
6177
  <slot></slot>
6444
6178
  </div>
6445
- `}};St=C(VO),uw=new WeakMap,mw=new WeakMap,fw=new WeakMap,vw=new WeakMap,gw=new WeakMap,bw=new WeakMap,yw=new WeakMap,Xt=new WeakSet,Cw=function(){return this.value??e(this,Xt,jO)},bp=new WeakMap,ww=new WeakMap,gp=function(){return{value:e(this,Xt,Cw),disabled:this.disabled,type:this.type,toggle:e(this,bp)}},yp=new WeakMap,l(St,4,"value",qO,ye,uw),l(St,4,"defaultValue",DO,ye,mw),l(St,4,"type",BO,ye,fw),l(St,4,"orientation",NO,ye,vw),l(St,4,"disabled",HO,ye,gw),l(St,4,"loop",FO,ye,bw),xw=l(St,20,"#internalValue",MO,Xt,yw),jO=xw.get,Sw=xw.set,kw=l(St,20,"#ctx",_O,Xt,ww),c5=kw.get,Ew=kw.set,S(St,ye),b(ye,"tagName","dui-toggle-group"),b(ye,"styles",[y,d5]);var WO=[Me,ye];var p5=c`
6179
+ `}};wt=S(xI),Vx=new WeakMap,Ux=new WeakMap,jx=new WeakMap,Kx=new WeakMap,Wx=new WeakMap,Gx=new WeakMap,Yx=new WeakMap,me=new WeakSet,Zx=function(){return this.value??r(this,me,kI)},Tc=new WeakMap,Qx=new WeakMap,$c=function(){return{value:r(this,me,Zx),disabled:this.disabled,type:this.type,toggle:r(this,Tc)}},Rc=new WeakMap,d(wt,4,"value",yI,ue,Vx),d(wt,4,"defaultValue",bI,ue,Ux),d(wt,4,"type",gI,ue,jx),d(wt,4,"orientation",vI,ue,Kx),d(wt,4,"disabled",fI,ue,Wx),d(wt,4,"loop",mI,ue,Gx),Xx=d(wt,20,"#internalValue",uI,me,Yx),kI=Xx.get,Jx=Xx.set,d(wt,4,"_ctx",hI,ue,Qx),C(wt,ue),g(ue,"tagName","dui-toggle-group"),g(ue,"styles",[w,pL]);var hL=c`
6446
6180
  :host {
6447
6181
  display: block;
6448
6182
  }
@@ -6473,7 +6207,7 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6473
6207
  display: flex;
6474
6208
  align-items: center;
6475
6209
  }
6476
- `,KO,GO,YO,XO,Br,$w,Tw,Rw,hr=class extends(XO=g,YO=[u({type:Boolean,reflect:!0})],GO=[u({type:Boolean,reflect:!0,attribute:"has-button-left"})],KO=[u({type:Boolean,reflect:!0,attribute:"has-button-right"})],XO){constructor(){super(...arguments);s(this,$w,i(Br,8,this,!1)),i(Br,11,this);s(this,Tw,i(Br,12,this,!1)),i(Br,15,this);s(this,Rw,i(Br,16,this,!1)),i(Br,19,this)}render(){return f`
6210
+ `,CI,SI,EI,$I,Ir,t0,e0,r0,Ar=class extends($I=b,EI=[u({type:Boolean,reflect:!0})],SI=[u({type:Boolean,reflect:!0,attribute:"has-button-left"})],CI=[u({type:Boolean,reflect:!0,attribute:"has-button-right"})],$I){constructor(){super(...arguments);s(this,t0,i(Ir,8,this,!1)),i(Ir,11,this);s(this,e0,i(Ir,12,this,!1)),i(Ir,15,this);s(this,r0,i(Ir,16,this,!1)),i(Ir,19,this)}render(){return v`
6477
6211
  <nav part="root" role="toolbar">
6478
6212
  <div part="left">
6479
6213
  <slot name="left"></slot>
@@ -6485,15 +6219,15 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6485
6219
  <slot name="right"></slot>
6486
6220
  </div>
6487
6221
  </nav>
6488
- `}};Br=C(XO),$w=new WeakMap,Tw=new WeakMap,Rw=new WeakMap,l(Br,4,"inset",YO,hr,$w),l(Br,4,"hasButtonLeft",GO,hr,Tw),l(Br,4,"hasButtonRight",KO,hr,Rw),S(Br,hr),b(hr,"tagName","dui-toolbar"),b(hr,"styles",[y,p5]);var JO=[hr];var Os=Symbol("dui-tooltip");var qw=O("open-change",{bubbles:!0,composed:!0}),h5=c`
6222
+ `}};Ir=S($I),t0=new WeakMap,e0=new WeakMap,r0=new WeakMap,d(Ir,4,"inset",EI,Ar,t0),d(Ir,4,"hasButtonLeft",SI,Ar,e0),d(Ir,4,"hasButtonRight",CI,Ar,r0),C(Ir,Ar),g(Ar,"tagName","dui-toolbar"),g(Ar,"styles",[w,hL]);var gs=Symbol("dui-tooltip");var f0=_("open-change",{bubbles:!0,composed:!0}),uL=c`
6489
6223
  :host {
6490
6224
  display: contents;
6491
6225
  }
6492
- `,QO,ZO,t2,e2,r2,o2,i2,s2,n2,a2,l2,ct,Iw,Aw,Ow,Lw,Pw,zw,_w,Mw,Fw,xp,wp,et,Hw,Nw,Vw,d2,_i,Mi,Cp,Ep,Bw,Dw,kp,c2,Sp,p2,h2,Uw,jw,u2,ce=class extends(l2=g,a2=[u({type:Boolean,reflect:!0})],n2=[u({type:Boolean,attribute:"default-open"})],s2=[u({reflect:!0})],i2=[u({type:Number,attribute:"side-offset"})],o2=[u({type:Number})],r2=[u({type:Number,attribute:"close-delay"})],e2=[u({type:Boolean,reflect:!0})],t2=[k()],ZO=[k()],QO=[yt({context:Os}),k()],l2){constructor(){super(...arguments);s(this,et);s(this,Iw,i(ct,8,this,!1)),i(ct,11,this);s(this,Aw,i(ct,12,this,!1)),i(ct,15,this);s(this,Ow,i(ct,16,this,"top")),i(ct,19,this);s(this,Lw,i(ct,20,this,6)),i(ct,23,this);s(this,Pw,i(ct,24,this,500)),i(ct,27,this);s(this,zw,i(ct,28,this,0)),i(ct,31,this);s(this,_w,i(ct,32,this,!1)),i(ct,35,this);s(this,Mw,i(ct,36,this,!1)),i(ct,39,this);s(this,Hw,i(ct,40,this)),i(ct,43,this);s(this,_i);s(this,Mi);s(this,Cp,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,Ep,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);s(this,Bw,i(ct,44,this,{open:!1,triggerId:e(this,Cp),popupId:e(this,Ep),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>m(this,et,p2).call(this),closeTooltip:()=>m(this,et,h2).call(this),setTriggerEl:t=>m(this,et,u2).call(this,t)})),i(ct,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&h(this,et,!0,wp)}disconnectedCallback(){super.disconnectedCallback(),m(this,et,Sp).call(this)}willUpdate(t){let r=this.open||e(this,et,xp);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||e(this,et,kp).open!==r||e(this,et,kp).triggerEl!==e(this,et,Vw))&&h(this,et,{...e(this,et,kp),open:r,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:e(this,et,Vw)},c2)}render(){return f`<slot></slot>`}};ct=C(l2),Iw=new WeakMap,Aw=new WeakMap,Ow=new WeakMap,Lw=new WeakMap,Pw=new WeakMap,zw=new WeakMap,_w=new WeakMap,Mw=new WeakMap,et=new WeakSet,Hw=new WeakMap,_i=new WeakMap,Mi=new WeakMap,Cp=new WeakMap,Ep=new WeakMap,Bw=new WeakMap,Sp=function(){e(this,_i)&&(clearTimeout(e(this,_i)),h(this,_i,void 0)),e(this,Mi)&&(clearTimeout(e(this,Mi)),h(this,Mi,void 0))},p2=function(){this.disabled||(m(this,et,Sp).call(this),this.delay<=0?m(this,et,Uw).call(this):h(this,_i,setTimeout(()=>m(this,et,Uw).call(this),this.delay)))},h2=function(){m(this,et,Sp).call(this),this.closeDelay<=0?m(this,et,jw).call(this):h(this,Mi,setTimeout(()=>m(this,et,jw).call(this),this.closeDelay))},Uw=function(){e(this,et,xp)||(h(this,et,!0,wp),this.dispatchEvent(qw({open:!0})))},jw=function(){e(this,et,xp)&&(h(this,et,!1,wp),this.dispatchEvent(qw({open:!1})))},u2=function(t){h(this,et,t,d2)},l(ct,4,"open",a2,ce,Iw),l(ct,4,"defaultOpen",n2,ce,Aw),l(ct,4,"side",s2,ce,Ow),l(ct,4,"sideOffset",i2,ce,Lw),l(ct,4,"delay",o2,ce,Pw),l(ct,4,"closeDelay",r2,ce,zw),l(ct,4,"disabled",e2,ce,_w),Fw=l(ct,20,"#internalOpen",t2,et,Mw),xp=Fw.get,wp=Fw.set,Nw=l(ct,20,"#triggerEl",ZO,et,Hw),Vw=Nw.get,d2=Nw.set,Dw=l(ct,20,"#ctx",QO,et,Bw),kp=Dw.get,c2=Dw.set,S(ct,ce),b(ce,"tagName","dui-tooltip"),b(ce,"styles",[y,h5]);var u5=c`
6226
+ `,TI,RI,II,AI,_I,OI,LI,PI,zI,MI,DI,at,o0,i0,s0,n0,a0,l0,d0,c0,p0,Ic,Ac,lt,h0,u0,v0,FI,ki,Ci,Oc,Lc,m0,_c,HI,NI,g0,b0,BI,Zt=class extends(DI=b,MI=[u({type:Boolean,reflect:!0})],zI=[u({type:Boolean,attribute:"default-open"})],PI=[u({reflect:!0})],LI=[u({type:Number,attribute:"side-offset"})],OI=[u({type:Number})],_I=[u({type:Number,attribute:"close-delay"})],AI=[u({type:Boolean,reflect:!0})],II=[k()],RI=[k()],TI=[bt({context:gs}),k()],DI){constructor(){super(...arguments);s(this,lt);s(this,o0,i(at,8,this,!1)),i(at,11,this);s(this,i0,i(at,12,this,!1)),i(at,15,this);s(this,s0,i(at,16,this,"top")),i(at,19,this);s(this,n0,i(at,20,this,6)),i(at,23,this);s(this,a0,i(at,24,this,500)),i(at,27,this);s(this,l0,i(at,28,this,0)),i(at,31,this);s(this,d0,i(at,32,this,!1)),i(at,35,this);s(this,c0,i(at,36,this,!1)),i(at,39,this);s(this,h0,i(at,40,this)),i(at,43,this);s(this,ki);s(this,Ci);s(this,Oc,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,Lc,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);s(this,m0,i(at,44,this,{open:!1,triggerId:r(this,Oc),popupId:r(this,Lc),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>m(this,lt,HI).call(this),closeTooltip:()=>m(this,lt,NI).call(this),setTriggerEl:t=>m(this,lt,BI).call(this,t)})),i(at,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&h(this,lt,!0,Ac)}disconnectedCallback(){super.disconnectedCallback(),m(this,lt,_c).call(this)}willUpdate(t){let e=this.open||r(this,lt,Ic);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==e||this._ctx.triggerEl!==r(this,lt,v0))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:r(this,lt,v0)})}render(){return v`<slot></slot>`}};at=S(DI),o0=new WeakMap,i0=new WeakMap,s0=new WeakMap,n0=new WeakMap,a0=new WeakMap,l0=new WeakMap,d0=new WeakMap,c0=new WeakMap,lt=new WeakSet,h0=new WeakMap,ki=new WeakMap,Ci=new WeakMap,Oc=new WeakMap,Lc=new WeakMap,m0=new WeakMap,_c=function(){r(this,ki)&&(clearTimeout(r(this,ki)),h(this,ki,void 0)),r(this,Ci)&&(clearTimeout(r(this,Ci)),h(this,Ci,void 0))},HI=function(){this.disabled||(m(this,lt,_c).call(this),this.delay<=0?m(this,lt,g0).call(this):h(this,ki,setTimeout(()=>m(this,lt,g0).call(this),this.delay)))},NI=function(){m(this,lt,_c).call(this),this.closeDelay<=0?m(this,lt,b0).call(this):h(this,Ci,setTimeout(()=>m(this,lt,b0).call(this),this.closeDelay))},g0=function(){r(this,lt,Ic)||(h(this,lt,!0,Ac),this.dispatchEvent(f0({open:!0})))},b0=function(){r(this,lt,Ic)&&(h(this,lt,!1,Ac),this.dispatchEvent(f0({open:!1})))},BI=function(t){h(this,lt,t,FI)},d(at,4,"open",MI,Zt,o0),d(at,4,"defaultOpen",zI,Zt,i0),d(at,4,"side",PI,Zt,s0),d(at,4,"sideOffset",LI,Zt,n0),d(at,4,"delay",OI,Zt,a0),d(at,4,"closeDelay",_I,Zt,l0),d(at,4,"disabled",AI,Zt,d0),p0=d(at,20,"#internalOpen",II,lt,c0),Ic=p0.get,Ac=p0.set,u0=d(at,20,"#triggerEl",RI,lt,h0),v0=u0.get,FI=u0.set,d(at,4,"_ctx",TI,Zt,m0),C(at,Zt),g(Zt,"tagName","dui-tooltip"),g(Zt,"styles",[w,uL]);var mL=c`
6493
6227
  :host {
6494
6228
  display: contents;
6495
6229
  }
6496
- `,m5=c`
6230
+ `,fL=c`
6497
6231
  .Trigger {
6498
6232
  display: inline-flex;
6499
6233
  align-items: center;
@@ -6510,29 +6244,29 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6510
6244
  .Trigger[data-disabled] {
6511
6245
  cursor: not-allowed;
6512
6246
  }
6513
- `,m2,f2,$p,Ww,xe,Rp,Ip,Ap,Op,Lp,uo,Kw,Tp,ho=class extends(f2=g,m2=[u({type:Boolean,reflect:!0})],f2){constructor(){super(...arguments);s(this,uo);s(this,Ww,i($p,8,this,!1)),i($p,11,this);s(this,xe,new V(this,{context:Os,subscribe:!0}));s(this,Rp,()=>{e(this,uo,Tp)||(m(this,uo,Kw).call(this),e(this,xe).value?.openTooltip())});s(this,Ip,()=>{e(this,xe).value?.closeTooltip()});s(this,Ap,()=>{e(this,uo,Tp)||(m(this,uo,Kw).call(this),e(this,xe).value?.openTooltip())});s(this,Op,()=>{e(this,xe).value?.closeTooltip()});s(this,Lp,t=>{t.key==="Escape"&&e(this,xe).value?.open&&e(this,xe).value?.closeTooltip()})}render(){let t=e(this,xe).value?.open??!1,r=e(this,xe).value?.popupId??"",a=e(this,xe).value?.triggerId??"";return f`
6247
+ `,qI,VI,Pc,y0,fe,Mc,Dc,Fc,Hc,Nc,Yr,x0,zc,$o=class extends(VI=b,qI=[u({type:Boolean,reflect:!0})],VI){constructor(){super(...arguments);s(this,Yr);s(this,y0,i(Pc,8,this,!1)),i(Pc,11,this);s(this,fe,new J(this,{context:gs,subscribe:!0}));s(this,Mc,()=>{r(this,Yr,zc)||(m(this,Yr,x0).call(this),r(this,fe).value?.openTooltip())});s(this,Dc,()=>{r(this,fe).value?.closeTooltip()});s(this,Fc,()=>{r(this,Yr,zc)||(m(this,Yr,x0).call(this),r(this,fe).value?.openTooltip())});s(this,Hc,()=>{r(this,fe).value?.closeTooltip()});s(this,Nc,t=>{t.key==="Escape"&&r(this,fe).value?.open&&r(this,fe).value?.closeTooltip()})}render(){let t=r(this,fe).value?.open??!1,e=r(this,fe).value?.popupId??"",a=r(this,fe).value?.triggerId??"";return v`
6514
6248
  <span
6515
6249
  class="Trigger"
6516
6250
  part="trigger"
6517
6251
  id="${a}"
6518
6252
  role="button"
6519
6253
  tabindex="0"
6520
- aria-describedby="${t?r:""}"
6254
+ aria-describedby="${t?e:""}"
6521
6255
  ?data-popup-open="${t}"
6522
- ?data-disabled="${e(this,uo,Tp)}"
6523
- @mouseenter="${e(this,Rp)}"
6524
- @mouseleave="${e(this,Ip)}"
6525
- @focus="${e(this,Ap)}"
6526
- @blur="${e(this,Op)}"
6527
- @keydown="${e(this,Lp)}"
6256
+ ?data-disabled="${r(this,Yr,zc)}"
6257
+ @mouseenter="${r(this,Mc)}"
6258
+ @mouseleave="${r(this,Dc)}"
6259
+ @focus="${r(this,Fc)}"
6260
+ @blur="${r(this,Hc)}"
6261
+ @keydown="${r(this,Nc)}"
6528
6262
  >
6529
6263
  <slot></slot>
6530
6264
  </span>
6531
- `}};$p=C(f2),Ww=new WeakMap,xe=new WeakMap,Rp=new WeakMap,Ip=new WeakMap,Ap=new WeakMap,Op=new WeakMap,Lp=new WeakMap,uo=new WeakSet,Kw=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;e(this,xe).value?.setTriggerEl(t)},Tp=function(){return this.disabled||(e(this,xe).value?.disabled??!1)},l($p,4,"disabled",m2,ho,Ww),S($p,ho),b(ho,"tagName","dui-tooltip-trigger"),b(ho,"styles",[y,u5,m5]);var f5=c`
6265
+ `}};Pc=S(VI),y0=new WeakMap,fe=new WeakMap,Mc=new WeakMap,Dc=new WeakMap,Fc=new WeakMap,Hc=new WeakMap,Nc=new WeakMap,Yr=new WeakSet,x0=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;r(this,fe).value?.setTriggerEl(t)},zc=function(){return this.disabled||(r(this,fe).value?.disabled??!1)},d(Pc,4,"disabled",qI,$o,y0),C(Pc,$o),g($o,"tagName","dui-tooltip-trigger"),g($o,"styles",[w,mL,fL]);var vL=c`
6532
6266
  :host {
6533
6267
  display: none;
6534
6268
  }
6535
- `,v5=[c`
6269
+ `,gL=[c`
6536
6270
  .Popup {
6537
6271
  box-sizing: border-box;
6538
6272
  pointer-events: auto;
@@ -6573,19 +6307,19 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6573
6307
  left: 50%;
6574
6308
  transform: translateX(-50%) rotate(180deg);
6575
6309
  }
6576
- `],v2,g2,b2,Fi,Gw,Yw,Xw,Pp,y2,Dr,qo,Ls,Hi,x2,mo=class extends(b2=g,g2=[u({type:Boolean,attribute:"show-arrow"})],v2=[k()],b2){constructor(){super(...arguments);s(this,Dr);s(this,Gw,i(Fi,8,this,!0)),i(Fi,11,this);s(this,Yw,i(Fi,12,this,"top")),i(Fi,15,this);s(this,qo,new V(this,{context:Os,subscribe:!0}));s(this,Ls,!1);s(this,Hi,new ue(this,{getAnchor:()=>e(this,qo).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:v5,contentContainer:".Content",onPosition:({placement:t})=>{let r=t.split("-")[0];r!==e(this,Dr,Pp)&&h(this,Dr,r,y2)},renderPopup:t=>{let r=e(this,qo).value?.popupId??"";return f`
6310
+ `],UI,jI,KI,Si,w0,k0,C0,Bc,WI,_r,Ro,bs,Ei,GI,To=class extends(KI=b,jI=[u({type:Boolean,attribute:"show-arrow"})],UI=[k()],KI){constructor(){super(...arguments);s(this,_r);s(this,w0,i(Si,8,this,!0)),i(Si,11,this);s(this,k0,i(Si,12,this,"top")),i(Si,15,this);s(this,Ro,new J(this,{context:gs,subscribe:!0}));s(this,bs,!1);s(this,Ei,new ie(this,{getAnchor:()=>r(this,Ro).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:gL,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,_r,Bc)&&h(this,_r,e,WI)},renderPopup:t=>{let e=r(this,Ro).value?.popupId??"";return v`
6577
6311
  <div
6578
6312
  class="Popup"
6579
- id="${r}"
6313
+ id="${e}"
6580
6314
  role="tooltip"
6581
6315
  ?data-starting-style="${t.isStarting}"
6582
6316
  ?data-ending-style="${t.isEnding}"
6583
- data-side="${e(this,Dr,Pp)}"
6317
+ data-side="${r(this,_r,Bc)}"
6584
6318
  >
6585
6319
  <div class="Content"></div>
6586
- ${this.showArrow?os(e(this,Dr,Pp)):""}
6320
+ ${this.showArrow?ji(r(this,_r,Bc)):""}
6587
6321
  </div>
6588
- `}}))}updated(){let t=e(this,qo).value?.open??!1;t&&!e(this,Ls)?(m(this,Dr,x2).call(this),e(this,Hi).open()):!t&&e(this,Ls)&&e(this,Hi).close(),h(this,Ls,t)}render(){return f`<slot></slot>`}};Fi=C(b2),Gw=new WeakMap,Yw=new WeakMap,Dr=new WeakSet,qo=new WeakMap,Ls=new WeakMap,Hi=new WeakMap,x2=function(){let t=e(this,qo).value?.side??"top";e(this,Hi).placement=t,e(this,Hi).offset=e(this,qo).value?.sideOffset??6},l(Fi,4,"showArrow",g2,mo,Gw),Xw=l(Fi,20,"#side",v2,Dr,Yw),Pp=Xw.get,y2=Xw.set,S(Fi,mo),b(mo,"tagName","dui-tooltip-popup"),b(mo,"styles",[y,f5]);var w2=[ce,ho,mo];var g5=c`
6322
+ `}}))}updated(){let t=r(this,Ro).value?.open??!1;t&&!r(this,bs)?(m(this,_r,GI).call(this),r(this,Ei).open()):!t&&r(this,bs)&&r(this,Ei).close(),h(this,bs,t)}render(){return v`<slot></slot>`}};Si=S(KI),w0=new WeakMap,k0=new WeakMap,_r=new WeakSet,Ro=new WeakMap,bs=new WeakMap,Ei=new WeakMap,GI=function(){let t=r(this,Ro).value?.side??"top";r(this,Ei).placement=t,r(this,Ei).offset=r(this,Ro).value?.sideOffset??6},d(Si,4,"showArrow",jI,To,w0),C0=d(Si,20,"#side",UI,_r,k0),Bc=C0.get,WI=C0.set,C(Si,To),g(To,"tagName","dui-tooltip-popup"),g(To,"styles",[w,vL]);var bL=c`
6589
6323
  :host {
6590
6324
  display: block;
6591
6325
  }
@@ -6604,54 +6338,4 @@ var O2=Object.create;var Mp=Object.defineProperty;var L2=Object.getOwnPropertyDe
6604
6338
  display: -webkit-box;
6605
6339
  -webkit-box-orient: vertical;
6606
6340
  }
6607
- `,k2,S2,C2,Ni,Jw,Qw,qr=class extends(C2=g,S2=[u({attribute:"max-width"})],k2=[u({attribute:"max-lines",type:Number,reflect:!0})],C2){constructor(){super(...arguments);s(this,Jw,i(Ni,8,this,"20rem")),i(Ni,11,this);s(this,Qw,i(Ni,12,this)),i(Ni,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,r=cs({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return f`<div part="root" style=${r}><slot></slot></div>`}};Ni=C(C2),Jw=new WeakMap,Qw=new WeakMap,l(Ni,4,"maxWidth",S2,qr,Jw),l(Ni,4,"maxLines",k2,qr,Qw),S(Ni,qr),b(qr,"tagName","dui-trunc"),b(qr,"styles",[y,g5]);var E2=[qr];var b5=c`
6608
- :host {
6609
- --vstack-gap: var(--space-4);
6610
- display: block;
6611
- width: 100%;
6612
- }
6613
-
6614
- :host([gap="0"]) {
6615
- --vstack-gap: var(--space-0);
6616
- }
6617
- :host([gap="1"]) {
6618
- --vstack-gap: var(--space-1);
6619
- }
6620
- :host([gap="2"]) {
6621
- --vstack-gap: var(--space-2);
6622
- }
6623
- :host([gap="3"]) {
6624
- --vstack-gap: var(--space-3);
6625
- }
6626
- :host([gap="4"]) {
6627
- --vstack-gap: var(--space-4);
6628
- }
6629
- :host([gap="5"]) {
6630
- --vstack-gap: var(--space-5);
6631
- }
6632
- :host([gap="6"]) {
6633
- --vstack-gap: var(--space-6);
6634
- }
6635
- :host([gap="8"]) {
6636
- --vstack-gap: var(--space-8);
6637
- }
6638
- :host([gap="10"]) {
6639
- --vstack-gap: var(--space-10);
6640
- }
6641
- :host([gap="12"]) {
6642
- --vstack-gap: var(--space-12);
6643
- }
6644
- :host([gap="16"]) {
6645
- --vstack-gap: var(--space-16);
6646
- }
6647
-
6648
- [part="root"] {
6649
- display: flex;
6650
- flex-direction: column;
6651
- gap: var(--vstack-gap);
6652
- }
6653
- `,$2,T2,zp,Zw,fo=class extends(T2=g,$2=[u({reflect:!0})],T2){constructor(){super(...arguments);s(this,Zw,i(zp,8,this,"4")),i(zp,11,this)}render(){return f`
6654
- <div part="root">
6655
- <slot></slot>
6656
- </div>
6657
- `}};zp=C(T2),Zw=new WeakMap,l(zp,4,"gap",$2,fo,Zw),S(zp,fo),b(fo,"tagName","dui-vstack"),b(fo,"styles",[y,b5]);var R2=[fo];var I2=[...Jk,...bS,...AS,...OS,...LS,...DS,...sC,...nC,...OC,...KC,...KE,...w1,...H1,...s$,...k$,...T$,...R$,...K$,...J$,...oT,...hT,...LT,...HT,...oR,...dR,...AR,...MR,...rI,...II,...BI,...VI,...fA,...EA,...IA,...UA,...pO,...EO,...WO,...JO,...w2,...E2,...R2];nk({theme:$k,components:I2});export{I2 as allComponents,nk as applyTheme,$k as defaultTheme};
6341
+ `,YI,XI,QI,$i,S0,E0,Xr=class extends(QI=b,XI=[u({attribute:"max-width"})],YI=[u({attribute:"max-lines",type:Number,reflect:!0})],QI){constructor(){super(...arguments);s(this,S0,i($i,8,this,"20rem")),i($i,11,this);s(this,E0,i($i,12,this)),i($i,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,e=Ji({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return v`<div part="root" style=${e}><slot></slot></div>`}};$i=S(QI),S0=new WeakMap,E0=new WeakMap,d($i,4,"maxWidth",XI,Xr,S0),d($i,4,"maxLines",YI,Xr,E0),C($i,Xr),g(Xr,"tagName","dui-trunc"),g(Xr,"styles",[w,bL]);var JI=[DuiAccordion,DuiAccordionItem,DuiAlertDialog,DuiAlertDialogTrigger,DuiAlertDialogPopup,DuiAlertDialogClose,DuiAvatar,DuiBadge,DuiBreadcrumb,DuiBreadcrumbItem,DuiBreadcrumbLink,DuiBreadcrumbPage,DuiBreadcrumbSeparator,DuiBreadcrumbEllipsis,DuiButton,DuiCalendar,DuiCheckbox,DuiCheckboxGroup,DuiCollapsible,DuiCombobox,DuiCommand,DuiCommandInput,DuiCommandList,DuiCommandGroup,DuiCommandItem,DuiCommandEmpty,DuiCommandSeparator,DuiCommandShortcut,DuiDataTable,DuiDialog,DuiDialogTrigger,DuiDialogPopup,DuiDialogClose,DuiDropzone,DuiIcon,DuiInput,DuiLink,DuiMenu,DuiMenuItem,DuiMenubar,DuiNumberField,DuiPopover,DuiPopoverTrigger,DuiPopoverPopup,DuiPopoverClose,DuiPortal,DuiPreviewCard,DuiPreviewCardTrigger,DuiPreviewCardPopup,DuiProgress,DuiRadio,DuiRadioGroup,DuiScrollArea,DuiSelect,DuiSeparator,DuiSidebarProvider,DuiSidebar,DuiSidebarTrigger,DuiSidebarContent,DuiSidebarHeader,DuiSidebarFooter,DuiSidebarGroup,DuiSidebarGroupLabel,DuiSidebarMenu,DuiSidebarMenuItem,DuiSidebarMenuButton,DuiSidebarSeparator,DuiSidebarInset,DuiSlider,DuiSpinner,DuiSwitch,DuiTabs,DuiTabsList,DuiTab,DuiTabsPanel,DuiTabsIndicator,DuiTextarea,DuiToggle,DuiToggleGroup,DuiToolbar,DuiTooltip,DuiTooltipTrigger,DuiTooltipPopup,DuiTrunc];O0({theme:J0,components:JI});export{JI as allComponents,O0 as applyTheme,J0 as defaultTheme};