@umbraco-ui/uui 1.12.0 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/uui.min.js CHANGED
@@ -2,25 +2,25 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Le=window,Bo=Le.ShadowRoot&&(Le.ShadyCSS===void 0||Le.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Do=Symbol(),$n=new WeakMap;let En=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Do)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Bo&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=$n.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&$n.set(t,e))}return e}toString(){return this.cssText}};const Oe=i=>new En(typeof i=="string"?i:i+"",void 0,Do),m=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[s+1],i[0]);return new En(t,i,Do)},bl=(i,e)=>{Bo?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const r=document.createElement("style"),o=Le.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)})},In=Bo?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Oe(t)})(i):i;/**
5
+ */const Le=window,Vo=Le.ShadowRoot&&(Le.ShadyCSS===void 0||Le.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jo=Symbol(),Cn=new WeakMap;let Sn=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==jo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Vo&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Cn.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Cn.set(t,e))}return e}toString(){return this.cssText}};const Oe=i=>new Sn(typeof i=="string"?i:i+"",void 0,jo),v=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[s+1],i[0]);return new Sn(t,i,jo)},El=(i,e)=>{Vo?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const r=document.createElement("style"),o=Le.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)})},Pn=Vo?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Oe(t)})(i):i;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var Vo;const Ai=window,xn=Ai.trustedTypes,gl=xn?xn.emptyScript:"",Cn=Ai.reactiveElementPolyfillSupport,jo={toAttribute(i,e){switch(e){case Boolean:i=i?gl:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Sn=(i,e)=>e!==i&&(e==e||i==i),Ho={attribute:!0,type:String,converter:jo,reflect:!1,hasChanged:Sn},Ro="finalized";let gt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,r)=>{const o=this._$Ep(r,t);o!==void 0&&(this._$Ev.set(o,r),e.push(o))}),e}static createProperty(e,t=Ho){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ho}static finalize(){if(this.hasOwnProperty(Ro))return!1;this[Ro]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const o of r)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(In(o))}else e!==void 0&&t.push(In(e));return t}static _$Ep(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return bl(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostConnected)===null||r===void 0?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostDisconnected)===null||r===void 0?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=Ho){var o;const s=this.constructor._$Ep(e,r);if(s!==void 0&&r.reflect===!0){const a=(((o=r.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?r.converter:jo).toAttribute(t,r.type);this._$El=e,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$El=null}}_$AK(e,t){var r;const o=this.constructor,s=o._$Ev.get(e);if(s!==void 0&&this._$El!==s){const a=o.getPropertyOptions(s),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?a.converter:jo;this._$El=s,this[s]=c.fromAttribute(t,a.type),this._$El=null}}requestUpdate(e,t,r){let o=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||Sn)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,s)=>this[s]=o),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var s;return(s=o.hostUpdate)===null||s===void 0?void 0:s.call(o)}),this.update(r)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdated)===null||o===void 0?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,r)=>this._$EO(r,this[r],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};gt[Ro]=!0,gt.elementProperties=new Map,gt.elementStyles=[],gt.shadowRootOptions={mode:"open"},Cn?.({ReactiveElement:gt}),((Vo=Ai.reactiveElementVersions)!==null&&Vo!==void 0?Vo:Ai.reactiveElementVersions=[]).push("1.6.3");/**
9
+ */var Ho;const Mi=window,An=Mi.trustedTypes,Il=An?An.emptyScript:"",zn=Mi.reactiveElementPolyfillSupport,Ro={toAttribute(i,e){switch(e){case Boolean:i=i?Il:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Mn=(i,e)=>e!==i&&(e==e||i==i),Fo={attribute:!0,type:String,converter:Ro,reflect:!1,hasChanged:Mn},Go="finalized";let vt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,r)=>{const o=this._$Ep(r,t);o!==void 0&&(this._$Ev.set(o,r),e.push(o))}),e}static createProperty(e,t=Fo){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Fo}static finalize(){if(this.hasOwnProperty(Go))return!1;this[Go]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const o of r)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(Pn(o))}else e!==void 0&&t.push(Pn(e));return t}static _$Ep(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return El(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostConnected)===null||r===void 0?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostDisconnected)===null||r===void 0?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=Fo){var o;const s=this.constructor._$Ep(e,r);if(s!==void 0&&r.reflect===!0){const a=(((o=r.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?r.converter:Ro).toAttribute(t,r.type);this._$El=e,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$El=null}}_$AK(e,t){var r;const o=this.constructor,s=o._$Ev.get(e);if(s!==void 0&&this._$El!==s){const a=o.getPropertyOptions(s),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?a.converter:Ro;this._$El=s,this[s]=c.fromAttribute(t,a.type),this._$El=null}}requestUpdate(e,t,r){let o=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||Mn)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,s)=>this[s]=o),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var s;return(s=o.hostUpdate)===null||s===void 0?void 0:s.call(o)}),this.update(r)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdated)===null||o===void 0?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,r)=>this._$EO(r,this[r],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};vt[Go]=!0,vt.elementProperties=new Map,vt.elementStyles=[],vt.shadowRootOptions={mode:"open"},zn?.({ReactiveElement:vt}),((Ho=Mi.reactiveElementVersions)!==null&&Ho!==void 0?Ho:Mi.reactiveElementVersions=[]).push("1.6.3");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var Fo;const zi=window,vt=zi.trustedTypes,Pn=vt?vt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Go="$lit$",Te=`lit$${(Math.random()+"").slice(9)}$`,An="?"+Te,vl=`<${An}>`,Ke=document,ai=()=>Ke.createComment(""),li=i=>i===null||typeof i!="object"&&typeof i!="function",zn=Array.isArray,fl=i=>zn(i)||typeof i?.[Symbol.iterator]=="function",Wo=`[
14
- \f\r]`,ui=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mn=/-->/g,Ln=/>/g,Xe=RegExp(`>|${Wo}(?:([^\\s"'>=/]+)(${Wo}*=${Wo}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),On=/'/g,Tn=/"/g,Nn=/^(?:script|style|textarea|title)$/i,Bn=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),u=Bn(1),y=Bn(2),J=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),Dn=new WeakMap,Ye=Ke.createTreeWalker(Ke,129,null,!1);function Vn(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pn!==void 0?Pn.createHTML(e):e}const yl=(i,e)=>{const t=i.length-1,r=[];let o,s=e===2?"<svg>":"",a=ui;for(let c=0;c<t;c++){const h=i[c];let d,f,g=-1,U=0;for(;U<h.length&&(a.lastIndex=U,f=a.exec(h),f!==null);)U=a.lastIndex,a===ui?f[1]==="!--"?a=Mn:f[1]!==void 0?a=Ln:f[2]!==void 0?(Nn.test(f[2])&&(o=RegExp("</"+f[2],"g")),a=Xe):f[3]!==void 0&&(a=Xe):a===Xe?f[0]===">"?(a=o??ui,g=-1):f[1]===void 0?g=-2:(g=a.lastIndex-f[2].length,d=f[1],a=f[3]===void 0?Xe:f[3]==='"'?Tn:On):a===Tn||a===On?a=Xe:a===Mn||a===Ln?a=ui:(a=Xe,o=void 0);const p=a===Xe&&i[c+1].startsWith("/>")?" ":"";s+=a===ui?h+vl:g>=0?(r.push(d),h.slice(0,g)+Go+h.slice(g)+Te+p):h+Te+(g===-2?(r.push(void 0),c):p)}return[Vn(i,s+(i[t]||"<?>")+(e===2?"</svg>":"")),r]};let qo=class pl{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let s=0,a=0;const c=e.length-1,h=this.parts,[d,f]=yl(e,t);if(this.el=pl.createElement(d,r),Ye.currentNode=this.el.content,t===2){const g=this.el.content,U=g.firstChild;U.remove(),g.append(...U.childNodes)}for(;(o=Ye.nextNode())!==null&&h.length<c;){if(o.nodeType===1){if(o.hasAttributes()){const g=[];for(const U of o.getAttributeNames())if(U.endsWith(Go)||U.startsWith(Te)){const p=f[a++];if(g.push(U),p!==void 0){const _=o.getAttribute(p.toLowerCase()+Go).split(Te),S=/([.?@])?(.*)/.exec(p);h.push({type:1,index:s,name:S[2],strings:_,ctor:S[1]==="."?_l:S[1]==="?"?kl:S[1]==="@"?$l:Li})}else h.push({type:6,index:s})}for(const U of g)o.removeAttribute(U)}if(Nn.test(o.tagName)){const g=o.textContent.split(Te),U=g.length-1;if(U>0){o.textContent=vt?vt.emptyScript:"";for(let p=0;p<U;p++)o.append(g[p],ai()),Ye.nextNode(),h.push({type:2,index:++s});o.append(g[U],ai())}}}else if(o.nodeType===8)if(o.data===An)h.push({type:2,index:s});else{let g=-1;for(;(g=o.data.indexOf(Te,g+1))!==-1;)h.push({type:7,index:s}),g+=Te.length-1}s++}}static createElement(e,t){const r=Ke.createElement("template");return r.innerHTML=e,r}};function ft(i,e,t=i,r){var o,s,a,c;if(e===J)return e;let h=r!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[r]:t._$Cl;const d=li(e)?void 0:e._$litDirective$;return h?.constructor!==d&&((s=h?._$AO)===null||s===void 0||s.call(h,!1),d===void 0?h=void 0:(h=new d(i),h._$AT(i,t,r)),r!==void 0?((a=(c=t)._$Co)!==null&&a!==void 0?a:c._$Co=[])[r]=h:t._$Cl=h),h!==void 0&&(e=ft(i,h._$AS(i,e.values),h,r)),e}let wl=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:o}=this._$AD,s=((t=e?.creationScope)!==null&&t!==void 0?t:Ke).importNode(r,!0);Ye.currentNode=s;let a=Ye.nextNode(),c=0,h=0,d=o[0];for(;d!==void 0;){if(c===d.index){let f;d.type===2?f=new Mi(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new El(a,this,e)),this._$AV.push(f),d=o[++h]}c!==d?.index&&(a=Ye.nextNode(),c++)}return Ye.currentNode=Ke,s}v(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},Mi=class ml{constructor(e,t,r,o){var s;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cp=(s=o?.isConnected)===null||s===void 0||s}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ft(this,e,t),li(e)?e===I||e==null||e===""?(this._$AH!==I&&this._$AR(),this._$AH=I):e!==this._$AH&&e!==J&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):fl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==I&&li(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ke.createTextNode(e)),this._$AH=e}g(e){var t;const{values:r,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=qo.createElement(Vn(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.v(r);else{const a=new wl(s,this),c=a.u(this.options);a.v(r),this.$(c),this._$AH=a}}_$AC(e){let t=Dn.get(e.strings);return t===void 0&&Dn.set(e.strings,t=new qo(e)),t}T(e){zn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const s of e)o===t.length?t.push(r=new ml(this.k(ai()),this.k(ai()),this,this.options)):r=t[o],r._$AI(s),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,t);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},Li=class{constructor(e,t,r,o,s){this.type=1,this._$AH=I,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,o){const s=this.strings;let a=!1;if(s===void 0)e=ft(this,e,t,0),a=!li(e)||e!==this._$AH&&e!==J,a&&(this._$AH=e);else{const c=e;let h,d;for(e=s[0],h=0;h<s.length-1;h++)d=ft(this,c[r+h],t,h),d===J&&(d=this._$AH[h]),a||(a=!li(d)||d!==this._$AH[h]),d===I?e=I:e!==I&&(e+=(d??"")+s[h+1]),this._$AH[h]=d}a&&!o&&this.j(e)}j(e){e===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},_l=class extends Li{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===I?void 0:e}};const Ul=vt?vt.emptyScript:"";let kl=class extends Li{constructor(){super(...arguments),this.type=4}j(e){e&&e!==I?this.element.setAttribute(this.name,Ul):this.element.removeAttribute(this.name)}},$l=class extends Li{constructor(e,t,r,o,s){super(e,t,r,o,s),this.type=5}_$AI(e,t=this){var r;if((e=(r=ft(this,e,t,0))!==null&&r!==void 0?r:I)===J)return;const o=this._$AH,s=e===I&&o!==I||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==I&&(o===I||s);s&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}},El=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ft(this,e)}};const Il={I:Mi},jn=zi.litHtmlPolyfillSupport;jn?.(qo,Mi),((Fo=zi.litHtmlVersions)!==null&&Fo!==void 0?Fo:zi.litHtmlVersions=[]).push("2.8.0");const xl=(i,e,t)=>{var r,o;const s=(r=t?.renderBefore)!==null&&r!==void 0?r:e;let a=s._$litPart$;if(a===void 0){const c=(o=t?.renderBefore)!==null&&o!==void 0?o:null;s._$litPart$=a=new Mi(e.insertBefore(ai(),c),c,void 0,t??{})}return a._$AI(i),a};/**
13
+ */var Wo;const Li=window,gt=Li.trustedTypes,Ln=gt?gt.createPolicy("lit-html",{createHTML:i=>i}):void 0,qo="$lit$",Te=`lit$${(Math.random()+"").slice(9)}$`,On="?"+Te,xl=`<${On}>`,Ke=document,ai=()=>Ke.createComment(""),li=i=>i===null||typeof i!="object"&&typeof i!="function",Tn=Array.isArray,Cl=i=>Tn(i)||typeof i?.[Symbol.iterator]=="function",Ko=`[
14
+ \f\r]`,ui=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Nn=/-->/g,Bn=/>/g,Xe=RegExp(`>|${Ko}(?:([^\\s"'>=/]+)(${Ko}*=${Ko}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Dn=/'/g,Vn=/"/g,jn=/^(?:script|style|textarea|title)$/i,Hn=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),u=Hn(1),y=Hn(2),J=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),Rn=new WeakMap,Ye=Ke.createTreeWalker(Ke,129,null,!1);function Fn(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ln!==void 0?Ln.createHTML(e):e}const Sl=(i,e)=>{const t=i.length-1,r=[];let o,s=e===2?"<svg>":"",a=ui;for(let c=0;c<t;c++){const h=i[c];let d,b,m=-1,U=0;for(;U<h.length&&(a.lastIndex=U,b=a.exec(h),b!==null);)U=a.lastIndex,a===ui?b[1]==="!--"?a=Nn:b[1]!==void 0?a=Bn:b[2]!==void 0?(jn.test(b[2])&&(o=RegExp("</"+b[2],"g")),a=Xe):b[3]!==void 0&&(a=Xe):a===Xe?b[0]===">"?(a=o??ui,m=-1):b[1]===void 0?m=-2:(m=a.lastIndex-b[2].length,d=b[1],a=b[3]===void 0?Xe:b[3]==='"'?Vn:Dn):a===Vn||a===Dn?a=Xe:a===Nn||a===Bn?a=ui:(a=Xe,o=void 0);const p=a===Xe&&i[c+1].startsWith("/>")?" ":"";s+=a===ui?h+xl:m>=0?(r.push(d),h.slice(0,m)+qo+h.slice(m)+Te+p):h+Te+(m===-2?(r.push(void 0),c):p)}return[Fn(i,s+(i[t]||"<?>")+(e===2?"</svg>":"")),r]};let Xo=class kl{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let s=0,a=0;const c=e.length-1,h=this.parts,[d,b]=Sl(e,t);if(this.el=kl.createElement(d,r),Ye.currentNode=this.el.content,t===2){const m=this.el.content,U=m.firstChild;U.remove(),m.append(...U.childNodes)}for(;(o=Ye.nextNode())!==null&&h.length<c;){if(o.nodeType===1){if(o.hasAttributes()){const m=[];for(const U of o.getAttributeNames())if(U.endsWith(qo)||U.startsWith(Te)){const p=b[a++];if(m.push(U),p!==void 0){const _=o.getAttribute(p.toLowerCase()+qo).split(Te),S=/([.?@])?(.*)/.exec(p);h.push({type:1,index:s,name:S[2],strings:_,ctor:S[1]==="."?Al:S[1]==="?"?Ml:S[1]==="@"?Ll:Ti})}else h.push({type:6,index:s})}for(const U of m)o.removeAttribute(U)}if(jn.test(o.tagName)){const m=o.textContent.split(Te),U=m.length-1;if(U>0){o.textContent=gt?gt.emptyScript:"";for(let p=0;p<U;p++)o.append(m[p],ai()),Ye.nextNode(),h.push({type:2,index:++s});o.append(m[U],ai())}}}else if(o.nodeType===8)if(o.data===On)h.push({type:2,index:s});else{let m=-1;for(;(m=o.data.indexOf(Te,m+1))!==-1;)h.push({type:7,index:s}),m+=Te.length-1}s++}}static createElement(e,t){const r=Ke.createElement("template");return r.innerHTML=e,r}};function ft(i,e,t=i,r){var o,s,a,c;if(e===J)return e;let h=r!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[r]:t._$Cl;const d=li(e)?void 0:e._$litDirective$;return h?.constructor!==d&&((s=h?._$AO)===null||s===void 0||s.call(h,!1),d===void 0?h=void 0:(h=new d(i),h._$AT(i,t,r)),r!==void 0?((a=(c=t)._$Co)!==null&&a!==void 0?a:c._$Co=[])[r]=h:t._$Cl=h),h!==void 0&&(e=ft(i,h._$AS(i,e.values),h,r)),e}let Pl=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:o}=this._$AD,s=((t=e?.creationScope)!==null&&t!==void 0?t:Ke).importNode(r,!0);Ye.currentNode=s;let a=Ye.nextNode(),c=0,h=0,d=o[0];for(;d!==void 0;){if(c===d.index){let b;d.type===2?b=new Oi(a,a.nextSibling,this,e):d.type===1?b=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(b=new Ol(a,this,e)),this._$AV.push(b),d=o[++h]}c!==d?.index&&(a=Ye.nextNode(),c++)}return Ye.currentNode=Ke,s}v(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},Oi=class $l{constructor(e,t,r,o){var s;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cp=(s=o?.isConnected)===null||s===void 0||s}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ft(this,e,t),li(e)?e===I||e==null||e===""?(this._$AH!==I&&this._$AR(),this._$AH=I):e!==this._$AH&&e!==J&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Cl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==I&&li(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ke.createTextNode(e)),this._$AH=e}g(e){var t;const{values:r,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Xo.createElement(Fn(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.v(r);else{const a=new Pl(s,this),c=a.u(this.options);a.v(r),this.$(c),this._$AH=a}}_$AC(e){let t=Rn.get(e.strings);return t===void 0&&Rn.set(e.strings,t=new Xo(e)),t}T(e){Tn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const s of e)o===t.length?t.push(r=new $l(this.k(ai()),this.k(ai()),this,this.options)):r=t[o],r._$AI(s),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,t);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},Ti=class{constructor(e,t,r,o,s){this.type=1,this._$AH=I,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,o){const s=this.strings;let a=!1;if(s===void 0)e=ft(this,e,t,0),a=!li(e)||e!==this._$AH&&e!==J,a&&(this._$AH=e);else{const c=e;let h,d;for(e=s[0],h=0;h<s.length-1;h++)d=ft(this,c[r+h],t,h),d===J&&(d=this._$AH[h]),a||(a=!li(d)||d!==this._$AH[h]),d===I?e=I:e!==I&&(e+=(d??"")+s[h+1]),this._$AH[h]=d}a&&!o&&this.j(e)}j(e){e===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Al=class extends Ti{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===I?void 0:e}};const zl=gt?gt.emptyScript:"";let Ml=class extends Ti{constructor(){super(...arguments),this.type=4}j(e){e&&e!==I?this.element.setAttribute(this.name,zl):this.element.removeAttribute(this.name)}},Ll=class extends Ti{constructor(e,t,r,o,s){super(e,t,r,o,s),this.type=5}_$AI(e,t=this){var r;if((e=(r=ft(this,e,t,0))!==null&&r!==void 0?r:I)===J)return;const o=this._$AH,s=e===I&&o!==I||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==I&&(o===I||s);s&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}},Ol=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ft(this,e)}};const Tl={I:Oi},Gn=Li.litHtmlPolyfillSupport;Gn?.(Xo,Oi),((Wo=Li.litHtmlVersions)!==null&&Wo!==void 0?Wo:Li.litHtmlVersions=[]).push("2.8.0");const Nl=(i,e,t)=>{var r,o;const s=(r=t?.renderBefore)!==null&&r!==void 0?r:e;let a=s._$litPart$;if(a===void 0){const c=(o=t?.renderBefore)!==null&&o!==void 0?o:null;s._$litPart$=a=new Oi(e.insertBefore(ai(),c),c,void 0,t??{})}return a._$AI(i),a};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */var Ko,Xo;let v=class extends gt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const r=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=r.firstChild),r}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=xl(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return J}};v.finalized=!0,v._$litElement$=!0,(Ko=globalThis.litElementHydrateSupport)===null||Ko===void 0||Ko.call(globalThis,{LitElement:v});const Hn=globalThis.litElementPolyfillSupport;Hn?.({LitElement:v}),((Xo=globalThis.litElementVersions)!==null&&Xo!==void 0?Xo:globalThis.litElementVersions=[]).push("3.3.3");/**
19
+ */var Yo,Zo;let f=class extends vt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const r=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=r.firstChild),r}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Nl(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return J}};f.finalized=!0,f._$litElement$=!0,(Yo=globalThis.litElementHydrateSupport)===null||Yo===void 0||Yo.call(globalThis,{LitElement:f});const Wn=globalThis.litElementPolyfillSupport;Wn?.({LitElement:f}),((Zo=globalThis.litElementVersions)!==null&&Zo!==void 0?Zo:globalThis.litElementVersions=[]).push("3.3.3");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const Cl=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},Sl=(i,e,t)=>{e.constructor.createProperty(t,i)};function l(i){return(e,t)=>t!==void 0?Sl(i,e,t):Cl(i,e)}/**
23
+ */const Bl=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},Dl=(i,e,t)=>{e.constructor.createProperty(t,i)};function l(i){return(e,t)=>t!==void 0?Dl(i,e,t):Bl(i,e)}/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
@@ -28,19 +28,19 @@
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const Yo=({finisher:i,descriptor:e})=>(t,r)=>{var o;if(r===void 0){const s=(o=t.originalKey)!==null&&o!==void 0?o:t.key,a=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(t.key)}:{...t,key:s};return i!=null&&(a.finisher=function(c){i(c,s)}),a}{const s=t.constructor;e!==void 0&&Object.defineProperty(t,r,e(r)),i?.(s,r)}};/**
31
+ */const Qo=({finisher:i,descriptor:e})=>(t,r)=>{var o;if(r===void 0){const s=(o=t.originalKey)!==null&&o!==void 0?o:t.key,a=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(t.key)}:{...t,key:s};return i!=null&&(a.finisher=function(c){i(c,s)}),a}{const s=t.constructor;e!==void 0&&Object.defineProperty(t,r,e(r)),i?.(s,r)}};/**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */function A(i,e){return Yo({descriptor:t=>({get(){var o,s;return(s=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(i))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0})})}/**
35
+ */function A(i,e){return Qo({descriptor:t=>({get(){var o,s;return(s=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(i))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0})})}/**
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */function Pl(i){return Yo({descriptor:e=>({get(){var t,r;return(r=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelectorAll(i))!==null&&r!==void 0?r:[]},enumerable:!0,configurable:!0})})}/**
39
+ */function Vl(i){return Qo({descriptor:e=>({get(){var t,r;return(r=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelectorAll(i))!==null&&r!==void 0?r:[]},enumerable:!0,configurable:!0})})}/**
40
40
  * @license
41
41
  * Copyright 2021 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */var Zo;const Al=((Zo=window.HTMLSlotElement)===null||Zo===void 0?void 0:Zo.prototype.assignedElements)!=null?(i,e)=>i.assignedElements(e):(i,e)=>i.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);function Ne(i){const{slot:e,selector:t}=i??{};return Yo({descriptor:r=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),a=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(s),c=a!=null?Al(a,i):[];return t?c.filter(h=>h.matches(t)):c},enumerable:!0,configurable:!0})})}var zl=`.uui-h1,
43
+ */var Jo;const jl=((Jo=window.HTMLSlotElement)===null||Jo===void 0?void 0:Jo.prototype.assignedElements)!=null?(i,e)=>i.assignedElements(e):(i,e)=>i.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);function Ne(i){const{slot:e,selector:t}=i??{};return Qo({descriptor:r=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),a=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(s),c=a!=null?jl(a,i):[];return t?c.filter(h=>h.matches(t)):c},enumerable:!0,configurable:!0})})}var Hl=`.uui-h1,
44
44
  .uui-h2,
45
45
  .uui-h3,
46
46
  .uui-h4,
@@ -60,7 +60,7 @@
60
60
  }
61
61
 
62
62
  .uui-text h1,
63
- .uui-h1 {
63
+ .uui-h1.uui-h1 {
64
64
  font-size: var(--uui-type-h1-size,60px);
65
65
  line-height: var(--uui-size-layout-4,66px);
66
66
  font-weight: 300;
@@ -80,7 +80,7 @@
80
80
  }
81
81
 
82
82
  .uui-text h2,
83
- .uui-h2 {
83
+ .uui-h2.uui-h2 {
84
84
  font-size: var(--uui-type-h2-size,42px);
85
85
  line-height: var(--uui-size-layout-3,42px);
86
86
  font-weight: 300;
@@ -100,7 +100,7 @@
100
100
  }
101
101
 
102
102
  .uui-text h3,
103
- .uui-h3 {
103
+ .uui-h3.uui-h3 {
104
104
  font-size: var(--uui-type-h3-size,30px);
105
105
  line-height: var(--uui-size-large);
106
106
  font-weight: 300;
@@ -116,7 +116,7 @@
116
116
  }
117
117
 
118
118
  .uui-text h4,
119
- .uui-h4 {
119
+ .uui-h4.uui-h4 {
120
120
  font-size: var(--uui-type-h4-size,21px);
121
121
  line-height: 21px;
122
122
  font-weight: 400;
@@ -132,7 +132,7 @@
132
132
  }
133
133
 
134
134
  .uui-text h5,
135
- .uui-h5 {
135
+ .uui-h5.uui-h5 {
136
136
  font-size: var(--uui-type-h5-size,15px);
137
137
  line-height: inherit;
138
138
  font-weight: 700;
@@ -231,27 +231,27 @@
231
231
  margin-top: var(--uui-size-layout-1,24px);
232
232
  margin-bottom: var(--uui-size-layout-1,24px);
233
233
  }
234
- `;const ci=Oe(zl),Ml=m`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,Ll=Oe("uui-blink 0.9s infinite both"),Ol=m`@keyframes pulse{0%{-webkit-transform:translate(-50%,-50%) scale(.2);transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{-webkit-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{-webkit-transform:translate(-50%,-50%) scale(2.2);transform:translate(-50%,-50%) scale(2.2);opacity:0}}`,Tl=Oe("pulse 0.8s ease-in-out infinite both"),Nl=m`@keyframes uui-horizontal-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(1px)}30%,50%,70%{transform:translateX(-2px)}40%,60%{transform:translateX(2px)}}`,Bl=Oe("uui-horizontal-shake 600ms ease backwards");let Qo=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},Ie=class extends Qo{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Ie.VALID="valid",Ie.INVALID="invalid";let Ze=class extends Qo{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};Ze.SELECTED="selected",Ze.DESELECTED="deselected";var Dl=Object.defineProperty,Vl=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Dl(e,t,o),o};const jl=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Vl([l({type:Boolean,reflect:!0})],e.prototype,"active"),e};var Hl=Object.defineProperty,Rn=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Hl(e,t,o),o};const Rl=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Rn([l({type:String})],t.prototype,"label"),Rn([w()],t.prototype,"_labelSlotHasContent"),t};var Fl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,Fn=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fl(e,t,o),o};const Wl=i=>{class e extends i{constructor(...r){super(...r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=o=>{const s=o.composedPath();if((this._selectable||this.deselectable&&this.selected)&&s.indexOf(this.selectableTarget)===0&&this.selectableTarget===this){if(o.code!=="Space"&&o.code!=="Enter")return;this._toggleSelect(),o.preventDefault()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const o=this._selectable;this._selectable=r,this.selectableTarget===this&&this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selectable",o)}_select(){if(!this.selectable)return;const r=new Ze(Ze.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new Ze(Ze.DESELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!1)}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return Fn([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Fn([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var ql=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,Xl=(i,e,t,r)=>{for(var o=Kl(e,t),s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&ql(e,t,o),o};const Yl=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return Xl([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly"),e};var Zl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,Gn=i=>{throw TypeError(i)},Qe=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ql(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zl(e,t,o),o},Jo=(i,e,t)=>e.has(i)||Gn("Cannot "+t),z=(i,e,t)=>(Jo(i,e,"read from private field"),t?t.call(i):e.get(i)),Je=(i,e,t)=>e.has(i)?Gn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),er=(i,e,t,r)=>(Jo(i,e,"write to private field"),e.set(i,t),t),Oi=(i,e,t)=>(Jo(i,e,"access private method"),t);const Jl=["customError","valueMissing","badInput","typeMismatch","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort"],eu=(i,e)=>{var t,r,o,s,a,c,h,d,f;class g extends i{constructor(...p){super(...p),Je(this,c),this.name="",Je(this,t,{}),this._pristine=!1,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",Je(this,r,e),Je(this,o,null),Je(this,s,[]),Je(this,a,[]),Je(this,f,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.pristine=!0,this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return z(this,r)}set value(p){const _=z(this,r);er(this,r,p),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(z(this,r)??null),this.requestUpdate("value",_)}set pristine(p){this._pristine!==p&&(this._pristine=p,p?this.setAttribute("pristine",""):this.removeAttribute("pristine"),Oi(this,c,d).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const p=z(this,a).find(_=>_.validity.valid===!1);p?"focusFirstInvalidElement"in p?p.focusFirstInvalidElement():p.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),Oi(this,c,h).call(this)}addValidator(p,_,S){const x={flagKey:p,getMessageMethod:_,checkMethod:S,weight:Jl.indexOf(p)};return z(this,s).push(x),z(this,s).sort((N,Q)=>N.weight>Q.weight?1:Q.weight>N.weight?-1:0),x}removeValidator(p){const _=z(this,s).indexOf(p);_!==-1&&z(this,s).splice(_,1)}addFormControlElement(p){z(this,a).push(p),p.addEventListener(Ie.INVALID,()=>{this._runValidators()}),p.addEventListener(Ie.VALID,()=>{this._runValidators()}),this._pristine===!1&&(p.checkValidity(),this._runValidators())}setCustomValidity(p){this._customValidityObject&&this.removeValidator(this._customValidityObject),p!=null&&p!==""&&(this._customValidityObject=this.addValidator("customError",()=>p,()=>!0)),this._runValidators()}_runValidators(){er(this,t,{});let p,_;z(this,s).some(x=>x.checkMethod()?(z(this,t)[x.flagKey]=!0,p=x.getMessageMethod(),!0):!1),p||z(this,a).some(x=>{let N;for(N in x.validity)if(N!=="valid"&&x.validity[N])return z(this,t)[N]=!0,p=x.validationMessage,_??(_=x),!0;return!1});const S=Object.values(z(this,t)).includes(!0);z(this,t).valid=!S,this._internals.setValidity(z(this,t),p,_??this.getFormElement()??void 0),Oi(this,c,d).call(this)}updated(p){super.updated(p),this._runValidators()}submit(){z(this,o)?.requestSubmit()}formAssociatedCallback(){Oi(this,c,h).call(this),er(this,o,this._internals.form),z(this,o)&&(z(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),z(this,o).addEventListener("submit",z(this,f)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const p in z(this,a))if(z(this,a)[p].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return z(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,h=function(){z(this,o)&&z(this,o).removeEventListener("submit",z(this,f))},d=function(){this._pristine!==!0&&(z(this,t).valid?this.dispatchEvent(new Ie(Ie.VALID)):this.dispatchEvent(new Ie(Ie.INVALID)))},f=new WeakMap,g.formAssociated=!0,Qe([l({type:String})],g.prototype,"name",2),Qe([l()],g.prototype,"value",1),Qe([l({type:Boolean,reflect:!0,attribute:"pristine"})],g.prototype,"pristine",1),Qe([l({type:Boolean,reflect:!0})],g.prototype,"required",2),Qe([l({type:String,attribute:"required-message"})],g.prototype,"requiredMessage",2),Qe([l({type:Boolean,reflect:!0})],g.prototype,"error",2),Qe([l({type:String,attribute:"error-message"})],g.prototype,"errorMessage",2),g};let tu=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const iu=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},ou=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,h=s.top+a.scrollY;let d;o instanceof TouchEvent?d=o.touches[0]:d=o;const f=d.pageX-c,g=d.pageY-h;e?.onMove&&e.onMove(f,g)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},ru=(i,e,t)=>Math.min(Math.max(i,e),t),nu=(i,e,t)=>t+e-i,su=i=>{const e=Math.round(i).toString(16);return e.length===1?`0${e}`:e},Wn=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function au(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}var lu=Object.defineProperty,qn=i=>{throw TypeError(i)},uu=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&lu(e,t,o),o},Kn=(i,e,t)=>e.has(i)||qn("Cannot "+t),Xn=(i,e,t)=>(Kn(i,e,"read from private field"),e.get(i)),Yn=(i,e,t)=>e.has(i)?qn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),cu=(i,e,t,r)=>(Kn(i,e,"write to private field"),e.set(i,t),t);const hu=i=>{var e,t;class r extends i{constructor(...s){super(...s),Yn(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=Wn(this,"id",this.popoverContainerElement);a&&(Xn(this,e)?a.hidePopover():a.showPopover())},Yn(this,t,a=>{requestAnimationFrame(()=>{cu(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",Xn(this,t))}}return e=new WeakMap,t=new WeakMap,uu([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement"),r};function du(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}const pu=["default","primary","secondary","outline","placeholder"],mu=["default","positive","warning","danger"],bu=["h1","h2","h3","h4","h5","h6"];function b(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}var gu=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIButtonGroupElement=class extends v{render(){return u`<slot></slot>`}},n.UUIButtonGroupElement.styles=[m`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted([look=outline]:not(:first-child)){--uui-button-merge-border-left:1}::slotted([look=placeholder]:not(:first-child)){--uui-button-merge-border-left:1}::slotted(:first-child){--uui-button-border-radius:var(--uui-border-radius,3px) 0 0 var(--uui-border-radius,3px)}::slotted(:last-child){--uui-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],n.UUIButtonGroupElement=gu([b("uui-button-group")],n.UUIButtonGroupElement);var vu=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIActionBarElement=class extends n.UUIButtonGroupElement{},n.UUIActionBarElement.styles=[...n.UUIButtonGroupElement.styles,m`::slotted(*){--uui-button-padding-left-factor:0.5;--uui-button-padding-right-factor:0.5}::slotted(uui-button:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:2}::slotted(uui-button:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:2}::slotted(uui-button:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:2;--uui-button-padding-right-factor:2}::slotted([look=outline]),::slotted([look=placeholder]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}::slotted(uui-button[look=outline]:first-child),::slotted(uui-button[look=placeholder]:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:1.5}::slotted(uui-button[look=outline]:last-child),::slotted(uui-button[look=placeholder]:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:1.5}::slotted(uui-button[look=outline]:first-child:last-child),::slotted(uui-button[look=placeholder]:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}`],n.UUIActionBarElement=vu([b("uui-action-bar")],n.UUIActionBarElement);var fu=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,Ti=(i,e,t,r)=>{for(var o=r>1?void 0:r?yu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fu(e,t,o),o};n.UUIAvatarGroupElement=class extends v{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(e){e.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((e,t)=>{e.style.display=t<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>${this._isLimitExceeded()?u`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}`}},n.UUIAvatarGroupElement.styles=[m`:host{display:inline-flex;align-items:center;padding-left:3px;padding-right:3px}::slotted(uui-avatar){margin-left:-.2em;margin-right:-.2em;border:.1em solid var(--uui-avatar-border-color)}#overflow-indication{margin-left:6px}`],Ti([Ne({selector:"uui-avatar, [uui-avatar]",flatten:!0})],n.UUIAvatarGroupElement.prototype,"_avatarNodes",2),Ti([w()],n.UUIAvatarGroupElement.prototype,"_avatarArray",2),Ti([l({type:Number,attribute:!0})],n.UUIAvatarGroupElement.prototype,"limit",2),n.UUIAvatarGroupElement=Ti([b("uui-avatar-group")],n.UUIAvatarGroupElement);var wu=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,yt=(i,e,t,r)=>{for(var o=r>1?void 0:r?_u(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wu(e,t,o),o};n.UUIAvatarElement=class extends v{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(e){const t=this._name;this._name=e,this.initials=this.createInitials(this._name),this.requestUpdate("title",t)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(e){let t="";if(!e)return t;const r=e.match(/(\w+)/g);return r?.length?(t=r[0].substring(0,1),r.length>1&&(t+=r[r.length-1].substring(0,1)),t.toUpperCase()):t}renderImage(){return u`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this.initials}" title="${this.name}">`}render(){return u`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this.initials}<slot></slot>`}},n.UUIAvatarElement.styles=[m`:host{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;overflow:hidden;border-radius:50%;font-weight:700;-webkit-font-smoothing:subpixel-antialiased;width:calc(2em + 4px);height:calc(2em + 4px);user-select:none;aspect-ratio:1;background-color:var(--uui-palette-spanish-pink,#f5c1bc);color:var(--uui-palette-space-cadet,#1b264f)}:host([overflow]){overflow:unset}img{object-fit:cover;height:100%;width:100%;overflow:hidden;border-radius:50%}`],yt([l({type:Boolean,attribute:!0,reflect:!0})],n.UUIAvatarElement.prototype,"overflow",2),yt([l({type:String,attribute:"img-src"})],n.UUIAvatarElement.prototype,"imgSrc",2),yt([l({type:String,attribute:"img-srcset"})],n.UUIAvatarElement.prototype,"imgSrcset",2),yt([l({type:String,reflect:!0})],n.UUIAvatarElement.prototype,"name",1),yt([w()],n.UUIAvatarElement.prototype,"initials",2),n.UUIAvatarElement=yt([b("uui-avatar")],n.UUIAvatarElement);var Uu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,Ni=(i,e,t,r)=>{for(var o=r>1?void 0:r?ku(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Uu(e,t,o),o};n.UUIBadgeElement=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return u`<slot></slot>`}},n.UUIBadgeElement.styles=[m`:host{position:var(--uui-badge-position,absolute);display:flex;justify-content:center;align-items:center;padding:var(--uui-size-1,3px) var(--uui-size-2,6px);inset:var(--uui-badge-inset,-8px -8px auto auto);text-align:center;font-size:var(--uui-badge-font-size,var(--uui-type-small-size,12px));font-weight:900;line-height:1;margin-right:0;min-width:var(--uui-size-8,24px);min-height:var(--uui-size-8,24px);box-sizing:border-box;border-radius:var(--uui-size-4,12px);border:1px solid transparent}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}::slotted(uui-icon){margin-left:-.2em;margin-right:-.2em}@keyframes --uui-badge-bounce{0%{transform:translateY(0)}20%{transform:translateY(-6px)}40%{transform:translateY(0)}55%{transform:translateY(-3px)}70%{transform:translateY(0)}100%{transform:translateY(0)}}:host([attention]){animation-duration:1.4s;animation-iteration-count:infinite;animation-name:--uui-badge-bounce;animation-timing-function:ease}@media (prefers-reduced-motion){:host([attention]){animation:none}}`],Ni([l({reflect:!0})],n.UUIBadgeElement.prototype,"color",2),Ni([l({reflect:!0})],n.UUIBadgeElement.prototype,"look",2),Ni([l({type:Boolean,reflect:!0})],n.UUIBadgeElement.prototype,"attention",2),n.UUIBadgeElement=Ni([b("uui-badge")],n.UUIBadgeElement);var $u=Object.defineProperty,Eu=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&$u(e,t,o),o};const hi=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Eu([l({type:Boolean,reflect:!0})],e.prototype,"active"),e};var Iu=Object.defineProperty,Zn=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Iu(e,t,o),o};const be=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Zn([l({type:String})],t.prototype,"label"),Zn([w()],t.prototype,"_labelSlotHasContent"),t};let xu=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},wt=class extends xu{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};wt.SELECTED="selected",wt.DESELECTED="deselected";var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,Qn=(i,e,t,r)=>{for(var o=r>1?void 0:r?Su(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Cu(e,t,o),o};const _t=i=>{class e extends i{constructor(...r){super(...r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=o=>{const s=o.composedPath();if((this._selectable||this.deselectable&&this.selected)&&s.indexOf(this.selectableTarget)===0&&this.selectableTarget===this){if(o.code!=="Space"&&o.code!=="Enter")return;this._toggleSelect(),o.preventDefault()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const o=this._selectable;this._selectable=r,this.selectableTarget===this&&this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selectable",o)}_select(){if(!this.selectable)return;const r=new wt(wt.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new wt(wt.DESELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!1)}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return Qn([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Qn([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var Pu=Object.defineProperty,Au=Object.getOwnPropertyDescriptor,zu=(i,e,t,r)=>{for(var o=Au(e,t),s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Pu(e,t,o),o};const Bi=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return zu([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly"),e};let Jn=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},Be=class extends Jn{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Be.VALID="valid",Be.INVALID="invalid";let es=class extends Jn{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};es.SELECTED="selected",es.DESELECTED="deselected";var Mu=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,ts=i=>{throw TypeError(i)},et=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Mu(e,t,o),o},tr=(i,e,t)=>e.has(i)||ts("Cannot "+t),M=(i,e,t)=>(tr(i,e,"read from private field"),t?t.call(i):e.get(i)),tt=(i,e,t)=>e.has(i)?ts("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ir=(i,e,t,r)=>(tr(i,e,"write to private field"),e.set(i,t),t),Di=(i,e,t)=>(tr(i,e,"access private method"),t);const Ou=["customError","valueMissing","badInput","typeMismatch","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort"],ge=(i,e)=>{var t,r,o,s,a,c,h,d,f;class g extends i{constructor(...p){super(...p),tt(this,c),this.name="",tt(this,t,{}),this._pristine=!1,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",tt(this,r,e),tt(this,o,null),tt(this,s,[]),tt(this,a,[]),tt(this,f,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.pristine=!0,this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return M(this,r)}set value(p){const _=M(this,r);ir(this,r,p),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(M(this,r)??null),this.requestUpdate("value",_)}set pristine(p){this._pristine!==p&&(this._pristine=p,p?this.setAttribute("pristine",""):this.removeAttribute("pristine"),Di(this,c,d).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const p=M(this,a).find(_=>_.validity.valid===!1);p?"focusFirstInvalidElement"in p?p.focusFirstInvalidElement():p.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),Di(this,c,h).call(this)}addValidator(p,_,S){const x={flagKey:p,getMessageMethod:_,checkMethod:S,weight:Ou.indexOf(p)};return M(this,s).push(x),M(this,s).sort((N,Q)=>N.weight>Q.weight?1:Q.weight>N.weight?-1:0),x}removeValidator(p){const _=M(this,s).indexOf(p);_!==-1&&M(this,s).splice(_,1)}addFormControlElement(p){M(this,a).push(p),p.addEventListener(Be.INVALID,()=>{this._runValidators()}),p.addEventListener(Be.VALID,()=>{this._runValidators()}),this._pristine===!1&&(p.checkValidity(),this._runValidators())}setCustomValidity(p){this._customValidityObject&&this.removeValidator(this._customValidityObject),p!=null&&p!==""&&(this._customValidityObject=this.addValidator("customError",()=>p,()=>!0)),this._runValidators()}_runValidators(){ir(this,t,{});let p,_;M(this,s).some(x=>x.checkMethod()?(M(this,t)[x.flagKey]=!0,p=x.getMessageMethod(),!0):!1),p||M(this,a).some(x=>{let N;for(N in x.validity)if(N!=="valid"&&x.validity[N])return M(this,t)[N]=!0,p=x.validationMessage,_??(_=x),!0;return!1});const S=Object.values(M(this,t)).includes(!0);M(this,t).valid=!S,this._internals.setValidity(M(this,t),p,_??this.getFormElement()??void 0),Di(this,c,d).call(this)}updated(p){super.updated(p),this._runValidators()}submit(){M(this,o)?.requestSubmit()}formAssociatedCallback(){Di(this,c,h).call(this),ir(this,o,this._internals.form),M(this,o)&&(M(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),M(this,o).addEventListener("submit",M(this,f)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const p in M(this,a))if(M(this,a)[p].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return M(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,h=function(){M(this,o)&&M(this,o).removeEventListener("submit",M(this,f))},d=function(){this._pristine!==!0&&(M(this,t).valid?this.dispatchEvent(new Be(Be.VALID)):this.dispatchEvent(new Be(Be.INVALID)))},f=new WeakMap,g.formAssociated=!0,et([l({type:String})],g.prototype,"name",2),et([l()],g.prototype,"value",1),et([l({type:Boolean,reflect:!0,attribute:"pristine"})],g.prototype,"pristine",1),et([l({type:Boolean,reflect:!0})],g.prototype,"required",2),et([l({type:String,attribute:"required-message"})],g.prototype,"requiredMessage",2),et([l({type:Boolean,reflect:!0})],g.prototype,"error",2),et([l({type:String,attribute:"error-message"})],g.prototype,"errorMessage",2),g},Tu=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};var Nu=Object.defineProperty,is=i=>{throw TypeError(i)},Bu=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Nu(e,t,o),o},os=(i,e,t)=>e.has(i)||is("Cannot "+t),rs=(i,e,t)=>(os(i,e,"read from private field"),e.get(i)),ns=(i,e,t)=>e.has(i)?is("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Du=(i,e,t,r)=>(os(i,e,"write to private field"),e.set(i,t),t);const Vu=i=>{var e,t;class r extends i{constructor(...s){super(...s),ns(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=Tu(this,"id",this.popoverContainerElement);a&&(rs(this,e)?a.hidePopover():a.showPopover())},ns(this,t,a=>{requestAnimationFrame(()=>{Du(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",rs(this,t))}}return e=new WeakMap,t=new WeakMap,Bu([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement"),r};let L=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},Ut=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Ut.VALID="valid",Ut.INVALID="invalid";let De=class extends L{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};De.SELECTED="selected",De.DESELECTED="deselected";let Vi=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Vi.CHANGE="change";var ju=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,ss=i=>{throw TypeError(i)},kt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ju(e,t,o),o},Ru=(i,e,t)=>e.has(i)||ss("Cannot "+t),Fu=(i,e,t)=>e.has(i)?ss("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Gu=(i,e,t)=>(Ru(i,e,"access private method"),t),or,as;let re=class extends ge(be("",v),""){constructor(e="checkbox"){super(),Fu(this,or),this._value="",this.labelPosition="right",this._checked=!1,this.indeterminate=!1,this.disabled=!1,this.readonly=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keydown",Gu(this,or,as))}get value(){return this._value}set value(e){const t=super.value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",t)}getFormElement(){return this._input}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){super.firstUpdated(e);const t=this.shadowRoot?.querySelector("label");let r=!1;this._input.addEventListener("blur",()=>{r===!1&&this.style.setProperty("--uui-show-focus-outline","1"),r=!1}),t.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),r=!0}),t.addEventListener("mouseup",()=>{r=!1})}async focus(){await this.updateComplete,this._input.focus()}async click(){await this.updateComplete,this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.indeterminate=this._input.indeterminate,this.dispatchEvent(new Vi(Vi.CHANGE))}render(){return u`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled||this.readonly}" .checked="${this.checked}" .indeterminate="${this.indeterminate}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}};or=new WeakSet,as=function(i){i.key=="Enter"&&this.submit()},re.styles=[m`:host{display:inline-block}label{position:relative;cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}:host([readonly]) label{cursor:default}input{position:absolute;height:0;width:0;opacity:0}:host([label-position=left]) label{flex-direction:row-reverse}:host([label-position=top]) label{gap:var(--uui-size-half-base-unit);flex-direction:column-reverse}:host([label-position=bottom]) label{gap:var(--uui-size-half-base-unit);flex-direction:column}:host([disabled]) label{cursor:not-allowed;opacity:.5}.label{display:block}`],kt([l({type:String,attribute:"label-position",reflect:!0})],re.prototype,"labelPosition",2),kt([l({type:Boolean})],re.prototype,"checked",1),kt([l({type:Boolean,reflect:!0})],re.prototype,"indeterminate",2),kt([l({type:Boolean,reflect:!0})],re.prototype,"disabled",2),kt([l({type:Boolean,reflect:!0})],re.prototype,"readonly",2),kt([A("#input")],re.prototype,"_input",2);/**
234
+ `;const ci=Oe(Hl),Rl=v`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,Fl=Oe("uui-blink 0.9s infinite both"),Gl=v`@keyframes pulse{0%{-webkit-transform:translate(-50%,-50%) scale(.2);transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{-webkit-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{-webkit-transform:translate(-50%,-50%) scale(2.2);transform:translate(-50%,-50%) scale(2.2);opacity:0}}`,Wl=Oe("pulse 0.8s ease-in-out infinite both"),ql=v`@keyframes uui-horizontal-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(1px)}30%,50%,70%{transform:translateX(-2px)}40%,60%{transform:translateX(2px)}}`,Kl=Oe("uui-horizontal-shake 600ms ease backwards");let er=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},Ie=class extends er{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Ie.VALID="valid",Ie.INVALID="invalid";let Ze=class extends er{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};Ze.SELECTED="selected",Ze.DESELECTED="deselected";var Xl=Object.defineProperty,Yl=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Xl(e,t,o),o};const Zl=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Yl([l({type:Boolean,reflect:!0})],e.prototype,"active"),e};var Ql=Object.defineProperty,qn=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Ql(e,t,o),o};const Jl=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return qn([l({type:String})],t.prototype,"label"),qn([w()],t.prototype,"_labelSlotHasContent"),t};var eu=Object.defineProperty,tu=Object.getOwnPropertyDescriptor,Kn=i=>{throw TypeError(i)},Xn=(i,e,t,r)=>{for(var o=r>1?void 0:r?tu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&eu(e,t,o),o},Yn=(i,e,t)=>e.has(i)||Kn("Cannot "+t),Zn=(i,e,t)=>(Yn(i,e,"read from private field"),t?t.call(i):e.get(i)),tr=(i,e,t)=>e.has(i)?Kn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),hi=(i,e,t)=>(Yn(i,e,"access private method"),t);const iu=i=>{var e,t,r,o,s,a;class c extends i{constructor(...d){super(...d),tr(this,r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,tr(this,e,b=>{const m=b.composedPath();if((this._selectable||this.deselectable&&this.selected)&&m.indexOf(this.selectableTarget)===0&&this.selectableTarget===this){if(b.code!=="Space"&&b.code!=="Enter")return;hi(this,r,o).call(this),b.preventDefault()}}),tr(this,t,b=>{const m=b.composedPath();(this._selectable||this.deselectable&&this.selected)&&m.indexOf(this.selectableTarget)===0&&hi(this,r,o).call(this)}),this.addEventListener("click",Zn(this,t)),this.addEventListener("keydown",Zn(this,e))}get selectable(){return this._selectable}set selectable(d){const b=this._selectable;this._selectable=d,this.selectableTarget===this&&this.setAttribute("tabindex",`${d?"0":"-1"}`),this.requestUpdate("selectable",b)}}return e=new WeakMap,t=new WeakMap,r=new WeakSet,o=function(){this.selectable&&(this.deselectable===!1?hi(this,r,s).call(this):this.selected?hi(this,r,a).call(this):hi(this,r,s).call(this))},s=function(){if(!this.selectable)return;const h=new Ze(Ze.SELECTED);this.dispatchEvent(h),!h.defaultPrevented&&(this.selected=!0)},a=function(){if(!this.deselectable)return;const h=new Ze(Ze.DESELECTED);this.dispatchEvent(h),!h.defaultPrevented&&(this.selected=!1)},Xn([l({type:Boolean,reflect:!0})],c.prototype,"selectable",1),Xn([l({type:Boolean,reflect:!0})],c.prototype,"selected",2),c};var ou=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,nu=(i,e,t,r)=>{for(var o=ru(e,t),s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&ou(e,t,o),o};const su=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return nu([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly"),e};var au=Object.defineProperty,lu=Object.getOwnPropertyDescriptor,Qn=i=>{throw TypeError(i)},Qe=(i,e,t,r)=>{for(var o=r>1?void 0:r?lu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&au(e,t,o),o},ir=(i,e,t)=>e.has(i)||Qn("Cannot "+t),z=(i,e,t)=>(ir(i,e,"read from private field"),t?t.call(i):e.get(i)),Je=(i,e,t)=>e.has(i)?Qn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),or=(i,e,t,r)=>(ir(i,e,"write to private field"),e.set(i,t),t),Ni=(i,e,t)=>(ir(i,e,"access private method"),t);const uu=["customError","valueMissing","badInput","typeMismatch","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort"],cu=(i,e)=>{var t,r,o,s,a,c,h,d,b;class m extends i{constructor(...p){super(...p),Je(this,c),this.name="",Je(this,t,{}),this._pristine=!1,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",Je(this,r,e),Je(this,o,null),Je(this,s,[]),Je(this,a,[]),Je(this,b,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.pristine=!0,this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return z(this,r)}set value(p){const _=z(this,r);or(this,r,p),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(z(this,r)??null),this.requestUpdate("value",_)}set pristine(p){this._pristine!==p&&(this._pristine=p,p?this.setAttribute("pristine",""):this.removeAttribute("pristine"),Ni(this,c,d).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const p=z(this,a).find(_=>_.validity.valid===!1);p?"focusFirstInvalidElement"in p?p.focusFirstInvalidElement():p.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),Ni(this,c,h).call(this)}addValidator(p,_,S){const x={flagKey:p,getMessageMethod:_,checkMethod:S,weight:uu.indexOf(p)};return z(this,s).push(x),z(this,s).sort((N,Q)=>N.weight>Q.weight?1:Q.weight>N.weight?-1:0),x}removeValidator(p){const _=z(this,s).indexOf(p);_!==-1&&z(this,s).splice(_,1)}addFormControlElement(p){z(this,a).push(p),p.addEventListener(Ie.INVALID,()=>{this._runValidators()}),p.addEventListener(Ie.VALID,()=>{this._runValidators()}),this._pristine===!1&&(p.checkValidity(),this._runValidators())}setCustomValidity(p){this._customValidityObject&&this.removeValidator(this._customValidityObject),p!=null&&p!==""&&(this._customValidityObject=this.addValidator("customError",()=>p,()=>!0)),this._runValidators()}_runValidators(){or(this,t,{});let p,_;z(this,s).some(x=>x.checkMethod()?(z(this,t)[x.flagKey]=!0,p=x.getMessageMethod(),!0):!1),p||z(this,a).some(x=>{let N;for(N in x.validity)if(N!=="valid"&&x.validity[N])return z(this,t)[N]=!0,p=x.validationMessage,_??(_=x),!0;return!1});const S=Object.values(z(this,t)).includes(!0);z(this,t).valid=!S,this._internals.setValidity(z(this,t),p,_??this.getFormElement()??void 0),Ni(this,c,d).call(this)}updated(p){super.updated(p),this._runValidators()}submit(){z(this,o)?.requestSubmit()}formAssociatedCallback(){Ni(this,c,h).call(this),or(this,o,this._internals.form),z(this,o)&&(z(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),z(this,o).addEventListener("submit",z(this,b)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const p in z(this,a))if(z(this,a)[p].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return z(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,h=function(){z(this,o)&&z(this,o).removeEventListener("submit",z(this,b))},d=function(){this._pristine!==!0&&(z(this,t).valid?this.dispatchEvent(new Ie(Ie.VALID)):this.dispatchEvent(new Ie(Ie.INVALID)))},b=new WeakMap,m.formAssociated=!0,Qe([l({type:String})],m.prototype,"name",2),Qe([l()],m.prototype,"value",1),Qe([l({type:Boolean,reflect:!0,attribute:"pristine"})],m.prototype,"pristine",1),Qe([l({type:Boolean,reflect:!0})],m.prototype,"required",2),Qe([l({type:String,attribute:"required-message"})],m.prototype,"requiredMessage",2),Qe([l({type:Boolean,reflect:!0})],m.prototype,"error",2),Qe([l({type:String,attribute:"error-message"})],m.prototype,"errorMessage",2),m};class hu{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}}const du=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},pu=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,h=s.top+a.scrollY;let d;o instanceof TouchEvent?d=o.touches[0]:d=o;const b=d.pageX-c,m=d.pageY-h;e?.onMove&&e.onMove(b,m)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},mu=(i,e,t)=>Math.min(Math.max(i,e),t),bu=(i,e,t)=>t+e-i,vu=i=>{const e=Math.round(i).toString(16);return e.length===1?`0${e}`:e},Jn=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function gu(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}var fu=Object.defineProperty,es=i=>{throw TypeError(i)},yu=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&fu(e,t,o),o},ts=(i,e,t)=>e.has(i)||es("Cannot "+t),is=(i,e,t)=>(ts(i,e,"read from private field"),e.get(i)),os=(i,e,t)=>e.has(i)?es("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),wu=(i,e,t,r)=>(ts(i,e,"write to private field"),e.set(i,t),t);const _u=i=>{var e,t;class r extends i{constructor(...s){super(...s),os(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=Jn(this,"id",this.popoverContainerElement);a&&(is(this,e)?a.hidePopover():a.showPopover())},os(this,t,a=>{requestAnimationFrame(()=>{wu(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",is(this,t))}}return e=new WeakMap,t=new WeakMap,yu([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement"),r};function Uu(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}const ku=["default","primary","secondary","outline","placeholder"],$u=["default","positive","warning","danger"],Eu=["h1","h2","h3","h4","h5","h6"];function g(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}var Iu=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIButtonGroupElement=class extends f{render(){return u`<slot></slot>`}},n.UUIButtonGroupElement.styles=[v`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted([look=outline]:not(:first-child)){--uui-button-merge-border-left:1}::slotted([look=placeholder]:not(:first-child)){--uui-button-merge-border-left:1}::slotted(:first-child){--uui-button-border-radius:var(--uui-border-radius,3px) 0 0 var(--uui-border-radius,3px)}::slotted(:last-child){--uui-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],n.UUIButtonGroupElement=Iu([g("uui-button-group")],n.UUIButtonGroupElement);var xu=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIActionBarElement=class extends n.UUIButtonGroupElement{},n.UUIActionBarElement.styles=[...n.UUIButtonGroupElement.styles,v`::slotted(*){--uui-button-padding-left-factor:0.5;--uui-button-padding-right-factor:0.5}::slotted(uui-button:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:2}::slotted(uui-button:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:2}::slotted(uui-button:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:2;--uui-button-padding-right-factor:2}::slotted([look=outline]),::slotted([look=placeholder]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}::slotted(uui-button[look=outline]:first-child),::slotted(uui-button[look=placeholder]:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:1.5}::slotted(uui-button[look=outline]:last-child),::slotted(uui-button[look=placeholder]:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:1.5}::slotted(uui-button[look=outline]:first-child:last-child),::slotted(uui-button[look=placeholder]:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}`],n.UUIActionBarElement=xu([g("uui-action-bar")],n.UUIActionBarElement);var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,Bi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Su(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Cu(e,t,o),o};n.UUIAvatarGroupElement=class extends f{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(e){e.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((e,t)=>{e.style.display=t<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>${this._isLimitExceeded()?u`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}`}},n.UUIAvatarGroupElement.styles=[v`:host{display:inline-flex;align-items:center;padding-left:3px;padding-right:3px}::slotted(uui-avatar){margin-left:-.2em;margin-right:-.2em;border:.1em solid var(--uui-avatar-border-color)}#overflow-indication{margin-left:6px}`],Bi([Ne({selector:"uui-avatar, [uui-avatar]",flatten:!0})],n.UUIAvatarGroupElement.prototype,"_avatarNodes",2),Bi([w()],n.UUIAvatarGroupElement.prototype,"_avatarArray",2),Bi([l({type:Number,attribute:!0})],n.UUIAvatarGroupElement.prototype,"limit",2),n.UUIAvatarGroupElement=Bi([g("uui-avatar-group")],n.UUIAvatarGroupElement);var Pu=Object.defineProperty,Au=Object.getOwnPropertyDescriptor,yt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Au(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Pu(e,t,o),o};n.UUIAvatarElement=class extends f{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(e){const t=this._name;this._name=e,this.initials=this.createInitials(this._name),this.requestUpdate("title",t)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(e){let t="";if(!e)return t;const r=e.match(/(\w+)/g);return r?.length?(t=r[0].substring(0,1),r.length>1&&(t+=r[r.length-1].substring(0,1)),t.toUpperCase()):t}renderImage(){return u`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this.initials}" title="${this.name}">`}render(){return u`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this.initials}<slot></slot>`}},n.UUIAvatarElement.styles=[v`:host{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;overflow:hidden;border-radius:50%;font-weight:700;-webkit-font-smoothing:subpixel-antialiased;width:calc(2em + 4px);height:calc(2em + 4px);user-select:none;aspect-ratio:1;background-color:var(--uui-palette-spanish-pink,#f5c1bc);color:var(--uui-palette-space-cadet,#1b264f)}:host([overflow]){overflow:unset}img{object-fit:cover;height:100%;width:100%;overflow:hidden;border-radius:50%}`],yt([l({type:Boolean,attribute:!0,reflect:!0})],n.UUIAvatarElement.prototype,"overflow",2),yt([l({type:String,attribute:"img-src"})],n.UUIAvatarElement.prototype,"imgSrc",2),yt([l({type:String,attribute:"img-srcset"})],n.UUIAvatarElement.prototype,"imgSrcset",2),yt([l({type:String,reflect:!0})],n.UUIAvatarElement.prototype,"name",1),yt([w()],n.UUIAvatarElement.prototype,"initials",2),n.UUIAvatarElement=yt([g("uui-avatar")],n.UUIAvatarElement);var zu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,Di=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zu(e,t,o),o};n.UUIBadgeElement=class extends f{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return u`<slot></slot>`}},n.UUIBadgeElement.styles=[v`:host{position:var(--uui-badge-position,absolute);display:flex;justify-content:center;align-items:center;padding:var(--uui-size-1,3px) var(--uui-size-2,6px);inset:var(--uui-badge-inset,-8px -8px auto auto);text-align:center;font-size:var(--uui-badge-font-size,var(--uui-type-small-size,12px));font-weight:900;line-height:1;margin-right:0;min-width:var(--uui-size-8,24px);min-height:var(--uui-size-8,24px);box-sizing:border-box;border-radius:var(--uui-size-4,12px);border:1px solid transparent}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}::slotted(uui-icon){margin-left:-.2em;margin-right:-.2em}@keyframes --uui-badge-bounce{0%{transform:translateY(0)}20%{transform:translateY(-6px)}40%{transform:translateY(0)}55%{transform:translateY(-3px)}70%{transform:translateY(0)}100%{transform:translateY(0)}}:host([attention]){animation-duration:1.4s;animation-iteration-count:infinite;animation-name:--uui-badge-bounce;animation-timing-function:ease}@media (prefers-reduced-motion){:host([attention]){animation:none}}`],Di([l({reflect:!0})],n.UUIBadgeElement.prototype,"color",2),Di([l({reflect:!0})],n.UUIBadgeElement.prototype,"look",2),Di([l({type:Boolean,reflect:!0})],n.UUIBadgeElement.prototype,"attention",2),n.UUIBadgeElement=Di([g("uui-badge")],n.UUIBadgeElement);var Lu=Object.defineProperty,Ou=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Lu(e,t,o),o};const di=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Ou([l({type:Boolean,reflect:!0})],e.prototype,"active"),e};var Tu=Object.defineProperty,rs=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Tu(e,t,o),o};const be=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return rs([l({type:String})],t.prototype,"label"),rs([w()],t.prototype,"_labelSlotHasContent"),t};let Nu=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},wt=class extends Nu{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};wt.SELECTED="selected",wt.DESELECTED="deselected";var Bu=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,ns=i=>{throw TypeError(i)},ss=(i,e,t,r)=>{for(var o=r>1?void 0:r?Du(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Bu(e,t,o),o},as=(i,e,t)=>e.has(i)||ns("Cannot "+t),ls=(i,e,t)=>(as(i,e,"read from private field"),t?t.call(i):e.get(i)),rr=(i,e,t)=>e.has(i)?ns("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),pi=(i,e,t)=>(as(i,e,"access private method"),t);const _t=i=>{var e,t,r,o,s,a;class c extends i{constructor(...d){super(...d),rr(this,r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,rr(this,e,b=>{const m=b.composedPath();if((this._selectable||this.deselectable&&this.selected)&&m.indexOf(this.selectableTarget)===0&&this.selectableTarget===this){if(b.code!=="Space"&&b.code!=="Enter")return;pi(this,r,o).call(this),b.preventDefault()}}),rr(this,t,b=>{const m=b.composedPath();(this._selectable||this.deselectable&&this.selected)&&m.indexOf(this.selectableTarget)===0&&pi(this,r,o).call(this)}),this.addEventListener("click",ls(this,t)),this.addEventListener("keydown",ls(this,e))}get selectable(){return this._selectable}set selectable(d){const b=this._selectable;this._selectable=d,this.selectableTarget===this&&this.setAttribute("tabindex",`${d?"0":"-1"}`),this.requestUpdate("selectable",b)}}return e=new WeakMap,t=new WeakMap,r=new WeakSet,o=function(){this.selectable&&(this.deselectable===!1?pi(this,r,s).call(this):this.selected?pi(this,r,a).call(this):pi(this,r,s).call(this))},s=function(){if(!this.selectable)return;const h=new wt(wt.SELECTED);this.dispatchEvent(h),!h.defaultPrevented&&(this.selected=!0)},a=function(){if(!this.deselectable)return;const h=new wt(wt.DESELECTED);this.dispatchEvent(h),!h.defaultPrevented&&(this.selected=!1)},ss([l({type:Boolean,reflect:!0})],c.prototype,"selectable",1),ss([l({type:Boolean,reflect:!0})],c.prototype,"selected",2),c};var Vu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,Hu=(i,e,t,r)=>{for(var o=ju(e,t),s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Vu(e,t,o),o};const Vi=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return Hu([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly"),e};let us=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},Be=class extends us{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Be.VALID="valid",Be.INVALID="invalid";let cs=class extends us{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};cs.SELECTED="selected",cs.DESELECTED="deselected";var Ru=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,hs=i=>{throw TypeError(i)},et=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ru(e,t,o),o},nr=(i,e,t)=>e.has(i)||hs("Cannot "+t),M=(i,e,t)=>(nr(i,e,"read from private field"),t?t.call(i):e.get(i)),tt=(i,e,t)=>e.has(i)?hs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),sr=(i,e,t,r)=>(nr(i,e,"write to private field"),e.set(i,t),t),ji=(i,e,t)=>(nr(i,e,"access private method"),t);const Gu=["customError","valueMissing","badInput","typeMismatch","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort"],ve=(i,e)=>{var t,r,o,s,a,c,h,d,b;class m extends i{constructor(...p){super(...p),tt(this,c),this.name="",tt(this,t,{}),this._pristine=!1,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",tt(this,r,e),tt(this,o,null),tt(this,s,[]),tt(this,a,[]),tt(this,b,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.pristine=!0,this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return M(this,r)}set value(p){const _=M(this,r);sr(this,r,p),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(M(this,r)??null),this.requestUpdate("value",_)}set pristine(p){this._pristine!==p&&(this._pristine=p,p?this.setAttribute("pristine",""):this.removeAttribute("pristine"),ji(this,c,d).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const p=M(this,a).find(_=>_.validity.valid===!1);p?"focusFirstInvalidElement"in p?p.focusFirstInvalidElement():p.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),ji(this,c,h).call(this)}addValidator(p,_,S){const x={flagKey:p,getMessageMethod:_,checkMethod:S,weight:Gu.indexOf(p)};return M(this,s).push(x),M(this,s).sort((N,Q)=>N.weight>Q.weight?1:Q.weight>N.weight?-1:0),x}removeValidator(p){const _=M(this,s).indexOf(p);_!==-1&&M(this,s).splice(_,1)}addFormControlElement(p){M(this,a).push(p),p.addEventListener(Be.INVALID,()=>{this._runValidators()}),p.addEventListener(Be.VALID,()=>{this._runValidators()}),this._pristine===!1&&(p.checkValidity(),this._runValidators())}setCustomValidity(p){this._customValidityObject&&this.removeValidator(this._customValidityObject),p!=null&&p!==""&&(this._customValidityObject=this.addValidator("customError",()=>p,()=>!0)),this._runValidators()}_runValidators(){sr(this,t,{});let p,_;M(this,s).some(x=>x.checkMethod()?(M(this,t)[x.flagKey]=!0,p=x.getMessageMethod(),!0):!1),p||M(this,a).some(x=>{let N;for(N in x.validity)if(N!=="valid"&&x.validity[N])return M(this,t)[N]=!0,p=x.validationMessage,_??(_=x),!0;return!1});const S=Object.values(M(this,t)).includes(!0);M(this,t).valid=!S,this._internals.setValidity(M(this,t),p,_??this.getFormElement()??void 0),ji(this,c,d).call(this)}updated(p){super.updated(p),this._runValidators()}submit(){M(this,o)?.requestSubmit()}formAssociatedCallback(){ji(this,c,h).call(this),sr(this,o,this._internals.form),M(this,o)&&(M(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),M(this,o).addEventListener("submit",M(this,b)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const p in M(this,a))if(M(this,a)[p].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return M(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,h=function(){M(this,o)&&M(this,o).removeEventListener("submit",M(this,b))},d=function(){this._pristine!==!0&&(M(this,t).valid?this.dispatchEvent(new Be(Be.VALID)):this.dispatchEvent(new Be(Be.INVALID)))},b=new WeakMap,m.formAssociated=!0,et([l({type:String})],m.prototype,"name",2),et([l()],m.prototype,"value",1),et([l({type:Boolean,reflect:!0,attribute:"pristine"})],m.prototype,"pristine",1),et([l({type:Boolean,reflect:!0})],m.prototype,"required",2),et([l({type:String,attribute:"required-message"})],m.prototype,"requiredMessage",2),et([l({type:Boolean,reflect:!0})],m.prototype,"error",2),et([l({type:String,attribute:"error-message"})],m.prototype,"errorMessage",2),m},Wu=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};var qu=Object.defineProperty,ds=i=>{throw TypeError(i)},Ku=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&qu(e,t,o),o},ps=(i,e,t)=>e.has(i)||ds("Cannot "+t),ms=(i,e,t)=>(ps(i,e,"read from private field"),e.get(i)),bs=(i,e,t)=>e.has(i)?ds("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Xu=(i,e,t,r)=>(ps(i,e,"write to private field"),e.set(i,t),t);const Yu=i=>{var e,t;class r extends i{constructor(...s){super(...s),bs(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=Wu(this,"id",this.popoverContainerElement);a&&(ms(this,e)?a.hidePopover():a.showPopover())},bs(this,t,a=>{requestAnimationFrame(()=>{Xu(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",ms(this,t))}}return e=new WeakMap,t=new WeakMap,Ku([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement"),r};let L=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},Ut=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Ut.VALID="valid",Ut.INVALID="invalid";let De=class extends L{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};De.SELECTED="selected",De.DESELECTED="deselected";let Hi=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Hi.CHANGE="change";var Zu=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,vs=i=>{throw TypeError(i)},kt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zu(e,t,o),o},Ju=(i,e,t)=>e.has(i)||vs("Cannot "+t),ec=(i,e,t)=>e.has(i)?vs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),tc=(i,e,t)=>(Ju(i,e,"access private method"),t),ar,gs;let re=class extends ve(be("",f),""){constructor(e="checkbox"){super(),ec(this,ar),this._value="",this.labelPosition="right",this._checked=!1,this.indeterminate=!1,this.disabled=!1,this.readonly=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keydown",tc(this,ar,gs))}get value(){return this._value}set value(e){const t=super.value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",t)}getFormElement(){return this._input}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){super.firstUpdated(e);const t=this.shadowRoot?.querySelector("label");let r=!1;this._input.addEventListener("blur",()=>{r===!1&&this.style.setProperty("--uui-show-focus-outline","1"),r=!1}),t.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),r=!0}),t.addEventListener("mouseup",()=>{r=!1})}async focus(){await this.updateComplete,this._input.focus()}async click(){await this.updateComplete,this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.indeterminate=this._input.indeterminate,this.dispatchEvent(new Hi(Hi.CHANGE))}render(){return u`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled||this.readonly}" .checked="${this.checked}" .indeterminate="${this.indeterminate}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}};ar=new WeakSet,gs=function(i){i.key=="Enter"&&this.submit()},re.styles=[v`:host{display:inline-block}label{position:relative;cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}:host([readonly]) label{cursor:default}input{position:absolute;height:0;width:0;opacity:0}:host([label-position=left]) label{flex-direction:row-reverse}:host([label-position=top]) label{gap:var(--uui-size-half-base-unit);flex-direction:column-reverse}:host([label-position=bottom]) label{gap:var(--uui-size-half-base-unit);flex-direction:column}:host([disabled]) label{cursor:not-allowed;opacity:.5}.label{display:block}`],kt([l({type:String,attribute:"label-position",reflect:!0})],re.prototype,"labelPosition",2),kt([l({type:Boolean})],re.prototype,"checked",1),kt([l({type:Boolean,reflect:!0})],re.prototype,"indeterminate",2),kt([l({type:Boolean,reflect:!0})],re.prototype,"disabled",2),kt([l({type:Boolean,reflect:!0})],re.prototype,"readonly",2),kt([A("#input")],re.prototype,"_input",2);/**
235
235
  * @license
236
236
  * Copyright 2020 Google LLC
237
237
  * SPDX-License-Identifier: BSD-3-Clause
238
- */const ls=Symbol.for(""),Wu=i=>{if(i?.r===ls)return i?._$litStatic$},us=i=>({_$litStatic$:i,r:ls}),cs=new Map,qu=i=>(e,...t)=>{const r=t.length;let o,s;const a=[],c=[];let h,d=0,f=!1;for(;d<r;){for(h=e[d];d<r&&(s=t[d],(o=Wu(s))!==void 0);)h+=o+e[++d],f=!0;d!==r&&c.push(s),a.push(h),d++}if(d===r&&a.push(e[r]),f){const g=a.join("$$lit$$");(e=cs.get(g))===void 0&&(a.raw=a,cs.set(g,e=a)),t=c}return i(e,...t)},hs=qu(u);var Ku=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,it=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ku(e,t,o),o};function rr(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}n.UUIBoxElement=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineVariantTag="h5",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=rr(e.target)},this._headerSlotHasContent=!1,this._headerSlotChanged=e=>{this._headerSlotHasContent=rr(e.target)},this._headerActionsSlotHasContent=!1,this._headerActionsSlotChanged=e=>{this._headerActionsSlotHasContent=rr(e.target)}}set headlineVariant(e){this._headlineVariantTag=e}get headlineVariant(){return this._headlineVariantTag}renderHeader(){return hs`<div
238
+ */const fs=Symbol.for(""),ic=i=>{if(i?.r===fs)return i?._$litStatic$},ys=i=>({_$litStatic$:i,r:fs}),ws=new Map,oc=i=>(e,...t)=>{const r=t.length;let o,s;const a=[],c=[];let h,d=0,b=!1;for(;d<r;){for(h=e[d];d<r&&(s=t[d],(o=ic(s))!==void 0);)h+=o+e[++d],b=!0;d!==r&&c.push(s),a.push(h),d++}if(d===r&&a.push(e[r]),b){const m=a.join("$$lit$$");(e=ws.get(m))===void 0&&(a.raw=a,ws.set(m,e=a)),t=c}return i(e,...t)},_s=oc(u);var rc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,it=(i,e,t,r)=>{for(var o=r>1?void 0:r?nc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rc(e,t,o),o};function lr(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}n.UUIBoxElement=class extends f{constructor(){super(...arguments),this.headline=null,this._headlineVariantTag="h5",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=lr(e.target)},this._headerSlotHasContent=!1,this._headerSlotChanged=e=>{this._headerSlotHasContent=lr(e.target)},this._headerActionsSlotHasContent=!1,this._headerActionsSlotChanged=e=>{this._headerActionsSlotHasContent=lr(e.target)}}set headlineVariant(e){this._headlineVariantTag=e}get headlineVariant(){return this._headlineVariantTag}renderHeader(){return _s`<div
239
239
  id="header"
240
240
  class="uui-text"
241
241
  style=${this._headerSlotHasContent||this._headlineSlotHasContent||this._headerActionsSlotHasContent||this.headline!==null?"":"display: none"}>
242
- <${us(this._headlineVariantTag)}
242
+ <${ys(this._headlineVariantTag)}
243
243
  id="headline"
244
244
  class="uui-h5"
245
245
  style=${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}>
246
246
  ${this.headline}
247
247
  <slot name="headline" @slotchange=${this._headlineSlotChanged}></slot>
248
- </${us(this._headlineVariantTag)}>
248
+ </${ys(this._headlineVariantTag)}>
249
249
  <slot name="header" @slotchange=${this._headerSlotChanged}></slot>
250
250
  <slot name="header-actions" @slotchange=${this._headerActionsSlotChanged}></slot>
251
- </div>`}render(){return hs`
251
+ </div>`}render(){return _s`
252
252
  ${this.renderHeader()}
253
253
  <slot></slot>
254
- `}},n.UUIBoxElement.styles=[ci,m`
254
+ `}},n.UUIBoxElement.styles=[ci,v`
255
255
  :host {
256
256
  display: block;
257
257
  border: var(--uui-box-border-width, 0) solid
@@ -280,7 +280,7 @@
280
280
  display: block;
281
281
  margin-left: auto;
282
282
  }
283
- `],it([l({type:String})],n.UUIBoxElement.prototype,"headline",2),it([l({attribute:"headline-variant"})],n.UUIBoxElement.prototype,"headlineVariant",1),it([w()],n.UUIBoxElement.prototype,"_headlineVariantTag",2),it([w()],n.UUIBoxElement.prototype,"_headlineSlotHasContent",2),it([w()],n.UUIBoxElement.prototype,"_headerSlotHasContent",2),it([w()],n.UUIBoxElement.prototype,"_headerActionsSlotHasContent",2),n.UUIBoxElement=it([b("uui-box")],n.UUIBoxElement);var Yu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,nr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yu(e,t,o),o};n.UUIBreadcrumbItemElement=class extends v{constructor(){super(...arguments),this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){const e=this.href?u`<a id="link" href="${this.href}"><slot></slot></a>`:u`<span id="link"><slot></slot></span>`;return u`${e}<span part="separator"></span>`}renderCurrent(){return u`<span id="last-item"><slot></slot></span>`}render(){return u`${this.lastItem?this.renderCurrent():this.renderLinkAndSeparator()}`}},n.UUIBreadcrumbItemElement.styles=[m`:host{font-size:var(--uui-type-small-size,12px);color:currentColor}a,a:visited{color:currentColor}a:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}a:focus{color:var(--uui-color-focus,#3879ff)}[part=separator]::after{content:'/';speak:never;position:relative;top:1px;margin:-3px 1px 0;color:var(--uui-color-border,#d8d7d9)}#last-item,#link{padding:0 4px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`],nr([l()],n.UUIBreadcrumbItemElement.prototype,"href",2),nr([l({type:Boolean,attribute:"last-item"})],n.UUIBreadcrumbItemElement.prototype,"lastItem",2),n.UUIBreadcrumbItemElement=nr([b("uui-breadcrumb-item")],n.UUIBreadcrumbItemElement);var Qu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,ds=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ju(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Qu(e,t,o),o};n.UUIBreadcrumbsElement=class extends v{elementIsBreadcrumbItem(e){return e instanceof n.UUIBreadcrumbItemElement}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){if(this.slotNodes.length>0){const e=this.slotNodes[this.slotNodes.length-1];e.setAttribute("aria-current","page"),this.elementIsBreadcrumbItem(e)&&(e.lastItem=!0)}}render(){return u`<ol id="breadcrumbs-list"><slot @slotchange="${this.handleSlotChange}"></slot></ol>`}},n.UUIBreadcrumbsElement.styles=[m`:host{display:flex}#breadcrumbs-list{display:flex;list-style-type:decimal;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}`],ds([Ne({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],n.UUIBreadcrumbsElement.prototype,"slotNodes",2),n.UUIBreadcrumbsElement=ds([b("uui-breadcrumbs")],n.UUIBreadcrumbsElement);const ec=m`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,tc=Oe("uui-blink 0.9s infinite both"),ic=m`@keyframes pulse{0%{-webkit-transform:translate(-50%,-50%) scale(.2);transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{-webkit-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{-webkit-transform:translate(-50%,-50%) scale(2.2);transform:translate(-50%,-50%) scale(2.2);opacity:0}}`;Oe("pulse 0.8s ease-in-out infinite both");const ji=m`@keyframes uui-horizontal-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(1px)}30%,50%,70%{transform:translateX(-2px)}40%,60%{transform:translateX(2px)}}`,Hi=Oe("uui-horizontal-shake 600ms ease backwards");/**
283
+ `],it([l({type:String})],n.UUIBoxElement.prototype,"headline",2),it([l({attribute:"headline-variant"})],n.UUIBoxElement.prototype,"headlineVariant",1),it([w()],n.UUIBoxElement.prototype,"_headlineVariantTag",2),it([w()],n.UUIBoxElement.prototype,"_headlineSlotHasContent",2),it([w()],n.UUIBoxElement.prototype,"_headerSlotHasContent",2),it([w()],n.UUIBoxElement.prototype,"_headerActionsSlotHasContent",2),n.UUIBoxElement=it([g("uui-box")],n.UUIBoxElement);var sc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,ur=(i,e,t,r)=>{for(var o=r>1?void 0:r?ac(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sc(e,t,o),o};n.UUIBreadcrumbItemElement=class extends f{constructor(){super(...arguments),this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){const e=this.href?u`<a id="link" href="${this.href}"><slot></slot></a>`:u`<span id="link"><slot></slot></span>`;return u`${e}<span part="separator"></span>`}renderCurrent(){return u`<span id="last-item"><slot></slot></span>`}render(){return u`${this.lastItem?this.renderCurrent():this.renderLinkAndSeparator()}`}},n.UUIBreadcrumbItemElement.styles=[v`:host{font-size:var(--uui-type-small-size,12px);color:currentColor}a,a:visited{color:currentColor}a:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}a:focus{color:var(--uui-color-focus,#3879ff)}[part=separator]::after{content:'/';speak:never;position:relative;top:1px;margin:-3px 1px 0;color:var(--uui-color-border,#d8d7d9)}#last-item,#link{padding:0 4px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`],ur([l()],n.UUIBreadcrumbItemElement.prototype,"href",2),ur([l({type:Boolean,attribute:"last-item"})],n.UUIBreadcrumbItemElement.prototype,"lastItem",2),n.UUIBreadcrumbItemElement=ur([g("uui-breadcrumb-item")],n.UUIBreadcrumbItemElement);var lc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,Us=(i,e,t,r)=>{for(var o=r>1?void 0:r?uc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lc(e,t,o),o};n.UUIBreadcrumbsElement=class extends f{elementIsBreadcrumbItem(e){return e instanceof n.UUIBreadcrumbItemElement}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){if(this.slotNodes.length>0){const e=this.slotNodes[this.slotNodes.length-1];e.setAttribute("aria-current","page"),this.elementIsBreadcrumbItem(e)&&(e.lastItem=!0)}}render(){return u`<ol id="breadcrumbs-list"><slot @slotchange="${this.handleSlotChange}"></slot></ol>`}},n.UUIBreadcrumbsElement.styles=[v`:host{display:flex}#breadcrumbs-list{display:flex;list-style-type:decimal;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}`],Us([Ne({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],n.UUIBreadcrumbsElement.prototype,"slotNodes",2),n.UUIBreadcrumbsElement=Us([g("uui-breadcrumbs")],n.UUIBreadcrumbsElement);const cc=v`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,hc=Oe("uui-blink 0.9s infinite both"),dc=v`@keyframes pulse{0%{-webkit-transform:translate(-50%,-50%) scale(.2);transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{-webkit-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{-webkit-transform:translate(-50%,-50%) scale(2.2);transform:translate(-50%,-50%) scale(2.2);opacity:0}}`;Oe("pulse 0.8s ease-in-out infinite both");const Ri=v`@keyframes uui-horizontal-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(1px)}30%,50%,70%{transform:translateX(-2px)}40%,60%{transform:translateX(2px)}}`,Fi=Oe("uui-horizontal-shake 600ms ease backwards");/**
284
284
  * @license
285
285
  * Copyright 2017 Google LLC
286
286
  * SPDX-License-Identifier: BSD-3-Clause
@@ -288,11 +288,11 @@
288
288
  * @license
289
289
  * Copyright 2018 Google LLC
290
290
  * SPDX-License-Identifier: BSD-3-Clause
291
- */const ps="important",oc=" !"+ps,ve=$t(class extends Et{constructor(i){var e;if(super(i),i.type!==le.ATTRIBUTE||i.name!=="style"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce((e,t)=>{const r=i[t];return r==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(i,[e]){const{style:t}=i.element;if(this.ht===void 0){this.ht=new Set;for(const r in e)this.ht.add(r);return this.render(e)}this.ht.forEach(r=>{e[r]==null&&(this.ht.delete(r),r.includes("-")?t.removeProperty(r):t[r]="")});for(const r in e){const o=e[r];if(o!=null){this.ht.add(r);const s=typeof o=="string"&&o.endsWith(oc);r.includes("-")||s?t.setProperty(r,s?o.slice(0,-11):o,s?ps:""):t[r]=o}}return J}});/**
291
+ */const ks="important",pc=" !"+ks,ge=$t(class extends Et{constructor(i){var e;if(super(i),i.type!==le.ATTRIBUTE||i.name!=="style"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce((e,t)=>{const r=i[t];return r==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(i,[e]){const{style:t}=i.element;if(this.ht===void 0){this.ht=new Set;for(const r in e)this.ht.add(r);return this.render(e)}this.ht.forEach(r=>{e[r]==null&&(this.ht.delete(r),r.includes("-")?t.removeProperty(r):t[r]="")});for(const r in e){const o=e[r];if(o!=null){this.ht.add(r);const s=typeof o=="string"&&o.endsWith(pc);r.includes("-")||s?t.setProperty(r,s?o.slice(0,-11):o,s?ks:""):t[r]=o}}return J}});/**
292
292
  * @license
293
293
  * Copyright 2018 Google LLC
294
294
  * SPDX-License-Identifier: BSD-3-Clause
295
- */const k=i=>i??I;let Ri=class extends L{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t})}};Ri.CLICK="click";var rc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,ms=i=>{throw TypeError(i)},ot=(i,e,t,r)=>{for(var o=r>1?void 0:r?nc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rc(e,t,o),o},sc=(i,e,t)=>e.has(i)||ms("Cannot "+t),ac=(i,e,t)=>e.has(i)?ms("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Fi=(i,e,t)=>(sc(i,e,"access private method"),t),It,sr,bs,gs;n.UUIButtonInlineCreateElement=class extends v{constructor(){super(...arguments),ac(this,It),this._position=0,this.vertical=!1}_onMouseMove(e){this._position=(this.vertical?e.offsetY:e.offsetX)-5}_handleClick(e){e.preventDefault(),e.stopImmediatePropagation(),e.target?.blur?.(),this.dispatchEvent(new Ri(Ri.CLICK))}render(){return this.href?Fi(this,It,bs).call(this):Fi(this,It,gs).call(this)}},It=new WeakSet,sr=function(){return u`<div id="plus" style="${ve({left:this.vertical?"":this._position+"px",top:this.vertical?this._position+"px":""})}"><svg id="plus-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg></div>`},bs=function(){return u`<a id="button-wrapper" @mousemove="${this._onMouseMove}" href="${k(this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}" aria-label="${this.label?this.label:"create new element"}">${Fi(this,It,sr).call(this)}</a>`},gs=function(){return u`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}">${Fi(this,It,sr).call(this)}</button>`},n.UUIButtonInlineCreateElement.styles=[ec,m`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-10px 0}:host([vertical]){height:100%;width:20px;margin:0 -10px}#button-wrapper{display:flex;justify-content:center;align-items:center;position:absolute;z-index:1;outline:0;transition:opacity .24s;display:inline-flex;width:100%;border:none;height:100%;padding:0;text-decoration:none;background:0 0;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;opacity:0}:host(:focus) #button-wrapper,:host(:focus-within) #button-wrapper,:host(:hover) #button-wrapper{opacity:1}:host(:focus) #button-wrapper:before,:host(:focus-within) #button-wrapper:before,:host(:hover) #button-wrapper:before{animation:${tc};background-color:var(--uui-color-interactive-emphasis,#3544b1);border-color:var(--uui-color-surface,#fff)!important}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:transparent;border-top:1px solid transparent;border-bottom:1px solid transparent;border-radius:2px;pointer-events:none;transition:background-color 720ms ease-out,border-color 240ms}:host(:not([vertical])) #button-wrapper:before{top:50%;transform:translateY(-50%)}:host([vertical]) #button-wrapper:before{height:100%;width:2px;left:50%;transform:translateX(-50%);border-top:none;border-bottom:none;border-left:1px solid transparent;border-right:1px solid transparent}:host(:not([vertical]):not(:hover)) #plus:not(:focus){left:calc(50% - 2px)!important}:host([vertical]:not(:hover)) #plus:not(:focus){top:calc(50% - 2px)!important}#plus{position:absolute;display:flex;justify-content:center;align-items:center;pointer-events:none;box-sizing:border-box;width:28px;height:28px;border-radius:3em;font-size:14px;border:2px solid var(--uui-color-interactive-emphasis,#3544b1);color:var(--uui-color-interactive-emphasis,#3544b1);background-color:var(--uui-color-surface,#fff);opacity:0;transform:scale(0);transition:transform 240ms ease-in,opacity 240ms,left .1s linear 150ms,top .1s linear 150ms}:host(:focus) #plus,:host(:focus-within) #plus,:host(:hover) #plus{opacity:1;transform:scale(1);transition:transform 240ms cubic-bezier(.175,.885,.32,1.275),opacity 80ms,box-shadow 240ms cubic-bezier(.175,.885,.32,1.275);box-shadow:0 0 0 2px var(--uui-color-surface,#fff)}:host(:not([vertical])) #plus{margin-left:-18px}:host([vertical]) #plus{left:-4px;margin-top:-18px}#button-wrapper:focus #plus{border:2px solid var(--uui-color-focus,#3879ff);color:var(--uui-color-focus,#3879ff)}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],ot([w()],n.UUIButtonInlineCreateElement.prototype,"_position",2),ot([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"label",2),ot([l({type:Boolean,reflect:!0})],n.UUIButtonInlineCreateElement.prototype,"vertical",2),ot([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"href",2),ot([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"target",2),ot([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"rel",2),n.UUIButtonInlineCreateElement=ot([b("uui-button-inline-create")],n.UUIButtonInlineCreateElement);let lc=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const $=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},vs=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,h=s.top+a.scrollY;let d;o instanceof TouchEvent?d=o.touches[0]:d=o;const f=d.pageX-c,g=d.pageY-h;e?.onMove&&e.onMove(f,g)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},O=(i,e,t)=>Math.min(Math.max(i,e),t),fs=(i,e,t)=>t+e-i,uc=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function cc(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg>`;const Gi=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9"/><path d="M3 21v-3l9-9"/><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"/><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"/><path d="M15 2v5h5"/></svg>`;const hc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/><path d="M2 10h20"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`;const dc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/></svg>`;const pc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>`;const ar=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>`;const mc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>`;const bc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>`;const gc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,vc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2"/><path d="M15 16v-2"/><path d="M8 9h2"/><path d="M20 9h2"/><path d="M17.8 11.8 19 13"/><path d="M15 9h0"/><path d="M17.8 6.2 19 5"/><path d="m3 21 9-9"/><path d="M12.2 6.2 11 5"/></svg>`;const fc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;var yc=Object.defineProperty,wc=Object.getOwnPropertyDescriptor,ys=i=>{throw TypeError(i)},ue=(i,e,t,r)=>{for(var o=r>1?void 0:r?wc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&yc(e,t,o),o},ws=(i,e,t)=>e.has(i)||ys("Cannot "+t),_c=(i,e,t)=>(ws(i,e,"read from private field"),e.get(i)),Uc=(i,e,t)=>e.has(i)?ys("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),kc=(i,e,t,r)=>(ws(i,e,"write to private field"),e.set(i,t),t),Wi;n.UUIButtonElement=class extends ge(be("",Vu(v))){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,Uc(this,Wi),this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}async focus(){await this.updateComplete,this._button.focus()}async blur(){await this.updateComplete,this._button.blur()}async click(){await this.updateComplete,this._button.click()}_onHostClick(e){if(this.disabled){e.preventDefault(),e.stopImmediatePropagation();return}if(this._internals?.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}this._togglePopover()}updated(e){super.updated(e),e.has("state")&&(clearTimeout(_c(this,Wi)),(this.state==="success"||this.state==="failed")&&kc(this,Wi,setTimeout(()=>this.state=void 0,2e3)))}renderState(){let e;switch(this.state){case"waiting":$(this,"uui-loader-circle"),e=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":$(this,"uui-icon"),e=u`<uui-icon name="check" .fallback="${Gi.strings[0]}"></uui-icon>`;break;case"failed":$(this,"uui-icon"),e=u`<uui-icon name="wrong" .fallback="${fc.strings[0]}"></uui-icon>`;break;default:return I}return u`<div id="state">${e}</div>`}render(){return this.href?u`<a id="button" aria-label="${k(this.label)}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button id="button" ?disabled="${this.disabled}" aria-label="${k(this.label)}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},Wi=new WeakMap,n.UUIButtonElement.styles=[ji,m`:host{position:relative;display:inline-flex;margin-left:calc(var(--uui-button-merge-border-left,0) * -1px);--uui-button-padding-left-factor:3;--uui-button-padding-right-factor:3;--uui-button-padding-top-factor:1;--uui-button-padding-bottom-factor:1;min-height:var(--uui-button-height,var(--uui-size-11,33px));max-height:100%;cursor:pointer;text-align:center;font-size:var(--uui-button-font-size,inherit);font-weight:var(--uui-button-font-weight,500);transition:background-color 80ms,border-color 80ms,color 80ms}:host([compact]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0}.label{line-height:normal;display:block;transition:opacity 120ms}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards;display:flex;justify-content:center;width:100%;height:100%;align-items:center}#button{width:100%;background-color:transparent;color:inherit;font-size:inherit;border-radius:inherit;font-family:inherit;font-weight:inherit;text-align:inherit;border:none;cursor:inherit;display:inline-flex;align-items:center;justify-content:var(--uui-button-content-align,center);text-decoration:none;color:currentColor;line-height:inherit;border-width:var(--uui-button-border-width,1px);border-style:solid;border-radius:var(--uui-button-border-radius,var(--uui-border-radius,3px));cursor:pointer;padding:calc(var(--uui-size-2,6px) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));box-shadow:none;transition:var(--uui-button-transition,none)}#button:focus-visible{outline:2px solid var(--color-emphasis)}a:not([href]):active,button[disabled]:active{animation:${Hi}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}#icon-check,#icon-wrong{display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}:host(:not([color]):not([look=primary])),:host([color='']:not([look=primary])),:host([color=default]:not([look=primary])){--uui-button-contrast-hover:var(--uui-color-default-emphasis,#3544b1)}:host([color=warning][look=outline]) #button,:host([color=warning][look=placeholder]) #button{--uui-button-contrast-hover:var(--color-standalone)}#button{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-emphasis:var(--uui-color-default-emphasis,#3544b1);--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]) #button{--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-emphasis:var(--uui-color-positive-emphasis,rgb(13, 155, 98));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]) #button{--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-emphasis:var(--uui-color-warning-emphasis,rgb(251, 224, 101));--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]) #button{--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-emphasis:var(--uui-color-danger-emphasis,rgb(226, 60, 107));--color-contrast:var(--uui-color-danger-contrast,white)}:host([disabled]) #button{--color:var(--uui-color-disabled,#f3f3f5);--color-standalone:var(--uui-color-disabled-contrast,#c4c4c4);--color-emphasis:var(--uui-color-disabled,#f3f3f5);--color-contrast:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent)}:host(:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,transparent)}:host([look=primary]) #button{background-color:var(--uui-button-background-color,var(--color));color:var(--uui-button-contrast,var(--color-contrast));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=primary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--color-emphasis));color:var(--uui-button-contrast-hover,var(--color-contrast));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=primary]) #button:focus-visible{outline-offset:2px}:host([look=primary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=secondary]) #button{background-color:var(--uui-button-background-color,var(--uui-color-surface-alt,#f3f3f5));color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=secondary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=secondary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=outline]) #button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2));font-weight:var(--uui-button-font-weight,700)}:host([look=outline]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=outline][disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}:host([look=placeholder]) #button{border-style:dashed;background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2))}:host([look=placeholder]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=placeholder][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}`],ue([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"type",2),ue([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"disabled",2),ue([l({reflect:!0})],n.UUIButtonElement.prototype,"look",2),ue([l({reflect:!0})],n.UUIButtonElement.prototype,"color",2),ue([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"compact",2),ue([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"state",2),ue([l({type:String})],n.UUIButtonElement.prototype,"href",2),ue([l({type:String})],n.UUIButtonElement.prototype,"target",2),ue([l({type:String})],n.UUIButtonElement.prototype,"rel",2),ue([A("#button")],n.UUIButtonElement.prototype,"_button",2),n.UUIButtonElement=ue([b("uui-button")],n.UUIButtonElement);let xt=class extends L{};xt.OPEN="open";var $c=Object.defineProperty,Ec=Object.getOwnPropertyDescriptor,Ct=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ec(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$c(e,t,o),o};n.UUICardElement=class extends Bi(_t(v)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new xt(xt.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new xt(xt.OPEN)))}render(){return u`<slot></slot>`}},n.UUICardElement.styles=[m`:host{position:relative;display:flex;width:100%;justify-content:center;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));border-radius:var(--uui-border-radius,3px);min-height:var(--uui-layout-medium);background-color:var(--uui-color-surface,#fff);--uui-card-border-width:3px;transition:box-shadow .1s ease-out}:host([selectable]:focus-visible){outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width)}:host() *{outline-color:var(--uui-color-focus,#3879ff)}:host([error])::before{content:'';position:absolute;pointer-events:none;inset:0;width:100%;height:100%;z-index:1;box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-danger,#d42054);border-radius:var(--uui-border-radius,3px)}button{font-size:inherit;font-family:inherit;border:0;padding:0;background-color:transparent;text-align:left;color:var(--uui-color-text,#060606)}a{text-decoration:none;color:inherit}a:focus,button:focus{outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width);border-radius:var(--uui-border-radius,3px)}:host([selectable]){cursor:pointer}:host([selectable]) #select-border{position:absolute;z-index:2;top:-2px;left:-2px;right:-2px;bottom:-2px;pointer-events:none;opacity:0;transition:opacity 120ms}:host([selectable]) #select-border::after{content:'';position:absolute;width:100%;height:100%;box-sizing:border-box;border:2px solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + 2px);box-shadow:0 0 4px 0 var(--uui-color-selected,#3544b1),inset 0 0 2px 0 var(--uui-color-selected,#3544b1)}:host([selected]) #select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border{opacity:.33}:host([selectable][selected]:hover) #select-border{opacity:.8}:host([selectable]:not([selected])) #open-part:hover+#select-border{opacity:0}:host([selectable][selected]) #open-part:hover+#select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border::after{animation:not-selected--hover 1.2s infinite}@keyframes not-selected--hover{0%,100%{opacity:.66}50%{opacity:1}}:host([selectable][selected]:hover) #select-border::after{animation:selected--hover 1.4s infinite}@keyframes selected--hover{0%,100%{opacity:1}50%{opacity:.66}}:host([selectable]) #open-part:hover+#select-border::after{animation:none}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}:host([disabled]){background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-disabled-contrast,#c4c4c4)}`],Ct([l({type:Boolean,reflect:!0,attribute:"disabled"})],n.UUICardElement.prototype,"disabled",2),Ct([l({type:Boolean,reflect:!0})],n.UUICardElement.prototype,"error",2),Ct([l({type:String})],n.UUICardElement.prototype,"href",2),Ct([l({type:String})],n.UUICardElement.prototype,"target",2),Ct([l({type:String})],n.UUICardElement.prototype,"rel",2),n.UUICardElement=Ct([b("uui-card")],n.UUICardElement);var Ic=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,_s=i=>{throw TypeError(i)},qi=(i,e,t,r)=>{for(var o=r>1?void 0:r?xc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ic(e,t,o),o},Cc=(i,e,t)=>e.has(i)||_s("Cannot "+t),Sc=(i,e,t)=>e.has(i)?_s("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Us=(i,e,t)=>(Cc(i,e,"access private method"),t),Ki,ks,$s;n.UUICardBlockTypeElement=class extends n.UUICardElement{constructor(){super(...arguments),Sc(this,Ki),this.name=""}render(){return u`<div id="portrait" style="${ve({backgroundColor:this.background})}"><slot></slot></div>${this.href?Us(this,Ki,$s).call(this):Us(this,Ki,ks).call(this)}<slot name="tag"></slot><slot name="actions"></slot>`}},Ki=new WeakSet,ks=function(){return u`<button id="open-part" tabindex="${this.disabled?I:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><strong>${this.name}</strong><small>${this.description}</small></button>`},$s=function(){return u`<a id="open-part" tabindex="${this.disabled?I:"0"}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}"><strong>${this.name}</strong><small>${this.description}</small></a>`},n.UUICardBlockTypeElement.styles=[...n.UUICardElement.styles,m`:host{flex-direction:column;justify-content:flex-start}:host(:hover) #info{color:var(--uui-color-interactive-emphasis,#3544b1)}#portrait{background-color:var(--uui-color-surface-alt,#f3f3f5);display:flex;justify-content:center;min-height:150px;max-height:150px}slot:not([name])::slotted(*){align-self:center;font-size:var(--uui-size-8,24px);border-radius:var(--uui-border-radius,3px);object-fit:cover;max-width:100%;max-height:100%}#open-part{text-align:left;background-color:var(--uui-color-surface,#fff);cursor:pointer;color:var(--uui-color-interactive,#1b264f);border:none;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);display:flex;flex-direction:column;line-height:var(--uui-size-6,18px)}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-contrast-disabled)}#open-part:hover strong{text-decoration:underline}#open-part:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}`],qi([l({type:String})],n.UUICardBlockTypeElement.prototype,"name",2),qi([l({type:String})],n.UUICardBlockTypeElement.prototype,"description",2),qi([l({type:String,attribute:"background"})],n.UUICardBlockTypeElement.prototype,"background",2),n.UUICardBlockTypeElement=qi([b("uui-card-block-type")],n.UUICardBlockTypeElement);var Pc=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,Es=i=>{throw TypeError(i)},Xi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ac(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Pc(e,t,o),o},zc=(i,e,t)=>e.has(i)||Es("Cannot "+t),Mc=(i,e,t)=>e.has(i)?Es("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Yi=(i,e,t)=>(zc(i,e,"access private method"),t),St,lr,Is,xs;n.UUICardContentNodeElement=class extends n.UUICardElement{constructor(){super(...arguments),Mc(this,St),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon=`<svg
295
+ */const k=i=>i??I;let Gi=class extends L{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t})}};Gi.CLICK="click";var mc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,$s=i=>{throw TypeError(i)},ot=(i,e,t,r)=>{for(var o=r>1?void 0:r?bc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&mc(e,t,o),o},vc=(i,e,t)=>e.has(i)||$s("Cannot "+t),gc=(i,e,t)=>e.has(i)?$s("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Wi=(i,e,t)=>(vc(i,e,"access private method"),t),It,cr,Es,Is;n.UUIButtonInlineCreateElement=class extends f{constructor(){super(...arguments),gc(this,It),this._position=0,this.vertical=!1}_onMouseMove(e){this._position=(this.vertical?e.offsetY:e.offsetX)-5}_handleClick(e){e.preventDefault(),e.stopImmediatePropagation(),e.target?.blur?.(),this.dispatchEvent(new Gi(Gi.CLICK))}render(){return this.href?Wi(this,It,Es).call(this):Wi(this,It,Is).call(this)}},It=new WeakSet,cr=function(){return u`<div id="plus" style="${ge({left:this.vertical?"":this._position+"px",top:this.vertical?this._position+"px":""})}"><svg id="plus-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg></div>`},Es=function(){return u`<a id="button-wrapper" @mousemove="${this._onMouseMove}" href="${k(this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}" aria-label="${this.label?this.label:"create new element"}">${Wi(this,It,cr).call(this)}</a>`},Is=function(){return u`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}">${Wi(this,It,cr).call(this)}</button>`},n.UUIButtonInlineCreateElement.styles=[cc,v`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-10px 0}:host([vertical]){height:100%;width:20px;margin:0 -10px}#button-wrapper{display:flex;justify-content:center;align-items:center;position:absolute;z-index:1;outline:0;transition:opacity .24s;display:inline-flex;width:100%;border:none;height:100%;padding:0;text-decoration:none;background:0 0;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;opacity:0}:host(:focus) #button-wrapper,:host(:focus-within) #button-wrapper,:host(:hover) #button-wrapper{opacity:1}:host(:focus) #button-wrapper:before,:host(:focus-within) #button-wrapper:before,:host(:hover) #button-wrapper:before{animation:${hc};background-color:var(--uui-color-interactive-emphasis,#3544b1);border-color:var(--uui-color-surface,#fff)!important}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:transparent;border-top:1px solid transparent;border-bottom:1px solid transparent;border-radius:2px;pointer-events:none;transition:background-color 720ms ease-out,border-color 240ms}:host(:not([vertical])) #button-wrapper:before{top:50%;transform:translateY(-50%)}:host([vertical]) #button-wrapper:before{height:100%;width:2px;left:50%;transform:translateX(-50%);border-top:none;border-bottom:none;border-left:1px solid transparent;border-right:1px solid transparent}:host(:not([vertical]):not(:hover)) #plus:not(:focus){left:calc(50% - 2px)!important}:host([vertical]:not(:hover)) #plus:not(:focus){top:calc(50% - 2px)!important}#plus{position:absolute;display:flex;justify-content:center;align-items:center;pointer-events:none;box-sizing:border-box;width:28px;height:28px;border-radius:3em;font-size:14px;border:2px solid var(--uui-color-interactive-emphasis,#3544b1);color:var(--uui-color-interactive-emphasis,#3544b1);background-color:var(--uui-color-surface,#fff);opacity:0;transform:scale(0);transition:transform 240ms ease-in,opacity 240ms,left .1s linear 150ms,top .1s linear 150ms}:host(:focus) #plus,:host(:focus-within) #plus,:host(:hover) #plus{opacity:1;transform:scale(1);transition:transform 240ms cubic-bezier(.175,.885,.32,1.275),opacity 80ms,box-shadow 240ms cubic-bezier(.175,.885,.32,1.275);box-shadow:0 0 0 2px var(--uui-color-surface,#fff)}:host(:not([vertical])) #plus{margin-left:-18px}:host([vertical]) #plus{left:-4px;margin-top:-18px}#button-wrapper:focus #plus{border:2px solid var(--uui-color-focus,#3879ff);color:var(--uui-color-focus,#3879ff)}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],ot([w()],n.UUIButtonInlineCreateElement.prototype,"_position",2),ot([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"label",2),ot([l({type:Boolean,reflect:!0})],n.UUIButtonInlineCreateElement.prototype,"vertical",2),ot([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"href",2),ot([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"target",2),ot([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"rel",2),n.UUIButtonInlineCreateElement=ot([g("uui-button-inline-create")],n.UUIButtonInlineCreateElement);let fc=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const $=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},xs=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,h=s.top+a.scrollY;let d;o instanceof TouchEvent?d=o.touches[0]:d=o;const b=d.pageX-c,m=d.pageY-h;e?.onMove&&e.onMove(b,m)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},O=(i,e,t)=>Math.min(Math.max(i,e),t),Cs=(i,e,t)=>t+e-i,yc=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function wc(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg>`;const qi=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9"/><path d="M3 21v-3l9-9"/><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"/><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"/><path d="M15 2v5h5"/></svg>`;const _c=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/><path d="M2 10h20"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`;const Uc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/></svg>`;const kc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>`;const hr=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>`;const $c=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>`;const Ec=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>`;const Ic=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,xc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2"/><path d="M15 16v-2"/><path d="M8 9h2"/><path d="M20 9h2"/><path d="M17.8 11.8 19 13"/><path d="M15 9h0"/><path d="M17.8 6.2 19 5"/><path d="m3 21 9-9"/><path d="M12.2 6.2 11 5"/></svg>`;const Cc=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;var Sc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,Ss=i=>{throw TypeError(i)},ue=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sc(e,t,o),o},Ps=(i,e,t)=>e.has(i)||Ss("Cannot "+t),Ac=(i,e,t)=>(Ps(i,e,"read from private field"),e.get(i)),zc=(i,e,t)=>e.has(i)?Ss("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Mc=(i,e,t,r)=>(Ps(i,e,"write to private field"),e.set(i,t),t),Ki;n.UUIButtonElement=class extends ve(be("",Yu(f))){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,zc(this,Ki),this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}async focus(){await this.updateComplete,this._button.focus()}async blur(){await this.updateComplete,this._button.blur()}async click(){await this.updateComplete,this._button.click()}_onHostClick(e){if(this.disabled){e.preventDefault(),e.stopImmediatePropagation();return}if(this._internals?.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}this._togglePopover()}updated(e){super.updated(e),e.has("state")&&(clearTimeout(Ac(this,Ki)),(this.state==="success"||this.state==="failed")&&Mc(this,Ki,setTimeout(()=>this.state=void 0,2e3)))}renderState(){let e;switch(this.state){case"waiting":$(this,"uui-loader-circle"),e=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":$(this,"uui-icon"),e=u`<uui-icon name="check" .fallback="${qi.strings[0]}"></uui-icon>`;break;case"failed":$(this,"uui-icon"),e=u`<uui-icon name="wrong" .fallback="${Cc.strings[0]}"></uui-icon>`;break;default:return I}return u`<div id="state">${e}</div>`}render(){return this.href?u`<a id="button" aria-label="${k(this.label)}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button id="button" ?disabled="${this.disabled}" aria-label="${k(this.label)}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},Ki=new WeakMap,n.UUIButtonElement.styles=[Ri,v`:host{position:relative;display:inline-flex;margin-left:calc(var(--uui-button-merge-border-left,0) * -1px);--uui-button-padding-left-factor:3;--uui-button-padding-right-factor:3;--uui-button-padding-top-factor:1;--uui-button-padding-bottom-factor:1;min-height:var(--uui-button-height,var(--uui-size-11,33px));max-height:100%;cursor:pointer;text-align:center;font-size:var(--uui-button-font-size,inherit);font-weight:var(--uui-button-font-weight,500);transition:background-color 80ms,border-color 80ms,color 80ms}:host([compact]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0}.label{line-height:normal;display:block;transition:opacity 120ms}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards;display:flex;justify-content:center;width:100%;height:100%;align-items:center}#button{width:100%;background-color:transparent;color:inherit;font-size:inherit;border-radius:inherit;font-family:inherit;font-weight:inherit;text-align:inherit;border:none;cursor:inherit;display:inline-flex;align-items:center;justify-content:var(--uui-button-content-align,center);text-decoration:none;color:currentColor;line-height:inherit;border-width:var(--uui-button-border-width,1px);border-style:solid;border-radius:var(--uui-button-border-radius,var(--uui-border-radius,3px));cursor:pointer;padding:calc(var(--uui-size-2,6px) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));box-shadow:none;transition:var(--uui-button-transition,none)}#button:focus-visible{outline:2px solid var(--color-emphasis)}a:not([href]):active,button[disabled]:active{animation:${Fi}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}#icon-check,#icon-wrong{display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}:host(:not([color]):not([look=primary])),:host([color='']:not([look=primary])),:host([color=default]:not([look=primary])){--uui-button-contrast-hover:var(--uui-color-default-emphasis,#3544b1)}:host([color=warning][look=outline]) #button,:host([color=warning][look=placeholder]) #button{--uui-button-contrast-hover:var(--color-standalone)}#button{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-emphasis:var(--uui-color-default-emphasis,#3544b1);--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]) #button{--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-emphasis:var(--uui-color-positive-emphasis,rgb(13, 155, 98));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]) #button{--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-emphasis:var(--uui-color-warning-emphasis,rgb(251, 224, 101));--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]) #button{--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-emphasis:var(--uui-color-danger-emphasis,rgb(226, 60, 107));--color-contrast:var(--uui-color-danger-contrast,white)}:host([disabled]) #button{--color:var(--uui-color-disabled,#f3f3f5);--color-standalone:var(--uui-color-disabled-contrast,#c4c4c4);--color-emphasis:var(--uui-color-disabled,#f3f3f5);--color-contrast:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent)}:host(:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,transparent)}:host([look=primary]) #button{background-color:var(--uui-button-background-color,var(--color));color:var(--uui-button-contrast,var(--color-contrast));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=primary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--color-emphasis));color:var(--uui-button-contrast-hover,var(--color-contrast));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=primary]) #button:focus-visible{outline-offset:2px}:host([look=primary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=secondary]) #button{background-color:var(--uui-button-background-color,var(--uui-color-surface-alt,#f3f3f5));color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=secondary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=secondary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=outline]) #button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2));font-weight:var(--uui-button-font-weight,700)}:host([look=outline]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=outline][disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}:host([look=placeholder]) #button{border-style:dashed;background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2))}:host([look=placeholder]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=placeholder][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}`],ue([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"type",2),ue([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"disabled",2),ue([l({reflect:!0})],n.UUIButtonElement.prototype,"look",2),ue([l({reflect:!0})],n.UUIButtonElement.prototype,"color",2),ue([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"compact",2),ue([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"state",2),ue([l({type:String})],n.UUIButtonElement.prototype,"href",2),ue([l({type:String})],n.UUIButtonElement.prototype,"target",2),ue([l({type:String})],n.UUIButtonElement.prototype,"rel",2),ue([A("#button")],n.UUIButtonElement.prototype,"_button",2),n.UUIButtonElement=ue([g("uui-button")],n.UUIButtonElement);let xt=class extends L{};xt.OPEN="open";var Lc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,Ct=(i,e,t,r)=>{for(var o=r>1?void 0:r?Oc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lc(e,t,o),o};n.UUICardElement=class extends Vi(_t(f)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new xt(xt.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new xt(xt.OPEN)))}render(){return u`<slot></slot>`}},n.UUICardElement.styles=[v`:host{position:relative;display:flex;width:100%;justify-content:center;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));border-radius:var(--uui-border-radius,3px);min-height:var(--uui-layout-medium);background-color:var(--uui-color-surface,#fff);--uui-card-border-width:3px;transition:box-shadow .1s ease-out}:host([selectable]:focus-visible){outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width)}:host() *{outline-color:var(--uui-color-focus,#3879ff)}:host([error])::before{content:'';position:absolute;pointer-events:none;inset:0;width:100%;height:100%;z-index:1;box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-danger,#d42054);border-radius:var(--uui-border-radius,3px)}button{font-size:inherit;font-family:inherit;border:0;padding:0;background-color:transparent;text-align:left;color:var(--uui-color-text,#060606)}a{text-decoration:none;color:inherit}a:focus,button:focus{outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width);border-radius:var(--uui-border-radius,3px)}:host([selectable]){cursor:pointer}:host([selectable]) #select-border{position:absolute;z-index:2;top:-2px;left:-2px;right:-2px;bottom:-2px;pointer-events:none;opacity:0;transition:opacity 120ms}:host([selectable]) #select-border::after{content:'';position:absolute;width:100%;height:100%;box-sizing:border-box;border:2px solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + 2px);box-shadow:0 0 4px 0 var(--uui-color-selected,#3544b1),inset 0 0 2px 0 var(--uui-color-selected,#3544b1)}:host([selected]) #select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border{opacity:.33}:host([selectable][selected]:hover) #select-border{opacity:.8}:host([selectable]:not([selected])) #open-part:hover+#select-border{opacity:0}:host([selectable][selected]) #open-part:hover+#select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border::after{animation:not-selected--hover 1.2s infinite}@keyframes not-selected--hover{0%,100%{opacity:.66}50%{opacity:1}}:host([selectable][selected]:hover) #select-border::after{animation:selected--hover 1.4s infinite}@keyframes selected--hover{0%,100%{opacity:1}50%{opacity:.66}}:host([selectable]) #open-part:hover+#select-border::after{animation:none}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}:host([disabled]){background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-disabled-contrast,#c4c4c4)}`],Ct([l({type:Boolean,reflect:!0,attribute:"disabled"})],n.UUICardElement.prototype,"disabled",2),Ct([l({type:Boolean,reflect:!0})],n.UUICardElement.prototype,"error",2),Ct([l({type:String})],n.UUICardElement.prototype,"href",2),Ct([l({type:String})],n.UUICardElement.prototype,"target",2),Ct([l({type:String})],n.UUICardElement.prototype,"rel",2),n.UUICardElement=Ct([g("uui-card")],n.UUICardElement);var Tc=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,As=i=>{throw TypeError(i)},Xi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Nc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Tc(e,t,o),o},Bc=(i,e,t)=>e.has(i)||As("Cannot "+t),Dc=(i,e,t)=>e.has(i)?As("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),zs=(i,e,t)=>(Bc(i,e,"access private method"),t),Yi,Ms,Ls;n.UUICardBlockTypeElement=class extends n.UUICardElement{constructor(){super(...arguments),Dc(this,Yi),this.name=""}render(){return u`<div id="portrait" style="${ge({backgroundColor:this.background})}"><slot></slot></div>${this.href?zs(this,Yi,Ls).call(this):zs(this,Yi,Ms).call(this)}<slot name="tag"></slot><slot name="actions"></slot>`}},Yi=new WeakSet,Ms=function(){return u`<button id="open-part" tabindex="${this.disabled?I:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><strong>${this.name}</strong><small>${this.description}</small></button>`},Ls=function(){return u`<a id="open-part" tabindex="${this.disabled?I:"0"}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}"><strong>${this.name}</strong><small>${this.description}</small></a>`},n.UUICardBlockTypeElement.styles=[...n.UUICardElement.styles,v`:host{flex-direction:column;justify-content:flex-start}:host(:hover) #info{color:var(--uui-color-interactive-emphasis,#3544b1)}#portrait{background-color:var(--uui-color-surface-alt,#f3f3f5);display:flex;justify-content:center;min-height:150px;max-height:150px}slot:not([name])::slotted(*){align-self:center;font-size:var(--uui-size-8,24px);border-radius:var(--uui-border-radius,3px);object-fit:cover;max-width:100%;max-height:100%}#open-part{text-align:left;background-color:var(--uui-color-surface,#fff);cursor:pointer;color:var(--uui-color-interactive,#1b264f);border:none;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);display:flex;flex-direction:column;line-height:var(--uui-size-6,18px)}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-contrast-disabled)}#open-part:hover strong{text-decoration:underline}#open-part:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}`],Xi([l({type:String})],n.UUICardBlockTypeElement.prototype,"name",2),Xi([l({type:String})],n.UUICardBlockTypeElement.prototype,"description",2),Xi([l({type:String,attribute:"background"})],n.UUICardBlockTypeElement.prototype,"background",2),n.UUICardBlockTypeElement=Xi([g("uui-card-block-type")],n.UUICardBlockTypeElement);var Vc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,Os=i=>{throw TypeError(i)},Zi=(i,e,t,r)=>{for(var o=r>1?void 0:r?jc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vc(e,t,o),o},Hc=(i,e,t)=>e.has(i)||Os("Cannot "+t),Rc=(i,e,t)=>e.has(i)?Os("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Qi=(i,e,t)=>(Hc(i,e,"access private method"),t),St,dr,Ts,Ns;n.UUICardContentNodeElement=class extends n.UUICardElement{constructor(){super(...arguments),Rc(this,St),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon=`<svg
296
296
  xmlns="http://www.w3.org/2000/svg"
297
297
  viewBox="0 0 24 24"
298
298
  fill="none"
@@ -303,22 +303,22 @@
303
303
  id="icon">
304
304
  <path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
305
305
  <path d="M14 2v4a2 2 0 0 0 2 2h4" />
306
- </svg>`}_onSlotIconChange(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return $(this,"uui-icon"),u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}renderDetail(){return u`<small id="detail">${this.detail}<slot name="detail"></slot></small><slot id="default"></slot>`}render(){return u`${this.href?Yi(this,St,xs).call(this):Yi(this,St,Is).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},St=new WeakSet,lr=function(){return u`<span id="content"><span id="item"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}</span><div id="name">${this.name}<slot name="name"></slot></div></span>${this.renderDetail()}</span>`},Is=function(){return u`<button id="open-part" tabindex="${this.disabled?I:0}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}">${Yi(this,St,lr).call(this)}</button>`},xs=function(){return u`<a id="open-part" tabindex="${this.disabled?I:0}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}">${Yi(this,St,lr).call(this)}</a>`},n.UUICardContentNodeElement.styles=[...n.UUICardElement.styles,m`:host{min-width:250px;flex-direction:column;justify-content:space-between}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name]){display:block;margin:var(--uui-size-1,3px);margin-top:var(--uui-size-3,9px)}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:calc(2 * var(--uui-size-3,9px))}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer;flex-grow:1;padding:var(--uui-size-space-4,12px) var(--uui-size-space-5,18px)}#content{align-self:stretch;display:flex;flex-direction:column}#item{position:relative;display:flex;align-self:stretch;line-height:normal;align-items:center;margin-top:var(--uui-size-1,3px)}#icon{font-size:1.2em;margin-right:var(--uui-size-1,3px)}:host([selectable]) #open-part{padding:0;margin:var(--uui-size-space-4,12px) var(--uui-size-space-5,18px)}:host([disabled]) #name{pointer-events:none}:host(:not([disabled])) #open-part:hover #icon{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #name{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #detail{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #default{color:var(--uui-color-interactive-emphasis,#3544b1)}`],Xi([l({type:String})],n.UUICardContentNodeElement.prototype,"name",2),Xi([l({type:String})],n.UUICardContentNodeElement.prototype,"detail",2),Xi([w()],n.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),n.UUICardContentNodeElement=Xi([b("uui-card-content-node")],n.UUICardContentNodeElement);var Lc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,Cs=i=>{throw TypeError(i)},di=(i,e,t,r)=>{for(var o=r>1?void 0:r?Oc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lc(e,t,o),o},Tc=(i,e,t)=>e.has(i)||Cs("Cannot "+t),Nc=(i,e,t)=>e.has(i)?Cs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Zi=(i,e,t)=>(Tc(i,e,"access private method"),t),Pt,Ss,Ps,ur;n.UUICardMediaElement=class extends n.UUICardElement{constructor(){super(...arguments),Nc(this,Pt),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),$(this,"uui-symbol-folder"),$(this,"uui-symbol-file")}queryPreviews(e){this.hasPreview=e.composedPath()[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!0?"":this.fileExt===""?u`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:u`<uui-symbol-file id="file-symbol" type="${this.fileExt}"></uui-symbol-file>`}render(){return u`${this.renderMedia()}<slot @slotchange="${this.queryPreviews}"></slot>${this.href?Zi(this,Pt,Ps).call(this):Zi(this,Pt,Ss).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},Pt=new WeakSet,Ss=function(){return u`<button id="open-part" tabindex="${this.disabled?I:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}">${Zi(this,Pt,ur).call(this)}</button>`},Ps=function(){return u`<a id="open-part" tabindex="${this.disabled?I:"0"}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}">${Zi(this,Pt,ur).call(this)}</a>`},ur=function(){return u`<div id="content"><span id="name">${this.name}</span> ${this.detail}<slot name="detail"></slot></div>`},n.UUICardMediaElement.styles=[...n.UUICardElement.styles,m`#file-symbol,#folder-symbol{align-self:center;margin:var(--uui-size-14,42px);width:80%}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name])::slotted(*){align-self:center;border-radius:var(--uui-border-radius,3px);object-fit:cover;width:100%;height:100%}#open-part{position:absolute;z-index:1;inset:0;color:var(--uui-color-interactive,#1b264f);border:none;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end}:host([disabled]) #open-part{pointer-events:none;color:var(--uui-color-contrast-disabled)}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}#content{position:relative;display:flex;width:100%;align-items:center;font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;text-align:left;word-break:break-word;padding-top:var(--uui-size-space-3,9px)}#content::before{content:'';position:absolute;inset:0;z-index:-1;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);pointer-events:none;opacity:.96}#name{font-weight:700}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}:host([selectable]) #open-part{inset:var(--uui-size-space-3,9px) var(--uui-size-space-4,12px)}:host(:not([selectable])) #content{padding:var(--uui-size-space-3,9px) var(--uui-size-space-4,12px)}:host([selectable]) #content::before{inset:calc(var(--uui-size-space-3,9px) * -1) calc(var(--uui-size-space-4,12px) * -1);top:0}`],di([l({type:String})],n.UUICardMediaElement.prototype,"name",2),di([l({type:String})],n.UUICardMediaElement.prototype,"detail",2),di([l({type:String,attribute:"file-ext"})],n.UUICardMediaElement.prototype,"fileExt",2),di([w()],n.UUICardMediaElement.prototype,"hasPreview",2),n.UUICardMediaElement=di([b("uui-card-media")],n.UUICardMediaElement);var Bc=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,As=i=>{throw TypeError(i)},cr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Dc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Bc(e,t,o),o},Vc=(i,e,t)=>e.has(i)||As("Cannot "+t),jc=(i,e,t)=>e.has(i)?As("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Qi=(i,e,t)=>(Vc(i,e,"access private method"),t),At,zs,Ms,hr;n.UUICardUserElement=class extends n.UUICardElement{constructor(){super(...arguments),jc(this,At),this.name="",this._avatarSlotHasContent=!1,this._avatarSlotChanged=e=>{this._avatarSlotHasContent=cc(e.target)}}connectedCallback(){super.connectedCallback(),$(this,"uui-avatar")}render(){return u`${this.href?Qi(this,At,Ms).call(this):Qi(this,At,zs).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},At=new WeakSet,zs=function(){return u`<div id="open-part" tabindex="${this.disabled?I:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}">${Qi(this,At,hr).call(this)}</div>`},Ms=function(){return u`<a id="open-part" tabindex="${this.disabled?I:"0"}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}">${Qi(this,At,hr).call(this)}</a>`},hr=function(){return u`<div id="content">${this._avatarSlotHasContent?I:u`<uui-avatar class="avatar" name="${this.name}" size="m"></uui-avatar>`}<slot name="avatar" class="avatar" @slotchange="${this._avatarSlotChanged}"></slot><span>${this.name}</span><slot></slot></div>`},n.UUICardUserElement.styles=[...n.UUICardElement.styles,m`:host{min-width:250px}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:var(--uui-size-6,18px)}::slotted(*){text-align:center}slot[name=tag]{position:absolute;top:6px;right:6px;display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-space-4,12px);right:var(--uui-size-space-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}#open-part{cursor:pointer;flex-grow:1;padding:var(--uui-size-space-5,18px) var(--uui-size-space-4,12px)}:host([disabled]) #open-part{pointer-events:none}#open-part:hover #content{color:var(--uui-color-interactive-emphasis,#3544b1)}#open-part:hover #content>span{text-decoration:underline}:host([selectable]) #open-part{padding:0;margin:var(--uui-size-space-5,18px) var(--uui-size-space-4,12px)}#content{display:flex;flex-direction:column;position:relative;align-items:center;margin:0 0 3px 0}#content>span{vertical-align:center;margin-top:3px;font-weight:700}.avatar{font-size:1.5em;margin-top:var(--uui-size-space-1,3px);margin-bottom:var(--uui-size-space-2,6px)}`],cr([l({type:String})],n.UUICardUserElement.prototype,"name",2),cr([w()],n.UUICardUserElement.prototype,"_avatarSlotHasContent",2),n.UUICardUserElement=cr([b("uui-card-user")],n.UUICardUserElement);var Hc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,Ls=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hc(e,t,o),o};n.UUICaretElement=class extends v{constructor(){super(),this.open=!1,console.error("\xB4uui-caret\xB4 is deprecated, please use \xB4uui-symbol-expand\xB4 or \xB4uui-symbol-sort\xB4")}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m4 9 8 8 8-8"></path></svg>`}},n.UUICaretElement.styles=[m`:host{display:inline-block;width:12px;vertical-align:middle}svg{transform-origin:50% 50%;transition:transform .1s cubic-bezier(.1,0,.9,1)}`],Ls([l({type:Boolean,reflect:!0})],n.UUICaretElement.prototype,"open",2),n.UUICaretElement=Ls([b("uui-caret")],n.UUICaretElement);var Fc=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUICheckboxElement=class extends re{renderCheckbox(){return u`<div id="ticker"><div id="icon-check">${this.indeterminate?bc:Gi}</div></div>`}},n.UUICheckboxElement.formAssociated=!0,n.UUICheckboxElement.styles=[...re.styles,ji,m`:host{--uui-checkbox-size:18px}#ticker{position:relative;grid-area:'input';display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;width:var(--uui-checkbox-size);height:var(--uui-checkbox-size);border-radius:var(--uui-checkbox-border-radius,var(--uui-border-radius,3px));color:var(--uui-toggle-color,var(--uui-color-selected-contrast,#fff));background-color:var(--uui-toggle-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-checkbox-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-checkbox-size) * .7)}label:hover input:not([disabled])+#ticker{border-color:var(--uui-checkbox-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}label:focus #ticker{border-color:var(--uui-checkbox-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked:not([disabled])+#ticker,input:indeterminate:not([disabled])+#ticker{border-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])+#ticker,label:hover input:indeterminate:not([disabled])+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked+#ticker,label:focus input:indeterminate+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-check{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms,opacity 120ms;color:var(--uui-color-selected-contrast,#fff);opacity:0}#ticker::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:calc(var(--uui-checkbox-border-radius,var(--uui-border-radius,3px)) * .5);background-color:var(--uui-color-selected,#3544b1);transition:transform 120ms ease,opacity 120ms,background-color 120ms;transform:scale(0);opacity:0}label:hover input:checked:not([disabled])+#ticker::before,label:hover input:indeterminate:not([disabled])+#ticker::before{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:checked+#ticker::before,input:indeterminate+#ticker::before{transform:scale(1);opacity:1}input:checked+#ticker #icon-check,input:indeterminate+#ticker #icon-check{opacity:1}label:focus input:checked+#ticker,label:focus input:indeterminate+#ticker{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:focus+#ticker{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled],[readonly])) label:active input:checked+#ticker::before{transform:scale(.9)}:host(:not([disabled],[readonly])) label:active input:indeterminate+#ticker::before{transform:scale(.9)}:host(:not([pristine]):invalid) #ticker,:host(:not([pristine]):invalid) label:focus input:checked+#ticker,:host(:not([pristine]):invalid) label:focus input:indeterminate+#ticker,:host(:not([pristine]):invalid) label:hover #ticker,:host(:not([pristine]):invalid) label:hover input:checked:not([disabled])+#ticker,:host(:not([pristine]):invalid) label:hover input:indeterminate:not([disabled])+#ticker,:host(:not([pristine])[internals-invalid]) #ticker,:host(:not([pristine])[internals-invalid]) label:focus input:checked+#ticker,:host(:not([pristine])[internals-invalid]) label:focus input:indeterminate+#ticker,:host(:not([pristine])[internals-invalid]) label:hover #ticker,:host(:not([pristine])[internals-invalid]) label:hover input:checked:not([disabled])+#ticker,:host(:not([pristine])[internals-invalid]) label:hover input:indeterminate:not([disabled])+#ticker{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([disabled]) #ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) input:checked+#ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) input:indeterminate+#ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker::before{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker #icon-check{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #ticker{animation:${Hi}}:host([disabled]) input:checked+#ticker #icon-check,:host([disabled]) input:indeterminate+#ticker #icon-check{color:var(--uui-color-disabled-contrast,#c4c4c4)}`],n.UUICheckboxElement=Fc([b("uui-checkbox")],n.UUICheckboxElement);/**
306
+ </svg>`}_onSlotIconChange(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return $(this,"uui-icon"),u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}renderDetail(){return u`<small id="detail">${this.detail}<slot name="detail"></slot></small><slot id="default"></slot>`}render(){return u`${this.href?Qi(this,St,Ns).call(this):Qi(this,St,Ts).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},St=new WeakSet,dr=function(){return u`<span id="content"><span id="item"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}</span><div id="name">${this.name}<slot name="name"></slot></div></span>${this.renderDetail()}</span>`},Ts=function(){return u`<button id="open-part" tabindex="${this.disabled?I:0}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}">${Qi(this,St,dr).call(this)}</button>`},Ns=function(){return u`<a id="open-part" tabindex="${this.disabled?I:0}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}">${Qi(this,St,dr).call(this)}</a>`},n.UUICardContentNodeElement.styles=[...n.UUICardElement.styles,v`:host{min-width:250px;flex-direction:column;justify-content:space-between}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name]){display:block;margin:var(--uui-size-1,3px);margin-top:var(--uui-size-3,9px)}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:calc(2 * var(--uui-size-3,9px))}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer;flex-grow:1;padding:var(--uui-size-space-4,12px) var(--uui-size-space-5,18px)}#content{align-self:stretch;display:flex;flex-direction:column}#item{position:relative;display:flex;align-self:stretch;line-height:normal;align-items:center;margin-top:var(--uui-size-1,3px)}#icon{font-size:1.2em;margin-right:var(--uui-size-1,3px)}:host([selectable]) #open-part{padding:0;margin:var(--uui-size-space-4,12px) var(--uui-size-space-5,18px)}:host([disabled]) #name{pointer-events:none}:host(:not([disabled])) #open-part:hover #icon{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #name{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #detail{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #default{color:var(--uui-color-interactive-emphasis,#3544b1)}`],Zi([l({type:String})],n.UUICardContentNodeElement.prototype,"name",2),Zi([l({type:String})],n.UUICardContentNodeElement.prototype,"detail",2),Zi([w()],n.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),n.UUICardContentNodeElement=Zi([g("uui-card-content-node")],n.UUICardContentNodeElement);var Fc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,Bs=i=>{throw TypeError(i)},mi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fc(e,t,o),o},Wc=(i,e,t)=>e.has(i)||Bs("Cannot "+t),qc=(i,e,t)=>e.has(i)?Bs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ji=(i,e,t)=>(Wc(i,e,"access private method"),t),Pt,Ds,Vs,pr;n.UUICardMediaElement=class extends n.UUICardElement{constructor(){super(...arguments),qc(this,Pt),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),$(this,"uui-symbol-folder"),$(this,"uui-symbol-file")}queryPreviews(e){this.hasPreview=e.composedPath()[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!0?"":this.fileExt===""?u`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:u`<uui-symbol-file id="file-symbol" type="${this.fileExt}"></uui-symbol-file>`}render(){return u`${this.renderMedia()}<slot @slotchange="${this.queryPreviews}"></slot>${this.href?Ji(this,Pt,Vs).call(this):Ji(this,Pt,Ds).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},Pt=new WeakSet,Ds=function(){return u`<button id="open-part" tabindex="${this.disabled?I:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}">${Ji(this,Pt,pr).call(this)}</button>`},Vs=function(){return u`<a id="open-part" tabindex="${this.disabled?I:"0"}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}">${Ji(this,Pt,pr).call(this)}</a>`},pr=function(){return u`<div id="content"><span id="name">${this.name}</span> ${this.detail}<slot name="detail"></slot></div>`},n.UUICardMediaElement.styles=[...n.UUICardElement.styles,v`#file-symbol,#folder-symbol{align-self:center;margin:var(--uui-size-14,42px);width:80%}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;z-index:2}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;z-index:2;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name])::slotted(*){align-self:center;border-radius:var(--uui-border-radius,3px);object-fit:cover;width:100%;height:100%}#open-part{position:absolute;z-index:1;inset:0;color:var(--uui-color-interactive,#1b264f);border:none;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end}:host([disabled]) #open-part{pointer-events:none;color:var(--uui-color-contrast-disabled)}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}#content{position:relative;display:flex;width:100%;align-items:center;font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;text-align:left;word-break:break-word;padding-top:var(--uui-size-space-3,9px)}#content::before{content:'';position:absolute;inset:0;z-index:-1;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);pointer-events:none;opacity:.96}#name{font-weight:700}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}:host([selectable]) #open-part{inset:var(--uui-size-space-3,9px) var(--uui-size-space-4,12px)}:host(:not([selectable])) #content{padding:var(--uui-size-space-3,9px) var(--uui-size-space-4,12px)}:host([selectable]) #content::before{inset:calc(var(--uui-size-space-3,9px) * -1) calc(var(--uui-size-space-4,12px) * -1);top:0}`],mi([l({type:String})],n.UUICardMediaElement.prototype,"name",2),mi([l({type:String})],n.UUICardMediaElement.prototype,"detail",2),mi([l({type:String,attribute:"file-ext"})],n.UUICardMediaElement.prototype,"fileExt",2),mi([w()],n.UUICardMediaElement.prototype,"hasPreview",2),n.UUICardMediaElement=mi([g("uui-card-media")],n.UUICardMediaElement);var Kc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,js=i=>{throw TypeError(i)},mr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Kc(e,t,o),o},Yc=(i,e,t)=>e.has(i)||js("Cannot "+t),Zc=(i,e,t)=>e.has(i)?js("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),eo=(i,e,t)=>(Yc(i,e,"access private method"),t),At,Hs,Rs,br;n.UUICardUserElement=class extends n.UUICardElement{constructor(){super(...arguments),Zc(this,At),this.name="",this._avatarSlotHasContent=!1,this._avatarSlotChanged=e=>{this._avatarSlotHasContent=wc(e.target)}}connectedCallback(){super.connectedCallback(),$(this,"uui-avatar")}render(){return u`${this.href?eo(this,At,Rs).call(this):eo(this,At,Hs).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},At=new WeakSet,Hs=function(){return u`<div id="open-part" tabindex="${this.disabled?I:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}">${eo(this,At,br).call(this)}</div>`},Rs=function(){return u`<a id="open-part" tabindex="${this.disabled?I:"0"}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}">${eo(this,At,br).call(this)}</a>`},br=function(){return u`<div id="content">${this._avatarSlotHasContent?I:u`<uui-avatar class="avatar" name="${this.name}" size="m"></uui-avatar>`}<slot name="avatar" class="avatar" @slotchange="${this._avatarSlotChanged}"></slot><span>${this.name}</span><slot></slot></div>`},n.UUICardUserElement.styles=[...n.UUICardElement.styles,v`:host{min-width:250px}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:var(--uui-size-6,18px)}::slotted(*){text-align:center}slot[name=tag]{position:absolute;top:6px;right:6px;display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-space-4,12px);right:var(--uui-size-space-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}#open-part{cursor:pointer;flex-grow:1;padding:var(--uui-size-space-5,18px) var(--uui-size-space-4,12px)}:host([disabled]) #open-part{pointer-events:none}#open-part:hover #content{color:var(--uui-color-interactive-emphasis,#3544b1)}#open-part:hover #content>span{text-decoration:underline}:host([selectable]) #open-part{padding:0;margin:var(--uui-size-space-5,18px) var(--uui-size-space-4,12px)}#content{display:flex;flex-direction:column;position:relative;align-items:center;margin:0 0 3px 0}#content>span{vertical-align:center;margin-top:3px;font-weight:700}.avatar{font-size:1.5em;margin-top:var(--uui-size-space-1,3px);margin-bottom:var(--uui-size-space-2,6px)}`],mr([l({type:String})],n.UUICardUserElement.prototype,"name",2),mr([w()],n.UUICardUserElement.prototype,"_avatarSlotHasContent",2),n.UUICardUserElement=mr([g("uui-card-user")],n.UUICardUserElement);var Qc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,Fs=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Qc(e,t,o),o};n.UUICaretElement=class extends f{constructor(){super(),this.open=!1,console.error("\xB4uui-caret\xB4 is deprecated, please use \xB4uui-symbol-expand\xB4 or \xB4uui-symbol-sort\xB4")}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m4 9 8 8 8-8"></path></svg>`}},n.UUICaretElement.styles=[v`:host{display:inline-block;width:12px;vertical-align:middle}svg{transform-origin:50% 50%;transition:transform .1s cubic-bezier(.1,0,.9,1)}`],Fs([l({type:Boolean,reflect:!0})],n.UUICaretElement.prototype,"open",2),n.UUICaretElement=Fs([g("uui-caret")],n.UUICaretElement);var eh=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUICheckboxElement=class extends re{renderCheckbox(){return u`<div id="ticker"><div id="icon-check">${this.indeterminate?Ec:qi}</div></div>`}},n.UUICheckboxElement.formAssociated=!0,n.UUICheckboxElement.styles=[...re.styles,Ri,v`:host{--uui-checkbox-size:18px}#ticker{position:relative;grid-area:'input';display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;width:var(--uui-checkbox-size);height:var(--uui-checkbox-size);border-radius:var(--uui-checkbox-border-radius,var(--uui-border-radius,3px));color:var(--uui-toggle-color,var(--uui-color-selected-contrast,#fff));background-color:var(--uui-toggle-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-checkbox-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-checkbox-size) * .7)}label:hover input:not([disabled])+#ticker{border-color:var(--uui-checkbox-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}label:focus #ticker{border-color:var(--uui-checkbox-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked:not([disabled])+#ticker,input:indeterminate:not([disabled])+#ticker{border-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])+#ticker,label:hover input:indeterminate:not([disabled])+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked+#ticker,label:focus input:indeterminate+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-check{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms,opacity 120ms;color:var(--uui-color-selected-contrast,#fff);opacity:0}#ticker::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:calc(var(--uui-checkbox-border-radius,var(--uui-border-radius,3px)) * .5);background-color:var(--uui-color-selected,#3544b1);transition:transform 120ms ease,opacity 120ms,background-color 120ms;transform:scale(0);opacity:0}label:hover input:checked:not([disabled])+#ticker::before,label:hover input:indeterminate:not([disabled])+#ticker::before{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:checked+#ticker::before,input:indeterminate+#ticker::before{transform:scale(1);opacity:1}input:checked+#ticker #icon-check,input:indeterminate+#ticker #icon-check{opacity:1}label:focus input:checked+#ticker,label:focus input:indeterminate+#ticker{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:focus+#ticker{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled],[readonly])) label:active input:checked+#ticker::before{transform:scale(.9)}:host(:not([disabled],[readonly])) label:active input:indeterminate+#ticker::before{transform:scale(.9)}:host(:not([pristine]):invalid) #ticker,:host(:not([pristine]):invalid) label:focus input:checked+#ticker,:host(:not([pristine]):invalid) label:focus input:indeterminate+#ticker,:host(:not([pristine]):invalid) label:hover #ticker,:host(:not([pristine]):invalid) label:hover input:checked:not([disabled])+#ticker,:host(:not([pristine]):invalid) label:hover input:indeterminate:not([disabled])+#ticker,:host(:not([pristine])[internals-invalid]) #ticker,:host(:not([pristine])[internals-invalid]) label:focus input:checked+#ticker,:host(:not([pristine])[internals-invalid]) label:focus input:indeterminate+#ticker,:host(:not([pristine])[internals-invalid]) label:hover #ticker,:host(:not([pristine])[internals-invalid]) label:hover input:checked:not([disabled])+#ticker,:host(:not([pristine])[internals-invalid]) label:hover input:indeterminate:not([disabled])+#ticker{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([disabled]) #ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) input:checked+#ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) input:indeterminate+#ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker::before{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker #icon-check{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #ticker{animation:${Fi}}:host([disabled]) input:checked+#ticker #icon-check,:host([disabled]) input:indeterminate+#ticker #icon-check{color:var(--uui-color-disabled-contrast,#c4c4c4)}`],n.UUICheckboxElement=eh([g("uui-checkbox")],n.UUICheckboxElement);/**
307
307
  * @license
308
308
  * Copyright 2018 Google LLC
309
309
  * SPDX-License-Identifier: BSD-3-Clause
310
- */const dr=$t(class extends Et{constructor(i){var e;if(super(i),i.type!==le.ATTRIBUTE||i.name!=="class"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){var t,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!(!((t=this.nt)===null||t===void 0)&&t.has(s))&&this.it.add(s);return this.render(e)}const o=i.element.classList;this.it.forEach(s=>{s in e||(o.remove(s),this.it.delete(s))});for(const s in e){const a=!!e[s];a===this.it.has(s)||!((r=this.nt)===null||r===void 0)&&r.has(s)||(a?(o.add(s),this.it.add(s)):(o.remove(s),this.it.delete(s)))}return J}});var Gc={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},F=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},ne=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},Os=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},Ts=function(i){return{r:ne(i.r,0,255),g:ne(i.g,0,255),b:ne(i.b,0,255),a:ne(i.a)}},pr=function(i){return{r:F(i.r),g:F(i.g),b:F(i.b),a:F(i.a,3)}},Wc=/^#([0-9a-f]{3,8})$/i,Ji=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},Ns=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),c=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(c<0?c+6:c),s:s?a/s*100:0,v:s/255*100,a:o}},Bs=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),c=r*(1-(e-s)*t),h=r*(1-(1-e+s)*t),d=s%6;return{r:255*[r,c,a,a,h,r][d],g:255*[h,r,r,c,a,a][d],b:255*[a,a,h,r,r,c][d],a:o}},Ds=function(i){return{h:Os(i.h),s:ne(i.s,0,100),l:ne(i.l,0,100),a:ne(i.a)}},Vs=function(i){return{h:F(i.h),s:F(i.s),l:F(i.l),a:F(i.a,3)}},js=function(i){return Bs((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},pi=function(i){return{h:(e=Ns(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},qc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Kc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Xc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Yc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hs={string:[[function(i){var e=Wc.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?F(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?F(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=Xc.exec(i)||Yc.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:Ts({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=qc.exec(i)||Kc.exec(i);if(!e)return null;var t,r,o=Ds({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(Gc[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return js(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return xe(e)&&xe(t)&&xe(r)?Ts({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!xe(e)||!xe(t)||!xe(r))return null;var a=Ds({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return js(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!xe(e)||!xe(t)||!xe(r))return null;var a=function(c){return{h:Os(c.h),s:ne(c.s,0,100),v:ne(c.v,0,100),a:ne(c.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return Bs(a)},"hsv"]]},Rs=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},Zc=function(i){return typeof i=="string"?Rs(i.trim(),Hs.string):typeof i=="object"&&i!==null?Rs(i,Hs.object):[null,void 0]},mr=function(i,e){var t=pi(i);return{h:t.h,s:ne(t.s+100*e,0,100),l:t.l,a:t.a}},br=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},Fs=function(i,e){var t=pi(i);return{h:t.h,s:t.s,l:ne(t.l+100*e,0,100),a:t.a}},Gs=function(){function i(e){this.parsed=Zc(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return F(br(this.rgba),2)},i.prototype.isDark=function(){return br(this.rgba)<.5},i.prototype.isLight=function(){return br(this.rgba)>=.5},i.prototype.toHex=function(){return e=pr(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?Ji(F(255*s)):"","#"+Ji(t)+Ji(r)+Ji(o)+a;var e,t,r,o,s,a},i.prototype.toRgb=function(){return pr(this.rgba)},i.prototype.toRgbString=function(){return e=pr(this.rgba),t=e.r,r=e.g,o=e.b,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return Vs(pi(this.rgba))},i.prototype.toHslString=function(){return e=Vs(pi(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=Ns(this.rgba),{h:F(e.h),s:F(e.s),v:F(e.v),a:F(e.a,3)};var e},i.prototype.invert=function(){return se({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),se(mr(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),se(mr(this.rgba,-e))},i.prototype.grayscale=function(){return se(mr(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),se(Fs(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),se(Fs(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?se({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):F(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=pi(this.rgba);return typeof e=="number"?se({h:e,s:t.s,l:t.l,a:t.a}):F(t.h)},i.prototype.isEqual=function(e){return this.toHex()===se(e).toHex()},i}(),se=function(i){return i instanceof Gs?i:new Gs(i)};let eo=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};eo.CHANGE="change";var Qc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,fe=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Qc(e,t,o),o};n.UUIColorAreaElement=class extends v{constructor(){super(...arguments),this.isDraggingGridHandle=!1,this.disabled=!1,this.readonly=!1,this.hue=0,this.saturation=0,this.lightness=0,this.brightness=0,this.alpha=100,this._value="#000"}get value(){return this._value}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t);try{const r=se(e);if(r.isValid()){const{h:o,l:s,a}=r.toHsl();o!==0&&(this.hue=o),this.lightness=s,this.brightness=this.getBrightness(s),this.alpha=a*100}}catch(r){console.error("Something went wrong parsing the color string.",r)}}handleGridDrag(e){if(this.disabled||this.readonly)return;const t=this.shadowRoot.querySelector(".color-area"),r=t.querySelector(".color-area__handle"),{width:o,height:s}=t.getBoundingClientRect();r.focus(),e.preventDefault(),e.stopPropagation(),this.isDraggingGridHandle=!0,vs(t,{onMove:(a,c)=>{isNaN(a)||isNaN(c)||(this.saturation=O(a/o*100,0,100),this.brightness=O(100-c/s*100,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())},onStop:()=>this.isDraggingGridHandle=!1,initialEvent:e})}handleGridKeyDown(e){if(this.disabled)return;const t=e.shiftKey?10:1;e.key==="ArrowLeft"&&(e.preventDefault(),this.saturation=O(this.saturation-t,0,100),this.syncValues()),e.key==="ArrowRight"&&(e.preventDefault(),this.saturation=O(this.saturation+t,0,100),this.syncValues()),e.key==="ArrowUp"&&(e.preventDefault(),this.brightness=O(this.brightness+t,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues()),e.key==="ArrowDown"&&(e.preventDefault(),this.brightness=O(this.brightness-t,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())}getBrightness(e){return O(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return O((200-this.saturation)*e/100*5/10,0,100)}syncValues(){const e=se({h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha/100});this._value=e.toRgbString(),this.dispatchEvent(new eo(eo.CHANGE))}getHexString(e,t,r,o=100){const s=se(`hsla(${e}, ${t}%, ${r}%, ${o/100})`);return s.isValid()?s.toHex():""}render(){const e=this.saturation,t=100-this.brightness;return u`<div part="grid" class="color-area" style="${ve({backgroundColor:this.getHexString(this.hue,100,50)})}" @mousedown="${this.handleGridDrag}" @touchstart="${this.handleGridDrag}"><span part="grid-handle" class="${dr({"color-area__handle":!0,"color-area__handle--dragging":this.isDraggingGridHandle})}" style="${ve({top:`${t}%`,left:`${e}%`,backgroundColor:this.getHexString(this.hue,this.saturation,this.lightness,this.alpha)})}" role="application" tabindex="${k(this.disabled?void 0:"0")}" aria-label="HSB" @keydown="${this.handleGridKeyDown}"></span></div>`}},n.UUIColorAreaElement.styles=[m`:host{display:inline-block;width:280px;height:200px}:host([disabled]){cursor:not-allowed}:host([disabled]) .color-area{user-select:none;pointer-events:none;opacity:.55}:host([readonly]){pointer-events:none;cursor:default}.color-area{position:relative;height:100%;width:100%;background-image:linear-gradient(to bottom,rgba(0,0,0,0) 0,#000 100%),linear-gradient(to right,#fff 0,rgba(255,255,255,0) 100%);box-sizing:border-box;cursor:crosshair;forced-color-adjust:none}.color-area__handle{position:absolute;width:var(--uui-color-area-grid-handle-size,16px);height:var(--uui-color-area-grid-handle-size,16px);border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25);border:solid 2px #fff;margin-top:calc(var(--uui-color-area-grid-handle-size,16px)/ -2);margin-left:calc(var(--uui-color-area-grid-handle-size,16px)/ -2);transition:150ms transform;box-sizing:inherit}.color-area__handle--dragging{cursor:none;transform:scale(1.5)}.color-area__handle--empty{display:none}`],fe([w()],n.UUIColorAreaElement.prototype,"isDraggingGridHandle",2),fe([l({type:Boolean,reflect:!0})],n.UUIColorAreaElement.prototype,"disabled",2),fe([l({type:Boolean,reflect:!0})],n.UUIColorAreaElement.prototype,"readonly",2),fe([l({type:Number})],n.UUIColorAreaElement.prototype,"hue",2),fe([l({type:Number})],n.UUIColorAreaElement.prototype,"saturation",2),fe([l({type:Number})],n.UUIColorAreaElement.prototype,"lightness",2),fe([l({type:Number})],n.UUIColorAreaElement.prototype,"brightness",2),fe([l({type:Number})],n.UUIColorAreaElement.prototype,"alpha",2),fe([l({type:String})],n.UUIColorAreaElement.prototype,"value",1),n.UUIColorAreaElement=fe([b("uui-color-area")],n.UUIColorAreaElement);/**
310
+ */const vr=$t(class extends Et{constructor(i){var e;if(super(i),i.type!==le.ATTRIBUTE||i.name!=="class"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){var t,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!(!((t=this.nt)===null||t===void 0)&&t.has(s))&&this.it.add(s);return this.render(e)}const o=i.element.classList;this.it.forEach(s=>{s in e||(o.remove(s),this.it.delete(s))});for(const s in e){const a=!!e[s];a===this.it.has(s)||!((r=this.nt)===null||r===void 0)&&r.has(s)||(a?(o.add(s),this.it.add(s)):(o.remove(s),this.it.delete(s)))}return J}});var th={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},F=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},ne=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},Gs=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},Ws=function(i){return{r:ne(i.r,0,255),g:ne(i.g,0,255),b:ne(i.b,0,255),a:ne(i.a)}},gr=function(i){return{r:F(i.r),g:F(i.g),b:F(i.b),a:F(i.a,3)}},ih=/^#([0-9a-f]{3,8})$/i,to=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},qs=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),c=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(c<0?c+6:c),s:s?a/s*100:0,v:s/255*100,a:o}},Ks=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),c=r*(1-(e-s)*t),h=r*(1-(1-e+s)*t),d=s%6;return{r:255*[r,c,a,a,h,r][d],g:255*[h,r,r,c,a,a][d],b:255*[a,a,h,r,r,c][d],a:o}},Xs=function(i){return{h:Gs(i.h),s:ne(i.s,0,100),l:ne(i.l,0,100),a:ne(i.a)}},Ys=function(i){return{h:F(i.h),s:F(i.s),l:F(i.l),a:F(i.a,3)}},Zs=function(i){return Ks((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},bi=function(i){return{h:(e=qs(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},oh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,rh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,nh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,sh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Qs={string:[[function(i){var e=ih.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?F(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?F(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=nh.exec(i)||sh.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:Ws({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=oh.exec(i)||rh.exec(i);if(!e)return null;var t,r,o=Xs({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(th[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Zs(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return xe(e)&&xe(t)&&xe(r)?Ws({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!xe(e)||!xe(t)||!xe(r))return null;var a=Xs({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return Zs(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!xe(e)||!xe(t)||!xe(r))return null;var a=function(c){return{h:Gs(c.h),s:ne(c.s,0,100),v:ne(c.v,0,100),a:ne(c.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return Ks(a)},"hsv"]]},Js=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},ah=function(i){return typeof i=="string"?Js(i.trim(),Qs.string):typeof i=="object"&&i!==null?Js(i,Qs.object):[null,void 0]},fr=function(i,e){var t=bi(i);return{h:t.h,s:ne(t.s+100*e,0,100),l:t.l,a:t.a}},yr=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},ea=function(i,e){var t=bi(i);return{h:t.h,s:t.s,l:ne(t.l+100*e,0,100),a:t.a}},ta=function(){function i(e){this.parsed=ah(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return F(yr(this.rgba),2)},i.prototype.isDark=function(){return yr(this.rgba)<.5},i.prototype.isLight=function(){return yr(this.rgba)>=.5},i.prototype.toHex=function(){return e=gr(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?to(F(255*s)):"","#"+to(t)+to(r)+to(o)+a;var e,t,r,o,s,a},i.prototype.toRgb=function(){return gr(this.rgba)},i.prototype.toRgbString=function(){return e=gr(this.rgba),t=e.r,r=e.g,o=e.b,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return Ys(bi(this.rgba))},i.prototype.toHslString=function(){return e=Ys(bi(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=qs(this.rgba),{h:F(e.h),s:F(e.s),v:F(e.v),a:F(e.a,3)};var e},i.prototype.invert=function(){return se({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),se(fr(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),se(fr(this.rgba,-e))},i.prototype.grayscale=function(){return se(fr(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),se(ea(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),se(ea(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?se({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):F(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=bi(this.rgba);return typeof e=="number"?se({h:e,s:t.s,l:t.l,a:t.a}):F(t.h)},i.prototype.isEqual=function(e){return this.toHex()===se(e).toHex()},i}(),se=function(i){return i instanceof ta?i:new ta(i)};let io=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};io.CHANGE="change";var lh=Object.defineProperty,uh=Object.getOwnPropertyDescriptor,fe=(i,e,t,r)=>{for(var o=r>1?void 0:r?uh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lh(e,t,o),o};n.UUIColorAreaElement=class extends f{constructor(){super(...arguments),this.isDraggingGridHandle=!1,this.disabled=!1,this.readonly=!1,this.hue=0,this.saturation=0,this.lightness=0,this.brightness=0,this.alpha=100,this._value="#000"}get value(){return this._value}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t);try{const r=se(e);if(r.isValid()){const{h:o,l:s,a}=r.toHsl();o!==0&&(this.hue=o),this.lightness=s,this.brightness=this.getBrightness(s),this.alpha=a*100}}catch(r){console.error("Something went wrong parsing the color string.",r)}}handleGridDrag(e){if(this.disabled||this.readonly)return;const t=this.shadowRoot.querySelector(".color-area"),r=t.querySelector(".color-area__handle"),{width:o,height:s}=t.getBoundingClientRect();r.focus(),e.preventDefault(),e.stopPropagation(),this.isDraggingGridHandle=!0,xs(t,{onMove:(a,c)=>{isNaN(a)||isNaN(c)||(this.saturation=O(a/o*100,0,100),this.brightness=O(100-c/s*100,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())},onStop:()=>this.isDraggingGridHandle=!1,initialEvent:e})}handleGridKeyDown(e){if(this.disabled)return;const t=e.shiftKey?10:1;e.key==="ArrowLeft"&&(e.preventDefault(),this.saturation=O(this.saturation-t,0,100),this.syncValues()),e.key==="ArrowRight"&&(e.preventDefault(),this.saturation=O(this.saturation+t,0,100),this.syncValues()),e.key==="ArrowUp"&&(e.preventDefault(),this.brightness=O(this.brightness+t,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues()),e.key==="ArrowDown"&&(e.preventDefault(),this.brightness=O(this.brightness-t,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())}getBrightness(e){return O(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return O((200-this.saturation)*e/100*5/10,0,100)}syncValues(){const e=se({h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha/100});this._value=e.toRgbString(),this.dispatchEvent(new io(io.CHANGE))}getHexString(e,t,r,o=100){const s=se(`hsla(${e}, ${t}%, ${r}%, ${o/100})`);return s.isValid()?s.toHex():""}render(){const e=this.saturation,t=100-this.brightness;return u`<div part="grid" class="color-area" style="${ge({backgroundColor:this.getHexString(this.hue,100,50)})}" @mousedown="${this.handleGridDrag}" @touchstart="${this.handleGridDrag}"><span part="grid-handle" class="${vr({"color-area__handle":!0,"color-area__handle--dragging":this.isDraggingGridHandle})}" style="${ge({top:`${t}%`,left:`${e}%`,backgroundColor:this.getHexString(this.hue,this.saturation,this.lightness,this.alpha)})}" role="application" tabindex="${k(this.disabled?void 0:"0")}" aria-label="HSB" @keydown="${this.handleGridKeyDown}"></span></div>`}},n.UUIColorAreaElement.styles=[v`:host{display:inline-block;width:280px;height:200px}:host([disabled]){cursor:not-allowed}:host([disabled]) .color-area{user-select:none;pointer-events:none;opacity:.55}:host([readonly]){pointer-events:none;cursor:default}.color-area{position:relative;height:100%;width:100%;background-image:linear-gradient(to bottom,rgba(0,0,0,0) 0,#000 100%),linear-gradient(to right,#fff 0,rgba(255,255,255,0) 100%);box-sizing:border-box;cursor:crosshair;forced-color-adjust:none}.color-area__handle{position:absolute;width:var(--uui-color-area-grid-handle-size,16px);height:var(--uui-color-area-grid-handle-size,16px);border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25);border:solid 2px #fff;margin-top:calc(var(--uui-color-area-grid-handle-size,16px)/ -2);margin-left:calc(var(--uui-color-area-grid-handle-size,16px)/ -2);transition:150ms transform;box-sizing:inherit}.color-area__handle--dragging{cursor:none;transform:scale(1.5)}.color-area__handle--empty{display:none}`],fe([w()],n.UUIColorAreaElement.prototype,"isDraggingGridHandle",2),fe([l({type:Boolean,reflect:!0})],n.UUIColorAreaElement.prototype,"disabled",2),fe([l({type:Boolean,reflect:!0})],n.UUIColorAreaElement.prototype,"readonly",2),fe([l({type:Number})],n.UUIColorAreaElement.prototype,"hue",2),fe([l({type:Number})],n.UUIColorAreaElement.prototype,"saturation",2),fe([l({type:Number})],n.UUIColorAreaElement.prototype,"lightness",2),fe([l({type:Number})],n.UUIColorAreaElement.prototype,"brightness",2),fe([l({type:Number})],n.UUIColorAreaElement.prototype,"alpha",2),fe([l({type:String})],n.UUIColorAreaElement.prototype,"value",1),n.UUIColorAreaElement=fe([g("uui-color-area")],n.UUIColorAreaElement);/**
311
311
  * @license
312
312
  * Copyright 2020 Google LLC
313
313
  * SPDX-License-Identifier: BSD-3-Clause
314
- */const{I:eh}=Il,Ws=i=>i.strings===void 0,qs=()=>document.createComment(""),mi=(i,e,t)=>{var r;const o=i._$AA.parentNode,s=e===void 0?i._$AB:e._$AA;if(t===void 0){const a=o.insertBefore(qs(),s),c=o.insertBefore(qs(),s);t=new eh(a,c,i,i.options)}else{const a=t._$AB.nextSibling,c=t._$AM,h=c!==i;if(h){let d;(r=t._$AQ)===null||r===void 0||r.call(t,i),t._$AM=i,t._$AP!==void 0&&(d=i._$AU)!==c._$AU&&t._$AP(d)}if(a!==s||h){let d=t._$AA;for(;d!==a;){const f=d.nextSibling;o.insertBefore(d,s),d=f}}}return t},rt=(i,e,t=i)=>(i._$AI(e,t),i),th={},Ks=(i,e=th)=>i._$AH=e,ih=i=>i._$AH,gr=i=>{var e;(e=i._$AP)===null||e===void 0||e.call(i,!1,!0);let t=i._$AA;const r=i._$AB.nextSibling;for(;t!==r;){const o=t.nextSibling;t.remove(),t=o}};/**
314
+ */const{I:ch}=Tl,ia=i=>i.strings===void 0,oa=()=>document.createComment(""),vi=(i,e,t)=>{var r;const o=i._$AA.parentNode,s=e===void 0?i._$AB:e._$AA;if(t===void 0){const a=o.insertBefore(oa(),s),c=o.insertBefore(oa(),s);t=new ch(a,c,i,i.options)}else{const a=t._$AB.nextSibling,c=t._$AM,h=c!==i;if(h){let d;(r=t._$AQ)===null||r===void 0||r.call(t,i),t._$AM=i,t._$AP!==void 0&&(d=i._$AU)!==c._$AU&&t._$AP(d)}if(a!==s||h){let d=t._$AA;for(;d!==a;){const b=d.nextSibling;o.insertBefore(d,s),d=b}}}return t},rt=(i,e,t=i)=>(i._$AI(e,t),i),hh={},ra=(i,e=hh)=>i._$AH=e,dh=i=>i._$AH,wr=i=>{var e;(e=i._$AP)===null||e===void 0||e.call(i,!1,!0);let t=i._$AA;const r=i._$AB.nextSibling;for(;t!==r;){const o=t.nextSibling;t.remove(),t=o}};/**
315
315
  * @license
316
316
  * Copyright 2020 Google LLC
317
317
  * SPDX-License-Identifier: BSD-3-Clause
318
- */const oh=$t(class extends Et{constructor(i){if(super(i),i.type!==le.PROPERTY&&i.type!==le.ATTRIBUTE&&i.type!==le.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ws(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===J||e===I)return e;const t=i.element,r=i.name;if(i.type===le.PROPERTY){if(e===t[r])return J}else if(i.type===le.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return J}else if(i.type===le.ATTRIBUTE&&t.getAttribute(r)===e+"")return J;return Ks(i),e}});var rh={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},G=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},ae=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},Xs=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},Ys=function(i){return{r:ae(i.r,0,255),g:ae(i.g,0,255),b:ae(i.b,0,255),a:ae(i.a)}},vr=function(i){return{r:G(i.r),g:G(i.g),b:G(i.b),a:G(i.a,3)}},nh=/^#([0-9a-f]{3,8})$/i,to=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},Zs=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),c=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(c<0?c+6:c),s:s?a/s*100:0,v:s/255*100,a:o}},Qs=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),c=r*(1-(e-s)*t),h=r*(1-(1-e+s)*t),d=s%6;return{r:255*[r,c,a,a,h,r][d],g:255*[h,r,r,c,a,a][d],b:255*[a,a,h,r,r,c][d],a:o}},Js=function(i){return{h:Xs(i.h),s:ae(i.s,0,100),l:ae(i.l,0,100),a:ae(i.a)}},ea=function(i){return{h:G(i.h),s:G(i.s),l:G(i.l),a:G(i.a,3)}},ta=function(i){return Qs((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},bi=function(i){return{h:(e=Zs(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},sh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ah=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,uh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fr={string:[[function(i){var e=nh.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?G(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?G(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=lh.exec(i)||uh.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:Ys({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=sh.exec(i)||ah.exec(i);if(!e)return null;var t,r,o=Js({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(rh[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return ta(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return Ce(e)&&Ce(t)&&Ce(r)?Ys({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!Ce(e)||!Ce(t)||!Ce(r))return null;var a=Js({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return ta(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!Ce(e)||!Ce(t)||!Ce(r))return null;var a=function(c){return{h:Xs(c.h),s:ae(c.s,0,100),v:ae(c.v,0,100),a:ae(c.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return Qs(a)},"hsv"]]},ia=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},ch=function(i){return typeof i=="string"?ia(i.trim(),fr.string):typeof i=="object"&&i!==null?ia(i,fr.object):[null,void 0]},yr=function(i,e){var t=bi(i);return{h:t.h,s:ae(t.s+100*e,0,100),l:t.l,a:t.a}},wr=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},oa=function(i,e){var t=bi(i);return{h:t.h,s:t.s,l:ae(t.l+100*e,0,100),a:t.a}},io=function(){function i(e){this.parsed=ch(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return G(wr(this.rgba),2)},i.prototype.isDark=function(){return wr(this.rgba)<.5},i.prototype.isLight=function(){return wr(this.rgba)>=.5},i.prototype.toHex=function(){return e=vr(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?to(G(255*s)):"","#"+to(t)+to(r)+to(o)+a;var e,t,r,o,s,a},i.prototype.toRgb=function(){return vr(this.rgba)},i.prototype.toRgbString=function(){return e=vr(this.rgba),t=e.r,r=e.g,o=e.b,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return ea(bi(this.rgba))},i.prototype.toHslString=function(){return e=ea(bi(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=Zs(this.rgba),{h:G(e.h),s:G(e.s),v:G(e.v),a:G(e.a,3)};var e},i.prototype.invert=function(){return ce({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),ce(yr(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),ce(yr(this.rgba,-e))},i.prototype.grayscale=function(){return ce(yr(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),ce(oa(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),ce(oa(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?ce({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):G(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=bi(this.rgba);return typeof e=="number"?ce({h:e,s:t.s,l:t.l,a:t.a}):G(t.h)},i.prototype.isEqual=function(e){return this.toHex()===ce(e).toHex()},i}(),ce=function(i){return i instanceof io?i:new io(i)},ra=[],hh=function(i){i.forEach(function(e){ra.indexOf(e)<0&&(e(io,fr),ra.push(e))})};function dh(i,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in t)r[t[o]]=o;var s={};i.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var c,h,d=r[this.toHex()];if(d)return d;if(a?.closest){var f=this.toRgb(),g=1/0,U="black";if(!s.length)for(var p in t)s[p]=new i(t[p]).toRgb();for(var _ in t){var S=(c=f,h=s[_],Math.pow(c.r-h.r,2)+Math.pow(c.g-h.g,2)+Math.pow(c.b-h.b,2));S<g&&(g=S,U=_)}return U}},e.string.push([function(a){var c=a.toLowerCase(),h=c==="transparent"?"#0000":t[c];return h?new i(h).toRgb():null},"name"])}let zt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};zt.CHANGE="change";var ph=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,j=(i,e,t,r)=>{for(var o=r>1?void 0:r?mh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ph(e,t,o),o};hh([dh]);const na="EyeDropper"in window;n.UUIColorPickerElement=class extends be("label",v){constructor(){super(...arguments),this._value="",this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=0,this._colord=ce("hsl(0, 0%, 0%)"),this.format="hex",this.name="",this.size="medium",this.noFormatToggle=!1,this.inline=!1,this.disabled=!1,this.opacity=!1,this.readonly=!1,this.uppercase=!1,this.swatches=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000","#444","#888","#ccc","#fff"]}set value(e){this.value!==e&&this.setColor(e),this._value=e}get value(){return this._value}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-icon-registry-essential"),$(this,"uui-input"),$(this,"uui-button"),$(this,"uui-button-group"),$(this,"uui-color-swatches"),$(this,"uui-color-swatch"),$(this,"uui-color-area"),$(this,"uui-color-slider"),$(this,"uui-popover-container")}getFormattedValue(e){const t=this.opacity?`${e}a`:e,r=this._colord.toHex(),o=r.length>7?r.substring(0,r.length-2):r,{r:s,g:a,b:c}=this._colord.toRgb(),{h,s:d,l:f}=this._colord.toHsl(),{v:g}=this._colord.toHsv(),U=this._colord.alpha();switch(t){case"hex":return this.setLetterCase(o);case"hexa":return this.setLetterCase(r);case"rgb":return this.setLetterCase(`rgb(${s}, ${a}, ${c})`);case"rgba":return this.setLetterCase(this._colord.toRgbString());case"hsl":return this.setLetterCase(`hsl(${h}, ${d}%, ${f}%)`);case"hsla":return this.setLetterCase(this._colord.toHslString());case"hsv":return this.setLetterCase(`hsv(${h}, ${d}%, ${f}%)`);case"hsva":return this.setLetterCase(`hsva(${h}, ${d}%, ${g}%, ${U})`);default:return""}}getBrightness(e){return O(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return O((200-this.saturation)*e/100*5/10,0,100)}handleFormatToggle(){const e=["hex","rgb","hsl","hsv"],t=(e.indexOf(this.format)+1)%e.length;this.format=e[t],this._syncValues()}handleAlphaChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t=e.target,r={h:this.hue,s:this.saturation,l:this.lightness,a:Math.round(t.value)/100};this.setColor(r)}handleHueChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t={h:e.target.value,s:this.saturation,l:this.lightness,a:this.alpha/100};this.setColor(t)}handleGridChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t=e.target,r={h:this.hue,s:t.saturation,l:t.lightness,a:this.alpha/100};this.setColor(r)}handleInputChange(e){e.stopImmediatePropagation(),this._swatches?.resetSelection(),this.inputValue=this._input.value,this.setColor(this.inputValue)}handleInputKeyDown(e){e.stopImmediatePropagation(),e.key==="Enter"&&(this._swatches?.resetSelection(),this.inputValue=this._input.value,this.setColor(this.inputValue),setTimeout(()=>this._input.select()))}handleColorSwatchChange(e){e.stopImmediatePropagation();const t=e.target;this.setColor(t.value)}handleCopy(){navigator.clipboard.writeText(this._input.value).then(()=>{this._previewButton.classList.add("color-picker__preview-color--copied"),this._previewButton.addEventListener("animationend",()=>{this._previewButton.classList.remove("color-picker__preview-color--copied")})})}handleEyeDropper(){na&&new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(e){if(e===this.value)return;if(!e)return this.alpha=0,this.inputValue="",this._value=e,this.dispatchEvent(new zt(zt.CHANGE)),!0;const t=new io(e),{h:r,s:o,l:s,a}=t.toHsl();this.hue=r,this.saturation=o,this.lightness=s,this.alpha=this.opacity?a*100:100;const c=e;return c&&c.h&&(this.hue=c.h),this._colord=t,this._syncValues(),this.dispatchEvent(new zt(zt.CHANGE)),!0}setLetterCase(e){return typeof e!="string"?"":this.uppercase?e.toUpperCase():e.toLowerCase()}getHexString(e,t,r,o=100){const s=ce(`hsla(${e}, ${t}%, ${r}%, ${o/100})`);return s.isValid()?s.toHex():""}_syncValues(){this.inputValue=this.getFormattedValue(this.format),this._value=this.inputValue}_renderColorPicker(){return u`<div class="${dr({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled})}" aria-disabled="${this.disabled?"true":"false"}"><uui-color-area .value="${this.value}" .hue="${Math.round(this.hue)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @change="${this.handleGridChange}"></uui-color-area><div class="color-picker__controls"><div class="color-picker__sliders"><uui-color-slider label="hue" class="hue-slider" .value="${Math.round(this.hue)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @change="${this.handleHueChange}"></uui-color-slider>${this.opacity?u`<uui-color-slider label="alpha" class="opacity-slider" .value="${Math.round(this.alpha)}" type="opacity" .color="${this.getHexString(this.hue,this.saturation,this.lightness)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @change="${this.handleAlphaChange}"></uui-color-slider>`:""}</div><button type="button" part="preview" class="color-picker__preview color-picker__transparent-bg" title="Copy" aria-label="Copy" style="${ve({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" @click="${this.handleCopy}"></button></div><div class="color-picker__user-input" aria-live="polite"><uui-input label="label" type="text" part="input" name="${this.name}" autocomplete="off" autocapitalize="off" spellcheck="false" .value="${oh(this.inputValue)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @keydown="${this.handleInputKeyDown}" @change="${this.handleInputChange}"></uui-input><uui-button-group>${this.noFormatToggle?"":u`<uui-button label="Toggle color format" @click="${this.handleFormatToggle}" class="color-picker__toggle-format" ?disabled="${this.disabled}" compact="compact"><span>${this.format}</span></uui-button>`} ${na?u`<uui-button label="Select a color" ?disabled="${this.disabled||this.readonly}" @click="${this.handleEyeDropper}" compact="compact"><uui-icon-registry-essential><uui-icon name="colorpicker"></uui-icon></uui-icon-registry-essential></uui-button>`:""}</uui-button-group></div>${this._renderSwatches()}</div>`}_renderSwatches(){return this.swatches?u`<uui-color-swatches id="swatches" class="color-picker__swatches" label="Swatches" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @change="${this.handleColorSwatchChange}">${this.swatches.map(e=>u`<uui-color-swatch label="${e}" .value="${e}"></uui-color-swatch>`)}</uui-color-swatches>`:I}_renderPreviewButton(){return u`<button type="button" part="trigger" aria-label="${this.label||"Open Color picker"}" class="${dr({"color-picker__trigger":!0,"color-dropdown__trigger--disabled":this.disabled,"color-dropdown__trigger--small":this.size==="small","color-dropdown__trigger--medium":this.size==="medium","color-dropdown__trigger--large":this.size==="large","color-picker__transparent-bg":!0})}" style="${ve({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" ?disabled="${this.disabled}" aria-haspopup="true" aria-expanded="false" popovertarget="color-picker-popover"></button><uui-popover-container id="color-picker-popover">${this._renderColorPicker()}</uui-popover-container>`}render(){return this.inline?this._renderColorPicker():this._renderPreviewButton()}},n.UUIColorPickerElement.styles=[m`:host{--uui-look-outline-border:#ddd;--uui-look-outline-border-hover:#aaa;font-size:.8rem;display:block;width:var(--uui-color-picker-width,280px)}:host>button{cursor:pointer}uui-popover-container{width:inherit}.color-picker{width:100%;background-color:#fff;user-select:none;border:solid 1px #e4e4e7}.color-picker__user-input{display:flex;padding:0 .75rem .75rem .75rem}.color-picker__user-input uui-button{border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));border-left:none}.color-picker__preview,.color-picker__trigger{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;position:relative;width:2.25rem;height:2.25rem;border:none;border-radius:50%;background:0 0}.color-picker__preview{cursor:copy;margin-left:.75rem;border-radius:50%}.color-picker__trigger[disabled]{cursor:not-allowed;opacity:.5}.color-picker__preview::before,.color-picker__trigger::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);background-color:var(--preview-color)}.color-dropdown__trigger--empty::before{background-color:transparent}.color-picker__transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-picker__preview-color--copied{animation:pulse .75s}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--uui-palette-space-cadet-light,#26356e)}70%{box-shadow:0 0 0 .5rem transparent}100%{box-shadow:0 0 0 0 transparent}}.color-picker__controls{padding:.75rem;display:flex;align-items:center}.color-picker__sliders{flex:1 1 auto}uui-color-slider:not(:last-of-type){margin-bottom:1rem}.color-picker__toggle-format{min-width:45px;--uui-button-font-size:0.8rem}.color-picker__toggle-format>span{text-transform:uppercase}uui-color-swatches{border-top:solid 1px #d4d4d8;padding:.75rem}button[slot=trigger]{border-radius:50%;cursor:pointer;width:36px;height:36px}uui-input{font-size:.85rem;box-sizing:content-box;flex:1}uui-color-area{width:100%}`],j([A('[part="input"]')],n.UUIColorPickerElement.prototype,"_input",2),j([A(".color-picker__preview")],n.UUIColorPickerElement.prototype,"_previewButton",2),j([A("#swatches")],n.UUIColorPickerElement.prototype,"_swatches",2),j([w()],n.UUIColorPickerElement.prototype,"inputValue",2),j([w()],n.UUIColorPickerElement.prototype,"hue",2),j([w()],n.UUIColorPickerElement.prototype,"saturation",2),j([w()],n.UUIColorPickerElement.prototype,"lightness",2),j([w()],n.UUIColorPickerElement.prototype,"alpha",2),j([w()],n.UUIColorPickerElement.prototype,"_colord",2),j([l()],n.UUIColorPickerElement.prototype,"value",1),j([l()],n.UUIColorPickerElement.prototype,"format",2),j([l()],n.UUIColorPickerElement.prototype,"name",2),j([l()],n.UUIColorPickerElement.prototype,"size",2),j([l({attribute:"no-format-toggle",type:Boolean})],n.UUIColorPickerElement.prototype,"noFormatToggle",2),j([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"inline",2),j([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"disabled",2),j([l({type:Boolean})],n.UUIColorPickerElement.prototype,"opacity",2),j([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"readonly",2),j([l({type:Boolean})],n.UUIColorPickerElement.prototype,"uppercase",2),j([l({attribute:!1})],n.UUIColorPickerElement.prototype,"swatches",2),n.UUIColorPickerElement=j([b("uui-color-picker")],n.UUIColorPickerElement);let oo=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};oo.CHANGE="change";var bh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,ye=(i,e,t,r)=>{for(var o=r>1?void 0:r?gh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&bh(e,t,o),o};n.UUIColorSliderElement=class extends be("label",v){constructor(){super(...arguments),this.type="hue",this.color="",this.min=0,this.max=100,this.precision=1,this.vertical=!1,this.value=0,this.readonly=!1,this.disabled=!1}willUpdate(e){e.has("type")&&(this.type==="hue"?(this.max=360,this.precision=1):this.type==="opacity"&&(this.max=100,this.precision=1))}firstUpdated(){this.container=this.shadowRoot.querySelector("#color-slider"),this.handle=this.container.querySelector("#color-slider__handle")}handleDrag(e){if(this.disabled||this.readonly||!this.container||!this.handle)return;const{width:t,height:r}=this.container.getBoundingClientRect();this.handle.focus(),e.preventDefault(),vs(this.container,{onMove:(o,s)=>{this.vertical?this.value=fs(O(s/r*this.max,this.min,this.max),this.min,this.max):this.value=O(o/t*this.max,this.min,this.max),this.syncValues()},initialEvent:e})}handleClick(e){this.disabled||this.readonly||(this.value=this.getValueFromMousePosition(e),this.syncValues())}handleKeyDown(e){const t=e.shiftKey?10:1;e.key==="ArrowLeft"?(e.preventDefault(),this.value=O(this.value-t,this.min,this.max),this.syncValues()):e.key==="ArrowRight"?(e.preventDefault(),this.value=O(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowUp"?(e.preventDefault(),this.value=O(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowDown"?(e.preventDefault(),this.value=O(this.value-t,this.min,this.max),this.syncValues()):e.key==="Home"?(e.preventDefault(),this.value=this.min,this.syncValues()):e.key==="End"&&(e.preventDefault(),this.value=this.max,this.syncValues())}getValueFromMousePosition(e){return this.vertical?this.getValueFromYCoordinate(e.clientY):this.getValueFromXCoordinate(e.clientX)}getValueFromTouchPosition(e){return this.vertical?this.getValueFromYCoordinate(e.touches[0].clientY):this.getValueFromXCoordinate(e.touches[0].clientX)}getValueFromXCoordinate(e){const{left:t,width:r}=this.container.getBoundingClientRect();return O(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}getValueFromYCoordinate(e){const{top:t,height:r}=this.container.getBoundingClientRect();return O(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}roundToPrecision(e){const t=1/this.precision;return Math.ceil(e*t)/t}syncValues(){this.dispatchEvent(new oo(oo.CHANGE))}get cssPropCurrentValue(){return this.value===0?this.vertical?100:0:100/(this.vertical?this.max/fs(this.value,this.min,this.max):this.max/this.value)}render(){return u`<div part="slider" id="color-slider" role="slider" aria-label="${this.label}" aria-orientation="${this.vertical?"vertical":"horizontal"}" aria-valuemin="${Math.round(this.min)}" aria-valuemax="${Math.round(this.max)}" aria-valuenow="${Math.round(this.value)}" @click="${this.handleClick}" @mousedown="${this.handleDrag}" @touchstart="${this.handleDrag}" @keydown="${this.handleKeyDown}">${this.type==="opacity"?u`<div id="current-hue" style="${ve({backgroundImage:`linear-gradient(to ${this.vertical?"top":"right"},
318
+ */const ph=$t(class extends Et{constructor(i){if(super(i),i.type!==le.PROPERTY&&i.type!==le.ATTRIBUTE&&i.type!==le.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ia(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===J||e===I)return e;const t=i.element,r=i.name;if(i.type===le.PROPERTY){if(e===t[r])return J}else if(i.type===le.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return J}else if(i.type===le.ATTRIBUTE&&t.getAttribute(r)===e+"")return J;return ra(i),e}});var mh={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},G=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},ae=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},na=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},sa=function(i){return{r:ae(i.r,0,255),g:ae(i.g,0,255),b:ae(i.b,0,255),a:ae(i.a)}},_r=function(i){return{r:G(i.r),g:G(i.g),b:G(i.b),a:G(i.a,3)}},bh=/^#([0-9a-f]{3,8})$/i,oo=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},aa=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),c=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(c<0?c+6:c),s:s?a/s*100:0,v:s/255*100,a:o}},la=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),c=r*(1-(e-s)*t),h=r*(1-(1-e+s)*t),d=s%6;return{r:255*[r,c,a,a,h,r][d],g:255*[h,r,r,c,a,a][d],b:255*[a,a,h,r,r,c][d],a:o}},ua=function(i){return{h:na(i.h),s:ae(i.s,0,100),l:ae(i.l,0,100),a:ae(i.a)}},ca=function(i){return{h:G(i.h),s:G(i.s),l:G(i.l),a:G(i.a,3)}},ha=function(i){return la((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},gi=function(i){return{h:(e=aa(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},vh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,yh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ur={string:[[function(i){var e=bh.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?G(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?G(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=fh.exec(i)||yh.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:sa({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=vh.exec(i)||gh.exec(i);if(!e)return null;var t,r,o=ua({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(mh[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return ha(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return Ce(e)&&Ce(t)&&Ce(r)?sa({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!Ce(e)||!Ce(t)||!Ce(r))return null;var a=ua({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return ha(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!Ce(e)||!Ce(t)||!Ce(r))return null;var a=function(c){return{h:na(c.h),s:ae(c.s,0,100),v:ae(c.v,0,100),a:ae(c.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return la(a)},"hsv"]]},da=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},wh=function(i){return typeof i=="string"?da(i.trim(),Ur.string):typeof i=="object"&&i!==null?da(i,Ur.object):[null,void 0]},kr=function(i,e){var t=gi(i);return{h:t.h,s:ae(t.s+100*e,0,100),l:t.l,a:t.a}},$r=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},pa=function(i,e){var t=gi(i);return{h:t.h,s:t.s,l:ae(t.l+100*e,0,100),a:t.a}},ro=function(){function i(e){this.parsed=wh(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return G($r(this.rgba),2)},i.prototype.isDark=function(){return $r(this.rgba)<.5},i.prototype.isLight=function(){return $r(this.rgba)>=.5},i.prototype.toHex=function(){return e=_r(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?oo(G(255*s)):"","#"+oo(t)+oo(r)+oo(o)+a;var e,t,r,o,s,a},i.prototype.toRgb=function(){return _r(this.rgba)},i.prototype.toRgbString=function(){return e=_r(this.rgba),t=e.r,r=e.g,o=e.b,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return ca(gi(this.rgba))},i.prototype.toHslString=function(){return e=ca(gi(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=aa(this.rgba),{h:G(e.h),s:G(e.s),v:G(e.v),a:G(e.a,3)};var e},i.prototype.invert=function(){return ce({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),ce(kr(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),ce(kr(this.rgba,-e))},i.prototype.grayscale=function(){return ce(kr(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),ce(pa(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),ce(pa(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?ce({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):G(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=gi(this.rgba);return typeof e=="number"?ce({h:e,s:t.s,l:t.l,a:t.a}):G(t.h)},i.prototype.isEqual=function(e){return this.toHex()===ce(e).toHex()},i}(),ce=function(i){return i instanceof ro?i:new ro(i)},ma=[],_h=function(i){i.forEach(function(e){ma.indexOf(e)<0&&(e(ro,Ur),ma.push(e))})};function Uh(i,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in t)r[t[o]]=o;var s={};i.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var c,h,d=r[this.toHex()];if(d)return d;if(a?.closest){var b=this.toRgb(),m=1/0,U="black";if(!s.length)for(var p in t)s[p]=new i(t[p]).toRgb();for(var _ in t){var S=(c=b,h=s[_],Math.pow(c.r-h.r,2)+Math.pow(c.g-h.g,2)+Math.pow(c.b-h.b,2));S<m&&(m=S,U=_)}return U}},e.string.push([function(a){var c=a.toLowerCase(),h=c==="transparent"?"#0000":t[c];return h?new i(h).toRgb():null},"name"])}let zt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};zt.CHANGE="change";var kh=Object.defineProperty,$h=Object.getOwnPropertyDescriptor,j=(i,e,t,r)=>{for(var o=r>1?void 0:r?$h(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&kh(e,t,o),o};_h([Uh]);const ba="EyeDropper"in window;n.UUIColorPickerElement=class extends be("label",f){constructor(){super(...arguments),this._value="",this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=0,this._colord=ce("hsl(0, 0%, 0%)"),this.format="hex",this.name="",this.size="medium",this.noFormatToggle=!1,this.inline=!1,this.disabled=!1,this.opacity=!1,this.readonly=!1,this.uppercase=!1,this.swatches=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000","#444","#888","#ccc","#fff"]}set value(e){this.value!==e&&this.setColor(e),this._value=e}get value(){return this._value}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-icon-registry-essential"),$(this,"uui-input"),$(this,"uui-button"),$(this,"uui-button-group"),$(this,"uui-color-swatches"),$(this,"uui-color-swatch"),$(this,"uui-color-area"),$(this,"uui-color-slider"),$(this,"uui-popover-container")}getFormattedValue(e){const t=this.opacity?`${e}a`:e,r=this._colord.toHex(),o=r.length>7?r.substring(0,r.length-2):r,{r:s,g:a,b:c}=this._colord.toRgb(),{h,s:d,l:b}=this._colord.toHsl(),{v:m}=this._colord.toHsv(),U=this._colord.alpha();switch(t){case"hex":return this.setLetterCase(o);case"hexa":return this.setLetterCase(r);case"rgb":return this.setLetterCase(`rgb(${s}, ${a}, ${c})`);case"rgba":return this.setLetterCase(this._colord.toRgbString());case"hsl":return this.setLetterCase(`hsl(${h}, ${d}%, ${b}%)`);case"hsla":return this.setLetterCase(this._colord.toHslString());case"hsv":return this.setLetterCase(`hsv(${h}, ${d}%, ${b}%)`);case"hsva":return this.setLetterCase(`hsva(${h}, ${d}%, ${m}%, ${U})`);default:return""}}getBrightness(e){return O(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return O((200-this.saturation)*e/100*5/10,0,100)}handleFormatToggle(){const e=["hex","rgb","hsl","hsv"],t=(e.indexOf(this.format)+1)%e.length;this.format=e[t],this._syncValues()}handleAlphaChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t=e.target,r={h:this.hue,s:this.saturation,l:this.lightness,a:Math.round(t.value)/100};this.setColor(r)}handleHueChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t={h:e.target.value,s:this.saturation,l:this.lightness,a:this.alpha/100};this.setColor(t)}handleGridChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t=e.target,r={h:this.hue,s:t.saturation,l:t.lightness,a:this.alpha/100};this.setColor(r)}handleInputChange(e){e.stopImmediatePropagation(),this._swatches?.resetSelection(),this.inputValue=this._input.value,this.setColor(this.inputValue)}handleInputKeyDown(e){e.stopImmediatePropagation(),e.key==="Enter"&&(this._swatches?.resetSelection(),this.inputValue=this._input.value,this.setColor(this.inputValue),setTimeout(()=>this._input.select()))}handleColorSwatchChange(e){e.stopImmediatePropagation();const t=e.target;this.setColor(t.value)}handleCopy(){navigator.clipboard.writeText(this._input.value).then(()=>{this._previewButton.classList.add("color-picker__preview-color--copied"),this._previewButton.addEventListener("animationend",()=>{this._previewButton.classList.remove("color-picker__preview-color--copied")})})}handleEyeDropper(){ba&&new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(e){if(e===this.value)return;if(!e)return this.alpha=0,this.inputValue="",this._value=e,this.dispatchEvent(new zt(zt.CHANGE)),!0;const t=new ro(e),{h:r,s:o,l:s,a}=t.toHsl();this.hue=r,this.saturation=o,this.lightness=s,this.alpha=this.opacity?a*100:100;const c=e;return c&&c.h&&(this.hue=c.h),this._colord=t,this._syncValues(),this.dispatchEvent(new zt(zt.CHANGE)),!0}setLetterCase(e){return typeof e!="string"?"":this.uppercase?e.toUpperCase():e.toLowerCase()}getHexString(e,t,r,o=100){const s=ce(`hsla(${e}, ${t}%, ${r}%, ${o/100})`);return s.isValid()?s.toHex():""}_syncValues(){this.inputValue=this.getFormattedValue(this.format),this._value=this.inputValue}_renderColorPicker(){return u`<div class="${vr({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled})}" aria-disabled="${this.disabled?"true":"false"}"><uui-color-area .value="${this.value}" .hue="${Math.round(this.hue)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @change="${this.handleGridChange}"></uui-color-area><div class="color-picker__controls"><div class="color-picker__sliders"><uui-color-slider label="hue" class="hue-slider" .value="${Math.round(this.hue)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @change="${this.handleHueChange}"></uui-color-slider>${this.opacity?u`<uui-color-slider label="alpha" class="opacity-slider" .value="${Math.round(this.alpha)}" type="opacity" .color="${this.getHexString(this.hue,this.saturation,this.lightness)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @change="${this.handleAlphaChange}"></uui-color-slider>`:""}</div><button type="button" part="preview" class="color-picker__preview color-picker__transparent-bg" title="Copy" aria-label="Copy" style="${ge({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" @click="${this.handleCopy}"></button></div><div class="color-picker__user-input" aria-live="polite"><uui-input label="label" type="text" part="input" name="${this.name}" autocomplete="off" autocapitalize="off" spellcheck="false" .value="${ph(this.inputValue)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @keydown="${this.handleInputKeyDown}" @change="${this.handleInputChange}"></uui-input><uui-button-group>${this.noFormatToggle?"":u`<uui-button label="Toggle color format" @click="${this.handleFormatToggle}" class="color-picker__toggle-format" ?disabled="${this.disabled}" compact="compact"><span>${this.format}</span></uui-button>`} ${ba?u`<uui-button label="Select a color" ?disabled="${this.disabled||this.readonly}" @click="${this.handleEyeDropper}" compact="compact"><uui-icon-registry-essential><uui-icon name="colorpicker"></uui-icon></uui-icon-registry-essential></uui-button>`:""}</uui-button-group></div>${this._renderSwatches()}</div>`}_renderSwatches(){return this.swatches?u`<uui-color-swatches id="swatches" class="color-picker__swatches" label="Swatches" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @change="${this.handleColorSwatchChange}">${this.swatches.map(e=>u`<uui-color-swatch label="${e}" .value="${e}"></uui-color-swatch>`)}</uui-color-swatches>`:I}_renderPreviewButton(){return u`<button type="button" part="trigger" aria-label="${this.label||"Open Color picker"}" class="${vr({"color-picker__trigger":!0,"color-dropdown__trigger--disabled":this.disabled,"color-dropdown__trigger--small":this.size==="small","color-dropdown__trigger--medium":this.size==="medium","color-dropdown__trigger--large":this.size==="large","color-picker__transparent-bg":!0})}" style="${ge({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" ?disabled="${this.disabled}" aria-haspopup="true" aria-expanded="false" popovertarget="color-picker-popover"></button><uui-popover-container id="color-picker-popover">${this._renderColorPicker()}</uui-popover-container>`}render(){return this.inline?this._renderColorPicker():this._renderPreviewButton()}},n.UUIColorPickerElement.styles=[v`:host{--uui-look-outline-border:#ddd;--uui-look-outline-border-hover:#aaa;font-size:.8rem;display:block;width:var(--uui-color-picker-width,280px)}:host>button{cursor:pointer}uui-popover-container{width:inherit}.color-picker{width:100%;background-color:#fff;user-select:none;border:solid 1px #e4e4e7}.color-picker__user-input{display:flex;padding:0 .75rem .75rem .75rem}.color-picker__user-input uui-button{border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));border-left:none}.color-picker__preview,.color-picker__trigger{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;position:relative;width:2.25rem;height:2.25rem;border:none;border-radius:50%;background:0 0}.color-picker__preview{cursor:copy;margin-left:.75rem;border-radius:50%}.color-picker__trigger[disabled]{cursor:not-allowed;opacity:.5}.color-picker__preview::before,.color-picker__trigger::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);background-color:var(--preview-color)}.color-dropdown__trigger--empty::before{background-color:transparent}.color-picker__transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-picker__preview-color--copied{animation:pulse .75s}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--uui-palette-space-cadet-light,#26356e)}70%{box-shadow:0 0 0 .5rem transparent}100%{box-shadow:0 0 0 0 transparent}}.color-picker__controls{padding:.75rem;display:flex;align-items:center}.color-picker__sliders{flex:1 1 auto}uui-color-slider:not(:last-of-type){margin-bottom:1rem}.color-picker__toggle-format{min-width:45px;--uui-button-font-size:0.8rem}.color-picker__toggle-format>span{text-transform:uppercase}uui-color-swatches{border-top:solid 1px #d4d4d8;padding:.75rem}button[slot=trigger]{border-radius:50%;cursor:pointer;width:36px;height:36px}uui-input{font-size:.85rem;box-sizing:content-box;flex:1}uui-color-area{width:100%}`],j([A('[part="input"]')],n.UUIColorPickerElement.prototype,"_input",2),j([A(".color-picker__preview")],n.UUIColorPickerElement.prototype,"_previewButton",2),j([A("#swatches")],n.UUIColorPickerElement.prototype,"_swatches",2),j([w()],n.UUIColorPickerElement.prototype,"inputValue",2),j([w()],n.UUIColorPickerElement.prototype,"hue",2),j([w()],n.UUIColorPickerElement.prototype,"saturation",2),j([w()],n.UUIColorPickerElement.prototype,"lightness",2),j([w()],n.UUIColorPickerElement.prototype,"alpha",2),j([w()],n.UUIColorPickerElement.prototype,"_colord",2),j([l()],n.UUIColorPickerElement.prototype,"value",1),j([l()],n.UUIColorPickerElement.prototype,"format",2),j([l()],n.UUIColorPickerElement.prototype,"name",2),j([l()],n.UUIColorPickerElement.prototype,"size",2),j([l({attribute:"no-format-toggle",type:Boolean})],n.UUIColorPickerElement.prototype,"noFormatToggle",2),j([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"inline",2),j([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"disabled",2),j([l({type:Boolean})],n.UUIColorPickerElement.prototype,"opacity",2),j([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"readonly",2),j([l({type:Boolean})],n.UUIColorPickerElement.prototype,"uppercase",2),j([l({attribute:!1})],n.UUIColorPickerElement.prototype,"swatches",2),n.UUIColorPickerElement=j([g("uui-color-picker")],n.UUIColorPickerElement);let no=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};no.CHANGE="change";var Eh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,ye=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ih(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Eh(e,t,o),o};n.UUIColorSliderElement=class extends be("label",f){constructor(){super(...arguments),this.type="hue",this.color="",this.min=0,this.max=100,this.precision=1,this.vertical=!1,this.value=0,this.readonly=!1,this.disabled=!1}willUpdate(e){e.has("type")&&(this.type==="hue"?(this.max=360,this.precision=1):this.type==="opacity"&&(this.max=100,this.precision=1))}firstUpdated(){this.container=this.shadowRoot.querySelector("#color-slider"),this.handle=this.container.querySelector("#color-slider__handle")}handleDrag(e){if(this.disabled||this.readonly||!this.container||!this.handle)return;const{width:t,height:r}=this.container.getBoundingClientRect();this.handle.focus(),e.preventDefault(),xs(this.container,{onMove:(o,s)=>{this.vertical?this.value=Cs(O(s/r*this.max,this.min,this.max),this.min,this.max):this.value=O(o/t*this.max,this.min,this.max),this.syncValues()},initialEvent:e})}handleClick(e){this.disabled||this.readonly||(this.value=this.getValueFromMousePosition(e),this.syncValues())}handleKeyDown(e){const t=e.shiftKey?10:1;e.key==="ArrowLeft"?(e.preventDefault(),this.value=O(this.value-t,this.min,this.max),this.syncValues()):e.key==="ArrowRight"?(e.preventDefault(),this.value=O(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowUp"?(e.preventDefault(),this.value=O(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowDown"?(e.preventDefault(),this.value=O(this.value-t,this.min,this.max),this.syncValues()):e.key==="Home"?(e.preventDefault(),this.value=this.min,this.syncValues()):e.key==="End"&&(e.preventDefault(),this.value=this.max,this.syncValues())}getValueFromMousePosition(e){return this.vertical?this.getValueFromYCoordinate(e.clientY):this.getValueFromXCoordinate(e.clientX)}getValueFromTouchPosition(e){return this.vertical?this.getValueFromYCoordinate(e.touches[0].clientY):this.getValueFromXCoordinate(e.touches[0].clientX)}getValueFromXCoordinate(e){const{left:t,width:r}=this.container.getBoundingClientRect();return O(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}getValueFromYCoordinate(e){const{top:t,height:r}=this.container.getBoundingClientRect();return O(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}roundToPrecision(e){const t=1/this.precision;return Math.ceil(e*t)/t}syncValues(){this.dispatchEvent(new no(no.CHANGE))}get cssPropCurrentValue(){return this.value===0?this.vertical?100:0:100/(this.vertical?this.max/Cs(this.value,this.min,this.max):this.max/this.value)}render(){return u`<div part="slider" id="color-slider" role="slider" aria-label="${this.label}" aria-orientation="${this.vertical?"vertical":"horizontal"}" aria-valuemin="${Math.round(this.min)}" aria-valuemax="${Math.round(this.max)}" aria-valuenow="${Math.round(this.value)}" @click="${this.handleClick}" @mousedown="${this.handleDrag}" @touchstart="${this.handleDrag}" @keydown="${this.handleKeyDown}">${this.type==="opacity"?u`<div id="current-hue" style="${ge({backgroundImage:`linear-gradient(to ${this.vertical?"top":"right"},
319
319
  transparent 0%,
320
320
  ${this.color} 100%
321
- )`})}"></div>`:""} <span id="color-slider__handle" style="--current-value:${this.cssPropCurrentValue}" tabindex="${k(this.disabled?void 0:"0")}"></span></div>${Math.round(this.value)}`}},n.UUIColorSliderElement.styles=[m`:host{--uui-slider-height:15px;--uui-slider-handle-size:17px;--uui-slider-background-image:#fff;--uui-slider-background-size:100%;--uui-slider-background-position:top left;display:block}:host([type=hue]){--uui-slider-background-image:linear-gradient(
321
+ )`})}"></div>`:""} <span id="color-slider__handle" style="--current-value:${this.cssPropCurrentValue}" tabindex="${k(this.disabled?void 0:"0")}"></span></div>${Math.round(this.value)}`}},n.UUIColorSliderElement.styles=[v`:host{--uui-slider-height:15px;--uui-slider-handle-size:17px;--uui-slider-background-image:#fff;--uui-slider-background-size:100%;--uui-slider-background-position:top left;display:block}:host([type=hue]){--uui-slider-background-image:linear-gradient(
322
322
  to right,
323
323
  rgb(255, 0, 0) 0%,
324
324
  rgb(255, 255, 0) 17%,
@@ -340,25 +340,25 @@
340
340
  45deg,
341
341
  var(--uui-palette-grey,#c4c4c4) 25%,
342
342
  transparent 25%
343
- ),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, var(--uui-palette-grey,#c4c4c4) 25%, transparent 25%);--uui-slider-background-size:10px 10px;--uui-slider-background-position:0 0,0 0,-5px -5px,5px 5px}#color-slider{position:relative;background-image:var(--uui-slider-background-image);background-size:var(--uui-slider-background-size);background-position:var(--uui-slider-background-position);border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:100%;height:var(--uui-slider-height)}:host([vertical]) #color-slider{width:var(--uui-slider-height);height:300px}:host([disabled]){cursor:not-allowed}:host([disabled]) #color-slider{user-select:none;pointer-events:none;opacity:.55}:host([readonly]){cursor:default}:host([readonly]) #color-slider{pointer-events:none}#color-slider__handle{position:absolute;top:calc(50% - var(--uui-slider-handle-size)/ 2);width:var(--uui-slider-handle-size);height:var(--uui-slider-handle-size);background-color:#fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25);margin-left:calc(var(--uui-slider-handle-size)/ -2);left:var(--current-value,0)}:host([vertical]) #color-slider__handle{left:unset;top:var(--current-value,100%);margin-left:-1px;margin-top:calc(var(--uui-slider-handle-size)/ -2)}::slotted(:first-child){border-radius:3px;position:absolute;top:0;left:0;width:100%;height:100%}#current-hue{border-radius:3px;position:absolute;inset:0}`],ye([l({reflect:!0})],n.UUIColorSliderElement.prototype,"type",2),ye([l()],n.UUIColorSliderElement.prototype,"color",2),ye([l({type:Number})],n.UUIColorSliderElement.prototype,"min",2),ye([l({type:Number})],n.UUIColorSliderElement.prototype,"max",2),ye([l({type:Number})],n.UUIColorSliderElement.prototype,"precision",2),ye([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"vertical",2),ye([l()],n.UUIColorSliderElement.prototype,"value",2),ye([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"readonly",2),ye([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"disabled",2),n.UUIColorSliderElement=ye([b("uui-color-slider")],n.UUIColorSliderElement);var vh=Object.defineProperty,fh=Object.getOwnPropertyDescriptor,Mt=(i,e,t,r)=>{for(var o=r>1?void 0:r?fh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vh(e,t,o),o};n.UUIColorSwatchElement=class extends be("label",_t(hi(v))){constructor(){super(),this.disabled=!1,this.readonly=!1,this.showLabel=!1,this.addEventListener("click",this._setAriaAttributes)}get value(){return this._value??""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get color(){return this._color}set color(e){const t=this._color;this._color=e,this.requestUpdate("color",t)}_setAriaAttributes(){this.selectable&&this.setAttribute("aria-checked",this.selected.toString())}firstUpdated(){this._setAriaAttributes()}willUpdate(e){(e.has("disabled")||e.has("readonly"))&&this.selectable&&(this.selectable=!this.disabled&&!this.readonly,this.deselectable=!this.disabled&&!this.readonly),(e.has("selectable")||e.has("selected"))&&this._setAriaAttributes()}render(){return u`<button id="swatch" aria-label="${this.label}" ?disabled="${this.disabled}" title="${this.label}"><div class="color-swatch color-swatch--transparent-bg"><div class="color-swatch__color" style="background-color:var(--uui-swatch-color,${this.color??this.value})"></div><div class="color-swatch__check" style="color:var(--uui-swatch-color,${this.color??this.value})">${Gi}</div></div>${this._renderWithLabel()}</button>`}_renderWithLabel(){return this.showLabel?u`<div class="color-swatch__label"><strong>${this.renderLabel()}</strong> ${this.value}</div>`:I}},n.UUIColorSwatchElement.styles=[m`:host{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;transition:box-shadow .1s ease-out;flex-direction:column}*,:host(*){outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(:focus-within:not([disabled])){outline:0}:host(:focus:not([disabled])) #swatch{outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-swatch-border-width,1px);outline-style:solid;outline-offset:var(--uui-swatch-border-width,1px)}:host([selectable]) #swatch{cursor:pointer}:host([disabled]){cursor:not-allowed;opacity:.5}:host([readonly]){cursor:default}#swatch{cursor:inherit;outline:0;background:0 0;border:none;padding:0;margin:0;text-align:left;border-radius:3px}:host(:not([selectable])) #swatch:focus{outline:0}:host([selectable]) #swatch::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-swatch-border-width,1px) * -1);width:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));height:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));box-sizing:border-box;border:var(--uui-swatch-border-width,2px) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-swatch-border-width,1px));transition:opacity .1s ease-out;opacity:0}:host([selectable]:not([disabled]):hover) #swatch::after{opacity:.33}:host([selectable][selected]:not([disabled]):hover) #swatch::after{opacity:.66}:host([selectable][selected]:not([disabled])) #swatch::after{opacity:1}.color-swatch{position:relative;width:var(--uui-swatch-size,25px);height:var(--uui-swatch-size,25px);border-radius:3px;display:flex;flex-direction:column;justify-content:center;align-items:center}:host([show-label]) .color-swatch{width:120px;height:50px}.color-swatch.color-swatch--transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-swatch__color{width:100%;height:100%;border:1px solid rgba(0,0,0,.125);border-radius:inherit;box-sizing:border-box}:host([show-label]) .color-swatch__color{border-radius:3px 3px 0 0}.color-swatch__check{position:absolute;vertical-align:middle;width:calc(var(--uui-swatch-size,25px)/ 2);height:calc(var(--uui-swatch-size,25px)/ 2);line-height:0;filter:invert(1) grayscale(1) contrast(9);pointer-events:none;opacity:0}:host([selected]) .color-swatch__check{opacity:1}.label,slot[name=label]::slotted(*){font-size:var(--uui-size-4,12px)}.color-swatch__label{max-width:120px;box-sizing:border-box;padding:var(--uui-size-space-1,3px) var(--uui-size-space-2,6px);line-height:1.5;display:flex;flex-direction:column;background:#fff;border:1px solid var(--uui-color-border,#d8d7d9);border-radius:0 0 3px 3px;font-size:var(--uui-size-4,12px)}.color-swatch__label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}`],Mt([l()],n.UUIColorSwatchElement.prototype,"value",1),Mt([l()],n.UUIColorSwatchElement.prototype,"color",1),Mt([l({type:Boolean,reflect:!0})],n.UUIColorSwatchElement.prototype,"disabled",2),Mt([l({type:Boolean,reflect:!0})],n.UUIColorSwatchElement.prototype,"readonly",2),Mt([l({type:Boolean,attribute:"show-label",reflect:!0})],n.UUIColorSwatchElement.prototype,"showLabel",2),n.UUIColorSwatchElement=Mt([b("uui-color-swatch")],n.UUIColorSwatchElement);let Lt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Lt.CHANGE="change";var yh=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,gi=(i,e,t,r)=>{for(var o=r>1?void 0:r?wh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&yh(e,t,o),o};n.UUIColorSwatchesElement=class extends be("label",v){constructor(){super(),this.value="",this.disabled=!1,this.readonly=!1,this._onSelected=e=>{const t=e.target;this._swatches.includes(t)&&(this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t,this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.dispatchEvent(new Lt(Lt.CHANGE)))},this._onDeselected=e=>{const t=e.target;this._swatches.includes(t)&&(this._activeElement===t&&(this._activeElement=void 0),this._selectedElement===t&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0,this.value="",this.dispatchEvent(new Lt(Lt.CHANGE))))},this.addEventListener(De.SELECTED,this._onSelected),this.addEventListener(De.DESELECTED,this._onDeselected)}get _activeElement(){return this.__activeElement}set _activeElement(e){this.__activeElement&&(this.__activeElement.active=!1),e&&(e.active=!0,this.__activeElement=e)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}willUpdate(e){e.has("label")&&this.setAttribute("aria-label",this.label)}_handleSlotChange(){!this._swatches||this._swatches.length===0||this._swatches.forEach(e=>{e.setAttribute("aria-checked","false"),e.setAttribute("role","radio"),this.disabled?e.setAttribute("disabled",""):e.setAttribute("selectable","selectable"),this.readonly&&e.setAttribute("readonly",""),this.value!==""&&e.value===this.value&&(e.selected=!0,e.setAttribute("aria-checked","true"),this._selectedElement=e,this._activeElement=this._selectedElement)})}resetSelection(){this._swatches.forEach(e=>{e.selected=!1,e.active=!1,e.selectable=!e.disabled}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},n.UUIColorSwatchesElement.styles=[m`:host{display:flex;flex-wrap:wrap;gap:.4rem}`],gi([l()],n.UUIColorSwatchesElement.prototype,"value",2),gi([l({type:Boolean,reflect:!0})],n.UUIColorSwatchesElement.prototype,"disabled",2),gi([l({type:Boolean,reflect:!0})],n.UUIColorSwatchesElement.prototype,"readonly",2),gi([Ne({selector:"uui-color-swatch"})],n.UUIColorSwatchesElement.prototype,"_swatches",2),n.UUIColorSwatchesElement=gi([b("uui-color-swatches")],n.UUIColorSwatchesElement);let he=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};he.CHANGE="change",he.INNER_SLOT_CHANGE="inner-slot-change";var _h=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,sa=i=>{throw TypeError(i)},Ve=(i,e,t,r)=>{for(var o=r>1?void 0:r?Uh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_h(e,t,o),o},kh=(i,e,t)=>e.has(i)||sa("Cannot "+t),$h=(i,e,t)=>e.has(i)?sa("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),aa=(i,e,t)=>(kh(i,e,"access private method"),t),ro,_r;n.UUIComboboxListElement=class extends v{constructor(){super(...arguments),$h(this,ro),this.displayValue="",this._value="",this._activeElementValue=null,this._onSlotChange=()=>{aa(this,ro,_r).call(this),this._updateSelection(),this.dispatchEvent(new he(he.INNER_SLOT_CHANGE))},this._onSelected=e=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=e.composedPath()[0],this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new he(he.CHANGE))},this._onDeselected=e=>{const t=e.composedPath()[0];this._selectedElement===t&&(this.value="",this.displayValue="",this.dispatchEvent(new he(he.CHANGE)))},this._moveIndex=e=>{const t=Math.min(Math.max(this._getActiveIndex+e,0),this._options.length-1);this._goToIndex(t)},this._onKeyDown=e=>{if(!(this._options.length<=0))switch(e.key){case"ArrowUp":e.preventDefault(),e.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":e.preventDefault(),e.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{e.preventDefault(),this._goToIndex(0);break}case"Enter":{e.preventDefault(),this._getActiveElement?.click();break}case"End":{e.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(e){if(this._value===e)return;const t=this._value;this._value=e,this._updateSelection(),this.requestUpdate("value",t)}get for(){return this._for}set for(e){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=e,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(De.SELECTED,this._onSelected),this.addEventListener(De.DESELECTED,this._onDeselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(De.SELECTED,this._onSelected),this.removeEventListener(De.DESELECTED,this._onDeselected)}_updateSelection(){this.displayValue="";for(const e of this._options)e.value===this._value?(this.displayValue=e.displayValue||"",e.selected=!0):e.selected=!1}get _getActiveIndex(){return this._activeElementValue===null?-1:this._options.findIndex(e=>e.value===this._activeElementValue)}get _getActiveElement(){return this._activeElementValue===null?null:this._options.find(e=>e.value===this._activeElementValue)}_goToIndex(e){if(this._options.length===0)return;e=Math.min(Math.max(e,0),this._options.length-1);const t=this._options[e];this._activeElementValue=t.value,aa(this,ro,_r).call(this),t&&t.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>`}},ro=new WeakSet,_r=function(){for(let e=0;e<this._activeOptions.length;e++)this._activeOptions[e].active=!1;const i=this._getActiveElement;i?i.active=!0:this._goToIndex(0)},n.UUIComboboxListElement.styles=[m`:host{display:flex;flex-direction:column;box-sizing:border-box}`],Ve([l()],n.UUIComboboxListElement.prototype,"value",1),Ve([l({type:String})],n.UUIComboboxListElement.prototype,"displayValue",2),Ve([l({attribute:!1})],n.UUIComboboxListElement.prototype,"for",1),Ve([Ne({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],n.UUIComboboxListElement.prototype,"_options",2),Ve([Ne({flatten:!0,selector:"uui-combobox-list-option[active]"})],n.UUIComboboxListElement.prototype,"_activeOptions",2),Ve([w()],n.UUIComboboxListElement.prototype,"_value",2),Ve([w()],n.UUIComboboxListElement.prototype,"_activeElementValue",2),n.UUIComboboxListElement=Ve([b("uui-combobox-list")],n.UUIComboboxListElement);var Eh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Ot=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ih(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Eh(e,t,o),o};n.UUIComboboxListOptionElement=class extends _t(hi(v)){constructor(){super(),this._disabled=!1,this._displayValue="",this.selectable=!0,this.deselectable=!1}get value(){return this._value?this._value:this.textContent?.trim()||""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get displayValue(){return this._displayValue?this._displayValue:this.textContent?.trim()||""}set displayValue(e){const t=this._displayValue;this._displayValue=e,this.requestUpdate("displayValue",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.selectable=!this._disabled,this.requestUpdate("disabled",t)}render(){return u`<slot></slot>`}},n.UUIComboboxListOptionElement.styles=[m`:host{position:relative;cursor:pointer;margin:0 4px;border-radius:var(--uui-border-radius,3px);outline:2px solid transparent;outline-offset:-2px;padding-left:4px}:host(:first-child){margin-top:6px}:host(:last-child){margin-bottom:6px}:host([selected]):host([active])::after{display:block;content:'';position:absolute;inset:0;outline:var(--uui-color-surface,#fff) solid 2px;outline-offset:-4px}:host(:hover){background-color:var(--uui-color-surface-emphasis,#fafafa);color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]){cursor:auto;color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]:hover){background-color:var(--uui-color-disabled,#f3f3f5)}:host([active]){outline-color:var(--uui-color-focus,#3879ff)}:host([selected]){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected,#3544b1)}:host([selected]:hover){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([selected][disabled]){color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}`],Ot([w()],n.UUIComboboxListOptionElement.prototype,"_disabled",2),Ot([w()],n.UUIComboboxListOptionElement.prototype,"_displayValue",2),Ot([l({type:String})],n.UUIComboboxListOptionElement.prototype,"value",1),Ot([l({type:String,attribute:"display-value"})],n.UUIComboboxListOptionElement.prototype,"displayValue",1),Ot([l({type:Boolean,reflect:!0})],n.UUIComboboxListOptionElement.prototype,"disabled",1),n.UUIComboboxListOptionElement=Ot([b("uui-combobox-list-option")],n.UUIComboboxListOptionElement);let te=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};te.SEARCH="search",te.CHANGE="change";var xh=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,la=i=>{throw TypeError(i)},ee=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ch(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xh(e,t,o),o},Ur=(i,e,t)=>e.has(i)||la("Cannot "+t),C=(i,e,t)=>(Ur(i,e,"read from private field"),t?t.call(i):e.get(i)),W=(i,e,t)=>e.has(i)?la("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ua=(i,e,t,r)=>(Ur(i,e,"write to private field"),e.set(i,t),t),kr=(i,e,t)=>(Ur(i,e,"access private method"),t),de,Tt,vi,fi,no,so,ao,$r,Er,Ir,xr,lo,Nt,Cr,uo,co,Sr,ho;n.UUIComboboxElement=class extends ge(v,""){constructor(){super(...arguments),W(this,fi),this.closeLabel="Close",this.disabled=!1,this.readonly=!1,W(this,de),W(this,Tt),this._displayValue="",this._search="",this._isPhone=!1,this._isOpen=!1,W(this,vi,()=>{this._isPhone=C(this,Tt).matches}),W(this,so,()=>requestAnimationFrame(()=>this._input.focus())),W(this,ao,()=>requestAnimationFrame(()=>{this.shadowRoot?.activeElement||C(this,Nt).call(this)})),W(this,$r,e=>{e.preventDefault(),e.stopImmediatePropagation(),this.search=e.target.value,this.dispatchEvent(new te(te.SEARCH)),C(this,lo).call(this)}),W(this,Er,()=>{this.value&&this.value!==C(this,de)?.value&&kr(this,fi,no).call(this,this.value)}),W(this,Ir,()=>{this.value=C(this,de)?.value||"",this.search=this.value?this.search:"",C(this,Nt).call(this),this.dispatchEvent(new te(te.CHANGE))}),W(this,xr,()=>{this.readonly||(this.open=!this.open)}),W(this,lo,()=>{this.open||this.readonly||(this.open=!0)}),W(this,Nt,()=>{this.open&&(this.open=!1,this.search="",this._input.value=this._displayValue,this.dispatchEvent(new te(te.SEARCH)))}),W(this,Cr,e=>{this.open===!1&&e.key==="Enter"&&(e.preventDefault(),e.stopImmediatePropagation()),(e.key==="ArrowUp"||e.key==="ArrowDown")&&C(this,lo).call(this),(e.key==="Escape"||e.key==="Enter")&&C(this,Nt).call(this)}),W(this,uo,e=>{e.key&&e.key!=="Enter"||(e.preventDefault(),e.stopImmediatePropagation(),this.value="",this.search="",this._input.value=this._displayValue,this._input.focus(),this.dispatchEvent(new te(te.SEARCH)),this.dispatchEvent(new te(te.CHANGE)))}),W(this,co,()=>u`<uui-input slot="trigger" id="combobox-input" label="combobox-input" type="text" .value="${this._displayValue}" autocomplete="off" .disabled="${this.disabled}" .readonly="${this.readonly}" popovertarget="combobox-popover" @click="${C(this,xr)}" @input="${C(this,$r)}" @keydown="${C(this,Cr)}"><slot name="input-prepend" slot="prepend"></slot>${C(this,Sr).call(this)}<div id="expand-symbol-wrapper" slot="append"><uui-symbol-expand .open="${this._isOpen}"></uui-symbol-expand></div><slot name="input-append" slot="append"></slot></uui-input>`),W(this,Sr,()=>this.disabled||this.readonly?I:this.value||this.search?u`<uui-button id="clear-button" @click="${C(this,uo)}" @keydown="${C(this,uo)}" label="clear" slot="append" compact="compact" style="height:100%"><uui-icon name="remove" .fallback="${ar.strings[0]}"></uui-icon></uui-button>`:""),W(this,ho,()=>u`<div id="dropdown"><uui-scroll-container tabindex="-1" id="scroll-container"><slot></slot></uui-scroll-container></div>`)}get value(){return super.value}set value(e){typeof e=="string"&&kr(this,fi,no).call(this,e),super.value=e}get search(){return this._search}set search(e){if(this.search===e)return;const t=this._search;this._search=e,this.requestUpdate("search",t)}get open(){return this._isOpen}set open(e){const t=e;this._isOpen=e;const r=this._comboboxPopoverElement;if(r)if(e){const o=this._input.offsetWidth;r.style.setProperty("--popover-width",`${o}px`),r.showPopover()}else r.hidePopover();this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",C(this,ao)),this.addEventListener("mousedown",C(this,so)),ua(this,Tt,window.matchMedia("(max-width: 600px)")),C(this,vi).call(this),C(this,Tt).addEventListener("change",C(this,vi)),$(this,"uui-icon"),$(this,"uui-input"),$(this,"uui-button"),$(this,"uui-combobox-list"),$(this,"uui-scroll-container"),$(this,"uui-popover-container"),$(this,"uui-symbol-expand")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",C(this,ao)),this.removeEventListener("mousedown",C(this,so)),C(this,Tt).removeEventListener("change",C(this,vi))}async firstUpdated(){const e=this._comboboxListElements?.[0];e&&(ua(this,de,e),C(this,de).for=this,C(this,de).addEventListener(he.CHANGE,C(this,Ir)),C(this,de).addEventListener(he.INNER_SLOT_CHANGE,C(this,Er)),await this.updateComplete,kr(this,fi,no).call(this,this.value))}getFormElement(){return this._input}async focus(){await this.updateComplete,this._input.focus()}async blur(){await this.updateComplete,this._input.blur()}async click(){await this.updateComplete,this._input.click()}render(){return this._isPhone&&this.open?u`<div id="phone-wrapper"><uui-button label="close" look="primary" @click="${C(this,Nt)}">${this.closeLabel}</uui-button>${C(this,co).call(this)} ${C(this,ho).call(this)}</div>`:u`${C(this,co).call(this)}<uui-popover-container id="combobox-popover" popover="manual" placement="bottom-end">${C(this,ho).call(this)}</uui-popover-container>`}},de=new WeakMap,Tt=new WeakMap,vi=new WeakMap,fi=new WeakSet,no=function(i){C(this,de)&&(C(this,de).value=i,requestAnimationFrame(()=>this._displayValue=C(this,de).displayValue||""))},so=new WeakMap,ao=new WeakMap,$r=new WeakMap,Er=new WeakMap,Ir=new WeakMap,xr=new WeakMap,lo=new WeakMap,Nt=new WeakMap,Cr=new WeakMap,uo=new WeakMap,co=new WeakMap,Sr=new WeakMap,ho=new WeakMap,n.UUIComboboxElement.styles=[m`:host{display:inline-block}#combobox-input{width:100%;border-radius:var(--uui-size-1,3px)}#combobox-popover{width:var(--uui-dropdown-width,var(--popover-width,inherit))}#scroll-container{overflow-y:auto;width:100%;max-height:var(--uui-combobox-popover-max-height,500px)}#expand-symbol-wrapper{height:100%;padding-right:var(--uui-size-space-3,9px);display:flex;justify-content:center}#dropdown{overflow:hidden;z-index:-1;background-color:var(--uui-combobox-popover-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-color-border,#d8d7d9);border-radius:var(--uui-border-radius,3px);width:100%;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23))}:host([disabled]) #caret{fill:var(--uui-color-disabled-contrast,#c4c4c4)}#phone-wrapper{position:fixed;inset:0;display:flex;flex-direction:column;z-index:1;font-size:1.1em}#phone-wrapper #dropdown{display:flex}#phone-wrapper #combobox-input{height:var(--uui-size-16,48px)}#phone-wrapper>uui-button{height:var(--uui-size-14,42px);width:100%}#phone-wrapper #scroll-container{max-height:unset}`],ee([l({attribute:"value",reflect:!0})],n.UUIComboboxElement.prototype,"value",1),ee([l({type:String})],n.UUIComboboxElement.prototype,"search",1),ee([l({type:Boolean})],n.UUIComboboxElement.prototype,"open",1),ee([l({type:String})],n.UUIComboboxElement.prototype,"closeLabel",2),ee([l({type:Boolean,reflect:!0})],n.UUIComboboxElement.prototype,"disabled",2),ee([l({type:Boolean,reflect:!0})],n.UUIComboboxElement.prototype,"readonly",2),ee([A("#combobox-input")],n.UUIComboboxElement.prototype,"_input",2),ee([A("#combobox-popover")],n.UUIComboboxElement.prototype,"_comboboxPopoverElement",2),ee([Ne({flatten:!0,selector:"uui-combobox-list"})],n.UUIComboboxElement.prototype,"_comboboxListElements",2),ee([w()],n.UUIComboboxElement.prototype,"_displayValue",2),ee([w()],n.UUIComboboxElement.prototype,"_search",2),ee([w()],n.UUIComboboxElement.prototype,"_isPhone",2),ee([w()],n.UUIComboboxElement.prototype,"_isOpen",2),n.UUIComboboxElement=ee([b("uui-combobox")],n.UUIComboboxElement);var Sh=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,Pr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ph(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sh(e,t,o),o};n.UUIDialogLayoutElement=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return u`<h3 style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h3>`}renderContent(){return u`<slot></slot>`}renderActions(){return u`<slot id="actions" name="actions"></slot>`}render(){return u`${this.renderHeadline()} ${this.renderContent()} ${this.renderActions()}`}},n.UUIDialogLayoutElement.styles=[m`:host{display:block;padding:var(--uui-size-10,30px) var(--uui-size-14,42px);color:var(--uui-color-text,#060606)}#actions{margin-top:var(--uui-size-8,24px);display:flex;justify-content:end;gap:var(--uui-size-4,12px)}`],Pr([l({type:String})],n.UUIDialogLayoutElement.prototype,"headline",2),Pr([w()],n.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIDialogLayoutElement=Pr([b("uui-dialog-layout")],n.UUIDialogLayoutElement);var Ah=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIDialogElement=class extends v{render(){return u`<slot></slot>`}},n.UUIDialogElement.styles=[m`:host{position:relative;display:block;max-width:580px;color:var(--uui-color-text,#060606);background-color:var(--uui-dialog-background-color,var(--uui-color-surface,#fff));box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22));border-radius:var(--uui-dialog-border-radius,calc(var(--uui-border-radius,3px) * 2))}`],n.UUIDialogElement=Ah([b("uui-dialog")],n.UUIDialogElement);var zh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,ca=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zh(e,t,o),o};n.UUISymbolFileDropzoneElement=class extends v{constructor(){super(...arguments),this.error=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="upload-icon"><path d="${this.error?"M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z":"M206.491 364.184h99.013V223.676h92.922L255.997 51.111 113.575 223.676h92.916zM85.043 398.311h341.912v62.578H85.043z"}"/></svg>`}},n.UUISymbolFileDropzoneElement.styles=[m`:host{display:flex;flex-direction:column;align-items:center;justify-content:center}#upload-icon{fill:var(--uui-color-default,#1b264f);width:100px;transition:fill .3s ease;position:relative;z-index:2}:host([error]) #upload-icon{fill:var(--uui-color-danger,#d42054)}`],ca([l({type:Boolean,reflect:!0})],n.UUISymbolFileDropzoneElement.prototype,"error",2),n.UUISymbolFileDropzoneElement=ca([b("uui-symbol-file-dropzone")],n.UUISymbolFileDropzoneElement);let Bt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Bt.CHANGE="change";var Lh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,Dt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Oh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lh(e,t,o),o};n.UUIFileDropzoneElement=class extends be("",v){constructor(){super(),this._acceptedFileExtensions=[],this._acceptedMimeTypes=[],this._accept="",this.disallowFolderUpload=!1,this.multiple=!1,this.addEventListener("dragenter",this._onDragEnter,!1),this.addEventListener("dragleave",this._onDragLeave,!1),this.addEventListener("dragover",this._onDragOver,!1),this.addEventListener("drop",this._onDrop,!1)}set accept(e){if(e){const r=[],o=[];e.split(",").forEach(s=>{s=s.trim().toLowerCase(),/[a-z]+\/[a-z*]/s.test(s)?r.push(s):o.push(s.replace(/^\./,""))}),this._acceptedMimeTypes=r,this._acceptedFileExtensions=o}else this._acceptedMimeTypes=[],this._acceptedFileExtensions=[];const t=this._accept;this._accept=e,this.requestUpdate("accept",t)}get accept(){return this._accept}browse(){this._input.click()}async _getAllEntries(e){const t=[...e],r=[],o=[];for(const s of t){if(s?.kind!=="file")continue;const a=this._getEntry(s);if(a)if(a.isDirectory){if(!this.disallowFolderUpload&&this.multiple){const c=await this._mkdir(a);r.push(c)}}else{const c=s.getAsFile();if(!c)continue;this._isAccepted(c)&&o.push(c)}}return{files:o,folders:r}}_getEntry(e){let t=null;return"webkitGetAsEntry"in e?t=e.webkitGetAsEntry():"getAsEntry"in e&&(t=e.getAsEntry()),t}async _mkdir(e){const t=e.createReader(),r=[],o=[],s=a=>new Promise((c,h)=>{a.readEntries(async d=>{if(!d.length){c();return}for(const f of d)if(f.isFile){const g=await this._getAsFile(f);this._isAccepted(g)&&o.push(g)}else if(f.isDirectory){const g=await this._mkdir(f);r.push(g)}await s(a),c()},h)});return await s(t),{folderName:e.name,folders:r,files:o}}_isAccepted(e){if(this._acceptedFileExtensions.length===0&&this._acceptedMimeTypes.length===0)return!0;const t=e.type.toLowerCase(),r=e.name.split(".").pop();if(r&&this._acceptedFileExtensions.includes(r.toLowerCase()))return!0;for(const o of this._acceptedMimeTypes)if(t===o||o.endsWith("/*")&&t.startsWith(o.replace("*","")))return!0;return!1}async _getAsFile(e){return new Promise((t,r)=>e.file(t,r))}async _onDrop(e){e.preventDefault(),this._dropzone.classList.remove("hover");const t=e.dataTransfer?.items;if(t){const r=await this._getAllEntries(t);if(this.multiple===!1&&r.files.length&&(r.files=[r.files[0]],r.folders=[]),!r.files.length&&!r.folders.length)return;this.dispatchEvent(new Bt(Bt.CHANGE,{detail:r}))}}_onDragOver(e){e.preventDefault()}_onDragEnter(e){this._dropzone.classList.add("hover"),e.preventDefault()}_onDragLeave(e){this._dropzone.classList.remove("hover"),e.preventDefault()}_onFileInputChange(){const e=this._input.files?Array.from(this._input.files):[];this.multiple===!1&&e.length>1&&e.splice(1,e.length-1);const t=e.filter(r=>this._isAccepted(r));t.length&&this.dispatchEvent(new Bt(Bt.CHANGE,{detail:{files:t,folders:[]}}))}render(){return u`<div id="dropzone"><uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>${this.renderLabel()} <input @click="${e=>e.stopImmediatePropagation()}" id="input" type="file" accept="${this.accept}" ?multiple="${this.multiple}" @change="${this._onFileInputChange}" aria-label="${this.label}"><slot></slot></div>`}},n.UUIFileDropzoneElement.styles=[m`#dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;box-sizing:border-box;width:100%;height:100%;padding:var(--uui-size-4,12px);border:3px solid transparent;margin:-3px;backdrop-filter:blur(2px)}#dropzone.hover{border-color:var(--uui-color-default,#1b264f)}#dropzone.hover::before{content:'';position:absolute;inset:0;opacity:.2;border-color:var(--uui-color-default,#1b264f);background-color:var(--uui-color-default,#1b264f)}#symbol{color:var(--uui-color-default,#1b264f);max-width:100%;max-height:100%}#input{position:absolute;width:0;height:0;opacity:0;display:none}`],Dt([A("#input")],n.UUIFileDropzoneElement.prototype,"_input",2),Dt([A("#dropzone")],n.UUIFileDropzoneElement.prototype,"_dropzone",2),Dt([l({type:String})],n.UUIFileDropzoneElement.prototype,"accept",1),Dt([l({type:Boolean,reflect:!0,attribute:"disallow-folder-upload"})],n.UUIFileDropzoneElement.prototype,"disallowFolderUpload",2),Dt([l({type:Boolean})],n.UUIFileDropzoneElement.prototype,"multiple",2),n.UUIFileDropzoneElement=Dt([b("uui-file-dropzone")],n.UUIFileDropzoneElement);let Th=class{static humanFileSize(e,t=!1,r=1){const o=t?1e3:1024;if(Math.abs(e)<o)return e+" B";const s=t?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=-1;const c=10**r;do e/=o,++a;while(Math.round(Math.abs(e)*c)/c>=o&&a<s.length-1);return e.toFixed(r)+" "+s[a]}};var Nh=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,we=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Nh(e,t,o),o};n.UUIFilePreviewElement=class extends v{constructor(){super(...arguments),this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(e){const t=this._file;e instanceof File&&(this._name=e.name.split(".")[0],this._extension=e.name.split(".")[1],this._isDirectory=!1,this._size=e.size,this._isFileAnImage(e)&&(this._isImage=!0,this._getThumbnail(e).then(r=>{this._src=r})),this.requestUpdate("file",t))}connectedCallback(){super.connectedCallback(),$(this,"uui-symbol-file-thumbnail"),$(this,"uui-symbol-folder"),$(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?u`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?u`<uui-symbol-file-thumbnail .src="${this._src}" .alt="${this._name}" id="file-symbol"></uui-symbol-file-thumbnail>`:u`<uui-symbol-file id="file-symbol" .type="${this._extension}"></uui-symbol-file>`}_renderLongName(){const e=this._name.substring(0,this._name.length-6),t=this._name.substring(this._name.length-6,this._name.length);return u`<span id="file-name" class="${this._url?"has-source":""}" @click="${()=>this._url?this._openSource():""}" @keydown="${()=>""}"><span id="file-name-start">${e}</span> <span id="file-name-end">${t}</span></span>`}_isFileAnImage(e){return e?e.type.split("/")[0]==="image":!1}async _getThumbnail(e){return await new Promise(t=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)}})}render(){return u`<slot id="actions" name="actions"></slot>${this._fileTypeTemplate()}<div id="file-info">${this._renderLongName()} <span id="file-size">${this._size&&!this._isDirectory?u`${Th.humanFileSize(this._size,!0)}`:""}</span></div>`}},n.UUIFilePreviewElement.styles=[m`:host{position:relative;display:grid;grid-template-rows:100px 50px;width:150px;height:150px;box-sizing:border-box;aspect-ratio:1;color:var(--uui-color-text,#060606)}:host(:hover) slot[name=actions]::slotted(*){opacity:1}slot[name=actions]::slotted(*){position:absolute;top:8px;right:8px;max-width:100%;height:32px;font-size:13px;opacity:0;z-index:1;transition:opacity 150ms}#file-symbol{aspect-ratio:1/1;margin:auto;max-width:100%;max-height:100%}#file-info{min-width:0;display:flex;text-align:center;flex-direction:column;font-size:1rem}#file-name{display:flex;justify-content:center}#file-name-start{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#file-name-end{white-space:nowrap}#file-size{opacity:.6}.has-source:hover{text-decoration:underline;cursor:pointer}`],we([w()],n.UUIFilePreviewElement.prototype,"_name",2),we([w()],n.UUIFilePreviewElement.prototype,"_url",2),we([w()],n.UUIFilePreviewElement.prototype,"_extension",2),we([w()],n.UUIFilePreviewElement.prototype,"_src",2),we([w()],n.UUIFilePreviewElement.prototype,"_size",2),we([w()],n.UUIFilePreviewElement.prototype,"_isDirectory",2),we([w()],n.UUIFilePreviewElement.prototype,"_file",2),we([w()],n.UUIFilePreviewElement.prototype,"_isImage",2),we([l({attribute:!1})],n.UUIFilePreviewElement.prototype,"file",1),n.UUIFilePreviewElement=we([b("uui-file-preview")],n.UUIFilePreviewElement);var Dh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,po=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dh(e,t,o),o};n.UUIFormLayoutItemElement=class extends v{constructor(){super(...arguments),this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=e=>{this._labelSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=e=>{this._descriptionSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),$(this,"uui-form-validation-message")}render(){return u`<div id="label" style="${this._labelSlotHasContent?"":"display: none"}"><slot name="label" @slotchange="${this._labelSlotChanged}"></slot></div><div id="description" style="${this._descriptionSlotHasContent||this.description!==null?"":"display: none"}">${this.description}<slot name="description" @slotchange="${this._descriptionSlotChanged}"></slot></div><uui-form-validation-message><slot></slot><slot name="message" slot="message"></slot></uui-form-validation-message>`}},n.UUIFormLayoutItemElement.styles=[m`:host{position:relative;display:block;margin-top:var(--uui-size-space-5,18px);margin-bottom:var(--uui-size-space-5,18px)}#label{margin-top:-5px;margin-bottom:5px}#description{color:var(--uui-color-disabled-contrast,#c4c4c4);font-size:var(--uui-type-small-size,12px)}#label+#description{margin-top:-8px;min-height:8px}`],po([l({type:String})],n.UUIFormLayoutItemElement.prototype,"description",2),po([w()],n.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),po([w()],n.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),n.UUIFormLayoutItemElement=po([b("uui-form-layout-item")],n.UUIFormLayoutItemElement);/**
343
+ ),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, var(--uui-palette-grey,#c4c4c4) 25%, transparent 25%);--uui-slider-background-size:10px 10px;--uui-slider-background-position:0 0,0 0,-5px -5px,5px 5px}#color-slider{position:relative;background-image:var(--uui-slider-background-image);background-size:var(--uui-slider-background-size);background-position:var(--uui-slider-background-position);border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:100%;height:var(--uui-slider-height)}:host([vertical]) #color-slider{width:var(--uui-slider-height);height:300px}:host([disabled]){cursor:not-allowed}:host([disabled]) #color-slider{user-select:none;pointer-events:none;opacity:.55}:host([readonly]){cursor:default}:host([readonly]) #color-slider{pointer-events:none}#color-slider__handle{position:absolute;top:calc(50% - var(--uui-slider-handle-size)/ 2);width:var(--uui-slider-handle-size);height:var(--uui-slider-handle-size);background-color:#fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25);margin-left:calc(var(--uui-slider-handle-size)/ -2);left:var(--current-value,0)}:host([vertical]) #color-slider__handle{left:unset;top:var(--current-value,100%);margin-left:-1px;margin-top:calc(var(--uui-slider-handle-size)/ -2)}::slotted(:first-child){border-radius:3px;position:absolute;top:0;left:0;width:100%;height:100%}#current-hue{border-radius:3px;position:absolute;inset:0}`],ye([l({reflect:!0})],n.UUIColorSliderElement.prototype,"type",2),ye([l()],n.UUIColorSliderElement.prototype,"color",2),ye([l({type:Number})],n.UUIColorSliderElement.prototype,"min",2),ye([l({type:Number})],n.UUIColorSliderElement.prototype,"max",2),ye([l({type:Number})],n.UUIColorSliderElement.prototype,"precision",2),ye([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"vertical",2),ye([l()],n.UUIColorSliderElement.prototype,"value",2),ye([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"readonly",2),ye([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"disabled",2),n.UUIColorSliderElement=ye([g("uui-color-slider")],n.UUIColorSliderElement);var xh=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,Mt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ch(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xh(e,t,o),o};n.UUIColorSwatchElement=class extends be("label",_t(di(f))){constructor(){super(),this.disabled=!1,this.readonly=!1,this.showLabel=!1,this.addEventListener("click",this._setAriaAttributes)}get value(){return this._value??""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get color(){return this._color}set color(e){const t=this._color;this._color=e,this.requestUpdate("color",t)}_setAriaAttributes(){this.selectable&&this.setAttribute("aria-checked",this.selected.toString())}firstUpdated(){this._setAriaAttributes()}willUpdate(e){(e.has("disabled")||e.has("readonly"))&&this.selectable&&(this.selectable=!this.disabled&&!this.readonly,this.deselectable=!this.disabled&&!this.readonly),(e.has("selectable")||e.has("selected"))&&this._setAriaAttributes()}render(){return u`<button id="swatch" aria-label="${this.label}" ?disabled="${this.disabled}" title="${this.label}"><div class="color-swatch color-swatch--transparent-bg"><div class="color-swatch__color" style="background-color:var(--uui-swatch-color,${this.color??this.value})"></div><div class="color-swatch__check" style="color:var(--uui-swatch-color,${this.color??this.value})">${qi}</div></div>${this._renderWithLabel()}</button>`}_renderWithLabel(){return this.showLabel?u`<div class="color-swatch__label"><strong>${this.renderLabel()}</strong> ${this.value}</div>`:I}},n.UUIColorSwatchElement.styles=[v`:host{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;transition:box-shadow .1s ease-out;flex-direction:column}*,:host(*){outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(:focus-within:not([disabled])){outline:0}:host(:focus:not([disabled])) #swatch{outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-swatch-border-width,1px);outline-style:solid;outline-offset:var(--uui-swatch-border-width,1px)}:host([selectable]) #swatch{cursor:pointer}:host([disabled]){cursor:not-allowed;opacity:.5}:host([readonly]){cursor:default}#swatch{cursor:inherit;outline:0;background:0 0;border:none;padding:0;margin:0;text-align:left;border-radius:3px}:host(:not([selectable])) #swatch:focus{outline:0}:host([selectable]) #swatch::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-swatch-border-width,1px) * -1);width:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));height:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));box-sizing:border-box;border:var(--uui-swatch-border-width,2px) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-swatch-border-width,1px));transition:opacity .1s ease-out;opacity:0}:host([selectable]:not([disabled]):hover) #swatch::after{opacity:.33}:host([selectable][selected]:not([disabled]):hover) #swatch::after{opacity:.66}:host([selectable][selected]:not([disabled])) #swatch::after{opacity:1}.color-swatch{position:relative;width:var(--uui-swatch-size,25px);height:var(--uui-swatch-size,25px);border-radius:3px;display:flex;flex-direction:column;justify-content:center;align-items:center}:host([show-label]) .color-swatch{width:120px;height:50px}.color-swatch.color-swatch--transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-swatch__color{width:100%;height:100%;border:1px solid rgba(0,0,0,.125);border-radius:inherit;box-sizing:border-box}:host([show-label]) .color-swatch__color{border-radius:3px 3px 0 0}.color-swatch__check{position:absolute;vertical-align:middle;width:calc(var(--uui-swatch-size,25px)/ 2);height:calc(var(--uui-swatch-size,25px)/ 2);line-height:0;filter:invert(1) grayscale(1) contrast(9);pointer-events:none;opacity:0}:host([selected]) .color-swatch__check{opacity:1}.label,slot[name=label]::slotted(*){font-size:var(--uui-size-4,12px)}.color-swatch__label{max-width:120px;box-sizing:border-box;padding:var(--uui-size-space-1,3px) var(--uui-size-space-2,6px);line-height:1.5;display:flex;flex-direction:column;background:#fff;border:1px solid var(--uui-color-border,#d8d7d9);border-radius:0 0 3px 3px;font-size:var(--uui-size-4,12px)}.color-swatch__label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}`],Mt([l()],n.UUIColorSwatchElement.prototype,"value",1),Mt([l()],n.UUIColorSwatchElement.prototype,"color",1),Mt([l({type:Boolean,reflect:!0})],n.UUIColorSwatchElement.prototype,"disabled",2),Mt([l({type:Boolean,reflect:!0})],n.UUIColorSwatchElement.prototype,"readonly",2),Mt([l({type:Boolean,attribute:"show-label",reflect:!0})],n.UUIColorSwatchElement.prototype,"showLabel",2),n.UUIColorSwatchElement=Mt([g("uui-color-swatch")],n.UUIColorSwatchElement);let Lt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Lt.CHANGE="change";var Sh=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,fi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ph(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sh(e,t,o),o};n.UUIColorSwatchesElement=class extends be("label",f){constructor(){super(),this.value="",this.disabled=!1,this.readonly=!1,this._onSelected=e=>{const t=e.target;this._swatches.includes(t)&&(this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t,this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.dispatchEvent(new Lt(Lt.CHANGE)))},this._onDeselected=e=>{const t=e.target;this._swatches.includes(t)&&(this._activeElement===t&&(this._activeElement=void 0),this._selectedElement===t&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0,this.value="",this.dispatchEvent(new Lt(Lt.CHANGE))))},this.addEventListener(De.SELECTED,this._onSelected),this.addEventListener(De.DESELECTED,this._onDeselected)}get _activeElement(){return this.__activeElement}set _activeElement(e){this.__activeElement&&(this.__activeElement.active=!1),e&&(e.active=!0,this.__activeElement=e)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}willUpdate(e){e.has("label")&&this.setAttribute("aria-label",this.label)}_handleSlotChange(){!this._swatches||this._swatches.length===0||this._swatches.forEach(e=>{e.setAttribute("aria-checked","false"),e.setAttribute("role","radio"),this.disabled?e.setAttribute("disabled",""):e.setAttribute("selectable","selectable"),this.readonly&&e.setAttribute("readonly",""),this.value!==""&&e.value===this.value&&(e.selected=!0,e.setAttribute("aria-checked","true"),this._selectedElement=e,this._activeElement=this._selectedElement)})}resetSelection(){this._swatches.forEach(e=>{e.selected=!1,e.active=!1,e.selectable=!e.disabled}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},n.UUIColorSwatchesElement.styles=[v`:host{display:flex;flex-wrap:wrap;gap:.4rem}`],fi([l()],n.UUIColorSwatchesElement.prototype,"value",2),fi([l({type:Boolean,reflect:!0})],n.UUIColorSwatchesElement.prototype,"disabled",2),fi([l({type:Boolean,reflect:!0})],n.UUIColorSwatchesElement.prototype,"readonly",2),fi([Ne({selector:"uui-color-swatch"})],n.UUIColorSwatchesElement.prototype,"_swatches",2),n.UUIColorSwatchesElement=fi([g("uui-color-swatches")],n.UUIColorSwatchesElement);let he=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};he.CHANGE="change",he.INNER_SLOT_CHANGE="inner-slot-change";var Ah=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,va=i=>{throw TypeError(i)},Ve=(i,e,t,r)=>{for(var o=r>1?void 0:r?zh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ah(e,t,o),o},Mh=(i,e,t)=>e.has(i)||va("Cannot "+t),Lh=(i,e,t)=>e.has(i)?va("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ga=(i,e,t)=>(Mh(i,e,"access private method"),t),so,Er;n.UUIComboboxListElement=class extends f{constructor(){super(...arguments),Lh(this,so),this.displayValue="",this._value="",this._activeElementValue=null,this._onSlotChange=()=>{ga(this,so,Er).call(this),this._updateSelection(),this.dispatchEvent(new he(he.INNER_SLOT_CHANGE))},this._onSelected=e=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=e.composedPath()[0],this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new he(he.CHANGE))},this._onDeselected=e=>{const t=e.composedPath()[0];this._selectedElement===t&&(this.value="",this.displayValue="",this.dispatchEvent(new he(he.CHANGE)))},this._moveIndex=e=>{const t=Math.min(Math.max(this._getActiveIndex+e,0),this._options.length-1);this._goToIndex(t)},this._onKeyDown=e=>{if(!(this._options.length<=0))switch(e.key){case"ArrowUp":e.preventDefault(),e.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":e.preventDefault(),e.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{e.preventDefault(),this._goToIndex(0);break}case"Enter":{e.preventDefault(),this._getActiveElement?.click();break}case"End":{e.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(e){if(this._value===e)return;const t=this._value;this._value=e,this._updateSelection(),this.requestUpdate("value",t)}get for(){return this._for}set for(e){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=e,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(De.SELECTED,this._onSelected),this.addEventListener(De.DESELECTED,this._onDeselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(De.SELECTED,this._onSelected),this.removeEventListener(De.DESELECTED,this._onDeselected)}_updateSelection(){this.displayValue="";for(const e of this._options)e.value===this._value?(this.displayValue=e.displayValue||"",e.selected=!0):e.selected=!1}get _getActiveIndex(){return this._activeElementValue===null?-1:this._options.findIndex(e=>e.value===this._activeElementValue)}get _getActiveElement(){return this._activeElementValue===null?null:this._options.find(e=>e.value===this._activeElementValue)}_goToIndex(e){if(this._options.length===0)return;e=Math.min(Math.max(e,0),this._options.length-1);const t=this._options[e];this._activeElementValue=t.value,ga(this,so,Er).call(this),t&&t.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>`}},so=new WeakSet,Er=function(){for(let e=0;e<this._activeOptions.length;e++)this._activeOptions[e].active=!1;const i=this._getActiveElement;i?i.active=!0:this._goToIndex(0)},n.UUIComboboxListElement.styles=[v`:host{display:flex;flex-direction:column;box-sizing:border-box}`],Ve([l()],n.UUIComboboxListElement.prototype,"value",1),Ve([l({type:String})],n.UUIComboboxListElement.prototype,"displayValue",2),Ve([l({attribute:!1})],n.UUIComboboxListElement.prototype,"for",1),Ve([Ne({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],n.UUIComboboxListElement.prototype,"_options",2),Ve([Ne({flatten:!0,selector:"uui-combobox-list-option[active]"})],n.UUIComboboxListElement.prototype,"_activeOptions",2),Ve([w()],n.UUIComboboxListElement.prototype,"_value",2),Ve([w()],n.UUIComboboxListElement.prototype,"_activeElementValue",2),n.UUIComboboxListElement=Ve([g("uui-combobox-list")],n.UUIComboboxListElement);var Oh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Ot=(i,e,t,r)=>{for(var o=r>1?void 0:r?Th(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Oh(e,t,o),o};n.UUIComboboxListOptionElement=class extends _t(di(f)){constructor(){super(),this._disabled=!1,this._displayValue="",this.selectable=!0,this.deselectable=!1}get value(){return this._value?this._value:this.textContent?.trim()||""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get displayValue(){return this._displayValue?this._displayValue:this.textContent?.trim()||""}set displayValue(e){const t=this._displayValue;this._displayValue=e,this.requestUpdate("displayValue",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.selectable=!this._disabled,this.requestUpdate("disabled",t)}render(){return u`<slot></slot>`}},n.UUIComboboxListOptionElement.styles=[v`:host{position:relative;cursor:pointer;margin:0 4px;border-radius:var(--uui-border-radius,3px);outline:2px solid transparent;outline-offset:-2px;padding-left:4px}:host(:first-child){margin-top:6px}:host(:last-child){margin-bottom:6px}:host([selected]):host([active])::after{display:block;content:'';position:absolute;inset:0;outline:var(--uui-color-surface,#fff) solid 2px;outline-offset:-4px}:host(:hover){background-color:var(--uui-color-surface-emphasis,#fafafa);color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]){cursor:auto;color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]:hover){background-color:var(--uui-color-disabled,#f3f3f5)}:host([active]){outline-color:var(--uui-color-focus,#3879ff)}:host([selected]){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected,#3544b1)}:host([selected]:hover){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([selected][disabled]){color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}`],Ot([w()],n.UUIComboboxListOptionElement.prototype,"_disabled",2),Ot([w()],n.UUIComboboxListOptionElement.prototype,"_displayValue",2),Ot([l({type:String})],n.UUIComboboxListOptionElement.prototype,"value",1),Ot([l({type:String,attribute:"display-value"})],n.UUIComboboxListOptionElement.prototype,"displayValue",1),Ot([l({type:Boolean,reflect:!0})],n.UUIComboboxListOptionElement.prototype,"disabled",1),n.UUIComboboxListOptionElement=Ot([g("uui-combobox-list-option")],n.UUIComboboxListOptionElement);let te=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};te.SEARCH="search",te.CHANGE="change";var Nh=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,fa=i=>{throw TypeError(i)},ee=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Nh(e,t,o),o},Ir=(i,e,t)=>e.has(i)||fa("Cannot "+t),C=(i,e,t)=>(Ir(i,e,"read from private field"),t?t.call(i):e.get(i)),W=(i,e,t)=>e.has(i)?fa("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ya=(i,e,t,r)=>(Ir(i,e,"write to private field"),e.set(i,t),t),xr=(i,e,t)=>(Ir(i,e,"access private method"),t),de,Tt,yi,wi,ao,lo,uo,Cr,Sr,Pr,Ar,co,Nt,zr,ho,po,Mr,mo;n.UUIComboboxElement=class extends ve(f,""){constructor(){super(...arguments),W(this,wi),this.closeLabel="Close",this.disabled=!1,this.readonly=!1,W(this,de),W(this,Tt),this._displayValue="",this._search="",this._isPhone=!1,this._isOpen=!1,W(this,yi,()=>{this._isPhone=C(this,Tt).matches}),W(this,lo,()=>requestAnimationFrame(()=>this._input.focus())),W(this,uo,()=>requestAnimationFrame(()=>{this.shadowRoot?.activeElement||C(this,Nt).call(this)})),W(this,Cr,e=>{e.preventDefault(),e.stopImmediatePropagation(),this.search=e.target.value,this.dispatchEvent(new te(te.SEARCH)),C(this,co).call(this)}),W(this,Sr,()=>{this.value&&this.value!==C(this,de)?.value&&xr(this,wi,ao).call(this,this.value)}),W(this,Pr,()=>{this.value=C(this,de)?.value||"",this.search=this.value?this.search:"",C(this,Nt).call(this),this.dispatchEvent(new te(te.CHANGE))}),W(this,Ar,()=>{this.readonly||(this.open=!this.open)}),W(this,co,()=>{this.open||this.readonly||(this.open=!0)}),W(this,Nt,()=>{this.open&&(this.open=!1,this.search="",this._input.value=this._displayValue,this.dispatchEvent(new te(te.SEARCH)))}),W(this,zr,e=>{this.open===!1&&e.key==="Enter"&&(e.preventDefault(),e.stopImmediatePropagation()),(e.key==="ArrowUp"||e.key==="ArrowDown")&&C(this,co).call(this),(e.key==="Escape"||e.key==="Enter")&&C(this,Nt).call(this)}),W(this,ho,e=>{e.key&&e.key!=="Enter"||(e.preventDefault(),e.stopImmediatePropagation(),this.value="",this.search="",this._input.value=this._displayValue,this._input.focus(),this.dispatchEvent(new te(te.SEARCH)),this.dispatchEvent(new te(te.CHANGE)))}),W(this,po,()=>u`<uui-input slot="trigger" id="combobox-input" label="combobox-input" type="text" .value="${this._displayValue}" autocomplete="off" .disabled="${this.disabled}" .readonly="${this.readonly}" popovertarget="combobox-popover" @click="${C(this,Ar)}" @input="${C(this,Cr)}" @keydown="${C(this,zr)}"><slot name="input-prepend" slot="prepend"></slot>${C(this,Mr).call(this)}<div id="expand-symbol-wrapper" slot="append"><uui-symbol-expand .open="${this._isOpen}"></uui-symbol-expand></div><slot name="input-append" slot="append"></slot></uui-input>`),W(this,Mr,()=>this.disabled||this.readonly?I:this.value||this.search?u`<uui-button id="clear-button" @click="${C(this,ho)}" @keydown="${C(this,ho)}" label="clear" slot="append" compact="compact" style="height:100%"><uui-icon name="remove" .fallback="${hr.strings[0]}"></uui-icon></uui-button>`:""),W(this,mo,()=>u`<div id="dropdown"><uui-scroll-container tabindex="-1" id="scroll-container"><slot></slot></uui-scroll-container></div>`)}get value(){return super.value}set value(e){typeof e=="string"&&xr(this,wi,ao).call(this,e),super.value=e}get search(){return this._search}set search(e){if(this.search===e)return;const t=this._search;this._search=e,this.requestUpdate("search",t)}get open(){return this._isOpen}set open(e){const t=e;this._isOpen=e;const r=this._comboboxPopoverElement;if(r)if(e){const o=this._input.offsetWidth;r.style.setProperty("--popover-width",`${o}px`),r.showPopover()}else r.hidePopover();this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",C(this,uo)),this.addEventListener("mousedown",C(this,lo)),ya(this,Tt,window.matchMedia("(max-width: 600px)")),C(this,yi).call(this),C(this,Tt).addEventListener("change",C(this,yi)),$(this,"uui-icon"),$(this,"uui-input"),$(this,"uui-button"),$(this,"uui-combobox-list"),$(this,"uui-scroll-container"),$(this,"uui-popover-container"),$(this,"uui-symbol-expand")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",C(this,uo)),this.removeEventListener("mousedown",C(this,lo)),C(this,Tt).removeEventListener("change",C(this,yi))}async firstUpdated(){const e=this._comboboxListElements?.[0];e&&(ya(this,de,e),C(this,de).for=this,C(this,de).addEventListener(he.CHANGE,C(this,Pr)),C(this,de).addEventListener(he.INNER_SLOT_CHANGE,C(this,Sr)),await this.updateComplete,xr(this,wi,ao).call(this,this.value))}getFormElement(){return this._input}async focus(){await this.updateComplete,this._input.focus()}async blur(){await this.updateComplete,this._input.blur()}async click(){await this.updateComplete,this._input.click()}render(){return this._isPhone&&this.open?u`<div id="phone-wrapper"><uui-button label="close" look="primary" @click="${C(this,Nt)}">${this.closeLabel}</uui-button>${C(this,po).call(this)} ${C(this,mo).call(this)}</div>`:u`${C(this,po).call(this)}<uui-popover-container id="combobox-popover" popover="manual" placement="bottom-end">${C(this,mo).call(this)}</uui-popover-container>`}},de=new WeakMap,Tt=new WeakMap,yi=new WeakMap,wi=new WeakSet,ao=function(i){C(this,de)&&(C(this,de).value=i,requestAnimationFrame(()=>this._displayValue=C(this,de).displayValue||""))},lo=new WeakMap,uo=new WeakMap,Cr=new WeakMap,Sr=new WeakMap,Pr=new WeakMap,Ar=new WeakMap,co=new WeakMap,Nt=new WeakMap,zr=new WeakMap,ho=new WeakMap,po=new WeakMap,Mr=new WeakMap,mo=new WeakMap,n.UUIComboboxElement.styles=[v`:host{display:inline-block}#combobox-input{width:100%;border-radius:var(--uui-size-1,3px)}#combobox-popover{width:var(--uui-dropdown-width,var(--popover-width,inherit))}#scroll-container{overflow-y:auto;width:100%;max-height:var(--uui-combobox-popover-max-height,500px)}#expand-symbol-wrapper{height:100%;padding-right:var(--uui-size-space-3,9px);display:flex;justify-content:center}#dropdown{overflow:hidden;z-index:-1;background-color:var(--uui-combobox-popover-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-color-border,#d8d7d9);border-radius:var(--uui-border-radius,3px);width:100%;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23))}:host([disabled]) #caret{fill:var(--uui-color-disabled-contrast,#c4c4c4)}#phone-wrapper{position:fixed;inset:0;display:flex;flex-direction:column;z-index:1;font-size:1.1em}#phone-wrapper #dropdown{display:flex}#phone-wrapper #combobox-input{height:var(--uui-size-16,48px)}#phone-wrapper>uui-button{height:var(--uui-size-14,42px);width:100%}#phone-wrapper #scroll-container{max-height:unset}`],ee([l({attribute:"value",reflect:!0})],n.UUIComboboxElement.prototype,"value",1),ee([l({type:String})],n.UUIComboboxElement.prototype,"search",1),ee([l({type:Boolean})],n.UUIComboboxElement.prototype,"open",1),ee([l({type:String})],n.UUIComboboxElement.prototype,"closeLabel",2),ee([l({type:Boolean,reflect:!0})],n.UUIComboboxElement.prototype,"disabled",2),ee([l({type:Boolean,reflect:!0})],n.UUIComboboxElement.prototype,"readonly",2),ee([A("#combobox-input")],n.UUIComboboxElement.prototype,"_input",2),ee([A("#combobox-popover")],n.UUIComboboxElement.prototype,"_comboboxPopoverElement",2),ee([Ne({flatten:!0,selector:"uui-combobox-list"})],n.UUIComboboxElement.prototype,"_comboboxListElements",2),ee([w()],n.UUIComboboxElement.prototype,"_displayValue",2),ee([w()],n.UUIComboboxElement.prototype,"_search",2),ee([w()],n.UUIComboboxElement.prototype,"_isPhone",2),ee([w()],n.UUIComboboxElement.prototype,"_isOpen",2),n.UUIComboboxElement=ee([g("uui-combobox")],n.UUIComboboxElement);var Dh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,Lr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dh(e,t,o),o};n.UUIDialogLayoutElement=class extends f{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return u`<h3 style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h3>`}renderContent(){return u`<slot></slot>`}renderActions(){return u`<slot id="actions" name="actions"></slot>`}render(){return u`${this.renderHeadline()} ${this.renderContent()} ${this.renderActions()}`}},n.UUIDialogLayoutElement.styles=[v`:host{display:block;padding:var(--uui-size-10,30px) var(--uui-size-14,42px);color:var(--uui-color-text,#060606)}#actions{margin-top:var(--uui-size-8,24px);display:flex;justify-content:end;gap:var(--uui-size-4,12px)}`],Lr([l({type:String})],n.UUIDialogLayoutElement.prototype,"headline",2),Lr([w()],n.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIDialogLayoutElement=Lr([g("uui-dialog-layout")],n.UUIDialogLayoutElement);var jh=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIDialogElement=class extends f{render(){return u`<slot></slot>`}},n.UUIDialogElement.styles=[v`:host{position:relative;display:block;max-width:580px;color:var(--uui-color-text,#060606);background-color:var(--uui-dialog-background-color,var(--uui-color-surface,#fff));box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22));border-radius:var(--uui-dialog-border-radius,calc(var(--uui-border-radius,3px) * 2))}`],n.UUIDialogElement=jh([g("uui-dialog")],n.UUIDialogElement);var Hh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,wa=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hh(e,t,o),o};n.UUISymbolFileDropzoneElement=class extends f{constructor(){super(...arguments),this.error=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="upload-icon"><path d="${this.error?"M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z":"M206.491 364.184h99.013V223.676h92.922L255.997 51.111 113.575 223.676h92.916zM85.043 398.311h341.912v62.578H85.043z"}"/></svg>`}},n.UUISymbolFileDropzoneElement.styles=[v`:host{display:flex;flex-direction:column;align-items:center;justify-content:center}#upload-icon{fill:var(--uui-color-default,#1b264f);width:100px;transition:fill .3s ease;position:relative;z-index:2}:host([error]) #upload-icon{fill:var(--uui-color-danger,#d42054)}`],wa([l({type:Boolean,reflect:!0})],n.UUISymbolFileDropzoneElement.prototype,"error",2),n.UUISymbolFileDropzoneElement=wa([g("uui-symbol-file-dropzone")],n.UUISymbolFileDropzoneElement);let Bt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Bt.CHANGE="change";var Fh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,Dt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fh(e,t,o),o};n.UUIFileDropzoneElement=class extends be("",f){constructor(){super(),this._acceptedFileExtensions=[],this._acceptedMimeTypes=[],this._accept="",this.disallowFolderUpload=!1,this.multiple=!1,this.addEventListener("dragenter",this._onDragEnter,!1),this.addEventListener("dragleave",this._onDragLeave,!1),this.addEventListener("dragover",this._onDragOver,!1),this.addEventListener("drop",this._onDrop,!1)}set accept(e){if(e){const r=[],o=[];e.split(",").forEach(s=>{s=s.trim().toLowerCase(),/[a-z]+\/[a-z*]/s.test(s)?r.push(s):o.push(s.replace(/^\./,""))}),this._acceptedMimeTypes=r,this._acceptedFileExtensions=o}else this._acceptedMimeTypes=[],this._acceptedFileExtensions=[];const t=this._accept;this._accept=e,this.requestUpdate("accept",t)}get accept(){return this._accept}browse(){this._input.click()}async _getAllEntries(e){const t=[...e],r=[],o=[];for(const s of t){if(s?.kind!=="file")continue;const a=this._getEntry(s);if(a)if(a.isDirectory){if(!this.disallowFolderUpload&&this.multiple){const c=await this._mkdir(a);r.push(c)}}else{const c=s.getAsFile();if(!c)continue;this._isAccepted(c)&&o.push(c)}}return{files:o,folders:r}}_getEntry(e){let t=null;return"webkitGetAsEntry"in e?t=e.webkitGetAsEntry():"getAsEntry"in e&&(t=e.getAsEntry()),t}async _mkdir(e){const t=e.createReader(),r=[],o=[],s=a=>new Promise((c,h)=>{a.readEntries(async d=>{if(!d.length){c();return}for(const b of d)if(b.isFile){const m=await this._getAsFile(b);this._isAccepted(m)&&o.push(m)}else if(b.isDirectory){const m=await this._mkdir(b);r.push(m)}await s(a),c()},h)});return await s(t),{folderName:e.name,folders:r,files:o}}_isAccepted(e){if(this._acceptedFileExtensions.length===0&&this._acceptedMimeTypes.length===0)return!0;const t=e.type.toLowerCase(),r=e.name.split(".").pop();if(r&&this._acceptedFileExtensions.includes(r.toLowerCase()))return!0;for(const o of this._acceptedMimeTypes)if(t===o||o.endsWith("/*")&&t.startsWith(o.replace("*","")))return!0;return!1}async _getAsFile(e){return new Promise((t,r)=>e.file(t,r))}async _onDrop(e){e.preventDefault(),this._dropzone.classList.remove("hover");const t=e.dataTransfer?.items;if(t){const r=await this._getAllEntries(t);if(this.multiple===!1&&r.files.length&&(r.files=[r.files[0]],r.folders=[]),!r.files.length&&!r.folders.length)return;this.dispatchEvent(new Bt(Bt.CHANGE,{detail:r}))}}_onDragOver(e){e.preventDefault()}_onDragEnter(e){this._dropzone.classList.add("hover"),e.preventDefault()}_onDragLeave(e){this._dropzone.classList.remove("hover"),e.preventDefault()}_onFileInputChange(){const e=this._input.files?Array.from(this._input.files):[];this.multiple===!1&&e.length>1&&e.splice(1,e.length-1);const t=e.filter(r=>this._isAccepted(r));t.length&&this.dispatchEvent(new Bt(Bt.CHANGE,{detail:{files:t,folders:[]}}))}render(){return u`<div id="dropzone"><uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>${this.renderLabel()} <input @click="${e=>e.stopImmediatePropagation()}" id="input" type="file" accept="${this.accept}" ?multiple="${this.multiple}" @change="${this._onFileInputChange}" aria-label="${this.label}"><slot></slot></div>`}},n.UUIFileDropzoneElement.styles=[v`#dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;box-sizing:border-box;width:100%;height:100%;padding:var(--uui-size-4,12px);border:3px solid transparent;margin:-3px;backdrop-filter:blur(2px)}#dropzone.hover{border-color:var(--uui-color-default,#1b264f)}#dropzone.hover::before{content:'';position:absolute;inset:0;opacity:.2;border-color:var(--uui-color-default,#1b264f);background-color:var(--uui-color-default,#1b264f)}#symbol{color:var(--uui-color-default,#1b264f);max-width:100%;max-height:100%}#input{position:absolute;width:0;height:0;opacity:0;display:none}`],Dt([A("#input")],n.UUIFileDropzoneElement.prototype,"_input",2),Dt([A("#dropzone")],n.UUIFileDropzoneElement.prototype,"_dropzone",2),Dt([l({type:String})],n.UUIFileDropzoneElement.prototype,"accept",1),Dt([l({type:Boolean,reflect:!0,attribute:"disallow-folder-upload"})],n.UUIFileDropzoneElement.prototype,"disallowFolderUpload",2),Dt([l({type:Boolean})],n.UUIFileDropzoneElement.prototype,"multiple",2),n.UUIFileDropzoneElement=Dt([g("uui-file-dropzone")],n.UUIFileDropzoneElement);let Wh=class{static humanFileSize(e,t=!1,r=1){const o=t?1e3:1024;if(Math.abs(e)<o)return e+" B";const s=t?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=-1;const c=10**r;do e/=o,++a;while(Math.round(Math.abs(e)*c)/c>=o&&a<s.length-1);return e.toFixed(r)+" "+s[a]}};var qh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,we=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&qh(e,t,o),o};n.UUIFilePreviewElement=class extends f{constructor(){super(...arguments),this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(e){const t=this._file;e instanceof File&&(this._name=e.name.split(".")[0],this._extension=e.name.split(".")[1],this._isDirectory=!1,this._size=e.size,this._isFileAnImage(e)&&(this._isImage=!0,this._getThumbnail(e).then(r=>{this._src=r})),this.requestUpdate("file",t))}connectedCallback(){super.connectedCallback(),$(this,"uui-symbol-file-thumbnail"),$(this,"uui-symbol-folder"),$(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?u`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?u`<uui-symbol-file-thumbnail .src="${this._src}" .alt="${this._name}" id="file-symbol"></uui-symbol-file-thumbnail>`:u`<uui-symbol-file id="file-symbol" .type="${this._extension}"></uui-symbol-file>`}_renderLongName(){const e=this._name.substring(0,this._name.length-6),t=this._name.substring(this._name.length-6,this._name.length);return u`<span id="file-name" class="${this._url?"has-source":""}" @click="${()=>this._url?this._openSource():""}" @keydown="${()=>""}"><span id="file-name-start">${e}</span> <span id="file-name-end">${t}</span></span>`}_isFileAnImage(e){return e?e.type.split("/")[0]==="image":!1}async _getThumbnail(e){return await new Promise(t=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)}})}render(){return u`<slot id="actions" name="actions"></slot>${this._fileTypeTemplate()}<div id="file-info">${this._renderLongName()} <span id="file-size">${this._size&&!this._isDirectory?u`${Wh.humanFileSize(this._size,!0)}`:""}</span></div>`}},n.UUIFilePreviewElement.styles=[v`:host{position:relative;display:grid;grid-template-rows:100px 50px;width:150px;height:150px;box-sizing:border-box;aspect-ratio:1;color:var(--uui-color-text,#060606)}:host(:hover) slot[name=actions]::slotted(*){opacity:1}slot[name=actions]::slotted(*){position:absolute;top:8px;right:8px;max-width:100%;height:32px;font-size:13px;opacity:0;z-index:1;transition:opacity 150ms}#file-symbol{aspect-ratio:1/1;margin:auto;max-width:100%;max-height:100%}#file-info{min-width:0;display:flex;text-align:center;flex-direction:column;font-size:1rem}#file-name{display:flex;justify-content:center}#file-name-start{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#file-name-end{white-space:nowrap}#file-size{opacity:.6}.has-source:hover{text-decoration:underline;cursor:pointer}`],we([w()],n.UUIFilePreviewElement.prototype,"_name",2),we([w()],n.UUIFilePreviewElement.prototype,"_url",2),we([w()],n.UUIFilePreviewElement.prototype,"_extension",2),we([w()],n.UUIFilePreviewElement.prototype,"_src",2),we([w()],n.UUIFilePreviewElement.prototype,"_size",2),we([w()],n.UUIFilePreviewElement.prototype,"_isDirectory",2),we([w()],n.UUIFilePreviewElement.prototype,"_file",2),we([w()],n.UUIFilePreviewElement.prototype,"_isImage",2),we([l({attribute:!1})],n.UUIFilePreviewElement.prototype,"file",1),n.UUIFilePreviewElement=we([g("uui-file-preview")],n.UUIFilePreviewElement);var Xh=Object.defineProperty,Yh=Object.getOwnPropertyDescriptor,bo=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Xh(e,t,o),o};n.UUIFormLayoutItemElement=class extends f{constructor(){super(...arguments),this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=e=>{this._labelSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=e=>{this._descriptionSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),$(this,"uui-form-validation-message")}render(){return u`<div id="label" style="${this._labelSlotHasContent?"":"display: none"}"><slot name="label" @slotchange="${this._labelSlotChanged}"></slot></div><div id="description" style="${this._descriptionSlotHasContent||this.description!==null?"":"display: none"}">${this.description}<slot name="description" @slotchange="${this._descriptionSlotChanged}"></slot></div><uui-form-validation-message><slot></slot><slot name="message" slot="message"></slot></uui-form-validation-message>`}},n.UUIFormLayoutItemElement.styles=[v`:host{position:relative;display:block;margin-top:var(--uui-size-space-5,18px);margin-bottom:var(--uui-size-space-5,18px)}#label{margin-top:-5px;margin-bottom:5px}#description{color:var(--uui-color-disabled-contrast,#c4c4c4);font-size:var(--uui-type-small-size,12px)}#label+#description{margin-top:-8px;min-height:8px}`],bo([l({type:String})],n.UUIFormLayoutItemElement.prototype,"description",2),bo([w()],n.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),bo([w()],n.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),n.UUIFormLayoutItemElement=bo([g("uui-form-layout-item")],n.UUIFormLayoutItemElement);/**
344
344
  * @license
345
345
  * Copyright 2017 Google LLC
346
346
  * SPDX-License-Identifier: BSD-3-Clause
347
- */const ha=(i,e,t)=>{const r=new Map;for(let o=e;o<=t;o++)r.set(i[o],o);return r},Ar=$t(class extends Et{constructor(i){if(super(i),i.type!==le.CHILD)throw Error("repeat() can only be used in text expressions")}ct(i,e,t){let r;t===void 0?t=e:e!==void 0&&(r=e);const o=[],s=[];let a=0;for(const c of i)o[a]=r?r(c,a):a,s[a]=t(c,a),a++;return{values:s,keys:o}}render(i,e,t){return this.ct(i,e,t).values}update(i,[e,t,r]){var o;const s=ih(i),{values:a,keys:c}=this.ct(e,t,r);if(!Array.isArray(s))return this.ut=c,a;const h=(o=this.ut)!==null&&o!==void 0?o:this.ut=[],d=[];let f,g,U=0,p=s.length-1,_=0,S=a.length-1;for(;U<=p&&_<=S;)if(s[U]===null)U++;else if(s[p]===null)p--;else if(h[U]===c[_])d[_]=rt(s[U],a[_]),U++,_++;else if(h[p]===c[S])d[S]=rt(s[p],a[S]),p--,S--;else if(h[U]===c[S])d[S]=rt(s[U],a[S]),mi(i,d[S+1],s[U]),U++,S--;else if(h[p]===c[_])d[_]=rt(s[p],a[_]),mi(i,s[U],s[p]),p--,_++;else if(f===void 0&&(f=ha(c,_,S),g=ha(h,U,p)),f.has(h[U]))if(f.has(h[p])){const x=g.get(c[_]),N=x!==void 0?s[x]:null;if(N===null){const Q=mi(i,s[U]);rt(Q,a[_]),d[_]=Q}else d[_]=rt(N,a[_]),mi(i,s[U],N),s[x]=null;_++}else gr(s[p]),p--;else gr(s[U]),U++;for(;_<=S;){const x=mi(i,d[S+1]);rt(x,a[_]),d[_++]=x}for(;U<=p;){const x=s[U++];x!==null&&gr(x)}return this.ut=c,Ks(i,d),J}});/**
347
+ */const _a=(i,e,t)=>{const r=new Map;for(let o=e;o<=t;o++)r.set(i[o],o);return r},Or=$t(class extends Et{constructor(i){if(super(i),i.type!==le.CHILD)throw Error("repeat() can only be used in text expressions")}ct(i,e,t){let r;t===void 0?t=e:e!==void 0&&(r=e);const o=[],s=[];let a=0;for(const c of i)o[a]=r?r(c,a):a,s[a]=t(c,a),a++;return{values:s,keys:o}}render(i,e,t){return this.ct(i,e,t).values}update(i,[e,t,r]){var o;const s=dh(i),{values:a,keys:c}=this.ct(e,t,r);if(!Array.isArray(s))return this.ut=c,a;const h=(o=this.ut)!==null&&o!==void 0?o:this.ut=[],d=[];let b,m,U=0,p=s.length-1,_=0,S=a.length-1;for(;U<=p&&_<=S;)if(s[U]===null)U++;else if(s[p]===null)p--;else if(h[U]===c[_])d[_]=rt(s[U],a[_]),U++,_++;else if(h[p]===c[S])d[S]=rt(s[p],a[S]),p--,S--;else if(h[U]===c[S])d[S]=rt(s[U],a[S]),vi(i,d[S+1],s[U]),U++,S--;else if(h[p]===c[_])d[_]=rt(s[p],a[_]),vi(i,s[U],s[p]),p--,_++;else if(b===void 0&&(b=_a(c,_,S),m=_a(h,U,p)),b.has(h[U]))if(b.has(h[p])){const x=m.get(c[_]),N=x!==void 0?s[x]:null;if(N===null){const Q=vi(i,s[U]);rt(Q,a[_]),d[_]=Q}else d[_]=rt(N,a[_]),vi(i,s[U],N),s[x]=null;_++}else wr(s[p]),p--;else wr(s[U]),U++;for(;_<=S;){const x=vi(i,d[S+1]);rt(x,a[_]),d[_++]=x}for(;U<=p;){const x=s[U++];x!==null&&wr(x)}return this.ut=c,ra(i,d),J}});/**
348
348
  * @license
349
349
  * Copyright 2017 Google LLC
350
350
  * SPDX-License-Identifier: BSD-3-Clause
351
- */class zr extends Et{constructor(e){if(super(e),this.et=I,e.type!==le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===I||e==null)return this.ft=void 0,this.et=e;if(e===J)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}zr.directiveName="unsafeHTML",zr.resultType=1;const mo=$t(zr);var jh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,da=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jh(e,t,o),o};n.UUIFormValidationMessageElement=class extends v{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=e=>{const t=e.composedPath()[0];t.pristine===!1?this._messages.set(t,t.validationMessage):this._messages.delete(t),this.requestUpdate("_messages")},this._onControlValid=e=>{const t=e.composedPath()[0];this._messages.delete(t),this.requestUpdate("_messages")},this.for===null&&(this.for=this)}get for(){return this._for}set for(e){let t=null;typeof e=="string"?t=this.getRootNode()?.getElementById(e):e instanceof HTMLElement&&(t=e);const r=t??this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(Ut.INVALID,this._onControlInvalid),o.removeEventListener(Ut.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(Ut.INVALID,this._onControlInvalid),this._for.addEventListener(Ut.VALID,this._onControlValid))}render(){return u`<slot></slot><div id="messages">${Ar(this._messages,e=>u`<div>${mo(e[1])}</div>`)}<slot name="message"></slot></div>`}},n.UUIFormValidationMessageElement.styles=[m`#messages{color:var(--uui-color-danger-standalone,#bf214e)}`],da([l({reflect:!1,attribute:!0})],n.UUIFormValidationMessageElement.prototype,"for",1),n.UUIFormValidationMessageElement=da([b("uui-form-validation-message")],n.UUIFormValidationMessageElement);var Rh=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIFormElement=class extends v{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(e){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const t=e.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=t.length>0?t[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(e){if(e.target===null)return;const t=e.target;if(!t.checkValidity()){t.setAttribute("submit-invalid","");return}t.removeAttribute("submit-invalid")}_onReset(e){e.target!==null&&e.target.removeAttribute("submit-invalid")}render(){return u`<slot @slotchange="${this._onSlotChanged}"></slot>`}},n.UUIFormElement=Rh([b("uui-form")],n.UUIFormElement);let Vt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t}),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}};Vt.ICON_REQUEST="icon-request";var Fh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,nt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fh(e,t,o),o};n.UUIIconElement=class extends v{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.label="",this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(e){this._name=e,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const e=new Vt(Vt.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(e),e.icon!==null?(this._retrievedNameIcon=!0,e.icon.then(t=>{this._useFallback=!1,this._nameSvg=t})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon(),typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:u`${mo(this.fallback)}`:this._nameSvg!==null?u`${mo(this._nameSvg)}`:this.svg!==null?u`${mo(this.svg)}`:u`<slot></slot>`}},n.UUIIconElement.styles=[m`:host{display:inline-block;vertical-align:bottom;width:1.125em;height:1.125em}::slotted(svg),:host svg{color:var(--uui-icon-color,currentColor)}:host-context(div[slot=prepend]){margin-left:var(--uui-size-2,6px)}:host-context(div[slot=append]){margin-right:var(--uui-size-2,6px)}`],nt([w()],n.UUIIconElement.prototype,"_nameSvg",2),nt([l()],n.UUIIconElement.prototype,"label",2),nt([l()],n.UUIIconElement.prototype,"name",1),nt([l({attribute:!1})],n.UUIIconElement.prototype,"svg",2),nt([l({attribute:!1})],n.UUIIconElement.prototype,"fallback",2),nt([w()],n.UUIIconElement.prototype,"_useFallback",2),n.UUIIconElement=nt([b("uui-icon")],n.UUIIconElement);let Mr=class{constructor(e){this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),e&&this.resolve(e)}set svg(e){this.resolve(e)}},Lr=class{constructor(){this.icons={},this._onIconRequest=e=>{const t=this.getIcon(e.detail.iconName);t!==null&&e.acceptRequest(t)}}attach(e){e.addEventListener(Vt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(Vt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,t){if(this.icons[e]){this.icons[e].svg=t;return}this.icons[e]=new Mr(t)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Mr}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}};var Wh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,pa=(i,e,t,r)=>{for(var o=r>1?void 0:r?qh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wh(e,t,o),o};n.UUIIconRegistryElement=class extends v{constructor(){super(),this._icons={},this._registry=new Lr,this._registry.attach(this)}get icons(){return this._icons}set icons(e){this._icons=e,this._registry&&Object.entries(this._icons).forEach(([t,r])=>this._registry.defineIcon(t,r))}get registry(){return this._registry}set registry(e){this.registry&&this.registry.detach(this),e.attach(this),this._registry=e}render(){return u`<slot></slot>`}},pa([l({attribute:!1})],n.UUIIconRegistryElement.prototype,"_icons",2),n.UUIIconRegistryElement=pa([b("uui-icon-registry")],n.UUIIconRegistryElement);const Kh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,Xh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>`,Yh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>`,Zh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg>`,Qh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`,Jh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>`,ed=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,td=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9"/><path d="M3 21v-3l9-9"/><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"/></svg>`,id=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"/><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"/><path d="M15 2v5h5"/></svg>`,od=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,rd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`,nd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,sd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg>`,ad=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>`,ld=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/><path d="M2 10h20"/></svg>`,ud=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,cd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,hd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`,dd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`,pd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/></svg>`,md=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`,bd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>`,gd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`,vd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>`,fd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`,yd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>`,wd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg>`,_d=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>`,Ud=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,kd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`,$d=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2"/><path d="M15 16v-2"/><path d="M8 9h2"/><path d="M20 9h2"/><path d="M17.8 11.8 19 13"/><path d="M15 9h0"/><path d="M17.8 6.2 19 5"/><path d="m3 21 9-9"/><path d="M12.2 6.2 11 5"/></svg>`,Ed=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;let ma=class extends Lr{constructor(){super(),this.defineIcon("add",Kh.strings[0]),this.defineIcon("alert",Xh.strings[0]),this.defineIcon("attachment",Yh.strings[0]),this.defineIcon("calendar",Zh.strings[0]),this.defineIcon("check",Qh.strings[0]),this.defineIcon("clipboard",Jh.strings[0]),this.defineIcon("code",ed.strings[0]),this.defineIcon("colorpicker",td.strings[0]),this.defineIcon("copy",id.strings[0]),this.defineIcon("delete",od.strings[0]),this.defineIcon("document",rd.strings[0]),this.defineIcon("download",nd.strings[0]),this.defineIcon("edit",sd.strings[0]),this.defineIcon("favorite",ad.strings[0]),this.defineIcon("folder",ld.strings[0]),this.defineIcon("forbidden",ud.strings[0]),this.defineIcon("info",cd.strings[0]),this.defineIcon("link",hd.strings[0]),this.defineIcon("lock",dd.strings[0]),this.defineIcon("pause",pd.strings[0]),this.defineIcon("picture",md.strings[0]),this.defineIcon("play",bd.strings[0]),this.defineIcon("remove",gd.strings[0]),this.defineIcon("search",vd.strings[0]),this.defineIcon("see",fd.strings[0]),this.defineIcon("settings",yd.strings[0]),this.defineIcon("subtract",wd.strings[0]),this.defineIcon("sync",_d.strings[0]),this.defineIcon("unlock",Ud.strings[0]),this.defineIcon("unsee",kd.strings[0]),this.defineIcon("wand",$d.strings[0]),this.defineIcon("wrong",Ed.strings[0])}};var Id=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIIconRegistryEssentialElement=class extends n.UUIIconRegistryElement{constructor(){super(),this.registry=new ma}},n.UUIIconRegistryEssentialElement=Id([b("uui-icon-registry-essential")],n.UUIIconRegistryEssentialElement);var xd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,jt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Cd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xd(e,t,o),o};n.UUIInputFileElement=class extends ge(v){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=e=>{let t=[];for(const r of e)this.multiple?t.push(r):t=[r];this._files=t},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return super.value}set value(e){if(super.value=e,e instanceof FormData){const t=this.multiple?e.getAll(this.name):[e.get(this.name)];this._updateFileWrappers(t);return}if(e instanceof File){this._updateFileWrappers([e]);return}}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-file-dropzone"),$(this,"uui-button"),$(this,"uui-action-bar"),$(this,"uui-file-preview")}getFormElement(){return this._dropZone}async blur(){await this.updateComplete,this._dropzone.blur()}async focus(){await this.updateComplete,this._dropzone.focus()}async click(){await this.updateComplete,this._dropzone.browse()}_handleClick(e){e.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(e){const t=e.detail.files.filter(o=>o instanceof File||o.isFile);if(!this.multiple){const o=t[0],s=o instanceof File?o:await this._getFile(o);if(this.value instanceof File){this.value=s;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,s),this._updateFileWrappers([s]);return}}let r=this.value;if(t.length>0&&!(this.value instanceof FormData)&&(r=new FormData),r instanceof FormData)for(const o of t){const s=o instanceof File;r.append(this.name,s?o:await this._getFile(o))}this.value=r}async _getFile(e){return await new Promise((t,r)=>e.file(t,r))}_removeFile(e){const t=this._files[e];if(this.value instanceof FormData){const r=this.value.getAll(this.name).filter(o=>o!==t);if(r.length===0)this.value="";else{this.value.delete(this.name);for(const o of r)this.value.append(this.name,o)}this._updateFileWrappers(r)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(e){e?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(e,t){return u`<uui-file-preview .file="${e}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(t)}" color="danger" label="${`Delete ${e.name}`}"><uui-icon name="delete" .fallback="${hc.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${Ar(this._files,e=>e.name+e.size,(e,t)=>this._renderFileItem(e,t))}`}render(){return u`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()} ${this._files.length===0||this.multiple?u`<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button>`:I}</div>`}},n.UUIInputFileElement.styles=[m`:host{width:100%;height:100%;position:relative;display:flex;box-sizing:border-box;border:1px solid var(--uui-color-border,#d8d7d9)}#input{position:absolute;width:0;height:0;opacity:0;display:none}#files{display:grid;box-sizing:border-box;justify-items:center;width:100%;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:min-content;gap:16px;padding:16px;overflow:auto;max-height:100%}#dropzone{display:none;position:absolute;inset:0;z-index:10;justify-content:center;align-items:center}#add-button{width:150px;height:150px;display:flex;padding:16px;box-sizing:border-box;justify-content:center;align-items:stretch}`],jt([A("#dropzone")],n.UUIInputFileElement.prototype,"_dropzone",2),jt([A("#dropzone")],n.UUIInputFileElement.prototype,"_dropZone",2),jt([l({type:String})],n.UUIInputFileElement.prototype,"accept",2),jt([l({type:Boolean})],n.UUIInputFileElement.prototype,"multiple",2),jt([w()],n.UUIInputFileElement.prototype,"_files",2),n.UUIInputFileElement=jt([b("uui-input-file")],n.UUIInputFileElement);let st=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};st.CHANGE="change",st.INPUT="input";var Sd=Object.defineProperty,Pd=Object.getOwnPropertyDescriptor,ba=i=>{throw TypeError(i)},q=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sd(e,t,o),o},Ad=(i,e,t)=>e.has(i)||ba("Cannot "+t),zd=(i,e,t)=>e.has(i)?ba("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Md=(i,e,t)=>(Ad(i,e,"access private method"),t),Or,ga;n.UUIInputElement=class extends ge(be("",v),""){constructor(){super(),zd(this,Or),this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="",this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keydown",Md(this,Or,ga)),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&String(this.value).length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&String(this.value).length>this.maxlength),this.updateComplete.then(()=>{this.addFormControlElement(this._input)})}get type(){return this._type}set type(e){this._type=e}async blur(){await this.updateComplete,this._input.blur()}async focus(){await this.updateComplete,this._input.focus()}async select(){await this.updateComplete,this._input.select()}getFormElement(){return this.shadowRoot?.querySelector("input")}onInput(e){e.stopPropagation(),this.value=e.target.value,this.dispatchEvent(new st(st.INPUT))}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new st(st.CHANGE))}renderPrepend(){return u`<slot name="prepend"></slot>`}renderAppend(){return u`<slot name="append"></slot>`}render(){return u`${this.renderPrepend()} ${this.autoWidth?this.renderInputWithAutoWidth():this.renderInput()} ${this.renderAppend()}`}renderInputWithAutoWidth(){return u`<div id="control">${this.renderInput()}${this.renderAutoWidthBackground()}</div>`}renderInput(){return u`<input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" pattern="${k(this.pattern)}" min="${k(this.min)}" max="${k(this.max)}" step="${k(this.step)}" spellcheck="${this.spellcheck}" autocomplete="${k(this.autocomplete)}" placeholder="${k(this.placeholder)}" aria-label="${k(this.label)}" inputmode="${k(this.inputMode)}" ?disabled="${this.disabled}" ?autofocus="${this.autofocus}" ?required="${this.required}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">`}renderAutoWidthBackground(){return u`<div id="auto" aria-hidden="true">${this.renderText()}</div>`}renderText(){return u`${this.value.length>0?this.value:this.placeholder}`}},Or=new WeakSet,ga=function(i){this.type!=="color"&&i.key=="Enter"&&this.submit()},n.UUIInputElement.formAssociated=!0,n.UUIInputElement.styles=[m`:host{position:relative;display:inline-flex;align-items:stretch;height:var(--uui-input-height,var(--uui-size-11,33px));text-align:left;box-sizing:border-box;background-color:var(--uui-input-background-color,var(--uui-color-surface,#fff));border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));--uui-button-height:100%;--auto-width-text-margin-right:0;--auto-width-text-margin-left:0}#control{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex-grow:1}#auto{border:0 1px solid transparent;visibility:hidden;white-space:pre;z-index:-1;height:0;padding:0 var(--uui-size-space-3,9px);margin:0 var(--auto-width-text-margin-right) 0 var(--auto-width-text-margin-left)}:host([auto-width]) #input{width:10px;min-width:100%}:host(:hover){border-color:var(--uui-input-border-color-hover,var(--uui-color-border-standalone,#c2c2c2))}:host(:focus-within){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:focus){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1))}:host([disabled]){background-color:var(--uui-input-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input{-webkit-text-fill-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([readonly]){background-color:var(--uui-input-background-color-readonly,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2))}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border-color:var(--uui-color-danger,#d42054)}input{font-family:inherit;padding:var(--uui-size-1,3px) var(--uui-size-space-3,9px);font-size:inherit;color:inherit;border-radius:0;box-sizing:border-box;border:none;background:0 0;width:100%;height:inherit;text-align:inherit;outline:0}input[type=password]::-ms-reveal{display:none}input[type=color]{width:30px;padding:0;border:none}::slotted(uui-input),::slotted(uui-input-lock){height:100%;--uui-input-border-width:0}`],q([l()],n.UUIInputElement.prototype,"min",2),q([l({type:Number})],n.UUIInputElement.prototype,"minlength",2),q([l({type:String,attribute:"minlength-message"})],n.UUIInputElement.prototype,"minlengthMessage",2),q([l()],n.UUIInputElement.prototype,"max",2),q([l({type:Number})],n.UUIInputElement.prototype,"maxlength",2),q([l({type:String,attribute:"maxlength-message"})],n.UUIInputElement.prototype,"maxlengthMessage",2),q([l({type:Number})],n.UUIInputElement.prototype,"step",2),q([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"disabled",2),q([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"readonly",2),q([l()],n.UUIInputElement.prototype,"placeholder",2),q([l()],n.UUIInputElement.prototype,"autocomplete",2),q([l({type:Boolean,reflect:!0,attribute:"auto-width"})],n.UUIInputElement.prototype,"autoWidth",2),q([l({type:String})],n.UUIInputElement.prototype,"type",1),q([l({type:String})],n.UUIInputElement.prototype,"pattern",2),q([l({type:String})],n.UUIInputElement.prototype,"inputMode",2),q([A("#input")],n.UUIInputElement.prototype,"_input",2),n.UUIInputElement=q([b("uui-input")],n.UUIInputElement);let bo=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};bo.LOCK_CHANGE="lock-change";var Ld=Object.defineProperty,Od=Object.getOwnPropertyDescriptor,va=(i,e,t,r)=>{for(var o=r>1?void 0:r?Od(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ld(e,t,o),o};n.UUIInputLockElement=class extends n.UUIInputElement{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked,this.pristine=!1,this.dispatchEvent(new bo(bo.LOCK_CHANGE))}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${dc.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${gc.strings[0]}"></uui-icon>`}renderPrepend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onLockToggle}" compact="compact" id="lock" label="${this.locked?"Unlock input":"Lock input"}">${this.renderIcon()}</uui-button>`}},n.UUIInputLockElement.styles=[...n.UUIInputElement.styles,m`#lock{height:100%;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.55}`],va([l({type:Boolean,reflect:!0})],n.UUIInputLockElement.prototype,"locked",2),n.UUIInputLockElement=va([b("uui-input-lock")],n.UUIInputLockElement);var Td=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Tr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Nd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Td(e,t,o),o};n.UUIInputPasswordElement=class extends n.UUIInputElement{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(e){this.passwordType=e}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${mc.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${vc.strings[0]}"></uui-icon>`}renderAppend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}},n.UUIInputPasswordElement.styles=[...n.UUIInputElement.styles,m`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],Tr([w()],n.UUIInputPasswordElement.prototype,"passwordType",2),Tr([l()],n.UUIInputPasswordElement.prototype,"type",1),n.UUIInputPasswordElement=Tr([b("uui-input-password")],n.UUIInputPasswordElement);var Bd=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIKeyboardShortcutElement=class extends v{render(){return u`<slot></slot>`}},n.UUIKeyboardShortcutElement.styles=[m`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px);color:var(--uui-color-text,#060606)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`],n.UUIKeyboardShortcutElement=Bd([b("uui-keyboard-shortcut")],n.UUIKeyboardShortcutElement);var Dd=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIKeyElement=class extends v{render(){return u`<slot></slot>`}},n.UUIKeyElement.styles=[m`:host{background:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border,#d8d7d9);font-family:inherit;font-size:var(--uui-type-small-size,12px);color:var(--uui-color-text,#060606);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;user-select:none;text-transform:lowercase}`],n.UUIKeyElement=Dd([b("uui-key")],n.UUIKeyElement);var Vd=Object.defineProperty,jd=Object.getOwnPropertyDescriptor,go=(i,e,t,r)=>{for(var o=r>1?void 0:r?jd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vd(e,t,o),o};n.UUILabelElement=class extends v{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const e=this.getForElement();e&&(e.focus(),e.click())}getForElement(){return typeof this.for=="string"?this.getRootNode()?.getElementById(this.for)||null:this.for||null}render(){return u`<slot></slot>${this.required?u`<div id="required">*</div>`:""}`}},n.UUILabelElement.styles=[m`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-color-danger,#d42054);font-weight:900}`],go([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"disabled",2),go([l({reflect:!0,attribute:!0})],n.UUILabelElement.prototype,"for",2),go([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"required",2),n.UUILabelElement=go([b("uui-label")],n.UUILabelElement);var Hd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,Nr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hd(e,t,o),o};n.UUILoaderBarElement=class extends v{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=O(e,0,100),this.requestUpdate("progress",t)}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=this._animationDuration;this._animationDuration=e>=0?e:1,this.requestUpdate("animationDuration",t)}render(){return u`${this.progress?u`<div id="bar" style="max-width:${this.progress.toString()}"></div>`:""}<div id="bar-anim" class="${this.progress?"":"animate"}" style="animation-duration:${this.animationDuration}"></div><div id="bar-background"></div>`}},n.UUILoaderBarElement.styles=[m`:host{position:relative;display:block;width:100%;height:4px;overflow:hidden;color:var(--uui-color-default,#1b264f)}#bar,#bar-anim,#bar-background{position:absolute;inset:0;height:100%}#bar,#bar-background{background:currentColor}#bar{transition:max-width 120ms ease}#bar-background{opacity:.3}#bar-anim{transform:scaleX(.4);animation:bar-loading 1s infinite linear;background:linear-gradient(-90deg,#fff 0,#fff 25%,transparent 100%)}#bar-anim.animate{background:linear-gradient(-90deg,currentColor 0,currentColor 25%,transparent 100%)}@keyframes bar-loading{0%{transform-origin:-175% 0}100%{transform-origin:175% 0}}`],Nr([l({type:Number})],n.UUILoaderBarElement.prototype,"progress",1),Nr([l({type:Number})],n.UUILoaderBarElement.prototype,"animationDuration",1),n.UUILoaderBarElement=Nr([b("uui-loader-bar")],n.UUILoaderBarElement);var Fd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,Br=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fd(e,t,o),o};n.UUILoaderCircleElement=class extends v{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const e=this.clientHeight>=30;this._isLarge!=e&&(this._isLarge=e,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?u`<span id="progress-display">${this.progress}</span>`:""}render(){return u`<svg id="spinner" class="${this.progress?"":"animate"}" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle id="bg" cx="50%" cy="50%" r="16"/><g><circle id="circle" cx="50%" cy="50%" r="16" style="${ve(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},n.UUILoaderCircleElement.styles=[m`:host{vertical-align:middle;line-height:0;overflow:hidden;display:inline-flex;justify-content:center;align-items:center;position:relative;width:1em;height:1em;color:var(--uui-color-default,#1b264f)}#spinner{width:100%;height:100%}#spinner g{transform-origin:50% 50%;animation:18s linear infinite spinner-animation}#spinner.animate g{animation:.8s linear infinite spinner-animation}@keyframes spinner-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}#spinner.animate #circle{animation:1.4s ease-in infinite circle-animation}@keyframes circle-animation{0%{stroke-dashoffset:-55}38%{stroke-dashoffset:-88}100%{stroke-dashoffset:-55}}svg circle{fill:transparent;stroke:currentColor;stroke-width:6px}#bg{opacity:.5}#circle{stroke-linecap:round;stroke-dasharray:0 0;transform-origin:50% 50%;transform:rotate(-90deg);transition:stroke-dasharray 120ms ease}#progress-display{position:absolute;left:0;top:50%;right:0;stroke:currentColor;transform:translateY(-50%);font-size:.3em;font-weight:700;text-align:center;padding-top:.09em}`],Br([l({type:Number})],n.UUILoaderCircleElement.prototype,"progress",2),Br([l({type:Boolean,reflect:!0,attribute:"show-progress"})],n.UUILoaderCircleElement.prototype,"showProgress",2),n.UUILoaderCircleElement=Br([b("uui-loader-circle")],n.UUILoaderCircleElement);var Wd=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUILoaderElement=class extends v{render(){return u`<div></div><div></div><div></div>`}},n.UUILoaderElement.styles=[m`:host{color:var(--uui-color-default,#1b264f)}div{display:inline-block;width:var(--uui-size-2,6px);height:var(--uui-size-2,6px);border:2px solid currentColor;border-radius:100%;animation:loaderAnimation 1.4s infinite}div:nth-child(1n){animation-delay:0s}div:nth-child(2n){animation-delay:.15s}div:nth-child(3n){animation-delay:.3s}@keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}`],n.UUILoaderElement=Wd([b("uui-loader")],n.UUILoaderElement);/**
351
+ */class Tr extends Et{constructor(e){if(super(e),this.et=I,e.type!==le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===I||e==null)return this.ft=void 0,this.et=e;if(e===J)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Tr.directiveName="unsafeHTML",Tr.resultType=1;const vo=$t(Tr);var Zh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,Ua=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zh(e,t,o),o};n.UUIFormValidationMessageElement=class extends f{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=e=>{const t=e.composedPath()[0];t.pristine===!1?this._messages.set(t,t.validationMessage):this._messages.delete(t),this.requestUpdate("_messages")},this._onControlValid=e=>{const t=e.composedPath()[0];this._messages.delete(t),this.requestUpdate("_messages")},this.for===null&&(this.for=this)}get for(){return this._for}set for(e){let t=null;typeof e=="string"?t=this.getRootNode()?.getElementById(e):e instanceof HTMLElement&&(t=e);const r=t??this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(Ut.INVALID,this._onControlInvalid),o.removeEventListener(Ut.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(Ut.INVALID,this._onControlInvalid),this._for.addEventListener(Ut.VALID,this._onControlValid))}render(){return u`<slot></slot><div id="messages">${Or(this._messages,e=>u`<div>${vo(e[1])}</div>`)}<slot name="message"></slot></div>`}},n.UUIFormValidationMessageElement.styles=[v`#messages{color:var(--uui-color-danger-standalone,#bf214e)}`],Ua([l({reflect:!1,attribute:!0})],n.UUIFormValidationMessageElement.prototype,"for",1),n.UUIFormValidationMessageElement=Ua([g("uui-form-validation-message")],n.UUIFormValidationMessageElement);var Jh=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIFormElement=class extends f{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(e){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const t=e.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=t.length>0?t[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(e){if(e.target===null)return;const t=e.target;if(!t.checkValidity()){t.setAttribute("submit-invalid","");return}t.removeAttribute("submit-invalid")}_onReset(e){e.target!==null&&e.target.removeAttribute("submit-invalid")}render(){return u`<slot @slotchange="${this._onSlotChanged}"></slot>`}},n.UUIFormElement=Jh([g("uui-form")],n.UUIFormElement);let Vt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t}),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}};Vt.ICON_REQUEST="icon-request";var ed=Object.defineProperty,td=Object.getOwnPropertyDescriptor,nt=(i,e,t,r)=>{for(var o=r>1?void 0:r?td(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ed(e,t,o),o};n.UUIIconElement=class extends f{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.label="",this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(e){this._name=e,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const e=new Vt(Vt.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(e),e.icon!==null?(this._retrievedNameIcon=!0,e.icon.then(t=>{this._useFallback=!1,this._nameSvg=t})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon(),typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:u`${vo(this.fallback)}`:this._nameSvg!==null?u`${vo(this._nameSvg)}`:this.svg!==null?u`${vo(this.svg)}`:u`<slot></slot>`}},n.UUIIconElement.styles=[v`:host{display:inline-block;vertical-align:bottom;width:1.125em;height:1.125em}::slotted(svg),:host svg{color:var(--uui-icon-color,currentColor)}:host-context(div[slot=prepend]){margin-left:var(--uui-size-2,6px)}:host-context(div[slot=append]){margin-right:var(--uui-size-2,6px)}`],nt([w()],n.UUIIconElement.prototype,"_nameSvg",2),nt([l()],n.UUIIconElement.prototype,"label",2),nt([l()],n.UUIIconElement.prototype,"name",1),nt([l({attribute:!1})],n.UUIIconElement.prototype,"svg",2),nt([l({attribute:!1})],n.UUIIconElement.prototype,"fallback",2),nt([w()],n.UUIIconElement.prototype,"_useFallback",2),n.UUIIconElement=nt([g("uui-icon")],n.UUIIconElement);let Nr=class{constructor(e){this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),e&&this.resolve(e)}set svg(e){this.resolve(e)}},Br=class{constructor(){this.icons={},this._onIconRequest=e=>{const t=this.getIcon(e.detail.iconName);t!==null&&e.acceptRequest(t)}}attach(e){e.addEventListener(Vt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(Vt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,t){if(this.icons[e]){this.icons[e].svg=t;return}this.icons[e]=new Nr(t)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Nr}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}};var id=Object.defineProperty,od=Object.getOwnPropertyDescriptor,ka=(i,e,t,r)=>{for(var o=r>1?void 0:r?od(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&id(e,t,o),o};n.UUIIconRegistryElement=class extends f{constructor(){super(),this._icons={},this._registry=new Br,this._registry.attach(this)}get icons(){return this._icons}set icons(e){this._icons=e,this._registry&&Object.entries(this._icons).forEach(([t,r])=>this._registry.defineIcon(t,r))}get registry(){return this._registry}set registry(e){this.registry&&this.registry.detach(this),e.attach(this),this._registry=e}render(){return u`<slot></slot>`}},ka([l({attribute:!1})],n.UUIIconRegistryElement.prototype,"_icons",2),n.UUIIconRegistryElement=ka([g("uui-icon-registry")],n.UUIIconRegistryElement);const rd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,nd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>`,sd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>`,ad=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg>`,ld=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`,ud=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>`,cd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,hd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9"/><path d="M3 21v-3l9-9"/><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"/></svg>`,dd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"/><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"/><path d="M15 2v5h5"/></svg>`,pd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,md=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`,bd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,vd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg>`,gd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>`,fd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/><path d="M2 10h20"/></svg>`,yd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,wd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,_d=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`,Ud=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`,kd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/></svg>`,$d=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`,Ed=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>`,Id=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`,xd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>`,Cd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`,Sd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>`,Pd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg>`,Ad=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>`,zd=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,Md=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`,Ld=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2"/><path d="M15 16v-2"/><path d="M8 9h2"/><path d="M20 9h2"/><path d="M17.8 11.8 19 13"/><path d="M15 9h0"/><path d="M17.8 6.2 19 5"/><path d="m3 21 9-9"/><path d="M12.2 6.2 11 5"/></svg>`,Od=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;let $a=class extends Br{constructor(){super(),this.defineIcon("add",rd.strings[0]),this.defineIcon("alert",nd.strings[0]),this.defineIcon("attachment",sd.strings[0]),this.defineIcon("calendar",ad.strings[0]),this.defineIcon("check",ld.strings[0]),this.defineIcon("clipboard",ud.strings[0]),this.defineIcon("code",cd.strings[0]),this.defineIcon("colorpicker",hd.strings[0]),this.defineIcon("copy",dd.strings[0]),this.defineIcon("delete",pd.strings[0]),this.defineIcon("document",md.strings[0]),this.defineIcon("download",bd.strings[0]),this.defineIcon("edit",vd.strings[0]),this.defineIcon("favorite",gd.strings[0]),this.defineIcon("folder",fd.strings[0]),this.defineIcon("forbidden",yd.strings[0]),this.defineIcon("info",wd.strings[0]),this.defineIcon("link",_d.strings[0]),this.defineIcon("lock",Ud.strings[0]),this.defineIcon("pause",kd.strings[0]),this.defineIcon("picture",$d.strings[0]),this.defineIcon("play",Ed.strings[0]),this.defineIcon("remove",Id.strings[0]),this.defineIcon("search",xd.strings[0]),this.defineIcon("see",Cd.strings[0]),this.defineIcon("settings",Sd.strings[0]),this.defineIcon("subtract",Pd.strings[0]),this.defineIcon("sync",Ad.strings[0]),this.defineIcon("unlock",zd.strings[0]),this.defineIcon("unsee",Md.strings[0]),this.defineIcon("wand",Ld.strings[0]),this.defineIcon("wrong",Od.strings[0])}};var Td=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIIconRegistryEssentialElement=class extends n.UUIIconRegistryElement{constructor(){super(),this.registry=new $a}},n.UUIIconRegistryEssentialElement=Td([g("uui-icon-registry-essential")],n.UUIIconRegistryEssentialElement);var Nd=Object.defineProperty,Bd=Object.getOwnPropertyDescriptor,jt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Nd(e,t,o),o};n.UUIInputFileElement=class extends ve(f){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=e=>{let t=[];for(const r of e)this.multiple?t.push(r):t=[r];this._files=t},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return super.value}set value(e){if(super.value=e,e instanceof FormData){const t=this.multiple?e.getAll(this.name):[e.get(this.name)];this._updateFileWrappers(t);return}if(e instanceof File){this._updateFileWrappers([e]);return}}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-file-dropzone"),$(this,"uui-button"),$(this,"uui-action-bar"),$(this,"uui-file-preview")}getFormElement(){return this._dropZone}async blur(){await this.updateComplete,this._dropzone.blur()}async focus(){await this.updateComplete,this._dropzone.focus()}async click(){await this.updateComplete,this._dropzone.browse()}_handleClick(e){e.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(e){const t=e.detail.files.filter(o=>o instanceof File||o.isFile);if(!this.multiple){const o=t[0],s=o instanceof File?o:await this._getFile(o);if(this.value instanceof File){this.value=s;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,s),this._updateFileWrappers([s]);return}}let r=this.value;if(t.length>0&&!(this.value instanceof FormData)&&(r=new FormData),r instanceof FormData)for(const o of t){const s=o instanceof File;r.append(this.name,s?o:await this._getFile(o))}this.value=r}async _getFile(e){return await new Promise((t,r)=>e.file(t,r))}_removeFile(e){const t=this._files[e];if(this.value instanceof FormData){const r=this.value.getAll(this.name).filter(o=>o!==t);if(r.length===0)this.value="";else{this.value.delete(this.name);for(const o of r)this.value.append(this.name,o)}this._updateFileWrappers(r)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(e){e?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(e,t){return u`<uui-file-preview .file="${e}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(t)}" color="danger" label="${`Delete ${e.name}`}"><uui-icon name="delete" .fallback="${_c.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${Or(this._files,e=>e.name+e.size,(e,t)=>this._renderFileItem(e,t))}`}render(){return u`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()} ${this._files.length===0||this.multiple?u`<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button>`:I}</div>`}},n.UUIInputFileElement.styles=[v`:host{width:100%;height:100%;position:relative;display:flex;box-sizing:border-box;border:1px solid var(--uui-color-border,#d8d7d9)}#input{position:absolute;width:0;height:0;opacity:0;display:none}#files{display:grid;box-sizing:border-box;justify-items:center;width:100%;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:min-content;gap:16px;padding:16px;overflow:auto;max-height:100%}#dropzone{display:none;position:absolute;inset:0;z-index:10;justify-content:center;align-items:center}#add-button{width:150px;height:150px;display:flex;padding:16px;box-sizing:border-box;justify-content:center;align-items:stretch}`],jt([A("#dropzone")],n.UUIInputFileElement.prototype,"_dropzone",2),jt([A("#dropzone")],n.UUIInputFileElement.prototype,"_dropZone",2),jt([l({type:String})],n.UUIInputFileElement.prototype,"accept",2),jt([l({type:Boolean})],n.UUIInputFileElement.prototype,"multiple",2),jt([w()],n.UUIInputFileElement.prototype,"_files",2),n.UUIInputFileElement=jt([g("uui-input-file")],n.UUIInputFileElement);let st=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};st.CHANGE="change",st.INPUT="input";var Dd=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,Ea=i=>{throw TypeError(i)},q=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dd(e,t,o),o},jd=(i,e,t)=>e.has(i)||Ea("Cannot "+t),Hd=(i,e,t)=>e.has(i)?Ea("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Rd=(i,e,t)=>(jd(i,e,"access private method"),t),Dr,Ia;n.UUIInputElement=class extends ve(be("",f),""){constructor(){super(),Hd(this,Dr),this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="",this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keydown",Rd(this,Dr,Ia)),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&String(this.value).length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&String(this.value).length>this.maxlength),this.updateComplete.then(()=>{this.addFormControlElement(this._input)})}get type(){return this._type}set type(e){this._type=e}async blur(){await this.updateComplete,this._input.blur()}async focus(){await this.updateComplete,this._input.focus()}async select(){await this.updateComplete,this._input.select()}getFormElement(){return this.shadowRoot?.querySelector("input")}onInput(e){e.stopPropagation(),this.value=e.target.value,this.dispatchEvent(new st(st.INPUT))}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new st(st.CHANGE))}renderPrepend(){return u`<slot name="prepend"></slot>`}renderAppend(){return u`<slot name="append"></slot>`}render(){return u`${this.renderPrepend()} ${this.autoWidth?this.renderInputWithAutoWidth():this.renderInput()} ${this.renderAppend()}`}renderInputWithAutoWidth(){return u`<div id="control">${this.renderInput()}${this.renderAutoWidthBackground()}</div>`}renderInput(){return u`<input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" pattern="${k(this.pattern)}" min="${k(this.min)}" max="${k(this.max)}" step="${k(this.step)}" spellcheck="${this.spellcheck}" autocomplete="${k(this.autocomplete)}" placeholder="${k(this.placeholder)}" aria-label="${k(this.label)}" inputmode="${k(this.inputMode)}" ?disabled="${this.disabled}" ?autofocus="${this.autofocus}" ?required="${this.required}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">`}renderAutoWidthBackground(){return u`<div id="auto" aria-hidden="true">${this.renderText()}</div>`}renderText(){return u`${this.value.length>0?this.value:this.placeholder}`}},Dr=new WeakSet,Ia=function(i){this.type!=="color"&&i.key=="Enter"&&this.submit()},n.UUIInputElement.formAssociated=!0,n.UUIInputElement.styles=[v`:host{position:relative;display:inline-flex;align-items:stretch;height:var(--uui-input-height,var(--uui-size-11,33px));text-align:left;box-sizing:border-box;background-color:var(--uui-input-background-color,var(--uui-color-surface,#fff));border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));--uui-button-height:100%;--auto-width-text-margin-right:0;--auto-width-text-margin-left:0}#control{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex-grow:1}#auto{border:0 1px solid transparent;visibility:hidden;white-space:pre;z-index:-1;height:0;padding:0 var(--uui-size-space-3,9px);margin:0 var(--auto-width-text-margin-right) 0 var(--auto-width-text-margin-left)}:host([auto-width]) #input{width:10px;min-width:100%}:host(:hover){border-color:var(--uui-input-border-color-hover,var(--uui-color-border-standalone,#c2c2c2))}:host(:focus-within){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:focus){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1))}:host([disabled]){background-color:var(--uui-input-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input{-webkit-text-fill-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([readonly]){background-color:var(--uui-input-background-color-readonly,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2))}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border-color:var(--uui-color-danger,#d42054)}input{font-family:inherit;padding:var(--uui-size-1,3px) var(--uui-size-space-3,9px);font-size:inherit;color:inherit;border-radius:0;box-sizing:border-box;border:none;background:0 0;width:100%;height:inherit;text-align:inherit;outline:0}input[type=password]::-ms-reveal{display:none}input[type=color]{width:30px;padding:0;border:none}::slotted(uui-input),::slotted(uui-input-lock){height:100%;--uui-input-border-width:0}`],q([l()],n.UUIInputElement.prototype,"min",2),q([l({type:Number})],n.UUIInputElement.prototype,"minlength",2),q([l({type:String,attribute:"minlength-message"})],n.UUIInputElement.prototype,"minlengthMessage",2),q([l()],n.UUIInputElement.prototype,"max",2),q([l({type:Number})],n.UUIInputElement.prototype,"maxlength",2),q([l({type:String,attribute:"maxlength-message"})],n.UUIInputElement.prototype,"maxlengthMessage",2),q([l({type:Number})],n.UUIInputElement.prototype,"step",2),q([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"disabled",2),q([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"readonly",2),q([l()],n.UUIInputElement.prototype,"placeholder",2),q([l()],n.UUIInputElement.prototype,"autocomplete",2),q([l({type:Boolean,reflect:!0,attribute:"auto-width"})],n.UUIInputElement.prototype,"autoWidth",2),q([l({type:String})],n.UUIInputElement.prototype,"type",1),q([l({type:String})],n.UUIInputElement.prototype,"pattern",2),q([l({type:String})],n.UUIInputElement.prototype,"inputMode",2),q([A("#input")],n.UUIInputElement.prototype,"_input",2),n.UUIInputElement=q([g("uui-input")],n.UUIInputElement);let go=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};go.LOCK_CHANGE="lock-change";var Fd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,xa=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fd(e,t,o),o};n.UUIInputLockElement=class extends n.UUIInputElement{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked,this.pristine=!1,this.dispatchEvent(new go(go.LOCK_CHANGE))}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${Uc.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${Ic.strings[0]}"></uui-icon>`}renderPrepend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onLockToggle}" compact="compact" id="lock" label="${this.locked?"Unlock input":"Lock input"}">${this.renderIcon()}</uui-button>`}},n.UUIInputLockElement.styles=[...n.UUIInputElement.styles,v`#lock{height:100%;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.55}`],xa([l({type:Boolean,reflect:!0})],n.UUIInputLockElement.prototype,"locked",2),n.UUIInputLockElement=xa([g("uui-input-lock")],n.UUIInputLockElement);var Wd=Object.defineProperty,qd=Object.getOwnPropertyDescriptor,Vr=(i,e,t,r)=>{for(var o=r>1?void 0:r?qd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wd(e,t,o),o};n.UUIInputPasswordElement=class extends n.UUIInputElement{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(e){this.passwordType=e}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${$c.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${xc.strings[0]}"></uui-icon>`}renderAppend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}},n.UUIInputPasswordElement.styles=[...n.UUIInputElement.styles,v`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],Vr([w()],n.UUIInputPasswordElement.prototype,"passwordType",2),Vr([l()],n.UUIInputPasswordElement.prototype,"type",1),n.UUIInputPasswordElement=Vr([g("uui-input-password")],n.UUIInputPasswordElement);var Kd=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIKeyboardShortcutElement=class extends f{render(){return u`<slot></slot>`}},n.UUIKeyboardShortcutElement.styles=[v`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px);color:var(--uui-color-text,#060606)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`],n.UUIKeyboardShortcutElement=Kd([g("uui-keyboard-shortcut")],n.UUIKeyboardShortcutElement);var Xd=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIKeyElement=class extends f{render(){return u`<slot></slot>`}},n.UUIKeyElement.styles=[v`:host{background:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border,#d8d7d9);font-family:inherit;font-size:var(--uui-type-small-size,12px);color:var(--uui-color-text,#060606);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;user-select:none;text-transform:lowercase}`],n.UUIKeyElement=Xd([g("uui-key")],n.UUIKeyElement);var Yd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,fo=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yd(e,t,o),o};n.UUILabelElement=class extends f{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const e=this.getForElement();e&&(e.focus(),e.click())}getForElement(){return typeof this.for=="string"?this.getRootNode()?.getElementById(this.for)||null:this.for||null}render(){return u`<slot></slot>${this.required?u`<div id="required">*</div>`:""}`}},n.UUILabelElement.styles=[v`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-color-danger,#d42054);font-weight:900}`],fo([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"disabled",2),fo([l({reflect:!0,attribute:!0})],n.UUILabelElement.prototype,"for",2),fo([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"required",2),n.UUILabelElement=fo([g("uui-label")],n.UUILabelElement);var Qd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,jr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Qd(e,t,o),o};n.UUILoaderBarElement=class extends f{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=O(e,0,100),this.requestUpdate("progress",t)}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=this._animationDuration;this._animationDuration=e>=0?e:1,this.requestUpdate("animationDuration",t)}render(){return u`${this.progress?u`<div id="bar" style="max-width:${this.progress.toString()}"></div>`:""}<div id="bar-anim" class="${this.progress?"":"animate"}" style="animation-duration:${this.animationDuration}"></div><div id="bar-background"></div>`}},n.UUILoaderBarElement.styles=[v`:host{position:relative;display:block;width:100%;height:4px;overflow:hidden;color:var(--uui-color-default,#1b264f)}#bar,#bar-anim,#bar-background{position:absolute;inset:0;height:100%}#bar,#bar-background{background:currentColor}#bar{transition:max-width 120ms ease}#bar-background{opacity:.3}#bar-anim{transform:scaleX(.4);animation:bar-loading 1s infinite linear;background:linear-gradient(-90deg,#fff 0,#fff 25%,transparent 100%)}#bar-anim.animate{background:linear-gradient(-90deg,currentColor 0,currentColor 25%,transparent 100%)}@keyframes bar-loading{0%{transform-origin:-175% 0}100%{transform-origin:175% 0}}`],jr([l({type:Number})],n.UUILoaderBarElement.prototype,"progress",1),jr([l({type:Number})],n.UUILoaderBarElement.prototype,"animationDuration",1),n.UUILoaderBarElement=jr([g("uui-loader-bar")],n.UUILoaderBarElement);var ep=Object.defineProperty,tp=Object.getOwnPropertyDescriptor,Hr=(i,e,t,r)=>{for(var o=r>1?void 0:r?tp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ep(e,t,o),o};n.UUILoaderCircleElement=class extends f{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const e=this.clientHeight>=30;this._isLarge!=e&&(this._isLarge=e,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?u`<span id="progress-display">${this.progress}</span>`:""}render(){return u`<svg id="spinner" class="${this.progress?"":"animate"}" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle id="bg" cx="50%" cy="50%" r="16"/><g><circle id="circle" cx="50%" cy="50%" r="16" style="${ge(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},n.UUILoaderCircleElement.styles=[v`:host{vertical-align:middle;line-height:0;overflow:hidden;display:inline-flex;justify-content:center;align-items:center;position:relative;width:1em;height:1em;color:var(--uui-color-default,#1b264f)}#spinner{width:100%;height:100%}#spinner g{transform-origin:50% 50%;animation:18s linear infinite spinner-animation}#spinner.animate g{animation:.8s linear infinite spinner-animation}@keyframes spinner-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}#spinner.animate #circle{animation:1.4s ease-in infinite circle-animation}@keyframes circle-animation{0%{stroke-dashoffset:-55}38%{stroke-dashoffset:-88}100%{stroke-dashoffset:-55}}svg circle{fill:transparent;stroke:currentColor;stroke-width:6px}#bg{opacity:.5}#circle{stroke-linecap:round;stroke-dasharray:0 0;transform-origin:50% 50%;transform:rotate(-90deg);transition:stroke-dasharray 120ms ease}#progress-display{position:absolute;left:0;top:50%;right:0;stroke:currentColor;transform:translateY(-50%);font-size:.3em;font-weight:700;text-align:center;padding-top:.09em}`],Hr([l({type:Number})],n.UUILoaderCircleElement.prototype,"progress",2),Hr([l({type:Boolean,reflect:!0,attribute:"show-progress"})],n.UUILoaderCircleElement.prototype,"showProgress",2),n.UUILoaderCircleElement=Hr([g("uui-loader-circle")],n.UUILoaderCircleElement);var ip=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUILoaderElement=class extends f{render(){return u`<div></div><div></div><div></div>`}},n.UUILoaderElement.styles=[v`:host{color:var(--uui-color-default,#1b264f)}div{display:inline-block;width:var(--uui-size-2,6px);height:var(--uui-size-2,6px);border:2px solid currentColor;border-radius:100%;animation:loaderAnimation 1.4s infinite}div:nth-child(1n){animation-delay:0s}div:nth-child(2n){animation-delay:.15s}div:nth-child(3n){animation-delay:.3s}@keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}`],n.UUILoaderElement=ip([g("uui-loader")],n.UUILoaderElement);/**
352
352
  * @license
353
353
  * Copyright 2017 Google LLC
354
354
  * SPDX-License-Identifier: BSD-3-Clause
355
- */const yi=(i,e)=>{var t,r;const o=i._$AN;if(o===void 0)return!1;for(const s of o)(r=(t=s)._$AO)===null||r===void 0||r.call(t,e,!1),yi(s,e);return!0},vo=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while(t?.size===0)},fa=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),Xd(e)}};function qd(i){this._$AN!==void 0?(vo(this),this._$AM=i,fa(this)):this._$AM=i}function Kd(i,e=!1,t=0){const r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(r))for(let s=t;s<r.length;s++)yi(r[s],!1),vo(r[s]);else r!=null&&(yi(r,!1),vo(r));else yi(this,i)}const Xd=i=>{var e,t,r,o;i.type==le.CHILD&&((e=(r=i)._$AP)!==null&&e!==void 0||(r._$AP=Kd),(t=(o=i)._$AQ)!==null&&t!==void 0||(o._$AQ=qd))};let Yd=class extends Et{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),fa(this),this.isConnected=e._$AU}_$AO(e,t=!0){var r,o;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)===null||r===void 0||r.call(this):(o=this.disconnected)===null||o===void 0||o.call(this)),t&&(yi(this,e),vo(this))}setValue(e){if(Ws(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};const Dr=new WeakMap,Vr=$t(class extends Yd{render(i){return I}update(i,[e]){var t;const r=e!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.dt=(t=i.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=i.element)),I}ot(i){var e;if(typeof this.G=="function"){const t=(e=this.dt)!==null&&e!==void 0?e:globalThis;let r=Dr.get(t);r===void 0&&(r=new WeakMap,Dr.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.dt,void 0),r.set(this.G,i),i!==void 0&&this.G.call(this.dt,i)}else this.G.value=i}get rt(){var i,e,t;return typeof this.G=="function"?(e=Dr.get((i=this.dt)!==null&&i!==void 0?i:globalThis))===null||e===void 0?void 0:e.get(this.G):(t=this.G)===null||t===void 0?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});let Se=class extends L{};Se.SHOW_CHILDREN="show-children",Se.HIDE_CHILDREN="hide-children",Se.CLICK_LABEL="click-label";var Zd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,pe=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zd(e,t,o),o};n.UUIMenuItemElement=class extends Bi(_t(hi(be("label",v)))){constructor(){super(...arguments),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.caretLabel="Reveal the underlying items",this.iconSlotHasContent=!1,this._labelButtonChanged=e=>{this.selectableTarget=e||this},this._iconSlotChanged=e=>{this.iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._onCaretClicked=()=>{const e=this.showChildren?Se.HIDE_CHILDREN:Se.SHOW_CHILDREN,t=new Se(e,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.showChildren=!this.showChildren)},this._onLabelClicked=()=>{const e=new Se(Se.CLICK_LABEL);this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),$(this,"uui-symbol-expand"),$(this,"uui-loader-bar")}async focus(){await this.updateComplete,this.shadowRoot?.querySelector("#label-button")?.focus?.()}_renderLabelInside(){return u`<slot name="icon" id="icon" style="${this.iconSlotHasContent?"":"display: none;"}" @slotchange="${this._iconSlotChanged}"></slot>${this.renderLabel()}<slot name="badge" id="badge"></slot>`}_renderLabelAsAnchor(){return this.disabled?u`<span id="label-button" ${Vr(this._labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${Vr(this._labelButtonChanged)} href="${k(this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}" @click="${this._onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return u`<button id="label-button" ${Vr(this._labelButtonChanged)} @click="${this._onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</button>`}render(){return u`<div id="menu-item" aria-label="menuitem" role="menuitem">${this.hasChildren?u`<button id="caret-button" aria-label="${this.caretLabel}" @click="${this._onCaretClicked}"><uui-symbol-expand aria-hidden="true" ?open="${this.showChildren}"></uui-symbol-expand></button>`:""} ${this.href?this._renderLabelAsAnchor():this._renderLabelAsButton()}<div id="label-button-background"></div>${this.selectOnly===!1?u`<slot id="actions-container" name="actions"></slot>`:""} ${this.loading?u`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?u`<slot></slot>`:""}`}},n.UUIMenuItemElement.styles=[m`:host{box-sizing:border-box;display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none;--flat-structure-reversed:calc(
355
+ */const _i=(i,e)=>{var t,r;const o=i._$AN;if(o===void 0)return!1;for(const s of o)(r=(t=s)._$AO)===null||r===void 0||r.call(t,e,!1),_i(s,e);return!0},yo=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while(t?.size===0)},Ca=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),np(e)}};function op(i){this._$AN!==void 0?(yo(this),this._$AM=i,Ca(this)):this._$AM=i}function rp(i,e=!1,t=0){const r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(r))for(let s=t;s<r.length;s++)_i(r[s],!1),yo(r[s]);else r!=null&&(_i(r,!1),yo(r));else _i(this,i)}const np=i=>{var e,t,r,o;i.type==le.CHILD&&((e=(r=i)._$AP)!==null&&e!==void 0||(r._$AP=rp),(t=(o=i)._$AQ)!==null&&t!==void 0||(o._$AQ=op))};let sp=class extends Et{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),Ca(this),this.isConnected=e._$AU}_$AO(e,t=!0){var r,o;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)===null||r===void 0||r.call(this):(o=this.disconnected)===null||o===void 0||o.call(this)),t&&(_i(this,e),yo(this))}setValue(e){if(ia(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};const Rr=new WeakMap,Fr=$t(class extends sp{render(i){return I}update(i,[e]){var t;const r=e!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.dt=(t=i.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=i.element)),I}ot(i){var e;if(typeof this.G=="function"){const t=(e=this.dt)!==null&&e!==void 0?e:globalThis;let r=Rr.get(t);r===void 0&&(r=new WeakMap,Rr.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.dt,void 0),r.set(this.G,i),i!==void 0&&this.G.call(this.dt,i)}else this.G.value=i}get rt(){var i,e,t;return typeof this.G=="function"?(e=Rr.get((i=this.dt)!==null&&i!==void 0?i:globalThis))===null||e===void 0?void 0:e.get(this.G):(t=this.G)===null||t===void 0?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});let Se=class extends L{};Se.SHOW_CHILDREN="show-children",Se.HIDE_CHILDREN="hide-children",Se.CLICK_LABEL="click-label";var ap=Object.defineProperty,lp=Object.getOwnPropertyDescriptor,pe=(i,e,t,r)=>{for(var o=r>1?void 0:r?lp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ap(e,t,o),o};n.UUIMenuItemElement=class extends Vi(_t(di(be("label",f)))){constructor(){super(...arguments),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.caretLabel="Reveal the underlying items",this.iconSlotHasContent=!1,this._labelButtonChanged=e=>{this.selectableTarget=e||this},this._iconSlotChanged=e=>{this.iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._onCaretClicked=()=>{const e=this.showChildren?Se.HIDE_CHILDREN:Se.SHOW_CHILDREN,t=new Se(e,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.showChildren=!this.showChildren)},this._onLabelClicked=()=>{const e=new Se(Se.CLICK_LABEL);this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),$(this,"uui-symbol-expand"),$(this,"uui-loader-bar")}async focus(){await this.updateComplete,this.shadowRoot?.querySelector("#label-button")?.focus?.()}_renderLabelInside(){return u`<slot name="icon" id="icon" style="${this.iconSlotHasContent?"":"display: none;"}" @slotchange="${this._iconSlotChanged}"></slot>${this.renderLabel()}<slot name="badge" id="badge"></slot>`}_renderLabelAsAnchor(){return this.disabled?u`<span id="label-button" ${Fr(this._labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${Fr(this._labelButtonChanged)} href="${k(this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}" @click="${this._onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return u`<button id="label-button" ${Fr(this._labelButtonChanged)} @click="${this._onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</button>`}render(){return u`<div id="menu-item" aria-label="menuitem" role="menuitem">${this.hasChildren?u`<button id="caret-button" aria-label="${this.caretLabel}" @click="${this._onCaretClicked}"><uui-symbol-expand aria-hidden="true" ?open="${this.showChildren}"></uui-symbol-expand></button>`:""} ${this.href?this._renderLabelAsAnchor():this._renderLabelAsButton()}<div id="label-button-background"></div>${this.selectOnly===!1?u`<slot id="actions-container" name="actions"></slot>`:""} ${this.loading?u`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?u`<slot></slot>`:""}`}},n.UUIMenuItemElement.styles=[v`:host{box-sizing:border-box;display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none;--flat-structure-reversed:calc(
356
356
  1 - var(--uui-menu-item-flat-structure, 0)
357
- )}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns:calc(var(--flat-structure-reversed) * var(--uui-size-8,24px)) 1fr;grid-template-rows:1fr;white-space:nowrap}:host(:not([active],[selected],[disabled])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled],[select-mode=highlight])) #menu-item #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}:host(:not([active],[selected])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled])) #menu-item #label-button:hover{color:var(--uui-menu-item-color-hover,var(--uui-color-interactive-emphasis,#3544b1))}:host([active]) #caret-button,:host([active]) #label-button{color:var(--uui-menu-item-color-active,var(--uui-color-current-contrast,#1b264f))}:host([active]) #label-button-background{background-color:var(--uui-menu-item-background-color-active,var(--uui-color-current,#f5c1bc))}:host([active]) #caret-button:hover,:host([active]) #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-active-hover,var(--uui-color-current-emphasis,#f8d6d3))}:host([disabled]) #menu-item{color:var(--uui-menu-item-color-disabled,var(--uui-color-disabled-contrast,#c4c4c4));background-color:var(--uui-menu-item-background-color-disabled,var(--uui-color-disabled,#f3f3f5))}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button,:host([selected]:not([select-mode=highlight],[disabled])) #label-button{color:var(--uui-menu-item-color-selected,var(--uui-color-selected-contrast,#fff))}:host([selected]:not([select-mode=highlight],[disabled])) #label-button-background{background-color:var(--uui-menu-item-background-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button:hover,:host([selected]:not([select-mode=highlight],[disabled])) #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-selected-hover,var(--uui-color-selected-emphasis,#4656c8))}:host([select-mode=highlight]:not([disabled],[active],[selectable])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight,var(--uui-color-surface-emphasis,#fafafa))}:host([select-mode=highlight][active]:not([disabled])) #menu-item #label-button-background{border-radius:var(--uui-border-radius,3px)}:host([select-mode=highlight][active][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight-active-selected,var(--uui-color-current-emphasis,#f8d6d3))}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #caret-button,:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button{color:var(--uui-menu-item-color-highlight-selected,var(--uui-color-interactive,#1b264f))}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #label-button:hover{color:var(--uui-menu-item-background-color-highlight-selectable-selected,var(--uui-color-interactive-emphasis,#3544b1))}:host([selected][selectable][select-mode=highlight]:not([active])) #menu-item #caret-button:hover{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight-selectable-selected,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-menu-item-color-highlight-selectable-selected,var(--uui-color-interactive-emphasis,#3544b1))}:host([select-mode=highlight]:not([disabled])) #menu-item #label-button-background::after{border-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px;border:2px solid var(--uui-menu-item-border-color-highlight,var(--uui-color-selected,#3544b1));opacity:0}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #caret-button:hover::after{border-top-left-radius:var(--uui-border-radius,3px);border-bottom-left-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px 0 1px 1px;border:2px solid var(--uui-menu-item-border-color-highlight,var(--uui-color-selected,#3544b1));border-right:none}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button-background::after{opacity:1}:host([select-mode=highlight][selectable]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.33}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.66}:host([disabled]) #label-button{cursor:default}button{display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;padding:0;text-align:left;border:none;color:inherit;background-color:transparent;cursor:pointer;min-height:var(--uui-size-12,36px);z-index:1}#label-button{position:relative;flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;padding-right:var(--uui-size-space-3,9px);padding-left:calc(var(--uui-menu-item-flat-structure) * var(--uui-size-space-3,9px));display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1;font-weight:inherit}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:end;padding-inline-end:3px;color:var(--uui-color-interactive,#1b264f)}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--uui-menu-item-border-radius,0)}#actions-container{opacity:0;width:0;grid-column-start:3;overflow:hidden}:host(:not([disabled])) #menu-item:focus #actions-container,:host(:not([disabled])) #menu-item:focus-within #actions-container,:host(:not([disabled])) #menu-item:hover #actions-container{opacity:1;width:auto}#loader{position:absolute;width:100%;bottom:0}#icon{display:inline-flex;margin-right:var(--uui-size-2,6px)}#badge{font-size:12px;--uui-badge-position:relative;--uui-badge-position:auto;display:block;margin-left:6px}:host([select-mode=highlight]) #label-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #label-button:focus-visible::after{content:'';border-radius:calc(var(--uui-border-radius,3px) - 1px);position:absolute;inset:3px 3px 3px -5px;border:2px solid var(--uui-color-focus,#3879ff)}:host([select-mode=highlight]) #caret-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #caret-button:focus-visible::after{content:'';position:absolute;inset:3px;border-radius:calc(var(--uui-border-radius,3px) - 1px);border:2px solid var(--uui-color-focus,#3879ff)}slot:not([name]){position:relative;display:block;width:100%}slot:not([name]){--uui-menu-item-indent:var(--uui-menu-item-child-indent)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-base-unit) * 4);margin-right:var(--uui-size-base-unit)}`],pe([l({type:Boolean,reflect:!0})],n.UUIMenuItemElement.prototype,"disabled",2),pe([l({type:Boolean,reflect:!0,attribute:"show-children"})],n.UUIMenuItemElement.prototype,"showChildren",2),pe([l({type:Boolean,attribute:"has-children"})],n.UUIMenuItemElement.prototype,"hasChildren",2),pe([l({type:Boolean,attribute:"loading"})],n.UUIMenuItemElement.prototype,"loading",2),pe([l({type:String})],n.UUIMenuItemElement.prototype,"href",2),pe([l({type:String})],n.UUIMenuItemElement.prototype,"target",2),pe([l({type:String})],n.UUIMenuItemElement.prototype,"rel",2),pe([l({type:String,attribute:"select-mode",reflect:!0})],n.UUIMenuItemElement.prototype,"selectMode",2),pe([l({type:String,attribute:"caret-label"})],n.UUIMenuItemElement.prototype,"caretLabel",2),pe([w()],n.UUIMenuItemElement.prototype,"iconSlotHasContent",2),n.UUIMenuItemElement=pe([b("uui-menu-item")],n.UUIMenuItemElement);var Jd=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,Ht=(i,e,t,r)=>{for(var o=r>1?void 0:r?ep(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Jd(e,t,o),o};const ya="uui:modal-open",Rt="uui:modal-close",wa="uui:modal-close-end";let ie=class extends v{constructor(){super(...arguments),this.isOpen=!1,this.isClosing=!1,this.index=0,this.uniqueIndex=0,this._transitionDuration=250,this.open=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent(ya,{cancelable:!0}),r=new CustomEvent("open",{cancelable:!0});this.dispatchEvent(t),this.dispatchEvent(r),!(t.defaultPrevented||r.defaultPrevented)&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent(Rt,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this.forceClose()}}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=e,this.style.setProperty("--uui-modal-transition-duration",this._transitionDuration+"ms")}firstUpdated(e){super.firstUpdated(e),this.isClosing||this.open()}_openModal(){this.isOpen=!0,this._dialogElement?.showModal(),this._dialogElement?.addEventListener("cancel",this.close)}forceClose(){this.isClosing=!0,this.isOpen=!1,this._dialogElement?.close(),this.dispatchEvent(new CustomEvent("close-end")),this.dispatchEvent(new CustomEvent(wa)),this.remove()}};ie.styles=[m`dialog{display:block;margin:0;padding:0;max-width:unset;max-height:unset;border:none;background:0 0;color:var(--uui-color-text,#060606)}dialog::backdrop{background:0 0;opacity:0}dialog::after{content:'';position:absolute;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));pointer-events:none;opacity:1;transition:opacity var(--uui-modal-transition-duration,250ms);z-index:1}:host([index='0']) dialog::after{opacity:0}`],Ht([A("dialog")],ie.prototype,"_dialogElement",2),Ht([l({type:Boolean,reflect:!0,attribute:"is-open"})],ie.prototype,"isOpen",2),Ht([l({type:Boolean,reflect:!0,attribute:"is-closing"})],ie.prototype,"isClosing",2),Ht([l({type:Number,reflect:!0})],ie.prototype,"index",2),Ht([l({type:Number,reflect:!0,attribute:"unique-index"})],ie.prototype,"uniqueIndex",2),Ht([l({type:Number,attribute:"transition-duration"})],ie.prototype,"transitionDuration",1);var tp=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,_a=i=>{throw TypeError(i)},Ua=(i,e,t,r)=>{for(var o=r>1?void 0:r?ip(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tp(e,t,o),o},op=(i,e,t)=>e.has(i)||_a("Cannot "+t),ka=(i,e,t)=>(op(i,e,"read from private field"),t?t.call(i):e.get(i)),rp=(i,e,t)=>e.has(i)?_a("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),fo,jr;n.UUIModalSidebarElement=class extends ie{constructor(){super(...arguments),rp(this,fo),this.size="full"}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-offset",-ka(this,fo,jr)+"px")}updated(e){super.updated(e),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}forceClose(){this.isClosing||(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-ka(this,fo,jr)+"px"),setTimeout(()=>{super.forceClose()},this.transitionDuration))}render(){return u`<dialog><slot></slot></dialog>`}},fo=new WeakSet,jr=function(){return this._dialogElement?.getBoundingClientRect().width??0},n.UUIModalSidebarElement.styles=[...ie.styles,m`:host{--uui-modal-sidebar-left-gap:24px;--uui-modal-sidebar-background:var(--uui-color-surface,#fff)}@media (min-width:600px){:host{--uui-modal-sidebar-left-gap:64px}}dialog{height:100%;width:100%;box-sizing:border-box;max-width:calc(100% - var(--uui-modal-sidebar-left-gap));margin-left:auto;right:var(--uui-modal-offset);transition:right var(--uui-modal-transition-duration,250ms);background:var(--uui-modal-sidebar-background,var(--uui-color-surface,#fff))}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}:host([hide]) dialog{display:none}:host([size=large]) dialog{max-width:min(1200px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=medium]) dialog{max-width:min(800px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=small]) dialog{max-width:min(500px,calc(100% - var(--uui-modal-sidebar-left-gap)))}`],Ua([l({reflect:!0})],n.UUIModalSidebarElement.prototype,"size",2),n.UUIModalSidebarElement=Ua([b("uui-modal-sidebar")],n.UUIModalSidebarElement);var np=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,$a=i=>{throw TypeError(i)},Ft=(i,e,t,r)=>{for(var o=r>1?void 0:r?sp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&np(e,t,o),o},Ea=(i,e,t)=>e.has(i)||$a("Cannot "+t),wi=(i,e,t)=>(Ea(i,e,"read from private field"),t?t.call(i):e.get(i)),Hr=(i,e,t)=>e.has(i)?$a("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),yo=(i,e,t)=>(Ea(i,e,"access private method"),t),Rr,Gt,Wt,Fr,Gr;n.UUIModalContainerElement=class extends v{constructor(){super(),Hr(this,Wt),this.sidebarGap=64,this.transitionDurationMS=250,Hr(this,Rr,()=>{const e=this._modals??[];if(this._modals=this.modalSlot?.assignedElements({flatten:!0}).filter(t=>t instanceof ie)??[],e.filter(t=>this._modals.indexOf(t)===-1).forEach(t=>t.removeEventListener(Rt,wi(this,Gt))),this._modals.filter(t=>e.indexOf(t)===-1).forEach(t=>t.addEventListener(Rt,wi(this,Gt))),this._sidebars=this._modals.filter(t=>t instanceof n.UUIModalSidebarElement),this._modals.length===0){this.removeAttribute("backdrop");return}yo(this,Wt,Fr).call(this),yo(this,Wt,Gr).call(this)}),Hr(this,Gt,e=>{if(e.stopImmediatePropagation(),e.target?.removeEventListener(Rt,wi(this,Gt)),!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}yo(this,Wt,Fr).call(this),yo(this,Wt,Gr).call(this)}),this.addEventListener(Rt,wi(this,Gt))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return u`<slot @slotchange="${wi(this,Rr)}"></slot>`}},Rr=new WeakMap,Gt=new WeakMap,Wt=new WeakSet,Fr=function(){this.setAttribute("backdrop","");const i=this._modals?.filter(e=>!e.isClosing).reverse()??[];i?.forEach((e,t)=>{e.index=t,e.transitionDuration=this.transitionDurationMS}),i?.forEach(e=>{const t=i?.filter(r=>r.constructor.name===e.constructor.name);e.uniqueIndex=t?.indexOf(e)??0})},Gr=function(){requestAnimationFrame(()=>{let i=0;const e=this._sidebars?.filter(t=>!t.isClosing).reverse()??[];for(let t=0;t<e.length;t++){const r=e[t],o=e[t+1],s=i;if(r.updateComplete.then(()=>{r.style.setProperty("--uui-modal-offset",s+"px")}),o?.hasAttribute("hide"))break;const a=r.shadowRoot?.querySelector("dialog")?.getBoundingClientRect().width??0,c=o?.shadowRoot?.querySelector("dialog")?.getBoundingClientRect().width??0,h=a+i+this.sidebarGap-c;i=h>0?h:0}})},n.UUIModalContainerElement.styles=m`:host{position:fixed;--uui-modal-color-backdrop:rgba(0, 0, 0, 0.5)}:host::after{content:'';position:fixed;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));opacity:0;pointer-events:none;transition:opacity var(--uui-modal-transition-duration,250ms)}:host([backdrop])::after{opacity:1}`,Ft([A("slot")],n.UUIModalContainerElement.prototype,"modalSlot",2),Ft([w()],n.UUIModalContainerElement.prototype,"_modals",2),Ft([w()],n.UUIModalContainerElement.prototype,"_sidebars",2),Ft([l({type:Number})],n.UUIModalContainerElement.prototype,"sidebarGap",2),Ft([l({type:Number})],n.UUIModalContainerElement.prototype,"transitionDurationMS",2),n.UUIModalContainerElement=Ft([b("uui-modal-container")],n.UUIModalContainerElement);var ap=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIModalDialogElement=class extends ie{render(){return u`<dialog><slot></slot></dialog>`}},n.UUIModalDialogElement.styles=[...ie.styles,m`:host{--uui-modal-dialog-background:var(--uui-color-surface,#fff)}dialog{margin:auto;max-width:100%;max-height:100%;border-radius:var(--uui-modal-dialog-border-radius,calc(var(--uui-border-radius,3px) * 4));background:var(--uui-modal-dialog-background,var(--uui-color-surface,#fff))}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}`],n.UUIModalDialogElement=ap([b("uui-modal-dialog")],n.UUIModalDialogElement);let je=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};je.CHANGE="change";var lp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,Pe=(i,e,t,r)=>{for(var o=r>1?void 0:r?up(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lp(e,t,o),o};const cp=45,Wr=(i,e,t)=>Math.min(Math.max(i,e),t),hp=(i,e)=>Array.from({length:e-i+1},(t,r)=>i+r);n.UUIPaginationElement=class extends v{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this._total=100,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),$(this,"uui-button"),$(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(e){(e.has("current")||e.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const e=this.offsetWidth,t=Array.from(this._navButtons).reduce((o,s)=>o+s.getBoundingClientRect().width,0),r=(e-t)/cp/2;this._range=Math.max(1,Math.floor(r)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(e){const t=e<this._range?1:e<this.total-this._range?e-this._range:this.total-this._range*2,r=e<=this._range?this._range*2+1:e<this.total-this._range?e+this._range:this.total;return hp(Wr(t,1,this.total),Wr(r,1,this.total))}get total(){return this._total}set total(e){this._total=e,this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("total",e)}get current(){return this._current}set current(e){const t=this._current;this._current=Wr(e,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",t)}goToNextPage(){this.current++,this.dispatchEvent(new je(je.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new je(je.CHANGE))}goToPage(e){this.current=e,this.dispatchEvent(new je(je.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const e=this.renderRoot.querySelector(".active");e&&e.focus()})}renderFirst(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to first page" ?disabled="${this._current===1}" @click="${()=>this.goToPage(1)}">First</uui-button>`}renderPrevious(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to previous page" ?disabled="${this._current===1}" @click="${this.goToPreviousPage}">Previous</uui-button>`}renderNext(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to next page" ?disabled="${this._current===this.total}" @click="${this.goToNextPage}">Next</uui-button>`}renderLast(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to last page" ?disabled="${this.total===this._current}" @click="${()=>this.goToPage(this.total)}">Last</uui-button>`}renderDots(){return u`<uui-button compact="compact" look="outline" role="listitem" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(e){return u`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${e}" class="${"page"+(e===this._current?" active":"")}" tabindex="${e===this._current?"-1":""}" @click="${()=>{e!==this._current&&(this.goToPage(e),this.focusActivePage())}}">${e}</uui-button>`}renderNavigationLeft(){return u`${this.renderFirst()} ${this.renderPrevious()} ${this._visiblePages.includes(1)?"":this.renderDots()}`}renderNavigationRight(){return u`${this._visiblePages.includes(this.total)?"":this.renderDots()} ${this.renderNext()} ${this.renderLast()}`}render(){return u`<uui-button-group role="list" id="pages">${this.renderNavigationLeft()} ${this._visiblePages.map(e=>this.renderPage(e))} ${this.renderNavigationRight()}</uui-button-group>`}},n.UUIPaginationElement.styles=[m`uui-button-group{width:100%}uui-button{--uui-button-border-color:var(--uui-color-border-standalone,#c2c2c2);--uui-button-border-color-hover:var(--uui-color-interactive-emphasis,#3544b1);--uui-button-border-color-disabled:var(--uui-color-border-standalone,#c2c2c2)}.page{min-width:36px;max-width:72px}.page.active{--uui-button-background-color:var(--uui-color-current,#f5c1bc)}.nav{min-width:72px}.dots{pointer-events:none}.active{pointer-events:none}`],Pe([Pl("uui-button.nav")],n.UUIPaginationElement.prototype,"_navButtons",2),Pe([A("#pages")],n.UUIPaginationElement.prototype,"_pagesGroup",2),Pe([l()],n.UUIPaginationElement.prototype,"label",2),Pe([l({reflect:!0,attribute:"aria-label"})],n.UUIPaginationElement.prototype,"ariaLabel",2),Pe([l({type:Number})],n.UUIPaginationElement.prototype,"total",1),Pe([w()],n.UUIPaginationElement.prototype,"_range",2),Pe([w()],n.UUIPaginationElement.prototype,"_visiblePages",2),Pe([l({type:Number})],n.UUIPaginationElement.prototype,"current",1),n.UUIPaginationElement=Pe([b("uui-pagination")],n.UUIPaginationElement);let qr=class extends L{};qr.CLOSE="close";var dp=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,_i=(i,e,t,r)=>{for(var o=r>1?void 0:r?pp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dp(e,t,o),o};function wo(i,e,t){return i<e?e:i>t?t:i}n.UUIPopoverElement=class extends v{constructor(){super(...arguments),this.scrollEventHandler=this._updatePlacement.bind(this),this._open=!1,this._placement="bottom-start",this._currentPlacement=null,this._scrollParents=[],this.margin=0,this._onTriggerSlotChanged=e=>{this._trigger=e.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=e=>{e.forEach(t=>{t.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onKeyUp=e=>{if(e.key==="Escape"){this._triggerPopoverClose();return}},this._onDocumentClick=e=>{e.composedPath().includes(this)||this._triggerPopoverClose()}}get placement(){return this._placement}set placement(e){const t=this._placement;this._placement=e||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",t)}get open(){return this._open}set open(e){const t=this._open;this._open=e,e?this._openPopover():this._closePopover(),this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("scroll",this.scrollEventHandler),this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),this._scrollParents=[]}_openPopover(){this.containerElement&&(this.containerElement.style.opacity="0",document.addEventListener("mousedown",this._onDocumentClick),document.addEventListener("keyup",this._onKeyUp),this._currentPlacement=null,requestAnimationFrame(()=>{this._updatePlacement(),this._createIntersectionObserver(),this.containerElement.style.opacity="1"}))}_closePopover(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),this._currentPlacement=null}_triggerPopoverClose(){const e=new qr(qr.CLOSE,{cancelable:!0});this.dispatchEvent(e),!e.defaultPrevented&&(this.open=!1)}_getScrollParents(){const e=this.shadowRoot.host;let t=getComputedStyle(e);if(t.position==="fixed")return;const r=t.position==="absolute",o=/(auto|scroll)/;let s=e;for(;s=s.parentElement;)if(t=getComputedStyle(s),!(r&&t.position==="static")&&(o.test(t.overflow+t.overflowY+t.overflowX)&&this._scrollParents.push(s),t.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const e={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,e),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(e=>{e.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(e=>{e.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){if(!this.shadowRoot)return;const e=this.containerElement;if(!e)return;const t=this.containerElement?.getBoundingClientRect(),r=this._trigger?.getBoundingClientRect();if(r!=null&&t!=null){const o=this._scrollParents.map(Ee=>Ee.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,t,o));let s=this._currentPlacement.indexOf("top")!==-1,a=this._currentPlacement.indexOf("bottom")!==-1,c=this._currentPlacement.indexOf("left")!==-1,h=this._currentPlacement.indexOf("right")!==-1;const d=this._currentPlacement.indexOf("-start")!==-1,f=this._currentPlacement.indexOf("-end")!==-1;let g=.5,U=.5,p=.5,_=.5,S=0,x=0;if(this.placement==="auto"){const Ee=this._scrollParents[0],Pi=Ee.clientWidth,bt=Ee.clientHeight,ni=r.x-t.width,si=Pi-(r.x+r.width)-t.width,kn=r.y-t.height,Oo=bt-(r.y+r.height)-t.height;let To=.5,No=.5;const Xm=Math.max(ni,si);let dl=Math.max(kn,Oo);Oo>kn&&Oo>this.margin&&(dl+=9999),Xm>dl?(ni>si?(To=0,c=!0):(To=1,h=!0),S=this.margin):(kn>Oo?(No=0,s=!0):(No=1,a=!0),x=this.margin),g=To,U=No,p=1-To,_=1-No}else s&&(_=1,U=0),a&&(_=0,U=1),(s||a)&&(x=this.margin,d&&(p=0,g=0),f&&(p=1,g=1)),c&&(p=1,g=0),h&&(p=0,g=1),(c||h)&&(S=this.margin,d&&(_=0,U=0),f&&(_=1,U=1));const N=-t.width*p+r.width*g-S*(p*2-1),Q=-t.height*_+r.height*U-x*(_*2-1);let pt=N,mt=Q;s||a?(this._scrollParents.forEach((Ee,Pi)=>{const bt=Ee===document.body?0:o[Pi].x,ni=-r.x+bt,si=Ee.clientWidth-r.x-r.width+N+bt-(t.width-r.width)*(1-g);pt=wo(pt,ni,si)}),pt=wo(pt,-t.width,r.width)):(c||h)&&(this._scrollParents.forEach((Ee,Pi)=>{const bt=Ee===document.body?0:o[Pi].y,ni=-r.y+bt,si=Ee.clientHeight-r.y-r.height+Q+bt-(t.height-r.height)*(1-U);mt=wo(mt,ni,si)}),mt=wo(mt,-t.height,r.height)),(this._positionX!==pt||this._positionY!==mt)&&(this._positionX=pt,this._positionY=mt,N===pt&&Q===mt&&this._stopScrollListener(),e.style.left=`${this._positionX}px`,e.style.top=`${this._positionY}px`)}}_managePlacementFlip(e,t,r){const o=e.split("-"),s=o[0],a=o[1]||null;let c;return this._scrollParents.some((h,d)=>{const f=h===document.body?0:r[d].x,g=h===document.body?0:r[d].y;return s==="top"&&t.y-2<=g?(c="bottom",!0):s==="bottom"&&t.y+t.height+2>=h.clientHeight+g?(c="top",!0):s==="left"&&t.x-2<=f?(c="right",!0):s==="right"&&t.x+t.width+2>=h.clientWidth+f?(c="left",!0):!1}),c?(this._startScrollListener(),c+(a?`-${a}`:"")):e}render(){return u`<slot id="trigger" name="trigger" @slotchange="${this._onTriggerSlotChanged}"></slot><div id="container">${this._open?u`<slot name="popover"></slot>`:""}</div>`}},n.UUIPopoverElement.styles=[m`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:var(--uui-popover-z-index,1)}slot[name=popover]{display:block}#trigger{position:relative;width:100%}slot[name=trigger]::slotted(uui-button){--uui-button-border-radius:var(
357
+ )}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns:calc(var(--flat-structure-reversed) * var(--uui-size-8,24px)) 1fr;grid-template-rows:1fr;white-space:nowrap}:host(:not([active],[selected],[disabled])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled],[select-mode=highlight])) #menu-item #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}:host(:not([active],[selected])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled])) #menu-item #label-button:hover{color:var(--uui-menu-item-color-hover,var(--uui-color-interactive-emphasis,#3544b1))}:host([active]) #caret-button,:host([active]) #label-button{color:var(--uui-menu-item-color-active,var(--uui-color-current-contrast,#1b264f))}:host([active]) #label-button-background{background-color:var(--uui-menu-item-background-color-active,var(--uui-color-current,#f5c1bc))}:host([active]) #caret-button:hover,:host([active]) #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-active-hover,var(--uui-color-current-emphasis,#f8d6d3))}:host([disabled]) #menu-item{color:var(--uui-menu-item-color-disabled,var(--uui-color-disabled-contrast,#c4c4c4));background-color:var(--uui-menu-item-background-color-disabled,var(--uui-color-disabled,#f3f3f5))}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button,:host([selected]:not([select-mode=highlight],[disabled])) #label-button{color:var(--uui-menu-item-color-selected,var(--uui-color-selected-contrast,#fff))}:host([selected]:not([select-mode=highlight],[disabled])) #label-button-background{background-color:var(--uui-menu-item-background-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button:hover,:host([selected]:not([select-mode=highlight],[disabled])) #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-selected-hover,var(--uui-color-selected-emphasis,#4656c8))}:host([select-mode=highlight]:not([disabled],[active],[selectable])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight,var(--uui-color-surface-emphasis,#fafafa))}:host([select-mode=highlight][active]:not([disabled])) #menu-item #label-button-background{border-radius:var(--uui-border-radius,3px)}:host([select-mode=highlight][active][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight-active-selected,var(--uui-color-current-emphasis,#f8d6d3))}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #caret-button,:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button{color:var(--uui-menu-item-color-highlight-selected,var(--uui-color-interactive,#1b264f))}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #label-button:hover{color:var(--uui-menu-item-background-color-highlight-selectable-selected,var(--uui-color-interactive-emphasis,#3544b1))}:host([selected][selectable][select-mode=highlight]:not([active])) #menu-item #caret-button:hover{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight-selectable-selected,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-menu-item-color-highlight-selectable-selected,var(--uui-color-interactive-emphasis,#3544b1))}:host([select-mode=highlight]:not([disabled])) #menu-item #label-button-background::after{border-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px;border:2px solid var(--uui-menu-item-border-color-highlight,var(--uui-color-selected,#3544b1));opacity:0}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #caret-button:hover::after{border-top-left-radius:var(--uui-border-radius,3px);border-bottom-left-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px 0 1px 1px;border:2px solid var(--uui-menu-item-border-color-highlight,var(--uui-color-selected,#3544b1));border-right:none}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button-background::after{opacity:1}:host([select-mode=highlight][selectable]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.33}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.66}:host([disabled]) #label-button{cursor:default}button{display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;padding:0;text-align:left;border:none;color:inherit;background-color:transparent;cursor:pointer;min-height:var(--uui-size-12,36px);z-index:1}#label-button{position:relative;flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;padding-right:var(--uui-size-space-3,9px);padding-left:calc(var(--uui-menu-item-flat-structure) * var(--uui-size-space-3,9px));display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1;font-weight:inherit}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:end;padding-inline-end:3px;color:var(--uui-color-interactive,#1b264f)}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--uui-menu-item-border-radius,0)}#actions-container{opacity:0;width:0;grid-column-start:3;overflow:hidden}:host(:not([disabled])) #menu-item:focus #actions-container,:host(:not([disabled])) #menu-item:focus-within #actions-container,:host(:not([disabled])) #menu-item:hover #actions-container{opacity:1;width:auto}#loader{position:absolute;width:100%;bottom:0}#icon{display:inline-flex;margin-right:var(--uui-size-2,6px)}#badge{font-size:12px;--uui-badge-position:relative;--uui-badge-position:auto;display:block;margin-left:6px}:host([select-mode=highlight]) #label-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #label-button:focus-visible::after{content:'';border-radius:calc(var(--uui-border-radius,3px) - 1px);position:absolute;inset:3px 3px 3px -5px;border:2px solid var(--uui-color-focus,#3879ff)}:host([select-mode=highlight]) #caret-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #caret-button:focus-visible::after{content:'';position:absolute;inset:3px;border-radius:calc(var(--uui-border-radius,3px) - 1px);border:2px solid var(--uui-color-focus,#3879ff)}slot:not([name]){position:relative;display:block;width:100%}slot:not([name]){--uui-menu-item-indent:var(--uui-menu-item-child-indent)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-base-unit) * 4);margin-right:var(--uui-size-base-unit)}`],pe([l({type:Boolean,reflect:!0})],n.UUIMenuItemElement.prototype,"disabled",2),pe([l({type:Boolean,reflect:!0,attribute:"show-children"})],n.UUIMenuItemElement.prototype,"showChildren",2),pe([l({type:Boolean,attribute:"has-children"})],n.UUIMenuItemElement.prototype,"hasChildren",2),pe([l({type:Boolean,attribute:"loading"})],n.UUIMenuItemElement.prototype,"loading",2),pe([l({type:String})],n.UUIMenuItemElement.prototype,"href",2),pe([l({type:String})],n.UUIMenuItemElement.prototype,"target",2),pe([l({type:String})],n.UUIMenuItemElement.prototype,"rel",2),pe([l({type:String,attribute:"select-mode",reflect:!0})],n.UUIMenuItemElement.prototype,"selectMode",2),pe([l({type:String,attribute:"caret-label"})],n.UUIMenuItemElement.prototype,"caretLabel",2),pe([w()],n.UUIMenuItemElement.prototype,"iconSlotHasContent",2),n.UUIMenuItemElement=pe([g("uui-menu-item")],n.UUIMenuItemElement);var up=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,Ht=(i,e,t,r)=>{for(var o=r>1?void 0:r?cp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&up(e,t,o),o};const Sa="uui:modal-open",Rt="uui:modal-close",Pa="uui:modal-close-end";let ie=class extends f{constructor(){super(...arguments),this.isOpen=!1,this.isClosing=!1,this.index=0,this.uniqueIndex=0,this._transitionDuration=250,this.open=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent(Sa,{cancelable:!0}),r=new CustomEvent("open",{cancelable:!0});this.dispatchEvent(t),this.dispatchEvent(r),!(t.defaultPrevented||r.defaultPrevented)&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent(Rt,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this.forceClose()}}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=e,this.style.setProperty("--uui-modal-transition-duration",this._transitionDuration+"ms")}firstUpdated(e){super.firstUpdated(e),this.isClosing||this.open()}_openModal(){this.isOpen=!0,this._dialogElement?.showModal(),this._dialogElement?.addEventListener("cancel",this.close)}forceClose(){this.isClosing=!0,this.isOpen=!1,this._dialogElement?.close(),this.dispatchEvent(new CustomEvent("close-end")),this.dispatchEvent(new CustomEvent(Pa)),this.remove()}};ie.styles=[v`dialog{display:block;margin:0;padding:0;max-width:unset;max-height:unset;border:none;background:0 0;color:var(--uui-color-text,#060606)}dialog::backdrop{background:0 0;opacity:0}dialog::after{content:'';position:absolute;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));pointer-events:none;opacity:1;transition:opacity var(--uui-modal-transition-duration,250ms);z-index:1}:host([index='0']) dialog::after{opacity:0}`],Ht([A("dialog")],ie.prototype,"_dialogElement",2),Ht([l({type:Boolean,reflect:!0,attribute:"is-open"})],ie.prototype,"isOpen",2),Ht([l({type:Boolean,reflect:!0,attribute:"is-closing"})],ie.prototype,"isClosing",2),Ht([l({type:Number,reflect:!0})],ie.prototype,"index",2),Ht([l({type:Number,reflect:!0,attribute:"unique-index"})],ie.prototype,"uniqueIndex",2),Ht([l({type:Number,attribute:"transition-duration"})],ie.prototype,"transitionDuration",1);var hp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,Aa=i=>{throw TypeError(i)},za=(i,e,t,r)=>{for(var o=r>1?void 0:r?dp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&hp(e,t,o),o},pp=(i,e,t)=>e.has(i)||Aa("Cannot "+t),Ma=(i,e,t)=>(pp(i,e,"read from private field"),t?t.call(i):e.get(i)),mp=(i,e,t)=>e.has(i)?Aa("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),wo,Gr;n.UUIModalSidebarElement=class extends ie{constructor(){super(...arguments),mp(this,wo),this.size="full"}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-offset",-Ma(this,wo,Gr)+"px")}updated(e){super.updated(e),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}forceClose(){this.isClosing||(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-Ma(this,wo,Gr)+"px"),setTimeout(()=>{super.forceClose()},this.transitionDuration))}render(){return u`<dialog><slot></slot></dialog>`}},wo=new WeakSet,Gr=function(){return this._dialogElement?.getBoundingClientRect().width??0},n.UUIModalSidebarElement.styles=[...ie.styles,v`:host{--uui-modal-sidebar-left-gap:24px;--uui-modal-sidebar-background:var(--uui-color-surface,#fff)}@media (min-width:600px){:host{--uui-modal-sidebar-left-gap:64px}}dialog{height:100%;width:100%;box-sizing:border-box;max-width:calc(100% - var(--uui-modal-sidebar-left-gap));margin-left:auto;right:var(--uui-modal-offset);transition:right var(--uui-modal-transition-duration,250ms);background:var(--uui-modal-sidebar-background,var(--uui-color-surface,#fff))}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}:host([hide]) dialog{display:none}:host([size=large]) dialog{max-width:min(1200px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=medium]) dialog{max-width:min(800px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=small]) dialog{max-width:min(500px,calc(100% - var(--uui-modal-sidebar-left-gap)))}`],za([l({reflect:!0})],n.UUIModalSidebarElement.prototype,"size",2),n.UUIModalSidebarElement=za([g("uui-modal-sidebar")],n.UUIModalSidebarElement);var bp=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,La=i=>{throw TypeError(i)},Ft=(i,e,t,r)=>{for(var o=r>1?void 0:r?vp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&bp(e,t,o),o},Oa=(i,e,t)=>e.has(i)||La("Cannot "+t),Ui=(i,e,t)=>(Oa(i,e,"read from private field"),t?t.call(i):e.get(i)),Wr=(i,e,t)=>e.has(i)?La("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),_o=(i,e,t)=>(Oa(i,e,"access private method"),t),qr,Gt,Wt,Kr,Xr;n.UUIModalContainerElement=class extends f{constructor(){super(),Wr(this,Wt),this.sidebarGap=64,this.transitionDurationMS=250,Wr(this,qr,()=>{const e=this._modals??[];if(this._modals=this.modalSlot?.assignedElements({flatten:!0}).filter(t=>t instanceof ie)??[],e.filter(t=>this._modals.indexOf(t)===-1).forEach(t=>t.removeEventListener(Rt,Ui(this,Gt))),this._modals.filter(t=>e.indexOf(t)===-1).forEach(t=>t.addEventListener(Rt,Ui(this,Gt))),this._sidebars=this._modals.filter(t=>t instanceof n.UUIModalSidebarElement),this._modals.length===0){this.removeAttribute("backdrop");return}_o(this,Wt,Kr).call(this),_o(this,Wt,Xr).call(this)}),Wr(this,Gt,e=>{if(e.stopImmediatePropagation(),e.target?.removeEventListener(Rt,Ui(this,Gt)),!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}_o(this,Wt,Kr).call(this),_o(this,Wt,Xr).call(this)}),this.addEventListener(Rt,Ui(this,Gt))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return u`<slot @slotchange="${Ui(this,qr)}"></slot>`}},qr=new WeakMap,Gt=new WeakMap,Wt=new WeakSet,Kr=function(){this.setAttribute("backdrop","");const i=this._modals?.filter(e=>!e.isClosing).reverse()??[];i?.forEach((e,t)=>{e.index=t,e.transitionDuration=this.transitionDurationMS}),i?.forEach(e=>{const t=i?.filter(r=>r.constructor.name===e.constructor.name);e.uniqueIndex=t?.indexOf(e)??0})},Xr=function(){requestAnimationFrame(()=>{let i=0;const e=this._sidebars?.filter(t=>!t.isClosing).reverse()??[];for(let t=0;t<e.length;t++){const r=e[t],o=e[t+1],s=i;if(r.updateComplete.then(()=>{r.style.setProperty("--uui-modal-offset",s+"px")}),o?.hasAttribute("hide"))break;const a=r.shadowRoot?.querySelector("dialog")?.getBoundingClientRect().width??0,c=o?.shadowRoot?.querySelector("dialog")?.getBoundingClientRect().width??0,h=a+i+this.sidebarGap-c;i=h>0?h:0}})},n.UUIModalContainerElement.styles=v`:host{position:fixed;--uui-modal-color-backdrop:rgba(0, 0, 0, 0.5)}:host::after{content:'';position:fixed;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));opacity:0;pointer-events:none;transition:opacity var(--uui-modal-transition-duration,250ms)}:host([backdrop])::after{opacity:1}`,Ft([A("slot")],n.UUIModalContainerElement.prototype,"modalSlot",2),Ft([w()],n.UUIModalContainerElement.prototype,"_modals",2),Ft([w()],n.UUIModalContainerElement.prototype,"_sidebars",2),Ft([l({type:Number})],n.UUIModalContainerElement.prototype,"sidebarGap",2),Ft([l({type:Number})],n.UUIModalContainerElement.prototype,"transitionDurationMS",2),n.UUIModalContainerElement=Ft([g("uui-modal-container")],n.UUIModalContainerElement);var gp=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIModalDialogElement=class extends ie{render(){return u`<dialog><slot></slot></dialog>`}},n.UUIModalDialogElement.styles=[...ie.styles,v`:host{--uui-modal-dialog-background:var(--uui-color-surface,#fff)}dialog{margin:auto;max-width:100%;max-height:100%;border-radius:var(--uui-modal-dialog-border-radius,calc(var(--uui-border-radius,3px) * 4));background:var(--uui-modal-dialog-background,var(--uui-color-surface,#fff))}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}`],n.UUIModalDialogElement=gp([g("uui-modal-dialog")],n.UUIModalDialogElement);let je=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};je.CHANGE="change";var fp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,Pe=(i,e,t,r)=>{for(var o=r>1?void 0:r?yp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fp(e,t,o),o};const wp=45,Yr=(i,e,t)=>Math.min(Math.max(i,e),t),_p=(i,e)=>Array.from({length:e-i+1},(t,r)=>i+r);n.UUIPaginationElement=class extends f{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this._total=100,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),$(this,"uui-button"),$(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(e){(e.has("current")||e.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const e=this.offsetWidth,t=Array.from(this._navButtons).reduce((o,s)=>o+s.getBoundingClientRect().width,0),r=(e-t)/wp/2;this._range=Math.max(1,Math.floor(r)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(e){const t=e<this._range?1:e<this.total-this._range?e-this._range:this.total-this._range*2,r=e<=this._range?this._range*2+1:e<this.total-this._range?e+this._range:this.total;return _p(Yr(t,1,this.total),Yr(r,1,this.total))}get total(){return this._total}set total(e){this._total=e,this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("total",e)}get current(){return this._current}set current(e){const t=this._current;this._current=Yr(e,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",t)}goToNextPage(){this.current++,this.dispatchEvent(new je(je.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new je(je.CHANGE))}goToPage(e){this.current=e,this.dispatchEvent(new je(je.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const e=this.renderRoot.querySelector(".active");e&&e.focus()})}renderFirst(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to first page" ?disabled="${this._current===1}" @click="${()=>this.goToPage(1)}">First</uui-button>`}renderPrevious(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to previous page" ?disabled="${this._current===1}" @click="${this.goToPreviousPage}">Previous</uui-button>`}renderNext(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to next page" ?disabled="${this._current===this.total}" @click="${this.goToNextPage}">Next</uui-button>`}renderLast(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to last page" ?disabled="${this.total===this._current}" @click="${()=>this.goToPage(this.total)}">Last</uui-button>`}renderDots(){return u`<uui-button compact="compact" look="outline" role="listitem" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(e){return u`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${e}" class="${"page"+(e===this._current?" active":"")}" tabindex="${e===this._current?"-1":""}" @click="${()=>{e!==this._current&&(this.goToPage(e),this.focusActivePage())}}">${e}</uui-button>`}renderNavigationLeft(){return u`${this.renderFirst()} ${this.renderPrevious()} ${this._visiblePages.includes(1)?"":this.renderDots()}`}renderNavigationRight(){return u`${this._visiblePages.includes(this.total)?"":this.renderDots()} ${this.renderNext()} ${this.renderLast()}`}render(){return u`<uui-button-group role="list" id="pages">${this.renderNavigationLeft()} ${this._visiblePages.map(e=>this.renderPage(e))} ${this.renderNavigationRight()}</uui-button-group>`}},n.UUIPaginationElement.styles=[v`uui-button-group{width:100%}uui-button{--uui-button-border-color:var(--uui-color-border-standalone,#c2c2c2);--uui-button-border-color-hover:var(--uui-color-interactive-emphasis,#3544b1);--uui-button-border-color-disabled:var(--uui-color-border-standalone,#c2c2c2)}.page{min-width:36px;max-width:72px}.page.active{--uui-button-background-color:var(--uui-color-current,#f5c1bc)}.nav{min-width:72px}.dots{pointer-events:none}.active{pointer-events:none}`],Pe([Vl("uui-button.nav")],n.UUIPaginationElement.prototype,"_navButtons",2),Pe([A("#pages")],n.UUIPaginationElement.prototype,"_pagesGroup",2),Pe([l()],n.UUIPaginationElement.prototype,"label",2),Pe([l({reflect:!0,attribute:"aria-label"})],n.UUIPaginationElement.prototype,"ariaLabel",2),Pe([l({type:Number})],n.UUIPaginationElement.prototype,"total",1),Pe([w()],n.UUIPaginationElement.prototype,"_range",2),Pe([w()],n.UUIPaginationElement.prototype,"_visiblePages",2),Pe([l({type:Number})],n.UUIPaginationElement.prototype,"current",1),n.UUIPaginationElement=Pe([g("uui-pagination")],n.UUIPaginationElement);let Zr=class extends L{};Zr.CLOSE="close";var Up=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,ki=(i,e,t,r)=>{for(var o=r>1?void 0:r?kp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Up(e,t,o),o};function Uo(i,e,t){return i<e?e:i>t?t:i}n.UUIPopoverElement=class extends f{constructor(){super(...arguments),this.scrollEventHandler=this._updatePlacement.bind(this),this._open=!1,this._placement="bottom-start",this._currentPlacement=null,this._scrollParents=[],this.margin=0,this._onTriggerSlotChanged=e=>{this._trigger=e.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=e=>{e.forEach(t=>{t.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onKeyUp=e=>{if(e.key==="Escape"){this._triggerPopoverClose();return}},this._onDocumentClick=e=>{e.composedPath().includes(this)||this._triggerPopoverClose()}}get placement(){return this._placement}set placement(e){const t=this._placement;this._placement=e||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",t)}get open(){return this._open}set open(e){const t=this._open;this._open=e,e?this._openPopover():this._closePopover(),this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("scroll",this.scrollEventHandler),this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),this._scrollParents=[]}_openPopover(){this.containerElement&&(this.containerElement.style.opacity="0",document.addEventListener("mousedown",this._onDocumentClick),document.addEventListener("keyup",this._onKeyUp),this._currentPlacement=null,requestAnimationFrame(()=>{this._updatePlacement(),this._createIntersectionObserver(),this.containerElement.style.opacity="1"}))}_closePopover(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),this._currentPlacement=null}_triggerPopoverClose(){const e=new Zr(Zr.CLOSE,{cancelable:!0});this.dispatchEvent(e),!e.defaultPrevented&&(this.open=!1)}_getScrollParents(){const e=this.shadowRoot.host;let t=getComputedStyle(e);if(t.position==="fixed")return;const r=t.position==="absolute",o=/(auto|scroll)/;let s=e;for(;s=s.parentElement;)if(t=getComputedStyle(s),!(r&&t.position==="static")&&(o.test(t.overflow+t.overflowY+t.overflowX)&&this._scrollParents.push(s),t.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const e={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,e),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(e=>{e.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(e=>{e.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){if(!this.shadowRoot)return;const e=this.containerElement;if(!e)return;const t=this.containerElement?.getBoundingClientRect(),r=this._trigger?.getBoundingClientRect();if(r!=null&&t!=null){const o=this._scrollParents.map(Ee=>Ee.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,t,o));let s=this._currentPlacement.indexOf("top")!==-1,a=this._currentPlacement.indexOf("bottom")!==-1,c=this._currentPlacement.indexOf("left")!==-1,h=this._currentPlacement.indexOf("right")!==-1;const d=this._currentPlacement.indexOf("-start")!==-1,b=this._currentPlacement.indexOf("-end")!==-1;let m=.5,U=.5,p=.5,_=.5,S=0,x=0;if(this.placement==="auto"){const Ee=this._scrollParents[0],zi=Ee.clientWidth,bt=Ee.clientHeight,ni=r.x-t.width,si=zi-(r.x+r.width)-t.width,xn=r.y-t.height,No=bt-(r.y+r.height)-t.height;let Bo=.5,Do=.5;const nb=Math.max(ni,si);let Ul=Math.max(xn,No);No>xn&&No>this.margin&&(Ul+=9999),nb>Ul?(ni>si?(Bo=0,c=!0):(Bo=1,h=!0),S=this.margin):(xn>No?(Do=0,s=!0):(Do=1,a=!0),x=this.margin),m=Bo,U=Do,p=1-Bo,_=1-Do}else s&&(_=1,U=0),a&&(_=0,U=1),(s||a)&&(x=this.margin,d&&(p=0,m=0),b&&(p=1,m=1)),c&&(p=1,m=0),h&&(p=0,m=1),(c||h)&&(S=this.margin,d&&(_=0,U=0),b&&(_=1,U=1));const N=-t.width*p+r.width*m-S*(p*2-1),Q=-t.height*_+r.height*U-x*(_*2-1);let pt=N,mt=Q;s||a?(this._scrollParents.forEach((Ee,zi)=>{const bt=Ee===document.body?0:o[zi].x,ni=-r.x+bt,si=Ee.clientWidth-r.x-r.width+N+bt-(t.width-r.width)*(1-m);pt=Uo(pt,ni,si)}),pt=Uo(pt,-t.width,r.width)):(c||h)&&(this._scrollParents.forEach((Ee,zi)=>{const bt=Ee===document.body?0:o[zi].y,ni=-r.y+bt,si=Ee.clientHeight-r.y-r.height+Q+bt-(t.height-r.height)*(1-U);mt=Uo(mt,ni,si)}),mt=Uo(mt,-t.height,r.height)),(this._positionX!==pt||this._positionY!==mt)&&(this._positionX=pt,this._positionY=mt,N===pt&&Q===mt&&this._stopScrollListener(),e.style.left=`${this._positionX}px`,e.style.top=`${this._positionY}px`)}}_managePlacementFlip(e,t,r){const o=e.split("-"),s=o[0],a=o[1]||null;let c;return this._scrollParents.some((h,d)=>{const b=h===document.body?0:r[d].x,m=h===document.body?0:r[d].y;return s==="top"&&t.y-2<=m?(c="bottom",!0):s==="bottom"&&t.y+t.height+2>=h.clientHeight+m?(c="top",!0):s==="left"&&t.x-2<=b?(c="right",!0):s==="right"&&t.x+t.width+2>=h.clientWidth+b?(c="left",!0):!1}),c?(this._startScrollListener(),c+(a?`-${a}`:"")):e}render(){return u`<slot id="trigger" name="trigger" @slotchange="${this._onTriggerSlotChanged}"></slot><div id="container">${this._open?u`<slot name="popover"></slot>`:""}</div>`}},n.UUIPopoverElement.styles=[v`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:var(--uui-popover-z-index,1)}slot[name=popover]{display:block}#trigger{position:relative;width:100%}slot[name=trigger]::slotted(uui-button){--uui-button-border-radius:var(
358
358
  --uui-popover-toggle-slot-button-border-radius
359
359
  );--uui-button-merge-border-left:var(
360
360
  --uui-popover-toggle-slot-button-merge-border-left
361
- )}`],_i([A("#container")],n.UUIPopoverElement.prototype,"containerElement",2),_i([l({type:Number})],n.UUIPopoverElement.prototype,"margin",2),_i([l({type:String,reflect:!0})],n.UUIPopoverElement.prototype,"placement",1),_i([l({type:Boolean,reflect:!0})],n.UUIPopoverElement.prototype,"open",1),n.UUIPopoverElement=_i([b("uui-popover")],n.UUIPopoverElement);var mp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,Ia=i=>{throw TypeError(i)},at=(i,e,t,r)=>{for(var o=r>1?void 0:r?bp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&mp(e,t,o),o},Kr=(i,e,t)=>e.has(i)||Ia("Cannot "+t),D=(i,e,t)=>(Kr(i,e,"read from private field"),e.get(i)),lt=(i,e,t)=>e.has(i)?Ia("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),gp=(i,e,t,r)=>(Kr(i,e,"write to private field"),e.set(i,t),t),qt=(i,e,t)=>(Kr(i,e,"access private method"),t),Ae,Kt,_o,He,Ui,Xr,Re,Yr,xa,Zr,Ca;n.UUIPopoverContainerElement=class extends v{constructor(){super(...arguments),lt(this,Re),this.margin=0,this._placement="bottom-start",this._open=!1,this._actualPlacement=this._placement,lt(this,Ae,null),lt(this,Kt,[]),lt(this,_o,e=>{if(this._open=e.newState==="open",gp(this,Ae,uc(this,"popovertarget",this.id)),qt(this,Re,Ca).call(this),D(this,Ae)?.dispatchEvent(new CustomEvent("uui-popover-before-toggle",{bubbles:!1,composed:!1,detail:{oldState:e.oldState,newState:e.newState}})),!this._open){qt(this,Re,Zr).call(this);return}qt(this,Re,xa).call(this),requestAnimationFrame(()=>{D(this,He).call(this)})}),lt(this,He,()=>{this._open&&(this._actualPlacement=this._placement,this.style.opacity="0",D(this,Ui).call(this,3))}),lt(this,Ui,e=>{if(D(this,Xr).call(this),e--,D(this,Ae)===null)return;const t=this._actualPlacement.indexOf("top")!==-1,r=this._actualPlacement.indexOf("bottom")!==-1,o=this._actualPlacement.indexOf("left")!==-1,s=this._actualPlacement.indexOf("right")!==-1,a=this._actualPlacement.indexOf("-start")!==-1,c=this._actualPlacement.indexOf("-end")!==-1,h=D(this,Ae).getBoundingClientRect(),d=this.getBoundingClientRect();let f=0,g=0;r&&(f=h.top+h.height,a&&(g=h.left),c&&(g=h.left+h.width-d.width),!a&&!c&&(g=h.left+h.width/2-d.width/2)),t&&(f=h.top-d.height,a&&(g=h.left),c&&(g=h.left+h.width-d.width),!a&&!c&&(g=h.left+h.width/2-d.width/2)),o&&(g=h.left-d.width,a&&(f=h.top),c&&(f=h.top+h.height-d.height),!a&&!c&&(f=h.top+h.height/2-d.height/2)),s&&(g=h.left+h.width,a&&(f=h.top),c&&(f=h.top+h.height-d.height),!a&&!c&&(f=h.top+h.height/2-d.height/2));const U=window.innerWidth,p=window.innerHeight,_=Math.min(0,h.top+h.height),S=Math.max(Math.min(f,p-d.height),h.top-d.height);if(Math.max(_,S)!==f&&(t||r)&&e>0){qt(this,Re,Yr).call(this),D(this,Ui).call(this,e);return}f=Math.max(_,S);const x=Math.min(0,h.left+h.width),N=Math.max(Math.min(g,U-d.width),h.left-d.width),Q=Math.max(x,N);if(Q!==g&&(o||s)&&e>0){qt(this,Re,Yr).call(this),D(this,Ui).call(this,e);return}g=Q,(f+d.height<0||f>p||g+d.width<0||g>U)&&this.hidePopover(),this.style.transform=`translate(${g}px, ${f}px)`,this.style.opacity="1"}),lt(this,Xr,()=>{const e={top:"bottom",bottom:"top",left:"right",right:"left"};let t=this._actualPlacement.split("-")[0];t=e[t]||t,t=t.charAt(0).toUpperCase()+t.slice(1);const r=`padding${t}`;this.style.padding="0",this.style[r]=`${this.margin}px`})}get open(){return this._open}get placement(){return this._placement}set placement(e){this._placement=e,this._actualPlacement=e,D(this,He).call(this)}connectedCallback(){this.hasAttribute("popover")||this.setAttribute("popover",""),super.connectedCallback(),this.addEventListener("beforetoggle",D(this,_o))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",D(this,_o)),qt(this,Re,Zr).call(this)}render(){return u`<slot></slot>`}},Ae=new WeakMap,Kt=new WeakMap,_o=new WeakMap,He=new WeakMap,Ui=new WeakMap,Xr=new WeakMap,Re=new WeakSet,Yr=function(){const[i,e]=this._actualPlacement.split("-"),t=i==="top"?"bottom":i==="bottom"?"top":i==="left"?"right":"left";this._actualPlacement=`${t}-${e}`},xa=function(){D(this,Kt).forEach(i=>{i.addEventListener("scroll",D(this,He),{passive:!0})}),document.addEventListener("scroll",D(this,He),{passive:!0})},Zr=function(){D(this,Kt).forEach(i=>{i.removeEventListener("scroll",D(this,He))}),document.removeEventListener("scroll",D(this,He))},Ca=function(){if(!D(this,Ae))return;let i=getComputedStyle(D(this,Ae));if(i.position==="fixed")return;const e=i.position==="absolute",t=/(auto|scroll)/;let r=D(this,Ae);for(;r=r.parentElement;)if(i=getComputedStyle(r),!(e&&i.position==="static")&&(t.test(i.overflow+i.overflowY+i.overflowX)&&D(this,Kt).push(r),i.position==="fixed"))return;D(this,Kt).push(document.body)},n.UUIPopoverContainerElement.styles=[m`:host{margin:0;width:fit-content;height:fit-content;border:none;border-radius:0;padding:0;background-color:none;background:0 0;overflow:visible;color:var(--uui-color-text,#060606)}`],at([l({type:Number})],n.UUIPopoverContainerElement.prototype,"margin",2),at([l({type:Boolean})],n.UUIPopoverContainerElement.prototype,"open",1),at([l({type:String,reflect:!0})],n.UUIPopoverContainerElement.prototype,"placement",1),at([w()],n.UUIPopoverContainerElement.prototype,"_placement",2),at([w()],n.UUIPopoverContainerElement.prototype,"_open",2),at([w()],n.UUIPopoverContainerElement.prototype,"_actualPlacement",2),n.UUIPopoverContainerElement=at([b("uui-popover-container")],n.UUIPopoverContainerElement);var vp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,Sa=(i,e,t,r)=>{for(var o=r>1?void 0:r?fp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vp(e,t,o),o};const yp=(i,e,t)=>Math.min(Math.max(i,e),t);n.UUIProgressBarElement=class extends v{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=yp(e,0,100),this.requestUpdate("progress",t)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return u`<div id="bar" style="${ve(this._getProgressStyle())}"></div>`}},n.UUIProgressBarElement.styles=[m`:host{width:100%;height:4px;position:relative;overflow:hidden;background:var(--uui-color-surface-alt,#f3f3f5);border-radius:100px;display:inline-block}#bar{transition:width 250ms ease;background:var(--uui-color-positive,#0b8152);height:100%;width:0%}`],Sa([l({type:Number})],n.UUIProgressBarElement.prototype,"progress",1),n.UUIProgressBarElement=Sa([b("uui-progress-bar")],n.UUIProgressBarElement);let Xt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Xt.CHANGE="change";var wp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,Pa=i=>{throw TypeError(i)},Fe=(i,e,t,r)=>{for(var o=r>1?void 0:r?_p(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wp(e,t,o),o},Up=(i,e,t)=>e.has(i)||Pa("Cannot "+t),kp=(i,e,t)=>e.has(i)?Pa("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),$p=(i,e,t)=>(Up(i,e,"access private method"),t),Qr,Aa;n.UUIRadioElement=class extends v{constructor(){super(...arguments),kp(this,Qr),this.name="",this.value="",this.label="",this.checked=!1,this.disabled=!1,this.readonly=!1}focus(){this._inputElement.focus()}click(){this._inputElement.click()}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.removeAttribute("tabindex")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}render(){return u`<label><input id="input" type="radio" name="${this.name}" value="${this.value}" .checked="${this.checked}" .disabled="${this.disabled||this.readonly}" @change="${$p(this,Qr,Aa)}"><div id="button"></div><div id="label">${this.label?u`<span>${this.label}</span>`:u`<slot></slot>`}</div></label>`}},Qr=new WeakSet,Aa=function(i){i.stopPropagation();const e=this._inputElement.checked;this.checked=e,e&&this.focus(),this.dispatchEvent(new Xt(Xt.CHANGE))},n.UUIRadioElement.styles=[ji,m`:host{display:block;box-sizing:border-box;font-family:inherit;color:currentColor;--uui-radio-button-size:var(--uui-size-6,18px);margin:var(--uui-size-2,6px) 0}label{position:relative;box-sizing:border-box;user-select:none;display:flex;align-items:center;cursor:pointer;line-height:18px}:host([readonly]) label{cursor:default}#input{width:0;height:0;opacity:0;margin:0}.label{margin-top:2px}#button{box-sizing:border-box;display:inline-block;width:var(--uui-radio-button-size,18px);height:var(--uui-radio-button-size,18px);background-color:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border-standalone,#c2c2c2);border-radius:100%;margin-right:calc(var(--uui-size-2,6px) * 2);position:relative;flex:0 0 var(--uui-radio-button-size)}#button::after{content:'';width:calc(var(--uui-radio-button-size)/ 2);height:calc(var(--uui-radio-button-size)/ 2);background-color:var(--uui-color-selected,#3544b1);border-radius:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:all .15s ease-in-out}:host(:hover) #button{border:1px solid var(--uui-color-border-emphasis,#a1a1a1)}:host(:focus){outline:0}:host(:focus-within) input:focus-visible+#button{outline:2px solid var(--uui-color-focus,#3879ff)}input:checked~#button::after{transform:translate(-50%,-50%) scale(1)}input:checked~#button{border:1px solid var(--uui-color-selected,#3544b1)}input:checked:hover~#button{border:1px solid var(--uui-color-selected-emphasis,#4656c8)}input:checked:hover~#button::after{background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([disabled]) label{cursor:not-allowed;opacity:.5}:host([disabled]) .label{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button::after{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]:active) #button{animation:${Hi}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],Fe([A("#input")],n.UUIRadioElement.prototype,"_inputElement",2),Fe([l({type:String})],n.UUIRadioElement.prototype,"name",2),Fe([l({type:String})],n.UUIRadioElement.prototype,"value",2),Fe([l({type:String})],n.UUIRadioElement.prototype,"label",2),Fe([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"checked",2),Fe([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"disabled",2),Fe([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"readonly",2),n.UUIRadioElement=Fe([b("uui-radio")],n.UUIRadioElement);let Uo=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Uo.CHANGE="change";var Ep=Object.defineProperty,Ip=Object.getOwnPropertyDescriptor,za=i=>{throw TypeError(i)},Jr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ip(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ep(e,t,o),o},en=(i,e,t)=>e.has(i)||za("Cannot "+t),E=(i,e,t)=>(en(i,e,"read from private field"),t?t.call(i):e.get(i)),Ge=(i,e,t)=>e.has(i)?za("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ko=(i,e,t,r)=>(en(i,e,"write to private field"),e.set(i,t),t),H=(i,e,t)=>(en(i,e,"access private method"),t),R,T,tn,on,$o,Eo,rn,B,Ma,nn,sn,an,ln,ut,La,Oa,ki;const xp="ArrowLeft",Cp="ArrowUp",Sp="ArrowRight",Pp="ArrowDown",Ap=" ",zp="Enter";n.UUIRadioGroupElement=class extends ge(v,""){constructor(){super(),Ge(this,B),this.disabled=!1,this.readonly=!1,Ge(this,R,null),Ge(this,T,[]),Ge(this,tn,e=>{E(this,T)?.forEach(t=>{t!==e.target?t.makeUnfocusable():t.makeFocusable()})}),Ge(this,on,e=>{this.contains(e.relatedTarget)||E(this,R)===null&&E(this,T)?.forEach(t=>{t.makeFocusable()})}),Ge(this,$o,()=>{this.pristine=!1}),Ge(this,Eo,e=>{e.target.checked===!0&&(this.value=e.target.value,H(this,B,ki).call(this))}),Ge(this,rn,e=>{switch(e.key){case xp:case Cp:{e.preventDefault(),H(this,B,La).call(this);break}case Sp:case Pp:{e.preventDefault(),H(this,B,Oa).call(this);break}case Ap:{E(this,R)===null&&(this.value=H(this,B,ut).call(this,1,!1)?.value,H(this,B,ki).call(this));break}case zp:this.submit()}}),this.addEventListener("keydown",E(this,rn)),this.addEventListener("focusin",E(this,tn)),this.addEventListener("focusout",E(this,on)),this.updateComplete.then(()=>{H(this,B,sn).call(this,this.value)})}get value(){return super.value}set value(e){super.value=e,H(this,B,sn).call(this,e)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}updated(e){super.updated(e),e.has("disabled")&&H(this,B,an).call(this,this.disabled),e.has("readonly")&&H(this,B,ln).call(this,this.readonly),e.has("name")&&H(this,B,nn).call(this,e.get("name"))}async focus(){await this.updateComplete,E(this,R)!==null?E(this,T)[E(this,R)]?.focus():H(this,B,ut).call(this,1,!1)?.focus()}async blur(){await this.updateComplete,E(this,R)!==null?E(this,T)[E(this,R)]?.blur():H(this,B,ut).call(this,1,!1)?.blur()}async click(){await this.updateComplete,E(this,R)!==null?E(this,T)[E(this,R)]?.click():H(this,B,ut).call(this,1,!1)?.click()}getFormElement(){if(E(this,T)&&E(this,R))return E(this,T)[E(this,R)]}render(){return u`<slot @slotchange="${H(this,B,Ma)}"></slot>`}},R=new WeakMap,T=new WeakMap,tn=new WeakMap,on=new WeakMap,$o=new WeakMap,Eo=new WeakMap,rn=new WeakMap,B=new WeakSet,Ma=function(i){if(i.stopPropagation(),E(this,T)?.forEach(t=>{t.removeEventListener(Xt.CHANGE,E(this,Eo)),t.removeEventListener("blur",E(this,$o))}),ko(this,R,null),ko(this,T,i.target.assignedElements({flatten:!0}).filter(t=>t instanceof n.UUIRadioElement)),E(this,T).length===0)return;E(this,T).forEach(t=>{t.addEventListener(Xt.CHANGE,E(this,Eo)),t.addEventListener("blur",E(this,$o))}),H(this,B,nn).call(this,this.name),this.disabled&&H(this,B,an).call(this,!0),this.readonly&&H(this,B,ln).call(this,!0);const e=E(this,T).filter(t=>t.checked===!0);if(e.length>1&&(E(this,T).forEach(t=>{t.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),e.length===1){const t=e[0];this.value=t.value,ko(this,R,E(this,T).indexOf(t))}},nn=function(i){E(this,T)?.forEach(e=>e.name=i)},sn=function(i){const e=[];E(this,T).forEach((t,r)=>{t.value===i?(t.checked=!0,t.makeFocusable(),ko(this,R,r)):(t.checked=!1,e.push(t))}),E(this,R)!==null&&e.forEach(t=>t.makeUnfocusable())},an=function(i){E(this,T)?.forEach(e=>e.disabled=i)},ln=function(i){E(this,T)?.forEach(e=>e.readonly=i)},ut=function(i=1,e=!0){if(!E(this,T)||E(this,T).length===0)return null;const t=E(this,T).length;let r=E(this,R)??0;for(let o=0;o<t+1;o++){if(!e||o>0){const s=E(this,T)[r];if(!s.disabled&&!s.readonly)return s}r=(r+i+t)%t}return null},La=function(){this.value=H(this,B,ut).call(this,-1)?.value??"",E(this,T)[E(this,R)??0]?.focus(),H(this,B,ki).call(this)},Oa=function(){this.value=H(this,B,ut).call(this)?.value??"",E(this,T)[E(this,R)??0]?.focus(),H(this,B,ki).call(this)},ki=function(){this.pristine=!1,this.dispatchEvent(new Uo(Uo.CHANGE))},n.UUIRadioGroupElement.formAssociated=!0,n.UUIRadioGroupElement.styles=[m`:host{display:inline-block;padding-right:3px;border:1px solid transparent;border-radius:var(--uui-border-radius,3px)}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],Jr([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"disabled",2),Jr([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"readonly",2),n.UUIRadioGroupElement=Jr([b("uui-radio-group")],n.UUIRadioGroupElement);let _e=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};_e.INPUT="input",_e.CHANGE="change";var Mp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,Ta=i=>{throw TypeError(i)},V=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Mp(e,t,o),o},Na=(i,e,t)=>e.has(i)||Ta("Cannot "+t),Op=(i,e,t)=>(Na(i,e,"read from private field"),t?t.call(i):e.get(i)),Ba=(i,e,t)=>e.has(i)?Ta("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Yt=(i,e,t)=>(Na(i,e,"access private method"),t),We,ct,un;const cn={TOP:3,CENTER:2},$i=18,Zt=3,ze=12,Tp=24,hn=i=>{const e=i.toString().indexOf(".");return e>=0?i.toString().length-e-1:0};n.UUIRangeSliderElement=class extends ge(v,""){constructor(){super(),Ba(this,We),this.disabled=!1,this.readonly=!1,this._min=0,this._max=0,this.hideStepValues=!1,this._step=1,this._movement=!1,this.startPoint={mouse:0,low:0,high:0},this._lowInputValue=0,this._highInputValue=0,this._trackWidth=0,this._lowValuePercentStart=0,this._highValuePercentEnd=100,Ba(this,un,e=>{e.key=="Enter"&&this.submit()}),this._onTouchStart=e=>{if(this.disabled)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchcancel",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove),this._movement=!0,this._saveStartPoints(e.touches[0].pageX);else{const r=this._getClickedValue(e.touches[0].pageX),o=Math.abs(this._lowInputValue-r),s=Math.abs(this._highInputValue-r);o<s?this.setValueLow(r):this.setValueHigh(r)}},this._onTouchMove=e=>{this._dragBothValuesByMousePos(e.touches[0].pageX)},this._onTouchEnd=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchcancel",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this._onMouseDown=e=>{if(this.disabled||this.readonly)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove),this._movement=!0,this._saveStartPoints(e.pageX);else{const r=this._getClickedValue(e.pageX),o=Math.abs(this._lowInputValue-r),s=Math.abs(this._highInputValue-r);o<s?this.setValueLow(r):this.setValueHigh(r)}},this._onMouseMove=e=>{e.preventDefault(),this._dragBothValuesByMousePos(e.pageX)},this._onMouseUp=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this.addEventListener("keydown",Op(this,un)),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),window.addEventListener("resize",()=>{this._trackWidth=this._outerTrack?.offsetWidth})}get min(){return this._min}set min(e){this._min=e,Yt(this,We,ct).call(this)}get max(){return this._max}set max(e){this._max=e,Yt(this,We,ct).call(this)}get step(){return this._step}set step(e){this._step=e,Yt(this,We,ct).call(this)}get minGap(){return this._minGap}set minGap(e){this._minGap=e,Yt(this,We,ct).call(this)}get maxGap(){return this._maxGap}set maxGap(e){this._maxGap=e,Yt(this,We,ct).call(this)}get value(){return super.value}set value(e){super.value=e,Yt(this,We,ct).call(this)}setValueLow(e){e=O(e,this.maxGap?this._highInputValue-this.maxGap>this.min?this._highInputValue-this.maxGap:this.min:this.min,this.minGap?this._highInputValue-this.minGap:this._highInputValue-this.step),this.setValue(e,this._highInputValue)}setValueHigh(e){e=O(e,this.minGap?this._lowInputValue+this.minGap:this._lowInputValue+this.step,this.maxGap?this.maxGap+this._lowInputValue<this.max?this.maxGap+this._lowInputValue:this.max:this.max),this.setValue(this._lowInputValue,e)}setValue(e,t,r){if(r){const o=this.startPoint.high-this.startPoint.low;e=O(e,this.min,this.max-o),t=O(t,this.min+o,this.max)}this._inputLow.value=e.toString(),this._inputHigh.value=t.toString(),this.value=`${e},${t}`}getFormElement(){return this._currentFocus?this._currentFocus:this._inputLow}async focus(){await this.updateComplete,this.getFormElement().focus()}async blur(){await this.updateComplete,this.getFormElement().blur()}connectedCallback(){super.connectedCallback(),this.value||(this.value=`${this._min},${this._max}`)}firstUpdated(e){super.updated(e),this._trackWidth=this._outerTrack.offsetWidth,this._runPropertiesChecks()}_runPropertiesChecks(){if(new RegExp(/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/).test(this.value)||console.error("Range slider (Value error occurred): Bad input"),this._highInputValue===this._lowInputValue&&console.error("Range slider (Value error occurred): Low-end and high-end value should never be equal. Use <uui-slider></uui-slider> instead."),this._lowInputValue>this._highInputValue&&console.error("Range slider (Value error occurred): Low-end value should never be higher than high-end value."),(this._highInputValue>this._max||this._highInputValue<this._min)&&(this.setValueHigh(this._max),console.warn(`Conflict with the high-end value and max value. High-end value has been converted to the max value (${this._max})`)),(this._lowInputValue<this._min||this._lowInputValue>this._max)&&(this.setValueLow(this._min),console.warn(`Conflict with the low-end value and min value. Low-end value has been converted to the min value (${this._min})`)),this._step<=0&&(this._step=1,console.warn("Property step needs a value higher than 0. Converted the step value to 1 (default)")),(this._max-this._min)/this._step%1!==0&&console.error("Conflict with step value and the min and max values. May experience bad side effects"),this._minGap&&this._minGap<this._step&&(this._minGap=void 0,console.warn("Conflict with min-gap and step value. The min-gap needs to be higher than the step value. Removed the min-gap property.")),this._minGap&&this._maxGap&&this._minGap>this._maxGap&&(this._minGap=void 0,this._maxGap=void 0,console.warn("Conflict with min-gap and max-gap. Removed the min-gap and max-gap properties.")),this._minGap&&this._max-this._min<this._minGap&&(this._minGap=void 0,console.warn("Conflict with the min-gap and the total range. Removed the min-gap.")),this._maxGap&&this._highInputValue-this._lowInputValue>this._maxGap&&(this.setValueHigh(this._lowInputValue+this._maxGap),console.warn(`Conflict with value and max-gap. High-end value has been converted to the highest possible value based on the low-end value and the max gap value (${this._highInputValue})`)),this._minGap&&this._highInputValue-this._lowInputValue<this._minGap){const e=this._minGap;this._highInputValue-e<this._min?(this.setValueHigh(this._lowInputValue+e),console.warn(`Conflict with value and min gap. High-end value has been converted to the lowest possible value based on the low-end value and the min gap value (${this._highInputValue}).`)):(this.setValueLow(this._highInputValue-e),console.warn(`Conflict with value and min gap. Low-end value has been converted to the highest possible value based on the high-end value and the min gap value (${this._lowInputValue}).`))}}_updateInnerColor(){const e=this._max-this._min,t=this._lowInputValue-this._min,r=this._highInputValue-this._min,o=t/e*100,s=100-r/e*100;this._lowValuePercentStart=O(o,0,100),this._highValuePercentEnd=O(s,0,100)}_getClickedValue(e){const t=this._outerTrack.getBoundingClientRect().left,r=(e-t-ze)/(this._trackWidth-ze*2)*(this._max-this._min)+this._min;return Math.round(r/this._step)*this._step}_saveStartPoints(e){this.startPoint={mouse:e,low:this._lowInputValue,high:this._highInputValue}}_dragBothValuesByMousePos(e){const t=this._outerTrack.offsetWidth,r=e-this.startPoint.mouse,o=this._max-this._min,s=r/(t+ze*2),a=Math.round(s*o/this._step)*this._step,c=this.startPoint.low+a,h=this.startPoint.high+a;this.setValue(c,h,!0),this.dispatchEvent(new _e(_e.INPUT))}_onLowInput(e){this.disabled&&e.preventDefault(),this.readonly&&e.preventDefault(),this._currentFocus=this._inputLow;const t=Number(e.target.value);this.setValueLow(t),this.dispatchEvent(new _e(_e.INPUT))}_onHighInput(e){this.disabled&&e.preventDefault(),this.readonly&&e.preventDefault(),this._currentFocus=this._inputHigh;const t=Number(e.target.value);this.setValueHigh(t),this.dispatchEvent(new _e(_e.INPUT))}_onLowChange(){this.setValueLow(Number(this._inputLow.value)),this.onChanged()}_onHighChange(){this.setValueHigh(Number(this._inputHigh.value)),this.onChanged()}onChanged(){this.pristine=!1,this.dispatchEvent(new _e(_e.CHANGE))}render(){return u`
361
+ )}`],ki([A("#container")],n.UUIPopoverElement.prototype,"containerElement",2),ki([l({type:Number})],n.UUIPopoverElement.prototype,"margin",2),ki([l({type:String,reflect:!0})],n.UUIPopoverElement.prototype,"placement",1),ki([l({type:Boolean,reflect:!0})],n.UUIPopoverElement.prototype,"open",1),n.UUIPopoverElement=ki([g("uui-popover")],n.UUIPopoverElement);var $p=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,Ta=i=>{throw TypeError(i)},at=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ep(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$p(e,t,o),o},Qr=(i,e,t)=>e.has(i)||Ta("Cannot "+t),D=(i,e,t)=>(Qr(i,e,"read from private field"),e.get(i)),lt=(i,e,t)=>e.has(i)?Ta("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ip=(i,e,t,r)=>(Qr(i,e,"write to private field"),e.set(i,t),t),qt=(i,e,t)=>(Qr(i,e,"access private method"),t),Ae,Kt,ko,He,$i,Jr,Re,en,Na,tn,Ba;n.UUIPopoverContainerElement=class extends f{constructor(){super(...arguments),lt(this,Re),this.margin=0,this._placement="bottom-start",this._open=!1,this._actualPlacement=this._placement,lt(this,Ae,null),lt(this,Kt,[]),lt(this,ko,e=>{if(this._open=e.newState==="open",Ip(this,Ae,yc(this,"popovertarget",this.id)),qt(this,Re,Ba).call(this),D(this,Ae)?.dispatchEvent(new CustomEvent("uui-popover-before-toggle",{bubbles:!1,composed:!1,detail:{oldState:e.oldState,newState:e.newState}})),!this._open){qt(this,Re,tn).call(this);return}qt(this,Re,Na).call(this),requestAnimationFrame(()=>{D(this,He).call(this)})}),lt(this,He,()=>{this._open&&(this._actualPlacement=this._placement,this.style.opacity="0",D(this,$i).call(this,3))}),lt(this,$i,e=>{if(D(this,Jr).call(this),e--,D(this,Ae)===null)return;const t=this._actualPlacement.indexOf("top")!==-1,r=this._actualPlacement.indexOf("bottom")!==-1,o=this._actualPlacement.indexOf("left")!==-1,s=this._actualPlacement.indexOf("right")!==-1,a=this._actualPlacement.indexOf("-start")!==-1,c=this._actualPlacement.indexOf("-end")!==-1,h=D(this,Ae).getBoundingClientRect(),d=this.getBoundingClientRect();let b=0,m=0;r&&(b=h.top+h.height,a&&(m=h.left),c&&(m=h.left+h.width-d.width),!a&&!c&&(m=h.left+h.width/2-d.width/2)),t&&(b=h.top-d.height,a&&(m=h.left),c&&(m=h.left+h.width-d.width),!a&&!c&&(m=h.left+h.width/2-d.width/2)),o&&(m=h.left-d.width,a&&(b=h.top),c&&(b=h.top+h.height-d.height),!a&&!c&&(b=h.top+h.height/2-d.height/2)),s&&(m=h.left+h.width,a&&(b=h.top),c&&(b=h.top+h.height-d.height),!a&&!c&&(b=h.top+h.height/2-d.height/2));const U=window.innerWidth,p=window.innerHeight,_=Math.min(0,h.top+h.height),S=Math.max(Math.min(b,p-d.height),h.top-d.height);if(Math.max(_,S)!==b&&(t||r)&&e>0){qt(this,Re,en).call(this),D(this,$i).call(this,e);return}b=Math.max(_,S);const x=Math.min(0,h.left+h.width),N=Math.max(Math.min(m,U-d.width),h.left-d.width),Q=Math.max(x,N);if(Q!==m&&(o||s)&&e>0){qt(this,Re,en).call(this),D(this,$i).call(this,e);return}m=Q,(b+d.height<0||b>p||m+d.width<0||m>U)&&this.hidePopover(),this.style.transform=`translate(${m}px, ${b}px)`,this.style.opacity="1"}),lt(this,Jr,()=>{const e={top:"bottom",bottom:"top",left:"right",right:"left"};let t=this._actualPlacement.split("-")[0];t=e[t]||t,t=t.charAt(0).toUpperCase()+t.slice(1);const r=`padding${t}`;this.style.padding="0",this.style[r]=`${this.margin}px`})}get open(){return this._open}get placement(){return this._placement}set placement(e){this._placement=e,this._actualPlacement=e,D(this,He).call(this)}connectedCallback(){this.hasAttribute("popover")||this.setAttribute("popover",""),super.connectedCallback(),this.addEventListener("beforetoggle",D(this,ko))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",D(this,ko)),qt(this,Re,tn).call(this)}render(){return u`<slot></slot>`}},Ae=new WeakMap,Kt=new WeakMap,ko=new WeakMap,He=new WeakMap,$i=new WeakMap,Jr=new WeakMap,Re=new WeakSet,en=function(){const[i,e]=this._actualPlacement.split("-"),t=i==="top"?"bottom":i==="bottom"?"top":i==="left"?"right":"left";this._actualPlacement=`${t}-${e}`},Na=function(){D(this,Kt).forEach(i=>{i.addEventListener("scroll",D(this,He),{passive:!0})}),document.addEventListener("scroll",D(this,He),{passive:!0})},tn=function(){D(this,Kt).forEach(i=>{i.removeEventListener("scroll",D(this,He))}),document.removeEventListener("scroll",D(this,He))},Ba=function(){if(!D(this,Ae))return;let i=getComputedStyle(D(this,Ae));if(i.position==="fixed")return;const e=i.position==="absolute",t=/(auto|scroll)/;let r=D(this,Ae);for(;r=r.parentElement;)if(i=getComputedStyle(r),!(e&&i.position==="static")&&(t.test(i.overflow+i.overflowY+i.overflowX)&&D(this,Kt).push(r),i.position==="fixed"))return;D(this,Kt).push(document.body)},n.UUIPopoverContainerElement.styles=[v`:host{margin:0;width:fit-content;height:fit-content;border:none;border-radius:0;padding:0;background-color:none;background:0 0;overflow:visible;color:var(--uui-color-text,#060606)}`],at([l({type:Number})],n.UUIPopoverContainerElement.prototype,"margin",2),at([l({type:Boolean})],n.UUIPopoverContainerElement.prototype,"open",1),at([l({type:String,reflect:!0})],n.UUIPopoverContainerElement.prototype,"placement",1),at([w()],n.UUIPopoverContainerElement.prototype,"_placement",2),at([w()],n.UUIPopoverContainerElement.prototype,"_open",2),at([w()],n.UUIPopoverContainerElement.prototype,"_actualPlacement",2),n.UUIPopoverContainerElement=at([g("uui-popover-container")],n.UUIPopoverContainerElement);var xp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,Da=(i,e,t,r)=>{for(var o=r>1?void 0:r?Cp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xp(e,t,o),o};const Sp=(i,e,t)=>Math.min(Math.max(i,e),t);n.UUIProgressBarElement=class extends f{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=Sp(e,0,100),this.requestUpdate("progress",t)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return u`<div id="bar" style="${ge(this._getProgressStyle())}"></div>`}},n.UUIProgressBarElement.styles=[v`:host{width:100%;height:4px;position:relative;overflow:hidden;background:var(--uui-color-surface-alt,#f3f3f5);border-radius:100px;display:inline-block}#bar{transition:width 250ms ease;background:var(--uui-color-positive,#0b8152);height:100%;width:0%}`],Da([l({type:Number})],n.UUIProgressBarElement.prototype,"progress",1),n.UUIProgressBarElement=Da([g("uui-progress-bar")],n.UUIProgressBarElement);let Xt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Xt.CHANGE="change";var Pp=Object.defineProperty,Ap=Object.getOwnPropertyDescriptor,Va=i=>{throw TypeError(i)},Fe=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ap(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Pp(e,t,o),o},zp=(i,e,t)=>e.has(i)||Va("Cannot "+t),Mp=(i,e,t)=>e.has(i)?Va("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Lp=(i,e,t)=>(zp(i,e,"access private method"),t),on,ja;n.UUIRadioElement=class extends f{constructor(){super(...arguments),Mp(this,on),this.name="",this.value="",this.label="",this.checked=!1,this.disabled=!1,this.readonly=!1}focus(){this._inputElement.focus()}click(){this._inputElement.click()}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.removeAttribute("tabindex")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}render(){return u`<label><input id="input" type="radio" name="${this.name}" value="${this.value}" .checked="${this.checked}" .disabled="${this.disabled||this.readonly}" @change="${Lp(this,on,ja)}"><div id="button"></div><div id="label">${this.label?u`<span>${this.label}</span>`:u`<slot></slot>`}</div></label>`}},on=new WeakSet,ja=function(i){i.stopPropagation();const e=this._inputElement.checked;this.checked=e,e&&this.focus(),this.dispatchEvent(new Xt(Xt.CHANGE))},n.UUIRadioElement.styles=[Ri,v`:host{display:block;box-sizing:border-box;font-family:inherit;color:currentColor;--uui-radio-button-size:var(--uui-size-6,18px);margin:var(--uui-size-2,6px) 0}label{position:relative;box-sizing:border-box;user-select:none;display:flex;align-items:center;cursor:pointer;line-height:18px}:host([readonly]) label{cursor:default}#input{width:0;height:0;opacity:0;margin:0}.label{margin-top:2px}#button{box-sizing:border-box;display:inline-block;width:var(--uui-radio-button-size,18px);height:var(--uui-radio-button-size,18px);background-color:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border-standalone,#c2c2c2);border-radius:100%;margin-right:calc(var(--uui-size-2,6px) * 2);position:relative;flex:0 0 var(--uui-radio-button-size)}#button::after{content:'';width:calc(var(--uui-radio-button-size)/ 2);height:calc(var(--uui-radio-button-size)/ 2);background-color:var(--uui-color-selected,#3544b1);border-radius:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:all .15s ease-in-out}:host(:hover) #button{border:1px solid var(--uui-color-border-emphasis,#a1a1a1)}:host(:focus){outline:0}:host(:focus-within) input:focus-visible+#button{outline:2px solid var(--uui-color-focus,#3879ff)}input:checked~#button::after{transform:translate(-50%,-50%) scale(1)}input:checked~#button{border:1px solid var(--uui-color-selected,#3544b1)}input:checked:hover~#button{border:1px solid var(--uui-color-selected-emphasis,#4656c8)}input:checked:hover~#button::after{background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([disabled]) label{cursor:not-allowed;opacity:.5}:host([disabled]) .label{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button::after{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]:active) #button{animation:${Fi}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],Fe([A("#input")],n.UUIRadioElement.prototype,"_inputElement",2),Fe([l({type:String})],n.UUIRadioElement.prototype,"name",2),Fe([l({type:String})],n.UUIRadioElement.prototype,"value",2),Fe([l({type:String})],n.UUIRadioElement.prototype,"label",2),Fe([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"checked",2),Fe([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"disabled",2),Fe([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"readonly",2),n.UUIRadioElement=Fe([g("uui-radio")],n.UUIRadioElement);let $o=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};$o.CHANGE="change";var Op=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,Ha=i=>{throw TypeError(i)},rn=(i,e,t,r)=>{for(var o=r>1?void 0:r?Tp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Op(e,t,o),o},nn=(i,e,t)=>e.has(i)||Ha("Cannot "+t),E=(i,e,t)=>(nn(i,e,"read from private field"),t?t.call(i):e.get(i)),Ge=(i,e,t)=>e.has(i)?Ha("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Eo=(i,e,t,r)=>(nn(i,e,"write to private field"),e.set(i,t),t),H=(i,e,t)=>(nn(i,e,"access private method"),t),R,T,sn,an,Io,xo,ln,B,Ra,un,cn,hn,dn,ut,Fa,Ga,Ei;const Np="ArrowLeft",Bp="ArrowUp",Dp="ArrowRight",Vp="ArrowDown",jp=" ",Hp="Enter";n.UUIRadioGroupElement=class extends ve(f,""){constructor(){super(),Ge(this,B),this.disabled=!1,this.readonly=!1,Ge(this,R,null),Ge(this,T,[]),Ge(this,sn,e=>{E(this,T)?.forEach(t=>{t!==e.target?t.makeUnfocusable():t.makeFocusable()})}),Ge(this,an,e=>{this.contains(e.relatedTarget)||E(this,R)===null&&E(this,T)?.forEach(t=>{t.makeFocusable()})}),Ge(this,Io,()=>{this.pristine=!1}),Ge(this,xo,e=>{e.target.checked===!0&&(this.value=e.target.value,H(this,B,Ei).call(this))}),Ge(this,ln,e=>{switch(e.key){case Np:case Bp:{e.preventDefault(),H(this,B,Fa).call(this);break}case Dp:case Vp:{e.preventDefault(),H(this,B,Ga).call(this);break}case jp:{E(this,R)===null&&(this.value=H(this,B,ut).call(this,1,!1)?.value,H(this,B,Ei).call(this));break}case Hp:this.submit()}}),this.addEventListener("keydown",E(this,ln)),this.addEventListener("focusin",E(this,sn)),this.addEventListener("focusout",E(this,an)),this.updateComplete.then(()=>{H(this,B,cn).call(this,this.value)})}get value(){return super.value}set value(e){super.value=e,H(this,B,cn).call(this,e)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}updated(e){super.updated(e),e.has("disabled")&&H(this,B,hn).call(this,this.disabled),e.has("readonly")&&H(this,B,dn).call(this,this.readonly),e.has("name")&&H(this,B,un).call(this,e.get("name"))}async focus(){await this.updateComplete,E(this,R)!==null?E(this,T)[E(this,R)]?.focus():H(this,B,ut).call(this,1,!1)?.focus()}async blur(){await this.updateComplete,E(this,R)!==null?E(this,T)[E(this,R)]?.blur():H(this,B,ut).call(this,1,!1)?.blur()}async click(){await this.updateComplete,E(this,R)!==null?E(this,T)[E(this,R)]?.click():H(this,B,ut).call(this,1,!1)?.click()}getFormElement(){if(E(this,T)&&E(this,R))return E(this,T)[E(this,R)]}render(){return u`<slot @slotchange="${H(this,B,Ra)}"></slot>`}},R=new WeakMap,T=new WeakMap,sn=new WeakMap,an=new WeakMap,Io=new WeakMap,xo=new WeakMap,ln=new WeakMap,B=new WeakSet,Ra=function(i){if(i.stopPropagation(),E(this,T)?.forEach(t=>{t.removeEventListener(Xt.CHANGE,E(this,xo)),t.removeEventListener("blur",E(this,Io))}),Eo(this,R,null),Eo(this,T,i.target.assignedElements({flatten:!0}).filter(t=>t instanceof n.UUIRadioElement)),E(this,T).length===0)return;E(this,T).forEach(t=>{t.addEventListener(Xt.CHANGE,E(this,xo)),t.addEventListener("blur",E(this,Io))}),H(this,B,un).call(this,this.name),this.disabled&&H(this,B,hn).call(this,!0),this.readonly&&H(this,B,dn).call(this,!0);const e=E(this,T).filter(t=>t.checked===!0);if(e.length>1&&(E(this,T).forEach(t=>{t.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),e.length===1){const t=e[0];this.value=t.value,Eo(this,R,E(this,T).indexOf(t))}},un=function(i){E(this,T)?.forEach(e=>e.name=i)},cn=function(i){const e=[];E(this,T).forEach((t,r)=>{t.value===i?(t.checked=!0,t.makeFocusable(),Eo(this,R,r)):(t.checked=!1,e.push(t))}),E(this,R)!==null&&e.forEach(t=>t.makeUnfocusable())},hn=function(i){E(this,T)?.forEach(e=>e.disabled=i)},dn=function(i){E(this,T)?.forEach(e=>e.readonly=i)},ut=function(i=1,e=!0){if(!E(this,T)||E(this,T).length===0)return null;const t=E(this,T).length;let r=E(this,R)??0;for(let o=0;o<t+1;o++){if(!e||o>0){const s=E(this,T)[r];if(!s.disabled&&!s.readonly)return s}r=(r+i+t)%t}return null},Fa=function(){this.value=H(this,B,ut).call(this,-1)?.value??"",E(this,T)[E(this,R)??0]?.focus(),H(this,B,Ei).call(this)},Ga=function(){this.value=H(this,B,ut).call(this)?.value??"",E(this,T)[E(this,R)??0]?.focus(),H(this,B,Ei).call(this)},Ei=function(){this.pristine=!1,this.dispatchEvent(new $o($o.CHANGE))},n.UUIRadioGroupElement.formAssociated=!0,n.UUIRadioGroupElement.styles=[v`:host{display:inline-block;padding-right:3px;border:1px solid transparent;border-radius:var(--uui-border-radius,3px)}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],rn([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"disabled",2),rn([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"readonly",2),n.UUIRadioGroupElement=rn([g("uui-radio-group")],n.UUIRadioGroupElement);let _e=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};_e.INPUT="input",_e.CHANGE="change";var Rp=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Wa=i=>{throw TypeError(i)},V=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rp(e,t,o),o},qa=(i,e,t)=>e.has(i)||Wa("Cannot "+t),Gp=(i,e,t)=>(qa(i,e,"read from private field"),t?t.call(i):e.get(i)),Ka=(i,e,t)=>e.has(i)?Wa("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Yt=(i,e,t)=>(qa(i,e,"access private method"),t),We,ct,pn;const mn={TOP:3,CENTER:2},Ii=18,Zt=3,ze=12,Wp=24,bn=i=>{const e=i.toString().indexOf(".");return e>=0?i.toString().length-e-1:0};n.UUIRangeSliderElement=class extends ve(f,""){constructor(){super(),Ka(this,We),this.disabled=!1,this.readonly=!1,this._min=0,this._max=0,this.hideStepValues=!1,this._step=1,this._movement=!1,this.startPoint={mouse:0,low:0,high:0},this._lowInputValue=0,this._highInputValue=0,this._trackWidth=0,this._lowValuePercentStart=0,this._highValuePercentEnd=100,Ka(this,pn,e=>{e.key=="Enter"&&this.submit()}),this._onTouchStart=e=>{if(this.disabled)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchcancel",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove),this._movement=!0,this._saveStartPoints(e.touches[0].pageX);else{const r=this._getClickedValue(e.touches[0].pageX),o=Math.abs(this._lowInputValue-r),s=Math.abs(this._highInputValue-r);o<s?this.setValueLow(r):this.setValueHigh(r)}},this._onTouchMove=e=>{this._dragBothValuesByMousePos(e.touches[0].pageX)},this._onTouchEnd=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchcancel",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this._onMouseDown=e=>{if(this.disabled||this.readonly)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove),this._movement=!0,this._saveStartPoints(e.pageX);else{const r=this._getClickedValue(e.pageX),o=Math.abs(this._lowInputValue-r),s=Math.abs(this._highInputValue-r);o<s?this.setValueLow(r):this.setValueHigh(r)}},this._onMouseMove=e=>{e.preventDefault(),this._dragBothValuesByMousePos(e.pageX)},this._onMouseUp=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this.addEventListener("keydown",Gp(this,pn)),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),window.addEventListener("resize",()=>{this._trackWidth=this._outerTrack?.offsetWidth})}get min(){return this._min}set min(e){this._min=e,Yt(this,We,ct).call(this)}get max(){return this._max}set max(e){this._max=e,Yt(this,We,ct).call(this)}get step(){return this._step}set step(e){this._step=e,Yt(this,We,ct).call(this)}get minGap(){return this._minGap}set minGap(e){this._minGap=e,Yt(this,We,ct).call(this)}get maxGap(){return this._maxGap}set maxGap(e){this._maxGap=e,Yt(this,We,ct).call(this)}get value(){return super.value}set value(e){super.value=e,Yt(this,We,ct).call(this)}setValueLow(e){e=O(e,this.maxGap?this._highInputValue-this.maxGap>this.min?this._highInputValue-this.maxGap:this.min:this.min,this.minGap?this._highInputValue-this.minGap:this._highInputValue-this.step),this.setValue(e,this._highInputValue)}setValueHigh(e){e=O(e,this.minGap?this._lowInputValue+this.minGap:this._lowInputValue+this.step,this.maxGap?this.maxGap+this._lowInputValue<this.max?this.maxGap+this._lowInputValue:this.max:this.max),this.setValue(this._lowInputValue,e)}setValue(e,t,r){if(r){const o=this.startPoint.high-this.startPoint.low;e=O(e,this.min,this.max-o),t=O(t,this.min+o,this.max)}this._inputLow.value=e.toString(),this._inputHigh.value=t.toString(),this.value=`${e},${t}`}getFormElement(){return this._currentFocus?this._currentFocus:this._inputLow}async focus(){await this.updateComplete,this.getFormElement().focus()}async blur(){await this.updateComplete,this.getFormElement().blur()}connectedCallback(){super.connectedCallback(),this.value||(this.value=`${this._min},${this._max}`)}firstUpdated(e){super.updated(e),this._trackWidth=this._outerTrack.offsetWidth,this._runPropertiesChecks()}_runPropertiesChecks(){if(new RegExp(/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/).test(this.value)||console.error("Range slider (Value error occurred): Bad input"),this._highInputValue===this._lowInputValue&&console.error("Range slider (Value error occurred): Low-end and high-end value should never be equal. Use <uui-slider></uui-slider> instead."),this._lowInputValue>this._highInputValue&&console.error("Range slider (Value error occurred): Low-end value should never be higher than high-end value."),(this._highInputValue>this._max||this._highInputValue<this._min)&&(this.setValueHigh(this._max),console.warn(`Conflict with the high-end value and max value. High-end value has been converted to the max value (${this._max})`)),(this._lowInputValue<this._min||this._lowInputValue>this._max)&&(this.setValueLow(this._min),console.warn(`Conflict with the low-end value and min value. Low-end value has been converted to the min value (${this._min})`)),this._step<=0&&(this._step=1,console.warn("Property step needs a value higher than 0. Converted the step value to 1 (default)")),(this._max-this._min)/this._step%1!==0&&console.error("Conflict with step value and the min and max values. May experience bad side effects"),this._minGap&&this._minGap<this._step&&(this._minGap=void 0,console.warn("Conflict with min-gap and step value. The min-gap needs to be higher than the step value. Removed the min-gap property.")),this._minGap&&this._maxGap&&this._minGap>this._maxGap&&(this._minGap=void 0,this._maxGap=void 0,console.warn("Conflict with min-gap and max-gap. Removed the min-gap and max-gap properties.")),this._minGap&&this._max-this._min<this._minGap&&(this._minGap=void 0,console.warn("Conflict with the min-gap and the total range. Removed the min-gap.")),this._maxGap&&this._highInputValue-this._lowInputValue>this._maxGap&&(this.setValueHigh(this._lowInputValue+this._maxGap),console.warn(`Conflict with value and max-gap. High-end value has been converted to the highest possible value based on the low-end value and the max gap value (${this._highInputValue})`)),this._minGap&&this._highInputValue-this._lowInputValue<this._minGap){const e=this._minGap;this._highInputValue-e<this._min?(this.setValueHigh(this._lowInputValue+e),console.warn(`Conflict with value and min gap. High-end value has been converted to the lowest possible value based on the low-end value and the min gap value (${this._highInputValue}).`)):(this.setValueLow(this._highInputValue-e),console.warn(`Conflict with value and min gap. Low-end value has been converted to the highest possible value based on the high-end value and the min gap value (${this._lowInputValue}).`))}}_updateInnerColor(){const e=this._max-this._min,t=this._lowInputValue-this._min,r=this._highInputValue-this._min,o=t/e*100,s=100-r/e*100;this._lowValuePercentStart=O(o,0,100),this._highValuePercentEnd=O(s,0,100)}_getClickedValue(e){const t=this._outerTrack.getBoundingClientRect().left,r=(e-t-ze)/(this._trackWidth-ze*2)*(this._max-this._min)+this._min;return Math.round(r/this._step)*this._step}_saveStartPoints(e){this.startPoint={mouse:e,low:this._lowInputValue,high:this._highInputValue}}_dragBothValuesByMousePos(e){const t=this._outerTrack.offsetWidth,r=e-this.startPoint.mouse,o=this._max-this._min,s=r/(t+ze*2),a=Math.round(s*o/this._step)*this._step,c=this.startPoint.low+a,h=this.startPoint.high+a;this.setValue(c,h,!0),this.dispatchEvent(new _e(_e.INPUT))}_onLowInput(e){this.disabled&&e.preventDefault(),this.readonly&&e.preventDefault(),this._currentFocus=this._inputLow;const t=Number(e.target.value);this.setValueLow(t),this.dispatchEvent(new _e(_e.INPUT))}_onHighInput(e){this.disabled&&e.preventDefault(),this.readonly&&e.preventDefault(),this._currentFocus=this._inputHigh;const t=Number(e.target.value);this.setValueHigh(t),this.dispatchEvent(new _e(_e.INPUT))}_onLowChange(){this.setValueLow(Number(this._inputLow.value)),this.onChanged()}_onHighChange(){this.setValueHigh(Number(this._inputHigh.value)),this.onChanged()}onChanged(){this.pristine=!1,this.dispatchEvent(new _e(_e.CHANGE))}render(){return u`
362
362
  <div id="range-slider">
363
363
  ${this._renderNativeInputs()}
364
364
  <div id="inner-track">
@@ -375,21 +375,21 @@
375
375
  `}_renderThumbValues(){return u`<div class="thumb-values">
376
376
  <span
377
377
  ><span
378
- >${this._lowInputValue.toFixed(hn(this._step))}</span
378
+ >${this._lowInputValue.toFixed(bn(this._step))}</span
379
379
  ></span
380
380
  >
381
381
  <span
382
382
  ><span
383
- >${this._highInputValue.toFixed(hn(this._step))}</span
383
+ >${this._highInputValue.toFixed(bn(this._step))}</span
384
384
  ></span
385
385
  >
386
- </div>`}_renderSteps(){const e=(this._max-this._min)/this._step,t=(this._trackWidth-ze*2)/e;if(t<Tp||e%1!==0)return;let r=0;const o=new Array(e+1).fill(t).map(s=>s*r++);return u`<div class="step-wrapper">
386
+ </div>`}_renderSteps(){const e=(this._max-this._min)/this._step,t=(this._trackWidth-ze*2)/e;if(t<Wp||e%1!==0)return;let r=0;const o=new Array(e+1).fill(t).map(s=>s*r++);return u`<div class="step-wrapper">
387
387
  <svg height="100%" width="100%">
388
388
  <rect x="9" y="9" height="${Zt}" rx="2" />
389
389
  ${this._renderStepCircles(o)}
390
390
  </svg>
391
391
  ${this._renderStepValues(e)}
392
- </div>`}_renderStepValues(e){if(this.hideStepValues||e>20)return;let t=0;const r=new Array(e+1).fill(this._step).map(o=>(this._min+o*t++).toFixed(hn(this._step)));return u`<div class="step-values">
392
+ </div>`}_renderStepValues(e){if(this.hideStepValues||e>20)return;let t=0;const r=new Array(e+1).fill(this._step).map(o=>(this._min+o*t++).toFixed(bn(this._step)));return u`<div class="step-values">
393
393
  ${r.map(o=>u`<span><span>${o}</span></span>`)}
394
394
  </div>`}_renderStepCircles(e){const t=this._trackWidth/(this._max-this._min);return y`${e.map(r=>{const o=r+ze,s=this._lowInputValue-this._min,a=this._highInputValue-this._min;return o/t>=s&&o/t<=a?y`<circle class="track-step filled" cx="${o}" cy="${Zt*2}" r="4.5" />`:y`<circle class="track-step regular" cx="${o}" cy="${Zt*2}" r="4.5" />`})}`}_renderNativeInputs(){return u` <div class="native-wrapper">
395
395
  <input
@@ -416,7 +416,7 @@
416
416
  ?disabled="${this.disabled||this.readonly}"
417
417
  @input=${this._onHighInput}
418
418
  @change=${this._onHighChange} />
419
- </div>`}},We=new WeakSet,ct=function(){const i=this.value.split(",");let e=Number(i[0])||0,t=Number(i[1])||0;t=O(t,this._min,this._max),e=this._min+Math.round((e-this._min)/this._step)*this._step,t=this._min+Math.round((t-this._min)/this._step)*this._step,this._lowInputValue=O(e,this._min,this._minGap?t-this._minGap:t-this._step),this._highInputValue=O(t,this._minGap?this._lowInputValue+this._minGap:this._lowInputValue+this._step,Math.min(this._maxGap?e+this._maxGap:this._max,this._max)),this._updateInnerColor(),this.requestUpdate()},un=new WeakMap,n.UUIRangeSliderElement.formAssociated=!0,n.UUIRangeSliderElement.styles=[m`
419
+ </div>`}},We=new WeakSet,ct=function(){const i=this.value.split(",");let e=Number(i[0])||0,t=Number(i[1])||0;t=O(t,this._min,this._max),e=this._min+Math.round((e-this._min)/this._step)*this._step,t=this._min+Math.round((t-this._min)/this._step)*this._step,this._lowInputValue=O(e,this._min,this._minGap?t-this._minGap:t-this._step),this._highInputValue=O(t,this._minGap?this._lowInputValue+this._minGap:this._lowInputValue+this._step,Math.min(this._maxGap?e+this._maxGap:this._max,this._max)),this._updateInnerColor(),this.requestUpdate()},pn=new WeakMap,n.UUIRangeSliderElement.formAssociated=!0,n.UUIRangeSliderElement.styles=[v`
420
420
  :host {
421
421
  --color-interactive: var(--uui-color-selected,#3544b1);
422
422
  --color-hover: var(--uui-color-selected-emphasis,rgb(70, 86, 200));
@@ -459,10 +459,10 @@
459
459
  display: flex;
460
460
  flex-direction: column;
461
461
  justify-content: center;
462
- height: ${$i}px;
462
+ height: ${Ii}px;
463
463
  cursor: grab;
464
464
  user-select: none;
465
- z-index: ${cn.CENTER};
465
+ z-index: ${mn.CENTER};
466
466
  }
467
467
 
468
468
  :host([disabled]) #inner-color-thumb,
@@ -633,9 +633,9 @@
633
633
  pointer-events: all;
634
634
  cursor: grab;
635
635
  position: relative;
636
- z-index: ${cn.TOP};
637
- width: ${$i}px;
638
- height: ${$i}px;
636
+ z-index: ${mn.TOP};
637
+ width: ${Ii}px;
638
+ height: ${Ii}px;
639
639
  border-radius: 24px;
640
640
  border: none;
641
641
  background-color: var(--color-interactive);
@@ -679,9 +679,9 @@
679
679
  pointer-events: all;
680
680
  cursor: grab;
681
681
  position: relative;
682
- z-index: ${cn.TOP};
683
- width: ${$i}px;
684
- height: ${$i}px;
682
+ z-index: ${mn.TOP};
683
+ width: ${Ii}px;
684
+ height: ${Ii}px;
685
685
  border-radius: 24px;
686
686
  border: none;
687
687
  background-color: var(--color-interactive);
@@ -716,7 +716,7 @@
716
716
  inset 0 0 0 2px var(--uui-palette-mine-grey,#3e3e3e),
717
717
  inset 0 0 0 4px var(--uui-color-surface,#fff);
718
718
  }
719
- `],V([l({type:String})],n.UUIRangeSliderElement.prototype,"label",2),V([l({type:Boolean,reflect:!0})],n.UUIRangeSliderElement.prototype,"disabled",2),V([l({type:Boolean,reflect:!0})],n.UUIRangeSliderElement.prototype,"readonly",2),V([l({type:Number})],n.UUIRangeSliderElement.prototype,"min",1),V([l({type:Number})],n.UUIRangeSliderElement.prototype,"max",1),V([l({type:Boolean,attribute:"hide-step-values"})],n.UUIRangeSliderElement.prototype,"hideStepValues",2),V([l({type:Number})],n.UUIRangeSliderElement.prototype,"step",1),V([l({type:Number,attribute:"min-gap"})],n.UUIRangeSliderElement.prototype,"minGap",1),V([l({type:Number,attribute:"max-gap"})],n.UUIRangeSliderElement.prototype,"maxGap",1),V([l({type:String})],n.UUIRangeSliderElement.prototype,"value",1),V([w()],n.UUIRangeSliderElement.prototype,"_movement",2),V([w()],n.UUIRangeSliderElement.prototype,"_lowInputValue",2),V([w()],n.UUIRangeSliderElement.prototype,"_highInputValue",2),V([w()],n.UUIRangeSliderElement.prototype,"_trackWidth",2),V([w()],n.UUIRangeSliderElement.prototype,"_lowValuePercentStart",2),V([w()],n.UUIRangeSliderElement.prototype,"_highValuePercentEnd",2),V([A("#range-slider")],n.UUIRangeSliderElement.prototype,"_outerTrack",2),V([A("#inputLow")],n.UUIRangeSliderElement.prototype,"_inputLow",2),V([A("#inputHigh")],n.UUIRangeSliderElement.prototype,"_inputHigh",2),V([A(".color")],n.UUIRangeSliderElement.prototype,"_innerColor",2),V([A("#inner-color-thumb")],n.UUIRangeSliderElement.prototype,"_innerColorThumb",2),n.UUIRangeSliderElement=V([b("uui-range-slider")],n.UUIRangeSliderElement);var Np=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIRefListElement=class extends v{render(){return u`<slot></slot>`}},n.UUIRefListElement.styles=[m`:host{display:block}::slotted(:not(:first-child)){margin-top:1px}::slotted(:not(:first-child))::before{content:'';position:absolute;top:-1px;left:0;right:0;border-top:1px solid var(--uui-color-border,#d8d7d9)}`],n.UUIRefListElement=Np([b("uui-ref-list")],n.UUIRefListElement);let Qt=class extends L{};Qt.OPEN="open";var Bp=Object.defineProperty,Dp=Object.getOwnPropertyDescriptor,Io=(i,e,t,r)=>{for(var o=r>1?void 0:r?Dp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Bp(e,t,o),o};n.UUIRefElement=class extends Bi(_t(v)){constructor(){super(...arguments),this.disabled=!1,this.readonly=!1,this.error=!1}handleOpenClick(e){e.stopPropagation(),this.dispatchEvent(new Qt(Qt.OPEN))}handleOpenKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new Qt(Qt.OPEN)))}},n.UUIRefElement.styles=[m`:host{position:relative;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);--uui-card-before-opacity:0;transition:--uui-card-before-opacity 120ms}:host([selectable]:focus-visible){outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width)}:host([error]){border:2px solid var(--uui-color-danger,#d42054);box-shadow:0 0 4px 0 var(--uui-color-danger,#d42054),inset 0 0 2px 0 var(--uui-color-danger,#d42054)}:host([standalone]){border:1px solid var(--uui-color-border,#d8d7d9)}:host([selectable]){cursor:pointer}:host([selectable]) #select-border{position:absolute;z-index:2;top:-2px;left:-2px;right:-2px;bottom:-2px;pointer-events:none;opacity:0;transition:opacity 120ms}:host([selectable]) #select-border::after{content:'';position:absolute;width:100%;height:100%;box-sizing:border-box;border:2px solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + 2px);box-shadow:0 0 4px 0 var(--uui-color-selected,#3544b1),inset 0 0 2px 0 var(--uui-color-selected,#3544b1)}:host([selected]) #select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border{opacity:.33}:host([selectable][selected]:hover) #select-border{opacity:.8}:host([selectable]:not([selected])) #open-part:hover+#select-border{opacity:0}:host([selectable][selected]) #open-part:hover+#select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border::after{animation:not-selected--hover 1.2s infinite}@keyframes not-selected--hover{0%,100%{opacity:.66}50%{opacity:1}}:host([selectable][selected]:hover) #select-border::after{animation:selected--hover 1.4s infinite}@keyframes selected--hover{0%,100%{opacity:1}50%{opacity:.66}}:host([selectable]) #open-part:hover+#select-border::after{animation:none}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}button{font-size:inherit;font-family:inherit;border:0;padding:0;background-color:transparent;text-align:left;color:var(--uui-color-text,#060606)}a{text-decoration:none;color:inherit}a:focus,button:focus{outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width);border-radius:var(--uui-border-radius,3px)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-2,6px) * 4);margin-right:var(--uui-size-2,6px)}#tag-container{margin:calc(var(--uui-size-2,6px))}#actions-container{margin:calc(var(--uui-size-2,6px));opacity:0;transition:opacity 120ms}:host(:focus) #actions-container,:host(:focus-within) #actions-container,:host(:hover) #actions-container{opacity:1}:host([standalone]:not([disabled]):hover){border-color:var(--uui-color-border-emphasis,#a1a1a1)}:host([disabled]) #open-part{cursor:default}:host([standalone][disabled]){border-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=tag]{display:flex;justify-content:flex-end;align-items:center}`],Io([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"disabled",2),Io([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"readonly",2),Io([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"error",2),n.UUIRefElement=Io([b("uui-ref")],n.UUIRefElement);var Vp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Da=i=>{throw TypeError(i)},ht=(i,e,t,r)=>{for(var o=r>1?void 0:r?jp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vp(e,t,o),o},Hp=(i,e,t)=>e.has(i)||Da("Cannot "+t),Rp=(i,e,t)=>e.has(i)?Da("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),qe=(i,e,t)=>(Hp(i,e,"access private method"),t),Ue,Va,ja,xo,Ha,Ra,Fa;n.UUIRefNodeElement=class extends n.UUIRefElement{constructor(){super(...arguments),Rp(this,Ue),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon=`<svg
719
+ `],V([l({type:String})],n.UUIRangeSliderElement.prototype,"label",2),V([l({type:Boolean,reflect:!0})],n.UUIRangeSliderElement.prototype,"disabled",2),V([l({type:Boolean,reflect:!0})],n.UUIRangeSliderElement.prototype,"readonly",2),V([l({type:Number})],n.UUIRangeSliderElement.prototype,"min",1),V([l({type:Number})],n.UUIRangeSliderElement.prototype,"max",1),V([l({type:Boolean,attribute:"hide-step-values"})],n.UUIRangeSliderElement.prototype,"hideStepValues",2),V([l({type:Number})],n.UUIRangeSliderElement.prototype,"step",1),V([l({type:Number,attribute:"min-gap"})],n.UUIRangeSliderElement.prototype,"minGap",1),V([l({type:Number,attribute:"max-gap"})],n.UUIRangeSliderElement.prototype,"maxGap",1),V([l({type:String})],n.UUIRangeSliderElement.prototype,"value",1),V([w()],n.UUIRangeSliderElement.prototype,"_movement",2),V([w()],n.UUIRangeSliderElement.prototype,"_lowInputValue",2),V([w()],n.UUIRangeSliderElement.prototype,"_highInputValue",2),V([w()],n.UUIRangeSliderElement.prototype,"_trackWidth",2),V([w()],n.UUIRangeSliderElement.prototype,"_lowValuePercentStart",2),V([w()],n.UUIRangeSliderElement.prototype,"_highValuePercentEnd",2),V([A("#range-slider")],n.UUIRangeSliderElement.prototype,"_outerTrack",2),V([A("#inputLow")],n.UUIRangeSliderElement.prototype,"_inputLow",2),V([A("#inputHigh")],n.UUIRangeSliderElement.prototype,"_inputHigh",2),V([A(".color")],n.UUIRangeSliderElement.prototype,"_innerColor",2),V([A("#inner-color-thumb")],n.UUIRangeSliderElement.prototype,"_innerColorThumb",2),n.UUIRangeSliderElement=V([g("uui-range-slider")],n.UUIRangeSliderElement);var qp=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIRefListElement=class extends f{render(){return u`<slot></slot>`}},n.UUIRefListElement.styles=[v`:host{display:block}::slotted(:not(:first-child)){margin-top:1px}::slotted(:not(:first-child))::before{content:'';position:absolute;top:-1px;left:0;right:0;border-top:1px solid var(--uui-color-border,#d8d7d9)}`],n.UUIRefListElement=qp([g("uui-ref-list")],n.UUIRefListElement);let Qt=class extends L{};Qt.OPEN="open";var Kp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,Co=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Kp(e,t,o),o};n.UUIRefElement=class extends Vi(_t(f)){constructor(){super(...arguments),this.disabled=!1,this.readonly=!1,this.error=!1}handleOpenClick(e){e.stopPropagation(),this.dispatchEvent(new Qt(Qt.OPEN))}handleOpenKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new Qt(Qt.OPEN)))}},n.UUIRefElement.styles=[v`:host{position:relative;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);--uui-card-before-opacity:0;transition:--uui-card-before-opacity 120ms}:host([selectable]:focus-visible){outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width)}:host([error]){border:2px solid var(--uui-color-danger,#d42054);box-shadow:0 0 4px 0 var(--uui-color-danger,#d42054),inset 0 0 2px 0 var(--uui-color-danger,#d42054)}:host([standalone]){border:1px solid var(--uui-color-border,#d8d7d9)}:host([selectable]){cursor:pointer}:host([selectable]) #select-border{position:absolute;z-index:2;top:-2px;left:-2px;right:-2px;bottom:-2px;pointer-events:none;opacity:0;transition:opacity 120ms}:host([selectable]) #select-border::after{content:'';position:absolute;width:100%;height:100%;box-sizing:border-box;border:2px solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + 2px);box-shadow:0 0 4px 0 var(--uui-color-selected,#3544b1),inset 0 0 2px 0 var(--uui-color-selected,#3544b1)}:host([selected]) #select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border{opacity:.33}:host([selectable][selected]:hover) #select-border{opacity:.8}:host([selectable]:not([selected])) #open-part:hover+#select-border{opacity:0}:host([selectable][selected]) #open-part:hover+#select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border::after{animation:not-selected--hover 1.2s infinite}@keyframes not-selected--hover{0%,100%{opacity:.66}50%{opacity:1}}:host([selectable][selected]:hover) #select-border::after{animation:selected--hover 1.4s infinite}@keyframes selected--hover{0%,100%{opacity:1}50%{opacity:.66}}:host([selectable]) #open-part:hover+#select-border::after{animation:none}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}button{font-size:inherit;font-family:inherit;border:0;padding:0;background-color:transparent;text-align:left;color:var(--uui-color-text,#060606)}a{text-decoration:none;color:inherit}a:focus,button:focus{outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width);border-radius:var(--uui-border-radius,3px)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-2,6px) * 4);margin-right:var(--uui-size-2,6px)}#tag-container{margin:calc(var(--uui-size-2,6px))}#actions-container{margin:calc(var(--uui-size-2,6px));opacity:0;transition:opacity 120ms}:host(:focus) #actions-container,:host(:focus-within) #actions-container,:host(:hover) #actions-container{opacity:1}:host([standalone]:not([disabled]):hover){border-color:var(--uui-color-border-emphasis,#a1a1a1)}:host([disabled]) #open-part{cursor:default}:host([standalone][disabled]){border-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=tag]{display:flex;justify-content:flex-end;align-items:center}`],Co([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"disabled",2),Co([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"readonly",2),Co([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"error",2),n.UUIRefElement=Co([g("uui-ref")],n.UUIRefElement);var Yp=Object.defineProperty,Zp=Object.getOwnPropertyDescriptor,Xa=i=>{throw TypeError(i)},ht=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yp(e,t,o),o},Qp=(i,e,t)=>e.has(i)||Xa("Cannot "+t),Jp=(i,e,t)=>e.has(i)?Xa("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),qe=(i,e,t)=>(Qp(i,e,"access private method"),t),Ue,Ya,Za,So,Qa,Ja,el;n.UUIRefNodeElement=class extends n.UUIRefElement{constructor(){super(...arguments),Jp(this,Ue),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon=`<svg
720
720
  xmlns="http://www.w3.org/2000/svg"
721
721
  viewBox="0 0 24 24"
722
722
  fill="none"
@@ -727,7 +727,7 @@
727
727
  id="icon">
728
728
  <path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
729
729
  <path d="M14 2v4a2 2 0 0 0 2 2h4" />
730
- </svg>`}connectedCallback(){super.connectedCallback(),$(this,"uui-icon")}renderDetail(){return u`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}render(){return u`${qe(this,Ue,Fa).call(this)}<div id="select-border"></div><slot></slot><slot name="tag" id="tag-container"></slot><slot name="actions" id="actions-container"></slot>`}},Ue=new WeakSet,Va=function(i){this._iconSlotHasContent=i.target.assignedNodes({flatten:!0}).length>0},ja=function(){return u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`},xo=function(){return u`<span id="content"><span id="icon"><slot name="icon" @slotchange="${qe(this,Ue,Va)}"></slot>${this._iconSlotHasContent===!1?qe(this,Ue,ja).call(this):""}</span><div id="info"><div id="name">${this.name}<slot name="name"></slot></div>${this.renderDetail()}</div></span>`},Ha=function(){return u`<a id="open-part" tabindex="${this.disabled?I:"0"}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}">${qe(this,Ue,xo).call(this)}</a>`},Ra=function(){return u`<button type="button" id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}" ?disabled="${this.disabled}">${qe(this,Ue,xo).call(this)}</button>`},Fa=function(){return this.readonly?u`${qe(this,Ue,xo).call(this)}`:this.href?qe(this,Ue,Ha).call(this):qe(this,Ue,Ra).call(this)},n.UUIRefNodeElement.styles=[...n.UUIRefElement.styles,m`:host{min-width:250px;padding:1px}#content{align-self:stretch;line-height:normal;display:flex;position:relative;align-items:center}#open-part{color:inherit;text-decoration:none;cursor:pointer;align-self:stretch;display:flex;flex-grow:1;padding:calc(var(--uui-size-2,6px))}#icon{font-size:1.2em;margin-left:var(--uui-size-2,6px);margin-right:var(--uui-size-1,3px)}#info{display:flex;flex-direction:column;align-items:start;justify-content:center;height:100%;padding-left:var(--uui-size-2,6px)}#name{font-weight:700}#detail{font-size:var(--uui-type-small-size,12px)}:host([selectable]) #open-part{flex-grow:0;padding:0;margin:calc(var(--uui-size-2,6px))}:host(:not([disabled])) #open-part:hover #icon{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #name{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #detail{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]) #icon{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #name{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #detail{color:var(--uui-color-disabled-contrast,#c4c4c4)}`],ht([l({type:String})],n.UUIRefNodeElement.prototype,"name",2),ht([l({type:String})],n.UUIRefNodeElement.prototype,"detail",2),ht([l({type:String})],n.UUIRefNodeElement.prototype,"href",2),ht([l({type:String})],n.UUIRefNodeElement.prototype,"target",2),ht([l({type:String})],n.UUIRefNodeElement.prototype,"rel",2),ht([w()],n.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),n.UUIRefNodeElement=ht([b("uui-ref-node")],n.UUIRefNodeElement);var Fp=Object.defineProperty,Gp=Object.getOwnPropertyDescriptor,Ga=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fp(e,t,o),o};n.UUIRefNodeDataTypeElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M142.212 397.267l106.052-48.024L398.479 199.03l-26.405-26.442-90.519 90.517-15.843-15.891 90.484-90.486-16.204-16.217-150.246 150.243-47.534 106.513zm74.904-100.739l23.285-23.283 3.353 22.221 22.008 3.124-23.283 23.313-46.176 20.991 20.813-46.366zm257.6-173.71L416.188 64.3l-49.755 49.785 58.504 58.503 49.779-49.77zM357.357 300.227h82.826v116.445H68.929V300.227h88.719v-30.648H38.288v177.733h432.537V269.578H357.357v30.649z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDataTypeElement.styles=[...n.UUIRefNodeElement.styles],Ga([l({type:String})],n.UUIRefNodeDataTypeElement.prototype,"alias",2),n.UUIRefNodeDataTypeElement=Ga([b("uui-ref-node-data-type")],n.UUIRefNodeDataTypeElement);var Wp=Object.defineProperty,qp=Object.getOwnPropertyDescriptor,Wa=(i,e,t,r)=>{for(var o=r>1?void 0:r?qp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wp(e,t,o),o};n.UUIRefNodeDocumentTypeElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M49.035 60.434h413.93v33.592H49.035zm0 82.005h86.578v86.577H49.035zm163.677 0h86.576v86.577h-86.576zm163.676 0h86.576v86.577h-86.576zM49.035 282.984h413.93v33.593H49.035zm0 82.006h86.578v86.576H49.035zm163.677 0h86.576v86.576h-86.576zm163.676 0h86.576v86.576h-86.576z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDocumentTypeElement.styles=[...n.UUIRefNodeElement.styles],Wa([l({type:String})],n.UUIRefNodeDocumentTypeElement.prototype,"alias",2),n.UUIRefNodeDocumentTypeElement=Wa([b("uui-ref-node-document-type")],n.UUIRefNodeDocumentTypeElement);var Kp=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIRefNodeFormElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M444.72 215.28H67.28c-11.04 0-20-8.96-20-20V64.896c0-11.04 8.96-20 20-20h377.44c11.04 0 20 8.96 20 20V195.28c0 11.056-8.96 20-20 20zm-357.44-40h337.44V84.896H87.28v90.384zm185.504 215.696c0-6.848.704-13.504 1.936-20H87.28v-90.384h337.44v12.496a108.098 108.098 0 0140 31.36v-63.856c0-11.04-8.96-20-20-20H67.28c-11.04 0-20 8.96-20 20v130.384c0 11.04 8.96 20 20 20h207.44c-1.232-6.496-1.936-13.152-1.936-20zm107.552-76.128c-41.968 0-76.112 34.16-76.112 76.128s34.144 76.128 76.112 76.128 76.128-34.16 76.128-76.128-34.144-76.128-76.128-76.128zm46.016 80.464a7.293 7.293 0 01-7.296 7.296h-27.072v27.088a7.293 7.293 0 01-7.296 7.296H376a7.293 7.293 0 01-7.296-7.296v-27.088h-27.072a7.293 7.293 0 01-7.296-7.296v-8.672a7.293 7.293 0 017.296-7.296h27.072v-27.088A7.293 7.293 0 01376 344.96h8.688a7.293 7.293 0 017.296 7.296v27.088h27.072a7.293 7.293 0 017.296 7.296v8.672z"></path></svg>'}},n.UUIRefNodeFormElement.styles=[...n.UUIRefNodeElement.styles],n.UUIRefNodeFormElement=Kp([b("uui-ref-node-form")],n.UUIRefNodeFormElement);var Xp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,qa=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Xp(e,t,o),o};n.UUIRefNodeMemberElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeMemberElement.styles=[...n.UUIRefNodeElement.styles],qa([l({type:String,attribute:"group-name"})],n.UUIRefNodeMemberElement.prototype,"groupName",2),n.UUIRefNodeMemberElement=qa([b("uui-ref-node-member")],n.UUIRefNodeMemberElement);var Zp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,dn=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zp(e,t,o),o};n.UUIRefNodePackageElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M161.08 106.29l-70.073 40.452 165.498 95.545 70.076-40.453L161.08 106.29zm259.851 41.077L255.435 51.815l-63.578 36.709 165.499 95.542 63.575-36.699zm-150.11 122.19V459.43l164.966-95.238V174.32l-164.966 95.237zM75.082 364.191l164.959 95.234V268.32L75.082 173.09v191.101z"></path></svg>',this.version="",this.author=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.version!==""&&e.push(this.version),this.author!==""&&e.push(this.author),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodePackageElement.styles=[...n.UUIRefNodeElement.styles],dn([l({type:String})],n.UUIRefNodePackageElement.prototype,"version",2),dn([l({type:String})],n.UUIRefNodePackageElement.prototype,"author",2),n.UUIRefNodePackageElement=dn([b("uui-ref-node-package")],n.UUIRefNodePackageElement);var Jp=Object.defineProperty,em=Object.getOwnPropertyDescriptor,Ka=(i,e,t,r)=>{for(var o=r>1?void 0:r?em(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Jp(e,t,o),o};n.UUIRefNodeUserElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeUserElement.styles=[...n.UUIRefNodeElement.styles],Ka([l({type:String,attribute:"group-name"})],n.UUIRefNodeUserElement.prototype,"groupName",2),n.UUIRefNodeUserElement=Ka([b("uui-ref-node-user")],n.UUIRefNodeUserElement);var tm=Object.defineProperty,im=Object.getOwnPropertyDescriptor,Xa=(i,e,t,r)=>{for(var o=r>1?void 0:r?im(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tm(e,t,o),o};n.UUIScrollContainerElement=class extends v{constructor(){super(...arguments),this.enforceScroll=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}render(){return u`<slot></slot>`}},n.UUIScrollContainerElement.styles=[m`:host{display:block;scrollbar-width:thin;scrollbar-color:var(--uui-color-disabled-contrast,#c4c4c4) var(--uui-color-surface,#fff);overflow-y:auto}:host([enforce-scroll]){overflow-y:scroll}:host::-webkit-scrollbar{width:6px;height:6px}:host::-webkit-scrollbar-track{background:var(--uui-color-surface,#fff);border-radius:3px}:host::-webkit-scrollbar-thumb{background-color:var(--uui-color-disabled-contrast,#c4c4c4);border-radius:3px}`],Xa([l({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],n.UUIScrollContainerElement.prototype,"enforceScroll",2),n.UUIScrollContainerElement=Xa([b("uui-scroll-container")],n.UUIScrollContainerElement);let Co=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Co.CHANGE="change";var om=Object.defineProperty,rm=Object.getOwnPropertyDescriptor,me=(i,e,t,r)=>{for(var o=r>1?void 0:r?rm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&om(e,t,o),o};n.UUISelectElement=class extends ge(v,""){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.error=!1,this.options=[],this._groups=[],this.disabledGroups="",this._disabledGroups=[],this._values=[],this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}async focus(){await this.updateComplete,this._input.focus()}async blur(){await this.updateComplete,this._input.blur()}async click(){await this.updateComplete,this._input.click()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}_createDisabledGroups(){this.disabledGroups.length!==0&&(this._disabledGroups=this.disabledGroups.split(","))}_extractGroups(){this.options.length!==0&&(this._groups=Array.from(new Set(this.options.filter(e=>e.group).map(e=>e.group))))}willUpdate(e){if(e.has("options")){this._extractGroups(),this._values=this.options.map(r=>r.value);const t=this.options.find(r=>r.selected);this.value=t?t.value:""}e.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),e.has("disabledGroups")&&this._createDisabledGroups()}setValue(e){e.stopPropagation();const t=e.target;e.target&&(this.value=t.value),this.dispatchEvent(new Co(Co.CHANGE,{bubbles:!0,composed:!1}))}_renderOption(e,t,r,o){return u`<option value="${t}" ?selected="${r}" ?disabled="${o}">${e}</option>`}_renderGrouped(){return this._groups.length===0?I:u`${this._groups.map(e=>u`<optgroup label="${e}" ?disabled="${this._disabledGroups.some(t=>t.toLowerCase()===e.toLowerCase())}">${this.options.map(t=>t.group===e?this._renderOption(t.name,t.value,t.selected,t.disabled):"")}</optgroup>`)}`}_getDisplayValue(){return this.options.find(e=>e.value===this.value)?.name||this.value}render(){return this.readonly?u`<span>${this._getDisplayValue()}</span>`:u`<select id="native" aria-label="${this.label}" @change="${this.setValue}" ?disabled="${this.disabled}" .name="${this.name}" .value="${this.value}"><option disabled="disabled" selected="selected" value="" hidden>${this.placeholder}</option>${this._renderGrouped()} ${this.options.filter(e=>!e.group).map(e=>this._renderOption(e.name,e.value,e.selected,e.disabled))}</select>`}},n.UUISelectElement.styles=[m`:host{display:inline-block;position:relative;font-family:inherit}#native{display:inline-block;font-family:inherit;font-size:var(--uui-select-font-size,var(--uui-size-5,15px));height:var(--uui-select-height,var(--uui-size-11,33px));padding:var(--uui-select-padding-y,var(--uui-size-1,3px)) var(--uui-select-padding-x,var(--uui-size-2,6px));color:var(--uui-select-text-color,var(--uui-color-text,#060606));box-sizing:border-box;border-radius:0;border:1px solid var(--uui-select-border-color,var(--uui-color-border,#d8d7d9));transition:all 150ms ease;width:100%;background-color:var(--uui-select-background-color,var(--uui-color-surface,#fff))}#native:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-select-outline-color,var(--uui-color-focus,#3879ff))}#native[disabled]{cursor:not-allowed;background-color:var(--uui-select-disabled-background-color,var(--uui-color-disabled,#f3f3f5))}#native:hover{border:1px solid var(--uui-select-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1))}option:checked{background:var(--uui-select-selected-option-background-color,var(--uui-color-selected,#3544b1));color:var(--uui-select-selected-option-color,var(--uui-color-selected-contrast,#fff))}#caret{position:absolute;right:12px;top:50%;transform:translateY(-50%)}:host([error]) #native{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([error]) #native[disabled]{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],me([l({type:String})],n.UUISelectElement.prototype,"label",2),me([l()],n.UUISelectElement.prototype,"placeholder",2),me([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"disabled",2),me([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"readonly",2),me([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"error",2),me([l({type:Array,attribute:!1})],n.UUISelectElement.prototype,"options",2),me([w()],n.UUISelectElement.prototype,"_groups",2),me([l()],n.UUISelectElement.prototype,"disabledGroups",2),me([w()],n.UUISelectElement.prototype,"_disabledGroups",2),me([A("#native")],n.UUISelectElement.prototype,"_input",2),n.UUISelectElement=me([b("uui-select")],n.UUISelectElement);const nm=m`
730
+ </svg>`}connectedCallback(){super.connectedCallback(),$(this,"uui-icon")}renderDetail(){return u`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}render(){return u`${qe(this,Ue,el).call(this)}<div id="select-border"></div><slot></slot><slot name="tag" id="tag-container"></slot><slot name="actions" id="actions-container"></slot>`}},Ue=new WeakSet,Ya=function(i){this._iconSlotHasContent=i.target.assignedNodes({flatten:!0}).length>0},Za=function(){return u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`},So=function(){return u`<span id="content"><span id="icon"><slot name="icon" @slotchange="${qe(this,Ue,Ya)}"></slot>${this._iconSlotHasContent===!1?qe(this,Ue,Za).call(this):""}</span><div id="info"><div id="name">${this.name}<slot name="name"></slot></div>${this.renderDetail()}</div></span>`},Qa=function(){return u`<a id="open-part" tabindex="${this.disabled?I:"0"}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}">${qe(this,Ue,So).call(this)}</a>`},Ja=function(){return u`<button type="button" id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}" ?disabled="${this.disabled}">${qe(this,Ue,So).call(this)}</button>`},el=function(){return this.readonly?u`${qe(this,Ue,So).call(this)}`:this.href?qe(this,Ue,Qa).call(this):qe(this,Ue,Ja).call(this)},n.UUIRefNodeElement.styles=[...n.UUIRefElement.styles,v`:host{min-width:250px;padding:1px}#content{align-self:stretch;line-height:normal;display:flex;position:relative;align-items:center}#open-part{color:inherit;text-decoration:none;cursor:pointer;align-self:stretch;display:flex;flex-grow:1;padding:calc(var(--uui-size-2,6px))}#icon{font-size:1.2em;margin-left:var(--uui-size-2,6px);margin-right:var(--uui-size-1,3px)}#info{display:flex;flex-direction:column;align-items:start;justify-content:center;height:100%;padding-left:var(--uui-size-2,6px)}#name{font-weight:700}#detail{font-size:var(--uui-type-small-size,12px)}:host([selectable]) #open-part{flex-grow:0;padding:0;margin:calc(var(--uui-size-2,6px))}:host(:not([disabled])) #open-part:hover #icon{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #name{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #detail{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]) #icon{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #name{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #detail{color:var(--uui-color-disabled-contrast,#c4c4c4)}`],ht([l({type:String})],n.UUIRefNodeElement.prototype,"name",2),ht([l({type:String})],n.UUIRefNodeElement.prototype,"detail",2),ht([l({type:String})],n.UUIRefNodeElement.prototype,"href",2),ht([l({type:String})],n.UUIRefNodeElement.prototype,"target",2),ht([l({type:String})],n.UUIRefNodeElement.prototype,"rel",2),ht([w()],n.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),n.UUIRefNodeElement=ht([g("uui-ref-node")],n.UUIRefNodeElement);var em=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,tl=(i,e,t,r)=>{for(var o=r>1?void 0:r?tm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&em(e,t,o),o};n.UUIRefNodeDataTypeElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M142.212 397.267l106.052-48.024L398.479 199.03l-26.405-26.442-90.519 90.517-15.843-15.891 90.484-90.486-16.204-16.217-150.246 150.243-47.534 106.513zm74.904-100.739l23.285-23.283 3.353 22.221 22.008 3.124-23.283 23.313-46.176 20.991 20.813-46.366zm257.6-173.71L416.188 64.3l-49.755 49.785 58.504 58.503 49.779-49.77zM357.357 300.227h82.826v116.445H68.929V300.227h88.719v-30.648H38.288v177.733h432.537V269.578H357.357v30.649z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDataTypeElement.styles=[...n.UUIRefNodeElement.styles],tl([l({type:String})],n.UUIRefNodeDataTypeElement.prototype,"alias",2),n.UUIRefNodeDataTypeElement=tl([g("uui-ref-node-data-type")],n.UUIRefNodeDataTypeElement);var im=Object.defineProperty,om=Object.getOwnPropertyDescriptor,il=(i,e,t,r)=>{for(var o=r>1?void 0:r?om(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&im(e,t,o),o};n.UUIRefNodeDocumentTypeElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M49.035 60.434h413.93v33.592H49.035zm0 82.005h86.578v86.577H49.035zm163.677 0h86.576v86.577h-86.576zm163.676 0h86.576v86.577h-86.576zM49.035 282.984h413.93v33.593H49.035zm0 82.006h86.578v86.576H49.035zm163.677 0h86.576v86.576h-86.576zm163.676 0h86.576v86.576h-86.576z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDocumentTypeElement.styles=[...n.UUIRefNodeElement.styles],il([l({type:String})],n.UUIRefNodeDocumentTypeElement.prototype,"alias",2),n.UUIRefNodeDocumentTypeElement=il([g("uui-ref-node-document-type")],n.UUIRefNodeDocumentTypeElement);var rm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIRefNodeFormElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M444.72 215.28H67.28c-11.04 0-20-8.96-20-20V64.896c0-11.04 8.96-20 20-20h377.44c11.04 0 20 8.96 20 20V195.28c0 11.056-8.96 20-20 20zm-357.44-40h337.44V84.896H87.28v90.384zm185.504 215.696c0-6.848.704-13.504 1.936-20H87.28v-90.384h337.44v12.496a108.098 108.098 0 0140 31.36v-63.856c0-11.04-8.96-20-20-20H67.28c-11.04 0-20 8.96-20 20v130.384c0 11.04 8.96 20 20 20h207.44c-1.232-6.496-1.936-13.152-1.936-20zm107.552-76.128c-41.968 0-76.112 34.16-76.112 76.128s34.144 76.128 76.112 76.128 76.128-34.16 76.128-76.128-34.144-76.128-76.128-76.128zm46.016 80.464a7.293 7.293 0 01-7.296 7.296h-27.072v27.088a7.293 7.293 0 01-7.296 7.296H376a7.293 7.293 0 01-7.296-7.296v-27.088h-27.072a7.293 7.293 0 01-7.296-7.296v-8.672a7.293 7.293 0 017.296-7.296h27.072v-27.088A7.293 7.293 0 01376 344.96h8.688a7.293 7.293 0 017.296 7.296v27.088h27.072a7.293 7.293 0 017.296 7.296v8.672z"></path></svg>'}},n.UUIRefNodeFormElement.styles=[...n.UUIRefNodeElement.styles],n.UUIRefNodeFormElement=rm([g("uui-ref-node-form")],n.UUIRefNodeFormElement);var nm=Object.defineProperty,sm=Object.getOwnPropertyDescriptor,ol=(i,e,t,r)=>{for(var o=r>1?void 0:r?sm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&nm(e,t,o),o};n.UUIRefNodeMemberElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeMemberElement.styles=[...n.UUIRefNodeElement.styles],ol([l({type:String,attribute:"group-name"})],n.UUIRefNodeMemberElement.prototype,"groupName",2),n.UUIRefNodeMemberElement=ol([g("uui-ref-node-member")],n.UUIRefNodeMemberElement);var am=Object.defineProperty,lm=Object.getOwnPropertyDescriptor,vn=(i,e,t,r)=>{for(var o=r>1?void 0:r?lm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&am(e,t,o),o};n.UUIRefNodePackageElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M161.08 106.29l-70.073 40.452 165.498 95.545 70.076-40.453L161.08 106.29zm259.851 41.077L255.435 51.815l-63.578 36.709 165.499 95.542 63.575-36.699zm-150.11 122.19V459.43l164.966-95.238V174.32l-164.966 95.237zM75.082 364.191l164.959 95.234V268.32L75.082 173.09v191.101z"></path></svg>',this.version="",this.author=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.version!==""&&e.push(this.version),this.author!==""&&e.push(this.author),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodePackageElement.styles=[...n.UUIRefNodeElement.styles],vn([l({type:String})],n.UUIRefNodePackageElement.prototype,"version",2),vn([l({type:String})],n.UUIRefNodePackageElement.prototype,"author",2),n.UUIRefNodePackageElement=vn([g("uui-ref-node-package")],n.UUIRefNodePackageElement);var um=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,rl=(i,e,t,r)=>{for(var o=r>1?void 0:r?cm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&um(e,t,o),o};n.UUIRefNodeUserElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeUserElement.styles=[...n.UUIRefNodeElement.styles],rl([l({type:String,attribute:"group-name"})],n.UUIRefNodeUserElement.prototype,"groupName",2),n.UUIRefNodeUserElement=rl([g("uui-ref-node-user")],n.UUIRefNodeUserElement);var hm=Object.defineProperty,dm=Object.getOwnPropertyDescriptor,nl=(i,e,t,r)=>{for(var o=r>1?void 0:r?dm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&hm(e,t,o),o};n.UUIScrollContainerElement=class extends f{constructor(){super(...arguments),this.enforceScroll=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}render(){return u`<slot></slot>`}},n.UUIScrollContainerElement.styles=[v`:host{display:block;scrollbar-width:thin;scrollbar-color:var(--uui-color-disabled-contrast,#c4c4c4) var(--uui-color-surface,#fff);overflow-y:auto}:host([enforce-scroll]){overflow-y:scroll}:host::-webkit-scrollbar{width:6px;height:6px}:host::-webkit-scrollbar-track{background:var(--uui-color-surface,#fff);border-radius:3px}:host::-webkit-scrollbar-thumb{background-color:var(--uui-color-disabled-contrast,#c4c4c4);border-radius:3px}`],nl([l({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],n.UUIScrollContainerElement.prototype,"enforceScroll",2),n.UUIScrollContainerElement=nl([g("uui-scroll-container")],n.UUIScrollContainerElement);let Po=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Po.CHANGE="change";var pm=Object.defineProperty,mm=Object.getOwnPropertyDescriptor,me=(i,e,t,r)=>{for(var o=r>1?void 0:r?mm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pm(e,t,o),o};n.UUISelectElement=class extends ve(f,""){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.error=!1,this.options=[],this._groups=[],this.disabledGroups="",this._disabledGroups=[],this._values=[],this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}async focus(){await this.updateComplete,this._input.focus()}async blur(){await this.updateComplete,this._input.blur()}async click(){await this.updateComplete,this._input.click()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}_createDisabledGroups(){this.disabledGroups.length!==0&&(this._disabledGroups=this.disabledGroups.split(","))}_extractGroups(){this.options.length!==0&&(this._groups=Array.from(new Set(this.options.filter(e=>e.group).map(e=>e.group))))}willUpdate(e){if(e.has("options")){this._extractGroups(),this._values=this.options.map(r=>r.value);const t=this.options.find(r=>r.selected);this.value=t?t.value:""}e.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),e.has("disabledGroups")&&this._createDisabledGroups()}setValue(e){e.stopPropagation();const t=e.target;e.target&&(this.value=t.value),this.dispatchEvent(new Po(Po.CHANGE,{bubbles:!0,composed:!1}))}_renderOption(e,t,r,o){return u`<option value="${t}" ?selected="${r}" ?disabled="${o}">${e}</option>`}_renderGrouped(){return this._groups.length===0?I:u`${this._groups.map(e=>u`<optgroup label="${e}" ?disabled="${this._disabledGroups.some(t=>t.toLowerCase()===e.toLowerCase())}">${this.options.map(t=>t.group===e?this._renderOption(t.name,t.value,t.selected,t.disabled):"")}</optgroup>`)}`}_getDisplayValue(){return this.options.find(e=>e.value===this.value)?.name||this.value}render(){return this.readonly?u`<span>${this._getDisplayValue()}</span>`:u`<select id="native" aria-label="${this.label}" @change="${this.setValue}" ?disabled="${this.disabled}" .name="${this.name}" .value="${this.value}"><option disabled="disabled" selected="selected" value="" hidden>${this.placeholder}</option>${this._renderGrouped()} ${this.options.filter(e=>!e.group).map(e=>this._renderOption(e.name,e.value,e.selected,e.disabled))}</select>`}},n.UUISelectElement.styles=[v`:host{display:inline-block;position:relative;font-family:inherit}#native{display:inline-block;font-family:inherit;font-size:var(--uui-select-font-size,var(--uui-size-5,15px));height:var(--uui-select-height,var(--uui-size-11,33px));padding:var(--uui-select-padding-y,var(--uui-size-1,3px)) var(--uui-select-padding-x,var(--uui-size-2,6px));color:var(--uui-select-text-color,var(--uui-color-text,#060606));box-sizing:border-box;border-radius:0;border:1px solid var(--uui-select-border-color,var(--uui-color-border,#d8d7d9));transition:all 150ms ease;width:100%;background-color:var(--uui-select-background-color,var(--uui-color-surface,#fff))}#native:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-select-outline-color,var(--uui-color-focus,#3879ff))}#native[disabled]{cursor:not-allowed;background-color:var(--uui-select-disabled-background-color,var(--uui-color-disabled,#f3f3f5))}#native:hover{border:1px solid var(--uui-select-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1))}option:checked{background:var(--uui-select-selected-option-background-color,var(--uui-color-selected,#3544b1));color:var(--uui-select-selected-option-color,var(--uui-color-selected-contrast,#fff))}#caret{position:absolute;right:12px;top:50%;transform:translateY(-50%)}:host([error]) #native{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([error]) #native[disabled]{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],me([l({type:String})],n.UUISelectElement.prototype,"label",2),me([l()],n.UUISelectElement.prototype,"placeholder",2),me([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"disabled",2),me([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"readonly",2),me([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"error",2),me([l({type:Array,attribute:!1})],n.UUISelectElement.prototype,"options",2),me([w()],n.UUISelectElement.prototype,"_groups",2),me([l()],n.UUISelectElement.prototype,"disabledGroups",2),me([w()],n.UUISelectElement.prototype,"_disabledGroups",2),me([A("#native")],n.UUISelectElement.prototype,"_input",2),n.UUISelectElement=me([g("uui-select")],n.UUISelectElement);const bm=v`
731
731
  input[type='range'] {
732
732
  left: 0;
733
733
  position: absolute;
@@ -834,12 +834,12 @@
834
834
  input[type='range']:focus::-ms-fill-upper {
835
835
  background: transparent;
836
836
  }
837
- `;let dt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};dt.INPUT="input",dt.CHANGE="change";var sm=Object.defineProperty,am=Object.getOwnPropertyDescriptor,Ya=i=>{throw TypeError(i)},X=(i,e,t,r)=>{for(var o=r>1?void 0:r?am(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sm(e,t,o),o},pn=(i,e,t)=>e.has(i)||Ya("Cannot "+t),Za=(i,e,t)=>(pn(i,e,"read from private field"),t?t.call(i):e.get(i)),mn=(i,e,t)=>e.has(i)?Ya("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Qa=(i,e,t,r)=>(pn(i,e,"write to private field"),e.set(i,t),t),lm=(i,e,t)=>(pn(i,e,"access private method"),t),So,Po,bn,Ja;const Ei=12,el=24,um=(i,e,t)=>Array.from({length:(e-i)/t+1},(r,o)=>i+o*t),cm=i=>{const e=i.toString().indexOf(".");return e>=0?i.toString().length-e-1:0};n.UUISliderElement=class extends ge(v,""){constructor(){super(),mn(this,bn),mn(this,So,0),this.hideStepValues=!1,this.hideValueLabel=!1,this.min=0,this.max=100,mn(this,Po,1),this.disabled=!1,this.readonly=!1,this._stepWidth=0,this.onWindowResize=()=>{this._stepWidth=this._calculateStepWidth()},this._steps=[],this._sliderPosition="0%",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keydown",lm(this,bn,Ja))}get step(){return Za(this,Po)}set step(e){Qa(this,Po,e),Qa(this,So,(e.toString().split(".")[1]||[]).length)}get value(){return super.value}set value(e){if(e instanceof File)return;const t=super.value;let r=e?parseFloat(e):0;r=Math.min(Math.max(r,this.min),this.max),this.step>0&&(r=Math.round(r/this.step)*this.step),super.value=r.toFixed(Za(this,So)).toString(),this._calculateSliderPosition(),this.requestUpdate("value",t)}async focus(){await this.updateComplete,this._input.focus()}async blur(){await this.updateComplete,this._input.blur()}async click(){await this.updateComplete,this._input.click()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize),this.label||console.warn(this.tagName+" needs a `label`",this)}disconnectedCallback(){window.removeEventListener("resize",this.onWindowResize),super.disconnectedCallback()}firstUpdated(){this._calculateSliderPosition(),this._updateSteps()}updated(e){super.updated(e),(e.get("max")||e.get("min")||e.get("step"))&&(this.value=this.value,this._updateSteps())}_updateSteps(){this._steps=um(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-Ei*2)/(this._steps.length-1)}_calculateSliderPosition(){const e=(parseFloat(super.value||"0")-this.min)/(this.max-this.min);this._sliderPosition=`${Math.floor(e*1e5)/1e3}%`}_onInput(e){e.stopPropagation(),this.value=this._input.value,this.dispatchEvent(new dt(dt.INPUT))}_onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new dt(dt.CHANGE))}renderTrackSteps(){return y`
838
- ${this._steps.map(e=>{if(this._stepWidth>=el){const t=Math.round(Ei+this._stepWidth*this._steps.indexOf(e));return y`<circle class="track-step" cx="${t}" cy="50%" r="4.5" />`}return y``})}
837
+ `;let dt=class extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}};dt.INPUT="input",dt.CHANGE="change";var vm=Object.defineProperty,gm=Object.getOwnPropertyDescriptor,sl=i=>{throw TypeError(i)},X=(i,e,t,r)=>{for(var o=r>1?void 0:r?gm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vm(e,t,o),o},gn=(i,e,t)=>e.has(i)||sl("Cannot "+t),al=(i,e,t)=>(gn(i,e,"read from private field"),t?t.call(i):e.get(i)),fn=(i,e,t)=>e.has(i)?sl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ll=(i,e,t,r)=>(gn(i,e,"write to private field"),e.set(i,t),t),fm=(i,e,t)=>(gn(i,e,"access private method"),t),Ao,zo,yn,ul;const xi=12,cl=24,ym=(i,e,t)=>Array.from({length:(e-i)/t+1},(r,o)=>i+o*t),wm=i=>{const e=i.toString().indexOf(".");return e>=0?i.toString().length-e-1:0};n.UUISliderElement=class extends ve(f,""){constructor(){super(),fn(this,yn),fn(this,Ao,0),this.hideStepValues=!1,this.hideValueLabel=!1,this.min=0,this.max=100,fn(this,zo,1),this.disabled=!1,this.readonly=!1,this._stepWidth=0,this.onWindowResize=()=>{this._stepWidth=this._calculateStepWidth()},this._steps=[],this._sliderPosition="0%",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keydown",fm(this,yn,ul))}get step(){return al(this,zo)}set step(e){ll(this,zo,e),ll(this,Ao,(e.toString().split(".")[1]||[]).length)}get value(){return super.value}set value(e){if(e instanceof File)return;const t=super.value;let r=e?parseFloat(e):0;r=Math.min(Math.max(r,this.min),this.max),this.step>0&&(r=Math.round(r/this.step)*this.step),super.value=r.toFixed(al(this,Ao)).toString(),this._calculateSliderPosition(),this.requestUpdate("value",t)}async focus(){await this.updateComplete,this._input.focus()}async blur(){await this.updateComplete,this._input.blur()}async click(){await this.updateComplete,this._input.click()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize),this.label||console.warn(this.tagName+" needs a `label`",this)}disconnectedCallback(){window.removeEventListener("resize",this.onWindowResize),super.disconnectedCallback()}firstUpdated(){this._calculateSliderPosition(),this._updateSteps()}updated(e){super.updated(e),(e.get("max")||e.get("min")||e.get("step"))&&(this.value=this.value,this._updateSteps())}_updateSteps(){this._steps=ym(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-xi*2)/(this._steps.length-1)}_calculateSliderPosition(){const e=(parseFloat(super.value||"0")-this.min)/(this.max-this.min);this._sliderPosition=`${Math.floor(e*1e5)/1e3}%`}_onInput(e){e.stopPropagation(),this.value=this._input.value,this.dispatchEvent(new dt(dt.INPUT))}_onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new dt(dt.CHANGE))}renderTrackSteps(){return y`
838
+ ${this._steps.map(e=>{if(this._stepWidth>=cl){const t=Math.round(xi+this._stepWidth*this._steps.indexOf(e));return y`<circle class="track-step" cx="${t}" cy="50%" r="4.5" />`}return y``})}
839
839
  `}renderStepValues(){return this.hideStepValues?I:u`<div id="step-values">
840
840
  ${this._steps.map(e=>u` <span
841
841
  ><span>
842
- ${this._steps.length<=20&&this._stepWidth>=el?e.toFixed(cm(this.step)):I}
842
+ ${this._steps.length<=20&&this._stepWidth>=cl?e.toFixed(wm(this.step)):I}
843
843
  </span></span
844
844
  >`)}
845
845
  </div>`}render(){return u`
@@ -862,13 +862,13 @@
862
862
  </svg>
863
863
 
864
864
  <div id="track-inner" aria-hidden="true">
865
- <div id="thumb" style=${ve({left:this._sliderPosition})}>
865
+ <div id="thumb" style=${ge({left:this._sliderPosition})}>
866
866
  ${this.hideValueLabel?null:u`<div id="thumb-label">${this.value}</div>`}
867
867
  </div>
868
868
  </div>
869
869
  </div>
870
870
  ${this.renderStepValues()}
871
- `}},So=new WeakMap,Po=new WeakMap,bn=new WeakSet,Ja=function(i){i.key=="Enter"&&this.submit()},n.UUISliderElement.formAssociated=!0,n.UUISliderElement.styles=[ic,nm,m`
871
+ `}},Ao=new WeakMap,zo=new WeakMap,yn=new WeakSet,ul=function(i){i.key=="Enter"&&this.submit()},n.UUISliderElement.formAssociated=!0,n.UUISliderElement.styles=[dc,bm,v`
872
872
  :host {
873
873
  display: inline-block;
874
874
  width: 100%;
@@ -917,8 +917,8 @@
917
917
 
918
918
  #track-inner {
919
919
  position: absolute;
920
- left: ${Ei}px; /* Match TRACK_MARGIN */
921
- right: ${Ei}px; /* Match TRACK_MARGIN */
920
+ left: ${xi}px; /* Match TRACK_MARGIN */
921
+ right: ${xi}px; /* Match TRACK_MARGIN */
922
922
  }
923
923
 
924
924
  #thumb {
@@ -976,7 +976,7 @@
976
976
  }
977
977
 
978
978
  #step-values {
979
- margin: 0 ${Ei}px; /* Match TRACK_MARGIN */
979
+ margin: 0 ${xi}px; /* Match TRACK_MARGIN */
980
980
  margin-top: 6px;
981
981
  display: flex;
982
982
  align-items: flex-end;
@@ -1017,12 +1017,12 @@
1017
1017
  :host([readonly]) #thumb-label {
1018
1018
  opacity: 1;
1019
1019
  }
1020
- `],X([l({type:Boolean,attribute:"hide-step-values"})],n.UUISliderElement.prototype,"hideStepValues",2),X([l({type:Boolean,attribute:"hide-value-label"})],n.UUISliderElement.prototype,"hideValueLabel",2),X([l({type:Number})],n.UUISliderElement.prototype,"min",2),X([l({type:Number})],n.UUISliderElement.prototype,"max",2),X([l({type:Number})],n.UUISliderElement.prototype,"step",1),X([l({type:String})],n.UUISliderElement.prototype,"value",1),X([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"disabled",2),X([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"readonly",2),X([l({type:String})],n.UUISliderElement.prototype,"label",2),X([A("#input")],n.UUISliderElement.prototype,"_input",2),X([A("#track")],n.UUISliderElement.prototype,"_track",2),X([w()],n.UUISliderElement.prototype,"_stepWidth",2),X([w()],n.UUISliderElement.prototype,"_steps",2),X([w()],n.UUISliderElement.prototype,"_sliderPosition",2),n.UUISliderElement=X([b("uui-slider")],n.UUISliderElement);var hm=Object.defineProperty,dm=Object.getOwnPropertyDescriptor,tl=(i,e,t,r)=>{for(var o=r>1?void 0:r?dm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&hm(e,t,o),o};n.UUISymbolExpandElement=class extends v{constructor(){super(...arguments),this.open=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m4 9 8 8 8-8"></path></svg>`}},n.UUISymbolExpandElement.styles=[m`:host{display:inline-block;width:12px;height:12px;vertical-align:middle}svg{transform:rotate(-90deg);transform-origin:50% 50%;transition:transform .1s cubic-bezier(.1,0,.9,1);width:100%;height:100%}:host([open]) svg{transform:rotate(0)}`],tl([l({type:Boolean,reflect:!0})],n.UUISymbolExpandElement.prototype,"open",2),n.UUISymbolExpandElement=tl([b("uui-symbol-expand")],n.UUISymbolExpandElement);var pm=Object.defineProperty,mm=Object.getOwnPropertyDescriptor,gn=(i,e,t,r)=>{for(var o=r>1?void 0:r?mm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pm(e,t,o),o};n.UUISymbolFileThumbnailElement=class extends v{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),$(this,"uui-icon")}render(){return this.src?u`<img src="${this.src}" alt="${this.alt}">`:u`<uui-icon name="picture" .fallback="${pc.strings[0]}"></uui-icon>`}},n.UUISymbolFileThumbnailElement.styles=[m`:host{display:block;width:100%;height:100%}img{object-fit:contain;height:100%;width:100%}uui-icon{width:100%;height:100%;max-width:100%;display:flex;max-height:100%;justify-content:center;color:var(--uui-color-surface,#fff);background:var(--uui-color-surface-alt,#f3f3f5)}`],gn([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"src",2),gn([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"alt",2),n.UUISymbolFileThumbnailElement=gn([b("uui-symbol-file-thumbnail")],n.UUISymbolFileThumbnailElement);var bm=Object.defineProperty,gm=Object.getOwnPropertyDescriptor,il=(i,e,t,r)=>{for(var o=r>1?void 0:r?gm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&bm(e,t,o),o};n.UUISymbolFileElement=class extends v{constructor(){super(...arguments),this.type=""}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round" id="icon"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/></svg> ${this.type?u`<small id="file-type" class="uui-small">${this.type.toUpperCase()}</small>`:""}`}},n.UUISymbolFileElement.styles=[ci,m`:host{position:relative;display:block}#file-type{position:absolute;bottom:20%;left:12%;margin-left:calc(var(--uui-size-3,9px) * -1);padding:0 var(--uui-size-3,9px);font-weight:700;background-color:var(--uui-color-surface-alt,#f3f3f5);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:var(--uui-border-radius,3px)}#icon{width:100%;color:var(--uui-color-border-standalone,#c2c2c2)}`],il([l({type:String})],n.UUISymbolFileElement.prototype,"type",2),n.UUISymbolFileElement=il([b("uui-symbol-file")],n.UUISymbolFileElement);var vm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUISymbolFolderElement=class extends v{render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round" id="icon"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>`}},n.UUISymbolFolderElement.styles=[m`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{width:100%;color:var(--uui-color-border-standalone,#c2c2c2)}`],n.UUISymbolFolderElement=vm([b("uui-symbol-folder")],n.UUISymbolFolderElement);var fm=Object.defineProperty,ym=Object.getOwnPropertyDescriptor,ol=(i,e,t,r)=>{for(var o=r>1?void 0:r?ym(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fm(e,t,o),o};n.UUISymbolLockElement=class extends v{constructor(){super(...arguments),this.open=!1}render(){return y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?y`<path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"></path>`:y`<path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"></path>`}</svg>`}},n.UUISymbolLockElement.styles=[m`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],ol([l({type:Boolean,reflect:!0})],n.UUISymbolLockElement.prototype,"open",2),n.UUISymbolLockElement=ol([b("uui-symbol-lock")],n.UUISymbolLockElement);var wm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUISymbolMoreElement=class extends v{render(){return y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="17" cy="50" r="9"></circle><circle cx="50" cy="50" r="9"></circle><circle cx="83" cy="50" r="9"></circle></svg>`}},n.UUISymbolMoreElement.styles=[m`:host{display:inline-block;vertical-align:bottom;width:1.15em;height:1.15em}`],n.UUISymbolMoreElement=wm([b("uui-symbol-more")],n.UUISymbolMoreElement);var _m=Object.defineProperty,Um=Object.getOwnPropertyDescriptor,rl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Um(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_m(e,t,o),o};n.UUISymbolSortElement=class extends hi(v){constructor(){super(...arguments),this.descending=!1}render(){return u`<svg id="up" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m4 9 8 8 8-8"></path></svg> <svg id="down" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m4 9 8 8 8-8"></path></svg>`}},n.UUISymbolSortElement.styles=[m`:host{position:relative;display:inline-block;width:.9em;height:1em;pointer-events:none}svg{position:absolute;left:0;top:50%;width:.9em;transform-origin:50% 50%;transition:transform 120ms ease-in-out,opacity 120ms,margin-top 240ms;opacity:0;margin-top:-8em}#up{transform:rotate(180deg);margin-top:-1.05em}#down{margin-top:-.55em}:host([active]) #up{margin-top:calc(-.8em - (.25em * var(--uui-symbol-sort-hover,0)))}:host([active]) #down{margin-top:calc(-.8em + (.25em * var(--uui-symbol-sort-hover,0)))}:host(:hover){--uui-symbol-sort-hover:1}:host(:not([active])) #down,:host(:not([active])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active]:not([descending])) #down{opacity:1}:host([active]:not([descending])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active][descending]) #up{opacity:1}:host([active][descending]) #down{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}`],rl([l({type:Boolean,reflect:!0})],n.UUISymbolSortElement.prototype,"descending",2),n.UUISymbolSortElement=rl([b("uui-symbol-sort")],n.UUISymbolSortElement);var km=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUITableElement=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return u`<slot></slot>`}},n.UUITableElement.styles=[m`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);cursor:default}`],n.UUITableElement=km([b("uui-table")],n.UUITableElement);var $m=Object.defineProperty,Em=Object.getOwnPropertyDescriptor,Ao=(i,e,t,r)=>{for(var o=r>1?void 0:r?Em(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$m(e,t,o),o};n.UUITableCellElement=class extends v{constructor(){super(...arguments),this.disableChildInteraction=!1,this.noPadding=!1,this.clipText=!1,this._observer=new ResizeObserver(()=>{this._detectOverflow()})}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}updated(e){super.updated(e),e.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return u`<slot @slotchange="${this._detectOverflow}"></slot>`}},n.UUITableCellElement.styles=[m`:host{position:relative;display:table-cell;height:var(--uui-table-cell-height,var(--uui-size-12,36px));padding:var(--uui-table-cell-padding,var(--uui-size-4,12px) var(--uui-size-5,15px));border-top:1px solid var(--uui-color-border,#d8d7d9);vertical-align:middle}:host([clip-text]){max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}:host([disable-child-interaction]) ::slotted(*){pointer-events:none}:host([disable-child-interaction])::after{content:'';position:absolute;inset:0}:host([no-padding]){padding:0}`],Ao([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],n.UUITableCellElement.prototype,"disableChildInteraction",2),Ao([l({type:Boolean,reflect:!0,attribute:"no-padding"})],n.UUITableCellElement.prototype,"noPadding",2),Ao([l({type:Boolean,reflect:!0,attribute:"clip-text"})],n.UUITableCellElement.prototype,"clipText",2),n.UUITableCellElement=Ao([b("uui-table-cell")],n.UUITableCellElement);var Im=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUITableColumnElement=class extends v{},n.UUITableColumnElement.styles=[m`:host{display:table-column}`],n.UUITableColumnElement=Im([b("uui-table-column")],n.UUITableColumnElement);var xm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUITableHeadCellElement=class extends n.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},n.UUITableHeadCellElement.styles=[...n.UUITableCellElement.styles,m`:host{border-top:none}`],n.UUITableHeadCellElement=xm([b("uui-table-head-cell")],n.UUITableHeadCellElement);var Cm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUITableHeadElement=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return u`<slot></slot>`}},n.UUITableHeadElement.styles=[m`:host{display:table-header-group;font-weight:700}`],n.UUITableHeadElement=Cm([b("uui-table-head")],n.UUITableHeadElement);var Sm=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,nl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sm(e,t,o),o};n.UUITableRowElement=class extends Bi(_t(v)){constructor(){super();let e=!1;this.addEventListener("blur",()=>{e===!1&&this.style.setProperty("--uui-show-focus-outline","1"),e=!1}),this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),e=!0}),this.addEventListener("mouseup",()=>{e=!1})}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(e){e.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(e=>{this.elementIsTableCell(e)&&(e.disableChildInteraction=this.selectOnly)})}elementIsTableCell(e){return e instanceof n.UUITableCellElement}render(){return u`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},n.UUITableRowElement.styles=[m`:host{display:table-row;position:relative;outline-offset:-3px}:host([selectable]){cursor:pointer}:host(:focus){outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host([selected]){outline:2px solid var(--uui-table-row-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:focus){outline-color:var(--uui-color-focus,#3879ff)}`],nl([Ne({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],n.UUITableRowElement.prototype,"slotCellNodes",2),n.UUITableRowElement=nl([b("uui-table-row")],n.UUITableRowElement);var Am=Object.defineProperty,zm=Object.getOwnPropertyDescriptor,Jt=(i,e,t,r)=>{for(var o=r>1?void 0:r?zm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Am(e,t,o),o};n.UUITabElement=class extends hi(be("",v)){constructor(){super(),this.disabled=!1,this.orientation="horizontal",this.addEventListener("click",this.onHostClick)}onHostClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}render(){return this.href?u`<a id="button" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button type="button" id="button" ?disabled="${this.disabled}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></button>`}},n.UUITabElement.styles=[m`:host{color:var(--uui-tab-text,var(--uui-color-interactive,#1b264f));font-family:inherit;width:fit-content}#button{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:var(--uui-size-12,36px);min-width:70px;padding:var(--uui-size-3,9px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px));border:none;font-size:inherit;background:0 0;color:inherit;cursor:pointer;font-family:inherit;text-decoration:none;line-height:normal}:host([orientation=vertical]) #button{min-height:var(--uui-size-14,42px);padding:var(--uui-size-2,6px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px))}:host(:not([disabled])) #button:hover{color:var(--uui-tab-text-hover,var(--uui-color-default-emphasis,#3544b1))}:host(:not([disabled])) #button:active{box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}:host([active]){color:var(--uui-tab-text-active,unset)}:host([disabled]) #button{color:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button::before{content:'';position:absolute;background-color:var(--uui-color-current,#f5c1bc);opacity:0}:host([active]) #button::before{opacity:1}:host([orientation=horizontal]) #button::before{left:auto;right:auto;border-radius:var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0 0;height:0;width:calc(100% - 15px);bottom:0;transition:opacity linear 120ms,height ease-in-out 120ms}:host([active][orientation=horizontal]) #button::before{height:4px}:host([orientation=vertical]) #button::before{top:auto;bottom:auto;border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0;height:calc(100% - 12px);width:0;left:0;transition:opacity linear 120ms,width ease-in-out 120ms}:host([active][orientation=vertical]) #button::before{width:4px}#button:hover::before{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([disabled]) #button::before{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=icon]::slotted(*){font-size:20px;margin-bottom:var(--uui-size-2,6px)}slot.label{text-align:center;display:flex;width:100%;flex-direction:column}:host([orientation=vertical]) slot.label{text-align:left}`],Jt([l({type:Boolean,reflect:!0})],n.UUITabElement.prototype,"disabled",2),Jt([l({type:String})],n.UUITabElement.prototype,"href",2),Jt([l({type:String})],n.UUITabElement.prototype,"target",2),Jt([l({type:String})],n.UUITabElement.prototype,"rel",2),Jt([l({type:String,reflect:!0})],n.UUITabElement.prototype,"orientation",2),n.UUITabElement=Jt([b("uui-tab")],n.UUITabElement);var Mm=Object.defineProperty,Lm=Object.getOwnPropertyDescriptor,sl=i=>{throw TypeError(i)},ei=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Mm(e,t,o),o},vn=(i,e,t)=>e.has(i)||sl("Cannot "+t),P=(i,e,t)=>(vn(i,e,"read from private field"),t?t.call(i):e.get(i)),ke=(i,e,t)=>e.has(i)?sl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ii=(i,e,t,r)=>(vn(i,e,"write to private field"),e.set(i,t),t),oe=(i,e,t)=>(vn(i,e,"access private method"),t),zo,$e,Me,ti,ii,Mo,xi,Ci,Y,al,ll,fn,ul,oi,Lo,cl,yn,wn;n.UUITabGroupElement=class extends v{constructor(){super(...arguments),ke(this,Y),ke(this,zo,0),this.dropdownContentDirection="vertical",ke(this,$e,[]),ke(this,Me,[]),ke(this,ti,new Map),ke(this,ii,[]),ke(this,Mo,new ResizeObserver(oe(this,Y,ll).bind(this))),ke(this,xi,[]),ke(this,Ci,!1),ke(this,oi,e=>{const t=e.currentTarget;if(oe(this,Y,wn).call(this,t)){t.active=!0;const r=P(this,ti).get(t);r&&(r.active=!0),[...P(this,$e),...P(this,Me)].filter(o=>o!==t&&o!==r).forEach(o=>{oe(this,Y,wn).call(this,o)&&(o.active=!1)}),P(this,Me).some(o=>o.active&&o!==r)?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside")}})}connectedCallback(){super.connectedCallback(),oe(this,Y,al).call(this)}disconnectedCallback(){super.disconnectedCallback(),P(this,Mo).unobserve(this),oe(this,Y,fn).call(this)}render(){return u`<div id="main"><div id="grid"><slot @slotchange="${oe(this,Y,ul)}"></slot></div><uui-button popovertarget="popover-container" style="display:none" id="more-button" label="More" compact="compact"><uui-symbol-more></uui-symbol-more></uui-button></div><uui-popover-container id="popover-container" popover placement="bottom-end"><div id="hidden-tabs-container">${Ar(P(this,Me),e=>u`${e}`)}</div></uui-popover-container>`}},zo=new WeakMap,$e=new WeakMap,Me=new WeakMap,ti=new WeakMap,ii=new WeakMap,Mo=new WeakMap,xi=new WeakMap,Ci=new WeakMap,Y=new WeakSet,al=async function(){$(this,"uui-button"),$(this,"uui-popover-container"),$(this,"uui-symbol-more"),this.hasAttribute("role")||this.setAttribute("role","tablist"),await this.updateComplete,P(this,Mo).observe(this._mainElement)},ll=function(i){const e=Number.parseFloat(this.style.getPropertyValue("--uui-tab-group-gap"));(Number.isNaN(e)?0:e)!==P(this,zo)?oe(this,Y,Lo).call(this):oe(this,Y,yn).call(this,i[0].contentBoxSize[0].inlineSize)},fn=function(){P(this,$e).forEach(i=>{i.removeEventListener("click",P(this,oi)),P(this,xi).forEach(e=>e.disconnect())}),P(this,xi).length=0,P(this,ii).length=0},ul=function(){oe(this,Y,fn).call(this),oe(this,Y,cl).call(this),P(this,$e).forEach(i=>{i.addEventListener("click",P(this,oi));const e=new ResizeObserver(oe(this,Y,Lo).bind(this));e.observe(i),P(this,xi).push(e)})},oi=new WeakMap,Lo=async function(){if(P(this,Ci))return;Ii(this,Ci,!0),requestAnimationFrame(()=>{Ii(this,Ci,!1)}),await this.updateComplete;const i=Number.parseFloat(this.style.getPropertyValue("--uui-tab-group-gap")),e=Number.isNaN(i)?0:i;Ii(this,zo,e);let t=0;for(let o=0;o<P(this,$e).length;o++)P(this,$e)[o].style.display="",t+=P(this,$e)[o].offsetWidth,P(this,ii)[o]=t,t+=e;const r=2;this._mainElement.style.width=t-e+r+"px",oe(this,Y,yn).call(this,this._mainElement.offsetWidth)},cl=function(){Ii(this,$e,this._slottedNodes?this._slottedNodes:[]),oe(this,Y,Lo).call(this)},yn=function(i){const e=this._moreButtonElement.offsetWidth,t=i-(e||0);P(this,Me).forEach(s=>{s.removeEventListener("click",P(this,oi))}),Ii(this,Me,[]),P(this,ti).clear();let r=!1;const o=P(this,ii).length;for(let s=0;s<o;s++){const a=P(this,ii)[s],c=P(this,$e)[s];if(a<=(s===o-1?i:t))c.style.display="";else{const h=c.cloneNode(!0);h.addEventListener("click",P(this,oi)),h.classList.add("hidden-tab"),h.style.display="",h.orientation=this.dropdownContentDirection,P(this,ti).set(h,c),P(this,ti).set(c,h),P(this,Me).push(h),c.style.display="none",c.active&&(r=!0)}}P(this,Me).length===0?(this._moreButtonElement.style.display="none",this._popoverContainerElement.hidePopover()):this._moreButtonElement.style.display="",r?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside"),this.requestUpdate()},wn=function(i){return typeof i=="object"&&"active"in i&&typeof i.active=="boolean"},n.UUITabGroupElement.styles=[m`:host{min-width:0;display:flex;height:100%}#main{display:flex;justify-content:space-between;overflow:hidden}#grid{width:1fr;display:flex;height:100%;min-height:48px;overflow:hidden;text-wrap:nowrap;color:var(--uui-tab-text);gap:var(--uui-tab-group-gap,0)}#popover-container{--uui-tab-text:var(--uui-tab-group-dropdown-tab-text, unset);--uui-tab-text-hover:var(
1020
+ `],X([l({type:Boolean,attribute:"hide-step-values"})],n.UUISliderElement.prototype,"hideStepValues",2),X([l({type:Boolean,attribute:"hide-value-label"})],n.UUISliderElement.prototype,"hideValueLabel",2),X([l({type:Number})],n.UUISliderElement.prototype,"min",2),X([l({type:Number})],n.UUISliderElement.prototype,"max",2),X([l({type:Number})],n.UUISliderElement.prototype,"step",1),X([l({type:String})],n.UUISliderElement.prototype,"value",1),X([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"disabled",2),X([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"readonly",2),X([l({type:String})],n.UUISliderElement.prototype,"label",2),X([A("#input")],n.UUISliderElement.prototype,"_input",2),X([A("#track")],n.UUISliderElement.prototype,"_track",2),X([w()],n.UUISliderElement.prototype,"_stepWidth",2),X([w()],n.UUISliderElement.prototype,"_steps",2),X([w()],n.UUISliderElement.prototype,"_sliderPosition",2),n.UUISliderElement=X([g("uui-slider")],n.UUISliderElement);var _m=Object.defineProperty,Um=Object.getOwnPropertyDescriptor,hl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Um(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_m(e,t,o),o};n.UUISymbolExpandElement=class extends f{constructor(){super(...arguments),this.open=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m4 9 8 8 8-8"></path></svg>`}},n.UUISymbolExpandElement.styles=[v`:host{display:inline-block;width:12px;vertical-align:middle}svg{transform:rotate(-90deg);transform-origin:50% 50%;transition:transform .1s cubic-bezier(.1,0,.9,1);width:100%;height:100%}:host([open]) svg{transform:rotate(0)}`],hl([l({type:Boolean,reflect:!0})],n.UUISymbolExpandElement.prototype,"open",2),n.UUISymbolExpandElement=hl([g("uui-symbol-expand")],n.UUISymbolExpandElement);var km=Object.defineProperty,$m=Object.getOwnPropertyDescriptor,wn=(i,e,t,r)=>{for(var o=r>1?void 0:r?$m(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&km(e,t,o),o};n.UUISymbolFileThumbnailElement=class extends f{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),$(this,"uui-icon")}render(){return this.src?u`<img src="${this.src}" alt="${this.alt}">`:u`<uui-icon name="picture" .fallback="${kc.strings[0]}"></uui-icon>`}},n.UUISymbolFileThumbnailElement.styles=[v`:host{display:block;width:100%;height:100%}img{object-fit:contain;height:100%;width:100%}uui-icon{width:100%;height:100%;max-width:100%;display:flex;max-height:100%;justify-content:center;color:var(--uui-color-surface,#fff);background:var(--uui-color-surface-alt,#f3f3f5)}`],wn([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"src",2),wn([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"alt",2),n.UUISymbolFileThumbnailElement=wn([g("uui-symbol-file-thumbnail")],n.UUISymbolFileThumbnailElement);var Em=Object.defineProperty,Im=Object.getOwnPropertyDescriptor,dl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Im(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Em(e,t,o),o};n.UUISymbolFileElement=class extends f{constructor(){super(...arguments),this.type=""}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round" id="icon"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/></svg> ${this.type?u`<small id="file-type" class="uui-small">${this.type.toUpperCase()}</small>`:""}`}},n.UUISymbolFileElement.styles=[ci,v`:host{position:relative;display:block}#file-type{position:absolute;bottom:20%;left:12%;margin-left:calc(var(--uui-size-3,9px) * -1);padding:0 var(--uui-size-3,9px);font-weight:700;background-color:var(--uui-color-surface-alt,#f3f3f5);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:var(--uui-border-radius,3px)}#icon{width:100%;color:var(--uui-color-border-standalone,#c2c2c2)}`],dl([l({type:String})],n.UUISymbolFileElement.prototype,"type",2),n.UUISymbolFileElement=dl([g("uui-symbol-file")],n.UUISymbolFileElement);var xm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUISymbolFolderElement=class extends f{render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round" id="icon"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>`}},n.UUISymbolFolderElement.styles=[v`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{width:100%;color:var(--uui-color-border-standalone,#c2c2c2)}`],n.UUISymbolFolderElement=xm([g("uui-symbol-folder")],n.UUISymbolFolderElement);var Cm=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,pl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Cm(e,t,o),o};n.UUISymbolLockElement=class extends f{constructor(){super(...arguments),this.open=!1}render(){return y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?y`<path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"></path>`:y`<path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"></path>`}</svg>`}},n.UUISymbolLockElement.styles=[v`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],pl([l({type:Boolean,reflect:!0})],n.UUISymbolLockElement.prototype,"open",2),n.UUISymbolLockElement=pl([g("uui-symbol-lock")],n.UUISymbolLockElement);var Pm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUISymbolMoreElement=class extends f{render(){return y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="17" cy="50" r="9"></circle><circle cx="50" cy="50" r="9"></circle><circle cx="83" cy="50" r="9"></circle></svg>`}},n.UUISymbolMoreElement.styles=[v`:host{display:inline-block;vertical-align:bottom;width:1.15em;height:1.15em}`],n.UUISymbolMoreElement=Pm([g("uui-symbol-more")],n.UUISymbolMoreElement);var Am=Object.defineProperty,zm=Object.getOwnPropertyDescriptor,ml=(i,e,t,r)=>{for(var o=r>1?void 0:r?zm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Am(e,t,o),o};n.UUISymbolSortElement=class extends di(f){constructor(){super(...arguments),this.descending=!1}render(){return u`<svg id="up" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m4 9 8 8 8-8"></path></svg> <svg id="down" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m4 9 8 8 8-8"></path></svg>`}},n.UUISymbolSortElement.styles=[v`:host{position:relative;display:inline-block;width:.9em;height:1em;pointer-events:none}svg{position:absolute;left:0;top:50%;width:.9em;transform-origin:50% 50%;transition:transform 120ms ease-in-out,opacity 120ms,margin-top 240ms;opacity:0;margin-top:-8em}#up{transform:rotate(180deg);margin-top:-1.05em}#down{margin-top:-.55em}:host([active]) #up{margin-top:calc(-.8em - (.25em * var(--uui-symbol-sort-hover,0)))}:host([active]) #down{margin-top:calc(-.8em + (.25em * var(--uui-symbol-sort-hover,0)))}:host(:hover){--uui-symbol-sort-hover:1}:host(:not([active])) #down,:host(:not([active])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active]:not([descending])) #down{opacity:1}:host([active]:not([descending])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active][descending]) #up{opacity:1}:host([active][descending]) #down{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}`],ml([l({type:Boolean,reflect:!0})],n.UUISymbolSortElement.prototype,"descending",2),n.UUISymbolSortElement=ml([g("uui-symbol-sort")],n.UUISymbolSortElement);var Mm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUITableElement=class extends f{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return u`<slot></slot>`}},n.UUITableElement.styles=[v`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);cursor:default}`],n.UUITableElement=Mm([g("uui-table")],n.UUITableElement);var Lm=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,Mo=(i,e,t,r)=>{for(var o=r>1?void 0:r?Om(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lm(e,t,o),o};n.UUITableCellElement=class extends f{constructor(){super(...arguments),this.disableChildInteraction=!1,this.noPadding=!1,this.clipText=!1,this._observer=new ResizeObserver(()=>{this._detectOverflow()})}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}updated(e){super.updated(e),e.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return u`<slot @slotchange="${this._detectOverflow}"></slot>`}},n.UUITableCellElement.styles=[v`:host{position:relative;display:table-cell;height:var(--uui-table-cell-height,var(--uui-size-12,36px));padding:var(--uui-table-cell-padding,var(--uui-size-4,12px) var(--uui-size-5,15px));border-top:1px solid var(--uui-color-border,#d8d7d9);vertical-align:middle}:host([clip-text]){max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}:host([disable-child-interaction]) ::slotted(*){pointer-events:none}:host([disable-child-interaction])::after{content:'';position:absolute;inset:0}:host([no-padding]){padding:0}`],Mo([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],n.UUITableCellElement.prototype,"disableChildInteraction",2),Mo([l({type:Boolean,reflect:!0,attribute:"no-padding"})],n.UUITableCellElement.prototype,"noPadding",2),Mo([l({type:Boolean,reflect:!0,attribute:"clip-text"})],n.UUITableCellElement.prototype,"clipText",2),n.UUITableCellElement=Mo([g("uui-table-cell")],n.UUITableCellElement);var Tm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUITableColumnElement=class extends f{},n.UUITableColumnElement.styles=[v`:host{display:table-column}`],n.UUITableColumnElement=Tm([g("uui-table-column")],n.UUITableColumnElement);var Nm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUITableHeadCellElement=class extends n.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},n.UUITableHeadCellElement.styles=[...n.UUITableCellElement.styles,v`:host{border-top:none}`],n.UUITableHeadCellElement=Nm([g("uui-table-head-cell")],n.UUITableHeadCellElement);var Bm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUITableHeadElement=class extends f{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return u`<slot></slot>`}},n.UUITableHeadElement.styles=[v`:host{display:table-header-group;font-weight:700}`],n.UUITableHeadElement=Bm([g("uui-table-head")],n.UUITableHeadElement);var Dm=Object.defineProperty,Vm=Object.getOwnPropertyDescriptor,bl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dm(e,t,o),o};n.UUITableRowElement=class extends Vi(_t(f)){constructor(){super();let e=!1;this.addEventListener("blur",()=>{e===!1&&this.style.setProperty("--uui-show-focus-outline","1"),e=!1}),this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),e=!0}),this.addEventListener("mouseup",()=>{e=!1})}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(e){e.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(e=>{this.elementIsTableCell(e)&&(e.disableChildInteraction=this.selectOnly)})}elementIsTableCell(e){return e instanceof n.UUITableCellElement}render(){return u`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},n.UUITableRowElement.styles=[v`:host{display:table-row;position:relative;outline-offset:-3px}:host([selectable]){cursor:pointer}:host(:focus){outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host([selected]){outline:2px solid var(--uui-table-row-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:focus){outline-color:var(--uui-color-focus,#3879ff)}`],bl([Ne({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],n.UUITableRowElement.prototype,"slotCellNodes",2),n.UUITableRowElement=bl([g("uui-table-row")],n.UUITableRowElement);var jm=Object.defineProperty,Hm=Object.getOwnPropertyDescriptor,Jt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jm(e,t,o),o};n.UUITabElement=class extends di(be("",f)){constructor(){super(),this.disabled=!1,this.orientation="horizontal",this.addEventListener("click",this.onHostClick)}onHostClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}render(){return this.href?u`<a id="button" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.rel||k(this.target==="_blank"?"noopener noreferrer":void 0))}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button type="button" id="button" ?disabled="${this.disabled}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></button>`}},n.UUITabElement.styles=[v`:host{color:var(--uui-tab-text,var(--uui-color-interactive,#1b264f));font-family:inherit;width:fit-content}#button{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:var(--uui-size-12,36px);min-width:70px;padding:var(--uui-size-3,9px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px));border:none;font-size:inherit;background:0 0;color:inherit;cursor:pointer;font-family:inherit;text-decoration:none;line-height:normal}:host([orientation=vertical]) #button{min-height:var(--uui-size-14,42px);padding:var(--uui-size-2,6px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px))}:host(:not([disabled])) #button:hover{color:var(--uui-tab-text-hover,var(--uui-color-default-emphasis,#3544b1))}:host(:not([disabled])) #button:active{box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}:host([active]){color:var(--uui-tab-text-active,unset)}:host([disabled]) #button{color:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button::before{content:'';position:absolute;background-color:var(--uui-color-current,#f5c1bc);opacity:0}:host([active]) #button::before{opacity:1}:host([orientation=horizontal]) #button::before{left:auto;right:auto;border-radius:var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0 0;height:0;width:calc(100% - 15px);bottom:0;transition:opacity linear 120ms,height ease-in-out 120ms}:host([active][orientation=horizontal]) #button::before{height:4px}:host([orientation=vertical]) #button::before{top:auto;bottom:auto;border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0;height:calc(100% - 12px);width:0;left:0;transition:opacity linear 120ms,width ease-in-out 120ms}:host([active][orientation=vertical]) #button::before{width:4px}#button:hover::before{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([disabled]) #button::before{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=icon]::slotted(*){font-size:20px;margin-bottom:var(--uui-size-2,6px)}slot.label{text-align:center;display:flex;width:100%;flex-direction:column}:host([orientation=vertical]) slot.label{text-align:left}`],Jt([l({type:Boolean,reflect:!0})],n.UUITabElement.prototype,"disabled",2),Jt([l({type:String})],n.UUITabElement.prototype,"href",2),Jt([l({type:String})],n.UUITabElement.prototype,"target",2),Jt([l({type:String})],n.UUITabElement.prototype,"rel",2),Jt([l({type:String,reflect:!0})],n.UUITabElement.prototype,"orientation",2),n.UUITabElement=Jt([g("uui-tab")],n.UUITabElement);var Rm=Object.defineProperty,Fm=Object.getOwnPropertyDescriptor,vl=i=>{throw TypeError(i)},ei=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rm(e,t,o),o},_n=(i,e,t)=>e.has(i)||vl("Cannot "+t),P=(i,e,t)=>(_n(i,e,"read from private field"),t?t.call(i):e.get(i)),ke=(i,e,t)=>e.has(i)?vl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ci=(i,e,t,r)=>(_n(i,e,"write to private field"),e.set(i,t),t),oe=(i,e,t)=>(_n(i,e,"access private method"),t),Lo,$e,Me,ti,ii,Oo,Si,Pi,Y,gl,fl,Un,yl,oi,To,wl,kn,$n;n.UUITabGroupElement=class extends f{constructor(){super(...arguments),ke(this,Y),ke(this,Lo,0),this.dropdownContentDirection="vertical",ke(this,$e,[]),ke(this,Me,[]),ke(this,ti,new Map),ke(this,ii,[]),ke(this,Oo,new ResizeObserver(oe(this,Y,fl).bind(this))),ke(this,Si,[]),ke(this,Pi,!1),ke(this,oi,e=>{const t=e.currentTarget;if(oe(this,Y,$n).call(this,t)){t.active=!0;const r=P(this,ti).get(t);r&&(r.active=!0),[...P(this,$e),...P(this,Me)].filter(o=>o!==t&&o!==r).forEach(o=>{oe(this,Y,$n).call(this,o)&&(o.active=!1)}),P(this,Me).some(o=>o.active&&o!==r)?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside")}})}connectedCallback(){super.connectedCallback(),oe(this,Y,gl).call(this)}disconnectedCallback(){super.disconnectedCallback(),P(this,Oo).unobserve(this),oe(this,Y,Un).call(this)}render(){return u`<div id="main"><div id="grid"><slot @slotchange="${oe(this,Y,yl)}"></slot></div><uui-button popovertarget="popover-container" style="display:none" id="more-button" label="More" compact="compact"><uui-symbol-more></uui-symbol-more></uui-button></div><uui-popover-container id="popover-container" popover placement="bottom-end"><div id="hidden-tabs-container">${Or(P(this,Me),e=>u`${e}`)}</div></uui-popover-container>`}},Lo=new WeakMap,$e=new WeakMap,Me=new WeakMap,ti=new WeakMap,ii=new WeakMap,Oo=new WeakMap,Si=new WeakMap,Pi=new WeakMap,Y=new WeakSet,gl=async function(){$(this,"uui-button"),$(this,"uui-popover-container"),$(this,"uui-symbol-more"),this.hasAttribute("role")||this.setAttribute("role","tablist"),await this.updateComplete,P(this,Oo).observe(this._mainElement)},fl=function(i){const e=Number.parseFloat(this.style.getPropertyValue("--uui-tab-group-gap"));(Number.isNaN(e)?0:e)!==P(this,Lo)?oe(this,Y,To).call(this):oe(this,Y,kn).call(this,i[0].contentBoxSize[0].inlineSize)},Un=function(){P(this,$e).forEach(i=>{i.removeEventListener("click",P(this,oi)),P(this,Si).forEach(e=>e.disconnect())}),P(this,Si).length=0,P(this,ii).length=0},yl=function(){oe(this,Y,Un).call(this),oe(this,Y,wl).call(this),P(this,$e).forEach(i=>{i.addEventListener("click",P(this,oi));const e=new ResizeObserver(oe(this,Y,To).bind(this));e.observe(i),P(this,Si).push(e)})},oi=new WeakMap,To=async function(){if(P(this,Pi))return;Ci(this,Pi,!0),requestAnimationFrame(()=>{Ci(this,Pi,!1)}),await this.updateComplete;const i=Number.parseFloat(this.style.getPropertyValue("--uui-tab-group-gap")),e=Number.isNaN(i)?0:i;Ci(this,Lo,e);let t=0;for(let o=0;o<P(this,$e).length;o++)P(this,$e)[o].style.display="",t+=P(this,$e)[o].offsetWidth,P(this,ii)[o]=t,t+=e;const r=2;this._mainElement.style.width=t-e+r+"px",oe(this,Y,kn).call(this,this._mainElement.offsetWidth)},wl=function(){Ci(this,$e,this._slottedNodes?this._slottedNodes:[]),oe(this,Y,To).call(this)},kn=function(i){const e=this._moreButtonElement.offsetWidth,t=i-(e||0);P(this,Me).forEach(s=>{s.removeEventListener("click",P(this,oi))}),Ci(this,Me,[]),P(this,ti).clear();let r=!1;const o=P(this,ii).length;for(let s=0;s<o;s++){const a=P(this,ii)[s],c=P(this,$e)[s];if(a<=(s===o-1?i:t))c.style.display="";else{const h=c.cloneNode(!0);h.addEventListener("click",P(this,oi)),h.classList.add("hidden-tab"),h.style.display="",h.orientation=this.dropdownContentDirection,P(this,ti).set(h,c),P(this,ti).set(c,h),P(this,Me).push(h),c.style.display="none",c.active&&(r=!0)}}P(this,Me).length===0?(this._moreButtonElement.style.display="none",this._popoverContainerElement.hidePopover()):this._moreButtonElement.style.display="",r?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside"),this.requestUpdate()},$n=function(i){return typeof i=="object"&&"active"in i&&typeof i.active=="boolean"},n.UUITabGroupElement.styles=[v`:host{min-width:0;display:flex;height:100%}#main{display:flex;justify-content:space-between;overflow:hidden}#grid{width:1fr;display:flex;height:100%;min-height:48px;overflow:hidden;text-wrap:nowrap;color:var(--uui-tab-text);gap:var(--uui-tab-group-gap,0)}#popover-container{--uui-tab-text:var(--uui-tab-group-dropdown-tab-text, unset);--uui-tab-text-hover:var(
1021
1021
  --uui-tab-group-dropdown-tab-text-hover,
1022
1022
  unset
1023
1023
  );--uui-tab-text-active:var(
1024
1024
  --uui-tab-group-dropdown-tab-text-active,
1025
1025
  unset
1026
- )}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}.hidden-tab{width:100%}#hidden-tabs-container{width:fit-content;display:flex;flex-direction:column;background-color:var(--uui-tab-group-dropdown-background,var(--uui-color-surface,#fff));border-radius:var(--uui-border-radius,3px);box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23));overflow:hidden}:host([dropdown-direction=horizontal]) #hidden-tabs-container{flex-direction:row}#more-button{position:relative;--uui-button-contrast:var(--uui-tab-text);--uui-button-contrast-hover:var(--uui-tab-text-hover);--uui-button-background-color:transparent;--uui-button-background-color-hover:transparent}#more-button::before{content:'';position:absolute;bottom:0;width:100%;background-color:var(--uui-color-current,#f5c1bc);height:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}#more-button.active-inside::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}`],ei([A("#more-button")],n.UUITabGroupElement.prototype,"_moreButtonElement",2),ei([A("#popover-container")],n.UUITabGroupElement.prototype,"_popoverContainerElement",2),ei([A("#main")],n.UUITabGroupElement.prototype,"_mainElement",2),ei([Ne({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],n.UUITabGroupElement.prototype,"_slottedNodes",2),ei([l({type:String,reflect:!0,attribute:"dropdown-content-direction"})],n.UUITabGroupElement.prototype,"dropdownContentDirection",2),n.UUITabGroupElement=ei([b("uui-tab-group")],n.UUITabGroupElement);class Om extends L{}class Tm extends L{}var Nm=Object.defineProperty,Bm=Object.getOwnPropertyDescriptor,_n=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Nm(e,t,o),o};n.UUITagElement=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return u`<slot></slot>`}},n.UUITagElement.styles=[m`:host{display:inline-block;font-size:var(--uui-tag-font-size,var(--uui-type-small-size,12px));font-weight:700;line-height:1;padding:var(--uui-tag-padding,var(--uui-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em));border-radius:100px;user-select:none;border-radius:var(--uui-tag-border-radius,var(--uui-size-4,12px));border:1px solid var(--uui-tag-border-color,transparent)}slot{display:flex;align-items:center;justify-content:center;margin:2px}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:transparent;color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:transparent;color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}`],_n([l({reflect:!0})],n.UUITagElement.prototype,"color",2),_n([l({reflect:!0})],n.UUITagElement.prototype,"look",2),n.UUITagElement=_n([b("uui-tag")],n.UUITagElement);class Si extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}}Si.CHANGE="change",Si.INPUT="input";var Dm=Object.defineProperty,Vm=Object.getOwnPropertyDescriptor,K=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dm(e,t,o),o};n.UUITextareaElement=class extends ge(v,""){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.name="",this.error=!1,this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.autoHeight=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&this.value.length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&this.value.length>this.maxlength)}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this),this.autoHeight&&requestAnimationFrame(()=>{this.autoUpdateHeight()})}async focus(){await this.updateComplete,this._textarea.focus()}async blur(){await this.updateComplete,this._textarea.blur()}async click(){await this.updateComplete,this._textarea.click()}getFormElement(){return this._textarea}onInput(e){this.value=e.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Si(Si.CHANGE))}autoUpdateHeight(){const e=this.shadowRoot.host,t=this._textarea,r=e.scrollTop,o=getComputedStyle(e).height;e.style.display="block",e.style.height=o,t.style.height="auto",t.scrollHeight+2>t.clientHeight?t.style.height=t.scrollHeight+2+"px":t.scrollHeight+2<t.clientHeight&&t.style.removeProperty("height"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=r}render(){return u`<textarea id="textarea" rows="${k(this.rows)}" cols="${k(this.cols)}" .value="${this.value}" .name="${this.name}" wrap="${k(this.wrap)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
1027
- </textarea>`}},n.UUITextareaElement.formAssociated=!0,n.UUITextareaElement.styles=[m`:host{position:relative}:host([error]) textarea,:host([error]) textarea[disabled]{border:1px solid var(--uui-color-danger,#d42054)!important}:host(:not([pristine]):invalid) textarea,:host(:not([pristine])[internals-invalid]) textarea{border-color:var(--uui-color-danger,#d42054)}:host([auto-height]) textarea{resize:none}.label{display:inline-block;margin-bottom:var(--uui-size-1,3px);font-weight:700}textarea[readonly]{border-color:var(--uui-textarea-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2));background-color:var(--uui-textarea-background-color-readonly,var(--uui-color-disabled,#f3f3f5))}textarea[disabled]{cursor:not-allowed;background-color:var(--uui-textarea-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-textarea-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}textarea{color:var(--uui-color-text,#060606);font-family:inherit;line-height:var(--uui-size-6,18px);box-sizing:border-box;min-width:100%;max-width:100%;font-size:inherit;padding:var(--uui-size-2,6px);border:1px solid var(--uui-textarea-border-color,var(--uui-color-border,#d8d7d9));border-radius:0;outline:0;min-height:var(--uui-textarea-min-height);max-height:var(--uui-textarea-max-height);background-color:var(--uui-textarea-background-color,var(--uui-color-surface,#fff))}:host(:focus) textarea,:host(:hover) textarea:not([readonly]):not([disabled]) :host(:focus-within) textarea{border-color:var(--uui-textarea-border-color,var(--uui-color-border-emphasis,#a1a1a1))}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}`],K([l()],n.UUITextareaElement.prototype,"placeholder",2),K([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"disabled",2),K([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"readonly",2),K([l({type:String})],n.UUITextareaElement.prototype,"name",2),K([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"error",2),K([l({type:Number})],n.UUITextareaElement.prototype,"minlength",2),K([l({type:String,attribute:"minlength-message"})],n.UUITextareaElement.prototype,"minlengthMessage",2),K([l({type:Number})],n.UUITextareaElement.prototype,"maxlength",2),K([l({type:String,attribute:"maxlength-message"})],n.UUITextareaElement.prototype,"maxlengthMessage",2),K([A("#textarea")],n.UUITextareaElement.prototype,"_textarea",2),K([l({type:Boolean,attribute:"auto-height",reflect:!0})],n.UUITextareaElement.prototype,"autoHeight",2),K([l({type:String})],n.UUITextareaElement.prototype,"label",2),K([l({type:Number})],n.UUITextareaElement.prototype,"rows",2),K([l({type:Number})],n.UUITextareaElement.prototype,"cols",2),K([l({type:String})],n.UUITextareaElement.prototype,"wrap",2),n.UUITextareaElement=K([b("uui-textarea")],n.UUITextareaElement);let Z=class extends L{};Z.OPENING="opening",Z.OPENED="opened",Z.CLOSING="closing",Z.CLOSED="closed";var jm=Object.defineProperty,Hm=Object.getOwnPropertyDescriptor,ri=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jm(e,t,o),o};n.UUIToastNotificationElement=class extends v{constructor(){super(),this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._open=!1,this._animate=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",e=>{e.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(e){this._autoClose=e,e!==null?(this._timer===null?this._timer=new lc(this._onOpenTimerComplete,e):this._timer.setDuration(e),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):(this._timer?.destroy(),this._timer=null)}pauseAutoClose(){this._pauseTimer=!0,this._timer!==null&&this._timer.pause()}resumeAutoClose(){this._pauseTimer=!1,this._timer!==null&&this.isOpen===!0&&this._animate===!1&&this._timer.restart()}get open(){return this._open}set open(e){e===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),$(this,"uui-button"),$(this,"uui-icon")}_getAnimationDuration(){return parseInt(getComputedStyle(this).getPropertyValue("--uui-toast-notification-animation-duration"),10)||480}_makeOpen(){this._open!==!0&&(this._open=!0,this.updateComplete.then(()=>{this._open===!0&&(cancelAnimationFrame(this._requestAnimationUpdate),this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!0,this.setAttribute("is-open",""),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,this.dispatchEvent(new Z(Z.OPENING)),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&this._timer?.start(),this.dispatchEvent(new Z(Z.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){if(this._open===!1)return;const e=new Z(Z.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,this._timer?.pause(),cancelAnimationFrame(this._requestAnimationUpdate),this.isOpen===!0&&(this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!1,this.removeAttribute("is-open"),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,requestAnimationFrame(()=>{this.style.height="0"}),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!1&&(this._animate=!1,this.dispatchEvent(new Z(Z.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return u`<div id="toast" class="${this._animate?"animate":""}"><div><div id="close"><uui-button .label="${"close"}" .color="${this.color}" .look="${this.color?"primary":"default"}" @click="${()=>this.open=!1}"><uui-icon name="remove" .fallback="${ar.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},n.UUIToastNotificationElement.styles=[ci,m`:host{--uui-toast-notification-margin:var(--uui-size-space-2,6px);position:relative;display:block;width:100%;max-width:400px;margin:0 var(--uui-toast-notification-margin);box-sizing:border-box;height:0;pointer-events:none;transition:height var(--uui-toast-notification-animation-duration,480ms) ease-in-out}:host([is-open]){pointer-events:all;transition-timing-function:cubic-bezier(.19,1,.22,1)}#toast{position:relative;display:block;padding:calc(var(--uui-toast-notification-margin) * .5) 0;width:100%;max-width:400px}#toast.animate{position:absolute}#toast>div{position:relative;display:block;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));background-color:var(--uui-color-surface,#fff);padding:var(--uui-size-layout-1,24px);padding-right:var(--uui-size-layout-1,24px);padding-left:var(--uui-size-layout-3,42px);border-radius:calc(var(--uui-border-radius,3px) * 2);opacity:0;transition:opacity var(--uui-toast-notification-animation-duration,480ms)}:host([is-open]) #toast>div{opacity:1}#close{float:right;margin-top:-6px;margin-left:var(--uui-size-space-1,3px);margin-bottom:-4px}#close>uui-button{--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}:host #toast>div{background-color:var(--uui-color-surface,#fff);color:var(--uui-color-text,#060606);border-color:var(--uui-color-surface,#fff)}:host([color=default]) #toast>div{background-color:var(--uui-color-default,#1b264f);color:var(--uui-color-default-contrast,#fff);border-color:var(--uui-color-default-standalone,#1c233b)}:host([color=positive]) #toast>div{background-color:var(--uui-color-positive,#0b8152);color:var(--uui-color-positive-contrast,#fff);border-color:var(--uui-color-positive-standalone,#0a7349)}:host([color=warning]) #toast>div{background-color:var(--uui-color-warning,#fbd142);color:var(--uui-color-warning-contrast,#000);border-color:var(--uui-color-warning-standalone,#a17700)}:host([color=danger]) #toast>div{background-color:var(--uui-color-danger,#d42054);color:var(--uui-color-danger-contrast,#fff);border-color:var(--uui-color-danger-standalone,#bf214e)}`],ri([l({reflect:!0})],n.UUIToastNotificationElement.prototype,"color",2),ri([l({type:Number})],n.UUIToastNotificationElement.prototype,"autoClose",1),ri([A("#toast")],n.UUIToastNotificationElement.prototype,"_toastEl",2),ri([w()],n.UUIToastNotificationElement.prototype,"_animate",2),ri([l({type:Boolean,reflect:!0})],n.UUIToastNotificationElement.prototype,"open",1),n.UUIToastNotificationElement=ri([b("uui-toast-notification")],n.UUIToastNotificationElement);var Rm=Object.defineProperty,Fm=Object.getOwnPropertyDescriptor,hl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rm(e,t,o),o};n.UUIToastNotificationContainerElement=class extends v{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{this._autoClosePause=!0,this._toasts?.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,this._toasts?.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=e=>{this.removeToast(e.target)},this._toasts=[],this.onSlotChanged=e=>{const t=[...this._toasts];this._toasts=e.target.assignedElements({flatten:!0}).filter(r=>r.nodeName==="UUI-TOAST-NOTIFICATION"),t.filter(r=>this._toasts.indexOf(r)===-1).forEach(r=>{r.removeEventListener(Z.CLOSED,this.onToastClosed),r.removeEventListener("mouseenter",this.pauseAutoClose),r.removeEventListener("mouseleave",this.resumeAutoClose),r.removeEventListener("focus",this.pauseAutoClose),r.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(r=>t.indexOf(r)===-1).forEach(r=>{r.addEventListener(Z.CLOSED,this.onToastClosed),r.addEventListener("mouseenter",this.pauseAutoClose),r.addEventListener("mouseleave",this.resumeAutoClose),r.addEventListener("focus",this.pauseAutoClose),r.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(r.autoClose=this._autoClose),this._autoClosePause===!0&&r.pauseAutoClose(),r.open=!0})}}get autoClose(){return this._autoClose}set autoClose(e){this._autoClose=e,this._toasts?.forEach(t=>t.autoClose=e)}removeToast(e){if(!e)e=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(e)===-1){console.warn("Toast-notification",e,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(e)}closeToast(e){let t=e;t||(t=this._toasts[this._toasts.length-1]),t.open=!1}render(){return u`<slot @slotchange="${this.onSlotChanged}"></slot>`}},n.UUIToastNotificationContainerElement.styles=[m`:host{position:absolute;overflow:hidden;max-width:100%;height:100%;pointer-events:none;box-sizing:border-box}slot{display:flex;flex-direction:column;align-items:end;height:100%;box-sizing:border-box;padding-top:var(--uui-size-space-1,3px);padding-bottom:var(--uui-size-space-1,3px)}:host([bottom-up]) slot{justify-content:end}:host([left-align]) slot{align-items:start}`],hl([l({type:Number,reflect:!0,attribute:"auto-close"})],n.UUIToastNotificationContainerElement.prototype,"_autoClose",2),n.UUIToastNotificationContainerElement=hl([b("uui-toast-notification-container")],n.UUIToastNotificationContainerElement);var Gm=Object.defineProperty,Wm=Object.getOwnPropertyDescriptor,Un=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gm(e,t,o),o};n.UUIToastNotificationLayoutElement=class extends v{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}render(){return u`<div id="message" class="uui-text"><h5 style="${this._headlineSlotHasContent||this.headline&&this.headline!==""?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot></slot><slot id="actions" name="actions"></slot></div>`}},n.UUIToastNotificationLayoutElement.styles=[ci,m`#message{margin-bottom:calc(var(--uui-size-space-1,3px) * -1)}#message::after{content:'';display:block;clear:both}#actions{display:block;float:right;margin-top:var(--uui-size-space-4,12px);margin-bottom:calc(var(--uui-size-space-2,6px) * -1)}`],Un([l({type:String})],n.UUIToastNotificationLayoutElement.prototype,"headline",2),Un([w()],n.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIToastNotificationLayoutElement=Un([b("uui-toast-notification-layout")],n.UUIToastNotificationLayoutElement);var qm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIToggleElement=class extends re{constructor(){super("switch")}renderCheckbox(){return u`<div id="slider"><div id="icon-checked">${Gi}</div><div id="icon-unchecked">${ar}</div></div>`}},n.UUIToggleElement.formAssociated=!0,n.UUIToggleElement.styles=[...re.styles,ji,m`:host{--uui-toggle-size:18px;--uui-toggle-switch-width:calc(2 * var(--uui-toggle-size))}#slider{position:relative;grid-area:'input';display:flex;align-items:center;flex-shrink:0;width:var(--uui-toggle-switch-width);height:var(--uui-toggle-size);border-radius:100px;background-color:var(--uui-toggle-background-color,var(--uui-color-border,#d8d7d9));border:1px solid var(--uui-toggle-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-toggle-size) * .6)}label:hover input:not([disabled])~#slider{border-color:var(--uui-toggle-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-toggle-background-color-hover,var(--uui-color-border,#d8d7d9))}label:focus #slider{border-color:var(--uui-toggle-border-color-focus,var(--uui-color-focus,#3879ff));background-color:var(--uui-toggle-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked~#slider{background-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-checked,#icon-unchecked{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:color 120ms}#icon-checked{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);color:var(--uui-color-interactive,#1b264f)}#icon-unchecked{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);color:var(--uui-color-interactive,#1b264f)}input:checked~#slider #icon-checked{color:var(--uui-color-selected-contrast,#fff)}#slider::after{content:'';position:absolute;top:2px;left:2px;width:calc(var(--uui-toggle-size) - 4px);height:calc(var(--uui-toggle-size) - 4px);border-radius:100px;background-color:var(--uui-color-selected-contrast,#fff);transition:width 120ms ease,left 120ms ease,transform 120ms ease,background-color 120ms}input:checked~#slider::after{left:calc(100% - 2px);transform:translateX(-100%)}input:focus~#slider{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled],[readonly])) label:active #slider::after{width:calc(1.06 * var(--uui-toggle-size))}:host([disabled]) #slider{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}:host([disabled]) input:checked~#slider{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #slider::after{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #slider #icon-unchecked{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #slider{animation:${Hi}}:host([disabled]) input:checked #slider #icon-checked{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host(:not([pristine]):invalid) #slider,:host(:not([pristine]):invalid) label:hover #slider,:host(:not([pristine])[internals-invalid]) #slider,:host(:not([pristine])[internals-invalid]) label:hover #slider{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],n.UUIToggleElement=qm([b("uui-toggle")],n.UUIToggleElement);var Km=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIVisuallyHiddenElement=class extends v{render(){return u`<slot></slot>`}},n.UUIVisuallyHiddenElement.styles=[m`:host(:not(:focus-within)){position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:none!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important}`],n.UUIVisuallyHiddenElement=Km([b("uui-visually-hidden")],n.UUIVisuallyHiddenElement),n.ActiveMixin=jl,n.LabelMixin=Rl,n.PopoverTargetMixin=hu,n.SelectOnlyMixin=Yl,n.SelectableMixin=Wl,n.Timer=tu,n.UUIBlinkAnimationValue=Ll,n.UUIBlinkKeyframes=Ml,n.UUIBooleanInputElement=re,n.UUIBooleanInputEvent=Vi,n.UUIButtonInlineCreateEvent=Ri,n.UUICardEvent=xt,n.UUIColorAreaEvent=eo,n.UUIColorPickerChangeEvent=zt,n.UUIColorSliderEvent=oo,n.UUIColorSwatchesEvent=Lt,n.UUIComboboxEvent=te,n.UUIComboboxListEvent=he,n.UUIEvent=Qo,n.UUIFileDropzoneEvent=Bt,n.UUIFormControlEvent=Ie,n.UUIFormControlMixin=eu,n.UUIHorizontalPulseAnimationValue=Tl,n.UUIHorizontalPulseKeyframes=Ol,n.UUIHorizontalShakeAnimationValue=Bl,n.UUIHorizontalShakeKeyframes=Nl,n.UUIIconHost=Mr,n.UUIIconRegistry=Lr,n.UUIIconRegistryEssential=ma,n.UUIIconRequestEvent=Vt,n.UUIInputEvent=st,n.UUIInputLockEvent=bo,n.UUIInterfaceColorValues=mu,n.UUIInterfaceHeadingValues=bu,n.UUIInterfaceLookValues=pu,n.UUIMenuItemEvent=Se,n.UUIModalCloseEndEvent=wa,n.UUIModalCloseEvent=Rt,n.UUIModalElement=ie,n.UUIModalOpenEvent=ya,n.UUIPaginationEvent=je,n.UUIRadioEvent=Xt,n.UUIRadioGroupEvent=Uo,n.UUIRefEvent=Qt,n.UUISelectEvent=Co,n.UUISelectableEvent=Ze,n.UUISliderEvent=dt,n.UUITabEvent=Om,n.UUITabGroupEvent=Tm,n.UUITextStyles=ci,n.UUITextareaEvent=Si,n.UUIToastNotificationEvent=Z,n.clamp=ru,n.defineElement=du,n.demandCustomElement=iu,n.drag=ou,n.findAncestorByAttributeValue=Wn,n.reverseNumberInRange=nu,n.slotHasContent=au,n.toHex=su});
1026
+ )}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}.hidden-tab{width:100%}#hidden-tabs-container{width:fit-content;display:flex;flex-direction:column;background-color:var(--uui-tab-group-dropdown-background,var(--uui-color-surface,#fff));border-radius:var(--uui-border-radius,3px);box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23));overflow:hidden}:host([dropdown-direction=horizontal]) #hidden-tabs-container{flex-direction:row}#more-button{position:relative;--uui-button-contrast:var(--uui-tab-text);--uui-button-contrast-hover:var(--uui-tab-text-hover);--uui-button-background-color:transparent;--uui-button-background-color-hover:transparent}#more-button::before{content:'';position:absolute;bottom:0;width:100%;background-color:var(--uui-color-current,#f5c1bc);height:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}#more-button.active-inside::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}`],ei([A("#more-button")],n.UUITabGroupElement.prototype,"_moreButtonElement",2),ei([A("#popover-container")],n.UUITabGroupElement.prototype,"_popoverContainerElement",2),ei([A("#main")],n.UUITabGroupElement.prototype,"_mainElement",2),ei([Ne({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],n.UUITabGroupElement.prototype,"_slottedNodes",2),ei([l({type:String,reflect:!0,attribute:"dropdown-content-direction"})],n.UUITabGroupElement.prototype,"dropdownContentDirection",2),n.UUITabGroupElement=ei([g("uui-tab-group")],n.UUITabGroupElement);class Gm extends L{}class Wm extends L{}var qm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,En=(i,e,t,r)=>{for(var o=r>1?void 0:r?Km(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&qm(e,t,o),o};n.UUITagElement=class extends f{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return u`<slot></slot>`}},n.UUITagElement.styles=[v`:host{display:inline-block;font-size:var(--uui-tag-font-size,var(--uui-type-small-size,12px));font-weight:700;line-height:1;padding:var(--uui-tag-padding,var(--uui-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em));border-radius:100px;user-select:none;border-radius:var(--uui-tag-border-radius,var(--uui-size-4,12px));border:1px solid var(--uui-tag-border-color,transparent)}slot{display:flex;align-items:center;justify-content:center;margin:2px}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:transparent;color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:transparent;color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}`],En([l({reflect:!0})],n.UUITagElement.prototype,"color",2),En([l({reflect:!0})],n.UUITagElement.prototype,"look",2),n.UUITagElement=En([g("uui-tag")],n.UUITagElement);class Ai extends L{constructor(e,t={}){super(e,{bubbles:!0,...t})}}Ai.CHANGE="change",Ai.INPUT="input";var Xm=Object.defineProperty,Ym=Object.getOwnPropertyDescriptor,K=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ym(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Xm(e,t,o),o};n.UUITextareaElement=class extends ve(f,""){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.name="",this.error=!1,this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.autoHeight=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&this.value.length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&this.value.length>this.maxlength)}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this),this.autoHeight&&requestAnimationFrame(()=>{this.autoUpdateHeight()})}async focus(){await this.updateComplete,this._textarea.focus()}async blur(){await this.updateComplete,this._textarea.blur()}async click(){await this.updateComplete,this._textarea.click()}getFormElement(){return this._textarea}onInput(e){this.value=e.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Ai(Ai.CHANGE))}autoUpdateHeight(){const e=this.shadowRoot.host,t=this._textarea,r=e.scrollTop,o=getComputedStyle(e).height;e.style.display="block",e.style.height=o,t.style.height="auto",t.scrollHeight+2>t.clientHeight?t.style.height=t.scrollHeight+2+"px":t.scrollHeight+2<t.clientHeight&&t.style.removeProperty("height"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=r}render(){return u`<textarea id="textarea" rows="${k(this.rows)}" cols="${k(this.cols)}" .value="${this.value}" .name="${this.name}" wrap="${k(this.wrap)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
1027
+ </textarea>`}},n.UUITextareaElement.formAssociated=!0,n.UUITextareaElement.styles=[v`:host{position:relative}:host([error]) textarea,:host([error]) textarea[disabled]{border:1px solid var(--uui-color-danger,#d42054)!important}:host(:not([pristine]):invalid) textarea,:host(:not([pristine])[internals-invalid]) textarea{border-color:var(--uui-color-danger,#d42054)}:host([auto-height]) textarea{resize:none}.label{display:inline-block;margin-bottom:var(--uui-size-1,3px);font-weight:700}textarea[readonly]{border-color:var(--uui-textarea-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2));background-color:var(--uui-textarea-background-color-readonly,var(--uui-color-disabled,#f3f3f5))}textarea[disabled]{cursor:not-allowed;background-color:var(--uui-textarea-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-textarea-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}textarea{color:var(--uui-color-text,#060606);font-family:inherit;line-height:var(--uui-size-6,18px);box-sizing:border-box;min-width:100%;max-width:100%;font-size:inherit;padding:var(--uui-size-2,6px);border:1px solid var(--uui-textarea-border-color,var(--uui-color-border,#d8d7d9));border-radius:0;outline:0;min-height:var(--uui-textarea-min-height);max-height:var(--uui-textarea-max-height);background-color:var(--uui-textarea-background-color,var(--uui-color-surface,#fff))}:host(:focus) textarea,:host(:hover) textarea:not([readonly]):not([disabled]) :host(:focus-within) textarea{border-color:var(--uui-textarea-border-color,var(--uui-color-border-emphasis,#a1a1a1))}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}`],K([l()],n.UUITextareaElement.prototype,"placeholder",2),K([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"disabled",2),K([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"readonly",2),K([l({type:String})],n.UUITextareaElement.prototype,"name",2),K([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"error",2),K([l({type:Number})],n.UUITextareaElement.prototype,"minlength",2),K([l({type:String,attribute:"minlength-message"})],n.UUITextareaElement.prototype,"minlengthMessage",2),K([l({type:Number})],n.UUITextareaElement.prototype,"maxlength",2),K([l({type:String,attribute:"maxlength-message"})],n.UUITextareaElement.prototype,"maxlengthMessage",2),K([A("#textarea")],n.UUITextareaElement.prototype,"_textarea",2),K([l({type:Boolean,attribute:"auto-height",reflect:!0})],n.UUITextareaElement.prototype,"autoHeight",2),K([l({type:String})],n.UUITextareaElement.prototype,"label",2),K([l({type:Number})],n.UUITextareaElement.prototype,"rows",2),K([l({type:Number})],n.UUITextareaElement.prototype,"cols",2),K([l({type:String})],n.UUITextareaElement.prototype,"wrap",2),n.UUITextareaElement=K([g("uui-textarea")],n.UUITextareaElement);let Z=class extends L{};Z.OPENING="opening",Z.OPENED="opened",Z.CLOSING="closing",Z.CLOSED="closed";var Zm=Object.defineProperty,Qm=Object.getOwnPropertyDescriptor,ri=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zm(e,t,o),o};n.UUIToastNotificationElement=class extends f{constructor(){super(),this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._open=!1,this._animate=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",e=>{e.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(e){this._autoClose=e,e!==null?(this._timer===null?this._timer=new fc(this._onOpenTimerComplete,e):this._timer.setDuration(e),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):(this._timer?.destroy(),this._timer=null)}pauseAutoClose(){this._pauseTimer=!0,this._timer!==null&&this._timer.pause()}resumeAutoClose(){this._pauseTimer=!1,this._timer!==null&&this.isOpen===!0&&this._animate===!1&&this._timer.restart()}get open(){return this._open}set open(e){e===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),$(this,"uui-button"),$(this,"uui-icon")}_getAnimationDuration(){return parseInt(getComputedStyle(this).getPropertyValue("--uui-toast-notification-animation-duration"),10)||480}_makeOpen(){this._open!==!0&&(this._open=!0,this.updateComplete.then(()=>{this._open===!0&&(cancelAnimationFrame(this._requestAnimationUpdate),this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!0,this.setAttribute("is-open",""),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,this.dispatchEvent(new Z(Z.OPENING)),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&this._timer?.start(),this.dispatchEvent(new Z(Z.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){if(this._open===!1)return;const e=new Z(Z.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,this._timer?.pause(),cancelAnimationFrame(this._requestAnimationUpdate),this.isOpen===!0&&(this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!1,this.removeAttribute("is-open"),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,requestAnimationFrame(()=>{this.style.height="0"}),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!1&&(this._animate=!1,this.dispatchEvent(new Z(Z.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return u`<div id="toast" class="${this._animate?"animate":""}"><div><div id="close"><uui-button .label="${"close"}" .color="${this.color}" .look="${this.color?"primary":"default"}" @click="${()=>this.open=!1}"><uui-icon name="remove" .fallback="${hr.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},n.UUIToastNotificationElement.styles=[ci,v`:host{--uui-toast-notification-margin:var(--uui-size-space-2,6px);position:relative;display:block;width:100%;max-width:400px;margin:0 var(--uui-toast-notification-margin);box-sizing:border-box;height:0;pointer-events:none;transition:height var(--uui-toast-notification-animation-duration,480ms) ease-in-out}:host([is-open]){pointer-events:all;transition-timing-function:cubic-bezier(.19,1,.22,1)}#toast{position:relative;display:block;padding:calc(var(--uui-toast-notification-margin) * .5) 0;width:100%;max-width:400px}#toast.animate{position:absolute}#toast>div{position:relative;display:block;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));background-color:var(--uui-color-surface,#fff);padding:var(--uui-size-layout-1,24px);padding-right:var(--uui-size-layout-1,24px);padding-left:var(--uui-size-layout-3,42px);border-radius:calc(var(--uui-border-radius,3px) * 2);opacity:0;transition:opacity var(--uui-toast-notification-animation-duration,480ms)}:host([is-open]) #toast>div{opacity:1}#close{float:right;margin-top:-6px;margin-left:var(--uui-size-space-1,3px);margin-bottom:-4px}#close>uui-button{--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}:host #toast>div{background-color:var(--uui-color-surface,#fff);color:var(--uui-color-text,#060606);border-color:var(--uui-color-surface,#fff)}:host([color=default]) #toast>div{background-color:var(--uui-color-default,#1b264f);color:var(--uui-color-default-contrast,#fff);border-color:var(--uui-color-default-standalone,#1c233b)}:host([color=positive]) #toast>div{background-color:var(--uui-color-positive,#0b8152);color:var(--uui-color-positive-contrast,#fff);border-color:var(--uui-color-positive-standalone,#0a7349)}:host([color=warning]) #toast>div{background-color:var(--uui-color-warning,#fbd142);color:var(--uui-color-warning-contrast,#000);border-color:var(--uui-color-warning-standalone,#a17700)}:host([color=danger]) #toast>div{background-color:var(--uui-color-danger,#d42054);color:var(--uui-color-danger-contrast,#fff);border-color:var(--uui-color-danger-standalone,#bf214e)}`],ri([l({reflect:!0})],n.UUIToastNotificationElement.prototype,"color",2),ri([l({type:Number})],n.UUIToastNotificationElement.prototype,"autoClose",1),ri([A("#toast")],n.UUIToastNotificationElement.prototype,"_toastEl",2),ri([w()],n.UUIToastNotificationElement.prototype,"_animate",2),ri([l({type:Boolean,reflect:!0})],n.UUIToastNotificationElement.prototype,"open",1),n.UUIToastNotificationElement=ri([g("uui-toast-notification")],n.UUIToastNotificationElement);var Jm=Object.defineProperty,eb=Object.getOwnPropertyDescriptor,_l=(i,e,t,r)=>{for(var o=r>1?void 0:r?eb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Jm(e,t,o),o};n.UUIToastNotificationContainerElement=class extends f{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{this._autoClosePause=!0,this._toasts?.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,this._toasts?.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=e=>{this.removeToast(e.target)},this._toasts=[],this.onSlotChanged=e=>{const t=[...this._toasts];this._toasts=e.target.assignedElements({flatten:!0}).filter(r=>r.nodeName==="UUI-TOAST-NOTIFICATION"),t.filter(r=>this._toasts.indexOf(r)===-1).forEach(r=>{r.removeEventListener(Z.CLOSED,this.onToastClosed),r.removeEventListener("mouseenter",this.pauseAutoClose),r.removeEventListener("mouseleave",this.resumeAutoClose),r.removeEventListener("focus",this.pauseAutoClose),r.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(r=>t.indexOf(r)===-1).forEach(r=>{r.addEventListener(Z.CLOSED,this.onToastClosed),r.addEventListener("mouseenter",this.pauseAutoClose),r.addEventListener("mouseleave",this.resumeAutoClose),r.addEventListener("focus",this.pauseAutoClose),r.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(r.autoClose=this._autoClose),this._autoClosePause===!0&&r.pauseAutoClose(),r.open=!0})}}get autoClose(){return this._autoClose}set autoClose(e){this._autoClose=e,this._toasts?.forEach(t=>t.autoClose=e)}removeToast(e){if(!e)e=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(e)===-1){console.warn("Toast-notification",e,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(e)}closeToast(e){let t=e;t||(t=this._toasts[this._toasts.length-1]),t.open=!1}render(){return u`<slot @slotchange="${this.onSlotChanged}"></slot>`}},n.UUIToastNotificationContainerElement.styles=[v`:host{position:absolute;overflow:hidden;max-width:100%;height:100%;pointer-events:none;box-sizing:border-box}slot{display:flex;flex-direction:column;align-items:end;height:100%;box-sizing:border-box;padding-top:var(--uui-size-space-1,3px);padding-bottom:var(--uui-size-space-1,3px)}:host([bottom-up]) slot{justify-content:end}:host([left-align]) slot{align-items:start}`],_l([l({type:Number,reflect:!0,attribute:"auto-close"})],n.UUIToastNotificationContainerElement.prototype,"_autoClose",2),n.UUIToastNotificationContainerElement=_l([g("uui-toast-notification-container")],n.UUIToastNotificationContainerElement);var tb=Object.defineProperty,ib=Object.getOwnPropertyDescriptor,In=(i,e,t,r)=>{for(var o=r>1?void 0:r?ib(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tb(e,t,o),o};n.UUIToastNotificationLayoutElement=class extends f{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}render(){return u`<div id="message" class="uui-text"><h5 style="${this._headlineSlotHasContent||this.headline&&this.headline!==""?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot></slot><slot id="actions" name="actions"></slot></div>`}},n.UUIToastNotificationLayoutElement.styles=[ci,v`#message{margin-bottom:calc(var(--uui-size-space-1,3px) * -1)}#message::after{content:'';display:block;clear:both}#actions{display:block;float:right;margin-top:var(--uui-size-space-4,12px);margin-bottom:calc(var(--uui-size-space-2,6px) * -1)}`],In([l({type:String})],n.UUIToastNotificationLayoutElement.prototype,"headline",2),In([w()],n.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIToastNotificationLayoutElement=In([g("uui-toast-notification-layout")],n.UUIToastNotificationLayoutElement);var ob=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIToggleElement=class extends re{constructor(){super("switch")}renderCheckbox(){return u`<div id="slider"><div id="icon-checked">${qi}</div><div id="icon-unchecked">${hr}</div></div>`}},n.UUIToggleElement.formAssociated=!0,n.UUIToggleElement.styles=[...re.styles,Ri,v`:host{--uui-toggle-size:18px;--uui-toggle-switch-width:calc(2 * var(--uui-toggle-size))}#slider{position:relative;grid-area:'input';display:flex;align-items:center;flex-shrink:0;width:var(--uui-toggle-switch-width);height:var(--uui-toggle-size);border-radius:100px;background-color:var(--uui-toggle-background-color,var(--uui-color-border,#d8d7d9));border:1px solid var(--uui-toggle-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-toggle-size) * .6)}label:hover input:not([disabled])~#slider{border-color:var(--uui-toggle-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-toggle-background-color-hover,var(--uui-color-border,#d8d7d9))}label:focus #slider{border-color:var(--uui-toggle-border-color-focus,var(--uui-color-focus,#3879ff));background-color:var(--uui-toggle-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked~#slider{background-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-checked,#icon-unchecked{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:color 120ms}#icon-checked{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);color:var(--uui-color-interactive,#1b264f)}#icon-unchecked{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);color:var(--uui-color-interactive,#1b264f)}input:checked~#slider #icon-checked{color:var(--uui-color-selected-contrast,#fff)}#slider::after{content:'';position:absolute;top:2px;left:2px;width:calc(var(--uui-toggle-size) - 4px);height:calc(var(--uui-toggle-size) - 4px);border-radius:100px;background-color:var(--uui-color-selected-contrast,#fff);transition:width 120ms ease,left 120ms ease,transform 120ms ease,background-color 120ms}input:checked~#slider::after{left:calc(100% - 2px);transform:translateX(-100%)}input:focus~#slider{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled],[readonly])) label:active #slider::after{width:calc(1.06 * var(--uui-toggle-size))}:host([disabled]) #slider{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}:host([disabled]) input:checked~#slider{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #slider::after{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #slider #icon-unchecked{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #slider{animation:${Fi}}:host([disabled]) input:checked #slider #icon-checked{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host(:not([pristine]):invalid) #slider,:host(:not([pristine]):invalid) label:hover #slider,:host(:not([pristine])[internals-invalid]) #slider,:host(:not([pristine])[internals-invalid]) label:hover #slider{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],n.UUIToggleElement=ob([g("uui-toggle")],n.UUIToggleElement);var rb=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIVisuallyHiddenElement=class extends f{render(){return u`<slot></slot>`}},n.UUIVisuallyHiddenElement.styles=[v`:host(:not(:focus-within)){position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:none!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important}`],n.UUIVisuallyHiddenElement=rb([g("uui-visually-hidden")],n.UUIVisuallyHiddenElement),n.ActiveMixin=Zl,n.LabelMixin=Jl,n.PopoverTargetMixin=_u,n.SelectOnlyMixin=su,n.SelectableMixin=iu,n.Timer=hu,n.UUIBlinkAnimationValue=Fl,n.UUIBlinkKeyframes=Rl,n.UUIBooleanInputElement=re,n.UUIBooleanInputEvent=Hi,n.UUIButtonInlineCreateEvent=Gi,n.UUICardEvent=xt,n.UUIColorAreaEvent=io,n.UUIColorPickerChangeEvent=zt,n.UUIColorSliderEvent=no,n.UUIColorSwatchesEvent=Lt,n.UUIComboboxEvent=te,n.UUIComboboxListEvent=he,n.UUIEvent=er,n.UUIFileDropzoneEvent=Bt,n.UUIFormControlEvent=Ie,n.UUIFormControlMixin=cu,n.UUIHorizontalPulseAnimationValue=Wl,n.UUIHorizontalPulseKeyframes=Gl,n.UUIHorizontalShakeAnimationValue=Kl,n.UUIHorizontalShakeKeyframes=ql,n.UUIIconHost=Nr,n.UUIIconRegistry=Br,n.UUIIconRegistryEssential=$a,n.UUIIconRequestEvent=Vt,n.UUIInputEvent=st,n.UUIInputLockEvent=go,n.UUIInterfaceColorValues=$u,n.UUIInterfaceHeadingValues=Eu,n.UUIInterfaceLookValues=ku,n.UUIMenuItemEvent=Se,n.UUIModalCloseEndEvent=Pa,n.UUIModalCloseEvent=Rt,n.UUIModalElement=ie,n.UUIModalOpenEvent=Sa,n.UUIPaginationEvent=je,n.UUIRadioEvent=Xt,n.UUIRadioGroupEvent=$o,n.UUIRefEvent=Qt,n.UUISelectEvent=Po,n.UUISelectableEvent=Ze,n.UUISliderEvent=dt,n.UUITabEvent=Gm,n.UUITabGroupEvent=Wm,n.UUITextStyles=ci,n.UUITextareaEvent=Ai,n.UUIToastNotificationEvent=Z,n.clamp=mu,n.defineElement=Uu,n.demandCustomElement=du,n.drag=pu,n.findAncestorByAttributeValue=Jn,n.reverseNumberInRange=bu,n.slotHasContent=gu,n.toHex=vu});
1028
1028
  //# sourceMappingURL=uui.min.js.map