@umbraco-ui/uui 0.0.8 → 0.0.9

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,48 +1,59 @@
1
- (function(ie){typeof define=="function"&&define.amd?define(ie):ie()})(function(){"use strict";/**
1
+ var bs=Object.defineProperty,fs=Object.defineProperties;var vs=Object.getOwnPropertyDescriptors;var Ar=Object.getOwnPropertySymbols;var gs=Object.prototype.hasOwnProperty,ms=Object.prototype.propertyIsEnumerable;var Ur=(y,x,E)=>x in y?bs(y,x,{enumerable:!0,configurable:!0,writable:!0,value:E}):y[x]=E,He=(y,x)=>{for(var E in x||(x={}))gs.call(x,E)&&Ur(y,E,x[E]);if(Ar)for(var E of Ar(x))ms.call(x,E)&&Ur(y,E,x[E]);return y},je=(y,x)=>fs(y,vs(x));var ys=typeof require!="undefined"?require:y=>{throw new Error('Dynamic require of "'+y+'" is not supported')};(function(y,x){typeof exports=="object"&&typeof module!="undefined"?x(require("@umbraco-ui/uui-base/lib/svgs/icon-check"),require("@umbraco-ui/uui-base/lib/svgs/icon-wrong")):typeof define=="function"&&define.amd?define(["@umbraco-ui/uui-base/lib/svgs/icon-check","@umbraco-ui/uui-base/lib/svgs/icon-wrong"],x):(y=typeof globalThis!="undefined"?globalThis:y||self,x(y.IconCheck,y.IconWrong))})(this,function(y,x){"use strict";function E(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var Ir=E(y),Dr=E(x);/**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const Te=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Be=Symbol(),Ct=new Map;class Pt{constructor(e,t){if(this._$cssResult$=!0,t!==Be)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=Ct.get(this.cssText);return Te&&e===void 0&&(Ct.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const $e=o=>new Pt(typeof o=="string"?o:o+"",Be),u=(o,...e)=>{const t=o.length===1?o[0]:e.reduce((i,r,s)=>i+(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.")})(r)+o[s+1],o[0]);return new Pt(t,Be)},qr=(o,e)=>{Te?o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const i=document.createElement("style"),r=window.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=t.cssText,o.appendChild(i)})},Ot=Te?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return $e(t)})(o):o;/**
2
6
  * @license
3
7
  * Copyright 2017 Google LLC
4
8
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const ie=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}};function n(i){return(e,t)=>t!==void 0?((o,r,s)=>{r.constructor.createProperty(s,o)})(i,e,t):ie(i,e)}/**
9
+ */var Me;const St=window.trustedTypes,Lr=St?St.emptyScript:"",zt=window.reactiveElementPolyfillSupport,Re={toAttribute(o,e){switch(e){case Boolean:o=o?Lr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch(i){t=null}}return t}},At=(o,e)=>e!==o&&(e==e||o==o),Ve={attribute:!0,type:String,converter:Re,reflect:!1,hasChanged:At};class te extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var t;(t=this.l)!==null&&t!==void 0||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,i)=>{const r=this._$Eh(i,t);r!==void 0&&(this._$Eu.set(r,i),e.push(r))}),e}static createProperty(e,t=Ve){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,i,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(r){const s=this[e];this[t]=r,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ve}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 t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of i)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(Ot(r))}else e!==void 0&&t.push(Ot(e));return t}static _$Eh(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Em(),this.requestUpdate(),(e=this.constructor.l)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$Eg)!==null&&t!==void 0?t:this._$Eg=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var t;(t=this._$Eg)===null||t===void 0||t.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return qr(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$Eg)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostConnected)===null||i===void 0?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$Eg)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostDisconnected)===null||i===void 0?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ES(e,t,i=Ve){var r,s;const a=this.constructor._$Eh(e,i);if(a!==void 0&&i.reflect===!0){const b=((s=(r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==null&&s!==void 0?s:Re.toAttribute)(t,i.type);this._$Ei=e,b==null?this.removeAttribute(a):this.setAttribute(a,b),this._$Ei=null}}_$AK(e,t){var i,r,s;const a=this.constructor,b=a._$Eu.get(e);if(b!==void 0&&this._$Ei!==b){const h=a.getPropertyOptions(b),p=h.converter,A=(s=(r=(i=p)===null||i===void 0?void 0:i.fromAttribute)!==null&&r!==void 0?r:typeof p=="function"?p:null)!==null&&s!==void 0?s:Re.fromAttribute;this._$Ei=b,this[b]=A(t,h.type),this._$Ei=null}}requestUpdate(e,t,i){let r=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||At)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Ei!==e&&(this._$E_===void 0&&(this._$E_=new Map),this._$E_.set(e,i))):r=!1),!this.isUpdatePending&&r&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((r,s)=>this[s]=r),this._$Et=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$Eg)===null||e===void 0||e.forEach(r=>{var s;return(s=r.hostUpdate)===null||s===void 0?void 0:s.call(r)}),this.update(i)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$Eg)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),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._$E_!==void 0&&(this._$E_.forEach((t,i)=>this._$ES(i,this[i],t)),this._$E_=void 0),this._$EU()}updated(e){}firstUpdated(e){}}te.finalized=!0,te.elementProperties=new Map,te.elementStyles=[],te.shadowRootOptions={mode:"open"},zt==null||zt({ReactiveElement:te}),((Me=globalThis.reactiveElementVersions)!==null&&Me!==void 0?Me:globalThis.reactiveElementVersions=[]).push("1.0.2");/**
6
10
  * @license
7
11
  * Copyright 2017 Google LLC
8
12
  * SPDX-License-Identifier: BSD-3-Clause
9
- */function w(i){return n({...i,state:!0})}/**
13
+ */var Ge;const re=globalThis.trustedTypes,Ut=re?re.createPolicy("lit-html",{createHTML:o=>o}):void 0,T=`lit$${(Math.random()+"").slice(9)}$`,It="?"+T,Nr=`<${It}>`,oe=document,de=(o="")=>oe.createComment(o),ce=o=>o===null||typeof o!="object"&&typeof o!="function",Dt=Array.isArray,Hr=o=>{var e;return Dt(o)||typeof((e=o)===null||e===void 0?void 0:e[Symbol.iterator])=="function"},he=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qt=/-->/g,Lt=/>/g,K=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,Nt=/'/g,Ht=/"/g,jt=/^(?:script|style|textarea)$/i,Tt=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),l=Tt(1),ie=Tt(2),X=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Bt=new WeakMap,jr=(o,e,t)=>{var i,r;const s=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let a=s._$litPart$;if(a===void 0){const b=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;s._$litPart$=a=new be(e.insertBefore(de(),b),b,void 0,t!=null?t:{})}return a._$AI(o),a},se=oe.createTreeWalker(oe,129,null,!1),Tr=(o,e)=>{const t=o.length-1,i=[];let r,s=e===2?"<svg>":"",a=he;for(let h=0;h<t;h++){const p=o[h];let A,f,m=-1,U=0;for(;U<p.length&&(a.lastIndex=U,f=a.exec(p),f!==null);)U=a.lastIndex,a===he?f[1]==="!--"?a=qt:f[1]!==void 0?a=Lt:f[2]!==void 0?(jt.test(f[2])&&(r=RegExp("</"+f[2],"g")),a=K):f[3]!==void 0&&(a=K):a===K?f[0]===">"?(a=r!=null?r:he,m=-1):f[1]===void 0?m=-2:(m=a.lastIndex-f[2].length,A=f[1],a=f[3]===void 0?K:f[3]==='"'?Ht:Nt):a===Ht||a===Nt?a=K:a===qt||a===Lt?a=he:(a=K,r=void 0);const Le=a===K&&o[h+1].startsWith("/>")?" ":"";s+=a===he?p+Nr:m>=0?(i.push(A),p.slice(0,m)+"$lit$"+p.slice(m)+T+Le):p+T+(m===-2?(i.push(void 0),h):Le)}const b=s+(o[t]||"<?>")+(e===2?"</svg>":"");return[Ut!==void 0?Ut.createHTML(b):b,i]};class pe{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let s=0,a=0;const b=e.length-1,h=this.parts,[p,A]=Tr(e,t);if(this.el=pe.createElement(p,i),se.currentNode=this.el.content,t===2){const f=this.el.content,m=f.firstChild;m.remove(),f.append(...m.childNodes)}for(;(r=se.nextNode())!==null&&h.length<b;){if(r.nodeType===1){if(r.hasAttributes()){const f=[];for(const m of r.getAttributeNames())if(m.endsWith("$lit$")||m.startsWith(T)){const U=A[a++];if(f.push(m),U!==void 0){const Le=r.getAttribute(U.toLowerCase()+"$lit$").split(T),Ne=/([.?@])?(.*)/.exec(U);h.push({type:1,index:s,name:Ne[2],strings:Le,ctor:Ne[1]==="."?Mr:Ne[1]==="?"?Vr:Ne[1]==="@"?Gr:Ee})}else h.push({type:6,index:s})}for(const m of f)r.removeAttribute(m)}if(jt.test(r.tagName)){const f=r.textContent.split(T),m=f.length-1;if(m>0){r.textContent=re?re.emptyScript:"";for(let U=0;U<m;U++)r.append(f[U],de()),se.nextNode(),h.push({type:2,index:++s});r.append(f[m],de())}}}else if(r.nodeType===8)if(r.data===It)h.push({type:2,index:s});else{let f=-1;for(;(f=r.data.indexOf(T,f+1))!==-1;)h.push({type:7,index:s}),f+=T.length-1}s++}}static createElement(e,t){const i=oe.createElement("template");return i.innerHTML=e,i}}function ae(o,e,t=o,i){var r,s,a,b;if(e===X)return e;let h=i!==void 0?(r=t._$Cl)===null||r===void 0?void 0:r[i]:t._$Cu;const p=ce(e)?void 0:e._$litDirective$;return(h==null?void 0:h.constructor)!==p&&((s=h==null?void 0:h._$AO)===null||s===void 0||s.call(h,!1),p===void 0?h=void 0:(h=new p(o),h._$AT(o,t,i)),i!==void 0?((a=(b=t)._$Cl)!==null&&a!==void 0?a:b._$Cl=[])[i]=h:t._$Cu=h),h!==void 0&&(e=ae(o,h._$AS(o,e.values),h,i)),e}class Br{constructor(e,t){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var t;const{el:{content:i},parts:r}=this._$AD,s=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:oe).importNode(i,!0);se.currentNode=s;let a=se.nextNode(),b=0,h=0,p=r[0];for(;p!==void 0;){if(b===p.index){let A;p.type===2?A=new be(a,a.nextSibling,this,e):p.type===1?A=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(A=new Wr(a,this,e)),this.v.push(A),p=r[++h]}b!==(p==null?void 0:p.index)&&(a=se.nextNode(),b++)}return s}m(e){let t=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class be{constructor(e,t,i,r){var s;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cg=(s=r==null?void 0:r.isConnected)===null||s===void 0||s}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ae(this,e,t),ce(e)?e===g||e==null||e===""?(this._$AH!==g&&this._$AR(),this._$AH=g):e!==this._$AH&&e!==X&&this.$(e):e._$litType$!==void 0?this.T(e):e.nodeType!==void 0?this.S(e):Hr(e)?this.M(e):this.$(e)}A(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}S(e){this._$AH!==e&&(this._$AR(),this._$AH=this.A(e))}$(e){this._$AH!==g&&ce(this._$AH)?this._$AA.nextSibling.data=e:this.S(oe.createTextNode(e)),this._$AH=e}T(e){var t;const{values:i,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=pe.createElement(r.h,this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.m(i);else{const a=new Br(s,this),b=a.p(this.options);a.m(i),this.S(b),this._$AH=a}}_$AC(e){let t=Bt.get(e.strings);return t===void 0&&Bt.set(e.strings,t=new pe(e)),t}M(e){Dt(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const s of e)r===t.length?t.push(i=new be(this.A(de()),this.A(de()),this,this.options)):i=t[r],i._$AI(s),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cg=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class Ee{constructor(e,t,i,r,s){this.type=1,this._$AH=g,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=g}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,r){const s=this.strings;let a=!1;if(s===void 0)e=ae(this,e,t,0),a=!ce(e)||e!==this._$AH&&e!==X,a&&(this._$AH=e);else{const b=e;let h,p;for(e=s[0],h=0;h<s.length-1;h++)p=ae(this,b[i+h],t,h),p===X&&(p=this._$AH[h]),a||(a=!ce(p)||p!==this._$AH[h]),p===g?e=g:e!==g&&(e+=(p!=null?p:"")+s[h+1]),this._$AH[h]=p}a&&!r&&this.k(e)}k(e){e===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Mr extends Ee{constructor(){super(...arguments),this.type=3}k(e){this.element[this.name]=e===g?void 0:e}}const Rr=re?re.emptyScript:"";class Vr extends Ee{constructor(){super(...arguments),this.type=4}k(e){e&&e!==g?this.element.setAttribute(this.name,Rr):this.element.removeAttribute(this.name)}}class Gr extends Ee{constructor(e,t,i,r,s){super(e,t,i,r,s),this.type=5}_$AI(e,t=this){var i;if((e=(i=ae(this,e,t,0))!==null&&i!==void 0?i:g)===X)return;const r=this._$AH,s=e===g&&r!==g||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==g&&(r===g||s);s&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}}class Wr{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ae(this,e)}}const Mt=window.litHtmlPolyfillSupport;Mt==null||Mt(pe,be),((Ge=globalThis.litHtmlVersions)!==null&&Ge!==void 0?Ge:globalThis.litHtmlVersions=[]).push("2.0.2");/**
10
14
  * @license
11
15
  * Copyright 2017 Google LLC
