@umbraco-ui/uui 0.2.2 → 1.0.0-rc.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
@@ -1,46 +1,46 @@
1
- (function(n,c){typeof exports=="object"&&typeof module<"u"?c(exports):typeof define=="function"&&define.amd?define(["exports"],c):(n=typeof globalThis<"u"?globalThis:n||self,c(n.uui={}))})(this,function(n){"use strict";function c(t,e){return r=>{if(t.indexOf("-")>0===!1){console.error(`${t} 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(t)||window.customElements.define(t,r,e)}}/**
1
+ (function(n,u){typeof exports=="object"&&typeof module<"u"?u(exports):typeof define=="function"&&define.amd?define(["exports"],u):(n=typeof globalThis<"u"?globalThis:n||self,u(n.uui={}))})(this,function(n){"use strict";function u(t,e){return i=>{if(!(t.indexOf("-")>0)){console.error(`${t} 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(t)||window.customElements.define(t,i,e)}}/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const gt=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_t=Symbol(),ei=new Map;class ti{constructor(e,r){if(this._$cssResult$=!0,r!==_t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=ei.get(this.cssText);return gt&&e===void 0&&(ei.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const Pe=t=>new ti(typeof t=="string"?t:t+"",_t),d=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((o,i,s)=>o+(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.")})(i)+t[s+1],t[0]);return new ti(r,_t)},Lr=(t,e)=>{gt?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const o=document.createElement("style"),i=window.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)})},ii=gt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const o of e.cssRules)r+=o.cssText;return Pe(r)})(t):t;/**
5
+ */const Ut=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_t=Symbol(),ti=new Map;class ii{constructor(e,i){if(this._$cssResult$=!0,i!==_t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=ti.get(this.cssText);return Ut&&e===void 0&&(ti.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const ze=t=>new ii(typeof t=="string"?t:t+"",_t),d=(t,...e)=>{const i=t.length===1?t[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)+t[s+1],t[0]);return new ii(i,_t)},To=(t,e)=>{Ut?t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const r=document.createElement("style"),o=window.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=i.cssText,t.appendChild(r)})},oi=Ut?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return ze(i)})(t):t;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var yt;const ri=window.trustedTypes,Tr=ri?ri.emptyScript:"",oi=window.reactiveElementPolyfillSupport,Ut={toAttribute(t,e){switch(e){case Boolean:t=t?Tr:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},ni=(t,e)=>e!==t&&(e==e||t==t),wt={attribute:!0,type:String,converter:Ut,reflect:!1,hasChanged:ni};class ae extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var r;(r=this.l)!==null&&r!==void 0||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,o)=>{const i=this._$Eh(o,r);i!==void 0&&(this._$Eu.set(i,o),e.push(i))}),e}static createProperty(e,r=wt){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,o,r);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,r,o){return{get(){return this[r]},set(i){const s=this[e];this[r]=i,this.requestUpdate(e,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||wt}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const r=this.properties,o=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const i of o)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const i of o)r.unshift(ii(i))}else e!==void 0&&r.push(ii(e));return r}static _$Eh(e,r){const o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Em(),this.requestUpdate(),(e=this.constructor.l)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,o;((r=this._$Eg)!==null&&r!==void 0?r:this._$Eg=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var r;(r=this._$Eg)===null||r===void 0||r.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Et.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Lr(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$Eg)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostConnected)===null||o===void 0?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$Eg)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostDisconnected)===null||o===void 0?void 0:o.call(r)})}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$ES(e,r,o=wt){var i,s;const a=this.constructor._$Eh(e,o);if(a!==void 0&&o.reflect===!0){const v=((s=(i=o.converter)===null||i===void 0?void 0:i.toAttribute)!==null&&s!==void 0?s:Ut.toAttribute)(r,o.type);this._$Ei=e,v==null?this.removeAttribute(a):this.setAttribute(a,v),this._$Ei=null}}_$AK(e,r){var o,i,s;const a=this.constructor,v=a._$Eu.get(e);if(v!==void 0&&this._$Ei!==v){const b=a.getPropertyOptions(v),p=b.converter,I=(s=(i=(o=p)===null||o===void 0?void 0:o.fromAttribute)!==null&&i!==void 0?i:typeof p=="function"?p:null)!==null&&s!==void 0?s:Ut.fromAttribute;this._$Ei=v,this[v]=I(r,b.type),this._$Ei=null}}requestUpdate(e,r,o){let i=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||ni)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Ei!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):i=!1),!this.isUpdatePending&&i&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(r){Promise.reject(r)}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._$Et&&(this._$Et.forEach((i,s)=>this[s]=i),this._$Et=void 0);let r=!1;const o=this._$AL;try{r=this.shouldUpdate(o),r?(this.willUpdate(o),(e=this._$Eg)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdate)===null||s===void 0?void 0:s.call(i)}),this.update(o)):this._$EU()}catch(i){throw r=!1,this._$EU(),i}r&&this._$AE(o)}willUpdate(e){}_$AE(e){var r;(r=this._$Eg)===null||r===void 0||r.forEach(o=>{var i;return(i=o.hostUpdated)===null||i===void 0?void 0:i.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,o)=>this._$ES(o,this[o],r)),this._$EC=void 0),this._$EU()}updated(e){}firstUpdated(e){}}ae.finalized=!0,ae.elementProperties=new Map,ae.elementStyles=[],ae.shadowRootOptions={mode:"open"},oi?.({ReactiveElement:ae}),((yt=globalThis.reactiveElementVersions)!==null&&yt!==void 0?yt:globalThis.reactiveElementVersions=[]).push("1.3.1");/**
9
+ */var wt;const ri=window.trustedTypes,No=ri?ri.emptyScript:"",ni=window.reactiveElementPolyfillSupport,Et={toAttribute(t,e){switch(e){case Boolean:t=t?No:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},si=(t,e)=>e!==t&&(e==e||t==t),$t={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:si};class le extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var i;(i=this.l)!==null&&i!==void 0||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,r)=>{const o=this._$Eh(r,i);o!==void 0&&(this._$Eu.set(o,r),e.push(o))}),e}static createProperty(e,i=$t){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const r=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,r,i);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,i,r){return{get(){return this[i]},set(o){const s=this[e];this[i]=o,this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||$t}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const i=this.properties,r=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const o of r)this.createProperty(o,i[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)i.unshift(oi(o))}else e!==void 0&&i.push(oi(e));return i}static _$Eh(e,i){const r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Em(),this.requestUpdate(),(e=this.constructor.l)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,r;((i=this._$Eg)!==null&&i!==void 0?i:this._$Eg=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var i;(i=this._$Eg)===null||i===void 0||i.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return To(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$Eg)===null||e===void 0||e.forEach(i=>{var r;return(r=i.hostConnected)===null||r===void 0?void 0:r.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$Eg)===null||e===void 0||e.forEach(i=>{var r;return(r=i.hostDisconnected)===null||r===void 0?void 0:r.call(i)})}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ES(e,i,r=$t){var o,s;const a=this.constructor._$Eh(e,r);if(a!==void 0&&r.reflect===!0){const b=((s=(o=r.converter)===null||o===void 0?void 0:o.toAttribute)!==null&&s!==void 0?s:Et.toAttribute)(i,r.type);this._$Ei=e,b==null?this.removeAttribute(a):this.setAttribute(a,b),this._$Ei=null}}_$AK(e,i){var r,o,s;const a=this.constructor,b=a._$Eu.get(e);if(b!==void 0&&this._$Ei!==b){const m=a.getPropertyOptions(b),p=m.converter,I=(s=(o=(r=p)===null||r===void 0?void 0:r.fromAttribute)!==null&&o!==void 0?o:typeof p=="function"?p:null)!==null&&s!==void 0?s:Et.fromAttribute;this._$Ei=b,this[b]=I(i,m.type),this._$Ei=null}}requestUpdate(e,i,r){let o=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||si)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),r.reflect===!0&&this._$Ei!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(i){Promise.reject(i)}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._$Et&&(this._$Et.forEach((o,s)=>this[s]=o),this._$Et=void 0);let i=!1;const r=this._$AL;try{i=this.shouldUpdate(r),i?(this.willUpdate(r),(e=this._$Eg)===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._$EU()}catch(o){throw i=!1,this._$EU(),o}i&&this._$AE(r)}willUpdate(e){}_$AE(e){var i;(i=this._$Eg)===null||i===void 0||i.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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,r)=>this._$ES(r,this[r],i)),this._$EC=void 0),this._$EU()}updated(e){}firstUpdated(e){}}le.finalized=!0,le.elementProperties=new Map,le.elementStyles=[],le.shadowRootOptions={mode:"open"},ni?.({ReactiveElement:le}),((wt=globalThis.reactiveElementVersions)!==null&&wt!==void 0?wt:globalThis.reactiveElementVersions=[]).push("1.3.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var Et;const le=globalThis.trustedTypes,si=le?le.createPolicy("lit-html",{createHTML:t=>t}):void 0,B=`lit$${(Math.random()+"").slice(9)}$`,$t="?"+B,Nr=`<${$t}>`,ue=document,ke=(t="")=>ue.createComment(t),Oe=t=>t===null||typeof t!="object"&&typeof t!="function",ai=Array.isArray,li=t=>{var e;return ai(t)||typeof((e=t)===null||e===void 0?void 0:e[Symbol.iterator])=="function"},ze=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ui=/-->/g,ci=/>/g,G=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,di=/'/g,hi=/"/g,pi=/^(?:script|style|textarea|title)$/i,vi=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),u=vi(1),m=vi(2),H=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),bi=new WeakMap,Br=(t,e,r)=>{var o,i;const s=(o=r?.renderBefore)!==null&&o!==void 0?o:e;let a=s._$litPart$;if(a===void 0){const v=(i=r?.renderBefore)!==null&&i!==void 0?i:null;s._$litPart$=a=new de(e.insertBefore(ke(),v),v,void 0,r??{})}return a._$AI(t),a},ce=ue.createTreeWalker(ue,129,null,!1),fi=(t,e)=>{const r=t.length-1,o=[];let i,s=e===2?"<svg>":"",a=ze;for(let b=0;b<r;b++){const p=t[b];let I,_,f=-1,y=0;for(;y<p.length&&(a.lastIndex=y,_=a.exec(p),_!==null);)y=a.lastIndex,a===ze?_[1]==="!--"?a=ui:_[1]!==void 0?a=ci:_[2]!==void 0?(pi.test(_[2])&&(i=RegExp("</"+_[2],"g")),a=G):_[3]!==void 0&&(a=G):a===G?_[0]===">"?(a=i??ze,f=-1):_[1]===void 0?f=-2:(f=a.lastIndex-_[2].length,I=_[1],a=_[3]===void 0?G:_[3]==='"'?hi:di):a===hi||a===di?a=G:a===ui||a===ci?a=ze:(a=G,i=void 0);const w=a===G&&t[b+1].startsWith("/>")?" ":"";s+=a===ze?p+Nr:f>=0?(o.push(I),p.slice(0,f)+"$lit$"+p.slice(f)+B+w):p+B+(f===-2?(o.push(void 0),b):w)}const v=s+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[si!==void 0?si.createHTML(v):v,o]};class Se{constructor({strings:e,_$litType$:r},o){let i;this.parts=[];let s=0,a=0;const v=e.length-1,b=this.parts,[p,I]=fi(e,r);if(this.el=Se.createElement(p,o),ce.currentNode=this.el.content,r===2){const _=this.el.content,f=_.firstChild;f.remove(),_.append(...f.childNodes)}for(;(i=ce.nextNode())!==null&&b.length<v;){if(i.nodeType===1){if(i.hasAttributes()){const _=[];for(const f of i.getAttributeNames())if(f.endsWith("$lit$")||f.startsWith(B)){const y=I[a++];if(_.push(f),y!==void 0){const w=i.getAttribute(y.toLowerCase()+"$lit$").split(B),$=/([.?@])?(.*)/.exec(y);b.push({type:1,index:s,name:$[2],strings:w,ctor:$[1]==="."?gi:$[1]==="?"?_i:$[1]==="@"?yi:Ae})}else b.push({type:6,index:s})}for(const f of _)i.removeAttribute(f)}if(pi.test(i.tagName)){const _=i.textContent.split(B),f=_.length-1;if(f>0){i.textContent=le?le.emptyScript:"";for(let y=0;y<f;y++)i.append(_[y],ke()),ce.nextNode(),b.push({type:2,index:++s});i.append(_[f],ke())}}}else if(i.nodeType===8)if(i.data===$t)b.push({type:2,index:s});else{let _=-1;for(;(_=i.data.indexOf(B,_+1))!==-1;)b.push({type:7,index:s}),_+=B.length-1}s++}}static createElement(e,r){const o=ue.createElement("template");return o.innerHTML=e,o}}function q(t,e,r=t,o){var i,s,a,v;if(e===H)return e;let b=o!==void 0?(i=r._$Cl)===null||i===void 0?void 0:i[o]:r._$Cu;const p=Oe(e)?void 0:e._$litDirective$;return b?.constructor!==p&&((s=b?._$AO)===null||s===void 0||s.call(b,!1),p===void 0?b=void 0:(b=new p(t),b._$AT(t,r,o)),o!==void 0?((a=(v=r)._$Cl)!==null&&a!==void 0?a:v._$Cl=[])[o]=b:r._$Cu=b),b!==void 0&&(e=q(t,b._$AS(t,e.values),b,o)),e}class mi{constructor(e,r){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var r;const{el:{content:o},parts:i}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:ue).importNode(o,!0);ce.currentNode=s;let a=ce.nextNode(),v=0,b=0,p=i[0];for(;p!==void 0;){if(v===p.index){let I;p.type===2?I=new de(a,a.nextSibling,this,e):p.type===1?I=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(I=new Ui(a,this,e)),this.v.push(I),p=i[++b]}v!==p?.index&&(a=ce.nextNode(),v++)}return s}m(e){let r=0;for(const o of this.v)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}}class de{constructor(e,r,o,i){var s;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=i,this._$Cg=(s=i?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=q(this,e,r),Oe(e)?e===E||e==null||e===""?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==H&&this.$(e):e._$litType$!==void 0?this.T(e):e.nodeType!==void 0?this.k(e):li(e)?this.S(e):this.$(e)}M(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}k(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}$(e){this._$AH!==E&&Oe(this._$AH)?this._$AA.nextSibling.data=e:this.k(ue.createTextNode(e)),this._$AH=e}T(e){var r;const{values:o,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Se.createElement(i.h,this.options)),i);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.m(o);else{const a=new mi(s,this),v=a.p(this.options);a.m(o),this.k(v),this._$AH=a}}_$AC(e){let r=bi.get(e.strings);return r===void 0&&bi.set(e.strings,r=new Se(e)),r}S(e){ai(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let o,i=0;for(const s of e)i===r.length?r.push(o=new de(this.M(ke()),this.M(ke()),this,this.options)):o=r[i],o._$AI(s),i++;i<r.length&&(this._$AR(o&&o._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,r);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cg=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}}class Ae{constructor(e,r,o,i,s){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=E}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,o,i){const s=this.strings;let a=!1;if(s===void 0)e=q(this,e,r,0),a=!Oe(e)||e!==this._$AH&&e!==H,a&&(this._$AH=e);else{const v=e;let b,p;for(e=s[0],b=0;b<s.length-1;b++)p=q(this,v[o+b],r,b),p===H&&(p=this._$AH[b]),a||(a=!Oe(p)||p!==this._$AH[b]),p===E?e=E:e!==E&&(e+=(p??"")+s[b+1]),this._$AH[b]=p}a&&!i&&this.C(e)}C(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class gi extends Ae{constructor(){super(...arguments),this.type=3}C(e){this.element[this.name]=e===E?void 0:e}}const Hr=le?le.emptyScript:"";class _i extends Ae{constructor(){super(...arguments),this.type=4}C(e){e&&e!==E?this.element.setAttribute(this.name,Hr):this.element.removeAttribute(this.name)}}class yi extends Ae{constructor(e,r,o,i,s){super(e,r,o,i,s),this.type=5}_$AI(e,r=this){var o;if((e=(o=q(this,e,r,0))!==null&&o!==void 0?o:E)===H)return;const i=this._$AH,s=e===E&&i!==E||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==E&&(i===E||s);s&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,o;typeof this._$AH=="function"?this._$AH.call((o=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class Ui{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){q(this,e)}}const jr={L:"$lit$",P:B,V:$t,I:1,N:fi,R:mi,j:li,D:q,H:de,F:Ae,O:_i,W:yi,B:gi,Z:Ui},wi=window.litHtmlPolyfillSupport;wi?.(Se,de),((Et=globalThis.litHtmlVersions)!==null&&Et!==void 0?Et:globalThis.litHtmlVersions=[]).push("2.2.2");/**
13
+ */var It;const ce=globalThis.trustedTypes,ai=ce?ce.createPolicy("lit-html",{createHTML:t=>t}):void 0,H=`lit$${(Math.random()+"").slice(9)}$`,kt="?"+H,Do=`<${kt}>`,ue=document,Oe=(t="")=>ue.createComment(t),Pe=t=>t===null||typeof t!="object"&&typeof t!="function",li=Array.isArray,ci=t=>{var e;return li(t)||typeof((e=t)===null||e===void 0?void 0:e[Symbol.iterator])=="function"},Se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ui=/-->/g,di=/>/g,K=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,hi=/'/g,pi=/"/g,bi=/^(?:script|style|textarea|title)$/i,mi=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),c=mi(1),g=mi(2),M=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),vi=new WeakMap,jo=(t,e,i)=>{var r,o;const s=(r=i?.renderBefore)!==null&&r!==void 0?r:e;let a=s._$litPart$;if(a===void 0){const b=(o=i?.renderBefore)!==null&&o!==void 0?o:null;s._$litPart$=a=new he(e.insertBefore(Oe(),b),b,void 0,i??{})}return a._$AI(t),a},de=ue.createTreeWalker(ue,129,null,!1),gi=(t,e)=>{const i=t.length-1,r=[];let o,s=e===2?"<svg>":"",a=Se;for(let m=0;m<i;m++){const p=t[m];let I,_,v=-1,y=0;for(;y<p.length&&(a.lastIndex=y,_=a.exec(p),_!==null);)y=a.lastIndex,a===Se?_[1]==="!--"?a=ui:_[1]!==void 0?a=di:_[2]!==void 0?(bi.test(_[2])&&(o=RegExp("</"+_[2],"g")),a=K):_[3]!==void 0&&(a=K):a===K?_[0]===">"?(a=o??Se,v=-1):_[1]===void 0?v=-2:(v=a.lastIndex-_[2].length,I=_[1],a=_[3]===void 0?K:_[3]==='"'?pi:hi):a===pi||a===hi?a=K:a===ui||a===di?a=Se:(a=K,o=void 0);const w=a===K&&t[m+1].startsWith("/>")?" ":"";s+=a===Se?p+Do:v>=0?(r.push(I),p.slice(0,v)+"$lit$"+p.slice(v)+H+w):p+H+(v===-2?(r.push(void 0),m):w)}const b=s+(t[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ai!==void 0?ai.createHTML(b):b,r]};class Ae{constructor({strings:e,_$litType$:i},r){let o;this.parts=[];let s=0,a=0;const b=e.length-1,m=this.parts,[p,I]=gi(e,i);if(this.el=Ae.createElement(p,r),de.currentNode=this.el.content,i===2){const _=this.el.content,v=_.firstChild;v.remove(),_.append(...v.childNodes)}for(;(o=de.nextNode())!==null&&m.length<b;){if(o.nodeType===1){if(o.hasAttributes()){const _=[];for(const v of o.getAttributeNames())if(v.endsWith("$lit$")||v.startsWith(H)){const y=I[a++];if(_.push(v),y!==void 0){const w=o.getAttribute(y.toLowerCase()+"$lit$").split(H),$=/([.?@])?(.*)/.exec(y);m.push({type:1,index:s,name:$[2],strings:w,ctor:$[1]==="."?yi:$[1]==="?"?Ui:$[1]==="@"?_i:Le})}else m.push({type:6,index:s})}for(const v of _)o.removeAttribute(v)}if(bi.test(o.tagName)){const _=o.textContent.split(H),v=_.length-1;if(v>0){o.textContent=ce?ce.emptyScript:"";for(let y=0;y<v;y++)o.append(_[y],Oe()),de.nextNode(),m.push({type:2,index:++s});o.append(_[v],Oe())}}}else if(o.nodeType===8)if(o.data===kt)m.push({type:2,index:s});else{let _=-1;for(;(_=o.data.indexOf(H,_+1))!==-1;)m.push({type:7,index:s}),_+=H.length-1}s++}}static createElement(e,i){const r=ue.createElement("template");return r.innerHTML=e,r}}function W(t,e,i=t,r){var o,s,a,b;if(e===M)return e;let m=r!==void 0?(o=i._$Cl)===null||o===void 0?void 0:o[r]:i._$Cu;const p=Pe(e)?void 0:e._$litDirective$;return m?.constructor!==p&&((s=m?._$AO)===null||s===void 0||s.call(m,!1),p===void 0?m=void 0:(m=new p(t),m._$AT(t,i,r)),r!==void 0?((a=(b=i)._$Cl)!==null&&a!==void 0?a:b._$Cl=[])[r]=m:i._$Cu=m),m!==void 0&&(e=W(t,m._$AS(t,e.values),m,r)),e}class fi{constructor(e,i){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var i;const{el:{content:r},parts:o}=this._$AD,s=((i=e?.creationScope)!==null&&i!==void 0?i:ue).importNode(r,!0);de.currentNode=s;let a=de.nextNode(),b=0,m=0,p=o[0];for(;p!==void 0;){if(b===p.index){let I;p.type===2?I=new he(a,a.nextSibling,this,e):p.type===1?I=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(I=new wi(a,this,e)),this.v.push(I),p=o[++m]}b!==p?.index&&(a=de.nextNode(),b++)}return s}m(e){let i=0;for(const r of this.v)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}}class he{constructor(e,i,r,o){var s;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=o,this._$Cg=(s=o?.isConnected)===null||s===void 0||s}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=W(this,e,i),Pe(e)?e===E||e==null||e===""?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==M&&this.$(e):e._$litType$!==void 0?this.T(e):e.nodeType!==void 0?this.k(e):ci(e)?this.S(e):this.$(e)}M(e,i=this._$AB){return this._$AA.parentNode.insertBefore(e,i)}k(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}$(e){this._$AH!==E&&Pe(this._$AH)?this._$AA.nextSibling.data=e:this.k(ue.createTextNode(e)),this._$AH=e}T(e){var i;const{values:r,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ae.createElement(o.h,this.options)),o);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===s)this._$AH.m(r);else{const a=new fi(s,this),b=a.p(this.options);a.m(r),this.k(b),this._$AH=a}}_$AC(e){let i=vi.get(e.strings);return i===void 0&&vi.set(e.strings,i=new Ae(e)),i}S(e){li(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,o=0;for(const s of e)o===i.length?i.push(r=new he(this.M(Oe()),this.M(Oe()),this,this.options)):r=i[o],r._$AI(s),o++;o<i.length&&(this._$AR(r&&r._$AB.nextSibling,o),i.length=o)}_$AR(e=this._$AA.nextSibling,i){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,i);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var i;this._$AM===void 0&&(this._$Cg=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}}class Le{constructor(e,i,r,o,s){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=i,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=E}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,r,o){const s=this.strings;let a=!1;if(s===void 0)e=W(this,e,i,0),a=!Pe(e)||e!==this._$AH&&e!==M,a&&(this._$AH=e);else{const b=e;let m,p;for(e=s[0],m=0;m<s.length-1;m++)p=W(this,b[r+m],i,m),p===M&&(p=this._$AH[m]),a||(a=!Pe(p)||p!==this._$AH[m]),p===E?e=E:e!==E&&(e+=(p??"")+s[m+1]),this._$AH[m]=p}a&&!o&&this.C(e)}C(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class yi extends Le{constructor(){super(...arguments),this.type=3}C(e){this.element[this.name]=e===E?void 0:e}}const Bo=ce?ce.emptyScript:"";class Ui extends Le{constructor(){super(...arguments),this.type=4}C(e){e&&e!==E?this.element.setAttribute(this.name,Bo):this.element.removeAttribute(this.name)}}class _i extends Le{constructor(e,i,r,o,s){super(e,i,r,o,s),this.type=5}_$AI(e,i=this){var r;if((e=(r=W(this,e,i,0))!==null&&r!==void 0?r:E)===M)return;const o=this._$AH,s=e===E&&o!==E||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==E&&(o===E||s);s&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,r;typeof this._$AH=="function"?this._$AH.call((r=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}}class wi{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){W(this,e)}}const Ho={L:"$lit$",P:H,V:kt,I:1,N:gi,R:fi,j:ci,D:W,H:he,F:Le,O:Ui,W:_i,B:yi,Z:wi},Ei=window.litHtmlPolyfillSupport;Ei?.(Ae,he),((It=globalThis.litHtmlVersions)!==null&&It!==void 0?It:globalThis.litHtmlVersions=[]).push("2.2.6");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */var It,xt;class h extends ae{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,r;const o=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=o.firstChild),o}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=Br(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Dt)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Dt)===null||e===void 0||e.setConnected(!1)}render(){return H}}h.finalized=!0,h._$litElement$=!0,(It=globalThis.litElementHydrateSupport)===null||It===void 0||It.call(globalThis,{LitElement:h});const Ei=globalThis.litElementPolyfillSupport;Ei?.({LitElement:h}),((xt=globalThis.litElementVersions)!==null&&xt!==void 0?xt:globalThis.litElementVersions=[]).push("3.2.0");var Mr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Fr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Rr(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Mr(e,r,i),i};n.UUIButtonGroupElement=class extends h{render(){return u`<slot></slot>`}},n.UUIButtonGroupElement.styles=[d`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted(: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(uui-dropdown){--uui-dropdown-toggle-slot-button-border-radius:0}::slotted(uui-dropdown:not(:first-child)){--uui-dropdown-toggle-slot-button-merge-border-left:1}::slotted(uui-dropdown:first-child){--uui-dropdown-toggle-slot-button-border-radius:var(
17
+ */var xt,Ct;class h extends le{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,i;const r=super.createRenderRoot();return(e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=r.firstChild),r}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=jo(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Dt)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Dt)===null||e===void 0||e.setConnected(!1)}render(){return M}}h.finalized=!0,h._$litElement$=!0,(xt=globalThis.litElementHydrateSupport)===null||xt===void 0||xt.call(globalThis,{LitElement:h});const $i=globalThis.litElementPolyfillSupport;$i?.({LitElement:h}),((Ct=globalThis.litElementVersions)!==null&&Ct!==void 0?Ct:globalThis.litElementVersions=[]).push("3.2.0");var Mo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Fo=(t,e,i,r)=>{for(var o=r>1?void 0:r?Ro(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Mo(e,i,o),o};n.UUIButtonGroupElement=class extends h{render(){return c`<slot></slot>`}},n.UUIButtonGroupElement.styles=[d`: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(uui-dropdown){--uui-dropdown-toggle-slot-button-border-radius:0}::slotted(uui-dropdown:not(:first-child)){--uui-dropdown-toggle-slot-button-merge-border-left:1}::slotted(uui-dropdown:first-child){--uui-dropdown-toggle-slot-button-border-radius:var(
18
18
  --uui-border-radius,3px
19
- ) 0 0 var(--uui-border-radius,3px)}::slotted(uui-dropdown:last-child){--uui-dropdown-toggle-slot-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],n.UUIButtonGroupElement=Fr([c("uui-button-group")],n.UUIButtonGroupElement);var Vr=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,qr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Gr(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Vr(e,r,i),i};n.UUIActionBarElement=class extends n.UUIButtonGroupElement{},n.UUIActionBarElement.styles=[...n.UUIButtonGroupElement.styles,d`::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=qr([c("uui-action-bar")],n.UUIActionBarElement);/**
19
+ ) 0 0 var(--uui-border-radius,3px)}::slotted(uui-dropdown:last-child){--uui-dropdown-toggle-slot-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],n.UUIButtonGroupElement=Fo([u("uui-button-group")],n.UUIButtonGroupElement);var Vo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,qo=(t,e,i,r)=>{for(var o=r>1?void 0:r?Go(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Vo(e,i,o),o};n.UUIActionBarElement=class extends n.UUIButtonGroupElement{},n.UUIActionBarElement.styles=[...n.UUIButtonGroupElement.styles,d`::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=qo([u("uui-action-bar")],n.UUIActionBarElement);/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const Wr=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function l(t){return(e,r)=>r!==void 0?((o,i,s)=>{i.constructor.createProperty(s,o)})(t,e,r):Wr(t,e)}/**
23
+ */const Ko=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function l(t){return(e,i)=>i!==void 0?((r,o,s)=>{o.constructor.createProperty(s,r)})(t,e,i):Ko(t,e)}/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */function g(t){return l({...t,state:!0})}/**
27
+ */function f(t){return l({...t,state:!0})}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const Ct=({finisher:t,descriptor:e})=>(r,o)=>{var i;if(o===void 0){const s=(i=r.originalKey)!==null&&i!==void 0?i:r.key,a=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(r.key)}:{...r,key:s};return t!=null&&(a.finisher=function(v){t(v,s)}),a}{const s=r.constructor;e!==void 0&&Object.defineProperty(r,o,e(o)),t?.(s,o)}};/**
31
+ */const zt=({finisher:t,descriptor:e})=>(i,r)=>{var o;if(r===void 0){const s=(o=i.originalKey)!==null&&o!==void 0?o:i.key,a=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(i.key)}:{...i,key:s};return t!=null&&(a.finisher=function(b){t(b,s)}),a}{const s=i.constructor;e!==void 0&&Object.defineProperty(i,r,e(r)),t?.(s,r)}};/**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */function C(t,e){return Ct({descriptor:r=>{const o={get(){var i,s;return(s=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(t))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){const i=typeof r=="symbol"?Symbol():"__"+r;o.get=function(){var s,a;return this[i]===void 0&&(this[i]=(a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&a!==void 0?a:null),this[i]}}return o}})}/**
35
+ */function x(t,e){return zt({descriptor:i=>{const r={get(){var o,s;return(s=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(t))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){const o=typeof i=="symbol"?Symbol():"__"+i;r.get=function(){var s,a;return this[o]===void 0&&(this[o]=(a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&a!==void 0?a:null),this[o]}}return r}})}/**
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */function Kr(t){return Ct({descriptor:e=>({get(){var r,o;return(o=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&o!==void 0?o:[]},enumerable:!0,configurable:!0})})}/**
39
+ */function Wo(t){return zt({descriptor:e=>({get(){var i,r;return(r=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelectorAll(t))!==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 Pt;const Yr=((Pt=window.HTMLSlotElement)===null||Pt===void 0?void 0:Pt.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function W(t){const{slot:e,selector:r}=t??{};return Ct({descriptor:o=>({get(){var i;const s="slot"+(e?`[name=${e}]`:":not([name])"),a=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(s),v=a!=null?Yr(a,t):[];return r?v.filter(b=>b.matches(r)):v},enumerable:!0,configurable:!0})})}var Xr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Ve=(t,e,r,o)=>{for(var i=o>1?void 0:o?Zr(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Xr(e,r,i),i};n.UUIAvatarGroupElement=class extends h{constructor(){super(...arguments);this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(t){t.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((t,e)=>{t.style.display=e<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=[d`: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}`],Ve([W({selector:"uui-avatar, [uui-avatar]",flatten:!0})],n.UUIAvatarGroupElement.prototype,"_avatarNodes",2),Ve([g()],n.UUIAvatarGroupElement.prototype,"_avatarArray",2),Ve([l({type:Number,attribute:!0})],n.UUIAvatarGroupElement.prototype,"limit",2),n.UUIAvatarGroupElement=Ve([c("uui-avatar-group")],n.UUIAvatarGroupElement);var Qr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,he=(t,e,r,o)=>{for(var i=o>1?void 0:o?Jr(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Qr(e,r,i),i};n.UUIAvatarElement=class extends h{constructor(){super(...arguments);this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(t){const e=this._name;this._name=t,this.initials=this.createInitials(this._name),this.requestUpdate("title",e)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(t){let e="";if(t){const r=t.match(/(\w+)/g)||[];e=r[0].substring(0,1),r.length>1&&(e+=r[r.length-1].substring(0,1))}return e.toUpperCase()}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=[d`: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-color-spanish-pink,#f5c1bc);color:var(--uui-color-space-cadet,#1b264f)}:host([overflow]){overflow:unset}img{object-fit:cover;height:100%;width:100%;overflow:hidden;border-radius:50%}`],he([l({type:Boolean,attribute:!0,reflect:!0})],n.UUIAvatarElement.prototype,"overflow",2),he([l({type:String,attribute:"img-src"})],n.UUIAvatarElement.prototype,"imgSrc",2),he([l({type:String,attribute:"img-srcset"})],n.UUIAvatarElement.prototype,"imgSrcset",2),he([l({type:String,reflect:!0})],n.UUIAvatarElement.prototype,"name",1),he([g()],n.UUIAvatarElement.prototype,"initials",2),n.UUIAvatarElement=he([c("uui-avatar")],n.UUIAvatarElement);var eo=Object.defineProperty,to=Object.getOwnPropertyDescriptor,kt=(t,e,r,o)=>{for(var i=o>1?void 0:o?to(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&eo(e,r,i),i};n.UUIBadgeElement=class extends h{constructor(){super(...arguments);this.look="danger",this.attention=!1}render(){return u`<slot></slot>`}},n.UUIBadgeElement.styles=[d`: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-width:var(--uui-badge-border-width,1px);border-style:solid;border-color:var(--uui-badge-border-color,var(--uui-interface-surface,#fefefe));border-radius:var(--uui-size-4,12px);background-color:var(--uui-badge-background-color,var(--uui-interface-surface,#fefefe));color:var(--uui-badge-contrast,var(--uui-interface-contrast,#060606))}::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}}:host([look=primary]){background-color:var(--uui-look-primary-surface,#1b264f);color:var(--uui-look-primary-contrast,#fefefe);border-style:var(--uui-badge-border-style,var(--uui-look-primary-border-style,solid));border-color:var(--uui-look-primary-border,#1b264f)}:host([look=secondary]){background-color:var(--uui-look-secondary-surface,#e2dad4);color:var(--uui-look-secondary-contrast,#1b264f);border-style:var(--uui-badge-border-style,var(--uui-look-secondary-border-style,solid));border-color:var(--uui-look-secondary-border,#e2dad4)}:host([look=outline]){background-color:var(--uui-look-outline-surface,transparent);color:var(--uui-look-outline-contrast,#1b264f);border-style:var(--uui-badge-border-style,var(--uui-look-outline-border-style,solid));border-color:var(--uui-look-outline-border,#1b264f)}:host([look=placeholder]){background-color:var(--uui-look-placeholder-surface,transparent);color:var(--uui-look-placeholder-contrast,#1b264f);border-style:var(--uui-badge-border-style,var(--uui-look-placeholder-border-style,dashed));border-color:var(--uui-look-placeholder-border,#1b264f)}:host([look=positive]){background-color:var(--uui-look-positive-surface,#25aa60);color:var(--uui-look-positive-contrast,#fefefe);border-style:var(--uui-badge-border-style,var(--uui-look-positive-border-style,solid));border-color:var(--uui-look-positive-border,#25aa60)}:host([look=warning]){background-color:var(--uui-look-warning-surface,#fad634);color:var(--uui-look-warning-contrast,#060606);border-style:var(--uui-badge-border-style,var(--uui-look-warning-border-style,solid));border-color:var(--uui-look-warning-border,#fad634)}:host([look=danger]){background-color:var(--uui-look-danger-surface,#d42054);color:var(--uui-look-danger-contrast,#fefefe);border-style:var(--uui-badge-border-style,var(--uui-look-danger-border-style,solid));border-color:var(--uui-look-danger-border,#d42054)}`],kt([l({type:String,reflect:!0})],n.UUIBadgeElement.prototype,"look",2),kt([l({type:Boolean,reflect:!0})],n.UUIBadgeElement.prototype,"attention",2),n.UUIBadgeElement=kt([c("uui-badge")],n.UUIBadgeElement);var io=Object.defineProperty,ro=Object.getOwnPropertyDescriptor,oo=(t,e,r,o)=>{for(var i=o>1?void 0:o?ro(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&io(e,r,i),i};const Ge=t=>{class e extends t{constructor(){super(...arguments);this.active=!1}}return oo([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var no=Object.defineProperty,so=Object.getOwnPropertyDescriptor,$i=(t,e,r,o)=>{for(var i=o>1?void 0:o?so(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&no(e,r,i),i};const De=(t,e)=>{class r extends e{constructor(){super(...arguments);this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(i){this._labelSlotHasContent=i.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="${t||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return $i([l({type:String})],r.prototype,"label",2),$i([g()],r.prototype,"_labelSlotHasContent",2),r};var ao=Object.defineProperty,Ii=Object.getOwnPropertySymbols,lo=Object.prototype.hasOwnProperty,uo=Object.prototype.propertyIsEnumerable,xi=(t,e,r)=>e in t?ao(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ci=(t,e)=>{for(var r in e||(e={}))lo.call(e,r)&&xi(t,r,e[r]);if(Ii)for(var r of Ii(e))uo.call(e,r)&&xi(t,r,e[r]);return t};const co={composed:!0};class ho extends Event{constructor(e,r={}){super(e,Ci(Ci({},co),r));this.detail=r.detail||{}}}var po=Object.defineProperty,Pi=Object.getOwnPropertySymbols,vo=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable,ki=(t,e,r)=>e in t?po(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Oi=(t,e)=>{for(var r in e||(e={}))vo.call(e,r)&&ki(t,r,e[r]);if(Pi)for(var r of Pi(e))bo.call(e,r)&&ki(t,r,e[r]);return t};class pe extends ho{constructor(e,r={}){super(e,Oi(Oi({},{bubbles:!0}),r))}}pe.SELECTED="selected",pe.UNSELECTED="unselected";var fo=Object.defineProperty,mo=Object.getOwnPropertyDescriptor,zi=(t,e,r,o)=>{for(var i=o>1?void 0:o?mo(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&fo(e,r,i),i};const Le=t=>{class e extends t{constructor(...o){super(...o);this._selectable=!1,this.unselectable=!0,this.selected=!1,this.selectableTarget=this,this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(o){const i=this._selectable;this._selectable=o,this.setAttribute("tabindex",`${o?"0":"-1"}`),this.requestUpdate("selected",i)}handleSelectKeydown(o){if(o.composedPath().indexOf(this.selectableTarget)!==-1){if(o.key!==" "&&o.key!=="Enter")return;o.preventDefault(),this._toggleSelect()}}_select(){!this.selectable||(this.selected=!0,this.dispatchEvent(new pe(pe.SELECTED)))}_unselect(){!this.unselectable||(this.selected=!1,this.dispatchEvent(new pe(pe.UNSELECTED)))}_handleClick(o){o.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.unselectable===!1?this._select():this.selected?this._unselect():this._select()}}return zi([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),zi([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var go=Object.defineProperty,_o=Object.getOwnPropertyDescriptor,yo=(t,e,r,o)=>{for(var i=o>1?void 0:o?_o(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&go(e,r,i),i};const qe=t=>{class e extends t{constructor(){super(...arguments);this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(o){const i=this._selectOnly;this._selectOnly=o,this.requestUpdate("selectOnly",i)}}return yo([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var Uo=Object.defineProperty,Si=Object.getOwnPropertySymbols,wo=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Ai=(t,e,r)=>e in t?Uo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Di=(t,e)=>{for(var r in e||(e={}))wo.call(e,r)&&Ai(t,r,e[r]);if(Si)for(var r of Si(e))Eo.call(e,r)&&Ai(t,r,e[r]);return t};const $o={composed:!0};class Li extends Event{constructor(e,r={}){super(e,Di(Di({},$o),r));this.detail=r.detail||{}}}var Io=Object.defineProperty,Ti=Object.getOwnPropertySymbols,xo=Object.prototype.hasOwnProperty,Co=Object.prototype.propertyIsEnumerable,Ni=(t,e,r)=>e in t?Io(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Bi=(t,e)=>{for(var r in e||(e={}))xo.call(e,r)&&Ni(t,r,e[r]);if(Ti)for(var r of Ti(e))Co.call(e,r)&&Ni(t,r,e[r]);return t};class ve extends Li{constructor(e,r={}){super(e,Bi(Bi({},{bubbles:!0}),r))}}ve.VALID="valid",ve.INVALID="invalid";var Po=Object.defineProperty,Hi=Object.getOwnPropertySymbols,ko=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable,ji=(t,e,r)=>e in t?Po(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mi=(t,e)=>{for(var r in e||(e={}))ko.call(e,r)&&ji(t,r,e[r]);if(Hi)for(var r of Hi(e))Oo.call(e,r)&&ji(t,r,e[r]);return t};class Ri extends Li{constructor(e,r={}){super(e,Mi(Mi({},{bubbles:!0}),r))}}Ri.SELECTED="selected",Ri.UNSELECTED="unselected";var zo=Object.defineProperty,So=Object.getOwnPropertyDescriptor,K=(t,e,r,o)=>{for(var i=o>1?void 0:o?So(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&zo(e,r,i),i};const j=t=>{class e extends t{constructor(...o){super(...o);this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(o){const i=this._value;this._value=o,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",i)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(o,i,s){const a={flagKey:o,getMessageMethod:i,checkMethod:s};return this._validators.push(a),a}removeValidator(o){const i=this._validators.indexOf(o);i!==-1&&this._validators.splice(i,1)}addFormControlElement(o){this._formCtrlElements.push(o)}setCustomValidity(o){this._customValidityObject&&this.removeValidator(this._customValidityObject),o!=null&&o!==""&&(this._customValidityObject=this.addValidator("customError",()=>o,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(i=>{for(const s in i.validity)s!=="valid"&&i.validity[s]&&(this._validityState[s]=!0,this._internals.setValidity(this._validityState,i.validationMessage,i))}),this._validators.forEach(i=>{i.checkMethod()&&(this._validityState[i.flagKey]=!0,this._internals.setValidity(this._validityState,i.getMessageMethod(),this.getFormElement()))});const o=Object.values(this._validityState).includes(!0);this._validityState.valid=!o,o?this.dispatchEvent(new ve(ve.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new ve(ve.VALID)))}updated(o){super.updated(o),this._runValidators()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var o;for(const i in this._formCtrlElements)if(this._formCtrlElements[i].checkValidity()===!1)return!1;return(o=this._internals)==null?void 0:o.checkValidity()}get validity(){return this._validityState}get validationMessage(){var o;return(o=this._internals)==null?void 0:o.validationMessage}}return e.formAssociated=!0,K([l({type:String})],e.prototype,"name",2),K([l()],e.prototype,"value",1),K([l({type:Boolean,reflect:!0})],e.prototype,"pristine",2),K([l({type:Boolean,reflect:!0})],e.prototype,"required",2),K([l({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),K([l({type:Boolean,reflect:!0})],e.prototype,"error",2),K([l({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};var Ao=Object.defineProperty,Fi=Object.getOwnPropertySymbols,Do=Object.prototype.hasOwnProperty,Lo=Object.prototype.propertyIsEnumerable,Vi=(t,e,r)=>e in t?Ao(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Gi=(t,e)=>{for(var r in e||(e={}))Do.call(e,r)&&Vi(t,r,e[r]);if(Fi)for(var r of Fi(e))Lo.call(e,r)&&Vi(t,r,e[r]);return t};const To={composed:!0};class x extends Event{constructor(e,r={}){super(e,Gi(Gi({},To),r));this.detail=r.detail||{}}}var No=Object.defineProperty,qi=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Ho=Object.prototype.propertyIsEnumerable,Wi=(t,e,r)=>e in t?No(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ki=(t,e)=>{for(var r in e||(e={}))Bo.call(e,r)&&Wi(t,r,e[r]);if(qi)for(var r of qi(e))Ho.call(e,r)&&Wi(t,r,e[r]);return t};class be extends x{constructor(e,r={}){super(e,Ki(Ki({},{bubbles:!0}),r))}}be.VALID="valid",be.INVALID="invalid";var jo=Object.defineProperty,Yi=Object.getOwnPropertySymbols,Mo=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Xi=(t,e,r)=>e in t?jo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Zi=(t,e)=>{for(var r in e||(e={}))Mo.call(e,r)&&Xi(t,r,e[r]);if(Yi)for(var r of Yi(e))Ro.call(e,r)&&Xi(t,r,e[r]);return t};class fe extends x{constructor(e,r={}){super(e,Zi(Zi({},{bubbles:!0}),r))}}fe.SELECTED="selected",fe.UNSELECTED="unselected";class We extends x{}We.CHANGE="change";var Fo=Object.defineProperty,Vo=Object.getOwnPropertyDescriptor,Ke=(t,e,r,o)=>{for(var i=o>1?void 0:o?Vo(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Fo(e,r,i),i};class D extends j(De("",h)){constructor(e="checkbox"){super();this.labelPosition="right",this._checked=!1,this.disabled=!1,this._value===""&&(this._value="on"),this.inputRole=e}get value(){return this._value}set value(e){const r=this._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",r)}get checked(){return this._checked}set checked(e){const r=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",r)}getFormElement(){return this._input}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){var r;super.firstUpdated(e);const o=(r=this.shadowRoot)==null?void 0:r.querySelector("label");let i=!1;this._input.addEventListener("blur",()=>{i===!1&&this.style.setProperty("--uui-show-focus-outline","1"),i=!1}),o.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),i=!0}),o.addEventListener("mouseup",()=>{i=!1})}focus(){this._input.focus()}click(){this._input.click()}_onInputChange(){this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new We(We.CHANGE))}render(){return u`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled}" .checked="${this.checked}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}}D.styles=[d`:host{display:inline-block}label{cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}input{position:absolute;height:0;width:0;margin-top:-4px}: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{opacity:.5}`],Ke([l({type:String,attribute:"label-position",reflect:!0})],D.prototype,"labelPosition",2),Ke([l({type:Boolean})],D.prototype,"checked",1),Ke([l({type:Boolean,reflect:!0})],D.prototype,"disabled",2),Ke([C("#input")],D.prototype,"_input",2);var Go=`.uui-text {
43
+ */var Ot;const Yo=((Ot=window.HTMLSlotElement)===null||Ot===void 0?void 0:Ot.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function Y(t){const{slot:e,selector:i}=t??{};return zt({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),b=a!=null?Yo(a,t):[];return i?b.filter(m=>m.matches(i)):b},enumerable:!0,configurable:!0})})}var Zo=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,Ge=(t,e,i,r)=>{for(var o=r>1?void 0:r?Xo(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Zo(e,i,o),o};n.UUIAvatarGroupElement=class extends h{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(t){t.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((t,e)=>{t.style.display=e<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return c`<slot @slotchange="${this._onSlotChange}"></slot>${this._isLimitExceeded()?c`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}`}},n.UUIAvatarGroupElement.styles=[d`: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}`],Ge([Y({selector:"uui-avatar, [uui-avatar]",flatten:!0})],n.UUIAvatarGroupElement.prototype,"_avatarNodes",2),Ge([f()],n.UUIAvatarGroupElement.prototype,"_avatarArray",2),Ge([l({type:Number,attribute:!0})],n.UUIAvatarGroupElement.prototype,"limit",2),n.UUIAvatarGroupElement=Ge([u("uui-avatar-group")],n.UUIAvatarGroupElement);var Qo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,pe=(t,e,i,r)=>{for(var o=r>1?void 0:r?Jo(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Qo(e,i,o),o};n.UUIAvatarElement=class extends h{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(t){const e=this._name;this._name=t,this.initials=this.createInitials(this._name),this.requestUpdate("title",e)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(t){let e="";if(t){const i=t.match(/(\w+)/g)||[];e=i[0].substring(0,1),i.length>1&&(e+=i[i.length-1].substring(0,1))}return e.toUpperCase()}renderImage(){return c`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this.initials}" title="${this.name}">`}render(){return c`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this.initials}<slot></slot>`}},n.UUIAvatarElement.styles=[d`: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%}`],pe([l({type:Boolean,attribute:!0,reflect:!0})],n.UUIAvatarElement.prototype,"overflow",2),pe([l({type:String,attribute:"img-src"})],n.UUIAvatarElement.prototype,"imgSrc",2),pe([l({type:String,attribute:"img-srcset"})],n.UUIAvatarElement.prototype,"imgSrcset",2),pe([l({type:String,reflect:!0})],n.UUIAvatarElement.prototype,"name",1),pe([f()],n.UUIAvatarElement.prototype,"initials",2),n.UUIAvatarElement=pe([u("uui-avatar")],n.UUIAvatarElement);var er=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,qe=(t,e,i,r)=>{for(var o=r>1?void 0:r?tr(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&er(e,i,o),o};n.UUIBadgeElement=class extends h{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return c`<slot></slot>`}},n.UUIBadgeElement.styles=[d`: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,#25aa60);--color-standalone:var(--uui-color-positive-standalone,rgb(38, 156, 91));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fad634);--color-standalone:var(--uui-color-warning-standalone,rgb(224, 193, 51));--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}}`],qe([l({reflect:!0})],n.UUIBadgeElement.prototype,"color",2),qe([l({reflect:!0})],n.UUIBadgeElement.prototype,"look",2),qe([l({type:Boolean,reflect:!0})],n.UUIBadgeElement.prototype,"attention",2),n.UUIBadgeElement=qe([u("uui-badge")],n.UUIBadgeElement);var ir=Object.defineProperty,or=Object.getOwnPropertyDescriptor,rr=(t,e,i,r)=>{for(var o=r>1?void 0:r?or(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&ir(e,i,o),o};const Ke=t=>{class e extends t{constructor(){super(...arguments),this.active=!1}}return rr([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var nr=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,Ii=(t,e,i,r)=>{for(var o=r>1?void 0:r?sr(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&nr(e,i,o),o};const Te=(t,e)=>{class i 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 c`${this._labelSlotHasContent===!1?c`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${t||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Ii([l({type:String})],i.prototype,"label",2),Ii([f()],i.prototype,"_labelSlotHasContent",2),i};var ar=Object.defineProperty,ki=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,xi=(t,e,i)=>e in t?ar(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ci=(t,e)=>{for(var i in e||(e={}))lr.call(e,i)&&xi(t,i,e[i]);if(ki)for(var i of ki(e))cr.call(e,i)&&xi(t,i,e[i]);return t};const ur={composed:!0};class dr extends Event{constructor(e,i={}){super(e,Ci(Ci({},ur),i)),this.detail=i.detail||{}}}var hr=Object.defineProperty,zi=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,Oi=(t,e,i)=>e in t?hr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Pi=(t,e)=>{for(var i in e||(e={}))pr.call(e,i)&&Oi(t,i,e[i]);if(zi)for(var i of zi(e))br.call(e,i)&&Oi(t,i,e[i]);return t};class be extends dr{constructor(e,i={}){super(e,Pi(Pi({},{bubbles:!0}),i))}}be.SELECTED="selected",be.UNSELECTED="unselected";var mr=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,Si=(t,e,i,r)=>{for(var o=r>1?void 0:r?vr(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&mr(e,i,o),o};const Ne=t=>{class e extends t{constructor(...r){super(...r),this._selectable=!1,this.unselectable=!0,this.selected=!1,this.selectableTarget=this,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.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selected",o)}handleSelectKeydown(r){if(r.composedPath().indexOf(this.selectableTarget)!==-1){if(r.key!==" "&&r.key!=="Enter")return;r.preventDefault(),this._toggleSelect()}}_select(){!this.selectable||(this.selected=!0,this.dispatchEvent(new be(be.SELECTED)))}_unselect(){!this.unselectable||(this.selected=!1,this.dispatchEvent(new be(be.UNSELECTED)))}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.unselectable===!1?this._select():this.selected?this._unselect():this._select()}}return Si([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Si([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var gr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,yr=(t,e,i,r)=>{for(var o=r>1?void 0:r?fr(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&gr(e,i,o),o};const We=t=>{class e extends t{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 yr([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var Ur=Object.defineProperty,Ai=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,Li=(t,e,i)=>e in t?Ur(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ti=(t,e)=>{for(var i in e||(e={}))_r.call(e,i)&&Li(t,i,e[i]);if(Ai)for(var i of Ai(e))wr.call(e,i)&&Li(t,i,e[i]);return t};const Er={composed:!0};class Ni extends Event{constructor(e,i={}){super(e,Ti(Ti({},Er),i)),this.detail=i.detail||{}}}var $r=Object.defineProperty,Di=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,ji=(t,e,i)=>e in t?$r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Bi=(t,e)=>{for(var i in e||(e={}))Ir.call(e,i)&&ji(t,i,e[i]);if(Di)for(var i of Di(e))kr.call(e,i)&&ji(t,i,e[i]);return t};class me extends Ni{constructor(e,i={}){super(e,Bi(Bi({},{bubbles:!0}),i))}}me.VALID="valid",me.INVALID="invalid";var xr=Object.defineProperty,Hi=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Mi=(t,e,i)=>e in t?xr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ri=(t,e)=>{for(var i in e||(e={}))Cr.call(e,i)&&Mi(t,i,e[i]);if(Hi)for(var i of Hi(e))zr.call(e,i)&&Mi(t,i,e[i]);return t};class Fi extends Ni{constructor(e,i={}){super(e,Ri(Ri({},{bubbles:!0}),i))}}Fi.SELECTED="selected",Fi.UNSELECTED="unselected";var Or=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,Z=(t,e,i,r)=>{for(var o=r>1?void 0:r?Pr(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Or(e,i,o),o};const R=t=>{class e extends t{constructor(...r){super(...r),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(r){const o=this._value;this._value=r,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",o)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(r,o,s){const a={flagKey:r,getMessageMethod:o,checkMethod:s};return this._validators.push(a),a}removeValidator(r){const o=this._validators.indexOf(r);o!==-1&&this._validators.splice(o,1)}addFormControlElement(r){this._formCtrlElements.push(r)}setCustomValidity(r){this._customValidityObject&&this.removeValidator(this._customValidityObject),r!=null&&r!==""&&(this._customValidityObject=this.addValidator("customError",()=>r,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(o=>{for(const s in o.validity)s!=="valid"&&o.validity[s]&&(this._validityState[s]=!0,this._internals.setValidity(this._validityState,o.validationMessage,o))}),this._validators.forEach(o=>{o.checkMethod()&&(this._validityState[o.flagKey]=!0,this._internals.setValidity(this._validityState,o.getMessageMethod(),this.getFormElement()))});const r=Object.values(this._validityState).includes(!0);this._validityState.valid=!r,r?this.dispatchEvent(new me(me.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new me(me.VALID)))}updated(r){super.updated(r),this._runValidators()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var r;for(const o in this._formCtrlElements)if(this._formCtrlElements[o].checkValidity()===!1)return!1;return(r=this._internals)==null?void 0:r.checkValidity()}get validity(){return this._validityState}get validationMessage(){var r;return(r=this._internals)==null?void 0:r.validationMessage}}return e.formAssociated=!0,Z([l({type:String})],e.prototype,"name",2),Z([l()],e.prototype,"value",1),Z([l({type:Boolean,reflect:!0})],e.prototype,"pristine",2),Z([l({type:Boolean,reflect:!0})],e.prototype,"required",2),Z([l({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),Z([l({type:Boolean,reflect:!0})],e.prototype,"error",2),Z([l({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};var Sr=Object.defineProperty,Vi=Object.getOwnPropertySymbols,Ar=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,Gi=(t,e,i)=>e in t?Sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,qi=(t,e)=>{for(var i in e||(e={}))Ar.call(e,i)&&Gi(t,i,e[i]);if(Vi)for(var i of Vi(e))Lr.call(e,i)&&Gi(t,i,e[i]);return t};const Tr={composed:!0};class k extends Event{constructor(e,i={}){super(e,qi(qi({},Tr),i)),this.detail=i.detail||{}}}var Nr=Object.defineProperty,Ki=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,Wi=(t,e,i)=>e in t?Nr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Yi=(t,e)=>{for(var i in e||(e={}))Dr.call(e,i)&&Wi(t,i,e[i]);if(Ki)for(var i of Ki(e))jr.call(e,i)&&Wi(t,i,e[i]);return t};class ve extends k{constructor(e,i={}){super(e,Yi(Yi({},{bubbles:!0}),i))}}ve.VALID="valid",ve.INVALID="invalid";var Br=Object.defineProperty,Zi=Object.getOwnPropertySymbols,Hr=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,Xi=(t,e,i)=>e in t?Br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Qi=(t,e)=>{for(var i in e||(e={}))Hr.call(e,i)&&Xi(t,i,e[i]);if(Zi)for(var i of Zi(e))Mr.call(e,i)&&Xi(t,i,e[i]);return t};class ge extends k{constructor(e,i={}){super(e,Qi(Qi({},{bubbles:!0}),i))}}ge.SELECTED="selected",ge.UNSELECTED="unselected";class Ye extends k{}Ye.CHANGE="change";var Rr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,Ze=(t,e,i,r)=>{for(var o=r>1?void 0:r?Fr(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Rr(e,i,o),o};class L extends R(Te("",h)){constructor(e="checkbox"){super(),this.labelPosition="right",this._checked=!1,this.disabled=!1,this._value===""&&(this._value="on"),this.inputRole=e}get value(){return this._value}set value(e){const i=this._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",i)}get checked(){return this._checked}set checked(e){const i=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",i)}getFormElement(){return this._input}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){var i;super.firstUpdated(e);const r=(i=this.shadowRoot)==null?void 0:i.querySelector("label");let o=!1;this._input.addEventListener("blur",()=>{o===!1&&this.style.setProperty("--uui-show-focus-outline","1"),o=!1}),r.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),o=!0}),r.addEventListener("mouseup",()=>{o=!1})}focus(){this._input.focus()}click(){this._input.click()}_onInputChange(){this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new Ye(Ye.CHANGE))}render(){return c`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled}" .checked="${this.checked}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}}L.styles=[d`:host{display:inline-block}label{cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}input{position:absolute;height:0;width:0;margin-top:-4px}: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{opacity:.5}`],Ze([l({type:String,attribute:"label-position",reflect:!0})],L.prototype,"labelPosition",2),Ze([l({type:Boolean})],L.prototype,"checked",1),Ze([l({type:Boolean,reflect:!0})],L.prototype,"disabled",2),Ze([x("#input")],L.prototype,"_input",2);var Vr=`.uui-text {
44
44
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
45
45
  font-size: 15px;
46
46
  line-height: calc(var(--uui-size-2,6px) * 4);
@@ -146,10 +146,10 @@
146
146
 
147
147
  .uui-text a:link,
148
148
  .uui-text a:active {
149
- color: var(--uui-color-space-cadet,#1b264f);
149
+ color: var(--uui-color-interactive,#1b264f);
150
150
  }
151
151
  .uui-text a:hover {
152
- color: var(--uui-color-violet-blue,#3544b1);
152
+ color: var(--uui-color-interactive-emphasis,#3544b1);
153
153
  }
154
154
 
155
155
  .uui-text small {
@@ -204,35 +204,35 @@
204
204
  margin-top: var(--uui-size-layout-1,24px);
205
205
  margin-bottom: var(--uui-size-layout-1,24px);
206
206
  }
207
- `;const Ye=Pe(Go);var qo=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,Xe=(t,e,r,o)=>{for(var i=o>1?void 0:o?Wo(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&qo(e,r,i),i};n.UUIBoxElement=class extends h{constructor(){super(...arguments);this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._headerSlotHasContent=!1,this._headerSlotChanged=t=>{this._headerSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}renderHeader(){return u`<div id="header" class="uui-text" style="${this._headerSlotHasContent||this._headlineSlotHasContent||this.headline!==null?"":"display: none"}"><h5 id="headline" style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot name="header" @slotchange="${this._headerSlotChanged}"></slot></div>`}render(){return u`${this.renderHeader()}<slot></slot>`}},n.UUIBoxElement.styles=[Ye,d`:host{display:block;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);background-color:var(--uui-interface-surface,#fefefe)}#header{display:block;border-bottom:1px solid var(--uui-interface-border,#c4c4c4);padding:var(--uui-size-space-4,12px) var(--uui-size-space-5,18px)}slot:not([name]){display:block;padding:var(--uui-box-default-padding,var(--uui-size-space-5,18px))}`],Xe([l({type:String})],n.UUIBoxElement.prototype,"headline",2),Xe([g()],n.UUIBoxElement.prototype,"_headlineSlotHasContent",2),Xe([g()],n.UUIBoxElement.prototype,"_headerSlotHasContent",2),n.UUIBoxElement=Xe([c("uui-box")],n.UUIBoxElement);var Ko=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,Ot=(t,e,r,o)=>{for(var i=o>1?void 0:o?Yo(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ko(e,r,i),i};n.UUIBreadcrumbItemElement=class extends h{constructor(){super(...arguments);this.href="#",this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){return u`<a id="link" href="${this.href}"><slot></slot></a><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=[d`:host{font-size:var(--uui-type-small-size,12px);color:currentColor}a,a:visited{color:currentColor}a:hover{color:var(--uui-interface-contrast-hover,#1b264f)}a:focus{color:var(--uui-interface-contrast-focus,#060606)}[part=separator]::after{content:'/';speak:never;position:relative;top:1px;margin:-3px 1px 0;color:var(--uui-interface-border,#c4c4c4)}#last-item,#link{padding:0 4px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#link{cursor:pointer}`],Ot([l()],n.UUIBreadcrumbItemElement.prototype,"href",2),Ot([l({type:Boolean,attribute:"last-item"})],n.UUIBreadcrumbItemElement.prototype,"lastItem",2),n.UUIBreadcrumbItemElement=Ot([c("uui-breadcrumb-item")],n.UUIBreadcrumbItemElement);var Xo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,Qi=(t,e,r,o)=>{for(var i=o>1?void 0:o?Zo(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Xo(e,r,i),i};n.UUIBreadcrumbsElement=class extends h{elementIsBreadcrumbItem(t){return t instanceof n.UUIBreadcrumbItemElement}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){if(this.slotNodes.length>0){const t=this.slotNodes[this.slotNodes.length-1];t.setAttribute("aria-current","page"),this.elementIsBreadcrumbItem(t)&&(t.lastItem=!0)}}render(){return u`<ol id="breadcrumbs-list"><slot @slotchange="${this.handleSlotChange}"></slot></ol>`}},n.UUIBreadcrumbsElement.styles=[d`: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}`],Qi([W({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],n.UUIBreadcrumbsElement.prototype,"slotNodes",2),n.UUIBreadcrumbsElement=Qi([c("uui-breadcrumbs")],n.UUIBreadcrumbsElement);const Qo=d`@keyframes uui-blink{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}`,Jo=Pe("uui-blink 0.9s infinite both"),en=d`@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}}`;Pe("pulse 0.8s ease-in-out infinite both");const Ze=d`@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)}}`,Qe=Pe("uui-horizontal-shake 600ms ease backwards");/**
207
+ `;const Xe=ze(Vr);var Gr=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,Qe=(t,e,i,r)=>{for(var o=r>1?void 0:r?qr(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Gr(e,i,o),o};n.UUIBoxElement=class extends h{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._headerSlotHasContent=!1,this._headerSlotChanged=t=>{this._headerSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}renderHeader(){return c`<div id="header" class="uui-text" style="${this._headerSlotHasContent||this._headlineSlotHasContent||this.headline!==null?"":"display: none"}"><h5 id="headline" style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot name="header" @slotchange="${this._headerSlotChanged}"></slot></div>`}render(){return c`${this.renderHeader()}<slot></slot>`}},n.UUIBoxElement.styles=[Xe,d`:host{display:block;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);background-color:var(--uui-color-surface,#fff)}#header{display:block;border-bottom:1px solid var(--uui-color-divider-standalone,#e9e9eb);padding:var(--uui-size-space-4,12px) var(--uui-size-space-5,18px)}slot:not([name]){display:block;padding:var(--uui-box-default-padding,var(--uui-size-space-5,18px))}`],Qe([l({type:String})],n.UUIBoxElement.prototype,"headline",2),Qe([f()],n.UUIBoxElement.prototype,"_headlineSlotHasContent",2),Qe([f()],n.UUIBoxElement.prototype,"_headerSlotHasContent",2),n.UUIBoxElement=Qe([u("uui-box")],n.UUIBoxElement);var Kr=Object.defineProperty,Wr=Object.getOwnPropertyDescriptor,Pt=(t,e,i,r)=>{for(var o=r>1?void 0:r?Wr(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Kr(e,i,o),o};n.UUIBreadcrumbItemElement=class extends h{constructor(){super(...arguments),this.href="#",this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){return c`<a id="link" href="${this.href}"><slot></slot></a><span part="separator"></span>`}renderCurrent(){return c`<span id="last-item"><slot></slot></span>`}render(){return c`${this.lastItem?this.renderCurrent():this.renderLinkAndSeparator()}`}},n.UUIBreadcrumbItemElement.styles=[d`: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}#link{cursor:pointer}`],Pt([l()],n.UUIBreadcrumbItemElement.prototype,"href",2),Pt([l({type:Boolean,attribute:"last-item"})],n.UUIBreadcrumbItemElement.prototype,"lastItem",2),n.UUIBreadcrumbItemElement=Pt([u("uui-breadcrumb-item")],n.UUIBreadcrumbItemElement);var Yr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Ji=(t,e,i,r)=>{for(var o=r>1?void 0:r?Zr(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Yr(e,i,o),o};n.UUIBreadcrumbsElement=class extends h{elementIsBreadcrumbItem(t){return t instanceof n.UUIBreadcrumbItemElement}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){if(this.slotNodes.length>0){const t=this.slotNodes[this.slotNodes.length-1];t.setAttribute("aria-current","page"),this.elementIsBreadcrumbItem(t)&&(t.lastItem=!0)}}render(){return c`<ol id="breadcrumbs-list"><slot @slotchange="${this.handleSlotChange}"></slot></ol>`}},n.UUIBreadcrumbsElement.styles=[d`: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}`],Ji([Y({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],n.UUIBreadcrumbsElement.prototype,"slotNodes",2),n.UUIBreadcrumbsElement=Ji([u("uui-breadcrumbs")],n.UUIBreadcrumbsElement);const Xr=d`@keyframes uui-blink{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}`,Qr=ze("uui-blink 0.9s infinite both"),Jr=d`@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}}`;ze("pulse 0.8s ease-in-out infinite both");const Je=d`@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)}}`,et=ze("uui-horizontal-shake 600ms ease backwards");/**
208
208
  * @license
209
209
  * Copyright 2017 Google LLC
210
210
  * SPDX-License-Identifier: BSD-3-Clause
211
- */const Je={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},et=t=>(...e)=>({_$litDirective$:t,values:e});class tt{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/**
211
+ */const tt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},it=t=>(...e)=>({_$litDirective$:t,values:e});class ot{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,r){this._$Ct=e,this._$AM=i,this._$Ci=r}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}}/**
212
212
  * @license
213
213
  * Copyright 2018 Google LLC
214
214
  * SPDX-License-Identifier: BSD-3-Clause
215
- */const it=et(class extends tt{constructor(t){var e;if(super(t),t.type!==Je.ATTRIBUTE||t.name!=="style"||((e=t.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(t){return Object.keys(t).reduce((e,r)=>{const o=t[r];return o==null?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:r}=t.element;if(this.ct===void 0){this.ct=new Set;for(const o in e)this.ct.add(o);return this.render(e)}this.ct.forEach(o=>{e[o]==null&&(this.ct.delete(o),o.includes("-")?r.removeProperty(o):r[o]="")});for(const o in e){const i=e[o];i!=null&&(this.ct.add(o),o.includes("-")?r.setProperty(o,i):r[o]=i)}return H}});class rt extends x{}rt.CLICK="click";var tn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,ot=(t,e,r,o)=>{for(var i=o>1?void 0:o?rn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&tn(e,r,i),i};n.UUIButtonInlineCreateElement=class extends h{constructor(){super(...arguments);this._position=0,this.vertical=!1}_onMouseMove(t){this._position=this.vertical?t.offsetY:t.offsetX}_handleClick(t){t.preventDefault(),t.stopImmediatePropagation(),this.dispatchEvent(new rt(rt.CLICK))}render(){return u`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}"><div id="plus" style="${it({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></button>`}},n.UUIButtonInlineCreateElement.styles=[Qo,d`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-8px 0}:host([vertical]){height:100%;width:20px;margin:0 -8px}#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}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:var(--uui-interface-select,#3544b1);border-top:1px solid var(--uui-interface-surface,#fefefe);border-bottom:1px solid var(--uui-interface-surface,#fefefe);border-radius:2px;pointer-events:none;animation:${Jo}}: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%)}: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-interface-select,#3544b1);color:var(--uui-interface-select,#3544b1);background-color:var(--uui-interface-surface,#fefefe);box-shadow:0 0 0 2px var(--uui-interface-surface,#fefefe);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}:host(:not([vertical])) #plus{margin-left:-21px}:host([vertical]) #plus{left:-4px;margin-top:-21px}#button-wrapper:focus #plus{border:2px solid #6ab4f0}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],ot([g()],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),n.UUIButtonInlineCreateElement=ot([c("uui-button-inline-create")],n.UUIButtonInlineCreateElement);class on{constructor(e,r){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(r)}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 U=(t,e,r=`This element has to be present for ${t.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${t.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",r,t)},zt="",St=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,nn=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,sn=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,an=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,Ji=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,ln=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,un=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,cn=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,er=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;var dn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,Y=(t,e,r,o)=>{for(var i=o>1?void 0:o?hn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&dn(e,r,i),i};n.UUIButtonElement=class extends j(De("",h)){constructor(){super();this.type="button",this.disabled=!1,this.look=zt,this.compact=!1,this.state=void 0,this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}_onHostClick(t){var e;if(this.disabled){t.preventDefault(),t.stopImmediatePropagation();return}if((e=this._internals)!=null&&e.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}}updated(t){super.updated(t),t.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let t=u``;switch(this.state){case"waiting":U(this,"uui-loader-circle"),t=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":U(this,"uui-icon"),t=u`<uui-icon name="check" .fallback="${St.strings[0]}"></uui-icon>`;break;case"failed":U(this,"uui-icon"),t=u`<uui-icon name="wrong" .fallback="${er.strings[0]}"></uui-icon>`;break;default:return""}return u`<div id="state">${t}</div>`}render(){return u`<button id="button" ?disabled="${this.disabled}" aria-label="${this.label}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},n.UUIButtonElement.styles=[Ze,d`: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;height:var(--uui-button-height,auto);max-height:100%;text-align:center;font-weight:var(--uui-button-font-weight,var(--uui-interface-font-weight,400))}:host([compact]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}.label{display:block;transition:opacity 120ms}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;transform:translate(-50%,-50%);top:50%;left:50%;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards}button{height:100%;width:100%;padding:calc(calc(8 / 15 * 1em) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(calc(8 / 15 * 1em) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));text-align:inherit;vertical-align:middle;box-shadow:none;border-width:var(--uui-button-border-width,1px);border-style:solid;border-color:var(--uui-button-border-color,var(--uui-interface-surface,#fefefe));border-radius:var(--uui-button-border-radius,var(--uui-border-radius,3px));cursor:pointer;font-size:var(--uui-button-font-size,inherit);font-family:inherit;font-weight:inherit;background-color:var(--uui-button-background-color,var(--uui-interface-surface,#fefefe));color:var(--uui-button-contrast,var(--uui-interface-contrast,#060606));transition:background-color 80ms,border-color 80ms,color 80ms}button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-interface-surface-hover,#fafafa));border-color:var(--uui-button-border-color-hover,var(--uui-interface-surface-hover,#fafafa));color:var(--uui-button-contrast-hover,var(--uui-interface-contrast-hover,#1b264f))}button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));border-color:var(--uui-button-border-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));color:var(--uui-button-contrast-disabled,var(--uui-interface-contrast-disabled,#73716e));cursor:default}button[disabled]:active{animation:${Qe}}#icon-check,#icon-wrong{fill:currentColor;display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}:host([look=primary]){font-weight:var(--uui-look-primary-font-weight,700)}:host([look=primary]) button{background-color:var(--uui-button-background-color,var(--uui-look-primary-surface,#1b264f));color:var(--uui-look-primary-contrast,#fefefe);border-style:var(--uui-button-border-style,var(--uui-look-primary-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-primary-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-primary-border,#1b264f))}:host([look=primary]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-primary-surface-hover,#3544b1));color:var(--uui-look-primary-contrast-hover,#fefefe);border-color:var(--uui-button-border-color-hover,var(--uui-look-primary-border-hover,#3544b1))}:host([look=primary]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-primary-surface-disabled,#737882));color:var(--uui-look-primary-contrast-disabled,#e4e4e4);border-color:var(--uui-button-border-color-disabled,var(--uui-look-primary-border-disabled,#737882))}:host([look=secondary]){font-weight:var(--uui-look-secondary-font-weight,500)}:host([look=secondary]) button{background-color:var(--uui-button-background-color,var(--uui-look-secondary-surface,#e2dad4));color:var(--uui-look-secondary-contrast,#1b264f);border-style:var(--uui-button-border-style,var(--uui-look-secondary-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-secondary-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-secondary-border,#e2dad4))}:host([look=secondary]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-secondary-surface-hover,#f3efed));color:var(--uui-look-secondary-contrast-hover,#3544b1);border-color:var(--uui-button-border-color-hover,var(--uui-look-secondary-border-hover,#f3efed))}:host([look=secondary]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-secondary-surface-disabled,#cfcfcf));color:var(--uui-look-secondary-contrast-disabled,#6a759a);border-color:var(--uui-button-border-color-disabled,var(--uui-look-secondary-border-disabled,#cfcfcf))}:host([look=outline]) button{font-weight:var(--uui-look-outline-font-weight,700)}:host([look=outline]) button{background-color:var(--uui-button-background-color,var(--uui-look-outline-surface,transparent));color:var(--uui-look-outline-contrast,#1b264f);border-style:var(--uui-button-border-style,var(--uui-look-outline-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-outline-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-outline-border,#1b264f))}:host([look=outline]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-outline-surface-hover,transparent));color:var(--uui-look-outline-contrast-hover,#3544b1);border-color:var(--uui-button-border-color-hover,var(--uui-look-outline-border-hover,#3544b1))}:host([look=outline]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-outline-surface-disabled,transparent));color:var(--uui-look-outline-contrast-disabled,#6a759a);border-color:var(--uui-button-border-color-disabled,var(--uui-look-outline-border-disabled,#6a759a))}:host([look=placeholder]){font-weight:var(--uui-look-placeholder-font-weight,400)}:host([look=placeholder]) button{background-color:var(--uui-button-background-color,var(--uui-look-placeholder-surface,transparent));color:var(--uui-look-placeholder-contrast,#1b264f);border-style:var(--uui-button-border-style,var(--uui-look-placeholder-border-style,dashed));border-radius:var(--uui-button-border-radius,var(--uui-look-placeholder-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-placeholder-border,#1b264f))}:host([look=placeholder]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-placeholder-surface-hover,transparent));color:var(--uui-look-placeholder-contrast-hover,#3544b1);border-color:var(--uui-button-border-color-hover,var(--uui-look-placeholder-border-hover,#3544b1))}:host([look=placeholder]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-placeholder-surface-disabled,transparent));color:var(--uui-look-placeholder-contrast-disabled,#6a759a);border-color:var(--uui-button-border-color-disabled,var(--uui-look-placeholder-border-disabled,#6a759a))}:host([look=positive]){font-weight:var(--uui-look-positive-font-weight,700)}:host([look=positive]) button{background-color:var(--uui-button-background-color,var(--uui-look-positive-surface,#25aa60));color:var(--uui-look-positive-contrast,#fefefe);border-style:var(--uui-button-border-style,var(--uui-look-positive-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-positive-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-positive-border,#25aa60))}:host([look=positive]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-positive-surface-hover,#2bc570));color:var(--uui-look-positive-contrast-hover,#fefefe);border-color:var(--uui-button-border-color-hover,var(--uui-look-positive-border-hover,#2bc570))}:host([look=positive]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-positive-surface-disabled,#597566));color:var(--uui-look-positive-contrast-disabled,#fefefe);border-color:var(--uui-button-border-color-disabled,var(--uui-look-positive-border-disabled,#597566))}:host([look=warning]){font-weight:var(--uui-look-warning-font-weight,700)}:host([look=warning]) button{background-color:var(--uui-button-background-color,var(--uui-look-warning-surface,#fad634));color:var(--uui-look-warning-contrast,#060606);border-style:var(--uui-button-border-style,var(--uui-look-warning-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-warning-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-warning-border,#fad634))}:host([look=warning]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-warning-surface-hover,#fbe065));color:var(--uui-look-warning-contrast-hover,#060606);border-color:var(--uui-button-border-color-hover,var(--uui-look-warning-border-hover,#fbe065))}:host([look=warning]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-warning-surface-disabled,#a6a085));color:var(--uui-look-warning-contrast-disabled,#060606);border-color:var(--uui-button-border-color-disabled,var(--uui-look-warning-border-disabled,#a6a085))}:host([look=danger]){font-weight:var(--uui-look-danger-font-weight,700)}:host([look=danger]) button{background-color:var(--uui-button-background-color,var(--uui-look-danger-surface,#d42054));color:var(--uui-look-danger-contrast,#fefefe);border-style:var(--uui-button-border-style,var(--uui-look-danger-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-danger-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-danger-border,#d42054))}:host([look=danger]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-danger-surface-hover,#e23c6b));color:var(--uui-look-danger-contrast-hover,#fefefe);border-color:var(--uui-button-border-color-hover,var(--uui-look-danger-border-hover,#e23c6b))}:host([look=danger]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-danger-surface-disabled,#856b72));color:var(--uui-look-danger-contrast-disabled,#fefefe);border-color:var(--uui-button-border-color-disabled,var(--uui-look-danger-border-disabled,#856b72))}`],Y([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"type",2),Y([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"disabled",2),Y([l({reflect:!0})],n.UUIButtonElement.prototype,"look",2),Y([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"compact",2),Y([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"state",2),Y([C("#button")],n.UUIButtonElement.prototype,"_button",2),n.UUIButtonElement=Y([c("uui-button")],n.UUIButtonElement);class me extends x{}me.OPEN="open";var pn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,At=(t,e,r,o)=>{for(var i=o>1?void 0:o?vn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&pn(e,r,i),i};n.UUICardElement=class extends qe(Le(h)){constructor(){super(...arguments);this.disabled=!1,this.error=!1}handleOpenClick(t){this.disabled||(t.stopPropagation(),this.dispatchEvent(new me(me.OPEN)))}handleOpenKeydown(t){this.disabled||t.key==="Enter"&&(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new me(me.OPEN)))}},n.UUICardElement.styles=[d`: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-interface-surface,#fefefe);--uui-card-border-width:3px;transition:box-shadow .1s ease-out}:host(*) *{outline-color:var(--uui-interface-outline,#3879ff);outline-offset:4px}:host(:focus){outline-color:var(--uui-interface-outline,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width)}: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-look-danger-border,#d42054);border-radius:var(--uui-border-radius,3px)}:host([selectable]){cursor:pointer}:host([disabled]){background:var(--uui-interface-surface-disabled,#e4e4e4);color:var(--uui-interface-contrast-disabled,#73716e)}:host([selectable])::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-card-border-width) * -1);width:calc(100% + calc(var(--uui-card-border-width) * 2));height:calc(100% + calc(var(--uui-card-border-width) * 2));box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-interface-select,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-card-border-width));transition:opacity .1s ease-out;opacity:0}:host([selectable]:hover)::after{opacity:.33}:host([selectable][selected]:hover)::after{opacity:.66}:host([selectable][selected])::after{opacity:1}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}`],At([l({type:Boolean,reflect:!0,attribute:"disabled"})],n.UUICardElement.prototype,"disabled",2),At([l({type:Boolean,reflect:!0})],n.UUICardElement.prototype,"error",2),n.UUICardElement=At([c("uui-card")],n.UUICardElement);var bn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,Dt=(t,e,r,o)=>{for(var i=o>1?void 0:o?fn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&bn(e,r,i),i};n.UUICardContentNodeElement=class extends n.UUICardElement{constructor(){super(...arguments);this.name="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return U(this,"uui-icon"),u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`<div id="open-part" tabindex="${this.disabled?E:0}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""} </span><span id="name">${this.name}</span></div><div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},n.UUICardContentNodeElement.styles=[...n.UUICardElement.styles,d`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px) var(--uui-size-4,12px)}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))}#icon{font-size:1.2em;margin-right:var(--uui-size-1,3px)}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer}:host([disabled]) #open-part{pointer-events:none}#open-part:hover{text-decoration:underline;color:var(--uui-interface-contrast-hover,#1b264f)}#name{margin-top:4px}`],Dt([l({type:String})],n.UUICardContentNodeElement.prototype,"name",2),Dt([g()],n.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),n.UUICardContentNodeElement=Dt([c("uui-card-content-node")],n.UUICardContentNodeElement);var mn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,nt=(t,e,r,o)=>{for(var i=o>1?void 0:o?gn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&mn(e,r,i),i};n.UUICardMediaElement=class extends n.UUICardElement{constructor(){super(...arguments);this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),U(this,"uui-symbol-folder"),U(this,"uui-symbol-file")}queryPreviews(t){this.hasPreview=t.path[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!1?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><button id="open-part" tabindex="${this.disabled?E:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button><div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},n.UUICardMediaElement.styles=[...n.UUICardElement.styles,d`#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;bottom:0;width:100%;background-color:var(--uui-color-white,#fefefe);color:var(--uui-color-black,#060606);border:none;cursor:pointer;border-top:1px solid rgba(0,0,0,.04);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);display:flex;justify-content:flex-start;align-items:center;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)}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-interface-surface-disabled,#e4e4e4);color:var(--uui-interface-contrast-disabled,#73716e)}#open-part:hover{text-decoration:underline;color:var(--uui-interface-contrast-hover,#1b264f)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}: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}`],nt([l({type:String})],n.UUICardMediaElement.prototype,"name",2),nt([l({type:String,attribute:"file-ext"})],n.UUICardMediaElement.prototype,"fileExt",2),nt([g()],n.UUICardMediaElement.prototype,"hasPreview",2),n.UUICardMediaElement=nt([c("uui-card-media")],n.UUICardMediaElement);var _n=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,tr=(t,e,r,o)=>{for(var i=o>1?void 0:o?yn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&_n(e,r,i),i};n.UUICardUserElement=class extends n.UUICardElement{constructor(){super(...arguments);this.name=""}connectedCallback(){super.connectedCallback(),U(this,"uui-avatar")}render(){return u`<uui-avatar id="avatar" name="${this.name}" size="m"></uui-avatar><div id="open-part" tabindex="${this.disabled?E:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},n.UUICardUserElement.styles=[...n.UUICardElement.styles,d`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px);align-items:center}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-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}#avatar{margin:var(--uui-size-3,9px)}slot[name=icon]::slotted(*){font-size:1.2em}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer;margin:0 0 3px 0}:host([disabled]) #open-part{pointer-events:none}#open-part>span{vertical-align:center;margin-top:3px}#open-part:hover{text-decoration:underline;color:var(--uui-interface-contrast-hover,#1b264f)}`],tr([l({type:String})],n.UUICardUserElement.prototype,"name",2),n.UUICardUserElement=tr([c("uui-card-user")],n.UUICardUserElement);var Un=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,ir=(t,e,r,o)=>{for(var i=o>1?void 0:o?wn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Un(e,r,i),i};n.UUICaretElement=class extends h{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 viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUICaretElement.styles=[d`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform-origin:50% 50%;transition:transform 280ms cubic-bezier(.17,-.88,.82,1.84)}:host([open]) svg{transform:rotate(180deg)}`],ir([l({type:Boolean,reflect:!0})],n.UUICaretElement.prototype,"open",2),n.UUICaretElement=ir([c("uui-caret")],n.UUICaretElement);var En=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,In=(t,e,r,o)=>{for(var i=o>1?void 0:o?$n(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&En(e,r,i),i};n.UUICheckboxElement=class extends D{renderCheckbox(){return u`<div id="ticker"><div id="icon-check">${St}</div></div>`}},n.UUICheckboxElement.formAssociated=!0,n.UUICheckboxElement.styles=[...D.styles,Ze,d`: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-interface-chosen-contrast,#fefefe));background-color:var(--uui-toggle-background-color,var(--uui-interface-surface,#fefefe));border:1px solid var(--uui-checkbox-border-color,var(--uui-interface-border,#c4c4c4));font-size:calc(var(--uui-checkbox-size) * .7)}label:hover input:not([disabled])+#ticker{border-color:var(--uui-checkbox-border-color-hover,var(--uui-interface-border-hover,#b3b3b3));background-color:var(--uui-checkbox-background-color-hover,var(--uui-interface-surface-hover,#fafafa))}label:focus #ticker{border-color:var(--uui-checkbox-border-color-focus,var(--uui-interface-border-focus,#b3b3b3));background-color:var(--uui-checkbox-background-color-focus,var(--uui-interface-surface-alt-focus,#d8d7d9))}input:checked+#ticker{border-color:var(--uui-interface-chosen,#1b264f)}label:hover input:checked:not([disabled])+#ticker{border-color:var(--uui-interface-chosen-hover,#26356e)}label:focus input:checked+#ticker{border-color:var(--uui-interface-chosen-focus,#1b264f)}#icon-check{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms,opacity 120ms;fill:var(--uui-interface-chosen-contrast,#fefefe);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-interface-chosen,#1b264f);transition:transform 120ms ease,opacity 120ms,background-color 120ms;transform:scale(0);opacity:0}label:hover input:checked:not([disabled])+#ticker::before{background-color:var(--uui-interface-chosen-hover,#26356e)}input:checked+#ticker::before{transform:scale(1);opacity:1}input:checked+#ticker #icon-check{opacity:1}label:focus input:checked+#ticker{background-color:var(--uui-interface-chosen-focus,#1b264f)}input:focus+#ticker{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-interface-outline,#3879ff)}:host(:not([disabled])) label:active input:checked+#ticker::before{transform:scale(.9)}:host(:not([pristine]):invalid) #ticker,:host(:not([pristine]):invalid) label:focus input:checked+#ticker,:host(:not([pristine]):invalid) label:hover #ticker,:host(:not([pristine]):invalid) label:hover input:checked: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:hover #ticker,:host(:not([pristine])[internals-invalid]) label:hover input:checked:not([disabled])+#ticker{border:1px solid var(--uui-look-danger-border,#d42054)}:host([disabled]) #ticker{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]) input:checked+#ticker{background-color:var(--uui-interface-chosen-disabled,#6a759a)}:host([disabled]) #ticker:after{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]) #ticker #icon-check{fill:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) label:active #ticker{animation:${Qe}}:host([disabled]) input:checked+#ticker #icon-check{fill:var(--uui-interface-chosen-contrast-disabled,#e4e4e4)}`],n.UUICheckboxElement=In([c("uui-checkbox")],n.UUICheckboxElement);var xn=Object.defineProperty,rr=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,or=(t,e,r)=>e in t?xn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,nr=(t,e)=>{for(var r in e||(e={}))Cn.call(e,r)&&or(t,r,e[r]);if(rr)for(var r of rr(e))Pn.call(e,r)&&or(t,r,e[r]);return t};class X extends x{constructor(e,r={}){super(e,nr(nr({},{bubbles:!0}),r))}}X.CHANGE="change";var kn=Object.defineProperty,On=Object.getOwnPropertyDescriptor,Z=(t,e,r,o)=>{for(var i=o>1?void 0:o?On(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&kn(e,r,i),i};n.UUIComboboxListElement=class extends h{constructor(){super(...arguments);this.displayValue="",this._value="",this._onSlotChange=()=>{this._activeElement=void 0;for(let t=0;t<this._activeOptions.length;t++)t===0?this._activeElement=this._activeOptions[t]:this._activeOptions[t].active=!1;this._updateSelection()},this._onSelected=t=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t.composedPath()[0],this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new X(X.CHANGE))},this._onUnselected=t=>{const e=t.composedPath()[0];this._activeElement===e&&(this._activeElement=void 0),this._selectedElement===e&&(this.value="",this.displayValue="",this.dispatchEvent(new X(X.CHANGE)))},this._moveIndex=t=>{const e=Math.min(Math.max(this._getActiveIndex()+t,0),this._options.length-1);this._goToIndex(e)},this._onKeyDown=t=>{var e;if(!(this._options.length<=0))switch(t.key){case"ArrowUp":t.preventDefault(),t.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":t.preventDefault(),t.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{t.preventDefault(),this._goToIndex(0);break}case"Enter":{t.preventDefault(),(e=this._activeElement)==null||e.click();break}case"End":{t.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(t){if(this._value===t)return;const e=this._value;this._value=t,this._updateSelection(),this.requestUpdate("value",e)}get for(){return this._for}set for(t){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=t,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}get _activeElement(){return this.__activeElement}set _activeElement(t){this.__activeElement&&(this.__activeElement.active=!1),t&&(t.active=!0,this.__activeElement=t)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(fe.SELECTED,this._onSelected),this.addEventListener(fe.UNSELECTED,this._onUnselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(fe.SELECTED,this._onSelected),this.removeEventListener(fe.UNSELECTED,this._onUnselected)}_updateSelection(){this.displayValue="";for(const t of this._options)t.value===this._value?(this.displayValue=t.displayValue||"",t.selected=!0):t.selected=!1}_getActiveIndex(){return this._activeElement?this._options.indexOf(this._activeElement):-1}_goToIndex(t){t=Math.min(Math.max(t,0),this._options.length-1),this._activeElement=this._options[t],this._activeElement&&this._activeElement.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>`}},n.UUIComboboxListElement.styles=[d`:host{display:flex;flex-direction:column;box-sizing:border-box}`],Z([l({type:String})],n.UUIComboboxListElement.prototype,"value",1),Z([l({type:String})],n.UUIComboboxListElement.prototype,"displayValue",2),Z([l({attribute:!1})],n.UUIComboboxListElement.prototype,"for",1),Z([W({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],n.UUIComboboxListElement.prototype,"_options",2),Z([W({flatten:!0,selector:"uui-combobox-list-option[active]"})],n.UUIComboboxListElement.prototype,"_activeOptions",2),Z([g()],n.UUIComboboxListElement.prototype,"_value",2),n.UUIComboboxListElement=Z([c("uui-combobox-list")],n.UUIComboboxListElement);var zn=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,ge=(t,e,r,o)=>{for(var i=o>1?void 0:o?Sn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&zn(e,r,i),i};n.UUIComboboxListOptionElement=class extends Le(Ge(h)){constructor(){super();this._disabled=!1,this._displayValue="",this.selectable=!0,this.unselectable=!1}get value(){var t;return this._value?this._value:((t=this.textContent)==null?void 0:t.trim())||""}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}get displayValue(){var t;return this._displayValue?this._displayValue:((t=this.textContent)==null?void 0:t.trim())||""}set displayValue(t){const e=this._displayValue;this._displayValue=t,this.requestUpdate("displayValue",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.selectable=!this._disabled,this.requestUpdate("disabled",e)}render(){return u`<slot></slot>`}},n.UUIComboboxListOptionElement.styles=[d`:host{position:relative;cursor:pointer;margin:0 6px;border-radius:var(--uui-border-radius,3px);outline:2px solid transparent;outline-offset:-2px}: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:#fff solid 2px;outline-offset:-4px}:host::before{display:block;content:'';opacity:0;position:absolute;inset:0;background-color:var(--uui-interface-select,#3544b1)}:host(:hover)::before{opacity:.15;border-radius:var(--uui-border-radius,3px)}:host([disabled]){cursor:auto;color:var(--uui-interface-surface-contrast-disabled);background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]:hover){background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([active]){outline-color:var(--uui-interface-outline,#3879ff)}:host([selected]){color:var(--uui-interface-select-contrast,#fefefe);background-color:var(--uui-interface-select,#3544b1)}:host([selected]:hover){color:var(--uui-interface-select-contrast-hover,#fefefe);background-color:var(--uui-interface-select-hover,#4656c8)}:host([selected][disabled]){color:var(--uui-interface-select-contrast-disabled,#e4e4e4);background-color:var(--uui-interface-select-disabled,#575757)}`],ge([g()],n.UUIComboboxListOptionElement.prototype,"_disabled",2),ge([g()],n.UUIComboboxListOptionElement.prototype,"_displayValue",2),ge([l({type:String})],n.UUIComboboxListOptionElement.prototype,"value",1),ge([l({type:String,attribute:"display-value"})],n.UUIComboboxListOptionElement.prototype,"displayValue",1),ge([l({type:Boolean,reflect:!0})],n.UUIComboboxListOptionElement.prototype,"disabled",1),n.UUIComboboxListOptionElement=ge([c("uui-combobox-list-option")],n.UUIComboboxListOptionElement);class A extends x{}A.SEARCH="search",A.CHANGE="change";var An=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Q=(t,e,r,o)=>{for(var i=o>1?void 0:o?Dn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&An(e,r,i),i};n.UUIComboboxElement=class extends j(h){constructor(){super(...arguments);this.open=!1,this._displayValue="",this._search="",this._onMouseDown=()=>requestAnimationFrame(()=>this._input.focus()),this._onBlur=()=>requestAnimationFrame(()=>{document.activeElement!==this&&this._close()}),this._onInput=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.search=t.target.value,this.dispatchEvent(new A(A.SEARCH)),this._open()},this._onChange=t=>{var e,r;t.stopImmediatePropagation(),this.value=((e=this._comboboxList)==null?void 0:e.value)||"",this._displayValue=((r=this._comboboxList)==null?void 0:r.displayValue)||"",this.search=this.value?this.search:"",this._close(),this.dispatchEvent(new A(A.CHANGE))},this._open=()=>{this.open||(this.open=!0)},this._close=()=>{var t;!this.open||(this.open=!1,this._displayValue=((t=this._comboboxList)==null?void 0:t.displayValue)||"",this._input.value=this._displayValue,this.search="",this.dispatchEvent(new A(A.SEARCH)))},this._onKeyDown=t=>{this.open===!1&&t.key==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation()),(t.key==="ArrowUp"||t.key==="ArrowDown")&&this._open(),(t.key==="Escape"||t.key==="Enter")&&this._close()},this._clear=t=>{t.key&&t.key!=="Enter"||(t.preventDefault(),t.stopImmediatePropagation(),this._displayValue="",this._input.value=this._displayValue,this.search="",this.value="",this._comboboxList.value=this.value,this.dispatchEvent(new A(A.CHANGE)))},this._renderInput=()=>u`<uui-input slot="trigger" id="combobox-input" label="combobox-input" type="text" .value="${this._displayValue}" .placeholder="${this._displayValue}" autocomplete="off" @click="${this._open}" @input="${this._onInput}" @keydown="${this._onKeyDown}"><slot name="input-prepend" slot="prepend"></slot>${this._renderClearButton()} ${this._renderCaret()}<slot name="input-append" slot="append"></slot></uui-input>`,this._renderCaret=()=>u`<svg id="caret" slot="append" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`,this._renderClearButton=()=>u`<uui-button id="clear-button" class="${this.value||this.search?"--show":""}" @click="${this._clear}" @keydown="${this._clear}" label="clear" slot="append" compact="compact" style="height:100%;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0"><uui-icon name="remove" .fallback="${Ji.strings[0]}"></uui-icon></uui-button>`,this._renderDropdown=()=>u`<div id="dropdown" slot="popover"><uui-scroll-container id="scroll-container"><slot></slot></uui-scroll-container></div>`}get value(){return this._value}set value(t){super.value=t,typeof t=="string"&&this._updateValue(t)}get search(){return this._search}set search(t){if(this.search===t)return;const e=this._search;this._search=t,this.requestUpdate("search",e)}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",this._onBlur),this.addEventListener("mousedown",this._onMouseDown),U(this,"uui-icon"),U(this,"uui-input"),U(this,"uui-button"),U(this,"uui-combobox-list"),U(this,"uui-scroll-container")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this._onBlur),this.removeEventListener("mousedown",this._onMouseDown)}async firstUpdated(){var t;const e=(t=this._comboboxListElements)==null?void 0:t[0];e&&(this._comboboxList=e,this._comboboxList.for=this,this._comboboxList.addEventListener(X.CHANGE,this._onChange),typeof this.value=="string"&&(await this.updateComplete,this._updateValue(this.value)))}_updateValue(t){var e;this._comboboxList&&(this._comboboxList.value=t,this._displayValue=((e=this._comboboxList)==null?void 0:e.displayValue)||"")}getFormElement(){return this._input}render(){return u`<uui-popover .open="${this.open}" .margin="${-1}" @close="${()=>this._close()}">${this._renderInput()} ${this._renderDropdown()}</uui-popover>`}},n.UUIComboboxElement.styles=[d`:host{position:relative;display:inline-block}#combobox-input{width:100%;border-radius:var(--uui-size-1,3px)}#scroll-container{max-height:var(--uui-combobox-popover-max-height,500px);overflow-y:auto}#dropdown{overflow:hidden;z-index:-1;background-color:var(--uui-combobox-popover-background-color,#fff);border:1px solid var(--uui-interface-border,#c4c4c4);border-radius:var(--uui-border-radius,3px);width:100%;height: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))}#clear-button{pointer-events:none;opacity:0;transition:opacity 120ms}#clear-button.--show{pointer-events:auto;opacity:1}#caret{margin-right:var(--uui-size-3,9px);display:flex;width:1.15em;flex-shrink:0;margin-top:-1px}`],Q([l({type:String})],n.UUIComboboxElement.prototype,"search",1),Q([l({type:Boolean})],n.UUIComboboxElement.prototype,"open",2),Q([C("#combobox-input")],n.UUIComboboxElement.prototype,"_input",2),Q([W({flatten:!0,selector:"uui-combobox-list"})],n.UUIComboboxElement.prototype,"_comboboxListElements",2),Q([g()],n.UUIComboboxElement.prototype,"_displayValue",2),Q([g()],n.UUIComboboxElement.prototype,"_search",2),n.UUIComboboxElement=Q([c("uui-combobox")],n.UUIComboboxElement);var Ln=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Lt=(t,e,r,o)=>{for(var i=o>1?void 0:o?Tn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ln(e,r,i),i};n.UUIDialogLayoutElement=class extends h{constructor(){super(...arguments);this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.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=[d`:host{display:block;padding:var(--uui-size-10,30px) var(--uui-size-14,42px)}#actions{margin-top:var(--uui-size-8,24px);display:flex;justify-content:end;gap:var(--uui-size-4,12px)}`],Lt([l({type:String})],n.UUIDialogLayoutElement.prototype,"headline",2),Lt([g()],n.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIDialogLayoutElement=Lt([c("uui-dialog-layout")],n.UUIDialogLayoutElement);var Nn=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,Hn=(t,e,r,o)=>{for(var i=o>1?void 0:o?Bn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Nn(e,r,i),i};n.UUIDialogElement=class extends h{render(){return u`<slot></slot>`}},n.UUIDialogElement.styles=[d`:host{position:relative;display:block;max-width:400px;background-color:var(--uui-dialog-background-color,var(--uui-interface-surface,#fefefe));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=Hn([c("uui-dialog")],n.UUIDialogElement);class Te extends x{}Te.FILE_CHANGE="file-change";var jn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Ne=(t,e,r,o)=>{for(var i=o>1?void 0:o?Mn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&jn(e,r,i),i};n.UUIFileDropzoneElement=class extends De("",h){constructor(){super();this.accept="",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)}browse(){this._input.click()}connectedCallback(){super.connectedCallback(),U(this,"uui-symbol-file-dropzone")}_checkIsItDirectory(t){return t.type?!1:t.webkitGetAsEntry().isDirectory}async _getAllFileEntries(t){const e=[],r=[];for(let o=0;o<t.length;o++)r.push(t[o].webkitGetAsEntry());if(this.accept){const o=[],i=[];for(this.accept.split(",").forEach(s=>{s.includes("*")?i.push(s.split("*")[0].trim().toLowerCase()):o.push(s.trim().toLowerCase())});r.length>0;){const s=r.shift();s.isFile&&await this._isAccepted(o,i,s)?e.push(s):s.isDirectory&&(e.push(s),r.push(...await this._readAllDirectoryEntries(s.createReader())))}}else for(;r.length>0;){const o=r.shift();o.isFile?e.push(o):o.isDirectory&&(e.push(o),r.push(...await this._readAllDirectoryEntries(o.createReader())))}return e}async _readAllDirectoryEntries(t){const e=[];let r=await this._readEntriesPromise(t);for(;r.length>0;)e.push(...r),r=await this._readEntriesPromise(t);return e}async _readEntriesPromise(t){try{return await new Promise((e,r)=>{t.readEntries(e,r)})}catch(e){console.log(e)}}async _getFile(t){return await new Promise((e,r)=>t.file(e,r))}async _isAccepted(t,e,r){const o=await this._getFile(r),i=o.type.toLowerCase(),s="."+o.name.split(".")[1].toLowerCase();return!!(t.includes(s)||t.includes(i)||e.some(a=>i.startsWith(a)))}async _onDrop(t){var e;t.preventDefault(),this._dropzone.classList.remove("hover");const r=(e=t.dataTransfer)==null?void 0:e.items;if(r){let o=await this._getAllFileEntries(r);this.multiple===!1&&o.length>0&&(o=[o[0]]),this.dispatchEvent(new Te(Te.FILE_CHANGE,{detail:{files:o}}))}}_onDragOver(t){t.preventDefault()}_onDragEnter(t){this._dropzone.classList.add("hover"),t.preventDefault()}_onDragLeave(t){this._dropzone.classList.remove("hover"),t.preventDefault()}_onFileInputChange(){const t=this._input.files?Array.from(this._input.files):[];this.dispatchEvent(new Te(Te.FILE_CHANGE,{detail:{files:t}}))}render(){return u`<div id="dropzone"><uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>${this.renderLabel()} <input @click="${t=>t.stopImmediatePropagation()}" id="input" type="file" accept="${this.accept}" ?multiple="${this.multiple}" @change="${this._onFileInputChange}" aria-label="${this.label}"></div>`}},n.UUIFileDropzoneElement.styles=[d`#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-primary,#3544b1)}#dropzone.hover::before{content:'';position:absolute;inset:0;opacity:.2;border-color:var(--uui-color-primary,#3544b1);background-color:var(--uui-color-primary,#3544b1)}#symbol{color:var(--uui-color-primary,#3544b1);max-width:100%;max-height:100%}#input{position:absolute;width:0;height:0;opacity:0;display:none}`],Ne([C("#input")],n.UUIFileDropzoneElement.prototype,"_input",2),Ne([C("#dropzone")],n.UUIFileDropzoneElement.prototype,"_dropzone",2),Ne([l({type:String})],n.UUIFileDropzoneElement.prototype,"accept",2),Ne([l({type:Boolean})],n.UUIFileDropzoneElement.prototype,"multiple",2),n.UUIFileDropzoneElement=Ne([c("uui-file-dropzone")],n.UUIFileDropzoneElement);class Rn{static humanFileSize(e,r=!1,o=1){const i=r?1e3:1024;if(Math.abs(e)<i)return e+" B";const s=r?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=-1;const v=10**o;do e/=i,++a;while(Math.round(Math.abs(e)*v)/v>=i&&a<s.length-1);return e.toFixed(o)+" "+s[a]}}var Fn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,L=(t,e,r,o)=>{for(var i=o>1?void 0:o?Vn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Fn(e,r,i),i};n.UUIFilePreviewElement=class extends h{constructor(){super(...arguments);this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(t){const e=this._file;t instanceof File&&(this._name=t.name.split(".")[0],this._extension=t.name.split(".")[1],this._isDirectory=!1,this._size=t.size,this._isFileAnImage(t)&&(this._isImage=!0,this._getThumbnail(t).then(r=>{this._src=r})),this.requestUpdate("file",e))}connectedCallback(){super.connectedCallback(),U(this,"uui-symbol-file-thumbnail"),U(this,"uui-symbol-folder"),U(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),r=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">${r}</span></span>`}_isFileAnImage(t){return t?t.type.split("/")[0]==="image":!1}async _getThumbnail(t){return await new Promise(e=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>{e(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`${Rn.humanFileSize(this._size,!0)}`:""}</span></div>`}},n.UUIFilePreviewElement.styles=[d`:host{position:relative;display:grid;grid-template-rows:100px 50px;width:150px;height:150px;box-sizing:border-box;aspect-ratio:1}: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}`],L([g()],n.UUIFilePreviewElement.prototype,"_name",2),L([g()],n.UUIFilePreviewElement.prototype,"_url",2),L([g()],n.UUIFilePreviewElement.prototype,"_extension",2),L([g()],n.UUIFilePreviewElement.prototype,"_src",2),L([g()],n.UUIFilePreviewElement.prototype,"_size",2),L([g()],n.UUIFilePreviewElement.prototype,"_isDirectory",2),L([g()],n.UUIFilePreviewElement.prototype,"_file",2),L([g()],n.UUIFilePreviewElement.prototype,"_isImage",2),L([l({attribute:!1})],n.UUIFilePreviewElement.prototype,"file",1),n.UUIFilePreviewElement=L([c("uui-file-preview")],n.UUIFilePreviewElement);var Gn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,st=(t,e,r,o)=>{for(var i=o>1?void 0:o?qn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Gn(e,r,i),i};n.UUIFormLayoutItemElement=class extends h{constructor(){super(...arguments);this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=t=>{this._labelSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=t=>{this._descriptionSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),U(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=[d`: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-interface-contrast-disabled,#73716e);font-size:var(--uui-type-small-size,12px)}#label+#description{margin-top:-8px;min-height:8px}`],st([l({type:String})],n.UUIFormLayoutItemElement.prototype,"description",2),st([g()],n.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),st([g()],n.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),n.UUIFormLayoutItemElement=st([c("uui-form-layout-item")],n.UUIFormLayoutItemElement);/**
215
+ */const rt=it(class extends ot{constructor(t){var e;if(super(t),t.type!==tt.ATTRIBUTE||t.name!=="style"||((e=t.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(t){return Object.keys(t).reduce((e,i)=>{const r=t[i];return r==null?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(t,[e]){const{style:i}=t.element;if(this.ct===void 0){this.ct=new Set;for(const r in e)this.ct.add(r);return this.render(e)}this.ct.forEach(r=>{e[r]==null&&(this.ct.delete(r),r.includes("-")?i.removeProperty(r):i[r]="")});for(const r in e){const o=e[r];o!=null&&(this.ct.add(r),r.includes("-")?i.setProperty(r,o):i[r]=o)}return M}});class nt extends k{}nt.CLICK="click";var en=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,st=(t,e,i,r)=>{for(var o=r>1?void 0:r?tn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&en(e,i,o),o};n.UUIButtonInlineCreateElement=class extends h{constructor(){super(...arguments),this._position=0,this.vertical=!1}_onMouseMove(t){this._position=this.vertical?t.offsetY:t.offsetX}_handleClick(t){t.preventDefault(),t.stopImmediatePropagation(),this.dispatchEvent(new nt(nt.CLICK))}render(){return c`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}"><div id="plus" style="${rt({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></button>`}},n.UUIButtonInlineCreateElement.styles=[Xr,d`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-8px 0}:host([vertical]){height:100%;width:20px;margin:0 -8px}#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}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:var(--uui-color-selected,#3544b1);border-top:1px solid var(--uui-color-surface,#fff);border-bottom:1px solid var(--uui-color-surface,#fff);border-radius:2px;pointer-events:none;animation:${Qr}}: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%)}: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-selected,#3544b1);color:var(--uui-color-selected,#3544b1);background-color:var(--uui-color-surface,#fff);box-shadow:0 0 0 2px 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}:host(:not([vertical])) #plus{margin-left:-21px}:host([vertical]) #plus{left:-4px;margin-top:-21px}#button-wrapper:focus #plus{border:2px solid #6ab4f0}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],st([f()],n.UUIButtonInlineCreateElement.prototype,"_position",2),st([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"label",2),st([l({type:Boolean,reflect:!0})],n.UUIButtonInlineCreateElement.prototype,"vertical",2),n.UUIButtonInlineCreateElement=st([u("uui-button-inline-create")],n.UUIButtonInlineCreateElement);class on{constructor(e,i){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(i)}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 U=(t,e,i=`This element has to be present for ${t.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${t.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",i,t)},St=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,rn=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,nn=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,sn=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,eo=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,an=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,ln=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,cn=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,to=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;/**
216
216
  * @license
217
- * Copyright 2020 Google LLC
217
+ * Copyright 2018 Google LLC
218
218
  * SPDX-License-Identifier: BSD-3-Clause
219
- */const{H:Wn}=jr,Kn=t=>t.strings===void 0,sr=()=>document.createComment(""),Be=(t,e,r)=>{var o;const i=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(r===void 0){const a=i.insertBefore(sr(),s),v=i.insertBefore(sr(),s);r=new Wn(a,v,t,t.options)}else{const a=r._$AB.nextSibling,v=r._$AM,b=v!==t;if(b){let p;(o=r._$AQ)===null||o===void 0||o.call(r,t),r._$AM=t,r._$AP!==void 0&&(p=t._$AU)!==v._$AU&&r._$AP(p)}if(a!==s||b){let p=r._$AA;for(;p!==a;){const I=p.nextSibling;i.insertBefore(p,s),p=I}}}return r},J=(t,e,r=t)=>(t._$AI(e,r),t),Yn={},Xn=(t,e=Yn)=>t._$AH=e,Zn=t=>t._$AH,Tt=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let r=t._$AA;const o=t._$AB.nextSibling;for(;r!==o;){const i=r.nextSibling;r.remove(),r=i}};/**
219
+ */const T=t=>t??E;var un=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,N=(t,e,i,r)=>{for(var o=r>1?void 0:r?dn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&un(e,i,o),o};n.UUIButtonElement=class extends R(Te("",h)){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}_onHostClick(t){var e;if(this.disabled){t.preventDefault(),t.stopImmediatePropagation();return}if((e=this._internals)!=null&&e.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}}updated(t){super.updated(t),t.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let t=c``;switch(this.state){case"waiting":U(this,"uui-loader-circle"),t=c`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":U(this,"uui-icon"),t=c`<uui-icon name="check" .fallback="${St.strings[0]}"></uui-icon>`;break;case"failed":U(this,"uui-icon"),t=c`<uui-icon name="wrong" .fallback="${to.strings[0]}"></uui-icon>`;break;default:return""}return c`<div id="state">${t}</div>`}render(){return this.href?c`<a id="button" aria-label="${this.label}" href="${T(this.disabled?void 0:this.href)}" target="${T(this.target||void 0)}" rel="${T(this.target==="_blank"?"noopener noreferrer":void 0)}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></a>`:c`<button id="button" ?disabled="${this.disabled}" aria-label="${this.label}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},n.UUIButtonElement.styles=[Je,d`: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;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}.label{line-height:normal;display:block;transition:opacity 120ms}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;transform:translate(-50%,-50%);top:50%;left:50%;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards}#button{height:100%;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:block;text-decoration:none;color:currentColor;line-height:normal;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:0 calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) 0 calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));vertical-align:middle;box-shadow:none}a:not([href]):active,button[disabled]:active{animation:${et}}#icon-check,#icon-wrong{fill:currentColor;display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}:host(:not([color]):not([look=primary])) #button,:host([color='']:not([look=primary])) #button,:host([color=default]:not([look=primary])) #button{--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,#25aa60);--color-standalone:var(--uui-color-positive-standalone,rgb(38, 156, 91));--color-emphasis:var(--uui-color-positive-emphasis,rgb(43, 197, 112));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]) #button{--color:var(--uui-color-warning,#fad634);--color-standalone:var(--uui-color-warning-standalone,rgb(224, 193, 51));--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][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,--color-standalone);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-emphasis));border-color:var(--uui-button-border-color-hover,var(--color-emphasis))}: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,--color-standalone)}: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))}`],N([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"type",2),N([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"disabled",2),N([l({reflect:!0})],n.UUIButtonElement.prototype,"look",2),N([l({reflect:!0})],n.UUIButtonElement.prototype,"color",2),N([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"compact",2),N([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"state",2),N([l({type:String})],n.UUIButtonElement.prototype,"href",2),N([l({type:String})],n.UUIButtonElement.prototype,"target",2),N([x("#button")],n.UUIButtonElement.prototype,"_button",2),n.UUIButtonElement=N([u("uui-button")],n.UUIButtonElement);class fe extends k{}fe.OPEN="open";var hn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,At=(t,e,i,r)=>{for(var o=r>1?void 0:r?pn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&hn(e,i,o),o};n.UUICardElement=class extends We(Ne(h)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(t){this.disabled||(t.stopPropagation(),this.dispatchEvent(new fe(fe.OPEN)))}handleOpenKeydown(t){this.disabled||t.key==="Enter"&&(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new fe(fe.OPEN)))}},n.UUICardElement.styles=[d`: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(*) *{outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(: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)}: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)}:host([selectable]){cursor:pointer}:host([disabled]){background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([selectable])::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-card-border-width) * -1);width:calc(100% + calc(var(--uui-card-border-width) * 2));height:calc(100% + calc(var(--uui-card-border-width) * 2));box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-card-border-width));transition:opacity .1s ease-out;opacity:0}:host([selectable]:hover)::after{opacity:.33}:host([selectable][selected]:hover)::after{opacity:.66}:host([selectable][selected])::after{opacity:1}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}`],At([l({type:Boolean,reflect:!0,attribute:"disabled"})],n.UUICardElement.prototype,"disabled",2),At([l({type:Boolean,reflect:!0})],n.UUICardElement.prototype,"error",2),n.UUICardElement=At([u("uui-card")],n.UUICardElement);var bn=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,Lt=(t,e,i,r)=>{for(var o=r>1?void 0:r?mn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&bn(e,i,o),o};n.UUICardContentNodeElement=class extends n.UUICardElement{constructor(){super(...arguments),this.name="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return U(this,"uui-icon"),c`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return c`<div id="open-part" tabindex="${this.disabled?E:0}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""} </span><span id="name">${this.name}</span></div><div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},n.UUICardContentNodeElement.styles=[...n.UUICardElement.styles,d`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px) var(--uui-size-4,12px)}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))}#icon{font-size:1.2em;margin-right:var(--uui-size-1,3px)}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer}:host([disabled]) #open-part{pointer-events:none}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}#name{margin-top:4px}`],Lt([l({type:String})],n.UUICardContentNodeElement.prototype,"name",2),Lt([f()],n.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),n.UUICardContentNodeElement=Lt([u("uui-card-content-node")],n.UUICardContentNodeElement);var vn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,at=(t,e,i,r)=>{for(var o=r>1?void 0:r?gn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&vn(e,i,o),o};n.UUICardMediaElement=class extends n.UUICardElement{constructor(){super(...arguments),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),U(this,"uui-symbol-folder"),U(this,"uui-symbol-file")}queryPreviews(t){this.hasPreview=t.path[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!1?this.fileExt===""?c`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:c`<uui-symbol-file id="file-symbol" type="${this.fileExt}"></uui-symbol-file>`:""}render(){return c`${this.renderMedia()}<slot @slotchange="${this.queryPreviews}"></slot><button id="open-part" tabindex="${this.disabled?E:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button><div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},n.UUICardMediaElement.styles=[...n.UUICardElement.styles,d`#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;bottom:0;width:100%;background-color:var(--uui-color-surface,#fff);color:var(--uui-color-interactive,#1b264f);border:none;cursor:pointer;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);display:flex;justify-content:flex-start;align-items:center;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)}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-interface-surface-disabled);color:var(--uui-interface-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}: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}`],at([l({type:String})],n.UUICardMediaElement.prototype,"name",2),at([l({type:String,attribute:"file-ext"})],n.UUICardMediaElement.prototype,"fileExt",2),at([f()],n.UUICardMediaElement.prototype,"hasPreview",2),n.UUICardMediaElement=at([u("uui-card-media")],n.UUICardMediaElement);var fn=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,io=(t,e,i,r)=>{for(var o=r>1?void 0:r?yn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&fn(e,i,o),o};n.UUICardUserElement=class extends n.UUICardElement{constructor(){super(...arguments),this.name=""}connectedCallback(){super.connectedCallback(),U(this,"uui-avatar")}render(){return c`<uui-avatar id="avatar" name="${this.name}" size="m"></uui-avatar><div id="open-part" tabindex="${this.disabled?E:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},n.UUICardUserElement.styles=[...n.UUICardElement.styles,d`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px);align-items:center}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-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}#avatar{margin:var(--uui-size-3,9px)}slot[name=icon]::slotted(*){font-size:1.2em}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer;margin:0 0 3px 0}:host([disabled]) #open-part{pointer-events:none}#open-part>span{vertical-align:center;margin-top:3px}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}`],io([l({type:String})],n.UUICardUserElement.prototype,"name",2),n.UUICardUserElement=io([u("uui-card-user")],n.UUICardUserElement);var Un=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,oo=(t,e,i,r)=>{for(var o=r>1?void 0:r?_n(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Un(e,i,o),o};n.UUICaretElement=class extends h{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 c`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUICaretElement.styles=[d`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform-origin:50% 50%;transition:transform 280ms cubic-bezier(.17,-.88,.82,1.84)}:host([open]) svg{transform:rotate(180deg)}`],oo([l({type:Boolean,reflect:!0})],n.UUICaretElement.prototype,"open",2),n.UUICaretElement=oo([u("uui-caret")],n.UUICaretElement);var wn=Object.defineProperty,En=Object.getOwnPropertyDescriptor,$n=(t,e,i,r)=>{for(var o=r>1?void 0:r?En(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&wn(e,i,o),o};n.UUICheckboxElement=class extends L{renderCheckbox(){return c`<div id="ticker"><div id="icon-check">${St}</div></div>`}},n.UUICheckboxElement.formAssociated=!0,n.UUICheckboxElement.styles=[...L.styles,Je,d`: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{border-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked+#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;fill: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{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:checked+#ticker::before{transform:scale(1);opacity:1}input:checked+#ticker #icon-check{opacity:1}label:focus input:checked+#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])) label:active input:checked+#ticker::before{transform:scale(.9)}:host(:not([pristine]):invalid) #ticker,:host(:not([pristine]):invalid) label:focus input:checked+#ticker,:host(:not([pristine]):invalid) label:hover #ticker,:host(:not([pristine]):invalid) label:hover input:checked: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:hover #ticker,:host(:not([pristine])[internals-invalid]) label:hover input:checked: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]) #ticker::before{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #ticker{animation:${et}}:host([disabled]) input:checked+#ticker #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}`],n.UUICheckboxElement=$n([u("uui-checkbox")],n.UUICheckboxElement);var In=Object.defineProperty,ro=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,no=(t,e,i)=>e in t?In(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,so=(t,e)=>{for(var i in e||(e={}))kn.call(e,i)&&no(t,i,e[i]);if(ro)for(var i of ro(e))xn.call(e,i)&&no(t,i,e[i]);return t};class X extends k{constructor(e,i={}){super(e,so(so({},{bubbles:!0}),i))}}X.CHANGE="change";var Cn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,Q=(t,e,i,r)=>{for(var o=r>1?void 0:r?zn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Cn(e,i,o),o};n.UUIComboboxListElement=class extends h{constructor(){super(...arguments),this.displayValue="",this._value="",this._onSlotChange=()=>{this._activeElement=void 0;for(let t=0;t<this._activeOptions.length;t++)t===0?this._activeElement=this._activeOptions[t]:this._activeOptions[t].active=!1;this._updateSelection()},this._onSelected=t=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t.composedPath()[0],this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new X(X.CHANGE))},this._onUnselected=t=>{const e=t.composedPath()[0];this._activeElement===e&&(this._activeElement=void 0),this._selectedElement===e&&(this.value="",this.displayValue="",this.dispatchEvent(new X(X.CHANGE)))},this._moveIndex=t=>{const e=Math.min(Math.max(this._getActiveIndex()+t,0),this._options.length-1);this._goToIndex(e)},this._onKeyDown=t=>{var e;if(!(this._options.length<=0))switch(t.key){case"ArrowUp":t.preventDefault(),t.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":t.preventDefault(),t.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{t.preventDefault(),this._goToIndex(0);break}case"Enter":{t.preventDefault(),(e=this._activeElement)==null||e.click();break}case"End":{t.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(t){if(this._value===t)return;const e=this._value;this._value=t,this._updateSelection(),this.requestUpdate("value",e)}get for(){return this._for}set for(t){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=t,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}get _activeElement(){return this.__activeElement}set _activeElement(t){this.__activeElement&&(this.__activeElement.active=!1),t&&(t.active=!0,this.__activeElement=t)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(ge.SELECTED,this._onSelected),this.addEventListener(ge.UNSELECTED,this._onUnselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(ge.SELECTED,this._onSelected),this.removeEventListener(ge.UNSELECTED,this._onUnselected)}_updateSelection(){this.displayValue="";for(const t of this._options)t.value===this._value?(this.displayValue=t.displayValue||"",t.selected=!0):t.selected=!1}_getActiveIndex(){return this._activeElement?this._options.indexOf(this._activeElement):-1}_goToIndex(t){t=Math.min(Math.max(t,0),this._options.length-1),this._activeElement=this._options[t],this._activeElement&&this._activeElement.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return c`<slot @slotchange="${this._onSlotChange}"></slot>`}},n.UUIComboboxListElement.styles=[d`:host{display:flex;flex-direction:column;box-sizing:border-box}`],Q([l({type:String})],n.UUIComboboxListElement.prototype,"value",1),Q([l({type:String})],n.UUIComboboxListElement.prototype,"displayValue",2),Q([l({attribute:!1})],n.UUIComboboxListElement.prototype,"for",1),Q([Y({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],n.UUIComboboxListElement.prototype,"_options",2),Q([Y({flatten:!0,selector:"uui-combobox-list-option[active]"})],n.UUIComboboxListElement.prototype,"_activeOptions",2),Q([f()],n.UUIComboboxListElement.prototype,"_value",2),n.UUIComboboxListElement=Q([u("uui-combobox-list")],n.UUIComboboxListElement);var On=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,ye=(t,e,i,r)=>{for(var o=r>1?void 0:r?Pn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&On(e,i,o),o};n.UUIComboboxListOptionElement=class extends Ne(Ke(h)){constructor(){super(),this._disabled=!1,this._displayValue="",this.selectable=!0,this.unselectable=!1}get value(){var t;return this._value?this._value:((t=this.textContent)==null?void 0:t.trim())||""}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}get displayValue(){var t;return this._displayValue?this._displayValue:((t=this.textContent)==null?void 0:t.trim())||""}set displayValue(t){const e=this._displayValue;this._displayValue=t,this.requestUpdate("displayValue",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.selectable=!this._disabled,this.requestUpdate("disabled",e)}render(){return c`<slot></slot>`}},n.UUIComboboxListOptionElement.styles=[d`:host{position:relative;cursor:pointer;margin:0 6px;border-radius:var(--uui-border-radius,3px);outline:2px solid transparent;outline-offset:-2px}: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)}`],ye([f()],n.UUIComboboxListOptionElement.prototype,"_disabled",2),ye([f()],n.UUIComboboxListOptionElement.prototype,"_displayValue",2),ye([l({type:String})],n.UUIComboboxListOptionElement.prototype,"value",1),ye([l({type:String,attribute:"display-value"})],n.UUIComboboxListOptionElement.prototype,"displayValue",1),ye([l({type:Boolean,reflect:!0})],n.UUIComboboxListOptionElement.prototype,"disabled",1),n.UUIComboboxListOptionElement=ye([u("uui-combobox-list-option")],n.UUIComboboxListOptionElement);class A extends k{}A.SEARCH="search",A.CHANGE="change";var Sn=Object.defineProperty,An=Object.getOwnPropertyDescriptor,J=(t,e,i,r)=>{for(var o=r>1?void 0:r?An(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Sn(e,i,o),o};n.UUIComboboxElement=class extends R(h){constructor(){super(...arguments),this.open=!1,this._displayValue="",this._search="",this._onMouseDown=()=>requestAnimationFrame(()=>this._input.focus()),this._onBlur=()=>requestAnimationFrame(()=>{document.activeElement!==this&&this._close()}),this._onInput=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.search=t.target.value,this.dispatchEvent(new A(A.SEARCH)),this._open()},this._onChange=t=>{var e,i;t.stopImmediatePropagation(),this.value=((e=this._comboboxList)==null?void 0:e.value)||"",this._displayValue=((i=this._comboboxList)==null?void 0:i.displayValue)||"",this.search=this.value?this.search:"",this._close(),this.dispatchEvent(new A(A.CHANGE))},this._open=()=>{this.open||(this.open=!0)},this._close=()=>{var t;!this.open||(this.open=!1,this._displayValue=((t=this._comboboxList)==null?void 0:t.displayValue)||"",this._input.value=this._displayValue,this.search="",this.dispatchEvent(new A(A.SEARCH)))},this._onKeyDown=t=>{this.open===!1&&t.key==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation()),(t.key==="ArrowUp"||t.key==="ArrowDown")&&this._open(),(t.key==="Escape"||t.key==="Enter")&&this._close()},this._clear=t=>{t.key&&t.key!=="Enter"||(t.preventDefault(),t.stopImmediatePropagation(),this._displayValue="",this._input.value=this._displayValue,this.search="",this.value="",this._comboboxList.value=this.value,this.dispatchEvent(new A(A.CHANGE)))},this._renderInput=()=>c`<uui-input slot="trigger" id="combobox-input" label="combobox-input" type="text" .value="${this._displayValue}" .placeholder="${this._displayValue}" autocomplete="off" @click="${this._open}" @input="${this._onInput}" @keydown="${this._onKeyDown}"><slot name="input-prepend" slot="prepend"></slot>${this._renderClearButton()} ${this._renderCaret()}<slot name="input-append" slot="append"></slot></uui-input>`,this._renderCaret=()=>c`<svg id="caret" slot="append" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`,this._renderClearButton=()=>c`<uui-button id="clear-button" class="${this.value||this.search?"--show":""}" @click="${this._clear}" @keydown="${this._clear}" label="clear" slot="append" compact="compact" style="height:100%"><uui-icon name="remove" .fallback="${eo.strings[0]}"></uui-icon></uui-button>`,this._renderDropdown=()=>c`<div id="dropdown" slot="popover"><uui-scroll-container id="scroll-container"><slot></slot></uui-scroll-container></div>`}get value(){return this._value}set value(t){super.value=t,typeof t=="string"&&this._updateValue(t)}get search(){return this._search}set search(t){if(this.search===t)return;const e=this._search;this._search=t,this.requestUpdate("search",e)}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",this._onBlur),this.addEventListener("mousedown",this._onMouseDown),U(this,"uui-icon"),U(this,"uui-input"),U(this,"uui-button"),U(this,"uui-combobox-list"),U(this,"uui-scroll-container")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this._onBlur),this.removeEventListener("mousedown",this._onMouseDown)}async firstUpdated(){var t;const e=(t=this._comboboxListElements)==null?void 0:t[0];e&&(this._comboboxList=e,this._comboboxList.for=this,this._comboboxList.addEventListener(X.CHANGE,this._onChange),typeof this.value=="string"&&(await this.updateComplete,this._updateValue(this.value)))}_updateValue(t){var e;this._comboboxList&&(this._comboboxList.value=t,this._displayValue=((e=this._comboboxList)==null?void 0:e.displayValue)||"")}getFormElement(){return this._input}render(){return c`<uui-popover .open="${this.open}" .margin="${-1}" @close="${()=>this._close()}">${this._renderInput()} ${this._renderDropdown()}</uui-popover>`}},n.UUIComboboxElement.styles=[d`:host{position:relative;display:inline-block}#combobox-input{width:100%;border-radius:var(--uui-size-1,3px)}#scroll-container{max-height:var(--uui-combobox-popover-max-height,500px);overflow-y:auto}#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%;height: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))}#clear-button{pointer-events:none;opacity:0;transition:opacity 120ms}#clear-button.--show{pointer-events:auto;opacity:1}#caret{margin-right:var(--uui-size-3,9px);display:flex;width:1.15em;flex-shrink:0;margin-top:-1px}`],J([l({type:String})],n.UUIComboboxElement.prototype,"search",1),J([l({type:Boolean})],n.UUIComboboxElement.prototype,"open",2),J([x("#combobox-input")],n.UUIComboboxElement.prototype,"_input",2),J([Y({flatten:!0,selector:"uui-combobox-list"})],n.UUIComboboxElement.prototype,"_comboboxListElements",2),J([f()],n.UUIComboboxElement.prototype,"_displayValue",2),J([f()],n.UUIComboboxElement.prototype,"_search",2),n.UUIComboboxElement=J([u("uui-combobox")],n.UUIComboboxElement);var Ln=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Tt=(t,e,i,r)=>{for(var o=r>1?void 0:r?Tn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Ln(e,i,o),o};n.UUIDialogLayoutElement=class extends h{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return c`<h3 style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h3>`}renderContent(){return c`<slot></slot>`}renderActions(){return c`<slot id="actions" name="actions"></slot>`}render(){return c`${this.renderHeadline()} ${this.renderContent()} ${this.renderActions()}`}},n.UUIDialogLayoutElement.styles=[d`: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)}`],Tt([l({type:String})],n.UUIDialogLayoutElement.prototype,"headline",2),Tt([f()],n.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIDialogLayoutElement=Tt([u("uui-dialog-layout")],n.UUIDialogLayoutElement);var Nn=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,jn=(t,e,i,r)=>{for(var o=r>1?void 0:r?Dn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Nn(e,i,o),o};n.UUIDialogElement=class extends h{render(){return c`<slot></slot>`}},n.UUIDialogElement.styles=[d`:host{position:relative;display:block;max-width:400px;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=jn([u("uui-dialog")],n.UUIDialogElement);class De extends k{}De.FILE_CHANGE="file-change";var Bn=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,je=(t,e,i,r)=>{for(var o=r>1?void 0:r?Hn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Bn(e,i,o),o};n.UUIFileDropzoneElement=class extends Te("",h){constructor(){super(),this.accept="",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)}browse(){this._input.click()}connectedCallback(){super.connectedCallback(),U(this,"uui-symbol-file-dropzone")}_checkIsItDirectory(t){return t.type?!1:t.webkitGetAsEntry().isDirectory}async _getAllFileEntries(t){const e=[],i=[];for(let r=0;r<t.length;r++)i.push(t[r].webkitGetAsEntry());if(this.accept){const r=[],o=[];for(this.accept.split(",").forEach(s=>{s.includes("*")?o.push(s.split("*")[0].trim().toLowerCase()):r.push(s.trim().toLowerCase())});i.length>0;){const s=i.shift();s.isFile&&await this._isAccepted(r,o,s)?e.push(s):s.isDirectory&&(e.push(s),i.push(...await this._readAllDirectoryEntries(s.createReader())))}}else for(;i.length>0;){const r=i.shift();r.isFile?e.push(r):r.isDirectory&&(e.push(r),i.push(...await this._readAllDirectoryEntries(r.createReader())))}return e}async _readAllDirectoryEntries(t){const e=[];let i=await this._readEntriesPromise(t);for(;i.length>0;)e.push(...i),i=await this._readEntriesPromise(t);return e}async _readEntriesPromise(t){try{return await new Promise((e,i)=>{t.readEntries(e,i)})}catch(e){console.log(e)}}async _getFile(t){return await new Promise((e,i)=>t.file(e,i))}async _isAccepted(t,e,i){const r=await this._getFile(i),o=r.type.toLowerCase(),s="."+r.name.split(".")[1].toLowerCase();return!!(t.includes(s)||t.includes(o)||e.some(a=>o.startsWith(a)))}async _onDrop(t){var e;t.preventDefault(),this._dropzone.classList.remove("hover");const i=(e=t.dataTransfer)==null?void 0:e.items;if(i){let r=await this._getAllFileEntries(i);this.multiple===!1&&r.length>0&&(r=[r[0]]),this.dispatchEvent(new De(De.FILE_CHANGE,{detail:{files:r}}))}}_onDragOver(t){t.preventDefault()}_onDragEnter(t){this._dropzone.classList.add("hover"),t.preventDefault()}_onDragLeave(t){this._dropzone.classList.remove("hover"),t.preventDefault()}_onFileInputChange(){const t=this._input.files?Array.from(this._input.files):[];this.dispatchEvent(new De(De.FILE_CHANGE,{detail:{files:t}}))}render(){return c`<div id="dropzone"><uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>${this.renderLabel()} <input @click="${t=>t.stopImmediatePropagation()}" id="input" type="file" accept="${this.accept}" ?multiple="${this.multiple}" @change="${this._onFileInputChange}" aria-label="${this.label}"></div>`}},n.UUIFileDropzoneElement.styles=[d`#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}`],je([x("#input")],n.UUIFileDropzoneElement.prototype,"_input",2),je([x("#dropzone")],n.UUIFileDropzoneElement.prototype,"_dropzone",2),je([l({type:String})],n.UUIFileDropzoneElement.prototype,"accept",2),je([l({type:Boolean})],n.UUIFileDropzoneElement.prototype,"multiple",2),n.UUIFileDropzoneElement=je([u("uui-file-dropzone")],n.UUIFileDropzoneElement);class Mn{static humanFileSize(e,i=!1,r=1){const o=i?1e3:1024;if(Math.abs(e)<o)return e+" B";const s=i?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=-1;const b=10**r;do e/=o,++a;while(Math.round(Math.abs(e)*b)/b>=o&&a<s.length-1);return e.toFixed(r)+" "+s[a]}}var Rn=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,D=(t,e,i,r)=>{for(var o=r>1?void 0:r?Fn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Rn(e,i,o),o};n.UUIFilePreviewElement=class extends h{constructor(){super(...arguments),this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(t){const e=this._file;t instanceof File&&(this._name=t.name.split(".")[0],this._extension=t.name.split(".")[1],this._isDirectory=!1,this._size=t.size,this._isFileAnImage(t)&&(this._isImage=!0,this._getThumbnail(t).then(i=>{this._src=i})),this.requestUpdate("file",e))}connectedCallback(){super.connectedCallback(),U(this,"uui-symbol-file-thumbnail"),U(this,"uui-symbol-folder"),U(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?c`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?c`<uui-symbol-file-thumbnail .src="${this._src}" .alt="${this._name}" id="file-symbol"></uui-symbol-file-thumbnail>`:c`<uui-symbol-file id="file-symbol" .type="${this._extension}"></uui-symbol-file>`}_renderLongName(){const t=this._name.substring(0,this._name.length-6),e=this._name.substring(this._name.length-6,this._name.length);return c`<span id="file-name" class="${this._url?"has-source":""}" @click="${()=>this._url?this._openSource():""}" @keydown="${()=>""}"><span id="file-name-start">${t}</span> <span id="file-name-end">${e}</span></span>`}_isFileAnImage(t){return t?t.type.split("/")[0]==="image":!1}async _getThumbnail(t){return await new Promise(e=>{const i=new FileReader;i.readAsDataURL(t),i.onload=()=>{e(i.result)}})}render(){return c`<slot id="actions" name="actions"></slot>${this._fileTypeTemplate()}<div id="file-info">${this._renderLongName()} <span id="file-size">${this._size&&!this._isDirectory?c`${Mn.humanFileSize(this._size,!0)}`:""}</span></div>`}},n.UUIFilePreviewElement.styles=[d`: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}`],D([f()],n.UUIFilePreviewElement.prototype,"_name",2),D([f()],n.UUIFilePreviewElement.prototype,"_url",2),D([f()],n.UUIFilePreviewElement.prototype,"_extension",2),D([f()],n.UUIFilePreviewElement.prototype,"_src",2),D([f()],n.UUIFilePreviewElement.prototype,"_size",2),D([f()],n.UUIFilePreviewElement.prototype,"_isDirectory",2),D([f()],n.UUIFilePreviewElement.prototype,"_file",2),D([f()],n.UUIFilePreviewElement.prototype,"_isImage",2),D([l({attribute:!1})],n.UUIFilePreviewElement.prototype,"file",1),n.UUIFilePreviewElement=D([u("uui-file-preview")],n.UUIFilePreviewElement);var Vn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,lt=(t,e,i,r)=>{for(var o=r>1?void 0:r?Gn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Vn(e,i,o),o};n.UUIFormLayoutItemElement=class extends h{constructor(){super(...arguments),this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=t=>{this._labelSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=t=>{this._descriptionSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),U(this,"uui-form-validation-message")}render(){return c`<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=[d`: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}`],lt([l({type:String})],n.UUIFormLayoutItemElement.prototype,"description",2),lt([f()],n.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),lt([f()],n.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),n.UUIFormLayoutItemElement=lt([u("uui-form-layout-item")],n.UUIFormLayoutItemElement);/**
220
220
  * @license
221
- * Copyright 2017 Google LLC
221
+ * Copyright 2020 Google LLC
222
222
  * SPDX-License-Identifier: BSD-3-Clause
223
- */const ar=(t,e,r)=>{const o=new Map;for(let i=e;i<=r;i++)o.set(t[i],i);return o},lr=et(class extends tt{constructor(t){if(super(t),t.type!==Je.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);const i=[],s=[];let a=0;for(const v of t)i[a]=o?o(v,a):a,s[a]=r(v,a),a++;return{values:s,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){var i;const s=Zn(t),{values:a,keys:v}=this.dt(e,r,o);if(!Array.isArray(s))return this.ut=v,a;const b=(i=this.ut)!==null&&i!==void 0?i:this.ut=[],p=[];let I,_,f=0,y=s.length-1,w=0,$=a.length-1;for(;f<=y&&w<=$;)if(s[f]===null)f++;else if(s[y]===null)y--;else if(b[f]===v[w])p[w]=J(s[f],a[w]),f++,w++;else if(b[y]===v[$])p[$]=J(s[y],a[$]),y--,$--;else if(b[f]===v[$])p[$]=J(s[f],a[$]),Be(t,p[$+1],s[f]),f++,$--;else if(b[y]===v[w])p[w]=J(s[y],a[w]),Be(t,s[f],s[y]),y--,w++;else if(I===void 0&&(I=ar(v,w,$),_=ar(b,f,y)),I.has(b[f]))if(I.has(b[y])){const z=_.get(v[w]),re=z!==void 0?s[z]:null;if(re===null){const Ie=Be(t,s[f]);J(Ie,a[w]),p[w]=Ie}else p[w]=J(re,a[w]),Be(t,s[f],re),s[z]=null;w++}else Tt(s[y]),y--;else Tt(s[f]),f++;for(;w<=$;){const z=Be(t,p[$+1]);J(z,a[w]),p[w++]=z}for(;f<=y;){const z=s[f++];z!==null&&Tt(z)}return this.ut=v,Xn(t,p),H}});var Qn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,ur=(t,e,r,o)=>{for(var i=o>1?void 0:o?Jn(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Qn(e,r,i),i};n.UUIFormValidationMessageElement=class extends h{constructor(){super();this._for=null,this._messages=new Map,this._onControlInvalid=t=>{const e=t.target;e.pristine===!1?this._messages.set(e,e.validationMessage):this._messages.delete(e),this.requestUpdate()},this._onControlValid=t=>{this._messages.delete(t.target),this.requestUpdate()},this.for===null&&(this.for=this)}get for(){return this._for}set for(t){let e=null;if(typeof t=="string"){const i=this.getRootNode();e=i?.getElementById(t)}const r=e||this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(be.INVALID,this._onControlInvalid),o.removeEventListener(be.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(be.INVALID,this._onControlInvalid),this._for.addEventListener(be.VALID,this._onControlValid))}render(){return u`<slot></slot><div id="messages">${lr(this._messages,t=>u`<div>${t[1]}</div>`)}<slot name="message"></slot></div>`}},n.UUIFormValidationMessageElement.styles=[d`#messages{color:var(--uui-look-danger-surface,#d42054)}`],ur([l({reflect:!1,attribute:!0})],n.UUIFormValidationMessageElement.prototype,"for",1),n.UUIFormValidationMessageElement=ur([c("uui-form-validation-message")],n.UUIFormValidationMessageElement);var es=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,is=(t,e,r,o)=>{for(var i=o>1?void 0:o?ts(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&es(e,r,i),i};n.UUIFormElement=class extends h{constructor(){super(...arguments);this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(t){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const e=t.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=e.length>0?e[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(t){if(t.target===null)return;const e=t.target;if(!e.checkValidity()){e.setAttribute("submit-invalid","");return}e.removeAttribute("submit-invalid")}_onReset(t){t.target!==null&&t.target.removeAttribute("submit-invalid")}render(){return u`<slot @slotchange="${this._onSlotChanged}"></slot>`}},n.UUIFormElement=is([c("uui-form")],n.UUIFormElement);/**
223
+ */const{H:qn}=Ho,Kn=t=>t.strings===void 0,ao=()=>document.createComment(""),Be=(t,e,i)=>{var r;const o=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(i===void 0){const a=o.insertBefore(ao(),s),b=o.insertBefore(ao(),s);i=new qn(a,b,t,t.options)}else{const a=i._$AB.nextSibling,b=i._$AM,m=b!==t;if(m){let p;(r=i._$AQ)===null||r===void 0||r.call(i,t),i._$AM=t,i._$AP!==void 0&&(p=t._$AU)!==b._$AU&&i._$AP(p)}if(a!==s||m){let p=i._$AA;for(;p!==a;){const I=p.nextSibling;o.insertBefore(p,s),p=I}}}return i},ee=(t,e,i=t)=>(t._$AI(e,i),t),Wn={},Yn=(t,e=Wn)=>t._$AH=e,Zn=t=>t._$AH,Nt=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let i=t._$AA;const r=t._$AB.nextSibling;for(;i!==r;){const o=i.nextSibling;i.remove(),i=o}};/**
224
224
  * @license
225
225
  * Copyright 2017 Google LLC
226
226
  * SPDX-License-Identifier: BSD-3-Clause
227
- */class Nt extends tt{constructor(e){if(super(e),this.it=E,e.type!==Je.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===E||e==null)return this.ft=void 0,this.it=e;if(e===H)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this.ft;this.it=e;const r=[e];return r.raw=r,this.ft={_$litType$:this.constructor.resultType,strings:r,values:[]}}}Nt.directiveName="unsafeHTML",Nt.resultType=1;const Bt=et(Nt);var rs=Object.defineProperty,cr=Object.getOwnPropertySymbols,os=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable,dr=(t,e,r)=>e in t?rs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,hr=(t,e)=>{for(var r in e||(e={}))os.call(e,r)&&dr(t,r,e[r]);if(cr)for(var r of cr(e))ns.call(e,r)&&dr(t,r,e[r]);return t};class _e extends x{constructor(e,r={}){super(e,hr(hr({},{bubbles:!0}),r));this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}}_e.ICON_REQUEST="icon_request";var ss=Object.defineProperty,as=Object.getOwnPropertyDescriptor,ye=(t,e,r,o)=>{for(var i=o>1?void 0:o?as(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&ss(e,r,i),i};n.UUIIconElement=class extends h{constructor(){super(...arguments);this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(t){this._name=t,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const t=new _e(_e.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(t),t.icon!==null?(this._retrievedNameIcon=!0,t.icon.then(e=>{this._useFallback=!1,this._nameSvg=e})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon()}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:Bt(this.fallback):this._nameSvg!==null?Bt(this._nameSvg):this.svg!==null?Bt(this.svg):u`<slot></slot>`}},n.UUIIconElement.styles=[d`:host{display:inline-block;vertical-align:bottom;width:1.15em;height:1.15em}::slotted(svg),:host svg{fill:var(--uui-icon-color,currentColor)}`],ye([g()],n.UUIIconElement.prototype,"_nameSvg",2),ye([l()],n.UUIIconElement.prototype,"name",1),ye([l({attribute:!1})],n.UUIIconElement.prototype,"svg",2),ye([l({attribute:!1})],n.UUIIconElement.prototype,"fallback",2),ye([g()],n.UUIIconElement.prototype,"_useFallback",2),n.UUIIconElement=ye([c("uui-icon")],n.UUIIconElement);class Ht{constructor(e){this.promise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),e&&this.resolve(e)}set svg(e){this.resolve(e)}}class jt{constructor(){this.icons={},this._onIconRequest=e=>{const r=this.getIcon(e.detail.iconName);r!==null&&e.acceptRequest(r)}}attach(e){e.addEventListener(_e.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(_e.ICON_REQUEST,this._onIconRequest)}defineIcon(e,r){if(this.icons[e]){this.icons[e].svg=r;return}this.icons[e]=new Ht(r)}getIcon(e){return!!this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Ht}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}}var ls=Object.defineProperty,us=Object.getOwnPropertyDescriptor,pr=(t,e,r,o)=>{for(var i=o>1?void 0:o?us(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&ls(e,r,i),i};n.UUIIconRegistryElement=class extends h{constructor(){super();this._icons={},this._registry=new jt,this._registry.attach(this)}get icons(){return this._icons}set icons(t){this._icons=t,this._registry&&Object.entries(this._icons).forEach(([e,r])=>this._registry.defineIcon(e,r))}get registry(){return this._registry}set registry(t){this.registry&&this.registry.detach(this),t.attach(this),this._registry=t}render(){return u`<slot></slot>`}},pr([l({attribute:!1})],n.UUIIconRegistryElement.prototype,"_icons",2),n.UUIIconRegistryElement=pr([c("uui-icon-registry")],n.UUIIconRegistryElement);const cs=m`<svg 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>`,ds=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M255.399 66.934L36.38 444.893h438.036L255.399 66.934zm22.094 331.988h-46.29v-44.743h46.29v44.743zm-11.458-63.166h-23.068l-12.849-106.419v-57.846h48.458v57.846l-12.541 106.419z"/></svg>`,hs=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M127.286 449.816c-21.564.006-43.317-8.494-59.885-25.062-16.578-16.575-25.083-38.336-25.079-59.897-.029-20.296 7.623-40.755 23.034-56.14l3.539-3.539 212.559-212.57c20.227-20.255 47.082-30.304 73.852-30.267 28.454-.012 57.219 11.208 79.179 33.159 21.937 21.949 33.153 50.698 33.147 79.151.028 26.779-10.016 53.627-30.268 73.865l-178.45 178.453-13.28 13.277-26.56-26.559 191.738-191.733c12.842-12.871 19.229-29.708 19.259-47.303-.004-18.645-7.323-37.759-22.152-52.592-14.834-14.838-33.958-22.152-52.613-22.165-17.588.034-34.423 6.418-47.284 19.266L95.447 331.734l-3.536 3.537c-8.011 8.031-11.994 18.482-12.029 29.585.014 11.761 4.614 23.877 14.079 33.345 9.455 9.446 21.562 14.043 33.326 14.056 11.102-.034 21.551-4.014 29.587-12.026l150.412-150.404 12.596-12.595c3.018-3.04 4.521-6.906 4.549-11.331 0-4.666-1.817-9.57-5.722-13.476-3.914-3.916-8.819-5.726-13.48-5.739-4.425.038-8.283 1.542-11.328 4.564L155.27 349.882l-26.561-26.56L267.33 184.703c10.408-10.44 24.289-15.604 37.897-15.57 14.468-.012 29.01 5.704 40.049 16.739 11.007 11.025 16.72 25.554 16.72 40.029.029 13.599-5.129 27.479-15.559 37.89l-12.601 12.595-150.41 150.41c-15.365 15.377-35.768 23.025-56.022 23.021l-.118-.001z"/></svg>`,ps=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M342.391 352.428h-44.879v44.865h44.879v-44.865zm-63.234-120.071h-44.849v44.853h44.849v-44.853zm63.234 60.034h-44.879v44.859h44.879v-44.859zm63.174-60.034h-44.854v44.853h44.854v-44.853zm-126.408 60.034h-44.849v44.859h44.849v-44.859zm63.234-60.034h-44.879v44.853h44.879v-44.853zm63.174 60.034h-44.854v44.859h44.854v-44.859zm-252.803 60.037h-44.856v44.865h44.856v-44.865zm0-60.037h-44.856v44.859h44.856v-44.859zM394.024 74.208v19.691c7.737 6.847 12.642 16.825 12.642 27.969 0 20.634-16.732 37.367-37.369 37.367-20.642 0-37.367-16.733-37.367-37.367 0-11.147 4.903-21.124 12.643-27.969V74.208H169.97v19.691c7.739 6.847 12.643 16.825 12.643 27.969 0 20.634-16.732 37.367-37.369 37.367-20.64 0-37.367-16.733-37.367-37.367 0-11.147 4.904-21.124 12.642-27.969V74.208h-83.27v397.644h436.668V74.208h-79.893zm40.011 357.759H77.131V183.544h356.904v248.423zm-218.047-199.61h-44.881v44.853h44.881v-44.853zm0 120.071h-44.881v44.865h44.881v-44.865zm63.169 0h-44.849v44.865h44.849v-44.865zm-63.169-60.037h-44.881v44.859h44.881v-44.859zM145.245 143.64c10.273 0 18.603-8.326 18.603-18.599V58.035c0-10.267-8.329-18.6-18.603-18.6-10.274 0-18.602 8.333-18.602 18.6v67.006c0 10.272 8.328 18.599 18.602 18.599zm224.054 0c10.272 0 18.601-8.326 18.601-18.599V58.035c0-10.267-8.328-18.6-18.601-18.6-10.274 0-18.604 8.333-18.604 18.6v67.006c0 10.272 8.329 18.599 18.604 18.599z"/></svg>`,vs=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,bs=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M380.295 95.092h-68.479a54.17 54.17 0 00.097-3.321c0-30.805-24.948-55.743-55.722-55.743-30.803 0-55.756 24.938-55.756 55.743 0 1.112.065 2.208.098 3.321h-68.446v57.766h248.208V95.092zm-124.104 21.76c-13.865-.033-25.049-11.232-25.079-25.081.03-13.862 11.214-25.081 25.079-25.1 13.834.019 25.083 11.237 25.083 25.1 0 13.848-11.249 25.047-25.083 25.081zm149.053 13.787v48.676H107.172v-48.676H79.537v345.078h353.307V130.639h-27.6z"/></svg>`,fs=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M38.299 255.395l137.255-137.248 46.782 46.789-90.458 90.459 90.458 90.46-46.782 46.792L38.299 255.395zm248.467 90.46l90.466-90.46-72.028-72.026-18.431-18.433 46.788-46.791 18.436 18.438L470.81 255.395 333.561 392.647l-46.795-46.792z"/></svg>`,ms=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460.5 78.244l-26.472-26.473c-16.867-16.868-44.216-16.865-61.083.003l-61.466 61.468-29.702-29.699-58.764 58.763 24.501 24.499L79.748 334.573C68.761 345.557 62.6 359.972 61.767 374.81l-9.766 9.764c-20.867 20.881-20.863 54.838.002 75.704 10.106 10.108 23.548 15.679 37.85 15.679 14.297 0 27.733-5.568 37.847-15.67l9.758-9.765c15.211-.821 29.394-7.139 40.248-17.99l167.771-167.767 24.493 24.495 58.765-58.764-29.698-29.699 61.465-61.466c16.87-16.869 16.87-44.218-.002-61.087zM150.574 405.398a23.298 23.298 0 01-16.532 6.846c-3.501 0-7.007-.782-10.231-2.343v.007l-23.242 23.236a15.092 15.092 0 01-10.716 4.439 15.1 15.1 0 01-10.715-4.439c-5.919-5.922-5.919-15.516-.002-21.436l23.233-23.238.008-.004c-4.226-8.725-2.741-19.518 4.503-26.761l167.769-167.768 43.695 43.693-167.77 167.768z"></path></svg>`,gs=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M243.47 64.86l-7.335-7.333H36.725V474.23h298.07V156.187l-7.332-7.335L243.47 64.86zm66.287 384.329H61.761V82.566h141.615c37.203 0 19.276 88.18 19.276 88.18s86-20.9 87.104 18.53v259.913zm157.051-330.866l-81.266-81.268H258.938l25.043 25.038h71.481c.063 0 .12.01.185.01-.006.286-.023.547-.023.837 11.174 0 16.69 9.045 19.118 20.95 4.358 22.959-2.312 55.826-2.312 55.826s.137-.031.341-.082c-.114.602-.181.933-.181.933s67.129-16.325 75.793 10.732c.077.294.161.585.225.887.083.302.14.612.207.921.154.928.26 1.889.287 2.904v228.807h-87.998l.002 25.037h113.037V125.66l-7.335-7.337z"/></svg>`,_s=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,ys=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg>`,Us=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.3,297.9v92.3H103.9v-92.3H73.2v122.9H439V297.9H408.3z M374.2,189.1h-77.7V90.8h-82.8v98.3h-77.6l119,144.2L374.2,189.1L374.2,189.1z"/></svg>`,ws=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M412.656 38.477l-49.973 49.975 58.761 58.76 49.976-49.98-58.764-58.755zM177.421 338.155l-15.932-15.935 190.923-190.928-16.286-16.283L85.215 365.922l.186.185-47.919 106.778 106.309-48.383.182.182.482-.482.006-.003 250.424-250.432-26.537-26.537-190.927 190.925zm-39.26 59.052l-46.369 21.102 20.9-46.572 23.388-23.387 3.367 22.301 22.097 3.164-23.383 23.392z"/></svg>`,Es=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.908 86.358c-55.975-26.379-122.761-2.379-149.132 53.615-1.831 3.885-3.421 8.767-4.813 14.428-1.391-5.661-2.984-10.543-4.814-14.428-26.373-55.994-93.143-79.994-149.135-53.615-55.959 26.371-79.969 93.122-53.597 149.113 26.369 55.989 207.502 216.478 207.502 216.478s.018-.203.042-.515l.043.515S436.139 291.46 462.506 235.471c26.373-55.991 2.397-122.742-53.598-149.113z"/></svg>`,$s=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.211 169.501v-.316H52.564v.328c-7.956 1.548-13.959 8.547-13.959 16.955 0 0 5.683 86.463 6.726 117.611 1.045 31.147 3.844 114.728 3.844 114.728 0 9.544 1.973 17.281 11.514 17.281h388.458c9.543 0 11.514-7.737 11.514-17.281 0 0 2.804-83.58 3.845-114.728 1.044-31.147 6.727-117.611 6.727-117.611-.002-8.433-6.036-15.442-14.022-16.967zm0-42.313c0-8.98-7.277-16.256-16.258-16.256H235.305c-6.43-.161-11.384-11.842-11.384-16.311l.003-1.902c0-9.546-7.737-17.28-17.28-17.28H97.168c-9.544 0-17.281 7.734-17.281 17.28l.004 1.902c0 4.5-5.021 16.322-11.517 16.322h.155c-8.844.157-15.965 7.364-15.965 16.244v11.223h404.647v-11.222z"/></svg>`,Is=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="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"/></svg>`,xs=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 38.7C136 38.7 38.7 136 38.7 256S136 473.3 256 473.3 473.3 376 473.3 256 376 38.7 256 38.7zm18.1 326h-36.2V237.9h36.2v126.8zM256 192.6c-15 0-27.2-12.2-27.2-27.2s12.2-27.2 27.2-27.2 27.2 12.2 27.2 27.2-12.2 27.2-27.2 27.2z"/></svg>`,Cs=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M270.508 338.006c-27.316.03-54.696-10.671-75.323-31.318l-3.266-3.266 46.784-46.799 3.271 3.267c8.054 8.036 18.233 11.915 28.533 11.942 10.79-.043 21.088-3.93 29.123-11.942l76.701-76.701c8.024-8.05 11.909-18.306 11.945-28.895-.036-10.495-3.915-20.722-11.936-28.769l-3.268-3.266c-8.049-8.025-18.283-11.903-28.827-11.943-10.55.04-20.785 3.918-28.835 11.943l-31.537 31.543c-12.916 12.922-33.867 12.922-46.788 0-12.924-12.919-12.924-33.867-.005-46.789l31.542-31.544c20.794-20.821 48.361-31.36 75.623-31.327 27.256-.034 54.82 10.505 75.618 31.327l3.266 3.263a106.693 106.693 0 0131.319 75.561c.038 27.25-10.474 54.848-31.325 75.684l-76.704 76.7c-20.915 20.941-48.588 31.328-75.743 31.328l-.168.001zM163.966 468.393c-27.308.027-54.694-10.67-75.322-31.324l-3.264-3.26c-20.875-20.854-31.364-48.479-31.326-75.725-.033-27.27 10.556-54.782 31.326-75.518l76.704-76.707c20.794-20.821 48.361-31.366 75.623-31.327a106.798 106.798 0 0161.267 19.273 33.045 33.045 0 018.42 6.119l5.931 5.93 3.266 3.263h-.001l.001.003-46.781 46.798-.005-.006-3.266-3.266c-8.052-8.024-18.285-11.903-28.832-11.943-10.545.04-20.781 3.918-28.832 11.943l-76.711 76.712c-8.021 8.048-11.901 18.261-11.935 28.726.038 10.627 3.922 20.886 11.938 28.932l3.269 3.26c8.055 8.038 18.235 11.913 28.531 11.941 10.794-.043 21.092-3.928 29.13-11.941l33.051-33.051c12.923-12.915 33.872-12.915 46.788.006 12.921 12.917 12.921 33.863 0 46.787l-33.053 33.051c-20.914 20.938-48.592 31.324-75.745 31.324h-.172z"/></svg>`,Ps=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,ks=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M289.335 420.379V90.8h83.103v329.579h-83.103zm-152.737-.002V90.804h83.101v329.573h-83.101z"/></svg>`,Os=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,zs=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M397.727 256.048l-286.7 166.932V89.114z"/></svg>`,Ss=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,As=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M470.704 407.906l-2.691-2.689.006-.002-107.514-107.523c14.938-25.733 23.616-55.565 23.82-87.451.626-97.615-77.99-177.243-175.599-177.857l-1.168-.002c-97.06.005-176.067 78.392-176.692 175.598-.618 97.609 77.999 177.236 175.597 177.859.389.002.766.004 1.155.004 32.442 0 62.846-8.79 88.998-24.075L404.035 469.2l.01-.01 2.686 2.686c8.125 8.124 21.293 8.117 29.414 0l34.56-34.554c8.115-8.117 8.121-21.293-.001-29.416zm-263.956-67.135c-72.589-.466-131.271-59.907-130.812-132.502C76.4 136.14 135.45 77.457 207.561 77.453l.88.002c35.167.22 68.144 14.124 92.851 39.148 24.705 25.025 38.188 58.178 37.962 93.352-.222 35.015-14.027 67.893-38.867 92.564-24.834 24.67-57.78 38.252-92.768 38.252h-.871z"/></svg>`,Ds=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,Ls=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M469.92 279.717v-48.898l-6.906-2.256-52.35-17.091-13.971-33.728 26.852-56.814-34.586-34.581-6.477 3.288-49.1 24.937-33.721-13.971-21.198-59.171h-48.899l-2.253 6.912-17.091 52.352-33.712 13.966-56.833-26.849-34.573 34.58 3.287 6.474 24.933 49.116-13.96 33.707-59.182 21.189v48.909l6.914 2.253 52.352 17.094 13.966 33.718-26.845 56.82 34.567 34.587 6.484-3.294 49.103-24.931 33.719 13.968 21.188 59.165h48.902l2.26-6.908 17.094-52.35 33.721-13.967 56.818 26.855 34.584-34.59-3.286-6.48-24.937-49.094 13.969-33.726 59.167-21.191zM255.054 324.78c-37.819 0-68.478-30.657-68.478-68.479 0-37.819 30.659-68.481 68.478-68.481 37.819 0 68.475 30.662 68.475 68.481 0 37.822-30.656 68.479-68.475 68.479z"/></svg>`,Ts=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M88.871 297.086v-83.1h332.084v83.1H88.871z"/></svg>`,Ns=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M203.447 202.931l-54.568-54.566c27.503-27.173 65.183-43.913 106.927-43.913 42.13.014 79.972 16.983 107.622 44.577 27.594 27.648 44.561 65.492 44.578 107.629h66.177c-.024-120.624-97.761-218.361-218.376-218.386-59.897 0-114.277 24.203-153.724 63.295l-50.36-50.36.003 151.725h151.721zM363.991 363.67c-27.605 27.918-65.809 45.184-108.183 45.176-42.139-.008-79.978-16.981-107.623-44.574-27.601-27.645-44.565-65.482-44.582-107.614H37.436c.017 120.614 97.751 218.347 218.373 218.374 60.54-.008 115.433-24.73 154.979-64.562l48.997 49V311.423H311.742l52.249 52.247z"/></svg>`,Bs=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,Hs=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,js=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M306.997 124.391c8.992 0 16.277-7.286 16.277-16.276V57.184c.002-8.989-7.285-16.276-16.277-16.276-8.983 0-16.271 7.287-16.273 16.276v50.932c0 8.989 7.29 16.278 16.273 16.275zm80.752 23.244l36.015-36.017c6.356-6.357 6.353-16.662 0-23.015-6.357-6.356-16.662-6.356-23.019 0l-36.013 36.014c-6.356 6.356-6.358 16.661 0 23.018 6.354 6.356 16.661 6.353 23.017 0zm-161.066 2.552c6.354 6.353 16.663 6.353 23.018 0 6.353-6.356 6.353-16.662 0-23.018l-36.018-36.018c-6.355-6.353-16.661-6.353-23.015 0-6.359 6.356-6.359 16.662 0 23.018l36.015 36.018zm159.5 113.463c-6.356-6.357-16.663-6.357-23.02 0-6.354 6.355-6.354 16.661 0 23.018l36.015 36.014c6.356 6.356 16.663 6.356 23.018 0 6.358-6.356 6.358-16.658 0-23.015l-36.013-36.017zm-70.019-131.061L37.625 411.125l58.761 58.76 278.541-278.533-58.763-58.763zm-65.195 99.172l67.606-67.608 24.787 24.788-67.606 67.608-24.787-24.788zm205.2-41.684h-50.934c-8.99 0-16.275 7.289-16.275 16.275-.004 8.985 7.285 16.275 16.275 16.275h50.934c8.988 0 16.273-7.29 16.273-16.275 0-8.99-7.285-16.275-16.273-16.275z"></path></svg>`,Ms=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;class vr extends jt{constructor(){super();this.defineIcon("add",cs.strings[0]),this.defineIcon("alert",ds.strings[0]),this.defineIcon("attachment",hs.strings[0]),this.defineIcon("calendar",ps.strings[0]),this.defineIcon("check",vs.strings[0]),this.defineIcon("clipboard",bs.strings[0]),this.defineIcon("code",fs.strings[0]),this.defineIcon("colorpicker",ms.strings[0]),this.defineIcon("copy",gs.strings[0]),this.defineIcon("delete",_s.strings[0]),this.defineIcon("document",ys.strings[0]),this.defineIcon("download",Us.strings[0]),this.defineIcon("edit",ws.strings[0]),this.defineIcon("favorite",Es.strings[0]),this.defineIcon("folder",$s.strings[0]),this.defineIcon("forbidden",Is.strings[0]),this.defineIcon("info",xs.strings[0]),this.defineIcon("link",Cs.strings[0]),this.defineIcon("lock",Ps.strings[0]),this.defineIcon("pause",ks.strings[0]),this.defineIcon("picture",Os.strings[0]),this.defineIcon("play",zs.strings[0]),this.defineIcon("remove",Ss.strings[0]),this.defineIcon("search",As.strings[0]),this.defineIcon("see",Ds.strings[0]),this.defineIcon("settings",Ls.strings[0]),this.defineIcon("subtract",Ts.strings[0]),this.defineIcon("sync",Ns.strings[0]),this.defineIcon("unlock",Bs.strings[0]),this.defineIcon("unsee",Hs.strings[0]),this.defineIcon("wand",js.strings[0]),this.defineIcon("wrong",Ms.strings[0])}}var Rs=Object.defineProperty,Fs=Object.getOwnPropertyDescriptor,Vs=(t,e,r,o)=>{for(var i=o>1?void 0:o?Fs(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Rs(e,r,i),i};n.UUIIconRegistryEssentialElement=class extends n.UUIIconRegistryElement{constructor(){super();this.registry=new vr}},n.UUIIconRegistryEssentialElement=Vs([c("uui-icon-registry-essential")],n.UUIIconRegistryEssentialElement);/**
227
+ */const lo=(t,e,i)=>{const r=new Map;for(let o=e;o<=i;o++)r.set(t[o],o);return r},co=it(class extends ot{constructor(t){if(super(t),t.type!==tt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let r;i===void 0?i=e:e!==void 0&&(r=e);const o=[],s=[];let a=0;for(const b of t)o[a]=r?r(b,a):a,s[a]=i(b,a),a++;return{values:s,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,r]){var o;const s=Zn(t),{values:a,keys:b}=this.dt(e,i,r);if(!Array.isArray(s))return this.ut=b,a;const m=(o=this.ut)!==null&&o!==void 0?o:this.ut=[],p=[];let I,_,v=0,y=s.length-1,w=0,$=a.length-1;for(;v<=y&&w<=$;)if(s[v]===null)v++;else if(s[y]===null)y--;else if(m[v]===b[w])p[w]=ee(s[v],a[w]),v++,w++;else if(m[y]===b[$])p[$]=ee(s[y],a[$]),y--,$--;else if(m[v]===b[$])p[$]=ee(s[v],a[$]),Be(t,p[$+1],s[v]),v++,$--;else if(m[y]===b[w])p[w]=ee(s[y],a[w]),Be(t,s[v],s[y]),y--,w++;else if(I===void 0&&(I=lo(b,w,$),_=lo(m,v,y)),I.has(m[v]))if(I.has(m[y])){const P=_.get(b[w]),re=P!==void 0?s[P]:null;if(re===null){const ke=Be(t,s[v]);ee(ke,a[w]),p[w]=ke}else p[w]=ee(re,a[w]),Be(t,s[v],re),s[P]=null;w++}else Nt(s[y]),y--;else Nt(s[v]),v++;for(;w<=$;){const P=Be(t,p[$+1]);ee(P,a[w]),p[w++]=P}for(;v<=y;){const P=s[v++];P!==null&&Nt(P)}return this.ut=b,Yn(t,p),M}});var Xn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,uo=(t,e,i,r)=>{for(var o=r>1?void 0:r?Qn(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Xn(e,i,o),o};n.UUIFormValidationMessageElement=class extends h{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=t=>{const e=t.target;e.pristine===!1?this._messages.set(e,e.validationMessage):this._messages.delete(e),this.requestUpdate()},this._onControlValid=t=>{this._messages.delete(t.target),this.requestUpdate()},this.for===null&&(this.for=this)}get for(){return this._for}set for(t){let e=null;if(typeof t=="string"){const o=this.getRootNode();e=o?.getElementById(t)}const i=e||this,r=this._for;r!==i&&(r!==null&&(r.removeEventListener(ve.INVALID,this._onControlInvalid),r.removeEventListener(ve.VALID,this._onControlValid)),this._for=i,this._for.addEventListener(ve.INVALID,this._onControlInvalid),this._for.addEventListener(ve.VALID,this._onControlValid))}render(){return c`<slot></slot><div id="messages">${co(this._messages,t=>c`<div>${t[1]}</div>`)}<slot name="message"></slot></div>`}},n.UUIFormValidationMessageElement.styles=[d`#messages{color:var(--uui-color-danger-standalone,#bf214e)}`],uo([l({reflect:!1,attribute:!0})],n.UUIFormValidationMessageElement.prototype,"for",1),n.UUIFormValidationMessageElement=uo([u("uui-form-validation-message")],n.UUIFormValidationMessageElement);var Jn=Object.defineProperty,es=Object.getOwnPropertyDescriptor,ts=(t,e,i,r)=>{for(var o=r>1?void 0:r?es(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Jn(e,i,o),o};n.UUIFormElement=class extends h{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(t){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const e=t.target.assignedNodes({flatten:!0}).filter(i=>i instanceof HTMLFormElement);this._formElement=e.length>0?e[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(t){if(t.target===null)return;const e=t.target;if(!e.checkValidity()){e.setAttribute("submit-invalid","");return}e.removeAttribute("submit-invalid")}_onReset(t){t.target!==null&&t.target.removeAttribute("submit-invalid")}render(){return c`<slot @slotchange="${this._onSlotChanged}"></slot>`}},n.UUIFormElement=ts([u("uui-form")],n.UUIFormElement);/**
228
228
  * @license
229
- * Copyright 2018 Google LLC
229
+ * Copyright 2017 Google LLC
230
230
  * SPDX-License-Identifier: BSD-3-Clause
231
- */const at=t=>t??E;class ee extends x{}ee.CHANGE="change",ee.INPUT="input";var Gs=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,S=(t,e,r,o)=>{for(var i=o>1?void 0:o?qs(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Gs(e,r,i),i};n.UUIInputElement=class extends j(h){constructor(){super();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._type="text",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)}get type(){return this._type}set type(t){this._type=t}firstUpdated(t){super.firstUpdated(t),this.addFormControlElement(this._input)}focus(){this._input.focus()}getFormElement(){return this._input}onInput(t){this.value=t.target.value,this.dispatchEvent(new ee(ee.INPUT))}onChange(){this.pristine=!1,this.dispatchEvent(new ee(ee.CHANGE))}renderPrepend(){return u`<slot name="prepend"></slot>`}renderAppend(){return u`<slot name="append"></slot>`}render(){return u`${this.renderPrepend()} <input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" autocomplete="${at(this.autocomplete)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}"> ${this.renderAppend()}`}},n.UUIInputElement.formAssociated=!0,n.UUIInputElement.styles=[d`:host{position:relative;display:inline-flex;align-items:center;height:var(--uui-size-11,33px);text-align:left;box-sizing:border-box;background-color:var(--uui-input-background-color,var(--uui-interface-surface,#fefefe));border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-interface-border,#c4c4c4))}:host(:hover){border-color:var(--uui-input-border-color-hover,var(--uui-interface-border-hover,#b3b3b3))}:host(:focus-within){border-color:var(--uui-input-border-color-focus,var(--uui-interface-border-focus,#b3b3b3));outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-interface-outline,#3879ff)}:host(:focus){border-color:var(--uui-input-border-color-focus,var(--uui-interface-border-focus,#b3b3b3))}:host([disabled]){background-color:var(--uui-input-background-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));border-color:var(--uui-input-border-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));color:var(--uui-interface-contrast-disabled,#73716e)}:host([readonly]){border-color:var(--uui-input-border-color-readonly,var(--uui-interface-border-readonly,#dedede))}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border-color:var(--uui-look-danger-border,#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%;text-align:inherit;outline:0}input::placeholder{transition:opacity 120ms}:host(:not([readonly])) input:focus::placeholder{opacity:0}input[type=color]{width:30px;padding:0;border:none}::slotted(uui-input){height:100%;--uui-input-border-width:0}`],S([l({type:Number})],n.UUIInputElement.prototype,"minlength",2),S([l({type:String,attribute:"minlength-message"})],n.UUIInputElement.prototype,"minlengthMessage",2),S([l({type:Number})],n.UUIInputElement.prototype,"maxlength",2),S([l({type:String,attribute:"maxlength-message"})],n.UUIInputElement.prototype,"maxlengthMessage",2),S([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"disabled",2),S([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"readonly",2),S([l({type:String})],n.UUIInputElement.prototype,"label",2),S([l()],n.UUIInputElement.prototype,"placeholder",2),S([l()],n.UUIInputElement.prototype,"autocomplete",2),S([l({type:String})],n.UUIInputElement.prototype,"type",1),S([C("#input")],n.UUIInputElement.prototype,"_input",2),n.UUIInputElement=S([c("uui-input")],n.UUIInputElement);var Ws=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,Ue=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ks(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ws(e,r,i),i};n.UUIInputFileElement=class extends j(h){constructor(){super();this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=t=>{let e=[];for(const r of t)this.multiple?e.push(r):e=[r];this._files=e},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return this._value}set value(t){if(super.value=t,t instanceof FormData){const e=this.multiple?t.getAll(this.name):[t.get(this.name)];this._updateFileWrappers(e);return}if(t instanceof File){this._updateFileWrappers([t]);return}}connectedCallback(){super.connectedCallback(),U(this,"uui-icon"),U(this,"uui-file-dropzone"),U(this,"uui-button"),U(this,"uui-action-bar"),U(this,"uui-file-preview")}getFormElement(){return this._dropZone}_handleClick(t){t.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(t){const r=t.detail.files.filter(i=>i instanceof File||i.isFile);if(!this.multiple){const i=r[0],a=i instanceof File?i:await this._getFile(i);if(this.value instanceof File){this.value=a;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,a),this._updateFileWrappers([a]);return}}let o=this.value;if(r.length>0&&!(this.value instanceof FormData)&&(o=new FormData),o instanceof FormData)for(const i of r){const s=i instanceof File;o.append(this.name,s?i:await this._getFile(i))}this.value=o}async _getFile(t){return await new Promise((e,r)=>t.file(e,r))}_removeFile(t){const e=this._files[t];if(this.value instanceof FormData){const o=this.value.getAll(this.name).filter(i=>i!==e);if(o.length===0)this.value="";else{this.value.delete(this.name);for(const i of o)this.value.append(this.name,i)}this._updateFileWrappers(o)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(t){t?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(t,e){return u`<uui-file-preview .file="${t}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(e)}" look="danger" label="${`Delete ${t.name}`}"><uui-icon name="delete" .fallback="${nn.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${lr(this._files,t=>t.name+t.size,(t,e)=>this._renderFileItem(t,e))}`}render(){return u`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @file-change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()}<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button></div>`}},n.UUIInputFileElement.styles=[d`:host{width:100%;height:100%;position:relative;display:flex;box-sizing:border-box;border:1px solid var(--uui-interface-border,#c4c4c4)}#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:center}`],Ue([C("#dropzone")],n.UUIInputFileElement.prototype,"_dropzone",2),Ue([C("#dropzone")],n.UUIInputFileElement.prototype,"_dropZone",2),Ue([l({type:String})],n.UUIInputFileElement.prototype,"accept",2),Ue([l({type:Boolean})],n.UUIInputFileElement.prototype,"multiple",2),Ue([g()],n.UUIInputFileElement.prototype,"_files",2),n.UUIInputFileElement=Ue([c("uui-input-file")],n.UUIInputFileElement);var Ys=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,br=(t,e,r,o)=>{for(var i=o>1?void 0:o?Xs(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ys(e,r,i),i};n.UUIInputLockElement=class extends n.UUIInputElement{constructor(){super();this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),U(this,"uui-icon"),U(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${sn.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${un.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,d`#lock{height:100%;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.5}`],br([l({type:Boolean,reflect:!0})],n.UUIInputLockElement.prototype,"locked",2),n.UUIInputLockElement=br([c("uui-input-lock")],n.UUIInputLockElement);var Zs=Object.defineProperty,Qs=Object.getOwnPropertyDescriptor,Mt=(t,e,r,o)=>{for(var i=o>1?void 0:o?Qs(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Zs(e,r,i),i};n.UUIInputPasswordElement=class extends n.UUIInputElement{constructor(){super(...arguments);this.passwordType="password"}get type(){return this.passwordType}set type(t){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),U(this,"uui-icon"),U(this,"uui-button")}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${ln.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${cn.strings[0]}"></uui-icon>`}renderAppend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" style="--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}},n.UUIInputPasswordElement.styles=[...n.UUIInputElement.styles,d`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],Mt([g()],n.UUIInputPasswordElement.prototype,"passwordType",2),Mt([l()],n.UUIInputPasswordElement.prototype,"type",1),n.UUIInputPasswordElement=Mt([c("uui-input-password")],n.UUIInputPasswordElement);var Js=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,ta=(t,e,r,o)=>{for(var i=o>1?void 0:o?ea(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Js(e,r,i),i};n.UUIKeyboardShortcutElement=class extends h{render(){return u`<slot></slot>`}},n.UUIKeyboardShortcutElement.styles=[d`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`],n.UUIKeyboardShortcutElement=ta([c("uui-keyboard-shortcut")],n.UUIKeyboardShortcutElement);var ia=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,oa=(t,e,r,o)=>{for(var i=o>1?void 0:o?ra(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&ia(e,r,i),i};n.UUIKeyElement=class extends h{render(){return u`<slot></slot>`}},n.UUIKeyElement.styles=[d`:host{background:var(--uui-interface-surface,#fff);border:1px solid var(--uui-interface-border,#d8d7d9);font-family:inherit;font-size:var(--uui-type-small-size,12px);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;user-select:none;text-transform:lowercase}`],n.UUIKeyElement=oa([c("uui-key")],n.UUIKeyElement);var na=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,lt=(t,e,r,o)=>{for(var i=o>1?void 0:o?sa(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&na(e,r,i),i};n.UUILabelElement=class extends h{constructor(){super();this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const t=this.getForElement();t&&(t.focus(),t.click())}getForElement(){if(typeof this.for=="string"){const t=this.getRootNode();return t?.getElementById(this.for)||null}return this.for||null}render(){return u`<slot></slot>${this.required?u`<div id="required">*</div>`:""}`}},n.UUILabelElement.styles=[d`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-look-danger-surface,#d42054);font-weight:900}`],lt([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"disabled",2),lt([l({reflect:!0,attribute:!0})],n.UUILabelElement.prototype,"for",2),lt([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"required",2),n.UUILabelElement=lt([c("uui-label")],n.UUILabelElement);var aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,Rt=(t,e,r,o)=>{for(var i=o>1?void 0:o?la(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&aa(e,r,i),i};const ua=(t,e,r)=>Math.min(Math.max(t,e),r);n.UUILoaderBarElement=class extends h{constructor(){super(...arguments);this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=ua(t,0,100),this.requestUpdate("progress",e)}get animationDuration(){return this._animationDuration}set animationDuration(t){const e=this._animationDuration;this._animationDuration=t>=0?t:1,this.requestUpdate("animationDuration",e)}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=[d`:host{position:relative;display:block;width:100%;height:4px;overflow:hidden;color:var(--uui-color-primary,#3544b1)}#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}}`],Rt([l({type:Number})],n.UUILoaderBarElement.prototype,"progress",1),Rt([l({type:Number})],n.UUILoaderBarElement.prototype,"animationDuration",1),n.UUILoaderBarElement=Rt([c("uui-loader-bar")],n.UUILoaderBarElement);var ca=Object.defineProperty,da=Object.getOwnPropertyDescriptor,Ft=(t,e,r,o)=>{for(var i=o>1?void 0:o?da(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&ca(e,r,i),i};n.UUILoaderCircleElement=class extends h{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 t=this.clientHeight>=30;this._isLarge!=t&&(this._isLarge=t,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="${it(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},n.UUILoaderCircleElement.styles=[d`: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-primary,#3544b1)}#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}`],Ft([l({type:Number})],n.UUILoaderCircleElement.prototype,"progress",2),Ft([l({type:Boolean,reflect:!0,attribute:"show-progress"})],n.UUILoaderCircleElement.prototype,"showProgress",2),n.UUILoaderCircleElement=Ft([c("uui-loader-circle")],n.UUILoaderCircleElement);var ha=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,va=(t,e,r,o)=>{for(var i=o>1?void 0:o?pa(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&ha(e,r,i),i};n.UUILoaderElement=class extends h{render(){return u`<div></div><div></div><div></div>`}},n.UUILoaderElement.styles=[d`:host{color:var(--uui-color-primary,#3544b1)}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=va([c("uui-loader")],n.UUILoaderElement);/**
231
+ */class Dt extends ot{constructor(e){if(super(e),this.it=E,e.type!==tt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===E||e==null)return this.ft=void 0,this.it=e;if(e===M)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this.ft;this.it=e;const i=[e];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Dt.directiveName="unsafeHTML",Dt.resultType=1;const jt=it(Dt);var is=Object.defineProperty,ho=Object.getOwnPropertySymbols,os=Object.prototype.hasOwnProperty,rs=Object.prototype.propertyIsEnumerable,po=(t,e,i)=>e in t?is(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,bo=(t,e)=>{for(var i in e||(e={}))os.call(e,i)&&po(t,i,e[i]);if(ho)for(var i of ho(e))rs.call(e,i)&&po(t,i,e[i]);return t};class Ue extends k{constructor(e,i={}){super(e,bo(bo({},{bubbles:!0}),i)),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}}Ue.ICON_REQUEST="icon_request";var ns=Object.defineProperty,ss=Object.getOwnPropertyDescriptor,_e=(t,e,i,r)=>{for(var o=r>1?void 0:r?ss(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&ns(e,i,o),o};n.UUIIconElement=class extends h{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(t){this._name=t,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const t=new Ue(Ue.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(t),t.icon!==null?(this._retrievedNameIcon=!0,t.icon.then(e=>{this._useFallback=!1,this._nameSvg=e})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon()}render(){return this._useFallback===!0?this.fallback===null?c`<slot name="fallback"></slot>`:jt(this.fallback):this._nameSvg!==null?jt(this._nameSvg):this.svg!==null?jt(this.svg):c`<slot></slot>`}},n.UUIIconElement.styles=[d`:host{display:inline-block;vertical-align:bottom;width:1.15em;height:1.15em}::slotted(svg),:host svg{fill:var(--uui-icon-color,currentColor)}`],_e([f()],n.UUIIconElement.prototype,"_nameSvg",2),_e([l()],n.UUIIconElement.prototype,"name",1),_e([l({attribute:!1})],n.UUIIconElement.prototype,"svg",2),_e([l({attribute:!1})],n.UUIIconElement.prototype,"fallback",2),_e([f()],n.UUIIconElement.prototype,"_useFallback",2),n.UUIIconElement=_e([u("uui-icon")],n.UUIIconElement);class Bt{constructor(e){this.promise=new Promise((i,r)=>{this.resolve=i,this.reject=r}),e&&this.resolve(e)}set svg(e){this.resolve(e)}}class Ht{constructor(){this.icons={},this._onIconRequest=e=>{const i=this.getIcon(e.detail.iconName);i!==null&&e.acceptRequest(i)}}attach(e){e.addEventListener(Ue.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(Ue.ICON_REQUEST,this._onIconRequest)}defineIcon(e,i){if(this.icons[e]){this.icons[e].svg=i;return}this.icons[e]=new Bt(i)}getIcon(e){return!!this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Bt}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}}var as=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,mo=(t,e,i,r)=>{for(var o=r>1?void 0:r?ls(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&as(e,i,o),o};n.UUIIconRegistryElement=class extends h{constructor(){super(),this._icons={},this._registry=new Ht,this._registry.attach(this)}get icons(){return this._icons}set icons(t){this._icons=t,this._registry&&Object.entries(this._icons).forEach(([e,i])=>this._registry.defineIcon(e,i))}get registry(){return this._registry}set registry(t){this.registry&&this.registry.detach(this),t.attach(this),this._registry=t}render(){return c`<slot></slot>`}},mo([l({attribute:!1})],n.UUIIconRegistryElement.prototype,"_icons",2),n.UUIIconRegistryElement=mo([u("uui-icon-registry")],n.UUIIconRegistryElement);const cs=g`<svg 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>`,us=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M255.399 66.934L36.38 444.893h438.036L255.399 66.934zm22.094 331.988h-46.29v-44.743h46.29v44.743zm-11.458-63.166h-23.068l-12.849-106.419v-57.846h48.458v57.846l-12.541 106.419z"/></svg>`,ds=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M127.286 449.816c-21.564.006-43.317-8.494-59.885-25.062-16.578-16.575-25.083-38.336-25.079-59.897-.029-20.296 7.623-40.755 23.034-56.14l3.539-3.539 212.559-212.57c20.227-20.255 47.082-30.304 73.852-30.267 28.454-.012 57.219 11.208 79.179 33.159 21.937 21.949 33.153 50.698 33.147 79.151.028 26.779-10.016 53.627-30.268 73.865l-178.45 178.453-13.28 13.277-26.56-26.559 191.738-191.733c12.842-12.871 19.229-29.708 19.259-47.303-.004-18.645-7.323-37.759-22.152-52.592-14.834-14.838-33.958-22.152-52.613-22.165-17.588.034-34.423 6.418-47.284 19.266L95.447 331.734l-3.536 3.537c-8.011 8.031-11.994 18.482-12.029 29.585.014 11.761 4.614 23.877 14.079 33.345 9.455 9.446 21.562 14.043 33.326 14.056 11.102-.034 21.551-4.014 29.587-12.026l150.412-150.404 12.596-12.595c3.018-3.04 4.521-6.906 4.549-11.331 0-4.666-1.817-9.57-5.722-13.476-3.914-3.916-8.819-5.726-13.48-5.739-4.425.038-8.283 1.542-11.328 4.564L155.27 349.882l-26.561-26.56L267.33 184.703c10.408-10.44 24.289-15.604 37.897-15.57 14.468-.012 29.01 5.704 40.049 16.739 11.007 11.025 16.72 25.554 16.72 40.029.029 13.599-5.129 27.479-15.559 37.89l-12.601 12.595-150.41 150.41c-15.365 15.377-35.768 23.025-56.022 23.021l-.118-.001z"/></svg>`,hs=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M342.391 352.428h-44.879v44.865h44.879v-44.865zm-63.234-120.071h-44.849v44.853h44.849v-44.853zm63.234 60.034h-44.879v44.859h44.879v-44.859zm63.174-60.034h-44.854v44.853h44.854v-44.853zm-126.408 60.034h-44.849v44.859h44.849v-44.859zm63.234-60.034h-44.879v44.853h44.879v-44.853zm63.174 60.034h-44.854v44.859h44.854v-44.859zm-252.803 60.037h-44.856v44.865h44.856v-44.865zm0-60.037h-44.856v44.859h44.856v-44.859zM394.024 74.208v19.691c7.737 6.847 12.642 16.825 12.642 27.969 0 20.634-16.732 37.367-37.369 37.367-20.642 0-37.367-16.733-37.367-37.367 0-11.147 4.903-21.124 12.643-27.969V74.208H169.97v19.691c7.739 6.847 12.643 16.825 12.643 27.969 0 20.634-16.732 37.367-37.369 37.367-20.64 0-37.367-16.733-37.367-37.367 0-11.147 4.904-21.124 12.642-27.969V74.208h-83.27v397.644h436.668V74.208h-79.893zm40.011 357.759H77.131V183.544h356.904v248.423zm-218.047-199.61h-44.881v44.853h44.881v-44.853zm0 120.071h-44.881v44.865h44.881v-44.865zm63.169 0h-44.849v44.865h44.849v-44.865zm-63.169-60.037h-44.881v44.859h44.881v-44.859zM145.245 143.64c10.273 0 18.603-8.326 18.603-18.599V58.035c0-10.267-8.329-18.6-18.603-18.6-10.274 0-18.602 8.333-18.602 18.6v67.006c0 10.272 8.328 18.599 18.602 18.599zm224.054 0c10.272 0 18.601-8.326 18.601-18.599V58.035c0-10.267-8.328-18.6-18.601-18.6-10.274 0-18.604 8.333-18.604 18.6v67.006c0 10.272 8.329 18.599 18.604 18.599z"/></svg>`,ps=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,bs=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M380.295 95.092h-68.479a54.17 54.17 0 00.097-3.321c0-30.805-24.948-55.743-55.722-55.743-30.803 0-55.756 24.938-55.756 55.743 0 1.112.065 2.208.098 3.321h-68.446v57.766h248.208V95.092zm-124.104 21.76c-13.865-.033-25.049-11.232-25.079-25.081.03-13.862 11.214-25.081 25.079-25.1 13.834.019 25.083 11.237 25.083 25.1 0 13.848-11.249 25.047-25.083 25.081zm149.053 13.787v48.676H107.172v-48.676H79.537v345.078h353.307V130.639h-27.6z"/></svg>`,ms=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M38.299 255.395l137.255-137.248 46.782 46.789-90.458 90.459 90.458 90.46-46.782 46.792L38.299 255.395zm248.467 90.46l90.466-90.46-72.028-72.026-18.431-18.433 46.788-46.791 18.436 18.438L470.81 255.395 333.561 392.647l-46.795-46.792z"/></svg>`,vs=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460.5 78.244l-26.472-26.473c-16.867-16.868-44.216-16.865-61.083.003l-61.466 61.468-29.702-29.699-58.764 58.763 24.501 24.499L79.748 334.573C68.761 345.557 62.6 359.972 61.767 374.81l-9.766 9.764c-20.867 20.881-20.863 54.838.002 75.704 10.106 10.108 23.548 15.679 37.85 15.679 14.297 0 27.733-5.568 37.847-15.67l9.758-9.765c15.211-.821 29.394-7.139 40.248-17.99l167.771-167.767 24.493 24.495 58.765-58.764-29.698-29.699 61.465-61.466c16.87-16.869 16.87-44.218-.002-61.087zM150.574 405.398a23.298 23.298 0 01-16.532 6.846c-3.501 0-7.007-.782-10.231-2.343v.007l-23.242 23.236a15.092 15.092 0 01-10.716 4.439 15.1 15.1 0 01-10.715-4.439c-5.919-5.922-5.919-15.516-.002-21.436l23.233-23.238.008-.004c-4.226-8.725-2.741-19.518 4.503-26.761l167.769-167.768 43.695 43.693-167.77 167.768z"></path></svg>`,gs=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M243.47 64.86l-7.335-7.333H36.725V474.23h298.07V156.187l-7.332-7.335L243.47 64.86zm66.287 384.329H61.761V82.566h141.615c37.203 0 19.276 88.18 19.276 88.18s86-20.9 87.104 18.53v259.913zm157.051-330.866l-81.266-81.268H258.938l25.043 25.038h71.481c.063 0 .12.01.185.01-.006.286-.023.547-.023.837 11.174 0 16.69 9.045 19.118 20.95 4.358 22.959-2.312 55.826-2.312 55.826s.137-.031.341-.082c-.114.602-.181.933-.181.933s67.129-16.325 75.793 10.732c.077.294.161.585.225.887.083.302.14.612.207.921.154.928.26 1.889.287 2.904v228.807h-87.998l.002 25.037h113.037V125.66l-7.335-7.337z"/></svg>`,fs=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,ys=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg>`,Us=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.3,297.9v92.3H103.9v-92.3H73.2v122.9H439V297.9H408.3z M374.2,189.1h-77.7V90.8h-82.8v98.3h-77.6l119,144.2L374.2,189.1L374.2,189.1z"/></svg>`,_s=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M412.656 38.477l-49.973 49.975 58.761 58.76 49.976-49.98-58.764-58.755zM177.421 338.155l-15.932-15.935 190.923-190.928-16.286-16.283L85.215 365.922l.186.185-47.919 106.778 106.309-48.383.182.182.482-.482.006-.003 250.424-250.432-26.537-26.537-190.927 190.925zm-39.26 59.052l-46.369 21.102 20.9-46.572 23.388-23.387 3.367 22.301 22.097 3.164-23.383 23.392z"/></svg>`,ws=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.908 86.358c-55.975-26.379-122.761-2.379-149.132 53.615-1.831 3.885-3.421 8.767-4.813 14.428-1.391-5.661-2.984-10.543-4.814-14.428-26.373-55.994-93.143-79.994-149.135-53.615-55.959 26.371-79.969 93.122-53.597 149.113 26.369 55.989 207.502 216.478 207.502 216.478s.018-.203.042-.515l.043.515S436.139 291.46 462.506 235.471c26.373-55.991 2.397-122.742-53.598-149.113z"/></svg>`,Es=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.211 169.501v-.316H52.564v.328c-7.956 1.548-13.959 8.547-13.959 16.955 0 0 5.683 86.463 6.726 117.611 1.045 31.147 3.844 114.728 3.844 114.728 0 9.544 1.973 17.281 11.514 17.281h388.458c9.543 0 11.514-7.737 11.514-17.281 0 0 2.804-83.58 3.845-114.728 1.044-31.147 6.727-117.611 6.727-117.611-.002-8.433-6.036-15.442-14.022-16.967zm0-42.313c0-8.98-7.277-16.256-16.258-16.256H235.305c-6.43-.161-11.384-11.842-11.384-16.311l.003-1.902c0-9.546-7.737-17.28-17.28-17.28H97.168c-9.544 0-17.281 7.734-17.281 17.28l.004 1.902c0 4.5-5.021 16.322-11.517 16.322h.155c-8.844.157-15.965 7.364-15.965 16.244v11.223h404.647v-11.222z"/></svg>`,$s=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="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"/></svg>`,Is=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 38.7C136 38.7 38.7 136 38.7 256S136 473.3 256 473.3 473.3 376 473.3 256 376 38.7 256 38.7zm18.1 326h-36.2V237.9h36.2v126.8zM256 192.6c-15 0-27.2-12.2-27.2-27.2s12.2-27.2 27.2-27.2 27.2 12.2 27.2 27.2-12.2 27.2-27.2 27.2z"/></svg>`,ks=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M270.508 338.006c-27.316.03-54.696-10.671-75.323-31.318l-3.266-3.266 46.784-46.799 3.271 3.267c8.054 8.036 18.233 11.915 28.533 11.942 10.79-.043 21.088-3.93 29.123-11.942l76.701-76.701c8.024-8.05 11.909-18.306 11.945-28.895-.036-10.495-3.915-20.722-11.936-28.769l-3.268-3.266c-8.049-8.025-18.283-11.903-28.827-11.943-10.55.04-20.785 3.918-28.835 11.943l-31.537 31.543c-12.916 12.922-33.867 12.922-46.788 0-12.924-12.919-12.924-33.867-.005-46.789l31.542-31.544c20.794-20.821 48.361-31.36 75.623-31.327 27.256-.034 54.82 10.505 75.618 31.327l3.266 3.263a106.693 106.693 0 0131.319 75.561c.038 27.25-10.474 54.848-31.325 75.684l-76.704 76.7c-20.915 20.941-48.588 31.328-75.743 31.328l-.168.001zM163.966 468.393c-27.308.027-54.694-10.67-75.322-31.324l-3.264-3.26c-20.875-20.854-31.364-48.479-31.326-75.725-.033-27.27 10.556-54.782 31.326-75.518l76.704-76.707c20.794-20.821 48.361-31.366 75.623-31.327a106.798 106.798 0 0161.267 19.273 33.045 33.045 0 018.42 6.119l5.931 5.93 3.266 3.263h-.001l.001.003-46.781 46.798-.005-.006-3.266-3.266c-8.052-8.024-18.285-11.903-28.832-11.943-10.545.04-20.781 3.918-28.832 11.943l-76.711 76.712c-8.021 8.048-11.901 18.261-11.935 28.726.038 10.627 3.922 20.886 11.938 28.932l3.269 3.26c8.055 8.038 18.235 11.913 28.531 11.941 10.794-.043 21.092-3.928 29.13-11.941l33.051-33.051c12.923-12.915 33.872-12.915 46.788.006 12.921 12.917 12.921 33.863 0 46.787l-33.053 33.051c-20.914 20.938-48.592 31.324-75.745 31.324h-.172z"/></svg>`,xs=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,Cs=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M289.335 420.379V90.8h83.103v329.579h-83.103zm-152.737-.002V90.804h83.101v329.573h-83.101z"/></svg>`,zs=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,Os=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M397.727 256.048l-286.7 166.932V89.114z"/></svg>`,Ps=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,Ss=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M470.704 407.906l-2.691-2.689.006-.002-107.514-107.523c14.938-25.733 23.616-55.565 23.82-87.451.626-97.615-77.99-177.243-175.599-177.857l-1.168-.002c-97.06.005-176.067 78.392-176.692 175.598-.618 97.609 77.999 177.236 175.597 177.859.389.002.766.004 1.155.004 32.442 0 62.846-8.79 88.998-24.075L404.035 469.2l.01-.01 2.686 2.686c8.125 8.124 21.293 8.117 29.414 0l34.56-34.554c8.115-8.117 8.121-21.293-.001-29.416zm-263.956-67.135c-72.589-.466-131.271-59.907-130.812-132.502C76.4 136.14 135.45 77.457 207.561 77.453l.88.002c35.167.22 68.144 14.124 92.851 39.148 24.705 25.025 38.188 58.178 37.962 93.352-.222 35.015-14.027 67.893-38.867 92.564-24.834 24.67-57.78 38.252-92.768 38.252h-.871z"/></svg>`,As=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,Ls=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M469.92 279.717v-48.898l-6.906-2.256-52.35-17.091-13.971-33.728 26.852-56.814-34.586-34.581-6.477 3.288-49.1 24.937-33.721-13.971-21.198-59.171h-48.899l-2.253 6.912-17.091 52.352-33.712 13.966-56.833-26.849-34.573 34.58 3.287 6.474 24.933 49.116-13.96 33.707-59.182 21.189v48.909l6.914 2.253 52.352 17.094 13.966 33.718-26.845 56.82 34.567 34.587 6.484-3.294 49.103-24.931 33.719 13.968 21.188 59.165h48.902l2.26-6.908 17.094-52.35 33.721-13.967 56.818 26.855 34.584-34.59-3.286-6.48-24.937-49.094 13.969-33.726 59.167-21.191zM255.054 324.78c-37.819 0-68.478-30.657-68.478-68.479 0-37.819 30.659-68.481 68.478-68.481 37.819 0 68.475 30.662 68.475 68.481 0 37.822-30.656 68.479-68.475 68.479z"/></svg>`,Ts=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M88.871 297.086v-83.1h332.084v83.1H88.871z"/></svg>`,Ns=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M203.447 202.931l-54.568-54.566c27.503-27.173 65.183-43.913 106.927-43.913 42.13.014 79.972 16.983 107.622 44.577 27.594 27.648 44.561 65.492 44.578 107.629h66.177c-.024-120.624-97.761-218.361-218.376-218.386-59.897 0-114.277 24.203-153.724 63.295l-50.36-50.36.003 151.725h151.721zM363.991 363.67c-27.605 27.918-65.809 45.184-108.183 45.176-42.139-.008-79.978-16.981-107.623-44.574-27.601-27.645-44.565-65.482-44.582-107.614H37.436c.017 120.614 97.751 218.347 218.373 218.374 60.54-.008 115.433-24.73 154.979-64.562l48.997 49V311.423H311.742l52.249 52.247z"/></svg>`,Ds=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,js=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,Bs=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M306.997 124.391c8.992 0 16.277-7.286 16.277-16.276V57.184c.002-8.989-7.285-16.276-16.277-16.276-8.983 0-16.271 7.287-16.273 16.276v50.932c0 8.989 7.29 16.278 16.273 16.275zm80.752 23.244l36.015-36.017c6.356-6.357 6.353-16.662 0-23.015-6.357-6.356-16.662-6.356-23.019 0l-36.013 36.014c-6.356 6.356-6.358 16.661 0 23.018 6.354 6.356 16.661 6.353 23.017 0zm-161.066 2.552c6.354 6.353 16.663 6.353 23.018 0 6.353-6.356 6.353-16.662 0-23.018l-36.018-36.018c-6.355-6.353-16.661-6.353-23.015 0-6.359 6.356-6.359 16.662 0 23.018l36.015 36.018zm159.5 113.463c-6.356-6.357-16.663-6.357-23.02 0-6.354 6.355-6.354 16.661 0 23.018l36.015 36.014c6.356 6.356 16.663 6.356 23.018 0 6.358-6.356 6.358-16.658 0-23.015l-36.013-36.017zm-70.019-131.061L37.625 411.125l58.761 58.76 278.541-278.533-58.763-58.763zm-65.195 99.172l67.606-67.608 24.787 24.788-67.606 67.608-24.787-24.788zm205.2-41.684h-50.934c-8.99 0-16.275 7.289-16.275 16.275-.004 8.985 7.285 16.275 16.275 16.275h50.934c8.988 0 16.273-7.29 16.273-16.275 0-8.99-7.285-16.275-16.273-16.275z"></path></svg>`,Hs=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;class vo extends Ht{constructor(){super(),this.defineIcon("add",cs.strings[0]),this.defineIcon("alert",us.strings[0]),this.defineIcon("attachment",ds.strings[0]),this.defineIcon("calendar",hs.strings[0]),this.defineIcon("check",ps.strings[0]),this.defineIcon("clipboard",bs.strings[0]),this.defineIcon("code",ms.strings[0]),this.defineIcon("colorpicker",vs.strings[0]),this.defineIcon("copy",gs.strings[0]),this.defineIcon("delete",fs.strings[0]),this.defineIcon("document",ys.strings[0]),this.defineIcon("download",Us.strings[0]),this.defineIcon("edit",_s.strings[0]),this.defineIcon("favorite",ws.strings[0]),this.defineIcon("folder",Es.strings[0]),this.defineIcon("forbidden",$s.strings[0]),this.defineIcon("info",Is.strings[0]),this.defineIcon("link",ks.strings[0]),this.defineIcon("lock",xs.strings[0]),this.defineIcon("pause",Cs.strings[0]),this.defineIcon("picture",zs.strings[0]),this.defineIcon("play",Os.strings[0]),this.defineIcon("remove",Ps.strings[0]),this.defineIcon("search",Ss.strings[0]),this.defineIcon("see",As.strings[0]),this.defineIcon("settings",Ls.strings[0]),this.defineIcon("subtract",Ts.strings[0]),this.defineIcon("sync",Ns.strings[0]),this.defineIcon("unlock",Ds.strings[0]),this.defineIcon("unsee",js.strings[0]),this.defineIcon("wand",Bs.strings[0]),this.defineIcon("wrong",Hs.strings[0])}}var Ms=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,Fs=(t,e,i,r)=>{for(var o=r>1?void 0:r?Rs(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Ms(e,i,o),o};n.UUIIconRegistryEssentialElement=class extends n.UUIIconRegistryElement{constructor(){super(),this.registry=new vo}},n.UUIIconRegistryEssentialElement=Fs([u("uui-icon-registry-essential")],n.UUIIconRegistryEssentialElement);class te extends k{}te.CHANGE="change",te.INPUT="input";var Vs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,S=(t,e,i,r)=>{for(var o=r>1?void 0:r?Gs(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Vs(e,i,o),o};n.UUIInputElement=class extends R(h){constructor(){super(),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._type="text",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)}get type(){return this._type}set type(t){this._type=t}firstUpdated(t){super.firstUpdated(t),this.addFormControlElement(this._input)}focus(){this._input.focus()}getFormElement(){return this._input}onInput(t){this.value=t.target.value,this.dispatchEvent(new te(te.INPUT))}onChange(){this.pristine=!1,this.dispatchEvent(new te(te.CHANGE))}renderPrepend(){return c`<slot name="prepend"></slot>`}renderAppend(){return c`<slot name="append"></slot>`}render(){return c`${this.renderPrepend()} <input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" autocomplete="${T(this.autocomplete)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}"> ${this.renderAppend()}`}},n.UUIInputElement.formAssociated=!0,n.UUIInputElement.styles=[d`:host{position:relative;display:inline-flex;align-items:center;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%}: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([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%;text-align:inherit;outline:0}input::placeholder{transition:opacity 120ms}:host(:not([readonly])) input:focus::placeholder{opacity:0}input[type=color]{width:30px;padding:0;border:none}::slotted(uui-input){height:100%;--uui-input-border-width:0}`],S([l({type:Number})],n.UUIInputElement.prototype,"minlength",2),S([l({type:String,attribute:"minlength-message"})],n.UUIInputElement.prototype,"minlengthMessage",2),S([l({type:Number})],n.UUIInputElement.prototype,"maxlength",2),S([l({type:String,attribute:"maxlength-message"})],n.UUIInputElement.prototype,"maxlengthMessage",2),S([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"disabled",2),S([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"readonly",2),S([l({type:String})],n.UUIInputElement.prototype,"label",2),S([l()],n.UUIInputElement.prototype,"placeholder",2),S([l()],n.UUIInputElement.prototype,"autocomplete",2),S([l({type:String})],n.UUIInputElement.prototype,"type",1),S([x("#input")],n.UUIInputElement.prototype,"_input",2),n.UUIInputElement=S([u("uui-input")],n.UUIInputElement);var qs=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,we=(t,e,i,r)=>{for(var o=r>1?void 0:r?Ks(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&qs(e,i,o),o};n.UUIInputFileElement=class extends R(h){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=t=>{let e=[];for(const i of t)this.multiple?e.push(i):e=[i];this._files=e},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return this._value}set value(t){if(super.value=t,t instanceof FormData){const e=this.multiple?t.getAll(this.name):[t.get(this.name)];this._updateFileWrappers(e);return}if(t instanceof File){this._updateFileWrappers([t]);return}}connectedCallback(){super.connectedCallback(),U(this,"uui-icon"),U(this,"uui-file-dropzone"),U(this,"uui-button"),U(this,"uui-action-bar"),U(this,"uui-file-preview")}getFormElement(){return this._dropZone}_handleClick(t){t.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(t){const e=t.detail.files.filter(r=>r instanceof File||r.isFile);if(!this.multiple){const r=e[0],o=r instanceof File?r:await this._getFile(r);if(this.value instanceof File){this.value=o;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,o),this._updateFileWrappers([o]);return}}let i=this.value;if(e.length>0&&!(this.value instanceof FormData)&&(i=new FormData),i instanceof FormData)for(const r of e){const o=r instanceof File;i.append(this.name,o?r:await this._getFile(r))}this.value=i}async _getFile(t){return await new Promise((e,i)=>t.file(e,i))}_removeFile(t){const e=this._files[t];if(this.value instanceof FormData){const i=this.value.getAll(this.name).filter(r=>r!==e);if(i.length===0)this.value="";else{this.value.delete(this.name);for(const r of i)this.value.append(this.name,r)}this._updateFileWrappers(i)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(t){t?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(t,e){return c`<uui-file-preview .file="${t}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(e)}" color="danger" label="${`Delete ${t.name}`}"><uui-icon name="delete" .fallback="${rn.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return c`${co(this._files,t=>t.name+t.size,(t,e)=>this._renderFileItem(t,e))}`}render(){return c`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @file-change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()}<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button></div>`}},n.UUIInputFileElement.styles=[d`: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:center}`],we([x("#dropzone")],n.UUIInputFileElement.prototype,"_dropzone",2),we([x("#dropzone")],n.UUIInputFileElement.prototype,"_dropZone",2),we([l({type:String})],n.UUIInputFileElement.prototype,"accept",2),we([l({type:Boolean})],n.UUIInputFileElement.prototype,"multiple",2),we([f()],n.UUIInputFileElement.prototype,"_files",2),n.UUIInputFileElement=we([u("uui-input-file")],n.UUIInputFileElement);var Ws=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,go=(t,e,i,r)=>{for(var o=r>1?void 0:r?Ys(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Ws(e,i,o),o};n.UUIInputLockElement=class extends n.UUIInputElement{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),U(this,"uui-icon"),U(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked}renderIcon(){return this.locked===!0?c`<uui-icon name="lock" .fallback="${nn.strings[0]}"></uui-icon>`:c`<uui-icon name="unlock" .fallback="${ln.strings[0]}"></uui-icon>`}renderPrepend(){return c`<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,d`#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:.5}`],go([l({type:Boolean,reflect:!0})],n.UUIInputLockElement.prototype,"locked",2),n.UUIInputLockElement=go([u("uui-input-lock")],n.UUIInputLockElement);var Zs=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,Mt=(t,e,i,r)=>{for(var o=r>1?void 0:r?Xs(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Zs(e,i,o),o};n.UUIInputPasswordElement=class extends n.UUIInputElement{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(t){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),U(this,"uui-icon"),U(this,"uui-button")}renderIcon(){return this.passwordType==="password"?c`<uui-icon name="see" .fallback="${an.strings[0]}"></uui-icon>`:c`<uui-icon name="unsee" .fallback="${cn.strings[0]}"></uui-icon>`}renderAppend(){return c`<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,d`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],Mt([f()],n.UUIInputPasswordElement.prototype,"passwordType",2),Mt([l()],n.UUIInputPasswordElement.prototype,"type",1),n.UUIInputPasswordElement=Mt([u("uui-input-password")],n.UUIInputPasswordElement);var Qs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,ea=(t,e,i,r)=>{for(var o=r>1?void 0:r?Js(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Qs(e,i,o),o};n.UUIKeyboardShortcutElement=class extends h{render(){return c`<slot></slot>`}},n.UUIKeyboardShortcutElement.styles=[d`: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=ea([u("uui-keyboard-shortcut")],n.UUIKeyboardShortcutElement);var ta=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,oa=(t,e,i,r)=>{for(var o=r>1?void 0:r?ia(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&ta(e,i,o),o};n.UUIKeyElement=class extends h{render(){return c`<slot></slot>`}},n.UUIKeyElement.styles=[d`: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=oa([u("uui-key")],n.UUIKeyElement);var ra=Object.defineProperty,na=Object.getOwnPropertyDescriptor,ct=(t,e,i,r)=>{for(var o=r>1?void 0:r?na(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&ra(e,i,o),o};n.UUILabelElement=class extends h{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const t=this.getForElement();t&&(t.focus(),t.click())}getForElement(){if(typeof this.for=="string"){const t=this.getRootNode();return t?.getElementById(this.for)||null}return this.for||null}render(){return c`<slot></slot>${this.required?c`<div id="required">*</div>`:""}`}},n.UUILabelElement.styles=[d`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-color-danger,#d42054);font-weight:900}`],ct([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"disabled",2),ct([l({reflect:!0,attribute:!0})],n.UUILabelElement.prototype,"for",2),ct([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"required",2),n.UUILabelElement=ct([u("uui-label")],n.UUILabelElement);var sa=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,Rt=(t,e,i,r)=>{for(var o=r>1?void 0:r?aa(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&sa(e,i,o),o};const la=(t,e,i)=>Math.min(Math.max(t,e),i);n.UUILoaderBarElement=class extends h{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=la(t,0,100),this.requestUpdate("progress",e)}get animationDuration(){return this._animationDuration}set animationDuration(t){const e=this._animationDuration;this._animationDuration=t>=0?t:1,this.requestUpdate("animationDuration",e)}render(){return c`${this.progress?c`<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=[d`: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}}`],Rt([l({type:Number})],n.UUILoaderBarElement.prototype,"progress",1),Rt([l({type:Number})],n.UUILoaderBarElement.prototype,"animationDuration",1),n.UUILoaderBarElement=Rt([u("uui-loader-bar")],n.UUILoaderBarElement);var ca=Object.defineProperty,ua=Object.getOwnPropertyDescriptor,Ft=(t,e,i,r)=>{for(var o=r>1?void 0:r?ua(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&ca(e,i,o),o};n.UUILoaderCircleElement=class extends h{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 t=this.clientHeight>=30;this._isLarge!=t&&(this._isLarge=t,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?c`<span id="progress-display">${this.progress}</span>`:""}render(){return c`<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="${rt(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},n.UUILoaderCircleElement.styles=[d`: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}`],Ft([l({type:Number})],n.UUILoaderCircleElement.prototype,"progress",2),Ft([l({type:Boolean,reflect:!0,attribute:"show-progress"})],n.UUILoaderCircleElement.prototype,"showProgress",2),n.UUILoaderCircleElement=Ft([u("uui-loader-circle")],n.UUILoaderCircleElement);var da=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,pa=(t,e,i,r)=>{for(var o=r>1?void 0:r?ha(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&da(e,i,o),o};n.UUILoaderElement=class extends h{render(){return c`<div></div><div></div><div></div>`}},n.UUILoaderElement.styles=[d`: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=pa([u("uui-loader")],n.UUILoaderElement);/**
232
232
  * @license
233
233
  * Copyright 2017 Google LLC
234
234
  * SPDX-License-Identifier: BSD-3-Clause
235
- */const He=(t,e)=>{var r,o;const i=t._$AN;if(i===void 0)return!1;for(const s of i)(o=(r=s)._$AO)===null||o===void 0||o.call(r,e,!1),He(s,e);return!0},ut=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},fr=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),ma(e)}};function ba(t){this._$AN!==void 0?(ut(this),this._$AM=t,fr(this)):this._$AM=t}function fa(t,e=!1,r=0){const o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(o))for(let s=r;s<o.length;s++)He(o[s],!1),ut(o[s]);else o!=null&&(He(o,!1),ut(o));else He(this,t)}const ma=t=>{var e,r,o,i;t.type==Je.CHILD&&((e=(o=t)._$AP)!==null&&e!==void 0||(o._$AP=fa),(r=(i=t)._$AQ)!==null&&r!==void 0||(i._$AQ=ba))};class ga extends tt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),fr(this),this.isConnected=e._$AU}_$AO(e,r=!0){var o,i;e!==this.isConnected&&(this.isConnected=e,e?(o=this.reconnected)===null||o===void 0||o.call(this):(i=this.disconnected)===null||i===void 0||i.call(this)),r&&(He(this,e),ut(this))}setValue(e){if(Kn(this._$Ct))this._$Ct._$AI(e,this);else{const r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}const Vt=new WeakMap,Gt=et(class extends ga{render(t){return E}update(t,[e]){var r;const o=e!==this.U;return o&&this.U!==void 0&&this.ot(void 0),(o||this.rt!==this.lt)&&(this.U=e,this.ht=(r=t.options)===null||r===void 0?void 0:r.host,this.ot(this.lt=t.element)),E}ot(t){var e;if(typeof this.U=="function"){const r=(e=this.ht)!==null&&e!==void 0?e:globalThis;let o=Vt.get(r);o===void 0&&(o=new WeakMap,Vt.set(r,o)),o.get(this.U)!==void 0&&this.U.call(this.ht,void 0),o.set(this.U,t),t!==void 0&&this.U.call(this.ht,t)}else this.U.value=t}get rt(){var t,e,r;return typeof this.U=="function"?(e=Vt.get((t=this.ht)!==null&&t!==void 0?t:globalThis))===null||e===void 0?void 0:e.get(this.U):(r=this.U)===null||r===void 0?void 0:r.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});class M extends x{}M.SHOW_CHILDREN="show-children",M.HIDE_CHILDREN="hide-children",M.CLICK_LABEL="click-label";var _a=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,F=(t,e,r,o)=>{for(var i=o>1?void 0:o?ya(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&_a(e,r,i),i};n.UUIMenuItemElement=class extends qe(Le(Ge(De("label",h)))){constructor(){super(...arguments);this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1}labelButtonChanged(t){this.selectableTarget=t||this}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),U(this,"uui-symbol-expand"),U(this,"uui-loader-bar")}iconSlotChanged(t){this.iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}onCaretClicked(){this.showChildren=!this.showChildren;const t=this.showChildren?M.SHOW_CHILDREN:M.HIDE_CHILDREN,e=new M(t);this.dispatchEvent(e)}onLabelClicked(){const t=new M(M.CLICK_LABEL);this.dispatchEvent(t)}_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" ${Gt(this.labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${Gt(this.labelButtonChanged)} href="${at(this.href)}" target="${at(this.target||void 0)}" rel="${at(this.target==="_blank"?"noopener":void 0)}" @click="${this.onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return u`<button id="label-button" ${Gt(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" @click="${this.onCaretClicked}"><uui-symbol-expand ?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=[d`:host{display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns:var(--uui-size-8,24px) 1fr;grid-template-rows:1fr;white-space:nowrap}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{flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button+#label-button{padding-left:0}#caret-button{width:100%;height:100%;display:flex;align-items:center;justify-content:center}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0}#caret-button:hover~#label-button-background,#label-button:hover+#label-button-background{background-color:var(--uui-interface-surface-hover,#fafafa)}#actions-container{opacity:0;transition:opacity 120ms;grid-column-start:3}: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}#loader{position:absolute;width:100%;bottom:0}#icon{display:inline-flex;font-size:16px;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([disabled]){color:var(--uui-interface-surface-contrast-disabled)}:host([disabled]) #label-button-background{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]) #label-button:hover+#label-button-background{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([active]){color:var(--uui-interface-active-contrast,#162335)}:host([active]) #label-button:hover{color:var(--uui-interface-active-contrast-hover,#1b264f)}:host([active]) #label-button-background{background-color:var(--uui-interface-active,#f5c1bc)}:host([active]) #label-button:hover+#label-button-background{background-color:var(--uui-interface-active-hover,#f5c1bc)}:host([active][disabled]) #label-button{color:var(--uui-interface-active-contrast-disabled,#363636);background-color:var(--uui-interface-active-disabled,#dbd4d4)}:host([selected]){color:var(--uui-interface-select-contrast,#fefefe)}:host([selected]) #label-button:hover{color:var(--uui-interface-select-contrast-hover,#fefefe)}:host([selected]) #label-button-background{background-color:var(--uui-interface-select,#3544b1)}:host([selected]) #caret-button:hover~#label-button-background,:host([selected]) #label-button:hover+#label-button-background{background-color:var(--uui-interface-select-hover,#4656c8)}:host([selected][disabled]) #label-button{color:var(--uui-interface-select-contrast-disabled,#e4e4e4);background-color:var(--uui-interface-select-disabled,#575757)}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)}`],F([l({type:Boolean,reflect:!0})],n.UUIMenuItemElement.prototype,"disabled",2),F([l({type:Boolean,reflect:!0,attribute:"show-children"})],n.UUIMenuItemElement.prototype,"showChildren",2),F([l({type:Boolean,attribute:"has-children"})],n.UUIMenuItemElement.prototype,"hasChildren",2),F([l({type:Boolean,attribute:"loading"})],n.UUIMenuItemElement.prototype,"loading",2),F([l({type:String})],n.UUIMenuItemElement.prototype,"href",2),F([l({type:String})],n.UUIMenuItemElement.prototype,"target",2),F([g()],n.UUIMenuItemElement.prototype,"iconSlotHasContent",2),n.UUIMenuItemElement=F([c("uui-menu-item")],n.UUIMenuItemElement);class V extends x{}V.CHANGE="change";var Ua=Object.defineProperty,wa=Object.getOwnPropertyDescriptor,R=(t,e,r,o)=>{for(var i=o>1?void 0:o?wa(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ua(e,r,i),i};const Ea=45,qt=(t,e,r)=>Math.min(Math.max(t,e),r),$a=(t,e)=>Array.from({length:e-t+1},(r,o)=>t+o);n.UUIPaginationElement=class extends h{constructor(){super(...arguments);this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this.total=1,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),U(this,"uui-button"),U(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(t){(t.has("current")||t.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const t=this.offsetWidth,e=Array.from(this._navButtons).reduce((i,s)=>i+s.getBoundingClientRect().width,0),o=(t-e)/Ea/2;this._range=Math.max(1,Math.floor(o)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(t){const e=t<this._range?1:t<this.total-this._range?t-this._range:this.total-this._range*2,r=t<=this._range?this._range*2+1:t<this.total-this._range?t+this._range:this.total;return $a(qt(e,1,this.total),qt(r,1,this.total))}get current(){return this._current}set current(t){const e=this._current;this._current=qt(t,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",e)}goToNextPage(){this.current++,this.dispatchEvent(new V(V.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new V(V.CHANGE))}goToPage(t){this.current=t,this.dispatchEvent(new V(V.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const t=this.renderRoot.querySelector(".active");t&&t.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" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(t){return u`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${t}" class="${"page"+(t===this._current?" active":"")}" tabindex="${t===this._current?"-1":""}" @click="${()=>{t!==this._current&&(this.goToPage(t),this.focusActivePage())}}">${t}</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(t=>this.renderPage(t))} ${this.renderNavigationRight()}</uui-button-group>`}},n.UUIPaginationElement.styles=[d`uui-button-group{width:100%}uui-button{--uui-button-border-color:var(--uui-interface-border,#c4c4c4);--uui-button-border-color-disabled:var(--uui-interface-border,#c4c4c4)}.page{min-width:36px;max-width:72px}.page.active{--uui-button-background-color:var(--uui-interface-active,#f5c1bc)}.nav{min-width:72px}.dots{pointer-events:none}.active{pointer-events:none}`],R([Kr("uui-button.nav")],n.UUIPaginationElement.prototype,"_navButtons",2),R([C("#pages")],n.UUIPaginationElement.prototype,"_pagesGroup",2),R([l()],n.UUIPaginationElement.prototype,"label",2),R([l({reflect:!0,attribute:"aria-label"})],n.UUIPaginationElement.prototype,"ariaLabel",2),R([l({type:Number})],n.UUIPaginationElement.prototype,"total",2),R([g()],n.UUIPaginationElement.prototype,"_range",2),R([g()],n.UUIPaginationElement.prototype,"_visiblePages",2),R([l({type:Number})],n.UUIPaginationElement.prototype,"current",1),n.UUIPaginationElement=R([c("uui-pagination")],n.UUIPaginationElement);class Wt extends x{}Wt.CLOSE="close";var Ia=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,je=(t,e,r,o)=>{for(var i=o>1?void 0:o?xa(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ia(e,r,i),i};function ct(t,e,r){return t<e?e:t>r?r:t}n.UUIPopoverElement=class extends h{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=t=>{this._trigger=t.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=t=>{t.forEach(e=>{e.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onDocumentClick=t=>{t.composedPath().includes(this)||this._forceClosePopover()}}get placement(){return this._placement}set placement(t){const e=this._placement;this._placement=t||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",e)}get open(){return this._open}set open(t){const e=this._open;this._open=t,t?this._openPopover():this._closePopover(),this.requestUpdate("open",e)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),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),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),this._currentPlacement=null}_forceClosePopover(){this.open=!1,this.dispatchEvent(new Wt(Wt.CLOSE))}_getScrollParents(){const t=this.shadowRoot.host;let e=getComputedStyle(t);if(e.position==="fixed")return;const r=e.position==="absolute",o=/(auto|scroll)/;let i=t;for(;i=i.parentElement;)if(e=getComputedStyle(i),!(r&&e.position==="static")&&(o.test(e.overflow+e.overflowY+e.overflowX)&&this._scrollParents.push(i),e.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const t={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,t),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(t=>{t.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(t=>{t.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){var t,e;if(!this.shadowRoot)return;const r=this.containerElement;if(!r)return;const o=(t=this.containerElement)==null?void 0:t.getBoundingClientRect(),i=(e=this._trigger)==null?void 0:e.getBoundingClientRect();if(i!=null&&o!=null){const s=this._scrollParents.map(N=>N.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,o,s));let a=this._currentPlacement.indexOf("top")!==-1,v=this._currentPlacement.indexOf("bottom")!==-1,b=this._currentPlacement.indexOf("left")!==-1,p=this._currentPlacement.indexOf("right")!==-1;const I=this._currentPlacement.indexOf("-start")!==-1,_=this._currentPlacement.indexOf("-end")!==-1;let f=.5,y=.5,w=.5,$=.5,z=0,re=0;if(this.placement==="auto"){const N=this._scrollParents[0],Fe=N.clientWidth,se=N.clientHeight,xe=i.x-o.width,Ce=Fe-(i.x+i.width)-o.width,Jt=i.y-o.height,bt=se-(i.y+i.height)-o.height;let ft=.5,mt=.5;const bu=Math.max(xe,Ce);let Dr=Math.max(Jt,bt);bt>Jt&&bt>this.margin&&(Dr+=9999),bu>Dr?(xe>Ce?(ft=0,b=!0):(ft=1,p=!0),z=this.margin):(Jt>bt?(mt=0,a=!0):(mt=1,v=!0),re=this.margin),f=ft,y=mt,w=1-ft,$=1-mt}else a&&($=1,y=0),v&&($=0,y=1),(a||v)&&(re=this.margin,I&&(w=0,f=0),_&&(w=1,f=1)),b&&(w=1,f=0),p&&(w=0,f=1),(b||p)&&(z=this.margin,I&&($=0,y=0),_&&($=1,y=1));const Ie=-o.width*w+i.width*f-z*(w*2-1),Qt=-o.height*$+i.height*y-re*($*2-1);let oe=Ie,ne=Qt;a||v?(this._scrollParents.forEach((N,Fe)=>{const se=N===document.body?0:s[Fe].x,xe=-i.x+se,Ce=N.clientWidth-i.x-i.width+Ie+se-(o.width-i.width)*(1-f);oe=ct(oe,xe,Ce)}),oe=ct(oe,-o.width,i.width)):(b||p)&&(this._scrollParents.forEach((N,Fe)=>{const se=N===document.body?0:s[Fe].y,xe=-i.y+se,Ce=N.clientHeight-i.y-i.height+Qt+se-(o.height-i.height)*(1-y);ne=ct(ne,xe,Ce)}),ne=ct(ne,-o.height,i.height)),(this._positionX!==oe||this._positionY!==ne)&&(this._positionX=oe,this._positionY=ne,Ie===oe&&Qt===ne&&this._stopScrollListener(),r.style.left=`${this._positionX}px`,r.style.top=`${this._positionY}px`)}}_managePlacementFlip(t,e,r){const i=t.split("-"),s=i[0],a=i[1]||null;let v;return this._scrollParents.some((b,p)=>{const I=b===document.body?0:r[p].x,_=b===document.body?0:r[p].y;return s==="top"&&e.y-2<=_?(v="bottom",!0):s==="bottom"&&e.y+e.height+2>=b.clientHeight+_?(v="top",!0):s==="left"&&e.x-2<=I?(v="right",!0):s==="right"&&e.x+e.width+2>=b.clientWidth+I?(v="left",!0):!1}),v?(this._startScrollListener(),v+(a?`-${a}`:"")):t}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=[d`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:1}slot[name=popover]{display:block}#trigger{position:relative;width:100%}`],je([C("#container")],n.UUIPopoverElement.prototype,"containerElement",2),je([l({type:Number})],n.UUIPopoverElement.prototype,"margin",2),je([l({type:String,reflect:!0})],n.UUIPopoverElement.prototype,"placement",1),je([l({type:Boolean,reflect:!0})],n.UUIPopoverElement.prototype,"open",1),n.UUIPopoverElement=je([c("uui-popover")],n.UUIPopoverElement);var Ca=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,mr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Pa(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ca(e,r,i),i};const ka=(t,e,r)=>Math.min(Math.max(t,e),r);n.UUIProgressBarElement=class extends h{constructor(){super(...arguments);this._progress=0}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=ka(t,0,100),this.requestUpdate("progress",e)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return u`<div id="bar" style="${it(this._getProgressStyle())}"></div>`}},n.UUIProgressBarElement.styles=[d`:host{width:100%;height:4px;position:relative;overflow:hidden;background:var(--uui-interface-surface-alt,#d8d7d9);border-radius:100px;display:inline-block}#bar{transition:width 250ms ease;background:var(--uui-look-positive-surface,#25aa60);height:100%;width:0%}`],mr([l({type:Number})],n.UUIProgressBarElement.prototype,"progress",1),n.UUIProgressBarElement=mr([c("uui-progress-bar")],n.UUIProgressBarElement);class we extends x{}we.CHANGE="change";var Oa=Object.defineProperty,za=Object.getOwnPropertyDescriptor,te=(t,e,r,o)=>{for(var i=o>1?void 0:o?za(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Oa(e,r,i),i};n.UUIRadioElement=class extends h{constructor(){super();this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","1")})}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,t===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,t&&(this.setAttribute("aria-hidden","true"),this.setAttribute("tabindex","-1")),this.requestUpdate("disabled",e)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(){const t=this.inputElement.checked;this.checked=t,t&&this.focus(),this.dispatchEvent(new we(we.CHANGE))}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.setAttribute("tabindex","0")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.removeAttribute("aria-checked")}render(){return u`<label><input id="input" type="radio" name="${this.name}" value="${this.value}" .checked="${this.checked}" .disabled="${this.disabled}" @change="${this._onChange}"><div id="button"></div><div id="label">${this.label?u`<span>${this.label}</span>`:u`<slot></slot>`}</div></label>`}},n.UUIRadioElement.styles=[Ze,d`: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{display:block;box-sizing:border-box;display:flex;align-items:center;cursor:pointer;line-height:18px}#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-interface-surface,#fefefe);border:1px solid var(--uui-interface-border,#c4c4c4);border-radius:100%;margin-right:calc(var(--uui-size-2,6px) * 2);position:relative}#button::after{content:'';width:calc(var(--uui-radio-button-size)/ 2);height:calc(var(--uui-radio-button-size)/ 2);background-color:var(--uui-interface-chosen,#1b264f);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-interface-border-hover,#b3b3b3)}:host(:focus){outline:0}:host(:focus) #button{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-interface-outline,#3879ff)}input:checked~#button::after{transform:translate(-50%,-50%) scale(1)}input:checked~#button{border:1px solid var(--uui-interface-chosen,#1b264f)}input:checked:hover~#button{border:1px solid var(--uui-interface-chosen-hover,#26356e)}input:checked:hover~#button::after{background-color:var(--uui-interface-chosen-hover,#26356e)}:host([disabled]) label{cursor:default;opacity:.5}:host([disabled]) .label{color:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) input~#button{border:1px solid var(--uui-interface-border-disabled,#bdbdbd)}:host([disabled]) input:checked~#button{border:1px solid var(--uui-interface-chosen-disabled,#6a759a)}:host([disabled]) input:checked~#button::after{background-color:var(--uui-interface-chosen-disabled,#6a759a)}:host([disabled]:active) #button{animation:${Qe}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],te([C("#input")],n.UUIRadioElement.prototype,"inputElement",2),te([l({type:String})],n.UUIRadioElement.prototype,"name",2),te([l({type:String})],n.UUIRadioElement.prototype,"value",2),te([l({type:String})],n.UUIRadioElement.prototype,"label",2),te([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"checked",1),te([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"disabled",1),n.UUIRadioElement=te([c("uui-radio")],n.UUIRadioElement);class dt extends x{}dt.CHANGE="change";var Sa=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,gr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Aa(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Sa(e,r,i),i};const Da="ArrowLeft",La="ArrowUp",Ta="ArrowRight",Na="ArrowDown",Ba=" ";n.UUIRadioGroupElement=class extends j(h){constructor(){super();this.disabled=!1,this._selected=null,this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=t=>{t.target.checked===!0&&(this.value=t.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown)}get value(){return this._value}set value(t){super.value=t,(t===null||t==="")&&this._makeFirstEnabledFocusable(),this._radioElements.forEach((e,r)=>{e.value===t?(e.checked=!0,this._selected=r):e.checked=!1})}focus(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.focus():(e=this._findNextEnabledElement())==null||e.focus()}click(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.click():(e=this._findNextEnabledElement())==null||e.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}_setNameOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(r=>r.name=t)}_setDisableOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(r=>r.disabled=t)}_handleSlotChange(t){var e;if((e=this._radioElements)==null||e.forEach(r=>{r.removeEventListener(we.CHANGE,this._handleSelectOnClick),r.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=t.target.assignedElements({flatten:!0}).filter(r=>r instanceof n.UUIRadioElement),this._radioElements.length>0){this._radioElements.forEach(o=>{o.addEventListener(we.CHANGE,this._handleSelectOnClick),o.addEventListener("blur",this._onChildBlur)});const r=this._radioElements.filter(o=>o.checked===!0);r.length>1&&(this._radioElements.forEach(o=>{o.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),r.length===1?(this.value=r[0].value,this._selected=this._radioElements.indexOf(r[0]),r[0].disabled===!1?(this._radioElements.forEach(o=>{o.makeUnfocusable()}),r[0].makeFocusable()):this._makeFirstEnabledFocusable(),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0)):this._makeFirstEnabledFocusable()}}_makeFirstEnabledFocusable(){var t,e;this._selected=null,(t=this._radioElements)==null||t.forEach(r=>{r.makeUnfocusable()}),(e=this._findNextEnabledElement())==null||e.makeFocusable()}_findNextEnabledElement(t=1){if(!this._radioElements)return null;const e=this._selected||0,r=this._radioElements.length;let o=this._selected===null?0:1;for(;o<r;){let i=(e+o*t)%r;if(i<0&&(i+=r),this._radioElements[i].disabled===!1)return this._radioElements[i];o++}return null}_selectPreviousElement(){var t,e;this.value=((t=this._findNextEnabledElement(-1))==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_selectNextElement(){var t,e;this.value=((t=this._findNextEnabledElement())==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_onKeydown(t){var e;switch(t.key){case Da:case La:{t.preventDefault(),this._selectPreviousElement();break}case Ta:case Na:{t.preventDefault(),this._selectNextElement();break}case Ba:this._selected===null&&(this.value=(e=this._findNextEnabledElement())==null?void 0:e.value,this._fireChangeEvent())}}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new dt(dt.CHANGE))}updated(t){super.updated(t),t.has("disabled")&&this._setDisableOnRadios(t.get("disabled")),t.has("name")&&this._setNameOnRadios(t.get("name"))}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},n.UUIRadioGroupElement.formAssociated=!0,n.UUIRadioGroupElement.styles=[d`: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-look-danger-border,#d42054)}`],gr([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"disabled",2),n.UUIRadioGroupElement=gr([c("uui-radio-group")],n.UUIRadioGroupElement);var Ha=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,Ma=(t,e,r,o)=>{for(var i=o>1?void 0:o?ja(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ha(e,r,i),i};n.UUIRefListElement=class extends h{render(){return u`<slot></slot>`}},n.UUIRefListElement.styles=[d`:host{display:block}::slotted(:not(:first-child)){margin-top:1px}::slotted(:not(:first-child))::before{content:'';position:absolute;top:-1px;width:100%;border-top:1px solid #d3d3d3}`],n.UUIRefListElement=Ma([c("uui-ref-list")],n.UUIRefListElement);class Ee extends x{}Ee.OPEN="open";var Ra=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,Kt=(t,e,r,o)=>{for(var i=o>1?void 0:o?Fa(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ra(e,r,i),i};n.UUIRefElement=class extends qe(Le(h)){constructor(){super(...arguments);this.disabled=!1,this.error=!1}handleOpenClick(t){t.stopPropagation(),this.dispatchEvent(new Ee(Ee.OPEN))}handleOpenKeydown(t){t.key!==" "&&t.key!=="Enter"||(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new Ee(Ee.OPEN)))}},n.UUIRefElement.styles=[d`: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-interface-surface,#fefefe);--uui-card-before-opacity:0;transition:--uui-card-before-opacity 120ms}:host(:focus){outline-color:#6ab4f0}:host([error]){border:2px solid var(--uui-look-danger-border,#d42054);box-shadow:0 0 4px 0 var(--uui-look-danger-border,#d42054),inset 0 0 2px 0 var(--uui-look-danger-border,#d42054)}:host([border]){border:1px solid var(--uui-interface-border,#c4c4c4)}: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-interface-select,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + 2px);box-shadow:0 0 4px 0 var(--uui-interface-select,#3544b1),inset 0 0 2px 0 var(--uui-interface-select,#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}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)}#actions-container{opacity:0;transition:opacity 120ms}:host(:hover) #actions-container{opacity:1}:host([border]:not([disabled]):hover){border-color:var(--uui-interface-border-hover,#b3b3b3)}:host([disabled]) #open-part{cursor:default}:host([border][disabled]){border-color:var(--uui-interface-border-disabled,#bdbdbd)}slot[name=tag]{flex-grow:1;display:flex;justify-content:flex-end;align-items:center}`],Kt([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"disabled",2),Kt([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"error",2),n.UUIRefElement=Kt([c("uui-ref")],n.UUIRefElement);var Va=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,ht=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ga(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Va(e,r,i),i};n.UUIRefNodeElement=class extends n.UUIRefElement{constructor(){super(...arguments);this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}connectedCallback(){super.connectedCallback(),U(this,"uui-icon")}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return u`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}_renderFallbackIcon(){return u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`<button type="button" id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}" ?disabled="${this.disabled}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}</span><div id="info"><div id="name">${this.name}</div>${this.renderDetail()}</div></button><div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions" id="actions-container"></slot>`}},n.UUIRefNodeElement.styles=[...n.UUIRefElement.styles,d`:host{min-width:250px;padding:calc(var(--uui-size-2,6px) + 1px)}#open-part{align-self:stretch;display:flex;position:relative;align-items:center;cursor:pointer}#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(:not([disabled])) #open-part:hover #icon{color:var(--uui-interface-contrast-hover,#1b264f)}:host(:not([disabled])) #open-part:hover #name{font-weight:700;text-decoration:underline;color:var(--uui-interface-contrast-hover,#1b264f)}:host(:not([disabled])) #open-part:hover #detail{color:var(--uui-interface-contrast-hover,#1b264f)}:host([disabled]) #icon{color:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) #name{color:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) #detail{color:var(--uui-interface-contrast-disabled,#73716e)}`],ht([l({type:String})],n.UUIRefNodeElement.prototype,"name",2),ht([l({type:String})],n.UUIRefNodeElement.prototype,"detail",2),ht([g()],n.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),n.UUIRefNodeElement=ht([c("uui-ref-node")],n.UUIRefNodeElement);var qa=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,_r=(t,e,r,o)=>{for(var i=o>1?void 0:o?Wa(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&qa(e,r,i),i};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 t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),u`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDataTypeElement.styles=[...n.UUIRefNodeElement.styles],_r([l({type:String})],n.UUIRefNodeDataTypeElement.prototype,"alias",2),n.UUIRefNodeDataTypeElement=_r([c("uui-ref-node-data-type")],n.UUIRefNodeDataTypeElement);var Ka=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,yr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ya(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ka(e,r,i),i};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 t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),u`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDocumentTypeElement.styles=[...n.UUIRefNodeElement.styles],yr([l({type:String})],n.UUIRefNodeDocumentTypeElement.prototype,"alias",2),n.UUIRefNodeDocumentTypeElement=yr([c("uui-ref-node-document-type")],n.UUIRefNodeDocumentTypeElement);var Xa=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,Qa=(t,e,r,o)=>{for(var i=o>1?void 0:o?Za(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Xa(e,r,i),i};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=Qa([c("uui-ref-node-form")],n.UUIRefNodeFormElement);var Ja=Object.defineProperty,el=Object.getOwnPropertyDescriptor,Ur=(t,e,r,o)=>{for(var i=o>1?void 0:o?el(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ja(e,r,i),i};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 t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),u`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeMemberElement.styles=[...n.UUIRefNodeElement.styles],Ur([l({type:String,attribute:"group-name"})],n.UUIRefNodeMemberElement.prototype,"groupName",2),n.UUIRefNodeMemberElement=Ur([c("uui-ref-node-member")],n.UUIRefNodeMemberElement);var tl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,Yt=(t,e,r,o)=>{for(var i=o>1?void 0:o?il(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&tl(e,r,i),i};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 t=[];return this.detail!==""&&t.push(this.detail),this.version!==""&&t.push(this.version),this.author!==""&&t.push(this.author),u`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodePackageElement.styles=[...n.UUIRefNodeElement.styles],Yt([l({type:String})],n.UUIRefNodePackageElement.prototype,"version",2),Yt([l({type:String})],n.UUIRefNodePackageElement.prototype,"author",2),n.UUIRefNodePackageElement=Yt([c("uui-ref-node-package")],n.UUIRefNodePackageElement);var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,wr=(t,e,r,o)=>{for(var i=o>1?void 0:o?ol(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&rl(e,r,i),i};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 t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),u`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeUserElement.styles=[...n.UUIRefNodeElement.styles],wr([l({type:String,attribute:"group-name"})],n.UUIRefNodeUserElement.prototype,"groupName",2),n.UUIRefNodeUserElement=wr([c("uui-ref-node-user")],n.UUIRefNodeUserElement);var nl=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,al=(t,e,r,o)=>{for(var i=o>1?void 0:o?sl(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&nl(e,r,i),i};n.UUIScrollContainerElement=class extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0")}render(){return u`<slot></slot>`}},n.UUIScrollContainerElement.styles=[d`:host{display:block;scrollbar-width:thin;scrollbar-color:var(--uui-interface-contrast-disabled,#73716e) var(--uui-interface-background-alt);overflow-y:scroll}:host::-webkit-scrollbar{width:6px;height:6px}:host::-webkit-scrollbar-track{background:var(--uui-interface-background-alt);border-radius:3px}:host::-webkit-scrollbar-thumb{background-color:var(--uui-interface-contrast-disabled,#73716e);border-radius:3px}`],n.UUIScrollContainerElement=al([c("uui-scroll-container")],n.UUIScrollContainerElement);class pt extends x{}pt.CHANGE="change";var ll=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,T=(t,e,r,o)=>{for(var i=o>1?void 0:o?ul(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&ll(e,r,i),i};n.UUISelectElement=class extends j(h){constructor(){super();this.placeholder="",this.disabled=!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","")})}focus(){this._input.focus()}click(){this._input.click()}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(t=>t.group).map(t=>t.group))))}willUpdate(t){if(t.has("options")){this._extractGroups(),this._values=this.options.map(r=>r.value);const e=this.options.find(r=>r.selected);this.value=e?e.value:""}t.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),t.has("disabledGroups")&&this._createDisabledGroups()}setValue(t){const e=t.target;t.target&&(this.value=e.value),this.dispatchEvent(new pt(pt.CHANGE,{bubbles:!0,composed:!1}))}getFormElement(){return this._input}_renderOption(t,e,r,o){return u`<option value="${e}" ?selected="${r}" ?disabled="${o}">${t}</option>`}_renderGrouped(){return this._groups.length===0?u``:u`${this._groups.map(t=>u`<optgroup label="${t}" ?disabled="${this._disabledGroups.some(e=>e.toLowerCase()===t.toLowerCase())}">${this.options.map(e=>e.group===t?this._renderOption(e.name,e.value,e.selected,e.disabled):"")}</optgroup>`)}`}render(){return 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(t=>!t.group).map(t=>this._renderOption(t.name,t.value,t.selected,t.disabled))}</select>`}},n.UUISelectElement.styles=[d`:host{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));width:100%;padding:var(--uui-select-padding-y,var(--uui-size-1,3px)) var(--uui-select-padding-x,var(--uui-size-2,6px));color:currentColor;border-radius:0;box-sizing:border-box;background-color:transparent;border:1px solid var(--uui-select-border-color,var(--uui-interface-border,#c4c4c4));transition:all 150ms ease}#native:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-interface-outline,#3879ff)}#native[disabled]{cursor:not-allowed;background-color:var(--uui-select-disabled-background-color,var(--uui-interface-surface-disabled,#e4e4e4))}#native:hover{border:1px solid var(--uui-select-border-color-hover,var(--uui-interface-border-hover,#b3b3b3))}option:checked{background:var(--uui-select-selected-option-background-color,var(--uui-interface-active,#f5c1bc))}#native:focus{outline-color:var(--uui-select-outline-color,var(--uui-color-malibu,#3879ff))}#caret{position:absolute;right:12px;top:50%;transform:translateY(-50%)}:host([error]) #native{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) #native[disabled]{border:1px solid var(--uui-look-danger-border,#d42054)}`],T([l({type:String})],n.UUISelectElement.prototype,"label",2),T([l()],n.UUISelectElement.prototype,"placeholder",2),T([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"disabled",2),T([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"error",2),T([l({type:Array,attribute:!1})],n.UUISelectElement.prototype,"options",2),T([g()],n.UUISelectElement.prototype,"_groups",2),T([l()],n.UUISelectElement.prototype,"disabledGroups",2),T([g()],n.UUISelectElement.prototype,"_disabledGroups",2),T([C("#native")],n.UUISelectElement.prototype,"_input",2),n.UUISelectElement=T([c("uui-select")],n.UUISelectElement);const cl=d`
235
+ */const He=(t,e)=>{var i,r;const o=t._$AN;if(o===void 0)return!1;for(const s of o)(r=(i=s)._$AO)===null||r===void 0||r.call(i,e,!1),He(s,e);return!0},ut=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while(i?.size===0)},fo=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),va(e)}};function ba(t){this._$AN!==void 0?(ut(this),this._$AM=t,fo(this)):this._$AM=t}function ma(t,e=!1,i=0){const r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(r))for(let s=i;s<r.length;s++)He(r[s],!1),ut(r[s]);else r!=null&&(He(r,!1),ut(r));else He(this,t)}const va=t=>{var e,i,r,o;t.type==tt.CHILD&&((e=(r=t)._$AP)!==null&&e!==void 0||(r._$AP=ma),(i=(o=t)._$AQ)!==null&&i!==void 0||(o._$AQ=ba))};class ga extends ot{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,r){super._$AT(e,i,r),fo(this),this.isConnected=e._$AU}_$AO(e,i=!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)),i&&(He(this,e),ut(this))}setValue(e){if(Kn(this._$Ct))this._$Ct._$AI(e,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=e,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}const Vt=new WeakMap,Gt=it(class extends ga{render(t){return E}update(t,[e]){var i;const r=e!==this.U;return r&&this.U!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.U=e,this.ht=(i=t.options)===null||i===void 0?void 0:i.host,this.ot(this.lt=t.element)),E}ot(t){var e;if(typeof this.U=="function"){const i=(e=this.ht)!==null&&e!==void 0?e:globalThis;let r=Vt.get(i);r===void 0&&(r=new WeakMap,Vt.set(i,r)),r.get(this.U)!==void 0&&this.U.call(this.ht,void 0),r.set(this.U,t),t!==void 0&&this.U.call(this.ht,t)}else this.U.value=t}get rt(){var t,e,i;return typeof this.U=="function"?(e=Vt.get((t=this.ht)!==null&&t!==void 0?t:globalThis))===null||e===void 0?void 0:e.get(this.U):(i=this.U)===null||i===void 0?void 0:i.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});class F extends k{}F.SHOW_CHILDREN="show-children",F.HIDE_CHILDREN="hide-children",F.CLICK_LABEL="click-label";var fa=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,G=(t,e,i,r)=>{for(var o=r>1?void 0:r?ya(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&fa(e,i,o),o};n.UUIMenuItemElement=class extends We(Ne(Ke(Te("label",h)))){constructor(){super(...arguments),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1}labelButtonChanged(t){this.selectableTarget=t||this}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),U(this,"uui-symbol-expand"),U(this,"uui-loader-bar")}iconSlotChanged(t){this.iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}onCaretClicked(){this.showChildren=!this.showChildren;const t=this.showChildren?F.SHOW_CHILDREN:F.HIDE_CHILDREN,e=new F(t);this.dispatchEvent(e)}onLabelClicked(){const t=new F(F.CLICK_LABEL);this.dispatchEvent(t)}_renderLabelInside(){return c`<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?c`<span id="label-button" ${Gt(this.labelButtonChanged)}>${this._renderLabelInside()}</span>`:c`<a id="label-button" ${Gt(this.labelButtonChanged)} href="${T(this.href)}" target="${T(this.target||void 0)}" rel="${T(this.target==="_blank"?"noopener noreferrer":void 0)}" @click="${this.onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return c`<button id="label-button" ${Gt(this.labelButtonChanged)} @click="${this.onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</button>`}render(){return c`<div id="menu-item" aria-label="menuitem" role="menuitem">${this.hasChildren?c`<button id="caret-button" @click="${this.onCaretClicked}"><uui-symbol-expand ?open="${this.showChildren}"></uui-symbol-expand></button>`:""} ${this.href?this._renderLabelAsAnchor():this._renderLabelAsButton()}<div id="label-button-background"></div>${this.selectOnly===!1?c`<slot id="actions-container" name="actions"></slot>`:""} ${this.loading?c`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?c`<slot></slot>`:""}`}},n.UUIMenuItemElement.styles=[d`:host{display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns: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])) #menu-item #label-button:hover~#label-button-background{background-color: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-color-interactive-emphasis,#3544b1)}:host([active]) #caret-button,:host([active]) #label-button{color:var(--uui-color-current-contrast,#1b264f)}:host([active]) #label-button-background{background-color:var(--uui-color-current,#f5c1bc)}:host([active]) #caret-button:hover,:host([active]) #label-button:hover~#label-button-background{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([selected]) #caret-button,:host([selected]) #label-button{color:var(--uui-color-selected-contrast,#fff)}:host([selected]) #label-button-background{background-color:var(--uui-color-selected,#3544b1)}:host([selected]) #caret-button:hover,:host([selected]) #label-button:hover~#label-button-background{background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([disabled]) #menu-item{color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}: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{flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button+#label-button{padding-left:0}#caret-button{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--uui-color-interactive,#1b264f)}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0}#actions-container{opacity:0;transition:opacity 120ms;grid-column-start:3}: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}#loader{position:absolute;width:100%;bottom:0}#icon{display:inline-flex;font-size:16px;margin-right:var(--uui-size-2,6px)}#badge{font-size:12px;--uui-badge-position:relative;--uui-badge-position:auto;display:block;margin-left:6px}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)}`],G([l({type:Boolean,reflect:!0})],n.UUIMenuItemElement.prototype,"disabled",2),G([l({type:Boolean,reflect:!0,attribute:"show-children"})],n.UUIMenuItemElement.prototype,"showChildren",2),G([l({type:Boolean,attribute:"has-children"})],n.UUIMenuItemElement.prototype,"hasChildren",2),G([l({type:Boolean,attribute:"loading"})],n.UUIMenuItemElement.prototype,"loading",2),G([l({type:String})],n.UUIMenuItemElement.prototype,"href",2),G([l({type:String})],n.UUIMenuItemElement.prototype,"target",2),G([f()],n.UUIMenuItemElement.prototype,"iconSlotHasContent",2),n.UUIMenuItemElement=G([u("uui-menu-item")],n.UUIMenuItemElement);class q extends k{}q.CHANGE="change";var Ua=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,V=(t,e,i,r)=>{for(var o=r>1?void 0:r?_a(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Ua(e,i,o),o};const wa=45,qt=(t,e,i)=>Math.min(Math.max(t,e),i),Ea=(t,e)=>Array.from({length:e-t+1},(i,r)=>t+r);n.UUIPaginationElement=class extends h{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this.total=1,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),U(this,"uui-button"),U(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(t){(t.has("current")||t.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const t=this.offsetWidth,e=Array.from(this._navButtons).reduce((r,o)=>r+o.getBoundingClientRect().width,0),i=(t-e)/wa/2;this._range=Math.max(1,Math.floor(i)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(t){const e=t<this._range?1:t<this.total-this._range?t-this._range:this.total-this._range*2,i=t<=this._range?this._range*2+1:t<this.total-this._range?t+this._range:this.total;return Ea(qt(e,1,this.total),qt(i,1,this.total))}get current(){return this._current}set current(t){const e=this._current;this._current=qt(t,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",e)}goToNextPage(){this.current++,this.dispatchEvent(new q(q.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new q(q.CHANGE))}goToPage(t){this.current=t,this.dispatchEvent(new q(q.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const t=this.renderRoot.querySelector(".active");t&&t.focus()})}renderFirst(){return c`<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 c`<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 c`<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 c`<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 c`<uui-button compact="compact" look="outline" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(t){return c`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${t}" class="${"page"+(t===this._current?" active":"")}" tabindex="${t===this._current?"-1":""}" @click="${()=>{t!==this._current&&(this.goToPage(t),this.focusActivePage())}}">${t}</uui-button>`}renderNavigationLeft(){return c`${this.renderFirst()} ${this.renderPrevious()} ${this._visiblePages.includes(1)?"":this.renderDots()}`}renderNavigationRight(){return c`${this._visiblePages.includes(this.total)?"":this.renderDots()} ${this.renderNext()} ${this.renderLast()}`}render(){return c`<uui-button-group role="list" id="pages">${this.renderNavigationLeft()} ${this._visiblePages.map(t=>this.renderPage(t))} ${this.renderNavigationRight()}</uui-button-group>`}},n.UUIPaginationElement.styles=[d`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}`],V([Wo("uui-button.nav")],n.UUIPaginationElement.prototype,"_navButtons",2),V([x("#pages")],n.UUIPaginationElement.prototype,"_pagesGroup",2),V([l()],n.UUIPaginationElement.prototype,"label",2),V([l({reflect:!0,attribute:"aria-label"})],n.UUIPaginationElement.prototype,"ariaLabel",2),V([l({type:Number})],n.UUIPaginationElement.prototype,"total",2),V([f()],n.UUIPaginationElement.prototype,"_range",2),V([f()],n.UUIPaginationElement.prototype,"_visiblePages",2),V([l({type:Number})],n.UUIPaginationElement.prototype,"current",1),n.UUIPaginationElement=V([u("uui-pagination")],n.UUIPaginationElement);class Kt extends k{}Kt.CLOSE="close";var $a=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,Me=(t,e,i,r)=>{for(var o=r>1?void 0:r?Ia(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&$a(e,i,o),o};function dt(t,e,i){return t<e?e:t>i?i:t}n.UUIPopoverElement=class extends h{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=t=>{this._trigger=t.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=t=>{t.forEach(e=>{e.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onDocumentClick=t=>{t.composedPath().includes(this)||this._forceClosePopover()}}get placement(){return this._placement}set placement(t){const e=this._placement;this._placement=t||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",e)}get open(){return this._open}set open(t){const e=this._open;this._open=t,t?this._openPopover():this._closePopover(),this.requestUpdate("open",e)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),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),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),this._currentPlacement=null}_forceClosePopover(){this.open=!1,this.dispatchEvent(new Kt(Kt.CLOSE))}_getScrollParents(){const t=this.shadowRoot.host;let e=getComputedStyle(t);if(e.position==="fixed")return;const i=e.position==="absolute",r=/(auto|scroll)/;let o=t;for(;o=o.parentElement;)if(e=getComputedStyle(o),!(i&&e.position==="static")&&(r.test(e.overflow+e.overflowY+e.overflowX)&&this._scrollParents.push(o),e.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const t={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,t),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(t=>{t.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(t=>{t.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){var t,e;if(!this.shadowRoot)return;const i=this.containerElement;if(!i)return;const r=(t=this.containerElement)==null?void 0:t.getBoundingClientRect(),o=(e=this._trigger)==null?void 0:e.getBoundingClientRect();if(o!=null&&r!=null){const s=this._scrollParents.map(B=>B.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,r,s));let a=this._currentPlacement.indexOf("top")!==-1,b=this._currentPlacement.indexOf("bottom")!==-1,m=this._currentPlacement.indexOf("left")!==-1,p=this._currentPlacement.indexOf("right")!==-1;const I=this._currentPlacement.indexOf("-start")!==-1,_=this._currentPlacement.indexOf("-end")!==-1;let v=.5,y=.5,w=.5,$=.5,P=0,re=0;if(this.placement==="auto"){const B=this._scrollParents[0],Ve=B.clientWidth,ae=B.clientHeight,xe=o.x-r.width,Ce=Ve-(o.x+o.width)-r.width,ei=o.y-r.height,gt=ae-(o.y+o.height)-r.height;let ft=.5,yt=.5;const bc=Math.max(xe,Ce);let Lo=Math.max(ei,gt);gt>ei&&gt>this.margin&&(Lo+=9999),bc>Lo?(xe>Ce?(ft=0,m=!0):(ft=1,p=!0),P=this.margin):(ei>gt?(yt=0,a=!0):(yt=1,b=!0),re=this.margin),v=ft,y=yt,w=1-ft,$=1-yt}else a&&($=1,y=0),b&&($=0,y=1),(a||b)&&(re=this.margin,I&&(w=0,v=0),_&&(w=1,v=1)),m&&(w=1,v=0),p&&(w=0,v=1),(m||p)&&(P=this.margin,I&&($=0,y=0),_&&($=1,y=1));const ke=-r.width*w+o.width*v-P*(w*2-1),Jt=-r.height*$+o.height*y-re*($*2-1);let ne=ke,se=Jt;a||b?(this._scrollParents.forEach((B,Ve)=>{const ae=B===document.body?0:s[Ve].x,xe=-o.x+ae,Ce=B.clientWidth-o.x-o.width+ke+ae-(r.width-o.width)*(1-v);ne=dt(ne,xe,Ce)}),ne=dt(ne,-r.width,o.width)):(m||p)&&(this._scrollParents.forEach((B,Ve)=>{const ae=B===document.body?0:s[Ve].y,xe=-o.y+ae,Ce=B.clientHeight-o.y-o.height+Jt+ae-(r.height-o.height)*(1-y);se=dt(se,xe,Ce)}),se=dt(se,-r.height,o.height)),(this._positionX!==ne||this._positionY!==se)&&(this._positionX=ne,this._positionY=se,ke===ne&&Jt===se&&this._stopScrollListener(),i.style.left=`${this._positionX}px`,i.style.top=`${this._positionY}px`)}}_managePlacementFlip(t,e,i){const r=t.split("-"),o=r[0],s=r[1]||null;let a;return this._scrollParents.some((b,m)=>{const p=b===document.body?0:i[m].x,I=b===document.body?0:i[m].y;return o==="top"&&e.y-2<=I?(a="bottom",!0):o==="bottom"&&e.y+e.height+2>=b.clientHeight+I?(a="top",!0):o==="left"&&e.x-2<=p?(a="right",!0):o==="right"&&e.x+e.width+2>=b.clientWidth+p?(a="left",!0):!1}),a?(this._startScrollListener(),a+(s?`-${s}`:"")):t}render(){return c`<slot id="trigger" name="trigger" @slotchange="${this._onTriggerSlotChanged}"></slot><div id="container">${this._open?c`<slot name="popover"></slot>`:""}</div>`}},n.UUIPopoverElement.styles=[d`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:1}slot[name=popover]{display:block}#trigger{position:relative;width:100%}`],Me([x("#container")],n.UUIPopoverElement.prototype,"containerElement",2),Me([l({type:Number})],n.UUIPopoverElement.prototype,"margin",2),Me([l({type:String,reflect:!0})],n.UUIPopoverElement.prototype,"placement",1),Me([l({type:Boolean,reflect:!0})],n.UUIPopoverElement.prototype,"open",1),n.UUIPopoverElement=Me([u("uui-popover")],n.UUIPopoverElement);var ka=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,yo=(t,e,i,r)=>{for(var o=r>1?void 0:r?xa(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&ka(e,i,o),o};const Ca=(t,e,i)=>Math.min(Math.max(t,e),i);n.UUIProgressBarElement=class extends h{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=Ca(t,0,100),this.requestUpdate("progress",e)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return c`<div id="bar" style="${rt(this._getProgressStyle())}"></div>`}},n.UUIProgressBarElement.styles=[d`: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,#25aa60);height:100%;width:0%}`],yo([l({type:Number})],n.UUIProgressBarElement.prototype,"progress",1),n.UUIProgressBarElement=yo([u("uui-progress-bar")],n.UUIProgressBarElement);class Ee extends k{}Ee.CHANGE="change";var za=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,ie=(t,e,i,r)=>{for(var o=r>1?void 0:r?Oa(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&za(e,i,o),o};n.UUIRadioElement=class extends h{constructor(){super(),this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","1")})}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,t===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,t&&(this.setAttribute("aria-hidden","true"),this.setAttribute("tabindex","-1")),this.requestUpdate("disabled",e)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(){const t=this.inputElement.checked;this.checked=t,t&&this.focus(),this.dispatchEvent(new Ee(Ee.CHANGE))}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.setAttribute("tabindex","0")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.removeAttribute("aria-checked")}render(){return c`<label><input id="input" type="radio" name="${this.name}" value="${this.value}" .checked="${this.checked}" .disabled="${this.disabled}" @change="${this._onChange}"><div id="button"></div><div id="label">${this.label?c`<span>${this.label}</span>`:c`<slot></slot>`}</div></label>`}},n.UUIRadioElement.styles=[Je,d`: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{display:block;box-sizing:border-box;display:flex;align-items:center;cursor:pointer;line-height:18px}#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}#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) #button{outline:calc(2px * var(--uui-show-focus-outline,1)) 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:default;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:${et}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],ie([x("#input")],n.UUIRadioElement.prototype,"inputElement",2),ie([l({type:String})],n.UUIRadioElement.prototype,"name",2),ie([l({type:String})],n.UUIRadioElement.prototype,"value",2),ie([l({type:String})],n.UUIRadioElement.prototype,"label",2),ie([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"checked",1),ie([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"disabled",1),n.UUIRadioElement=ie([u("uui-radio")],n.UUIRadioElement);class ht extends k{}ht.CHANGE="change";var Pa=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,Uo=(t,e,i,r)=>{for(var o=r>1?void 0:r?Sa(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Pa(e,i,o),o};const Aa="ArrowLeft",La="ArrowUp",Ta="ArrowRight",Na="ArrowDown",Da=" ";n.UUIRadioGroupElement=class extends R(h){constructor(){super(),this.disabled=!1,this._selected=null,this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=t=>{t.target.checked===!0&&(this.value=t.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown)}get value(){return this._value}set value(t){super.value=t,(t===null||t==="")&&this._makeFirstEnabledFocusable(),this._radioElements.forEach((e,i)=>{e.value===t?(e.checked=!0,this._selected=i):e.checked=!1})}focus(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.focus():(e=this._findNextEnabledElement())==null||e.focus()}click(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.click():(e=this._findNextEnabledElement())==null||e.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}_setNameOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(i=>i.name=t)}_setDisableOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(i=>i.disabled=t)}_handleSlotChange(t){var e;if((e=this._radioElements)==null||e.forEach(i=>{i.removeEventListener(Ee.CHANGE,this._handleSelectOnClick),i.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=t.target.assignedElements({flatten:!0}).filter(i=>i instanceof n.UUIRadioElement),this._radioElements.length>0){this._radioElements.forEach(r=>{r.addEventListener(Ee.CHANGE,this._handleSelectOnClick),r.addEventListener("blur",this._onChildBlur)});const i=this._radioElements.filter(r=>r.checked===!0);i.length>1&&(this._radioElements.forEach(r=>{r.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),i.length===1?(this.value=i[0].value,this._selected=this._radioElements.indexOf(i[0]),i[0].disabled===!1?(this._radioElements.forEach(r=>{r.makeUnfocusable()}),i[0].makeFocusable()):this._makeFirstEnabledFocusable(),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0)):this._makeFirstEnabledFocusable()}}_makeFirstEnabledFocusable(){var t,e;this._selected=null,(t=this._radioElements)==null||t.forEach(i=>{i.makeUnfocusable()}),(e=this._findNextEnabledElement())==null||e.makeFocusable()}_findNextEnabledElement(t=1){if(!this._radioElements)return null;const e=this._selected||0,i=this._radioElements.length;let r=this._selected===null?0:1;for(;r<i;){let o=(e+r*t)%i;if(o<0&&(o+=i),this._radioElements[o].disabled===!1)return this._radioElements[o];r++}return null}_selectPreviousElement(){var t,e;this.value=((t=this._findNextEnabledElement(-1))==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_selectNextElement(){var t,e;this.value=((t=this._findNextEnabledElement())==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_onKeydown(t){var e;switch(t.key){case Aa:case La:{t.preventDefault(),this._selectPreviousElement();break}case Ta:case Na:{t.preventDefault(),this._selectNextElement();break}case Da:this._selected===null&&(this.value=(e=this._findNextEnabledElement())==null?void 0:e.value,this._fireChangeEvent())}}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new ht(ht.CHANGE))}updated(t){super.updated(t),t.has("disabled")&&this._setDisableOnRadios(t.get("disabled")),t.has("name")&&this._setNameOnRadios(t.get("name"))}render(){return c`<slot @slotchange="${this._handleSlotChange}"></slot>`}},n.UUIRadioGroupElement.formAssociated=!0,n.UUIRadioGroupElement.styles=[d`: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)}`],Uo([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"disabled",2),n.UUIRadioGroupElement=Uo([u("uui-radio-group")],n.UUIRadioGroupElement);var ja=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,Ha=(t,e,i,r)=>{for(var o=r>1?void 0:r?Ba(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&ja(e,i,o),o};n.UUIRefListElement=class extends h{render(){return c`<slot></slot>`}},n.UUIRefListElement.styles=[d`:host{display:block}::slotted(:not(:first-child)){margin-top:1px}::slotted(:not(:first-child))::before{content:'';position:absolute;top:-1px;width:100%;border-top:1px solid var(--uui-color-border,#d8d7d9)}`],n.UUIRefListElement=Ha([u("uui-ref-list")],n.UUIRefListElement);class $e extends k{}$e.OPEN="open";var Ma=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Wt=(t,e,i,r)=>{for(var o=r>1?void 0:r?Ra(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Ma(e,i,o),o};n.UUIRefElement=class extends We(Ne(h)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(t){t.stopPropagation(),this.dispatchEvent(new $e($e.OPEN))}handleOpenKeydown(t){t.key!==" "&&t.key!=="Enter"||(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new $e($e.OPEN)))}},n.UUIRefElement.styles=[d`: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(:focus){outline-color:#6ab4f0}: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([border]){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}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)}#actions-container{opacity:0;transition:opacity 120ms}:host(:hover) #actions-container{opacity:1}:host([border]:not([disabled]):hover){border-color:var(--uui-color-border-emphasis,#a1a1a1)}:host([disabled]) #open-part{cursor:default}:host([border][disabled]){border-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=tag]{flex-grow:1;display:flex;justify-content:flex-end;align-items:center}`],Wt([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"disabled",2),Wt([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"error",2),n.UUIRefElement=Wt([u("uui-ref")],n.UUIRefElement);var Fa=Object.defineProperty,Va=Object.getOwnPropertyDescriptor,pt=(t,e,i,r)=>{for(var o=r>1?void 0:r?Va(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Fa(e,i,o),o};n.UUIRefNodeElement=class extends n.UUIRefElement{constructor(){super(...arguments),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}connectedCallback(){super.connectedCallback(),U(this,"uui-icon")}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return c`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}_renderFallbackIcon(){return c`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return c`<button type="button" id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}" ?disabled="${this.disabled}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}</span><div id="info"><div id="name">${this.name}</div>${this.renderDetail()}</div></button><div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions" id="actions-container"></slot>`}},n.UUIRefNodeElement.styles=[...n.UUIRefElement.styles,d`:host{min-width:250px;padding:calc(var(--uui-size-2,6px) + 1px)}#open-part{align-self:stretch;display:flex;position:relative;align-items:center;cursor:pointer}#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(:not([disabled])) #open-part:hover #icon{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #name{font-weight:700;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)}`],pt([l({type:String})],n.UUIRefNodeElement.prototype,"name",2),pt([l({type:String})],n.UUIRefNodeElement.prototype,"detail",2),pt([f()],n.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),n.UUIRefNodeElement=pt([u("uui-ref-node")],n.UUIRefNodeElement);var Ga=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,_o=(t,e,i,r)=>{for(var o=r>1?void 0:r?qa(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Ga(e,i,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 t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),c`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDataTypeElement.styles=[...n.UUIRefNodeElement.styles],_o([l({type:String})],n.UUIRefNodeDataTypeElement.prototype,"alias",2),n.UUIRefNodeDataTypeElement=_o([u("uui-ref-node-data-type")],n.UUIRefNodeDataTypeElement);var Ka=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,wo=(t,e,i,r)=>{for(var o=r>1?void 0:r?Wa(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Ka(e,i,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 t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),c`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDocumentTypeElement.styles=[...n.UUIRefNodeElement.styles],wo([l({type:String})],n.UUIRefNodeDocumentTypeElement.prototype,"alias",2),n.UUIRefNodeDocumentTypeElement=wo([u("uui-ref-node-document-type")],n.UUIRefNodeDocumentTypeElement);var Ya=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,Xa=(t,e,i,r)=>{for(var o=r>1?void 0:r?Za(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Ya(e,i,o),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=Xa([u("uui-ref-node-form")],n.UUIRefNodeFormElement);var Qa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Eo=(t,e,i,r)=>{for(var o=r>1?void 0:r?Ja(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Qa(e,i,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 t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),c`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeMemberElement.styles=[...n.UUIRefNodeElement.styles],Eo([l({type:String,attribute:"group-name"})],n.UUIRefNodeMemberElement.prototype,"groupName",2),n.UUIRefNodeMemberElement=Eo([u("uui-ref-node-member")],n.UUIRefNodeMemberElement);var el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,Yt=(t,e,i,r)=>{for(var o=r>1?void 0:r?tl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&el(e,i,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 t=[];return this.detail!==""&&t.push(this.detail),this.version!==""&&t.push(this.version),this.author!==""&&t.push(this.author),c`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodePackageElement.styles=[...n.UUIRefNodeElement.styles],Yt([l({type:String})],n.UUIRefNodePackageElement.prototype,"version",2),Yt([l({type:String})],n.UUIRefNodePackageElement.prototype,"author",2),n.UUIRefNodePackageElement=Yt([u("uui-ref-node-package")],n.UUIRefNodePackageElement);var il=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,$o=(t,e,i,r)=>{for(var o=r>1?void 0:r?ol(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&il(e,i,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 t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),c`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeUserElement.styles=[...n.UUIRefNodeElement.styles],$o([l({type:String,attribute:"group-name"})],n.UUIRefNodeUserElement.prototype,"groupName",2),n.UUIRefNodeUserElement=$o([u("uui-ref-node-user")],n.UUIRefNodeUserElement);var rl=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,sl=(t,e,i,r)=>{for(var o=r>1?void 0:r?nl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&rl(e,i,o),o};n.UUIScrollContainerElement=class extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0")}render(){return c`<slot></slot>`}},n.UUIScrollContainerElement.styles=[d`:host{display:block;scrollbar-width:thin;scrollbar-color:var(--uui-color-disabled-contrast,#c4c4c4) var(--uui-color-surface,#fff);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}`],n.UUIScrollContainerElement=sl([u("uui-scroll-container")],n.UUIScrollContainerElement);class bt extends k{}bt.CHANGE="change";var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,j=(t,e,i,r)=>{for(var o=r>1?void 0:r?ll(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&al(e,i,o),o};n.UUISelectElement=class extends R(h){constructor(){super(),this.placeholder="",this.disabled=!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","")})}focus(){this._input.focus()}click(){this._input.click()}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(t=>t.group).map(t=>t.group))))}willUpdate(t){if(t.has("options")){this._extractGroups(),this._values=this.options.map(i=>i.value);const e=this.options.find(i=>i.selected);this.value=e?e.value:""}t.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),t.has("disabledGroups")&&this._createDisabledGroups()}setValue(t){const e=t.target;t.target&&(this.value=e.value),this.dispatchEvent(new bt(bt.CHANGE,{bubbles:!0,composed:!1}))}getFormElement(){return this._input}_renderOption(t,e,i,r){return c`<option value="${e}" ?selected="${i}" ?disabled="${r}">${t}</option>`}_renderGrouped(){return this._groups.length===0?c``:c`${this._groups.map(t=>c`<optgroup label="${t}" ?disabled="${this._disabledGroups.some(e=>e.toLowerCase()===t.toLowerCase())}">${this.options.map(e=>e.group===t?this._renderOption(e.name,e.value,e.selected,e.disabled):"")}</optgroup>`)}`}render(){return c`<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(t=>!t.group).map(t=>this._renderOption(t.name,t.value,t.selected,t.disabled))}</select>`}},n.UUISelectElement.styles=[d`:host{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));width:100%;padding:var(--uui-select-padding-y,var(--uui-size-1,3px)) var(--uui-select-padding-x,var(--uui-size-2,6px));color:currentColor;border-radius:0;box-sizing:border-box;background-color:transparent;border:1px solid var(--uui-select-border-color,var(--uui-color-border,#d8d7d9));transition:all 150ms ease}#native:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid 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))}#native:focus{outline-color:var(--uui-select-outline-color,var(--uui-color-focus,#3879ff))}#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)}`],j([l({type:String})],n.UUISelectElement.prototype,"label",2),j([l()],n.UUISelectElement.prototype,"placeholder",2),j([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"disabled",2),j([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"error",2),j([l({type:Array,attribute:!1})],n.UUISelectElement.prototype,"options",2),j([f()],n.UUISelectElement.prototype,"_groups",2),j([l()],n.UUISelectElement.prototype,"disabledGroups",2),j([f()],n.UUISelectElement.prototype,"_disabledGroups",2),j([x("#native")],n.UUISelectElement.prototype,"_input",2),n.UUISelectElement=j([u("uui-select")],n.UUISelectElement);const cl=d`
236
236
  input[type='range'] {
237
237
  left: 0;
238
238
  position: absolute;
@@ -339,15 +339,15 @@
339
339
  input[type='range']:focus::-ms-fill-upper {
340
340
  background: transparent;
341
341
  }
342
- `;class ie extends x{}ie.INPUT="input",ie.CHANGE="change";var dl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,k=(t,e,r,o)=>{for(var i=o>1?void 0:o?hl(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&dl(e,r,i),i};const Me=12,Er=24,pl=(t,e)=>m`
343
- ${t.map(r=>{if(e>=Er){const o=Math.round(Me+e*t.indexOf(r));return m`<circle class="track-step" cx="${o}" cy="50%" r="4.5" />`}return m``})}
344
- `,vl=(t,e,r)=>r?u``:u`<div id="step-values">
345
- ${t.map(o=>u` <span
342
+ `;class oe extends k{}oe.INPUT="input",oe.CHANGE="change";var ul=Object.defineProperty,dl=Object.getOwnPropertyDescriptor,z=(t,e,i,r)=>{for(var o=r>1?void 0:r?dl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&ul(e,i,o),o};const Re=12,Io=24,hl=(t,e)=>g`
343
+ ${t.map(i=>{if(e>=Io){const r=Math.round(Re+e*t.indexOf(i));return g`<circle class="track-step" cx="${r}" cy="50%" r="4.5" />`}return g``})}
344
+ `,pl=(t,e,i)=>i?c``:c`<div id="step-values">
345
+ ${t.map(r=>c` <span
346
346
  ><span>
347
- ${t.length<=20&&e>=Er?o.toFixed(0):E}
347
+ ${t.length<=20&&e>=Io?r.toFixed(0):E}
348
348
  </span></span
349
349
  >`)}
350
- </div>`,bl=(t,e,r)=>Array.from({length:(e-t)/r+1},(o,i)=>t+i*r);n.UUISliderElement=class extends j(h){constructor(){super();this.hideStepValues=!1,this.min=0,this.max=100,this.step=1,this.disabled=!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","")})}get value(){return this._value}set value(t){if(t instanceof File)return;const e=this._value;let r=t?parseFloat(t):0;r=Math.min(Math.max(r,this.min),this.max),this.step>0&&(r=Math.round(r/this.step)*this.step),this._value=r.toString(),this._calculateSliderPosition(),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",e)}focus(){this._input.focus()}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(t){super.updated(t),(t.get("max")||t.get("min")||t.get("step"))&&(this.value=this.value,this._updateSteps())}_updateSteps(){this._steps=bl(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-Me*2)/(this._steps.length-1)}_calculateSliderPosition(){const t=(parseFloat(this._value||"0")-this.min)/(this.max-this.min);this._sliderPosition=`${Math.floor(t*1e5)/1e3}%`}_onInput(){this.value=this._input.value,this.dispatchEvent(new ie(ie.INPUT))}_onChange(){this.pristine=!1,this.dispatchEvent(new ie(ie.CHANGE))}render(){return u`
350
+ </div>`,bl=(t,e,i)=>Array.from({length:(e-t)/i+1},(r,o)=>t+o*i);n.UUISliderElement=class extends R(h){constructor(){super(),this.hideStepValues=!1,this.min=0,this.max=100,this.step=1,this.disabled=!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","")})}get value(){return this._value}set value(t){if(t instanceof File)return;const e=this._value;let i=t?parseFloat(t):0;i=Math.min(Math.max(i,this.min),this.max),this.step>0&&(i=Math.round(i/this.step)*this.step),this._value=i.toString(),this._calculateSliderPosition(),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",e)}focus(){this._input.focus()}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(t){super.updated(t),(t.get("max")||t.get("min")||t.get("step"))&&(this.value=this.value,this._updateSteps())}_updateSteps(){this._steps=bl(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-Re*2)/(this._steps.length-1)}_calculateSliderPosition(){const t=(parseFloat(this._value||"0")-this.min)/(this.max-this.min);this._sliderPosition=`${Math.floor(t*1e5)/1e3}%`}_onInput(){this.value=this._input.value,this.dispatchEvent(new oe(oe.INPUT))}_onChange(){this.pristine=!1,this.dispatchEvent(new oe(oe.CHANGE))}render(){return c`
351
351
  <input
352
352
  id="input"
353
353
  type="range"
@@ -362,17 +362,17 @@
362
362
  <div id="track" aria-hidden="true">
363
363
  <svg height="100%" width="100%">
364
364
  <rect x="9" y="9" height="3" rx="2" />
365
- ${pl(this._steps,this._stepWidth)}
365
+ ${hl(this._steps,this._stepWidth)}
366
366
  </svg>
367
367
 
368
368
  <div id="track-inner" aria-hidden="true">
369
- <div id="thumb" style=${it({left:this._sliderPosition})}>
369
+ <div id="thumb" style=${rt({left:this._sliderPosition})}>
370
370
  <div id="thumb-label">${this.value}</div>
371
371
  </div>
372
372
  </div>
373
373
  </div>
374
- ${vl(this._steps,this._stepWidth,this.hideStepValues)}
375
- `}},n.UUISliderElement.formAssociated=!0,n.UUISliderElement.styles=[en,cl,d`
374
+ ${pl(this._steps,this._stepWidth,this.hideStepValues)}
375
+ `}},n.UUISliderElement.formAssociated=!0,n.UUISliderElement.styles=[Jr,cl,d`
376
376
  :host {
377
377
  display: inline-block;
378
378
  width: 100%;
@@ -395,34 +395,33 @@
395
395
 
396
396
  #track svg {
397
397
  height: 21px;
398
- /*border: 1px solid var(--uui-interface-border);*/
399
398
  border-radius: 10px;
400
- background-color: var(--uui-interface-surface,#fefefe);
399
+ background-color: var(--uui-color-surface,#fff);
401
400
  }
402
401
  #track svg rect {
403
402
  width: calc(100% - 18px);
404
- fill: var(--uui-interface-border,#c4c4c4);
403
+ fill: var(--uui-color-border-standalone,#c2c2c2);
405
404
  }
406
405
  input:hover ~ #track svg rect {
407
- fill: var(--uui-interface-border-hover,rgb(179, 179, 179));
406
+ fill: var(--uui-color-border-emphasis,#a1a1a1);
408
407
  }
409
408
 
410
409
  input:focus ~ #track svg {
411
410
  outline: calc(2px * var(--uui-show-focus-outline, 1)) solid
412
- var(--uui-interface-outline,#3879ff);
411
+ var(--uui-color-focus,#3879ff);
413
412
  }
414
413
 
415
414
  .track-step {
416
- fill: var(--uui-interface-border,#c4c4c4);
415
+ fill: var(--uui-color-border,#d8d7d9);
417
416
  }
418
417
  input:hover ~ #track svg .track-step {
419
- fill: var(--uui-interface-border-hover,rgb(179, 179, 179));
418
+ fill: var(--uui-color-border-emphasis,#a1a1a1);
420
419
  }
421
420
 
422
421
  #track-inner {
423
422
  position: absolute;
424
- left: ${Me}px; /* Match TRACK_MARGIN */
425
- right: ${Me}px; /* Match TRACK_MARGIN */
423
+ left: ${Re}px; /* Match TRACK_MARGIN */
424
+ right: ${Re}px; /* Match TRACK_MARGIN */
426
425
  }
427
426
 
428
427
  #thumb {
@@ -437,14 +436,14 @@
437
436
  border-radius: 50%;
438
437
  box-sizing: border-box;
439
438
 
440
- background-color: var(--uui-interface-surface,#fefefe);
441
- border: 2px solid var(--uui-interface-select,#3544b1);
439
+ background-color: var(--uui-color-surface,#fff);
440
+ border: 2px solid var(--uui-color-selected,#3544b1);
442
441
 
443
442
  transition: 120ms left ease;
444
443
  }
445
444
  :host([disabled]) #thumb {
446
- background-color: var(--uui-interface-surface-disabled,rgb(228, 228, 228));
447
- border-color: var(--uui-interface-select-disabled,rgb(87, 87, 87));
445
+ background-color: var(--uui-color-disabled,#f3f3f5);
446
+ border-color: var(--uui-color-disabled-standalone,rgb(226, 226, 226));
448
447
  }
449
448
 
450
449
  #thumb:after {
@@ -455,10 +454,10 @@
455
454
  height: 9px;
456
455
  width: 9px;
457
456
  border-radius: 50%;
458
- background-color: var(--uui-interface-select,#3544b1);
457
+ background-color: var(--uui-color-selected,#3544b1);
459
458
  }
460
459
  :host([disabled]) #thumb:after {
461
- background-color: var(--uui-interface-select-disabled,rgb(87, 87, 87));
460
+ background-color: var(--uui-color-disabled,#f3f3f5);
462
461
  }
463
462
 
464
463
  #thumb-label {
@@ -472,7 +471,7 @@
472
471
  text-align: center;
473
472
  opacity: 0;
474
473
  transition: 120ms opacity;
475
- color: var(--uui-interface-select,#3544b1);
474
+ color: var(--uui-color-selected,#3544b1);
476
475
  }
477
476
 
478
477
  input:focus ~ #track #thumb-label,
@@ -481,7 +480,7 @@
481
480
  }
482
481
 
483
482
  #step-values {
484
- margin: 0 ${Me}px; /* Match TRACK_MARGIN */
483
+ margin: 0 ${Re}px; /* Match TRACK_MARGIN */
485
484
  margin-top: 6px;
486
485
  display: flex;
487
486
  align-items: flex-end;
@@ -491,7 +490,7 @@
491
490
  #step-values > span {
492
491
  flex-basis: 0;
493
492
  flex-grow: 1;
494
- color: var(--uui-interface-contrast-disabled,rgb(115, 113, 110));
493
+ color: var(--uui-color-disabled-contrast,#c4c4c4);
495
494
  }
496
495
 
497
496
  #step-values > span > span {
@@ -507,11 +506,11 @@
507
506
  }
508
507
 
509
508
  :host(:not([pristine]):invalid) #thumb {
510
- border-color: var(--uui-look-danger-border,#d42054);
509
+ border-color: var(--uui-color-danger-standalone,rgb(191, 33, 78));
511
510
  }
512
511
  :host(:not([pristine]):invalid) #thumb:after {
513
- background-color: var(--uui-look-danger-surface,#d42054);
512
+ background-color: var(--uui-color-danger,#d42054);
514
513
  }
515
- `],k([l({type:Boolean,attribute:"hide-step-values"})],n.UUISliderElement.prototype,"hideStepValues",2),k([l({type:Number})],n.UUISliderElement.prototype,"min",2),k([l({type:Number})],n.UUISliderElement.prototype,"max",2),k([l({type:Number})],n.UUISliderElement.prototype,"step",2),k([l({type:String})],n.UUISliderElement.prototype,"value",1),k([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"disabled",2),k([l({type:String})],n.UUISliderElement.prototype,"label",2),k([C("#input")],n.UUISliderElement.prototype,"_input",2),k([C("#track")],n.UUISliderElement.prototype,"_track",2),k([g()],n.UUISliderElement.prototype,"_stepWidth",2),k([g()],n.UUISliderElement.prototype,"_steps",2),k([g()],n.UUISliderElement.prototype,"_sliderPosition",2),n.UUISliderElement=k([c("uui-slider")],n.UUISliderElement);var fl=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,$r=(t,e,r,o)=>{for(var i=o>1?void 0:o?ml(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&fl(e,r,i),i};n.UUISymbolExpandElement=class extends h{constructor(){super(...arguments);this.open=!1}render(){return u`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUISymbolExpandElement.styles=[d`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform:rotate(-90deg);transform-origin:50% 50%;transition:transform 120ms ease-in-out}:host([open]) svg{transform:rotate(0)}`],$r([l({type:Boolean,reflect:!0})],n.UUISymbolExpandElement.prototype,"open",2),n.UUISymbolExpandElement=$r([c("uui-symbol-expand")],n.UUISymbolExpandElement);var gl=Object.defineProperty,_l=Object.getOwnPropertyDescriptor,Ir=(t,e,r,o)=>{for(var i=o>1?void 0:o?_l(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&gl(e,r,i),i};n.UUISymbolFileElement=class extends h{constructor(){super(...arguments);this.type=""}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg> ${this.type?u`<span id="file-type">${this.type.toUpperCase()}</span>`:""}`}},n.UUISymbolFileElement.styles=[d`:host{position:relative;display:block}#file-type{position:absolute;bottom:24%;left:25.5%;margin-left:calc(var(--uui-size-3,9px) * -1);padding:0 var(--uui-size-3,9px);font-weight:700;color:var(--uui-color-gunmetal,#162335);background-color:var(--uui-color-spanish-pink,#f5c1bc);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#icon{fill:var(--uui-interface-border,#c4c4c4)}`],Ir([l({type:String})],n.UUISymbolFileElement.prototype,"type",2),n.UUISymbolFileElement=Ir([c("uui-symbol-file")],n.UUISymbolFileElement);var yl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor,xr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ul(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&yl(e,r,i),i};n.UUISymbolFileDropzoneElement=class extends h{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=[d`:host{display:flex;flex-direction:column;align-items:center;justify-content:center}#upload-icon{fill:var(--uui-color-primary,#3544b1);width:100px;transition:fill .3s ease;position:relative;z-index:2}:host([error]) #upload-icon{fill:var(--uui-color-danger,#d42054)}`],xr([l({type:Boolean,reflect:!0})],n.UUISymbolFileDropzoneElement.prototype,"error",2),n.UUISymbolFileDropzoneElement=xr([c("uui-symbol-file-dropzone")],n.UUISymbolFileDropzoneElement);var wl=Object.defineProperty,El=Object.getOwnPropertyDescriptor,Xt=(t,e,r,o)=>{for(var i=o>1?void 0:o?El(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&wl(e,r,i),i};n.UUISymbolFileThumbnailElement=class extends h{constructor(){super(...arguments);this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),U(this,"uui-icon")}render(){return this.src?u`<img src="${this.src}" alt="${this.alt}">`:u`<uui-icon name="picture" .fallback="${an.strings[0]}"></uui-icon>`}},n.UUISymbolFileThumbnailElement.styles=[d`: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-white,#fefefe);background:var(--uui-color-white-dimmed,#e4e4e4)}`],Xt([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"src",2),Xt([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"alt",2),n.UUISymbolFileThumbnailElement=Xt([c("uui-symbol-file-thumbnail")],n.UUISymbolFileThumbnailElement);var $l=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,xl=(t,e,r,o)=>{for(var i=o>1?void 0:o?Il(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&$l(e,r,i),i};n.UUISymbolFolderElement=class extends h{render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M450.962 169.833v-19.248c0-23.398-19.035-42.436-42.434-42.436H257.306c-5.885-16.926-21.99-29.1-40.885-29.1h-89.758c-20.545 0-37.795 14.391-42.191 33.623-13.891 7.016-23.486 21.45-23.486 37.912V169.897c-7.148 7.774-11.443 18.122-11.443 29.287v.956l.062.953c.045.704 4.639 70.713 5.469 95.492l3.137 93.62c.033 6.024.682 14.788 5.271 23.301 6.564 12.175 19.002 19.442 33.273 19.442h318.49c14.273 0 26.713-7.268 33.275-19.445 4.588-8.512 5.236-17.275 5.271-23.298l3.135-93.62c.832-24.782 5.424-94.788 5.471-95.492l.061-.953v-.956c0-11.203-4.314-21.574-11.496-29.351zM90.093 150.585c0-7.281 5.84-13.189 13.09-13.318h-.125c5.324 0 9.441-9.694 9.441-13.382l-.006-1.562c0-7.824 6.344-14.168 14.17-14.168h89.758c7.826 0 14.166 6.344 14.166 14.168v1.562c0 3.663 4.062 13.239 9.332 13.37h168.609c7.363 0 13.328 5.969 13.328 13.33v9.201H90.093v-9.201zm337.744 145.028c-.854 25.538-3.15 94.062-3.15 94.062 0 7.825-1.617 14.171-9.441 14.171H96.755c-7.822 0-9.439-6.346-9.439-14.171l-3.152-94.062c-.855-25.538-5.516-96.428-5.516-96.428 0-6.893 4.926-12.631 11.445-13.9l331.764-.009c6.547 1.251 11.494 6.998 11.494 13.909 0 .001-4.657 70.89-5.514 96.428z"/></svg>`}},n.UUISymbolFolderElement.styles=[d`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-interface-border,#d3d3d3)}`],n.UUISymbolFolderElement=xl([c("uui-symbol-folder")],n.UUISymbolFolderElement);var Cl=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,Cr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Pl(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Cl(e,r,i),i};n.UUISymbolLockElement=class extends h{constructor(){super(...arguments);this.open=!1}render(){return m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?m`<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>`:m`<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=[d`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],Cr([l({type:Boolean,reflect:!0})],n.UUISymbolLockElement.prototype,"open",2),n.UUISymbolLockElement=Cr([c("uui-symbol-lock")],n.UUISymbolLockElement);var kl=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,zl=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ol(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&kl(e,r,i),i};n.UUISymbolMoreElement=class extends h{render(){return u`•••`}},n.UUISymbolMoreElement.styles=[d`:host{display:inline-block;font-size:.8em;vertical-align:top;margin-top:.27em;line-height:1em;user-select:none}`],n.UUISymbolMoreElement=zl([c("uui-symbol-more")],n.UUISymbolMoreElement);var Sl=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,Pr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Al(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Sl(e,r,i),i};n.UUISymbolSortElement=class extends Ge(h){constructor(){super(...arguments);this.descending=!1}render(){return u`<svg id="up" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg> <svg id="down" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUISymbolSortElement.styles=[d`:host{position:relative;display:inline-block;width:.8em;height:1em;vertical-align:middle;pointer-events:none}svg{position:absolute;left:0;top:50%;width:.8em;fill:currentColor;transform-origin:50% 50%;transition:transform 120ms ease-in-out,opacity 120ms,margin-top 240ms;opacity:0;margin-top:-.5em}#up{transform:rotate(180deg);margin-top:-.7em}#down{margin-top:-.3em}:host([active]) #up{margin-top:calc(-.5em - (.2em * var(--uui-symbol-sort-hover,0)))}:host([active]) #down{margin-top:calc(-.5em + (.2em * 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))}`],Pr([l({type:Boolean,reflect:!0})],n.UUISymbolSortElement.prototype,"descending",2),n.UUISymbolSortElement=Pr([c("uui-symbol-sort")],n.UUISymbolSortElement);var Dl=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor,Tl=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ll(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Dl(e,r,i),i};n.UUITableElement=class extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return u`<slot></slot>`}},n.UUITableElement.styles=[d`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-interface-surface,#fefefe);cursor:default}`],n.UUITableElement=Tl([c("uui-table")],n.UUITableElement);var Nl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,vt=(t,e,r,o)=>{for(var i=o>1?void 0:o?Bl(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Nl(e,r,i),i};n.UUITableCellElement=class extends h{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(t){super.updated(t),t.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return u`<slot @slotchange="${this._detectOverflow}"></slot>`}},n.UUITableCellElement.styles=[d`:host{display: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-interface-border,#c4c4c4);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}`],vt([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],n.UUITableCellElement.prototype,"disableChildInteraction",2),vt([l({type:Boolean,reflect:!0,attribute:"no-padding"})],n.UUITableCellElement.prototype,"noPadding",2),vt([l({type:Boolean,reflect:!0,attribute:"clip-text"})],n.UUITableCellElement.prototype,"clipText",2),n.UUITableCellElement=vt([c("uui-table-cell")],n.UUITableCellElement);var Hl=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,Ml=(t,e,r,o)=>{for(var i=o>1?void 0:o?jl(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Hl(e,r,i),i};n.UUITableColumnElement=class extends h{},n.UUITableColumnElement.styles=[d`:host{display:table-column}`],n.UUITableColumnElement=Ml([c("uui-table-column")],n.UUITableColumnElement);var Rl=Object.defineProperty,Fl=Object.getOwnPropertyDescriptor,Vl=(t,e,r,o)=>{for(var i=o>1?void 0:o?Fl(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Rl(e,r,i),i};n.UUITableHeadCellElement=class extends n.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},n.UUITableHeadCellElement.styles=[...n.UUITableCellElement.styles,d`:host{border-top:none}`],n.UUITableHeadCellElement=Vl([c("uui-table-head-cell")],n.UUITableHeadCellElement);var Gl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Wl=(t,e,r,o)=>{for(var i=o>1?void 0:o?ql(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Gl(e,r,i),i};n.UUITableHeadElement=class extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return u`<slot></slot>`}},n.UUITableHeadElement.styles=[d`:host{display:table-header-group;font-weight:700}`],n.UUITableHeadElement=Wl([c("uui-table-head")],n.UUITableHeadElement);var Kl=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,kr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Yl(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Kl(e,r,i),i};n.UUITableRowElement=class extends qe(Le(h)){connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(t){t.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(t=>{this.elementIsTableCell(t)&&(t.disableChildInteraction=this.selectOnly)})}elementIsTableCell(t){return t instanceof n.UUITableCellElement}render(){return u`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},n.UUITableRowElement.styles=[d`:host{display:table-row;position:relative}:host([selectable]){cursor:pointer}:host([selected]){outline:2px solid var(--uui-interface-select,#3544b1);outline-offset:-3px}`],kr([W({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],n.UUITableRowElement.prototype,"slotCellNodes",2),n.UUITableRowElement=kr([c("uui-table-row")],n.UUITableRowElement);var Xl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,Or=(t,e,r,o)=>{for(var i=o>1?void 0:o?Zl(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Xl(e,r,i),i};n.UUITabElement=class extends Ge(De("",h)){constructor(){super();this.disabled=!1,this.addEventListener("click",this.onHostClick)}onHostClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}render(){return u`<button type="button" ?disabled="${this.disabled}" role="tab">${this.renderLabel()}</button>`}},n.UUITabElement.styles=[d`:host{color:var(--uui-tab-text,var(--uui-interface-contrast,#060606));font-family:inherit}button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);border:none;box-sizing:border-box;min-height:32px;font-size:inherit;height:100%;min-width:75px;background:0 0;color:inherit;cursor:pointer;font-family:inherit}:host(:not([active]):not([disabled])) button:hover{color:var(--uui-tab-text-hover,var(--uui-look-primary-surface-hover,#fff))}:host(:not([active]):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]) button{color:var(--uui-tab-text-active,var(--uui-look-primary-surface-hover,#fff));cursor:default}:host([disabled]) button{color:var(--uui-interface-contrast-disabled,#73716e);cursor:default}button::before{content:'';position:absolute;height:0;width:calc(100% - 16px);left:auto;right:auto;background-color:var(--uui-interface-active,#f5c1bc);bottom:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}button:hover::before{background-color:var(--uui-interface-active-hover,#f5c1bc)}:host([active]) button::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}:host([disabled]) button::before{background-color:var(--uui-interface-active-disabled,#dbd4d4)}::slotted(uui-icon){margin-bottom:var(--uui-size-2,6px)}`],Or([l({type:Boolean,reflect:!0})],n.UUITabElement.prototype,"disabled",2),n.UUITabElement=Or([c("uui-tab")],n.UUITabElement);var Ql=Object.defineProperty,Jl=Object.getOwnPropertyDescriptor,zr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Jl(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&Ql(e,r,i),i};n.UUITabGroupElement=class extends h{constructor(){super(...arguments);this.tabElements=[],this.onTabActive=t=>{const e=t.currentTarget;this.elementIsTabLike(e)&&(e.active=!0),this.tabElements.filter(o=>o!==e).forEach(o=>{this.elementIsTabLike(o)&&(o.active=!1)})}}setTabArray(){this.tabElements=this.slotNodes?this.slotNodes:[]}onSlotChange(){this.tabElements.forEach(t=>{t.removeEventListener("click",this.onTabActive)}),this.setTabArray(),this.tabElements.forEach(t=>{t.addEventListener("click",this.onTabActive)})}elementIsTabLike(t){return t instanceof n.UUITabElement||"active"in t}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tablist")}render(){return u`<slot @slotchange="${this.onSlotChange}"></slot>`}},n.UUITabGroupElement.styles=[d`:host{display:flex;flex-wrap:wrap;color:var(--uui-tab-text);background:var(--uui-tab-background,none);height:100%;min-height:48px}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}`],zr([W({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],n.UUITabGroupElement.prototype,"slotNodes",2),n.UUITabGroupElement=zr([c("uui-tab-group")],n.UUITabGroupElement);class eu extends x{}class tu extends x{}var iu=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,Sr=(t,e,r,o)=>{for(var i=o>1?void 0:o?ru(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&iu(e,r,i),i};n.UUITagElement=class extends h{constructor(){super(...arguments);this.look=zt}render(){return u`<slot></slot>`}},n.UUITagElement.styles=[d`: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-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em);border-radius:100px;background-color:var(--uui-interface-surface-alt,#d8d7d9);color:var(--uui-interface-contrast,#060606);user-select:none}slot{display:flex;align-items:center;justify-content:center;margin:2px}:host([look=primary]){background-color:var(--uui-look-primary-surface,#1b264f);color:var(--uui-look-primary-contrast,#fefefe)}:host([look=secondary]){background-color:var(--uui-look-secondary-surface,#e2dad4);color:var(--uui-look-secondary-contrast,#1b264f)}:host([look=outline]){background-color:var(--uui-look-outline-surface,transparent);color:var(--uui-look-outline-contrast,#1b264f);border:1px solid var(--uui-look-outline-border,#1b264f)}:host([look=placeholder]){background-color:var(--uui-look-placeholder-surface,transparent);color:var(--uui-look-placeholder-contrast,#1b264f);border:1px dashed var(--uui-look-placeholder-border,#1b264f)}:host([look=positive]){background-color:var(--uui-look-positive-surface,#25aa60);color:var(--uui-look-positive-contrast,#fefefe)}:host([look=warning]){background-color:var(--uui-look-warning-surface,#fad634);color:var(--uui-look-warning-contrast,#060606)}:host([look=danger]){background-color:var(--uui-look-danger-surface,#d42054);color:var(--uui-look-danger-contrast,#fefefe)}`],Sr([l({reflect:!0})],n.UUITagElement.prototype,"look",2),n.UUITagElement=Sr([c("uui-tag")],n.UUITagElement);class Re extends x{}Re.CHANGE="change",Re.INPUT="input";var ou=Object.defineProperty,nu=Object.getOwnPropertyDescriptor,O=(t,e,r,o)=>{for(var i=o>1?void 0:o?nu(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&ou(e,r,i),i};n.UUITextareaElement=class extends j(h){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)}focus(){var t;(t=this._textarea)==null||t.focus()}getFormElement(){return this._textarea}onInput(t){this.value=t.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(){this.pristine=!1,this.dispatchEvent(new Re(Re.CHANGE))}autoUpdateHeight(){const t=this.shadowRoot.host,e=this._textarea,r=t.scrollTop,o=getComputedStyle(t).height;t.style.display="block",t.style.height=o,e.style.height="auto",e.scrollHeight>e.clientHeight&&(e.style.height=e.scrollHeight+"px"),t.style.removeProperty("display"),t.style.removeProperty("height"),t.scrollTop=r}render(){return u`<textarea id="textarea" .value="${this.value}" .name="${this.name}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
516
- </textarea>`}},n.UUITextareaElement.formAssociated=!0,n.UUITextareaElement.styles=[d`:host{position:relative}:host([error]) textarea{border:1px solid var(--uui-look-danger-border,#d42054)!important}:host([error]) textarea[disabled]{border:1px solid var(--uui-look-danger-border,#d42054)!important}: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-input-border-color-readonly,var(--uui-interface-border-readonly,#dedede))}textarea[disabled]{cursor:not-allowed;background-color:var(--uui-textarea-background-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));border-color:var(--uui-textarea-border-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));color:var(--uui-interface-contrast-disabled,#73716e)}textarea{font-family:inherit;box-sizing:border-box;min-width:100%;max-width:100%;font-size:var(--uui-size-5,15px);padding:var(--uui-size-2,6px);border:1px solid var(--uui-textarea-border-color,var(--uui-interface-border,#c4c4c4));border-radius:0;outline:0;min-height:var(--uui-textarea-min-height);max-height:var(--uui-textarea-max-height)}:host(:focus) textarea,:host(:hover) textarea:not([readonly]):not([disabled]) :host(:focus-within) textarea{border-color:var(--uui-textarea-border-color,var(--uui-interface-border-focus,#b3b3b3))}textarea::placeholder{transition:opacity 120ms}:host(:not([readonly])) textarea:focus::placeholder{opacity:0}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-interface-outline,#3879ff)}`],O([l()],n.UUITextareaElement.prototype,"placeholder",2),O([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"disabled",2),O([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"readonly",2),O([l({type:String})],n.UUITextareaElement.prototype,"name",2),O([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"error",2),O([l({type:Number})],n.UUITextareaElement.prototype,"minlength",2),O([l({type:String,attribute:"minlength-message"})],n.UUITextareaElement.prototype,"minlengthMessage",2),O([l({type:Number})],n.UUITextareaElement.prototype,"maxlength",2),O([l({type:String,attribute:"maxlength-message"})],n.UUITextareaElement.prototype,"maxlengthMessage",2),O([C("#textarea")],n.UUITextareaElement.prototype,"_textarea",2),O([l({type:Boolean,attribute:"auto-height",reflect:!0})],n.UUITextareaElement.prototype,"autoHeight",2),O([l({type:String})],n.UUITextareaElement.prototype,"label",2),n.UUITextareaElement=O([c("uui-textarea")],n.UUITextareaElement);class P extends x{}P.OPENING="opening",P.OPENED="opened",P.CLOSING="closing",P.CLOSED="closed";var su=Object.defineProperty,au=Object.getOwnPropertyDescriptor,$e=(t,e,r,o)=>{for(var i=o>1?void 0:o?au(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&su(e,r,i),i};n.UUIToastNotificationElement=class extends h{constructor(){super();this.look=zt,this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._animate=!1,this._open=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",t=>{t.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,t!==null?(this._timer===null?this._timer=new on(this._onOpenTimerComplete,t):this._timer.setDuration(t),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):((e=this._timer)==null||e.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(t){t===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),U(this,"uui-button"),U(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 P(P.OPENING)),this._animationTimeout=window.setTimeout(()=>{var t;this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&((t=this._timer)==null||t.start()),this.dispatchEvent(new P(P.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){var t;if(this._open===!1)return;const e=new P(P.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,(t=this._timer)==null||t.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 P(P.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"}" .look="${this.look}" @click="${()=>this.open=!1}"><uui-icon name="remove" .fallback="${Ji.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},n.UUIToastNotificationElement.styles=[Ye,d`: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-interface-surface,#fefefe);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([look=primary]) #toast>div{background-color:var(--uui-look-primary-surface,#1b264f);color:var(--uui-look-primary-contrast,#fefefe)}:host([look=positive]) #toast>div{background-color:var(--uui-look-positive-surface,#25aa60);color:var(--uui-look-positive-contrast,#fefefe)}:host([look=warning]) #toast>div{background-color:var(--uui-look-warning-surface,#fad634);color:var(--uui-look-warning-contrast,#060606);border-color:var(--uui-look-warning-border,#fad634)}:host([look=danger]) #toast>div{background-color:var(--uui-look-danger-surface,#d42054);color:var(--uui-look-danger-contrast,#fefefe);border-color:var(--uui-look-danger-border,#d42054)}`],$e([l({reflect:!0})],n.UUIToastNotificationElement.prototype,"look",2),$e([l({type:Number})],n.UUIToastNotificationElement.prototype,"autoClose",1),$e([C("#toast")],n.UUIToastNotificationElement.prototype,"_toastEl",2),$e([g()],n.UUIToastNotificationElement.prototype,"_animate",2),$e([l({type:Boolean,reflect:!0})],n.UUIToastNotificationElement.prototype,"open",1),n.UUIToastNotificationElement=$e([c("uui-toast-notification")],n.UUIToastNotificationElement);var lu=Object.defineProperty,uu=Object.getOwnPropertyDescriptor,Ar=(t,e,r,o)=>{for(var i=o>1?void 0:o?uu(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&lu(e,r,i),i};n.UUIToastNotificationContainerElement=class extends h{constructor(){super(...arguments);this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{var t;this._autoClosePause=!0,(t=this._toasts)==null||t.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{var t;this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,(t=this._toasts)==null||t.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=t=>{this.removeToast(t.target)},this._toasts=[],this.onSlotChanged=t=>{const e=[...this._toasts];this._toasts=t.target.assignedElements({flatten:!0}).filter(i=>i.nodeName==="UUI-TOAST-NOTIFICATION"),e.filter(i=>this._toasts.indexOf(i)===-1).forEach(i=>{i.removeEventListener(P.CLOSED,this.onToastClosed),i.removeEventListener("mouseenter",this.pauseAutoClose),i.removeEventListener("mouseleave",this.resumeAutoClose),i.removeEventListener("focus",this.pauseAutoClose),i.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(i=>e.indexOf(i)===-1).forEach(i=>{i.addEventListener(P.CLOSED,this.onToastClosed),i.addEventListener("mouseenter",this.pauseAutoClose),i.addEventListener("mouseleave",this.resumeAutoClose),i.addEventListener("focus",this.pauseAutoClose),i.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(i.autoClose=this._autoClose),this._autoClosePause===!0&&i.pauseAutoClose(),i.open=!0})}}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,(e=this._toasts)==null||e.forEach(r=>r.autoClose=t)}removeToast(t){if(!t)t=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(t)===-1){console.warn("Toast-notification",t,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(t)}closeToast(t){let e=t;e||(e=this._toasts[this._toasts.length-1]),e.open=!1}render(){return u`<slot @slotchange="${this.onSlotChanged}"></slot>`}},n.UUIToastNotificationContainerElement.styles=[d`: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}`],Ar([l({type:Number,reflect:!0,attribute:"auto-close"})],n.UUIToastNotificationContainerElement.prototype,"_autoClose",2),n.UUIToastNotificationContainerElement=Ar([c("uui-toast-notification-container")],n.UUIToastNotificationContainerElement);var cu=Object.defineProperty,du=Object.getOwnPropertyDescriptor,Zt=(t,e,r,o)=>{for(var i=o>1?void 0:o?du(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&cu(e,r,i),i};n.UUIToastNotificationLayoutElement=class extends h{constructor(){super(...arguments);this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.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=[Ye,d`#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)}`],Zt([l({type:String})],n.UUIToastNotificationLayoutElement.prototype,"headline",2),Zt([g()],n.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIToastNotificationLayoutElement=Zt([c("uui-toast-notification-layout")],n.UUIToastNotificationLayoutElement);var hu=Object.defineProperty,pu=Object.getOwnPropertyDescriptor,vu=(t,e,r,o)=>{for(var i=o>1?void 0:o?pu(e,r):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&hu(e,r,i),i};n.UUIToggleElement=class extends D{constructor(){super("switch")}renderCheckbox(){return u`<div id="slider"><div id="icon-check">${St}</div><div id="icon-wrong">${er}</div></div>`}},n.UUIToggleElement.formAssociated=!0,n.UUIToggleElement.styles=[...D.styles,Ze,d`: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;width:var(--uui-toggle-switch-width);height:var(--uui-toggle-size);border-radius:100px;background-color:var(--uui-toggle-background-color,var(--uui-interface-surface-alt,#d8d7d9));border:1px solid var(--uui-toggle-border-color,var(--uui-interface-border,#c4c4c4));font-size:calc(var(--uui-toggle-size) * .6)}label:hover input:not([disabled])~#slider{border-color:var(--uui-toggle-border-color-hover,var(--uui-interface-border-hover,#b3b3b3));background-color:var(--uui-toggle-background-color-hover,var(--uui-interface-surface-alt-hover,#c8c8c8))}label:focus #slider{border-color:var(--uui-toggle-border-color-focus,var(--uui-interface-border-focus,#b3b3b3));background-color:var(--uui-toggle-background-color-focus,var(--uui-interface-surface-alt-focus,#d8d7d9))}input:checked~#slider{background-color:var(--uui-interface-select,#3544b1)}label:hover input:checked:not([disabled])~#slider{background-color:var(--uui-interface-select-hover,#4656c8)}label:focus input:checked~#slider{background-color:var(--uui-interface-select-focus,#3544b1)}#icon-check,#icon-wrong{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms}#icon-check{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);fill:var(--uui-interface-contrast,#060606)}#icon-wrong{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);fill:var(--uui-interface-contrast,#060606)}input:checked~#slider #icon-check{fill:var(--uui-interface-select-contrast,#fefefe)}#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-interface-select-contrast,#fefefe);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-interface-outline,#3879ff)}:host(:not([disabled])) label:active #slider::after{width:calc(1.06 * var(--uui-toggle-size))}:host([disabled]) #slider{background-color:var(--uui-interface-surface-alt-disabled,#ccc)}:host([disabled]) input:checked~#slider{background-color:var(--uui-interface-select-disabled,#575757)}:host([disabled]) #slider::after{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]) #slider #icon-wrong{fill:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) label:active #slider{animation:${Qe}}:host([disabled]) input:checked #slider #icon-check{fill:var(--uui-interface-select-contrast-disabled,#e4e4e4)}: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-look-danger-border,#d42054)}`],n.UUIToggleElement=vu([c("uui-toggle")],n.UUIToggleElement),n.UUIBooleanInputElement=D,n.UUIBooleanInputEvent=We,n.UUIButtonInlineCreateEvent=rt,n.UUICardEvent=me,n.UUIComboboxEvent=A,n.UUIComboboxListEvent=X,n.UUIIconHost=Ht,n.UUIIconRegistry=jt,n.UUIIconRegistryEssential=vr,n.UUIIconRequestEvent=_e,n.UUIInputEvent=ee,n.UUIMenuItemEvent=M,n.UUIPaginationEvent=V,n.UUIRadioEvent=we,n.UUIRadioGroupEvent=dt,n.UUIRefEvent=Ee,n.UUISelectEvent=pt,n.UUISliderEvent=ie,n.UUITabEvent=eu,n.UUITabGroupEvent=tu,n.UUITextStyles=Ye,n.UUITextareaEvent=Re,n.UUIToastNotificationEvent=P,Object.defineProperty(n,"__esModule",{value:!0})});
514
+ `],z([l({type:Boolean,attribute:"hide-step-values"})],n.UUISliderElement.prototype,"hideStepValues",2),z([l({type:Number})],n.UUISliderElement.prototype,"min",2),z([l({type:Number})],n.UUISliderElement.prototype,"max",2),z([l({type:Number})],n.UUISliderElement.prototype,"step",2),z([l({type:String})],n.UUISliderElement.prototype,"value",1),z([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"disabled",2),z([l({type:String})],n.UUISliderElement.prototype,"label",2),z([x("#input")],n.UUISliderElement.prototype,"_input",2),z([x("#track")],n.UUISliderElement.prototype,"_track",2),z([f()],n.UUISliderElement.prototype,"_stepWidth",2),z([f()],n.UUISliderElement.prototype,"_steps",2),z([f()],n.UUISliderElement.prototype,"_sliderPosition",2),n.UUISliderElement=z([u("uui-slider")],n.UUISliderElement);var ml=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,ko=(t,e,i,r)=>{for(var o=r>1?void 0:r?vl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&ml(e,i,o),o};n.UUISymbolExpandElement=class extends h{constructor(){super(...arguments),this.open=!1}render(){return c`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUISymbolExpandElement.styles=[d`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform:rotate(-90deg);transform-origin:50% 50%;transition:transform 120ms ease-in-out;width:100%;height:100%}:host([open]) svg{transform:rotate(0)}`],ko([l({type:Boolean,reflect:!0})],n.UUISymbolExpandElement.prototype,"open",2),n.UUISymbolExpandElement=ko([u("uui-symbol-expand")],n.UUISymbolExpandElement);var gl=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,xo=(t,e,i,r)=>{for(var o=r>1?void 0:r?fl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&gl(e,i,o),o};n.UUISymbolFileElement=class extends h{constructor(){super(...arguments),this.type=""}render(){return c`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg> ${this.type?c`<span id="file-type">${this.type.toUpperCase()}</span>`:""}`}},n.UUISymbolFileElement.styles=[d`:host{position:relative;display:block}#file-type{position:absolute;bottom:24%;left:25.5%;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}#icon{fill:var(--uui-color-border-standalone,#c2c2c2)}`],xo([l({type:String})],n.UUISymbolFileElement.prototype,"type",2),n.UUISymbolFileElement=xo([u("uui-symbol-file")],n.UUISymbolFileElement);var yl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor,Co=(t,e,i,r)=>{for(var o=r>1?void 0:r?Ul(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&yl(e,i,o),o};n.UUISymbolFileDropzoneElement=class extends h{constructor(){super(...arguments),this.error=!1}render(){return c`<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=[d`: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)}`],Co([l({type:Boolean,reflect:!0})],n.UUISymbolFileDropzoneElement.prototype,"error",2),n.UUISymbolFileDropzoneElement=Co([u("uui-symbol-file-dropzone")],n.UUISymbolFileDropzoneElement);var _l=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,Zt=(t,e,i,r)=>{for(var o=r>1?void 0:r?wl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&_l(e,i,o),o};n.UUISymbolFileThumbnailElement=class extends h{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),U(this,"uui-icon")}render(){return this.src?c`<img src="${this.src}" alt="${this.alt}">`:c`<uui-icon name="picture" .fallback="${sn.strings[0]}"></uui-icon>`}},n.UUISymbolFileThumbnailElement.styles=[d`: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)}`],Zt([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"src",2),Zt([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"alt",2),n.UUISymbolFileThumbnailElement=Zt([u("uui-symbol-file-thumbnail")],n.UUISymbolFileThumbnailElement);var El=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,Il=(t,e,i,r)=>{for(var o=r>1?void 0:r?$l(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&El(e,i,o),o};n.UUISymbolFolderElement=class extends h{render(){return c`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M450.962 169.833v-19.248c0-23.398-19.035-42.436-42.434-42.436H257.306c-5.885-16.926-21.99-29.1-40.885-29.1h-89.758c-20.545 0-37.795 14.391-42.191 33.623-13.891 7.016-23.486 21.45-23.486 37.912V169.897c-7.148 7.774-11.443 18.122-11.443 29.287v.956l.062.953c.045.704 4.639 70.713 5.469 95.492l3.137 93.62c.033 6.024.682 14.788 5.271 23.301 6.564 12.175 19.002 19.442 33.273 19.442h318.49c14.273 0 26.713-7.268 33.275-19.445 4.588-8.512 5.236-17.275 5.271-23.298l3.135-93.62c.832-24.782 5.424-94.788 5.471-95.492l.061-.953v-.956c0-11.203-4.314-21.574-11.496-29.351zM90.093 150.585c0-7.281 5.84-13.189 13.09-13.318h-.125c5.324 0 9.441-9.694 9.441-13.382l-.006-1.562c0-7.824 6.344-14.168 14.17-14.168h89.758c7.826 0 14.166 6.344 14.166 14.168v1.562c0 3.663 4.062 13.239 9.332 13.37h168.609c7.363 0 13.328 5.969 13.328 13.33v9.201H90.093v-9.201zm337.744 145.028c-.854 25.538-3.15 94.062-3.15 94.062 0 7.825-1.617 14.171-9.441 14.171H96.755c-7.822 0-9.439-6.346-9.439-14.171l-3.152-94.062c-.855-25.538-5.516-96.428-5.516-96.428 0-6.893 4.926-12.631 11.445-13.9l331.764-.009c6.547 1.251 11.494 6.998 11.494 13.909 0 .001-4.657 70.89-5.514 96.428z"/></svg>`}},n.UUISymbolFolderElement.styles=[d`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-color-border,#d8d7d9)}`],n.UUISymbolFolderElement=Il([u("uui-symbol-folder")],n.UUISymbolFolderElement);var kl=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,zo=(t,e,i,r)=>{for(var o=r>1?void 0:r?xl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&kl(e,i,o),o};n.UUISymbolLockElement=class extends h{constructor(){super(...arguments),this.open=!1}render(){return g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?g`<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>`:g`<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=[d`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],zo([l({type:Boolean,reflect:!0})],n.UUISymbolLockElement.prototype,"open",2),n.UUISymbolLockElement=zo([u("uui-symbol-lock")],n.UUISymbolLockElement);var Cl=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Ol=(t,e,i,r)=>{for(var o=r>1?void 0:r?zl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Cl(e,i,o),o};n.UUISymbolMoreElement=class extends h{render(){return c`•••`}},n.UUISymbolMoreElement.styles=[d`:host{display:inline-block;font-size:.8em;vertical-align:top;margin-top:.27em;line-height:1em;user-select:none}`],n.UUISymbolMoreElement=Ol([u("uui-symbol-more")],n.UUISymbolMoreElement);var Pl=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,Oo=(t,e,i,r)=>{for(var o=r>1?void 0:r?Sl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Pl(e,i,o),o};n.UUISymbolSortElement=class extends Ke(h){constructor(){super(...arguments),this.descending=!1}render(){return c`<svg id="up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg> <svg id="down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUISymbolSortElement.styles=[d`:host{position:relative;display:inline-block;width:.8em;height:1em;vertical-align:middle;pointer-events:none}svg{position:absolute;left:0;top:50%;width:.8em;fill:currentColor;transform-origin:50% 50%;transition:transform 120ms ease-in-out,opacity 120ms,margin-top 240ms;opacity:0;margin-top:-.5em}#up{transform:rotate(180deg);margin-top:-.7em}#down{margin-top:-.3em}:host([active]) #up{margin-top:calc(-.5em - (.2em * var(--uui-symbol-sort-hover,0)))}:host([active]) #down{margin-top:calc(-.5em + (.2em * 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))}`],Oo([l({type:Boolean,reflect:!0})],n.UUISymbolSortElement.prototype,"descending",2),n.UUISymbolSortElement=Oo([u("uui-symbol-sort")],n.UUISymbolSortElement);var Al=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor,Tl=(t,e,i,r)=>{for(var o=r>1?void 0:r?Ll(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Al(e,i,o),o};n.UUITableElement=class extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return c`<slot></slot>`}},n.UUITableElement.styles=[d`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);cursor:default}`],n.UUITableElement=Tl([u("uui-table")],n.UUITableElement);var Nl=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,mt=(t,e,i,r)=>{for(var o=r>1?void 0:r?Dl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Nl(e,i,o),o};n.UUITableCellElement=class extends h{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(t){super.updated(t),t.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return c`<slot @slotchange="${this._detectOverflow}"></slot>`}},n.UUITableCellElement.styles=[d`: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}`],mt([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],n.UUITableCellElement.prototype,"disableChildInteraction",2),mt([l({type:Boolean,reflect:!0,attribute:"no-padding"})],n.UUITableCellElement.prototype,"noPadding",2),mt([l({type:Boolean,reflect:!0,attribute:"clip-text"})],n.UUITableCellElement.prototype,"clipText",2),n.UUITableCellElement=mt([u("uui-table-cell")],n.UUITableCellElement);var jl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,Hl=(t,e,i,r)=>{for(var o=r>1?void 0:r?Bl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&jl(e,i,o),o};n.UUITableColumnElement=class extends h{},n.UUITableColumnElement.styles=[d`:host{display:table-column}`],n.UUITableColumnElement=Hl([u("uui-table-column")],n.UUITableColumnElement);var Ml=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,Fl=(t,e,i,r)=>{for(var o=r>1?void 0:r?Rl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Ml(e,i,o),o};n.UUITableHeadCellElement=class extends n.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},n.UUITableHeadCellElement.styles=[...n.UUITableCellElement.styles,d`:host{border-top:none}`],n.UUITableHeadCellElement=Fl([u("uui-table-head-cell")],n.UUITableHeadCellElement);var Vl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,ql=(t,e,i,r)=>{for(var o=r>1?void 0:r?Gl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Vl(e,i,o),o};n.UUITableHeadElement=class extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return c`<slot></slot>`}},n.UUITableHeadElement.styles=[d`:host{display:table-header-group;font-weight:700}`],n.UUITableHeadElement=ql([u("uui-table-head")],n.UUITableHeadElement);var Kl=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,Po=(t,e,i,r)=>{for(var o=r>1?void 0:r?Wl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Kl(e,i,o),o};n.UUITableRowElement=class extends We(Ne(h)){constructor(){super();let t=!1;this.addEventListener("blur",()=>{t===!1&&this.style.setProperty("--uui-show-focus-outline","1"),t=!1}),this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),t=!0}),this.addEventListener("mouseup",()=>{t=!1})}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(t){t.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(t=>{this.elementIsTableCell(t)&&(t.disableChildInteraction=this.selectOnly)})}elementIsTableCell(t){return t instanceof n.UUITableCellElement}render(){return c`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},n.UUITableRowElement.styles=[d`: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)}`],Po([Y({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],n.UUITableRowElement.prototype,"slotCellNodes",2),n.UUITableRowElement=Po([u("uui-table-row")],n.UUITableRowElement);var Yl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,vt=(t,e,i,r)=>{for(var o=r>1?void 0:r?Zl(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Yl(e,i,o),o};n.UUITabElement=class extends Ke(Te("",h)){constructor(){super(),this.disabled=!1,this.addEventListener("click",this.onHostClick)}onHostClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}render(){return this.href?c`<a id="button" href="${T(this.disabled?void 0:this.href)}" target="${T(this.target||void 0)}" rel="${T(this.target==="_blank"?"noopener noreferrer":void 0)}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></a>`:c`<button type="button" id="button" ?disabled="${this.disabled}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></button>`}},n.UUITabElement.styles=[d`:host{color:var(--uui-tab-text,var(--uui-color-interactive,#1b264f));font-family:inherit}#button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);border:none;box-sizing:border-box;min-height:32px;font-size:inherit;height:100%;min-width:70px;background:0 0;color:inherit;cursor:pointer;font-family:inherit;text-decoration:none;line-height:normal}:host(:not([active]):not([disabled])) #button:hover{color:var(--uui-tab-text-hover,var(--uui-color-default-emphasis,#3544b1))}:host(:not([active]):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]) #button{cursor:default}:host([disabled]) #button{color:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button::before{content:'';position:absolute;height:0;width:calc(100% - 16px);left:auto;right:auto;background-color:var(--uui-color-current,#f5c1bc);bottom:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}#button:hover::before{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([active]) #button::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}: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)}`],vt([l({type:Boolean,reflect:!0})],n.UUITabElement.prototype,"disabled",2),vt([l({type:String})],n.UUITabElement.prototype,"href",2),vt([l({type:String})],n.UUITabElement.prototype,"target",2),n.UUITabElement=vt([u("uui-tab")],n.UUITabElement);var Xl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,So=(t,e,i,r)=>{for(var o=r>1?void 0:r?Ql(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&Xl(e,i,o),o};n.UUITabGroupElement=class extends h{constructor(){super(...arguments),this._tabElements=[],this._onTabActive=t=>{const e=t.currentTarget;this._elementIsTabLike(e)&&(e.active=!0),this._tabElements.filter(i=>i!==e).forEach(i=>{this._elementIsTabLike(i)&&(i.active=!1)})}}_setTabArray(){this._tabElements=this._slottedNodes?this._slottedNodes:[]}_onSlotChange(){this._tabElements.forEach(t=>{t.removeEventListener("click",this._onTabActive)}),this._setTabArray(),this._tabElements.forEach(t=>{t.addEventListener("click",this._onTabActive)})}_elementIsTabLike(t){return t instanceof n.UUITabElement||"active"in t}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tablist")}render(){return c`<slot @slotchange="${this._onSlotChange}"></slot>`}},n.UUITabGroupElement.styles=[d`:host{display:flex;flex-wrap:wrap;color:var(--uui-tab-text);background:var(--uui-tab-background,none);height:100%;min-height:48px}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}`],So([Y({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],n.UUITabGroupElement.prototype,"_slottedNodes",2),n.UUITabGroupElement=So([u("uui-tab-group")],n.UUITabGroupElement);class Jl extends k{}class ec extends k{}var tc=Object.defineProperty,ic=Object.getOwnPropertyDescriptor,Xt=(t,e,i,r)=>{for(var o=r>1?void 0:r?ic(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&tc(e,i,o),o};n.UUITagElement=class extends h{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return c`<slot></slot>`}},n.UUITagElement.styles=[d`: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-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em);border-radius:100px;user-select:none;border-radius:var(--uui-size-4,12px);border:1px solid 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,#25aa60);--color-standalone:var(--uui-color-positive-standalone,rgb(38, 156, 91));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fad634);--color-standalone:var(--uui-color-warning-standalone,rgb(224, 193, 51));--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)}`],Xt([l({reflect:!0})],n.UUITagElement.prototype,"color",2),Xt([l({reflect:!0})],n.UUITagElement.prototype,"look",2),n.UUITagElement=Xt([u("uui-tag")],n.UUITagElement);class Fe extends k{}Fe.CHANGE="change",Fe.INPUT="input";var oc=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,O=(t,e,i,r)=>{for(var o=r>1?void 0:r?rc(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&oc(e,i,o),o};n.UUITextareaElement=class extends R(h){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)}focus(){var t;(t=this._textarea)==null||t.focus()}getFormElement(){return this._textarea}onInput(t){this.value=t.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(){this.pristine=!1,this.dispatchEvent(new Fe(Fe.CHANGE))}autoUpdateHeight(){const t=this.shadowRoot.host,e=this._textarea,i=t.scrollTop,r=getComputedStyle(t).height;t.style.display="block",t.style.height=r,e.style.height="auto",e.scrollHeight>e.clientHeight&&(e.style.height=e.scrollHeight+"px"),t.style.removeProperty("display"),t.style.removeProperty("height"),t.scrollTop=i}render(){return c`<textarea id="textarea" .value="${this.value}" .name="${this.name}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
515
+ </textarea>`}},n.UUITextareaElement.formAssociated=!0,n.UUITextareaElement.styles=[d`:host{position:relative}:host([error]) textarea{border:1px solid var(--uui-color-danger,#d42054)!important}:host([error]) textarea[disabled]{border:1px solid var(--uui-color-danger,#d42054)!important}: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{font-family:inherit;box-sizing:border-box;min-width:100%;max-width:100%;font-size:var(--uui-size-5,15px);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)}: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::placeholder{transition:opacity 120ms}:host(:not([readonly])) textarea:focus::placeholder{opacity:0}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}`],O([l()],n.UUITextareaElement.prototype,"placeholder",2),O([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"disabled",2),O([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"readonly",2),O([l({type:String})],n.UUITextareaElement.prototype,"name",2),O([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"error",2),O([l({type:Number})],n.UUITextareaElement.prototype,"minlength",2),O([l({type:String,attribute:"minlength-message"})],n.UUITextareaElement.prototype,"minlengthMessage",2),O([l({type:Number})],n.UUITextareaElement.prototype,"maxlength",2),O([l({type:String,attribute:"maxlength-message"})],n.UUITextareaElement.prototype,"maxlengthMessage",2),O([x("#textarea")],n.UUITextareaElement.prototype,"_textarea",2),O([l({type:Boolean,attribute:"auto-height",reflect:!0})],n.UUITextareaElement.prototype,"autoHeight",2),O([l({type:String})],n.UUITextareaElement.prototype,"label",2),n.UUITextareaElement=O([u("uui-textarea")],n.UUITextareaElement);class C extends k{}C.OPENING="opening",C.OPENED="opened",C.CLOSING="closing",C.CLOSED="closed";var nc=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,Ie=(t,e,i,r)=>{for(var o=r>1?void 0:r?sc(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&nc(e,i,o),o};n.UUIToastNotificationElement=class extends h{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",t=>{t.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,t!==null?(this._timer===null?this._timer=new on(this._onOpenTimerComplete,t):this._timer.setDuration(t),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):((e=this._timer)==null||e.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(t){t===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),U(this,"uui-button"),U(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 C(C.OPENING)),this._animationTimeout=window.setTimeout(()=>{var t;this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&((t=this._timer)==null||t.start()),this.dispatchEvent(new C(C.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){var t;if(this._open===!1)return;const e=new C(C.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,(t=this._timer)==null||t.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 C(C.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return c`<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="${eo.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},n.UUIToastNotificationElement.styles=[Xe,d`: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=primary]) #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,#25aa60);color:var(--uui-color-positive-contrast,#fff);border-color:var(--uui-color-positive-standalone,#269c5b)}:host([color=warning]) #toast>div{background-color:var(--uui-color-warning,#fad634);color:var(--uui-color-warning-contrast,#000);border-color:var(--uui-color-warning-standalone,#e0c133)}: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)}`],Ie([l({reflect:!0})],n.UUIToastNotificationElement.prototype,"color",2),Ie([l({type:Number})],n.UUIToastNotificationElement.prototype,"autoClose",1),Ie([x("#toast")],n.UUIToastNotificationElement.prototype,"_toastEl",2),Ie([f()],n.UUIToastNotificationElement.prototype,"_animate",2),Ie([l({type:Boolean,reflect:!0})],n.UUIToastNotificationElement.prototype,"open",1),n.UUIToastNotificationElement=Ie([u("uui-toast-notification")],n.UUIToastNotificationElement);var ac=Object.defineProperty,lc=Object.getOwnPropertyDescriptor,Ao=(t,e,i,r)=>{for(var o=r>1?void 0:r?lc(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&ac(e,i,o),o};n.UUIToastNotificationContainerElement=class extends h{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{var t;this._autoClosePause=!0,(t=this._toasts)==null||t.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{var t;this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,(t=this._toasts)==null||t.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=t=>{this.removeToast(t.target)},this._toasts=[],this.onSlotChanged=t=>{const e=[...this._toasts];this._toasts=t.target.assignedElements({flatten:!0}).filter(i=>i.nodeName==="UUI-TOAST-NOTIFICATION"),e.filter(i=>this._toasts.indexOf(i)===-1).forEach(i=>{i.removeEventListener(C.CLOSED,this.onToastClosed),i.removeEventListener("mouseenter",this.pauseAutoClose),i.removeEventListener("mouseleave",this.resumeAutoClose),i.removeEventListener("focus",this.pauseAutoClose),i.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(i=>e.indexOf(i)===-1).forEach(i=>{i.addEventListener(C.CLOSED,this.onToastClosed),i.addEventListener("mouseenter",this.pauseAutoClose),i.addEventListener("mouseleave",this.resumeAutoClose),i.addEventListener("focus",this.pauseAutoClose),i.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(i.autoClose=this._autoClose),this._autoClosePause===!0&&i.pauseAutoClose(),i.open=!0})}}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,(e=this._toasts)==null||e.forEach(i=>i.autoClose=t)}removeToast(t){if(!t)t=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(t)===-1){console.warn("Toast-notification",t,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(t)}closeToast(t){let e=t;e||(e=this._toasts[this._toasts.length-1]),e.open=!1}render(){return c`<slot @slotchange="${this.onSlotChanged}"></slot>`}},n.UUIToastNotificationContainerElement.styles=[d`: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}`],Ao([l({type:Number,reflect:!0,attribute:"auto-close"})],n.UUIToastNotificationContainerElement.prototype,"_autoClose",2),n.UUIToastNotificationContainerElement=Ao([u("uui-toast-notification-container")],n.UUIToastNotificationContainerElement);var cc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,Qt=(t,e,i,r)=>{for(var o=r>1?void 0:r?uc(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&cc(e,i,o),o};n.UUIToastNotificationLayoutElement=class extends h{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}render(){return c`<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=[Xe,d`#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)}`],Qt([l({type:String})],n.UUIToastNotificationLayoutElement.prototype,"headline",2),Qt([f()],n.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIToastNotificationLayoutElement=Qt([u("uui-toast-notification-layout")],n.UUIToastNotificationLayoutElement);var dc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,pc=(t,e,i,r)=>{for(var o=r>1?void 0:r?hc(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=(r?a(e,i,o):a(o))||o);return r&&o&&dc(e,i,o),o};n.UUIToggleElement=class extends L{constructor(){super("switch")}renderCheckbox(){return c`<div id="slider"><div id="icon-check">${St}</div><div id="icon-wrong">${to}</div></div>`}},n.UUIToggleElement.formAssociated=!0,n.UUIToggleElement.styles=[...L.styles,Je,d`: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;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-check,#icon-wrong{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms}#icon-check{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);fill:var(--uui-color-interactive,#1b264f)}#icon-wrong{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);fill:var(--uui-color-interactive,#1b264f)}input:checked~#slider #icon-check{fill: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])) 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-wrong{fill:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #slider{animation:${et}}:host([disabled]) input:checked #slider #icon-check{fill: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=pc([u("uui-toggle")],n.UUIToggleElement),n.UUIBooleanInputElement=L,n.UUIBooleanInputEvent=Ye,n.UUIButtonInlineCreateEvent=nt,n.UUICardEvent=fe,n.UUIComboboxEvent=A,n.UUIComboboxListEvent=X,n.UUIIconHost=Bt,n.UUIIconRegistry=Ht,n.UUIIconRegistryEssential=vo,n.UUIIconRequestEvent=Ue,n.UUIInputEvent=te,n.UUIMenuItemEvent=F,n.UUIPaginationEvent=q,n.UUIRadioEvent=Ee,n.UUIRadioGroupEvent=ht,n.UUIRefEvent=$e,n.UUISelectEvent=bt,n.UUISliderEvent=oe,n.UUITabEvent=Jl,n.UUITabGroupEvent=ec,n.UUITextStyles=Xe,n.UUITextareaEvent=Fe,n.UUIToastNotificationEvent=C,Object.defineProperty(n,"__esModule",{value:!0})});
517
516
  //# sourceMappingURL=uui.min.js.map