12
16
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const je=({finisher:i,descriptor:e})=>(t,o)=>{var r;if(o===void 0){const s=(r=t.originalKey)!==null&&r!==void 0?r:t.key,a=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(t.key)}:{...t,key:s};return i!=null&&(a.finisher=function(b){i(b,s)}),a}{const s=t.constructor;e!==void 0&&Object.defineProperty(t,o,e(o)),i==null||i(s,o)}};/**
17
+ */var We,Fe;class c extends te{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=jr(t,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 X}}c.finalized=!0,c._$litElement$=!0,(We=globalThis.litElementHydrateSupport)===null||We===void 0||We.call(globalThis,{LitElement:c});const Rt=globalThis.litElementPolyfillSupport;Rt==null||Rt({LitElement:c}),((Fe=globalThis.litElementVersions)!==null&&Fe!==void 0?Fe:globalThis.litElementVersions=[]).push("3.0.2");class Ke extends c{render(){return l`<slot></slot>`}}Ke.styles=[u`: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(
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}`];const d=(o,e,t)=>{if(o.indexOf("-")>0===!1){console.error(`${o} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}customElements.get(o)?console.error(`${o} is already defined`):customElements.define(o,e,t)};class Vt extends Ke{}Vt.styles=[...Ke.styles,u`::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}`],d("uui-action-bar",Vt);/**
14
20
  * @license
15
21
  * Copyright 2017 Google LLC
16
22
  * SPDX-License-Identifier: BSD-3-Clause
17
- */function T(i,e){return je({descriptor:t=>{const o={get(){var r,s;return(s=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(i))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){const r=typeof t=="symbol"?Symbol():"__"+t;o.get=function(){var s,a;return this[r]===void 0&&(this[r]=(a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(i))!==null&&a!==void 0?a:null),this[r]}}return o}})}/**
23
+ */const Fr=(o,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?je(He({},e),{finisher(t){t.createProperty(e.key,o)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,o)}};function n(o){return(e,t)=>t!==void 0?((i,r,s)=>{r.constructor.createProperty(s,i)})(o,e,t):Fr(o,e)}/**
18
24
  * @license
19
25
  * Copyright 2017 Google LLC
20
26
  * SPDX-License-Identifier: BSD-3-Clause
21
- */function se(i="",e=!1,t=""){return je({descriptor:o=>({get(){var r,s,a;const b="slot"+(i?`[name=${i}]`:":not([name])");let u=(a=(s=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(b))===null||s===void 0?void 0:s.assignedNodes({flatten:e}))!==null&&a!==void 0?a:[];return t&&(u=u.filter(d=>d.nodeType===Node.ELEMENT_NODE&&d.matches(t))),u},enumerable:!0,configurable:!0})})}/**
27
+ */function v(o){return n(je(He({},o),{state:!0}))}/**
22
28
  * @license
23
- * Copyright 2019 Google LLC
29
+ * Copyright 2017 Google LLC
24
30
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const ge=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,me=Symbol(),Re=new Map;class Be{constructor(e,t){if(this._$cssResult$=!0,t!==me)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=Re.get(this.cssText);return ge&&e===void 0&&(Re.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const ae=i=>new Be(typeof i=="string"?i:i+"",me),c=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((o,r,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.")})(r)+i[s+1],i[0]);return new Be(t,me)},Ut=(i,e)=>{ge?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const o=document.createElement("style"),r=window.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=t.cssText,i.appendChild(o)})},Me=ge?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return ae(t)})(i):i;/**
31
+ */const Xe=({finisher:o,descriptor:e})=>(t,i)=>{var r;if(i===void 0){const s=(r=t.originalKey)!==null&&r!==void 0?r:t.key,a=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(t.key)}:je(He({},t),{key:s});return o!=null&&(a.finisher=function(b){o(b,s)}),a}{const s=t.constructor;e!==void 0&&Object.defineProperty(t,i,e(i)),o==null||o(s,i)}};/**
26
32
  * @license
27
33
  * Copyright 2017 Google LLC
28
34
  * SPDX-License-Identifier: BSD-3-Clause
29
- */var ye;const Ve=window.trustedTypes,It=Ve?Ve.emptyScript:"",We=window.reactiveElementPolyfillSupport,ke={toAttribute(i,e){switch(e){case Boolean:i=i?It:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(o){t=null}}return t}},qe=(i,e)=>e!==i&&(e==e||i==i),_e={attribute:!0,type:String,converter:ke,reflect:!1,hasChanged:qe};class H extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var t;(t=this.l)!==null&&t!==void 0||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,o)=>{const r=this._$Eh(o,t);r!==void 0&&(this._$Eu.set(r,o),e.push(r))}),e}static createProperty(e,t=_e){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,o,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,o){return{get(){return this[t]},set(r){const s=this[e];this[t]=r,this.requestUpdate(e,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||_e}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 t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of o)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const r of o)t.unshift(Me(r))}else e!==void 0&&t.push(Me(e));return t}static _$Eh(e,t){const o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Em(),this.requestUpdate(),(e=this.constructor.l)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,o;((t=this._$Eg)!==null&&t!==void 0?t:this._$Eg=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var t;(t=this._$Eg)===null||t===void 0||t.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Ut(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$Eg)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostConnected)===null||o===void 0?void 0:o.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$Eg)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostDisconnected)===null||o===void 0?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ES(e,t,o=_e){var r,s;const a=this.constructor._$Eh(e,o);if(a!==void 0&&o.reflect===!0){const b=((s=(r=o.converter)===null||r===void 0?void 0:r.toAttribute)!==null&&s!==void 0?s:ke.toAttribute)(t,o.type);this._$Ei=e,b==null?this.removeAttribute(a):this.setAttribute(a,b),this._$Ei=null}}_$AK(e,t){var o,r,s;const a=this.constructor,b=a._$Eu.get(e);if(b!==void 0&&this._$Ei!==b){const u=a.getPropertyOptions(b),d=u.converter,x=(s=(r=(o=d)===null||o===void 0?void 0:o.fromAttribute)!==null&&r!==void 0?r:typeof d=="function"?d:null)!==null&&s!==void 0?s:ke.fromAttribute;this._$Ei=b,this[b]=x(t,u.type),this._$Ei=null}}requestUpdate(e,t,o){let r=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||qe)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Ei!==e&&(this._$E_===void 0&&(this._$E_=new Map),this._$E_.set(e,o))):r=!1),!this.isUpdatePending&&r&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((r,s)=>this[s]=r),this._$Et=void 0);let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),(e=this._$Eg)===null||e===void 0||e.forEach(r=>{var s;return(s=r.hostUpdate)===null||s===void 0?void 0:s.call(r)}),this.update(o)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(o)}willUpdate(e){}_$AE(e){var t;(t=this._$Eg)===null||t===void 0||t.forEach(o=>{var r;return(r=o.hostUpdated)===null||r===void 0?void 0:r.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._$E_!==void 0&&(this._$E_.forEach((t,o)=>this._$ES(o,this[o],t)),this._$E_=void 0),this._$EU()}updated(e){}firstUpdated(e){}}H.finalized=!0,H.elementProperties=new Map,H.elementStyles=[],H.shadowRootOptions={mode:"open"},We==null||We({ReactiveElement:H}),((ye=globalThis.reactiveElementVersions)!==null&&ye!==void 0?ye:globalThis.reactiveElementVersions=[]).push("1.0.2");/**
35
+ */function L(o,e){return Xe({descriptor:t=>{const i={get(){var r,s;return(s=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(o))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){const r=typeof t=="symbol"?Symbol():"__"+t;i.get=function(){var s,a;return this[r]===void 0&&(this[r]=(a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(o))!==null&&a!==void 0?a:null),this[r]}}return i}})}/**
30
36
  * @license
31
37
  * Copyright 2017 Google LLC
32
38
  * SPDX-License-Identifier: BSD-3-Clause
33
- */var xe;const j=globalThis.trustedTypes,Ge=j?j.createPolicy("lit-html",{createHTML:i=>i}):void 0,A=`lit$${(Math.random()+"").slice(9)}$`,Xe="?"+A,Dt=`<${Xe}>`,R=document,X=(i="")=>R.createComment(i),K=i=>i===null||typeof i!="object"&&typeof i!="function",Ke=Array.isArray,Lt=i=>{var e;return Ke(i)||typeof((e=i)===null||e===void 0?void 0:e[Symbol.iterator])=="function"},F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fe=/-->/g,Ze=/>/g,I=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,Je=/'/g,Ye=/"/g,Qe=/^(?:script|style|textarea)$/i,et=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),l=et(1),C=et(2),D=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),tt=new WeakMap,Nt=(i,e,t)=>{var o,r;const s=(o=t==null?void 0:t.renderBefore)!==null&&o!==void 0?o:e;let a=s._$litPart$;if(a===void 0){const b=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;s._$litPart$=a=new J(e.insertBefore(X(),b),b,void 0,t??{})}return a._$AI(i),a},B=R.createTreeWalker(R,129,null,!1),Tt=(i,e)=>{const t=i.length-1,o=[];let r,s=e===2?"<svg>":"",a=F;for(let u=0;u<t;u++){const d=i[u];let x,v,f=-1,$=0;for(;$<d.length&&(a.lastIndex=$,v=a.exec(d),v!==null);)$=a.lastIndex,a===F?v[1]==="!--"?a=Fe:v[1]!==void 0?a=Ze:v[2]!==void 0?(Qe.test(v[2])&&(r=RegExp("</"+v[2],"g")),a=I):v[3]!==void 0&&(a=I):a===I?v[0]===">"?(a=r??F,f=-1):v[1]===void 0?f=-2:(f=a.lastIndex-v[2].length,x=v[1],a=v[3]===void 0?I:v[3]==='"'?Ye:Je):a===Ye||a===Je?a=I:a===Fe||a===Ze?a=F:(a=I,r=void 0);const ve=a===I&&i[u+1].startsWith("/>")?" ":"";s+=a===F?d+Dt:f>=0?(o.push(x),d.slice(0,f)+"$lit$"+d.slice(f)+A+ve):d+A+(f===-2?(o.push(void 0),u):ve)}const b=s+(i[t]||"<?>")+(e===2?"</svg>":"");return[Ge!==void 0?Ge.createHTML(b):b,o]};class Z{constructor({strings:e,_$litType$:t},o){let r;this.parts=[];let s=0,a=0;const b=e.length-1,u=this.parts,[d,x]=Tt(e,t);if(this.el=Z.createElement(d,o),B.currentNode=this.el.content,t===2){const v=this.el.content,f=v.firstChild;f.remove(),v.append(...f.childNodes)}for(;(r=B.nextNode())!==null&&u.length<b;){if(r.nodeType===1){if(r.hasAttributes()){const v=[];for(const f of r.getAttributeNames())if(f.endsWith("$lit$")||f.startsWith(A)){const $=x[a++];if(v.push(f),$!==void 0){const ve=r.getAttribute($.toLowerCase()+"$lit$").split(A),fe=/([.?@])?(.*)/.exec($);u.push({type:1,index:s,name:fe[2],strings:ve,ctor:fe[1]==="."?jt:fe[1]==="?"?Bt:fe[1]==="@"?Mt:ne})}else u.push({type:6,index:s})}for(const f of v)r.removeAttribute(f)}if(Qe.test(r.tagName)){const v=r.textContent.split(A),f=v.length-1;if(f>0){r.textContent=j?j.emptyScript:"";for(let $=0;$<f;$++)r.append(v[$],X()),B.nextNode(),u.push({type:2,index:++s});r.append(v[f],X())}}}else if(r.nodeType===8)if(r.data===Xe)u.push({type:2,index:s});else{let v=-1;for(;(v=r.data.indexOf(A,v+1))!==-1;)u.push({type:7,index:s}),v+=A.length-1}s++}}static createElement(e,t){const o=R.createElement("template");return o.innerHTML=e,o}}function M(i,e,t=i,o){var r,s,a,b;if(e===D)return e;let u=o!==void 0?(r=t._$Cl)===null||r===void 0?void 0:r[o]:t._$Cu;const d=K(e)?void 0:e._$litDirective$;return(u==null?void 0:u.constructor)!==d&&((s=u==null?void 0:u._$AO)===null||s===void 0||s.call(u,!1),d===void 0?u=void 0:(u=new d(i),u._$AT(i,t,o)),o!==void 0?((a=(b=t)._$Cl)!==null&&a!==void 0?a:b._$Cl=[])[o]=u:t._$Cu=u),u!==void 0&&(e=M(i,u._$AS(i,e.values),u,o)),e}class Ht{constructor(e,t){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var t;const{el:{content:o},parts:r}=this._$AD,s=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:R).importNode(o,!0);B.currentNode=s;let a=B.nextNode(),b=0,u=0,d=r[0];for(;d!==void 0;){if(b===d.index){let x;d.type===2?x=new J(a,a.nextSibling,this,e):d.type===1?x=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(x=new Vt(a,this,e)),this.v.push(x),d=r[++u]}b!==(d==null?void 0:d.index)&&(a=B.nextNode(),b++)}return s}m(e){let t=0;for(const o of this.v)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class J{constructor(e,t,o,r){var s;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=r,this._$Cg=(s=r==null?void 0:r.isConnected)===null||s===void 0||s}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=M(this,e,t),K(e)?e===g||e==null||e===""?(this._$AH!==g&&this._$AR(),this._$AH=g):e!==this._$AH&&e!==D&&this.$(e):e._$litType$!==void 0?this.T(e):e.nodeType!==void 0?this.S(e):Lt(e)?this.M(e):this.$(e)}A(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}S(e){this._$AH!==e&&(this._$AR(),this._$AH=this.A(e))}$(e){this._$AH!==g&&K(this._$AH)?this._$AA.nextSibling.data=e:this.S(R.createTextNode(e)),this._$AH=e}T(e){var t;const{values:o,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Z.createElement(r.h,this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.m(o);else{const a=new Ht(s,this),b=a.p(this.options);a.m(o),this.S(b),this._$AH=a}}_$AC(e){let t=tt.get(e.strings);return t===void 0&&tt.set(e.strings,t=new Z(e)),t}M(e){Ke(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,r=0;for(const s of e)r===t.length?t.push(o=new J(this.A(X()),this.A(X()),this,this.options)):o=t[r],o._$AI(s),r++;r<t.length&&(this._$AR(o&&o._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cg=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class ne{constructor(e,t,o,r,s){this.type=1,this._$AH=g,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=g}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,o,r){const s=this.strings;let a=!1;if(s===void 0)e=M(this,e,t,0),a=!K(e)||e!==this._$AH&&e!==D,a&&(this._$AH=e);else{const b=e;let u,d;for(e=s[0],u=0;u<s.length-1;u++)d=M(this,b[o+u],t,u),d===D&&(d=this._$AH[u]),a||(a=!K(d)||d!==this._$AH[u]),d===g?e=g:e!==g&&(e+=(d??"")+s[u+1]),this._$AH[u]=d}a&&!r&&this.k(e)}k(e){e===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class jt extends ne{constructor(){super(...arguments),this.type=3}k(e){this.element[this.name]=e===g?void 0:e}}const Rt=j?j.emptyScript:"";class Bt extends ne{constructor(){super(...arguments),this.type=4}k(e){e&&e!==g?this.element.setAttribute(this.name,Rt):this.element.removeAttribute(this.name)}}class Mt extends ne{constructor(e,t,o,r,s){super(e,t,o,r,s),this.type=5}_$AI(e,t=this){var o;if((e=(o=M(this,e,t,0))!==null&&o!==void 0?o:g)===D)return;const r=this._$AH,s=e===g&&r!==g||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==g&&(r===g||s);s&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class Vt{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){M(this,e)}}const rt=window.litHtmlPolyfillSupport;rt==null||rt(Z,J),((xe=globalThis.litHtmlVersions)!==null&&xe!==void 0?xe:globalThis.litHtmlVersions=[]).push("2.0.2");/**
39
+ */function Kr(o){return Xe({descriptor:e=>({get(){var t,i;return(i=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelectorAll(o))!==null&&i!==void 0?i:[]},enumerable:!0,configurable:!0})})}/**
34
40
  * @license
35
41
  * Copyright 2017 Google LLC
36
42
  * SPDX-License-Identifier: BSD-3-Clause
37
- */var $e,we;class h extends H{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,t;const o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=o.firstChild),o}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=Nt(t,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 D}}h.finalized=!0,h._$litElement$=!0,($e=globalThis.litElementHydrateSupport)===null||$e===void 0||$e.call(globalThis,{LitElement:h});const ot=globalThis.litElementPolyfillSupport;ot==null||ot({LitElement:h}),((we=globalThis.litElementVersions)!==null&&we!==void 0?we:globalThis.litElementVersions=[]).push("3.0.2");const p=(i,e,t)=>{if(i.indexOf("-")>0===!1){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}customElements.get(i)?console.error(`${i} is already defined`):customElements.define(i,e,t)};var Wt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,Y=(i,e,t,o)=>{for(var r=o>1?void 0:o?qt(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Wt(e,t,r),r};class L extends h{constructor(){super(...arguments);this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._title="",this.initials=""}get title(){return this._title}set title(e){const t=this._title;this._title=e,this.initials=this.createInitials(this._title),this.requestUpdate("title",t)}createInitials(e){let t="";const o=(e||"").split(" ");return t=o[0].substring(0,1),o.length>1&&(t+=o[o.length-1].substring(0,1)),t.toUpperCase()}renderImage(){return l`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this.initials}" title="${this.title}">`}render(){return l`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this.initials}<slot></slot>`}}L.styles=[c`:host{display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border-radius:50%;font-weight:700;width:2em;height:2em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--uui-color-spanish-pink,#f5c1bc);color:var(--uui-color-space-cadet,#1b264f)}:host([overflow]){overflow:unset}img{-o-object-fit:cover;object-fit:cover;height:100%;width:100%;overflow:hidden;border-radius:50%}`],Y([n({type:Boolean,attribute:!0,reflect:!0})],L.prototype,"overflow",2),Y([n({type:String,attribute:"img-src"})],L.prototype,"imgSrc",2),Y([n({type:String,attribute:"img-srcset"})],L.prototype,"imgSrcset",2),Y([n({type:String})],L.prototype,"title",1),Y([w()],L.prototype,"initials",2),p("uui-avatar",L);var Gt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,le=(i,e,t,o)=>{for(var r=o>1?void 0:o?Xt(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Gt(e,t,r),r};class V extends h{constructor(){super(...arguments);this.limit=0,this.avatarArray=[]}firstUpdated(){this.setAvatarArray()}updated(e){e.has("limit")&&this.updateAvatarVisibility()}updateAvatarVisibility(){this.avatarArray.forEach((e,t)=>{const o=t+1;e.style.border="0.1em solid var(--uui-avatar-border-color)",e.style.display=o<=this.limit||this.limit===0?"":"none"})}onSlotChange(){this.setAvatarArray(),this.updateAvatarVisibility()}setAvatarArray(){this.avatarArray=this.avatarNodes?this.avatarNodes:[]}shouldShowLimitNumber(){return this.limit!==0&&this.avatarArray.length>this.limit}render(){return l`<slot @slotchange="${this.onSlotChange}"></slot>${this.shouldShowLimitNumber()?l`<small id="overflow-indication">+${this.avatarArray.length-this.limit}</small>`:""}`}}V.styles=[c`:host{display:inline-flex;align-items:center;padding-left:3px;padding-right:3px}::slotted(uui-avatar),uui-avatar{margin-left:-.2em;margin-right:-.2em}#overflow-indication{margin-left:6px}`],le([T("slot")],V.prototype,"avatarsSlot",2),le([se(void 0,!0,"uui-avatar")],V.prototype,"avatarNodes",2),le([n({type:Number,attribute:!0})],V.prototype,"limit",2),le([w()],V.prototype,"avatarArray",2),p("uui-avatar-group",V);var Kt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Zt=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ft(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Kt(e,t,r),r};class Ee extends h{constructor(){super(...arguments);this.look="danger"}render(){return l`<slot></slot>`}}Ee.styles=[c`:host{position:absolute;padding:3px 5px;--uui-badge-inset:-8px -8px auto auto;inset:var(--uui-badge-inset);text-align:center;font-size:12px;line-height:16px;font-weight:900;margin-right:0!important;min-width:var(--uui-size-4,12px);min-height:var(--uui-size-4,12px);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));display:flex;justify-content:center;align-items:center}: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)}`],Zt([n({type:String,reflect:!0})],Ee.prototype,"look",2),p("uui-badge",Ee);class it extends h{render(){return l`<slot name="header"></slot><slot name="main"></slot><slot></slot>`}}it.styles=[c`:host{display:block;box-shadow: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)}::slotted([slot=header]){border-bottom:1px solid var(--uui-interface-border,#c4c4c4);padding:var(--uui-size-4,12px) var(--uui-size-5,15px)}::slotted([slot=main]){padding:var(--uui-size-5,15px)}`],p("uui-box",it);var Jt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,st=(i,e,t,o)=>{for(var r=o>1?void 0:o?Yt(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Jt(e,t,r),r};class ue extends h{constructor(){super(...arguments);this.href="#",this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}render(){return l`${this.lastItem?l`<span id="last-item"><slot></slot></span>`:l`<a id="link" href="${this.href}"><slot></slot></a>`}<span part="separator"></span>`}}ue.styles=[c`:host{font-size:var(--uui-size-4,12px);color:currentColor}a,a:visited{color:currentColor}:host(:last-of-type) [part=separator],:host([last-item]) [part=separator]{display:none}[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}`],st([n()],ue.prototype,"href",2),st([n({type:Boolean,attribute:"last-item"})],ue.prototype,"lastItem",2);var Qt=Object.defineProperty,er=Object.getOwnPropertyDescriptor,tr=(i,e,t,o)=>{for(var r=o>1?void 0:o?er(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Qt(e,t,r),r};class Ae extends h{_setLastItem(){this._breadcrumbs&&(this._breadcrumbs[this._breadcrumbs.length-1].lastItem=!0,this._breadcrumbs[this._breadcrumbs.length-1].setAttribute("aria-current","page"))}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}render(){return l`<ol id="breadcrumbs-list"><slot @slotchange="${this._setLastItem}"></slot></ol>`}}Ae.styles=[c`:host{display:flex}#breadcrumbs-list{display:flex;list-style-type:decimal;-webkit-margin-before:0;margin-block-start:0;-webkit-margin-after:0;margin-block-end:0;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:0;margin-inline-end:0;-webkit-padding-start:0;padding-inline-start:0}`],tr([se(void 0,!0,"uui-breadcrumb-item")],Ae.prototype,"_breadcrumbs",2),p("uui-breadcrumb-item",ue),p("uui-breadcrumbs",Ae),c`@-webkit-keyframes uui-blink{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}@keyframes uui-blink{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}`,ae("uui-blink 0.9s infinite both");const rr=c`@-webkit-keyframes pulse{0%{transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{transform:translate(-50%,-50%) scale(2.2);opacity:0}}@keyframes pulse{0%{transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{transform:translate(-50%,-50%) scale(2.2);opacity:0}}`,at=ae("pulse 0.8s ease-in-out infinite both"),de=c`@-webkit-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)}}@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)}}`,S=ae("uui-horizontal-shake 600ms ease backwards");var or=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,sr=(i,e,t,o)=>{for(var r=o>1?void 0:o?ir(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&or(e,t,r),r};const nt=i=>{class e extends i{constructor(){super(...arguments);this.active=!1}}return sr([n({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var ar=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,lt=(i,e,t,o)=>{for(var r=o>1?void 0:o?nr(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&ar(e,t,r),r};const Q=(i,e)=>{class t extends e{constructor(){super(...arguments);this.labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`")}labelSlotChanged(r){this.labelSlotHasContent=r.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`${this.labelSlotHasContent===!1?l`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this.labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return lt([n({type:String})],t.prototype,"label",2),lt([w()],t.prototype,"labelSlotHasContent",2),t};var lr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,ut=(i,e,t,o)=>{for(var r=o>1?void 0:o?ur(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&lr(e,t,r),r};const dt=i=>{class e extends i{constructor(){super(...arguments);this._selectable=!1,this.selected=!1}get selectable(){return this._selectable}set selectable(o){const r=this._selectable;this._selectable=o,this.setAttribute("tabindex",`${o?"0":"-1"}`),this.requestUpdate("selected",r)}}return ut([n({type:Boolean,reflect:!0})],e.prototype,"selectable",1),ut([n({type:Boolean,reflect:!0})],e.prototype,"selected",2),e},ct="",dr=C`<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>`,cr=C`<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 hr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,ee=(i,e,t,o)=>{for(var r=o>1?void 0:o?br(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&hr(e,t,r),r};class P extends Q("label",h){constructor(){super();this.type="submit",this.disabled=!1,this.look=ct,this.compact=!1,this.state=null,this._internals=this.attachInternals(),this.addEventListener("click",this.onHostClick)}onHostClick(e){var t;if(this.disabled){e.preventDefault(),e.stopImmediatePropagation();return}if((t=this._internals)==null?void 0:t.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit();break}}connectedCallback(){super.connectedCallback(),customElements.get("uui-loader-circle")||console.warn("To properly render the waiting state, the uui-loader-circle element has to be registered")}updated(e){e.has("state")&&(this.disabled=!!this.state,(this.state==="success"||this.state==="failed")&&setTimeout(()=>this.state=null,2e3))}_renderState(){let e=l``;switch(this.state){case"waiting":e=l`<uui-loader-circle size="m"></uui-loader-circle>`;break;case"success":e=l`<div id="icon-check">${dr}</div>`;break;case"failed":e=l`<div id="icon-wrong">${cr}</div>`;break;default:return""}return l`<div id="state">${e}</div>`}render(){return l`<button ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderState()}<slot name="badge"></slot><slot id="main-slot"></slot></button>`}}P.styles=[de,c`:host{position:relative;display:inline-block;margin-left:calc(var(--uui-button-merge-border-left,0) * -1px);--uui-button-slot-padding-l-factor:3;--uui-button-slot-padding-r-factor:3;background-color:var(--uui-interface-surface,#fefefe)}:host([compact]){--uui-button-slot-padding-l-factor:1;--uui-button-slot-padding-r-factor:1}:host([state]:not([state=''])) #main-slot{visibility:hidden}#state{position:absolute;transform:translate(-50%,-50%);top:50%;left:50%;-webkit-animation-name:fadeIn;animation-name:fadeIn;-webkit-animation-delay:50ms;animation-delay:50ms;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;opacity:0}button{height:100%;min-height:var(--uui-button-height,calc(var(--uui-button-base-unit,var(--uui-size-2,6px)) * 6));width:100%;padding:0;text-align:center;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-weight:var(--uui-button-font-weight,var(--uui-interface-font-weight,400));font-size:inherit;font-family: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));color:var(--uui-button-contrast-disabled,var(--uui-interface-contrast-disabled,#73716e));cursor:default}button[disabled]:active{-webkit-animation:${S};animation:${S}}button{padding:0 calc((var(--uui-button-base-unit,var(--uui-size-2,6px)) * var(--uui-button-slot-padding-r-factor))) 0 calc((var(--uui-button-base-unit,var(--uui-size-2,6px)) * var(--uui-button-slot-padding-l-factor)))}#icon-check,#icon-wrong{fill:currentColor;display:grid;place-items:center;width:1.5em}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}:host([look=primary]) 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-look-primary-border,#1b264f);font-weight:var(--uui-look-primary-font-weight,700)}:host([look=primary]) button:hover{background-color:var(--uui-look-primary-surface-hover,#3544b1);color:var(--uui-look-primary-contrast-hover,#fefefe);border-color:var(--uui-look-primary-border-hover,#3544b1)}:host([look=primary]) button[disabled]{background-color:var(--uui-look-primary-surface-disabled,#737882);color:var(--uui-look-primary-contrast-disabled,#e4e4e4);border-color:var(--uui-look-primary-border-disabled,#737882)}:host([look=secondary]) 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-look-secondary-border,#e2dad4);font-weight:var(--uui-look-secondary-font-weight,500)}:host([look=secondary]) button:hover{background-color:var(--uui-look-secondary-surface-hover,#f3efed);color:var(--uui-look-secondary-contrast-hover,#3544b1);border-color:var(--uui-look-secondary-border-hover,#f3efed)}:host([look=secondary]) button[disabled]{background-color:var(--uui-look-secondary-surface-disabled,#cfcfcf);color:var(--uui-look-secondary-contrast-disabled,#6a759a);border-color:var(--uui-look-secondary-border-disabled,#cfcfcf)}:host([look=outline]) 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-look-outline-border,#1b264f);font-weight:var(--uui-look-outline-font-weight,700)}:host([look=outline]) button:hover{background-color:var(--uui-look-outline-surface-hover,transparent);color:var(--uui-look-outline-contrast-hover,#3544b1);border-color:var(--uui-look-outline-border-hover,#3544b1)}:host([look=outline]) button[disabled]{background-color:var(--uui-look-outline-surface-disabled,transparent);color:var(--uui-look-outline-contrast-disabled,#6a759a);border-color:var(--uui-look-outline-border-disabled,#6a759a)}:host([look=placeholder]) 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-look-placeholder-border,#1b264f);font-weight:var(--uui-look-placeholder-font-weight,400)}:host([look=placeholder]) button:hover{background-color:var(--uui-look-placeholder-surface-hover,transparent);color:var(--uui-look-placeholder-contrast-hover,#3544b1);border-color:var(--uui-look-placeholder-border-hover,#3544b1)}:host([look=placeholder]) button[disabled]{background-color:var(--uui-look-placeholder-surface-disabled,transparent);color:var(--uui-look-placeholder-contrast-disabled,#6a759a);border-color:var(--uui-look-placeholder-border-disabled,#6a759a)}:host([look=positive]) 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-look-positive-border,#25aa60);font-weight:var(--uui-look-positive-font-weight,700)}:host([look=positive]) button:hover{background-color:var(--uui-look-positive-surface-hover,#2bc570);color:var(--uui-look-positive-contrast-hover,#fefefe);border-color:var(--uui-look-positive-border-hover,#2bc570)}:host([look=positive]) button[disabled]{background-color:var(--uui-look-positive-surface-disabled,#597566);color:var(--uui-look-positive-contrast-disabled,#fefefe);border-color:var(--uui-look-positive-border-disabled,#597566)}:host([look=warning]) 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-look-warning-border,#fad634);font-weight:var(--uui-look-warning-font-weight,700)}:host([look=warning]) button:hover{background-color:var(--uui-look-warning-surface-hover,#fbe065);color:var(--uui-look-warning-contrast-hover,#060606);border-color:var(--uui-look-warning-border-hover,#fbe065)}:host([look=warning]) button[disabled]{background-color:var(--uui-look-warning-surface-disabled,#a6a085);color:var(--uui-look-warning-contrast-disabled,#060606);border-color:var(--uui-look-warning-border-disabled,#a6a085)}:host([look=danger]) 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-look-danger-border,#d42054);font-weight:var(--uui-look-danger-font-weight,700)}:host([look=danger]) button:hover{background-color:var(--uui-look-danger-surface-hover,#e23c6b);color:var(--uui-look-danger-contrast-hover,#fefefe);border-color:var(--uui-look-danger-border-hover,#e23c6b)}:host([look=danger]) button[disabled]{background-color:var(--uui-look-danger-surface-disabled,#856b72);color:var(--uui-look-danger-contrast-disabled,#fefefe);border-color:var(--uui-look-danger-border-disabled,#856b72)}`],P.formAssociated=!0,ee([n({type:String,reflect:!0})],P.prototype,"type",2),ee([n({type:Boolean,reflect:!0})],P.prototype,"disabled",2),ee([n({reflect:!0})],P.prototype,"look",2),ee([n({type:Boolean,reflect:!0})],P.prototype,"compact",2),ee([n({type:String,reflect:!0})],P.prototype,"state",2),p("uui-button",P);class ht extends h{render(){return l`<slot></slot>`}}ht.styles=[c`: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(
43
+ */function Ye(o="",e=!1,t=""){return Xe({descriptor:i=>({get(){var r,s,a;const b="slot"+(o?`[name=${o}]`:":not([name])");let h=(a=(s=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(b))===null||s===void 0?void 0:s.assignedNodes({flatten:e}))!==null&&a!==void 0?a:[];return t&&(h=h.filter(p=>p.nodeType===Node.ELEMENT_NODE&&p.matches(t))),h},enumerable:!0,configurable:!0})})}var Xr=Object.defineProperty,Yr=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var fe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yr(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Xr(e,t,r),r};class Y extends c{constructor(){super(...arguments);this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._title="",this.initials=""}get title(){return this._title}set title(e){const t=this._title;this._title=e,this.initials=this.createInitials(this._title),this.requestUpdate("title",t)}connectedCallback(){super.connectedCallback(),this.title||console.warn(this.tagName+" needs a `title`",this)}createInitials(e){let t="";if(e){const i=e.match(/(\w+)/g)||[];t=i[0].substring(0,1),i.length>1&&(t+=i[i.length-1].substring(0,1))}return t.toUpperCase()}renderImage(){return l`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this.initials}" title="${this.title}">`}render(){return l`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this.initials}<slot></slot>`}}Y.styles=[u`:host{display:inline-flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border-radius:50%;font-weight:700;-webkit-font-smoothing:subpixel-antialiased;width:calc(2em + 4px);height:calc(2em + 4px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--uui-color-spanish-pink,#f5c1bc);color:var(--uui-color-space-cadet,#1b264f)}:host([overflow]){overflow:unset}img{-o-object-fit:cover;object-fit:cover;height:100%;width:100%;overflow:hidden;border-radius:50%}`],fe([n({type:Boolean,attribute:!0,reflect:!0})],Y.prototype,"overflow",2),fe([n({type:String,attribute:"img-src"})],Y.prototype,"imgSrc",2),fe([n({type:String,attribute:"img-srcset"})],Y.prototype,"imgSrcset",2),fe([n({type:String,reflect:!0})],Y.prototype,"title",1),fe([v()],Y.prototype,"initials",2),d("uui-avatar",Y);var Zr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Ce=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jr(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Zr(e,t,r),r};class ne extends c{constructor(){super(...arguments);this.limit=0,this.avatarArray=[]}firstUpdated(){this.setAvatarArray()}updated(e){e.has("limit")&&this.updateAvatarVisibility()}updateAvatarVisibility(){this.avatarArray.forEach((e,t)=>{const i=t+1;e.style.border="0.1em solid var(--uui-avatar-border-color)",e.style.display=i<=this.limit||this.limit===0?"":"none"})}onSlotChange(){this.setAvatarArray(),this.updateAvatarVisibility()}setAvatarArray(){this.avatarArray=this.avatarNodes?this.avatarNodes:[]}shouldShowLimitNumber(){return this.limit!==0&&this.avatarArray.length>this.limit}render(){return l`<slot @slotchange="${this.onSlotChange}"></slot>${this.shouldShowLimitNumber()?l`<small id="overflow-indication">+${this.avatarArray.length-this.limit}</small>`:""}`}}ne.styles=[u`:host{display:inline-flex;align-items:center;padding-left:3px;padding-right:3px}::slotted(uui-avatar),uui-avatar{margin-left:-.2em;margin-right:-.2em}#overflow-indication{margin-left:6px}`],Ce([L("slot")],ne.prototype,"avatarsSlot",2),Ce([Ye(void 0,!0,"uui-avatar")],ne.prototype,"avatarNodes",2),Ce([n({type:Number,attribute:!0})],ne.prototype,"limit",2),Ce([v()],ne.prototype,"avatarArray",2),d("uui-avatar-group",ne);var Qr=Object.defineProperty,eo=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Gt=(o,e,t,i)=>{for(var r=i>1?void 0:i?eo(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Qr(e,t,r),r};class Pe extends c{constructor(){super(...arguments);this.look="danger",this.attention=!1}render(){return l`<slot></slot>`}}Pe.styles=[u`:host{position:absolute;display:flex;justify-content:center;align-items:center;padding:var(--uui-size-1,3px) var(--uui-size-2,6px);--uui-badge-inset:-8px -8px auto auto;inset:var(--uui-badge-inset);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!important;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}@-webkit-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)}}@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]){-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:--uui-badge-bounce;animation-name:--uui-badge-bounce;-webkit-animation-timing-function:ease;animation-timing-function:ease}@media (prefers-reduced-motion){:host([attention]){-webkit-animation:none;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)}`],Gt([n({type:String,reflect:!0})],Pe.prototype,"look",2),Gt([n({type:Boolean,reflect:!0})],Pe.prototype,"attention",2),d("uui-badge",Pe);class Wt extends c{render(){return l`<slot name="header"></slot><slot name="main"></slot><slot></slot>`}}Wt.styles=[u`:host{display:block;box-shadow: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)}::slotted([slot=header]){border-bottom:1px solid var(--uui-interface-border,#c4c4c4);padding:var(--uui-size-4,12px) var(--uui-size-5,15px)}::slotted([slot=main]){padding:var(--uui-size-5,15px)}`],d("uui-box",Wt);var to=Object.defineProperty,ro=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Ft=(o,e,t,i)=>{for(var r=i>1?void 0:i?ro(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&to(e,t,r),r};class Oe extends c{constructor(){super(...arguments);this.href="#",this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){return l`<a id="link" href="${this.href}"><slot></slot></a><span part="separator"></span>`}renderCurrent(){return l`<span id="last-item"><slot></slot></span>`}render(){return l`${this.lastItem?this.renderCurrent():this.renderLinkAndSeparator()}`}}Oe.styles=[u`:host{font-size:var(--uui-size-4,12px);color:currentColor}a,a:visited{color:currentColor}[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}`],Ft([n()],Oe.prototype,"href",2),Ft([n({type:Boolean,attribute:"last-item"})],Oe.prototype,"lastItem",2);class Kt extends c{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){const e=this.querySelectorAll("uui-breadcrumb-item"),t=Array.from(e);(t==null?void 0:t.length)>0&&(t[t.length-1].lastItem=!0,t[t.length-1].setAttribute("aria-current","page"))}render(){return l`<ol id="breadcrumbs-list"><slot @slotchange="${this.handleSlotChange}"></slot></ol>`}}Kt.styles=[u`:host{display:flex}#breadcrumbs-list{display:flex;list-style-type:decimal;-webkit-margin-before:0;margin-block-start:0;-webkit-margin-after:0;margin-block-end:0;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:0;margin-inline-end:0;-webkit-padding-start:0;padding-inline-start:0}`],d("uui-breadcrumb-item",Oe),d("uui-breadcrumbs",Kt);const oo=u`@-webkit-keyframes uui-blink{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}@keyframes uui-blink{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}`,Xt=$e("uui-blink 0.9s infinite both"),io=u`@-webkit-keyframes pulse{0%{transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{transform:translate(-50%,-50%) scale(2.2);opacity:0}}@keyframes pulse{0%{transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{transform:translate(-50%,-50%) scale(2.2);opacity:0}}`,Yt=$e("pulse 0.8s ease-in-out infinite both"),Se=u`@-webkit-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)}}@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)}}`,B=$e("uui-horizontal-shake 600ms ease backwards");var so=Object.defineProperty,ao=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var no=(o,e,t,i)=>{for(var r=i>1?void 0:i?ao(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&so(e,t,r),r};const Ze=o=>{class e extends o{constructor(){super(...arguments);this.active=!1}}return no([n({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var lo=Object.defineProperty,uo=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Zt=(o,e,t,i)=>{for(var r=i>1?void 0:i?uo(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&lo(e,t,r),r};const M=(o,e)=>{class t extends e{constructor(){super(...arguments);this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(r){this._labelSlotHasContent=r.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`${this._labelSlotHasContent===!1?l`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${o||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Zt([n({type:String})],t.prototype,"label",2),Zt([v()],t.prototype,"_labelSlotHasContent",2),t};var co=Object.defineProperty,ho=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Jt=(o,e,t,i)=>{for(var r=i>1?void 0:i?ho(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&co(e,t,r),r};const ze=o=>{class e extends o{constructor(){super(...arguments);this._selectable=!1,this.selected=!1}get selectable(){return this._selectable}set selectable(i){const r=this._selectable;this._selectable=i,this.setAttribute("tabindex",`${i?"0":"-1"}`),this.requestUpdate("selected",r)}}return Jt([n({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Jt([n({type:Boolean,reflect:!0})],e.prototype,"selected",2),e},Qt="";var po=Object.defineProperty,bo=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var ve=(o,e,t,i)=>{for(var r=i>1?void 0:i?bo(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&po(e,t,r),r};class R extends M("",c){constructor(){super();this.type="submit",this.disabled=!1,this.look=Qt,this.compact=!1,this.state=null,this._internals=this.attachInternals(),this.addEventListener("click",this._onHostClick)}_onHostClick(e){var t;if(this.disabled){e.preventDefault(),e.stopImmediatePropagation();return}if((t=this._internals)==null?void 0:t.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit();break}}connectedCallback(){super.connectedCallback(),customElements.get("uui-loader-circle")||console.warn("To properly render the waiting state, the uui-loader-circle element has to be registered")}updated(e){e.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=null,2e3)))}renderState(){let e=l``;switch(this.state){case"waiting":e=l`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":e=l`<div id="icon-check">${Ir.default}</div>`;break;case"failed":e=l`<div id="icon-wrong">${Dr.default}</div>`;break;default:return""}return l`<div id="state">${e}</div>`}render(){return l`<button ?disabled="${this.disabled}" aria-label="${this.label}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}}R.styles=[Se,u`:host{position:relative;display:inline-block;margin-left:calc(var(--uui-button-merge-border-left,0) * -1px);--uui-button-padding-left-factor:3;--uui-button-padding-right-factor:3}: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;-webkit-animation-name:fadeIn;animation-name:fadeIn;-webkit-animation-delay:40ms;animation-delay:40ms;-webkit-animation-duration:360ms;animation-duration:360ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}button{height:100%;min-height:var(--uui-button-height,auto);width:100%;padding:calc(8 / 15 * 1em) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(8 / 15 * 1em) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));text-align:center;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-weight:var(--uui-button-font-weight,var(--uui-interface-font-weight,400));font-size:var(--uui-button-font-size,inherit);font-family: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));color:var(--uui-button-contrast-disabled,var(--uui-interface-contrast-disabled,#73716e));cursor:default}button[disabled]:active{-webkit-animation:${B};animation:${B}}#icon-check,#icon-wrong{fill:currentColor;display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}: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));font-weight:var(--uui-look-primary-font-weight,700)}: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]) 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));font-weight:var(--uui-look-secondary-font-weight,500)}: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{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));font-weight:var(--uui-look-outline-font-weight,700)}: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]) 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));font-weight:var(--uui-look-placeholder-font-weight,400)}: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]) 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));font-weight:var(--uui-look-positive-font-weight,700)}: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]) 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));font-weight:var(--uui-look-warning-font-weight,700)}: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]) 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));font-weight:var(--uui-look-danger-font-weight,700)}: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))}`],R.formAssociated=!0,ve([n({type:String,reflect:!0})],R.prototype,"type",2),ve([n({type:Boolean,reflect:!0})],R.prototype,"disabled",2),ve([n({reflect:!0})],R.prototype,"look",2),ve([n({type:Boolean,reflect:!0})],R.prototype,"compact",2),ve([n({type:String,reflect:!0})],R.prototype,"state",2),d("uui-button",R);class er extends c{render(){return l`<slot></slot>`}}er.styles=[u`: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(
38
44
  --uui-border-radius,3px
39
- ) 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}`],p("uui-button-group",ht);var pr=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,bt=(i,e,t,o)=>{for(var r=o>1?void 0:o?vr(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&pr(e,t,r),r};const fr=(i,e)=>{class t extends e{constructor(){super(...arguments);this.labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`")}labelSlotChanged(r){this.labelSlotHasContent=r.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`${this.labelSlotHasContent===!1?l`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this.labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return bt([n({type:String})],t.prototype,"label",2),bt([w()],t.prototype,"labelSlotHasContent",2),t};var gr=Object.defineProperty,pt=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,vt=(i,e,t)=>e in i?gr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ft=(i,e)=>{for(var t in e||(e={}))mr.call(e,t)&&vt(i,t,e[t]);if(pt)for(var t of pt(e))yr.call(e,t)&&vt(i,t,e[t]);return i};const gt=class extends Event{constructor(i,e={}){super(i,ft(ft({},gt.defaultInit),e));this.detail=e.detail||{}}};let mt=gt;mt.defaultInit={composed:!0};class Ce extends mt{}Ce.CHANGE="change";var kr=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,z=(i,e,t,o)=>{for(var r=o>1?void 0:o?_r(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&kr(e,t,r),r};class y extends fr("",h){constructor(e="checkbox"){super();this._value="on",this.name="",this.labelPosition="right",this.hideLabel=!1,this.error=!1,this._checked=!1,this.disabled=!1,this.inputRole=e,this._internals=this.attachInternals()}get value(){return this._value}set value(e){const t=this._value;this._value=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",t)}_onInputChange(){this.checked=this._input.checked,this.dispatchEvent(new Ce(Ce.CHANGE,{bubbles:!0}))}render(){return l`<label><input type="checkbox" id="input" ?disabled="${this.disabled}" @change="${this._onInputChange}" .checked="${this.checked}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.hideLabel===!1?this.renderLabel():""}</label>`}}y.styles=[c`:host{display:inline-block}label{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;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}: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}`],y.formAssociated=!0,z([T("#input")],y.prototype,"_input",2),z([n({type:String})],y.prototype,"value",1),z([n({type:String})],y.prototype,"name",2),z([n({type:String,attribute:"label-position",reflect:!0})],y.prototype,"labelPosition",2),z([n({type:Boolean,attribute:"hide-label",reflect:!0})],y.prototype,"hideLabel",2),z([n({type:Boolean,reflect:!0})],y.prototype,"error",2),z([n({type:Boolean,reflect:!0})],y.prototype,"checked",1),z([n({type:Boolean,reflect:!0})],y.prototype,"disabled",2);const xr=C`<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>`;class Se extends y{renderCheckbox(){return l`<div id="ticker"><div id="icon-check">${xr}</div></div>`}}Se.styles=[...y.styles,de,c`:host{--uui-checkbox-size:18px}#ticker{position:relative;grid-area:'input';display:flex;align-items:center;justify-content:center;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)}:host(:not([disabled])) label:active input:checked+#ticker::before{transform:scale(.9)}:host([error]) #ticker{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) label:hover #ticker{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) label:hover input:checked:not([disabled])+#ticker{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) label:focus input:checked+#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{-webkit-animation:${S};animation:${S}}:host([disabled]) input:checked+#ticker #icon-check{fill:var(--uui-interface-chosen-contrast-disabled,#e4e4e4)}`],Se.formAssociated=!0,p("uui-checkbox",Se);var $r=Object.defineProperty,yt=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,kt=(i,e,t)=>e in i?$r(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,_t=(i,e)=>{for(var t in e||(e={}))wr.call(e,t)&&kt(i,t,e[t]);if(yt)for(var t of yt(e))Er.call(e,t)&&kt(i,t,e[t]);return i};const xt=class extends Event{constructor(i,e={}){super(i,_t(_t({},xt.defaultInit),e));this.detail=e.detail||{}}};let W=xt;W.defaultInit={composed:!0};class Pe extends W{}Pe.CHANGE="change";var Ar=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor,O=(i,e,t,o)=>{for(var r=o>1?void 0:o?Cr(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Ar(e,t,r),r};class _ extends Q("input label",h){constructor(){super();this.placeholder="",this.disabled=!1,this.hideLabel=!1,this._value="",this.name="",this.error=!1,this.type="text",this._internals=this.attachInternals()}get value(){return this._value}set value(e){this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value)}onInput(e){this.value=e.target.value}onChange(){this.dispatchEvent(new Pe(Pe.CHANGE,{bubbles:!0}))}render(){return l`${this.hideLabel===!1?this.renderLabel():""} <input .type="${this.type}" .value="${this.value}" .name="${this.name}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" @input="${this.onInput}" @change="${this.onChange}">`}}_.styles=[c`:host{display:inline-block}input{display:inline-block;height:var(--uui-size-11,33px);padding:var(--uui-size-1,3px) var(--uui-size-2,6px);font-family:inherit;font-size:15px;color:inherit;border-radius:0;box-sizing:border-box;background-color:var(--uui-input-background-color,var(--uui-interface-surface,#fefefe));border:1px solid var(--uui-input-border-color,var(--uui-interface-border,#c4c4c4));width:100%;outline:0}input:hover{border-color:var(--uui-input-border-color-hover,var(--uui-interface-border-hover,#b3b3b3))}input:focus{border-color:var(--uui-input-border-color-focus,var(--uui-interface-border-focus,#b3b3b3))}:host([invalid]){border-color:var(--uui-color-danger-background)}:host([type=color]){display:inline-flex;align-items:center}:host([type=color]) .label{margin-left:var(--uui-size-2,6px)}input[type=color]{width:30px;padding:0;border:none}input[disabled]{background-color:var(--uui-input-background-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));border:1px solid var(--uui-input-border-color-disabled,var(--uui-interface-border-disable));color:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) .label{color:var(--uui-interface-contrast-disabled,#73716e)}.label{display:inline-block;margin-bottom:var(--uui-size-1,3px);font-weight:700}:host([error]) input{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) input[disabled]{border:1px solid var(--uui-look-danger-border,#d42054)}`],_.formAssociated=!0,O([n()],_.prototype,"placeholder",2),O([n({type:Boolean,reflect:!0})],_.prototype,"disabled",2),O([n({type:Boolean,attribute:"hide-label",reflect:!0})],_.prototype,"hideLabel",2),O([w()],_.prototype,"_value",2),O([n()],_.prototype,"value",1),O([n({type:String})],_.prototype,"name",2),O([n({type:Boolean,reflect:!0})],_.prototype,"error",2),O([n({type:String})],_.prototype,"type",2),p("uui-input",_);var Sr=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,zr=(i,e,t,o)=>{for(var r=o>1?void 0:o?Pr(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Sr(e,t,r),r};class ze extends h{_changeCase(){this.slotNodes!==null&&this.slotNodes.forEach(e=>{var t;e.nodeName==="#text"&&e.nodeValue&&(e.nodeValue=(t=e.nodeValue)==null?void 0:t.toLowerCase())})}render(){return l`<slot @slotchange="${this._changeCase}"></slot>`}}ze.styles=[c`:host{background:var(--uui-interface-surface,#fff);border:1px solid var(--uui-interface-border,#d8d7d9);font-family:inherit;font-size:var(--uui-size-4,12px);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`],zr([se()],ze.prototype,"slotNodes",2);class $t extends h{render(){return l`<slot></slot>`}}$t.styles=[c`: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}`],p("uui-key",ze),p("uui-keyboard-shortcut",$t);class wt extends h{render(){return l`<div></div><div></div><div></div>`}}wt.styles=[c`div{display:inline-block;width:var(--uui-size-2,6px);height:var(--uui-size-2,6px);border:2px solid currentColor;border-radius:100%;-webkit-animation:loaderAnimation 1.4s infinite;animation:loaderAnimation 1.4s infinite}div:nth-child(1n){-webkit-animation-delay:0s;animation-delay:0s}div:nth-child(2n){-webkit-animation-delay:.15s;animation-delay:.15s}div:nth-child(3n){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}@keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}`],p("uui-loader",wt);/**
45
+ ) 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}`],d("uui-button-group",er);/**
40
46
  * @license
41
47
  * Copyright 2017 Google LLC
42
48
  * SPDX-License-Identifier: BSD-3-Clause
43
- */const Or={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ur=i=>(...e)=>({_$litDirective$:i,values:e});class Ir{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/**
49
+ */const fo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},vo=o=>(...e)=>({_$litDirective$:o,values:e});class go{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/**
50
+ * @license
51
+ * Copyright 2018 Google LLC
52
+ * SPDX-License-Identifier: BSD-3-Clause
53
+ */const ge=vo(class extends go{constructor(o){var e;if(super(o),o.type!==fo.ATTRIBUTE||o.name!=="style"||((e=o.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(o){return Object.keys(o).reduce((e,t)=>{const i=o[t];return i==null?e:e+`${t=t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(o,[e]){const{style:t}=o.element;if(this.ut===void 0){this.ut=new Set;for(const i in e)this.ut.add(i);return this.render(e)}this.ut.forEach(i=>{e[i]==null&&(this.ut.delete(i),i.includes("-")?t.removeProperty(i):t[i]="")});for(const i in e){const r=e[i];r!=null&&(this.ut.add(i),i.includes("-")?t.setProperty(i,r):t[i]=r)}return X}});var mo=Object.defineProperty,tr=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,rr=(o,e,t)=>e in o?mo(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,or=(o,e)=>{for(var t in e||(e={}))yo.call(e,t)&&rr(o,t,e[t]);if(tr)for(var t of tr(e))xo.call(e,t)&&rr(o,t,e[t]);return o};typeof require!="undefined"&&require;const ir=class extends Event{constructor(o,e={}){super(o,or(or({},ir.defaultInit),e));this.detail=e.detail||{}}};let C=ir;C.defaultInit={composed:!0};class Je extends C{}Je.CLICK="click";var wo=Object.defineProperty,_o=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var sr=(o,e,t,i)=>{for(var r=i>1?void 0:i?_o(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&wo(e,t,r),r};class Ae extends M("",c){constructor(){super(...arguments);this.position=0,this.vertical=!1}_onMouseMove(e){this.position=this.vertical?e.offsetY:e.offsetX}_handleClick(e){e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new Je(Je.CLICK))}render(){return l`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}"><div id="plus" style="${ge({left:this.vertical?"":this.position+"px",top:this.vertical?this.position+"px":""})}"><svg id="plus-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg></div></button>`}}Ae.styles=[oo,u`: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;-webkit-animation:${Xt};animation:${Xt}}: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)}`],sr([v()],Ae.prototype,"position",2),sr([n({type:Boolean,reflect:!0})],Ae.prototype,"vertical",2),d("uui-button-inline-create",Ae);class I extends C{}I.OPEN="open",I.SELECTED="selected",I.UNSELECTED="unselected";var ko=Object.defineProperty,$o=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var ar=(o,e,t,i)=>{for(var r=i>1?void 0:i?$o(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&ko(e,t,r),r};class N extends ze(c){constructor(){super();this.disabled=!1,this.error=!1,this.addEventListener("click",this.toggleSelect),this.addEventListener("keydown",this.handleSelectKeydown)}toggleSelect(){this.selectable!==!1&&(this.selected=!this.selected,this.dispatchEvent(new I(this.selected?I.SELECTED:I.UNSELECTED)))}select(){this.selected=!0}deselect(){this.selected=!1}handleSelectKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),this.toggleSelect())}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new I(I.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new I(I.OPEN)))}}N.styles=[u`:host{position:relative;display:flex;width:100%;justify-content:center;box-sizing:border-box;box-shadow: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]){border:var(--uui-card-border-width) solid var(--uui-look-danger-border,#d42054)}: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% + var(--uui-card-border-width) * 2);height:calc(100% + 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([error])::after{inset:calc(var(--uui-card-border-width) * -2);width:calc(100% + calc(var(--uui-card-border-width) * 4));height:calc(100% + calc(var(--uui-card-border-width) * 4))}`],ar([n({type:Boolean,reflect:!0,attribute:"disabled"})],N.prototype,"disabled",2),ar([n({type:Boolean,reflect:!0})],N.prototype,"error",2);var Eo=Object.defineProperty,Co=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var nr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Co(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Eo(e,t,r),r};class Ue extends N{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(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return l`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return l`<slot name="tag"></slot><slot name="actions"></slot><div id="open-part" tabindex="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>`}}Ue.styles=[...N.styles,u`: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}`],nr([n({type:String})],Ue.prototype,"name",2),nr([v()],Ue.prototype,"_iconSlotHasContent",2),d("uui-card-content-node",Ue);var Po=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Qe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Oo(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Po(e,t,r),r};class me extends N{constructor(){super(...arguments);this.name="",this.fileExt="",this.hasPreview=!1}queryPreviews(e){this.hasPreview=e.path[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!1?this.fileExt===""?l`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:l`<uui-symbol-file id="file-symbol" type="${this.fileExt}"></uui-symbol-file>`:""}render(){return l`${this.renderMedia()}<slot @slotchange="${this.queryPreviews}"></slot><slot name="tag"></slot><slot name="actions"></slot><button id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button><div id="select-border"></div>`}}me.styles=[...N.styles,u`#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);-o-object-fit:cover;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-size-4,12px);box-sizing:border-box;padding:var(--uui-size-2,6px) var(--uui-size-4,12px)}:host([disabled]) #open-part{pointer-events:none}#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}`],Qe([n({type:String})],me.prototype,"name",2),Qe([n({type:String,attribute:"file-ext"})],me.prototype,"fileExt",2),Qe([v()],me.prototype,"hasPreview",2),d("uui-card-media",me);var So=Object.defineProperty,zo=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Ao=(o,e,t,i)=>{for(var r=i>1?void 0:i?zo(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&So(e,t,r),r};class et extends N{constructor(){super(...arguments);this.name=""}render(){return l`<slot name="tag"></slot><slot name="actions"></slot><uui-avatar id="avatar" title="${this.name}" size="m"></uui-avatar><div id="open-part" tabindex="${this.disabled?"-1":"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div><slot></slot>`}}et.styles=[...N.styles,u`: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-size-4,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)}`],Ao([n({type:String})],et.prototype,"name",2),customElements.define("uui-card-user",et);var Uo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Do=(o,e,t,i)=>{for(var r=i>1?void 0:i?Io(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Uo(e,t,r),r};class tt extends c{constructor(){super(...arguments);this.open=!1}render(){return l`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}}tt.styles=[u`: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)}`],Do([n({type:Boolean,reflect:!0})],tt.prototype,"open",2),d("uui-caret",tt);var qo=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var lr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lo(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&qo(e,t,r),r};const No=(o,e)=>{class t extends e{constructor(){super(...arguments);this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(r){this._labelSlotHasContent=r.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`${this._labelSlotHasContent===!1?l`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${o||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return lr([n({type:String})],t.prototype,"label",2),lr([v()],t.prototype,"_labelSlotHasContent",2),t};var Ho=Object.defineProperty,ur=Object.getOwnPropertySymbols,jo=Object.prototype.hasOwnProperty,To=Object.prototype.propertyIsEnumerable,dr=(o,e,t)=>e in o?Ho(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,cr=(o,e)=>{for(var t in e||(e={}))jo.call(e,t)&&dr(o,t,e[t]);if(ur)for(var t of ur(e))To.call(e,t)&&dr(o,t,e[t]);return o};typeof require!="undefined"&&require;const hr=class extends Event{constructor(o,e={}){super(o,cr(cr({},hr.defaultInit),e));this.detail=e.detail||{}}};let pr=hr;pr.defaultInit={composed:!0};class rt extends pr{}rt.CHANGE="change";var Bo=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var V=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mo(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Bo(e,t,r),r};class k extends No("",c){constructor(e="checkbox"){super();this._value="on",this.name="",this.labelPosition="right",this.hideLabel=!1,this.error=!1,this._checked=!1,this.disabled=!1,this.inputRole=e,this._internals=this.attachInternals()}get value(){return this._value}set value(e){const t=this._value;this._value=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",t)}_onInputChange(){this.checked=this._input.checked,this.dispatchEvent(new rt(rt.CHANGE,{bubbles:!0}))}render(){return l`<label><input type="checkbox" id="input" ?disabled="${this.disabled}" @change="${this._onInputChange}" .checked="${this.checked}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.hideLabel===!1?this.renderLabel():""}</label>`}}k.styles=[u`:host{display:inline-block}label{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;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}: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}`],k.formAssociated=!0,V([L("#input")],k.prototype,"_input",2),V([n({type:String})],k.prototype,"value",1),V([n({type:String})],k.prototype,"name",2),V([n({type:String,attribute:"label-position",reflect:!0})],k.prototype,"labelPosition",2),V([n({type:Boolean,attribute:"hide-label",reflect:!0})],k.prototype,"hideLabel",2),V([n({type:Boolean,reflect:!0})],k.prototype,"error",2),V([n({type:Boolean,reflect:!0})],k.prototype,"checked",1),V([n({type:Boolean,reflect:!0})],k.prototype,"disabled",2);const Ro=ie`<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>`;class ot extends k{renderCheckbox(){return l`<div id="ticker"><div id="icon-check">${Ro}</div></div>`}}ot.styles=[...k.styles,Se,u`:host{--uui-checkbox-size:18px}#ticker{position:relative;grid-area:'input';display:flex;align-items:center;justify-content:center;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)}:host(:not([disabled])) label:active input:checked+#ticker::before{transform:scale(.9)}:host([error]) #ticker{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) label:hover #ticker{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) label:hover input:checked:not([disabled])+#ticker{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) label:focus input:checked+#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{-webkit-animation:${B};animation:${B}}:host([disabled]) input:checked+#ticker #icon-check{fill:var(--uui-interface-chosen-contrast-disabled,#e4e4e4)}`],ot.formAssociated=!0,d("uui-checkbox",ot);class br extends c{renderContent(){return l`<slot></slot>`}renderActions(){return l`<slot name="actions"></slot>`}render(){return l`${this.renderContent()}<div class="actions">${this.renderActions()}</div>`}}br.styles=[u`:host{position:relative;display:block;max-width:400px;padding:var(--uui-size-10,30px) var(--uui-size-14,42px);background-color:var(--uui-dialog-background-color,var(--uui-interface-surface,#fefefe));box-shadow:var(--uui-dialog-box-shadow,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))}.actions{margin-top:var(--uui-size-8,24px);display:flex;justify-content:flex-end}.actions>*,::slotted([slot=actions]){margin-left:var(--uui-size-4,12px)}`],d("uui-dialog",br);class it extends C{}it.CHANGE="change";var Vo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var G=(o,e,t,i)=>{for(var r=i>1?void 0:i?Go(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Vo(e,t,r),r};class S extends M("input label",c){constructor(){super();this.placeholder="",this.disabled=!1,this.hideLabel=!1,this._value="",this.name="",this.error=!1,this.type="text",this._internals=this.attachInternals()}get value(){return this._value}set value(e){this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value)}onInput(e){this.value=e.target.value}onChange(){this.dispatchEvent(new it(it.CHANGE,{bubbles:!0}))}render(){return l`${this.hideLabel===!1?this.renderLabel():""} <input .type="${this.type}" .value="${this.value}" .name="${this.name}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" @input="${this.onInput}" @change="${this.onChange}">`}}S.styles=[u`:host{display:inline-block}input{display:inline-block;height:var(--uui-size-11,33px);padding:var(--uui-size-1,3px) var(--uui-size-2,6px);font-family:inherit;font-size:15px;color:inherit;border-radius:0;box-sizing:border-box;background-color:var(--uui-input-background-color,var(--uui-interface-surface,#fefefe));border:1px solid var(--uui-input-border-color,var(--uui-interface-border,#c4c4c4));width:100%;outline:0}input:hover{border-color:var(--uui-input-border-color-hover,var(--uui-interface-border-hover,#b3b3b3))}input:focus{border-color:var(--uui-input-border-color-focus,var(--uui-interface-border-focus,#b3b3b3))}:host([invalid]){border-color:var(--uui-color-danger-background)}:host([type=color]){display:inline-flex;align-items:center}:host([type=color]) .label{margin-left:var(--uui-size-2,6px)}input[type=color]{width:30px;padding:0;border:none}input[disabled]{background-color:var(--uui-input-background-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));border:1px solid var(--uui-input-border-color-disabled,var(--uui-interface-border-disable));color:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) .label{color:var(--uui-interface-contrast-disabled,#73716e)}.label{display:inline-block;margin-bottom:var(--uui-size-1,3px);font-weight:700}:host([error]) input{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) input[disabled]{border:1px solid var(--uui-look-danger-border,#d42054)}`],S.formAssociated=!0,G([n()],S.prototype,"placeholder",2),G([n({type:Boolean,reflect:!0})],S.prototype,"disabled",2),G([n({type:Boolean,attribute:"hide-label",reflect:!0})],S.prototype,"hideLabel",2),G([v()],S.prototype,"_value",2),G([n()],S.prototype,"value",1),G([n({type:String})],S.prototype,"name",2),G([n({type:Boolean,reflect:!0})],S.prototype,"error",2),G([n({type:String})],S.prototype,"type",2),d("uui-input",S);var Wo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Ko=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fo(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Wo(e,t,r),r};class st extends c{_changeCase(){this.slotNodes!==null&&this.slotNodes.forEach(e=>{var t;e.nodeName==="#text"&&e.nodeValue&&(e.nodeValue=(t=e.nodeValue)==null?void 0:t.toLowerCase())})}render(){return l`<slot @slotchange="${this._changeCase}"></slot>`}}st.styles=[u`:host{background:var(--uui-interface-surface,#fff);border:1px solid var(--uui-interface-border,#d8d7d9);font-family:inherit;font-size:var(--uui-size-4,12px);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`],Ko([Ye()],st.prototype,"slotNodes",2);class fr extends c{render(){return l`<slot></slot>`}}fr.styles=[u`: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}`],d("uui-key",st),d("uui-keyboard-shortcut",fr);class vr extends c{render(){return l`<div></div><div></div><div></div>`}}vr.styles=[u`div{display:inline-block;width:var(--uui-size-2,6px);height:var(--uui-size-2,6px);border:2px solid currentColor;border-radius:100%;-webkit-animation:loaderAnimation 1.4s infinite;animation:loaderAnimation 1.4s infinite}div:nth-child(1n){-webkit-animation-delay:0s;animation-delay:0s}div:nth-child(2n){-webkit-animation-delay:.15s;animation-delay:.15s}div:nth-child(3n){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}@keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}`],d("uui-loader",vr);var Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var gr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yo(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Xo(e,t,r),r};const Zo=(o,e,t)=>Math.min(Math.max(o,e),t);class Ie extends c{constructor(){super(...arguments);this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=Zo(e,0,100),this.requestUpdate("progress",t)}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=this._animationDuration;this._animationDuration=e>=0?e:1,this.requestUpdate("animationDuration",t)}getProgressStyle(){return{maxWidth:`${this.progress}%`}}render(){return l`<div id="bar-container" class="${this.progress?"":"animate"}"><div id="bar" style="${this.progress?ge(this.getProgressStyle()):""}"></div><div id="bar-anim" style="animation-duration:${this.animationDuration}"></div><div id="bar-background"></div></div>`}}Ie.styles=[u`#bar-anim{-webkit-animation:bar-loading 1s infinite linear;animation:bar-loading 1s infinite linear;background:linear-gradient(-90deg,#ffffff45 0,#fff 25%,transparent 100%)}.animate #bar-anim{background:linear-gradient(-90deg,currentColor 0,currentColor 25%,transparent 100%)}.animate #bar{display:none}#bar-container{width:100%;height:4px;position:relative;overflow:hidden}#bar{transition:max-width 250ms ease}#bar,#bar-background{background:currentColor}#bar,#bar-anim,#bar-background{position:absolute;inset:0;height:100%}#bar-background{opacity:.3}@-webkit-keyframes bar-loading{0%{transform:scaleX(.4);transform-origin:-175% 0}100%{transform-origin:175% 0;transform:scaleX(.4)}}@keyframes bar-loading{0%{transform:scaleX(.4);transform-origin:-175% 0}100%{transform-origin:175% 0;transform:scaleX(.4)}}`],gr([n({type:Number})],Ie.prototype,"progress",1),gr([n({type:Number})],Ie.prototype,"animationDuration",1),d("uui-loader-bar",Ie);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var at=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qo(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Jo(e,t,r),r};class ye extends c{constructor(){super(...arguments);this.progress=0,this.showProgress=!1,this.resizeObserver=new ResizeObserver(()=>this.checkIsLargeChange()),this.isLarge=!1}_strokeDashOffset(){return this.progress?{strokeDasharray:`${this.progress}, 100`}:{strokeDasharray:"100"}}firstUpdated(){this.resizeObserver.observe(this.container)}disconnectedCallback(){this.resizeObserver.disconnect()}checkIsLargeChange(){const e=Number.parseFloat(this.container.clientHeight)>=30;this.isLarge!=e&&(this.isLarge=e,this.requestUpdate())}renderProgress(){return this.isLarge&&this.progress&&this.showProgress?l`<span id="progress-display">${this.progress}</span>`:""}render(){return l`<div id="svg-container" class="${this.progress?"":"animate"}"><svg id="spinner" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle id="circle2" cx="50%" cy="50%" r="15.9155"/><circle id="circle" cx="50%" cy="50%" r="15.9155" style="${ge(this._strokeDashOffset())}"/></svg> ${this.renderProgress()}</div>`}}ye.styles=[u`:host{display:inline-block;vertical-align:middle;line-height:0}#svg-container{overflow:hidden;display:inline-flex;justify-content:center;align-items:center;position:relative;width:1em;height:1em}.animate #spinner{-webkit-animation:3s linear infinite svg-animation;animation:3s linear infinite svg-animation}.animate #circle{-webkit-animation:1.4s ease-in infinite circle-animation;animation:1.4s ease-in infinite circle-animation}#spinner{width:100%}#circle{display:block;fill:transparent;stroke:currentColor;stroke-linecap:round;stroke-dasharray:0 301.592894745;stroke-width:6px;transform-origin:50% 50%;transform:rotate(-90deg);transition:stroke-dasharray .5s ease}#circle2{fill:transparent;stroke:currentColor;stroke-width:6px;opacity:.5}#progress-display{position:absolute;left:0;top:50%;right:0;stroke:currentColor;transform:translateY(-50%);font-size:.3em;font-weight:700;text-align:center}@-webkit-keyframes svg-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes svg-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-webkit-keyframes circle-animation{0%,25%{stroke-dashoffset:100;transform:rotate(0)}50%,75%{stroke-dashoffset:20;transform:rotate(45deg)}100%{stroke-dashoffset:100;transform:rotate(360deg)}}@keyframes circle-animation{0%,25%{stroke-dashoffset:100;transform:rotate(0)}50%,75%{stroke-dashoffset:20;transform:rotate(45deg)}100%{stroke-dashoffset:100;transform:rotate(360deg)}}`],at([n({type:Number})],ye.prototype,"progress",2),at([n({type:Boolean,reflect:!0,attribute:"show-progress"})],ye.prototype,"showProgress",2),at([L("#svg-container")],ye.prototype,"container",2),d("uui-loader-circle",ye);class W extends C{}W.SHOW_CHILDREN="show-children",W.HIDE_CHILDREN="hide-children",W.CLICK_LABEL="click-label";var ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?ti(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&ei(e,t,r),r};class Z extends ze(Ze(M("label",c))){constructor(){super(...arguments);this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1}onCaretClicked(){this.showChildren=!this.showChildren;const e=this.showChildren?W.SHOW_CHILDREN:W.HIDE_CHILDREN,t=new W(e);this.dispatchEvent(t)}onLabelClicked(){const e=new W(W.CLICK_LABEL);this.dispatchEvent(e),this.toggleSelect()}toggleSelect(){this.selectable!==!1&&(this.selected=!this.selected)}iconSlotChanged(e){this.iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}render(){return l`<div id="menu-item" aria-label="menuitem" role="menuitem">${this.hasChildren?l`<button id="caret-button" @click="${this.onCaretClicked}"><uui-symbol-expand ?open="${this.showChildren}"></uui-symbol-expand></button>`:""} <button id="label-button" @click="${this.onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}"><slot name="icon" id="icon" style="${this.iconSlotHasContent?"":"display: none;"}" @slotchange="${this.iconSlotChanged}"></slot>${this.renderLabel()}</button><div id="label-button-background"></div><slot id="actions-container" name="actions"></slot>${this.loading?l`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?l`<slot></slot>`:""}`}}Z.styles=[u`:host{display:block;background-color:var(--uui-interface-surface,#fefefe);--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1)}#menu-item{position:relative;display:flex;align-items:stretch;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:block;font-family:inherit;padding:0;text-align:left;box-shadow:none;border:none;color:inherit;background-color:transparent;cursor:pointer;z-index:1;min-height:var(--uui-size-12,36px)}#label-button{flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#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}#menu-item:hover #actions-container{opacity:1}#loader{position:absolute;width:100%;bottom:0}#icon{font-size:16px;margin-bottom:var(--uui-size-1,3px);margin-right:var(--uui-size-2,6px);display:inline-block}:host([disabled]) #label-button{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]) button{color:var(--uui-interface-active-contrast,#162335)}:host([active]) 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]) button{color:var(--uui-interface-select-contrast,#fefefe)}:host([selected]) 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)}`],xe([n({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),xe([n({type:Boolean,reflect:!0,attribute:"show-children"})],Z.prototype,"showChildren",2),xe([n({type:Boolean,attribute:"has-children"})],Z.prototype,"hasChildren",2),xe([n({type:Boolean,attribute:"loading"})],Z.prototype,"loading",2),xe([v()],Z.prototype,"iconSlotHasContent",2),d("uui-menu-item",Z);class J extends C{}J.CHANGE="change";var ri=Object.defineProperty,oi=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var F=(o,e,t,i)=>{for(var r=i>1?void 0:i?oi(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&ri(e,t,r),r};const ii=45,nt=(o,e,t)=>Math.min(Math.max(o,e),t),si=(o,e)=>Array.from({length:e-o+1},(t,i)=>o+i);class D extends c{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.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current)}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(e){(e.has("current")||e.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const e=this.offsetWidth,t=Array.from(this._navButtons).reduce((s,a)=>s+a.getBoundingClientRect().width,0),r=(e-t)/ii/2;this._range=Math.max(1,Math.floor(r)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(e){const t=e<this._range?1:e<this.total-this._range?e-this._range:this.total-this._range*2,i=e<=this._range?this._range*2+1:e<this.total-this._range?e+this._range:this.total;return si(nt(t,1,this.total),nt(i,1,this.total))}get current(){return this._current}set current(e){const t=this._current;this._current=nt(e,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",t)}goToNextPage(){this.current++,this.dispatchEvent(new J(J.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new J(J.CHANGE))}goToPage(e){this.current=e,this.dispatchEvent(new J(J.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const e=this.renderRoot.querySelector(".active");e&&e.focus()})}renderFirst(){return l`<uui-button compact="compact" look="outline" class="nav" role="listitem" aria-label="Go to first page" ?disabled="${this._current===1}" @click="${()=>this.goToPage(1)}">First</uui-button>`}renderPrevious(){return l`<uui-button compact="compact" look="outline" class="nav" role="listitem" aria-label="Go to previous page" ?disabled="${this._current===1}" @click="${this.goToPreviousPage}">Previous</uui-button>`}renderNext(){return l`<uui-button compact="compact" look="outline" role="listitem" class="nav" aria-label="Go to next page" ?disabled="${this._current===this.total}" @click="${this.goToNextPage}">Next</uui-button>`}renderLast(){return l`<uui-button compact="compact" look="outline" role="listitem" class="nav" aria-label="Go to last page" ?disabled="${this.total===this._current}" @click="${()=>this.goToPage(this.total)}">Last</uui-button>`}renderDots(){return l`<uui-button compact="compact" look="outline" tabindex="-1" class="dots">...</uui-button>`}renderPage(e){return l`<uui-button compact="compact" look="outline" role="listitem" aria-label="Go to page ${e}" class="${"page"+(e===this._current?" active":"")}" tabindex="${e===this._current?"-1":""}" @click="${()=>{e!==this._current&&(this.goToPage(e),this.focusActivePage())}}">${e}</uui-button>`}renderNavigationLeft(){return l`${this.renderFirst()} ${this.renderPrevious()} ${this._visiblePages.includes(1)?"":this.renderDots()}`}renderNavigationRight(){return l`${this._visiblePages.includes(this.total)?"":this.renderDots()} ${this.renderNext()} ${this.renderLast()}`}render(){return l`<uui-button-group role="list" id="pages">${this.renderNavigationLeft()} ${this._visiblePages.map(e=>this.renderPage(e))} ${this.renderNavigationRight()}</uui-button-group>`}}D.styles=[u`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}`],F([Kr("uui-button.nav")],D.prototype,"_navButtons",2),F([L("#pages")],D.prototype,"_pagesGroup",2),F([n()],D.prototype,"label",2),F([n({reflect:!0,attribute:"aria-label"})],D.prototype,"ariaLabel",2),F([n({type:Number})],D.prototype,"total",2),F([v()],D.prototype,"_range",2),F([v()],D.prototype,"_visiblePages",2),F([n({type:Number})],D.prototype,"current",1),d("uui-pagination",D);var ai=Object.defineProperty,ni=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var li=(o,e,t,i)=>{for(var r=i>1?void 0:i?ni(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&ai(e,t,r),r};const ui=(o,e,t)=>Math.min(Math.max(o,e),t);class lt extends c{constructor(){super(...arguments);this._progress=0}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=ui(e,0,100),this.requestUpdate("progress",t)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return l`<div id="bar" style="${ge(this._getProgressStyle())}"></div>`}}lt.styles=[u`: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%}`],li([n({type:Number})],lt.prototype,"progress",1),d("uui-progress-bar",lt);class we extends C{}we.CHANGE="change";var di=Object.defineProperty,ci=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var le=(o,e,t,i)=>{for(var r=i>1?void 0:i?ci(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&di(e,t,r),r};class H extends c{constructor(){super(...arguments);this.name="",this.value="",this.label="",this.checked=!1,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,e&&(this.setAttribute("aria-hidden","true"),this.setAttribute("tabindex","-1")),this.requestUpdate("disabled",t)}_onChange(){this.inputElement.checked?this.check():this.uncheck()}uncheck(){this.checked=!1,this.setAttribute("tabindex","-1"),this.setAttribute("aria-checked","false")}check(){this.checked=!0,this.dispatchEvent(new we(we.CHANGE)),this.disabled||(this.setAttribute("tabindex","0"),this.setAttribute("aria-checked","true"),this.focus())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.setAttribute("aria-checked","false")}render(){return l`<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?l`<span>${this.label}</span>`:l`<slot></slot>`}</div></label>`}}H.styles=[Se,u`:host{display:block;box-sizing:border-box;font-family:inherit;color:currentColor;--uui-radio-button-size:calc(var(--uui-size-2,6px) * 3);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}input:checked~#button::after{transform:translate(-50%,-50%) scale(1)}:host(:hover) #button{border:1px solid var(--uui-interface-border-hover,#b3b3b3)}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{-webkit-animation:${B};animation:${B}}@media (prefers-reduced-motion){:host([disabled]:active) #button{-webkit-animation:none;animation:none}#button::after{transition:none}}`],le([L("#input")],H.prototype,"inputElement",2),le([n({type:String})],H.prototype,"name",2),le([n({type:String})],H.prototype,"value",2),le([n({type:String})],H.prototype,"label",2),le([n({type:Boolean,reflect:!0})],H.prototype,"checked",2),le([n({type:Boolean,reflect:!0})],H.prototype,"disabled",1);class ut extends C{}ut.CHANGE="change";var hi=Object.defineProperty,pi=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var _e=(o,e,t,i)=>{for(var r=i>1?void 0:i?pi(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&hi(e,t,r),r};const bi="ArrowLeft",fi="ArrowUp",vi="ArrowRight",gi="ArrowDown",mi=" ";class Q extends c{constructor(){super();this._disabled=!1,this._value="",this._name="",this._selected=null,this._lastSelectedIndex=0,this._handleSelectOnClick=e=>{this._setSelected(this.radioElements.indexOf(e.target)),this._fireChangeEvent()},this._internals=this.attachInternals(),this.addEventListener("keydown",this._onKeydown)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}getRadioElements(){return this.slotElement?this.slotElement.assignedElements({flatten:!0}).filter(e=>e instanceof H):[]}_addNameToRadios(e,t){t.forEach(i=>i.name=e)}_toggleDisableOnChildren(e){this.radioElements.forEach(t=>t.disabled=e)}_handleSlotChange(){this.radioElements&&this.radioElements.forEach(t=>{t.removeEventListener(we.CHANGE,this._handleSelectOnClick)}),this.radioElements=this.getRadioElements(),this.radioElements.forEach(t=>{t.addEventListener(we.CHANGE,this._handleSelectOnClick)});const e=this.radioElements.filter(t=>t.checked===!0);if(e.length>1)throw this.radioElements.forEach(t=>{t.checked=!1}),new Error("There can only be one checked element among the <uui-radio-group> children");e.length===1&&(this._selected=this.radioElements.indexOf(e[0]),this.value=e[0].value),this.radioElements.length>0&&this.radioElements[this.enabledElementsIndexes[0]].setAttribute("tabindex","0"),this._addNameToRadios(this.name,this.radioElements),this.disabled&&this._toggleDisableOnChildren(!0)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.requestUpdate("disabled",t),this._toggleDisableOnChildren(e)}get value(){return this._value}set value(e){const t=this._value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",t)}get name(){return this._name}set name(e){const t=this._name;this._name=e,this.radioElements&&this._addNameToRadios(this._name,this.radioElements),this.requestUpdate("name",t)}get selected(){return this._selected}set selected(e){const t=this._selected;this._setSelected(e),this._selected!==null&&this.radioElements[this._selected].check(),this.requestUpdate("selected",t)}_setSelected(e){this._selected=e,this._lastSelectedIndex=this.enabledElementsIndexes.findIndex(i=>i===this._selected),e===null&&this.radioElements[0].setAttribute("tabindex","0"),this.radioElements.filter(i=>this.radioElements.indexOf(i)!==this._selected).forEach(i=>i.uncheck()),this.value=e!==null?this.radioElements[e].value:""}get enabledElementsIndexes(){const e=[];return this.radioElements.forEach(t=>{t.disabled===!1&&e.push(this.radioElements.indexOf(t))}),e}_selectPreviousElement(){this.selected===null||this.selected===this.enabledElementsIndexes[0]?(this.selected=this.enabledElementsIndexes[this.enabledElementsIndexes.length-1],this._lastSelectedIndex=this.enabledElementsIndexes.length-1):(this._lastSelectedIndex--,this.selected=this.enabledElementsIndexes[this._lastSelectedIndex]),this._fireChangeEvent()}_selectNextElement(){this.selected===null||this.selected===this.enabledElementsIndexes[this.enabledElementsIndexes.length-1]?(this.selected=this.enabledElementsIndexes[0],this._lastSelectedIndex=0):(this._lastSelectedIndex++,this.selected=this.enabledElementsIndexes[this._lastSelectedIndex]),this._fireChangeEvent()}_onKeydown(e){switch(e.key){case bi:case fi:{e.preventDefault(),this._selectPreviousElement();break}case vi:case gi:{e.preventDefault(),this._selectNextElement();break}case mi:this.selected===null&&(this.selected=this.enabledElementsIndexes[0])}}_fireChangeEvent(){this.dispatchEvent(new ut(ut.CHANGE))}render(){return l`<slot @slotchange="${this._handleSlotChange}"></slot>`}}Q.formAssociated=!0,_e([L("slot")],Q.prototype,"slotElement",2),_e([n({type:Boolean,reflect:!0})],Q.prototype,"disabled",1),_e([v()],Q.prototype,"value",1),_e([n({type:String})],Q.prototype,"name",1),_e([n({type:Number})],Q.prototype,"selected",1),d("uui-radio",H),d("uui-radio-group",Q);class mr extends c{render(){return l`<slot></slot>`}}mr.styles=[u`: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}`],d("uui-ref-list",mr);class q extends C{}q.OPEN="open",q.SELECTED="selected",q.UNSELECTED="unselected";var yi=Object.defineProperty,xi=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var yr=(o,e,t,i)=>{for(var r=i>1?void 0:i?xi(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&yi(e,t,r),r};class ee extends ze(c){constructor(){super();this.disabled=!1,this.error=!1,this.addEventListener("click",this.toggleSelect),this.addEventListener("keydown",this.handleSelectKeydown)}toggleSelect(){this.selectable!==!1&&(this.selected=!this.selected,this.dispatchEvent(new q(this.selected?q.SELECTED:q.UNSELECTED)))}select(){this.selected=!0}deselect(){this.selected=!1}handleSelectKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),this.toggleSelect())}handleOpenClick(e){e.stopPropagation(),this.dispatchEvent(new q(q.OPEN))}handleOpenKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new q(q.OPEN)))}}ee.styles=[u`: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{-webkit-animation:not-selected--hover 1.2s infinite;animation:not-selected--hover 1.2s infinite}@-webkit-keyframes not-selected--hover{0%,100%{opacity:.66}50%{opacity:1}}@keyframes not-selected--hover{0%,100%{opacity:.66}50%{opacity:1}}:host([selectable][selected]:hover) #select-border::after{-webkit-animation:selected--hover 1.4s infinite;animation:selected--hover 1.4s infinite}@-webkit-keyframes selected--hover{0%,100%{opacity:1}50%{opacity:.66}}@keyframes selected--hover{0%,100%{opacity:1}50%{opacity:.66}}:host([selectable]) #open-part:hover+#select-border::after{-webkit-animation:none;animation: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}`],yr([n({type:Boolean,reflect:!0})],ee.prototype,"disabled",2),yr([n({type:Boolean,reflect:!0})],ee.prototype,"error",2);var wi=Object.defineProperty,_i=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var dt=(o,e,t,i)=>{for(var r=i>1?void 0:i?_i(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&wi(e,t,r),r};class ke extends ee{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>'}_onSlotIconChange(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return l`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}_renderFallbackIcon(){return l`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return l`<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>`}}ke.styles=[...ee.styles,u`: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-size-4,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)}`],dt([n({type:String})],ke.prototype,"name",2),dt([n({type:String})],ke.prototype,"detail",2),dt([v()],ke.prototype,"_iconSlotHasContent",2),d("uui-ref-node",ke);var ki=Object.defineProperty,$i=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var ct=(o,e,t,i)=>{for(var r=i>1?void 0:i?$i(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&ki(e,t,r),r};class w extends ee{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>'}_onSlotIconChange(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return l`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}_renderFallbackIcon(){return l`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return l`<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>`}}w.styles=[...ee.styles,u`: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-size-4,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)}`],ct([n({type:String})],w.prototype,"name",2),ct([n({type:String})],w.prototype,"detail",2),ct([v()],w.prototype,"_iconSlotHasContent",2);var Ei=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Pi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ci(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Ei(e,t,r),r};class ht extends w{constructor(){super(...arguments);this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M142.212 397.267l106.052-48.024L398.479 199.03l-26.405-26.442-90.519 90.517-15.843-15.891 90.484-90.486-16.204-16.217-150.246 150.243-47.534 106.513zm74.904-100.739l23.285-23.283 3.353 22.221 22.008 3.124-23.283 23.313-46.176 20.991 20.813-46.366zm257.6-173.71L416.188 64.3l-49.755 49.785 58.504 58.503 49.779-49.77zM357.357 300.227h82.826v116.445H68.929V300.227h88.719v-30.648H38.288v177.733h432.537V269.578H357.357v30.649z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),l`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}}ht.styles=[...w.styles],Pi([n({type:String})],ht.prototype,"alias",2),d("uui-ref-node-data-type",ht);var Oi=Object.defineProperty,Si=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var zi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Si(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Oi(e,t,r),r};class pt extends w{constructor(){super(...arguments);this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M49.035 60.434h413.93v33.592H49.035zm0 82.005h86.578v86.577H49.035zm163.677 0h86.576v86.577h-86.576zm163.676 0h86.576v86.577h-86.576zM49.035 282.984h413.93v33.593H49.035zm0 82.006h86.578v86.576H49.035zm163.677 0h86.576v86.576h-86.576zm163.676 0h86.576v86.576h-86.576z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),l`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}}pt.styles=[...w.styles],zi([n({type:String})],pt.prototype,"alias",2),d("uui-ref-node-document-type",pt);class xr extends w{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>'}}xr.styles=[...w.styles],d("uui-ref-node-form",xr);var Ai=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Ii=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ui(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Ai(e,t,r),r};class bt extends w{constructor(){super(...arguments);this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),l`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}}bt.styles=[...w.styles],Ii([n({type:String,attribute:"group-name"})],bt.prototype,"groupName",2),d("uui-ref-node-member",bt);var Di=Object.defineProperty,qi=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var wr=(o,e,t,i)=>{for(var r=i>1?void 0:i?qi(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Di(e,t,r),r};class De extends w{constructor(){super(...arguments);this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M161.08 106.29l-70.073 40.452 165.498 95.545 70.076-40.453L161.08 106.29zm259.851 41.077L255.435 51.815l-63.578 36.709 165.499 95.542 63.575-36.699zm-150.11 122.19V459.43l164.966-95.238V174.32l-164.966 95.237zM75.082 364.191l164.959 95.234V268.32L75.082 173.09v191.101z"></path></svg>',this.version="",this.author=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.version!==""&&e.push(this.version),this.author!==""&&e.push(this.author),l`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}}De.styles=[...w.styles],wr([n({type:String})],De.prototype,"version",2),wr([n({type:String})],De.prototype,"author",2),d("uui-ref-node-package",De);var Li=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Hi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ni(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Li(e,t,r),r};class ft extends w{constructor(){super(...arguments);this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),l`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}}ft.styles=[...w.styles],Hi([n({type:String,attribute:"group-name"})],ft.prototype,"groupName",2),d("uui-ref-node-user",ft);class _r extends c{connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0")}render(){return l`<slot></slot>`}}_r.styles=[u`: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}`],d("uui-scroll-container",_r);/**
44
54
  * @license
45
55
  * Copyright 2018 Google LLC
46
56
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const Oe=Ur(class extends Ir{constructor(i){var e;if(super(i),i.type!==Or.ATTRIBUTE||i.name!=="style"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce((e,t)=>{const o=i[t];return o==null?e:e+`${t=t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(i,[e]){const{style:t}=i.element;if(this.ut===void 0){this.ut=new Set;for(const o in e)this.ut.add(o);return this.render(e)}this.ut.forEach(o=>{e[o]==null&&(this.ut.delete(o),o.includes("-")?t.removeProperty(o):t[o]="")});for(const o in e){const r=e[o];r!=null&&(this.ut.add(o),o.includes("-")?t.setProperty(o,r):t[o]=r)}return D}});var Dr=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,Et=(i,e,t,o)=>{for(var r=o>1?void 0:o?Lr(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Dr(e,t,r),r};const Nr=(i,e,t)=>Math.min(Math.max(i,e),t);class ce extends h{constructor(){super(...arguments);this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=Nr(e,0,100),this.requestUpdate("progress",t)}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=this._animationDuration;this._animationDuration=e>=0?e:1,this.requestUpdate("animationDuration",t)}getProgressStyle(){return{maxWidth:`${this.progress}%`}}render(){return l`<div id="bar-container" class="${this.progress?"":"animate"}"><div id="bar" style="${this.progress?Oe(this.getProgressStyle()):""}"></div><div id="bar-anim" style="animation-duration:${this.animationDuration}"></div><div id="bar-background"></div></div>`}}ce.styles=[c`#bar-anim{-webkit-animation:bar-loading 1s infinite linear;animation:bar-loading 1s infinite linear;background:linear-gradient(-90deg,#ffffff45 0,#fff 25%,transparent 100%)}.animate #bar-anim{background:linear-gradient(-90deg,currentColor 0,currentColor 25%,transparent 100%)}.animate #bar{display:none}#bar-container{width:100%;height:4px;position:relative;overflow:hidden}#bar{transition:max-width 250ms ease}#bar,#bar-background{background:currentColor}#bar,#bar-anim,#bar-background{position:absolute;inset:0;height:100%}#bar-background{opacity:.3}@-webkit-keyframes bar-loading{0%{transform:scaleX(.4);transform-origin:-175% 0}100%{transform-origin:175% 0;transform:scaleX(.4)}}@keyframes bar-loading{0%{transform:scaleX(.4);transform-origin:-175% 0}100%{transform-origin:175% 0;transform:scaleX(.4)}}`],Et([n({type:Number})],ce.prototype,"progress",1),Et([n({type:Number})],ce.prototype,"animationDuration",1),p("uui-loader-bar",ce);var Tr=Object.defineProperty,Hr=Object.getOwnPropertyDescriptor,Ue=(i,e,t,o)=>{for(var r=o>1?void 0:o?Hr(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Tr(e,t,r),r};class te extends h{constructor(){super(...arguments);this._largeSizes=["l","xl"],this.size="s",this.progress=0,this.showProgress=!1}_strokeDashOffset(){return this.progress?{strokeDasharray:`${this.progress}, 100`}:{strokeDasharray:"100"}}render(){return l`<div id="svg-container" class="${this.progress?"":"animate"}"><svg id="spinner" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle id="circle2" cx="50%" cy="50%" r="15.9155"/><circle id="circle" cx="50%" cy="50%" r="15.9155" style="${Oe(this._strokeDashOffset())}"/></svg> ${this._largeSizes.includes(this.size)&&this.progress&&this.showProgress?l`<span id="progress-display">${this.progress}</span>`:""}</div>`}}te.styles=[c`:host{--uui-loader-circle-size:var(--uui-size-4,12px);display:inline-block;vertical-align:middle;line-height:0}:host([size=xs]){--uui-loader-circle-size:var(--uui-size-3,9px)}:host([size='s']){--uui-loader-circle-size:var(--uui-size-4,12px)}:host([size='m']){--uui-loader-circle-size:var(--uui-size-8,24px)}:host([size='l']){--uui-loader-circle-size:var(--uui-size-10,30px)}:host([size=xl]){--uui-loader-circle-size:var(--uui-size-14,42px)}:host([size=xxl]){--uui-loader-circle-size:var(--uui-size-20,60px)}#svg-container{overflow:hidden;display:inline-flex;justify-content:center;align-items:center;position:relative;width:var(--uui-loader-circle-size);height:var(--uui-loader-circle-size)}.animate #spinner{-webkit-animation:3s linear infinite svg-animation;animation:3s linear infinite svg-animation}.animate #circle{-webkit-animation:1.4s ease-in infinite circle-animation;animation:1.4s ease-in infinite circle-animation}#spinner{width:100%}#circle{display:block;fill:transparent;stroke:currentColor;stroke-linecap:round;stroke-dasharray:0 301.592894745;stroke-width:6px;transform-origin:50% 50%;transform:rotate(-90deg);transition:stroke-dasharray .5s ease}#circle2{fill:transparent;stroke:currentColor;stroke-width:6px;opacity:.5}#progress-display{position:absolute;left:0;top:50%;right:0;stroke:currentColor;transform:translateY(-50%);font-size:10px;font-weight:700;text-align:center}@-webkit-keyframes svg-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes svg-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-webkit-keyframes circle-animation{0%,25%{stroke-dashoffset:100;transform:rotate(0)}50%,75%{stroke-dashoffset:20;transform:rotate(45deg)}100%{stroke-dashoffset:100;transform:rotate(360deg)}}@keyframes circle-animation{0%,25%{stroke-dashoffset:100;transform:rotate(0)}50%,75%{stroke-dashoffset:20;transform:rotate(45deg)}100%{stroke-dashoffset:100;transform:rotate(360deg)}}`],Ue([n({reflect:!0})],te.prototype,"size",2),Ue([n({type:Number})],te.prototype,"progress",2),Ue([n({type:Boolean,reflect:!0,attribute:"show-progress"})],te.prototype,"showProgress",2),p("uui-loader-circle",te);class re extends W{}re.CHANGE="change";var jr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,q=(i,e,t,o)=>{for(var r=o>1?void 0:o?Rr(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&jr(e,t,r),r};class E extends h{constructor(){super(...arguments);this.name="",this.value="",this.label="",this.checked=!1,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,e&&(this.setAttribute("aria-hidden","true"),this.setAttribute("tabindex","-1")),this.requestUpdate("disabled",t)}_onChange(){this.inputElement.checked?this.check():this.uncheck()}uncheck(){this.checked=!1,this.setAttribute("tabindex","-1"),this.setAttribute("aria-checked","false")}check(){this.checked=!0,this.dispatchEvent(new re(re.CHANGE)),this.disabled||(this.setAttribute("tabindex","0"),this.setAttribute("aria-checked","true"),this.focus())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.setAttribute("aria-checked","false")}render(){return l`<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?l`<span>${this.label}</span>`:l`<slot></slot>`}</div></label>`}}E.styles=[de,c`:host{display:block;box-sizing:border-box;font-family:inherit;color:currentColor;--uui-radio-button-size:calc(var(--uui-size-2,6px) * 3);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}input:checked~#button::after{transform:translate(-50%,-50%) scale(1)}:host(:hover) #button{border:1px solid var(--uui-interface-border-hover,#b3b3b3)}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{-webkit-animation:${S};animation:${S}}@media (prefers-reduced-motion){:host([disabled]:active) #button{-webkit-animation:none;animation:none}#button::after{transition:none}}`],q([T("#input")],E.prototype,"inputElement",2),q([n({type:String})],E.prototype,"name",2),q([n({type:String})],E.prototype,"value",2),q([n({type:String})],E.prototype,"label",2),q([n({type:Boolean,reflect:!0})],E.prototype,"checked",2),q([n({type:Boolean,reflect:!0})],E.prototype,"disabled",1);class Ie extends W{}Ie.CHANGE="change";var Br=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,oe=(i,e,t,o)=>{for(var r=o>1?void 0:o?Mr(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Br(e,t,r),r};const Vr="ArrowLeft",Wr="ArrowUp",qr="ArrowRight",Gr="ArrowDown",Xr=" ";class N extends h{constructor(){super();this._disabled=!1,this._value="",this._name="",this._selected=null,this._lastSelectedIndex=0,this._handleSelectOnClick=e=>{this._setSelected(this.radioElements.indexOf(e.target)),this._fireChangeEvent()},this._internals=this.attachInternals(),this.addEventListener("keydown",this._onKeydown)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}getRadioElements(){return this.slotElement?this.slotElement.assignedElements({flatten:!0}).filter(e=>e instanceof E):[]}_addNameToRadios(e,t){t.forEach(o=>o.name=e)}_toggleDisableOnChildren(e){this.radioElements.forEach(t=>t.disabled=e)}_handleSlotChange(){this.radioElements&&this.radioElements.forEach(t=>{t.removeEventListener(re.CHANGE,this._handleSelectOnClick)}),this.radioElements=this.getRadioElements(),this.radioElements.forEach(t=>{t.addEventListener(re.CHANGE,this._handleSelectOnClick)});const e=this.radioElements.filter(t=>t.checked===!0);if(e.length>1)throw this.radioElements.forEach(t=>{t.checked=!1}),new Error("There can only be one checked element among the <uui-radio-group> children");e.length===1&&(this._selected=this.radioElements.indexOf(e[0]),this.value=e[0].value),this.radioElements.length>0&&this.radioElements[this.enabledElementsIndexes[0]].setAttribute("tabindex","0"),this._addNameToRadios(this.name,this.radioElements),this.disabled&&this._toggleDisableOnChildren(!0)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.requestUpdate("disabled",t),this._toggleDisableOnChildren(e)}get value(){return this._value}set value(e){const t=this._value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",t)}get name(){return this._name}set name(e){const t=this._name;this._name=e,this.radioElements&&this._addNameToRadios(this._name,this.radioElements),this.requestUpdate("name",t)}get selected(){return this._selected}set selected(e){const t=this._selected;this._setSelected(e),this._selected!==null&&this.radioElements[this._selected].check(),this.requestUpdate("selected",t)}_setSelected(e){this._selected=e,this._lastSelectedIndex=this.enabledElementsIndexes.findIndex(o=>o===this._selected),e===null&&this.radioElements[0].setAttribute("tabindex","0"),this.radioElements.filter(o=>this.radioElements.indexOf(o)!==this._selected).forEach(o=>o.uncheck()),this.value=e!==null?this.radioElements[e].value:""}get enabledElementsIndexes(){const e=[];return this.radioElements.forEach(t=>{t.disabled===!1&&e.push(this.radioElements.indexOf(t))}),e}_selectPreviousElement(){this.selected===null||this.selected===this.enabledElementsIndexes[0]?(this.selected=this.enabledElementsIndexes[this.enabledElementsIndexes.length-1],this._lastSelectedIndex=this.enabledElementsIndexes.length-1):(this._lastSelectedIndex--,this.selected=this.enabledElementsIndexes[this._lastSelectedIndex]),this._fireChangeEvent()}_selectNextElement(){this.selected===null||this.selected===this.enabledElementsIndexes[this.enabledElementsIndexes.length-1]?(this.selected=this.enabledElementsIndexes[0],this._lastSelectedIndex=0):(this._lastSelectedIndex++,this.selected=this.enabledElementsIndexes[this._lastSelectedIndex]),this._fireChangeEvent()}_onKeydown(e){switch(e.key){case Vr:case Wr:{e.preventDefault(),this._selectPreviousElement();break}case qr:case Gr:{e.preventDefault(),this._selectNextElement();break}case Xr:this.selected===null&&(this.selected=this.enabledElementsIndexes[0])}}_fireChangeEvent(){this.dispatchEvent(new Ie(Ie.CHANGE))}render(){return l`<slot @slotchange="${this._handleSlotChange}"></slot>`}}N.formAssociated=!0,oe([T("slot")],N.prototype,"slotElement",2),oe([n({type:Boolean,reflect:!0})],N.prototype,"disabled",1),oe([w()],N.prototype,"value",1),oe([n({type:String})],N.prototype,"name",1),oe([n({type:Number})],N.prototype,"selected",1),p("uui-radio",E),p("uui-radio-group",N);const Kr=c`input[type=range]{left:0;position:absolute;top:0;height:100%;width:100%;z-index:2;height:100%;-webkit-appearance:none;margin:0;padding:0;border:0 none;background:0 0;color:transparent;overflow:visible;border:none}input[type=range]:focus{outline:0}input[type=range]::-webkit-slider-runnable-track{width:100%;height:100%;-webkit-appearance:none;margin:0;padding:0;border:none;background:0 0;color:transparent;overflow:visible;order:none}input[type=range]:focus::-webkit-slider-runnable-track{background:0 0;border:none}input[type=range]::-moz-range-track{width:100%;height:100%;-moz-appearance:none;margin:0;padding:0;border:0 none;background:0 0;color:transparent;overflow:visible}input[type=range]::-ms-track{width:100%;height:100%;-webkit-appearance:none;margin:0;padding:0;border:0 none;background:0 0;color:transparent;overflow:visible}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper{background:0 0;border:0 none}input[type=range]::-ms-tooltip{display:none}input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:12px;border:0 none;background:0 0;cursor:pointer}input[type=range]::-webkit-slider-thumb{width:18px;height:18px;border-radius:12px;border:0 none;background:0 0;cursor:pointer;-webkit-appearance:none}input[type=range]::-ms-thumb{width:18px;height:18px;border-radius:12px;border:0 none;background:0 0;cursor:pointer}input[type=range]:focus::-ms-fill-lower{background:0 0}input[type=range]:focus::-ms-fill-upper{background:0 0}`;class De extends W{}De.INPUT="input";var Fr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,k=(i,e,t,o)=>{for(var r=o>1?void 0:o?Zr(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Fr(e,t,r),r};const Jr=(i,e)=>C`${i.map(t=>e/6>=5?C`<circle class="uui-slider-circle" cx="${e*i.indexOf(t)}" cy="50%" r="4.2">`:C``)}`,Yr=(i,e,t)=>t?l``:l`<div id="steps-values">${i.map(o=>l`<span class="uui-slider-step">${i.length<=20&&e/6>=5?o.toFixed(0):g}</span>`)}</div>`;class m extends Q("label",h){constructor(){super();this.hideStepValues=!1,this.min=0,this.max=100,this.step=1,this._value="",this.hideLabel=!1,this.stepWidth=0,this.onWindowResize=()=>{this.stepWidth=this._calculateStepWidth()},this.steps=[],this.sliderPosition="50%",this.fillScale="0.5",this._range=(e,t,o)=>Array.from({length:(t-e)/o+1},(r,s)=>e+s*o),this._internals=this.attachInternals()}get value(){return this._value}set value(e){const t=this._value;this._value=e,this._calculateSliderPosition(e),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",t)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize)}disconnectedCallback(){window.removeEventListener("resize",this.onWindowResize),super.disconnectedCallback()}firstUpdated(){this._updateSteps()}_updateSteps(){this.steps=this._range(this.min,this.max-1,this.step),this.stepWidth=this._calculateStepWidth()}updated(e){(e.get("max")||e.get("min")||e.get("step"))&&this._updateSteps()}_calculateStepWidth(){return this.track.getBoundingClientRect().width/this.steps.length}_calculateSliderPosition(e){const t=(parseFloat(e)-this.min)/(this.max-this.min);this.fillScale=`${t}`,this.sliderPosition=`${Math.floor(t*100)}%`}_thumbDynamicStyles(){return{left:this.sliderPosition}}_onInput(){this.value=this.input.value,this.dispatchEvent(new De(De.INPUT))}render(){return l`<input type="range" min="${this.min}" max="${this.max}" .value="${this.value}" id="input1" aria-label="${this.label}" step="${+this.step}" @input="${this._onInput}"><div id="track" aria-hidden="true"><div id="stepper"><svg height="100%" width="100%" class="uui-slider-step"><line x1="0" y1="50%" x2="100%" y2="50%" stroke="black" id="slider-line"/>${Jr(this.steps,this.stepWidth)}</svg></div><div id="thumb" style="${Oe(this._thumbDynamicStyles())}"><div id="value">${this.value}</div></div></div>${Yr(this.steps,this.stepWidth,this.hideStepValues)} ${this.hideLabel===!1?this.renderLabel():""}`}}m.styles=[rr,Kr,c`input[type=range]{box-sizing:border-box}:host{display:inline-block;width:100%;position:relative;margin:12px 0;min-height:30px;border:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#track{position:relative;top:50%;height:18px;width:100%;display:flex}#thumb{position:absolute;top:0;bottom:0;left:0;height:18px;width:18px;background-color:transparent;border-radius:50%;box-sizing:border-box;border:1px solid var(--uui-interface-select,#3544b1);margin-left:-9px;transition:.1s left ease}#thumb:after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:9px;width:9px;background-color:var(--uui-interface-select,#3544b1);border-radius:50%}#thumb:before{content:'';position:absolute;left:50%;top:50%;transform-origin:center center;transform:translate(-50%,-50%);height:24px;width:24px;background-color:transparent;border:1px solid var(--uui-interface-select,#3544b1);border-radius:50%;opacity:0}input:hover~#track #thumb:before{-webkit-animation:${at};animation:${at}}input:hover~#track #thumb:after{background-color:var(--uui-interface-select-hover,#4656c8)}input:hover~#track #thumb{border:1px solid var(--uui-interface-select-hover,#4656c8)}#value{position:relative;box-sizing:border-box;font-weight:600;bottom:150%;width:100%;text-align:center;opacity:0;color:var(--uui-interface-select,#3544b1);transition:.2s opacity ease}input:hover~#track #value{opacity:1}#track svg{opacity:.5;transition:.2s opacity ease}input:focus~#track svg{opacity:1}#stepper{position:absolute;top:0;bottom:0;left:0;width:100%}#steps-values{display:flex;align-items:flex-end;box-sizing:border-box}#steps-values>span{flex-basis:0;flex-grow:1;transform:translateX(-50%);display:inline-block;text-align:center;font-size:12px;color:var(--uui-interface-contrast-disabled,#73716e)}#steps-values :first-child{opacity:0}svg>circle:first-of-type{fill:none}#stepper{width:100%}#slider-line{stroke:var(--uui-interface-contrast-disabled,#73716e);stroke-width:1px}.uui-slider-circle{fill:var(--uui-interface-contrast-disabled,#73716e)}label{display:inline-block;margin-top:6px;position:relative;font-weight:2100}@media (prefers-reduced-motion){input:focus~#track #thumb:before{-webkit-animation:none;animation:none}label:before{transition:none}}`],m.formAssociated=!0,k([T("input")],m.prototype,"input",2),k([T("#track")],m.prototype,"track",2),k([n({type:Boolean,attribute:"hide-step-values"})],m.prototype,"hideStepValues",2),k([n({type:Number})],m.prototype,"min",2),k([n({type:Number})],m.prototype,"max",2),k([n({type:Number})],m.prototype,"step",2),k([n({type:String})],m.prototype,"value",1),k([n({type:Boolean,attribute:"hide-label",reflect:!0})],m.prototype,"hideLabel",2),k([w()],m.prototype,"stepWidth",2),k([w()],m.prototype,"steps",2),k([w()],m.prototype,"sliderPosition",2),k([w()],m.prototype,"fillScale",2),p("uui-slider",m);class At extends dt(h){constructor(){super();this.addEventListener("click",this.toggleSelect)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}toggleSelect(){this.selectable!==!1&&(this.selected=!this.selected)}render(){return l`<slot></slot>`}}At.styles=[c`:host{display:table-row;position:relative}:host([selectable]){cursor:pointer}:host([selected]){outline:1px solid var(--uui-interface-select,#3544b1);outline-offset:-2px}`];class he extends h{constructor(){super(...arguments);this.onResize=()=>{this._detectOverflow()}}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onResize),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.onResize)}render(){return l`<slot @slotchange="${this._detectOverflow}"></slot>`}}he.styles=[c`:host{display:table-cell;padding:var(--uui-size-4,12px) var(--uui-size-5,15px);border-top:1px solid var(--uui-interface-border,#c4c4c4);max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;vertical-align:middle}`];class Ct extends he{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}}Ct.styles=[...he.styles,c`:host{border-top:none}`];class St extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return l`<slot></slot>`}}St.styles=[c`:host{display:table-header-group;font-weight:700}`];class Pt extends h{}Pt.styles=[c`:host{display:table-column}`];class zt extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return l`<slot></slot>`}}zt.styles=[c`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-interface-surface,#fefefe);cursor:default}`],p("uui-table-column",Pt),p("uui-table-head-cell",Ct),p("uui-table-head",St),p("uui-table-cell",he),p("uui-table-row",At),p("uui-table",zt);var Qr=Object.defineProperty,eo=Object.getOwnPropertyDescriptor,to=(i,e,t,o)=>{for(var r=o>1?void 0:o?eo(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Qr(e,t,r),r};class Le extends nt(Q("",h)){constructor(){super();this.disabled=!1,this.addEventListener("click",this.onHostClick)}onHostClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}render(){return l`<button type="button" ?disabled="${this.disabled}" role="tab">${this.renderLabel()}</button>`}}Le.styles=[c`: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)}`],to([n({type:Boolean,reflect:!0})],Le.prototype,"disabled",2);var ro=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,io=(i,e,t,o)=>{for(var r=o>1?void 0:o?oo(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&ro(e,t,r),r};class Ne extends h{constructor(){super(...arguments);this.tabElements=[],this.onTabActive=e=>{const t=e.target;t.active=!0,this.tabElements.filter(r=>r!==t).forEach(r=>{r.active=!1})}}setTabArray(){this.tabElements=this.slotNodes?this.slotNodes:[]}onSlotChange(){this.setTabArray(),this.tabElements&&this.tabElements.forEach(e=>{e.removeEventListener("click",this.onTabActive)}),this.tabElements.forEach(e=>{e.addEventListener("click",this.onTabActive)})}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tablist")}render(){return l`<slot @slotchange="${this.onSlotChange}"></slot>`}}Ne.styles=[c`: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)}`],io([se(void 0,!0,"uui-tab")],Ne.prototype,"slotNodes",2),p("uui-tab",Le),p("uui-tab-group",Ne);var so=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,Ot=(i,e,t,o)=>{for(var r=o>1?void 0:o?ao(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&so(e,t,r),r};class be extends h{constructor(){super(...arguments);this.size="m",this.look=ct}render(){return l`<slot></slot>`}}be.styles=[c`:host{display:inline-block;font-family:inherit;font-weight:700;line-height:1.1;font-size:var(--uui-tag-font-size,.9em);padding:calc(var(--uui-tag-font-size)/ 2.3) var(--uui-tag-font-size);border-radius:1000px;background-color:var(--uui-interface-surface-alt,#d8d7d9);color:var(--uui-interface-contrast,#060606);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:background-color 120ms,color 120ms}slot{display:flex;align-items:center}:host([size=xs]){--uui-tag-font-size:10px}:host([size='s']){--uui-tag-font-size:11px}:host([size='m']){--uui-tag-font-size:12px}:host([size='l']){--uui-tag-font-size:13px}:host([size=xl]){--uui-tag-font-size:14px}: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)}`],Ot([n({reflect:!0})],be.prototype,"size",2),Ot([n({reflect:!0})],be.prototype,"look",2),p("uui-tag",be);const no=C`<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>`,lo=C`<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 Te extends y{constructor(){super("switch")}renderCheckbox(){return l`<div id="slider"><div id="icon-check">${no}</div><div id="icon-wrong">${lo}</div></div>`}}Te.styles=[...y.styles,de,c`: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%)}: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{-webkit-animation:${S};animation:${S}}:host([disabled]) input:checked+#slider #icon-check{fill:var(--uui-interface-select-contrast-disabled,#e4e4e4)}:host([error]) #slider{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) label:hover #slider{border:1px solid var(--uui-look-danger-border,#d42054)}`],Te.formAssociated=!0,p("uui-toggle",Te);var uo=Object.defineProperty,co=Object.getOwnPropertyDescriptor,ho=(i,e,t,o)=>{for(var r=o>1?void 0:o?co(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&uo(e,t,r),r};class He extends h{constructor(){super(...arguments);this.open=!1}render(){return l`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}}He.styles=[c`: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)}`],ho([n({type:Boolean,reflect:!0})],He.prototype,"open",2),p("uui-caret",He);class U extends W{}U.SHOW_CHILDREN="show-children",U.HIDE_CHILDREN="hide-children",U.CLICK_LABEL="click-label";var bo=Object.defineProperty,po=Object.getOwnPropertyDescriptor,pe=(i,e,t,o)=>{for(var r=o>1?void 0:o?po(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&bo(e,t,r),r};class G extends dt(nt(Q("label",h))){constructor(){super(...arguments);this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1}onCaretClicked(){this.showChildren=!this.showChildren;const e=this.showChildren?U.SHOW_CHILDREN:U.HIDE_CHILDREN,t=new U(e);this.dispatchEvent(t)}onLabelClicked(){const e=new U(U.CLICK_LABEL);this.dispatchEvent(e)}render(){return l`<div id="menu-item" aria-label="menuitem" role="menuitem">${this.hasChildren?l`<button id="caret-button" @click="${this.onCaretClicked}"><uui-expand-symbol ?open="${this.showChildren?0:-90}"></uui-expand-symbol></button>`:""} <button id="label-button" @click="${this.onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this.renderLabel()}</button><div id="label-button-background"></div><slot id="actions-container" name="actions"></slot>${this.loading?l`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?l`<slot></slot>`:""}`}}G.styles=[c`:host{display:block;background-color:var(--uui-interface-surface,#fefefe);--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1)}#menu-item{position:relative;display:flex;align-items:stretch;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-8,24px));display:grid;grid-template-columns:var(--uui-size-8,24px) 1fr;grid-template-rows:1fr;white-space:nowrap}button{display:block;font-family:inherit;padding:0;text-align:left;box-shadow:none;border:none;color:inherit;background-color:transparent;cursor:pointer;z-index:1;min-height:var(--uui-size-12,36px)}#label-button{flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#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}#menu-item:hover #actions-container{opacity:1}#loader{position:absolute;width:100%;bottom:0}:host([disabled]) #label-button{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]) button{color:var(--uui-interface-active-contrast,#162335)}:host([active]) 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]) button{color:var(--uui-interface-select-contrast,#fefefe)}:host([selected]) 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)}`],pe([n({type:Boolean,reflect:!0})],G.prototype,"disabled",2),pe([n({type:Boolean,reflect:!0,attribute:"show-children"})],G.prototype,"showChildren",2),pe([n({type:Boolean,attribute:"has-children"})],G.prototype,"hasChildren",2),pe([n({type:Boolean,attribute:"loading"})],G.prototype,"loading",2),p("uui-menu-item",G)});
57
+ */const vt=o=>o!=null?o:g;class gt extends C{}gt.CHANGE="change";var ji=Object.defineProperty,Ti=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var j=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ti(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&ji(e,t,r),r};class P extends M("label",c){constructor(){super();this.placeholder="",this.disabled=!1,this.error=!1,this.name="",this._value="",this.options=[],this._groups=[],this.disabledGroups="",this._disabledGroups=[],this._internals=this.attachInternals()}get value(){return this._value}set value(e){const t=this._value;this._value=e,this._internals.setFormValue(this.name!==""?this._value:null),this.requestUpdate("value",t)}_createDisabledGroups(){this.disabledGroups.length!==0&&(this._disabledGroups=this.disabledGroups.split(","),console.log(this._disabledGroups))}_extractGroups(){this.options.length!==0&&(this._groups=[...new Set(this.options.filter(e=>e.group).map(e=>e.group))])}willUpdate(e){e.has("options")&&this._extractGroups(),e.has("disabledGroups")&&this._createDisabledGroups()}setValue(e){const t=e.target;e.target&&(this.value=t.value),this.dispatchEvent(new gt(gt.CHANGE,{bubbles:!0,composed:!1}))}_renderOption(e,t,i,r){return l`<option value="${t}" selected="${vt(i)}" disabled="${vt(r)}">${e}</option>`}_renderGrouped(){return this._groups.length===0?l``:l`${this._groups.map(e=>l`<optgroup label="${e}" ?disabled="${this._disabledGroups.some(t=>t.toLowerCase()===e.toLowerCase())}">${this.options.map(t=>t.group===e?this._renderOption(t.name,t.value,t.selected,t.disabled):"")}</optgroup>`)}`}render(){return l`${this.renderLabel()} <select id="native" aria-label="${this.label}" @change="${this.setValue}" ?disabled="${this.disabled}" .name="${this.name}"><option disabled="disabled" selected="selected" value="" hidden>${this.placeholder}</option>${this._renderGrouped()} ${this.options.filter(e=>!e.group).map(e=>this._renderOption(e.name,e.value,e.selected,e.disabled))}</select>`}}P.styles=[u`: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;outline-color:var(--uui-select-outline-color,var(--uui-color-malibu,#3879ff));border:1px solid var(--uui-select-border-color,var(--uui-interface-border,#c4c4c4));transition:all 150ms ease}#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%)}.label{margin-bottom:var(--uui-size-1,3px);font-weight:700}span.label{display:inline-block}: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)}`],P.formAssociated=!0,j([n()],P.prototype,"placeholder",2),j([n({type:Boolean,reflect:!0})],P.prototype,"disabled",2),j([n({type:Boolean,reflect:!0})],P.prototype,"error",2),j([n({type:String})],P.prototype,"name",2),j([n({type:String})],P.prototype,"value",1),j([n({type:Array,attribute:!1})],P.prototype,"options",2),j([v()],P.prototype,"_groups",2),j([n()],P.prototype,"disabledGroups",2),j([v()],P.prototype,"_disabledGroups",2),d("uui-select",P);const Bi=u`input[type=range]{left:0;position:absolute;top:0;height:100%;width:100%;z-index:2;height:100%;-webkit-appearance:none;margin:0;padding:0;border:0 none;background:0 0;color:transparent;overflow:visible;border:none}input[type=range]:focus{outline:0}input[type=range]::-webkit-slider-runnable-track{width:100%;height:100%;-webkit-appearance:none;margin:0;padding:0;border:none;background:0 0;color:transparent;overflow:visible;order:none}input[type=range]:focus::-webkit-slider-runnable-track{background:0 0;border:none}input[type=range]::-moz-range-track{width:100%;height:100%;-moz-appearance:none;margin:0;padding:0;border:0 none;background:0 0;color:transparent;overflow:visible}input[type=range]::-ms-track{width:100%;height:100%;-webkit-appearance:none;margin:0;padding:0;border:0 none;background:0 0;color:transparent;overflow:visible}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper{background:0 0;border:0 none}input[type=range]::-ms-tooltip{display:none}input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:12px;border:0 none;background:0 0;cursor:pointer}input[type=range]::-webkit-slider-thumb{width:18px;height:18px;border-radius:12px;border:0 none;background:0 0;cursor:pointer;-webkit-appearance:none}input[type=range]::-ms-thumb{width:18px;height:18px;border-radius:12px;border:0 none;background:0 0;cursor:pointer}input[type=range]:focus::-ms-fill-lower{background:0 0}input[type=range]:focus::-ms-fill-upper{background:0 0}`;class mt extends C{}mt.INPUT="input";var Mi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var O=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ri(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Mi(e,t,r),r};const Vi=(o,e)=>ie`${o.map(t=>e/6>=5?ie`<circle class="uui-slider-circle" cx="${e*o.indexOf(t)}" cy="50%" r="4.2">`:ie``)}`,Gi=(o,e,t)=>t?l``:l`<div id="steps-values">${o.map(i=>l`<span class="uui-slider-step">${o.length<=20&&e/6>=5?i.toFixed(0):g}</span>`)}</div>`;class _ extends M("label",c){constructor(){super();this.hideStepValues=!1,this.min=0,this.max=100,this.step=1,this._value="",this.hideLabel=!1,this.stepWidth=0,this.onWindowResize=()=>{this.stepWidth=this._calculateStepWidth()},this.steps=[],this.sliderPosition="50%",this.fillScale="0.5",this._range=(e,t,i)=>Array.from({length:(t-e)/i+1},(r,s)=>e+s*i),this._internals=this.attachInternals()}get value(){return this._value}set value(e){const t=this._value;this._value=e,this._calculateSliderPosition(e),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",t)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize)}disconnectedCallback(){window.removeEventListener("resize",this.onWindowResize),super.disconnectedCallback()}firstUpdated(){this._updateSteps()}_updateSteps(){this.steps=this._range(this.min,this.max-1,this.step),this.stepWidth=this._calculateStepWidth()}updated(e){(e.get("max")||e.get("min")||e.get("step"))&&this._updateSteps()}_calculateStepWidth(){return this.track.getBoundingClientRect().width/this.steps.length}_calculateSliderPosition(e){const t=(parseFloat(e)-this.min)/(this.max-this.min);this.fillScale=`${t}`,this.sliderPosition=`${Math.floor(t*100)}%`}_thumbDynamicStyles(){return{left:this.sliderPosition}}_onInput(){this.value=this.input.value,this.dispatchEvent(new mt(mt.INPUT))}render(){return l`<input type="range" min="${this.min}" max="${this.max}" .value="${this.value}" id="input1" aria-label="${this.label}" step="${+this.step}" @input="${this._onInput}"><div id="track" aria-hidden="true"><div id="stepper"><svg height="100%" width="100%" class="uui-slider-step"><line x1="0" y1="50%" x2="100%" y2="50%" stroke="black" id="slider-line"/>${Vi(this.steps,this.stepWidth)}</svg></div><div id="thumb" style="${ge(this._thumbDynamicStyles())}"><div id="value">${this.value}</div></div></div>${Gi(this.steps,this.stepWidth,this.hideStepValues)} ${this.hideLabel===!1?this.renderLabel():""}`}}_.styles=[io,Bi,u`input[type=range]{box-sizing:border-box}:host{display:inline-block;width:100%;position:relative;margin:12px 0;min-height:30px;border:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#track{position:relative;top:50%;height:18px;width:100%;display:flex}#thumb{position:absolute;top:0;bottom:0;left:0;height:18px;width:18px;background-color:transparent;border-radius:50%;box-sizing:border-box;border:1px solid var(--uui-interface-select,#3544b1);margin-left:-9px;transition:.1s left ease}#thumb:after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:9px;width:9px;background-color:var(--uui-interface-select,#3544b1);border-radius:50%}#thumb:before{content:'';position:absolute;left:50%;top:50%;transform-origin:center center;transform:translate(-50%,-50%);height:24px;width:24px;background-color:transparent;border:1px solid var(--uui-interface-select,#3544b1);border-radius:50%;opacity:0}input:hover~#track #thumb:before{-webkit-animation:${Yt};animation:${Yt}}input:hover~#track #thumb:after{background-color:var(--uui-interface-select-hover,#4656c8)}input:hover~#track #thumb{border:1px solid var(--uui-interface-select-hover,#4656c8)}#value{position:relative;box-sizing:border-box;font-weight:600;bottom:150%;width:100%;text-align:center;opacity:0;color:var(--uui-interface-select,#3544b1);transition:.2s opacity ease}input:hover~#track #value{opacity:1}#track svg{opacity:.5;transition:.2s opacity ease}input:focus~#track svg{opacity:1}#stepper{position:absolute;top:0;bottom:0;left:0;width:100%}#steps-values{display:flex;align-items:flex-end;box-sizing:border-box}#steps-values>span{flex-basis:0;flex-grow:1;transform:translateX(-50%);display:inline-block;text-align:center;font-size:12px;color:var(--uui-interface-contrast-disabled,#73716e)}#steps-values :first-child{opacity:0}svg>circle:first-of-type{fill:none}#stepper{width:100%}#slider-line{stroke:var(--uui-interface-contrast-disabled,#73716e);stroke-width:1px}.uui-slider-circle{fill:var(--uui-interface-contrast-disabled,#73716e)}label{display:inline-block;margin-top:6px;position:relative;font-weight:2100}@media (prefers-reduced-motion){input:focus~#track #thumb:before{-webkit-animation:none;animation:none}label:before{transition:none}}`],_.formAssociated=!0,O([L("input")],_.prototype,"input",2),O([L("#track")],_.prototype,"track",2),O([n({type:Boolean,attribute:"hide-step-values"})],_.prototype,"hideStepValues",2),O([n({type:Number})],_.prototype,"min",2),O([n({type:Number})],_.prototype,"max",2),O([n({type:Number})],_.prototype,"step",2),O([n({type:String})],_.prototype,"value",1),O([n({type:Boolean,attribute:"hide-label",reflect:!0})],_.prototype,"hideLabel",2),O([v()],_.prototype,"stepWidth",2),O([v()],_.prototype,"steps",2),O([v()],_.prototype,"sliderPosition",2),O([v()],_.prototype,"fillScale",2),d("uui-slider",_);var Wi=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Ki=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fi(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Wi(e,t,r),r};class yt extends c{constructor(){super(...arguments);this.open=!1}render(){return l`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}}yt.styles=[u`: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)}`],Ki([n({type:Boolean,reflect:!0})],yt.prototype,"open",2),d("uui-symbol-expand",yt);var Xi=Object.defineProperty,Yi=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var Zi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yi(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Xi(e,t,r),r};const kr=class extends c{constructor(){super(...arguments);this.type=""}render(){return console.log(kr.styles),l`<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?l`<span id="file-type">${this.type.toUpperCase()}</span>`:""}`}};let xt=kr;xt.styles=[u`: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)}#icon{fill:var(--uui-interface-border,#c4c4c4)}`],Zi([n({type:String})],xt.prototype,"type",2),customElements.define("uui-symbol-file",xt);class $r extends c{render(){return l`<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>`}}$r.styles=[u`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-interface-border,#d3d3d3)}`],customElements.define("uui-symbol-folder",$r);class Er extends c{render(){return l`•••`}}Er.styles=[u`:host{display:inline-block;font-size:.8em;vertical-align:top;margin-top:.27em;line-height:1em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`],d("uui-symbol-more",Er);var Ji=Object.defineProperty,Qi=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var es=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qi(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&Ji(e,t,r),r};class wt extends Ze(c){constructor(){super(...arguments);this.descending=!1}render(){return l`<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>`}}wt.styles=[u`:host{position:relative;display:inline-block;width:.8em;height:1em;vertical-align:middle}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))}`],es([n({type:Boolean,reflect:!0})],wt.prototype,"descending",2),d("uui-symbol-sort",wt);class Cr extends ze(c){constructor(){super();this.addEventListener("click",this.toggleSelect)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}toggleSelect(){this.selectable!==!1&&(this.selected=!this.selected)}render(){return l`<slot></slot>`}}Cr.styles=[u`:host{display:table-row;position:relative}:host([selectable]){cursor:pointer}:host([selected]){outline:1px solid var(--uui-interface-select,#3544b1);outline-offset:-2px}`];class qe extends c{constructor(){super(...arguments);this.onResize=()=>{this._detectOverflow()}}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onResize),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.onResize)}render(){return l`<slot @slotchange="${this._detectOverflow}"></slot>`}}qe.styles=[u`:host{display:table-cell;padding:var(--uui-size-4,12px) var(--uui-size-5,15px);border-top:1px solid var(--uui-interface-border,#c4c4c4);max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;vertical-align:middle}`];class Pr extends qe{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}}Pr.styles=[...qe.styles,u`:host{border-top:none}`];class Or extends c{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return l`<slot></slot>`}}Or.styles=[u`:host{display:table-header-group;font-weight:700}`];class Sr extends c{}Sr.styles=[u`:host{display:table-column}`];class zr extends c{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return l`<slot></slot>`}}zr.styles=[u`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-interface-surface,#fefefe);cursor:default}`],d("uui-table-column",Sr),d("uui-table-head-cell",Pr),d("uui-table-head",Or),d("uui-table-cell",qe),d("uui-table-row",Cr),d("uui-table",zr);var ts=Object.defineProperty,rs=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var os=(o,e,t,i)=>{for(var r=i>1?void 0:i?rs(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&ts(e,t,r),r};class _t extends Ze(M("",c)){constructor(){super();this.disabled=!1,this.addEventListener("click",this.onHostClick)}onHostClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}render(){return l`<button type="button" ?disabled="${this.disabled}" role="tab">${this.renderLabel()}</button>`}}_t.styles=[u`: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)}`],os([n({type:Boolean,reflect:!0})],_t.prototype,"disabled",2);var is=Object.defineProperty,ss=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var as=(o,e,t,i)=>{for(var r=i>1?void 0:i?ss(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&is(e,t,r),r};class kt extends c{constructor(){super(...arguments);this.tabElements=[],this.onTabActive=e=>{const t=e.target;t.active=!0,this.tabElements.filter(r=>r!==t).forEach(r=>{r.active=!1})}}setTabArray(){this.tabElements=this.slotNodes?this.slotNodes:[]}onSlotChange(){this.setTabArray(),this.tabElements&&this.tabElements.forEach(e=>{e.removeEventListener("click",this.onTabActive)}),this.tabElements.forEach(e=>{e.addEventListener("click",this.onTabActive)})}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tablist")}render(){return l`<slot @slotchange="${this.onSlotChange}"></slot>`}}kt.styles=[u`: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)}`],as([Ye(void 0,!0,"uui-tab")],kt.prototype,"slotNodes",2),d("uui-tab",_t),d("uui-tab-group",kt);var ns=Object.defineProperty,ls=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var us=(o,e,t,i)=>{for(var r=i>1?void 0:i?ls(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&ns(e,t,r),r};class $t extends c{constructor(){super(...arguments);this.look=Qt}render(){return l`<slot></slot>`}}$t.styles=[u`: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);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;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)}`],us([n({reflect:!0})],$t.prototype,"look",2),d("uui-tag",$t);class ue extends C{}ue.CHANGE="change",ue.INPUT="input";var ds=Object.defineProperty,cs=Object.getOwnPropertyDescriptor;typeof require!="undefined"&&require;var z=(o,e,t,i)=>{for(var r=i>1?void 0:i?cs(e,t):e,s=o.length-1,a;s>=0;s--)(a=o[s])&&(r=(i?a(e,t,r):a(r))||r);return i&&r&&ds(e,t,r),r};class $ extends M("textarea label",c){constructor(){super();this.placeholder="",this.disabled=!1,this.hideLabel=!1,this._value="",this.name="",this.error=!1,this.minLength=0,this.maxLength=0,this.autoHeight=!1,this._internals=this.attachInternals()}get value(){return this._value}set value(e){this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value)}onInput(e){this.value=e.target.value,this.dispatchEvent(new ue(ue.INPUT,{bubbles:!0})),this.autoHeight&&this.autoUpdateHeight()}onChange(){this.dispatchEvent(new ue(ue.CHANGE,{bubbles:!0}))}autoUpdateHeight(){const e=this.shadowRoot.host,t=this._textarea,i=e.scrollTop,r=getComputedStyle(e).height;e.style.display="block",e.style.height=r,t.style.height="auto",t.scrollHeight>t.clientHeight&&(t.style.height=t.scrollHeight+"px"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=i}renderMaxLength(){return l`<span id="max-length-counter" class="${this.value.length>=this.maxLength?"maxed":""}">${this.value?this.value.length:0}/${this.maxLength}</span>`}renderMinLength(){return this.minLength-this.value.length>0?l`<span id="min-length-counter">${this.minLength-this.value.length}</span>`:""}render(){return l`${this.hideLabel===!1?this.renderLabel():""} <textarea maxlength="${vt(this.maxLength>0?this.maxLength:void 0)}" minlength="${this.minLength}" id="textarea" .value="${this.value}" .name="${this.name}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" @input="${this.onInput}" @change="${this.onChange}">
58
+ </textarea><div id="lengths-container">${this.minLength>0?this.renderMinLength():""} ${this.maxLength>0?this.renderMaxLength():""}</div>`}}$.styles=[u`:host([disabled]) #max-length-counter,:host([disabled]) .label{color:var(--uui-interface-contrast-disabled,#73716e)}: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[disabled]{cursor:not-allowed;background-color:var(--uui-textarea-background-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));border:1px solid var(--uui-textarea-border-color-disabled,var(--uui-interface-border-disable));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)}#lengths-container{display:flex}#min-length-counter{color:var(--uui-look-danger-surface,#d42054);margin-right:1em}#max-length-counter{display:inline-block;width:-webkit-min-content;width:-moz-min-content;width:min-content}#max-length-counter.maxed{-webkit-animation-name:maxed;animation-name:maxed;-webkit-animation-duration:.1s;animation-duration:.1s;-webkit-animation-direction:alternate;animation-direction:alternate;-webkit-animation-iteration-count:2;animation-iteration-count:2}@-webkit-keyframes maxed{from{transform:scale(1)}to{transform:scale(1.1)}}@keyframes maxed{from{transform:scale(1)}to{transform:scale(1.1)}}`],$.formAssociated=!0,z([n()],$.prototype,"placeholder",2),z([n({type:Boolean,reflect:!0})],$.prototype,"disabled",2),z([n({type:Boolean,attribute:"hide-label",reflect:!0})],$.prototype,"hideLabel",2),z([v()],$.prototype,"_value",2),z([n()],$.prototype,"value",1),z([n({type:String})],$.prototype,"name",2),z([n({type:Boolean,reflect:!0})],$.prototype,"error",2),z([L("#textarea")],$.prototype,"_textarea",2),z([n({type:Number})],$.prototype,"minLength",2),z([n({type:Number})],$.prototype,"maxLength",2),z([n({type:Boolean,attribute:"auto-height",reflect:!0})],$.prototype,"autoHeight",2),d("uui-textarea",$);const hs=ie`<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>`,ps=ie`<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 Et extends k{constructor(){super("switch")}renderCheckbox(){return l`<div id="slider"><div id="icon-check">${hs}</div><div id="icon-wrong">${ps}</div></div>`}}Et.styles=[...k.styles,Se,u`: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%)}: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{-webkit-animation:${B};animation:${B}}:host([disabled]) input:checked+#slider #icon-check{fill:var(--uui-interface-select-contrast-disabled,#e4e4e4)}:host([error]) #slider{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) label:hover #slider{border:1px solid var(--uui-look-danger-border,#d42054)}`],Et.formAssociated=!0,d("uui-toggle",Et)});
48
59
  //# sourceMappingURL=uui.min.js.map