PageSourceSearch

https://cdn.flowlu.com/static/dist/awc/4.8.0/index.iife.js

js flowlu.com collected 2026-09-24 08:58:23 UTC 745,094 bytes, 31 lines download raw bytes

vendor: 4,312 bytes, line 1
1var AwcUI=function(s){"use strict";const ao=globalThis,ba=ao.ShadowRoot&&(ao.ShadyCSS===void 0||ao.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ya=Symbol(),En=new WeakMap;let Ln=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==ya)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ba&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=En.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&En.set(e,t))}return t}toString(){return this.cssText}};const qd=r=>new Ln(typeof r=="string"?r:r+"",void 0,ya),P=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((i,o,a)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[a+1],r[0]);return new Ln(e,r,ya)},Yd=(r,t)=>{if(ba)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=ao.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,r.appendChild(i)}},In=ba?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return qd(e)})(r):r;const{is:Kd,defineProperty:Xd,getOwnPropertyDescriptor:Jd,getOwnPropertyNames:Qd,getOwnPropertySymbols:th,getPrototypeOf:eh}=Object,Ge=globalThis,On=Ge.trustedTypes,ih=On?On.emptyScript:"",rh=Ge.reactiveElementPolyfillSupport,hr=(r,t)=>r,so={toAttribute(r,t){switch(t){case Boolean:r=r?ih:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Ca=(r,t)=>!Kd(r,t),Mn={attribute:!0,type:String,converter:so,reflect:!1,useDefault:!1,hasChanged:Ca};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Ge.litPropertyMetadata??(Ge.litPropertyMetadata=new WeakMap);let ci=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Mn){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Xd(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:a}=Jd(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){const d=o?.call(this);a?.call(this,n),this.requestUpdate(t,d,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Mn}static _$Ei(){if(this.hasOwnProperty(hr("elementProperties")))return;const t=eh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(hr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hr("properties"))){const e=this.properties,i=[...Qd(e),...th(e)];for(const o of i)this.createProperty(o,e[o])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,o]of e)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const o=this._$Eu(e,i);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(In(o))}else t!==void 0&&e.push(In(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}
1removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Yd(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const a=(i.converter?.toAttribute!==void 0?i.converter:so).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const a=i.getPropertyOptions(o),n=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:so;this._$Em=o;const d=n.fromAttribute(e,a.type);this[o]=d??this._$Ej?.get(o)??d,this._$Em=null}}requestUpdate(t,e,i,o=!1,a){if(t!==void 0){const n=this.constructor;if(o===!1&&(a=this[t]),i??(i=n.getPropertyOptions(t)),!((i.hasChanged??Ca)(a,e)||i.useDefault&&i.reflect&&a===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:a},n){i&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),a!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,a]of i){const{wrapped:n}=a,d=this[o];n!==!0||this._$AL.has(o)||d===void 0||this.C(o,void 0,a,d)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};ci.elementStyles=[],ci.shadowRootOptions={mode:"open"},ci[hr("elementProperties")]=new Map,ci[hr("finalized")]=new Map,rh?.({ReactiveElement:ci}),(Ge.reactiveElementVersions??(Ge.reactiveElementVersions=[])).push("2.1.2");const ur=globalThis,Pn=r=>r,no=ur.trustedTypes,Dn=no?no.createPolicy("lit-html",{createHTML:r=>r}):void 0,Bn="$lit$",qe=`lit$${Math.random().toFixed(9).slice(2)}$`,Vn="?"+qe,oh=`<${Vn}>`,di=document,pr=()=>di.createComment(""),fr=r=>r===null||typeof r!="object"&&typeof r!="function",Aa=Array.isArray,ah=r=>Aa(r)||typeof r?.[Symbol.iterator]=="function",xa=`[ 	
2\f\r]`,wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hn=/-->/g,Rn=/>/g,hi=RegExp(`>|${xa}(?:([^\\s"'>=/]+)(${xa}*=${xa}*(?:[^ 	
3\f\r"'\`<>=]|("|')|))|$)`,"g"),zn=/'/g,Fn=/"/g,Nn=/^(?:script|style|textarea|title)$/i,jn=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),f=jn(1),S=jn(2),Ut=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),Un=new WeakMap,ui=di.createTreeWalker(di,129);function Zn(r,t){if(!Aa(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Dn!==void 0?Dn.createHTML(t):t}const sh=(r,t)=>{const e=r.length-1,i=[];let o,a=t===2?"<svg>":t===3?"<math>":"",n=wr;for(let d=0;d<e;d++){const l=r[d];let h,p,w=-1,g=0;for(;g<l.length&&(n.lastIndex=g,p=n.exec(l),p!==null);)g=n.lastIndex,n===wr?p[1]==="!--"?n=Hn:p[1]!==void 0?n=Rn:p[2]!==void 0?(Nn.test(p[2])&&(o=RegExp("</"+p[2],"g")),n=hi):p[3]!==void 0&&(n=hi):n===hi?p[0]===">"?(n=o??wr,w=-1):p[1]===void 0?w=-2:(w=n.lastIndex-p[2].length,h=p[1],n=p[3]===void 0?hi:p[3]==='"'?Fn:zn):n===Fn||n===zn?n=hi:n===Hn||n===Rn?n=wr:(n=hi,o=void 0);
3const v=n===hi&&r[d+1].startsWith("/>")?" ":"";a+=n===wr?l+oh:w>=0?(i.push(h),l.slice(0,w)+Bn+l.slice(w)+qe+v):l+qe+(w===-2?d:v)}return[Zn(r,a+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class gr{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let a=0,n=0;const d=t.length-1,l=this.parts,[h,p]=sh(t,e);if(this.el=gr.createElement(h,i),ui.currentNode=this.el.content,e===2||e===3){const w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(o=ui.nextNode())!==null&&l.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(const w of o.getAttributeNames())if(w.endsWith(Bn)){const g=p[n++],v=o.getAttribute(w).split(qe),m=/([.?@])?(.*)/.exec(g);l.push({type:1,index:a,name:m[2],strings:v,ctor:m[1]==="."?lh:m[1]==="?"?ch:m[1]==="@"?dh:lo}),o.removeAttribute(w)}else w.startsWith(qe)&&(l.push({type:6,index:a}),o.removeAttribute(w));if(Nn.test(o.tagName)){const w=o.textContent.split(qe),g=w.length-1;if(g>0){o.textContent=no?no.emptyScript:"";for(let v=0;v<g;v++)o.append(w[v],pr()),ui.nextNode(),l.push({type:2,index:++a});o.append(w[g],pr())}}}else if(o.nodeType===8)if(o.data===Vn)l.push({type:2,index:a});else{let w=-1;for(;(w=o.data.indexOf(qe,w+1))!==-1;)l.push({type:7,index:a}),w+=qe.length-1}a++}}static createElement(t,e){const i=di.createElement("template");return i.innerHTML=t,i}}function Di(r,t,e=r,i){if(t===Ut)return t;let o=i!==void 0?e._$Co?.[i]:e._$Cl;const a=fr(t)?void 0:t._$litDirective$;return o?.constructor!==a&&(o?._$AO?.(!1),a===void 0?o=void 0:(o=new a(r),o._$AT(r,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=o:e._$Cl=o),o!==void 0&&(t=Di(r,o._$AS(r,t.values),o,i)),t}class nh{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??di).importNode(e,!0);ui.currentNode=o;let a=ui.nextNode(),n=0,d=0,l=i[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new Bi(a,a.nextSibling,this,t):l.type===1?h=new l.ctor(a,l.name,l.strings,this,t):l.type===6&&(h=new hh(a,this,t)),this._$AV.push(h),l=i[++d]}n!==l?.index&&(a=ui.nextNode(),n++)}return ui.currentNode=di,o}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Bi{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Di(this,t,e),fr(t)?t===A||t==null||t===""?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==Ut&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ah(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&fr(this._$AH)?this._$AA.nextSibling.data=t:this.T(di.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=gr.createElement(Zn(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const a=new nh(o,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=Un.get(t.strings);return e===void 0&&Un.set(t.strings,e=new gr(t)),e}k(t){Aa(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const a of t)o===e.length?e.push(i=new Bi(this.O(pr()),this.O(pr()),this,this.options)):i=e[o],i._$AI(a),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const i=Pn(t).nextSibling;Pn(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class lo{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,a){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}_$AI(t,e=this,i,o){const a=this.strings;let n=!1;if(a===void 0)t=Di(this,t,e,0),n=!fr(t)||t!==this._$AH&&t!==Ut,n&&(this._$AH=t);else{const d=t;let l,h;for(t=a[0],l=0;l<a.length-1;l++)h=Di(this,d[i+l],e,l),h===Ut&&(h=this._$AH[l]),n||(n=!fr(h)||h!==this._$AH[l]),h===A?t=A:t!==A&&(t+=(h??"")+a[l+1]),this._$AH[l]=h}n&&!o&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class lh extends lo{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class ch extends lo{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class dh extends lo{constructor(t,e,i,o,a){super(t,e,i,o,a),this.type=5}_$AI(t,e=this){if((t=Di(this,t,e,0)??A)===Ut)return;const i=this._$AH,o=t===A&&i!==A||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==A&&(i===A||o);o&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class hh{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Di(this,t)}}const uh={I:Bi},ph=ur.litHtmlPolyfillSupport;ph?.(gr,Bi),(ur.litHtmlVersions??(ur.litHtmlVersions=[])).push("3.3.3");const fh=(r,t,e)=>{const i=e?.renderBefore??t;let o=i._$litPart$;if(o===void 0){const a=e?.renderBefore??null;i._$litPart$=o=new Bi(t.insertBefore(pr(),a),a,void 0,e??{})}return o._$AI(r),o};const vr=globalThis;let C=class extends ci{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=fh(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ut}};C._$litElement$=!0,C.finalized=!0,vr.litElementHydrateSupport?.({LitElement:C});const wh=vr.litElementPolyfillSupport;wh?.({LitElement:C}),(vr.litElementVersions??(vr.litElementVersions=[])).push("4.2.2");const I=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};const gh={attribute:!0,type:String,converter:so,reflect:!1,hasChanged:Ca},vh=(r=gh,t,e)=>{const{kind:i,metadata:o}=e;let a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),i==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(e.name,r),i==="accessor"){const{name:n}=e;return{set(d){const l=t.get.call(this);t.set.call(this,d),this.requestUpdate(n,l,r,!0,d)},init(d){return d!==void 0&&this.C(n,void 0,r,d),d}}}if(i==="setter"){const{name:n}=e;return function(d){const l=this[n];t.call(this,d),this.requestUpdate(n,l,r,!0,d)}}throw Error("Unsupported decorator location: "+i)};function c(r){return(t,e)=>typeof e=="object"?vh(r,t,e):((i,o,a)=>{const n=o.hasOwnProperty(a);return o.constructor.createProperty(a,i),n?Object.getOwnPropertyDescriptor(o,a):void 0})(r,t,e)}function M(r){return c({...r,state:!0,attribute:!1})}const ka=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function H(r,t){return(e,i,o)=>{const a=n=>n.renderRoot?.querySelector(r)??null;return ka(e,i,{get(){return a(this)}})}}let _h;function Sa(r){return(t,e)=>ka(t,e,{get(){return(this.renderRoot??_h??(_h=document.createDocumentFragment())).querySelectorAll(r)}})}function Wn(r){return(t,e)=>{const{slot:i,selector:o}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return ka(t,e,{get(){const n=this.renderRoot?.querySelector(a),d=n?.assignedElements(r)??[];return o===void 0?d:d.filter(l=>l.matches(o))}})}}const mh=P`:host{display:flex;padding:12px 0;box-sizing:border-box;font:var(--awc-font-text-regular-14);color:var(--colors-secondary);position:relative;cursor:pointer;max-width:max-content;transition:background-color var(--awc-duration-slow,.3s),color var(--awc-duration-slow,.3s),border-color var(--awc-duration-slow,.3s)}.awc-tab{display:flex;justify-content:center;align-items:center;gap:8px}:host(:hover){color:var(--colors-text)}:host::after,:host::before{content:"";position:absolute;display:block;opacity:0;bottom:0;width:100%;height:2px;background-color:rgba(55,97,233,.35);border-radius:var(--corner-radius-m);transform-origin:50% 100%;transition:var(--awc-duration-slow,.3s) ease,transform var(--awc-duration-slow,.3s) ease;
3transform:scaleX(0)}:host(:hover)::after,:host(:hover)::before{transition:width var(--awc-duration-slow,.3s),transform var(--awc-duration-slow,.3s) ease;opacity:1;transform-origin:50% 100%;transform:scaleX(1)}:host([active]),:host([active]:hover){color:var(--colors-text)}:host([active])::after,:host([active])::before{opacity:1;transform:scaleX(1);width:100%;transition:width var(--awc-duration-slow,.3s) ease,background-color var(--awc-duration-slow,.3s) ease;background-color:var(--colors-primary)}:host([disabled]){pointer-events:none;opacity:.5}:host(:focus){outline:0}:host(:focus-visible){outline:2px solid var(--colors-primary);outline-offset:2px;border-radius:var(--corner-radius-m)}:host([hidden]){display:none}`;function bh(r,t){return function(e,i){const o=new CustomEvent(t,{detail:e,bubbles:!0,cancelable:!1,composed:!0,...i});return r.dispatchEvent(o),o}}function F(r){return(t,e)=>{Object.defineProperty(t,e,{get(){return bh(this,r||e)},enumerable:!0,configurable:!0})}}var yh=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,_r=(r,t,e,i)=>{for(var o=i>1?void 0:i?Ch(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&yh(t,e,o),o};const $a="awc-tab";s.AwcTab=class extends C{constructor(){super(...arguments),this.active=!1,this.panel="",this.disabled=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleTabClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleTabClick)}_handleTabClick(){this.active=!this.active,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}updated(t){super.updated(t),t.has("active")&&t.get("active")!==void 0&&this._onTabChange({active:this.active})}render(){return f`<span class="awc-tab" part="base" ?active="${this.active}"><slot></slot></span>`}},s.AwcTab.styles=[mh],_r([c({type:Boolean,reflect:!0})],s.AwcTab.prototype,"active",2),_r([c({type:String,reflect:!0})],s.AwcTab.prototype,"panel",2),_r([c({type:Boolean,reflect:!0})],s.AwcTab.prototype,"disabled",2),_r([F("awc-tab-change")],s.AwcTab.prototype,"_onTabChange",2),s.AwcTab=_r([I($a)],s.AwcTab);const Ah=P`:host{display:block;padding:var(--awc-tab-panel-padding,var(--spacing-sm) 0);box-sizing:border-box}:host(:not([active])){display:none}`;var xh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Ta=(r,t,e,i)=>{for(var o=i>1?void 0:i?kh(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&xh(t,e,o),o};const Gn="awc-tab-panel";let qn=0;s.AwcTabPanel=class extends C{constructor(){super(...arguments),this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),!this.hasAttribute("slot")&&this.parentElement?.tagName.toLowerCase()==="awc-tabs-group"&&this.setAttribute("slot","panel"),this.hasAttribute("role")||this.setAttribute("role","tabpanel"),this.id||(qn+=1,this.id=`awc-tab-panel-${qn}`)}render(){return f`<slot></slot>`}},s.AwcTabPanel.styles=[Ah],Ta([c({type:String,reflect:!0})],s.AwcTabPanel.prototype,"name",2),Ta([c({type:Boolean,reflect:!0})],s.AwcTabPanel.prototype,"active",2),s.AwcTabPanel=Ta([I(Gn)],s.AwcTabPanel);const Sh=P`:host{display:block}.awc-tabs-container{display:flex;position:relative;flex-wrap:wrap;justify-content:start;align-items:center;gap:24px;column-gap:24px;row-gap:0}`;var $h=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Yn=r=>{throw TypeError(r)},Ea=(r,t,e,i)=>{for(var o=i>1?void 0:i?Th(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&$h(t,e,o),o},Kn=(r,t,e)=>t.has(r)||Yn("Cannot "+e),co=(r,t,e)=>(Kn(r,t,"read from private field"),e?e.call(r):t.get(r)),La=(r,t,e)=>t.has(r)?Yn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),ho=(r,t,e)=>(Kn(r,t,"access private method"),e),Vi,Ia,Oa,uo,po;const mr="awc-tabs-group";let Xn=0;s.AwcTabsGroup=class extends C{constructor(){super(...arguments),La(this,Vi),this.noDivider=!1,this._lastApplied=null,this._onChildTabChange=t=>{const e=this._tabFromEvent(t);if(e&&e.closest(mr)===this){if(!t.detail?.active){this._clearActive(e);return}if(e.disabled){e.active=!1;return}this._lastApplied!==e&&this._applyActive(e)}},La(this,uo,t=>{const e=t.target;if(!(e instanceof s.AwcTab))return;const o=this.tabs.filter(d=>!d.disabled);if(o.length===0)return;const a=t.key;if(a===" "||a==="Spacebar"||a==="Enter"){t.preventDefault(),e.disabled||this._setActive(e);return}if(a!=="ArrowLeft"&&a!=="ArrowRight"&&a!=="Home"&&a!=="End")return;t.preventDefault();let n=null;if(a==="Home")n=o[0];else if(a==="End")n=o[o.length-1];else{const d=a==="ArrowRight"?1:-1,l=o.indexOf(e),h=o.length;if(l===-1)n=d===1?o[0]:o[h-1];else{const p=((l+d)%h+h)%h;n=o[p]}}n&&(n.focus(),this._setActive(n))}),La(this,po,()=>{this._lastApplied=null,ho(this,Vi,Ia).call(this);const t=this.tabs;if(t.length===0)return;if(!t.some(i=>i.active&&!i.disabled))ho(this,Vi,Oa).call(this);else{const i=t.find(o=>o.active);i&&this._setActive(i)}})}get tabs(){return[...this.querySelectorAll($a)].filter(t=>t.closest(mr)===this)}get panels(){return[...this.querySelectorAll(Gn)].filter(t=>t.closest(mr)===this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",co(this,uo)),this.addEventListener("awc-tab-change",this._onChildTabChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",co(this,uo)),this.removeEventListener("awc-tab-change",this._onChildTabChange)}firstUpdated(){ho(this,Vi,Ia).call(this),ho(this,Vi,Oa).call(this)}_tabFromEvent(t){const e=t.composedPath().find(i=>i instanceof s.AwcTab)??t.target;return e instanceof s.AwcTab?e:null}_handleTabClick(t){const e=this._tabFromEvent(t);if(e){if(e.disabled){e.active=!1;return}this._setActive(e)}}_applyActive(t){if(t.disabled)return null;for(const o of this.tabs){const a=o===t;o.active!==a&&(o.active=a),o.tabIndex=a?0:-1,o.setAttribute("aria-selected",a?"true":"false")}const e=t.panel||null;let i=null;if(e!==null)for(const o of this.panels){const a=o.name===e&&i===null;o.active!==a&&(o.active=a),a&&(i=o)}else for(const o of this.panels)o.active&&(o.active=!1);return this._lastApplied=t,{panel:i,name:e}}_setActive(t){const e=this._applyActive(t);e&&this._onTabsChange({activeTab:t,activePanel:e.panel,name:e.name})}_clearActive(t){if(t.getAttribute("aria-selected")!=="true")return;t.setAttribute("aria-selected","false"),this._lastApplied=null;const e=t.panel;if(e)for(const i of this.panels)i.name===e&&i.active&&(i.active=!1)}render(){return f`<div class="awc-tabs-container" part="tablist" role="tablist" aria-orientation="horizontal"><slot @click="${this._handleTabClick}" @slotchange="${co(this,po)}"></slot></div>${this.noDivider?"":f`<awc-divider part="divider" spacing="none"></awc-divider>`}<slot name="panel" @slotchange="${co(this,po)}"></slot>`}},Vi=new WeakSet,Ia=function(){const r=this.tabs,t=this.panels;for(const i of r)i.hasAttribute("role")||i.setAttribute("role","tab"),i.id||
3(Xn+=1,i.id=`awc-tab-${Xn}`),i.setAttribute("aria-disabled",i.disabled?"true":"false"),i.hasAttribute("tabindex")||(i.tabIndex=-1);const e=new Map;for(const i of r)i.panel&&!e.has(i.panel)&&e.set(i.panel,i);for(const i of t){const o=i.name?e.get(i.name):void 0;o&&(o.getAttribute("aria-controls")!==i.id&&o.setAttribute("aria-controls",i.id),i.getAttribute("aria-labelledby")!==o.id&&i.setAttribute("aria-labelledby",o.id))}},Oa=function(){const r=this.tabs;if(r.length===0)return;const t=r.filter(i=>i.active&&!i.disabled);let e=null;if(t.length>=1){e=t[0];for(const i of r)i!==e&&i.active&&(i.active=!1)}else e=r.find(i=>!i.disabled)??null;if(e)this._setActive(e);else for(const i of r)i.tabIndex=-1,i.setAttribute("aria-selected","false")},uo=new WeakMap,po=new WeakMap,s.AwcTabsGroup.styles=[Sh],Ea([c({type:Boolean,reflect:!0,attribute:"no-divider"})],s.AwcTabsGroup.prototype,"noDivider",2),Ea([F("awc-tabs-change")],s.AwcTabsGroup.prototype,"_onTabsChange",2),s.AwcTabsGroup=Ea([I(mr)],s.AwcTabsGroup);const Eh=P`:host{width:100%;display:inline-block;contain:content}.awc-segment-switcher__item{cursor:pointer;display:flex;align-items:center;justify-content:center;font:var(--awc-font-caption-1-medium);height:32px;text-align:center;text-decoration:none;margin:0;border-radius:var(--corner-radius-s);color:var(--colors-text);transition:opacity var(--awc-duration-slow,.3s) ease}:host(:not([active])) .awc-segment-switcher__item:active{opacity:.75}`;const D=r=>r??A;var Lh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,br=(r,t,e,i)=>{for(var o=i>1?void 0:i?Ih(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Lh(t,e,o),o};const Oh="awc-segment-switcher-item";s.AwcSegmentSwitcherItem=class extends C{constructor(){super(...arguments),this.active=!1,this.target="_self"}update(t){super.update(t),t.has("active")&&this.active&&(this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this._handleActiveItem())}_handleActiveItem(){this._onChangeActive(this.active)}render(){return this.href?f`<a class="awc-segment-switcher__item" part="base" href="${D(this.href)}" target="${D(this.target)}" @change="${this._handleActiveItem}"><slot></slot></a>`:f`<div class="awc-segment-switcher__item" part="base" @change="${this._handleActiveItem}"><slot></slot></div>`}},s.AwcSegmentSwitcherItem.styles=[Eh],br([c({type:String,reflect:!0})],s.AwcSegmentSwitcherItem.prototype,"href",2),br([c({type:Boolean,reflect:!0})],s.AwcSegmentSwitcherItem.prototype,"active",2),br([c({reflect:!0})],s.AwcSegmentSwitcherItem.prototype,"target",2),br([F("awc-segment-item-change")],s.AwcSegmentSwitcherItem.prototype,"_onChangeActive",2),s.AwcSegmentSwitcherItem=br([I("awc-segment-switcher-item")],s.AwcSegmentSwitcherItem);const Mh=P`:host{display:inline-block;width:100%}.awc-segment-switcher{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(32px,1fr));justify-content:space-between;align-items:center;border-radius:var(--corner-radius-s);background-color:var(--colors-stroke);overflow:hidden;padding:2px}.slider{position:absolute;height:32px;background-color:var(--colors-base-surface);border-radius:var(--corner-radius-s)}`;var Jn={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Ma={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Ph=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],fo={CSS:{},springs:{}};function ve(r,t,e){return Math.min(Math.max(r,t),e)}function yr(r,t){return r.indexOf(t)>-1}function Pa(r,t){return r.apply(null,t)}var U={arr:function(r){return Array.isArray(r)},obj:function(r){return yr(Object.prototype.toString.call(r),"Object")},pth:function(r){return U.obj(r)&&r.hasOwnProperty("totalLength")},svg:function(r){return r instanceof SVGElement},inp:function(r){return r instanceof HTMLInputElement},dom:function(r){return r.nodeType||U.svg(r)},str:function(r){return typeof r=="string"},fnc:function(r){return typeof r=="function"},und:function(r){return typeof r>"u"},nil:function(r){return U.und(r)||r===null},hex:function(r){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(r)},rgb:function(r){return/^rgb/.test(r)},hsl:function(r){return/^hsl/.test(r)},col:function(r){return U.hex(r)||U.rgb(r)||U.hsl(r)},key:function(r){return!Jn.hasOwnProperty(r)&&!Ma.hasOwnProperty(r)&&r!=="targets"&&r!=="keyframes"}};function Qn(r){var t=/\(([^)]+)\)/.exec(r);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function tl(r,t){var e=Qn(r),i=ve(U.und(e[0])?1:e[0],.1,100),o=ve(U.und(e[1])?100:e[1],.1,100),a=ve(U.und(e[2])?10:e[2],.1,100),n=ve(U.und(e[3])?0:e[3],.1,100),d=Math.sqrt(o/i),l=a/(2*Math.sqrt(o*i)),h=l<1?d*Math.sqrt(1-l*l):0,p=1,w=l<1?(l*d+-n)/h:-n+d;function g(m){var b=t?t*m/1e3:m;return l<1?b=Math.exp(-b*l*d)*(p*Math.cos(h*b)+w*Math.sin(h*b)):b=(p+w*b)*Math.exp(-b*d),m===0||m===1?m:1-b}function v(){var m=fo.springs[r];if(m)return m;for(var b=1/6,k=0,T=0;;)if(k+=b,g(k)===1){if(T++,T>=16)break}else T=0;var $=k*b*1e3;return fo.springs[r]=$,$}return t?g:v}function Dh(r){return r===void 0&&(r=10),function(t){return Math.ceil(ve(t,1e-6,1)*r)*(1/r)}}var Bh=function(){var r=11,t=1/(r-1);function e(p,w){return 1-3*w+3*p}function i(p,w){return 3*w-6*p}function o(p){return 3*p}function a(p,w,g){return((e(w,g)*p+i(w,g))*p+o(w))*p}function n(p,w,g){return 3*e(w,g)*p*p+2*i(w,g)*p+o(w)}function d(p,w,g,v,m){var b,k,T=0;do k=w+(g-w)/2,b=a(k,v,m)-p,b>0?g=k:w=k;while(Math.abs(b)>1e-7&&++T<10);return k}function l(p,w,g,v){for(var m=0;m<4;++m){var b=n(w,g,v);if(b===0)return w;var k=a(w,g,v)-p;w-=k/b}return w}function h(p,w,g,v){if(!(0<=p&&p<=1&&0<=g&&g<=1))return;var m=new Float32Array(r);if(p!==w||g!==v)for(var b=0;b<r;++b)m[b]=a(b*t,p,g);function k(T){for(var $=0,E=1,O=r-1;E!==O&&m[E]<=T;++E)$+=t;--E;var L=(T-m[E])/(m[E+1]-m[E]),V=$+L*t,Z=n(V,p,g);return Z>=.001?l(T,V,p,g):Z===0?V:d(T,$,$+t,p,g)}return function(T){return p===w&&g===v||T===0||T===1?T:a(k(T),w,v)}}return h}(),el=function(){var r={linear:function(){return function(i){return i}}},t={Sine:function(){return function(i){return 1-Math.cos(i*Math.PI/2)}},Expo:function(){return function(i){return i?Math.pow(2,10*i-10):0}},Circ:function(){return function(i){return 1-Math.sqrt(1-i*i)}},Back:function(){return function(i){return i*i*(3*i-2)}},Bounce:function(){return function(i){for(var o,a=4;i<((o=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-7.5625*Math.pow((o*3-2)/22-i,2)}},Elastic:function(i,o){i===void 0&&(i=1),o===void 0&&(o=.5);var a=ve(i,1,10),n=ve(o,.1,2);return function(d){return d===0||d===1?d:-a*Math.pow(2,10*(d-1))*Math.sin((d-1-n/(Math.PI*2)*Math.asin(1/a))*(Math.PI*2)/n)}}},e=["Quad","Cubic","Quart","Quint"];return e.forEach(function(i,o){t[i]=function(){return function(a){return Math.pow(a,o+2)}}}),Object.keys(t).forEach(function(i){var o=t[i];r["easeIn"+i]=o,r["easeOut"+i]=function(a,n){return function(d){return 1-o(a,n)(1-d)}},r["easeInOut"+i]=function(a,n){return function(d){return d<.5?o(a,n)(d*2)/2:1-o(a,n)(d*-2+2)/2}},r["easeOutIn"+i]=function(a,n){return function(d){return d<.5?(1-o(a,n)(1-d*2))/2:(o(a,n)(d*2-1)+1)/2}}}),r}();function Da(r,t){if(U.fnc(r))return r;var e=r.split("(")[0],i=el[e],o=Qn(r);switch(e){case"spring":return tl(r,t);case"cubicBezier":return Pa(Bh,o);case"steps":return Pa(Dh,o);default:return Pa(i,o)}}function il(r){try{var t=document.querySelectorAll(r);return t}catch{return}}function wo(r,t){for(var e=r.length,i=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<e;a++)if(a in r){var n=r[a];t.call(i,n,a,r)&&o.push(n)}return o}function go(r){return r.reduce(function(t,e){return t.concat(U.arr(e)?go(e):e)},[])}function rl(r){return U.arr(r)?r:(U.str(r)&&(r=il(r)||r),r instanceof NodeList||r instanceof HTMLCollection?[].slice.call(r):[r])}function Ba(r,t){return r.some(function(e){return e===t})}function Va(r){var t={};for(var e in r)t[e]=r[e];return t}function Ha(r,t){var e=Va(r);for(var i in r)e[i]=t.hasOwnProperty(i)?t[i]:r[i];return e}function vo(r,t){var e=Va(r);for(var i in t)e[i]=U.und(r[i])?t[i]:r[i];return e}function Vh(r){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(r);return t?"rgba("+t[1]+",1)":r}function Hh(r){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,e=r.replace(t,function(d,l,h,p){return l+l+h+h+p+p}),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),o=parseInt(i[1],16),a=parseInt(i[2],16),n=parseInt(i[3],16);return"rgba("+o+","+a+","+n+",1)"}function Rh(r){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(r)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(r),e=parseInt(t[1],10)/360,i=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[4]||1;function n(g,v,m){return m<0&&(m+=1),m>1&&(m-=1),m<.16666666666666666?g+(v-g)*6*m:m<.5?v:m<.6666666666666666?g+(v-g)*(.6666666666666666-m)*6:g}var d,l,h;if(i==0)d=l=h=o;else{var p=o<.5?o*(1+i):o+i-o*i,w=2*o-p;d=n(w,p,e+.3333333333333333),l=n(w,p,e),h=n(w,p,e-.3333333333333333)}return"rgba("+d*255+","+l*255+","+h*255+","+a+")"}function zh(r){if(U.rgb(r))return Vh(r);if(U.hex(r))return Hh(r);if(U.hsl(r))return Rh(r)}function Ve(r){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(r);if(t)return t[1]}function Fh(r){if(yr(r,"translate")||r==="perspective")return"px";if(yr(r,"rotate")||yr(r,"skew"))return"deg"}function Ra(r,t){return U.fnc(r)?r(t.target,t.id,t.total):r}function _e(r,t){return r.getAttribute(t)}function za(r,t,e){var i=Ve(t);if(Ba([e,"deg","rad","turn"],i))return t;var o=fo.CSS[t+e];if(!U.und(o))return o;var a=100,n=document.createElement(r.tagName),d=r.parentNode&&r.parentNode!==document?r.parentNode:document.body;d.appendChild(n),n.style.position="absolute",n.style.width=a+e;var l=a/n.offsetWidth;d.removeChild(n);var h=l*parseFloat(t);return fo.CSS[t+e]=h,h}function ol(r,t,e){if(t in r.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=r.style[t]||getComputedStyle(r).getPropertyValue(i)||"0";return e?za(r,o,e):o}}function Fa(r,t){if(U.dom(r)&&!U.inp(r)&&(!U.nil(_e(r,t))||U.svg(r)&&r[t]))return"attribute";if(U.dom(r)&&Ba(Ph,t))return"transform";if(U.dom(r)&&t!=="transform"&&ol(r,t))return"css";if(r[t]!=null)return"object"}function al(r){if(U.dom(r)){for(var t=r.style.transform||"",e=/(\w+)\(([^)]*)\)/g,i=new Map,o;o=e.exec(t);)i.set(o[1],o[2]);return i}}function Nh(r,t,e,i){var o=yr(t,"scale")?1:0+Fh(t),a=al(r).get(t)||o;return e&&(e.transforms.list.set(t,a),e.transforms.last=t),i?za(r,a,i):a}function Na(r,t,e,i){switch(Fa(r,t)){case"transform":return Nh(r,t,i,e);case"css":return ol(r,t,e);case"attribute":return _e(r,t);default:return r[t]||0}}function ja(r,t){var e=/^(\*=|\+=|-=)/.exec(r);if(!e)return r;var i=Ve(r)||0,o=parseFloat(t),a=parseFloat(r.replace(e[0],""));switch(e[0][0]){case"+":return o+a+i;case"-":return o-a+i;case"*":return o*a+i}}function sl(r,t){if(U.col(r))return zh(r);
3if(/\s/g.test(r))return r;var e=Ve(r),i=e?r.substr(0,r.length-e.length):r;return t?i+t:i}function Ua(r,t){return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function jh(r){return Math.PI*2*_e(r,"r")}function Uh(r){return _e(r,"width")*2+_e(r,"height")*2}function Zh(r){return Ua({x:_e(r,"x1"),y:_e(r,"y1")},{x:_e(r,"x2"),y:_e(r,"y2")})}function nl(r){for(var t=r.points,e=0,i,o=0;o<t.numberOfItems;o++){var a=t.getItem(o);o>0&&(e+=Ua(i,a)),i=a}return e}function Wh(r){var t=r.points;return nl(r)+Ua(t.getItem(t.numberOfItems-1),t.getItem(0))}function ll(r){if(r.getTotalLength)return r.getTotalLength();switch(r.tagName.toLowerCase()){case"circle":return jh(r);case"rect":return Uh(r);case"line":return Zh(r);case"polyline":return nl(r);case"polygon":return Wh(r)}}function Gh(r){var t=ll(r);return r.setAttribute("stroke-dasharray",t),t}function qh(r){for(var t=r.parentNode;U.svg(t)&&U.svg(t.parentNode);)t=t.parentNode;return t}function cl(r,t){var e=t||{},i=e.el||qh(r),o=i.getBoundingClientRect(),a=_e(i,"viewBox"),n=o.width,d=o.height,l=e.viewBox||(a?a.split(" "):[0,0,n,d]);return{el:i,viewBox:l,x:l[0]/1,y:l[1]/1,w:n,h:d,vW:l[2],vH:l[3]}}function Yh(r,t){var e=U.str(r)?il(r)[0]:r,i=t||100;return function(o){return{property:o,el:e,svg:cl(e),totalLength:ll(e)*(i/100)}}}function Kh(r,t,e){function i(p){p===void 0&&(p=0);var w=t+p>=1?t+p:0;return r.el.getPointAtLength(w)}var o=cl(r.el,r.svg),a=i(),n=i(-1),d=i(1),l=e?1:o.w/o.vW,h=e?1:o.h/o.vH;switch(r.property){case"x":return(a.x-o.x)*l;case"y":return(a.y-o.y)*h;case"angle":return Math.atan2(d.y-n.y,d.x-n.x)*180/Math.PI}}function dl(r,t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=sl(U.pth(r)?r.totalLength:r,t)+"";return{original:i,numbers:i.match(e)?i.match(e).map(Number):[0],strings:U.str(r)||t?i.split(e):[]}}function Za(r){var t=r?go(U.arr(r)?r.map(rl):rl(r)):[];return wo(t,function(e,i,o){return o.indexOf(e)===i})}function hl(r){var t=Za(r);return t.map(function(e,i){return{target:e,id:i,total:t.length,transforms:{list:al(e)}}})}function Xh(r,t){var e=Va(t);if(/^spring/.test(e.easing)&&(e.duration=tl(e.easing)),U.arr(r)){var i=r.length,o=i===2&&!U.obj(r[0]);o?r={value:r}:U.fnc(t.duration)||(e.duration=t.duration/i)}var a=U.arr(r)?r:[r];return a.map(function(n,d){var l=U.obj(n)&&!U.pth(n)?n:{value:n};return U.und(l.delay)&&(l.delay=d?0:t.delay),U.und(l.endDelay)&&(l.endDelay=d===a.length-1?t.endDelay:0),l}).map(function(n){return vo(n,e)})}function Jh(r){for(var t=wo(go(r.map(function(a){return Object.keys(a)})),function(a){return U.key(a)}).reduce(function(a,n){return a.indexOf(n)<0&&a.push(n),a},[]),e={},i=function(a){var n=t[a];e[n]=r.map(function(d){var l={};for(var h in d)U.key(h)?h==n&&(l.value=d[h]):l[h]=d[h];return l})},o=0;o<t.length;o++)i(o);return e}function Qh(r,t){var e=[],i=t.keyframes;i&&(t=vo(Jh(i),t));for(var o in t)U.key(o)&&e.push({name:o,tweens:Xh(t[o],r)});return e}function tu(r,t){var e={};for(var i in r){var o=Ra(r[i],t);U.arr(o)&&(o=o.map(function(a){return Ra(a,t)}),o.length===1&&(o=o[0])),e[i]=o}return e.duration=parseFloat(e.duration),e.delay=parseFloat(e.delay),e}function eu(r,t){var e;return r.tweens.map(function(i){var o=tu(i,t),a=o.value,n=U.arr(a)?a[1]:a,d=Ve(n),l=Na(t.target,r.name,d,t),h=e?e.to.original:l,p=U.arr(a)?a[0]:h,w=Ve(p)||Ve(l),g=d||w;return U.und(n)&&(n=h),o.from=dl(p,g),o.to=dl(ja(n,p),g),o.start=e?e.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=Da(o.easing,o.duration),o.isPath=U.pth(a),o.isPathTargetInsideSVG=o.isPath&&U.svg(t.target),o.isColor=U.col(o.from.original),o.isColor&&(o.round=1),e=o,o})}var ul={css:function(r,t,e){return r.style[t]=e},attribute:function(r,t,e){return r.setAttribute(t,e)},object:function(r,t,e){return r[t]=e},transform:function(r,t,e,i,o){if(i.list.set(t,e),t===i.last||o){var a="";i.list.forEach(function(n,d){a+=d+"("+n+") "}),r.style.transform=a}}};function pl(r,t){var e=hl(r);e.forEach(function(i){for(var o in t){var a=Ra(t[o],i),n=i.target,d=Ve(a),l=Na(n,o,d,i),h=d||Ve(l),p=ja(sl(a,h),l),w=Fa(n,o);ul[w](n,o,p,i.transforms,!0)}})}function iu(r,t){var e=Fa(r.target,t.name);if(e){var i=eu(t,r),o=i[i.length-1];return{type:e,property:t.name,animatable:r,tweens:i,duration:o.end,delay:i[0].delay,endDelay:o.endDelay}}}function ru(r,t){return wo(go(r.map(function(e){return t.map(function(i){return iu(e,i)})})),function(e){return!U.und(e)})}function fl(r,t){var e=r.length,i=function(a){return a.timelineOffset?a.timelineOffset:0},o={};return o.duration=e?Math.max.apply(Math,r.map(function(a){return i(a)+a.duration})):t.duration,o.delay=e?Math.min.apply(Math,r.map(function(a){return i(a)+a.delay})):t.delay,o.endDelay=e?o.duration-Math.max.apply(Math,r.map(function(a){return i(a)+a.duration-a.endDelay})):t.endDelay,o}var wl=0;function ou(r){var t=Ha(Jn,r),e=Ha(Ma,r),i=Qh(e,r),o=hl(r.targets),a=ru(o,i),n=fl(a,e),d=wl;return wl++,vo(t,{id:d,children:[],animatables:o,animations:a,duration:n.duration,delay:n.delay,endDelay:n.endDelay})}var de=[],gl=function(){var r;function t(){!r&&(!vl()||!dt.suspendWhenDocumentHidden)&&de.length>0&&(r=requestAnimationFrame(e))}function e(o){for(var a=de.length,n=0;n<a;){var d=de[n];d.paused?(de.splice(n,1),a--):(d.tick(o),n++)}r=n>0?requestAnimationFrame(e):void 0}function i(){dt.suspendWhenDocumentHidden&&(vl()?r=cancelAnimationFrame(r):(de.forEach(function(o){return o._onDocumentVisibility()}),gl()))}return typeof document<"u"&&document.addEventListener("visibilitychange",i
3),t}();function vl(){return!!document&&document.hidden}function dt(r){r===void 0&&(r={});var t=0,e=0,i=0,o,a=0,n=null;function d($){var E=window.Promise&&new Promise(function(O){return n=O});return $.finished=E,E}var l=ou(r);d(l);function h(){var $=l.direction;$!=="alternate"&&(l.direction=$!=="normal"?"normal":"reverse"),l.reversed=!l.reversed,o.forEach(function(E){return E.reversed=l.reversed})}function p($){return l.reversed?l.duration-$:$}function w(){t=0,e=p(l.currentTime)*(1/dt.speed)}function g($,E){E&&E.seek($-E.timelineOffset)}function v($){if(l.reversePlayback)for(var O=a;O--;)g($,o[O]);else for(var E=0;E<a;E++)g($,o[E])}function m($){for(var E=0,O=l.animations,L=O.length;E<L;){var V=O[E],Z=V.animatable,K=V.tweens,W=K.length-1,j=K[W];W&&(j=wo(K,function(pn){return $<pn.end})[0]||j);for(var it=ve($-j.start-j.delay,0,j.duration)/j.duration,at=isNaN(it)?1:j.easing(it),J=j.to.strings,rt=j.round,nt=[],Ot=j.to.numbers.length,Tt=void 0,pt=0;pt<Ot;pt++){var xt=void 0,Xt=j.to.numbers[pt],or=j.from.numbers[pt]||0;j.isPath?xt=Kh(j.value,at*Xt,j.isPathTargetInsideSVG):xt=or+at*(Xt-or),rt&&(j.isColor&&pt>2||(xt=Math.round(xt*rt)/rt)),nt.push(xt)}var na=J.length;if(!na)Tt=nt[0];else{Tt=J[0];for(var Ii=0;Ii<na;Ii++){J[Ii];var st=J[Ii+1],eo=nt[Ii];isNaN(eo)||(st?Tt+=eo+st:Tt+=eo+" ")}}ul[V.type](Z.target,V.property,Tt,Z.transforms),V.currentValue=Tt,E++}}function b($){l[$]&&!l.passThrough&&l[$](l)}function k(){l.remaining&&l.remaining!==!0&&l.remaining--}function T($){var E=l.duration,O=l.delay,L=E-l.endDelay,V=p($);l.progress=ve(V/E*100,0,100),l.reversePlayback=V<l.currentTime,o&&v(V),!l.began&&l.currentTime>0&&(l.began=!0,b("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,b("loopBegin")),V<=O&&l.currentTime!==0&&m(0),(V>=L&&l.currentTime!==E||!E)&&m(E),V>O&&V<L?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,b("changeBegin")),b("change"),m(V)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,b("changeComplete")),l.currentTime=ve(V,0,E),l.began&&b("update"),$>=E&&(e=0,k(),l.remaining?(t=i,b("loopComplete"),l.loopBegan=!1,l.direction==="alternate"&&h()):(l.paused=!0,l.completed||(l.completed=!0,b("loopComplete"),b("complete"),!l.passThrough&&"Promise"in window&&(n(),d(l)))))}return l.reset=function(){var $=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed=$==="reverse",l.remaining=l.loop,o=l.children,a=o.length;for(var E=a;E--;)l.children[E].reset();(l.reversed&&l.loop!==!0||$==="alternate"&&l.loop===1)&&l.remaining++,m(l.reversed?l.duration:0)},l._onDocumentVisibility=w,l.set=function($,E){return pl($,E),l},l.tick=function($){i=$,t||(t=i),T((i+(e-t))*dt.speed)},l.seek=function($){T(p($))},l.pause=function(){l.paused=!0,w()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,de.push(l),w(),gl())},l.reverse=function(){h(),l.completed=!l.reversed,w()},l.restart=function(){l.reset(),l.play()},l.remove=function($){var E=Za($);ml(E,l)},l.reset(),l.autoplay&&l.play(),l}function _l(r,t){for(var e=t.length;e--;)Ba(r,t[e].animatable.target)&&t.splice(e,1)}function ml(r,t){var e=t.animations,i=t.children;_l(r,e);for(var o=i.length;o--;){var a=i[o],n=a.animations;_l(r,n),!n.length&&!a.children.length&&i.splice(o,1)}!e.length&&!i.length&&t.pause()}function au(r){for(var t=Za(r),e=de.length;e--;){var i=de[e];ml(t,i)}}function su(r,t){t===void 0&&(t={});var e=t.direction||"normal",i=t.easing?Da(t.easing):null,o=t.grid,a=t.axis,n=t.from||0,d=n==="first",l=n==="center",h=n==="last",p=U.arr(r),w=parseFloat(p?r[0]:r),g=p?parseFloat(r[1]):0,v=Ve(p?r[1]:r)||0,m=t.start||0+(p?w:0),b=[],k=0;return function(T,$,E){if(d&&(n=0),l&&(n=(E-1)/2),h&&(n=E-1),!b.length){for(var O=0;O<E;O++){if(!o)b.push(Math.abs(n-O));else{var L=l?(o[0]-1)/2:n%o[0],V=l?(o[1]-1)/2:Math.floor(n/o[0]),Z=O%o[0],K=Math.floor(O/o[0]),W=L-Z,j=V-K,it=Math.sqrt(W*W+j*j);a==="x"&&(it=-W),a==="y"&&(it=-j),b.push(it)}k=Math.max.apply(Math,b)}i&&(b=b.map(function(J){return i(J/k)*k})),e==="reverse"&&(b=b.map(function(J){return a?J<0?J*-1:-J:Math.abs(k-J)}))}var at=p?(g-w)/k:w;return m+at*(Math.round(b[$]*100)/100)+v}}function nu(r){r===void 0&&(r={});var t=dt(r);return t.duration=0,t.add=function(e,i){var o=de.indexOf(t),a=t.children;o>-1&&de.splice(o,1);function n(g){g.passThrough=!0}for(var d=0;d<a.length;d++)n(a[d]);var l=vo(e,Ha(Ma,r));l.targets=l.targets||r.targets;var h=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=U.und(i)?h:ja(i,h),n(t),t.seek(l.timelineOffset);var p=dt(l);n(p),a.push(p);var w=fl(a,r);return t.delay=w.delay,t.endDelay=w.endDelay,t.duration=w.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}dt.version="3.2.1",dt.speed=1,dt.suspendWhenDocumentHidden=!0,dt.running=de,dt.remove=au,dt.get=Na,dt.set=pl,dt.convertPx=za,dt.path=Yh,dt.setDashoffset=Gh,dt.stagger=su,dt.timeline=nu,dt.easing=Da,dt.penner=el,dt.random=function(r,t){return Math.floor(Math.random()*(t-r+1))+r};var lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,Hi=(r,t,e,i)=>{for(var o=i>1?void 0:i?cu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&lu(t,e,o),o};s.AwcSegmentSwitcher=class extends C{constructor(){super(...arguments),this.sliderPosition=0,this.sliderWidth=0,this.isAnimating=!1,this.pendingItem=null,this.currentAnimation=null}get segmentSwitcherItems(){return[...this.querySelectorAll(Oh)]}firstUpdated(){this._rafId=requestAnimationFrame(()=>{const t=this.segmentSwitcherItems.find(e=>e.active);t?this.initializeSliderPosition(t):this.hideSlider(),this.resizeObserver=new ResizeObserver(()=>{const e=this.segmentSwitcherItems.find(i=>i.active);e?this.updateSliderPosition(e):this.hideSlider()}),this.resizeObserver.observe(this._container)})}disconnectedCallback(){super.disconnectedCallback(),this._rafId&&cancelAnimationFrame(this._rafId),this.resizeObserver?.disconnect()}initializeSliderPosition(t){const e=t.getBoundingClientRect(),i=this._container.getBoundingClientRect();this.sliderPosition=e.left-i.left,this.sliderWidth=t.offsetWidth,this._slider.style.transform=`translateX(${this.sliderPosition}px)`,this._slider.style.width=`${this.sliderWidth}px`,this._slider.style.visibility="visible",this._slider.style.opacity="1"}updateSliderPosition(t){const e=t.getBoundingClientRect(),i=this._container.getBoundingClientRect(),o=e.left-i.left,a=t.offsetWidth;this.sliderPosition=o,this.sliderWidth=a,this._slider.style.transform=`translateX(${o}px)`,this._slider.style.width=`${a}px`,this._slider.style.visibility="visible",this._slider.style.opacity="1"}handleSegmentItemClick(t){const e=t.target;e&&!e.active&&(this.isAnimating?this.pendingItem=e:this.setActiveItem(e))}setActiveItem(t){this.isAnimating=!0;const e=t.getBoundingClientRect(),i=this._container.getBoundingClientRect(),o=e.left-i.left,a=t.offsetWidth;
3this.segmentSwitcherItems.forEach(n=>{n.active=!1}),t.active=!0,this.currentAnimation&&(this.currentAnimation.pause(),dt.remove(this._slider)),this.currentAnimation=dt({targets:this._slider,translateX:o,width:a,duration:300,easing:"easeOutCubic",begin:()=>{this._slider.style.visibility="visible",this._slider.style.opacity="1"},complete:()=>{if(this.sliderPosition=o,this.sliderWidth=a,this.isAnimating=!1,this.currentAnimation=null,this.pendingItem){const n=this.pendingItem;this.pendingItem=null,this.setActiveItem(n)}}})}hideSlider(){this.sliderPosition=0,this.sliderWidth=0,this._slider.style.transform="translateX(0px)",this._slider.style.width="0px",this._slider.style.visibility="hidden",this._slider.style.opacity="0"}render(){return f`<div class="awc-segment-switcher" part="base"><div class="slider" part="indicator"></div><slot @click="${this.handleSegmentItemClick}"></slot></div>`}},s.AwcSegmentSwitcher.styles=Mh,Hi([M()],s.AwcSegmentSwitcher.prototype,"sliderPosition",2),Hi([M()],s.AwcSegmentSwitcher.prototype,"sliderWidth",2),Hi([M()],s.AwcSegmentSwitcher.prototype,"isAnimating",2),Hi([H(".slider")],s.AwcSegmentSwitcher.prototype,"_slider",2),Hi([H(".awc-segment-switcher")],s.AwcSegmentSwitcher.prototype,"_container",2),s.AwcSegmentSwitcher=Hi([I("awc-segment-switcher")],s.AwcSegmentSwitcher);const du=P`:host{display:block;--awc-alert-background-primary:#2a8ce31a;--awc-alert-background-warning:#ff71881a;--awc-alert-background-success:#24b8871a;--awc-alert-background-attention:#fd90381a;--awc-alert-text-primary:var(--global-cyan-500);--awc-alert-text-warning:var(--global-red-400);--awc-alert-text-success:var(--global-green-500);--awc-alert-text-attention:var(--global-orange-400)}:host([variant=message]){border-radius:0 var(--corner-radius-m) var(--corner-radius-m) var(--corner-radius-m)}:host([variant=block]){border-radius:var(--corner-radius-m)}:host([color=primary]){background-color:var(--awc-alert-background-primary);color:var(--awc-alert-text-primary)}:host([color=warning]){background-color:var(--awc-alert-background-warning);color:var(--awc-alert-text-warning)}:host([color=success]){background-color:var(--awc-alert-background-success);color:var(--awc-alert-text-success)}:host([color=attention]){background-color:var(--awc-alert-background-attention);color:var(--awc-alert-text-attention)}.awc-alert{padding:12px 16px;text-align:start;word-wrap:break-word;overflow-wrap:break-word;font:var(--awc-font-text-regular-14)}.awc-alert__title{margin:0;padding:0}`;var hu=Object.defineProperty,uu=Object.getOwnPropertyDescriptor,Wa=(r,t,e,i)=>{for(var o=i>1?void 0:i?uu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&hu(t,e,o),o};s.AwcAlert=class extends C{constructor(){super(...arguments),this.color="primary",this.variant="block"}render(){return f`<div class="awc-alert" part="base"><p class="awc-alert__title" part="label"><slot></slot></p></div>`}},s.AwcAlert.styles=[du],Wa([c({type:String,reflect:!0})],s.AwcAlert.prototype,"color",2),Wa([c({type:String,reflect:!0})],s.AwcAlert.prototype,"variant",2),s.AwcAlert=Wa([I("awc-alert")],s.AwcAlert);const pu=P`:host{box-sizing:border-box;display:var(--awc-avatar-display,block);max-width:var(--awc-avatar-size);max-height:var(--awc-avatar-size)}a{text-decoration:none}.awc-avatar{position:relative;width:var(--awc-avatar-size,36px);height:var(--awc-avatar-size,36px);border-radius:var(--awc-avatar-border-radius,var(--corner-radius-circular));outline:var(--awc-avatar-border,var(--_awc-avatar-outline,none));transition:transform var(--awc-duration-slow,.3s) ease}.awc-avatar--sliced{--awc-avatar-margin:10px;--_awc-avatar-outline:2px solid var(--awc-avatar-ring-color, var(--colors-base-surface));margin-left:calc(-1 * var(--awc-avatar-margin))}.awc-avatar--hovered:hover{--awc-avatar-transform:5px;transform:translate(calc(-1 * var(--awc-avatar-transform)))}:host([rounded=circle]){--awc-avatar-border-radius:var(--corner-radius-circular)}:host([rounded=square]){--awc-avatar-border-radius:var(--corner-radius-l)}:host([size='20']){--awc-avatar-size:20px;--awc-avatar-font:var(--awc-font-text-medium-14)}
3:host([size='24']){--awc-avatar-size:24px;--awc-avatar-font:var(--awc-font-text-medium-14)}:host([size='32']){--awc-avatar-size:32px;--awc-avatar-font:var(--awc-font-h5-medium)}:host([size='36']){--awc-avatar-size:36px;--awc-avatar-font:var(--awc-font-h5-medium)}:host([size='40']){--awc-avatar-size:40px;--awc-avatar-font:var(--awc-font-h4-medium)}:host([size='48']){--awc-avatar-size:48px;--awc-avatar-font:var(--awc-font-h3-medium)}:host([size='72']){--awc-avatar-size:72px;--awc-avatar-font:var(--awc-font-h2-medium)}:host([size='96']){--awc-avatar-size:96px;--awc-avatar-font:500 48px/60px "Inter"}:host([size='128']){--awc-avatar-size:128px;--awc-avatar-font:500 64px/52px "Inter"}:host([size='160']){--awc-avatar-size:160px;--awc-avatar-font:500 96px/52px "Inter"}:host([invisible]){display:none!important}.awc-avatar__status{--badge-translate:0;display:flex;position:absolute;bottom:0;right:0;transform:translate(var(--badge-translate),var(--badge-translate))}:host([size="20"][status=offline]) .awc-avatar__status,:host([size="20"][status=online]) .awc-avatar__status,:host([size="24"][status=offline]) .awc-avatar__status,:host([size="24"][status=online]) .awc-avatar__status{--badge-translate:0;bottom:1px;right:1px}:host([size="32"][status=offline]) .awc-avatar__status,:host([size="32"][status=online]) .awc-avatar__status{--badge-translate:0;bottom:2px;right:2px}:host([size="36"][status=offline]) .awc-avatar__status,:host([size="36"][status=online]) .awc-avatar__status,:host([size="40"][status=offline]) .awc-avatar__status,:host([size="40"][status=online]) .awc-avatar__status,:host([size="48"][status=offline]) .awc-avatar__status,:host([size="48"][status=online]) .awc-avatar__status,:host([size="72"][status=offline]) .awc-avatar__status,:host([size="72"][status=online]) .awc-avatar__status{--badge-translate:0;bottom:3px;right:3px}:host([size="96"][status=offline][rounded=square]) .awc-avatar__status,:host([size="96"][status=online][rounded=square]) .awc-avatar__status{--badge-translate:-10%;bottom:0;right:0}:host([size="96"][status=offline][rounded=circle]) .awc-avatar__status,:host([size="96"][status=online][rounded=circle]) .awc-avatar__status{--badge-translate:-40%;bottom:0;right:0}:host([size="128"]) .awc-avatar__status,:host([size="160"]) .awc-avatar__status{--badge-translate:-10%;bottom:0;right:0}.awc-avatar--image{width:100%;height:100%;object-fit:cover;border-radius:var(--awc-avatar-border-radius,var(--corner-radius-circular))}.awc-avatar--no-image{width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-transform:uppercase;color:var(--colors-white);font:var(--awc-avatar-font);cursor:not-allowed;pointer-events:none;background-color:var(--awc-avatar-bg-color,var(--awc-avatar-custom-color));border-radius:var(--awc-avatar-border-radius,var(--corner-radius-circular))}.awc-avatar__initial{text-box:trim-both cap alphabetic}.awc-avatar--no-image svg{max-width:var(--awc-avatar-icon-size,85%);max-height:var(--awc-avatar-icon-size,85%);fill:var(--awc-avatar-icon-fill,var(--_awc-avatar-icon-fill,var(--colors-white)))}.awc-avatar--no-image.group,.awc-avatar--no-image.user{--awc-avatar-bg-color:var(--colors-input-background);--_awc-avatar-icon-fill:var(--colors-secondary);--awc-avatar-icon-size:67%}.awc-avatar--no-image.anonymous,.awc-avatar--no-image.deleted{--awc-avatar-bg-color:#919bb6;--awc-avatar-icon-size:50%}.awc-avatar--no-image.anonymous{--awc-avatar-bg-color:var(--global-grey-800)}.awc-avatar--no-image.robot{--awc-avatar-bg-color:#8dadd0}.awc-avatar--no-image.undefined{--awc-avatar-bg-color:#919bb6a3;--awc-avatar-icon-size:50%}`,bl={anonymous:S`<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.71336 5.65322L2.57606 1.31676C2.85923 -0.10662 4.72235 -0.476455 5.52771 0.730849C5.79228 1.12745 6.37513 1.12745 6.63969 0.730849C7.44506 -0.476454 9.30818 -0.106622 9.59135 1.31676L10.4624 5.69495C10.6961 5.75171 10.9288 5.81295 11.1603 5.87864L11.6511 6.01788C11.9062 6.09023 12.0543 6.35563 11.9819 6.61066C11.9095 6.86569 11.6442 7.01378 11.3891 6.94143L10.8983 6.80219C9.73953 6.47345 8.5506 6.2622 7.34949 6.17164C6.45119 6.10391 5.549
306 6.10391 4.65075 6.17164C3.44965 6.2622 2.26071 6.47345 1.10193 6.80219L0.611127 6.94143C0.356094 7.01378 0.0906973 6.86569 0.018346 6.61066C-0.0540052 6.35563 0.0940872 6.09023 0.34912 6.01788L0.83992 5.87864C1.12936 5.79653 1.42059 5.72137 1.71336 5.65322ZM7.43831 1.26359C7.76887 0.768059 8.53357 0.919854 8.6498 1.50407L9.44006 5.47641C8.77288 5.35296 8.09911 5.26544 7.42167 5.21436C6.47532 5.143 5.52493 5.143 4.57858 5.21436C3.95977 5.26102 3.34402 5.33808 2.73356 5.44516L3.51761 1.50407C3.63384 0.919854 4.39854 0.76806 4.7291 1.26359C5.37369 2.22987 6.79372 2.22987 7.43831 1.26359Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M0.960123 9.83963C0.960123 8.6467 1.92719 7.67963 3.12012 7.67963C4.14809 7.67963 5.00833 8.39772 5.2266 9.35963H6.77365C6.99192 8.39772 7.85216 7.67963 8.88012 7.67963C10.0731 7.67963 11.0401 8.6467 11.0401 9.83963C11.0401 11.0326 10.0731 11.9996 8.88012 11.9996C7.85216 11.9996 6.99192 11.2815 6.77365 10.3196H5.2266C5.00833 11.2815 4.14809 11.9996 3.12012 11.9996C1.92719 11.9996 0.960123 11.0326 0.960123 9.83963ZM3.12012 8.63963C2.45738 8.63963 1.92012 9.17689 1.92012 9.83963C1.92012 10.5024 2.45738 11.0396 3.12012 11.0396C3.78286 11.0396 4.32012 10.5024 4.32012 9.83963C4.32012 9.17689 3.78286 8.63963 3.12012 8.63963ZM7.68012 9.83963C7.68012 9.17689 8.21738 8.63963 8.88012 8.63963C9.54286 8.63963 10.0801 9.17689 10.0801 9.83963C10.0801 10.5024 9.54286 11.0396 8.88012 11.0396C8.21738 11.0396 7.68012 10.5024 7.68012 9.83963Z" fill="white"/></svg>`,deleted:S`<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.00004 0.96C6.8616 0.96 7.56004 1.65844 7.56004 2.52C7.56004 3.38156 6.8616 4.08 6.00004 4.08C5.13847 4.08 4.44004 3.38156 4.44004 2.52C4.44004 1.65844 5.13847 0.96 6.00004 0.96ZM8.52004 2.52C8.52004 1.12824 7.3918 0 6.00004 0C4.60828 0 3.48004 1.12824 3.48004 2.52C3.48004 3.91176 4.60828 5.04 6.00004 5.04C7.3918 5.04 8.52004 3.91176 8.52004 2.52ZM8.04004 6.48C8.04004 6.2149 7.82514 6 7.56004 6H4.44004C2.51809 6 0.96004 7.55805 0.96004 9.48V10.02C0.96004 11.1135 1.84652 12 2.94004 12H5.52004C5.78514 12 6.00004 11.7851 6.00004 11.52C6.00004 11.2549 5.78514 11.04 5.52004 11.04H2.94004C2.37671 11.04 1.92004 10.5833 1.92004 10.02V9.48C1.92004 8.08824 3.04828 6.96 4.44004 6.96H7.56004C7.82514 6.96 8.04004 6.7451 8.04004 6.48ZM10.899 8.85936C11.0865 8.67188 11.0864 8.36796 10.8989 8.18054C10.7114 7.99311 10.4075 7.99316 10.2201 8.18064L9.05939 9.34172L7.89934 8.18243C7.71183 7.99504 7.40791 7.99514 7.22052 8.18265C7.03313 8.37016 7.03323 8.67408 7.22074 8.86147L8.38067 10.0207L7.22104 11.1806C7.03362 11.3681 7.03367 11.672 7.22115 11.8595C7.40863 12.0469 7.71255 12.0468 7.89997 11.8594L9.05971 10.6993L10.2207 11.8595C10.4083 12.0469 10.7122 12.0468 10.8996 11.8593C11.087 11.6718 11.0869 11.3679 10.8993 11.1805L9.73843 10.0203L10.899 8.85936Z" fill="white"/></svg>`,robot:S`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5 8C5 6.34315 6.34315 5 8 5H16C17.6569 5 19 6.34315 19 8V16C19 17.6569 17.6569 19 16 19H8C6.34315 19 5 17.6569 5 16V8ZM8 7C7.44772 7 7 7.44772 7 8V16C7 16.5523 7.44772 17 8 17H16C16.5523 17 17 16.5523 17 16V8C17 7.44772 16.5523 7 16 7H8Z" fill="white"/><path d="M7 15C5.34315 15 4 13.6569 4 12C4 10.3431 5.34315 9 7 9C7 11 7 13 7 15Z" fill="white"/><path d="M17 15C18.6569 15 20 13.6569 20 12C20 10.3431 18.6569 9 17 9C17 11 17 13 17 15Z" fill="white"/><path d="M15 7C15 5.34315 13.6569 4 12 4C10.3431 4 9 5.34315 9 7C11 7 13 7 15 7Z" fill="white"/><rect x="9" y="13" width="6" height="2" rx="1" fill="white"/><circle cx="10" cy="10" r="1" fill="white"/><circle cx="14" cy="10" r="1" fill="white"/></svg>`,user:S`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Z"/></svg>`,group:S`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M110.5-205v-86q0-25 11.75-45.25T155.5-369q53-31 112-47.75T390-433.5q63.5 0 122.25 16.75T624-369q21.5 12.5 33.25 32.75T669-291v86H110.5Zm629 0v
3-85q0-41.5-19.25-75.75T669-421.5q36.5 8 70.75 20.75t65.75 32.25Q826-357 837.75-336t11.75 46v85h-110ZM390-479q-58 0-98-40t-40-98q0-58 40-98t98-40q58 0 98 40t40 98q0 58-40 98t-98 40Zm318-138.5q0 57.5-40 97.75t-98 40.25q-6.5 0-12.25-.25T545-482q24.5-27.5 38.75-61.5t14.25-74q0-39.5-14.25-73.75T545-753q6.5-1.5 12.5-1.75T570-755q58 0 98 40t40 97.5Z"/></svg>`,undefined:S`<svg viewBox="0 0 8 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.25799 2.02428C3.28688 1.85771 2.2515 2.45517 1.94312 3.33182C1.75985 3.85281 1.18893 4.12658 0.667941 3.94331C0.146952 3.76004 -0.126822 3.18912 0.0564498 2.66813C0.706862 0.819198 2.7195 -0.268818 4.59611 0.0530702C6.39616 0.361827 8.01237 2.04641 8.00978 4.00091C8.00934 5.53127 6.87472 6.5419 6.06448 7.08206C5.62885 7.37248 5.20034 7.58602 4.88467 7.72632L4.32601 7.94869C3.80207 8.12334 3.23575 7.84018 3.0611 7.31623C2.88657 6.79264 3.16924 6.22672 3.69251 6.05167C3.82132 6.00646 3.94769 5.95412 4.0724 5.89869C4.31923 5.78899 4.64072 5.62753 4.95508 5.41795C5.64468 4.95822 6.00978 4.46914 6.00978 4.00001L6.00979 3.99852C6.0111 3.11391 5.19369 2.18478 4.25799 2.02428ZM2.99978 11C2.99978 10.4477 3.4475 10 3.99978 10H4.00978C4.56207 10 5.00978 10.4477 5.00978 11C5.00978 11.5523 4.56207 12 4.00978 12H3.99978C3.4475 12 2.99978 11.5523 2.99978 11Z" fill="white"/></svg>`,none:S``};const me={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},Ri=r=>(...t)=>({_$litDirective$:r,values:t});let Cr=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};const yl="important",fu=" !"+yl,Ar=Ri(class extends Cr{constructor(r){if(super(r),r.type!==me.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{const i=r[e];return i==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){const{style:e}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]==null&&(this.ft.delete(i),i.includes("-")?e.removeProperty(i):e[i]=null);for(const i in t){const o=t[i];if(o!=null){this.ft.add(i);const a=typeof o=="string"&&o.endsWith(fu);i.includes("-")||a?e.setProperty(i,a?o.slice(0,-11):o,a?yl:""):e[i]=o}}return Ut}});function wu(r,t){if(!r)return null;if(r.nodeType===Node.ELEMENT_NODE){const e=r;return e.matches?.(t)?e:e.querySelector(t)}return r.querySelector?.(t)??null}function Cl(r,t,e){const i=r.shadowRoot;if(!i)return null;const o=i.querySelector(`slot[name="${t}"]`);if(!o)return null;const a=o.assignedElements({flatten:!0});for(const n of a){const d=wu(n,e);if(d)return d}return null}var gu=Object.defineProperty,vu=Object.getOwnPropertyDescriptor,Mt=(r,t,e,i)=>{for(var o=i>1?void 0:i?vu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&gu(t,e,o),o};const _u="awc-avatar";s.AwcAvatar=class extends C{constructor(){super(...arguments),this.size="36",this.rounded="circle",this.status="none",this.color="global-blue-400",this.title="",this.labelTooltip=!1,this.target="_self",this.icon="none",this.sliced=!1,this.hovered=!1,this._hasBadgeSlot=!1,this._badgeEl=null}_onBadgeSlotChange(){this._badgeEl=Cl(this,"awc-avatar-badge","awc-avatar-badge"),this._hasBadgeSlot=!!this._badgeEl,this._syncBadge()}_syncBadge(){this._badgeEl&&(this._badgeEl.size=this.getBadgeSize(),this._badgeEl.status=this.status)}connectedCallback(){super.connectedCallback(),this.title&&!this.label&&(this.label=this.title,this.labelTooltip=!0),this.title&&this.removeAttribute("title")}updated(t){super.updated(t),this._badgeEl&&(t.has("size")||t.has("status"))&&this._syncBadge()}trimTitle(t){return t?t.charAt(0):""}getBadgeSize(){return(this.status==="online"||this.status==="offline"?{20:"4",24:"4",32:"5",36:"5",40:"6",48:"8",72:"14",96:"14",128:"32",160:"32"}:{20:"8",24:"10",32:"12",36:"12",40:"12",48:"14",72:"24",96:"24",128:"32",160:"32"})[this.size]||"12"}renderAvatarContent(){if(this.imageLink)return f`<img class="awc-avatar--image" part="image" src="${this.imageLink}" alt="${this.label||this.title}" loading="lazy">`;if(this.icon!=="none"&&this.icon in bl)return f`<span class="awc-avatar--no-image ${this.icon}" part="icon">${bl[this.icon]}</span>`;const t={backgroundColor:this.customColor||`var(--${this.color})`},e=this.trimTitle(this.label??"");return f`<span style="${Ar(t)}" class="awc-avatar--no-image"><span class="awc-avatar__initial" part="initials">${e}</span></span>`}renderStatus(){if(this._hasBadgeSlot)return A;if(this.status!=="none"){const t=f`<awc-avatar-badge status="${this.status}" size="${this.getBadgeSize()}"></awc-avatar-badge>`;return this.statusTooltip?f`<awc-tooltip message="${this.statusTooltip}" position="bottom" marker="true">${t}</awc-tooltip>`:t}return A}render(){const t=f`<div part="base" class="awc-avatar${this.sliced?" awc-avatar--sliced":""} ${this.hovered?"awc-avatar--hovered":""}">${this.renderAvatarContent()}<div class="awc-avatar__status" part="status"><slot name="awc-avatar-badge" @slotchange="${this._onBadgeSlotChange}"></slot>${this.renderStatus()}</div></div>`,e=this.href?f`<a href="${this.href}" target="${this.target}">${t}</a>`:f`${t}`;return this.labelTooltip&&this.label?f`<awc-tooltip message="${this.label}" position="top">${e}</awc-tooltip>`:e}},s.AwcAvatar.styles=pu,Mt([c({type:String,reflect:!0})],s.AwcAvatar.prototype,"size",2),Mt([c({type:String,reflect:!0})],s.AwcAvatar.prototype,"rounded",2),Mt([c({type:String,reflect:!0})],s.AwcAvatar.prototype,"status",2),Mt([c({type:String,reflect:!0,useDefault:!0})],s.AwcAvatar.prototype,"color",2),Mt([c({type:String})],s.AwcAvatar.prototype,"title",2),Mt([c({type:String,reflect:!0})],s.AwcAvatar.prototype,"label",2),Mt([c({type:Boolean,reflect:!0,attribute:"label-tooltip"})],s.AwcAvatar.prototype,"labelTooltip",2),Mt([c({type:String,reflect:!0,attribute:"status-tooltip"})],s.AwcAvatar.prototype,"statusTooltip",2),Mt([c({type:String,attribute:"image-link"})],s.AwcAvatar.prototype,"imageLink",2),Mt([c({type:String,reflect:!0})],s.AwcAvatar.prototype,"href",2),Mt([c({type:String})],s.AwcAvatar.prototype,"target",2),Mt([c({type:String,reflect:!0,attribute:"custom-color"})],s.AwcAvatar.prototype,"customColor",2),Mt([c({type:String,reflect:!0})],s.AwcAvatar.prototype,"icon",2),Mt([M()],s.AwcAvatar.prototype,"sliced",2),Mt([M()],s.AwcAvatar.prototype,"hovered",2),Mt([M()],s.AwcAvatar.prototype,"_hasBadgeSlot",2),s.AwcAvatar=Mt([I(_u)],s.AwcAvatar);const mu=P`:host{display:inline-flex}
3.awc-avatar-group{display:inline-flex;align-items:center}.awc-avatar-group__counter{display:block;position:relative;z-index:1;margin-left:-10px;display:flex;min-width:24px;height:24px;font:var(--awc-font-caption-2-regular);align-items:center;justify-content:center;background-color:var(--colors-secondary)}.awc-avatar-group__counter p{color:var(--colors-white)}.awc-avatar-group__counter.circle{border-radius:var(--corner-radius-circular);border:2px solid var(--colors-white)}.awc-avatar-group__counter.size_24{width:24px;height:24px}.awc-avatar-group__counter.size_24 p{font:var(--awc-font-caption-2-regular)}.awc-avatar-group__counter.size_32{width:32px;height:32px}.awc-avatar-group__counter.size_32 p{font:var(--awc-font-caption-1-regular)}.awc-avatar-group__counter.hidden{display:none}`,bu=P`:host{display:inline-flex;box-sizing:border-box}.awc-avatar-group__counter{box-sizing:border-box;position:relative;display:flex;min-width:24px;height:24px;font:var(--awc-font-caption-2-regular);align-items:center;justify-content:center;background-color:var(--colors-secondary)}.awc-avatar-group__counter--sliced{--awc-avatar-margin:10px;margin-left:calc(-1 * var(--awc-avatar-margin))}.awc-avatar-group__counter p{user-select:none;margin:0;color:var(--colors-white)}:host([counter-rounded=circle]) .awc-avatar-group__counter{border-radius:var(--corner-radius-circular);outline:2px solid var(--awc-avatar-ring-color,var(--colors-base-surface))}:host([counter-size='24']) .awc-avatar-group__counter{width:24px;height:24px;font:var(--awc-font-caption-2-regular)}:host([counter-size='32']) .awc-avatar-group__counter{width:32px;height:32px;font:var(--awc-font-caption-1-regular)}`;var yu=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,xr=(r,t,e,i)=>{for(var o=i>1?void 0:i?Cu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&yu(t,e,o),o};const Al="awc-avatar-group-counter";s.AwcAvatarGroupCounter=class extends C{constructor(){super(...arguments),this.totalUsers=0,this.counterSize="24",this.counterRounded="circle",this.sliced=!1}render(){return f`<div part="base" class="awc-avatar-group__counter${this.sliced?" awc-avatar-group__counter--sliced":""}"><p>+${this.totalUsers}</p></div>`}},s.AwcAvatarGroupCounter.styles=[bu],xr([c({type:Number,attribute:"total-users",reflect:!0})],s.AwcAvatarGroupCounter.prototype,"totalUsers",2),xr([c({type:String,attribute:"counter-size",reflect:!0})],s.AwcAvatarGroupCounter.prototype,"counterSize",2),xr([c({attribute:"counter-rounded",reflect:!0})],s.AwcAvatarGroupCounter.prototype,"counterRounded",2),xr([M()],s.AwcAvatarGroupCounter.prototype,"sliced",2),s.AwcAvatarGroupCounter=xr([I(Al)],s.AwcAvatarGroupCounter);var Au=Object.defineProperty,xu=Object.getOwnPropertyDescriptor,He=(r,t,e,i)=>{for(var o=i>1?void 0:i?xu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Au(t,e,o),o};const ku="awc-avatar-group";s.AwcAvatarGroup=class extends C{constructor(){super(...arguments),this.displayUsers=2,this.totalUsers=0,this.counterSize="24",this.counterRounded="circle",this.counterValue=0,this.counterHidden=!1}get avatarCounter(){return this.querySelector(Al)}initializeComponent(){this.updateDisplayedUsers(),this.updateCounterValue(),this._applySliceEffect()}updateDisplayedUsers(){const t=this.shadowRoot?.querySelector("slot")?.assignedElements();t&&t.forEach((e,i)=>{e.toggleAttribute("invisible",i>=this.displayUsers)})}_applySliceEffect(){const t=Cl(this,"awc-avatar-group-counter","awc-avatar-group-counter");t&&this._applyStylesToElement(t),this._slottedAvatars&&this._slottedAvatars.assignedElements().filter(i=>i instanceof s.AwcAvatar).forEach((i,o)=>{this._applyHoverToElement(i),o!==0&&this._applyStylesToElement(i)})}_applyStylesToElement(t){t.sliced=!0}_applyHoverToElement(t){t instanceof s.AwcAvatar&&(t.hovered=!0)}updateCounterValue(){this.avatarCounter?this.counterHidden=this.counterValue===0:(this.counterValue=Math.max(0,this.totalUsers-this.displayUsers),this.counterHidden=this.counterValue===0)}connectedCallback(){super.connectedCallback(),this.shadowRoot?this.initializeComponent():this._initRafId=requestAnimationFrame(()=>this.initializeComponent())}disconnectedCallback(){super.disconnectedCallback(),this._initRafId&&cancelAnimationFrame(this._initRafId)}updated(t){super.updated(t),(t.has("displayUsers")||t.has("totalUsers"))&&(this.updateDisplayedUsers(),this.updateCounterValue(),this._applySliceEffect())}render(){return f`<div class="awc-avatar-group" part="base"><slot @slotchange="${this._applySliceEffect}"></slot>${this.counterHidden?A:f`<awc-avatar-group-counter part="counter" .totalUsers="${this.counterValue}" .counterSize="${this.counterSize}" style="${Ar({display:this.counterHidden?"none":"block","margin-left":"-10px"})}"></awc-avatar-group-counter>`}<slot name="awc-avatar-group-counter" @slotchange="${this._applySliceEffect}"></slot></div>`}},s.AwcAvatarGroup.styles=mu,He([c({type:Number,attribute:"display-users"})],s.AwcAvatarGroup.prototype,"displayUsers",2),He([c({type:Number,attribute:"total-users"})],s.AwcAvatarGroup.prototype,"totalUsers",2),He([c({type:String,attribute:"counter-size"})],s.AwcAvatarGroup.prototype,"counterSize",2),He([c({type:String,attribute:"counter-rou
3nded"})],s.AwcAvatarGroup.prototype,"counterRounded",2),He([M()],s.AwcAvatarGroup.prototype,"counterValue",2),He([M()],s.AwcAvatarGroup.prototype,"counterHidden",2),He([H('slot[name="awc-avatar-group-counter"]')],s.AwcAvatarGroup.prototype,"_slottedCounter",2),He([H("slot:not([name])")],s.AwcAvatarGroup.prototype,"_slottedAvatars",2),s.AwcAvatarGroup=He([I(ku)],s.AwcAvatarGroup);const Su=P`:host{display:inline-flex;box-sizing:border-box;--badge-size:12px;--badge-shadow-size:2px}:host([status=none]){display:none}.awc-avatar-badge>svg{width:100%;height:100%}:host([size="8"]){--badge-size:8px}:host([size="10"]){--badge-size:10px}:host([size="12"]){--badge-size:12px}:host([size="14"]){--badge-size:14px}:host([size="24"]){--badge-size:24px}:host([size="32"]){--badge-shadow-size:6px;--badge-size:32px}:host([size="4"][status=offline]),:host([size="4"][status=online]){--badge-size:4px}:host([size="5"][status=offline]),:host([size="5"][status=online]){--badge-size:5px}:host([size="6"][status=offline]),:host([size="6"][status=online]){--badge-size:6px}:host([size="8"][status=offline]),:host([size="8"][status=online]){--badge-size:8px}:host([size="24"][status=offline]),:host([size="24"][status=online]){--badge-size:24px}:host([size="32"][status=offline]),:host([size="32"][status=online]){--badge-shadow-size:6px;--badge-size:32px}.awc-avatar-badge{display:flex;align-items:center;justify-content:center;width:var(--badge-size);height:var(--badge-size);border-radius:var(--corner-radius-circular);box-shadow:0 0 0 var(--badge-shadow-size) var(--awc-avatar-badge-ring-color,var(--colors-card-surface))}`,$u={none:S``,complete:S`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><rect width="12" height="12" rx="6" fill="#35D3AC"/><path d="M7.96983 3.96975C8.26272 3.67685 8.73748 3.67685 9.03038 3.96975C9.32322 4.26264 9.32325 4.73742 9.03038 5.03029L6.03038 8.03029C5.88973 8.17092 5.699 8.25002 5.5001 8.25002C5.30121 8.25002 5.11048 8.17092 4.96983 8.03029L2.96983 6.03029L2.91807 5.97365C2.67777 5.67908 2.69525 5.24435 2.96983 4.96975C3.24443 4.69514 3.67916 4.67768 3.97374 4.91799L4.03038 4.96975L5.5001 6.43947L7.96983 3.96975Z" fill="white"/></svg>`,fail:S`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><rect width="12" height="12" rx="6" fill="#FF7188"/><path d="M8.02648 2.91808C8.32106 2.67782 8.75581 2.69525 9.03039 2.96984C9.30491 3.24443 9.3224 3.67919 9.08215 3.97374L9.03039 4.03038L7.06066 6.00011L9.03039 7.96984L9.08215 8.02648C9.32238 8.32104 9.30492 8.7558 9.03039 9.03038C8.75581 9.30496 8.32106 9.32238 8.02648 9.08214L7.96984 9.03038L6.00012 7.06066L4.03039 9.03038C3.73752 9.32325 3.26274 9.32321 2.96984 9.03038C2.67695 8.73749 2.67695 8.26273 2.96984 7.96984L4.93957 6.00011L2.96984 4.03038L2.91809 3.97374C2.67778 3.67916 2.69524 3.24444 2.96984 2.96984C3.24445 2.69528 3.67919 2.67778 3.97375 2.91808L4.03039 2.96984L6.00012 4.93956L7.96984 2.96984L8.02648 2.91808Z" fill="white"/></svg>`,dnd:S`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><rect width="12" height="12" rx="6" fill="#FD9038"/><rect x="2.5" y="5" width="7" height="2" rx="1" fill="white"/></svg>`,offline:S`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><rect width="12" height="12" rx="6" fill="#BBB"/></svg>`,online:S`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><rect width="12" height="12" rx="6" fill="#6AC930"/></svg>`,like:S`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="12" height="12" rx="6" fill="#FF7188"/><path d="M6.78271 3.75894C7.4683 3.07778 8.57611 3.08122 9.25732 3.76675C9.93832 4.45233 9.93494 5.56019 9.24951 6.24136L6.19873 9.27261L6.19287 9.26675L6.00146 9.46109L2.76123 6.24136C2.0757 5.56015 2.07226 4.45234 2.75342 3.76675C3.43466 3.0812 4.54245 3.07772 5.22803 3.75894L6.00537 4.53043L6.78271 3.75894Z" fill="white"/></svg>`};var Tu=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,Ga=(r,t,e,i)=>{for(var o=i>1?void 0:i?Eu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Tu(t,e,o),o};const Lu="awc-avatar-badge";s.AwcAvatarBadge=class extends C{constructor(){super(...arguments),this.status="none",this.size="12"}render(){return f`<div part="base" class="awc-avatar-badge">${$u[this.status]}</div>`}},s.AwcAvatarBadge.styles=Su,Ga([c({type:String,reflect:!0})],s.AwcAvatarBadge.prototype,"status",2),Ga([c({type:String,reflect:!0})],s.AwcAvatarBadge.prototype,"size",2),s.AwcAvatarBadge=Ga([I(Lu)],s.AwcAvatarBadge);const Iu=P`:host{display:inline-block;contain:content}:host .awc-badge{content:"";display:block;width:6px;height:6px;border-radius:var(--corner-radius-circular)}.awc-badge.warning{background-color:var(--colors-warning)}.awc-badge.primary{background-color:var(--colors-primary)}`;var Ou=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,xl=(r,t,e,i)=>{for(var o=i>1?void 0:i?Mu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Ou(t,e,o),o};s.AwcBadge=class extends C{constructor(){super(...arguments),this.color="primary"}render(){return f`<span part="base" class="awc-badge ${this.color}"></span>`}},s.AwcBadge.styles=[Iu],xl([c({type:String,reflect:!0})],s.AwcBadge.prototype,"color",2),s.AwcBadge=xl([I("awc-badge")],s.AwcBadge);const Pu=P`:host{display:block;contain:content;max-width:max-content}.awc-counter{content:"";font:var(--awc-font-caption-3-regular);display:flex;align-items:center;justify-content:center;color:var(--awc-counter-text-color);background-color:var(--bg-color);padding:0 4px;min-width:8px;height:16px;border-radius:var(--corner-radius-circular)}.awc-counter.more::after{content:"+";display:block}.awc-counter.none{display:none}`;var Du=Object.defineProperty,Bu=Object.getOwnPropertyDescriptor,qa=(r,t,e,i)=>{for(var o=i>1?void 0:i?Bu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Du(t,e,o),o};s.AwcCounter=class extends C{constructor(){super(...arguments),this.value=1,this.bgColor="colors-light-primary"}_checkMaxValue(){const t=Number(this.value);return!Number.isInteger(t)||t<=0?"":t>99?"99+":t.toString()}calculateResolvedBgColor(){if(this.bgColor){const t=`--${this.bgColor}`,i=window.getComputedStyle(this).getPropertyValue(t).trim();this.resolvedBgColor=i}}willUpdate(t){super.willUpdate(t),(t.has("bgColor")||!this.hasUpdated)&&this.calculateResolvedBgColor()}pickTextColorBasedOnBgColor(t,e,i){if(t){const o=t.charAt(0)==="#"?t.substring(1,7):t,a=parseInt(o.substring(0,2),16),n=parseInt(o.substring(2,4),16),d=parseInt(o.substring(4,6),16);return a*.299+n*.587+d*.114>186?i:e}return e}render(){const t=this._checkMaxValue(),e=this.pickTextColorBasedOnBgColor(this.resolvedBgColor,"#FFFFFF","#55555A");return f`<span part="base" class="awc-counter" value="${this.value}" style="--bg-color:var(--${this.bgColor});--awc-counter-text-color:${e}">${t}</span>`}},s.AwcCounter.styles=[Pu],qa([c({type:Number,reflect:!0})],s.AwcCounter.prototype,"value",2),qa([c({type:String,reflect:!0,attribute:"bg-color",useDefault:!0})],s.AwcCounter.prototype,"bgColor",2),s.AwcCounter=qa([I("awc-counter")],s.AwcCounter);const Vu=P`:host{display:inline-flex}.awc-toolbar-button{position:relative;cursor:pointer;border:1px solid transparent;max-width:max-content;display:flex;align-items:center;justify-content:center;padding:6px;background-color:transparent;border-radius:var(--corner-radius-s);transition:border var(--awc-duration-slow,.3s) ease-in-out,background-color var(--awc-duration-slow,.3s) ease;max-width:36px;max-height:36px}.awc-toolbar-button:hover{transition:background-color var(--awc-duration-slow,.3s) ease;background-color:rgba(5,35,125,.05)}.awc-toolbar-button:active{transition:background-color var(--awc-duration-slow,.3s) ease;background-color:rgba(5,35,125,.08)}.awc-toolbar-button:focus{outline:0}.awc-toolbar-button:focus-visible{outline:0;border:1px solid var(--colors-secondary);transition:background-color var(--awc-duration-slow,.3s) ease;background-color:rgba(5,35,125,.05)}`;var Hu=Object.getOwnPropertyDescriptor,Ru=(r,t,e,i)=>{for(var o=i>1?void 0:i?Hu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=n(o)||o);return o};s.AwcToolbarButton=class extends C{render(){return f`<button type="button" tabindex="0" class="awc-toolbar-button" part="base"><slot></slot></button>`}}
3,s.AwcToolbarButton.styles=[Vu],s.AwcToolbarButton=Ru([I("awc-toolbar-button")],s.AwcToolbarButton);const zu=P`:host{display:inline-block}.awc-toolbar-group{display:flex;align-items:center;justify-content:flex-start;gap:var(--awc-toolbar-group-gap,8px)}`;var Fu=Object.getOwnPropertyDescriptor,Nu=(r,t,e,i)=>{for(var o=i>1?void 0:i?Fu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=n(o)||o);return o};s.AwcToolbarGroup=class extends C{render(){return f`<div class="awc-toolbar-group" part="base"><slot></slot></div>`}},s.AwcToolbarGroup.styles=[zu],s.AwcToolbarGroup=Nu([I("awc-toolbar-group")],s.AwcToolbarGroup);const ju=P`:host{display:var(--awc-dropdown-display,inline-flex)}.awc-dropdown,.awc-dropdown__nested{display:inherit;width:100%}.awc-dropdown__list{box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden auto;max-height:300px;padding:var(--awc-dropdown-padding,6px 0)}::slotted(awc-dropdown){display:flex;width:100%}:host([scroll-off]),:host([scroll-off]) .awc-dropdown__list{--awc-popover-max-height:max-content;--awc-popover-overflow:hidden clip;overflow-y:clip;max-height:max-content}`,kr=P`* ::-webkit-scrollbar{display:block;height:10px;width:10px;background-color:rgba(0,0,0,0);z-index:99}* ::-webkit-scrollbar-button{display:none;width:0;height:0}* ::-webkit-scrollbar-corner{background-color:transparent}* ::-webkit-scrollbar-thumb{height:40px;border:3px solid transparent;background-clip:padding-box;background-color:rgba(0,0,0,.2);-webkit-border-radius:7px;transition:background-color var(--awc-duration-base,.2s)}* ::-webkit-scrollbar-thumb:hover{background-color:#3761e959}`,Uu=P`:host{display:flex;width:100%;cursor:pointer}.awc-dropdown-item:focus-visible{outline:1px solid var(--colors-secondary);border-radius:var(--corner-radius-m)}:host([warning]) .awc-dropdown-item,:host([warning]) .awc-dropdown-item ::slotted(awc-icon){color:var(--awc-dropdown-item-color-warning,var(--colors-warning));fill:var(--awc-dropdown-item-color-warning,var(--colors-warning))}.awc-dropdown-item{width:100%;background:0 0;border:none;box-sizing:border-box;padding:0 16px;min-height:36px;display:flex;align-items:center;gap:calc(var(--spacing-2xs) + var(--spacing-s));word-wrap:break-word;font:var(--awc-font-text-medium-14);color:var(--colors-text);text-align:start;text-decoration:none;outline-offset:-2px;outline:1px solid transparent;transition:background-color var(--awc-duration-fast,.1s) ease}.awc-dropdown-item:hover{cursor:pointer;background-color:var(--colors-input-background)}:host([is-active]) .awc-dropdown-item{background-color:var(--colors-pressed-back)}.awc-dropdown-item__container{width:inherit;margin-right:auto;display:flex;align-items:center;gap:calc(var(--spacing-2xs) + var(--spacing-s));min-height:inherit}:host .awc-dropdown-item__container ::slotted(:nth-child(2)){margin-left:auto!important}.awc-dropdown-item__selected{display:flex;align-items:center;justify-content:center;fill:var(--colors-primary)}`,kl={checkmark:S`<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.7071 4.29289C14.0976 4.68342 14.0976 5.31658 13.7071 5.70711L7.70711 11.7071C7.31658 12.0976 6.68342 12.0976 6.29289 11.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L7 9.58579L12.2929 4.29289C12.6834 3.90237 13.3166 3.90237 13.7071 4.29289Z"/></svg>`};var Zu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,be=(r,t,e,i)=>{for(var o=i>1?void 0:i?Wu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Zu(t,e,o),o};const Ya="awc-dropdown-item";s.AwcDropdownItem=class extends C{constructor(){super(...arguments),this.target="_self",this.selected=!1,this.isActive=!1,this.warning=!1}focus(){this._dropdownItem.focus()}updated(t){super.updated(t),t.has("selected")&&this.selected&&this._selectedIcon&&(this._selectedIcon.style.opacity="0",this._selectedIcon.style.transform="scale(0.5)",dt({targets:this._selectedIcon,opacity:[0,1],scale:[.5,1],duration:200,easing:"easeOutQuad",delay:50}))}render(){return this.href?f`<a tabindex="0" class="awc-dropdown-item" part="base" role="${D(this.selectionRole)}" aria-checked="${D(this.selectionRole?String(this.selected):void 0)}" href="${D(this.href)}" target="${D(this.target)}"><span class="awc-dropdown-item__container"><slot name="awc-dropdown-item-left-icon"></slot><slot></slot></span><slot name="awc-dropdown-item-right-icon"></slot>${this.selected?f`<div class="awc-dropdown-item__selected" part="indicator">${kl.checkmark}</div>`:A}</a>`:f`<button tabindex="0" class="awc-dropdown-item" part="base" role="${D(this.selectionRole)}" aria-checked="${D(this.selectionRole?String(this.selected):void 0)}"><span class="awc-dropdown-item__container"><slot name="awc-dropdown-item-left-icon"></slot><slot></slot></span><slot name="awc-dropdown-item-right-icon"></slot>${this.selected?f`<div class="awc-dropdown-item__selected" part="indicator">${kl.checkmark}</div>`:A}</button>`}}
3,s.AwcDropdownItem.styles=[kr,Uu],be([c({type:String})],s.AwcDropdownItem.prototype,"href",2),be([c({type:String})],s.AwcDropdownItem.prototype,"target",2),be([c({type:Boolean,reflect:!0})],s.AwcDropdownItem.prototype,"selected",2),be([c({type:String,reflect:!0})],s.AwcDropdownItem.prototype,"value",2),be([c({type:Boolean,reflect:!0,attribute:"is-active"})],s.AwcDropdownItem.prototype,"isActive",2),be([c({type:Boolean,reflect:!0})],s.AwcDropdownItem.prototype,"warning",2),be([M()],s.AwcDropdownItem.prototype,"selectionRole",2),be([H(".awc-dropdown-item")],s.AwcDropdownItem.prototype,"_dropdownItem",2),be([H(".awc-dropdown-item__selected")],s.AwcDropdownItem.prototype,"_selectedIcon",2),s.AwcDropdownItem=be([I(Ya)],s.AwcDropdownItem);let _o=[],Ka=!1;function Sl(r){try{r()}catch(t){console.error("[awc-ui] onDOMReady callback threw:",t)}}function Gu(){for(;_o.length>0;){const r=_o;_o=[],r.forEach(Sl)}Ka=!1}function ye(r){if(document.readyState!=="loading"){Sl(r);return}_o.push(r),Ka||(Ka=!0,document.addEventListener("DOMContentLoaded",Gu,{once:!0}))}let Sr=null,zi=null,$l=!1;function qu(){$l||($l=!0,document.addEventListener("pointerdown",r=>{r.isPrimary&&(Sr=r.composedPath(),zi=null)},{capture:!0,passive:!0}),document.addEventListener("pointerup",r=>{r.isPrimary&&(zi=r.composedPath(),setTimeout(()=>{Sr=null,zi=null},0))},{capture:!0,passive:!0}),document.addEventListener("pointercancel",r=>{r.isPrimary&&(Sr=null,zi=null)},{capture:!0,passive:!0}))}class pi{constructor(t,e){this.isInside=e,t.addController(this)}hostConnected(){qu()}hostDisconnected(){}isOutside(t){return this.isInside(t.composedPath())?!1:t.detail===0?!0:!(Sr!==null&&this.isInside(Sr)||zi!==null&&this.isInside(zi))}}var Yu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,vt=(r,t,e,i)=>{for(var o=i>1?void 0:i?Ku(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Yu(t,e,o),o};s.AwcDropdown=class extends C{constructor(){super(...arguments),this.notClosing=!1,this.visible=!1,this.selectedMode=!1,this.value="",this.activeMode=!1,this.position="bottom-start",this.strategy="absolute",this.disabled=!1,this.scrollOff=!1,this.spacing=8,this.triggerType="click",this._outsideClick=new pi(this,t=>t.includes(this)),this._handleOutsideClick=t=>{this._outsideClick.isOutside(t)&&this.close()},this._handleDropdownBroadcast=t=>{const e=t.detail;e!==this&&e instanceof s.AwcDropdown&&this.triggerType!=="manual"&&(this.notClosing||this.visible&&(e.contains(this)||this.contains(e)||this.close()))},this.focusedOptionIndex=-1,this._hoverTimeout=null,this._openBroadcasted=!1,this._onContainerMouseEnter=()=>{if(!this.disabled&&this.triggerType==="hover"){this._hoverTimeout&&(clearTimeout(this._hoverTimeout),this._hoverTimeout=null);let t=this._getParentDropdown();for(;t;)t._hoverTimeout&&(clearTimeout(t._hoverTimeout),t._hoverTimeout=null),t=t._getParentDropdown();this.open()}},this._onContainerMouseLeave=()=>{if(!this.disabled&&this.triggerType==="hover"){if(this._hasVisibleNestedDropdown())return;this._hoverTimeout=setTimeout(()=>{this.close()},150);let t=this._getParentDropdown();for(;t;){if(t.triggerType==="hover"&&t.visible&&!t._hoverTimeout){const e=t;t._hoverTimeout=setTimeout(()=>{e.close()},150)}t=t._getParentDropdown()}}},this._onTriggerFocus=()=>{!this.disabled&&this.triggerType==="focus"&&this.open()},this._onTriggerBlur=()=>{!this.disabled&&this.triggerType==="focus"&&this.close()},this._triggerElement=null,this._onTriggerClick=t=>{this.disabled||(t.stopPropagation(),t.preventDefault(),this.visible?this.close():this.open())},this._handleSlotChange=()=>{requestAnimationFrame(()=>{this._setupTriggerListeners()})},this._handleItemsSlotChange=()=>{this._initSelection()}}_setupPopover(){!this.disabled&&!this.notClosing&&this._addOutsideClickHandler()}_disconnectPopover(){this._removeOutsideClickHandler()}_addOutsideClickHandler(){setTimeout(()=>{document.addEventListener("click",this._handleOutsideClick)},0)}_removeOutsideClickHandler(){document.removeEventListener("click",this._handleOutsideClick)}open(){const t=this._getParentDropdown();if(t){for(const e of t._getDirectNestedDropdowns())e!==this&&e.visible&&e.triggerType!=="manual"&&e.close();t._hoverTimeout&&(clearTimeout(t._hoverTimeout),t._hoverTimeout=null)}this.visible=!0,this._onOpen({visible:this.visible}),this._openBroadcasted=!0,this._broadcastOpen(this)}close(){this._hoverTimeout&&(clearTimeout(this._hoverTimeout),this._hoverTimeout=null),this.visible&&(this.visible=!1,this.focusedOptionIndex=-1,this._getDirectNestedDropdowns().forEac
3h(t=>{t.visible&&t.close()}),this._onClose({visible:this.visible}))}get options(){const t=[],e=new Set(this._getDirectNestedDropdowns()),i=o=>{for(const a of Array.from(o.children))if(e.has(a)){const n=a._getToggleItem();n&&t.push(n)}else a.matches(Ya)&&a.getAttribute("slot")!=="awc-dropdown-toggle"?t.push(a):a.matches("awc-dropdown-group")&&i(a)};return i(this),t}get _effectiveStrategy(){const t=this._getParentDropdown();return t?t._effectiveStrategy:this.strategy}_getParentDropdown(){let t=this.parentElement;for(;t;){if(t.matches("awc-dropdown"))return t;t=t.parentElement}return null}_getNestedDropdownForItem(t){if(!t.matches('awc-dropdown-item[slot="awc-dropdown-toggle"]'))return null;const e=t.parentElement;return e?.matches("awc-dropdown")&&e!==this?e:null}_getDirectNestedDropdowns(){return Array.from(this.querySelectorAll(":scope > awc-dropdown, :scope > awc-dropdown-group > awc-dropdown"))}_getToggleItem(){return this.querySelector(':scope > awc-dropdown-item[slot="awc-dropdown-toggle"]')}_returnFocusToParentTrigger(){const t=this._getParentDropdown();if(!t)return;const e=this._getToggleItem();if(!e)return;const i=()=>{e.focus();const o=t.options.indexOf(e);o!==-1&&(t.focusedOptionIndex=o)};i(),t.updateComplete.then(()=>{document.activeElement!==e&&i()})}_isOptionDisabled(t){return t.hasAttribute("disabled")}_findNextEnabledIndex(t,e,i=this.options){if(!i.length)return t;let o=t+e;for(;o>=0&&o<i.length;){if(!this._isOptionDisabled(i[o]))return o;o+=e}return t}_findFirstEnabledIndex(t=this.options){for(let e=0;e<t.length;e++)if(!this._isOptionDisabled(t[e]))return e;return-1}_findLastEnabledIndex(t=this.options){for(let e=t.length-1;e>=0;e--)if(!this._isOptionDisabled(t[e]))return e;return-1}async _focusFirstNestedOption(t){await t.updateComplete;const e=t.shadowRoot?.querySelector("awc-popover");e&&await e.updateComplete,t.visible&&t.options.length&&(t.focusedOptionIndex=0,t.options[0].focus())}_syncFocusedIndex(t=this.options){const e=document.activeElement;if(!e)return;const i=t.indexOf(e);i!==-1&&(this.focusedOptionIndex=i)}_hasVisibleNestedDropdown(){return this._getDirectNestedDropdowns().some(t=>t.visible||t._hasVisibleNestedDropdown())}handleKeyDown(t){if(!this.visible)return;const e=this.options;if(!e.length||t.target===this._getToggleItem())return;this._syncFocusedIndex(e);const i=t.key;if(i==="Escape"){this.notClosing||(this.focusedOptionIndex=-1,this.close(),this._returnFocusToParentTrigger()),t.stopPropagation(),t.preventDefault();return}if(i==="ArrowRight"){const o=this.focusedOptionIndex>=0?e[this.focusedOptionIndex]:null,a=o?this._getNestedDropdownForItem(o):null;if(a){a.open(),this._focusFirstNestedOption(a),t.stopPropagation(),t.preventDefault();return}return}else if(i==="ArrowLeft"){if(this._getParentDropdown()){this.close(),this._returnFocusToParentTrigger(),t.stopPropagation(),t.preventDefault();return}return}else if(i==="ArrowDown"){const o=this._findNextEnabledIndex(this.focusedOptionIndex,1,e);if(o===this.focusedOptionIndex&&this.focusedOptionIndex<0){const a=this._findFirstEnabledIndex(e);if(a===-1)return;this.focusedOptionIndex=a}else this.focusedOptionIndex=o}else if(i==="ArrowUp"){const o=this._findNextEnabledIndex(this.focusedOptionIndex,-1,e);if(o===this.focusedOptionIndex&&this.focusedOptionIndex<0){const a=this._findLastEnabledIndex(e);if(a===-1)return;this.focusedOptionIndex=a}else this.focusedOptionIndex=o}else if(i==="Home"){const o=this._findFirstEnabledIndex(e);if(o===-1)return;this.focusedOptionIndex=o}else if(i==="End"){const o=this._findLastEnabledIndex(e);if(o===-1)return;this.focusedOptionIndex=o}else return;this.focusedOptionIndex=Math.max(0,Math.min(this.focusedOptionIndex,e.length-1)),e[this.focusedOptionIndex].focus(),t.stopPropagation(),t.preventDefault()}get _selectableOptions(){return this.options.filter(t=>this._getNestedDropdownForItem(t)===null)}_optionValue(t){return t.value||t.getAttribute("value")||t.textContent?.trim()||""}get _isMultiple(){return this.selection==="multiple"}_applyValueToOptions(t=this._selectableOptions){if(this.selection&&t.length!==0){if(this._isMultiple){const e=Array.isArray(this.value)?this.value:[this.value].filter(
3Boolean);t.forEach(i=>{i.selected=e.includes(this._optionValue(i))})}else{const e=Array.isArray(this.value)?this.value[0]??"":this.value;let i=!1;t.forEach(o=>{!i&&e!==""&&this._optionValue(o)===e?(o.selected=!0,i=!0):o.selected=!1})}this._markValueApplied(t)}}_valueEquals(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((i,o)=>i===e[o]):t===e}_hasExplicitValue(){return Array.isArray(this.value)?this.value.length>0:this.value!==""}_hasPendingValueCommand(){return this._valueEquals(this.value,this._lastAppliedValue)?!1:this._hasExplicitValue()||this._lastAppliedValue!==void 0}_markValueApplied(t){const e=t.filter(o=>o.selected).map(o=>this._optionValue(o));(this._isMultiple?Array.isArray(this.value)&&this._valueEquals(this.value,e):this.value===(e[0]??""))&&(this._lastAppliedValue=this.value)}_syncValueFromSelection(t=this._selectableOptions){if(t.length===0)return;const e=t.filter(o=>o.selected),i=this._isMultiple?e.map(o=>this._optionValue(o)):e.length?this._optionValue(e[0]):"";this._valueEquals(this.value,i)||(this.value=i),this._lastAppliedValue=this.value}get _selectionRole(){if(this.selection)return this._isMultiple?"menuitemcheckbox":"menuitemradio"}_initSelection(){const t=this._selectableOptions,e=this._selectionRole;if(t.forEach(i=>i.selectionRole=e),!!this.selection){if(this._hasPendingValueCommand()){this._applyValueToOptions(t);return}(t.some(i=>i.selected)||!this._hasExplicitValue())&&this._syncValueFromSelection(t),this._applyValueToOptions(t)}}_handleItemClick(t){const e=t.composedPath().find(o=>o instanceof HTMLElement&&o.matches(Ya));if(!e)return;const i=e.closest("awc-dropdown");if(i&&i!==this){if(e.getAttribute("slot")==="awc-dropdown-toggle")return;this.notClosing||this.close();return}if(this.selection){if(!this._isOptionDisabled(e)){const o=this._selectableOptions;this._isMultiple?e.selected=!e.selected:(o.forEach(a=>a.selected=!1),e.selected=!0),this._syncValueFromSelection(o),this._emitSelect(e)}}else this.selectedMode&&(e.selected=!e.selected,this._emitSelect(e));this.activeMode&&(e.isActive=!e.isActive),this.notClosing||this.close()}_emitSelect(t){this._onSelect({item:t,value:this._optionValue(t),text:t.textContent?.trim()??"",selected:t.selected})}_setMinWidth(){this._dropdownList&&(this._dropdownList.style.width=`${this.width}px`)}_setupTriggerListeners(){if(this._disconnectTriggerListeners(),!this._triggerSlot)return;const t=this._triggerSlot.assignedElements({flatten:!0});this._triggerElement=t[0]||null,this._triggerElement&&(this.triggerType==="hover"?(this._dropdownContainer.addEventListener("mouseenter",this._onContainerMouseEnter),this._dropdownContainer.addEventListener("mouseleave",this._onContainerMouseLeave)):this.triggerType==="focus"?(this._triggerElement.addEventListener("focusin",this._onTriggerFocus),this._triggerElement.addEventListener("focusout",this._onTriggerBlur)):this.triggerType==="click"&&this._triggerElement.addEventListener("click",this._onTriggerClick))}_disconnectTriggerListeners(){this._dropdownContainer&&(this._dropdownContainer.removeEventListener("mouseenter",this._onContainerMouseEnter),this._dropdownContainer.removeEventListener("mouseleave",this._onContainerMouseLeave)),this._triggerElement&&(this._triggerElement.removeEventListener("focusin",this._onTriggerFocus),this._triggerElement.removeEventListener("focusout",this._onTriggerBlur),this._triggerElement.removeEventListener("click",this._onTriggerClick),this._triggerElement=null)}willUpdate(t){super.willUpdate(t),t.has("selection")?this._initSelection():t.has("value")&&this._hasPendingValueCommand()&&this._applyValueToOptions()}updated(t){super.updated(t),t.has("notClosing")&&this._updateOutsideClickHandler(),t.has("width")&&this._setMinWidth(),t.has("triggerType")&&(this._disconnectTriggerListeners(),this._setupTriggerListeners(),this._hoverTimeout&&(clearTimeout(this._hoverTimeout),this._hoverTimeout=null)),t.has("visible")&&(this.visible?(this._setupPopover(),this._hoverTimeout&&(clearTimeout(this._hoverTimeout),this._hoverTimeout=null),this._openBroadcasted||this._broadcastOpen(this),this._openBroadcasted=!1):(this._openBroadcasted=!1,this._disconnectPopover(),this.focusedOptionIndex=-1,this._hoverTimeout&&(clearTimeout(this._hoverTimeout),this._hoverTimeout=null),this._getDirectNestedDropdowns().forEac
3h(e=>{e.visible&&e.close()}))),t.has("disabled")&&this.disabled&&this._disconnectPopover(),t.has("strategy")&&this.querySelectorAll("awc-dropdown").forEach(e=>e.requestUpdate())}_updateOutsideClickHandler(){!this.notClosing&&this.visible?this._addOutsideClickHandler():this._removeOutsideClickHandler()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this._setupTriggerListeners(),document.addEventListener("awc-dropdown-broadcast-open",this._handleDropdownBroadcast),this._initSelection(),ye(()=>{this.isConnected&&this._initSelection()})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this._removeOutsideClickHandler(),this._disconnectTriggerListeners(),document.removeEventListener("awc-dropdown-broadcast-open",this._handleDropdownBroadcast),this._hoverTimeout&&(clearTimeout(this._hoverTimeout),this._hoverTimeout=null)}render(){return f`<div class="awc-dropdown" part="base"><awc-popover exportparts="panel:popover-panel" trigger-type="manual" no-padding .disabled="${this.disabled}" ?active="${this.visible}" .strategy="${this._effectiveStrategy}" .scrollOff="${this.scrollOff}" .position="${this.position}" .spacing="${this.spacing}"><div class="awc-dropdown__list" part="listbox" role="${D(this.selection?"menu":void 0)}" slot="awc-popover-content"><slot @click="${this._handleItemClick}" @slotchange="${this._handleItemsSlotChange}"></slot></div><slot @slotchange="${this._handleSlotChange}" name="awc-dropdown-toggle"></slot></awc-popover></div>`}},s.AwcDropdown.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcDropdown.styles=[kr,ju],vt([c({type:Boolean,reflect:!0,attribute:"not-closing"})],s.AwcDropdown.prototype,"notClosing",2),vt([c({type:Boolean,reflect:!0})],s.AwcDropdown.prototype,"visible",2),vt([c({type:Number,reflect:!0})],s.AwcDropdown.prototype,"width",2),vt([c({type:Boolean,reflect:!0,attribute:"selected-mode"})],s.AwcDropdown.prototype,"selectedMode",2),vt([c({type:String,reflect:!0})],s.AwcDropdown.prototype,"selection",2),vt([c()],s.AwcDropdown.prototype,"value",2),vt([c({type:Boolean,reflect:!0,attribute:"active-mode"})],s.AwcDropdown.prototype,"activeMode",2),vt([c({type:String,reflect:!0})],s.AwcDropdown.prototype,"position",2),vt([c({type:String,reflect:!0})],s.AwcDropdown.prototype,"strategy",2),vt([c({type:Boolean,reflect:!0})],s.AwcDropdown.prototype,"disabled",2),vt([c({type:Boolean,reflect:!0,attribute:"scroll-off"})],s.AwcDropdown.prototype,"scrollOff",2),vt([c({type:Number,reflect:!0})],s.AwcDropdown.prototype,"spacing",2),vt([c({type:String,reflect:!0,attribute:"trigger-type"})],s.AwcDropdown.prototype,"triggerType",2),vt([F("awc-dropdown-open")],s.AwcDropdown.prototype,"_onOpen",2),vt([F("awc-dropdown-close")],s.AwcDropdown.prototype,"_onClose",2),vt([F("awc-dropdown-select")],s.AwcDropdown.prototype,"_onSelect",2),vt([F("awc-dropdown-broadcast-open")],s.AwcDropdown.prototype,"_broadcastOpen",2),vt([H(".awc-dropdown__list")],s.AwcDropdown.prototype,"_dropdownList",2),vt([H('slot[name="awc-dropdown-toggle"]')],s.AwcDropdown.prototype,"_triggerSlot",2),vt([H(".awc-dropdown")],s.AwcDropdown.prototype,"_dropdownContainer",2),s.AwcDropdown=vt([I("awc-dropdown")],s.AwcDropdown);const Xu=P`:host([hidden]){display:none!important}:host([label]) .awc-dropdown-group__label{display:inline-flex;align-items:center;height:30px;padding:0 16px;pointer-events:none;color:var(--colors-secondary);font:var(--awc-font-caption-1-regular)}::slotted(awc-dropdown){display:flex;width:100%}.awc-dropdown-group__content{display:flex;flex-direction:column}`;var Ju=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,Xa=(r,t,e,i)=>{for(var o=i>1?void 0:i?Qu(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Ju(t,e,o),o};const tp="awc-dropdown-group";s.AwcDropdownGroup=class extends C{constructor(){super(...arguments),this.divider=!1,this._hasContent=!1,this._isLastGroup=!1}connectedCallback(){super.connectedCallback(),this._checkContent(),this.toggleAttribute("hidden",!this._hasContent)}
3_handleSlotChange(t){const i=t.target.assignedElements({flatten:!0});this._hasContent=i.length>0,this._checkIfLastGroup(),this.toggleAttribute("hidden",!this._hasContent),this.requestUpdate()}_checkContent(){this._hasContent=this.children.length>0,this._checkIfLastGroup()}_checkIfLastGroup(){const t=this.parentElement;if(!t){this._isLastGroup=!0;return}const e=Array.from(t.children).filter(o=>{const a=o.tagName.toLowerCase();return o.hasAttribute("hidden")?!1:a==="awc-dropdown-group"||a==="awc-dropdown-item"}),i=e.indexOf(this);this._isLastGroup=i===e.length-1}render(){const t=this.divider&&!this._isLastGroup&&this._hasContent;return f`<div class="awc-dropdown-group" part="base">${this.label&&this._hasContent?f`<label class="awc-dropdown-group__label" part="label">${this.label}</label>`:A}<div class="awc-dropdown-group__content"><slot @slotchange="${this._handleSlotChange}"></slot></div>${t?f`<awc-divider part="divider" spacing="s"></awc-divider>`:A}</div>`}},s.AwcDropdownGroup.styles=[kr,Xu],Xa([c({type:String,reflect:!0})],s.AwcDropdownGroup.prototype,"label",2),Xa([c({type:Boolean,reflect:!0})],s.AwcDropdownGroup.prototype,"divider",2),s.AwcDropdownGroup=Xa([I(tp)],s.AwcDropdownGroup);var ot=function(r,t,e,i){if(e==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?r!==t||!i:!t.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?i:e==="a"?i.call(r):i?i.value:t.get(r)},kt=function(r,t,e,i,o){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?r!==t||!o:!t.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?o.call(r,e):o?o.value=e:t.set(r,e),e};function te(r){var t,e,i,o,a,n,d,l,h,p,w,g,v,m,b,k,T,$;class E extends r{constructor(...L){var V,Z,K;super(...L),t.add(this),this.internals=this.attachInternals(),e.set(this,!1),i.set(this,!1),o.set(this,!1),a.set(this,void 0),n.set(this,void 0),d.set(this,!0),l.set(this,""),h.set(this,()=>{kt(this,o,!0,"f"),kt(this,e,!0,"f"),ot(this,t,"m",b).call(this)}),p.set(this,()=>{kt(this,e,!1,"f"),ot(this,t,"m",k).call(this,this.shouldFormValueUpdate()?ot(this,l,"f"):""),!this.validity.valid&&ot(this,o,"f")&&kt(this,i,!0,"f");const W=ot(this,t,"m",b).call(this);this.validationMessageCallback&&this.validationMessageCallback(W?this.internals.validationMessage:"")}),w.set(this,()=>{var W;ot(this,d,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),kt(this,d,!1,"f")),kt(this,o,!0,"f"),kt(this,i,!0,"f"),ot(this,t,"m",b).call(this),(W=this===null||this===void 0?void 0:this.validationMessageCallback)===null||W===void 0||W.call(this,this.showError?this.internals.validationMessage:"")}),g.set(this,void 0),v.set(this,!1),m.set(this,Promise.resolve()),(V=this.addEventListener)===null||V===void 0||V.call(this,"focus",ot(this,h,"f")),(Z=this.addEventListener)===null||Z===void 0||Z.call(this,"blur",ot(this,p,"f")),(K=this.addEventListener)===null||K===void 0||K.call(this,"invalid",ot(this,w,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){const L=this.validators.map(K=>K.attribute).flat(),V=super.observedAttributes||[];return[...new Set([...V,...L])]}static getValidator(L){return this.validators.find(V=>V.attribute===L)||null}static getValidators(L){return this.validators.filter(V=>{var Z;if(V.attribute===L||!((Z=V.attribute)===null||Z===void 0)&&Z.includes(L))return!0})}get form(){return this.internals.form}get showError(){return ot(this,t,"m",b).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(L,V,Z){var K;(K=super.attributeChangedCallback)===null||K===void 0||K.call(this,L,V,Z);const j=this.constructor.getValidators(L);j?.length&&this.validationTarget&&this.setValue(ot(this,l,"f"))}setValue(L){var V;kt(this,i,!1,"f"),(V=this.validationMessageCallback)===null||V===void 0||V.call(this,""),kt(this,l,L,"f");const K=this.shouldFormValueUpdate()?L:null;this.internals.setFormValue(K),ot(this,t,"m",k).call(this,K),this.valueChangedCallback&&this.valueChangedCallback(K),ot(this,t,"m",b).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(L=>L(ot(this,m,"f")))}formResetCallback(){var L,V;kt(this,o,!1,"f"),kt(this,i,!1,"f"),ot(this,t,"m",b).call(this),(L=this.resetFormControl)===null||L===void 0||L.call(this),(V=this.validationMessageCallback)===null||V===void 0||V.call(this,ot(this,t,"m",b).call(this)?this.validationMessage:"")}}return e=new WeakMap,i=new WeakMap,o=new WeakMap,a=new WeakMap,n=new WeakMap,d=new WeakMap,l=new WeakMap,h=new WeakMap,p=new WeakMap,w=new WeakMap,g=new WeakMap,v=new WeakMap,m=new WeakMap,t=new WeakSet,b=function(){if(this.hasAttribute("disabled"))return!1;const L=ot(this,i,"f")||ot(this,o,"f")&&!this.validity.valid&&!ot(this,e,"f");return L&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),L},k=function(L){const V=this.constructor,Z={},K=V.validators,W=[],j=K.some(rt=>rt.isValid instanceof Promise);ot(this,v,"f")||(kt(this,m,new Promise(rt=>{kt(this,g,rt,"f")}),"f"),kt(this,v,!0,"f")),ot(this,a,"f")&&(ot(this,a,"f").abort(),kt(this,n,ot(this,a,"f"),"f"));const it=new AbortController;kt(this,a,it,"f");let at,J=!1;K.length&&(K.forEach(rt=>{const nt=rt.key||"customError",Ot=rt.isValid(this,L,it.signal);Ot instanceof Promise?(W.push(Ot),Ot.then(pt=>{pt!=null&&(Z[nt]=!pt,at=ot(this,t,"m",$).call(this,rt,L),ot(this,t,"m",T).call(this,Z,at))})):(Z[nt]=!Ot,this.validity[nt]!==!Ot&&(J=!0),!Ot&&!at&&(at=ot(this,t,"m",$).call(this,rt,L)))}),Promise.allSettled(W).then(()=>{var rt;it?.signal.aborted||(kt(this,v,!1,"f"),(rt=ot(this,g,"f"))===null||rt===void 0||rt.call(this))}),(J||!j)&&ot(this,t,"m",T).call(this,Z,at))},T=function(L,V){if(this.validationTarget)this.internals.setValidity(L,V,this.validationTarget),kt(this,d,!1,"f");else{if(this.internals.setValidity(L,V),this.internals.validity.valid)return;kt(this,d,!0,"f")}},$=function(L,V){if(this.validityCallback){const Z=this.validityCallback(L.key||"customError");
3if(Z)return Z}return L.message instanceof Function?L.message(this,V):L.message},E}const mo={attribute:"required",key:"valueMissing",message:"Please fill out this field",isValid(r,t){let e=!0;return(r.hasAttribute("required")||r.required)&&!t&&(e=!1),e}},ep={attribute:"maxlength",key:"tooLong",message(r,t){const e=t||"";return`Please use no more than ${r.maxLength} characters (you are currently using ${e.length} characters).`},isValid(r,t){return r.maxLength?!(t&&r.maxLength<t.length):!0}},ip=P`:host{display:inline-flex;position:relative;--awc-radio-background:var(--colors-white);--awc-radio-background-hover:var(--colors-light-background);--awc-radio-checked-background:var(
4      --awc-radio-custom-color,
5      var(--colors-primary)
6    );--awc-radio-checked-background-hover:var(--colors-link-hover);--awc-radio-border:var(--colors-stroke-control);--awc-radio-error-border:var(--colors-warning);--awc-radio-error-border-hover:color-mix(
7      in srgb,
8      var(--awc-radio-error-border) 90%,
9      black
10    );--awc-radio-label:var(--colors-text);--awc-radio-size:var(--awc-radio-size-regular);--awc-radio-checked:var(--awc-radio-checked-regular);--awc-radio-size-large:20px;--awc-radio-checked-large:6px;--awc-radio-size-regular:18px;--awc-radio-checked-regular:5px;--awc-radio-size-small:16px;--awc-radio-checked-small:4.5px}:host([size=large]){--awc-radio-size:var(--awc-radio-size-large);--awc-radio-checked:var(--awc-radio-checked-large)}:host([size=small]){--awc-radio-size:var(--awc-radio-size-small);--awc-radio-checked:var(--awc-radio-checked-small)}.awc-radio__wrapper{display:flex;flex-direction:column;align-items:flex-start}.awc-radio__container{display:flex;align-items:center;justify-content:space-between}.awc-radio:focus{outline:0}.awc-radio:focus-visible>.awc-radio__label::before{outline:1px solid var(--colors-focus,#919bb6)}.awc-radio__label{cursor:pointer;display:flex;align-items:center;gap:var(--spacing-sm);margin:0;font:var(--awc-font-text-regular-13);color:var(--awc-radio-label)}.awc-radio__hint{display:block;padding-left:calc(var(--awc-radio-size) + var(--spacing-sm));margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-secondary);overflow-wrap:anywhere}.awc-radio__label::before{content:"";display:inline-block;box-sizing:border-box;outline:1px solid transparent;height:var(--awc-radio-size);width:var(--awc-radio-size);border-radius:var(--corner-radius-circular);border:1px solid var(--awc-radio-border);transition:background-color var(--awc-duration-base,.25s) ease,filter var(--awc-duration-base,.25s) ease,border-color var(--awc-duration-base,.25s) ease,border-width var(--awc-duration-base,.25s) ease,outline-color var(--awc-duration-base,.25s) ease-in-out}.checked .awc-radio__label::before{border-width:var(--awc-radio-checked);border-color:var(--awc-radio-checked-background);background-color:var(--awc-radio-background)}:host(:not([disabled])) .awc-radio__wrapper:hover .awc-radio__label::before{transition:background-color var(--awc-duration-base,.25s),border-width var(--awc-duration-base,.25s) ease,filter var(--awc-duration-base,.25s) ease;background-color:var(--awc-radio-background-hover)}:host([checked]:not([disabled])) .awc-radio__wrapper:hover .awc-radio__label::before{transition:background-color var(--awc-duration-base,.25s),border-width var(--awc-duration-base,.25s) ease,filter var(--awc-duration-base,.25s) ease;border-color:var(--awc-radio-checked-background-hover);background-color:var(--awc-radio-background)}:host([checked][custom-color]:not([disabled])) .awc-radio__wrapper:hover .awc-radio__label::before{filter:brightness(90%);border-color:var(--awc-radio-checked-background);transition:border-color var(--awc-duration-base,.25s),border-width var(--awc-duration-base,.25s) ease,filter var(--awc-duration-base,.25s) ease}:host([disabled]) .awc-radio{cursor:not-allowed;pointer-events:none;opacity:.5}.awc-radio__label.radio--error::before{border-color:var(--awc-radio-error-border)}:host(:not([disabled])) .awc-radio__wrapper:hover .awc-radio__label.radio--error::before,:host([checked]:not
10([disabled])) .awc-radio__wrapper:hover .awc-radio__label.radio--error::before,:host([checked][custom-color]:not([disabled])) .awc-radio__wrapper:hover .awc-radio__label.radio--error::before{border-color:var(--awc-radio-error-border-hover);filter:none}.awc-radio__label.radio--error,:host([static-error]) .awc-radio__label.radio--error{color:var(--colors-warning)}.awc-radio__error{display:block;padding-left:calc(var(--awc-radio-size) + var(--spacing-sm));margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-warning);overflow-wrap:anywhere}.awc-radio__hint--hidden,.awc-radio__label--hidden{display:none}`,Tl=["valueMissing","typeMismatch","tooLong","tooShort","rangeUnderflow","rangeOverflow","stepMismatch","badInput","patternMismatch","customError"].map(r=>({key:r,isValid(t){return t.validationTarget?!t.validationTarget.validity[r]:!0}})),rp={...ep,isValid(r){return r.validationTarget&&r.getAttribute("maxlength")?Number(r.getAttribute("maxlength"))>=r.validationTarget.value.length:!0}},op=[...Tl,rp],fi={key:"customError",message:r=>r.error??"",isValid:r=>!r.error},Ja={...mo,isValid:r=>!r.required||!!r.disabled||!!r.checked};function El(r){r.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))}function Ll(r){r.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}const Il=new Map;function Qa(r="text"){const t=Il.get(r);if(t!==void 0)return t;let e;if(r==="select"){const i=document.createElement("select");i.required=!0,e=i.validationMessage}else{const i=document.createElement("input");i.type=r,r==="radio"&&(i.name="awc-native-required-probe"),i.required=!0,e=i.validationMessage}return e&&Il.set(r,e),e}function bo(r,t){return r==="valueMissing"?Qa(t):void 0}function Ol(r,t,e,i){const o=document.createElement("input");return o.type=r,e&&(o.min=e),i&&(o.max=i),o.value=t,o.validationMessage}function ts(r,t){r.dispatchEvent(new CustomEvent("awc-validity-ch
10ange",{detail:{valid:r.internals.validity.valid,message:t},bubbles:!0,composed:!0}))}function ap(r,t,e){return r.getAttribute(t)??e??""}function sp(r,t,e){return r.hasAttribute(t)||!!e}function wi(r,t,e){if(!t.has("error")||(t.get("error")??"")===r.error)return;const o=r.validationTarget;(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement)&&o.setCustomValidity(r.error||""),r.setValue(e()),r.validationMessageCallback(r.showError?r.internals.validationMessage:""),ts(r,r.internals.validationMessage)}class Ce{constructor(t,e){this.host=t,this.sources=e,this._values={},this._captured=!1,t.addController(this)}hostConnected(){this.capture()}capture(){if(!this._captured){for(const t of Object.keys(this.sources)){const e=this.sources[t]();this._values[t]=typeof e=="boolean"?sp(this.host,t,e):ap(this.host,t,e)}this._captured=!0}}get(t){return this.capture(),this._values[t]}}const G=Ri(class extends Cr{constructor(r){if(super(r),r.type!==me.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in t)t[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(t)}const e=r.element.classList;for(const i of this.st)i in t||(e.remove(i),this.st.delete(i));for(const i in t){const o=!!t[i];o===this.st.has(i)||this.nt?.has(i)||(o?(e.add(i),this.st.add(i)):(e.remove(i),this.st.delete(i)))}return Ut}});let np=0;const St=r=>`${r}-${++np}`;class he{constructor(t,e){this.host=t,this.hasLabelSlot=!1,this.hasHintSlot=!1,this.hasDefaultSlot=!1,this.onLabelSlotChange=i=>{this._update("hasLabelSlot",es(i))},this.onHintSlotChange=i=>{this._update("hasHintSlot",es(i))},this.onDefaultSlotChange=i=>{this._update("hasDefaultSlot",es(i))},this.labelId=St(`${e}-label`),this.hintId=St(`${e}-hint`),t.addController(this)}hostConnected(){}hostDisconnected(){}_update(t,e){this[t]!==e&&(this[t]=e,this.host.requestUpdate())}}function es(r){return r.target.assignedNodes({flatten:!0}).length>0}function Ae(r){const t=r.filter(Boolean);return t.length>0?t.join(" "):void 0}const lp=P`:host{--awc-radio-group-title-color:var(--colors-titles)}.awc-radio-group{display:flex;flex-direction:column;gap:var(--spacing-s)}.awc-radio-group__label{color:var(--awc-radio-group-title-color);font:var(--awc-font-text-medium-14)}.awc-radio-group__options{display:flex;flex-direction:column;gap:var(--spacing-m)}:host([horizontal]) .awc-radio-group__options{flex-direction:row}.awc-radio-group__hint{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-secondary);overflow-wrap:anywhere}.awc-radio-group__error{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-warning);overflow-wrap:anywhere}.awc-radio-group__hint--hidden,.awc-radio-group__label--hidden{display:none}`;var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,xe=(r,t,e,i)=>{for(var o=i>1?void 0:i?dp(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&cp(t,e,o),o};const hp="awc-radio-change",Fi="awc-radio-group",up={...mo,isValid:r=>!r.requiredEffective||!!r.value};s.AwcRadioGroup=class extends te(C){constructor(){super(...arguments),this.value="",this.name="",this.label="",this.hint="",this.horizontal=!1,this.required=!1,this.error="",this.slots=new he(this,"awc-radio-group"),this.errorId=St("awc-radio-group-error"),this.validationMessage="",this._handleSlotChange=()=>{this._selectedOption&&!this.options.includes(this._selectedOption)&&(this._selectedOption=null),this._setupAwcRadioValues(),this._syncCheckedState(),this.revalidateRequired()},this.focusedOptionIndex=0,this._selectedOption=null,this._defaults=new Ce(this,{value:()=>this.value}),this._onInvalid=t=>{t.preventDefault(),this.focus()},this._initialSyncDone=!1}get requiredEffective(){return this.required||this.options.some(t=>!(t.disabled||t.hasAttribute("disabled"))&&(t.required||t.hasAttribute("required")))}validityCallback(t){return bo(t,"radio")}validationMessageCallback(t){this.validationMessage=t}get validationTarget(){return this.options[0]??null}setCustomValidity(t){this.error=t}revalidateRequired(){this.setValue(this.value),this.validationMessageCallback(this.showError?this.internals.validationMessage:""),this.requestUpdate()}get options(){return[...this.querySelectorAll(Ml)]}get availableOptions(){return this.options.filter(t=>!t.disabled)}_handleRadioButton(t){const e=t.target;this._selectedOption=this.options.includes(e)?e:null,this.value=e.value,this.setValue(this.value),this._syncCheckedState(),this._onChange(e.value)}_declaredDefault(){let t=null;for(const e of this.options)e.defaultChecked&&(t=e);return t?t.value:this._defaults.get("value")}resetFormControl(){this._selectedOption=null,this.value=this._declaredDefault(),this._syncCheckedState()}_handleKeyDown(t){const e=this.availableOptions.length;if(e!==0){if(["ArrowDown","ArrowRight"].includes(t.key))this.focusedOptionIndex++;else if(["ArrowUp","ArrowLeft"].includes(t.key))this.focusedOptionIndex--;else if([" "].includes(t.key)){this.availableOptions[this.focusedOptionIndex]?.select(),t.preventDefault();return}else return;this.focusedOptionIndex=(this.focusedOptionIndex%e+e)%e,this.availableOptions[this.focusedOptionIndex].focus(),t.preventDefault()}}_handleFocus(){this.availableOptions.length!==0&&this.availableOptions[this.focusedOptionIndex]?.focus()}willUpdate(t){super.willUpdate(t),!(this._initialSyncDone||this.options.length===0)&&(this._initialSyncDone=!0,this._setupAwcRadioValues(),this._syncCheckedState())}updated(t){super.updated(t),t.has("value")&&(this.setValue(this.value),this._syncCheckedState()),wi(this,t,()=>this.value)}_isUpgraded(t){return t.matches(":defined")}_syncCheckedState(){const t=this.options,e=this._selectedOption;if(e&&t.includes(e)&&e.value===this.value){for(const o of t)this._isUpgraded(o)&&(o.checked=o===e);return}let i=null;for(const o of t){if(!this._isUpgraded(o))continue;const a=o.value,n=!i&&a!==void 0&&a===this.value;o.checked=n,n&&(i=o)}this._selectedOption=i}_setupAwcRadioValues(){this.options.forEach(t=>{t.checked&&(this.value=t.value,this._selectedOption=t)})}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("focus",this._handleFocus),this.addEventListener("keydown",this._handleKeyDown),this.addEventListener("invalid",this._onInvalid),this._setupAwcRadioValues(),ye(()=>{this._setupAwcRadioValues(),this._syncCheckedState()})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("keydown",this._handleKeyDown),this.removeEventListener("invalid",this._onInvalid)}render(){const t=this.slots.hasLabelSlot||!!this.label,e=this.slots.hasHintSlot||!!this.hint,i={"awc-radio-group__label":!0,"awc-radio-group__label--hidden":!t},o={"awc-radio-group__hint":!0,"awc-radio-group__hint--hidden":!e},a=!!this.error,n=this.showError&&!!this.validationMessage,d=a||n;let l="";a?l=this.error:n&&(l=this.validationMessage);const h=d&&!!l,p=Ae([e&&this.slots.hintId,h&&this.errorId]);return f`<div part="base" class="awc-radio-group" role="radiogroup" aria-labelledby="${D(t?this.slots.labelId:void 0)}" aria-describedby="${D(p)}" aria-required="${this.requiredEffective?"true":"false"}" aria-invalid="${h?"true":"false"}"><legend part="label" class="${G(i)}" id="${this.slots.labelId}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}">${this.label}</slot></legend><div part="options" class="awc-radio-group__options" @awc-checked="${this._handleRadioButton}">
10<slot @slotchange="${this._handleSlotChange}"></slot></div><span part="helper-text" class="${G(o)}" id="${this.slots.hintId}"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span>${h?f`<span part="error-message" class="awc-radio-group__error" id="${this.errorId}">${l}</span>`:""}</div>`}},s.AwcRadioGroup.formControlValidators=[fi,up],s.AwcRadioGroup.styles=[lp],xe([c({type:String})],s.AwcRadioGroup.prototype,"value",2),xe([c({type:String,reflect:!0})],s.AwcRadioGroup.prototype,"name",2),xe([c({type:String,reflect:!0})],s.AwcRadioGroup.prototype,"label",2),xe([c({type:String,reflect:!0})],s.AwcRadioGroup.prototype,"hint",2),xe([c({type:Boolean,reflect:!0})],s.AwcRadioGroup.prototype,"horizontal",2),xe([c({type:Boolean,reflect:!0})],s.AwcRadioGroup.prototype,"required",2),xe([c({type:String,reflect:!0,attribute:"error",useDefault:!0})],s.AwcRadioGroup.prototype,"error",2),xe([F(hp)],s.AwcRadioGroup.prototype,"_onChange",2),xe([M()],s.AwcRadioGroup.prototype,"validationMessage",2),s.AwcRadioGroup=xe([I(Fi)],s.AwcRadioGroup);var pp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,yt=(r,t,e,i)=>{for(var o=i>1?void 0:i?fp(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&pp(t,e,o),o};const Ml="awc-radio",wp={...Ja,isValid:r=>r.closest(Fi)?!0:Ja.isValid(r)};s.AwcRadio=class extends te(C){constructor(){super(...arguments),this.staticError=!1,this.error="",this.disabled=!1,this.size="regular",this.checked=!1,this.required=!1,this.validationMessage="",this._standalone=!1,this.errorId=St("awc-radio-error"),this.slots=new he(this,"awc-radio"),this._defaults=new Ce(this,{checked:()=>this.checked}),this._onChange=()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},this._onInvalid=t=>{t.preventDefault(),this.validationTarget.focus()}}validityCallback(t){return bo(t,"radio")}validationMessageCallback(t){this.customError&&!this.staticError?(this.validationMessage=t,this.validationMessage=this.customError):this.validationMessage=t}shouldFormValueUpdate(){return this.checked?!this.closest(Fi)?.name:!1}get defaultChecked(){return this._defaults.get("checked")}resetFormControl(){this.closest(Fi)||(this.checked=this._defaults.get("checked"))}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this._onInvalid);const t=this.closest(Fi);this._standalone=!t,t||console.warn("awc-radio is designed to be used inside an awc-radio-group",this),t?.value&&!this.checked&&!this.hasAttribute("checked")&&(t.options.some(i=>i.checked||i.hasAttribute("checked"))||(this.checked=t.value===this.value))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._onInvalid)}select(){this.checked=!0,this._onChecked(this.value),this._onChange()}focus(){this._radioElement.tabIndex=0,this._radioElement.focus(),this._onFocus(this.value)}blur(){this._radioElement.tabIndex=-1,this._onBlur(this.value)}_settingCustomColor(){this.customColor&&this.style.setProperty("--awc-radio-custom-color",this.customColor)}_escalationChanged(t,e){return t.has(e)&&(this[e]||t.get(e)!==void 0)}updated(t){super.updated(t),(t.has("checked")||t.has("value"))&&this.setValue(this.value),(this._escalationChanged(t,"required")||this._escalationChanged(t,"disabled"))&&this.closest(Fi)?.revalidateRequired(),t.has("customColor")&&this._settingCustomColor(),wi(this,t,()=>this.value)}setCustomValidity(t){this.error=t}render(){const t=!!this.error,e=this.staticError&&this.required,i=this.showError&&!!this.validationMessage,o=t||e||i;let a="";t?a=this.error:i?a=this.validationMessage:e&&(a=this.customError||this.validationMessage);const n=o&&!!a,d=this.slots.hasLabelSlot||!!this.label,l=this.slots.hasHintSlot||!!this.hint,h=Ae([l&&this.slots.hintId,n&&this.errorId]),p=G({"awc-radio":!0,checked:this.checked}),w={"awc-radio__label":!0,"awc-radio__label--hidden":!d,"radio--error":t||e||i&&!this.checked},g={"awc-radio__hint":!0,"awc-radio__hint--hidden":!l};return f`<div part="base" class="awc-radio__wrapper"><div class="awc-radio__container"><span part="control" tabindex="0" class="${p}" role="radio" aria-checked="${this.checked}" aria-disabled="${this.disabled}" aria-required="${D(this._standalone?String(this.required):void 0)}" aria-labelledby="${D(d?this.slots.labelId:void 0)}" aria-describedby="${D(h)}" aria-invalid="${n?"true":"false"}" @blur="${this.blur}" @click="${this.select}"><p id="${this.slots.labelId}" part="label" class="${G(w)}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}">${this.label}</slot></p></span></div><span part="helper-text" class="${G(g)}" id="${this.slots.hintId}"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span>${n?f`<span part="error-message" class="awc-radio__error" id="${this.errorId}">${a}</span>`:""}</div>`}},s.AwcRadio.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcRadio.formControlValidators=[fi,wp],s.AwcRadio.styles=[ip],yt([c({type:String,reflect:!0})],s.AwcRadio.prototype,"name",2),yt([c({type:String,reflect:!0})],s.AwcRadio.prototype,"value",2),yt([c({type:String,reflect:!0})],s.AwcRadio.prototype,"label",2),yt([c({type:String,reflect:!0})],s.AwcRadio.prototype,"hint",2),yt([c({reflect:!0,attribute:"custom-error"})],s.AwcRadio.prototype,"customError",2),yt([c({type:Boolean,reflect:!0,attribute:"static-error"})],s.AwcRadio.prototype,"staticError",2),yt([c({type:String,reflect:!0,attribute:"error",useDefault:!0})],s.AwcRadio.prototype,"error",2),yt([c({type:Boolean,reflect:!0})],s.AwcRadio.prototype,"disabled",2),yt([c({type:String,reflect:!0})],s.AwcRadio.prototype,"size",2),yt([c({type:Boolean,reflect:!0})],s.AwcRadio.prototype,"checked",2),yt([c({type:Boolean,reflect:!0})],s.AwcRadio.prototype,"required",2),yt([c({reflect:!0,attribute:"custom-color"})],s.AwcRadio.prototype,"customColor",2),yt([F("awc-checked")],s.AwcRadio.prototype,"_onChecked",2),yt([F("awc-focus")],s.AwcRadio.prototype,"_onFocus",2),yt([F("awc-blur")],s.AwcRadio.prototype,"_onBlur",2),yt([H("[role=radio]")],s.AwcRadio.prototype,"_radioElement",2),yt([H("[role=radio]")],s.AwcRadio.prototype,"validationTarget",2),yt([M()],s.AwcRadio.prototype,"validationMessage",2),yt([M()],s.AwcRadio.prototype,"_standalone",2),s.AwcRadio=yt([I(Ml)],s.AwcRadio);const gp=globalThis.SubmitEvent=typeof globalThis.SubmitEvent<"u"?SubmitEvent:Event,Pl=r=>{if(!(!r.noValidate&&!r.reportValidity())){const t=new gp("submit",{bubbles:!0,cancelable:!0});r.dispatchEvent(t),t.defaultPrevented||r.submit()}},vp=P`:host{display:var(--awc-button-display,inline-flex);max-width:100%;--awc-button-border-radius:var(--corner-radius-s);--awc-button-padding-large:0 20px;--awc-button-padding-regular:0 16px;--awc-button-padding-small:0 12px;--awc-button-padding-extrasmall:0 10px;--awc-button-height:36px;--awc-button-padding:var(--awc-button-padding-regular);--awc-button-font:var(--awc-font-caption-1-medium)}:host([size=large]){--awc-button-height:40px;--awc-button-padding:var(--awc-button-padding-large);--awc-button-font:var(--awc-font-text-medium-14)}
10:host([size=regular]){--awc-button-height:36px;--awc-button-padding:var(--awc-button-padding-regular);--awc-button-font:var(--awc-font-caption-1-medium)}:host([size=small]){--awc-button-height:30px;--awc-button-padding:var(--awc-button-padding-small);--awc-button-font:var(--awc-font-caption-2-regular)}:host([size=extrasmall]){--awc-button-height:24px;--awc-button-padding:var(--awc-button-padding-extrasmall);--awc-button-font:var(--awc-font-caption-3-regular)}.awc-button{position:relative;text-decoration:none;padding:var(--awc-button-padding);border:none;position:relative;width:100%;gap:6px;display:flex;align-items:center;justify-content:center;text-decoration:none;border-radius:var(--awc-button-border-radius,var(--awc-button-remove-border-radius));cursor:pointer;color:var(--colors-white);transition:background-color var(--awc-duration-slow,.3s) ease,color var(--awc-duration-slow,.3s),border-color var(--awc-duration-slow,.3s) ease,transform var(--awc-duration-slow,.3s) ease;font:var(--awc-button-font);background-color:var(--button-background);height:var(--awc-button-height)}.awc-button:focus{outline:0}awc-spinner{display:flex;align-items:center;justify-content:center;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%,-50%)}:host ::slotted(awc-spinner){pointer-events:none;touch-action:none}.awc-button:focus-visible{outline:2px solid var(--colors-secondary)}:host([autofocus]) .awc-button:focus{outline:2px solid var(--colors-secondary)}:host([disabled]){user-select:none;opacity:.5;cursor:not-allowed;pointer-events:none}:host([loading]){pointer-events:none;touch-action:none;user-select:none}.awc-button--disable{pointer-events:none;touch-action:none;user-select:none}:host([loading]) .awc-button{color:transparent!important}:host([block]) .awc-button{width:100%}:host([background=blue]) .awc-button{--button-background:var(--colors-primary)}:host([filling]) .awc-button ::slotted(awc-icon){transition:fill var(--awc-duration-slow,.3s) ease;fill:var(--colors-white)}:host([background=blue]:not([disabled])) .awc-button:hover{--button-background:var(--colors-link-hover)}:host([background=red]) .awc-button{--button-background:var(--colors-warning)}:host([background=red]:not([disabled])) .awc-button:hover{--button-background:var(--global-red-500)}:host([background=green]) .awc-button{--button-background:var(--colors-success)}:host([background=green]:not([disabled])) .awc-button:hover{--button-background:var(--global-green-400)}:host([background=gray]) .awc-button{--button-background:var(--colors-secondary)}:host([background=gray]:not([disabled])) .awc-button:hover{--button-background:var(--colors-secondary)}:host([background=blue][variant=secondary]) .awc-button{--button-background:rgba(55, 97, 233, 0.1);color:var(--colors-primary)}:host([background=blue][variant=secondary][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-primary)}:host([background=blue][variant=secondary]:not([disabled])) .awc-button:hover{--button-background:var(--colors-link-hover);color:var(--colors-white)}:host([background=blue][variant=secondary][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-white)}:host([background=red][variant=secondary]) .awc-button{--button-background:rgba(255, 0, 0, 0.1);color:var(--colors-warning)}:host([background=red][variant=secondary][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-warning)}:host([background=red][variant=secondary]:not([disabled])) .awc-button:hover{--button-background:var(--colors-warning);color:var(--colors-white)}:host([background=red][variant=secondary][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-white)}:host([background=green][variant=secondary]) .awc-button{--button-background:rgba(53, 211, 172, 0.1);color:var(--colors-success)}:host([background=green][variant=secondary][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-success)}:host([background=green][variant=secondary]:not([disabled])) .awc-button:hover{--button-background:var(--global-green-400);color:var(--colors-white)}:host([background=green][variant=secondary][filling]) .awc-button:hover ::slotted(awc-icon){fill:var
10(--colors-white)}:host([background=gray][variant=secondary]) .awc-button{--button-background:rgba(145, 155, 182, 0.1);color:var(--colors-text)}:host([background=gray][variant=secondary][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-text)}:host([background=gray][variant=secondary]:not([disabled])) .awc-button:hover{--button-background:var(--colors-secondary);color:var(--colors-white)}:host([background=gray][variant=secondary][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-white)}:host([background=blue][variant=transparent]) .awc-button{--button-background:transparent;border:1px solid #3761e959;color:var(--colors-primary)}:host([background=blue][variant=transparent][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-primary)}:host([background=blue][variant=transparent]:not([disabled])) .awc-button:hover{--button-background:var(--colors-link-hover);color:var(--colors-white)}:host([background=blue][variant=transparent][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-white)}:host([background=red][variant=transparent]) .awc-button{--button-background:transparent;border:1px solid #ff000059;color:var(--colors-warning)}:host([background=red][variant=transparent][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-warning)}:host([background=red][variant=transparent]:not([disabled])) .awc-button:hover{--button-background:var(--global-red-500);color:var(--colors-white)}:host([background=red][variant=transparent][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-white)}:host([background=green][variant=transparent]) .awc-button{--button-background:transparent;border:1px solid #35d3ac59;color:var(--colors-success)}:host([background=green][variant=transparent][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-success)}:host([background=green][variant=transparent]:not([disabled])) .awc-button:hover{background-color:var(--global-green-400);color:var(--colors-white)}:host([background=green][variant=transparent][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-white)}:host([background=gray][variant=transparent]) .awc-button{--button-background:transparent;border:1px solid var(--colors-stroke-hover);color:var(--colors-text)}:host([background=gray][variant=transparent][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-text)}:host([background=gray][variant=transparent]:not([disabled])) .awc-button:hover{border-color:var(--colors-secondary);--button-background:var(--colors-secondary);color:var(--colors-white)}:host([background=gray][variant=transparent][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-white)}:host([background=blue][variant=link]) .awc-button{--button-background:transparent;color:var(--colors-primary)}:host([background=blue][variant=link][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-primary)}:host([background=blue][variant=link]:not([disabled])) .awc-button:hover{--button-background:rgba(55, 97, 233, 0.1);color:var(--colors-primary)}:host([background=blue][variant=link][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-primary)}:host([background=red][variant=link]) .awc-button{--button-background:transparent;color:var(--colors-warning)}:host([background=red][variant=link][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-warning)}:host([background=red][variant=link]:not([disabled])) .awc-button:hover{--button-background:rgba(255, 0, 0, 0.1);color:var(--colors-warning)}:host([background=red][variant=link][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-warning)}:host([background=green][variant=link]) .awc-button{--button-background:transparent;color:var(--colors-success)}:host([background=green][variant=link][filling]) .awc-button ::slotted(awc-icon){fill:var(--colors-success)}:host([background=green][variant=link]:not([disabled])) .awc-button:hover{--button-background:rgba(53, 211, 172, 0.1);color:var(--colors-success)}:host([background=green][variant=link][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-success)}:host([background=gray][variant=link]) .awc-button{--button-background:transparent;color:var(--colors-text)}:host([background=gray][variant=link][filling]) .awc-button ::slotted(awc-icon){fill:var
10(--colors-text)}:host([background=gray][variant=link]:not([disabled])) .awc-button:hover{--button-background:rgba(145, 155, 182, 0.1);color:var(--colors-text)}:host([background=gray][variant=link][filling]) .awc-button:hover ::slotted(awc-icon){fill:var(--colors-text)}`,_p=P`:host{display:inline-flex}:host([size="s"]){--awc-spinner-size:16px;--awc-spinner-border-width:2px}:host([size="m"]){--awc-spinner-size:20px;--awc-spinner-border-width:2.5px}:host([size="l"]){--awc-spinner-size:28px;--awc-spinner-border-width:3px}:host([variant=primary]){--awc-spinner-thumb:rgba(55, 97, 233, 0.12);--awc-spinner-track:var(--colors-primary)}:host([variant=secondary]){--awc-spinner-thumb:rgba(255, 255, 255, 0.12);--awc-spinner-track:var(--colors-white)}.awc-spinner{position:relative;width:var(--awc-spinner-size);height:var(--awc-spinner-size);border:var(--awc-spinner-border-width) solid var(--awc-spinner-thumb);border-bottom-color:var(--awc-spinner-track);border-radius:50%;display:inline-block;box-sizing:border-box;animation:awc-spinner .8s linear infinite}@keyframes awc-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}`;var mp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,is=(r,t,e,i)=>{for(var o=i>1?void 0:i?bp(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&mp(t,e,o),o};const Dl="awc-spinner";s.AwcSpinner=class extends C{constructor(){super(...arguments),this.size="m",this.variant="primary"}render(){return f`<div part="base" class="awc-spinner"></div>`}},s.AwcSpinner.styles=[_p],is([c({type:String,reflect:!0})],s.AwcSpinner.prototype,"size",2),is([c({type:String,reflect:!0})],s.AwcSpinner.prototype,"variant",2),s.AwcSpinner=is([I(Dl)],s.AwcSpinner);var yp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,Rt=(r,t,e,i)=>{for(var o=i>1?void 0:i?Cp(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&yp(t,e,o),o};const Bl="awc-button";s.AwcButton=class extends C{constructor(){super(...arguments),this.background="blue",this.size="regular",this.variant="primary",this.type="submit",this.target="_self",this.disabled=!1,this.filling=!1,this.loading=!1,this.autofocus=!1}get spinner(){return this.querySelector(Dl)}focus(t){this.button.focus(t)}_handleButtonClick(t){if(this.loading){t.preventDefault();return}if(this.href)return;const e=this.closest("form");e&&(this.type==="submit"?Pl(e):this.type==="reset"&&e.reset())}_renderSpinner(){const t=this.variant==="primary"?"secondary":"primary";return f`<awc-spinner exportparts="base:spinner-base" size="s" variant="${t}"></awc-spinner>`}_settingCurrentSpinnerVariant(){this.spinner?(this.button.classList.add("awc-button--disable"),this.variant==="primary"?this.spinner.variant="secondary":this.spinner.variant="primary"):this.button.classList.remove("awc-button--disable")}_checkingSpinnerInSlot(){this.spinner?this._settingCurrentSpinnerVariant():this.button.classList.remove("awc-button--disable")}updated(t){super.updated(t),t.has("variant")&&this._settingCurrentSpinnerVariant()}render(){const t=f`<slot @slotchange="${this._checkingSpinnerInSlot}"></slot>${this.loading?this._renderSpinner():""}`,e=f`<button part="base" class="awc-button" ?filling="${this.filling}" ?autofocus="${this.autofocus}" type="${this.type}" name="${D(this.name)}" value="${D(this.value)}" background="${this.background}" ?disabled="${this.disabled}" aria-disabled="${D(this.loading?"true":void 0)}" aria-busy="${D(this.loading?"true":void 0)}" @click="${this._handleButtonClick}">${t}</button>`,i=f`<a part="base" class="awc-button" ?filling="${this.filling}" ?autofocus="${this.autofocus}" background="${this.background}" ?disabled="${this.disabled}" aria-disabled="${D(this.loading?"true":void 0)}" aria-busy="${D(this.loading?"true":void 0)}" href="${this.href}" target="${D(this.target)}" @click="${this._handleButtonClick}">${t}</a>`;return this.href?i:e}},s.AwcButton.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcButton.styles=[vp],Rt([c({type:String,reflect:!0})],s.AwcButton.prototype,"name",2),Rt([c({type:String,reflect:!0})],s.AwcButton.prototype,"value",2),Rt([c({type:String,reflect:!0})],s.AwcButton.prototype,"background",2),Rt([c({type:String,reflect:!0})],s.AwcButton.prototype,"size",2),Rt([c({type:String,reflect:!0})],s.AwcButton.prototype,"variant",2),Rt([c({type:String,reflect:!0})],s.AwcButton.prototype,"type",2),Rt([c({type:String})],s.AwcButton.prototype,"target",2),Rt([c({type:String,reflect:!0})],s.AwcButton.prototype,"href",2),Rt([c({type:Boolean,reflect:!0})],s.AwcButton.prototype,"disabled",2),Rt([c({type:Boolean,reflect:!0})],s.AwcButton.prototype,"filling",2),Rt([c({type:Boolean,reflect:!0})],s.AwcButton.prototype,"loading",2),Rt([c({type:Boolean,reflect:!0})],s.AwcButton.prototype,"autofocus",2),Rt([M()],s.AwcButton.prototype,"pointerEvent",2),Rt([H(".awc-button")],s.AwcButton.prototype,"button",2),s.AwcButton=Rt([I(Bl)],s.AwcButton);const{I:Ap}=uh,Vl=r=>r,xp=r=>r.strings===void 0,Hl=()=>document.createComment(""),$r=(r,t,e)=>{const i=r._$AA.parentNode,o=t===void 0?r._$AB:t._$AA;if(e===void 0){const a=i.insertBefore(Hl(),o),n=i.insertBefore(Hl(),o);e=new Ap(a,n,r,r.options)}else{const a=e._$AB.nextSibling,n=e._$AM,d=n!==r;if(d){let l;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(l=r._$AU)!==n._$AU&&e._$AP(l)}if(a!==o||d){let l=e._$AA;
vendor: 5,519 bytes, lines 10-16
10for(;l!==a;){const h=Vl(l).nextSibling;Vl(i).insertBefore(l,o),l=h}}}return e},gi=(r,t,e=r)=>(r._$AI(t,e),r),kp={},Rl=(r,t=kp)=>r._$AH=t,Sp=r=>r._$AH,rs=r=>{r._$AR(),r._$AA.remove()};const Ye=Ri(class extends Cr{constructor(r){if(super(r),r.type!==me.PROPERTY&&r.type!==me.ATTRIBUTE&&r.type!==me.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!xp(r))throw Error("`live` bindings can only contain a single expression")}render(r){return r}update(r,[t]){if(t===Ut||t===A)return t;const e=r.element,i=r.name;if(r.type===me.PROPERTY){if(t===e[i])return Ut}else if(r.type===me.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return Ut}else if(r.type===me.ATTRIBUTE&&e.getAttribute(i)===t+"")return Ut;return Rl(r),t}}),$p=P`:host{display:inline-flex;--awc-checkbox-size:var(--awc-checkbox-size-regular);--awc-checkbox-mark:var(--awc-checkbox-mark-regular);--awc-checkbox-mark-indeterminate:var(--awc-checkbox-mark-indeterminate-regular);--awc-checkbox-radius:var(--corner-radius-s);--awc-checkbox-mark-small:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M5 8L7.5 10.5L12 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");--awc-checkbox-mark-regular:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M5 9L8 12L14 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");--awc-checkbox-mark-large:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 10L9 13L15 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");--awc-checkbox-mark-indeterminate-small:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M5 8H11' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");--awc-checkbox-mark-indeterminate-regular:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M5.5 9H12.5' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");--awc-checkbox-mark-indeterminate-large:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 10H14' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");--awc-checkbox-size-small:16px;--awc-checkbox-size-regular:18px;--awc-checkbox-size-large:20px;--awc-checkbox-background:transparent;--awc-checkbox-background-hover:var(--colors-light-background);--awc-checkbox-background-checked:var(
11      --awc-checkbox-custom-color,
12      var(--colors-primary)
13    );--awc-checkbox-background-checked-hover:var(--colors-link-hover);--awc-checkbox-border-color:var(
14      --awc-checkbox-custom-color,
15      var(--colors-stroke-control)
16    );--awc-checkbox-border-color-hover:var(--colors-stroke-hover);--awc-checkbox-border-color-checked:var(--awc-checkbox-background);--awc-checkbox-label:var(--colors-text)}.awc-checkbox__wrapper{display:flex;flex-direction:column;align-items:flex-start}.awc-checkbox__container{display:flex;justify-content:center;align-items:center;position:relative;width:var(--awc-checkbox-size);aspect-ratio:1}:host([size=small]){--awc-checkbox-size:var(--awc-checkbox-size-small);--awc-checkbox-mark:var(--awc-checkbox-mark-small);--awc-checkbox-mark-indeterminate:var(--awc-checkbox-mark-indeterminate-small);--awc-checkbox-radius:calc(var(--corner-radius-s) - 1px)}:host([size=large]){--awc-checkbox-size:var(--awc-checkbox-size-large);--awc-checkbox-mark:var(--awc-checkbox-mark-large);--awc-checkbox-mark-indeterminate:var(--awc-checkbox-mark-indeterminate-large)}:host([checked]) .awc-checkbox{background-color:var(--awc-checkbox-background-checked);border-color:var(--awc-checkbox-background-checked);transition:background-color var(--awc-duration-slow,.3s) ease-out,border-color var(--awc-duration-slow,.3s) ease-out}:host([checked]) .awc-checkbox__label:hover .awc-checkbox{background-color:var(--awc-checkbox-background-checked-hover);border-color:var(--awc-checkbox-background-checked-hover);transition:border-color var(--awc-duration-slow,.3s) ease-out,background-color var(--awc-duration-slow,.3s) ease-out}:host([checked][custom-color]) .awc-checkbox__label:hover .awc-checkbox,:host([indeterminate][custom-color]) .awc-checkbox__label:hover .awc-checkbox{background-color:var(--awc-checkbox-background-checked);border-color:var(--awc-checkbox-background-checked);filter:brightness(90%);transition:filter var(--awc-duration-slow,.3s) ease-out,background-color var(--awc-duration-slow,.3s) ease-out}:host([indeterminate]) .awc-checkbox{background-color:var(--awc-checkbox-background-checked);border-color:var(--awc-checkbox-background-checked);transition:background-color var(--awc-duration-slow,.3s) ease-out,border-color var(--awc-duration-slow,.3s) ease-out}:host([indeterminate]) .awc-checkbox__label:hover .awc-checkbox{background-color:var(--awc-checkbox-background-checked-hover);border-color:var(--awc-checkbox-background-checked-hover);transition:border-color var(--awc-duration-slow,.3s) ease-out,background-color var(--awc-duration-slow,.3s) ease-out}:host([disabled]) .awc-checkbox__label,:host([disabled]) .checkbox{o
16pacity:.5;cursor:not-allowed;pointer-events:none}:host([checked][disabled]) .awc-checkbox{background-color:var(--awc-checkbox-background-checked)}:host([disabled]) .awc-checkbox{background-color:var(--awc-checkbox-background-hover)}.awc-checkbox{box-sizing:border-box;cursor:pointer;position:relative;display:flex;justify-content:center;align-items:center;width:var(--awc-checkbox-size);height:var(--awc-checkbox-size);max-width:var(--awc-checkbox-size);max-height:var(--awc-checkbox-size);border-radius:var(--awc-checkbox-radius);border:1px solid var(--awc-checkbox-border-color);background-color:var(--awc-checkbox-background);transition:background-color var(--awc-duration-slow,.3s) ease-out}.awc-checkbox::after{content:'';position:absolute;inset:-1px;background-size:contain;background-repeat:no-repeat;background-position:center;transform:scale3d(0,0,0);transition:transform var(--awc-duration-slow,.3s) ease}:host([checked]) .awc-checkbox::after{background-image:var(--awc-checkbox-mark);transform:scale3d(1,1,1)}:host([indeterminate]) .awc-checkbox::after{background-image:var(--awc-checkbox-mark-indeterminate);transform:scale3d(1,1,1)}.checkbox{cursor:pointer;width:inherit;height:inherit;position:absolute;opacity:1;margin:0;-webkit-appearance:none;border-radius:var(--awc-checkbox-radius)}.checkbox:focus-visible{outline-offset:0;outline:1px solid var(--colors-focus,#919bb6)}.awc-checkbox__label{display:flex;flex-direction:row-reverse;align-items:center;gap:var(--spacing-sm);cursor:pointer;color:var(--awc-checkbox-label);font:var(--awc-font-text-regular-13)}.awc-checkbox__label.checkbox--error,:host([static-error]) .awc-checkbox__label.checkbox--error{color:var(--colors-warning)}.awc-checkbox__hint{display:block;padding-left:calc(var(--awc-checkbox-size) + var(--spacing-sm));margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-secondary);overflow-wrap:anywhere}.awc-checkbox__error{display:block;padding-left:calc(var(--awc-checkbox-size) + var(--spacing-sm));margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-warning);overflow-wrap:anywhere}.checkbox.checkbox--error{width:100%;aspect-ratio:1;border:1px solid var(--colors-warning)}:host([static-error][custom-error][required]) .awc-checkbox{border-color:var(--colors-warning)}.awc-checkbox__hint--hidden,.awc-checkbox__label-text--hidden{display:none}`;var Tp=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,_t=(r,t,e,i)=>{for(var o=i>1?void 0:i?Ep(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Tp(t,e,o),o};const zl="awc-checkbox";s.AwcCheckbox=class extends te(C){constructor(){super(...arguments),this.label="",this.name="",this.checked=!1,this.required=!1,this.disabled=!1,this.indeterminate=!1,this.staticError=!1,this.customError="",this.size="regular",this.error="",this.validationMessage="",this.errorId=St("awc-checkbox-error"),this.slots=new he(this,"awc-checkbox"),this._defaults=new Ce(this,{checked:()=>this.checked,indeterminate:()=>this.indeterminate}),this._onInvalid=t=>{t.preventDefault(),this.validationTarget.focus()}}validityCallback(){return this.validationTarget?.validationMessage}validationMessageCallback(t){this.validationMessage=t}resetFormControl(){this.closest(yo)||(this.checked=this._defaults.get("checked"),this.indeterminate=this._defaults.get("indeterminate"))}shouldFormValueUpdate(){return this.checked?!this.closest(yo)?.name:!1}willUpdate(t){super.willUpdate(t),t.has("indeterminate")&&this.indeterminate&&(this.checked=!1),t.has("checked")&&this.checked&&(this.indeterminate=!1)}update(t){super.update(t),(t.has("checked")||t.has("value"))&&this.setValue(this.value),t.has("customColor")&&this._settingCustomColor()}updated(t){super.updated(t),t.has("indeterminate")&&this.indeterminate&&(this.checkboxElement.indeterminate=!0),wi(this,t,()=>this.value)}setCustomValidity(t){this.error=t}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this._onInvalid),ye(()=>{this.field=this.closest(yo)})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._onInvalid)}focus(){this.checkboxElement.tabIndex=0,this.checkboxElement.focus(),this.onFocus(this.value)}blur(){this.onBlur(this.value),this.field&&(this.checkboxElement.tabIndex=-1)}_settingCustomColor(){this.customColor&&this.style.setProperty("--awc-checkbox-custom-color",this.customColor)}_handleChange(t){const e=t.target;e.checkValidity(),this.checked=e.checked,this.name&&!this.value&&(this.value="on"),this.onChange(e.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.indeterminate=!1}render(){const t=!!this.error,e=this.staticError&&this.required,i=this.showError&&!!this.validationMessage,o=t||e||i;let a="";t?a=this.error:i?a=this.validationMessage:e&&(a=this.customError||this.validationMessage);const n=o&&!!a,d=this.slots.hasLabelSlot||!!this.label||this.slots.hasDefaultSlot,l=this.slots.hasHintSlot||!!this.hint,h=Ae([l&&this.slots.hintId,n&&this.errorId]),p={"checkbox--error":o},w={checkbox:!0,...p},g={"awc-checkbox__label":!0,...p},v={"awc-checkbox__label-text":!0,"awc-checkbox__label-text--hidden":!d},m={"awc-checkbox__hint":!0,"awc-checkbox__hint--hidden":!l};return f`<div part="base" class="awc-checkbox__wrapper"><label class="${G(g)}" id="${this.slots.labelId}"><span part="label" class="${G(v)}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}">${this.label?this.label:f`<slot @slotchange="${this.slots.onDefaultSlotChange}"></slot>`}</slot></span><div class="awc-checkbox__container"><span part="control" class="awc-checkbox"></span> <input part="input" class="${G(w)}" type="checkbox" label="${this.label}" name="${this.name}" value="${D(this.value)}" .checked="${Ye(this.checked)}" ?disabled="${this.disabled}" ?required="${this.required}" .indeterminate="${this.indeterminate}" aria-describedby="${D(h)}" aria-invalid="${n?"true":"false"}" @change="${this._handleChange}" @blur="${this.blur}"></div></label> <span part="helper-text" class="${G(m)}" id="${this.slots.hintId}"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span>${n?f`<span part="error-message" class="awc-checkbox__error" id="${this.errorId}">${a}</span>`:""}</div>`}},s.AwcCheckbox.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcCheckbox.formControlValidators=[fi,Ja],s.AwcCheckbox.styles=[$p],_t([c({type:String,reflect:!0})],s.AwcCheckbox.prototype,"value",2),_t([c({type:String,reflect:!0})],s.AwcCheckbox.prototype,"label",2),_t([c({type:String,reflect:!0})],s.AwcCheckbox.prototype,"hint",2),_t([c({type:String,reflect:!0})],s.AwcCheckbox.prototype,"name",2),_t([c({type:Boolean,reflect:!0})],s.AwcCheckbox.prototype,"checked",2),_t([c({type:Boolean,reflect:!0})],s.AwcCheckbox.prototype,"required",2),_t([c({type:Boolean,reflect:!0})],s.AwcCheckbox.prototype,"disabled",2),_t([c({type:Boolean,reflect:!0})],s.AwcCheckbox.prototype,"indeterminate",2),_t([c({type:Boolean,reflect:!0,attribute:"static-error"})],s.AwcCheckbox.prototype,"staticError",2),_t([c({reflect:!0,attribute:"custom-error",useDefault:!0})],s.AwcCheckbox.prototype,"customError",2),_t([c({type:String,reflect:!0,useDefault:!0})],s.AwcCheckbox.prototype,"size",2),_t([c({reflect:!0,attribute:"custom-color"})],s.AwcCheckbox.prototype,"customColor",2),_t([c({type:String,reflect:!0,attribute:"error",useDefault:!0})],s.AwcCheckbox.prototype,"error",2),_t([M()],s.AwcCheckbox.prototype,"validationMessage",2),_t([F("awc-checkbox-change")],s.AwcCheckbox.prototype,"onChange",2),_t([F("awc-focus")],s.AwcCheckbox.prototype,"onFocus",2),_t([F("awc-blur")],s.AwcCheckbox.prototype,"onBlur",2),_t([H("input")],s.AwcCheckbox.prototype,"checkboxElement",2),_t([H("label")],s.AwcCheckbox.prototype,"labelCheckboxElement",2),_t([H("input[type=checkbox]")],s.AwcCheckbox.prototype,"validationTarget",2),s.AwcCheckbox=_t([I(zl)],s.AwcCheckbox);const Lp=P`:host{--awc-checkbox-group-title-color:var(--colors-titles)}
16.awc-checkbox-group{display:flex;flex-direction:column;gap:var(--spacing-s)}.awc-checkbox-group__label{color:var(--awc-checkbox-group-title-color);font:var(--awc-font-text-medium-14)}.awc-checkbox-group__options{display:flex;flex-direction:column;gap:var(--spacing-m)}:host([horizontal]) .awc-checkbox-group__options{flex-direction:row}.awc-checkbox-group__hint{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-secondary);overflow-wrap:anywhere}.awc-checkbox-group__error{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-warning);overflow-wrap:anywhere}.awc-checkbox-group__hint--hidden,.awc-checkbox-group__label--hidden{display:none}`;var Ip=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,ue=(r,t,e,i)=>{for(var o=i>1?void 0:i?Op(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Ip(t,e,o),o};const yo="awc-checkbox-group";s.AwcCheckboxGroup=class extends te(C){constructor(){super(...arguments),this.value=[],this.name="",this.label="",this.hint="",this.horizontal=!1,this.required=!1,this.error="",this.slots=new he(this,"awc-checkbox-group"),this.errorId=St("awc-checkbox-group-error"),this.validationMessage="",this._defaultValue=[],this._defaultFrozen=!1,this.focusedOptionIndex=0,this._initialSyncDone=!1,this.handleInvalid=t=>{t.preventDefault(),this.focus()}}get checkedNames(){return this.options.filter(t=>t.checked).map(t=>t.name)}set checkedNames(t){const e=t??[];for(const i of this.options)i.checked=e.includes(i.name);this.value=this.checkedOptions}validityCallback(t){return bo(t,"checkbox")}validationMessageCallback(t){this.validationMessage=t}_captureDefaultDuringInit(){this._defaultFrozen||(this._defaultValue=[...this.value])}resetFormControl(){this.value=[...this._defaultValue],this._syncCheckedState()}get validationTarget(){return this.options[0]??null}setCustomValidity(t){this.error=t}get options(){return[...this.querySelectorAll(zl)]}get checkedOptions(){return this._checkedValuesOf(this.options)}get availableOptions(){return this.options.filter(t=>!t.disabled)}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this._syncValueFromChildren(),this._captureDefaultDuringInit(),ye(()=>{this._syncValueFromChildren(),this._syncCheckedState(),this._captureDefaultDuringInit()}),this.addEventListener("focus",this.handleFocus),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("invalid",this.handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleFocus),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("invalid",this.handleInvalid)}willUpdate(t){super.willUpdate(t),!this._initialSyncDone&&(this._initialSyncDone=!0,this._syncValueFromChildren(),this._captureDefaultDuringInit())}updated(t){super.updated(t),t.has("value")&&(this._syncCheckedState(),this.setValue(this.value.join(", "))),wi(this,t,()=>this.value.join(", "))}_handleCheckboxItem(){this._defaultFrozen=!0,this.value=this.checkedOptions,this.setValue(this.value.join(", ")),this._onChange(this.value)}_syncValueFromChildren(){const t=this.checkedOptions;t.length!==0&&(this.value=t)}_syncCheckedState(){const t=this.options;if(!this._valueMatchesCheckedChildren(t))for(const e of t)e.matches(":defined")&&(e.checked=this.value.includes(e.value))}_valueMatchesCheckedChildren(t){const e=this._checkedValuesOf(t);return e.length===this.value.length&&e.every((i,o)=>i===this.value[o])}_checkedValuesOf(t){return t.filter(e=>e.checked).map(e=>e.value)}handleKeyDown(t){const e=this.availableOptions,i=e.length;if(i===0){this.tabIndex=0,this.focusedOptionIndex=0;return}let o=!1;if(["ArrowDown","ArrowRight"].includes(t.key))this.focusedOptionIndex++,o=!0;else if(["ArrowUp","ArrowLeft"].includes(t.key))this.focusedOptionIndex--,o=!0;else if(t.key==="Tab"){if(t.shiftKey?this.focusedOptionIndex--:this.focusedOptionIndex++,this.focusedOptionIndex===i){this.tabIndex=0,this.focusedOptionIndex=0;return}}else return;o?this.focusedOptionIndex=(this.focusedOptionIndex%i+i)%i:this.focusedOptionIndex=Math.max(0,Math.min(this.focusedOptionIndex,i-1)),e[this.focusedOptionIndex].focus(),t.preventDefault()}handleFocus(){const t=this.availableOptions;t.length!==0&&t[this.focusedOptionIndex]?.focus()}render(){const t=this.slots.hasLabelSlot||!!this.label,e=this.slots.hasHintSlot||!!this.hint,i={"awc-checkbox-group__label":!0,"awc-checkbox-group__label--hidden":!t},o={"awc-checkbox-group__hint":!0,"awc-checkbox-group__hint--hidden":!e},a=!!this.error,n=this.showError&&!!this.validationMessage,d=a||n;let l="";a?l=this.error:n&&(l=this.validationMessage);const h=d&&!!l,p=Ae([e&&this.slots.hintId,h&&this.errorId]);return f`<div part="base" class="awc-checkbox-group" role="group" aria-labelledby="${D(t?this.slots.labelId:void 0)}" aria-describedby="${D(p)}" aria-invalid="${h?"true":"false"}" .value="${Ye(this.value)}"><legend part="label" class="${G(i)}" id="${this.slots.labelId}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}">${this.label}</slot></legend><div part="options" class="awc-checkbox-group__options" @awc-checkbox-change="${this._handleCheckboxItem}"><slot></slot></div><span part="helper-text" class="${G(o)}" id="${this.slots.hintId}"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span>${h?f`<span part="error-message" class="awc-checkbox-group__error" id="${this.errorId}">${l}</span>`:""}</div>`}},s.AwcCheckboxGroup.formControlValidators=[fi,mo],s.AwcCheckboxGroup.styles=[Lp],ue([c({type:Array,reflect:!0})],s.AwcCheckboxGroup.prototype,"value",2),ue([c({attribute:!1})],s.AwcCheckboxGroup.prototype,"checkedNames",1),ue([c({type:String,reflect:!0})],s.AwcCheckboxGroup.prototype,"name",2),ue([c({type:String,reflect:!0})],s.AwcCheckboxGroup.prototype,"label",2),ue([c({type:String,reflect:!0})],s.AwcCheckboxGroup.prototype,"hint",2),ue([c({type:Boolean,reflect:!0})],s.AwcCheckboxGroup.prototype,"horizontal",2),ue([c({type:Boolean,reflect:!0})],s.AwcCheckboxGroup.prototype,"required",2),ue([c({type:String,reflect:!0,attribute:"error",useDefault:!0})],s.AwcCheckboxGroup.prototype,"error",2),ue([M()],s.AwcCheckboxGroup.prototype,"validationMessage",2),ue([F("awc-checkbox-group-change")],s.AwcCheckboxGroup.prototype,"_onChange",2),s.AwcCheckboxGroup=ue([I(yo)],s.AwcCheckboxGroup);const Mp=P`:host{display:inline-block;--awc-switcher-width:var(--awc-switcher-width-regular);--awc-switcher-height:var(--awc-switcher-height-regular);--awc-switcher-roller:var(--awc-switcher-roller-regular);--awc-switcher-roller-move:var(--awc-switcher-roller-move-regular);--awc-switcher-background:var(--colors-stroke);--awc-switcher-background-hover:var(--colors-stroke-hover);--awc-switcher-background-checked:var(
17      --awc-switcher-custom-color,
18      var(--colors-primary)
19    );--awc-switcher-background-checked-hover:var(--colors-link-hover);--awc-switcher-label-color:var(--colors-text);--awc-switcher-width-regular:35px;--awc-switcher-height-regular:20px;--awc-switcher-width-small:28px;--awc-switcher-height-small:16px;--awc-switcher-roller-regular:14px;--awc-switcher-roller-small:12px;--awc-switcher-roller-move-regular:3px;--awc-switcher-roller-move-small:2px}:host([size=small]){--awc-switcher-width:var(--awc-switcher-width-small);--awc-switcher-height:var(--awc-switcher-height-small);--awc-switcher-roller:var(--awc-switcher-roller-small);--awc-switcher-roller-move:var(--awc-switcher-roller-move-small)}.awc-switcher__label{cursor:pointer;display:inline-flex;align-items:center;gap:12px;color:var(--awc-switcher-label-color);font:var(--awc-font-text-regular-13)}.awc-switcher__hint{display:block;margin-top:var(--spacing-s);color:var(--colors-secondary);font:var(--awc-font-caption-1-regular);overflow-wrap:anywhere}.awc-switch{position:relative;cursor:pointer;width:var(--awc-switcher-width);height:var(--awc-switcher-height);background-color:var(--awc-switcher-background);
19display:flex;align-items:center;border-radius:var(--corner-radius-circular);transition:background-color var(--awc-duration-slow,.3s) ease-in-out,filter var(--awc-duration-slow,.3s) ease-in-out}.awc-switch:focus-visible{outline:1px solid var(--colors-secondary)}:host([variant=gray][checked]) .awc-switch{background-color:#929bb6}:host([variant=gray][checked]:hover) .awc-switch{background-color:#929bb6;opacity:.9}:host([variant=white]) .awc-switch{border:1px solid transparent}:host([variant=white][checked]) .awc-switch{background-color:var(--colors-white);border:1px solid #929bb6}:host([variant=white][checked]:hover) .awc-switch{background-color:var(--colors-white);opacity:.9}:host([variant=white][checked]) .awc-switch::before{background-color:#929bb6}.awc-switch::before{content:"";position:relative;left:var(--awc-switcher-roller-move);width:var(--awc-switcher-roller);height:var(--awc-switcher-roller);background-color:var(--colors-white);border-radius:var(--corner-radius-circular);transition:transform var(--awc-duration-slow,.3s) ease}:host([checked]) .awc-switch::before{transform:translateX(100%)}:host(:hover) .awc-switch{background-color:var(--awc-switcher-background-hover)}:host([checked]) .awc-switch{background-color:var(--awc-switcher-background-checked)}:host([checked]) .awc-switch::after{transform:translateX(100%)}:host([checked]:hover) .awc-switch{background-color:var(--awc-switcher-background-checked-hover)}:host([checked][custom-color]:hover) .awc-switch{background-color:var(--awc-switcher-custom-color);filter:brightness(95%)}:host([disabled]){opacity:.5;cursor:not-allowed;pointer-events:none}.awc-switcher__hint--hidden,.awc-switcher__label-text--hidden{display:none}`;var Pp=Object.defineProperty,Dp=Object.getOwnPropertyDescriptor,ke=(r,t,e,i)=>{for(var o=i>1?void 0:i?Dp(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Pp(t,e,o),o};const Bp="awc-switcher";s.AwcSwitcher=class extends te(C){constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.variant="primary",this.size="regular",this.slots=new he(this,"awc-switcher"),this._defaults=new Ce(this,{checked:()=>this.checked})}_onChange(){this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}_handleToggle(){this.disabled||(this.checked=!this.checked,this._onToggle(this.checked),this._onChange())}_handleKeyDown(t){(t.code==="Enter"||t.code==="Space")&&(this._handleToggle(),t.preventDefault())}_settingCustomColor(){this.customColor&&this.style.setProperty("--awc-switcher-custom-color",this.customColor)}resetFormControl(){this.checked=this._defaults.get("checked")}shouldFormValueUpdate(){return this.checked}updated(t){super.updated(t),(t.has("checked")||t.has("value"))&&this.setValue(this.value),t.has("customColor")&&this._settingCustomColor()}render(){const t=this.slots.hasLabelSlot||this.slots.hasDefaultSlot,e=this.slots.hasHintSlot||!!this.hint,i=e?this.slots.hintId:void 0,o={"awc-switcher__label-text":!0,"awc-switcher__label-text--hidden":!t},a={"awc-switcher__hint":!0,"awc-switcher__hint--hidden":!e};return f`<label part="base" class="awc-switcher__label" id="${this.slots.labelId}" @click="${this._handleToggle}"><span part="control" class="awc-switch" role="switch" ?checked="${this.checked}" aria-readonly="${!!this.disabled}" aria-describedby="${D(i)}" @keydown="${this._handleKeyDown}" tabindex="0"><div class="awc-switch__focus"></div></span><span part="label" class="${G(o)}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}"><slot @slotchange="${this.slots.onDefaultSlotChange}"></slot></slot></span></label> <span part="helper-text" class="${G(a)}" id="${this.slots.hintId}"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span>`}},s.AwcSwitcher.styles=[Mp],ke([c({type:Boolean,reflect:!0})],s.AwcSwitcher.prototype,"checked",2),ke([c({type:Boolean,reflect:!0})],s.AwcSwitcher.prototype,"disabled",2),ke([c({type:String,reflect:!0})],s.AwcSwitcher.prototype,"name",2),ke([c({type:String,reflect:!0})],s.AwcSwitcher.prototype,"value",2),ke([c({type:String,reflect:!0})],s.AwcSwitcher.prototype,"variant",2),ke([c({type:String,reflect:!0})],s.AwcSwitcher.prototype,"size",2),ke([c({reflect:!0,attribute:"custom-color"})],s.AwcSwitcher.prototype,"customColor",2),ke([c({type:String,reflect:!0})],s.AwcSwitcher.prototype,"hint",2),ke([F("awc-switcher-toggle")],s.AwcSwitcher.prototype,"_onToggle",2),s.AwcSwitcher=ke([I(Bp)],s.AwcSwitcher);const Vp=P`:host{width:100%;--spacing-none:0;--awc-divider-background:var(--colors-stroke);--awc-divider-text-color:var(--colors-secondary)}
19.awc-divider{position:relative;padding:var(--awc-divider-spacing) 0;text-align:center;color:var(--awc-divider-text-color)}.awc-divider__line{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background-color:var(--awc-divider-background)}.awc-divider__text::before{content:"";top:50%;left:0;height:1px;width:100%;background-color:var(--awc-divider-background)}.awc-divider__text{display:flex;align-items:center;justify-content:center;text-align:center;gap:11px;font:var(--awc-font-caption-1-regular);position:relative;white-space:nowrap}.awc-divider__text::after{content:"";top:50%;right:0;height:1px;width:100%;background-color:var(--awc-divider-background)}:host([orientation=vertical]){display:inline-flex;width:auto;align-self:stretch}:host([orientation=vertical]) .awc-divider{padding:0 var(--awc-divider-spacing);height:100%;display:flex;align-items:stretch}:host([orientation=vertical]) .awc-divider__line{position:static;width:1px;height:auto;min-height:100%;align-self:stretch;left:auto;right:auto;top:auto}`;var Hp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,Co=(r,t,e,i)=>{for(var o=i>1?void 0:i?Rp(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Hp(t,e,o),o};s.AwcDivider=class extends C{constructor(){super(...arguments),this.spacing="l",this.orientation="horizontal"}render(){const t=this.orientation==="vertical",e=!t&&!!this.label;return f`<div part="base" class="awc-divider" role="separator" aria-orientation="${t?"vertical":"horizontal"}" aria-labelledby="${D(e?"awc-divider-label":void 0)}" style="--awc-divider-spacing:var(--spacing-${this.spacing})">
19${e?f`<span part="label" id="awc-divider-label" class="awc-divider__text">${this.label}</span>`:f`<div part="line" class="awc-divider__line"></div>`}</div>`}},s.AwcDivider.styles=[Vp],Co([c({type:String,reflect:!0})],s.AwcDivider.prototype,"label",2),Co([c({type:String,reflect:!0})],s.AwcDivider.prototype,"spacing",2),Co([c({type:String,reflect:!0})],s.AwcDivider.prototype,"orientation",2),s.AwcDivider=Co([I("awc-divider")],s.AwcDivider);const zp=P`:host{--extra-small:24px;--small:36px;--medium:40px;--large:48px;--awc-input-background-color:var(--colors-input-background);--awc-input-background-hover-color:var(--colors-stroke);--awc-input-background-focus-color:var(--colors-base-surface);--awc-input-label-color:var(--colors-titles);--awc-input-text-color:var(--colors-text);--awc-input-placeholder-color:var(--colors-secondary);--awc-input-border-focus-color:var(--colors-secondary);--awc-input-counter-background:var(--colors-base-surface)}.awc-input__main{width:100%;display:flex;flex-direction:column}.awc-input__wrapper{display:flex;justify-content:space-between;align-items:center}.awc-input__slot ::slotted(*){padding-left:var(--spacing-s)}.awc-input__container{display:flex;flex-direction:column;width:100%;position:relative}.awc-input{box-sizing:border-box;position:relative;padding:10px 12px;max-width:100%;font:var(--awc-font-text-regular-14);color:var(--awc-input-text-color);background-color:var(--awc-input-background-color);border:none;border-radius:var(--corner-radius-m);outline:1px solid transparent;outline-offset:-1px;transition:outline-color var(--awc-duration-base,.25s) ease-out,background-color var(--awc-duration-base,.25s) ease,border-color var(--awc-duration-base,.25s) ease}:host([size=extra-small]) .awc-input{height:var(--extra-small);font-size:13px;line-height:16px;padding:0 8px}:host([size=small]) .awc-input{height:var(--small)}:host([size=medium]) .awc-input{height:var(--medium)}:host([size=large]) .awc-input{height:var(--large)}.awc-input::placeholder{color:var(--awc-input-placeholder-color)}.awc-input:hover{background:var(--awc-input-background-hover-color)}.awc-input:focus{outline:1px solid var(--awc-input-border-focus-color);background-color:var(--awc-input-background-focus-color)}.awc-input__label{max-width:max-content;display:inline-block;padding:0;margin-bottom:var(--spacing-s);font:var(--awc-font-text-medium-13);color:var(--awc-input-label-color)}:host([required]) .awc-input__label::after{content:"*";color:var(--colors-warning);margin-left:4px}:host([disabled]) .awc-input{opacity:.5;cursor:not-allowed}:host([readonly]) .awc-input{cursor:not-allowed}.awc-input__password{display:flex;position:absolute;border:none;padding:0;right:10px;top:50%;transform:translateY(-50%);background:0 0;cursor:pointer}.awc-input.has-padding-icon{padding:0 50px 0 12px}.awc-input__progress{display:flex;align-items:stretch;justify-content:flex-end;width:22px;height:22px;border-radius:var(--corner-radius-circular);position:absolute;border:none;padding:0;right:14px;top:50%;transform:translateY(-50%);transition:background var(--awc-duration-slow,.3s) ease;background:conic-gradient(var(--colors-primary) var(--progress),var(--colors-stroke) 0deg)}.awc-input__progress.awc-input__progress--percent{background:conic-gradient(var(--colors-secondary) var(--progress),var(--colors-stroke) 0deg)}.awc-input__progress::before{content:attr(length);display:flex;justify-content:center;flex-direction:column;align-items:center;border-radius:50%;background-color:var(--awc-input-counter-background);margin:3px;width:100%}.awc-input__progress.awc-input__progress--length-warning{background:var(--colors-warning)}.awc-input__progress--length-warning.awc-input__progress::before{background:0 0;color:var(--colors-white);font:var(--awc-font-caption-3-regular);letter-spacing:-.5px}.awc-input__progress--length-warning.awc-input__progress--small-font.awc-input__progress::before{font-size:8px}.awc-input__arrows{display:flex;flex-direction:column;align-items:center;justify-content:space-between;position:absolute;border:none;padding:0;right:10px;top:50%;transform:translateY(-50%)}.awc-input__arrow--down,.awc-input__arrow--up{cursor:pointer;display:flex;align-items:center;justify-content:center}.awc-input__arrow--down svg,.awc-input__arrow--up svg{transition:color var(--awc-duration-slow,.3s) ease;color:var(--colors-secondary)}.awc-input__arrow--down:hover svg,.awc-input__arrow--up:hover svg{color:var(--colors-dark-violet)}.awc-input__arrow--up{transform:rotate(270deg)}.awc-input__arrow--down{transform:rotate(90deg)}.awc-input__arrow--down.awc-input__arrow--disabled,.awc-input__arrow--up.awc-input__arrow--disabled{opacity:.5;pointer-events:none}.awc-input__hint{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-secondary);overflow-wrap:anywhere}.awc-input__error{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-warning);overflow-wrap:anywhere}.awc-input.awc-input--error{outline:1px solid var(--colors-warning);background-color:var(--awc-input-background-focus-color)}:host([static-error][custom-error][required]) .awc-input{outline:1px solid var(--colors-warning)}.awc-input[type=search]::-webkit-search-cancel-button,.awc-input[type=search]::-webkit-search-decoration,.awc-input[type=search]::-webkit-search-results-button,.awc-input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.awc-input[type=number]::-webkit-inner-spin-button,.awc-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.awc-input[type=number]{-moz-appearance:textfield;padding-right:30px}.awc-input__search{display:inline-flex;position:absolute;border:none;right:14px;top:50%;transform:translateY(-50%)}.awc-input__icon-end,.awc-input__icon-start{display:inline-flex;align-items:center;position:absolute;top:50%;transform:translateY(-50%);z-index:1;pointer-events:none}
19.awc-input__icon-start{left:12px}.awc-input__icon-end{right:12px}.awc-input.has-icon-start{padding-left:36px}.awc-input.has-icon-end{padding-right:36px}:host([size=extra-small]) .awc-input.has-icon-start{padding-left:28px}:host([size=extra-small]) .awc-input.has-icon-end{padding-right:28px}:host([size=extra-small]) .awc-input__icon-start{left:8px}:host([size=extra-small]) .awc-input__icon-end{right:8px}.awc-input__hint--hidden,.awc-input__label--hidden{display:none}`;var Fp=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,tt=(r,t,e,i)=>{for(var o=i>1?void 0:i?Np(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Fp(t,e,o),o};const jp="awc-input";s.AwcInput=class extends te(C){constructor(){super(...arguments),this.value="",this.type="text",this.size="medium",this.autocomplete="off",this.autofocus=!1,this.required=!1,this.disabled=!1,this.readonly=!1,this.staticError=!1,this.error="",this.validationMessage="",this._hasIconStart=!1,this._hasIconEnd=!1,this.inputId=St("awc-input"),this.errorId=St("awc-input-error"),this.slots=new he(this,"awc-input"),this._defaults=new Ce(this,{value:()=>this.value})}validityCallback(){return this.validationTarget?.validationMessage}validationMessageCallback(t){this.customError&&!this.staticError?(this.validationMessage=t,this.validationMessage=this.customError):this.validationMessage=t}resetFormControl(){const t=this._defaults.get("value");this.value=t,this.validationTarget&&(this.validationTarget.value=t)}_changeVisibilityPassword(){if(this.input&&this._passwordButton){this.input.type=this.input.type==="password"?"text":"password";const t=this.input.type==="password"?'<path fill-rule="evenodd" clip-rule="evenodd" d="M1.88016 4.52534C1.61801 4.03924 1.01143 3.85769 0.525328 4.11984C0.0392261 4.382 -0.142322 4.98858 0.119829 5.47468C0.460909 6.10714 0.886046 6.69103 1.38093 7.21455C1.35044 7.23864 1.32104 7.26476 1.29289 7.2929L0.292888 8.2929C-0.097636 8.68343 -0.097636 9.31659 0.292888 9.70712C0.683413 10.0976 1.31658 10.0976 1.7071 9.70712L2.7071 8.70712C2.77745 8.63677 2.83512 8.55856 2.88012 8.47531C3.49551 8.88444 4.16892 9.22105 4.8856 9.47295L4.51941 11.3039C4.4111 11.8455 4.76232 12.3723 5.30388 12.4806C5.84544 12.5889 6.37226 12.2377 6.48058 11.6961L6.83405 9.92873C7.21597 9.97577 7.6052 10 7.99999 10C8.39479 10 8.78401 9.97577 9.16594 9.92873L9.51941 11.6961C9.62773 12.2377 10.1546 12.5889 10.6961 12.4806C11.2377 12.3723 11.5889 11.8455 11.4806 11.3039L11.1144 9.47295C11.8311 9.22105 12.5045 8.88444 13.1199 8.47531C13.1649 8.55856 13.2225 8.63677 13.2929 8.70712L14.2929 9.70712C14.6834 10.0976 15.3166 10.0976 15.7071 9.70712C16.0976 9.31659 16.0976 8.68343 15.7071 8.2929L14.7071 7.2929C14.679 7.26476 14.6495 7.23864 14.6191 7.21455C15.1139 6.69103 15.5391 6.10714 15.8802 5.47468C16.1423 4.98858 15.9608 4.382 15.4747 4.11984C14.9886 3.85769 14.382 4.03924 14.1198 4.52534C13.0235 6.55825 10.7156 8.00001 7.99999 8.00001C5.2844 8.00001 2.97649 6.55825 1.88016 4.52534Z" fill="#919BB6"/>':'<path fill-rule="evenodd" clip-rule="evenodd" d="M0.0827055 8.39823L0.0783361 8.388C0.0249487 8.26125 -0.00032161 8.12958 -0.000259399 8.00001C-0.000324169 7.87043 0.0249465 7.73876 0.0783366 7.612L0.0827063 7.60177C1.48797 4.34653 4.46036 2 8 2C11.5396 2 14.5119 4.34645 15.9172 7.60162L15.9217 7.612C15.975 7.73875 16.0003 7.87042 16.0003 8C16.0003 8.12958 15.975 8.26125 15.9217 8.388L15.9172 8.39838C14.5119 11.6536 11.5396 14 8 14C4.46036 14 1.48797 11.6535 0.0827055 8.39823ZM8 4C10.4635 4 12.6941 5.55711 13.8989 8C12.6941 10.4429 10.4635 12 8 12C5.53648 12 3.30588 10.4429 2.10113 8C3.30588 5.55711 5.53648 4 8 4ZM8.99999 8C8.99999 8.55228 8.55228 9 7.99999 9C7.44771 9 6.99999 8.55228 6.99999 8C6.99999 7.44772 7.44771 7 7.99999 7C8.55228 7 8.99999 7.44772 8.99999 8ZM11 8C11 9.65685 9.65685 11 7.99999 11C6.34314 11 4.99999 9.65685 4.99999 8C4.99999 6.34315 6.34314 5 7.99999 5C9.65685 5 11 6.34315 11 8Z" fill="#919BB6"/>';this._passwordButton.innerHTML=`
20        <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
21          ${t}
22        </svg>
23      `}}_updateCharacterLimit(){if(this.input&&this._progressBar&&this.maxlength!==void 0){const t=this.maxlength,e=this.value.length,i=e/t*360;if(e*100/t>70?this._progressBar.classList.add("awc-input__progress--percent"):this._progressBar.classList.remove("awc-input__progress--percent"),this._progressBar.style.setProperty("--progress",`${i}deg`),t<e){const a=t-e;this._progressBar.setAttribute("length",`${a}`),this._progressBar.classList.add("awc-input__progress--length-warning"),a<-99?this._progressBar.classList.add("awc-input__progress--small-font"):this._progressBar.classList.remove("awc-input__progress--small-font")}else this._progressBar.removeAttribute("length"),this._progressBar.classList.remove("awc-input__progress--length-warning")}}_paddingInputIcon(){(this.input&&this._passwordButton||this.input&&this._progressBar)&&this.input.classList.add("has-padding-icon")}_onIconSlotChange(){this._hasIconStart=this._iconStartNodes?.length>0,this._hasIconEnd=this._iconEndNodes?.length>0}_onKeyDown(t){if(t.code==="Enter"&&this.form){t.preventDefault();const e=this.form.querySelector("awc-button[type='submit']");if(e&&!e.disabled&&!e.loading){Pl(this.form);return}const i=this.form.querySelector("button[type='submit']");if(i&&!i.disabled){setTimeout(()=>i.click());return}}}_onInput(t){this.value=t.target.value}_onChange(t){this.value=t.target.value,this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}_onInvalid(t){t.preventDefault(),this.input.focus()}_renderPasswordButton(){return f`<awc-toolbar-button @click="${this._changeVisibilityPassword}" class="awc-input__password">
23<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.88016 4.52534C1.61801 4.03924 1.01143 3.85769 0.525328 4.11984C0.0392261 4.382 -0.142322 4.98858 0.119829 5.47468C0.460909 6.10714 0.886046 6.69103 1.38093 7.21455C1.35044 7.23864 1.32104 7.26476 1.29289 7.2929L0.292888 8.2929C-0.097636 8.68343 -0.097636 9.31659 0.292888 9.70712C0.683413 10.0976 1.31658 10.0976 1.7071 9.70712L2.7071 8.70712C2.77745 8.63677 2.83512 8.55856 2.88012 8.47531C3.49551 8.88444 4.16892 9.22105 4.8856 9.47295L4.51941 11.3039C4.4111 11.8455 4.76232 12.3723 5.30388 12.4806C5.84544 12.5889 6.37226 12.2377 6.48058 11.6961L6.83405 9.92873C7.21597 9.97577 7.6052 10 7.99999 10C8.39479 10 8.78401 9.97577 9.16594 9.92873L9.51941 11.6961C9.62773 12.2377 10.1546 12.5889 10.6961 12.4806C11.2377 12.3723 11.5889 11.8455 11.4806 11.3039L11.1144 9.47295C11.8311 9.22105 12.5045 8.88444 13.1199 8.47531C13.1649 8.55856 13.2225 8.63677 13.2929 8.70712L14.2929 9.70712C14.6834 10.0976 15.3166 10.0976 15.7071 9.70712C16.0976 9.31659 16.0976 8.68343 15.7071 8.2929L14.7071 7.2929C14.679 7.26476 14.6495 7.23864 14.6191 7.21455C15.1139 6.69103 15.5391 6.10714 15.8802 5.47468C16.1423 4.98858 15.9608 4.382 15.4747 4.11984C14.9886 3.85769 14.382 4.03924 14.1198 4.52534C13.0235 6.55825 10.7156 8.00001 7.99999 8.00001C5.2844 8.00001 2.97649 6.55825 1.88016 4.52534Z" fill="#919BB6"/></svg></awc-toolbar-button>`}_renderIncrementArrowButtons(){const t=this.disabled;return f`<div class="awc-input__arrows"><div @click="${t?A:this._increaseCounterValue}" class="${G({"awc-input__arrow--up":!0,"awc-input__arrow--disabled":t})}"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.29289 11.7071C5.90237 11.3166 5.90237 10.6834 6.29289 10.2929L8.58579 8L6.29289 5.70711C5.90237 5.31658 5.90237 4.68342 6.29289 4.29289C6.68342 3.90237 7.31658 3.90237 7.70711 4.29289L10.7071 7.29289L11.4142 8L10.7071 8.70711L7.70711 11.7071C7.31658 12.0976 6.68342 12.0976 6.29289 11.7071Z" fill="currentColor"/></svg></div><div @click="${t?A:this._decreaseCounterValue}" class="${G({"awc-input__arrow--down":!0,"awc-input__arrow--disabled":t})}"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.29289 11.7071C5.90237 11.3166 5.90237 10.6834 6.29289 10.2929L8.58579 8L6.29289 5.70711C5.90237 5.31658 5.90237 4.68342 6.29289 4.29289C6.68342 3.90237 7.31658 3.90237 7.70711 4.29289L10.7071 7.29289L11.4142 8L10.7071 8.70711L7.70711 11.7071C7.31658 12.0976 6.68342 12.0976 6.29289 11.7071Z" fill="currentColor"/></svg></div></div>`}_increaseCounterValue(){let t=parseFloat(this.value);isNaN(t)&&(t=this.min??0);const e=this.step||1,i=this.max!==void 0?this.max:1/0;let o=t+e;o>i&&(o=i),this.value=o.toString(),this.dispatchEvent(new InputEvent("input",{composed:!0,bubbles:!0})),this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}_decreaseCounterValue(){let t=parseFloat(this.value);isNaN(t)&&(t=this.max??0);const e=this.step||1,i=this.min!==void 0?this.min:-1/0;let o=t-e;o<i&&(o=i),this.value=o.toString(),this.dispatchEvent(new InputEvent("input",{composed:!0,bubbles:!0})),this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}_renderSearchIcon(){return f`<div class="awc-input__search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity="0.7"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 7C12 9.76142 9.76142 12 7 12C4.23858 12 2 9.76142 2 7C2 4.23858 4.23858 2 7 2C9.76142 2 12 4.23858 12 7ZM12.6064 11.1922C13.4816 10.0236 14 8.57234 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14C8.57234 14 10.0236 13.4816 11.1922 12.6064L14.2929 15.7071C14.6834 16.0976 15.3166 16.0976 15.7071 15.7071C16.0976 15.3166 16.0976 14.6834 15.7071 14.2929L12.6064 11.1922Z" fill="#919BB6"/></g></svg></div>`}focus(){this.input.focus()}blur(){this.input.blur()}select(){this.input.select()}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this._onInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._onInvalid)}firstUpdated(){this.autofocus&&requestAnimationFrame(()=>this.input.focus())}updated(t){super.updated(t),t.has("value")&&this.setValue(this.value),t.has("value")&&this.maxlength&&this._updateCharacterLimit(),(this.t
23ype==="password"||this.maxlength)&&this._paddingInputIcon(),wi(this,t,()=>this.value)}setCustomValidity(t){this.error=t}render(){const t=!!this.error,e=this.staticError&&this.required,i=this.showError&&!!this.validationMessage,o=t||e||i;let a="";t?a=this.error:i?a=this.validationMessage:e&&(a=this.customError||this.validationMessage);const n=o&&!!a,d=this.slots.hasLabelSlot||!!this.label,l=this.slots.hasHintSlot||!!this.hint,h=Ae([l&&this.slots.hintId,n&&this.errorId]),p={"awc-input":!0,[this.size]:!0,"awc-input--error":o,"has-icon-start":this._hasIconStart,"has-icon-end":this._hasIconEnd},w={"awc-input__label":!0,"awc-input__label--hidden":!d},g={"awc-input__hint":!0,"awc-input__hint--hidden":!l},v=this.type==="password"?this._renderPasswordButton():"",m=this.maxlength&&!v?f`<div class="awc-input__progress"></div>`:"",b=this.type==="number"?this._renderIncrementArrowButtons():"",k=this.type==="search"&&!this._hasIconEnd?this._renderSearchIcon():"";return f`<div part="base" class="awc-input__main"><label for="${this.inputId}" id="${this.slots.labelId}" part="label" class="${G(w)}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}">${this.label}</slot></label><div class="awc-input__wrapper"><div part="control" class="awc-input__container"><span part="icon-start" class="awc-input__icon-start"><slot name="icon-start" @slotchange="${this._onIconSlotChange}"></slot></span><input part="input" class="${G(p)}" id="${this.inputId}" type="${this.type}" .value="${Ye(this.value)}" placeholder="${this.placeholder}" maxlength="${D(this.maxlength)}" minlength="${D(this.minlength)}" min="${D(this.min)}" max="${D(this.max)}" pattern="${D(this.pattern)}" step="${D(this.step)}" autocomplete="${D(this.autocomplete)}" aria-describedby="${D(h)}" aria-invalid="${n?"true":"false"}" ?required="${this.required}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @change="${this._onChange}" @input="${this._onInput}" @keypress="${this._onKeyDown}"> ${v} ${m} ${b} ${k} <span part="icon-end" class="awc-input__icon-end"><slot name="icon-end" @slotchange="${this._onIconSlotChange}"></slot></span></div><div class="awc-input__slot"><slot></slot></div></div><span class="${G(g)}" id="${this.slots.hintId}" part="helper-text"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span>${n?f`<span part="error-message" class="awc-input__error" id="${this.errorId}">${a}</span>`:""}</div>`}},s.AwcInput.formControlValidators=Tl,s.AwcInput.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcInput.styles=[zp],tt([c({type:String,reflect:!0})],s.AwcInput.prototype,"label",2),tt([c({reflect:!0})],s.AwcInput.prototype,"value",2),tt([c({type:String,reflect:!0})],s.AwcInput.prototype,"placeholder",2),tt([c({type:String,reflect:!0})],s.AwcInput.prototype,"name",2),tt([c({type:String,reflect:!0})],s.AwcInput.prototype,"hint",2),tt([c({reflect:!0})],s.AwcInput.prototype,"type",2),tt([c({type:String,reflect:!0})],s.AwcInput.prototype,"size",2),tt([c({type:Number,reflect:!0})],s.AwcInput.prototype,"maxlength",2),tt([c({type:Number,reflect:!0})],s.AwcInput.prototype,"minlength",2),tt([c({type:Number,reflect:!0})],s.AwcInput.prototype,"min",2),tt([c({type:Number,reflect:!0})],s.AwcInput.prototype,"max",2),tt([c({type:Number,reflect:!0})],s.AwcInput.prototype,"step",2),tt([c({type:String,reflect:!0})],s.AwcInput.prototype,"pattern",2),tt([c({type:String,reflect:!0})],s.AwcInput.prototype,"autocomplete",2),tt([c({type:Boolean})],s.AwcInput.prototype,"autofocus",2),tt([c({type:Boolean,reflect:!0})],s.AwcInput.prototype,"required",2),tt([c({type:Boolean,reflect:!0})],s.AwcInput.prototype,"disabled",2),tt([c({type:Boolean,reflect:!0})],s.AwcInput.prototype,"readonly",2),tt([c({type:Boolean,reflect:!0,attribute:"static-error"})],s.AwcInput.prototype,"staticError",2),tt([c({reflect:!0,attribute:"custom-error"})],s.AwcInput.prototype,"customError",2),tt([c({type:String,reflect:!0,attribute:"error",useDefault:!0})],s.AwcInput.prototype,"error",2),tt([M()],s.AwcInput.prototype,"validationMessage",2),tt([H("input")],s.AwcInput.prototype,"validationTarget",2),tt([H(".awc-input")],s.AwcInput.prototype,"input",2),tt([H(".awc-input__password")],s.AwcInput.prototype,"_passwordButton",2),tt([H(".awc-input__progress")],s.AwcInput.prototype,"_progressBar",2),tt([Wn({slot:"icon-start",flatten:!0})],s.AwcInput.prototype,"_iconStartNodes",2),tt([Wn({slot:"icon-end",flatten:!0})],s.AwcInput.prototype,"_iconEndNodes",2),tt([M()],s.AwcInput.prototype,"_hasIconStart",2),tt([M()],s.AwcInput.prototype,"_hasIconEnd",2),s.AwcInput=tt([I(jp)],s.AwcInput);const Up=P`:host{display:block;--awc-textarea-background-color:var(--colors-input-background);--awc-textarea-background-hover-color:var(--colors-stroke);--awc-textarea-background-focus-color:var(--colors-base-surface);--awc-textarea-label-color:var(--colors-titles);--awc-textarea-text-color:var(--colors-text);--awc-textarea-placeholder-color:var(--colors-secondary);--awc-textarea-border-focus-color:var(--colors-secondary)}.awc-textarea-container{display:flex;gap:var(--spacing-s);flex-direction:column}.awc-textarea__label{font:var(--awc-font-text-medium-13);color:var(--awc-textarea-label-color)}.awc-textarea__required{color:var(--colors-warning);margin-left:4px}.awc-textarea__hint{display:block;font:var(--awc-font-caption-1-regular);color:var(--colors-secondary);overflow-wrap:anywhere}:host([disabled]) .awc-textarea{opacity:.5;cursor:not-allowed}.awc-textarea{width:100%;padding:10px 12px;resize:none;overflow:auto;border:none;background-color:var(--awc-textarea-background-color);color:var(--awc-textarea-text-color);font:var(--awc-font-text-regular-14);outline:1px solid transparent;outline-offset:-1px;border-radius:var(--corner-radius-m);transition:background-color var(--awc-duration-slow,.3s) ease-out,outline-color var(--awc-duration-slow,.3s) ease-out}.awc-textarea::placeholder{color:var(--colors-secondary)}.awc-textarea:hover{background-color:var(--awc-textarea-background-hover-color);transition:background-color var(--awc-duration-slow,.3s) ease}.awc-textarea-wrapper{display:flex;position:relative}.awc-textarea:focus{border:none;background-color:var(--awc-textarea-background-focus-color);outline:1px solid var(--awc-textarea-border-focus-color);transition:background-color var(--awc-duration-slow,.3s) ease-out,outline var(--awc-duration-slow,.3s) ease-out}.awc-textarea.awc-textarea--error{outline:1px solid var(--colors-warning);background-color:var(--awc-textarea-background-focus-theme)}.awc-textarea__error{display:block;font:var(--awc-font-caption-1-regular);color:var(--colors-warning);overflow-wrap:anywhere}:host([resize]) .awc-textarea{resize:both}.awc-textarea__hint--hidden,.awc-textarea__label--hidden{display:none}`;var Zp=Object.defineProperty,Wp=Object.getOwnPropertyDescriptor,mt=(r,t,e,i)=>{for(var o=i>1?void 0:i?Wp(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Zp(t,e,o),o};const Gp="awc-textarea";s.AwcTextarea=class extends te(C){constructor(){super(...arguments),this.value="",this.required=!1,this.staticError=!1,this.customError="",this.error="",this.autofocus=!1,this.readonly=!1,this.disabled=!1,this.resize=!1,this.autoheight=!1,this.autocomplete="off",this.rows=4,this.cols=50,this.validationMessage="",this.textAreaId=St("awc-textarea"),this.errorId=St("awc-textarea-error"),this.slots=new he(this,"awc-textarea"),this._defaults=new Ce(this,{value:()=>this.value})}_handleInput(){this._autoHeightTextArea(this.textarea),this.value=this.textarea.value,this._onInput.bind(this)}resetFormControl(){const t=this._defaults.get("value");this.value=t,this.textarea&&(this.textarea.value=t)}validityCallback(){return this.validationTarget?.validationMessage}validationMessageCallback(t){this.customError&&!this.staticError?(this.validationMessage=t,this.validationMessage=this.customError):this.validationMessage=t}
23_onInvalid(t){t.preventDefault(),this.validationTarget.focus()}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this._onInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._onInvalid)}_autoHeightTextArea(t){this.autoheight&&!this.resize&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`)}_onInput(t){this.value=t.target.value}_onChange(t){this.value=t.target.value,this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}updated(t){super.updated(t),t.has("value")&&(this.setValue(this.value),this.textarea.value=this.value),t.has("autofocus")&&this.autofocus&&!t.get("autofocus")&&this.textarea?.focus(),wi(this,t,()=>this.value)}firstUpdated(){this.textarea.value=this.value,this._autoHeightTextArea(this.textarea),this.autofocus&&this.textarea?.focus()}select(){this.textarea.select()}focus(){this.textarea?.focus()}setCustomValidity(t){this.error=t}render(){const t=!!this.error,e=this.staticError&&this.required,i=this.showError&&!!this.validationMessage,o=t||e||i;let a="";t?a=this.error:i?a=this.validationMessage:e&&(a=this.customError||this.validationMessage);const n=o&&!!a,d=this.slots.hasLabelSlot||!!this.label,l=this.slots.hasHintSlot||!!this.hint,h=Ae([l&&this.slots.hintId,n&&this.errorId]),p={"awc-textarea":!0,"awc-textarea--error":o},w={"awc-textarea__label":!0,"awc-textarea__label--hidden":!d},g={"awc-textarea__hint":!0,"awc-textarea__hint--hidden":!l};return f`<div part="base" class="awc-textarea-container"><label for="${this.textAreaId}" id="${this.slots.labelId}" part="label" class="${G(w)}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}">${this.label}</slot>${this.required?f`<span class="awc-textarea__required">*</span>`:""}</label><div part="control" class="awc-textarea-wrapper"><textarea part="input" class="${G(p)}" id="${this.textAreaId}" name="${D(this.name)}" placeholder="${D(this.placeholder)}" .value="${Ye(this.value)}" rows="${D(this.rows)}" cols="${D(this.cols)}" autocomplete="${D(this.autocomplete)}" aria-describedby="${D(h)}" aria-invalid="${n?"true":"false"}" ?autoheight="${this.autoheight}" ?resize="${this.resize}" ?autofocus="${this.autofocus}" ?required="${this.required}" ?readonly="${this.readonly}" ?disabled="${this.disabled}" @input="${this._handleInput}" @change="${this._onChange}"></textarea><div class="awc-textarea__focus"></div></div><span class="${G(g)}" id="${this.slots.hintId}" part="helper-text"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span>${n?f`<span part="error-message" class="awc-textarea__error" id="${this.errorId}">${a}</span>`:""}</div>`}},s.AwcTextarea.formControlValidators=op,s.AwcTextarea.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcTextarea.styles=[Up],mt([c({type:String,reflect:!0})],s.AwcTextarea.prototype,"value",2),mt([c({type:String,reflect:!0})],s.AwcTextarea.prototype,"placeholder",2),mt([c({type:String,reflect:!0})],s.AwcTextarea.prototype,"name",2),mt([c({type:String,reflect:!0})],s.AwcTextarea.prototype,"label",2),mt([c({type:String,reflect:!0})],s.AwcTextarea.prototype,"hint",2),mt([c({type:Boolean,reflect:!0})],s.AwcTextarea.prototype,"required",2),mt([c({type:Boolean,reflect:!0,attribute:"static-error"})],s.AwcTextarea.prototype,"staticError",2),mt([c({type:String,reflect:!0,attribute:"custom-error",useDefault:!0})],s.AwcTextarea.prototype,"customError",2),mt([c({type:String,reflect:!0,attribute:"error",useDefault:!0})],s.AwcTextarea.prototype,"error",2),mt([c({type:Boolean,reflect:!0})],s.AwcTextarea.prototype,"autofocus",2),mt([c({type:Boolean,reflect:!0})],s.AwcTextarea.prototype,"readonly",2),mt([c({type:Boolean,reflect:!0})],s.AwcTextarea.prototype,"disabled",2),mt([c({type:Boolean,reflect:!0})],s.AwcTextarea.prototype,"resize",2),mt([c({type:Boolean,reflect:!0})],s.AwcTextarea.prototype,"autoheight",2),mt([c({type:String,reflect:!0})],s.AwcTextarea.prototype,"autocomplete",2),mt([c({type:Number,reflect:!0})],s.AwcTextarea.prototype,"rows",2),mt([c({type:Number,reflect:!0})],s.AwcTextarea.prototype,"cols",2),mt([M()],s.AwcTextarea.prototype,"validationMessage",2),mt([H("textarea")],s.AwcTextarea.prototype,"textarea",2),mt([H("textarea")],s.AwcTextarea.prototype,"validationTarget",2),s.AwcTextarea=mt([I(Gp)],s.AwcTextarea);const qp=P`.awc-steps{display:flex;flex-direction:column;gap:16px}.awc-steps__status{display:flex;align-items:center;gap:12px}.awc-steps__sticker{font:var(--awc-font-caption-1-regular);background-color:var(--colors-secondary);color:var(--colors-white);border-radius:var(--corner-radius-l);padding:4px 9px}.awc-steps__report{color:var(--colors-titles);font:var(--awc-font-headline-medium-16)}.awc-steps__progress{width:100%;display:flex;gap:4px;overflow:hidden;overflow-x:auto;padding-bottom:3px}.progress-item{min-width:50px;width:100%;height:6px;border-radius:var(--corner-radius-s);background-color:var(--colors-secondary);opacity:.4}.progress-item--current{background-color:var(--colors-primary);opacity:1}.progress-item--past{background-color:var(--colors-primary);opacity:.7}.progress-item--completed{background-color:var(--colors-success);opacity:1}.progress-item--error{background-color:var(--colors-warning);opacity:1}`;var Yp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,Ao=(r,t,e,i)=>{for(var o=i>1?void 0:i?Kp(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Yp(t,e,o),o};s.AwcSteps=class extends C{constructor(){super(...arguments),this.id="stepper-1",this.report=[],this.status=1}willUpdate(t){if(super.willUpdate(t),t.has("report")&&typeof this.report=="string")try{this.report=JSON.parse(this.report)}catch{this.report=[]}}_calcSteps(){const t=this.report.length;return Array.from({length:t},(e,i)=>(i+1).toString())}_stepUpdater(){let t=parseInt(this.status.toString(),10);if((isNaN(t)||t<1)&&(t=1,this.status=t),!this.shadowRoot)return;const e=this.shadowRoot.querySelectorAll(".progress-item");if(t<=this.report.length){e.forEach((o,a)=>{const n=a+1,d=n<t,l=n===t;o.classList.toggle("progress-item--past",d),o.classList.toggle("progress-item--current",l),d&&o.classList.remove("progress-item--completed")});const i=t===this.report.length;e.forEach(o=>{o.classList.toggle("progress-item--completed",i)}),e.forEach(o=>{o.classList.remove("progress-item--error")})}else e.forEach(i=>
23{i.classList.add("progress-item--error")})}updated(t){super.updated(t),t.has("status")&&this._stepUpdater()}firstUpdated(){this._calcSteps()}render(){return f`<div id="${this.id}" class="awc-steps" part="base"><div class="awc-steps__status" part="status"><div class="awc-steps__sticker" part="label">Шаг ${this.status}</div><div class="awc-steps__report" part="description">${this.report[this.status-1]}</div></div><div class="awc-steps__progress" part="track">${this._renderProgress()}</div></div>`}_renderProgress(){const t=this.report.length;return Array.from({length:t},()=>f`<div class="progress-item" part="step"></div>`)}},s.AwcSteps.styles=[qp],Ao([c({type:String,reflect:!0})],s.AwcSteps.prototype,"id",2),Ao([c({type:Array,reflect:!0})],s.AwcSteps.prototype,"report",2),Ao([c({type:Number,reflect:!0})],s.AwcSteps.prototype,"status",2),s.AwcSteps=Ao([I("awc-steps")],s.AwcSteps);const Xp=P`:host{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;fill:var(--awc-icon-fill,var(--colors-secondary))}.awc-icon{display:block;width:auto;height:auto;min-width:var(--awc-icon-size);min-height:var(--awc-icon-size)}:host([icon-scale]) .awc-icon{width:var(--awc-icon-size);height:var(--awc-icon-size);min-width:var(--awc-icon-size);min-height:var(--awc-icon-size)}`;var Jp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,Tr=(r,t,e,i)=>{for(var o=i>1?void 0:i?Qp(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Jp(t,e,o),o};s.AwcIconLoader=class extends C{constructor(){super(...arguments),this.type="icon",this.src="",this.load="default"}_setGlobalIcons(){const t=this.type,e=this.size,i=this.src,o=window.__AWC_ICONS||{};return window.__AWC_ICONS=o,o[t]||(o[t]={}),this.load==="fetch"?o[t][e]={url:i,strategy:"fetch",prefix:`${t}-${e}-`}:o[t][e]=i,o}connectedCallback(){super.connectedCallback(),this._setGlobalIcons()}},Tr([c({type:String})],s.AwcIconLoader.prototype,"type",2),Tr([c({type:String})],s.AwcIconLoader.prototype,"size",2),Tr([c({type:String})],s.AwcIconLoader.prototype,"src",2),Tr([c({type:String})],s.AwcIconLoader.prototype,"load",2),s.AwcIconLoader=Tr([I("awc-icon-loader")],s.AwcIconLoader);class xo extends Cr{constructor(t){if(super(t),this.it=A,t.type!==me.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===A||t==null)return this._t=void 0,this.it=t;if(t===Ut)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}xo.directiveName="unsafeHTML",xo.resultType=1;
23const os=Ri(xo);class as extends xo{}as.directiveName="unsafeSVG",as.resultType=2;const t2=Ri(as);class Ni extends EventTarget{constructor(){super(),this.loadingPromises=new Map,this.loadedPrefixes=new Set,this.iconRegistry=new Map}static getInstance(){return Ni.instance||(Ni.instance=new Ni),Ni.instance}getIcon(t){return this.iconRegistry.get(t)}isPrefixLoaded(t){return this.loadedPrefixes.has(t)}isPrefixLoading(t){return this.loadingPromises.has(t)}async load(t,e){if(this.isPrefixLoaded(e))return;if(this.loadingPromises.has(e))return this.loadingPromises.get(e);const i=(async()=>{try{const o=await fetch(t);if(!o.ok)throw new Error(`Status: ${o.status}`);const a=await o.text();new DOMParser().parseFromString(a,"image/svg+xml").querySelectorAll("symbol").forEach(h=>{const p=h.id;if(!p)return;const w=`${e}${p}`,g=document.createElement("div");g.appendChild(document.importNode(h,!0));const v=g.innerHTML,m=t2(v),b=h.getAttribute("viewBox")||void 0;this.iconRegistry.set(w,{symbolHtml:m,symbolId:p,viewBox:b})}),this.loadedPrefixes.add(e),this.dispatchEvent(new CustomEvent(`loaded:${e}`))}catch(o){throw this.dispatchEvent(new CustomEvent(`load-failed:${e}`,{detail:{error:o}})),console.error(`Failed to load sprite: ${t}`,o),o}finally{this.loadingPromises.delete(e)}})();return this.loadingPromises.set(e,i),i}}const ee=Ni.getInstance();var e2=Object.defineProperty,i2=Object.getOwnPropertyDescriptor,vi=(r,t,e,i)=>{for(var o=i>1?void 0:i?i2(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&e2(t,e,o),o};const Fl="awc-icon";s.AwcIcon=class extends C{constructor(){super(...arguments),this.type="icon",this.size="16",this.name="",this.iconScale="",this.isLoaded=!1,this._handleSpriteLoaded=()=>{this._activePrefix&&ee.removeEventListener(`load-failed:${this._activePrefix}`,this._handleSpriteLoadFailed);const t=this._getCurrentIconKey();if(!t)return;const e=ee.getIcon(t);e&&this._applyIconData(e)},this._handleSpriteLoadFailed=t=>{const e=t;console.warn(`[awc-icon] Failed to load sprite for prefix "${this._activePrefix}":`,e.detail.error),this._activePrefix&&ee.removeEventListener(`loaded:${this._activePrefix}`,this._handleSpriteLoaded),this._resetFetchState()}}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this._evaluateConfig()}willUpdate(t){(t.has("type")||t.has("size")||t.has("name"))&&this._evaluateConfig()}disconnectedCallback(){super.disconnectedCallback(),this._activePrefix&&(ee.removeEventListener(`loaded:${this._activePrefix}`,this._handleSpriteLoaded),ee.removeEventListener(`load-failed:${this._activePrefix}`,this._handleSpriteLoadFailed))}_evaluateConfig(){const e=(window.__AWC_ICONS||{})[this.type]?.[this.size];if(!e){this._config=void 0,this._resetFetchState();return}this._config=e,this._isFetchStrategy()?this._prepareFetchIcon():this._resetToDefaultMode()}_prepareFetchIcon(){const{prefix:t,url:e}=this._config||{};if(!t||!e||!this.name){this._resetFetchState();return}this._activePrefix&&this._activePrefix!==t&&(ee.removeEventListener(`loaded:${this._activePrefix}`,this._handleSpriteLoaded),ee.removeEventListener(`load-failed:${this._activePrefix}`,this._handleSpriteLoadFailed)),this._activePrefix=t;const i=this._buildIconKey(t,this.name),o=ee.getIcon(i);if(o){this._applyIconData(o);return}this._resetFetchState(),ee.addEventListener(`loaded:${t}`,this._handleSpriteLoaded,{once:!0}),ee.addEventListener(`load-failed:${t}`,this._handleSpriteLoadFailed,{once:!0}),!ee.isPrefixLoaded(t)&&!ee.isPrefixLoading(t)&&ee.load(e,t)}_applyIconData(t){this.symbolHtml=t.symbolHtml,this.isLoaded=!0}_resetFetchState(){this.symbolHtml=void 0,this.isLoaded=!1}_resetToDefaultMode(){this.isLoaded=!0}_buildIconKey(t,e){return`${t}${e}`}_getCurrentIconKey(){if(!(!this._config?.prefix||!this.name))return this._buildIconKey(this._config.prefix,this.name)}_isFetchStrategy(){return this._config?.strategy==="fetch"}_getDefaultPath(){if(this._config&&!this._isFetchStrategy())return`${this._config}#${this.name}`}render(){if(this._isFetchStrategy())return!this.isLoaded||!this.symbolHtml?A:S`<svg part="base" class="awc-icon" style="${this.iconScale?`--awc-icon-size: ${this.iconScale}`:""}" width="${this.size}" height="${this.size}">${this.symbolHtml}<use href="#${this.name}"></use></svg><slot></slot>`;const t=this._getDefaultPath();return t?S`<svg part="base" class="awc-icon" style="${this.iconScale?`--awc-icon-size: ${this.iconScale}`:""}" width="${this.size}" height="${this.size}"><use href="${t}"></use></svg><slot></slot>`:A}},s.AwcIcon.styles=[Xp],vi([c({type:String,reflect:!0})],s.AwcIcon.prototype,"type",2),vi([c({type:String,reflect:!0})],s.AwcIcon.prototype,"size",2),vi([c({type:String,reflect:!0})],s.AwcIcon.prototype,"name",2),vi([c({type:String,attribute:"icon-scale",reflect:!0,useDefault:!0})],s.AwcIcon.prototype,"iconScale",2),vi([M()],s.AwcIcon.prototype,"symbolHtml",2),vi([M()],s.AwcIcon.prototype,"isLoaded",2),s.AwcIcon=vi([I(
23Fl)],s.AwcIcon);const Nl=P`:host{display:var(--awc-tooltip-display,contents);box-sizing:border-box}.awc-tooltip{left:0;top:0;translate:-9999px 0;isolation:isolate;pointer-events:none;opacity:0;visibility:hidden;position:absolute;z-index:1000001;max-width:240px;width:max-content;background-color:var(--colors-tooltip);border-radius:var(--corner-radius-s);transform:scale(.9);transition:opacity var(--awc-duration-slow,.3s) ease,transform var(--awc-duration-slow,.3s) ease;will-change:transform,opacity;backface-visibility:hidden;-webkit-font-smoothing:antialiased}:host([match-width]) .awc-tooltip{width:unset;max-width:none}:host([strategy=fixed]) .awc-tooltip{position:fixed}.awc-tooltip.instant,.awc-tooltip.instant .awc-tooltip__arrow{transition:none}.awc-tooltip.visible{opacity:1;visibility:visible;transform:scale(1)}.awc-tooltip__message{cursor:default;font:var(--awc-font-caption-2-regular);color:var(--colors-white);padding:var(--awc-tooltip-message-padding,6px 10px);white-space:pre-wrap;overflow-wrap:break-word;text-align:center;margin:0}:host([match-width]) .awc-tooltip__message{text-align:start}.awc-tooltip__arrow{position:absolute;width:8px;height:8px;background:var(--colors-tooltip);transform:rotate(45deg);z-index:-1;opacity:0;transition:opacity var(--awc-duration-base,.2s) ease-out;backface-visibility:hidden}.awc-tooltip.visible .awc-tooltip__arrow{opacity:1}:host([position=top]) .awc-tooltip{transform-origin:center bottom}:host([position=bottom]) .awc-tooltip{transform-origin:center top}:host([position=left]) .awc-tooltip{transform-origin:right center}:host([position=right]) .awc-tooltip{transform-origin:left center}`,ss=300,r2=["top","right","bottom","left"],Ke=Math.min,ie=Math.max,ko=Math.round,So=Math.floor,Se=r=>({x:r,y:r}),o2={left:"right",right:"left",bottom:"top",top:"bottom"};function ns(r,t,e){return ie(r,Ke(t,e))}function _i(r,t){return typeof r=="function"?r(t):r}function Xe(r){return r.split("-")[0]}function ji(r){return r.split("-")[1]}function jl(r){return r==="x"?"y":"x"}function ls(r){return r==="y"?"height":"width"}function Je(r){const t=r[0];return t==="t"||t==="b"?"y":"x"}function cs(r){return jl(Je(r))}function a2(r,t,e){e===void 0&&(e=!1);const i=ji(r),o=cs(r),a=ls(o);let n=o==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(n=$o(n)),[n,$o(n)]}function s2(r){const t=$o(r);return[ds(r),t,ds(t)]}function ds(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}const Ul=["left","right"],Zl=["right","left"],n2=["top","bottom"],l2=["bottom","top"];function c2(r,t,e){switch(r){case"top":case"bottom":return e?t?Zl:Ul:t?Ul:Zl;case"left":case"right":return t?n2:l2;default:return[]}}function d2(r,t,e,i){const o=ji(r);let a=c2(Xe(r),e==="start",i);return o&&(a=a.map(n=>n+"-"+o),t&&(a=a.concat(a.map(ds)))),a}function $o(r){const t=Xe(r);return o2[t]+r.slice(t.length)}function h2(r){var t,e,i,o;return{top:(t=r.top)!=null?t:0,right:(e=r.right)!=null?e:0,bottom:(i=r.bottom)!=null?i:0,left:(o=r.left)!=null?o:0}}function Wl(r){return typeof r!="number"?h2(r):{top:r,right:r,bottom:r,left:r}}function To(r){const{x:t,y:e,width:i,height:o}=r;return{width:i,height:o,top:e,left:t,right:t+i,bottom:e+o,x:t,y:e}}function Gl(r,t,e){let{reference:i,floating:o}=r;const a=Je(t),n=cs(t),d=ls(n),l=Xe(t),h=a==="y",p=i.x+i.width/2-o.width/2,w=i.y+i.height/2-o.height/2,g=i[d]/2-o[d]/2;let v;switch(l){case"top":v={x:p,y:i.y-o.height};break;case"bottom":v={x:p,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:w};break;case"left":v={x:i.x-o.width,y:w};break;default:v={x:i.x,y:i.y}}switch(ji(t)){case"start":v[n]-=g*(e&&h?-1:1);break;case"end":v[n]+=g*(e&&h?-1:1);break}return v}const u2=async(r,t,e)=>{const{placement:i="bottom",strategy:o="absolute",middleware:a=[],platform:n}=e,d=a.filter(Boolean),l=await(n.isRTL==null?void 0:n.isRTL(t));let h=await n.getElementRects({reference:r,floating:t,strategy:o}),{x:p,y:w}=Gl(h,i,l),g=i,v={},m=0;for(let b=0;b<d.length;b++){const{name:k,fn:T}=d[b],{x:$,y:E,data:O,reset:L}=await T({x:p,y:w,initialPlacement:i,placement:g,strategy:o,middlewareData:v,rects:h,platform:n,elements:{reference:r,floating:t}});p=$??p,w=E??w,v={...v,[k]:{...v[k],...O}},L&&m<=50&&(m++,typeof L=="object"&&(L.placement&&(g=L.placement),L.rects&&(h=L.rects===!0?await n.getElementRects({reference:r,floating:t,strategy:o}):L.rects),{x:p,y:w}=Gl(h,g,l)),b=-1)}return{x:p,y:w,placement:g,strategy:o,middlewareData:v}};async function Er(r,t){var e;t===void 0&&(t={});const{x:i,y:o,platform:a,rects:n,elements:d,strategy:l}=r,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:w="floating",altBoundary:g=!1,padding:v=0}=_i(t,r),m=Wl(v),k=d[g?w==="floating"?"reference":"floating":w],T=To(await a.getClippingRect
23({element:(e=await(a.isElement==null?void 0:a.isElement(k)))==null||e?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:h,rootBoundary:p,strategy:l})),$=w==="floating"?{x:i,y:o,width:n.floating.width,height:n.floating.height}:n.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),O=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},L=To(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:$,offsetParent:E,strategy:l}):$);return{top:(T.top-L.top+m.top)/O.y,bottom:(L.bottom-T.bottom+m.bottom)/O.y,left:(T.left-L.left+m.left)/O.x,right:(L.right-T.right+m.right)/O.x}}const p2=r=>({name:"arrow",options:r,async fn(t){const{x:e,y:i,placement:o,rects:a,platform:n,elements:d,middlewareData:l}=t,{element:h,padding:p=0}=_i(r,t)||{};if(h==null)return{};const w=Wl(p),g={x:e,y:i},v=cs(o),m=ls(v),b=await n.getDimensions(h),k=v==="y",T=k?"top":"left",$=k?"bottom":"right",E=k?"clientHeight":"clientWidth",O=a.reference[m]+a.reference[v]-g[v]-a.floating[m],L=g[v]-a.reference[v],V=await(n.getOffsetParent==null?void 0:n.getOffsetParent(h));let Z=V?V[E]:0;(!Z||!await(n.isElement==null?void 0:n.isElement(V)))&&(Z=d.floating[E]||a.floating[m]);const K=O/2-L/2,W=Z/2-b[m]/2-1,j=Ke(w[T],W),it=Ke(w[$],W),at=j,J=Z-b[m]-it,rt=Z/2-b[m]/2+K,nt=ns(at,rt,J),Ot=!l.arrow&&ji(o)!=null&&rt!==nt&&a.reference[m]/2-(rt<at?j:it)-b[m]/2<0,Tt=Ot?rt<at?rt-at:rt-J:0;return{[v]:g[v]+Tt,data:{[v]:nt,centerOffset:rt-nt-Tt,...Ot&&{alignmentOffset:Tt}},reset:Ot}}}),f2=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,i;const{placement:o,middlewareData:a,rects:n,initialPlacement:d,platform:l,elements:h}=t,{mainAxis:p=!0,crossAxis:w=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...k}=_i(r,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};const T=Xe(o),$=Je(d),E=Xe(d)===d,O=await(l.isRTL==null?void 0:l.isRTL(h.floating)),L=g||(E||!b?[$o(d)]:s2(d)),V=m!=="none";!g&&V&&L.push(...d2(d,b,m,O));const Z=[d,...L],K=await Er(t,k),W=[];let j=((i=a.flip)==null?void 0:i.overflows)||[];if(p&&W.push(K[T]),w){const nt=a2(o,n,O);W.push(K[nt[0]],K[nt[1]])}if(j=[...j,{placement:o,overflows:W}],!W.every(nt=>nt<=0)){var it,at;const nt=(((it=a.flip)==null?void 0:it.index)||0)+1,Ot=Z[nt];if(Ot){var J;const pt=w==="alignment"?$!==Je(Ot):!1,xt=((J=j[0])==null?void 0:J.overflows[0])>0;if(!pt||xt)return{data:{index:nt,overflows:j},reset:{placement:Ot}}}let Tt=(at=j.filter(pt=>pt.overflows[0]<=0).sort((pt,xt)=>pt.overflows[1]-xt.overflows[1])[0])==null?void 0:at.placement;if(!Tt)switch(v){case"bestFit":{var rt;const pt=(rt=j.filter(xt=>{if(V){const Xt=Je(xt.placement);return Xt===$||Xt==="y"}return!0}).map(xt=>[xt.placement,xt.overflows.filter(Xt=>Xt>0).reduce((Xt,or)=>Xt+or,0)]).sort((xt,Xt)=>xt[1]-Xt[1])[0])==null?void 0:rt[0];pt&&(Tt=pt);break}case"initialPlacement":Tt=d;break}if(o!==Tt)return{reset:{placement:Tt}}}return{}}}};function ql(r,t){return{top:r.top-t.height,right:r.right-t.width,bottom:r.bottom-t.height,left:r.left-t.width}}function Yl(r){return r2.some(t=>r[t]>=0)}const w2=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(t){const{rects:e}=t,{strategy:i="referenceHidden",...o}=_i(r,t);switch(i){case"referenceHidden":{const a=await Er(t,{...o,elementContext:"reference"}),n=ql(a,e.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Yl(n)}}}case"escaped":{const a=await Er(t,{...o,altBoundary:!0}),n=ql(a,e.floating);return{data:{escapedOffsets:n,escaped:Yl(n)}}}default:return{}}}}};async function g2(r,t){const{placement:e,platform:i,elements:o}=r,a=await(i.isRTL==null?void 0:i.isRTL(o.floating)),n=Xe(e),d=ji(e),l=Je(e)==="y",h=["left","top"].includes(n)?-1:1,p=a&&l?-1:1,w=_i(t,r);let{mainAxis:g,crossAxis:v,alignmentAxis:m}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return d&&typeof m=="number"&&(v=d==="end"?m*-1:m),l?{x:v*p,y:g*h}:{x:g*h,y:v*p}}const v2=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,i;const{x:o,y:a,placement:n,middlewareData:d}=t,l=await g2(t,r);
23return n===((e=d.offset)==null?void 0:e.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:n}}}}},_2=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){const{x:e,y:i,placement:o}=t,{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:k=>{let{x:T,y:$}=k;return{x:T,y:$}}},...l}=_i(r,t),h={x:e,y:i},p=await Er(t,l),w=Je(Xe(o)),g=jl(w);let v=h[g],m=h[w];if(a){const k=g==="y"?"top":"left",T=g==="y"?"bottom":"right",$=v+p[k],E=v-p[T];v=ns($,v,E)}if(n){const k=w==="y"?"top":"left",T=w==="y"?"bottom":"right",$=m+p[k],E=m-p[T];m=ns($,m,E)}const b=d.fn({...t,[g]:v,[w]:m});return{...b,data:{x:b.x-e,y:b.y-i,enabled:{[g]:a,[w]:n}}}}}},m2=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(t){var e,i;const{placement:o,rects:a,platform:n,elements:d}=t,{apply:l=()=>{},...h}=_i(r,t),p=await Er(t,h),w=Xe(o),g=ji(o),v=Je(o)==="y",{width:m,height:b}=a.floating;let k,T;w==="top"||w==="bottom"?(k=w,T=g===(await(n.isRTL==null?void 0:n.isRTL(d.floating))?"start":"end")?"left":"right"):(T=w,k=g==="end"?"top":"bottom");const $=b-p.top-p.bottom,E=m-p.left-p.right,O=Ke(b-p[k],$),L=Ke(m-p[T],E),V=!t.middlewareData.shift;let Z=O,K=L;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(K=E),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(Z=$),V&&!g){const j=ie(p.left,0),it=ie(p.right,0),at=ie(p.top,0),J=ie(p.bottom,0);v?K=m-2*(j!==0||it!==0?j+it:ie(p.left,p.right)):Z=b-2*(at!==0||J!==0?at+J:ie(p.top,p.bottom))}await l({...t,availableWidth:K,availableHeight:Z});const W=await n.getDimensions(d.floating);return m!==W.width||b!==W.height?{reset:{rects:!0}}:{}}}};function Eo(){return typeof window<"u"}function Ui(r){return Kl(r)?(r.nodeName||"").toLowerCase():"#document"}function re(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function $e(r){var t;return(t=(Kl(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Kl(r){return Eo()?r instanceof Node||r instanceof re(r).Node:!1}function pe(r){return Eo()?r instanceof Element||r instanceof re(r).Element:!1}function Te(r){return Eo()?r instanceof HTMLElement||r instanceof re(r).HTMLElement:!1}function Xl(r){return!Eo()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof re(r).ShadowRoot}function Lr(r){const{overflow:t,overflowX:e,overflowY:i,display:o}=fe(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&o!=="inline"&&o!=="contents"}function b2(r){return/^(table|td|th)$/.test(Ui(r))}function Lo(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}const y2=/transform|translate|scale|rotate|perspective|filter/,C2=/paint|layout|strict|content/,mi=r=>!!r&&r!=="none";let hs;function Ir(r){const t=pe(r)?fe(r):r;return mi(t.transform)||mi(t.translate)||mi(t.scale)||mi(t.rotate)||mi(t.perspective)||!us()&&(mi(t.backdropFilter)||mi(t.filter))||y2.test(t.willChange||"")||C2.test(t.contain||"")}function A2(r){let t=we(r);for(;Te(t)&&!Zi(t);){if(Ir(t))return t;if(Lo(t))return null;t=we(t)}return null}function us(){return hs==null&&(hs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hs}function Zi(r){return/^(html|body|#document)$/.test(Ui(r))}function fe(r){return re(r).getComputedStyle(r)}function Io(r){return pe(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function we(r){if(Ui(r)==="html")return r;const t=r.assignedSlot||r.parentNode||Xl(r)&&r.host||$e(r);return Xl(t)?t.host:t}function Jl(r){const t=we(r);return Zi(t)?(r.ownerDocument||r).body:Te(t)&&Lr(t)?t:Jl(t)}function Or(r,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);const o=Jl(r),a=o===((i=r.ownerDocument)==null?void 0:i.body),n=re(o);if(a){const d=ps(n);return t.concat(n,n.visualViewport||[],Lr(o)?o:[],d&&e?Or(d):[])}else return t.concat(o,Or(o,[],e))}function ps(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Ql(r){const t=fe(r);let e=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=Te(r),a=o?r.offsetWidth:e,n=o?r.offsetHeight:i,d=ko(e)!==a||ko(i)!==n;return d&&(e=a,i=n),{width:e,height:i,$:d}}function fs(r){return pe(r)?r:r.contextElement}function Wi(r){const t=fs(r);if(!Te(t))return Se(1);const e=t.getBoundingClientRect(),{width:i,height:o,$:a}=Ql(t);let n=(a?ko(e.width):e.width)/i,d=(a?ko(e.height):e.height)/o;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}const x2=Se(0);function tc(r){const t=re(r);
23return!us()||!t.visualViewport?x2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function k2(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==re(r)?!1:t}function bi(r,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);const o=r.getBoundingClientRect(),a=fs(r);let n=Se(1);t&&(i?pe(i)&&(n=Wi(i)):n=Wi(r));const d=k2(a,e,i)?tc(a):Se(0);let l=(o.left+d.x)/n.x,h=(o.top+d.y)/n.y,p=o.width/n.x,w=o.height/n.y;if(a){const g=re(a),v=i&&pe(i)?re(i):i;let m=g,b=ps(m);for(;b&&i&&v!==m;){const k=Wi(b),T=b.getBoundingClientRect(),$=fe(b),E=T.left+(b.clientLeft+parseFloat($.paddingLeft))*k.x,O=T.top+(b.clientTop+parseFloat($.paddingTop))*k.y;l*=k.x,h*=k.y,p*=k.x,w*=k.y,l+=E,h+=O,m=re(b),b=ps(m)}}return To({width:p,height:w,x:l,y:h})}function ws(r,t){const e=Io(r).scrollLeft;return t?t.left+e:bi($e(r)).left+e}function ec(r,t,e){e===void 0&&(e=!1);const i=r.getBoundingClientRect(),o=i.left+t.scrollLeft-(e?0:ws(r,i)),a=i.top+t.scrollTop;return{x:o,y:a}}function S2(r){let{elements:t,rect:e,offsetParent:i,strategy:o}=r;const a=o==="fixed",n=$e(i),d=t?Lo(t.floating):!1;if(i===n||d&&a)return e;let l={scrollLeft:0,scrollTop:0},h=Se(1);const p=Se(0),w=Te(i);if((w||!w&&!a)&&((Ui(i)!=="body"||Lr(n))&&(l=Io(i)),Te(i))){const v=bi(i);h=Wi(i),p.x=v.x+i.clientLeft,p.y=v.y+i.clientTop}const g=n&&!w&&!a?ec(n,l,!0):Se(0);return{width:e.width*h.x,height:e.height*h.y,x:e.x*h.x-l.scrollLeft*h.x+p.x+g.x,y:e.y*h.y-l.scrollTop*h.y+p.y+g.y}}function $2(r){return Array.from(r.getClientRects())}function T2(r){const t=$e(r),e=Io(r),i=r.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=ie(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let n=-e.scrollLeft+ws(r);const d=-e.scrollTop;return fe(i).direction==="rtl"&&(n+=ie(t.clientWidth,i.clientWidth)-o),{width:o,height:a,x:n,y:d}}
23function E2(r,t){const e=re(r),i=$e(r),o=e.visualViewport;let a=i.clientWidth,n=i.clientHeight,d=0,l=0;if(o){a=o.width,n=o.height;const h=us();(!h||h&&t==="fixed")&&(d=o.offsetLeft,l=o.offsetTop)}return{width:a,height:n,x:d,y:l}}function L2(r,t){const e=bi(r,!0,t==="fixed"),i=e.top+r.clientTop,o=e.left+r.clientLeft,a=Te(r)?Wi(r):Se(1),n=r.clientWidth*a.x,d=r.clientHeight*a.y,l=o*a.x,h=i*a.y;return{width:n,height:d,x:l,y:h}}function ic(r,t,e){let i;if(t==="viewport")i=E2(r,e);else if(t==="document")i=T2($e(r));else if(pe(t))i=L2(t,e);else{const o=tc(r);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return To(i)}function rc(r,t){const e=we(r);return e===t||!pe(e)||Zi(e)?!1:fe(e).position==="fixed"||rc(e,t)}function I2(r,t){const e=t.get(r);if(e)return e;let i=Or(r,[],!1).filter(d=>pe(d)&&Ui(d)!=="body"),o=null;const a=fe(r).position==="fixed";let n=a?we(r):r;for(;pe(n)&&!Zi(n);){const d=fe(n),l=Ir(n);!l&&d.position==="fixed"&&(o=null),(a?!l&&!o:!l&&d.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lr(n)&&!l&&rc(r,n))?i=i.filter(p=>p!==n):o=d,n=we(n)}return t.set(r,i),i}function O2(r){let{element:t,boundary:e,rootBoundary:i,strategy:o}=r;const n=[...e==="clippingAncestors"?Lo(t)?[]:I2(t,this._c):[].concat(e),i],d=n[0],l=n.reduce((h,p)=>{const w=ic(t,p,o);return h.top=ie(w.top,h.top),h.right=Ke(w.right,h.right),h.bottom=Ke(w.bottom,h.bottom),h.left=ie(w.left,h.left),h},ic(t,d,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function M2(r){const{width:t,height:e}=Ql(r);return{width:t,height:e}}function P2(r,t,e){const i=Te(t),o=$e(t),a=e==="fixed",n=bi(r,!0,a,t);let d={scrollLeft:0,scrollTop:0};const l=Se(0);function h(){l.x=ws(o)}if(i||!i&&!a)if((Ui(t)!=="body"||Lr(o))&&(d=Io(t)),i){const v=bi(t,!0,a,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&h();a&&!i&&o&&h();const p=o&&!i&&!a?ec(o,d):Se(0),w=n.left+d.scrollLeft-l.x-p.x,g=n.top+d.scrollTop-l.y-p.y;return{x:w,y:g,width:n.width,height:n.height}}function gs(r){return fe(r).position==="static"}function oc(r,t){if(!Te(r)||fe(r).position==="fixed")return null;if(t)return t(r);let e=r.offsetParent;return $e(r)===e&&(e=e.ownerDocument.body),e}function ac(r,t){const e=re(r);if(Lo(r))return e;if(!Te(r)){let o=we(r);for(;o&&!Zi(o);){if(pe(o)&&!gs(o))return o;o=we(o)}return e}let i=oc(r,t);for(;i&&b2(i)&&gs(i);)i=oc(i,t);return i&&Zi(i)&&gs(i)&&!Ir(i)?e:i||A2(r)||e}const D2=async function(r){const t=this.getOffsetParent||ac,e=this.getDimensions,i=await e(r.floating);return{reference:P2(r.reference,await t(r.floating),r.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function B2(r){return fe(r).direction==="rtl"}const vs={convertOffsetParentRelativeRectToViewportRelativeRect:S2,getDocumentElement:$e,getClippingRect:O2,getOffsetParent:ac,getElementRects:D2,getClientRects:$2,getDimensions:M2,getScale:Wi,isElement:pe,isRTL:B2};function sc(r,t){return r.x===t.x&&r.y===t.y&&r.width===t.width&&r.height===t.height}function V2(r,t){let e=null,i;const o=$e(r);function a(){var d;clearTimeout(i),(d=e)==null||d.disconnect(),e=null}function n(d,l){d===void 0&&(d=!1),l===void 0&&(l=1),a();const h=r.getBoundingClientRect(),{left:p,top:w,width:g,height:v}=h;if(d||t(),!g||!v)return;const m=So(w),b=So(o.clientWidth-(p+g)),k=So(o.clientHeight-(w+v)),T=So(p),E={rootMargin:-m+"px "+-b+"px "+-k+"px "+-T+"px",threshold:ie(0,Ke(1,l))||1};let O=!0;function L(V){const Z=V[0].intersectionRatio;if(Z!==l){if(!O)return n();Z?n(!1,Z):i=setTimeout(()=>{n(!1,1e-7)},1e3)}Z===1&&!sc(h,r.getBoundingClientRect())&&n(),O=!1}try{e=new IntersectionObserver(L,{...E,root:o.ownerDocument})}catch{e=new IntersectionObserver(L,E)}e.observe(r)}return n(!0),a}function H2(r,t,e,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,h=fs(r),p=o||a?[...h?Or(h):[],...Or(t)]:[];p.forEach(T=>{o&&T.addEventListener("scroll",e,{passive:!0}),a&&T.addEventListener("resize",e)});const w=h&&d?V2(h,e):null;let g=-1,v=null;n&&(v=new ResizeObserver(T=>{let[$]=T;$&&$.target===h&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=v)==null||E.observe(t)})),e()}),h&&!l&&v.observe(h),v.observe(t));let m,b=l?bi(r):null;l&&k();function k(){const T=bi(r);b&&!sc(b,T)&&e(),b=T,m=requestAnimationFrame(k)}return e(),()=>{var T;p.forEach($=>{o&&$.removeEventListener("scroll",e),a&&$.removeEventListener("resize",e)}),w?.(),(T=v)==null||T.disconnect(),v=null,l&&cancelAnimationFrame(m)}}const R2=v2,z2=_2,F2=f2,N2=m2,j2=w2,U2=p2,Z2=(r,t,e)=>{const i=new Map,o={platform:vs,...e},a={...o.platform,_c:i};return u2(r,t,{...o,platform:a})};function _s(r){const t=[];let e=r,i=!1,o=getComputedStyle(r);for(;e=we(e),!(!(e instanceof Element)||e===document.documentElement);){if(e===document.body)continue;const a=getComputedStyle(e),n=Ir(a);!n&&a.position==="static"&&(o.position==="absolute"||o.position==="fixed")||(a.overflowY!=="visible"&&(!i||n)&&t.pu
23sh(e),o=a),a.position==="fixed"&&(i=!0)}return t}function W2(r){let t=r;for(;;){if(t=we(t),!(t instanceof Element)||t===document.documentElement)return document.body;const e=getComputedStyle(t);if(e.display!=="contents"&&(t===document.body||e.position!=="static"||Ir(e)))return t}}const G2={...vs,getOffsetParent:(r,t)=>vs.getOffsetParent(r,t??W2)};function q2(r){return r.startsWith("top")||r.startsWith("bottom")}function Oo(r,t,e,i){const o={...i,middleware:i.middleware??[]};let a=null,n=null,d=null,l=!1,h=!1,p=null;const w=()=>{let O=document.activeElement;for(;O;){if(O===t)return!0;const L=we(O);if(L===O)return!1;O=L}return!1},g=O=>{!o.hideWhenClipped||O===l||O&&w()||(l=O,t.style.visibility=O?"hidden":"")},v=O=>{if(!O){h=!1,p!==null&&(cancelAnimationFrame(p),p=null),g(!1);return}if(!(l||w())){if(h){h=!1,g(!0);return}h=!0,p===null&&(p=requestAnimationFrame(()=>{p=null,b()}))}};let m=!1;const b=()=>{if(m)return;const O=r.getClientRects();if(!r.isConnected||O.length===0){g(!0),o.onReferenceHidden?.();return}const L=O[0].width===0&&O[0].height===0;Z2(r,t,{placement:o.position,strategy:o.strategy,platform:G2,middleware:[R2(o.spacing),F2({boun
23dary:o.boundary}),z2({padding:o.matchReferenceWidth&&q2(o.position)?0:8}),...e?[U2({element:e})]:[],...o.matchReferenceWidth||o.onAvailableSize?[N2({padding:o.sizePadding,boundary:o.boundary,apply({rects:V,availableWidth:Z,availableHeight:K,elements:W}){if(o.matchReferenceWidth){const j=V.reference.width;j!==a&&(W.floating.style.width=`${j}px`,a=j)}o.onAvailableSize?.({availableWidth:Z,availableHeight:K,floating:W.floating})}})]:[],...o.middleware,...o.hideWhenClipped?[j2({strategy:"referenceHidden"})]:[]]}).then(({x:V,y:Z,placement:K,middlewareData:W})=>{if(m)return;const j=window.devicePixelRatio||1;if(t.style.translate=`${Math.round(V*j)/j}px ${Math.round(Z*j)/j}px`,v(!L&&W.hide?.referenceHidden===!0),o.onPlacementChange&&K!==d&&(d=K,o.onPlacementChange(K)),e&&W.arrow){const{x:it,y:at}=W.arrow,J={top:"bottom",right:"left",bottom:"top",left:"right"}[K.split("-")[0]];J&&(!n||n.x!==it||n.y!==at||n.side!==J)&&(Object.assign(e.style,{left:typeof it=="number"?`${it}px`:"",top:typeof at=="number"?`${at}px`:"",right:"",bottom:"",[J]:"-4px"}),n={x:it,y:at,side:J})}})};let k=null,T=!1;const E=H2(r,t,()=>{if(!T){T=!0,b();return}k===null&&(k=requestAnimationFrame(()=>{k=null,b()}))});return{update:O=>{if(m)return;const L=O.matchReferenceWidth!==void 0&&O.matchReferenceWidth!==o.matchReferenceWidth;O.position!==void 0&&(o.position=O.position),O.strategy!==void 0&&(o.strategy=O.strategy),O.spacing!==void 0&&(o.spacing=O.spacing),O.matchReferenceWidth!==void 0&&(o.matchReferenceWidth=O.matchReferenceWidth),a=null,n=null,d=null,L&&!o.matchReferenceWidth&&(t.style.width=""),b()},destroy:()=>{m=!0,k!==null&&cancelAnimationFrame(k),p!==null&&cancelAnimationFrame(p),g(!1),E()}}}var Y2=Object.defineProperty,K2=Object.getOwnPropertyDescriptor,zt=(r,t,e,i)=>{for(var o=i>1?void 0:i?K2(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Y2(t,e,o),o};const ms="awc-tooltip-message";let Pt=class extends C{constructor(){super(...arguments),this.message="",this.position="top",this.strategy="absolute",this.spacing=8,this.marker=!0,this.active=!1,this.instant=!1,this.matchWidth=!1,this.referenceEl=null,this.onReferenceHidden=null,this.renderActive=!1,this.instantEnter=!1,this.floatingSession=null,this.floatingKey=null,this.renderActiveRaf=null,this.instantEnterRaf=null}connectedCallback(){super.connectedCallback(),this.updatePosition()}disconnectedCallback(){super.disconnectedCallback(),this.teardownFloating(),this.renderActiveRaf!==null&&(cancelAnimationFrame(this.renderActiveRaf),this.renderActiveRaf=null),this.instantEnterRaf!==null&&(cancelAnimationFrame(this.instantEnterRaf),this.instantEnterRaf=null,this.instantEnter=!1)}willUpdate(r){super.willUpdate(r),r.has("active")&&(this.renderActiveRaf!==null&&(cancelAnimationFrame(this.renderActiveRaf),this.renderActiveRaf=null),this.instantEnterRaf!==null&&(cancelAnimationFrame(this.instantEnterRaf),this.instantEnterRaf=null),this.active&&this.instant?(this.renderActive=!0,this.instantEnter=!0,this.instantEnterRaf=requestAnimationFrame(()=>{this.instantEnterRaf=requestAnimationFrame(()=>{this.instantEnterRaf=null,this.instantEnter=!1})})):this.active?this.renderActiveRaf=requestAnimationFrame(()=>{this.renderActiveRaf=requestAnimationFrame(()=>{this.renderActiveRaf=null,this.renderActive=!0})}):(this.renderActive=!1,this.instantEnter=!1))}updated(r){super.updated(r),(r.has("active")||r.has("position")||r.has("spacing")||r.has("strategy")||r.has("matchWidth")||r.has("marker")||r.has("referenceEl"))&&this.updatePosition()}getValidSpacing(){const r=Number(this.spacing);return isNaN(r)?8:r}teardownFloating(){this.floatingSession?.destroy(),this.floatingSession=null,this.floatingKey=null}updatePosition(){if(!this.tooltipEl||!this.referenceEl||!this.active)return this.teardownFloating(),Promise.resolve();const r=this.marker&&this.arrowEl?this.arrowEl:null;this.tooltipEl.style.position=this.strategy;const t=this.floatingKey;if(this.floatingSession!==null&&t!==null&&t.referenceEl===this.referenceEl&&t.tooltipEl===this.tooltipEl&&t.arrowEl===r)return this.floatingSession.update({position:this.position,strategy:this.strategy,spacing:this.getValidSpacing(),matchReferenceWidth:this.matchWidth}),Promise.resolve();this.teardownFloating(),this.matchWidth||(this.tooltipEl.style.width=""),r&&(r.style.top="",r.style.right="",r.style.bottom="",r.style.left="");const i=this.referenceEl,o=this.tooltipEl;return new Promise(a=>{this.floatingSession=Oo(i,o,r,{position:this.position,strategy:this.strategy,spacing:this.getValidSpacing(),matchReferenceWidth:this.matchWidth,hideWhenClipped:!0,onReferenceHidden:this.onReferenceHidden??void 0}
23),this.floatingKey={referenceEl:i,tooltipEl:o,arrowEl:r},requestAnimationFrame(()=>a())})}render(){return f`${this.message?f`<div part="base" class="awc-tooltip ${this.renderActive?"visible":""} ${this.instantEnter?"instant":""}" role="tooltip"><p class="awc-tooltip__message">${this.message}</p>${this.marker?f`<div class="awc-tooltip__arrow"></div>`:""}</div>`:""}`}};Pt.styles=Nl,zt([c({type:String})],Pt.prototype,"message",2),zt([c({type:String,reflect:!0})],Pt.prototype,"position",2),zt([c({type:String,reflect:!0})],Pt.prototype,"strategy",2),zt([c({type:Number,reflect:!0})],Pt.prototype,"spacing",2),zt([c({type:Boolean,reflect:!0})],Pt.prototype,"marker",2),zt([c({type:Boolean,reflect:!0})],Pt.prototype,"active",2),zt([c({attribute:!1})],Pt.prototype,"instant",2),zt([c({type:Boolean,attribute:"match-width",reflect:!0})],Pt.prototype,"matchWidth",2),zt([c({type:Object})],Pt.prototype,"referenceEl",2),zt([c({attribute:!1})],Pt.prototype,"onReferenceHidden",2),zt([M()],Pt.prototype,"renderActive",2),zt([M()],Pt.prototype,"instantEnter",2),zt([H(".awc-tooltip")],Pt.prototype,"tooltipEl",2),zt([H(".awc-tooltip__arrow")],Pt.prototype,"arrowEl",2),Pt=zt([I(ms)],Pt);const bs=new Set;let Mo=!1,ys=null,Po=null,Do=!1;const X2=100,J2=ss;function Q2(r=X2){return ys!==null&&Date.now()-ys<r}function nc(r){Do=r}function lc(){Po=Do?Date.now():null}function cc(){Po=null,Do=!1}function Bo(){return z.active!==null?Do:Po!==null&&Date.now()-Po<J2}function Mr(r){const t=r;return t.awcTooltipHandled?!0:(t.awcTooltipHandled=!0,!1)}function Pr(r){return document.querySelector(r)||document.body}function dc(){document.visibilityState==="hidden"&&(ys=Date.now(),z.active&&z.active.hide(),cc())}function tf(){Mo||(document.addEventListener("visibilitychange",dc),Mo=!0)}function ef(){Mo&&(document.removeEventListener("visibilitychange",dc),Mo=!1)}function rf(){if(z.message&&z.currentTarget!==null){const r=Pr(z.currentTarget);r.contains(z.message)&&r.removeChild(z.message)}z.message=null,z.currentTarget=null,z.active=null,cc()}const z={active:null,message:null,currentTarget:null,register(r){bs.add(r),tf()},unregister(r){bs.delete(r),z.active===r&&(z.active=null),bs.size===0&&(rf(),ef())},ensureMessage(r){return z.message?z.currentTarget!==r&&z.moveMessageTo(r):(z.message=document.createElement(ms),z.message.onReferenceHidden=()=>z.active?.hide(),Pr(r).appendChild(z.message),z.currentTarget=r),z.message},moveMessageTo(r){if(!z.message)return;if(z.currentTarget===null||z.currentTarget===r){const i=Pr(r);i.contains(z.message)||i.appendChild(z.message),z.currentTarget=r;return}const t=Pr(z.currentTarget);t.contains(z.message)&&t.removeChild(z.message),Pr(r).appendChild(z.message),z.currentTarget=r},applyOptionsToMessage(r,t){const e=z.message;e&&(e.message=r.message,e.position=r.position,e.strategy=r.strategy,e.spacing=r.spacing,e.marker=r.marker,e.instant=r.instant,e.active=r.active,e.matchWidth=r.matchWidth,t&&(e.referenceEl=t))}};var of=Object.defineProperty,af=Object.getOwnPropertyDescriptor,Ft=(r,t,e,i)=>{for(var o=i>1?void 0:i?af(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&of(t,e,o),o};const sf="awc-tooltip";s.AwcTooltip=class extends C{constructor(){super(...arguments),this.message="",this.position="top",this.strategy="absolute",this.spacing=8,this.marker=!0,this.active=!1,this.disabled=!1,this.matchWidth=!1,this.target="body",this.portalOff=!1,this.referenceEl=null,this.showTimeout=null,this.showInstant=!1,this.handleSlotChange=()=>{if(!this.slotEl)return;const t=this.slotEl.assignedElements({flatten:!0});this.referenceEl=t[0]||null,this.active&&z.active===this&&this.updateTooltipMessage()},this.handleMouseOver=t=>{Mr(t)||this.disabled||this.isContentOpen(t.composedPath())||this.showTooltip(!1,!0)},this.handleMouseOut=t=>{const e=t.relatedTarget;e&&this.contains(e)||this.hideTooltip()},this.showTooltip=(t=!1,e=!1)=>{if(this.disabled)return;const i=()=>{if(this.showTimeout=null,z.active===this&&this.active){this.updateTooltipMessage();return}if(this.showInstant=Bo(),z.active&&z.active!==this&&z.active.hide(),z.active=this,nc(e),this.active=!0,this.portalOff||this.ensureTooltipMessage(),!this.referenceEl){const o=this.slotEl?.assignedElements({flatten:!0});this.referenceEl=o?.[0]||null}this.updateTooltipMessage(),this._onShowEvent(!0)};if(t||Bo()){this.showTimeout!==null&&(clearTimeout(this.showTimeout),this.showTimeout=null),i();return}this.showTimeout===null&&(this.showTimeout=window.setTimeout(i,ss))},this.hideTooltip=()=>{this.showTimeout!==null&&(clearTimeout(this.showTimeout),this.showTimeout=null),z.active===this&&(this.active=!1,this.updateTooltipMessage(),z.active=null,lc(),this._onHideEvent(!0))},this.handleFocusIn=t=>{Mr(t)||this.contains(t.target)&&(this.isContentOpen(t.composedPath())||Q2()||this.showTooltip(!0))},this.handleFocusOut=t=>{const e=t.relatedTarget;e&&this.contains(e)||this.hideTooltip()}}connectedCallback(){super.connectedCallback(),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("slotchange",this.handleSlot
23Change),z.register(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut),this.removeEventListener("slotchange",this.handleSlotChange),this.showTimeout!==null&&(clearTimeout(this.showTimeout),this.showTimeout=null),z.active===this&&this.hideTooltip(),z.unregister(this)}willUpdate(t){super.willUpdate(t),t.has("spacing")&&isNaN(Number(this.spacing))&&(this.spacing=8),t.has("disabled")&&this.disabled&&(this.hideTooltip(),this.active=!1)}updated(t){if(super.updated(t),t.has("active")){const e=z.active===this;this.active&&!e?this.showTooltip(!0):!this.active&&e&&this.hideTooltip()}(t.has("message")||t.has("position")||t.has("strategy")||t.has("spacing")||t.has("marker")||t.has("active")||t.has("matchWidth")||t.has("target")||t.has("portalOff"))&&this.active&&z.active===this&&this.updateTooltipMessage(),t.has("portalOff")&&!this.portalOff&&this.active&&(this.ensureTooltipMessage(),this.updateTooltipMessage()),t.has("target")&&!this.portalOff&&z.moveMessageTo(this.target)}ensureTooltipMessage(){this.portalOff||z.ensureMessage(this.target)}buildMessageOptions(){return{message:this.message,position:this.position,strategy:this.strategy,spacing:this.spacing,marker:this.marker,matchWidth:this.matchWidth,active:this.active,instant:this.showInstant}}updateTooltipMessage(){if(this.portalOff){const t=this.tooltipMessageEl;t&&(t.message=this.message,t.position=this.position,t.strategy=this.strategy,t.spacing=this.spacing,t.marker=this.marker,t.instant=this.showInstant,t.active=this.active,t.matchWidth=this.matchWidth,this.referenceEl&&(t.referenceEl=this.referenceEl));return}z.applyOptionsToMessage(this.buildMessageOptions(),this.referenceEl)}isContentOpen(t){for(const e of t){if(e===this)break;if(e instanceof HTMLElement&&(e.hasAttribute("open")||e.hasAttribute("visible")||e.getAttribute("aria-expanded")==="true"))return!0}return!1}show(){this.showTooltip(!0)}hide(){this.hideTooltip()}render(){return f`<slot @slotchange="${this.handleSlotChange}"></slot>${this.portalOff?f`<awc-tooltip-message exportparts="base:tooltip-message-base" .message="${this.message}" .position="${this.position}" .strategy="${this.strategy}" .spacing="${this.spacing}" .marker="${this.marker}" .instant="${this.showInstant}" .active="${this.active}" .matchWidth="${this.matchWidth}" .referenceEl="${this.referenceEl}" .onReferenceHidden="${this.hideTooltip}"></awc-tooltip-message>`:""}`}},s.AwcTooltip.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcTooltip.styles=Nl,Ft([c({type:String,reflect:!0,useDefault:!0})],s.AwcTooltip.prototype,"message",2),Ft([c({type:String,reflect:!0})],s.AwcTooltip.prototype,"position",2),Ft([c({type:String,reflect:!0})],s.AwcTooltip.prototype,"strategy",2),Ft([c({type:Number,reflect:!0})],s.AwcTooltip.prototype,"spacing",2),Ft([c({type:Boolean,reflect:!0})],s.AwcTooltip.prototype,"marker",2),Ft([c({type:Boolean,reflect:!0})],s.AwcTooltip.prototype,"active",2),Ft([c({type:Boolean,reflect:!0})],s.AwcTooltip.prototype,"disabled",2),Ft([c({type:Boolean,reflect:!0,attribute:"match-width"})],s.AwcTooltip.prototype,"matchWidth",2),Ft([c({type:String,reflect:!0})],s.AwcTooltip.prototype,"target",2),Ft([c({type:Boolean,attribute:"portal-off"})],s.AwcTooltip.prototype,"portalOff",2),Ft([F("awc-tooltip-show")],s.AwcTooltip.prototype,"_onShowEvent",2),Ft([F("awc-tooltip-hide")],s.AwcTooltip.prototype,"_onHideEvent",2),Ft([H("slot")],s.AwcTooltip.prototype,"slotEl",2),Ft([H(ms)],s.AwcTooltip.prototype,"tooltipMessageEl",2),s.AwcTooltip=Ft([I(sf)],s.AwcTooltip);function nf(r){const t=r===void 0?["hover","focus"]:Array.isArray(r)?r:[r];return t.includes("manual")?new Set(["manual"]):new Set(t)}function hc(r){return{message:r.message??"",position:r.position??"top",strategy:r.strategy??"absolute",spacing:r.spacing??8,marker:r.marker??!0,matchWidth:r.matchWidth??!1,target:r.target??"body",portalOff:r.portalOff??!1,disabled:r.disabled??!1,triggers:nf(r.trigger)}}function lf(r){let t;return typeof r=="string"?t=document.querySelector(r):t=r,t===null||!(t instanceof HTMLElement)?null:t}class cf{constructor(t,e){this.showTimeout=null,this.isActiveHere=!1,this.showInstant=!1,this.handleMouseOver=i=>{Mr(i)||this.options.disabled||this.scheduleShow()},this.handleMouseOut=i=>{const o=i.relatedTarget;o&&this.element.contains(o)||this.hide()},this.handleFocusIn=i=>{Mr(i)||this.options.disabled||this.showImmediate()},this.handleFocusOut=i=>{const o=i.relatedTarget;o&&this.element.contains(o)||this.hide()},this.handleClick=i=>{Mr(i)||this.options.disabled||(this.isActiveHere&&z.active===this?this.hide():this.showImmediate())},this.element=t,this.options=e,z.register(this),this.bindListeners()}bindListeners(){const t=this.options.triggers;t.has("hover")&&(this.element.addEventListener("mouseover",this.handleMouseOver),this.element.addEventListener("mouseout",this.handleMouseOut)),t.has("focus")&&(this.element.addEventListener("focusin",this.handleFocusIn),this.element.addEventListener("focusout",this.handleFocusOut)),t.has("click")&&this.element.addEventListener("click",this.handleClick)}unbindListeners(){this.element.removeEventListener("mouseover",this.handleMouseOver),this.element.removeEventListener("mouseout",this.handleMouseOut),this.element.removeEventListener("focusin",this.handleFocusIn),this.element.removeEventListener("focusout",this.handleFocusOut),this.element.removeEventListener("click",this.handleClick)}clearPendingShow(){this.showTimeout!==null&&(clearTimeout(this.showTimeout),this.showTimeout=null)}buildMessageOptions(t){return{message:this.options.message,position:this.options.position,strategy:this.options.strategy,spacing:this.options.spacing,marker:this.options.marker,matchWidth:this.options.matchWidth,active:t,instant:this.showInstant}}scheduleShow(){if(Bo()){this.clearPendingShow(),this.showImmediate(!0);return}this.showTimeout===null&&(this.showTimeout=window.setTimeout(()=>{this.showTimeout=null,this.showImmediate(!0)},ss))}showImmediate(t=!1){this.options.disabled||(this.showInstant=Bo(),z.active&&z.active!==this&&z.active.hide(),z.active=this,nc(t),this.isActiveHere=!0,z.ensureMessage(this.options.target),z.applyOptionsToMessage(this.buildMessageOptions(!0),this.element))}show(){this.options.disabled||(this.clearPendingShow(),this.showImmediate())}hide(){this.clearPendingShow(),this.isActiveHere&&(this.isActiveHere=!1,z.active===this&&(z.applyOptionsToMessage(this.buildMessageOptions(!1),this.element),z.active=null,lc()))}update(t){const e=t.trigger!==void 0,i=this.options.disabled,o={message:t.message??this.options.message,position:t.position??this.options.position,strategy:t.strategy??this.options.strategy,spacing:t.spacing??this.options.spacing,marker:t.marker??this.options.marker,matchWidth:t.matchWidth??this.options.matchWidth,target:t.target??this.options.target,portalOff:t.portalOff??this.options.portalOff,disabled:t.disabled??this.options.disabled,trigger:t.trigger??Array.from(this.options.triggers)};if(e&&this.unbindListeners(),this.options=hc(o),e&&this.bindListeners(),!i&&this.options.disabled){this.hide();return}this.isActiveHere&&z.active===this&&(z.moveMessageTo(this.options.target),z.applyOptionsToMessage(this.buildMessageOptions(!0),this.element))}dispose(){this.clearPendingShow(),this.unbindListeners(),this.hide(),z.unregister(this)}}const It=class It{static resolveOrWarn(t,e){const i=lf(t);
23return i||(console.warn(`[AwcTooltip.${e}] target не разрешился в HTMLElement:`,t),null)}static attach(t,e){const i=It.resolveOrWarn(t,"attach");if(!i)return;const o=It.registry.get(i);o&&(o.dispose(),It.registry.delete(i));const a=new cf(i,hc(e));It.registry.set(i,a)}static detach(t){const e=It.resolveOrWarn(t,"detach");if(!e)return;const i=It.registry.get(e);i&&(i.dispose(),It.registry.delete(e))}static update(t,e){const i=It.resolveOrWarn(t,"update");if(!i)return;const o=It.registry.get(i);if(!o){console.warn("[AwcTooltip.update] target не зарегистрирован, вызовите attach сначала:",t);return}o.update(e)}static show(t){const e=It.resolveOrWarn(t,"show");if(!e)return;const i=It.registry.get(e);if(!i){console.warn("[AwcTooltip.show] target не зарегистрирован, вызовите attach сначала:",t);return}i.show()}static hide(t){const e=It.resolveOrWarn(t,"hide");if(!e)return;const i=It.registry.get(e);i&&i.hide()}static detachAll(){for(const t of It.registry.values())t.dispose();It.registry.clear()}};It.registry=new Map;let Zt=It;window.AwcTooltip={attach:Zt.attach.bind(Zt),detach:Zt.detach.bind(Zt),update:Zt.update.bind(Zt),show:Zt.show.bind(Zt),hide:Zt.hide.bind(Zt),detachAll:Zt.detachAll.bind(Zt)};const df=P`.awc-select-item{display:flex;align-items:center;position:relative;padding:6px 12px;transition:background-color var(--awc-duration-fast,.1s) ease;cursor:pointer;list-style-type:none;user-select:none;font:var(--awc-font-caption-1-regular)}:host([selected]) .awc-select-item{background-color:var(--colors-input-background)}:host([disabled]) .awc-select-item{touch-action:none;pointer-events:none;opacity:.5}:host([hidden]){display:none}.awc-select-item.no-padding{padding:0}.awc-item-focus:focus-visible::after{content:"";position:absolute;border:1px solid #839ff6;inset:1px;border-radius:var(--corner-radius-m)}.awc-select-item:hover{background-color:var(--colors-input-background)}.awc-select-item__value{outline:0;display:flex;justify-content:start;align-items:center;gap:var(--spacing-s);margin:0;padding:0;font:var(--awc-font-caption-1-regular);color:var(--colors-text)}`;var hf=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,Ee=(r,t,e,i)=>{for(var o=i>1?void 0:i?uf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&hf(t,e,o),o};const Cs="awc-select-item";s.AwcSelectItem=class extends te(C){constructor(){super(...arguments),this.selected=!1,this.disabled=!1}focus(){this.focusTarget.tabIndex=0,this.focusTarget.focus(),this.onFocus(this.value)}blur(){this.onBlur(this.value),this.focusTarget.tabIndex=-1}select(){this.selected=!0,this._onSelect([{value:this.value,selected:this.selected}])}_handleEvent(){this._onSelect([{value:this.value,selected:this.selected}]),this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}handleKeydown(t){(t.code==="Enter"||t.code==="Space")&&(this._onClickOption(),t.preventDefault(),t.stopPropagation())}_onClickOption(){if(this.disabled)return;const t=this.closest("awc-select")?.multiple??!1;this.selected=t?!this.selected:!0,this._handleEvent()}updated(t){super.updated(t),t.has("selected")&&t.get("selected")!==void 0&&this.dispatchEvent(new CustomEvent("awc-select-item-selected-changed",{bubbles:!0,composed:!0})),t.has("headLabel")&&this.selected&&this.dispatchEvent(new CustomEvent("awc-select-item-head-label-changed",{bubbles:!0,composed:!0}))}_handleClick(t){t.stopPropagation(),this._onClickOption()}render(){return f`<li role="option" aria-selected="${this.selected}" ?disabled="${this.disabled}" class="awc-select-item ${this.noPadding?"no-padding":""}" part="base" @keydown="${this.handleKeydown}" @click="${this._handleClick}" @blur="${this.blur}"><div class="awc-select-item__value awc-item-focus"><slot></slot></div></li>`}},s.AwcSelectItem.shadowRootOptions={...C.shadowRootOptions},s.AwcSelectItem.styles=[df],Ee([c({type:Boolean,reflect:!0})],s.AwcSelectItem.prototype,"selected",2),Ee([c({type:String,reflect:!0})],s.AwcSelectItem.prototype,"value",2),Ee([c({type:Boolean,reflect:!0})],s.AwcSelectItem.prototype,"disabled",2),Ee([c({type:String,attribute:"head-label"})],s.AwcSelectItem.prototype,"headLabel",2),Ee([c({type:Boolean,reflect:!0,attribute:"no-padding"})],s.AwcSelectItem.prototype,"noPadding",2),Ee([F("awc-select-option")],s.AwcSelectItem.prototype,"_onSelect",2),Ee([F("awc-select-option-focus")],s.AwcSelectItem.prototype,"onFocus",2),Ee([F("awc-select-option-blur")],s.AwcSelectItem.prototype,"onBlur",2),Ee([H(".awc-item-focus")],s.AwcSelectItem.prototype,"focusTarget",2),s.AwcSelectItem=Ee([I(Cs)],s.AwcSelectItem);const pf=P`.awc-select-button{padding:0 12px;gap:8px;width:100%;cursor:pointer;height:36px;display:flex;align-items:center;background:0 0;outline:0;border:1px solid transparent;font:var(--awc-font-text-medium-13);color:var(--colors-primary)}.awc-select-button:hover{background-color:var(--colors-input-background);transition:var(--awc-duration-fast,.1s) ease-in-out}.awc-select-button__icon{--awc-icon-fill:var(--colors-secondary);
23fill:var(--colors-secondary)}.awc-select-button:focus-visible{transition:border var(--awc-duration-fast,.1s) ease;border:1px solid #839ff6;border-radius:var(--corner-radius-m)}`;var ff=Object.defineProperty,wf=Object.getOwnPropertyDescriptor,Re=(r,t,e,i)=>{for(var o=i>1?void 0:i?wf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&ff(t,e,o),o};const uc="awc-select-button",gf="awc-select-button-create";s.AwcSelectButton=class extends C{constructor(){super(...arguments),this.slot="awc-button",this.icon=!1,this.staticButton=!1,this.dynamicButton=!1,this.isClick=!1}_handleClick(){if(this.isClick=!0,this._onClick(this.isClick),this.isClick&&this.textContent||this.label)return this.textContent=""}_handleKeyboard(t){if(t.code==="Enter"&&(this._handleClick(),this.isClick&&t.code&&this.textContent||this.label))return this.textContent=""}_handleLabelOrTextContent(){if(this.textContent&&this.label&&!this.icon)return f`${this.label} «${this.textContent}»`;if(this.textContent&&this.label)return f`${this.textContent}`;if(this.label)return f`${this.label}`}render(){return f`<button class="awc-select-button" part="base" @click="${this._handleClick}" @keydown="${this._handleKeyboard}" label="${this.label}" tabindex="0">${this.icon?f`<awc-icon type="icon" size="16" name="add_small"></awc-icon>`:""} ${this._handleLabelOrTextContent()}<slot></slot></button>`}},s.AwcSelectButton.styles=[pf],Re([c({type:String,reflect:!0})],s.AwcSelectButton.prototype,"slot",2),Re([c({type:String,reflect:!0})],s.AwcSelectButton.prototype,"label",2),Re([c({type:Boolean,reflect:!0})],s.AwcSelectButton.prototype,"icon",2),Re([c({type:Boolean,reflect:!0,attribute:"static-button"})],s.AwcSelectButton.prototype,"staticButton",2),Re([c({type:Boolean,reflect:!0,attribute:"dynamic-button"})],s.AwcSelectButton.prototype,"dynamicButton",2),Re([c({type:String})],s.AwcSelectButton.prototype,"copyLabel",2),Re([c()],s.AwcSelectButton.prototype,"textContent",2),Re([F(gf)],s.AwcSelectButton.prototype,"_onClick",2),s.AwcSelectButton=Re([I(uc)],s.AwcSelectButton);const vf=P`.awc-select-group{display:flex;flex-direction:column}.awc-select-group__label{color:var(--colors-secondary);font:var(--awc-font-caption-1-regular);padding:8px 12px 6px;margin:0}:host([hidden]){display:none}`;var _f=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,pc=(r,t,e,i)=>{for(var o=i>1?void 0:i?mf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&_f(t,e,o),o};const fc="awc-select-group";s.AwcSelectGroup=class extends C{render(){return f`<div class="awc-select-group" part="base"><p class="awc-select-group__label" part="label">${this.label}</p><div class="awc-select-group__content"><slot></slot></div></div>`}},s.AwcSelectGroup.styles=[vf],pc([c({type:String,reflect:!0})],s.AwcSelectGroup.prototype,"label",2),s.AwcSelectGroup=pc([I(fc)],s.AwcSelectGroup);const bf=P`:host{width:100%;display:block;--awc-select-max-height:220px;--_size-height:40px;--_size-row:20px;--_size-inline:10px;--_size-icons:10px;--_size-font:var(--awc-font-text-regular-14);--_head-height:var(--awc-select-min-height, var(--_size-height));--_content-block:max(0px, calc((var(--_head-height) - var(--_size-row)) / 2))}:host([size=extra-small]){--_size-height:24px;--_size-row:16px;--_size-inline:8px;--_size-icons:8px;--_size-font:var(--awc-font-caption-1-regular)}:host([size=small]){--_size-height:36px}
23:host([size=large]){--_size-height:48px}:host([multiple]){--_size-row:28px;--_size-inline:8px}:host([open]){position:relative;z-index:9999}.awc-select__main{width:100%;display:flex;flex-direction:column}.awc-select__label{max-width:max-content;display:inline-block;padding:0;margin-bottom:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-titles)}.awc-select__label-required{color:var(--colors-warning);margin-left:4px}.awc-select{outline:1px solid transparent;border-radius:var(--corner-radius-m);inset:-1px;transition:outline var(--awc-duration-fast,.1s) ease}.awc-select:focus-visible{outline:1px solid var(--colors-secondary)}:host([multiple]) .awc-select__content{flex-wrap:wrap;justify-content:flex-start;gap:var(--awc-select-chips-gap,4px);white-space:normal}.awc-select__chips{display:contents}:host([multiple][chips-overflow=counter]) .awc-select__content{flex:1 1 auto;min-width:0;flex-wrap:nowrap;white-space:nowrap;gap:var(--awc-select-chips-gap,4px)}:host([multiple][chips-overflow=counter]) .awc-select__chips{display:flex;flex:0 1 auto;min-width:0;flex-wrap:nowrap;align-items:center;gap:var(--awc-select-chips-gap,4px);overflow:hidden;position:relative}:host([multiple][chips-overflow=counter]) .awc-select__chips--measuring{visibility:hidden}:host([multiple][chips-overflow=counter]) .awc-select__chips awc-chips{flex-shrink:0;max-width:var(--awc-select-chip-max-width,none)}:host([multiple][chips-overflow=counter]) .awc-select__chip--collapsed{position:absolute;inset-inline-start:0;top:0;visibility:hidden;pointer-events:none}:host([multiple][chips-overflow=counter]) .awc-select__chips-counter{flex-shrink:0}.awc-select__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}.awc-select__content{margin:var(--awc-select-content-margin,var(--_content-block) var(--_size-inline));display:flex;align-items:center;font:var(--_size-font);color:var(--colors-text);white-space:nowrap;text-overflow:ellipsis;user-select:none;overflow:hidden;min-width:0}.awc-select__head-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.awc-select__icons{position:static;height:100%;display:flex;align-items:center;gap:var(--_size-icons);right:0;padding:0 var(--_size-icons);flex-shrink:0}.awc-select__icons awc-icon{cursor:pointer}.awc-select__reset-icon{cursor:pointer}.arrow-icon{transition:transform var(--awc-duration-slow,.3s) ease}.arrow-icon.arrow-rotated{transform:rotate(180deg)}.awc-select__head{position:relative;display:flex;align-items:center;justify-content:space-between;cursor:pointer;background-color:var(--colors-input-background);min-height:var(--_head-height);border-radius:var(--corner-radius-m)}:host([open]) .awc-select__head.border-radius{border-radius:var(--corner-radius-m) var(--corner-radius-m) 0 0}:host([open]) .awc-select__head.border-radius--reverse{border-radius:0 0 var(--corner-radius-m) var(--corner-radius-m)}.awc-select__placeholder{margin:0;color:var(--colors-secondary);font:var(--_size-font)}.awc-select__options{display:none;position:absolute;top:0;left:0;z-index:99999;width:100%;border-top:none;border-radius:0 0 var(--corner-radius-m) var(--corner-radius-m);background-color:var(--colors-card-surface);color:var(--colors-titles);box-shadow:0 0 0 1px #fffFFF0F inset,0 10px 20px 0 var(--colors-dropdown-shadow-color)}.awc-select-list{padding:0;margin:0;list-style-type:none;overflow-y:auto;max-height:min(var(--awc-select-max-height,220px),var(--awc-select-available-height,100vh))}:host([strategy=fixed]) .awc-select__options{position:fixed}.awc-select__options--open{display:block;cursor:auto;max-height:100vh;transition:opacity var(--awc-duration-base,.2s) ease;border-radius:4px}:host([disabled]){opacity:.5;cursor:not-allowed;pointer-events:none}:host([disabled]) .awc-select:focus{border:none}:host([disabled]) .awc-select:focus:before{border:none}:host([open]) .options--reverse{display:flex;flex-direction:column-reverse;box-shadow:0 -10px 20px 0 var(--colors-dropdown-shadow-color);border-radius:var(--corner-radius-m) var(--corner-radius-m) 0 0}.awc-reset-button{margin:0;border:none;background:0 0;display:flex;align-items:center;justify-content:center}.awc-select__search{position:relative;display:flex;align-items:center;background-color:var(--colors-card-surface);font:var(--awc-font-caption-1-regular);padding:4px;border-radius:4px;top:0;z-index:1}.awc-select__input{width:100%;border:none;padding:0 10px;position:relative;height:35px;border-radius:0;border-bottom:1px solid var(--colors-stroke);background-color:var(--colors-card-surface);color:var(--colors-text);font:inherit}.awc-select__options--open.options--reverse .awc-select__input{border:none;border-top:1px solid var(--colors-stroke)}.awc-select__options--open.options--reverse .awc-select__input:focus{transition:border var(--awc-duration-slow,.3s) ease;outline:0;border-top:1px solid #839ff6}.awc-select__input:focus{transition:border var(--awc-duration-slow,.3s) ease;outline:0;border-bottom:1px solid #839ff6}.awc-select-create{padding:1px}.awc-select__error,.awc-select__hint{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);overflow-wrap:anywhere}.awc-select__hint{color:var(--colors-secondary)}.awc-select__hint--hidden,.awc-select__label--hidden{display:none}.awc-select__error{color:var(--colors-warning)}.awc-select--error.awc-select:focus:before{border-color:var(--colors-warning)}:host([static-error][custom-error][required]) .awc-select{border:1px solid var(--colors-warning);border-radius:var(--corner-radius-m)}`,yf=P`:host{display:inline-block;contain:content}
23.awc-chips{display:flex;align-items:center;padding:4px 12px;gap:6px;font:var(--awc-font-text-regular-14);color:var(--colors-text);background-color:var(--colors-stroke-hover);border-radius:var(--corner-radius-2xl);transition:background-color var(--awc-duration-slow,.3s) ease-in-out}.awc-chips.awc-chips__avatar{padding:4px 12px 4px 3px}.awc-chips__reset{width:16px;height:16px;flex-shrink:0}:host([reset-button]){cursor:pointer}:host([reset-button]:hover) .awc-chips{background-color:var(--colors-stroke)}:host([reset-button]) .awc-chips__reset{fill:var(--colors-secondary);transition:fill var(--awc-duration-slow,.3s) ease-in-out}:host([reset-button]:hover) .awc-chips__reset{fill:var(--colors-primary)}`;var Cf=Object.defineProperty,Af=Object.getOwnPropertyDescriptor,Dr=(r,t,e,i)=>{for(var o=i>1?void 0:i?Af(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Cf(t,e,o),o};s.AwcChips=class extends C{constructor(){super(...arguments),this.resetButton=!1}_checkedAwcAvatar(){this.slotElement.assignedNodes().filter(e=>e.nodeName.toLowerCase()==="awc-avatar").length===1?this.chips.classList.add("awc-chips__avatar"):this.chips.classList.remove("awc-chips__avatar")}handleResetClick(){this._onRemoveChips(this.resetButton)}updated(t){super.updated(t),this._checkedAwcAvatar()}render(){return f`<div part="base" class="awc-chips"><slot @slotchange="${this._checkedAwcAvatar}"></slot>${this.resetButton?f`<svg part="reset" class="awc-chips__reset" @click="${this.handleResetClick}" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.70713 4.29291C5.3166 3.90239 4.68344 3.90239 4.29291 4.29291C3.90239 4.68344 3.90239 5.3166 4.29291 5.70713L6.58237 7.99658L4.29185 10.294C3.90191 10.6851 3.90286 11.3182 4.29397 11.7082C4.68508 12.0981 5.31824 12.0972 5.70818 11.7061L7.99659 9.4108L10.2929 11.7071C10.6834 12.0976 11.3166 12.0976 11.7071 11.7071C12.0976 11.3166 12.0976 10.6834 11.7071 10.2929L9.40868 7.99447L11.6902 5.70607C12.0802 5.31496 12.0792 4.68179 11.6881 4.29185C11.297 3.90191 10.6638 3.90286 10.2739 4.29397L7.99447 6.58025L5.70713 4.29291Z"/></svg>`:""}</div>`}},s.AwcChips.styles=[yf],Dr([c({type:Boolean,reflect:!0,attribute:"reset-button"})],s.AwcChips.prototype,"resetButton",2),Dr([F("awc-chips-reset")],s.AwcChips.prototype,"_onRemoveChips",2),Dr([H(".awc-chips")],s.AwcChips.prototype,"chips",2),Dr([H("slot")],s.AwcChips.prototype,"slotElement",2),s.AwcChips=Dr([I("awc-chips")],s.AwcChips);var xf=Object.defineProperty,kf=Object.getOwnPropertyDescriptor,X=(r,t,e,i)=>{for(var o=i>1?void 0:i?kf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&xf(t,e,o),o};const Sf="awc-select";s.AwcSelect=class extends te(C){constructor(){super(...arguments),this.value="",this.inputPlacholder="",this.html=!1,this.disabled=!1,this.required=!1,this.autoselectOff=!1,this.reset=!1,this.multiple=!1,this.search=!1,this.customError="",this.staticError=!1,this.error="",this.size="medium",this.strategy="absolute",this.chipsOverflow="wrap",this.validationMessage="",this.filteredOptions=[],this.isOptionListReverse=!1,this._visibleChipsCount=Number.POSITIVE_INFINITY,this._chipsMeasured=!1,this._lastAppliedValue=void 0,this._reconcileDepth=0,this._pendingReconcile=!1,this.inputId=St("awc-select"),this.errorId=St("awc-select-error"),this.slots=new he(this,"awc-select"),this._chipsMeasureRaf=0,this._chipsGeometryRaf=0,this._settlePasses=0,this._onInvalid=t=>{t.preventDefault(),this.validationTarget.focus()},this._defaultValue="",this._defaultFrozen=!1,this.focusedOptionIndex=-1,this._outsideClick=new pi(this,t=>t.includes(this)),this._boundDocumentClick=t=>this._handleDocumentClick(t)}_invalidateOptionsCache(){this._optionsCache=void 0,this._optionGroupsCache=void 0}get options(){if(this._optionsCache===void 0){const t=[...this.querySelectorAll(Cs)];if(t.length===0)return t;this._optionsCache=t}return this._optionsCache}get selectedOptions(){return this.options.filter(t=>t.selected)}get optionGroups(){if(this._optionGroupsCache===void 0){const t=[...this.querySelectorAll(fc)];if(t.length===0)return t;this._optionGroupsCache=t}return this._optionGroupsCache}get selectButtons(){return this.querySelector(uc)}_toggleOptionsList(){this.open?this._close():this._open()}_open(){this.open=!0,this._reconcile("selection")}_close(){this.open=!1,this.focusedOptionIndex=-1}_unhiddingOptions(){this.options.forEach(t=>t.removeAttribute("hidden")),this.optionGroups.forEach(t=>t.removeAttribute("hidden"))}
23_getItemValueAttribute(t){return t.value??t.getAttribute("value")??""}_getItemTextContent(t){return t.textContent?.trim()??""}_getItemHTMLContent(t){return os(t.outerHTML)}_optionValue(t){return this._getItemValueAttribute(t)||this._getItemTextContent(t)}_optionLabel(t){return this._getItemTextContent(t)||this._getItemValueAttribute(t)}_optionHeadLabel(t){return(t.headLabel??t.getAttribute("head-label")??"").trim()}_valueEquals(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((i,o)=>i===e[o]):t===e}_hasExplicitValue(){return this.multiple?Array.isArray(this.value)&&this.value.length>0:typeof this.value=="string"&&this.value!==""}_hasPendingValueCommand(){return this._valueEquals(this.value,this._lastAppliedValue)?!1:this._hasExplicitValue()||this._lastAppliedValue!==void 0}_isValueAppliedToSelection(){const t=this.selectedOptions.map(e=>this._optionValue(e));return this.multiple?Array.isArray(this.value)&&this._valueEquals(this.value,t):this.value===(t[0]??"")}_reconcile(t){if(this._reconcileDepth>0){this._pendingReconcile=!0;return}this._reconcileDepth++;try{do{this._pendingReconcile=!1;const e=t==="echo"&&this._hasPendingValueCommand()?"value":t;e==="value"?this._applyValueToOptions():e==="init"&&this._initializeSelection(),this._syncHead(),this._isValueAppliedToSelection()&&(this._lastAppliedValue=this.value),this._captureInitialValue(e)}while(this._pendingReconcile)}finally{this._reconcileDepth--}}_initializeSelection(){if(this._hasPendingValueCommand()){this._applyValueToOptions();return}if(this.selectedOptions.length>0){this._setSelectedElement();return}this.autoselectOff||this._setAutoSelectedFirstElement()}_syncHead(){if(this.selectedOptions.length===0){this.headContent="",this._updateSelectValue();return}this.selectedOptions.forEach(t=>{const e=this._optionHeadLabel(t);e?this.headContent=this._renderHeadLabel(e,this._optionLabel(t)):this.html&&t.outerHTML?(t.setAttribute("no-padding","true"),this.headContent=this._getItemHTMLContent(t)):this.headContent=this._optionLabel(t),t.removeAttribute("no-padding")}),this._updateSelectValue()}_renderHeadLabel(t,e){return!e||e===t?t:f`<span class="awc-select__head-label" aria-hidden="true">${t}</span><span class="awc-select__sr-only">${e}</span>`}_updateSelectValue(){if(this.multiple){const t=this.selectedOptions.map(e=>this._optionValue(e));this._valueEquals(t,this.value)||(this.value=t)}else{const t=this.selectedOptions[0];if(t){const e=this._optionValue(t);e!==this.value&&(this.value=e)}}this._updateFormData()}_applyValueToOptions(){const t=this.options;if(t.length!==0){if(this.multiple&&Array.isArray(this.value)){const e=this.value;t.forEach(i=>{i.selected=e.includes(this._optionValue(i))})}else if(!this.multiple&&typeof this.value=="string"){const e=this.value;let i=!1;t.forEach(o=>{!i&&this._optionValue(o)===e?(o.selected=!0,i=!0):o.selected=!1})}}}_handleItemSelectedChanged(t){if(this._reconcileDepth>0)return;const e=t.target;e&&(!this.multiple&&e.selected&&this.options.forEach(i=>{i!==e&&i.selected&&(i.selected=!1)}),this._reconcile("echo"))}_handleItemHeadLabelChanged(){this._reconcileDepth>0||this._reconcile("echo")}_handleSlotChange(){this._invalidateOptionsCache(),this._reconcile("init")}_singleSelection(t){t&&(this.options.forEach(e=>e.selected=!1),t.selected=!0,this._reconcile("selection"),this._updateChangeEvent(),this._close())}_multipleSelection(t){this._unhiddingOptions(),this.searchText&&this._clearInputValue(),t&&(this._reconcile("selection"),this._updateChangeEvent())}_handleOption(t){const e=t.target;e&&(this._unhiddingOptions(),this.multiple?this._multipleSelection(e):this._singleSelection(e))}_updateChangeEvent(){this._defaultFrozen=!0;const t=this.selectedOptions.map(e=>({value:e.value||e.textContent?.trim()||"",text:e.textContent?.trim()||"",selected:!0}));this._onChangeSelect(t)}_handleChipsClick(t,e){t.stopPropagation(),this._removeChipsItem(e)}get _isChipsCounterMode(){return this.multiple&&this.chipsOverflow==="counter"}get hiddenChipsCount(){return this._isChipsCounterMode?Math.max(0,this.selectedOptions.length-this._visibleChipsCount):0}_chipLabel(t){return this._optionLabel(t)}
23_renderChips(){const t=this.selectedOptions,e=this._isChipsCounterMode,i=e?Math.min(this._visibleChipsCount,t.length):t.length,o=t.slice(i),a={"awc-select__chips":!0,"awc-select__chips--measuring":e&&!this._chipsMeasured};return f`<div part="chips" class="${G(a)}">${t.map((n,d)=>{const l=e&&d>=i;return f`<awc-chips exportparts="base:chips-base" class="${G({"awc-select__chip--collapsed":l})}" aria-hidden="${D(l?"true":void 0)}" reset-button @awc-chips-reset="${h=>this._handleChipsClick(h,d)}" @click="${h=>h.stopPropagation()}">${this.html?os(n.innerHTML):n.textContent}</awc-chips>`})}</div>${e&&o.length?this._renderChipsCounter(o):""}`}_renderChipsCounter(t){const e=t.map(i=>this._chipLabel(i));return f`<awc-tooltip message="${e.join(`
24`)}" position="top"><awc-chips exportparts="base:chips-counter" class="awc-select__chips-counter">+${t.length}<span class="awc-select__sr-only">${e.join(", ")}</span></awc-chips></awc-tooltip>`}_removeChipsItem(t){const e=this.selectedOptions[t];e&&(e.selected=!1,this._reconcile("selection"),this._updateChangeEvent())}_ensureChipsObserver(){this._chipsResizeObserver||!this._isChipsCounterMode||typeof ResizeObserver>"u"||(this._chipsResizeObserver=new ResizeObserver(()=>{this._settlePasses=0,cancelAnimationFrame(this._chipsMeasureRaf),this._chipsMeasureRaf=requestAnimationFrame(()=>this._measureChipsOverflow())}))}_observeChipsTargets(){const t=this._chipsResizeObserver;if(!t||(t.disconnect(),!this._isChipsCounterMode))return;const e=this._chipsContentEl,i=this._chipsRowEl;!e||!i||(t.observe(e),i.querySelectorAll("awc-chips").forEach(o=>t.observe(o)))}_scheduleChipsMeasure(){this._isChipsCounterMode&&(cancelAnimationFrame(this._chipsGeometryRaf),this._chipsGeometryRaf=requestAnimationFrame(()=>{this._observeChipsTargets(),this._measureChipsOverflow()}))}_measureChipsOverflow(){if(!this._isChipsCounterMode)return;const t=this._chipsContentEl,e=this._chipsRowEl;if(!t||!e)return;const i=[...e.querySelectorAll("awc-chips")];if(i.length===0){this._commitVisibleCount(0);return}const o=t.clientWidth;if(o===0){this._chipsMeasured=!0;return}const a=parseFloat(getComputedStyle(e).columnGap)||0,n=i.map(w=>w.getBoundingClientRect().width),d=this._chipsCounterEl?.getBoundingClientRect().width??0,l=.5,h=n.reduce((w,g)=>w+g,0)+a*(n.length-1);let p;if(h<=o+l)p=i.length;else{const w=o-(d+a);let g=0,v=0;for(let m=0;m<n.length;m++){const b=n[m]+(v>0?a:0);if(g+b>w+l)break;g+=b,v++}p=Math.max(1,v)}this._chipsMeasured=!0,this._commitVisibleCount(p)}_commitVisibleCount(t){if(t===this._visibleChipsCount){this._settlePasses=0;return}this._visibleChipsCount=t,!(this._settlePasses>=s.AwcSelect.MAX_SETTLE_PASSES)&&(this._settlePasses++,this.updateComplete.then(()=>this._measureChipsOverflow()))}_buildFormData(){const t=new FormData;if(this.options.length===0)return(Array.isArray(this.value)?this.value:[this.value]).filter(Boolean).forEach(i=>t.append(this.name,i)),t;if(this.multiple&&Array.isArray(this.value))this.selectedOptions.forEach(e=>{this._appendOptionToFormData(t,e)});else if(!this.multiple&&typeof this.value=="string"){const e=this.selectedOptions[0];e&&this._appendOptionToFormData(t,e)}return t}_updateFormData(){this.setValue(this._buildFormData())}_appendOptionToFormData(t,e){const i=e.value||e.textContent.trim();t.append(this.name,i)}shouldFormValueUpdate(){return Array.isArray(this.value)&&this.multiple?this.value.length>0:this.value!==null&&this.value!==""}validityCallback(t){return bo(t,"select")}validationMessageCallback(t){this.customError&&!this.staticError?(this.validationMessage=t,this.validationMessage=this.customError):this.validationMessage=t}setCustomValidity(t){this.error=t}_setSelectedElement(){this.selectedOptions.length>=1&&!this.multiple&&this.selectedOptions.forEach((t,e)=>{e===0?t.selected=!0:t.selected=!1})}_setAutoSelectedFirstElement(){this.selectedOptions.length===0&&!this.multiple&&this.options.length>0&&(this.options[0].selected=!0)}_captureInitialValue(t){if(t==="value"&&this.hasUpdated){this._defaultFrozen=!0;return}this._defaultFrozen||!(t==="init"||t==="value")||(this._defaultValue=Array.isArray(this.value)?[...this.value]:this.value)}_defaultForReset(){const t=this._defaultValue;return this.multiple?Array.isArray(t)?[...t]:t?[t]:[]:Array.isArray(t)?t[0]??"":t}resetFormControl(){this.value=this._defaultForReset(),this._reconcile("value"),this._updateFormData(),this._close()}_clearSelection(){this._defaultFrozen=!0,this._reconcileDepth++;try{this.options.forEach(t=>t.selected=!1),this.value=this.multiple?[]:"",this._lastAppliedValue=this.value,this.headContent="",this.setValue(new FormData)}finally{this._reconcileDepth--}this._onChangeSelect([]),this._close()}_resetButton(){if(this.reset&&this.selectedOptions.length>0)return f`<awc-icon part="reset" type="icon" size="16" name="close_small" class="awc-select__reset-icon" @click="${this._handleResetClick}"></awc-icon>`}_handleResetClick(t){t.stopPropagation(),this._clearSelection()}_getNavigableOptions(){return(this.search&&this.searchText?this.filteredOptions:this.options.filter(e=>e.tagName==="AWC-SELECT-ITEM")).filter(e=>!e.disabled)}_handleOptionKeyboard(t){if(t.code==="Enter"||t.code==="Space")this._toggleOptionsList(),t.preventDefault(),t.stopPropagation();else if(!this.open&&["ArrowDown","ArrowUp"].includes(t.code))this._open(),t.preventDefault();else if(t.code==="Escape")this.open&&(this._close(),this._selectHead?.focu
24s()),t.preventDefault();else if(this.open&&["Home","End"].includes(t.code)){const e=this._getNavigableOptions();if(e.length===0){t.preventDefault();return}this.focusedOptionIndex=t.code==="Home"?0:e.length-1,e[this.focusedOptionIndex].focus(),this.scrollToFocusedOption(),t.preventDefault()}else if(this.open&&["ArrowDown","ArrowUp"].includes(t.code)){const e=this._getNavigableOptions();if(e.length===0){t.preventDefault();return}this.isOptionListReverse?(t.code==="ArrowUp"&&this.focusedOptionIndex--,t.code==="ArrowDown"&&this.focusedOptionIndex++):(t.code==="ArrowDown"&&this.focusedOptionIndex++,t.code==="ArrowUp"&&this.focusedOptionIndex--),this.focusedOptionIndex=Math.max(0,Math.min(this.focusedOptionIndex,e.length-1)),e[this.focusedOptionIndex].focus(),this.scrollToFocusedOption(),t.preventDefault()}}scrollToFocusedOption(){if(this.focusedOptionIndex<0)return;const e=this._getNavigableOptions()[this.focusedOptionIndex];e&&e.scrollIntoView({block:"nearest"})}_handleDocumentClick(t){this._outsideClick.isOutside(t)&&this._close()}_handleInput(){this.searchText=this.inputElement.value,this._buttonSearchTextUpdate(),this._onSearch(this.searchText),this._scheduleFilter()}_scheduleFilter(){this._filterRafId!==void 0&&cancelAnimationFrame(this._filterRafId),this._filterRafId=requestAnimationFrame(()=>{this._filterRafId=void 0,this._filterOptions()})}_handleInputKeydown(t){(t.code==="Enter"||t.code==="Space")&&this.open&&t.stopPropagation()}_buttonSearchTextUpdate(){if(this.selectButtons)return this.selectButtons.textContent=this.searchText}_staticCreateButton(){if(this.selectButtons.isClick){const e=this._buttonSearchTextUpdate();this._onCreateOption({value:e,selected:!0,text:e})}}_dynamicCreateOption(){if(this.selectButtons.isClick){const e=this._buttonSearchTextUpdate();this.createSelectItem(e,e,!0),this._onCreateOption({value:e,selected:!0,text:e}),this._clearInputValue()}}createSelectItem(t,e,i){const o=document.createElement(Cs);this.html?o.innerHTML=t:o.textContent=t,o.value=e??t,i&&(o.selected=!0,this.multiple||this.selectedOptions.forEach(a=>a.selected=!1)),this.appendChild(o),this._invalidateOptionsCache(),this.requestUpdate(),this._reconcile("selection"),this._unhiddingOptions()}handleCreateOption(t){if(this.inputElement){if(t.target&&this.inputElement.value==="")return;{const e=this.selectButtons.staticButton,i=this.selectButtons.dynamicButton;e&&this._staticCreateButton(),i&&this._dynamicCreateOption()}}}_filterOptions(){const t=this.searchText.toLowerCase();this.filteredOptions=this.options.filter(e=>{const o=!!e.textContent?.toLowerCase()?.includes(t),a=e.hasAttribute("hidden");return o&&a?e.removeAttribute("hidden"):!o&&!a&&e.setAttribute("hidden",""),o}),this._filterGroups(),this.scrollToFocusedOption()}_filterGroups(){this.optionGroups.forEach(t=>{Array.from(t.children).some(i=>!i.hasAttribute("hidden"))?t.removeAttribute("hidden"):t.setAttribute("hidden","")})}_showPlaceholderOrSelectItem(){return this.multiple&&this.placeholder?this.selectedOptions.length?this._renderChips():f`<p class="awc-select__placeholder">${this.placeholder}</p>`:this.multiple&&!this.placeholder?this._renderChips():this.headContent?this.headContent:f`<p class="awc-select__placeholder">${this.placeholder}</p>`}_renderInput(){return f`<div class="awc-select__search"><input class="awc-select__input" part="input" type="text" placeholder="${this.inputPlacholder}" autocomplete="off" tabindex="0" @input="${this._handleInput}" @keydown="${t=>this._handleInputKeydown(t)}" @click="${t=>t.stopPropagation()}"></div>`}_clearInputValue(){this.inputElement&&(this.searchText="",this.inputElement.value="")}_setupFloating(){if(!this._selectHead||!this._selectOptions)return;this._teardownFloating(),this._selectOptions.style.width=`${this._selectHead.offsetWidth}px`,this._selectOptions.dataset.placement="bottom-start";const t=this.strategy==="fixed",e=t?[]:_s(this._selectOptions);this._floatingSession=Oo(this._selectHead,this._selectOptions,null,{position:"bottom-start",strategy:t?"fixed":"absolute",spacing:0,matchReferenceWidth:!0,boundary:e,sizePadding:8,onAvailableSize:({availableHeight:i,floating:o})=>this._applyAvailableHeight(i,o),hideWhenClipped:!0,onPlacementChange:i=>
24{this.isOptionListReverse=i.startsWith("top"),this._selectOptions&&(this._selectOptions.dataset.placement=i)},onReferenceHidden:()=>queueMicrotask(()=>{this.open&&this._close()})})}_teardownFloating(){this._floatingSession?.destroy(),this._floatingSession=void 0,this.optionList?.style.removeProperty("--awc-select-available-height"),this._lastAvailableHeight=void 0}_applyAvailableHeight(t,e){const i=this.optionList;if(!i)return;const o=e.offsetHeight-i.offsetHeight,a=Math.round(Math.max(t-o,s.AwcSelect.MIN_LIST_HEIGHT));a!==this._lastAvailableHeight&&(this._lastAvailableHeight=a,i.style.setProperty("--awc-select-available-height",`${a}px`))}_renderLabel(t){const e={"awc-select__label":!0,"awc-select__label--hidden":!t};return f`<label for="${this.inputId}" id="${this.slots.labelId}" part="label" class="${G(e)}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}">${this.label}</slot>${this.required?f`<span class="awc-select__label-required">*</span>`:""}</label>`}_renderErrorAndHint(t,e,i){return f`<span class="${G({"awc-select__hint":!0,"awc-select__hint--hidden":!i})}" id="${this.slots.hintId}" part="helper-text"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span>${t&&e?f`<span part="error-message" class="awc-select__error" id="${this.errorId}">${e}</span>`:""}`}_computeErrorState(){const t=!!this.error,e=this.staticError&&this.required,i=this.showError&&!!this.validationMessage,o=t||e||i;let a="";return t?a=this.error:i?a=this.validationMessage:e&&(a=this.customError||this.validationMessage),{hasError:o,errorMessage:a}}_renderMultipleSelect(){const{hasError:t,errorMessage:e}=this._computeErrorState(),i=t&&!!e,o=this.slots.hasLabelSlot||!!this.label,a=this.slots.hasHintSlot||!!this.hint,n=Ae([a&&this.slots.hintId,i&&this.errorId]),d={"awc-select":!0,"awc-select--error":t},l={"awc-select__options":!0,"awc-select__options--open":this.open,"options--reverse":this.isOptionListReverse},h={"awc-select__head":!0,"border-radius":!0,"border-radius--reverse":this.isOptionListReverse},p=f`<awc-icon part="arrow" type="icon" size="16" name="select_arrow_down" class="arrow-icon ${this.open?"arrow-rotated":""}" @click="${w=>{w.stopPropagation(),this._toggleOptionsList()}}"></awc-icon>`;return f`<div part="base" class="awc-select__main">${this._renderLabel(o)}<div part="control" class="${G(d)}" id="${this.inputId}" name="${this.name}" .value="${this.value}" tabindex="0" aria-describedby="${D(n)}" aria-invalid="${i?"true":"false"}" ?autoselect-off="${this.autoselectOff}" ?disabled="${this.disabled}" ?required="${this.required}" multiple="multiple" @click="${this._toggleOptionsList}" @keydown="${this._handleOptionKeyboard}"><div class="${G(h)}" part="combobox"><div class="awc-select__content">${this._showPlaceholderOrSelectItem()}</div><div class="awc-select__icons">${this._resetButton()} ${p}</div></div><div class="${G(l)}" part="panel">${this.search?this._renderInput():""}<ul class="awc-select-list" part="listbox" role="listbox" aria-multiselectable="true" aria-labelledby="${D(o?this.slots.labelId:void 0)}" aria-label="${D(o?void 0:this.placeholder)}" tabindex="${D(this.open?void 0:"-1")}" @awc-select-option="${this._handleOption}" @awc-select-item-selected-changed="${this._handleItemSelectedChanged}" @awc-select-item-head-label-changed="${this._handleItemHeadLabelChanged}"><slot @slotchange="${this._handleSlotChange}"></slot></ul><div class="awc-select-create"><slot @awc-select-button-create="${this.handleCreateOption}" name="awc-button"></slot></div></div></div>${this._renderErrorAndHint(t,e,a)}</div>`}_renderSingleSelect(){const{hasError:t,errorMessage:e}=this._computeErrorState(),i=t&&!!e,o=this.slots.hasLabelSlot||!!this.label,a=this.slots.hasHintSlot||!!this.hint,n=Ae([a&&this.slots.hintId,i&&this.errorId]),d={"awc-select":!0,"awc-select--error":t},l={"awc-select__options":!0,"awc-select__options--open":this.open,"awc-select--error":t,"options--reverse":this.isOptionListReverse},h={"awc-select__head":!0,"border-radius":!0,"border-radius--reverse":this.isOptionListReverse},p=f`<awc-icon part="arrow" type="icon" size="16" name="select_arrow_down" class="arrow-icon ${this.open?"arrow-rotated":""}" @click="${w=>{w.stopPropagation(),this._toggleOptionsList()}}"></awc-icon>`;return f`<div part="base" class="awc-select__main">${this._renderLabel(o)}<div part="control" class="${G(d)}" id="${this.inputId}" name="${this.name}" .value="${this.value}" tabindex="0" aria-describedby="${D(n)}" aria-invalid="${i?"true":"false"}" ?disabled="${this.disabled}" ?required="${this.required}" ?autoselect-off="${this.autoselectOff}" @click="${this._toggleOptionsList}" @keydown="${this._handleOptionKeyboard}"><div class="${G(h)}" part="combobox"><div class="awc-select__content">${this._showPlaceholderOrSelectItem()}</div><div class="awc-select__icons">${this._resetButton()} ${p}</div></div><div class="${G(l)}" part="panel">${this.search?this._renderInput():""}<ul class="awc-select-list" part="listbox" role="listbox" aria-labelledby="${D(o?this.slots.labelId:void 0)}" aria-label="${D(o?void 0:this.placeholder)}" tabindex="${D(this.open?void 0:"-1")}" @awc-select-option="${this._handleOption}" @awc-select-item-selected-changed="${this._handleItemSelectedChanged}" @awc-select-item-head-label-changed="${this._handleItemHeadLabelChanged}">
24<slot @slotchange="${this._handleSlotChange}"></slot></ul><div class="awc-select-create"><slot @awc-select-button-create="${this.handleCreateOption}" name="awc-button"></slot></div></div></div>${this._renderErrorAndHint(t,e,a)}</div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this._onInvalid),this._invalidateOptionsCache(),ye(()=>this._reconcile("init"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._onInvalid),document.removeEventListener("click",this._boundDocumentClick),this._teardownFloating(),this._filterRafId!==void 0&&(cancelAnimationFrame(this._filterRafId),this._filterRafId=void 0),cancelAnimationFrame(this._chipsMeasureRaf),cancelAnimationFrame(this._chipsGeometryRaf),this._chipsResizeObserver?.disconnect()}firstUpdated(){this._isChipsCounterMode&&(this._ensureChipsObserver(),this._scheduleChipsMeasure(),document.fonts?.ready.then(()=>this._scheduleChipsMeasure()))}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("multiple"))&&(this._hasPendingValueCommand()?this._reconcile("value"):this._valueEquals(this.value,this._lastAppliedValue)||(this._lastAppliedValue=this.value)),t.has("html")&&this.hasUpdated&&this._reconcile("selection")}updated(t){super.updated(t),wi(this,t,()=>this._buildFormData()),t.has("open")&&(this.open?(this._setupFloating(),requestAnimationFrame(()=>{this.open&&(document.addEventListener("click",this._boundDocumentClick),this.search&&this.inputElement.focus())})):(document.removeEventListener("click",this._boundDocumentClick),this._unhiddingOptions(),this._teardownFloating(),this._clearInputValue()),this.dispatchEvent(new CustomEvent("awc-select-open-change",{detail:{open:this.open},bubbles:!0,composed:!0}))),t.has("strategy")&&this.open&&!t.has("open")&&this._setupFloating(),this.disabled&&this.open&&this._close(),t.has("searchText")&&this._buttonSearchTextUpdate(),t.has("multiple")&&this._reconcile("selection"),t.has("autoselectOff")&&this._reconcile("init"),(t.has("chipsOverflow")||t.has("multiple")||t.has("html")||t.has("value")||t.has("headContent"))&&(this._isChipsCounterMode?(this._ensureChipsObserver(),this._settlePasses=0,this._scheduleChipsMeasure()):(this._chipsResizeObserver?.disconnect(),this._visibleChipsCount=Number.POSITIVE_INFINITY,this._chipsMeasured=!1))}render(){return this.multiple?this._renderMultipleSelect():this._renderSingleSelect()}},s.AwcSelect.MAX_SETTLE_PASSES=2,s.AwcSelect.MIN_LIST_HEIGHT=96,s.AwcSelect.formControlValidators=[fi,mo],s.AwcSelect.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcSelect.styles=[kr,bf],X([c({type:String,reflect:!0})],s.AwcSelect.prototype,"name",2),X([c()],s.AwcSelect.prototype,"value",2),X([c({type:String,reflect:!0})],s.AwcSelect.prototype,"placeholder",2),X([c({type:String,reflect:!0})],s.AwcSelect.prototype,"label",2),X([c({type:String,attribute:"input-placeholder"})],s.AwcSelect.prototype,"inputPlacholder",2),X([c({type:String,reflect:!0})],s.AwcSelect.prototype,"hint",2),X([c({type:Boolean,reflect:!0})],s.AwcSelect.prototype,"html",2),X([c({type:Boolean,reflect:!0})],s.AwcSelect.prototype,"open",2),X([c({type:Boolean,reflect:!0})],s.AwcSelect.prototype,"disabled",2),X([c({type:Boolean,reflect:!0})],s.AwcSelect.prototype,"required",2),X([c({type:Boolean,reflect:!0,attribute:"autoselect-off"})],s.AwcSelect.prototype,"autoselectOff",2),X([c({type:Boolean,reflect:!0})],s.AwcSelect.prototype,"reset",2),X([c({type:Boolean,reflect:!0})],s.AwcSelect.prototype,"multiple",2),X([c({type:Boolean,reflect:!0})],s.AwcSelect.prototype,"search",2),X([c({reflect:!0,attribute:"custom-error"})],s.AwcSelect.prototype,"customError",2),X([c({type:Boolean,reflect:!0,attribute:"static-error"})],s.AwcSelect.prototype,"staticError",2),X([c({type:String,reflect:!0,attribute:"error",useDefault:!0})],s.AwcSelect.prototype,"error",2),X([c({type:String,reflect:!0,useDefault:!0})],s.AwcSelect.prototype,"size",2),X([c({type:String,reflect:!0,useDefault:!0})],s.AwcSelect.prototype,"strategy",2),X([c({type:String,reflect:!0,attribute:"chips-overflow"})],s.AwcSelect.prototype,"chipsOverflow",2),X([F("awc-select-search")],s.AwcSelect.prototype,"_onSearch",2),X([F("awc-create-option")],s.AwcSelect.prototype,"_onCreateOption",2),X([F("awc-select-change")],s.AwcSelect.prototype,"_onChangeSelect",2),X([H(".awc-select__input")],s.AwcSelect.prototype,"inputElement",2),X([H(".awc-select")],s.AwcSelect.prototype,"validationTarget",2),X([H(".awc-select-list")],s.AwcSelect.prototype,"optionList",2),X([H(".awc-select")],s.AwcSelect.prototype,"_selectHead",2),X([H(".awc-select__options")],s.AwcSelect.prototype,"_selectOptions",2),X([H(".awc-select__content")],s.AwcSelect.prototype,"_chipsContentEl",2),X([H(".awc-select__chips")],s.AwcSelect.prototype,"_chipsRowEl",2),X([H(".awc-select__chips-counter")],s.AwcSelect.prototype,"_chipsCounterEl",2),X([M()],s.AwcSelect.prototype,"validationMessage",2),X([M()],s.AwcSelect.prototype,"headContent",2),X([M()],s.AwcSelect.prototype,"searchText",2),X([M()],s.AwcSelect.prototype,"filteredOptions",2),X([M()],s.AwcSelect.prototype,"isOptionListRever
24se",2),X([M()],s.AwcSelect.prototype,"_visibleChipsCount",2),X([M()],s.AwcSelect.prototype,"_chipsMeasured",2),s.AwcSelect=X([I(Sf)],s.AwcSelect);const $f=P`:host{display:block;contain:content}.awc-die{overflow:hidden;position:relative;padding:8px 14px 8px 16px;max-height:44px;height:calc(44px - 16px);display:flex;align-items:center;justify-content:space-between;border-radius:var(--corner-radius-s);gap:var(--spacing-sm);z-index:1}.awc-die::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;opacity:var(--awc-opacity,.1);background-color:var(--awc-die-color);z-index:-1}.awc-die::after{content:'';position:absolute;left:0;height:100%;width:3px;background-color:var(--awc-die-color)}.awc-die__main{position:relative;overflow:hidden;width:100%;height:22px;display:flex;align-items:center;gap:var(--spacing-s)}.awc-die__content{font:var(--awc-font-text-medium-15);color:var(--colors-titles);position:absolute;margin:0;white-space:nowrap}.awc-die__content.awc-die__content--edit{outline:0;padding:0;width:100%;border:none;background-color:rgba(255,255,255,0);font:var(--awc-font-text-medium-15);color:var(--colors-titles)}.awc-die__icon{cursor:move;position:relative;display:flex}.awc-die__slotted{display:flex;align-items:center;justify-content:space-between;gap:16px}`;const Tf=Symbol.for(""),Ef=r=>{if(r?.r===Tf)return r?._$litStatic$},wc=new Map,Lf=r=>(t,...e)=>{const i=e.length;let o,a;const n=[],d=[];let l,h=0,p=!1;for(;h<i;){for(l=t[h];h<i&&(a=e[h],(o=Ef(a))!==void 0);)l+=o+t[++h],p=!0;h!==i&&d.push(a),n.push(l),h++}if(h===i&&n.push(t[i]),p){const w=n.join("$$lit$$");(t=wc.get(w))===void 0&&(n.raw=n,wc.set(w,t=n)),e=d}return r(t,...e)},If=Lf(S);var Of=Object.defineProperty,Mf=Object.getOwnPropertyDescriptor,ze=(r,t,e,i)=>{for(var o=i>1?void 0:i?Mf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Of(t,e,o),o};s.AwcDie=class extends C{constructor(){super(...arguments),this.text="",this.placeholder="",this.editing=!1,this.color="--colors-primary"}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleFocus),this.addEventListener("blur",this.handleBlur),this.addEventListener("dblclick",this.handleMouseDown)}handleFocus(){this._onFocus(this.text)}handleBlur(){this._onBlur(this.text),this.stopEditing(),this.triggerChange()}handleMouseDown(){this.startEditing(),this.setCursorToEnd()}handleInput(){this.contentElement&&(this.text=this.contentElement.value)}handleEnterKey(t){t.key==="Enter"&&(t.preventDefault(),this.handleFocus(),this.blur())}setCursorToEnd(){if(this.contentElement){const t=this.contentElement.value.length;this.contentElement.setSelectionRange(t,t)}}startEditing(){this.editing=!0}stopEditing(){this.editing=!1}triggerChange(){this._onChange(this.text)}updated(t){super.updated(t),t.has("editing")?(this._renderEditMode(),this.contentElement&&this.contentElement.focus()):this._renderReadOnlyMode()}_renderEditMode(){return f`<input type="text" class="awc-die__content awc-die__content--edit" placeholder="${this.placeholder}" .value="${Ye(this.text)}" @input="${this.handleInput}" @keyup="${this.handleEnterKey}">`}_renderReadOnlyMode(){return f`<p class="awc-die__content">${this.text}</p>`}_renderIcon(){const t=If`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 5C1.44772 5 1 5.44772 1 6C1 6.55228 1.44772 7 2 7H14C14.5523 7 15 6.5523 15 6C15 5.44772 14.5523 5 14 5H2ZM2 9C1.44772 9 1 9.44772 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44772 14.5523 9 14 9H2Z" fill="#919BB6"/></svg>`;return f`<div class="awc-die__icon">${t}</div>`}render(){const t=this.color&&this.color.startsWith("--");return f`<div part="base" class="awc-die" style="${t?`--awc-die-color: var(${this.color})`:`--awc-die-color: ${this.color}`}">${this._renderIcon()}<div class="awc-die__main">${this.editing?this._renderEditMode():this._renderReadOnlyMode()}</div><div class="awc-die__slotted"><slot></slot></div></div>`}},s.AwcDie.styles=[$f],ze([c({type:String})],s.AwcDie.prototype,"text",2),ze([c({type:String})],s.AwcDie.prototype,"placeholder",2),ze([c({type:Boolean,reflect:!0})],s.AwcDie.prototype,"editing",2),ze([c({type:String,attribute:"color"})],s.AwcDie.prototype,"color",2),ze([F("awc-die-change")],s.AwcDie.prototype,"_onChange",2),ze([F("awc-die-focus")],s.AwcDie.prototype,"_onFocus",2),ze([F("awc-die-blur")],s.AwcDie.prototype,"_onBlur",2),ze([H(".awc-die__content--edit")],s.AwcDie.prototype,"contentElement",2),s.AwcDie=ze([I("awc-die")],s.AwcDie);const Pf=P`.awc-stager{overflow:hidden;border-radius:var(--corner-radius-circular)}.awc-stager__progress{display:flex;align-items:center;gap:2px;width:100%;height:10px;border-radius:var(--corner-radius-s)}.awc-stager__item{width:100%;background-color:var(--colors-stroke-hover);height:inherit}.awc-stager__item--current{background-color:var(--colors-primary)}`;var Df=Object.defineProperty,Bf=Object.getOwnPropertyDescriptor,Br=(r,t,e,i)=>{for(var o=i>1?void 0:i?Bf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Df(t,e,o),o};s.AwcStager=class extends C{constructor(){super(...arguments),this.steps=5,this.current=2,this.stepColor="--colors-primary",this._connected=!1}connectedCallback(){super.connectedCallback(),this._connected=!0,this._stepUpdater()}_handleChange(){this._onChange(this.current)}_colorUpdater(t){t&&(this.stepColor.startsWith("--")?t.style.cssText=`background-color: var(${this.stepColor})`:t.style.cssText=`background-color: ${this.stepColor}`)}_stepUpdater(){if(!this._connected)return;let t=Number(this.current);(isNaN(t)||t<1)&&(t=1,this.current=t),(this.shadowRoot?.querySelectorAll(".awc-stager__item")).forEac
24h((i,o)=>{const n=o+1<t+1;i.classList.toggle("awc-stager__item--current",n)?this._colorUpdater(i):i.style.cssText=""})}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="step-color"&&i!==null&&(this.stepColor=i,this._stepUpdater())}updated(t){super.updated(t),t.has("current")&&(this._stepUpdater(),this._handleChange())}render(){return f`<div class="awc-stager" part="base"><div class="awc-stager__progress" part="track">${this._renderProgress()}</div></div>`}_renderProgress(){return Array.from({length:this.steps},()=>f`<div class="awc-stager__item" part="step"></div>`)}},s.AwcStager.styles=[Pf],Br([c({type:Number,reflect:!0})],s.AwcStager.prototype,"steps",2),Br([c({type:Number,reflect:!0})],s.AwcStager.prototype,"current",2),Br([c({type:String,attribute:"step-color"})],s.AwcStager.prototype,"stepColor",2),Br([F("awc-stager-change")],s.AwcStager.prototype,"_onChange",2),s.AwcStager=Br([I("awc-stager")],s.AwcStager);const Vf=P`:host{display:inline-flex;--awc-user-info-name-color:var(--colors-titles);--awc-user-info-status-color:var(--colors-secondary);--awc-user-info-name-font-size:var(--awc-font-text-regular-14);--awc-user-info-description-font-size:var(--awc-font-caption-2-regular)}p{margin:0}.awc-user-info__wrapper{display:flex;flex-direction:column;gap:var(--spacing-sm)}.awc-user-info--link{text-decoration:none}.awc-user-info--link .awc-user-info__name{transition:color var(--awc-duration-base,.25s) ease-in-out}.awc-user-info--link:hover .awc-user-info__name{color:var(--colors-link-hover)}.awc-user-info__main{display:flex;align-items:center;gap:var(--spacing-sm)}.awc-user-info__description{display:flex;flex-direction:column;gap:var(--spacing-xs)}.awc-user-info__description--reverse{flex-direction:column-reverse}.awc-user-info__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:var(--awc-user-info-name-font-size);color:var(--awc-user-info-name-color);max-width:var(--awc-user-info-name-max-width,100%)}.awc-user-info__status{font:var(--awc-user-info-description-font-size);color:var(--awc-user-info-status-color)}.awc-user-info__additional{display:none;font:var(--awc-font-text-regular-14);padding:12px 16px;border-radius:0 var(--corner-radius-l) var(--corner-radius-l) var(--corner-radius-l);overflow-wrap:anywhere}.awc-user-info__additional.empty:not(.awc-user-info__additional--none){display:block}.awc-user-info__additional--complete{background-color:rgba(53,211,172,.1)}.awc-user-info__additional--complete{color:var(--colors-success)}.awc-user-info__additional--fail{background-color:rgba(255,113,136,.1)}.awc-user-info__additional--fail{color:var(--colors-warning)}`;var Hf=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Wt=(r,t,e,i)=>{for(var o=i>1?void 0:i?Rf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Hf(t,e,o),o};s.AwcUserInfo=class extends C{constructor(){super(...arguments),this.reverse=!1,this.status="none",this.target="_self",this.avatatColor="global-blue-400",this.avatarSize="32",this.labelTooltip=!1}render(){return this.href?f`<div class="awc-user-info__wrapper" part="base"><a class="awc-user-info awc-user-info--link" href="${this.href}" target="${this.target}" name="${this.name}" ?reverse="${this.reverse}"><div class="awc-user-info__main"><awc-avatar .size="${this.avatarSize}" label="${this.label||this.name}" ?label-tooltip="${this.labelTooltip}" image-link="${this.avatarLink}" status="${this.status}" status-tooltip="${this.statusTooltip||A}" color="${this.avatatColor}" custom-color="${this.avatarCustomColor}"></awc-avatar><div class="awc-user-info__description ${this.reverse?"awc-user-info__description--reverse":""}">${this.name?f`<p class="awc-user-info__name" part="name">${this.name}</p>`:""} ${this.description?f`<p class="awc-user-info__status" part="description">${this.description}</p>`:""}</div></div></a></div>`:f`<div class="awc-user-info__wrapper" part="base"><div class="awc-user-info" name="${this.name}" ?reverse="${this.reverse}"><div class="awc-user-info__main"><awc-avatar .size="${this.avatarSize}" label="${this.label||this.name}" ?label-tooltip="${this.labelTooltip}" image-link="${this.avatarLink}" status="${this.status}" status-tooltip="${this.statusTooltip||A}" color="${this.avatatColor}" custom-color="${this.avatarCustomColor}"></awc-avatar><div class="awc-user-info__description ${this.reverse?"awc-user-info__description--reverse":""}">${this.name?f`<p class="awc-user-info__name" part="name">${this.name}</p>`:""} ${this.description?f`<p class="awc-user-info__status" part="description">${this.description}</p>`:""}</div></div></div></div>`}},s.AwcUserInfo.styles=[Vf],Wt([c({type:String,reflect:!0})],s.AwcUserInfo.prototype,"name",2),Wt([c({type:String,reflect:!0})],s.AwcUserInfo.prototype,"description",2),Wt([c({type:Boolean,reflect:!0})],s.AwcUserInfo.prototype,"reverse",2),Wt([c({type:String,reflect:!0,attribute:"avatar-status"})],s.AwcUserInfo.prototype,"status",2),Wt([c({type:String,attribute:"avatar-image"})],s.AwcUserInfo.prototype,"avatarLink",2),Wt([c({type:String})],s.AwcUserInfo.prototype,"target",2),Wt([c({type:String,attribute:"avatar-custom-color"})],s.AwcUserInfo.prototype,"avatarCustomColor",2),Wt([c({type:String})],s.AwcUserInfo.prototype,"href",2),Wt([c({type:String,attribute:"avatar-color"})],s.AwcUserInfo.prototype,"avatatColor",2),Wt([c({type:String,attribute:"avatar-size"})],s.AwcUserInfo.prototype,"avatarSize",2),Wt([c({type:String,reflect:!0})],s.AwcUserInfo.prototype,"label",2),Wt([c({type:Boolean,reflect:!0,attribute:"label-tooltip"})],s.AwcUserInfo.prototype,"labelTooltip",2),Wt([c({type:String,reflect:!0,attribute:"status-tooltip"})],s.AwcUserInfo.prototype,"statusTooltip",2),s.AwcUserInfo=Wt([I("awc-user-info")],s.AwcUserInfo);const zf=P`:host{display:inline-block}
24.awc-button-group{display:inline-flex;align-items:center}:host([disabled]) .awc-button-group{pointer-events:none;opacity:.5;touch-action:none}`,Ff=P`:host{display:inline-block}.awc-button-group-item{position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;margin:0;height:36px;max-height:36px;min-width:36px;padding:5px;border-radius:var(--corner-radius-s);border:1px solid var(--colors-stroke);background-color:var(--colors-card-surface);font:var(--awc-font-text-regular-14);color:var(--colors-text);border-top:1px solid var(--colors-stroke);border-bottom:1px solid var(--colors-stroke);transition:border-color var(--awc-duration-base,.2s) ease}.awc-button-group-item.first{border-right:1px solid var(--colors-stroke);border-radius:var(--corner-radius-s) 0 0 var(--corner-radius-s)}.awc-button-group-item.last{border-left:none;border-radius:0 var(--corner-radius-s) var(--corner-radius-s) 0}.awc-button-group-item.first.last{border-right:1px solid var(--colors-stroke);border-left:1px solid var(--colors-stroke);border-radius:var(--corner-radius-s)}.awc-button-group-item.inner{border-radius:0;border-top:1px solid var(--colors-stroke);border-bottom:1px solid var(--colors-stroke);border-left:none;border-right:none;transition:color var(--awc-duration-slow,.3s) ease-in-out 0s}.awc-button-group-item.inner-last{border-left:none;border-right:1px solid var(--colors-stroke)}.awc-button-group-item>::slotted(awc-icon){transition:fill var(--awc-duration-slow,.3s) ease-in-out}.awc-button-group-item:hover{color:var(--colors-primary)}.awc-button-group-item:hover>::slotted(awc-icon){fill:var(--colors-primary)}:host([expanded]) .awc-button-group-item{padding:8px 20px}:host([readonly]) .awc-button-group-item{pointer-events:none;touch-action:none}:host([disabled]) .awc-button-group-item{pointer-events:none;touch-action:none;opacity:.5}.awc-button-group-item:focus,.awc-button-group-item:focus-visible{outline:0}.awc-button-group-item.inner-last:focus-visible,.awc-button-group-item:focus-visible{border:1px solid var(--colors-secondary)}.awc-button-group-item.first:focus-visible::before{border-radius:var(--corner-radius-l) 0 0 var(--corner-radius-l)}.awc-button-group-item.last:focus-visible::before{border-radius:0 var(--corner-radius-l) var(--corner-radius-l) 0}.awc-button-group-item.first.last:focus-visible::before{border-radius:var(--corner-radius-l)}.awc-button-group-item.inner:focus-visible::before{border-radius:0}`;var Nf=Object.defineProperty,jf=Object.getOwnPropertyDescriptor,Vr=(r,t,e,i)=>{for(var o=i>1?void 0:i?jf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Nf(t,e,o),o};const gc="awc-button-group-item";s.AwcButtonGroupItem=class extends C{constructor(){super(...arguments),this.expanded=!1,this.readonly=!1,this.disabled=!1}render(){return f`<button ?readonly="${this.readonly}" ?expanded="${this.expanded}" ?disabled="${this.disabled}" class="awc-button-group-item ${this.position}" part="base"><slot></slot></button>`}},s.AwcButtonGroupItem.styles=[Ff],Vr([c({type:Boolean,reflect:!0})],s.AwcButtonGroupItem.prototype,"expanded",2),Vr([c({type:Boolean,reflect:!0})],s.AwcButtonGroupItem.prototype,"readonly",2),Vr([c({type:Boolean,reflect:!0})],s.AwcButtonGroupItem.prototype,"disabled",2),Vr([c({type:String})],s.AwcButtonGroupItem.prototype,"position",2),s.AwcButtonGroupItem=Vr([I(gc)],s.AwcButtonGroupItem);var Uf=Object.defineProperty,Zf=Object.getOwnPropertyDescriptor,vc=(r,t,e,i)=>{for(var o=i>1?void 0:i?Zf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Uf(t,e,o),o};const Wf="awc-button-group";s.AwcButtonGroup=class extends C{constructor(){super(...arguments),this.disabled=!1}get buttons(){return[...this.querySelectorAll(gc)]}_checkInternalButtonGroup(){this.buttons&&this.buttons.length&&this._combiningButtons(this.buttons)}_combiningButtons(t){if(!t||t.length===0)return;const e=t.length===1,i=t.length===2;t.forEach((o,a)=>{e?o.position="first last":i?a===0?o.position="first":o.position="last":a===0?o.position="first":a===t.length-1?o.position="last":a===t.length-2?o.position="inner inner
24-last":o.position="inner"})}render(){return f`<div class="awc-button-group" part="base"><slot @slotchange="${this._checkInternalButtonGroup}"></slot></div>`}},s.AwcButtonGroup.styles=[zf],vc([c({type:Boolean,reflect:!0})],s.AwcButtonGroup.prototype,"disabled",2),s.AwcButtonGroup=vc([I(Wf)],s.AwcButtonGroup);const Gf=P`:host{display:block;--awc-accordion-item-box-shadow:inset 0 -1px 0 0 var(--colors-stroke);--awc-accordio-color-title:var(--colors-titles)}button{margin:0;padding:0;border:none;background:0 0}.awc-accordion-item{box-shadow:var(--awc-accordion-item-box-shadow);color:var(--colors-text)}.awc-accordion-item__button{position:relative;cursor:pointer;padding-right:16px;min-block-size:60px;width:100%;display:flex;align-items:center;justify-content:space-between;font:var(--awc-font-headline-medium-16);color:var(--awc-accordio-color-title)}.awc-accordion-item__button:focus-visible{outline:1px solid var(--colors-focus,#919bb6);border-radius:var(--corner-radius-m)}.awc-accordion-item__arrow{transition:transform var(--awc-duration-slow,.3s) ease-in-out}:host([active]) .awc-accordion-item__arrow{transform:rotate(180deg)}:host([disabled]) .awc-accordion-item__button{opacity:.5;pointer-events:none;touch-action:none}:host([disabled][active]) .awc-accordion-item__wrapper{opacity:.5;pointer-events:none;touch-action:none}.awc-accordion-item__wrapper{display:grid;opacity:0;grid-template-columns:minmax(0,1fr);grid-template-rows:0fr;transition:padding var(--awc-duration-slow,.3s),opacity var(--awc-duration-slow,.3s),grid-template-rows var(--awc-duration-slow,.3s)}.awc-accordion-item__wrapper.active{opacity:1;grid-template-rows:1fr;padding:0 0 16px 0}.awc-accordion-item__content{overflow:hidden}.awc-accordion-item__content--settled{overflow-x:clip;overflow-y:visible;margin-inline:-12px;padding-inline:12px}`;var qf=Object.defineProperty,Yf=Object.getOwnPropertyDescriptor,yi=(r,t,e,i)=>{for(var o=i>1?void 0:i?Yf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&qf(t,e,o),o};const _c="awc-accordion-item";s.AwcAccordionItem=class extends C{constructor(){super(...arguments),this.active=!1,this.disabled=!1,this._settled=!1,this._onSettle=()=>{this._clearSettle(),this._settled=this.active}}_toggleActive(){this.disabled||(this.active=!this.active,this._onActive(this.active))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.active&&(this._settled=!0)}disconnectedCallback(){super.disconnectedCallback(),this._clearSettle()}willUpdate(t){if(super.willUpdate(t),!t.has("active"))return;if(this._clearSettle(),!this.active){this._settled=!1;return}const e=this._transitionMs();if(t.get("active")===void 0||e===0){this._settled=!0;return}this._armSettle(e)}_transitionMs(){if(!this._wrapper)return 0;const t=getComputedStyle(this._wrapper);if(t.transitionProperty==="none")return 0;const e=t.transitionProperty.split(","),i=this._msList(t.transitionDuration),o=this._msList(t.transitionDelay);if(!i.length)return 0;let a=0;for(let n=0;n<e.length;n++){const d=o.length?o[n%o.length]:0;a=Math.max(a,Math.max(0,i[n%i.length]+d))}return a}_msList(t){return t.split(",").map(e=>parseFloat(e)*1e3).filter(e=>!Number.isNaN(e))}_armSettle(t){this._settleTimer=window.setTimeout(this._onSettle,t+50)}_clearSettle(){this._settleTimer!==void 0&&(clearTimeout(this._settleTimer),this._settleTimer=void 0)}render(){const t=S`<svg part="arrow" class="awc-accordion-item__arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.29289 8.29289C6.68342 7.90237 7.31658 7.90237 7.70711 8.29289L12 12.5858L16.2929 8.29289C16.6834 7.90237 17.3166 7.90237 17.7071 8.29289C18.0976 8.68342 18.0976 9.31658 17.7071 9.70711L12.7071 14.7071C12.3166 15.0976 11.6834 15.0976 11.2929 14.7071L6.29289 9.70711C5.90237 9.31658 5.90237 8.68342 6.29289 8.29289Z" fill="#919BB6"/></svg>`;return f`<div class="awc-accordion-item" part="base"><button tabindex="0" @click="${this._toggleActive}" ?disabled="${this.disabled}" class="awc-accordion-item__button" part="toggle" type="button">${this.title} ${t}</button><section class="awc-accordion-item__wrapper ${this.active?"active":""}" part="body"><div ?inert="${!this.active}" class="awc-accordion-item__content ${this.active&&this._settled?"awc-accordion-item__content--settled":""}" part="content"><slot></slot></div></section></div>`}},s.AwcAccordionItem.styles=[Gf],yi([c({type:String,reflect:!0})],s.AwcAccordionItem.prototype,"title",2),yi([c({type:Boolean,reflect:!0})],s.AwcAccordionItem.prototype,"active",2),yi([c({type:Boolean,reflect:!0})],s.AwcAccordionItem.prototype,"disabled",2),yi([F("awc-accordion-toggle")],s.AwcAccordionItem.prototype,"_onActive",2),yi([H(".awc-accordion-item__wrapper")],s.AwcAccordionItem.prototype,"_wrapper",2),yi([M()],s.AwcAccordionItem.prototype,"_settled",2),s.AwcAccordionItem=yi([I(_c)],s.AwcAccordionItem);const Kf=P`:host{display:block}:host([disabled]){opacity:.5;pointer-events:none;touch-action:none}`;var Xf=Object.defineProperty,Jf=Object.getOwnPropertyDescriptor,As=(r,t,e,i)=>{for(var o=i>1?void 0:i?Jf(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Xf(t,e,o),o};const Qf="awc-accordion";s.AwcAccordion=class extends C{constructor(){super(...arguments),this.disabled=!1,this.autoclose=!1}get accordionItems(){return[...this.querySelectorAll(_c)]}
24_autocloseAccordionItem(t){if(!this.autoclose)return;const e=t.target;e.disabled&&this.disabled||(e.active?(this.accordionItems.forEach(i=>i.active=!1),e.active=!0):(e.active=!0,e.active&&(e.active=!1)))}_handleAccordionItem(t){this._autocloseAccordionItem(t)}_shutdownAllAccordionItems(){this.disabled?this.accordionItems.forEach(t=>t.disabled=!0):this.accordionItems.forEach(t=>t.disabled=!1)}updated(t){super.updated(t),t.has("disabled")&&this._shutdownAllAccordionItems()}render(){return f`<div ?disabled="${this.disabled}" class="awc-accordion" part="base"><slot @awc-accordion-toggle="${this._handleAccordionItem}"></slot></div>`}},s.AwcAccordion.styles=[Kf],As([c({type:Boolean,reflect:!0,useDefault:!0})],s.AwcAccordion.prototype,"disabled",2),As([c({type:Boolean,reflect:!0})],s.AwcAccordion.prototype,"autoclose",2),s.AwcAccordion=As([I(Qf)],s.AwcAccordion);const t3=P`.awc-range-container{display:flex;flex-direction:column;gap:var(--spacing-sm)}.awc-range{width:100%;height:4px;-webkit-appearance:none;background-color:var(--colors-stroke);border-radius:99px}:host([disabled]){opacity:.5;touch-action:none;pointer-events:none}:host([disabled]) .awc-range::-webkit-slider-thumb{border:4px solid #97a3b080}:host([disabled]) .awc-range::-moz-range-thumb{background-color:var(--colors-white);border:4px solid #97a3b080}.awc-range::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;cursor:grab;border:4px solid var(--colors-primary);transition:border var(--awc-duration-base,.25s) ease}.awc-range::-webkit-slider-thumb:hover{border:6px solid var(--colors-primary)}.awc-range::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background-color:var(--colors-white);cursor:grab;border:4px solid var(--colors-primary);transition:border var(--awc-duration-base,.25s) ease}.awc-range::-moz-range-thumb:hover{border:6px solid var(--colors-primary)}.awc-range::-moz-range-track{width:100%;height:4px;background-color:var(--colors-stroke);border-radius:99px}.awc-range__markers{position:relative;justify-content:space-between;padding:0;margin:16px 0 16px 0;display:flex;align-items:center}.awc-range-label{display:flex;align-items:center;gap:4px;color:var(--colors-titles);font:var(--awc-font-text-medium-14)}.awc-range-label__value{margin:0;font:var(--awc-font-text-regular-14)}.awc-range__hint{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-secondary);overflow-wrap:anywhere}.awc-range-label--hidden,.awc-range__hint--hidden{display:none}`,e3=P`:host{transform:translateX(calc(-50% + 16px))}.awc-range-item{cursor:pointer;list-style-type:none;padding:0;margin:0}.awc-range-item__text{margin:0;color:var(--colors-secondary);font:var(--awc-font-caption-2-regular);transition:color var(--awc-duration-slow,.3s) ease}.awc-range-item__text:hover{color:var(--colors-primary)}@media screen and (max-width:768px){:host{transform:translateX(calc(-50% + 2px))}}`;var i3=Object.defineProperty,r3=Object.getOwnPropertyDescriptor,mc=(r,t,e,i)=>{for(var o=i>1?void 0:i?r3(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&i3(t,e,o),o};const bc="awc-range-item";s.AwcRangeItem=class extends C{constructor(){super(...arguments),this.value="0"}render(){return f`<li value="${this.value}" class="awc-range-item" part="base"><p class="awc-range-item__text" part="label"><slot></slot></p></li>`}},s.AwcRangeItem.styles=[e3],mc([c({type:String,reflect:!0})],s.AwcRangeItem.prototype,"value",2),s.AwcRangeItem=mc([I(bc)],s.AwcRangeItem);var o3=Object.defineProperty,a3=Object.getOwnPropertyDescriptor,Le=(r,t,e,i)=>{for(var o=i>1?void 0:i?a3(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&o3(t,e,o),o};s.AwcRange=class extends te(C){constructor(){super(...arguments),this.name="0",this.value="0",this.marker=!1,this.min=0,this.max=100,this.step=1,this.inputId=St("awc-range"),this.slots=new he(this,"awc-range"),this._defaults=new Ce(this,{value:()=>this.value})}get rangeItem(){return[...this.querySelectorAll(bc)]}resetFormControl(){this.value=this._defaults.get("value")}shouldFormValueUpdate(){return!this.disabled}updated(t){super.updated(t),(t.has("value")||t.has("disabled"))&&this.setValue(this.value)}_handleMarkers(t){if(this.disabled)return;const e=t.target;!e||e.tagName!=="AWC-RANGE-ITEM"||(this.value=e.value,this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0})))}_handleInputValue(t){const e=t.target;this.value=e.value}_handleChangeValue(t){const e=t.target;this.value=e.value,this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}render(){const t=this.slots.hasLabelSlot||!!this.label,e=this.slots.hasHintSlot||!!this.hint,i=e?this.slots.hintId:void 0,o={"awc-range-label":!0,"awc-range-label--hidden":!t},a={"awc-range__hint":!0,"awc-range__hint--hidden":!e};return f`<div part="base" class="awc-range-container"><div class="${G(o)}" part="label"><label class="awc-range-label__text" for="${this.inputId}" id="${this.slots.labelId}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}">${this.label}</slot>:</label><p class="awc-range-label__value">${this.value}</p></div><input part="input" class="awc-range" id="${this.inputId}" type="range" name="${this.name}" .value="${Ye(this.value)}" max="${this.max}" min="${this.min}" step="${this.step}" ?disabled="${this.disabled}" ?marker="${this.marker}" aria-describedby="${D(i)}
24" @input="${this._handleInputValue}" @change="${this._handleChangeValue}"> ${this.marker?f`<ul class="awc-range__markers"><slot @click="${this._handleMarkers}"></slot></ul>`:""} <span class="${G(a)}" id="${this.slots.hintId}" part="helper-text"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span></div>`}},s.AwcRange.styles=[t3],Le([c({type:String,reflect:!0})],s.AwcRange.prototype,"name",2),Le([c({type:String,reflect:!0})],s.AwcRange.prototype,"value",2),Le([c({type:String,reflect:!0})],s.AwcRange.prototype,"label",2),Le([c({type:String,reflect:!0})],s.AwcRange.prototype,"hint",2),Le([c({type:Boolean,reflect:!0})],s.AwcRange.prototype,"marker",2),Le([c({type:Boolean,reflect:!0})],s.AwcRange.prototype,"disabled",2),Le([c({type:Number,reflect:!0})],s.AwcRange.prototype,"min",2),Le([c({type:Number,reflect:!0})],s.AwcRange.prototype,"max",2),Le([c({type:Number,reflect:!0})],s.AwcRange.prototype,"step",2),s.AwcRange=Le([I("awc-range")],s.AwcRange);const s3=P`:host{display:inline-flex;width:100%}:host([size=extrasmall]) .awc-progress-bar__track{height:2px}:host([size=small]) .awc-progress-bar__track{height:4px}:host([size=medium]) .awc-progress-bar__track{height:6px}:host([size=large]) .awc-progress-bar__track{height:8px}.awc-progress-bar{width:inherit;display:flex;flex-direction:column;gap:var(--spacing-s)}.awc-progress-bar__label{font:var(--awc-font-text-regular-14);color:var(--colors-text)}.awc-progress-bar__value{font:var(--awc-font-text-medium-14)}.awc-progress-bar__track{position:relative;width:inherit;overflow:hidden;border-radius:var(--corner-radius-s);background-color:var(--colors-stroke-hover)}.awc-progress-bar__filler{width:0%;border-radius:var(--corner-radius-s);height:100%;background-color:var(--colors-primary);transition:width var(--awc-duration-slow,.3s) ease}`;var n3=Object.defineProperty,l3=Object.getOwnPropertyDescriptor,Qe=(r,t,e,i)=>{for(var o=i>1?void 0:i?l3(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&n3(t,e,o),o};const c3="awc-progress-bar";s.AwcProgressBar=class extends C{constructor(){super(...arguments),this.value=0,this.max=100,this.label="",this.size="medium",this.hidePercent=!1}_validateAndUpdateValues(){this.value=Number(this.value),this.max=Number(this.max),(isNaN(this.value)||this.value<0)&&(this.value=0),(isNaN(this.max)||this.max<0)&&(this.max=100),this.value>this.max&&(this.value=this.max,this._onSuccesEvent()),this._updateFillerWidth()}_updateFillerWidth(){const t=this.value/this.max*100;this.fillerElement&&(this.fillerElement.style.width=`${t}%`)}_onSuccesEvent(){const t={value:this.value,maxReached:!0};this._onSucces(t),this._updateFillerWidth()}updated(t){super.updated(t),(t.has("value")||t.has("max"))&&this._validateAndUpdateValues()}render(){const t=this.hidePercent?"":"%";return f`<div part="base" ?hide-percent="${this.hidePercent}" size="${this.size}" class="awc-progress-bar">${this.label?f`<div part="label" class="awc-progress-bar__label">${this.label}: <span class="awc-progress-bar__value">${this.value}${t}</span></div>`:""}<div part="track" class="awc-progress-bar__track"><div part="indicator" class="awc-progress-bar__filler"></div></div></div>`}},s.AwcProgressBar.styles=[s3],Qe([c({type:Number,reflect:!0})],s.AwcProgressBar.prototype,"value",2),Qe([c({type:Number,reflect:!0})],s.AwcProgressBar.prototype,"max",2),Qe([c({type:String,reflect:!0})],s.AwcProgressBar.prototype,"label",2),Qe([c({type:String,reflect:!0})],s.AwcProgressBar.prototype,"size",2),Qe([c({type:Boolean,reflect:!0,attribute:"hide-percent"})],s.AwcProgressBar.prototype,"hidePercent",2),Qe([F("awc-progress-bar-success")],s.AwcProgressBar.prototype,"_onSucces",2),Qe([H(".awc-progress-bar__filler")],s.AwcProgressBar.prototype,"fillerElement",2),s.AwcProgressBar=Qe([I(c3)],s.AwcProgressBar);const xs="lit-localize-status";const d3=r=>typeof r!="string"&&"strTag"in r,yc=(r,t,e)=>{let i=r[0];for(let o=1;o<r.length;o++)i+=t[e?e[o-1]:o-1],i+=r[o];return i};const Cc=r=>d3(r)?yc(r.strings,r.values):r;let Ac=Cc,xc=!1;function h3(r){if(xc)throw new Error("lit-localize can only be configured once");Ac=r,xc=!0}class u3{constructor(t){this.__litLocalizeEventHandler=e=>{e.detail.status==="ready"&&this.host.requestUpdate()},this.host=t}hostConnected(){window.addEventListener(xs,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(xs,this.__litLocalizeEventHandler)}}const p3=r=>r.addController(new u3(r));const Ie=()=>(r,t)=>(r.addInitializer(p3),r);class kc{constructor(){this.settled=!1,this.promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}resolve(t){this.settled=!0,this._resolve(t)}reject(t){this.settled=!0,this._reject(t)}}const Fe=[];for(let r=0;r<256;r++)Fe[r]=(r>>4&15).toString(16)+(r&15).toString(16);function f3(r){let t=0,e=8997,i=0,o=33826,a=0,n=40164,d=0,l=52210;for(let h=0;h<r.length;h++)e^=r.charCodeAt(h),t=e*435,i=o*435,a=n*435,d=l*435,a+=e<<8,d+=o<<8,i+=t>>>16,e=t&65535,a+=i>>>16,o=i&65535,l=d+(a>>>16)&65535,n=a&65535;return Fe[l>>8]+Fe[l&255]+Fe[n>>8]+Fe[n&255]+Fe[o>>8]+Fe[o&255]+Fe[e>>8]+Fe[e&255]}const w3="�",g3="h",v3="s";function _3(r,t){return(t?g3:v3)+f3(typeof r=="string"?r:r.join(w3))}const Sc=new WeakMap,$c=new Map;function m3(r,t,e){if(r){const i=e?.id??b3(t),o=r[i];
24if(o){if(typeof o=="string")return o;if("strTag"in o)return yc(o.strings,t.values,o.values);{let a=Sc.get(o);return a===void 0&&(a=o.values,Sc.set(o,a)),{...o,values:a.map(n=>t.values[n])}}}}return Cc(t)}function b3(r){const t=typeof r=="string"?r:r.strings;let e=$c.get(t);return e===void 0&&(e=_3(t,typeof r!="string"&&!("strTag"in r)),$c.set(t,e)),e}function ks(r){window.dispatchEvent(new CustomEvent(xs,{detail:r}))}let Vo="",Ss,Tc,Ho,$s,Ec,Ci=new kc;Ci.resolve();let Ro=0;const y3=r=>(h3((t,e)=>m3(Ec,t,e)),Vo=Tc=r.sourceLocale,Ho=new Set(r.targetLocales),Ho.add(r.sourceLocale),$s=r.loadLocale,{getLocale:C3,setLocale:A3}),C3=()=>Vo,A3=r=>{if(r===(Ss??Vo))return Ci.promise;if(!Ho||!$s)throw new Error("Internal error");if(!Ho.has(r))throw new Error("Invalid locale code");Ro++;const t=Ro;return Ss=r,Ci.settled&&(Ci=new kc),ks({status:"loading",loadingLocale:r}),(r===Tc?Promise.resolve({templates:void 0}):$s(r)).then(i=>{Ro===t&&(Vo=r,Ss=void 0,Ec=i.templates,ks({status:"ready",readyLocale:r}),Ci.resolve())},i=>{Ro===t&&(ks({status:"error",errorLocale:r,errorMessage:i.toString()}),Ci.reject(i))}),Ci.promise},Lc={...{"awc-spoiler.collapse":"Collapse","awc-spoiler.expand":"Show more"},...{"awc-file.list-view":"List view","awc-file.list-block-view":"List block view","awc-file.grid-view":"Grid view"},...{"awc-file-item.open-access":"Open access","awc-file-item.close-access":"Close access","awc-file-item.share-tooltip-open":"Share a file with an external user","awc-file-item.share-tooltip-close":"Share a file only with internal users","awc-file-item.download":"Download","awc-file-item.delete":"Delete","awc-file-item.click-to-go":"Click to go","awc-file-item.click-to-preview":"Click to preview"},...{"awc-dialog.ok":"OK","awc-dialog.cancel":"Cancel"},...{"awc-modal.close":"Close"},...{"awc-list-group.toggle-section":"Toggle section"},...{"awc-calendar.prev-month":"Previous month","awc-calendar.next-month":"Next month","awc-calendar.prev-year":"Previous year","awc-calendar.next-year":"Next year","awc-calendar.prev-decade":"Previous decade","awc-calendar.next-decade":"Next decade","awc-calendar.choose-month":"Choose month","awc-calendar.choose-year":"Choose year","awc-calendar.range-start-hint":"Start date selected, choose the end date","awc-calendar.preset-today":"Today","awc-calendar.preset-tomorrow":"Tomorrow","awc-calendar.preset-end-of-week":"End of week","awc-calendar.preset-in-a-week":"In a week","awc-calendar.preset-end-of-month":"End of month","awc-calendar.preset-no-deadline":"No deadline","awc-calendar.preset-yesterday":"Yesterday","awc-calendar.preset-last-7-days":"Last 7 days","awc-calendar.preset-last-30-days":"Last 30 days","awc-calendar.preset-this-month":"This month","awc-calendar.preset-last-month":"Last month"},...{"awc-date-picker.placeholder":"Select date","awc-date-picker.placeholder-datetime":"Select date and time","awc-date-picker.open-calendar":"Open calendar","awc-date-picker.clear":"Clear","awc-date-picker.invalid":"Please select a date"},...{"awc-time-picker.invalid":"Please enter a valid time","awc-time-picker.choose-time":"Choose time","awc-time-picker.clear":"Clear"},...{"awc-toast.close":"Close","awc-toast.loading":"Loading…","awc-toast.success":"Success","awc-toast.error":"Error"},...{"awc-progress-circle.label":"Progress"}},Hr="en",Ts=["ru","es","pt-br","id"],x3={en:{$name:"English",$dir:"ltr"},ru:{$name:"Русский",$dir:"ltr"},es:{$name:"Español",$dir:"ltr"},"pt-br":{$name:"Português (BR)",$dir:"ltr"},id:{$name:"Bahasa Indonesia",$dir:"ltr"}};function Y(r){return Ac(Lc[r],{id:r})}const k3=P`:host{display:inline-flex;--awc-progress-circle-size:44px;--awc-progress-circle-thickness:9;--awc-progress-circle-track-color:var(--colors-stroke-hover);--awc-progress-circle-indicator-color:var(--colors-primary);--awc-progress-circle-label-color:var(--colors-secondary);--awc-progress-circle-label-font:var(--awc-font-caption-2-medium);--awc-progress-circle-transition-duration:var(--awc-duration-slow, 0.3s);width:var(--awc-progress-circle-size);height:var(--awc-progress-circle-size);flex:0 0 auto}:host([size=extrasmall]){--awc-progress-circle-size:24px;--awc-progress-circle-thickness:12;--awc-progress-circle-label-font:var(--awc-font-caption-3-regular)}:host([size=small]){--awc-progress-circle-size:32px;--awc-progress-circle-thickness:10;--awc-progress-circle-label-font:var(--awc-font-caption-3-regular)}:host([size=medium]){--awc-progress-circle-size:44px;--awc-progress-circle-thickness:9;--awc-progress-circle-label-font:var(--awc-font-caption-2-medium)}:host([size=large]){--awc-progress-circle-size:64px;--awc-progress-circle-thickness:8;--awc-progress-circle-label-font:var(--awc-font-text-medium-14)}
24.awc-progress-circle{position:relative;width:100%;height:100%}.awc-progress-circle__svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}.awc-progress-circle__indicator,.awc-progress-circle__track{fill:none;stroke-width:var(--awc-progress-circle-thickness)}.awc-progress-circle__track{stroke:var(--awc-progress-circle-track-color)}.awc-progress-circle__indicator{stroke:var(--awc-progress-circle-indicator-color);stroke-linecap:round;transition:stroke-dashoffset var(--awc-progress-circle-transition-duration) ease}@media (prefers-reduced-motion:reduce){.awc-progress-circle__indicator{transition:none}}.awc-progress-circle__label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:var(--awc-progress-circle-label-font);color:var(--awc-progress-circle-label-color);pointer-events:none;user-select:none}.awc-progress-circle__label ::slotted(*){max-width:100%;overflow:hidden}`;var S3=Object.defineProperty,$3=Object.getOwnPropertyDescriptor,Gi=(r,t,e,i)=>{for(var o=i>1?void 0:i?$3(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&S3(t,e,o),o};const T3="awc-progress-circle",Es=100,zo=Es/2,Ls=44,Ic=2*Math.PI*Ls;s.AwcProgressCircle=class extends C{constructor(){super(...arguments),this.value=0,this.max=100,this.size="medium",this.hidePercent=!1,this._wasComplete=!1,this._ownsAriaLabel=!1}get _normalized(){const t=Number(this.max),e=Number.isFinite(t)&&t>0?t:100,i=Number(this.value);return{value:Number.isFinite(i)?Math.min(Math.max(i,0),e):0,max:e}}get _fraction(){const{value:t,max:e}=this._normalized;return t/e}get _percent(){return Math.round(this._fraction*100)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this._ownsAriaLabel=!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby")}firstUpdated(){this._wasComplete=this._fraction>=1,this._syncAria()}updated(t){if(super.updated(t),this._syncAria(),!t.has("value")&&!t.has("max"))return;const e=this._fraction>=1;e&&!this._wasComplete&&this._emitSuccess({value:this._normalized.value,maxReached:!0}),this._wasComplete=e}_syncAria(){const{value:t,max:e}=this._normalized;this.setAttribute("aria-valuemin","0"),this.setAttribute("aria-valuemax",String(e)),this.setAttribute("aria-valuenow",String(t)),this.setAttribute("aria-valuetext",`${this._percent}%`),this._ownsAriaLabel&&this.setAttribute("aria-label",Y("awc-progress-circle.label"))}render(){const t=this._fraction,e=Ar({"stroke-dashoffset":String(Ic*(1-t)),visibility:t===0?"hidden":"visible"});return f`<div part="base" class="awc-progress-circle"><svg class="awc-progress-circle__svg" viewBox="0 0 ${Es} ${Es}" aria-hidden="true" focusable="false">${S`<circle part="track" class="awc-progress-circle__track" cx="${zo}" cy="${zo}" r="${Ls}"></circle><circle part="indicator" class="awc-progress-circle__indicator" cx="${zo}" cy="${zo}" r="${Ls}" stroke-dasharray="${Ic}" style="${e}"></circle>`}</svg><div part="label" class="awc-progress-circle__label" aria-hidden="true"><slot>${this.hidePercent?"":`${this._percent}%`}</slot></div></div>`}},s.AwcProgressCircle.styles=[k3],Gi([c({type:Number,reflect:!0})],s.AwcProgressCircle.prototype,"value",2),Gi([c({type:Number,reflect:!0})],s.AwcProgressCircle.prototype,"max",2),Gi([c({type:String,reflect:!0})],s.AwcProgressCircle.prototype,"size",2),Gi([c({type:Boolean,reflect:!0,attribute:"hide-percent"})],s.AwcProgressCircle.prototype,"hidePercent",2),Gi([F("awc-progress-circle-success")],s.AwcProgressCircle.prototype,"_emitSuccess",2),s.AwcProgressCircle=Gi([Ie(),I(T3)],s.AwcProgressCircle);const E3=P`:host([size=large]){display:flex;max-width:700px}:host([size=large]) .awc-empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--spacing-l)}:host([size=large]) .awc-empty-state__main{font:var(--awc-font-text-regular-15);color:var(--colors-text)}:host([size=large]) .awc-empty-state__title{margin:0;margin-bottom:12px;color:var(--colors-titles);font:var(--awc-font-h3-medium)}:host([size=large]) .awc-empty-state__buttons{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--spacing-l)}:host([size=large]) .awc-empty-state__links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--spacing-l)}:host([size=large]) .awc-empty-state__links ::slotted(awc-empty-state-link:not(:last-child))::after{content:"";display:flex;width:3px;height:3px;background-color:var(--colors-secondary);border-radius:var(--corner-radius-circular)}:host([size=small]){display:flex;max-width:320px}:host([size=small]) .awc-empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--spacing-m)}:host([size=small]) .awc-empty-state__title{margin:0 0 8px;color:var(--colors-titles);font:var(--awc-font-text-medium-15)}
24:host([size=small]) .awc-empty-state__main{font:var(--awc-font-text-regular-15);color:var(--colors-secondary)}:host([size=small]) .awc-empty-state__buttons{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--spacing-s)}:host([size=small]) .awc-empty-state__links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--spacing-s)}@media screen and (max-width:768px){.awc-empty-state__links ::slotted(awc-empty-state-link:not(:last-child))::after{display:none}}`;var L3=Object.defineProperty,I3=Object.getOwnPropertyDescriptor,Is=(r,t,e,i)=>{for(var o=i>1?void 0:i?I3(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&L3(t,e,o),o};const O3="awc-empty-state";s.AwcEmptyState=class extends C{constructor(){super(...arguments),this.size="large"}get icons(){return[...this.children].filter(t=>t.tagName.toLowerCase()===Fl.toLowerCase())}get buttons(){return[...this.querySelectorAll(Bl)]}_scalingIcon(){this.icons&&this.icons.forEach(t=>{const e=this.size==="large"?"78px":"48px";t.getAttribute("icon-scale")!==e&&t.setAttribute("icon-scale",e)})}_setCurrentButtons(){this.buttons&&this.buttons.forEach(t=>{this.size==="large"?t.size="large":t.size="regular",t.variant!=="transparent"&&(t.variant="primary"),t.background="blue"})}updated(t){super.updated(t),t.has("size")&&(this._scalingIcon(),this._setCurrentButtons())}render(){return f`<div class="awc-empty-state" part="base"><div class="awc-empty-state__head" part="icon"><slot @slotchange="${this._scalingIcon}" name="icon"></slot></div><div class="awc-empty-state__main" part="body">${this.head?f`<h3 class="awc-empty-state__title" part="heading">${this.head}</h3>`:""}<slot></slot></div><div class="awc-empty-state__buttons" part="actions"><slot @slotchange="${this._setCurrentButtons}" name="button"></slot></div><div class="awc-empty-state__links" part="links"><slot name="link"></slot></div></div>`}},s.AwcEmptyState.styles=[E3],Is([c({type:String,reflect:!0})],s.AwcEmptyState.prototype,"head",2),Is([c({type:String,reflect:!0})],s.AwcEmptyState.prototype,"size",2),s.AwcEmptyState=Is([I(O3)],s.AwcEmptyState);const M3=P`:host{display:inline-flex;align-items:center;gap:20px}.awc-empty-state-link{text-decoration:none;font:var(--awc-font-text-regular-15);color:var(--colors-primary);transition:color var(--awc-duration-slow,.3s) ease;cursor:pointer}.awc-empty-state-link:hover{color:var(--colors-link-hover)}`;var P3=Object.defineProperty,D3=Object.getOwnPropertyDescriptor,Os=(r,t,e,i)=>{for(var o=i>1?void 0:i?D3(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&P3(t,e,o),o};const B3="awc-empty-state-link";s.AwcEmptyStateLink=class extends C{constructor(){super(...arguments),this.target="_self"}render(){return this.href?f`<a class="awc-empty-state-link" part="base" href="${this.href}" target="${this.target}" tabindex="0"><slot></slot></a>`:f`<div class="awc-empty-state-link" part="base" href="${this.href}" target="${this.target}" tabindex="0"><slot></slot></div>`}},s.AwcEmptyStateLink.styles=[M3],Os([c({type:String,reflect:!0})],s.AwcEmptyStateLink.prototype,"href",2),Os([c({type:String,reflect:!0})],s.AwcEmptyStateLink.prototype,"target",2),s.AwcEmptyStateLink=Os([I(B3)],s.AwcEmptyStateLink);const V3=P`:host{--awc-tag-opacity-soft:0.2;--awc-tag-opacity-colored:0.1;display:inline-flex;vertical-align:middle}.awc-tag{display:flex;align-items:center;text-align:center;justify-content:center;box-sizing:border-box;position:relative;isolation:isolate;height:var(--awc-tag-height);padding:var(--awc-padding-y) calc(var(--awc-padding-x) + var(--awc-padding-right-offset,0px)) var(--awc-padding-y) var(--awc-padding-x);font:var(--awc-tag-font);transition:background-color var(--awc-duration-slow,.3s) ease}.awc-tag__text{white-space:nowrap;z-index:2}:host([size=extra-small]){--awc-tag-height:18px;--awc-padding-x:6px;--awc-padding-y:2px;--awc-tag-font:var(--awc-font-caption-3-regular, 400 11px/14px "Inter")}:host([size=small]){--awc-tag-height:20px;--awc-padding-x:6px;--awc-padding-y:3px;--awc-tag-font:var(--awc-font-caption-2-regular, 400 12px/14px "Inter")}:host([size=regular]){--awc-tag-height:24px;--awc-padding-x:8px;--awc-padding-y:5px;--awc-tag-font:var(--awc-font-caption-2-regular, 400 12px/14px "Inter")}:host([size=large]){--awc-tag-height:28px;--awc-padding-x:10px;--awc-padding-y:6px;--awc-tag-font:var(--awc-font-caption-1-regular, 400 13px/16px "Inter")}:host([variant=square]) .awc-tag{border-radius:var(--corner-radius-s,4px)}:host([variant=square][size=large]) .awc-tag{border-radius:6px}:host([variant=circle]) .awc-tag{border-radius:var(--corner-radius-circular,99px)}:host([variant=bullet]){--awc-padding-right-offset:2px}:host([variant=bullet]) .awc-tag{border-radius:var(--corner-radius-2xl,16px) var(--corner-radius-circular,99px) var(--corner-radius-circular,99px) var(--corner-radius-2xl,16px)}:host([scheme=gray]) .awc-tag{background-color:var(--colors-input-background);color:var(--colors-text)}:host([scheme=solid]) .awc-tag{background-color:var(--awc-tag-bg);color:var(--awc-tag-color)}:host([scheme=colored]) .awc-tag,:host([scheme=soft]) .awc-tag{background-color:transparent;overflow:hidden}:host([scheme=colored]) .awc-tag::before,:host([scheme=soft]) .awc-tag::before{content:"";position:absolute;inset:0;background-color:var(--awc-tag-bg);z-index:1}:host([scheme=soft]) .awc-tag{color:var(--colors-dark-violet)}:host([scheme=soft]) .awc-tag::before{opacity:var(--awc-tag-opacity-soft)}:host([scheme=colored]) .awc-tag{color:var(--awc-tag-bg)}:host([scheme=colored]) .awc-tag::before{opacity:var(--awc-tag-opacity-colored)}`;var H3=Object.defineProperty,R3=Object.getOwnPropertyDescriptor,Ai=(r,t,e,i)=>{for(var o=i>1?void 0:i?R3(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&H3(t,e,o),o};const Oc={fromAttribute:r=>r?.trim()??"",toAttribute:r=>r||null},z3="awc-tag";s.AwcTag=class extends C{constructor(){super(...arguments),this.customColor="",this.baseColor="colors-light-primary",this.variant="square",this.size="large",this.scheme="solid",this._resolvedColor=""}willUpdate(t){super.willUpdate(t);const e=!this.hasUpdated,i=t.has("baseColor")||t.has("customColor");(e||i)&&this._resolveColorValue()}
24_resolveColorValue(){const t=window.getComputedStyle(this);if(this.customColor){if(this.customColor.startsWith("#")){this._resolvedColor=this.customColor;return}if(this.isConnected){const e=this.customColor.match(/var\(([^)]+)\)/);if(e&&e[1]){const i=t.getPropertyValue(e[1]).trim();this._resolvedColor=i||"#FFFFFF";return}}}if(this.isConnected){const e=`--${this.baseColor}`,i=t.getPropertyValue(e).trim();this._resolvedColor=i||"#FFFFFF"}}getContrastTextColor(t){if(!t)return"";const e=t.replace("#",""),i=parseInt(e.substring(0,2),16),o=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16);return isNaN(i)?"":(i*299+o*587+a*114)/1e3>=186?"#55555A":"#FFFFFF"}render(){const t=this.customColor||`var(--${this.baseColor})`,e=this.scheme==="solid"?this.getContrastTextColor(this._resolvedColor):t;return f`<div part="base" class="awc-tag" style="${Ar({"--awc-tag-bg":t,"--awc-tag-color":e})}"><span part="label" class="awc-tag__text"><slot></slot></span></div>`}},s.AwcTag.styles=[V3],Ai([c({type:String,reflect:!0,attribute:"custom-color",useDefault:!0,converter:Oc})],s.AwcTag.prototype,"customColor",2),Ai([c({type:String,reflect:!0,attribute:"base-color",useDefault:!0,converter:Oc})],s.AwcTag.prototype,"baseColor",2),Ai([c({type:String,reflect:!0})],s.AwcTag.prototype,"variant",2),Ai([c({type:String,reflect:!0})],s.AwcTag.prototype,"size",2),Ai([c({type:String,reflect:!0})],s.AwcTag.prototype,"scheme",2),Ai([M()],s.AwcTag.prototype,"_resolvedColor",2),s.AwcTag=Ai([I(z3)],s.AwcTag);const F3=P`:host{display:inline-flex;--awc-color-picker-bg:var(--colors-input-background);--awc-color-picker-hover-bg:var(--colors-stroke)}.awc-color-picker-activator{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-s);padding:8px;background-color:var(--awc-color-picker-bg);border-radius:var(--corner-radius-m);transition:background-color var(--awc-duration-slow,.3s) ease}.awc-color-picker-activator:focus-visible{outline:1px solid var(--colors-secondary)}.awc-color-picker-current-color{display:block;border-radius:var(--corner-radius-s);width:24px;height:24px}.awc-color-picker-activator:hover{background-color:var(--awc-color-picker-hover-bg)}.awc-color-picker-arrow{display:flex;justify-content:center;align-items:center;transition:transform var(--awc-duration-slow,.3s) ease}.awc-color-picker-arrow.open{transform:rotate(180deg)}.awc-color-picker{padding:16px;max-width:100%;display:flex;flex-direction:column;border-radius:var(--corner-radius-s);background-color:var(--colors-card-surface);box-shadow:0 0 20px 5px rgba(64,72,98,.2);max-height:264px}.awc-color-pciker__header ::slotted(awc-tabs-group){padding-bottom:var(--spacing-m)}.awc-color-picker__tabs{position:relative}.awc-color-picker__reset{display:inline-flex;position:absolute;top:30%;right:0;cursor:pointer}.awc-color-picker__main{min-width:232px}.awc-color-picker__view{display:none}.awc-color-picker__view--active{display:block}.awc-color-picker__palete{display:grid;grid-template-columns:repeat(6,1fr);gap:var(--spacing-s)}.awc-color-picker__color{cursor:pointer;border:none;width:32px;height:32px;border-radius:var(--corner-radius-m);transition:transform var(--awc-duration-slow,.3s) ease;transform:scale3d(1,1,1)}.awc-color-picker__color:focus-visible,.awc-color-picker__color:hover{will-change:transform}.awc-color-picker__color:hover{transform:scale3d(1.05,1.05,1.05)}.awc-color-picker__color:focus-visible{outline:1px solid var(--colors-secondary);transform:scale3d(1.05,1.05,1.05)}.awc-color-picker__color.active-color{background-position:center;background-repeat:no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.7071 3.29289C15.0976 3.68342 15.0976 4.31658 14.7071 4.70711L6.70711 12.7071C6.31658 13.0976 5.68342 13.0976 5.29289 12.7071L1.29289 8.70711C0.902369 8.31658 0.902369 7.68342 1.29289 7.29289C1.68342 6.90237 2.31658 6.90237 2.70711 7.29289L6 10.5858L13.2929 3.29289C13.6834 2.90237 14.3166 2.90237 14.7071 3.29289Z' fill='white'/%3E%3C/svg%3E%0A")}.awc-color-picker__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;width:100%;height:32px;background-color:transparent;border:none;cursor:pointer}
24.awc-color-picker__input::-webkit-color-swatch{border-radius:var(--corner-radius-s);border:none}.awc-color-picker__input::-moz-color-swatch{border-radius:var(--corner-radius-s);border:none}`;var N3=Object.defineProperty,j3=Object.getOwnPropertyDescriptor,Nt=(r,t,e,i)=>{for(var o=i>1?void 0:i?j3(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&N3(t,e,o),o};const U3="awc-color-picker";s.AwcColorPicker=class extends te(C){constructor(){super(...arguments),this.active=!1,this.reset=!1,this.BASE_PALETTE_COLORS=["#ED3A3A","#F74F4F","#FB7C28","#F8AF28","#FED34A","#81D83C","#5FB829","#1EA679","#35D3AC","#44CADA","#2FB9CE","#52ACF5","#2A8CE3","#3761E9","#5D7EF7","#8360F4","#704AE5","#AC3EC7","#C764DF","#E44662","#FF7188","#919BB6","#55555A","#26263E"],this.activeTab=0,this._wiredTabs=new WeakSet,this._defaults=new Ce(this,{value:()=>this.value}),this._handleFocusOut=t=>{const e=t.relatedTarget;if(!e)return;const i=this._popover.contains(e),o=this.tabs.some(a=>a.contains(e));!i&&!o&&this.close()}}get tabs(){return[...this.querySelectorAll($a)]}_triggerChangeEvent(t){this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}_handleColorSelection(t){const e=t.currentTarget;if(!e||!e.hasAttribute("value"))return;this.colorItems.forEach(o=>o.classList.remove("active-color")),e.classList.add("active-color");const i=e.getAttribute("value")?.toLowerCase();i&&(this.value=i,this._triggerChangeEvent(t),this._onChangeColor(this.value))}_setCustomColorValue(t){this.value=this._inputColor.value}_setDefaultColorInBasePalette(){const t=this.value?.toUpperCase();this.colorItems.forEach(e=>e.classList.toggle("active-color",e.getAttribute("value")===t))}_checkAssignedAwcTabs(){if(!this.tabs)return;let t=-1;
24this.tabs.forEach((e,i)=>{e.active&&(t=i),this._wiredTabs.has(e)||(this._wiredTabs.add(e),e.addEventListener("click",()=>{this.activeTab=i}),e.addEventListener("change",o=>o.stopPropagation()))}),t===-1?(this.tabs[0]&&(this.tabs[0].active=!0),this.activeTab=0):this.activeTab=t,this._checkAwcTabsLength()}_checkAwcTabsLength(){this.tabs.length>2&&console.warn("Maximum number of tabs exceeded")}connectedCallback(){super.connectedCallback(),ye(()=>{this._checkAssignedAwcTabs()})}disconnectedCallback(){super.disconnectedCallback(),this._popover?.removeEventListener("focusout",this._handleFocusOut)}resetFormControl(){const t=this._defaults.get("value");this.value=t,this._inputColor&&(this._inputColor.value=t||"#000000"),this._setDefaultColorInBasePalette()}_resetColorPicker(){this._inputColor.value="#000000",this.value="",this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.colorItems.forEach(t=>t.classList.remove("active-color"))}_colorPickerOpenEvent(t){this.active=!0,this._onOpen({active:this.active})}_colorPickerCloseEvent(t){this.active=!1,this._onClose({active:this.active})}updated(t){super.updated(t),t.has("value")&&(this.setValue(this.value),this._setDefaultColorInBasePalette()),t.has("active")&&this._popover&&(this.active?this.open():this.close())}open(){this._popover.show(),this._popover.addEventListener("focusout",this._handleFocusOut)}close(){this._popover.removeEventListener("focusout",this._handleFocusOut),this._popover.hide()}_togglePopover(){this.active?this.close():this.open()}_triggerKeyboard(t){(t.code==="Enter"||t.code==="Space")&&(this.active?this.close():this.open())}render(){const t=S`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_29752_259031)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 3C6.23858 3 4 5.23858 4 8V9C4 9.40446 3.75636 9.7691 3.38268 9.92388C3.00901 10.0787 2.57889 9.9931 2.29289 9.70711L0.292893 7.70711C-0.0976311 7.31658 -0.0976311 6.68342 0.292893 6.29289C0.683418 5.90237 1.31658 5.90237 1.70711 6.29289L2.0633 6.64909C2.09212 6.5722 2.13014 6.4998 2.17601 6.43323C2.8875 3.32155 5.67264 1 9 1C12.866 1 16 4.13401 16 8C16 11.866 12.866 15 9 15C7.36709 15 5.86228 14.4396 4.67131 13.5014C4.23746 13.1597 4.16282 12.5309 4.50458 12.0971C4.84634 11.6633 5.47509 11.5886 5.90893 11.9304C6.75982 12.6007 7.83189 13 9 13C11.7614 13 14 10.7614 14 8C14 5.23858 11.7614 3 9 3ZM9 9C9.55229 9 10 8.55228 10 8C10 7.44772 9.55229 7 9 7C8.44771 7 8 7.44772 8 8C8 8.55228 8.44771 9 9 9Z" fill="#919BB6"/></g><defs><clipPath id="clip0_29752_259031"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,e=S`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.29289 8.29289C6.68342 7.90237 7.31658 7.90237 7.70711 8.29289L12 12.5858L16.2929 8.29289C16.6834 7.90237 17.3166 7.90237 17.7071 8.29289C18.0976 8.68342 18.0976 9.31658 17.7071 9.70711L12.7071 14.7071C12.3166 15.0976 11.6834 15.0976 11.2929 14.7071L6.29289 9.70711C5.90237 9.31658 5.90237 8.68342 6.29289 8.29289Z" fill="#919BB6"/></svg>`;return f`<awc-popover @awc-popover-open="${this._colorPickerOpenEvent}" @awc-popover-close="${this._colorPickerCloseEvent}" no-padding trigger-type="manual" strategy="${D(this.strategy)}"><div @click="${this._togglePopover}" @keydown="${this._triggerKeyboard}" tabindex="${this.active?-1:0}" class="awc-color-picker-activator" part="control"><span class="awc-color-picker-current-color" part="indicator" style="background-color:${this.value}"></span><div class="awc-color-picker-arrow ${this.active?"open":""}" part="arrow">${e}</div></div><div class="awc-color-picker" part="panel" slot="awc-popover-content"><div class="awc-color-pciker__header"><div class="awc-color-picker__tabs"><slot @slotchange="${this._checkAssignedAwcTabs}"></slot>${this.reset&&this._slot&&this._slot.assignedElements().length?f`<div tabindex="0" @click="${this._resetColorPicker}" class="awc-color-picker__reset" part="reset">${t}</div>`:""}</div></div><div class="awc-color-picker__main"><div class="awc-color-picker__view ${this.activeTab===0?"awc-color-picker__view--active":""}"><div class="awc-color-picker__palete" part="palette" @change="${this._triggerChangeEvent}">${this.BASE_PALETTE_COLORS.map(i=>f`<button @click="${this._handleColorSelection}" value="${i}" class="awc-color-picker__color" part="swatch" style="background-color:${i}"></button>`)}</div></div><div class="awc-color-picker__view ${this.activeTab===1?"awc-color-picker__view--active":""}"><input class="awc-color-picker__input" part="input" type="color" @change="${this._triggerChangeEvent}
24" @input="${this._setCustomColorValue}" name="${this.name}"></div></div></div></awc-popover>`}},s.AwcColorPicker.styles=[F3],Nt([c({type:String,reflect:!0})],s.AwcColorPicker.prototype,"name",2),Nt([c({type:String,reflect:!0})],s.AwcColorPicker.prototype,"value",2),Nt([c({type:Boolean,reflect:!0})],s.AwcColorPicker.prototype,"active",2),Nt([c({type:Boolean,reflect:!0})],s.AwcColorPicker.prototype,"reset",2),Nt([c({type:String,reflect:!0})],s.AwcColorPicker.prototype,"strategy",2),Nt([M()],s.AwcColorPicker.prototype,"BASE_PALETTE_COLORS",2),Nt([M()],s.AwcColorPicker.prototype,"activeTab",2),Nt([Sa(".awc-color-picker__color")],s.AwcColorPicker.prototype,"colorItems",2),Nt([H("input")],s.AwcColorPicker.prototype,"_inputColor",2),Nt([H("slot")],s.AwcColorPicker.prototype,"_slot",2),Nt([H("awc-popover")],s.AwcColorPicker.prototype,"_popover",2),Nt([F("awc-color-picker-change")],s.AwcColorPicker.prototype,"_onChangeColor",2),Nt([F("awc-color-picker-open")],s.AwcColorPicker.prototype,"_onOpen",2),Nt([F("awc-color-picker-close")],s.AwcColorPicker.prototype,"_onClose",2),s.AwcColorPicker=Nt([I(U3)],s.AwcColorPicker);const Z3=P`:host{display:inline-block}.awc-calendar{box-sizing:border-box;width:max-content;overflow:visible;background-color:var(--colors-base-surface);border:1px solid var(--colors-stroke);border-radius:var(--corner-radius-m)}.awc-calendar__sr-live{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}.awc-calendar__body{display:flex}.awc-calendar__main{display:flex;flex-direction:column;width:min-content}.awc-calendar__months{display:flex;gap:16px;padding:12px}.awc-calendar__month{display:flex;flex-direction:column;gap:8px;width:calc(7 * 28px + 6 * 2px)}.awc-calendar__presets{display:flex;flex-direction:column;gap:2px;width:160px;padding:12px;border-right:1px solid var(--colors-stroke)}.awc-calendar__preset{box-sizing:border-box;width:100%;padding:6px 8px;border:none;background:0 0;border-radius:var(--corner-radius-s);font:var(--awc-font-caption-1-regular);color:var(--colors-text);text-align:left;white-space:nowrap;cursor:pointer}.awc-calendar__preset:hover{background-color:var(--colors-element-hover)}.awc-calendar__preset:focus-visible{outline:2px solid var(--colors-primary);outline-offset:-2px}.awc-calendar__header{display:flex;align-items:center;gap:8px;min-height:28px}.awc-calendar__heading{flex:1;font:var(--awc-font-text-medium-13);color:var(--colors-titles);text-align:left;text-transform:capitalize}.awc-calendar__heading--button{padding:5px 8px;border:none;background:0 0;border-radius:var(--corner-radius-s);cursor:pointer}.awc-calendar__heading--button:hover{background-color:var(--colors-element-hover)}.awc-calendar__heading--button:focus-visible{outline:2px solid var(--colors-primary);outline-offset:-2px}.awc-calendar__nav-group{display:flex;align-items:center;gap:2px}.awc-calendar__nav{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;background:0 0;border-radius:var(--corner-radius-s);color:var(--colors-secondary);cursor:pointer}.awc-calendar__nav:hover{background-color:var(--colors-element-hover)}.awc-calendar__nav:focus-visible{outline:2px solid var(--colors-primary);outline-offset:-2px}.awc-calendar__nav-spacer{width:28px;height:28px}.awc-calendar__week,.awc-calendar__weekdays{display:grid;grid-template-columns:repeat(7,28px);gap:2px}.awc-calendar__grid{display:flex;flex-direction:column;gap:2px}.awc-calendar__weekday{display:flex;align-items:center;justify-content:center;height:28px;font:var(--awc-font-caption-1-regular);color:var(--colors-secondary);text-transform:capitalize}.awc-calendar__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;background:0 0;border-radius:var(--corner-radius-s);font:var(--awc-font-text-regular-13);color:var(--colors-titles);cursor:pointer}.awc-calendar__day:hover{background-color:var(--colors-element-hover)}.awc-calendar__day:focus-visible{outline:2px solid var(--colors-primary);outline-offset:-2px}.awc-calendar__day--weekend{color:var(--colors-secondary)}.awc-calendar__day--holiday{color:var(--colors-warning)}.awc-calendar__day--adjacent{opacity:.5}.awc-calendar__day--today{font-weight:500}.awc-calendar__day--today:not(.awc-calendar__day--selected):not(.awc-calendar__day--range-start):not(.awc-calendar__day--range-end){color:var(--colors-primary)}.awc-calendar__day--range-end,.awc-calendar__day--range-end:hover,.awc-calendar__day--range-start,.awc-calendar__day--range-start:hover,.awc-calendar__day--selected,.awc-calendar__day--selected:hover{background-color:var(--colors-primary);color:var(--colors-white)}.awc-calendar__day--in-range,.awc-calendar__day--in-range:hover,.awc-calendar__day--range-preview,.awc-calendar__day--range-preview:hover{background-color:var(--colors-primary-light);border-radius:0}.awc-calendar__day--disabled,.awc-calendar__day--disabled:hover{background:0 0;opacity:.35;cursor:not-allowed}.awc-calendar__day--blank{visibility:hidden;pointer-events:none}.awc-calendar__month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.awc-calendar__month-cell{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;padding:0 8px;border:none;background:0 0;border-radius:var(--corner-radius-s);font:var(--awc-font-text-regular-13);color:var(--colors-titles);text-transform:capitalize;cursor:pointer}.awc-calendar__month-cell:hover{background-color:var(--colors-element-hover)}.awc-calendar__month-cell:focus-visible{outline:2px solid var(--colors-primary);outline-offset:-2px}.awc-calendar__month-cell--selected,.awc-calendar__month-cell--selected:hover{background-color:var(--colors-primary);color:var(--colors-white)}.awc-calendar__month-cell--disabled,.awc-calendar__month-cell--disabled:hover{background:0 0;opacity:.35;cursor:not-allowed}.awc-calendar__year-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.awc-calendar__year-cell{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;padding:0 8px;border:none;background:0 0;border-radius:var(--corner-radius-s);font:var(--awc-font-text-regular-13);color:var(--colors-titles);cursor:pointer}.awc-calendar__year-cell:hover{background-color:var(--colors-element-hover)}.awc-calendar__year-cell:focus-visible{outline:2px solid var(--colors-primary);outline-offset:-2px}.awc-calendar__year-cell--selected,.awc-calendar__year-cell--selected:hover{background-color:var(--colors-primary);color:var(--colors-white)}.awc-calendar__year-cell--disabled,.awc-calendar__year-cell--disabled:hover{background:0 0;opacity:.35;cursor:not-allowed}.awc-calendar__footer{padding:12px;border-top:1px solid var(--colors-stroke)}.awc-calendar__footer--empty{display:none}`;class R{constructor(t,e,i){this.year=t,this.month=e,this.day=i}static fromISO(t){if(typeof t!="string")return null;const e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t.trim());if(!e)return null;const i=Number(e[1]),o=Number(e[2]),a=Number(e[3]);return o<1||o>12||a<1||a>Ms(i,o)?null:new R(i,o,a)}toISO(){const t=String(this.year).padStart(4,"0"),e=String(this.month).padStart(2,"0"),i=String(this.day).padStart(2,"0");return`${t}-${e}-${i}`}addDays(t){const e=new Date(Date.UTC(this.year,this.month-1,this.day+t));return new R(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate())}addWeeks(t){return this.addDays(7*t)}addMonths(t){const e=this.year*12+(this.month-1)+t,i=Math.floor(e/12),o=e-i*12+1,a=Math.min(this.day,Ms(i,o));return new R(i,o,a)}daysInMonth(){return Ms(this.year,this.month)}endOfMonth(){return new R(this.year,this.month,this.daysInMonth())}weekday(){const t=new Date(Date.UTC(this.year,this.month-1,this.day)).getUTCDay();return t===0?7:t}endOfWeek(t=1){const i=((t+5)%7+1-this.weekday()+7)%7;return this.addDays(i)}static compare(t,e){return t.year!==e.year?t.year<e.year?-1:1:t.month!==e.month?t.month<e.month?-1:1:t.day!==e.day?t.day<e.day?-1:1:0}}function Ms(r,t){return new Date(Date.UTC(r,t,0)).getUTCDate()}function qi(r){return{start:r,end:r}}function Mc(r,t){const e=new R(r.year,r.month,1).addMonths(t),i=e.addMonths(1).addDays(-1);return{start:e,end:i}}const Ne={today:{label:"awc-calendar.preset-today",mode:"single",getRange:r=>qi(r)},tomorrow:{label:"awc-calendar.preset-tomorrow",mode:"single",getRange:r=>qi(r.addDays(1))},"end-of-week":{label:"awc-calendar.preset-end-of-week",mode:"single",getRange:(r,t)=>qi(r.endOfWeek(t.firstDayOfWeek))},"in-a-week":{label:"awc-calendar.preset-in-a-week",mode:"single",getRange:r=>qi(r.addWeeks(1))},"end-of-month":{label:"awc-calendar.preset-end-of-month",mode:"single",getRange:r=>qi(r.endOfMonth())},"no-deadline":{label:"awc-calendar.preset-no-deadline",mode:"single",kind:"clear"},yesterday:{label:"awc-calendar.preset-yesterday",mode:"single",getRange:r=>qi(r.addDays(-1))},"last-7-days":{label:"awc-calendar.preset-last-7-days",mode:"range",getRange:r=>({start:r.addDays(-6),end:r})},"last-30-days":{label:"awc-calendar.preset-last-30-days",mode:"range",getRange:r=>({start:r.addDays(-29),end:r})},"this-month":{label:"awc-calendar.preset-this-month",mode:"range",getRange:r=>Mc(r,0)},"last-month":{label:"awc-calendar.preset-last-month",mode:"range",getRange:r=>Mc(r,-1)}},W3=[Ne.today,Ne.tomorrow,Ne["end-of-week"],Ne["in-a-week"],Ne["end-of-month"],Ne["no-deadline"]],Pc=new Map,G3=/[\s,]/;function q3(r){if(!r||typeof r!="object")return console.warn(`[awc-ui] registerCalendarPresets: пресет должен быть объектом, получено ${JSON.stringify(r)}; проигнорирован.`),!1;const t=r.id?.trim()??"";return t===""||G3.test(t)?(console.warn(`[awc-ui] registerCalendarPresets: невалидный id пресета ${JSON.stringify(r.id)} (пустой либо содержит пробел/запятую — разделители атрибута presets); пресет проигнорирован.`),!1):t in Ne?(console.warn(`[awc-ui] registerCalendarPresets: id "${t}" совпадает со встроенным пресетом (встроенный имеет приоритет); кастомная регистрация проигнорирована.`),!1):(Pc.set(t,{...r,id:t}),!0)}function Y3(r,t){return r.filter(e=>e.mode===t)}function Dc(r){if(r===void 0)return W3;const t=[];for(const e of r)if(typeof e=="string"){const o=(Object.prototype.hasOwnProperty.call(Ne,e)?Ne[e]:void 0)??Pc.get(e);o&&t.push(o)}else t.push(e);return t}const Bc={fromAttribute(r){if(r===null)return;const t=r.trim();return t===""||t==="none"?[]:t.split(/[\s,]+/)}},K3=[6,7],X3=366,Vc=1e3,Hc=new WeakMap;function Rc(r){if(!r)return new Map;const t=Hc.get(r);if(t)return t;const e=new Map;for(const i of r)if(typeof i=="string"){const o=R.fromISO(i);o&&e.set(o.toISO(),{})}else if("date"in i){const o=R.fromISO(i.date);o&&e.set(o.toISO(),{name:i.name})}else{const o=R.fromISO(i.start);if(!o)continue;const a=i.end?R.fromISO(i.end):o;if(!a)continue;let n=o;for(let d=0;d<=X3&&(e.set(n.toISO(),{name:i.name}),!(R.compare(n,a)>=0));d++)n=n.addDays(1)}return Hc.set(r,e),e}function J3(r,t){return Rc(t.holidays).get(r.toISO())?.name}let Ps={};const Fo=[],Q3=/^\d{4}-\d{2}-\d{2}$/,zc=/^\d{1,2}:\d{2}$/;function Ds(r,t){return Array.isArray(r)&&r.every(t)?r:void 0}function tw(r){if(Array.isArray(r))return r.filter(t=>typeof t=="string"||typeof t=="object"&&t!==null&&typeof t.label=="string"&&typeof t.mode=="string"&&(t.kind==="clear"||typeof t.getRange=="function"))}function Fc(r){if(typeof r!="object"||r===null)return{};const t=r,e={},i=Ds(t.holidays,l=>typeof l=="string"||typeof l=="object"&&l!==null);i&&(e.holidays=i.length>Vc?i.slice(0,Vc):i);const o=Ds(t.workdays,l=>typeof l=="string"&&Q3.test(l));
24o&&(e.workdays=o);const a=Ds(t.weekend,l=>typeof l=="number"&&Number.isInteger(l)&&l>=1&&l<=7);a&&(e.weekend=a);const n=t.workingHours;if(typeof n=="object"&&n!==null){const{start:l,end:h}=n;typeof l=="string"&&zc.test(l)&&typeof h=="string"&&zc.test(h)&&(e.workingHours={start:l,end:h})}typeof t.timeStep=="number"&&Number.isFinite(t.timeStep)&&t.timeStep>=1&&(e.timeStep=t.timeStep);const d=tw(t.presets);return d&&(e.presets=d),e}function Nc(){for(const r of Fo)try{r()}catch{}}function ew(r){Ps={...Ps,...Fc(r)},Nc()}function iw(r){if(!Array.isArray(r))return;let t=!1;for(const e of r)q3(e)&&(t=!0);t&&Nc()}function Bs(){return Ps}function jc(r){return Fo.push(r),()=>{const t=Fo.indexOf(r);t!==-1&&Fo.splice(t,1)}}function rw(r,t){const e=r.toISO();return Rc(t.holidays).has(e)?"holiday":t.workdays?.includes(e)?"workday":(t.weekend??K3).includes(r.weekday())?"weekend":"workday"}const No=new Map,Uc=[];function Zc(r){return Ts.includes(r)}function jo(r){if(!r)return;const t=r.toLowerCase().replace(/_/g,"-");if(Zc(t))return t;const e=t.split("-")[0];if(e&&Zc(e))return e}function ow(r){const t=jo(r.$code);if(!t){console.warn(`[awc-ui] registerTranslation: "${r.$code}" is not a built-in locale. Supported: ${Ts.join(", ")}`);return}const e=No.get(t),i=e?{...e,...r,$code:t,templates:{...e.templates,...r.templates}}:{...r,$code:t};No.set(t,i);for(const o of Uc)o(t)}function aw(r){const t=jo(r);if(t)return No.get(t)}function sw(){return Array.from(No.keys())}function nw(r){Uc.push(r)}const{getLocale:Dt,setLocale:Uo}=y3({sourceLocale:Hr,targetLocales:Ts,loadLocale:async r=>({templates:aw(r)?.templates??{}})});function Wc(r){const t=x3[r];t?.$dir&&(document.documentElement.dir=t.$dir)}function Gc(r){const t=jo(r);if(!t){Dt()!==Hr&&Uo(Hr),Wc(Hr);return}Dt()!==t&&Uo(t),Wc(t)}new MutationObserver(r=>{for(const t of r)if(t.type==="attributes"&&t.attributeName==="lang"){Gc(document.documentElement.lang);return}}).observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]}),ye(()=>{Gc(document.documentElement.lang)}),nw(r=>{r!==Dt()&&r!==jo(document.documentElement.lang)||Uo(Hr).then(()=>Uo(r))});const qc={en:7,ru:1,es:1,"pt-br":7,id:7},lw=1,cw={year:"numeric",month:"long",day:"numeric"},Yc=new Map,dw=new Map,hw=new Map;function Kc(r,t,e){let i=r.get(t);return i===void 0&&(i=e(),r.set(t,i)),i}function Vs(r,t){const e=`${r} ${JSON.stringify(t)}`;let i=Yc.get(e);return i||(i=new Intl.DateTimeFormat(r,{...t,timeZone:"UTC",calendar:"gregory"}),Yc.set(e,i)),i}function Hs(r,t="long"){return Kc(dw,`${t} ${r}`,()=>{const e=Vs(r,{month:t});return Array.from({length:12},(i,o)=>e.format(Date.UTC(2021,o,15)))})}function uw(r,t){return Kc(hw,`${t} ${r}`,()=>{const e=Vs(r,{weekday:t});return Array.from({length:7},(i,o)=>e.format(Date.UTC(2021,7,2+o)))})}function pw(r){try{const e=new Intl.Locale(r),i=typeof e.getWeekInfo=="function"?e.getWeekInfo():e.weekInfo;if(i&&typeof i.firstDay=="number")return i.firstDay===0?7:i.firstDay}catch{}const t=r.toLowerCase();return qc[t]??qc[t.split("-")[0]]??lw}function Rr(r,t,e=cw){return Vs(t,e).format(Date.UTC(r.year,r.month-1,r.day))}var fw=Object.defineProperty,ww=Object.getOwnPropertyDescriptor,wt=(r,t,e,i)=>{for(var o=i>1?void 0:i?ww(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&fw(t,e,o),o};const Xc="awc-calendar";let Jc=0;function Zo(){const r=new Date;return new R(r.getFullYear(),r.getMonth()+1,r.getDate())}function gw(){const r=Zo();return new R(r.year,r.month,1)}function Rs(r,t){return(r-t+7)%7}function Qc(r){return f`<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="${r==="left"?"M10 3 5 8l5 5":"M6 3 11 8l-5 5"}" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>`}s.AwcCalendar=class extends C{constructor(){super(...arguments),this.value="",this.end="",this.mode="single",this.months=1,this.firstDayOfWeek=0,this.min="",this.max="",this.config={},this._view=gw(),this._selection={start:null,end:null},this._active=Zo(),this._hover=null,this._headingId="",this._liveMessage="",this._panelLevel=0,this._panelActiveMonth=0,this._panelActiveYear=0,this._hasFooterContent=!1,this._onFooterSlotChange=t=>{this._hasFooterContent=t.target.assignedNodes({flatten:!0}).length>0},this._pendingFocus=!1,this._pendingPanelFocus=!1,this._pendingHeadingFocus=!1,this._unsubscribeConfig=null,this._onGridLeave=()=>{this._hover!==null&&(this._hover=null)},this._boundsCache=null,this._shiftMonth=t=>
24{this._view=this._view.addMonths(t),this._announceView()},this._onHeadingClick=()=>{this._monthCount()===1&&(this._panelLevel===0?(this._panelActiveMonth=this._view.month-1,this._clampPanelMonth(),this._panelLevel=1,this._pendingPanelFocus=!0):this._panelLevel===1&&(this._panelActiveYear=this._view.year,this._clampPanelYear(),this._panelLevel=2,this._pendingPanelFocus=!0))},this._onMonthContainerKeydown=t=>{t.key!=="Escape"||this._panelLevel===0||(t.preventDefault(),t.stopPropagation(),this._stepPanelBack())},this._onMonthKeydown=t=>{if(t.key==="Escape"){t.preventDefault(),t.stopPropagation(),this._stepPanelBack();return}const[e,i]=this._enabledMonthRange(this._view.year);if(e>i){this._rovingIndexFromKey(t.key,0,0,0)!==null&&t.preventDefault();return}this._applyPanelRovingKey(t,this._panelActiveMonth,e,i,o=>{this._panelActiveMonth=o})},this._onYearKeydown=t=>{if(t.key==="Escape"){t.preventDefault(),t.stopPropagation(),this._stepPanelBack();return}const e=this._decadeBase(),[i,o]=this._enabledYearRange(e);if(i>o){this._rovingIndexFromKey(t.key,0,0,0)!==null&&t.preventDefault();return}this._applyPanelRovingKey(t,this._panelActiveYear,i,o,a=>{this._panelActiveYear=a})},this._onKeydown=t=>{const e=this._active;let i,o=!1;switch(t.key){case"ArrowLeft":i=e.addDays(-1);break;case"ArrowRight":i=e.addDays(1);break;case"ArrowUp":i=e.addDays(-7);break;case"ArrowDown":i=e.addDays(7);break;case"PageUp":i=e.addMonths(t.shiftKey?-12:-1),o=!0;break;case"PageDown":i=e.addMonths(t.shiftKey?12:1),o=!0;break;case"Home":i=this._startOfWeek(e);break;case"End":i=this._endOfWeek(e);break;default:return}t.preventDefault(),this._hover=null,this._setActive(i),o&&this._announceView()}}get start(){return this.value}set start(t){this.value=t}connectedCallback(){super.connectedCallback(),this._headingId||(Jc+=1,this._headingId=`awc-calendar-heading-${Jc}`),this._unsubscribeConfig=jc(()=>this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._unsubscribeConfig?.(),this._unsubscribeConfig=null}_effectiveConfig(){return{...Bs(),...Fc(this.config)}}_effectivePresets(){return this.presets!==void 0?Dc(this.presets):Dc(this._effectiveConfig().presets)}willUpdate(t){if(t.has("value")||t.has("end")||t.has("mode")){const i=R.fromISO(this.value??""),o=this.mode==="range"?R.fromISO(this.end??""):i,[a,n]=i&&o?this._orderDates(i,o):[i,o];if(this._selection={start:a,end:n},t.has("value")&&i){const d=this._clamp(i);this._view=new R(d.year,d.month,1),this._active=d}}const e=this._clampViewToBounds(this._view);if(R.compare(e,this._view)!==0&&(this._view=e),t.has("months")&&(this._panelLevel=0),!this._inView(this._active)||this._isDisabled(this._active)){const i=this._selection.start;this._active=i&&this._inView(i)&&!this._isDisabled(i)?i:this._clamp(new R(this._view.year,this._view.month,1))}}updated(){this._pendingFocus&&(this._pendingFocus=!1,this._focusActive()),this._pendingPanelFocus&&(this._pendingPanelFocus=!1,this._focusActivePanelCell()),this._pendingHeadingFocus&&(this._pendingHeadingFocus=!1,this.shadowRoot?.querySelector('[part="heading"]')?.focus())}_effectiveFirstDay(){const t=this.firstDayOfWeek;return t>=1&&t<=7?t:pw(Dt())}_monthCount(){return this.months>=2?2:1}_daysOfMonth(t){const e=[];for(let i=1;i<=t.daysInMonth();i++)e.push(new R(t.year,t.month,i));return e}_buildCells(t,e){const i=Rs(t.weekday(),e),o=[];for(let a=0;a<i;a++)o.push(null);return o.push(...this._daysOfMonth(t)),o}_buildGridWithAdjacent(t,e){const i=new R(t.year,t.month,1),o=Rs(i.weekday(),e),a=[];for(let n=o;n>0;n--)a.push(i.addDays(-n));for(a.push(...this._daysOfMonth(t));a.length%7!==0;)a.push(a[a.length-1].addDays(1));return a}_matchesStart(t){const{start:e}=this._selection;return e!==null&&R.compare(e,t)===0}_matchesEnd(t){const{end:e}=this._selection;return e!==null&&R.compare(e,t)===0}_isSelected(t){return this.mode!=="range"&&this._matchesStart(t)}_isRangeStart(t){return this.mode==="range"&&this._matchesStart(t)}_isRangeEnd(t){return this.mode==="range"&&this._matchesEnd(t)}_isInRange(t){if(this.mode!=="range")return!1;const{start:e,end:i}=this._selection;return!e||!i?!1:R.compare(t,e)>0&&R.compare(t,i)<0}_isBetweenInclusive(t,e,i){return R.compare(t,e)>=0&&R.compare(t,i)<=0}_inSelectedRange(t){const{start:e,end:i}=this._selection;if(e===null)return!1;if(this.mode!=="range")return R.compare(e,t)===0;const o=i??e;return this._isBetweenInclusive(t,e,o)}_previewEnd(){if(this.mode!=="range")return null;const{start:t,end:e}=this._selection;return t===null||e!==null?null:this._hover??this._active}_orderDates(t,e){return R.compare(t,e)<=0?[t,e]:[e,t]}_isInPreview(t){const e=this._previewEnd(),{start:i}=this._selection;if(!e||!i)return!1;const[o,a]=this._orderDates(i,e);return this._isBetweenInclusive(t,o,a)&&R.compare(t,i)!==0}_onCellHover(t){this.mode!=="range"||this._isDisabled(t)||(this._hover=t)}_minMaxBounds(){const t=this.min??"",e=this.max??"";return(!this._boundsCache||this._boundsCache.minStr!==t||this._boundsCache.maxStr!==e)&&(this._boundsCache={minStr
24:t,maxStr:e,min:R.fromISO(t),max:R.fromISO(e)}),this._boundsCache}_isDisabled(t){const{min:e,max:i}=this._minMaxBounds();return!!(e&&R.compare(t,e)<0||i&&R.compare(t,i)>0)}_isMonthDisabled(t,e){const{min:i,max:o}=this._minMaxBounds(),a=new R(t,e,1),n=a.endOfMonth();return!!(i&&R.compare(n,i)<0||o&&R.compare(a,o)>0)}_isYearDisabled(t){const{min:e,max:i}=this._minMaxBounds();return!!(e&&R.compare(new R(t,12,31),e)<0||i&&R.compare(new R(t,1,1),i)>0)}_enabledMonthRange(t){let e=0;for(;e<12&&this._isMonthDisabled(t,e+1);)e++;let i=11;for(;i>=0&&this._isMonthDisabled(t,i+1);)i--;return[e,i]}_enabledYearRange(t){let e=t;for(;e<=t+11&&this._isYearDisabled(e);)e++;let i=t+11;for(;i>=t&&this._isYearDisabled(i);)i--;return[e,i]}_selectDate(t){if(this._isDisabled(t))return;if(this._hover=null,this.mode==="range"){this._selectRange(t);return}const e=t.toISO();this.value!==e&&(this.value=e,this._emitChange({start:e,end:e}))}_selectRange(t){const{start:e,end:i}=this._selection;if(e!==null&&i===null){const[a,n]=this._orderDates(e,t),d=a.toISO(),l=n.toISO();this.value=d,this.end=l,this._emitChange({start:d,end:l})}else{const a=t.toISO();this.value=a,this.end="",this._liveMessage=Y("awc-calendar.range-start-hint"),this._emitChange({start:a,end:null})}}_shiftPanelYear(t){this._view=new R(this._view.year+t,this._view.month,1),this._clampPanelMonth(),this._announceView()}_decadeBase(t=this._view.year){return Math.floor(t/10)*10}_shiftPanelDecade(t){this._view=new R(this._view.year+t*10,this._view.month,1),this._panelActiveYear+=t*10,this._clampPanelYear(),this._announceView()}_headingTextForView(){if(this._panelLevel===2){const t=this._decadeBase(this._view.year);return`${t} – ${t+11}`}return this._panelLevel===1?String(this._view.year):`${Hs(Dt())[this._view.month-1]} ${this._view.year}`}
24_announceView(){this._liveMessage=this._headingTextForView()}_clampPanelMonth(t=this._view.year){const[e,i]=this._enabledMonthRange(t);e<=i&&(this._panelActiveMonth=Math.max(e,Math.min(i,this._panelActiveMonth)))}_clampPanelYear(t=this._decadeBase()){const[e,i]=this._enabledYearRange(t);e<=i&&(this._panelActiveYear=Math.max(e,Math.min(i,this._panelActiveYear)))}_onMonthSelect(t){this._view=new R(this._view.year,t+1,1),this._panelLevel=0,this._pendingFocus=!0}_onYearSelect(t){this._view=new R(t,this._view.month,1),this._panelActiveMonth=this._view.month-1,this._clampPanelMonth(),this._panelLevel=1,this._pendingPanelFocus=!0}_rovingIndexFromKey(t,e,i,o){let a;switch(t){case"ArrowLeft":a=e-1;break;case"ArrowRight":a=e+1;break;case"ArrowUp":a=e-3;break;case"ArrowDown":a=e+3;break;case"Home":a=i;break;case"End":a=o;break;default:return null}return Math.max(i,Math.min(o,a))}_applyPanelRovingKey(t,e,i,o,a){const n=this._rovingIndexFromKey(t.key,e,i,o);n!==null&&(t.preventDefault(),n!==e&&(a(n),this._pendingPanelFocus=!0))}_stepPanelBack(){this._panelLevel===2?(this._panelActiveMonth=this._view.month-1,this._clampPanelMonth(),this._panelLevel=1,this._pendingPanelFocus=!0):this._panelLevel===1&&(this._panelLevel=0,this._pendingHeadingFocus=!0)}_inView(t){const e=this._view.year*12+(this._view.month-1),i=t.year*12+(t.month-1);return i>=e&&i<=e+this._monthCount()-1}_clamp(t){const{min:e,max:i}=this._minMaxBounds();return e&&R.compare(t,e)<0?e:i&&R.compare(t,i)>0?i:t}_clampViewToBounds(t){const{min:e,max:i}=this._minMaxBounds(),o=t.addMonths(this._monthCount()-1).endOfMonth();return e&&R.compare(o,e)<0?new R(e.year,e.month,1):i&&R.compare(t,i)>0?new R(i.year,i.month,1):t}_navBlocked(t){const e=this._view.addMonths(t);return R.compare(this._clampViewToBounds(e),e)!==0}_navPanelBlocked(t){if(this._panelLevel===1){const[e,i]=this._enabledMonthRange(this._view.year+t);return e>i}if(this._panelLevel===2){const[e,i]=this._enabledYearRange(this._decadeBase(this._view.year)+t*10);return e>i}return!1}_weekdayOffset(t){return Rs(t.weekday(),this._effectiveFirstDay())}_startOfWeek(t){return t.addDays(-this._weekdayOffset(t))}_endOfWeek(t){return t.addDays(6-this._weekdayOffset(t))}_setActive(t){const e=this._clamp(t);this._active=e,this._inView(e)||(this._view=new R(e.year,e.month,1)),this._pendingFocus=!0}_focusActive(){const t=this._active.toISO();this.shadowRoot?.querySelector(`[part="day"][data-date="${t}"]`)?.focus()}_focusActivePanelCell(){const t=this._panelLevel===2?"year-cell":"month-cell",e=this._panelLevel===2?`data-year="${this._panelActiveYear}"`:`data-month="${this._panelActiveMonth}"`,i=this.shadowRoot?.querySelector(`[part="${t}"][${e}]`);if(i&&!i.hasAttribute("disabled")){i.focus();return}this.shadowRoot?.querySelector(`[part="${t}"]:not([disabled])`)?.focus()}focus(){if(this._panelLevel!==0){this._panelLevel=0,this.updateComplete.then(()=>this.focus());return}this.shadowRoot?.querySelector('[part="day"][tabindex="0"]')?.focus()}_rovingActiveIso(t){return this._inView(this._active)&&!this._isDisabled(this._active)?this._active.toISO():(t.find(i=>i!==null&&this._inView(i)&&!this._isDisabled(i))??this._active).toISO()}_renderCell(t,e,i,o,a,n){if(!t)return f`<div class="awc-calendar__day awc-calendar__day--blank" aria-hidden="true"></div>`;const d=this._isDisabled(t),l=this._isSelected(t)&&!d,h=this._isRangeStart(t),p=this._isRangeEnd(t),w=this._isInRange(t),g=this._isInPreview(t),v=rw(t,a),m=v==="holiday"?J3(t,a):void 0,b=t.month!==n.month||t.year!==n.year,k=t.toISO(),T=R.compare(t,e)===0,$=Rr(t,i),E=G({"awc-calendar__day":!0,"awc-calendar__day--weekend":v==="weekend","awc-calendar__day--holiday":v==="holiday","awc-calendar__day--adjacent":b,"awc-calendar__day--selected":l,"awc-calendar__day--range-start":h,"awc-calendar__day--range-end":p,"awc-calendar__day--in-range":w,"awc-calendar__day--range-preview":g,"awc-calendar__day--today":T,"awc-calendar__day--disabled":d});return f`<button type="button" part="day" role="gridcell" class="${E}" data-date="${k}" title="${D(m||void 0)}" aria-label="${m?`${$}, ${m}`:$}" aria-selected="${this._inSelectedRange(t)?"true":"false"}" aria-current="${T?"date":A}" tabindex="${k===o?0:-1}" ?disabled="${d}" aria-disabled="${d?"true":A}" @click="${()=>this._selectDate(t)}" @mouseenter="${()=>this._onCellHover(t)}">${t.day}</button>`}_renderMonthPanel(t,e){const i=Hs(e,"short"),o=t.month-1;return f`<div class="awc-calendar__month-grid" part="month-grid" role="listbox" aria-label="${Y("awc-calendar.choose-month")}" @keydown="${this._onMonthKeydown}">${i.map((a,n)=>{const d=n===o,l=this._isMonthDisabled(t.year,n+1);return f`<button type="button" part="month-cell" role="option" class="${G({"awc-calendar__month-cell":!0,"awc-calendar__month-cell--selected":d,"awc-calendar__month-cell--disabled":l})}" data-month="${n}" aria-selected="${d?"true":"false"}" aria-disabled="${l?"true":A}" tabindex="${n===this._panelActiveMonth?0:-1}" ?disabled="${l}" @click="${()=>this._onMonthSelect(n)}">${a}</button>`})}</div>`}_renderYearPanel(t){const e=this._decadeBase(t.year),i=Array.from({length:12},(o,a)=>e+a);return f`<div class="awc-calendar__year-grid" part="year-grid" role="listbox" aria-label="${Y("awc-calendar.choose-year")}" @keydown="${this._onYearKeydown}">${i.map(o=>{const a=o===t.year,n=this._isYearDisabled(o);return f`<button type="button" part="year-cell" role="option" class="${G({"awc-calendar__year-cell":!0,"awc-calendar__year-cell--selected":a,"awc-calendar__year-cell--disabled":n})}" data-year="${o}" aria-selected="${a?"true":"false"}" aria-disabled="${n?"true":A}" tabindex="${o===this._panelActiveYear?0:-1}" ?disabled="${n}" @click="${()=>this._onYearSelect(o)}">${o}</button>`})}</div>`}_panelNav(t,e){return e?{shift:i=>this._shiftPanelDecade(i),prevTerm:"awc-calendar.prev-decade",nextTerm:"awc-calendar.next-decade"}:t?{shift:i=>this._shiftPanelYear(i),prevTerm:"awc-calendar.prev-year",nextTerm:"awc-calendar.next-year"}:{shift:this._shiftMonth,prevTerm:"awc-calendar.prev-month",nextTerm:"awc-calendar.next-month"}}_renderMonthHeader(t,e,i,o,a,n,d){const l=f`<span class="awc-calendar__nav-spacer" aria-hidden="true"></span>`,h=a?f`<button type="button" id="${i}" part="heading" class="awc-calendar__heading awc-calendar__heading--button" aria-haspopup="listbox" aria-expanded="${this._panelLevel>0?"true":"false"}" @click="${this._onHeadingClick}">${o}
24</button>`:f`<span id="${i}" class="awc-calendar__heading" part="heading">${o}</span>`,p=this._panelNav(n,d),w=()=>p.shift(-1),g=()=>p.shift(1),v=Y(p.prevTerm),m=Y(p.nextTerm),b=!n&&!d,k=b?this._navBlocked(-1):this._navPanelBlocked(-1),T=b?this._navBlocked(1):this._navPanelBlocked(1),$=f`<button type="button" part="nav-prev" class="awc-calendar__nav" aria-label="${v}" ?disabled="${k}" aria-disabled="${k?"true":A}" @click="${w}">${Qc("left")}</button>`,E=f`<button type="button" part="nav-next" class="awc-calendar__nav" aria-label="${m}" ?disabled="${T}" aria-disabled="${T?"true":A}" @click="${g}">${Qc("right")}</button>`;return f`<div class="awc-calendar__header" part="header">${h}<div class="awc-calendar__nav-group">${t===0?$:l} ${t===e-1?E:l}</div></div>`}_renderDayGrid(t,e,i,o,a,n,d,l){const h=[];for(let p=0;p<d.length;p+=7)h.push(d.slice(p,p+7));return f`<div class="awc-calendar__weekdays" part="weekdays">${e.map(p=>f`<span class="awc-calendar__weekday">${p}</span>`)}</div><div class="awc-calendar__grid" part="grid" role="grid" aria-labelledby="${l}" aria-multiselectable="${this.mode==="range"?"true":A}" @keydown="${this._onKeydown}" @mouseleave="${this._onGridLeave}">${h.map(p=>f`<div class="awc-calendar__week" role="row">${p.map(w=>this._renderCell(w,i,o,a,n,t))}</div>`)}</div>`}_renderMonth(t,e,i,o,a,n,d,l,h){const p=Hs(n)[t.month-1],w=`${this._headingId}-${e}`,g=i===1,v=g&&this._panelLevel===1,m=g&&this._panelLevel===2,b=g&&this._panelLevel<2;let k;if(m){const $=this._decadeBase(t.year);k=`${$} – ${$+11}`}else v?k=String(t.year):k=`${p} ${t.year}`;let T;return m?T=this._renderYearPanel(t):v?T=this._renderMonthPanel(t,n):T=this._renderDayGrid(t,o,a,n,d,l,h,w),f`<div class="awc-calendar__month" @keydown="${this._onMonthContainerKeydown}">${this._renderMonthHeader(e,i,w,k,b,v,m)} ${T}</div>`}_presetLabel(t){const{label:e}=t;return Object.prototype.hasOwnProperty.call(Lc,e)?Y(e):e}_onPresetClick(t){if(this._panelLevel=0,t.kind==="clear"||!t.getRange){this.value="",this.end="",this._liveMessage=this._presetLabel(t),this._emitChange({start:null,end:null});return}const{start:e,end:i}=t.getRange(Zo(),{firstDayOfWeek:this._effectiveFirstDay()}),o=this._clamp(e),a=this._clamp(i),n=o.toISO(),d=a.toISO();this.value=n,this.mode==="range"&&(this.end=d);const l=Dt();this._liveMessage=this.mode==="range"?`${Rr(o,l)} – ${Rr(a,l)}`:Rr(o,l),this._emitChange({start:n,end:d})}_renderPresets(t){return f`<div class="awc-calendar__presets" part="presets" role="group" @keydown="${this._onMonthContainerKeydown}">${t.map(e=>f`<button type="button" part="preset" class="awc-calendar__preset" @click="${()=>this._onPresetClick(e)}">${this._presetLabel(e)}</button>`)}</div>`}render(){const t=Dt(),e=this._effectiveFirstDay(),i=uw(t,"short"),o=Array.from({length:7},(g,v)=>i[(e-1+v)%7]),a=Zo(),n=this._monthCount(),d=Array.from({length:n},(g,v)=>this._view.addMonths(v)),l=d.map(g=>n===1?this._buildGridWithAdjacent(g,e):this._buildCells(g,e)),h=this._rovingActiveIso(l.flat()),p=Y3(this._effectivePresets(),this.mode),w=this._effectiveConfig();return f`<div class="awc-calendar" part="base"><div class="awc-calendar__sr-live" aria-live="polite" aria-atomic="true">${this._liveMessage}</div><div class="awc-calendar__body">${p.length?this._renderPresets(p):A}<div class="awc-calendar__main"><div class="awc-calendar__months">${d.map((g,v)=>this._renderMonth(g,v,n,o,a,t,h,w,l[v]))}</div><div class="${G({"awc-calendar__footer":!0,"awc-calendar__footer--empty":!this._hasFooterContent})}" part="footer"><slot name="footer" @slotchange="${this._onFooterSlotChange}"></slot></div></div></div></div>`}},s.AwcCalendar.styles=[Z3],wt([c({type:String,reflect:!0})],s.AwcCalendar.prototype,"value",2),wt([c({type:String})],s.AwcCalendar.prototype,"start",1),wt([c({type:String,reflect:!0})],s.AwcCalendar.prototype,"end",2),wt([c({type:String,reflect:!0})],s.AwcCalendar.prototype,"mode",2),wt([c({type:Number,reflect:!0})],s.AwcCalendar.prototype,"months",2),wt([c({type:Number,attribute:"first-day-of-week"})],s.AwcCalendar.prototype,"firstDayOfWeek",2),wt([c({type:String,reflect:!0})],s.AwcCalendar.prototype,"min",2),wt([c({type:String,reflect:!0})],s.AwcCalendar.prototype,"max",2),wt([c({converter:Bc})],s.AwcCalendar.prototype,"presets",2),wt([c({attribute:!1})],s.AwcCalendar.prototype,"config",2),wt([F("awc-calendar-change")],s.AwcCalendar.prototype,"_emitChange",2),wt([M()],s.AwcCalendar.prototype,"_view",2),wt([M()],s.AwcCalendar.prototype,"_selection",2),wt([M()],s.AwcCalendar.prototype,"_active",2),wt([M()],s.AwcCalendar.prototype,"_hover",2),wt([M()],s.AwcCalendar.prototype,"_headingId",2),wt([M()],s.AwcCalendar.prototype,"_liveMessage",2),wt([M()],s.AwcCalendar.prototype,"_panelLevel",2),wt([M()],s.AwcCalendar.prototype,"_panelActiveMonth",2),wt([M()],s.AwcCalendar.prototype,"_panelActiveYear",2),wt([M()],s.AwcCalendar.prototype,"_hasFooterContent",2),s.AwcCalendar=wt([Ie(),I(Xc)],s.AwcCalendar);const vw="YYYY|YY|MM|DD|HH|mm|hh|M|D|H|h|m|A|a";function _w(r){switch(r[0]){case"Y":return"year";case"M":return"month";case"D":return"day";case"H":case"h":return"hour";default:return"minute"}}const mw={year:"y",month:"m",day:"d",hour:"h",minute:"m",period:"-"},bw={ru:{year:"г",month:"м",day:"д",hour:"ч",minute:"м"},es:{year:"a",month:"m",day:"d",hour:"h",minute:"m"},"pt-br":{year:"a",month:"m",day:"d",hour:"h",minute:"m"},id:{year:"t",month:"b",day:"h",hour:"j",minute:"m"}};function yw(r,t){return bw[t??""]?.[r]??mw[r]}function Cw(r){return r==="YYYY"?4:2}function t1(r,t){const e=[],i=new RegExp(vw,"g");let o=0,a;for(;(a=i.exec(r))!==null;){for(let d=o;d<a.index;
24d++)e.push({lit:!0,char:r[d]});const n=a[0];if(n==="A"||n==="a"){const d=n==="a";e.push({lit:!1,kind:"period",field:"period",prompt:"-",lower:d}),e.push({lit:!1,kind:"period",field:"period",prompt:"-",lower:d})}else{const d=_w(n),l=yw(d,t),h=Cw(n);for(let p=0;p<h;p++)e.push({lit:!1,kind:"digit",field:d,prompt:l})}o=a.index+n.length}for(let n=o;n<r.length;n++)e.push({lit:!0,char:r[n]});return e}function zr(r){return r.map(t=>t.lit?t.char:t.prompt).join("")}function Aw(r,t,e){const i=r[e];return!i.lit&&t[e]!==i.prompt}function e1(r,t){const e=r[t-1];return!e||e.lit||e.kind!=="period"}function i1(r,t){return e1(r,t)?t:t-1}function zs(r,t,e){const i=t[e];if(!i.lit)if(i.kind==="period"){const o=i1(t,e);r[o]=i.prompt,r[o+1]=i.prompt}else r[e]=i.prompt}function r1(r,t,e,i){for(let o=e;o<i&&o<t.length;o++)zs(r,t,o)}function o1(r,t,e,i){return r1(r,t,e,i),{display:r.join(""),caret:e}}function Fs(r,t){let e=t;for(;e<r.length&&r[e].lit;)e++;return e}function xw(r,t,e){return/\d/.test(e)?(r[t]=e,t+1):t}function kw(r,t,e,i,o){if(!/[apAP]/.test(o))return null;const a=i1(t,e),n=o.toLowerCase()==="a"?"AM":"PM",d=i?n.toLowerCase():n;return r[a]=d[0],r[a+1]=d[1],a+2}function a1(r,t,e,i,o){const a=r.split("");e>t&&r1(a,o,t,e);let n=t,d=!1;for(const l of i){if(n=Fs(o,n),n>=o.length)break;const h=o[n];if(h.lit)break;const p=h.kind==="digit"?xw(a,n,l):kw(a,o,n,h.lower,l);p!==null&&p!==n&&(d=!0),p!==null&&(n=p)}return e>t&&!d?{display:r,caret:t}:{display:a.join(""),caret:Fs(o,n)}}function s1(r,t,e,i){const o=r.split("");if(e>t)return o1(o,i,t,e);let a=t-1;for(;a>=0&&i[a].lit;)a--;if(a<0)return{display:o.join(""),caret:0};const n=i[a];zs(o,i,a);const d=!n.lit&&n.kind==="period"&&!e1(i,a)?a-1:a;return{display:o.join(""),caret:d}}function n1(r,t,e,i){const o=r.split("");if(e>t)return o1(o,i,t,e);const a=Fs(i,t);return a<i.length&&zs(o,i,a),{display:o.join(""),caret:a<i.length?a:t}}function Yi(r,t){const e=new Map;for(let o=0;o<t.length;o++){const a=t[o];if(a.lit)continue;let n=e.get(a.field);n||(n={chars:[],complete:!0},e.set(a.field,n)),Aw(t,r,o)?n.chars.push(r[o]):n.complete=!1}const i={};for(const[o,a]of e)i[o]=a.complete?a.chars.join(""):"";return i}function Sw(r,t){return r.reduce((e,i)=>!i.lit&&i.field===t?e+1:e,0)}function Ns(r,t){const e={};let i="";for(const o of r){if(o.lit){i+=o.char;continue}const a=t[o.field]??"",n=e[o.field]??0;i+=a[n]??o.prompt,e[o.field]=n+1}return i}function Fr(r){const t=[];let e=0;for(;e<r.length;){const i=r[e];if(i.lit){e++;continue}const o=i.field,a=e;for(e++;e<r.length;){const n=r[e];if(n.lit||n.field!==o)break;e++}t.push({field:o,start:a,end:e})}return t}function l1(r,t){const e=Fr(r);return e.length===0?null:e.find(i=>t<=i.end)??e[e.length-1]}function c1(r,t){for(const e of Fr(r))if(t>=e.start&&t<e.end)return{start:t,end:e.end};return{start:t,end:t}}function $w(r,t){return zr(Nr(r,t))}function Nr(r,t){return t1(r,t)}function Tw(r){if(r.length>2)return Number(r);const t=Number(r);return t<=69?2e3+t:1900+t}function d1(r){if(!r.year||!r.month||!r.day)return null;const t=Tw(r.year);return`${String(t).padStart(4,"0")}-${r.month.padStart(2,"0")}-${r.day.padStart(2,"0")}`}function Ew(r,t){const e=d1(Yi(r,t));return e?R.fromISO(e)?.toISO()??null:null}function h1(r,t){switch(t){case"YYYY":return String(r.year).padStart(4,"0");case"YY":return String(r.year%100).padStart(2,"0");case"MM":return String(r.month).padStart(2,"0");case"M":return String(r.month);case"DD":return String(r.day).padStart(2,"0");case"D":return String(r.day);default:return null}}function Lw(r,t){const e=Sw(t,"year");return Ns(t,{year:e===4?String(r.year).padStart(4,"0"):String(r.year%100).padStart(2,"0"),month:String(r.month).padStart(2,"0"),day:String(r.day).padStart(2,"0")})}const Iw=30,u1=0,p1=23*60+59,js=60;function Oe(r){return String(r).padStart(2,"0")}function ti(r){if(typeof r!="string")return null;const t=/^(\d{1,2}):(\d{2})$/.exec(r.trim());if(!t)return null;const e=Number(t[1]),i=Number(t[2]);return e>23||i>59?null:e*js+i}function Us(r){const t=Math.floor(r/js),e=r%js;return`${Oe(t)}:${Oe(e)}`}function f1(r){return typeof r=="number"&&Number.isFinite(r)&&r>=1}function Ow(r,t){return f1(r)?Math.floor(r):f1(t)?Math.floor(t):Iw}function Mw(r,t){const e=Ow(r.step,t.timeStep),i=ti(r.minTime),o=ti(r.maxTime),a=i!==null&&o!==null,n=i??u1,d=o??p1;let l;if(a)l={start:n,end:d};else{const h=ti(t.workingHours?.start),p=ti(t.workingHours?.end);l=h!==null&&p!==null?{start:h,end:p}:null}return{step:e,rangeStart:n,rangeEnd:d,workingWindow:l}}function w1(r,t,e){return t<=e?r>=t&&r<=e:r>=t||r<=e}function Pw(r){const{step:t,rangeStart:e,rangeEnd:i,workingWindow:o}=r,a=[];if(t<1)return a;const n=d=>{a.push({value:Us(d),inWorkingWindow:o?w1(d,o.start,o.end):!0})};if(e<=i)for(let d=e;d<=i;d+=t)n(d);else{for(let d=e;d<=p1;d+=t)n(d);for(let d=u1;d<=i;d+=t)n(d)}return a}function Dw(r,t){return Pw(Mw(r,t))}const g1="HH|hh|mm|H|h|m|A|a";function Bw(r){switch(r){case"HH":case"H":return{kind:"num",field:"h24",width:2};case"hh":case"h":return{kind:"num",field:"h12",width:2};case"mm":case"m":return{kind:"num",field:"m",width:2};case"A":return{kind:"period",lower:!1};default:return{kind:"period",lower:!0}}}function Vw(r){const t=[],e=new RegExp(g1,"g");let i=0,o;for(;(o=e.exec(r))!==null;)o.index>i&&t.push({kind:"lit",text:r.slice(i,o.index)}),t.push(Bw(o[0])),i=o.index+o[0].length;return i<r.length&&t.push({kind:"lit",text:r.slice(i)}),t}function Wo(r){return r%12||12}function je(r){if(typeof r!="string")return null;const t=/^(\d{2}):(\d{2})$/.exec(r.trim());if(!t)return null;const e=Number(t[1]),i=Number(t[2]);return e>23||i>59?null:{hour:e,minute:i}}function v1(r){if(typeof r!="string")return null;const t=/^(\d{1,2}):(\d{2})$/.exec(r.trim());if(!t)return null;const e=Number(t[1]),i=Number(t[2]);return e>23||i>59?null:{hour:e,minute:i}}function ei(r){return`${Oe(r.hour)}:${Oe(r.minute)}`}function Zs(r){return r.hour*60+r.minute}function _1(r,t){return t.replace(new RegExp(g1,"g"),e=>{switch(e){case"HH":return Oe(r.hour);case"H":return String(r.hour);case"hh":return Oe(Wo(r.hour));case"h":return String(Wo(r.hour));case"mm":return Oe(r.minute);case"m":return String(r.minute);case"A":return r.hour<12?"AM":"PM";default:return r.hour<12?"am":"pm"}})}function m1(r,t){const e=Vw(t);let i="";for(const o of e){if(o.kind==="lit"){i+=o.text;continue}if(o.kind==="period"){const a=r.hour<12?"AM":"PM";i+=o.lower?a.toLowerCase():a;continue}o.field==="m"?i+=Oe(r.minute):o.field==="h24"?i+=Oe(r.hour):i+=Oe(Wo(r.hour))}return i}function Hw(r,t){return zr(jr(r,t))}function jr(r,t){return t1(r,t)}function b1(r,t){if(t!==void 0){if(!t)return null;const i=Number(r);return i<1||i>12?null:t.toUpperCase()==="PM"?i%12+12:i%12}const e=Number(r);return e>23?null:e}function y1(r,t){const e=Yi(r,t);if(!e.minute||!e.hour)return null;const i=Number(e.minute);if(i>59)return null;const o=b1(e.hour,e.period);return o===null?null:ei({hour:o,minute:i})}function Rw(r){return r==="minute"?"m":r==="period"?"period":"h"}function Go(r){return Fr(jr(r)).map(t=>({field:Rw(t.field),start:t.start,end:t.end}))}function C1(r,t){const e=Go(r);return e.length===0?null:e.find(i=>t<=i.end)??e[e.length-1]}function zw(r,t,e){return t==="h"?{hour:(r.hour+e+24)%24,minute:r.minute}:t==="m"?{hour:r.hour,minute:(r.minute+e+60)%60}:{hour:(r.hour+12)%24,minute:r.minute}}function xi(r,t=2){return String(r).padStart(t,"0")}const A1="HH|hh|mm|H|h|m|A|a";function Fw(r){return new RegExp(A1).test(r)}function Nw(r){const t=new RegExp(A1,"g");let e=-1,i=-1,o;for(;(o=t.exec(r))!==null;)e===-1&&(e=o.index),i=o.index+o[0].length;return e===-1?"":r.slice(e,i).trim()}function ki(r){if(typeof r!="string")return{date:null,time:null};const t=r.indexOf("T"),e=t===-1?r:r.slice(0,t),i=t===-1?null:r.slice(t+1);return{date:R.fromISO(e),time:i===null?null:je(i)}}function qo(r,t){const e=r.toISO();return t?`${e}T${ei(t)}`:e}function jw(r,t){const e=Yi(r,t);if(!e.hour||!e.minute)return null;const i=d1(e);if(!i)return null;const o=R.fromISO(i),a=Number(e.minute);if(!o||a>59)return null;const n=b1(e.hour,e.period);return n===null?null:qo(o,{hour:n,minute:a})}const x1="YYYY|YY|MM|DD|HH|hh|mm|M|D|H|h|m|A|a";function Uw(r,t,e){return e.replace(new RegExp(x1,"g"),i=>h1(r,i)??_1(t,i))}function Zw(r){switch(r){case"YYYY":return{kind:"num",field:"y",width:4};case"YY":return{kind:"num",field:"y",width:2};case"MM":case"M":return{kind:"num",field:"mo",width:2};case"DD":case"D":return{kind:"num",field:"d",width:2};case"HH":case"H":return{kind:"num",field:"h24",width:2};case"hh":case"h":return{kind:"num",field:"h12",width:2};case"mm":case"m":return{kind:"num",field:"min",width:2};case"A":return{kind:"period",lower:!1};default:return{kind:"period",lower:!0}}}function Ww(r){const t=[],e=new RegExp(x1,"g");let i=0,o;for(;(o=e.exec(r))!==null;)o.index>i&&t.push({kind:"lit",text:r.slice(i,o.index)}),t.push(Zw(o[0])),i=o.index+o[0].length;return i<r.length&&t.push({kind:"lit",text:r.slice(i)}),t}function Gw(r,t,e){const i=Ww(e);let o="";for(const a of i){if(a.kind==="lit"){o+=a.text;continue}if(a.kind==="period"){const n=t.hour<12?"AM":"PM";o+=a.lower?n.toLowerCase():n;continue}switch(a.field){case"y":o+=a.width===4?xi(r.year,4):xi(r.year%100);break;case"mo":o+=xi(r.month);break;case"d":o+=xi(r.day);break;case"h24":o+=xi(t.hour);break;case"h12":o+=xi(Wo(t.hour));break;default:o+=xi(t.minute)}}return o}const qw=P`:host{box-sizing:border-box;display:var(--awc-popover-display,contents)}.awc-popover{isolation:isolate;position:absolute;
24left:0;top:0;translate:-99999px 0;box-sizing:border-box;pointer-events:none;opacity:0;visibility:hidden;z-index:99999;box-shadow:0 2px 15px 0 #0000001a;transform:scale(.9);transition:opacity var(--awc-duration-fast,.1s) ease,transform var(--awc-duration-fast,.1s) ease;will-change:opacity,transform;min-width:var(--awc-popover-min-width);max-width:var(--awc-popover-max-width);min-height:var(--awc-popover-min-height,10px);max-height:var(--awc-popover-max-height,300px);padding:var(--awc-popover-padding,12px);background-color:var(--colors-card-surface);border-radius:var(--awc-popover-border-radius,var(--corner-radius-s));overflow:var(--awc-popover-overflow,visible);color:var(--colors-text)}.awc-popover::slotted([slot=awc-popover-content]){color:var(--colors-text)}:host([strategy=fixed]) .awc-popover{position:fixed}:host([no-padding]) .awc-popover{padding:0}.awc-popover.visible{opacity:1;visibility:visible;transform:scale(1);pointer-events:auto}.awc-popover[data-placement^=bottom]{transform-origin:center top}.awc-popover[data-placement=bottom-start]{transform-origin:left top}.awc-popover[data-placement=bottom-end]{transform-origin:right top}.awc-popover[data-placement^=top]{transform-origin:center bottom}.awc-popover[data-placement=top-start]{transform-origin:left bottom}.awc-popover[data-placement=top-end]{transform-origin:right bottom}.awc-popover[data-placement^=left]{transform-origin:right center}.awc-popover[data-placement^=right]{transform-origin:left center}:host([disabled]) .awc-popover{display:none}`;var Yw=Object.defineProperty,Kw=Object.getOwnPropertyDescriptor,Gt=(r,t,e,i)=>{for(var o=i>1?void 0:i?Kw(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Yw(t,e,o),o};const k1="awc-popover";s.AwcPopover=class extends C{constructor(){super(...arguments),this.position="top",this.strategy="absolute",this.triggerType="click",this.spacing=8,this.active=!1,this.disabled=!1,this.noPadding=!1,this.matchReferenceWidth=!1,this.floatingSession=null,this._hoverTimeout=null,this.referenceEl=null,this.isMouseOverPopover=!1,this.isMouseOverReference=!1,this._outsideClick=new pi(this,t=>t.includes(this)),this._handleOutsideClick=t=>{this._outsideClick.isOutside(t)&&this.hide()},this._onReferenceMouseEnter=this.debounce(()=>{!this.disabled&&this.triggerType==="hover"&&(this.isMouseOverReference=!0,this.show(),this.popoverEl?.addEventListener("mouseenter",this._onPopoverMouseEnter),this.popoverEl?.addEventListener("mouseleave",this._onPopoverMouseLeave))},50),this._onReferenceMouseLeave=this.debounce(()=>{!this.disabled&&this.triggerType==="hover"&&(this.isMouseOverReference=!1,this._tryHide())},50),this._onPopoverMouseEnter=this.debounce(()=>{!this.disabled&&this.triggerType==="hover"&&(this.isMouseOverPopover=!0,this._hoverTimeout&&clearTimeout(this._hoverTimeout))},50),this._onPopoverMouseLeave=this.debounce(()=>{!this.disabled&&this.triggerType==="hover"&&(this.isMouseOverPopover=!1,this._tryHide())},300),this._tryHide=this.debounce(()=>{!this.isMouseOverReference&&!this.isMouseOverPopover&&(this.hide(),this.popoverEl?.removeEventListener("mouseenter",this._onPopoverMouseEnter),this.popoverEl?.removeEventListener("mouseleave",this._onPopoverMouseLeave))},300),this._onFocus=()=>{!this.disabled&&this.triggerType==="focus"&&this.show()},this._onBlur=()=>{!this.disabled&&this.triggerType==="focus"&&!this.contains(document.activeElement)&&this.hide()},this._onClick=()=>{!this.disabled&&this.triggerType==="click"&&(this.active?this.hide():this.show())},this._handlePopoverToggle=t=>{this.triggerType!=="manual"&&t.detail!==this&&this.active&&this.hide()},this.handleSlotChange=()=>{if(!this.slotEl)return;const t=this.slotEl.assignedElements({flatten:!0});let e=null;for(const i of t)if(i.tagName==="AWC-TOOLTIP"?e=i.referenceEl||null:e=i,e)break;this.referenceEl=e,this.active&&this.updatePosition()}}connectedCallback(){super.connectedCallback(),this.addEventListener("mouseenter",this._onReferenceMouseEnter),this.addEventListener("mouseleave",this._onReferenceMouseLeave),this.addEventListener("focusin",this._onFocus),this.addEventListener("focusout",this._onBlur),this.addEventListener("click",this._onClick),this.addEventListener("slotchange",this.handleSlot
24Change),document.addEventListener("awc-popover-toggle",this._handlePopoverToggle)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("mouseenter",this._onReferenceMouseEnter),this.removeEventListener("mouseleave",this._onReferenceMouseLeave),this.removeEventListener("focusin",this._onFocus),this.removeEventListener("focusout",this._onBlur),this.removeEventListener("click",this._onClick),this.removeEventListener("slotchange",this.handleSlotChange),document.removeEventListener("awc-popover-toggle",this._handlePopoverToggle),this._removeOutsideClickHandler(),this.floatingSession?.destroy(),this._hoverTimeout&&clearTimeout(this._hoverTimeout)}_addOutsideClickHandler(){document.addEventListener("click",this._handleOutsideClick)}_removeOutsideClickHandler(){document.removeEventListener("click",this._handleOutsideClick)}debounce(t,e){let i=null;return(...o)=>{i&&clearTimeout(i),i=window.setTimeout(()=>t(...o),e)}}getValidSpacing(){const t=Number(this.spacing);return isNaN(t)?8:t}updatePosition(){if(!this.popoverEl||!this.referenceEl||this.disabled)return Promise.resolve();this.floatingSession?.destroy(),this.popoverEl.dataset.placement=this.position;const t=this.strategy==="fixed",e={position:this.position,strategy:t?"fixed":"absolute",spacing:this.getValidSpacing(),matchReferenceWidth:this.matchReferenceWidth,boundary:t?[]:_s(this.popoverEl),hideWhenClipped:!0,onPlacementChange:i=>{this.popoverEl&&(this.popoverEl.dataset.placement=i)}};return new Promise(i=>{this.floatingSession=Oo(this.referenceEl,this.popoverEl,null,e),requestAnimationFrame(()=>i())})}updated(t){super.updated(t),t.has("active")&&(this.active?(this.updatePosition(),this._popoverOpenEvent(!0),this.triggerType!=="manual"&&this._popoverToggleEvent(this)):(this.floatingSession?.destroy(),this._popoverCloseEvent(!0),this.popoverEl?.removeEventListener("mouseenter",this._onPopoverMouseEnter),this.popoverEl?.removeEventListener("mouseleave",this._onPopoverMouseLeave))),(t.has("position")||t.has("spacing")||t.has("strategy"))&&this.active&&this.updatePosition()}show(){!this.disabled&&!this.active&&(this.floatingSession?.destroy(),this.active=!0,this.triggerType==="click"&&this._addOutsideClickHandler())}hide(){!this.disabled&&this.active&&(this.active=!1,this.triggerType==="click"&&this._removeOutsideClickHandler())}render(){const t={"awc-popover":!0,visible:this.active,"awc-popover--no-padding":this.noPadding};return f`<slot @slotchange="${this.handleSlotChange}"></slot><div class="${G(t)}" part="panel"><slot name="awc-popover-content"></slot></div>`}},s.AwcPopover.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcPopover.styles=[qw],Gt([c({type:String,reflect:!0})],s.AwcPopover.prototype,"position",2),Gt([c({type:String,reflect:!0})],s.AwcPopover.prototype,"strategy",2),Gt([c({type:String,reflect:!0,attribute:"trigger-type"})],s.AwcPopover.prototype,"triggerType",2),Gt([c({type:Number,reflect:!0})],s.AwcPopover.prototype,"spacing",2),Gt([c({type:Boolean,reflect:!0})],s.AwcPopover.prototype,"active",2),Gt([c({type:Boolean,reflect:!0})],s.AwcPopover.prototype,"disabled",2),Gt([c({type:Boolean,reflect:!0,attribute:"no-padding"})],s.AwcPopover.prototype,"noPadding",2),Gt([c({type:Boolean,reflect:!0,attribute:"match-reference-width"})],s.AwcPopover.prototype,"matchReferenceWidth",2),Gt([F("awc-popover-open")],s.AwcPopover.prototype,"_popoverOpenEvent",2),Gt([F("awc-popover-close")],s.AwcPopover.prototype,"_popoverCloseEvent",2),Gt([F("awc-popover-toggle")],s.AwcPopover.prototype,"_popoverToggleEvent",2),Gt([H(".awc-popover")],s.AwcPopover.prototype,"popoverEl",2),Gt([H("slot")],s.AwcPopover.prototype,"slotEl",2),s.AwcPopover=Gt([I(k1)],s.AwcPopover);const S1=(r,t,e)=>{const i=new Map;for(let o=t;o<=e;o++)i.set(r[o],o);return i},Ws=Ri(class extends Cr{constructor(r){if(super(r),r.type!==me.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);const o=[],a=[];let n=0;for(const d of r)o[n]=i?i(d,n):n,a[n]=e(d,n),n++;return{values:a,keys:o}}render(r,t,e){return this.dt(r,t,e).values}update(r,[t,e,i]){const o=Sp(r),{values:a,keys:n}=this.dt(t,e,i);if(!Array.isArray(o))return this.ut=n,a;const d=this.ut??(this.ut=[]),l=[];let h,p,w=0,g=o.length-1,v=0,m=a.length-1;for(;w<=g&&v<=m;)if(o[w]===null)w++;else if(o[g]===null)g--;else if(d[w]===n[v])l[v]=gi(o[w],a[v]),w++,v++;else if(d[g]===n[m])l[m]=gi(o[g],a[m]),g--,m--;else if(d[w]===n[m])l[m]=gi(o[w],a[m]),$r(r,l[m+1],o[w]),w++,m--;else if(d[g]===n[v])l[v]=gi(o[g],a[v]),$r(r,o[w],o[g]),g--,v++;else if(h===void 0&&(h=S1(n,v,m),p=S1(d,w,g)),h.has(d[w]))if(h.has(d[g])){const b=p.get(n[v]),k=b!==void 0?o[b]:null;if(k===null){const T=$r(r,o[w]);gi(T,a[v]),l[v]=T}else l[v]=gi(k,a[v]),$r(r,o[w],k),o[b]=null;v++}else rs(o[g]),g--;else rs(o[w]),w++;for(;v<=m;){const b=$r(r,l[m+1]);gi(b,a[v]),l[v++]=b}for(;w<=g;){const b=o[w++];b!==null&&rs(b)}return this.ut=n,Rl(r,l),Ut}}),Xw=P`:host{display:inline-block;--awc-time-picker-background-color:var(--colors-input-background);--awc-time-picker-background-hover-color:var(--colors-stroke);--awc-time-picker-background-focus-color:var(--colors-base-surface);--awc-time-picker-text-color:var(--colors-text);--awc-time-picker-placeholder-color:var(--colors-secondary);--awc-time-picker-label-color:var(--colors-titles);--awc-time-picker-border-focus-color:var(--colors-secondary);--awc-time-picker-height:40px}.awc-time-picker{position:relative;display:flex;flex-direction:column;width:100%}.awc-time-picker__label{max-width:max-content;margin-bottom:var(--spacing-s);font:var(--awc-font-text-medium-13);color:var(--awc-time-picker-label-color)}:host([required]) .awc-time-picker__label::after{content:"*";margin-left:4px;color:var(--colors-warning)}.awc-time-picker__control{position:relative;display:flex;align-items:center;box-sizing:border-box;background-color:var(--awc-time-picker-background-color);border-radius:var(--corner-radius-m);outline:1px solid transparent;outline-offset:-1px;transition:outline-color var(--awc-duration-base,.25s) ease-out,background-color var(--awc-duration-base,.25s) ease}.awc-time-picker__control:hover{background-color:var(--awc-time-picker-background-hover-color)}.awc-time-picker__control:focus-within{outline-color:var(--awc-time-picker-border-focus-color);background-color:var(--awc-time-picker-background-focus-color)}.awc-time-picker__control--error{outline-color:var(--colors-warning);background-color:var(--awc-time-picker-background-focus-color)}.awc-time-picker__field{flex:1 1 auto;box-sizing:border-box;width:100%;height:var(--awc-time-picker-height);padding:8px 36px 8px 12px;border:none;background:0 0;outline:0;font:var(--awc-font-text-regular-14);color:var(--awc-time-picker-text-color);cursor:text}.awc-time-picker__field::placeholder{color:var(--awc-time-picker-placeholder-color)}.awc-time-picker__field::selection{background-color:var(--colors-primary);color:var(--colors-white)}:host([disabled]) .awc-time-picker__control{opacity:.5}:host([disabled]) .awc-time-picker__field{cursor:not-allowed}.awc-time-picker__icon-end{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;color:var(--colors-secondary);pointer-events:none}.awc-time-picker__clear{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:16px;height:16px;padding:0;border:none;background:0 0;color:var(--colors-secondary);cursor:pointer;transition:color var(--awc-duration-base,.25s) ease}.awc-time-picker__clear:hover{color:var(--colors-titles)}:host([disabled]) .awc-time-picker__clear{cursor:not-allowed}.awc-time-picker__hint{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-secondary);overflow-wrap:anywhere}.awc-time-picker__error{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-warning);overflow-wrap:anywhere}.awc-time-picker__hint--hidden,.awc-time-picker__label--hidden{display:none}.awc-time-picker__listbox{position:absolute;top:0;left:0;z-index:9999;box-sizing:border-box;max-height:240px;margin:0;padding:var(--spacing-xs);overflow-y:auto;list-style:none;background-color:var(--colors-base-surface);border-radius:var(--corner-radius-m);box-shadow:0 10px 20px 0 var(--colors-dropdown-shadow-color);scrollbar-width:thin;scrollbar-color:var(--colors-stroke) transparent}:host([strategy=fixed]) .awc-time-picker__listbox{position:fixed}.awc-time-picker__listbox::-webkit-scrollbar{width:10px;height:10px;background-color:transparent}.awc-time-picker__listbox::-webkit-scrollbar-thumb{border:3px solid transparent;background-clip:padding-box;background-color:rgba(0,0,0,.2);border-radius:7px;transition:background-color var(--awc-duration-base,.2s)}.awc-time-picker__listbox::-webkit-scrollbar-thumb:hover{background-color:#3761e959}
24.awc-time-picker__option{display:flex;align-items:center;box-sizing:border-box;min-height:32px;padding:0 var(--spacing-s);border-radius:var(--corner-radius-s);font:var(--awc-font-text-regular-14);color:var(--colors-text);cursor:pointer}.awc-time-picker__option--active,.awc-time-picker__option:hover{background-color:var(--colors-element-hover)}.awc-time-picker__option--off-window{color:var(--colors-secondary)}.awc-time-picker__option--selected{background-color:var(--colors-element-hover)}`;var Jw=Object.defineProperty,Qw=Object.getOwnPropertyDescriptor,gt=(r,t,e,i)=>{for(var o=i>1?void 0:i?Qw(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&Jw(t,e,o),o};const t4="awc-time-picker",e4={attribute:"required",key:"valueMissing",isValid(r){return r.readonly||!(r.hasAttribute("required")||r.required)?!0:r.value!==""}};function i4(r,t,e){const i=je(r);if(!i)return{under:!1,over:!1};const o=Zs(i),a=ti(t),n=ti(e);if(a!==null&&n!==null&&a>n){const d=!w1(o,a,n);return{under:d,over:d}}return{under:a!==null&&o<a,over:n!==null&&o>n}}const $1=(r,t)=>({key:r,isValid:e=>e.readonly||!i4(e.value,e.minTime,e.maxTime)[t]}),r4=$1("rangeUnderflow","under"),o4=$1("rangeOverflow","over"),a4="HH:mm";s.AwcTimePicker=class extends te(C){constructor(){super(...arguments),this.value="",this.format="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.strategy="absolute",this.validationMessage="",this._open=!1,this._activeIndex=-1,this._typedText="",this._fromInput=!1,this._pendingSelection=null,this._lastLocale=void 0,this._pendingScroll=!1,this._valueAtFocus="",this._ownsError=!1,this._slotsCache=null,this.inputId=St("awc-time-picker"),this.errorId=St("awc-time-picker-error"),this.listboxId=St("awc-time-picker-listbox"),this.slots=new he(this,"awc-time-picker"),this._defaults=new Ce(this,{value:()=>this.value}),this._onInvalid=t=>{t.preventDefault(),this.validationTarget?.focus()},this._onBeforeInput=t=>{if(this.readonly)return;const e=t.target,i=this._timeTemplate(),o=this._typedText||zr(i),a=e.selectionStart??o.length,n=e.selectionEnd??a,d=t.inputType;let l;if(d.startsWith("insert")){const w=t.data??t.dataTransfer?.getData("text")??"";if(!w)return;l=a1(o,a,n,w,i)}else if(d==="deleteByCut"||d.startsWith("deleteContent")||d.startsWith("deleteWord"))l=d.includes("Forward")?n1(o,a,n,i):s1(o,a,n,i);else return;t.preventDefault();const h=l.display===zr(i)?"":l.display,p=y1(l.display,i)??"";h===this._typedText&&p===this.value||(this._activeIndex=-1,this._typedText=h,this._pendingSelection=c1(i,l.caret),this._fromInput=!0,this.value=p,this._clearTypedError(),this._emitInput())},this._onChange=t=>{t.stopPropagation(),this._validateTyped();const e=this.value!==this._valueAtFocus;this._valueAtFocus=this.value,e&&this._emitChange()},this._onFocus=()=>{this._valueAtFocus=this.value,this._selectFirstSegment()},this._onInputClick=()=>{if(this.disabled||this.readonly)return;const t=C1(this._maskFormat(),this.validationTarget?.selectionStart??0);t&&(this._pendingSelection={start:t.start,end:t.end},this.requestUpdate())},this._onBlur=t=>{this._commitTyped();const e=t.relatedTarget;(!e||!this.contains(e))&&this._closePopup()},this._onControlClick=()=>{this.disabled||this.readonly||this._openPopup()},this._onClear=t=>{t.stopPropagation(),!this.disabled&&(this._typedText="",this._commitValue(""),this.validationTarget?.focus())},this._onListboxMousedown=t=>{t.preventDefault()},this._outsideClick=new pi(this,t=>t.includes(this)),this._onDocumentClick=t=>{this._outsideClick.isOutside(t)&&this._closePopup()},this._onListboxClick=t=>{const i=t.target.closest("li[data-value]")?.dataset.value;i!==void 0&&this._commitSlot(i)},this._onKeydown=t=>{if(this.disabled||this.readonly||this._open&&this._onPopupKeydown(t))return;if(!this._open&&t.key==="ArrowDown"){t.preventDefault(),this._openPopup();return}const e=this._maskFormat(),i=this.validationTarget?.selectionStart??0,o=C1(e,i);if(o){if(t.key==="ArrowUp"||t.key==="ArrowDown"){t.preventDefault();const a=zw(this._baseTime(),o.field,t.key==="ArrowUp"?1:-1);this._fromInput=!1,this.value=ei(a),this._clearTypedError(),this._selectSegment(o),this._emitInput();return}if(t.key==="ArrowRight"||t.key==="ArrowLeft"){const a=Go(e),n=a.findIndex(h=>h.start===o.start),d=t.key==="ArrowRight"?n+1:n-1;if(d<0||d>=a.length)return;t.preventDefault();const l=a[d];this._pendingSelection={start:l.start,end:l.end},this.requestUpdate()}}}}validityCallback(t){if(t==="valueMissing")return this.validationTarget?.validationMessage||Qa("text");if(t==="rangeUnderflow"||t==="rangeOverflow"){const e=ti(this.minTime),i=ti(this.maxTime);return Ol("time",this.value,e!==null?Us(e):"",i!==null?Us(i):"")||Y("awc-time-picker.invalid")}return this.error||Y("awc-time-picker.invalid")}validationMessageCallback(t){this.validationMessage=t}resetFormControl(){this._fromInput=!1;const t=v1(this._defaults.get("value")),e=t?ei(t):"";this.value=e,this._typedText=t?m1(t,this._maskFormat()):"",this._valueAtFocus=e,this._clearTypedError()}setCustomValidity(t){this.error=t}_applyCustomValidity(){const t=this.error;this.validationTarget?.setCustomValidity(t),this.setValue(this.value),ts(this,t)}_maskFormat(){return this.format||a4}_inputMode(){return this.readonly||this.disabled||Go(this._maskFormat()).some(e=>e.field==="period")?A:"numeric"}_clearTypedError(){this._ownsError&&(this._ownsError=!1,this.error="")}_emitInput(){El(this)}_emitChange(){Ll(this)}_commitValue(t){const e=this.value;this._fromInput=!1,this.value=t,this._clearTypedError(),this._valueAtFocus=this.value,this._emitInput(),t!==e&&this._emitChange()}_timeTemplate(){return jr(this._maskFormat(),Dt())}_validateTyped(){const t=y1(this._typedText,this._timeTemplate());if(!(this._typedText!==""&&!t)){this._clearTypedError();return}(!this.error||this._ownsError)&&(this.error=Y("awc-time-picker.invalid"),this._ownsError=!0)}_selectFirstSegment(){if(this.disabled||this.readonly)return;const t=Go(this._maskFormat());
24t.length!==0&&(this._pendingSelection={start:t[0].start,end:t[0].end},this.requestUpdate())}_commitTyped(){this._validateTyped(),this.value!==this._valueAtFocus&&this._emitChange(),this._valueAtFocus=this.value}_baseTime(){return je(this.value)??this._typedBaseTime()}_typedBaseTime(){const t=Yi(this._typedText,this._timeTemplate()),e=(o,a)=>{const n=Number(o);return o&&Number.isInteger(n)&&n>=0&&n<=a?n:0},i=e(t.minute,59);if(t.period!==void 0){const o=Number(t.hour),a=t.hour&&o>=1&&o<=12?o:12;return{hour:(t.period??"").toUpperCase()==="PM"?a%12+12:a%12,minute:i}}return{hour:e(t.hour,23),minute:i}}_slots(){const t=Bs(),e=[this.step,this.minTime,this.maxTime,t.timeStep??"",t.workingHours?.start??"",t.workingHours?.end??""].join("|");return this._slotsCache?.key!==e&&(this._slotsCache={key:e,slots:Dw({step:this.step,minTime:this.minTime,maxTime:this.maxTime},{...t})}),this._slotsCache.slots}_optionId(t){return`${this.listboxId}-opt-${t}`}_slotIndexForValue(t){if(t.length===0)return-1;const e=t.findIndex(p=>p.value===this.value);if(e!==-1)return e;const i=je(this.value);if(!i)return 0;const o=Zs(i);let a=!0,n=-1,d=-1,l=0,h=1/0;for(let p=0;p<t.length;p++){const w=je(t[p].value);if(w===null)continue;const g=Zs(w);g<n&&(a=!1),n=g,d===-1&&g>=o&&(d=p);const v=Math.abs(g-o);v<h&&(h=v,l=p)}return a?d===-1?t.length-1:d:l}_openPopup(){if(this.disabled||this.readonly||this._open)return;const t=this._slotIndexForValue(this._slots());this._activeIndex=je(this.value)?t:-1,this._open=!0}_closePopup(t=!1){this._open&&(this._open=!1,t&&this.validationTarget?.focus())}_teardownFloating(){this._floatingSession?.destroy(),this._floatingSession=void 0}_setupFloating(){if(!this._control||!this._listbox)return;this._teardownFloating();const t=this.strategy==="fixed";this._floatingSession=Oo(this._control,this._listbox,null,{position:"bottom-start",strategy:t?"fixed":"absolute",spacing:4,matchReferenceWidth:!0,boundary:t?[]:_s(this._listbox),hideWhenClipped:!0})}_scrollActiveIntoView(){const t=this._listbox;if(!t)return;const e=this._activeIndex>=0?this._activeIndex:this._slotIndexForValue(this._slots());if(e<0)return;const i=t.querySelector(`#${CSS.escape(this._optionId(e))}`);if(!i)return;const o=i.offsetTop,a=o+i.offsetHeight;o<t.scrollTop?t.scrollTop=o:a>t.scrollTop+t.clientHeight&&(t.scrollTop=a-t.clientHeight)}_selectSlot(t){const e=this._slots()[t];e&&this._commitSlot(e.value)}_commitSlot(t){this._closePopup(!0),this._commitValue(t)}_onPopupKeydown(t){const e=this._slots();if(e.length===0)return!1;const i=e.length-1;switch(t.key){case"ArrowDown":return t.preventDefault(),this._activeIndex=this._activeIndex>=i?0:this._activeIndex+1,this._pendingScroll=!0,!0;case"ArrowUp":return t.preventDefault(),this._activeIndex=this._activeIndex<=0?i:this._activeIndex-1,this._pendingScroll=!0,!0;case"Home":return t.preventDefault(),this._activeIndex=0,this._pendingScroll=!0,!0;case"End":return t.preventDefault(),this._activeIndex=i,this._pendingScroll=!0,!0;case"Enter":return t.preventDefault(),this._activeIndex>=0?this._selectSlot(this._activeIndex):(this._commitTyped(),this._closePopup(!0)),!0;case"Escape":return t.preventDefault(),t.stopPropagation(),this._closePopup(!0),!0;default:return!1}}_selectSegment(t){this._pendingSelection={start:t.start,end:t.end},this.requestUpdate()}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this._onInvalid),this._unsubscribeConfig=jc(()=>this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._onInvalid),this._unsubscribeConfig?.(),this._unsubscribeConfig=void 0,document.removeEventListener("click",this._onDocumentClick),this._teardownFloating(),this._open=!1}willUpdate(t){super.willUpdate(t);const e=Dt();if(this._lastLocale!==void 0&&this._lastLocale!==e&&!this._fromInput&&this._typedText!==""){const o=this._maskFormat(),a=jr(o,this._lastLocale),n=jr(o,e);this._typedText=Ns(n,Yi(this._typedText,a))}if(this._ownsError&&(this.error=Y("awc-time-picker.invalid")),this._lastLocale=e,this._open&&(t.has("disabled")&&this.disabled||t.has("readonly")&&this.readonly)&&(this._open=!1),t.has("value")&&!this._fromInput&&this.value!==""){const o=v1(this.value),a=o?ei(o):"";a!==this.value&&(this.value=a)}if((t.has("value")||t.has("format"))&&!this._fromInput){const o=je(this.value??"");this._typedText=o?m1(o,this._maskFormat()):"",this._valueAtFocus=this.value}}updated(t){super.updated(t),(t.has("value")||t.has("minTime")||t.has("maxTime")||t.has("readonly"))&&this.setValue(this.value),this._fromInput=!1,this._restorePendingCaret(),t.has("error")&&this._applyCustomValidity(),this._syncPopupEffects(t),this._clampActiveIndex(t),this._pendingScroll&&(this._pe
24ndingScroll=!1,this._scrollActiveIntoView())}_restorePendingCaret(){if(this._pendingSelection!==null){const t=this.validationTarget;t&&this.shadowRoot?.activeElement===t&&t.setSelectionRange(this._pendingSelection.start,this._pendingSelection.end),this._pendingSelection=null}}_syncPopupEffects(t){if(!t.has("_open")){this._open&&t.has("strategy")&&this._setupFloating();return}this._open?(this._setupFloating(),this._scrollActiveIntoView(),document.addEventListener("click",this._onDocumentClick)):(this._teardownFloating(),document.removeEventListener("click",this._onDocumentClick))}_clampActiveIndex(t){if(this._open&&(t.has("step")||t.has("minTime")||t.has("maxTime")||t.size===0)){const e=this._slots().length;this._activeIndex>=e&&(this._activeIndex=e-1)}}_slotLabel(t){const e=je(t);return e?_1(e,this._maskFormat()):t}_renderListbox(){if(!this._open)return A;const t=this._slots();return f`<ul part="listbox" id="${this.listboxId}" class="awc-time-picker__listbox" role="listbox" tabindex="-1" aria-label="${Y("awc-time-picker.choose-time")}" @mousedown="${this._onListboxMousedown}" @click="${this._onListboxClick}">${Ws(t,e=>e.value,(e,i)=>{const o=e.value===this.value;return f`<li part="option" id="${this._optionId(i)}" class="${G({"awc-time-picker__option":!0,"awc-time-picker__option--active":i===this._activeIndex,"awc-time-picker__option--selected":o,"awc-time-picker__option--off-window":!e.inWorkingWindow})}" role="option" data-value="${e.value}" aria-selected="${o?"true":"false"}">${this._slotLabel(e.value)}</li>`})}</ul>`}_renderClearButton(){return f`<button part="clear" class="awc-time-picker__clear" type="button" tabindex="-1" aria-label="${Y("awc-time-picker.clear")}" ?disabled="${this.disabled}" @mousedown="${this._onListboxMousedown}" @click="${this._onClear}"><svg viewBox="0 0 16 16" width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M4.5 4.5 11.5 11.5M11.5 4.5 4.5 11.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button>`}_renderTrailingIcon(){return f`<span part="icon-end" class="awc-time-picker__icon-end" aria-hidden="true"><svg viewBox="0 0 16 16" width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="6.25" stroke="currentColor" stroke-width="1.5"></circle><path d="M8 4.5V8l2.5 1.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></span>`}render(){const t=this.showError&&!!this.validationMessage,e=!!this.error||t,i=this.error||(t?this.validationMessage:""),o=e&&!!i,a=this.slots.hasLabelSlot||!!this.label,n=this.slots.hasHintSlot||!!this.hint,d=Ae([n&&this.slots.hintId,o&&this.errorId]);return f`<div class="awc-time-picker" part="base"><label for="${this.inputId}" id="${this.slots.labelId}" part="label" class="${G({"awc-time-picker__label":!0,"awc-time-picker__label--hidden":!a})}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}">${this.label}</slot></label><div part="control" class="${G({"awc-time-picker__control":!0,"awc-time-picker__control--error":e})}" @click="${this._onControlClick}"><input part="input" class="awc-time-picker__field" id="${this.inputId}" type="text" role="combobox" inputmode="${this._inputMode()}" aria-haspopup="listbox" aria-autocomplete="none" aria-expanded="${this._open?"true":"false"}" aria-controls="${D(this._open?this.listboxId:void 0)}" aria-activedescendant="${D(this._open&&this._activeIndex>=0?this._optionId(this._activeIndex):void 0)}" placeholder="${this.placeholder??Hw(this._maskFormat(),Dt())}" .value="${Ye(this._typedText)}" @beforeinput="${this._onBeforeInput}" @change="${this._onChange}" @focus="${this._onFocus}" @blur="${this._onBlur}" @click="${this._onInputClick}" @keydown="${this._onKeydown}" aria-describedby="${D(d)}" aria-invalid="${o?"true":"false"}" aria-readonly="${this.readonly?"true":A}" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}"> ${(this.value||this._typedText)&&!this.readonly&&!this.disabled?this._renderClearButton():this._renderTrailingIcon()}</div>${this._renderListbox()} <span part="helper-text" id="${this.slots.hintId}" class="${G({"awc-time-picker__hint":!0,"awc-time-picker__hint--hidden":!n})}"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span>${o?f`<span part="error-message" class="awc-time-picker__error" id="${this.errorId}">${i}</span>`:A}</div>`}},s.AwcTimePicker.formControlValidators=[e4,fi,r4,o4],s.AwcTimePicker.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcTimePicker.styles=[Xw],gt([c({type:String,reflect:!0})],s.AwcTimePicker.prototype,"value",2),gt([c({type:String,reflect:!0})],s.AwcTimePicker.prototype,"format",2),gt([c({type:String,reflect:!0})],s.AwcTimePicker.prototype,"name",2),gt([c({type:String,reflect:!0})],s.AwcTimePicker.prototype,"label",2),gt([c({type:String,reflect:!0})],s.AwcTimePicker.prototype,"hint",2),gt([c({type:String,reflect:!0,attribute:"error",useDefault:!0})],s.AwcTimePicker.prototype,"error",2),gt([c({type:Boolean,reflect:!0})],s.AwcTimePicker.prototype,"required",2),gt([c({type:Boolean,reflect:!0})],s.AwcTimePicker.prototype,"disabled",2),gt([c({type:Boolean,reflect:!0})],s.AwcTimePicker.prototype,"readonly",2),gt([c({type:String})],s.AwcTimePicker.prototype,"placeholder",2),gt([c({type:Number,reflect:!0})],s.AwcTimePicker.prototype,"step",2),gt([c({type:String,reflect:!0,attribute:"min-time"})],s.AwcTimePicker.prototype,"minTime",2),gt([c({type:String,reflect:!0,attribute:"max-time"})],s.AwcTimePicker.prototype,"maxTime",2),gt([c({type:String,reflect:!0,useDefault:!0})],s.AwcTimePicker.prototype,"strategy",2),gt([M()],s.AwcTimePicker.prototype,"validationMessage",2),gt([M()],s.AwcTimePicker.prototype,"_open",2),gt([M()],s.AwcTimePicker.prototype,"_activeIndex",2),gt([M()],s.AwcTimePicker.prototype,"_typedText",2),gt([H("input")],s.AwcTimePicker.prototype,"validationTarget",2),gt([H('[part="control"]')],s.AwcTimePicker.prototype,"_control",2),gt([H('[part="listbox"]')],s.AwcTimePicker.prototype,"_listbox",2),s.AwcTimePicker=gt([Ie(),I(t4)],s.AwcTimePicker);const s4=P`:host{display:inline-block;--awc-date-picker-background-color:var(--colors-input-background);--awc-date-picker-background-hover-color:var(--colors-stroke);--awc-date-picker-background-focus-color:var(--colors-base-surface);--awc-date-picker-text-color:var(--colors-text);--awc-date-picker-placeholder-color:var(--colors-secondary);--awc-date-picker-label-color:var(--colors-titles);--awc-date-picker-border-focus-color:var(--colors-secondary)}.awc-date-picker{display:flex;flex-direction:column;width:100%}.awc-date-picker__label{max-width:max-content;margin-bottom:var(--spacing-s);font:var(--awc-font-text-medium-13);color:var(--awc-date-picker-label-color)}:host([required]) .awc-date-picker__label::after{content:"*";margin-left:4px;color:var(--colors-warning)}.awc-date-picker__control{position:relative;display:flex;align-items:center;box-sizing:border-box;background-color:var(--awc-date-picker-background-color);border-radius:var(--corner-radius-m);outline:1px solid transparent;outline-offset:-1px;transition:outline-color var(--awc-duration-base,.25s) ease-out,background-color var(--awc-duration-base,.25s) ease}.awc-date-picker__control:hover{background-color:var(--awc-date-picker-background-hover-color)}.awc-date-picker__control:focus-within{outline-color:var(--awc-date-picker-border-focus-color)}:host([editable]) .awc-date-picker__control:focus-within{background-color:var(--awc-date-picker-background-focus-color)}.awc-date-picker__control--error{outline-color:var(--colors-warning);background-color:var(--awc-date-picker-background-focus-color)}.awc-date-picker__field{flex:1 1 auto;box-sizing:border-box;width:100%;height:40px;padding:0 36px 0 12px;border:none;background:0 0;outline:0;font:var(--awc-font-text-regular-14);color:var(--awc-date-picker-text-color);cursor:pointer}.awc-date-picker__field::placeholder{color:var(--awc-date-picker-placeholder-color)}.awc-date-picker__field::selection{background-color:var(--colors-primary);color:var(--colors-white)}:host([editable]) .awc-date-picker__field{cursor:text}:host([editable]) .awc-date-picker__icon-end{pointer-events:auto;cursor:pointer}:host([disabled]) .awc-date-picker__control{opacity:.5}:host([disabled]) .awc-date-picker__field{cursor:not-allowed}.awc-date-picker__icon-end{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;color:var(--colors-secondary);pointer-events:none}.awc-date-picker__clear{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:16px;height:16px;padding:0;border:none;background:0 0;color:var(--colors-secondary);cursor:pointer;transition:color var(--awc-duration-base,.25s) ease}.awc-date-picker__clear:hover{color:var(--colors-titles)}:host([disabled]) .awc-date-picker__clear{cursor:not-allowed}.awc-date-picker__hint{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-secondary);overflow-wrap:anywhere}.awc-date-picker__error{display:block;margin-top:var(--spacing-s);font:var(--awc-font-caption-1-regular);color:var(--colors-warning);overflow-wrap:anywhere}.awc-date-picker__hint--hidden,.awc-date-picker__label--hidden{display:none}awc-popover{--awc-popover-max-height:none;--awc-popover-border-radius:var(--corner-radius-m)}awc-popover::part(panel){box-shadow:var(--effects-dropdown-shadow)}[part=panel]{display:flex;flex-direction:column}.awc-date-picker__time{display:block;--awc-time-picker-height:36px}`;var n4=Object.defineProperty,l4=Object.getOwnPropertyDescriptor,et=(r,t,e,i)=>{for(var o=i>1?void 0:i?l4(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&n4(t,e,o),o};const c4="awc-date-picker",d4={attribute:"required",key:"valueMissing",isValid(r){return r.readonly||!(r.hasAttribute("required")||r.required)?!0:r.mode==="range"?r.value!==""&&r.end!=="":r.value!==""}},h4={key:"rangeUnderflow",isValid(r){return r.readonly||!r._boundsCheck().under}},u4={key:"rangeOverflow",isValid(r){return r.readonly||!r._boundsCheck().over}};function p4(r,t){return t.replace(/YYYY|YY|MM|M|DD|D/g,e=>h1(r,e)??e)}const f4=" – ",Yo={hour:0,minute:0};s.AwcDatePicker=class extends te(C){constructor(){super(...arguments),this.value="",this.mode="single",this.end="",this.format="",this.editable=!1,this.enableTime=!1,this.error="",this.required=!1,this.disabled=!1,this.min="",this.max="",this.firstDayOfWeek=0,this.config={},this.readonly=!1,this.validationMessage="",this._open=!1,this._typedText="",this._fromInput=!1,this._pendingSelection=null,this._focusGridOnOpen=!0,this._lastLocale=void 0,this._valueAtFocus="",this._valueAtOpen="",this._ownsError=!1,this._ownedMessage="",this._pendingTime=null,this._maskTemplateCache=null,this.inputId=St("awc-date-picker"),this.errorId=St("awc-date-picker-error"),this.panelId=St("awc-date-picker-panel"),this.slots=new he(this,"awc-date-picker"),this._defaults=new Ce(this,{value:()=>this.value,end:()=>this.end}),this._onInvalid=t=>{t.preventDefault(),this.validationTarget?.focus()},this._toggle=(t=!0)=>
24{this.disabled||this.readonly||(this._open?this._hide():this._show(t))},this._onControlClick=()=>{this.disabled||this.readonly||(this._isEditable()?this._show(!1):this._toggle())},this._onControlPointerDown=t=>{this.disabled||this.readonly||this._isEditable()||t.preventDefault()},this._onIconClick=t=>{!this._isEditable()||this.disabled||(t.stopPropagation(),this._toggle(!1))},this._onClear=t=>{t.stopPropagation(),!this.disabled&&this._clearValue()},this._onBeforeInput=t=>{if(!this._isEditable())return;const e=t.target,i=this._maskTemplate(),o=zr(i),a=this._typedText||o,n=e.selectionStart??a.length,d=e.selectionEnd??n,l=t.inputType;let h;if(l.startsWith("insert")){const g=t.data??t.dataTransfer?.getData("text")??"";if(!g)return;h=a1(a,n,d,g,i)}else if(l==="deleteByCut"||l.startsWith("deleteContent")||l.startsWith("deleteWord"))h=l.includes("Forward")?n1(a,n,d,i):s1(a,n,d,i);else return;t.preventDefault();const p=h.display===o?"":h.display,w=this._extractISO(h.display,i);p===this._typedText&&w===this.value||(this._typedText=p,this._pendingSelection=c1(i,h.caret),this._fromInput=!0,this.value=w,this._clearTypedError(),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})))},this._onChange=t=>{this._isEditable()&&(t.stopPropagation(),this._commitTypedChange())},this._onFocus=()=>{this._valueAtFocus=this.value,this._open||(this._valueAtOpen=this.value),this._selectFirstSegment()},this._onInputClick=()=>{if(!this._isEditable())return;const t=this._maskTemplate(),e=l1(t,this.validationTarget?.selectionStart??0);e&&(this._pendingSelection={start:e.start,end:e.end},this.requestUpdate())},this._onInputKeydown=t=>{if(!this._isEditable()||t.key!=="ArrowRight"&&t.key!=="ArrowLeft")return;const e=this._maskTemplate(),i=Fr(e),o=l1(e,this.validationTarget?.selectionStart??0);if(!o)return;const a=i.findIndex(l=>l.start===o.start),n=t.key==="ArrowRight"?a+1:a-1;if(n<0||n>=i.length)return;t.preventDefault(),t.stopPropagation();const d=i[n];this._pendingSelection={start:d.start,end:d.end},this.requestUpdate()},this._onBlur=()=>{this._isEditable()&&this._commitTypedChange()},this._onTriggerKeydown=t=>{if(this.disabled||this.readonly)return;if(this._open){this._isEditable()&&t.key==="ArrowDown"&&(t.preventDefault(),this._calendar?.focus());return}if(this._isEditable()?t.key==="ArrowDown":t.key==="ArrowDown"||t.key==="Enter"||t.key===" "){t.preventDefault(),this._show();return}!this._isEditable()&&this.value&&(t.key==="Delete"||t.key==="Backspace")&&(t.preventDefault(),this._clearValue())},this._onBaseKeydown=t=>{t.key==="Escape"&&this._open&&(t.stopPropagation(),this._hide(!0))},this._outsideClick=new pi(this,t=>t.includes(this)),this._onDocumentClick=t=>{this._outsideClick.isOutside(t)&&this._hide()},this._onFocusOut=t=>{if(!this._open)return;const e=t.relatedTarget;e!==null&&(this.shadowRoot?.contains(e)||this._hide())},this._onCalendarChange=t=>{t.stopPropagation();const e=t.detail;if(this._clearTypedError(),this._isDateTime()){this.value=this._composeDateTime(e?.start??""),this._pendingTime=null,this._emitInput();return}if(this.value=e?.start??"",this.mode==="range"){this.end=e?.end??"";const i=(e?.start??null)===null&&(e?.end??null)===null;if(this.end===""&&!i)return}this._hide(!0),this._valueAtFocus=this.value,this._emitInputChange()},this._onTimeInput=t=>{t.stopPropagation(),this._commitTime(t.target)},this._onTimeChange=t=>{t.stopPropagation(),this._commitTime(t.target)}}get start(){return this.value}set start(t){this.value=t}validityCallback(t){return t==="valueMissing"?this.validationTarget?.validationMessage||Qa("text"):t==="rangeUnderflow"||t==="rangeOverflow"?Ol("date",this._boundsCheck().offending,this.min,this.max)||Y("awc-date-picker.invalid"):this.error||Y("awc-date-picker.invalid")}validationMessageCallback(t){this.validationMessage=t}resetFormControl(){this._fromInput=!1;const t=this._canonicalizeISO(this._defaults.get("value"));this.value=t,this.end=R.fromISO(this._defaults.get("end"))?.toISO()??"",this._pendingTime=null,this._valueAtFocus=t,this._valueAtOpen=t,this._clearTypedError(),this._recomputeTypedBuffer(Dt())}setCustomValidity(t){this.error=t}_formValue(){if(this.mode!=="range")return this.value;const t=new FormData;return this.name&&(this.value&&t.append(this.name,this.value),this.end&&t.append(`${this.name}-end`,this.end)),t}_applyCustomValidity(){const t=this.error;this.validationTarget?.setCustomValidity(t),this.setValue(this._formValue()),ts(this,t)}_show(t=!0){this.disabled||this.readonly||this._open||(this._focusGridOnOpen=t,this._valueAtOpen=this.value,this._open=!0)}_hide(t=!1){this._open&&(this._open=!1,this._isDateTime()&&this._maybeEmitDateTimeChange(),t&&this.validationTarget?.focus())}
24_maybeEmitDateTimeChange(){this.value!==this._valueAtOpen&&(this._valueAtOpen=this.value,this._emitChange())}_clearValue(){this._fromInput=!1,this.value="",this.end="",this._typedText="",this._pendingTime=null,this._clearTypedError(),this._valueAtFocus="",this._valueAtOpen="",this._emitInputChange(),this.validationTarget?.focus()}_placeholder(){return this.placeholder!==void 0?this.placeholder:this._isEditable()?$w(this._maskFormat(),Dt()):this._isDateTime()?Y("awc-date-picker.placeholder-datetime"):Y("awc-date-picker.placeholder")}_maskFormat(){return this.format?this._isDateTime()&&!Fw(this.format)?`${this.format} HH:mm`:this.format:this._isDateTime()?"YYYY-MM-DD HH:mm":"YYYY-MM-DD"}_isEditable(){return this.editable&&!this.readonly&&this.mode!=="range"}_isDateTime(){return this.enableTime&&this.mode!=="range"}_datePartISO(){const{date:t}=ki(this.value);return t?t.toISO():""}_boundsCheck(){const t=R.fromISO(this.min),e=R.fromISO(this.max);let i=!1,o=!1,a="";const n=this.mode==="range"?[this._datePartISO(),this.end]:[this._datePartISO()];for(const d of n){const l=R.fromISO(d);if(!l)continue;const h=t?R.compare(l,t)<0:!1,p=e?R.compare(l,e)>0:!1;h&&(i=!0),p&&(o=!0),(h||p)&&!a&&(a=d)}return{under:i,over:o,offending:a}}_timePartCanonical(){const{time:t}=ki(this.value);return t?ei(t):this._pendingTime?ei(this._pendingTime):""}_composeDateTime(t){const e=R.fromISO(t);if(!e)return"";const{time:i}=ki(this.value);return qo(e,i??this._pendingTime??Yo)}_clearTypedError(){this._ownsError&&(this._ownsError=!1,this._ownedMessage="",this.error="")}_emitInput(){El(this)}_emitChange(){Ll(this)}_emitInputChange(){this._emitInput(),this._emitChange()}_maskTemplate(){const t=this._maskFormat(),e=Dt(),i=JSON.stringify([t,e]);return this._maskTemplateCache?.key!==i&&(this._maskTemplateCache={key:i,template:Nr(t,e)}),this._maskTemplateCache.template}_extractISO(t,e){return(this._isDateTime()?jw(t,e):Ew(t,e))??""}_validateTyped(){if(!(this._typedText!==""&&this._extractISO(this._typedText,this._maskTemplate())==="")){this._clearTypedError();return}(!this.error||this._ownsError)&&(this.error=Y("awc-date-picker.invalid"),this._ownsError=!0,this._ownedMessage=this.error)}_commitTypedChange(){if(this._validateTyped(),this._isDateTime()){this._maybeEmitDateTimeChange();return}this.value!==this._valueAtFocus&&(this._valueAtFocus=this.value,this._emitChange())}_selectFirstSegment(){if(!this._isEditable())return;const t=Fr(this._maskTemplate());t.length!==0&&(this._pendingSelection={start:t[0].start,end:t[0].end},this.requestUpdate())}_commitTime(t){const{date:e}=ki(this.value),i=je(t.value);if(i){if(!e){this._pendingTime=i;return}this.value=qo(e,i),this._pendingTime=null,this._emitInput()}}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this._onInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._onInvalid),document.removeEventListener("click",this._onDocumentClick),this._open=!1}willUpdate(t){super.willUpdate(t);const e=Dt();this._remapBufferForLocale(e),this._lastLocale=e,this._normalizeValueProp(t),this._syncBufferFromValue(t,e),t.has("value")&&!this._fromInput&&(this._valueAtFocus=this.value),this._isDateTime()&&t.has("value")&&!this._fromInput&&!this._open&&(this._valueAtOpen=this.value),this._open&&(this.disabled||this.readonly)&&(t.has("disabled")||t.has("readonly"))&&(this._open=!1)}_normalizeValueProp(t){if(!this._fromInput){if(t.has("value")&&this.value!==""){const e=this._canonicalizeISO(this.value);e!==this.value&&(this.value=e)}if(this.mode==="range"&&t.has("end")&&this.end!==""){const e=R.fromISO(this.end)?.toISO()??"";e!==this.end&&(this.end=e)}}}_canonicalizeISO(t){if(this._isDateTime()){const{date:e,time:i}=ki(t);return e?qo(e,i??Yo):""}return R.fromISO(t)?.toISO()??""}_remapBufferForLocale(t){if(!(this._lastLocale===void 0||this._lastLocale===t)&&(this._ownsError&&(this.error=Y("awc-date-picker.invalid"),this._ownedMessage=this.error),this._isEditable()&&!this._fromInput&&this._typedText!=="")){const e=this._maskFormat(),i=Nr(e,this._lastLocale),o=Nr(e,t);this._typedText=Ns(o,Yi(this._typedText,i))}}_syncBufferFromValue(t,e){(t.has("value")||t.has("editable")||t.has("format")||t.has("mode")||t.has("enableTime")||t.has("readonly"))&&!this._fromInput&&this._recomputeTypedBuffer(e)}_recomputeTypedBuffer(t){if(!this._isEditable())return;const e=this._maskFormat();if(this._isDateTime()){const{date:i,time:o}=ki(this.value??"");this._typedText=i?Gw(i,o??Yo,e):""}else{const i=R.fromISO(this.value??"");this._typedText=i?Lw(i,Nr(e,t)):""}}updated(t){super.updated(t),(t.has("value")||t.has("end")||t.has("mode")||t.has("min")||t.has("max")||t.has("readonly"))&&this.setValue(this._formValue()),this._fromInput=!1,this._restoreCaret(),this._handleOpenChange(t),t.has("error")&&(this._ownsError&&this.error!==this._ownedMessage&&(this._ownsError=!1,this._ownedMessage=""),this._applyCustomValidity())}
24_restoreCaret(){if(this._pendingSelection!==null){const t=this.validationTarget;t&&this.shadowRoot?.activeElement===t&&t.setSelectionRange(this._pendingSelection.start,this._pendingSelection.end),this._pendingSelection=null}}_handleOpenChange(t){if(t.has("_open"))if(this._open){this._popover?.show(),document.addEventListener("click",this._onDocumentClick),this._emitOpen({open:!0});const e=this._focusGridOnOpen;this._focusGridOnOpen=!0,e&&requestAnimationFrame(()=>{this._open&&this._calendar?.focus()})}else this._popover?.hide(),document.removeEventListener("click",this._onDocumentClick),t.get("_open")!==void 0&&this._emitClose({open:!1})}_formatOne(t){const{date:e,time:i}=ki(t??"");if(!e)return"";const o=i??Yo;if(!this.format){const a=Rr(e,Dt());return this._isDateTime()?`${a} ${ei(o)}`:a}return this._isDateTime()?Uw(e,o,this._maskFormat()):p4(e,this.format)}_display(){const t=this._formatOne(this.value);if(this.mode!=="range")return t;if(!t)return"";const e=this._formatOne(this.end);return e?`${t}${f4}${e}`:t}_renderClearButton(){return f`<button part="clear" class="awc-date-picker__clear" type="button" tabindex="-1" aria-label="${Y("awc-date-picker.clear")}" ?disabled="${this.disabled}" @mousedown="${t=>t.preventDefault()}" @click="${this._onClear}"><svg viewBox="0 0 16 16" width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M4.5 4.5 11.5 11.5M11.5 4.5 4.5 11.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button>`}_renderTrailingIcon(){return f`<span part="icon-end" class="awc-date-picker__icon-end" aria-hidden="true" @click="${this._onIconClick}"><svg viewBox="0 0 16 16" width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="2" y="3" width="12" height="11" rx="1.5" stroke="currentColor" stroke-width="1.5"></rect><path d="M2 6.5h12M5.5 1.5v3M10.5 1.5v3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></span>`}_renderTimePicker(){return this._isDateTime()?f`<awc-time-picker slot="footer" class="awc-date-picker__time" format="${Nw(this._maskFormat())}" step="${D(this.config.timeStep)}" .value="${this._timePartCanonical()}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this._onTimeInput}" @change="${this._onTimeChange}"></awc-time-picker>`:A}_renderPanel(){return f`<div part="panel" id="${this.panelId}" role="dialog" aria-label="${this.label||Y("awc-date-picker.open-calendar")}" slot="awc-popover-content"><awc-calendar exportparts="base:calendar-base,presets:calendar-presets,preset:calendar-preset,header:calendar-header,heading:calendar-heading,weekdays:calendar-weekdays,grid:calendar-grid,day:calendar-day,month-grid:calendar-month-grid,month-cell:calendar-month-cell,year-grid:calendar-year-grid,year-cell:calendar-year-cell,nav-prev:calendar-nav-prev,nav-next:calendar-nav-next,footer:calendar-footer" .config="${this.config}" .presets="${this.presets}" .value="${this._datePartISO()}" mode="${this.mode}" end="${this.end}" min="${this.min}" max="${this.max}" first-day-of-week="${this.firstDayOfWeek}" @awc-calendar-change="${this._onCalendarChange}">${this._renderTimePicker()}</awc-calendar></div>`}render(){const t=this.showError&&!!this.validationMessage,e=!!this.error||t,i=this.error||(t?this.validationMessage:""),o=e&&!!i,a=this.slots.hasLabelSlot||!!this.label,n=this.slots.hasHintSlot||!!this.hint,d=Ae([n&&this.slots.hintId,o&&this.errorId]),l=this._isEditable()&&!/[Aa]/.test(this._maskFormat())?"numeric":A;return f`<div class="awc-date-picker" part="base" @keydown="${this._onBaseKeydown}" @focusout="${this._onFocusOut}"><label for="${this.inputId}" id="${this.slots.labelId}" part="label" class="${G({"awc-date-picker__label":!0,"awc-date-picker__label--hidden":!a})}"><slot name="label" @slotchange="${this.slots.onLabelSlotChange}">${this.label}</slot></label><awc-popover trigger-type="manual" position="bottom-start" no-padding strategy="${D(this.strategy)}"><div part="control" class="${G({"awc-date-picker__control":!0,"awc-date-picker__control--error":e})}" @pointerdown="${this._onControlPointerDown}" @click="${this._onControlClick}" @keydown="${this._onTriggerKeydown}"><input part="input" class="awc-date-picker__field" id="${this.inputId}" type="text" inputmode="${l}" ?readonly="${!this._isEditable()}" placeholder="${this._placeholder()}" .value="${Ye(this._isEditable()?this._typedText:this._display())}" @beforeinput="${this._onBeforeInput}" @change="${this._onChange}" @focus="${this._onFocus}" @blur="${this._onBlur}" @click="${this._onInputClick}" @keydown="${this._onInputKeydown}" role="combobox" aria-haspopup="dialog" aria-expanded="${this._open?"true":"false"}" aria-controls="${this.panelId}" aria-describedby="${D(d)}" aria-invalid="${o?"true":"false"}" aria-readonly="${this.readonly?"true":A}" ?required="${this.required}" ?disabled="${this.disabled}"> ${this.value&&!this.readonly?this._renderClearButton():this._renderTrailingIcon()}</div>${this._renderPanel()}
24</awc-popover><span part="helper-text" id="${this.slots.hintId}" class="${G({"awc-date-picker__hint":!0,"awc-date-picker__hint--hidden":!n})}"><slot name="hint" @slotchange="${this.slots.onHintSlotChange}">${this.hint}</slot></span>${o?f`<span part="error-message" class="awc-date-picker__error" id="${this.errorId}">${i}</span>`:A}</div>`}},s.AwcDatePicker.formControlValidators=[d4,fi,h4,u4],s.AwcDatePicker.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcDatePicker.styles=[s4],et([c({type:String,reflect:!0})],s.AwcDatePicker.prototype,"value",2),et([c({type:String,reflect:!0})],s.AwcDatePicker.prototype,"mode",2),et([c({type:String})],s.AwcDatePicker.prototype,"start",1),et([c({type:String,reflect:!0})],s.AwcDatePicker.prototype,"end",2),et([c({type:String,reflect:!0})],s.AwcDatePicker.prototype,"format",2),et([c({type:Boolean,reflect:!0})],s.AwcDatePicker.prototype,"editable",2),et([c({type:Boolean,reflect:!0,attribute:"enable-time"})],s.AwcDatePicker.prototype,"enableTime",2),et([c({type:String,reflect:!0})],s.AwcDatePicker.prototype,"name",2),et([c({type:String,reflect:!0})],s.AwcDatePicker.prototype,"label",2),et([c({type:String,reflect:!0})],s.AwcDatePicker.prototype,"hint",2),et([c({type:String,reflect:!0,attribute:"error",useDefault:!0})],s.AwcDatePicker.prototype,"error",2),et([c({type:Boolean,reflect:!0})],s.AwcDatePicker.prototype,"required",2),et([c({type:Boolean,reflect:!0})],s.AwcDatePicker.prototype,"disabled",2),et([c({type:String,reflect:!0})],s.AwcDatePicker.prototype,"min",2),et([c({type:String,reflect:!0})],s.AwcDatePicker.prototype,"max",2),et([c({type:Number,attribute:"first-day-of-week"})],s.AwcDatePicker.prototype,"firstDayOfWeek",2),et([c({attribute:!1})],s.AwcDatePicker.prototype,"config",2),et([c({converter:Bc})],s.AwcDatePicker.prototype,"presets",2),et([c({type:Boolean,reflect:!0})],s.AwcDatePicker.prototype,"readonly",2),et([c({type:String})],s.AwcDatePicker.prototype,"placeholder",2),et([c({type:String,reflect:!0})],s.AwcDatePicker.prototype,"strategy",2),et([M()],s.AwcDatePicker.prototype,"validationMessage",2),et([M()],s.AwcDatePicker.prototype,"_open",2),et([M()],s.AwcDatePicker.prototype,"_typedText",2),et([F("awc-date-picker-open")],s.AwcDatePicker.prototype,"_emitOpen",2),et([F("awc-date-picker-close")],s.AwcDatePicker.prototype,"_emitClose",2),et([H("input")],s.AwcDatePicker.prototype,"validationTarget",2),et([H(k1)],s.AwcDatePicker.prototype,"_popover",2),et([H(Xc)],s.AwcDatePicker.prototype,"_calendar",2),s.AwcDatePicker=et([Ie(),I(c4)],s.AwcDatePicker);const w4=P`:host{display:block}:host([variant=danger]) .awc-notifier__wrapper{background-color:var(--global-red-400)}.awc-notifier__wrapper{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;min-height:36px;background-color:var(--global-green-400)}.awc-notifier__main{width:100%;display:flex;align-items:center;justify-content:center;height:inherit;gap:40px;font:var(--awc-font-text-regular-14);color:var(--colors-white)}.awc-notifier__action{display:flex;align-items:center}.awc-notifier__action ::slotted(button[slot=button]){border-radius:4px;padding:7px 10px;height:30px;border:1px solid rgba(255,255,255,.16);background-color:rgba(255,255,255,.16);color:var(--colors-white);font:var(--awc-font-text-medium-13);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;white-space:nowrap}.awc-notifier__action ::slotted(a[slot=button]){border-radius:4px;padding:7px 10px;height:30px;border:1px solid rgba(255,255,255,.16);background-color:rgba(255,255,255,.16);color:var(--colors-white)!important;font:var(--awc-font-text-medium-13)!important;cursor:pointer;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;white-space:nowrap}.awc-notifier__action ::slotted(a[slot=button]:hover),.awc-notifier__action ::slotted(button[slot=button]:hover){background-color:rgba(255,255,255,.24)!important}
24.awc-notifier__button{cursor:pointer;padding:0;background:0 0;border:none;display:flex;align-items:center;justify-content:center}.awc-notifier__button:hover{background-color:rgba(255,255,255,.16)!important;border-radius:var(--corner-radius-s)}.awc-notifier__icon{fill:var(--colors-white)}.awc-notifier__button:focus-visible{outline:1px solid var(--colors-secondary);border-radius:var(--corner-radius-s)}`;var g4=Object.defineProperty,v4=Object.getOwnPropertyDescriptor,Gs=(r,t,e,i)=>{for(var o=i>1?void 0:i?v4(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&g4(t,e,o),o};const _4="awc-notifier";s.AwcNotifier=class extends C{constructor(){super(...arguments),this.variant="default",this.hideCloseButton=!1}_onChange(t){t.target&&this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}render(){return f`<div class="awc-notifier" part="base"><div class="awc-notifier__wrapper" part="panel"><div class="awc-notifier__main" part="body"><slot></slot><div class="awc-notifier__action" part="actions"><slot name="button"></slot></div></div>${this.hideCloseButton?null:f`<button @click="${this._onChange}" class="awc-notifier__button" part="close-button" type="button"><awc-icon class="awc-notifier__icon" type="icon" size="24" name="close_md"></awc-icon></button>`}</div></div>`}},s.AwcNotifier.styles=[w4],Gs([c({type:String,reflect:!0,useDefault:!0})],s.AwcNotifier.prototype,"variant",2),Gs([c({type:Boolean,attribute:"hide-close-button"})],s.AwcNotifier.prototype,"hideCloseButton",2),s.AwcNotifier=Gs([I(_4)],s.AwcNotifier);const m4=P`:host{display:flex}p{margin:0}a{text-decoration:none}.awc-card{width:100%;display:flex;flex-direction:column;gap:var(--spacing-sm);padding:20px;border-radius:var(--corner-radius-l);background-color:var(--colors-card-surface);border:1px solid var(--colors-stroke);transition:border var(--awc-duration-slow,.3s) ease,box-shadow var(--awc-duration-slow,.3s) ease}.awc-card:hover{border:1px solid transparent;box-shadow:0 5px 20px 0 var(--colors-panel-shadow-color)}.awc-card:focus-visible{outline:0;border:1px solid var(--colors-secondary);box-shadow:0 5px 20px 0 var(--colors-panel-shadow-color)}.awc-card__head{display:flex;justify-content:space-between;align-items:flex-start}.awc-card__subhead{position:relative;display:flex;align-items:center;justify-content:center;padding:var(--awc-card-icon-padding,12px)}.awc-card__additional{margin-left:auto}.awc-card__icon{box-sizing:border-box;z-index:1}.awc-card__icon::before{content:"";display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--corner-radius-circular);background-color:var(--awc-card-color);opacity:.1;z-index:-1}.awc-card__subhead ::slotted(awc-icon[type=icon]){fill:var(--awc-card-color)}.awc-card__icon.awc-card__icon--module::before{background-color:var(--colors-input-background);opacity:1}.awc-card__icon--hidden{display:none}.awc-card__main{display:flex;flex-direction:column;gap:4px;word-wrap:break-word;text-align:start}.awc-card__label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:var(--awc-font-text-medium-14);color:var(--colors-titles);overflow-wrap:anywhere;word-break:break-word}.awc-card__subtitle{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:var(--awc-font-caption-1-regular);color:var(--colors-secondary)}.awc-card__footer{padding-right:15px}`;var b4=Object.defineProperty,y4=Object.getOwnPropertyDescriptor,qt=(r,t,e,i)=>{for(var o=i>1?void 0:i?y4(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&b4(t,e,o),o};const C4="awc-card";s.AwcCard=class extends C{constructor(){super(...arguments),this.title="",this.target="_self",this.arrow=!1,this.showLabelTooltip=!1,this.showSubtitleTooltip=!1,this._isModuleIcon=!1}_hasIconSlot(){return!!this.querySelector('[slot="icon"]')}_changeBackgroundIconModule(){this._iconSlot.assignedElements().filter(i=>i.type==="module").length?this._isModuleIcon=!0:this._isModuleIcon=!1,this._hasIconSlot(),this.requestUpdate()}_cardLabel(){return this.label??this.title??""}_checkHeightText(){if(this._subtitleElement){const t=this._subtitleElement.scrollHeight>this._subtitleElement.clientHeight;this.showSubtitleTooltip=t}if(this._labelElement){const t=this._labelElement.scrollHeight>this._labelElement.clientHeight;this.showLabelTooltip=t}}render(){const t=S`<svg part="arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.29289 6.29289C8.90237 6.68342 8.90237 7.31658 9.29289 7.70711L13.5858 12L9.29289 16.2929C8.90237 16.6834 8.90237 17.3166 9.29289 17.7071C9.68342 18.0976 10.3166 18.0976 10.7071 17.7071L15.7071 12.7071C16.0976 12.3166 16.0976 11.6834 15.7071 11.2929L10.7071 6.29289C10.3166 5.90237 9.68342 5.90237 9.29289 6.29289Z" fill="#919BB6"/></svg>`,e=this._cardLabel?this.showLabelTooltip?f`<awc-tooltip message="${this._cardLabel()}" position="top"><p class="awc-card__label" part="label">${this._cardLabel()}</p></awc-tooltip>`:f`<p class="awc-card__label" part="label">${this._cardLabel()}</p>`:A,i=this.subtitle?this.showSubtitleTooltip?f`<awc-tooltip message="${this.subtitle}" position="top" portal-off target="awc-card__subtitle-text"><p class="awc-card__subtitle" part="subtitle"><span class="awc-card__subtitle-text">${this.subtitle}</span></p></awc-tooltip>`:f`<p class="awc-card__subtitle" part="subtitle">${this.subtitle}</p>`:A;return f`${this.href?f`<a class="awc-card" part="base" href="${this.href}" target="${this.target}"><div class="awc-card__head" part="header"><div class="awc-card__subhead ${this._hasIconSlot()?"":"awc-card__icon--hidden"}" style="${`--awc-card-color: ${this.iconColor}`}"><div part="icon" class="awc-card__icon ${this._hasIconSlot()?"":"awc-card__icon--hidden"} ${this._isModuleIcon?"awc-card__icon--module":""}"></div>
24<slot @slotchange="${this._changeBackgroundIconModule}" name="icon"></slot></div><div class="awc-card__additional" part="actions"><slot name="toolbar"></slot>${this.arrow?t:A}</div></div><div class="awc-card__main" part="body">${e} ${i}</div><div class="awc-card__footer" part="footer"><slot></slot></div></a>`:f`<div class="awc-card" part="base" tabIndex="0"><div class="awc-card__head" part="header"><div class="awc-card__subhead" style="${`--awc-card-color: ${this.iconColor}`}"><div part="icon" class="awc-card__icon ${this._hasIconSlot()?"":"awc-card__icon--hidden"} ${this._isModuleIcon?"awc-card__icon--module":""}"></div><slot @slotchange="${this._changeBackgroundIconModule}" name="icon"></slot></div><div class="awc-card__additional" part="actions"><slot name="toolbar"></slot>${this.arrow?t:""}</div></div><div class="awc-card__main" part="body">${e} ${i}</div><div class="awc-card__footer" part="footer"><slot></slot></div></div>`}`}firstUpdated(){(this._subtitleElement||this._labelElement)&&(this._resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>{this._checkHeightText()})}),this._labelElement&&this._resizeObserver.observe(this._labelElement),this._subtitleElement&&this._resizeObserver.observe(this._subtitleElement))}connectedCallback(){super.connectedCallback(),this.title&&(this.label=this.title),this.removeAttribute("title")}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect()}},s.AwcCard.styles=[m4],qt([c({type:String})],s.AwcCard.prototype,"title",2),qt([c({type:String,reflect:!0})],s.AwcCard.prototype,"label",2),qt([c({type:String,reflect:!0})],s.AwcCard.prototype,"subtitle",2),qt([c({type:String,reflect:!0})],s.AwcCard.prototype,"href",2),qt([c({type:String})],s.AwcCard.prototype,"target",2),qt([c({type:String,reflect:!0,attribute:"icon-color"})],s.AwcCard.prototype,"iconColor",2),qt([c({type:Boolean,reflect:!0})],s.AwcCard.prototype,"arrow",2),qt([M()],s.AwcCard.prototype,"showLabelTooltip",2),qt([M()],s.AwcCard.prototype,"showSubtitleTooltip",2),qt([H("slot[name='icon']")],s.AwcCard.prototype,"_iconSlot",2),qt([H(".awc-card__label")],s.AwcCard.prototype,"_labelElement",2),qt([H(".awc-card__subtitle")],s.AwcCard.prototype,"_subtitleElement",2),qt([M()],s.AwcCard.prototype,"_isModuleIcon",2),s.AwcCard=qt([I(C4)],s.AwcCard);const A4=P`:host{display:block;position:relative;--color-primary:var(--colors-input-background);--color-secondary:var(--colors-stroke);--border-radius-rounded:var(--corner-radius-circular);--border-radius-8:var(--corner-radius-l);--border-radius-12:var(--corner-radius-xl);--sheen-color:hsl(240 4.9% 98.5%)}.awc-skeleton{display:flex;width:100%;height:100%;min-height:1rem}.awc-skeleton__indicator{transition:background-color var(--awc-duration-base,.25s) ease-in-out;flex:1 1 auto;background-color:var(--color-primary)}:host([color=secondary]) .awc-skeleton__indicator{background-color:var(--color-secondary)}:host([rounded="8"]) .awc-skeleton__indicator{border-radius:var(--border-radius-8)}:host([rounded="12"]) .awc-skeleton__indicator{border-radius:var(--border-radius-12)}:host([rounded=rounded]) .awc-skeleton__indicator{border-radius:var(--border-radius-rounded)}:host([effect=none]) .awc-skeleton__indicator{animation:none}:host([effect=pulse]) .awc-skeleton__indicator{animation:pulse 2s ease-in-out .5s infinite}:host([effect=pulse][color=secondary]) .awc-skeleton__indicator{animation:pulse 2s ease-in-out .5s infinite;background-color:var(--color-secondary)}@keyframes pulse{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}:host([effect=sheen]) .awc-skeleton__indicator{background:linear-gradient(270deg,var(--sheen-color),var(--color-primary),var(--color-primary),var(--sheen-color));background-size:400% 100%;animation:sheen 7s ease-in-out infinite}:host([effect=sheen][color=secondary]) .awc-skeleton__indicator{background:linear-gradient(270deg,var(--sheen-color),var(--color-secondary),var(--color-secondary),var(--sheen-color));background-size:400% 100%;animation:sheen 7s ease-in-out infinite}@keyframes sheen{from{background-position:200% 0}to{background-position:-200% 0}}`;var x4=Object.defineProperty,k4=Object.getOwnPropertyDescriptor,Ko=(r,t,e,i)=>{for(var o=i>1?void 0:i?k4(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&x4(t,e,o),o};const S4="awc-skeleton";s.AwcSkeleton=class extends C{constructor(){super(...arguments),this.effect="pulse",this.rounded="rounded",this.color="primary",this._deferredWhileDetached=!1}performUpdate(){if(!this.isConnected){this._deferredWhileDetached=!0;return}super.performUpdate()}connectedCallback(){super.connectedCallback(),this._deferredWhileDetached&&(this._deferredWhileDetached=!1,this.performUpdate())}render(){return f`<div part="base" class="awc-skeleton"><div class="awc-skeleton__indicator"></div></div>`}},s.AwcSkeleton.styles=[A4],Ko([c({type:String,reflect:!0})],s.AwcSkeleton.prototype,"effect",2),Ko([c({type:String,reflect:!0})],s.AwcSkeleton.prototype,"rounded",2),Ko([c({type:String,reflect:!0})],s.AwcSkeleton.prototype,"color",2),s.AwcSkeleton=Ko([I(S4)],s.AwcSkeleton);const $4=P`:host{display:inline-flex}ul{list-style-type:none}li,ul{padding:0;margin:0}
24.awc-pagination{display:inline-flex;gap:var(--spacing-s)}.awc-pagination__list{display:flex;gap:var(--spacing-s);align-items:center}.awc-pagination__item{display:flex;align-items:center;justify-content:center;text-align:center;cursor:pointer;position:relative;overflow-wrap:break-word;white-space:nowrap;outline:0;height:36px;width:36px;font:var(--awc-font-text-medium-14);color:var(--colors-titles);border-radius:var(--corner-radius-s);transition:color var(--awc-duration-slow,.3s),background-color var(--awc-duration-slow,.3s) ease-out}.awc-pagination__item.active{background-color:var(--colors-primary);color:var(--colors-white)}.awc-pagination__item:not(.active):focus-visible{background-color:var(--colors-input-background)}.awc-pagination__button:focus-visible,.awc-pagination__item:focus-visible{outline:1px solid var(--colors-secondary);outline-offset:1px}.awc-pagination__item:not(.active):hover{transition:color var(--awc-duration-slow,.3s),background-color var(--awc-duration-slow,.3s) ease-in;background-color:var(--colors-input-background)}.awc-pagination__button{display:flex;align-items:center;justify-content:center;text-align:center;height:36px;width:36px;cursor:pointer;border-radius:var(--corner-radius-s);transition:background-color var(--awc-duration-slow,.3s) ease-out}.awc-pagination__button:hover{transition:background-color var(--awc-duration-slow,.3s) ease-in;background-color:var(--colors-input-background)}.ellipsis{cursor:default;pointer-events:none}.ellipsis::after{content:"...";color:var(--colors-secondary)}`;var T4=Object.defineProperty,E4=Object.getOwnPropertyDescriptor,Ki=(r,t,e,i)=>{for(var o=i>1?void 0:i?E4(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&T4(t,e,o),o};const L4="awc-pagination";s.AwcPagination=class extends C{constructor(){super(...arguments),this._activePage=1,this._itemsPerPage=1,this._totalItemsCount=1,this.first=!1,this.last=!1,this._maxVisibleItems=5}get activePage(){return this._activePage}set activePage(t){const e=Math.ceil(this._totalItemsCount/this._itemsPerPage),i=Math.min(Math.max(1,t||1),e),o=this._activePage;i!==o&&(this._activePage=i,this.requestUpdate("activePage",o))}get itemsPerPage(){return this._itemsPerPage}set itemsPerPage(t){const e=Math.max(1,t||1),i=this._itemsPerPage;e!==i&&(this._itemsPerPage=e,this.requestUpdate("itemsPerPage",i))}get totalItemsCount(){return this._totalItemsCount}set totalItemsCount(t){const e=Math.max(1,t||1),i=this._totalItemsCount;e!==i&&(this._totalItemsCount=e,this.requestUpdate("totalItemsCount",i))}_generatePages(t){const e=[],i=Math.floor(this._maxVisibleItems/2);let o=Math.max(1,this.activePage-i),a=Math.min(t,this.activePage+i);this.activePage<=i?a=Math.min(t,this._maxVisibleItems):this.activePage>t-i&&(o=Math.max(1,t-this._maxVisibleItems+1)),t===a&&this._maxVisibleItems!==t&&(t&&a&&o)!==1&&(e.push(1),e.push("..."));for(let n=o;n<=a;n++)e.push(n);return this._maxVisibleItems===a&&this._maxVisibleItems!==t&&(e.push("..."),e.push(t)),e}_nextPage(){const t=Math.ceil(this.totalItemsCount/this.itemsPerPage);this.activePage<t&&this.activePage++,this._onChange()}_previousPage(){this.activePage>1&&this.activePage--,this._onChange()}_onPageClick(t){typeof t=="number"&&t===this.activePage||typeof t=="number"&&(this.activePage=t,this._onChange())}_handleKeydown(t){if(t.key==="Enter"||t.key===" "){const e=this.shadowRoot?.activeElement;if(e?.classList.contains("awc-pagination__button--prev"))this._previousPage();else if(e?.classList.contains("awc-pagination__button--next"))this._nextPage();else if(e?.classList.contains("awc-pagination__button--first"))this._firstPage();else if(e?.classList.contains("awc-pagination__button--last"))this._lastPage();else{const i=parseInt(e.textContent,10);this._onPageClick(i)}this._onChange()}}_firstPage(){this.activePage=1,this._onChange()}_lastPage(){const t=Math.ceil(this.totalItemsCount/this.itemsPerPage);this.activePage=t,this._onChange()}_onChange(){this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeydown)}disconnectedCallback(){this.removeEventListener("keydown",this._handleKeydown),super.disconnectedCallback()}render(){const t=Math.ceil(this.totalItemsCount/this.itemsPerPage),e=this._generatePages(t),i=f`<sp
24an role="button" part="prev-button" @keydown="${this._handleKeydown}" @click="${this._previousPage}" tabIndex="0" class="awc-pagination__button awc-pagination__button--prev"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.7071 6.29289C15.0976 6.68342 15.0976 7.31658 14.7071 7.70711L10.4142 12L14.7071 16.2929C15.0976 16.6834 15.0976 17.3166 14.7071 17.7071C14.3166 18.0976 13.6834 18.0976 13.2929 17.7071L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L13.2929 6.29289C13.6834 5.90237 14.3166 5.90237 14.7071 6.29289Z" fill="#919BB6"/></svg></span>`,o=f`<span role="button" part="next-button" @keydown="${this._handleKeydown}" @click="${this._nextPage}" tabIndex="0" class="awc-pagination__button awc-pagination__button--next"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.29289 6.29289C8.90237 6.68342 8.90237 7.31658 9.29289 7.70711L13.5858 12L9.29289 16.2929C8.90237 16.6834 8.90237 17.3166 9.29289 17.7071C9.68342 18.0976 10.3166 18.0976 10.7071 17.7071L15.7071 12.7071C16.0976 12.3166 16.0976 11.6834 15.7071 11.2929L10.7071 6.29289C10.3166 5.90237 9.68342 5.90237 9.29289 6.29289Z" fill="#919BB6"/></svg></span>`,a=f`<span role="button" part="first-button" @click="${this._firstPage}" @keydown="${this._handleKeydown}" tabIndex="0" class="awc-pagination__button awc-pagination__button--first"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.7071 16.2929C17.0976 16.6834 17.0976 17.3166 16.7071 17.7071C16.3166 18.0976 15.6834 18.0976 15.2929 17.7071L10.2929 12.7071C10.1054 12.5196 10 12.2652 10 12C10 11.7348 10.1054 11.4804 10.2929 11.2929L15.2929 6.29289C15.6834 5.90237 16.3166 5.90237 16.7071 6.29289C17.0976 6.68342 17.0976 7.31658 16.7071 7.70711L12.4142 12L16.7071 16.2929ZM8.00004 17C8.00004 17.5523 7.55232 18 7.00004 18C6.44775 18 6.00004 17.5523 6.00004 17V7C6.00004 6.44772 6.44775 6 7.00004 6C7.55232 6 8.00004 6.44772 8.00004 7V17Z" fill="#919BB6"/></svg></span>`,n=f`<span role="button" part="last-button" @click="${this._lastPage}" tabIndex="0" class="awc-pagination__button awc-pagination__button--last"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.29293 16.2929C6.90241 16.6834 6.90241 17.3166 7.29293 17.7071C7.68345 18.0976 8.31662 18.0976 8.70714 17.7071L13.7071 12.7071C13.8947 12.5196 14 12.2652 14 12C14 11.7348 13.8947 11.4804 13.7071 11.2929L8.70714 6.29289C8.31662 5.90237 7.68345 5.90237 7.29293 6.29289C6.90241 6.68342 6.90241 7.31658 7.29293 7.70711L11.5858 12L7.29293 16.2929ZM16 17C16 17.5523 16.4477 18 17 18C17.5523 18 18 17.5523 18 17V7C18 6.44771 17.5523 6 17 6C16.4477 6 16 6.44771 16 7V17Z" fill="#919BB6"/></svg></span>`;return f`<nav class="awc-pagination" part="base" aria-label="Pagination">${this.first?a:""} ${this.activePage>1?i:""}<ul class="awc-pagination__list" part="list">${e.map(d=>f`<li><span class="awc-pagination__item ${d===this.activePage?"active":""}" part="item" tabIndex="0" role="button" aria-label="Page ${d}" @click="${()=>this._onPageClick(d)}">${d}</span></li>`)}</ul>${this.activePage<t?o:""} ${this.last?n:""}</nav>`}},s.AwcPagination.styles=[$4],Ki([c({type:Number,reflect:!0,attribute:"active-page"})],s.AwcPagination.prototype,"activePage",1),Ki([c({type:Number,reflect:!0,attribute:"items-per-page"})],s.AwcPagination.prototype,"itemsPerPage",1),Ki([c({type:Number,reflect:!0,attribute:"total-items-count"})],s.AwcPagination.prototype,"totalItemsCount",1),Ki([c({type:Boolean,reflect:!0})],s.AwcPagination.prototype,"first",2),Ki([c({type:Boolean,reflect:!0})],s.AwcPagination.prototype,"last",2),s.AwcPagination=Ki([I(L4)],s.AwcPagination);const I4=P`:host{display:inline-flex;width:100%;max-width:100%}.awc-header{padding:0 24px;background:var(--colors-base-surface);background-size:100% 100%;display:flex;flex-direction:column;width:100%;border-bottom:1px solid var(--colors-stroke)}.awc-header__main{padding:16px 0;display:flex;align-items:center;justify-content:space-between}.awc-header__content::slotted(*){color:var(--colors-titles)}.awc-header__toolbar{display:flex;align-items:center}.awc-header__tab{display:block;width:100%}`;var O4=Object.getOwnPropertyDescriptor,M4=(r,t,e,i)=>{for(var o=i>1?void 0:i?O4(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=n(o)||o);return o};const P4="awc-header";s.AwcHeader=class extends C{render(){return f`<section class="awc-header" part="base"><div class="awc-header__main"><div class="awc-header__content" part="content"><slot></slot></div><div class="awc-header__toolbar" part="toolbar"><slot name="toolbar"></slot></div></div><div class="awc-header__tab" part="tabs"><slot name="awc-header-tab"></slot></div></section>`}},s.AwcHeader.styles=[I4],s.AwcHeader=M4([I(P4)],s.AwcHeader);const D4=P`:host{--awc-modal-user-min-height:var(--awc-modal-min-height);--awc-modal-padding:20px}.awc-modal{display:none}:host([opened]) .awc-modal{display:flex;align-items:center;justify-content:center;position:fixed;z-index:999999;right:0;bottom:0;width:100vw;height:100vh;min-height:var(--awc-modal-user-min-height,auto);background-color:rgba(0,0,0,.55);animation:fade-modal .3s;overflow-y:auto;pointer-events:auto}@keyframes fade-modal{0%{opacity:0}
24100%{opacity:1}}:host([opened]) .awc-modal__content{visibility:visible;width:clamp(90vw,20em,100vw)}:host([position=fixed]) .awc-modal__content{position:fixed;inset:0;margin:auto;height:max-content}@keyframes scale-animation{0%{transform:scale3d(.5,.5,.5);opacity:0}100%{transform:scale3d(1,1,1);opacity:1}}:host .awc-modal__content{margin:auto;visibility:hidden;position:relative;max-height:calc(100vh - 96px);max-width:610px;background-color:transparent}.awc-modal-container{display:block;position:relative;background-color:var(--colors-base-surface);box-shadow:0 5px 15px rgba(0,0,0,.3);animation:scale-animation .3s ease-out;border-radius:var(--corner-radius-xl)}:host(:not([customizable])) .awc-modal-container{overflow:hidden}.awc-modal-container:focus{outline:0}:host([heading]) .awc-modal__header--modal{justify-content:flex-end;align-items:center}.awc-modal__header--modal{position:sticky;z-index:1;top:0;display:flex}.awc-modal-title{margin:0;padding:0;font:var(--awc-font-h4-regular);color:var(--colors-titles)}.awc-modal__close{appearance:none;background:0 0;border:0;padding:0;color:inherit;font:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;margin-left:auto}.awc-modal__close:focus-visible{outline:2px solid var(--colors-secondary);outline-offset:1px}.awc-modal__close svg{transition:fill var(--awc-duration-slow,.3s) ease;fill:var(--colors-secondary)}.awc-modal__close:hover svg{fill:var(--colors-primary)}.awc-modal__body{position:relative;max-height:clamp(50vh,75vh,100vh);overflow-y:auto;padding:var(--awc-modal-padding)}.awc-modal__footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:15px 20px;border-top:1px solid var(--colors-stroke)}.awc-modal__footer--popup{border-top:none;padding:0}.awc-modal__footer--none{display:none}.awc-modal__description{margin:0;padding:0;font:var(--awc-font-caption-1-regular);color:var(--colors-secondary)}.awc-modal__buttons{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-sm)}@media screen and (max-width:576px){.awc-modal__body{position:relative;max-height:clamp(50vh,20rem,100vh);overflow-y:auto}.awc-modal__footer{flex-direction:column;padding:6px 20px;gap:var(--spacing-m)}.awc-modal__buttons{flex-direction:column;width:100%}.awc-modal__buttons ::slotted(awc-button){display:flex;width:100%}}`,B4=["awc-dialog","awc-modal","awc-file-upload-dialog","awc-toaster"];class T1{constructor(t){this.host=t,this._inerted=new Set,t.addController(this)}hostConnected(){}hostDisconnected(){this.release()}apply(){const t=i=>{i.inert||(i.inert=!0,this._inerted.add(i))},e=i=>{i.parentNode&&(Array.from(i.parentNode.children).forEach(o=>{o===i||!(o instanceof HTMLElement)||B4.some(n=>o.matches(n))||(t(o),o.shadowRoot&&Array.from(o.shadowRoot.children).forEach(n=>{n instanceof HTMLElement&&t(n)}))}),i.parentNode!==document.body&&e(i.parentNode))};e(this.host)}release(){this._inerted.forEach(t=>{t.inert=!1}),this._inerted.clear()}}function Xo(){let r=document.activeElement;for(;r?.shadowRoot?.activeElement;)r=r.shadowRoot.activeElement;return r instanceof HTMLElement?r:null}function qs(r,t){let e=r;for(;e;){if(e===t)return!0;e=e instanceof ShadowRoot?e.host:e.parentNode}return!1}class E1{constructor(t){this.host=t,this._captured=null,t.addController(this)}hostConnected(){}hostDisconnected(){}capture(){const t=Xo();this._captured=t&&t!==document.body?t:null}restore(){const t=this._captured;this._captured=null;const e=Xo(),i=e!==null&&qs(e,this.host);if(!t||!t.isConnected){i&&e.blur();return}e&&e!==document.body&&!i||t.focus()}}var V4=Object.defineProperty,H4=Object.getOwnPropertyDescriptor,oe=(r,t,e,i)=>{for(var o=i>1?void 0:i?H4(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&V4(t,e,o),o};const R4="awc-modal",L1="awc-modal-heading";s.AwcModal=class extends C{constructor(){super(...arguments),this.opened=!1,this.customizable=!1,this.position="relative",this._isEmptyButtonSlot=!0,this._hostAriaLabel=null,this._inert=new T1(this),this._focusRestore=new E1(this),this._outsideClick=new pi(this,t=>this._content!==null&&t.includes(this._content)),this._handleKeyClosing=t=>{t.key==="Escape"&&this.opened&&(t.stopPropagation(),this.close())},this._checkSlottedButton=t=>{const e=t.target;this._isEmptyButtonSlot=e.assignedElements({flatten:!0}).length===0}}static get observedAttributes(){return[...super.observedAttributes,"aria-label"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="aria-label"&&(this._hostAriaLabel=i)}get tabsGroup(){return this.querySelector(mr)}_handleClickOutside(t){this._outsideClick.isOutside(t)&&this.close()}_disableTabsDivider(){this.tabsGroup&&(this.tabsGroup.noDivider=!0)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._handleKeyClosing),this.removeEventListener("click",this._handleClickOutside),this.opened||this._focusRestore.restore(
24)}updated(t){if(super.updated(t),t.has("opened"))if(this._disableTabsDivider(),this.opened){this._focusRestore.capture(),this._inert.apply(),this._focusPanel();try{this._modalOpenEvent(this.opened)}finally{document.addEventListener("keydown",this._handleKeyClosing)}}else try{this._inert.release(),this._focusRestore.restore()}finally{try{this._modalCloseEvent(this.opened)}finally{document.removeEventListener("keydown",this._handleKeyClosing)}}}get awcButtons(){return[...this.querySelectorAll("awc-button")]}_focusPanel(){!this.opened||!this.isConnected||qs(Xo(),this)||this._panel?.focus({preventScroll:!0})}open(){this.opened=!0}close(){this.opened=!1}_renderCloseIcon(){return S`<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L13.4142 12L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L12 13.4142L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L10.5858 12L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L12 10.5858L17.2929 5.29289Z"/></svg>`}render(){const t=!this.customizable&&!!this.heading?.trim(),e=t?L1:void 0,i=t?void 0:this._hostAriaLabel?.trim()||void 0,o=f`<div class="awc-modal__header--modal" part="header"><awc-header><h4 class="awc-modal-title" part="heading" id="${L1}">${this.heading}</h4><button type="button" class="awc-modal__close" part="close-button" aria-label="${Y("awc-modal.close")}" @click="${this.close}" slot="toolbar">${this._renderCloseIcon()}</button><div class="awc-modal__tab" slot="awc-header-tab"><slot name="awc-modal-header"></slot></div></awc-header></div>`,a=n=>f`<div class="awc-modal-container" part="panel" tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="${D(e)}" aria-label="${D(i)}">${n}</div>`;return this.customizable?f`<div class="awc-modal" part="base overlay"><div class="awc-modal__content">${a(f`<slot></slot>`)}</div></div>`:f`<div class="awc-modal" part="base overlay"><div class="awc-modal__content">${a(f`${t?o:""}<div class="awc-modal__body" part="body"><slot></slot></div><div class="awc-modal__footer ${this._isEmptyButtonSlot?"awc-modal__footer--popup":""}" part="footer">${this.description&&!this._isEmptyButtonSlot?f`<p class="awc-modal__description" part="description">${this.description}</p>`:f`<slot name="awc-modal-description"></slot>`}<div class="awc-modal__buttons" part="actions"><slot name="awc-modal-button" @slotchange="${this._checkSlottedButton}"></slot></div></div>`)}</div></div>`}},s.AwcModal.styles=[D4,kr],oe([c({type:String,reflect:!0})],s.AwcModal.prototype,"heading",2),oe([c({type:String,reflect:!0})],s.AwcModal.prototype,"description",2),oe([c({type:Boolean,reflect:!0})],s.AwcModal.prototype,"opened",2),oe([c({type:Boolean,reflect:!0})],s.AwcModal.prototype,"customizable",2),oe([c({type:String,reflect:!0,useDefault:!0})],s.AwcModal.prototype,"position",2),oe([Sa("slot[name='awc-modal-button']")],s.AwcModal.prototype,"slottedButtons",2),oe([H(".awc-modal-container")],s.AwcModal.prototype,"_panel",2),oe([H(".awc-modal__content")],s.AwcModal.prototype,"_content",2),oe([M()],s.AwcModal.prototype,"_isEmptyButtonSlot",2),oe([M()],s.AwcModal.prototype,"_hostAriaLabel",2),oe([F("awc-modal-open")],s.AwcModal.prototype,"_modalOpenEvent",2),oe([F("awc-modal-close")],s.AwcModal.prototype,"_modalCloseEvent",2),s.AwcModal=oe([Ie(),I(R4)],s.AwcModal);const Ze=class Ze{static appendContent(t,e){if(e!=null){if(typeof e=="string"){const i=document.createElement("div");for(i.innerHTML=e;i.firstChild;)t.appendChild(i.firstChild);return}t.appendChild(e)}}static createButton(t,e){const i=document.createElement("awc-button");return i.textContent=t.text,i.variant=t.variant??"primary",i.background=t.background??"blue",i.setAttribute("slot","awc-modal-button"),i.addEventListener("click",()=>{t.onClick?t.onClick(e):e.close()}),i}static open(t={}){const{heading:e="",ariaLabel:i="",description:o="",position:a="relative",customizable:n=!1,content:d,buttons:l=[],onOpen:h,onClose:p,timer:w=0}=t,g=document.createElement("awc-modal");e&&(g.heading=e),o&&(g.description=o),g.position=a,g.customizable=n,i&&g.setAttribute("aria-label",i),Ze.appendContent(g,d);const v={element:g,close:()=>{g.opened&&g.close()}};l.forEach(b=>{g.appendChild(Ze.createButton(b,v))}),document.body.appendChild(g);let m=null;return w>0&&(m=setTimeout(()=>v.close(),w)),h&&g.addEventListener("awc-modal-open",()=>h(v),{once:!0}),g.addEventListener("awc-modal-close",()=>{m!==null&&(clearTimeout(m),m=null);try{p&&p(v)}finally{g.parentNode?.removeChild(g),Ze.handles=Ze.handles.filter(b=>b!==v)}},{once:!0}),Ze.handles.push(v),g.open(),v}
24static closeAll(){[...Ze.handles].reverse().forEach(t=>t.close())}};Ze.handles=[];let Xi=Ze;window.AwcModal={open:Xi.open.bind(Xi),closeAll:Xi.closeAll.bind(Xi)};const z4=P``;var F4=Object.getOwnPropertyDescriptor,N4=(r,t,e,i)=>{for(var o=i>1?void 0:i?F4(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=n(o)||o);return o};const j4="awc-table-wrapper";s.AwcTableWrapper=class extends C{createRenderRoot(){return this}render(){return f``}},s.AwcTableWrapper.styles=[z4],s.AwcTableWrapper=N4([I(j4)],s.AwcTableWrapper);const U4=P`.awc-dialog{transition-property:opacity;transition-duration:var(--awc-duration-slow,.3s);animation-name:fade-dialog-out}:host([opened]) .awc-dialog{position:fixed;z-index:var(--awc-dialog-z-index,1000000);inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:hidden;background-color:rgba(0,0,0,.55);animation-name:fade-dialog-in;transition-duration:var(--awc-duration-base,.2s)}@keyframes fade-dialog-in{0%{opacity:0}100%{opacity:1}}@keyframes fade-dialog-out{0%{opacity:1}100%{opacity:0}}:host([opened]) .awc-dialog__content{display:flex;flex-direction:column;animation:scale-animation .3s ease}.awc-dialog__content:focus{outline:0}@keyframes scale-animation{0%{transform:scale3d(.7,.7,.7)}45%{transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}100%{transform:scale3d(1,1,1)}}:host .awc-dialog__content{display:none;position:relative;box-sizing:border-box;width:100%;max-width:420px;max-height:100%;overflow:hidden;border-radius:var(--corner-radius-xl);box-shadow:var(--effects-hover-block)}:host([variant=info]) .awc-dialog__content{background-color:var(--colors-primary)}:host([variant=error]) .awc-dialog__content{background-color:var(--colors-warning)}.awc-dialog__body{padding:24px 30px;display:flex;align-items:flex-start;gap:var(--spacing-l);flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;--_scrollbar-thumb:color-mix(in srgb, var(--colors-white) 35%, transparent);scrollbar-color:var(--_scrollbar-thumb) transparent}.awc-dialog__body::-webkit-scrollbar{width:8px}.awc-dialog__body::-webkit-scrollbar-thumb{background-color:var(--_scrollbar-thumb);border-radius:4px}.awc-dialog__body::-webkit-scrollbar-track{background:0 0}.awc-dialog__icon{flex-shrink:0}.awc-dialog__text{min-width:0;overflow-wrap:break-word}.awc-dialog__heading{margin:0;user-select:none;max-width:295px;text-align:start;color:var(--colors-white);font:var(--awc-font-h4-regular);font-size:22px}.awc-dialog__description{margin:var(--spacing-2xs) 0 0 0;opacity:.7;color:var(--colors-white);font:var(--awc-font-text-regular-15)}::slotted(awc-checkbox){padding-top:var(--spacing-2xs);--awc-checkbox-label:var(--colors-white)}.awc-dialog__footer{background-color:var(--colors-card-surface);flex-wrap:wrap;flex-shrink:0}.awc-dialog__buttons{flex-wrap:wrap;padding:16px 0;display:flex;align-items:center;justify-content:center;gap:var(--spacing-sm)}.awc-dialog__buttons ::slotted(awc-button){min-width:110px;--awc-button-height:44px}`,Z4=S`<svg width="45" height="45" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M22.5 42C33.2696 42 42 33.2696 42 22.5C42 11.7304 33.2696 3 22.5 3C11.7304 3 3 11.7304 3 22.5C3 33.2696 11.7304 42 22.5 42ZM22.5 45C34.9264 45 45 34.9264 45 22.5C45 10.0736 34.9264 0 22.5 0C10.0736 0 0 10.0736 0 22.5C0 34.9264 10.0736 45 22.5 45ZM21 9.5C21 8.67157 21.6716 8 22.5 8C23.3284 8 24 8.67157 24 9.5V28.5C24 29.3284 23.3284 30 22.5 30C21.6716 30 21 29.3284 21 28.5V9.5ZM22.5 37C23.3284 37 24 36.3284 24 35.5C24 34.6716 23.3284 34 22.5 34C21.6716 34 21 34.6716 21 35.5C21 36.3284 21.6716 37 22.5 37Z" fill="white"/></svg>`,W4=S`<svg width="45" height="45" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M22.5 42C33.2696 42 42 33.2696 42 22.5C42 11.7304 33.2696 3 22.5 3C11.7304 3 3 11.7304 3 22.5C3 33.2696 11.7304 42 22.5 42ZM22.5 45C34.9264 45 45 34.9264 45 22.5C45 10.0736 34.9264 0 22.5 0C10.0736 0 0 10.0736 0 22.5C0 34.9264 10.0736 45 22.5 45ZM14.1809 13.6699C13.6817 14.1691 13.6817 14.9786 14.1809 15.4778L20.9474 22.2444L14.181 29.0108C13.6817 29.51 13.6817 30.3195 14.181 30.8187C14.6802 31.318 15.4897 31.318 15.9889 30.8187L22.7554 24.0523L29.5218 30.8187C30.0211 31.318 30.8305 31.318 31.3298 30.8187C31.829 30.3195 31.829 29.51 31.3298 29.0108L24.5633 22.2444L31.3298 15.4778C31.8291 14.9786 31.8291 14.1691 31.3298 13.6699C30.8306 13.1706 30.0211 13.1706 29.5219 13.6699L22.7554 20.4364L15.9888 13.6699C15.4896 13.1706 14.6802 13.1706 14.1809 13.6699Z" fill="white"/></svg>`;var G4=Object.defineProperty,q4=Object.getOwnPropertyDescriptor,ae=(r,t,e,i)=>{for(var o=i>1?void 0:i?q4(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&G4(t,e,o),o};const Y4="awc-dialog",I1="awc-dialog-heading";s.AwcDialog=class extends C{constructor(){super(...arguments),this.variant="info",this.opened=!1,this.noEscape=!1,this.noOutsideClick=!1,this._descriptionIsHtml=!1,this._hostAriaLabel=null,this._clickOutside=this._handleClickOutside.bind(this),this._inert=new T1(this),this._focusRestore=new E1(this),this._outsideClick=new pi(this,t=>t.includes(this._dialogContent))}get description(){return this._description}set description(t){this._descriptionIsHtml=!1,this._description=t}static get observedAttributes(){return[...super.observedAttributes,"aria-label"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="aria-label"&&(this._hostAriaLabel=i)}_handleClickOutside(t){this.noOutsideClick||this._outsideClick.isOutside(t)&&this.close()}_styleSlottedButtons(){this._slotButtons?.assignedElements().forEac
24h(t=>{t.size="large"})}_isDisabled(t){return t.hasAttribute("disabled")||t.disabled===!0}_isFocusableControl(t){return!this._isDisabled(t)&&!t.hasAttribute("hidden")}_findSlottedFormControl(){const t=this.shadowRoot?.querySelector("slot:not([name])");if(!t)return null;for(const e of t.assignedElements()){const i=e.matches(s.AwcDialog.FORM_CONTROL_SELECTOR)?[e,...e.querySelectorAll(s.AwcDialog.FORM_CONTROL_SELECTOR)]:[...e.querySelectorAll(s.AwcDialog.FORM_CONTROL_SELECTOR)];for(const o of i)if(o instanceof HTMLElement&&this._isFocusableControl(o))return o}return null}_focusInitialTarget(){if(!this.opened)return;const t=this._findSlottedFormControl(),e=t?void 0:(this._slotButtons?.assignedElements()??[]).find(o=>!this._isDisabled(o));e&&(e.autofocus=!0);const i=t??e??this._dialogContent;i&&requestAnimationFrame(()=>{!this.opened||!this.isConnected||i.focus({preventScroll:!0})})}_handleButtonSlotChange(){this._styleSlottedButtons();const t=Xo();t&&t!==document.body&&qs(t,this)||this._focusInitialTarget()}open(){this.opened=!0,this._onOpening(this.opened)}close(){this.opened=!1,this._onClosing(this.opened)}_closingOnEscape(t){this.opened&&t.key==="Escape"&&!this.noEscape&&this.close()}setContent(t){t.heading!==void 0&&(this.heading=t.heading),t.description!==void 0?(this.description=t.description,this._descriptionIsHtml=t.descriptionHtml??!1):t.descriptionHtml!==void 0&&(this._descriptionIsHtml=t.descriptionHtml),t.variant!==void 0&&(this.variant=t.variant)}clearButtons(){[...this.children].forEach(t=>t.remove())}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._clickOutside),ye(()=>{this.opened?(this._styleSlottedButtons(),this._focusInitialTarget(),this._inert.apply()):this._inert.release()})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._clickOutside),this.opened||this._focusRestore.restore()}updated(t){super.updated(t),t.has("opened")&&(this.opened?(this._focusRestore.capture(),this._styleSlottedButtons(),this._focusInitialTarget(),this._inert.apply(),this._dialogContent.focus({preventScroll:!0})):(this._inert.release(),this._focusRestore.restore()))}render(){const t=this.variant==="info"?Z4:W4,e=!!this.heading?.trim(),i=e?I1:void 0,o=e?void 0:this._hostAriaLabel?.trim()||void 0;return f`<div @keydown="${this._closingOnEscape}" tabindex="-1" class="awc-dialog" part="base overlay"><div tabindex="${this.opened?0:-1}" class="awc-dialog__content" part="panel" variant="${this.variant}" role="dialog" aria-modal="true" aria-labelledby="${D(i)}" aria-label="${D(o)}"><div class="awc-dialog__body" part="body"><div class="awc-dialog__icon" part="icon">${t}</div><div class="awc-dialog__text">${e?f`<p class="awc-dialog__heading" part="heading" id="${I1}">${this.heading}</p>`:""} ${this.description?f`<p class="awc-dialog__description" part="description">${this._descriptionIsHtml?os(this.description):this.description}</p>`:""}<slot></slot></div></div><div class="awc-dialog__footer" part="footer"><div class="awc-dialog__buttons" part="actions"><slot name="awc-dialog-button" @slotchange="${this._handleButtonSlotChange}"></slot></div></div></div></div>`}},s.AwcDialog.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcDialog.FORM_CONTROL_SELECTOR='awc-input, awc-textarea, awc-select, awc-checkbox, input:not([type="hidden"]), textarea, select',s.AwcDialog.styles=[U4],ae([c({type:String,reflect:!0})],s.AwcDialog.prototype,"heading",2),ae([c({type:String,reflect:!0})],s.AwcDialog.prototype,"description",1),ae([c({type:String,reflect:!0})],s.AwcDialog.prototype,"variant",2),ae([c({type:Boolean,reflect:!0})],s.AwcDialog.prototype,"opened",2),ae([c({type:Boolean,reflect:!0,attribute:"no-escape"})],s.AwcDialog.prototype,"noEscape",2),ae([c({type:Boolean,reflect:!0,attribute:"no-outside-click"})],s.AwcDialog.prototype,"noOutsideClick",2),ae([M()],s.AwcDialog.prototype,"_descriptionIsHtml",2),ae([M()],s.AwcDialog.prototype,"_hostAriaLabel",2),ae([F("awc-dialog-open")],s.AwcDialog.prototype,"_onOpening",2),ae([F("awc-dialog-close")],s.AwcDialog.prototype,"_onClosing",2),ae([H("slot[name='awc-dialog-button']")],s.AwcDialog.prototype,"_slotButtons",2),ae([H(".awc-dialog__content")],s.AwcDialog.prototype,"_dialogContent",2),s.AwcDialog=ae([I(Y4)],s.AwcDialog);const We=class We{static sweetAlertAdapter(t,e){const i=t.type??t.variant??"info",o=i==="error"?"error":"info",a=i==="input",n=t.allowEscapeKey===!1,d=t.allowOutsideClick===!1;if(this.currentOptions=t,this.currentCallback=e??null,this.currentDialog&&this.currentDialog.opened){this._clearTimer(),this.currentDialog.setContent({heading:t.title??"",description:t.text??"",variant:o,descriptionHtml:!!t.html}),this.currentDialog.noEscape=n,this.currentDialog.noOutsideClick=d,this._applyAriaLabel(this.currentDialog,t.ariaLabel),this.currentDialog.clearButtons(),this.currentInput=null,this.inputErrorNode=null,this.currentConfirmButton=null,a&&this._installInput(this.currentDialog,t),this._installButtons(this.currentDialog,t,i),this._installTimer(t);return}const l=document.createElement("awc-dialog");l.setContent({heading:t.title??"",description:t.text??"",variant:o,descriptionHtml:!!t.html}),l.noEscape=n,l.noOutsideClick=d,this._applyAriaLabel(l,t.ariaLabel),a&&this._installInput(l,t),this._installButtons(l,t,i),document.body.appendChild(l),this.currentDialog=l,l.open(),this._installTimer(t),l.addEventListener("awc-dialog-close",()=>{this._clearTimer(),l.parentNode&&l.parentNode.removeChild(l),this.currentDialog=null,this.currentCallback=null,this.currentInput=null,this.currentConfirmButton=null,this.inputErrorNode=null,this.currentOptions={}},{once:!0})}static close(){this.currentDialog?.close()}static enableLoading(){const t=this.currentConfirmButton;t&&("loading"in t?t.loading=!0:(t.disabled=!0,t.setAttribute("aria-busy","true")))}static disableLoading(){const t=this.currentConfirmButton;t&&("loading"in t?t.loading=!1:(t.disabled=!1,t.setAttribute("aria-busy","false")))}static showInputError(t){const e=this.currentInput;e&&("error"in e?e.error=t:e.setAttribute("aria-invalid","true")),this.inputErrorNode&&(this.inputErrorNode.textContent=t,this.inputErrorNode.hidden=!t)}static _applyAriaLabel(t,e){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}static _installInput(t,e){if(e.inputType==="checkbox"){const o=document.createElement("awc-checkbox");o.label=e.inputLabel??"",o.checked=!!e.inputChecked,t.appendChild(o),this.currentInput=o}else{const o=document.createElement("awc-input");o.type=e.inputType??"text",o.placeholder=e.inputPlaceholder??"",o.value=e.inputValue??"",t.appendChild(o),this.currentInput=o}const i=document.createElement("div");i.className="awc-dialog-input-error",i.hidden=!0,t.appendChild(i),this.inputErrorNode=i}static _installButtons(t,e,i){const o=e.customClass,a=typeof o=="str
24ing"?o:o?.confirm??"",n=typeof o=="string"?o:o?.cancel??"",d=document.createElement("awc-button");if(d.textContent=e.confirmButtonText??Y("awc-dialog.ok"),d.variant="primary",d.background=e.confirmButtonColor??(i==="error"?"red":"blue"),a&&(d.className=a),d.setAttribute("slot","awc-dialog-button"),d.addEventListener("click",()=>{const l=this.currentCallback,h=this.currentOptions;let p;if(i==="input"?p=h.inputType==="checkbox"?!!this.currentInput?.checked:this.currentInput?.value??"":p=!0,l&&l(p),h.showLoaderOnConfirm){this.enableLoading();return}h.closeOnConfirm!==!1&&this.currentDialog?.close()}),t.appendChild(d),this.currentConfirmButton=d,e.showCancelButton){const l=document.createElement("awc-button");l.textContent=e.cancelButtonText??Y("awc-dialog.cancel"),l.variant="transparent",l.background=e.cancelButtonColor??"gray",n&&(l.className=n),l.setAttribute("slot","awc-dialog-button"),l.addEventListener("click",()=>{const h=this.currentCallback,p=this.currentOptions,w=i==="input"&&p.inputType==="checkbox";h&&h(w?null:!1),p.closeOnCancel!==!1&&this.currentDialog?.close()}),t.appendChild(l)}}static _installTimer(t){t.timer&&t.timer>0&&(this.currentTimer=setTimeout(()=>this.close(),t.timer))}static _clearTimer(){this.currentTimer!==null&&(clearTimeout(this.currentTimer),this.currentTimer=null)}static info(t){this._createLegacyDialog({...t,variant:"info"})||console.warn("A dialog is already open.")}static error(t){this._createLegacyDialog({...t,variant:"error"})||console.warn("A dialog is already open.")}static _createLegacyDialog(t={}){if(this.currentDialog&&this.currentDialog.opened)return null;const{heading:e="Title",ariaLabel:i="",description:o="",variant:a="info",buttons:n=[],timer:d=0}=t,l=document.createElement("awc-dialog");return l.heading=e,l.description=o,l.variant=a,this._applyAriaLabel(l,i),d>0&&(this.currentTimer=setTimeout(()=>l.close(),d)),n.forEach(h=>{const p=document.createElement("awc-button");p.textContent=h.text,p.variant=h.variant,p.background=h.background,p.setAttribute("slot","awc-dialog-button"),p.addEventListener("click",()=>{h.onClick(),l.close()}),l.appendChild(p)}),document.body.appendChild(l),l.open(),this.currentDialog=l,l.addEventListener("awc-dialog-close",()=>{this._clearTimer(),l.parentNode&&l.parentNode.removeChild(l),this.currentDialog=null},{once:!0}),l}};We.currentDialog=null,We.currentCallback=null,We.currentInput=null,We.currentConfirmButton=null,We.currentOptions={},We.currentTimer=null,We.inputErrorNode=null;let Vt=We;window.showAwcDialog={sweetAlert:Vt.sweetAlertAdapter.bind(Vt),close:Vt.close.bind(Vt),enableLoading:Vt.enableLoading.bind(Vt),disableLoading:Vt.disableLoading.bind(Vt),showInputError:Vt.showInputError.bind(Vt),info:Vt.info.bind(Vt),error:Vt.error.bind(Vt)};const K4=P`:host{display:block;--awc-spoiler-fade-color:var(--colors-base-surface);--awc-spoiler-fade-height:48px;--awc-spoiler-toggle-color:var(--colors-primary);--awc-spoiler-toggle-hover-color:var(--colors-link-hover);--awc-spoiler-toggle-gap:var(--spacing-2, 8px)}.awc-spoiler__content{position:relative;overflow:hidden}:host(:not([expanded])) .awc-spoiler__content.is-collapsed[data-mode=lines]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--awc-spoiler-_lines,3);line-clamp:var(--awc-spoiler-_lines,3);overflow:hidden}:host(:not([expanded])) .awc-spoiler__content.is-collapsed[data-mode=height]{max-height:var(--awc-spoiler-_collapsed-height,80px);overflow:hidden}:host([expanded]) .awc-spoiler__content{max-height:none;overflow:visible;-webkit-line-clamp:unset;line-clamp:unset}.awc-spoiler__fade{position:absolute;bottom:0;left:0;right:0;height:var(--awc-spoiler-fade-height,48px);pointer-events:none;background:linear-gradient(to bottom,transparent,var(--awc-spoiler-fade-color))}:host(:not([data-overflows])) .awc-spoiler__fade,:host([expanded]) .awc-spoiler__fade{display:none}.awc-spoiler__toggle{display:inline-flex;align-items:center;margin-top:var(--awc-spoiler-toggle-gap);padding:var(--spacing-xs) 0;background-color:transparent;border:none;color:var(--awc-spoiler-toggle-color);font:var(--awc-font-caption-1-medium);cursor:pointer;transition:color var(--awc-duration-fast,.15s) ease}.awc-spoiler__toggle:hover{color:var(--awc-spoiler-toggle-hover-color)}.awc-spoiler__toggle:focus{outline:0}.awc-spoiler__toggle:focus-visible{outline:2px solid var(--awc-spoiler-toggle-color);outline-offset:2px;border-radius:2px}`;var X4=Object.defineProperty,J4=Object.getOwnPropertyDescriptor,O1=r=>{throw TypeError(r)},ce=(r,t,e,i)=>{for(var o=i>1?void 0:i?J4(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&X4(t,e,o),o},Ys=(r,t,e)=>t.has(r)||O1("Cannot "+e),Jo=(r,t,e)=>(Ys(r,t,"read from private field"),e?e.call(r):t.get(r)),Qo=(r,t,e)=>t.has(r)?O1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),M1=(r,t,e,i)=>(Ys(r,t,"write to private field"),t.set(r,e),e),Ur=(r,t,e)=>(Ys(r,t,"access private method"),e),Ji,Ks,Si,Zr,Xs,P1;const Q4="awc-spoiler";let D1=0;s.AwcSpoiler=class extends C{constructor(){super(...arguments),Qo(this,Si),this.mode="lines",this.lines=3,this.collapsedHeight=80,this.expanded=!1,this.collapsible=!0,this._overflows=!1,this._contentId="",Qo(this,Ji,null),Qo(this,Ks,()=>{Ur(this,Si,Zr).call(this)}),Qo(this,Xs,()=>{this.expanded=!this.expanded,this._emitToggle({expanded:this.expanded})})}connectedCallback(){super.connectedCallback(),this._contentId||(D1+=1,this._contentId=`awc-spoiler-content-${D1}`)}firstUpdated(){typeof ResizeObserver<"u"&&this._contentEl&&(M1(this,Ji,new ResizeObserver(()=>{Ur(this,Si,Zr).call(this)})),Jo(this,Ji).observe(this._contentEl)),Ur(this,Si,Zr).call(this)}updated(t){(t.has("mode")||t.has("lines")||t.has("collapsedHeight"))&&Ur(this,Si,Zr).call(this)}disconnectedCallback(){super.disconnectedCallback(),Jo(this,Ji)?.disconnect(),M1(this,Ji,null)}render(){const t=!this._overflows||this.expanded&&!this.collapsible,e=!this.expanded&&this._overflows,i=`--awc-spoiler-_lines:${this.lines};--awc-spoiler-_collapsed-height:${this.collapsedHeight}px;`;return f`<div id="${this._contentId}" class="awc-spoiler__content${e?" is-collapsed":""}" part="content" data-mode="${this.mode}" style="${i}"><slot @slotchange="${Jo(this,Ks)}"></slot><div class="awc-spoiler__fade" part="fade" aria-hidden="true"></div></div>${t?A:f`<button type="button" class="awc-spoiler__toggle" part="toggle" aria-expanded="${this.expanded?"true":"false"}" aria-controls="${this._contentId}" @click="${Jo(this,Xs)}">${Ur(this,Si,P1).call(this)}</button>`}`}},Ji=new WeakMap,Ks=new WeakMap,Si=new WeakSet,Zr=function(){const r=this._contentEl;if(!r)return;const t=r.scrollHeight;let e;if(this.mode==="lines"){const o=getComputedStyle(r),a=parseFloat(o.lineHeight);e=(Number.isNaN(a)?1.4*parseFloat(o.fontSize):a)*this.lines}else e=this.collapsedHeight;const i=t>e+1;i!==this._overflows&&(this._overflows=i),i?this.setAttribute("data-overflows",""):this.removeAttribute("data-overflows")},Xs=new WeakMap,P1=function(){const r=this.expanded?"collapse-label":"exp
24and-label",t=this.expanded?this.collapseText??Y("awc-spoiler.collapse"):this.expandText??Y("awc-spoiler.expand");return f`<slot name="${r}">${t}</slot>`},s.AwcSpoiler.styles=[K4],ce([c({type:String,reflect:!0})],s.AwcSpoiler.prototype,"mode",2),ce([c({type:Number,reflect:!0})],s.AwcSpoiler.prototype,"lines",2),ce([c({type:Number,reflect:!0,attribute:"collapsed-height"})],s.AwcSpoiler.prototype,"collapsedHeight",2),ce([c({type:Boolean,reflect:!0})],s.AwcSpoiler.prototype,"expanded",2),ce([c({type:Boolean,reflect:!0})],s.AwcSpoiler.prototype,"collapsible",2),ce([c({type:String,attribute:"expand-text"})],s.AwcSpoiler.prototype,"expandText",2),ce([c({type:String,attribute:"collapse-text"})],s.AwcSpoiler.prototype,"collapseText",2),ce([M()],s.AwcSpoiler.prototype,"_overflows",2),ce([M()],s.AwcSpoiler.prototype,"_contentId",2),ce([H(".awc-spoiler__content")],s.AwcSpoiler.prototype,"_contentEl",2),ce([F("awc-spoiler-toggle")],s.AwcSpoiler.prototype,"_emitToggle",2),s.AwcSpoiler=ce([Ie(),I(Q4)],s.AwcSpoiler);const t0=P`:host{display:flex}:host([inline-flex]){display:inline-flex}:host([full-width]){width:100%}:host([flex-direction=row]){flex-direction:row}:host([flex-direction=column]){flex-direction:column}:host([align-items=start]){align-items:flex-start}:host([align-items=center]){align-items:center}:host([align-items=end]){align-items:flex-end}:host([justify-content=center]){justify-content:center}:host([justify-content=start]){justify-content:start}:host([justify-content=end]){justify-content:end}:host([justify-content=baseline]){justify-content:baseline}:host([justify-content=space-between]){justify-content:space-between}:host([justify-content=space-around]){justify-content:space-around}:host([justify-content=space-evenly]){justify-content:space-evenly}:host([gap=none]){gap:0}:host([gap="2xs"]){gap:var(--spacing-2xs)}:host([gap=xs]){gap:var(--spacing-xs)}:host([gap="s"]){gap:var(--spacing-s)}:host([gap=sm]){gap:var(--spacing-sm)}:host([gap="m"]){gap:var(--spacing-m)}:host([gap="l"]){gap:var(--spacing-l)}:host([gap=xl]){gap:var(--spacing-xl)}:host([gap="2xl"]){gap:var(--spacing-2xl)}:host([gap="3xl"]){gap:var(--spacing-3xl)}:host([gap="3xl"]){gap:var(--spacing-3xl)}:host([flex-wrap=nowrap]){flex-wrap:nowrap}:host([flex-wrap=wrap]){flex-wrap:wrap}:host([flex-wrap=wrap-reverse]){flex-wrap:wrap-reverse}`;var e0=Object.defineProperty,i0=Object.getOwnPropertyDescriptor,ii=(r,t,e,i)=>{for(var o=i>1?void 0:i?i0(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&e0(t,e,o),o};const r0="awc-stack";s.AwcStack=class extends C{constructor(){super(...arguments),this.flexDirection="row",this.alignItems="start",this.justifyContent="start",this.gap="s",this.flexWrap="nowrap",this.isInline=!1,this.fullWidth=!1}render(){return f`<slot></slot>`}},s.AwcStack.styles=[t0],ii([c({type:String,reflect:!0,attribute:"flex-direction"})],s.AwcStack.prototype,"flexDirection",2),ii([c({type:String,reflect:!0,attribute:"align-items"})],s.AwcStack.prototype,"alignItems",2),ii([c({type:String,reflect:!0,attribute:"justify-content"})],s.AwcStack.prototype,"justifyContent",2),ii([c({type:String,reflect:!0})],s.AwcStack.prototype,"gap",2),ii([c({type:String,reflect:!0,attribute:"flex-wrap"})],s.AwcStack.prototype,"flexWrap",2),ii([c({type:Boolean,reflect:!0,attribute:"inline-flex"})],s.AwcStack.prototype,"isInline",2),ii([c({type:Boolean,reflect:!0,attribute:"full-width"})],s.AwcStack.prototype,"fullWidth",2),s.AwcStack=ii([I(r0)],s.AwcStack);const o0=P`:host{display:inline-block;--awc-button-remove-border-radius:0px;--awc-split-button-border-radius:var(--corner-radius-s);--awc-split-button-padding:0 8px}:host ::slotted(awc-button){--awc-button-border-radius:var(--awc-split-button-border-radius) var(--awc-button-remove-border-radius) var(--awc-button-remove-border-radius) var(--awc-split-button-border-radius);border-radius:var(--awc-button-border-radius)}.awc-split-button{display:flex;align-items:center}awc-button.awc-button-toggler{--awc-button-padding-regular:var(--awc-split-button-padding);--awc-button-border-radius:var(--awc-button-remove-border-radius) var(--awc-split-button-border-radius) var(--awc-split-button-border-radius) var(--awc-button-remove-border-radius);border-radius:var(--awc-button-border-radius);position:relative}.awc-button-toggler::after{content:"";cursor:pointer;position:absolute;
24left:0;top:4px;bottom:4px;width:1px;background-color:var(--colors-white);opacity:.2}`;var a0=Object.defineProperty,s0=Object.getOwnPropertyDescriptor,Wr=(r,t,e,i)=>{for(var o=i>1?void 0:i?s0(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&a0(t,e,o),o};const n0="awc-split-button";s.AwcSplitButton=class extends C{constructor(){super(...arguments),this.menuOpen=!1}_dropdownClose(t){t.detail.visible||this.splitButtonClose()}splitButtonOpen(){this.menuOpen=!0,this._splitButtonOpened({visible:this.menuOpen})}splitButtonClose(){this.menuOpen=!1,this._splitButtonClosed({visible:this.menuOpen})}_handleDropdown(){this.menuOpen?this.splitButtonClose():this.splitButtonOpen()}render(){return f`<div class="awc-split-button" part="base"><slot name="awc-split-button"></slot><awc-dropdown trigger-type="manual" @awc-dropdown-close="${this._dropdownClose}" .visible="${this.menuOpen}" strategy="${D(this.strategy)}"><awc-button exportparts="base:button-base" class="awc-button-toggler" type="button" @click="${this._handleDropdown}" filling slot="awc-dropdown-toggle"><awc-icon size="16" name="select_arrow_down"></awc-icon></awc-button><slot></slot></awc-dropdown></div>`}},s.AwcSplitButton.styles=o0,Wr([c({type:Boolean,reflect:!0,attribute:"menu-open"})],s.AwcSplitButton.prototype,"menuOpen",2),Wr([c({type:String,reflect:!0})],s.AwcSplitButton.prototype,"strategy",2),Wr([F("awc-split-button-close")],s.AwcSplitButton.prototype,"_splitButtonClosed",2),Wr([F("awc-split-button-open")],s.AwcSplitButton.prototype,"_splitButtonOpened",2),s.AwcSplitButton=Wr([I(n0)],s.AwcSplitButton);const l0=P`:host{--awc-triple-toggler-width:47px;--awc-triple-toggler-height:20px;--awc-triple-toggler-padding:3px;--awc-triple-toggler-width-calc:calc(
25      var(--awc-triple-toggler-width) - var(--awc-triple-toggler-padding)
26    );--awc-triple-toggler-background-first:var(--colors-warning);--awc-triple-toggler-background-second:var(--colors-primary);--awc-triple-toggler-background-third:var(--colors-success)}.awc-triple-toggler{outline:1px solid transparent;position:relative;display:flex;width:var(--awc-triple-toggler-width-calc);height:var(--awc-triple-toggler-height);border-radius:50px;padding:0 var(--awc-triple-toggler-padding);transition:background-color var(--awc-duration-slow,.3s) ease-in-out,outline var(--awc-duration-slow,.3s) ease}.awc-triple-toggler:focus-visible{outline:1px solid var(--colors-secondary,#919bb6)}:host([state=first]) .awc-triple-toggler{background-color:var(--awc-triple-toggler-background-first)}:host([state=second]) .awc-triple-toggler{background-color:var(--awc-triple-toggler-background-second)}:host([state=third]) .awc-triple-toggler{background-color:var(--awc-triple-toggler-background-third)}.awc-triple-toggler__track{display:flex;flex-grow:1;justify-content:space-between;align-items:center}.awc-triple-toggler__thumb{position:absolute;width:14px;height:14px;background-color:var(--colors-white);border-radius:50%;transition:transform var(--awc-duration-slow,.3s) ease;top:50%;transform:translateY(-50%)}.awc-triple-toggler__thumb.first{transform:translate(0,-50%)}.awc-triple-toggler__thumb.second{transform:translate(15px,-50%)}.awc-triple-toggler__thumb.third{transform:translate(30px,-50%)}.awc-triple-toggler__option{flex:1;height:100%;cursor:pointer}`;var c0=Object.defineProperty,d0=Object.getOwnPropertyDescriptor,Js=(r,t,e,i)=>{for(var o=i>1?void 0:i?d0(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&c0(t,e,o),o};const h0="awc-triple-toggler";s.AwcTripleToggler=class extends C{constructor(){super(...arguments),this.state="first"}_setState(t){this.state=t}_handleKeydown(t){if(t.key==="ArrowLeft"||t.key==="ArrowRight")switch(t.preventDefault(),this.state){case"first":t.key==="ArrowRight"&&this._setState("second");break;case"second":t.key==="ArrowLeft"&&this._setState("first"),t.key==="ArrowRight"&&this._setState("third");break;case"third":t.key==="ArrowLeft"&&this._setState("second");break}}updated(t){super.updated(t),t.has("state")&&this._onChangeState(this.state)}render(){return f`<div tabindex="0" role="switch" class="awc-triple-toggler" part="base" @keydown="${this._handleKeydown}"><div class="awc-triple-toggler__track" part="track"><div class="awc-triple-toggler__option first-option" part="option" @click="${()=>this._setState("first")}"></div><div class="awc-triple-toggler__option second-option" part="option" @click="${()=>this._setState("second")}"></div><div class="awc-triple-toggler__option third-option" part="option" @click="${()=>this._setState("third")}"></div></div><div class="awc-triple-toggler__thumb ${this.state}" part="thumb"></div></div>`}},s.AwcTripleToggler.styles=l0,Js([c({type:String,reflect:!0})],s.AwcTripleToggler.prototype,"state",2),Js([F("awc-triple-toggler-change")],s.AwcTripleToggler.prototype,"_onChangeState",2),s.AwcTripleToggler=Js([I(h0)],s.AwcTripleToggler);const u0=P`:host{--awc-icon-button-background-hover:var(--colors-hover-back);--awc-icon-button-background-active:var(--colors-pressed-back);display:inline-flex;box-sizing:border-box;max-height:var(--awc-icon-button-max-height,max-content);max-width:var(--awc-icon-button-max-width,max-content)}
26button{cursor:pointer;border:none;background-color:transparent;padding:0}a{cursor:pointer;text-decoration:none}:host([disabled]),:host([disabled]) .awc-icon-button{opacity:.5;pointer-events:none}:host([size="20"]) .awc-icon-button{--awc-icon-button-width:20px;--awc-icon-button-height:20px}:host([size="24"]) .awc-icon-button{--awc-icon-button-width:24px;--awc-icon-button-height:24px}:host([size="28"]) .awc-icon-button{--awc-icon-button-width:28px;--awc-icon-button-height:28px}:host([size="30"]) .awc-icon-button{--awc-icon-button-width:30px;--awc-icon-button-height:30px}:host([size="32"]) .awc-icon-button{--awc-icon-button-width:32px;--awc-icon-button-height:32px}:host([size="36"]) .awc-icon-button{--awc-icon-button-width:36px;--awc-icon-button-height:36px}:host([size="40"]) .awc-icon-button{--awc-icon-button-width:40px;--awc-icon-button-height:40px}.awc-icon-button{position:relative;display:flex;align-items:center;justify-content:center;height:var(--awc-icon-button-height);width:var(--awc-icon-button-width);border-radius:var(--corner-radius-s);background-color:var(--awc-icon-button-background,rgba(0,0,0,0));transition:background-color var(--awc-duration-slow,.3s) ease}@media (hover:hover){:host(:not([active])) .awc-icon-button:hover{background-color:var(--awc-icon-button-background-hover)}:host(:not([active])) .awc-icon-button:active{background-color:var(--awc-icon-button-background-active)}
26}@media (hover:none){:host(:not([active])) .awc-icon-button:active{background-color:var(--awc-icon-button-background-active)}}.awc-icon-button:focus-visible{outline:1px solid var(--colors-secondary);background-color:var(--awc-icon-button-background-hover)}:host([active][variant=toggle]) .awc-icon-button{--awc-icon-fill:var(--colors-primary);--awc-icon-button-background:#3761E91F}:host([variant=primary]) .awc-icon-button{--awc-icon-fill:var(--colors-white, #FFFFFF);--awc-icon-button-background:var(--colors-primary)}:host([variant=primary]:hover) .awc-icon-button{--awc-icon-button-background-hover:var(--colors-link-hover)}:host([variant=primary]:active) .awc-icon-button{--awc-icon-button-background-active:var(--colors-primary)}.awc-icon-button::slotted(awc-icon){position:absolute;left:0;top:0}`;var p0=Object.defineProperty,f0=Object.getOwnPropertyDescriptor,Me=(r,t,e,i)=>{for(var o=i>1?void 0:i?f0(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&p0(t,e,o),o};const w0="awc-icon-button";s.AwcIconButton=class extends C{constructor(){super(...arguments),this.size="24",this.type="button",this.target="_self",this.disabled=!1,this.active=!1,this.variant="toggle"}willUpdate(t){super.willUpdate(t),this.hasAttribute("variant")&&this.variant==="primary"&&(this.active=!1)}render(){const t=f`<button part="base" ?disabled="${this.disabled}" size="${this.size}" type="${this.type}" class="awc-icon-button"><slot></slot></button>`,e=f`<a part="base" ?disabled="${this.disabled}" size="${this.size}" href="${this.href}" target="${this.target}" class="awc-icon-button"><slot></slot></a>`;return this.href?e:t}},s.AwcIconButton.styles=u0,Me([c({type:String,reflect:!0})],s.AwcIconButton.prototype,"name",2),Me([c({type:String,reflect:!0})],s.AwcIconButton.prototype,"value",2),Me([c({type:String,reflect:!0})],s.AwcIconButton.prototype,"size",2),Me([c({type:String,reflect:!0,useDefault:!0})],s.AwcIconButton.prototype,"type",2),Me([c({type:String,reflect:!0})],s.AwcIconButton.prototype,"href",2),Me([c({type:String})],s.AwcIconButton.prototype,"target",2),Me([c({type:Boolean,reflect:!0})],s.AwcIconButton.prototype,"disabled",2),Me([c({type:Boolean,reflect:!0})],s.AwcIconButton.prototype,"active",2),Me([c({type:String,reflect:!0})],s.AwcIconButton.prototype,"variant",2),s.AwcIconButton=Me([I(w0)],s.AwcIconButton);const g0=["grid","list_block","list"],v0=P`:host{display:block}.awc-file__accordion{display:grid;grid-template-rows:0fr;transition:opacity var(--awc-duration-slow,.3s) ease-in-out,grid-template-rows var(--awc-duration-slow,.3s) ease;opacity:0}:host([variant=compact]) .awc-file__accordion{grid-template-rows:1fr;opacity:1}.awc-file__accordion__wrapper{overflow:hidden}:host([open]) .awc-file__accordion{grid-template-rows:1fr;opacity:1}p{margin:0}.awc-file{display:flex;flex-direction:column;width:100%}.awc-file__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--spacing-xs);user-select:none;cursor:pointer}.awc-file__icon{display:flex}.awc-file__icon awc-icon{transform:rotate(-90deg);transition:transform var(--awc-duration-slow,.3s) ease}:host([open]) .awc-file__icon awc-icon{transform:rotate(0)}.awc-file__headline{display:flex;align-items:center;gap:var(--spacing-s)}.awc-file__title{font:var(--awc-font-headline-medium-16);color:var(--colors-titles)}.awc-file__counter{font:var(--awc-font-text-regular-14);color:var(--colors-secondary);line-height:normal}.awc-file__views{display:flex;align-items:center;gap:var(--spacing-xs);margin-left:auto;opacity:1;visibility:visible;transition:visibility var(--awc-duration-slow,.3s) ease,opacity var(--awc-duration-slow,.3s) ease}.awc-file__views--hidden{opacity:0;visibility:hidden;transition:visibility var(--awc-duration-slow,.3s) ease,opacity var(--awc-duration-slow,.3s) ease}awc-icon-button svg{fill:#919bb6;transition:fill var(--awc-duration-slow,.3s) ease}awc-icon-button[active] svg{fill:var(--colors-primary)}.awc-file__body{margin-top:10px;display:flex;flex-wrap:wrap}:host([variant=compact]) .awc-file__body{margin-top:0}:host([view=grid]) .awc-file__body{display:grid;grid-template-columns:repeat(auto-fill,120px);grid-auto-rows:164px;align-items:center;gap:var(--spacing-sm)}:host([view=list]) .awc-file__body{flex-direction:column;align-items:flex-start}:host([view=list_block]) .awc-file__body{align-items:center;gap:var(--spacing-sm)}.awc-file__button{display:inline-flex;margin-top:var(--spacing-sm)}`,_0=P`:host{display:flex;box-sizing:border-box}:host([is-interactive]){cursor:pointer}:host([external-file-link]) .awc-file-item__preview,:host([external-file-link]:not(:host([view=grid]))){cursor:pointer}:host([view=grid]){flex-direction:column;gap:var(--spacing-s);height:100%}:host([view=grid]) .awc-file-item__preview{box-sizing:border-box;position:relative;width:100%;height:100%;border-radius:var(--corner-radius-m);border:var(--awc-file-item-border,1px solid var(--colors-stroke));background-color:var(--awc-file-item-background,var(--colors-card-surface));transition:background-color var(--awc-duration-slow,.3s) ease,border var(--awc-duration-slow,.3s) ease;overflow:hidden}:host([view=grid]) .awc-file-item__preview:hover:not(:has(.awc-file-item-button:hover)),:host([view=grid]) .awc-file-item__preview:hover:not(:has(awc-icon-button:hover)){background-color:var(--colors-hover-back);transition:background-color var(--awc-duration-slow,.3s) ease}:host([view=grid]) .awc-file-item__preview .awc-file-item__dropdown{position:absolute;z-index:1;top:6px;right:6px}:host([view=grid]) .awc-file-item__info{flex-direction:column;align-items:flex-start}:host([view=grid]) .awc-file-item__name{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([view=grid]) .awc-file-item__subinfo{gap:var(--spacing-2xs)}:host([view=grid]) .awc-file-item__preview .awc-file-item__icon svg{display:flex;width:36px;height:36px}
26:host([view=list]) .awc-file-item__preview .awc-file-item__image{box-sizing:border-box;border:1px solid var(--colors-stroke);border-radius:var(--corner-radius-xs)}:host([view=list]) .awc-file-item__preview,:host([view=list]) .awc-file-item__preview .awc-file-item__icon svg{width:24px;height:24px}:host([view=list]) .awc-file-item__info{gap:var(--spacing-s);display:grid;align-items:center;grid-template-columns:auto auto;width:100%}:host([view=list]) .awc-file-item__name{display:flex;align-items:center;gap:var(--spacing-xs);overflow:hidden}:host([view=list]) .awc-file-item__subinfo{gap:var(--spacing-m);margin-left:auto}:host([view=list]) .awc-file-item__buttons{position:relative;right:0;height:inherit;display:flex;justify-content:flex-end;gap:var(--spacing-xs);align-items:center;background-color:var(--colors-background)}:host([view=list]) .awc-file-item__text{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([view=list]){position:relative;flex-direction:row;align-items:center;gap:var(--spacing-sm);width:100%;height:36px;padding:0 6px;max-height:36px;transition:background-color var(--awc-duration-slow,.3s) ease;box-sizing:border-box}:host([view=list]:hover){background-color:var(--colors-light-background);border-radius:var(--corner-radius-m)}:host([view=list_block]) .awc-file-item__preview,:host([view=list_block]) .awc-file-item__preview .awc-file-item__icon svg{border-radius:var(--corner-radius-s);display:flex;width:36px;height:36px}
26:host([view=list_block]) .awc-file-item__preview .awc-file-item__image{box-sizing:border-box;border:1px solid var(--colors-stroke);background:var(--awc-file-item-preview-background,var(--colors-white));border-radius:inherit}:host([view=list_block]) .awc-file-item__info{flex-direction:column;align-items:flex-start;max-width:80%;overflow:hidden}:host([view=list_block]) .awc-file-item__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}:host([view=list_block]){flex-direction:row;align-items:center;gap:var(--spacing-sm);border-radius:var(--corner-radius-m);padding:var(--awc-file-item-padding,0 12px);max-width:var(--awc-file-item-max-width,300px);width:var(--awc-file-item-width,100%);max-height:var(--awc-file-item-max-height,56px);height:var(--awc-file-item-height,56px);border:var(--awc-file-item-border,1px solid var(--colors-stroke));background-color:var(--awc-file-item-background,var(--colors-card-surface))}:host([view=list_block]) .awc-file-item__subinfo{gap:var(--spacing-xs)}:host([view=list_block]) .awc-file-item__buttons{display:flex;gap:var(--spacing-xs);align-items:center;margin-left:auto;justify-content:flex-end}:host([view=grid][external-file-link]) .awc-file-item__preview{cursor:pointer}.awc-file-item__preview{display:flex;align-items:center;justify-content:center}.awc-file-item__preview .awc-file-item__image{object-fit:contain;width:inherit;height:inherit}.awc-file-item__icon{display:flex}.awc-file-item__info{display:flex;align-items:center}.awc-file-item__name,.awc-file-item__text{font:var(--awc-font-text-regular-14);color:var(--colors-titles);margin:0}.awc-file-item__subinfo{display:flex;align-items:center;justify-content:flex-start;min-height:16px}.awc-file-item__date,.awc-file-item__size,.awc-file-item__type{font:var(--awc-font-caption-2-regular);color:var(--colors-secondary);white-space:nowrap}.awc-file-item__type{text-transform:uppercase}.awc-file-item__provider{display:flex;align-items:center;justify-content:center}.awc-file-item__provider svg{width:16px;height:16px}.awc-file-item__subtext{color:var(--colors-secondary);font:var(--awc-font-caption-2-regular)}.awc-file-item-wrapper{width:210px;padding:6px 0}.awc-file-item-button{position:absolute;right:5px;top:5px}@media screen and (max-width:512px){:host([view=list]) .awc-file-item__date{display:none}}`;function m0(r,t=!1,e="en"){if(typeof r!="number"||isNaN(r)||r<0)return"";const i=t?1e3:1024,o={en:t?["B","KB","MB","GB","TB","PB","EB","ZB","YB"]:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ru:t?["Б","КБ","МБ","ГБ","ТБ","ПБ","ЭБ","ЗБ","ЯБ"]:["Б","КиБ","МиБ","ГиБ","ТиБ","ПиБ","ЭиБ","ЗиБ","ЯиБ"]},a=e.toLowerCase().replace(/_/g,"-"),n=o[a]??o[a.split("-")[0]]??o.en;let d=r,l=0;for(l=0;l<n.length-1&&!(d<i);l++)d/=i;return d===0?`${d.toFixed(0)} ${n[l]}`:`${d.toFixed(1)} ${n[l]}`}S`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.2498 7C13.2498 7.69036 12.6901 8.25 11.9998 8.25C11.3094 8.25 10.7498 7.69036 10.7498 7C10.7498 6.30964 11.3094 5.75 11.9998 5.75C12.6901 5.75 13.2498 6.30964 13.2498 7ZM13.25 12C13.25 12.6904 12.6903 13.25 12 13.25C11.3096 13.25 10.75 12.6904 10.75 12C10.75 11.3096 11.3096 10.75 12 10.75C12.6903 10.75 13.25 11.3096 13.25 12ZM11.9998 18.25C12.6901 18.25 13.2498 17.6904 13.2498 17C13.2498 16.3096 12.6901 15.75 11.9998 15.75C11.3094 15.75 10.7498 16.3096 10.7498 17C10.7498 17.6904 11.3094 18.25 11.9998 18.25Z" fill="#919BB6"/></svg>`,S`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C8.55228 0 9 0.447715 9 1V7.58579L11.2929 5.29289C11.6834 4.90237 12.3166 4.90237 12.7071 5.29289C13.0976 5.68342 13.0976 6.31658 12.7071 6.70711L8.70711 10.7071C8.31658 11.0976 7.68342 11.0976 7.29289 10.7071L3.29289 6.70711C2.90237 6.31658 2.90237 5.68342 3.29289 5.29289C3.68342 4.90237 4.31658 4.90237 4.70711 5.29289L7 7.58579V1C7 0.447715 7.44772 0 8 0ZM1 10C1.55228 10 2 10.4477 2 11V13C2 13.5523 2.44772 14 3 14H13C13.5523 14 14 13.5523 14 13V11C14 10.4477 14.4477 10 15 10C15.5523 10 16 10.4477 16 11V13C16 14.6569 14.6569 16 13 16H3C1.34315 16 0 14.6569 0 13V11C0 10.4477 0.447715 10 1 10Z" fill="#919BB6"/></svg>
26`,S`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 2C6.89543 2 6 2.89543 6 4V6H10V4C10 2.89543 9.10457 2 8 2ZM12 6V4C12 1.79086 10.2091 0 8 0C5.79086 0 4 1.79086 4 4V6H3.75C2.23122 6 1 7.23122 1 8.75V13.25C1 14.7688 2.23122 16 3.75 16H12.25C13.7688 16 15 14.7688 15 13.25V8.75C15 7.23122 13.7688 6 12.25 6H12ZM3.75 8C3.33579 8 3 8.33579 3 8.75V13.25C3 13.6642 3.33579 14 3.75 14H12.25C12.6642 14 13 13.6642 13 13.25V8.75C13 8.33579 12.6642 8 12.25 8H11H5H3.75Z" fill="#919BB6"/></svg>`,S`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.25147 2.26099C4.94431 0.875305 6.36059 0 7.90983 0C10.1688 0 12 1.83123 12 4.09017V6H12.25C13.7688 6 15 7.23122 15 8.75V13.25C15 14.7688 13.7688 16 12.25 16H3.75C2.23122 16 1 14.7688 1 13.25V8.75C1 7.23122 2.23122 6 3.75 6H5H10V4.09017C10 2.9358 9.0642 2 7.90983 2C7.11813 2 6.39438 2.4473 6.04033 3.15542L5.89443 3.44721C5.64744 3.94119 5.04676 4.14142 4.55279 3.89443C4.05881 3.64744 3.85858 3.04676 4.10557 2.55279L4.25147 2.26099ZM3.75 8C3.33579 8 3 8.33579 3 8.75V13.25C3 13.6642 3.33579 14 3.75 14H12.25C12.6642 14 13 13.6642 13 13.25V8.75C13 8.33579 12.6642 8 12.25 8H11H5H3.75Z" fill="#919BB6"/></svg>`,S`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6 3L10 3V2H6V3ZM12 3V2C12 0.89543 11.1046 0 10 0H6C4.89543 0 4 0.89543 4 2V3L2 3C1.44772 3 1 3.44772 1 4C1 4.55226 1.44768 4.99996 1.99993 5C1.99997 5.03289 2.00162 5.06609 2.00496 5.0995L2.91491 14.199C3.01715 15.2214 3.87748 16 4.90499 16H11.095C12.1225 16 12.9828 15.2214 13.0851 14.199L13.995 5.0995C13.9984 5.06609 14 5.03289 14.0001 5C14.5523 4.99996 15 4.55226 15 4C15 3.44772 14.5523 3 14 3L12 3ZM11 5H5H4.00499L4.90499 14L11.095 14L11.995 5L11 5Z" fill="#919BB6"/></svg>`;const Qs={google_drive_picker:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.663 22.2842L7.633 23.9042C7.835 24.2442 8.125 24.5132 8.465 24.7082L11.93 18.9102H5C5 19.2882 5.1 19.6652 5.302 20.0062L6.663 22.2842Z" fill="#0066DA"/><path d="M16 12.091L12.535 6.29297C12.195 6.48797 11.905 6.75597 11.703 7.09697L5.303 17.815C5.10547 18.1465 5.00081 18.5251 5 18.911H11.93L16 12.091Z" fill="#00AC47"/><path d="M23.5348 24.7082C23.8748 24.5132 24.1648 24.2452 24.3668 23.9042L24.7698 23.2342L26.6978 20.0062C26.8988 19.6662 26.9998 19.2882 26.9998 18.9102H20.0698L21.5438 21.7122L23.5348 24.7082Z" fill="#EA4335"/><path d="M16.0002 12.0901L19.4652 6.29208C19.1191 6.09742 18.7282 5.99675 18.3312 6.00008H13.6692C13.2662 6.00008 12.8752 6.11008 12.5352 6.29208L16.0002 12.0901Z" fill="#00832D"/><path d="M20.0698 18.9102H11.9298L8.46484 24.7082C8.80484 24.9032 9.19484 25.0002 9.59884 25.0002H22.4008C22.8038 25.0002 23.1948 24.8902 23.5348 24.7082L20.0698 18.9102Z" fill="#2684FC"/><path d="M23.497 12.456L20.297 7.09697C20.0944 6.76108 19.8076 6.48394 19.465 6.29297L16 12.091L20.07 18.911H26.987C26.987 18.534 26.887 18.156 26.685 17.815L23.497 12.456Z" fill="#FFBA00"/></svg>`,yandex_disk:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.73077 17.8475C2.71288 19.7947 2.65053 22.7812 3.95291 22.7812C9.26032 23.6857 30.5423 13.5283 28.9105 10.1339C28.1987 8.67051 25.1688 7.77111 21.295 8.03026C20.5082 8.00087 19.7317 7.84117 18.9972 7.55769C18.8498 7.50688 18.7023 7.45606 18.5448 7.41033C16.348 6.73472 13.9787 6.89767 11.8952 7.86765C10.0906 8.71442 8.6124 10.1277 7.68591 11.8921C7.52323 12.2021 7.37072 12.5273 7.21312 12.8474C6.79626 13.7163 6.38448 14.5852 5.84052 15.1848C5.03868 15.9897 4.33089 16.8829 3.73077 17.8475Z" fill="#012B5B"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4 19.2004V20.381C4 21.3722 4.19 22.3245 4.54 23.199C7.105 24.5109 13.055 24.3457 18.89 21.6929C24.3 19.2198 28.035 15.3329 29 12.5974C29.175 12.1013 29.384 10.8179 28.855 10.1632C27.265 8.19546 20.665 8.71534 
2613.905 11.7909C9.16 13.9578 5.53 16.8342 4 19.2004Z" fill="#1884FF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3.61699 19.2004C2.61225 21.1087 2.86362 22.5393 4.15953 23.199C6.73658 24.5109 12.7146 24.3457 18.577 21.6929C24.0124 19.2198 27.765 15.3329 28.7345 12.5974C28.9857 11.8888 29.2369 10.9615 28.5888 10.1632C26.9913 8.19546 20.3603 8.71534 13.5685 11.7909C8.80124 13.9578 5.15418 16.8342 3.61699 19.2004Z" fill="url(#paint0_radial_50280_9103)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.5388 20.5456C22.0806 18.9765 24.4911 16.7878 23.9149 15.6585C23.344 14.5292 20.003 14.8889 16.4612 16.458C12.9195 18.0271 10.5089 20.2108 11.0851 21.3401C11.656 22.4694 14.997 22.1146 18.5388 20.5406V20.5456Z" fill="white"/><defs><radialGradient id="paint0_radial_50280_9103" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(17.7483 18.5347) rotate(64.4897) scale(7.29019 18.0716)"><stop stop-color="#89C0FF"/><stop offset="0.61" stop-color="#1884FF"/><stop offset="1" stop-color="#1884FF"/></radialGradient></defs></svg>`,dropbox:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 6.5L5 9.955L10.5 13.409L16 9.955L21.5 13.409L27 9.955L21.5 6.5L16 9.955L10.5 6.5ZM10.5 20.319L5 16.864L10.5 13.409L16 16.864L10.5 20.319ZM16 16.864L21.5 13.409L27 16.864L21.5 20.319L16 16.864ZM16 24.925L10.5 21.47L16 18.016L21.5 21.47L16 24.925Z" fill="#0E6AFE"/></svg>`,one_drive:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.3897 12.8871L18.0077 15.6341L20.7597 14.4841C21.413 14.2039 22.1235 14.0833 22.8327 14.1321C22.4982 12.8472 21.7979 11.687 20.8168 10.7923C19.8357 9.89763 18.616 9.30702 17.3057 9.09214C15.9941 8.87321 14.6471 9.03823 13.4271 9.56731C12.2072 10.0964 11.1662 10.967 10.4297 12.0741L10.4997 12.0721C11.52 12.0705 12.5206 12.3527 13.3897 12.8871Z" fill="#0364B8"/><path d="M13.3901 12.8863C12.521 12.3518 11.5204 12.0706 10.5001 12.0723L10.4301 12.0743C9.43322 12.0851 8.45803 12.3666 7.60872 12.8887C6.75941 13.4107 6.0679 14.1537 5.60809 15.0383C5.15142 15.9202 4.94537 16.9105 5.01237 17.9014C5.07937 18.8923 5.41685 19.8458 5.98809 20.6583L10.0611 18.9563L11.8711 18.1993L15.9031 16.5143L18.0081 15.6343L13.3891 12.8863H13.3901Z" fill="#0078D4"/><path d="M22.8328 14.1317C22.1237 14.0828 21.4131 14.2035 20.7598 14.4837L18.0078 15.6337L18.8058 16.1087L21.4218 
2617.6647L22.5628 18.3447L26.4648 20.6657C26.8192 20.0127 27.003 19.2808 26.9991 18.5378C26.9953 17.7949 26.8039 17.065 26.4428 16.4157C26.0795 15.764 25.5588 15.2136 24.9282 14.8146C24.2977 14.4157 23.5773 14.1809 22.8328 14.1317Z" fill="#1490DF"/><path d="M22.5633 18.3458L21.4223 17.6658L18.8063 16.1098L18.0083 15.6348L15.9033 16.5148L11.8703 18.1998L10.0603 18.9568L5.9873 20.6588C6.49585 21.3831 7.17161 21.9741 7.95726 22.3817C8.7429 22.7892 9.61525 23.0012 10.5003 22.9998H22.5313C23.3363 23.001 24.1267 22.7849 24.8191 22.3742C25.5115 21.9636 26.0803 21.3737 26.4653 20.6668L22.5633 18.3458Z" fill="#28A8EA"/></svg>`},b0={doc:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#399BED"/><path d="M10.28 10.8984H11.957V19.9984H10.28V19.2314C9.78595 19.8641 9.08395 20.1804 8.17395 20.1804C7.29862 20.1804 6.54895 19.8511 5.92495 19.1924C5.30962 18.5251 5.00195 17.7104 5.00195 16.7484C5.00195 15.7864 5.30962 14.9761 5.92495 14.3174C6.54895 13.6501 7.29862 13.3164 8.17395 13.3164C9.08395 13.3164 9.78595 13.6328 10.28 14.2654V10.8984ZM7.18595 18.0744C7.53262 18.4124 7.96595 18.5814 8.48595 18.5814C9.00595 18.5814 9.43495 18.4124 9.77295 18.0744C10.111 17.7278 10.28 17.2858 10.28 16.7484C10.28 16.2111 10.111 15.7734 9.77295 15.4354C9.43495 15.0888 9.00595 14.9154 8.48595 14.9154C7.96595 14.9154 7.53262 15.0888 7.18595 15.4354C6.84795 15.7734 6.67895 16.2111 6.67895 16.7484C6.67895 17.2858 6.84795 17.7278 7.18595 18.0744Z" fill="white"/><path d="M19.0286 19.1924C18.3613 19.8511 17.5466 20.1804 16.5846 20.1804C15.6226 20.1804 14.808 19.8511 14.1406 19.1924C13.482 18.5251 13.1526 17.7104 13.1526 16.7484C13.1526 15.7864 13.482 14.9761 14.1406 14.3174C14.808 13.6501 15.6226 13.3164 16.5846 13.3164C17.5466 13.3164 18.3613 13.6501 19.0286 14.3174C19.696 14.9761 20.0296 15.7864 20.0296 16.7484C20.0296 17.7104 19.696 18.5251 19.0286 19.1924ZM15.3236 18.0354C15.6616 18.3734 16.082 18.5424 16.5846 18.5424C17.0873 18.5424 17.5076 18.3734 17.8456 18.0354C18.1836 17.6974 18.3526 17.2684 18.3526 16.7484C18.3526 16.2284 18.1836 15.7994 17.8456 15.4614C17.5076 15.1234 17.0873 14.9544 16.5846 14.9544C16.082 14.9544 15.6616 15.1234 15.3236 15.4614C14.9943 15.7994 14.8296 16.2284 14.8296 16.7484C14.8296 17.2684 14.9943 17.6974 15.3236 18.0354Z" fill="white"/><path d="M24.3034 20.1804C23.3241 20.1804 22.5051 19.8511 21.8464 19.1924C21.1964 18.5338 20.8714 17.7191 20.8714 16.7484C20.8714 15.7778 21.1964 14.9631 21.8464 14.3044C22.5051 13.6458 23.3241 13.3164 24.3034 13.3164C24.9361 13.3164 25.5124 13.4681 26.0324 13.7714C26.5524 14.0748 26.9467 14.4821 27.2154 14.9934L25.7724 15.8384C25.6424 15.5698 25.4431 15.3574 25.1744 15.2014C24.9144 15.0454 24.6197 14.9674 24.2904 14.9674C23.7877 14.9674 23.3717 15.1364 23.0424 15.4744C22.7131 15.8038 22.5484 16.2284 22.5484 16.7484C22.5484 17.2598 22.7131 17.6844 23.0424 18.0224C23.3717 18.3518 23.7877 18.5164 24.2904 18.5164C24.6284 18.5164 24.9274 18.4428 25.1874 18.2954C25.4561 18.1394 25.6554 17.9271 25.7854 17.6584L27.2414 18.4904C26.9554 19.0018 26.5524 19.4134 26.0324 19.7254C25.5124 20.0288 24.9361 20.1804 24.3034 20.1804Z" fill="white"/></svg>`,docx:S`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><rect width="32" height="32" rx="4" fill="#399BED"/><path d="M7.76319 11.5312H9.32409V20.0013H7.76319V19.2874C7.30339 19.8762 6.64999 20.1707 5.80299 20.1707C4.98825 20.1707 4.29049 19.8641 3.70969 19.2511C3.13695 18.6299 2.85059 17.8717 2.85059 16.9763C2.85059 16.0809 3.13695 15.3266 3.70969 14.7136C4.29049 14.0924 4.98825 13.7819 5.80299 13.7819C6.64999 13.7819 7.30339 14.0763 7.76319 14.6652V11.5312ZM4.88339 18.2105C5.20605 18.5251 5.60939 18.6824 6.09339 18.6824C6.57739 18.6824 6.97669 18.5251 7.29129 18.2105C7.60589 17.8878 7.76319 17.4764 7.76319 16.9763C7.76319 16.4761 7.60589 16.0688 7.29129 15.7542C6.97669 15.4315 6.57739 15.2702 6.09339 15.2702C5.60939 15.2702 5.20605 15.4315 4.88339 15.7542C4.56879 16.0688 4.41149 16.4761 4.41149 16.9763C4.41149 17.4764 4.56879 17.8878 4.88339 18.2105Z" fill="white"/><path d="M15.7062 19.2511C15.0851 19.8641 14.3268 20.1707 13.4314 20.1707C12.536 20.1707 11.7777 19.8641 11.1566 19.2511C10.5435 18.6299 10.237 17.8717 10.237 16.9763C10.237 16.0809 10.5435 15.3266 11.1566 14.7136C11.7777 14.0924 12.536 13.7819 13.4314 13.7819C14.3268 13.7819 15.0851 14.0924 15.7062 14.7136C16.3273 15.3266 16.6379 16.0809 16.6379 16.9763C16.6379 17.8717 16.3273 18.6299 15.7062 19.2511ZM12.2577 18.1742C12.5723 18.4888 12.9635 18.6461 13.4314 18.6461C13.8993 18.6461 14.2905 18.4888 14.6051 18.1742C14.9197 17.8596 15.077 17.4603 15.077 16.9763C15.077 16.4923 14.9197 16.093 14.6051 15.7784C14.2905 15.4638 13.8993 15.3065 13.4314 15.3065C12.9635 15.3065 12.5723 15.4638 12.2577 15.7784C11.9512 16.093 11.7979 16.4923 11.7979 16.9763C11.7979 17.4603 11.9512 17.8596 12.2577 18.1742Z" fill="white"/><path d="M20.4158 20.1707C19.5042 20.1707 18.7419 19.8641 18.1289 19.2511C17.5239 18.638 17.2214 17.8797 17.2214 16.9763C17.2214 16.0728 17.5239 15.3145 18.1289 14.7015C18.7419 14.0884 19.5042 13.7819 20.4158 13.7819C21.0046 13.7819 21.5411 13.923 22.0251 14.2054C22.5091 14.4877 22.8761 14.8668 23.1262 15.3428L21.7831 16.1293C21.6621 15.8792 21.4765 15.6816 21.2265 15.5364C20.9845 15.3912 20.7102 15.3186 20.4037 15.3186C19.9358 15.3186 19.5486 15.4759 19.2421 15.7905C18.9355 16.097 18.7823 16.4923 18.7823 16.9763C18.7823 17.4522 
2618.9355 17.8475 19.2421 18.1621C19.5486 18.4686 19.9358 18.6219 20.4037 18.6219C20.7183 18.6219 20.9966 18.5533 21.2386 18.4162C21.4886 18.271 21.6742 18.0733 21.7952 17.8233L23.1504 18.5977C22.8842 19.0736 22.5091 19.4568 22.0251 19.7472C21.5411 20.0295 21.0046 20.1707 20.4158 20.1707Z" fill="white"/><path d="M29.2713 20.0013H27.4684L26.1616 18.1621L24.8427 20.0013H23.0398L25.2541 16.9158L23.1366 13.9513H24.9395L26.1616 15.6574L27.3837 13.9513H29.1745L27.057 16.9037L29.2713 20.0013Z" fill="white"/></svg>`,pdf:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#DE2C2C"/><path d="M9.97831 13.3173C10.8536 13.3173 11.599 13.651 12.2143 14.3183C12.8383 14.977 13.1503 15.7873 13.1503 16.7493C13.1503 17.7113 12.8383 18.526 12.2143 19.1933C11.599 19.852 10.8536 20.1813 9.97831 20.1813C9.06831 20.1813 8.36631 19.865 7.87231 19.2323V22.5993H6.19531V13.4993H7.87231V14.2663C8.36631 13.6336 9.06831 13.3173 9.97831 13.3173ZM8.37931 18.0753C8.71731 18.4133 9.14631 18.5823 9.66631 18.5823C10.1863 18.5823 10.6153 18.4133 10.9533 18.0753C11.3 17.7286 11.4733 17.2866 11.4733 16.7493C11.4733 16.212 11.3 15.7743 10.9533 15.4363C10.6153 15.0896 10.1863 14.9163 9.66631 14.9163C9.14631 14.9163 8.71731 15.0896 8.37931 15.4363C8.04131 15.7743 7.87231 16.212 7.87231 16.7493C7.87231 17.2866 8.04131 17.7286 8.37931 18.0753Z" fill="white"/><path d="M19.26 10.8993H20.937V19.9993H19.26V19.2323C18.766 19.865 18.064 20.1813 17.154 20.1813C16.2787 20.1813 15.529 19.852 14.905 19.1933C14.2897 18.526 13.982 17.7113 13.982 16.7493C13.982 15.7873 14.2897 14.977 14.905 14.3183C15.529 13.651 16.2787 13.3173 17.154 13.3173C18.064 13.3173 18.766 13.6336 19.26 14.2663V10.8993ZM16.166 18.0753C16.5127 18.4133 16.946 18.5823 17.466 18.5823C17.986 18.5823 18.415 18.4133 18.753 18.0753C19.091 17.7286 19.26 17.2866 19.26 16.7493C19.26 16.212 19.091 15.7743 18.753 15.4363C18.415 15.0896 17.986 14.9163 17.466 14.9163C16.946 14.9163 16.5127 15.0896 16.166 15.4363C15.828 15.7743 15.659 16.212 15.659 16.7493C15.659 17.2866 15.828 17.7286 16.166 18.0753Z" fill="white"/><path d="M25.9677 12.3293C25.049 12.26 24.5897 12.6283 24.5897 13.4343V13.4993H25.9677V15.1113H24.5897V19.9993H22.9127V15.1113H21.9767V13.4993H22.9127V13.4343C22.9127 12.5156 23.1684 11.818 23.6797 11.3413C24.191 10.8646 24.9537 10.6566 25.9677 10.7173V12.3293Z" fill="white"/></svg>`,psd:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#4E70F2"/><path d="M9.9373 13.3164C10.8126 13.3164 11.558 13.6501 12.1733 14.3174C12.7973 14.9761 13.1093 15.7864 13.1093 16.7484C13.1093 17.7104 12.7973 18.5251 12.1733 19.1924C11.558 19.8511 10.8126 20.1804 9.9373 20.1804C9.0273 20.1804 8.3253 19.8641 7.8313 19.2314V22.5984H6.1543V13.4984H7.8313V14.2654C8.3253 13.6328 9.0273 13.3164 9.9373 13.3164ZM8.3383 18.0744C8.6763 18.4124 9.1053 18.5814 9.6253 18.5814C10.1453 18.5814 10.5743 18.4124 10.9123 18.0744C11.259 17.7278 11.4323 17.2858 11.4323 16.7484C11.4323 16.2111 11.259 15.7734 10.9123 15.4354C10.5743 15.0888 10.1453 14.9154 9.6253 14.9154C9.1053 14.9154 8.6763 15.0888 8.3383 15.4354C8.0003 15.7734 7.8313 16.2111 7.8313 16.7484C7.8313 17.2858 8.0003 17.7278 8.3383 18.0744Z" fill="white"/><path d="M15.6993 15.3444C15.6993 15.5178 15.812 15.6608 16.0373 15.7734C16.2713 15.8774 16.553 15.9728 16.8823 16.0594C17.2117 16.1374 17.541 16.2414 17.8703 16.3714C18.1997 16.4928 18.477 16.7008 18.7023 16.9954C18.9363 17.2901 19.0533 17.6584 19.0533 18.1004C19.0533 18.7678 18.802 19.2834 18.2993 19.6474C17.8053 20.0028 17.1857 20.1804 16.4403 20.1804C15.1057 20.1804 14.1957 19.6648 13.7103 18.6334L15.1663 17.8144C15.357 18.3778 15.7817 18.6594 16.4403 18.6594C17.0383 18.6594 17.3373 18.4731 17.3373 18.1004C17.3373 17.9271 17.2203 17.7884 16.9863 17.6844C16.761 17.5718 16.4837 17.4721 16.1543 17.3854C15.825 17.2988 15.4957 17.1904 15.1663 17.0604C14.837 16.9304 14.5553 16.7268 14.3213 16.4494C14.096 16.1634 13.9833 15.8081 13.9833 15.3834C13.9833 14.7421 14.2173 14.2394 14.6853 13.8754C15.162 13.5028 15.7513 13.3164 16.4533 13.3164C16.982 
2613.3164 17.463 13.4378 17.8963 13.6804C18.3297 13.9144 18.672 14.2524 18.9233 14.6944L17.4933 15.4744C17.2853 15.0324 16.9387 14.8114 16.4533 14.8114C16.2367 14.8114 16.0547 14.8591 15.9073 14.9544C15.7687 15.0498 15.6993 15.1798 15.6993 15.3444Z" fill="white"/><path d="M24.97 10.8984H26.647V19.9984H24.97V19.2314C24.476 19.8641 23.774 20.1804 22.864 20.1804C21.9886 20.1804 21.239 19.8511 20.615 19.1924C19.9996 18.5251 19.692 17.7104 19.692 16.7484C19.692 15.7864 19.9996 14.9761 20.615 14.3174C21.239 13.6501 21.9886 13.3164 22.864 13.3164C23.774 13.3164 24.476 13.6328 24.97 14.2654V10.8984ZM21.876 18.0744C22.2226 18.4124 22.656 18.5814 23.176 18.5814C23.696 18.5814 24.125 18.4124 24.463 18.0744C24.801 17.7278 24.97 17.2858 24.97 16.7484C24.97 16.2111 24.801 15.7734 24.463 15.4354C24.125 15.0888 23.696 14.9154 23.176 14.9154C22.656 14.9154 22.2226 15.0888 21.876 15.4354C21.538 15.7734 21.369 16.2111 21.369 16.7484C21.369 17.2858 21.538 17.7278 21.876 18.0744Z" fill="white"/></svg>`,tiff:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#142A8E"/><path d="M12.2184 15.1113H10.7494V17.8153C10.7494 18.0407 10.8057 18.2053 10.9184 18.3093C11.0311 18.4133 11.1957 18.474 11.4124 18.4913C11.6291 18.5 11.8977 18.4957 12.2184 18.4783V19.9993C11.0657 20.1293 10.2511 20.021 9.77441 19.6743C9.30641 19.3277 9.07241 18.708 9.07241 17.8153V15.1113H7.94141V13.4993H9.07241V12.1863L10.7494 11.6793V13.4993H12.2184V15.1113Z" fill="white"/><path d="M14.2328 12.7193C13.9555 12.7193 13.7128 12.6197 13.5048 12.4203C13.3055 12.2123 13.2058 11.9697 13.2058 11.6923C13.2058 11.415 13.3055 11.
261723 13.5048 10.9643C13.7128 10.7563 13.9555 10.6523 14.2328 10.6523C14.5188 10.6523 14.7615 10.7563 14.9608 10.9643C15.1688 11.1723 15.2728 11.415 15.2728 11.6923C15.2728 11.9697 15.1688 12.2123 14.9608 12.4203C14.7615 12.6197 14.5188 12.7193 14.2328 12.7193ZM13.4008 19.9993V13.4993H15.0778V19.9993H13.4008Z" fill="white"/><path d="M20.1097 12.3293C19.191 12.26 18.7317 12.6283 18.7317 13.4343V13.4993H20.1097V15.1113H18.7317V19.9993H17.0547V15.1113H16.1187V13.4993H17.0547V13.4343C17.0547 12.5157 17.3104 11.818 17.8217 11.3413C18.333 10.8647 19.0957 10.6567 20.1097 10.7173V12.3293Z" fill="white"/><path d="M24.4642 12.3293C23.5455 12.26 23.0862 12.6283 23.0862 13.4343V13.4993H24.4642V15.1113H23.0862V19.9993H21.4092V15.1113H20.4732V13.4993H21.4092V13.4343C21.4092 12.5157 21.6649 11.818 22.1762 11.3413C22.6875 10.8647 23.4502 10.6567 24.4642 10.7173V12.3293Z" fill="white"/></svg>`,zip:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#3761E9"/><path d="M10.3525 18.4263H13.2385V19.9993H8.10352V18.8813L10.8465 15.0723H8.23352V13.4993H13.1085V14.6173L10.3525 18.4263Z" fill="white"/><path d="M15.3007 12.7193C15.0234 12.7193 14.7807 12.6197 14.5727 12.4203C14.3734 12.2123 14.2737 11.9697 14.2737 11.6923C14.2737 11.415 14.3734 11.1723 14.5727 10.9643C14.7807 10.7563 15.0234 10.6523 15.3007 10.6523C15.5867 10.6523 15.8294 10.7563 16.0287 10.9643C16.2367 11.1723 16.3407 11.415 16.3407 11.6923C16.3407 11.9697 16.2367 12.2123 16.0287 12.4203C15.8294 12.6197 15.5867 12.7193 15.3007 12.7193ZM14.4687 19.9993V13.4993H16.1457V19.9993H14.4687Z" fill="white"/><path d="M21.4637 13.3173C22.339 13.3173 23.0843 13.651 23.6997 14.3183C24.3237 14.977 24.6357 15.7873 24.6357 16.7493C24.6357 17.7113 24.3237 18.526 23.6997 19.1933C23.0843 19.852 22.339 20.1813 21.4637 20.1813C20.5537 20.1813 19.8517 19.865 19.3577 19.2323V22.5993H17.6807V13.4993H19.3577V14.2663C19.8517 13.6337 20.5537 13.3173 21.4637 13.3173ZM19.8647 18.0753C20.2027 18.4133 20.6317 18.5823 21.1517 18.5823C21.6717 18.5823 22.1007 18.4133 22.4387 18.0753C22.7853 17.7287 22.9587 17.2867 22.9587 16.7493C22.9587 16.212 22.7853 15.7743 22.4387 15.4363C22.1007 15.0897 21.6717 14.9163 21.1517 14.9163C20.6317 14.9163 20.2027 15.0897 19.8647 15.4363C19.5267 15.7743 19.3577 16.212 19.3577 16.7493C19.3577 17.2867 19.5267 17.7287 19.8647 18.0753Z" fill="white"/></svg>`,"3ds":S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#FF7188"/><path d="M10.2802 14.5904C10.8956 14.7724 11.3939 15.0931 11.7752 15.5524C12.1652 16.0031 12.3602 16.5491 12.3602 17.1904C12.3602 18.1264 12.0439 18.8588 11.4112 19.3874C10.7872 19.9161 10.0202 20.1804 9.11023 20.1804C8.39957 20.1804 7.76257 20.0201 7.19923 19.6994C6.64457 19.3701 6.24157 18.8891 5.99
26023 18.2564L7.52423 17.3724C7.74957 18.0744 8.27823 18.4254 9.11023 18.4254C9.56957 18.4254 9.9249 18.3171 10.1762 18.1004C10.4362 17.8751 10.5662 17.5718 10.5662 17.1904C10.5662 16.8178 10.4362 16.5188 10.1762 16.2934C9.9249 16.0681 9.56957 15.9554 9.11023 15.9554H8.72023L8.03123 14.9154L9.82523 12.5754H6.26323V10.8984H11.9832V12.3804L10.2802 14.5904Z" fill="white"/><path d="M18.4692 10.8984H20.1462V19.9984H18.4692V19.2314C17.9752 19.8641 17.2732 20.1804 16.3632 20.1804C15.4879 20.1804 14.7382 19.8511 14.1142 19.1924C13.4989 18.5251 13.1912 17.7104 13.1912 16.7484C13.1912 15.7864 13.4989 14.9761 14.1142 14.3174C14.7382 13.6501 15.4879 13.3164 16.3632 13.3164C17.2732 13.3164 17.9752 13.6328 18.4692 14.2654V10.8984ZM15.3752 18.0744C15.7219 18.4124 16.1552 18.5814 16.6752 18.5814C17.1952 18.5814 17.6242 18.4124 17.9622 18.0744C18.3002 17.7278 18.4692 17.2858 18.4692 16.7484C18.4692 16.2111 18.3002 15.7734 17.9622 15.4354C17.6242 15.0888 17.1952 14.9154 16.6752 14.9154C16.1552 14.9154 15.7219 15.0888 15.3752 15.4354C15.0372 15.7734 14.8682 16.2111 14.8682 16.7484C14.8682 17.2858 15.0372 17.7278 15.3752 18.0744Z" fill="white"/><path d="M23.1761 15.3444C23.1761 15.5178 23.2888 15.6608 23.5141 15.7734C23.7481 15.8774 24.0298 15.9728 24.3591 16.0594C24.6885 16.1374 25.0178 16.2414 25.3471 16.3714C25.6765 16.4928 25.9538 16.7008 26.1791 16.9954C26.4131 17.2901 26.5301 17.6584 26.5301 18.1004C26.5301 18.7678 26.2788 19.2834 25.7761 19.6474C25.2821 20.0028 24.6625 20.1804 23.9171 20.1804C22.5825 20.1804 21.6725 19.6648 21.1871 18.6334L22.6431 17.8144C22.8338 18.3778 23.2585 18.6594 23.9171 18.6594C24.5151 18.6594 24.8141 18.4731 24.8141 18.1004C24.8141 17.9271 24.6971 17.7884 24.4631 17.6844C24.2378 17.5718 23.9605 17.4721 23.6311 17.3854C23.3018 17.2988 22.9725 17.1904 22.6431 17.0604C22.3138 16.9304 22.0321 16.7268 21.7981 16.4494C21.5728 16.1634 21.4601 15.8081 21.4601 15.3834C21.4601 14.7421 21.6941 14.2394 22.1621 13.8754C22.6388 13.5028 23.2281 13.3164 23.9301 13.3164C24.4588 13.3164 24.9398 13.4378 25.3731 13.6804C25.8065 13.9144 26.1488 14.2524 26.4001 14.6944L24.9701 15.4744C24.7621 15.0324 24.4155 14.8114 23.9301 14.8114C23.7135 14.8114 23.5315 14.8591 23.3841 14.9544C23.2455 15.0498 23.1761 15.1798 23.1761 15.3444Z" fill="white"/></svg>`,aac:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#FD6969"/><path d="M10.0846 13.4984H11.7616V19.9984H10.0846V19.2314C9.58197 19.8641 8.87564 20.1804 7.96564 20.1804C7.09897 20.1804 6.35364 19.8511 5.72964 19.1924C5.11431 18.5251 4.80664 17.7104 4.80664 16.7484C4.80664 15.7864 5.11431 14.9761 5.72964 14.3174C6.35364 13.6501 7.09897 13.3164 7.96564 13.3164C8.87564 13.3164 9.58197 13.6327 10.0846 14.2654V13.4984ZM6.99064 18.0744C7.32864 18.4124 7.75764 18.5814 8.27764 18.5814C8.79764 18.5814 9.22664 18.4124 9.56464 18.0744C9.91131 17.7277 10.0846 17.2857 10.0846 16.7484C10.0846 16.2111 9.91131 15.7734 9.56464 15.4354C9.22664 15.0887 8.79764 14.9154 8.27764 14.9154C7.75764 14.9154 7.32864 15.0887 6.99064 15.4354C6.65264 15.7734 6.48364 16.2111 6.48364 16.7484C6.48364 17.2857 6.65264 17.7277 6.99064 18.0744Z" fill="white"/><path d="M18.2223 13.4984H19.8993V19.9984H18.2223V19.2314C17.7197 19.8641 17.0133 20.1804 16.1033 20.1804C15.2367 20.1804 14.4913 19.8511 13.8673 19.1924C13.252 18.5251 12.9443 17.7104 12.9443 16.7484C12.9443 15.7864 13.252 14.9761 13.8673 14.3174C14.4913 13.6501 15.2367 13.3164 16.1033 13.3164C17.0133 13.3164 17.7197 13.6327 18.2223 14.2654V13.4984ZM15.1283 18.0744C15.4663 18.4124 15.8953 18.5814 16.4153 18.5814C16.9353 18.5814 17.3643 18.4124 17.7023 18.0744C18.049 17.7277 18.2223 17.2857 18.2223 16.7484C18.2223 16.2111 18.049 15.7734 17.7023 15.4354C17.3643 15.0887 16.9353 14.9154 16.4153 14.9154C15.8953 14.9154 15.4663 15.0887 15.1283 15.4354C14.7903 15.7734 14.6213 16.2111 14.6213 16.7484C14.6213 17.2857 14.7903 17.7277 15.1283 18.0744Z" fill="white"/><path d="M24.514 20.1804C23.5347 20.1804 22.7157 19.8511 22.057 19.1924C21.407 18.5337 21.082 17.7191 21.082 16.7484C21.082 15.7777 21.407 14.9631 22.057 14.3044C22.7157 13.6457 23.5347 13.3164 24.514 13.3164C25.1467 13.3164 25.723 13.4681 26.243 13.7714C26.763 14.0747 27.1574 14.4821 27.426 14.9934L25.983 15.8384C25.853 15.5697 25.
266537 15.3574 25.385 15.2014C25.125 15.0454 24.8304 14.9674 24.501 14.9674C23.9984 14.9674 23.5824 15.1364 23.253 15.4744C22.9237 15.8037 22.759 16.2284 22.759 16.7484C22.759 17.2597 22.9237 17.6844 23.253 18.0224C23.5824 18.3517 23.9984 18.5164 24.501 18.5164C24.839 18.5164 25.138 18.4427 25.398 18.2954C25.6667 18.1394 25.866 17.9271 25.996 17.6584L27.452 18.4904C27.166 19.0017 26.763 19.4134 26.243 19.7254C25.723 20.0287 25.1467 20.1804 24.514 20.1804Z" fill="white"/></svg>`,ai:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#FB7C28"/><path d="M15.6315 13.4993H17.3085V19.9993H15.6315V19.2323C15.1288 19.865 14.4225 20.1813 13.5125 20.1813C12.6458 20.1813 11.9005 19.852 11.2765 19.1933C10.6612 18.526 10.3535 17.7113 10.3535 16.7493C10.3535 15.7873 10.6612 14.977 11.2765 14.3183C11.9005 13.651 12.6458 13.3173 13.5125 13.3173C14.4225 13.3173 15.1288 13.6337 15.6315 14.2663V13.4993ZM12.5375 18.0753C12.8755 18.4133 13.3045 18.5823 13.8245 18.5823C14.3445 18.5823 14.7735 18.4133 15.1115 18.0753C15.4582 17.7287 15.6315 17.2867 15.6315 16.7493C15.6315 16.212 15.4582 15.7743 15.1115 15.4363C14.7735 15.0897 14.3445 14.9163 13.8245 14.9163C13.3045 14.9163 12.8755 15.0897 12.5375 15.4363C12.1995 15.7743 12.0305 16.212 12.0305 16.7493C12.0305 17.2867 12.1995 17.7287 12.5375 18.0753Z" fill="white"/><path d="M19.6612 12.7193C19.3839 12.7193 19.1412 12.6197 18.9332 12.4203C18.7339 12.2123 18.6342 11.9697 18.6342 11.6923C18.6342 11.415 18.7339 11.1723 18.9332 10.9643C19.1412 10.7563 19.3839 10.6523 19.6612 10.6523C19.9472 10.6523 20.1899 10.7563 20.3892 10.9643C20.5972 11.1723 20.7012 11.415 20.7012 11.6923C20.7012 11.9697 20.5972 12.2123 20.3892 12.4203C20.1899 12.6197 19.9472 12.7193 19.6612 12.7193ZM18.8292 19.9993V13.4993H20.5062V19.9993H18.8292Z" fill="white"/></svg>`,avi:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#399BED"/><path d="M12.6667 13.4993H14.3437V19.9993H12.6667V19.2323C12.164 19.865 11.4577 20.1813 10.5477 20.1813C9.68101 20.1813 8.93567 19.852 8.31167 19.1933C7.69634 18.526 7.38867 17.7113 7.38867 16.7493C7.38867 15.7873 7.69634 14.977 8.31167 14.3183C8.93567 13.651 9.68101 13.3173 10.5477 13.3173C11.4577 13.3173 12.164 13.6337 12.6667 14.2663V13.4993ZM9.57267 18.0753C9.91067 18.4133 10.3397 18.5823 10.8597 18.5823C11.3797 18.5823 11.8087 18.4133 12.1467 18.0753C12.4933 17.7287 12.6667 17.2867 12.6667 16.7493C12.6667 16.212 12.4933 15.7743 12.1467 15.4363C11.8087 15.0897 11.3797 14.9163 10.8597 14.9163C10.3397 14.9163 9.91067 15.0897 9.57267 15.4363C9.23467 15.7743 9.06567 16.212 9.06567 16.7493C9.06567 17.2867 9.23467 17.7287 9.57267 18.0753Z" fill="white"/><path d="M20.1414 13.4993H21.9874L19.5174 19.9993H17.6064L15.1364 13.4993H16.9824L18.5554 18.0493L20.1414 13.4993Z" fill="white"/><path d="M23.628 12.7193C23.3507 12.7193 23.108 12.6197 22.9 12.4203C22.7007 12.2123 22.601 11.9697 22.601 11.6923C22.601 11.415 22.7007 11.1723 22.9 10.9643C23.108 10.7563 23.3507 10.6523 23.628 10.6523C23.914 10.6523 24.1567 10.7563 24.356 10.9643C24.564 11.1723 24.668 11.415 24.668 11.6923C24.668 11.9697 24.564 12.2123 24.356 12.4203C24.1567 12.6197 23.914 12.7193 23.628 12.7193ZM22.796 19.9993V13.4993H24.473V19.9993H22.796Z" fill="white"/></svg>`,bmp:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#D42F4D"/><path d="M7.37675 13.3164C8.25208 13.3164 8.99742 13.6501 9.61275 14.3174C10.2368 14.9761 10.5488 15.7864 10.5488 16.7484C10.5488 17.7104 10.2368 18.5251 9.61275 19.1924C8.99742 19.8511 8.25208 20.1804 7.37675 20.1804C6.46675 20.1804 5.76475 19.8641 5.27075 19.2314V19.9984H3.59375V10.8984H5.27075V14.2654C5.76475 13.6328 6.46675 13.3164 7.37675 13.3164ZM5.77775 18.0744C6.11575 18.4124 6.54475 18.5814 7.06475 18.5814C7.58475 18.5814 8.01375 18.4124 8.35175 18.0744C8.69842 17.7278 8.87175 17.2858 8.87175 16.7484C8.87175 16.2111 8.69842 15.7734 8.35175 15.4354C8.01375 15.0888 7.58475 14.9154 7.06475 14.9154C6.54475 14.9154 6.11575 15.0888 5.77775 15.4354C5.43975 15.7734 5.27075 16.2111 5.27075 16.7484C5.27075 17.2858 5.43975 17.7278 5.77775 18.0744Z" fill="white"/><path d="M18.6204 13.3164C19.3658 13.3164 19.9594 13.5591 20.4014 14.0444C20.8521 14.5298 21.0774 15.1798 21.0774 15.9944V19.9984H19.4004V16.1114C19.4004 15.7214 19.3051 15.4181 19.1144 15.2014C18.9238 14.9848 18.6551 14.8764 18.3084 14.8764C17.9271 14.8764 17.6281 15.0021 17.4114 15.2534C17.2034 15.5048 17.0994 15.8688 17.0994 16.3454V19.9984H15.4224V16.1114C15.4224 15.7214 15.3271 15.4181 15.1364 15.2014C14.9458 14.9848 14.6771 14.8764 14.3304 14.8764C13.9578 14.8764 13.6588 15.0021 13.4334 15.2534C13.2168 15.5048 13.1084 15.8688 13.1084 16.3454V19.9984H11.4314V13.4984H13.1084V14.1874C13.4984 13.6068 14.1008 13.3164 14.9154 13.3164C15.7128 13.3164 16.3021 13.6284 16.6834 14.2524C17.1168 13.6284 17.7624 13.3164 18.6204 13.3164Z" fill="white"/>
26<path d="M25.9848 13.3164C26.8601 13.3164 27.6054 13.6501 28.2208 14.3174C28.8448 14.9761 29.1568 15.7864 29.1568 16.7484C29.1568 17.7104 28.8448 18.5251 28.2208 19.1924C27.6054 19.8511 26.8601 20.1804 25.9848 20.1804C25.0748 20.1804 24.3728 19.8641 23.8788 19.2314V22.5984H22.2018V13.4984H23.8788V14.2654C24.3728 13.6328 25.0748 13.3164 25.9848 13.3164ZM24.3858 18.0744C24.7238 18.4124 25.1528 18.5814 25.6728 18.5814C26.1928 18.5814 26.6218 18.4124 26.9598 18.0744C27.3064 17.7278 27.4798 17.2858 27.4798 16.7484C27.4798 16.2111 27.3064 15.7734 26.9598 15.4354C26.6218 15.0888 26.1928 14.9154 25.6728 14.9154C25.1528 14.9154 24.7238 15.0888 24.3858 15.4354C24.0478 15.7734 23.8788 16.2111 23.8788 16.7484C23.8788 17.2858 24.0478 17.7278 24.3858 18.0744Z" fill="white"/></svg>`,cad:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#24ABBE"/><path d="M8.71325 20.1804C7.73392 20.1804 6.91492 19.8511 6.25625 19.1924C5.60625 18.5338 5.28125 17.7191 5.28125 16.7484C5.28125 15.7778 5.60625 14.9631 6.25625 14.3044C6.91492 13.6458 7.73392 13.3164 8.71325 13.3164C9.34592 13.3164 9.92225 13.4681 10.4423 13.7714C10.9623 14.0748 11.3566 14.4821 11.6253 14.9934L10.1823 15.8384C10.0523 15.5698 9.85292 15.3574 9.58425 15.2014C9.32425 15.0454 9.02958 14.9674 8.70025 14.9674C8.19758 14.9674 7.78158 15.1364 7.45225 15.4744C7.12292 15.8038 6.95825 16.2284 6.95825 16.7484C6.95825 17.2598 7.12292 17.6844 7.45225 18.0224C7.78158 18.3518 8.19758 18.5164 8.70025 18.5164C9.03825 18.5164 9.33725 18.4428 9.59725 18.2954C9.86592 18.1394 10.0653 17.9271 10.1953 17.6584L11.6512 18.4904C11.3653 19.0018 10.9623 19.4134 10.4423 19.7254C9.92225 20.0288 9.34592 20.1804 8.71325 20.1804Z" fill="white"/><path d="M17.0766 13.4984H18.7536V19.9984H17.0766V19.2314C16.574 19.8641 15.8676 20.1804 14.9576 20.1804C14.091 20.1804 13.3456 19.8511 12.7216 19.1924C12.1063 18.5251 11.7986 17.7104 11.7986 16.7484C11.7986 15.7864 12.1063 14.9761 12.7216 14.3174C13.3456 13.6501 14.091 13.3164 14.9576 13.3164C15.8676 13.3164 16.574 13.6328 17.0766 14.2654V13.4984ZM13.9826 18.0744C14.3206 18.4124 14.7496 18.5814 15.2696 18.5814C15.7896 18.5814 16.2186 18.4124 16.5566 18.0744C16.9033 17.7278 17.0766 17.2858 17.0766 16.7484C17.0766 16.2111 16.9033 15.7734 16.5566 15.4354C16.2186 15.0888 15.7896 14.9154 15.2696 14.9154C14.7496 14.9154 14.3206 15.0888 13.9826 15.4354C13.6446 15.7734 13.4756 16.2111 13.4756 16.7484C13.4756 17.2858 13.6446 17.7278 13.9826 18.0744Z" fill="white"/><path d="M24.9013 10.8984H26.5783V19.9984H24.9013V19.2314C24.4073 19.8641 23.7053 20.1804 22.7953 20.1804C21.92 20.1804 21.1703 19.8511 20.5463 19.1924C19.931 18.5251 19.6233 17.7104 19.6233 16.7484C19.6233 15.7864 19.931 14.9761 20.5463 14.3174C21.1703 13.6501 21.92 13.3164 22.7953 13.3164C23.7053 13.3164 24.4073 13.6328 24.9013 14.2654V10.8984ZM21.8073 18.0744C22.154 18.4124 22.5873 18.5814 23.1073 18.5814C23.6273 18.5814 24.0563 18.4124 24.3943 18.0744C24.7323 17.7278 24.9013 17.2858 24.9013 16.7484C24.9013 16.2111 24.7323 15.7734 24.3943 15.4354C24.0563 15.0888 23.6273 14.9154 23.1073 14.9154C22.5873 14.9154 22.154 15.0888 21.8073 15.4354C21.4693 15.7734 21.3003 16.2111 21.3003 16.7484C21.3003 17.2858 21.4693 17.7278 21.8073 18.0744Z" fill="white"/></svg>`,cdr:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#24B887"/><path d="M10.266 20.1804C9.28665 20.1804 8.46765 19.8511 7.80898 19.1924C7.15898 18.5338 6.83398 17.7191 6.83398 16.7484C6.83398 15.7778 7.15898 14.9631 7.80898 14.3044C8.46765 13.6458 9.28665 13.3164 10.266 13.3164C10.8987 13.3164 11.475 13.4681 11.995 13.7714C12.515 14.0748 12.9093 14.4821 13.178 14.9934L11.735 15.8384C11.605 15.5698 11.4057 15.3574 11.137 15.2014C10.877 15.0454 10.5823 14.9674 10.253 14.9674C9.75032 14.9674 9.33432 15.1364 9.00498 15.4744C8.67565 15.8038 8.51098 16.2284 8.51098 16.7484C8.51098 17.2598 8.67565 17.6844 9.00498 18.0224C9.33432 18.3518 9.75032 18.5164 10.253 18.5164C10.591 18.5164 10.89 18.4428 11.15 18.2954C11.4187 18.1394 11.618 17.9271 11.748 17.6584L13.204 18.4904C12.918 19.0018 12.515 19.4134 11.995 19.7254C11.475 20.0288 10.8987 20.1804 10.266 20.1804Z" fill="white"/><path d="M18.9164 10.8984H20.5934V19.9984H18.9164V19.2314C18.4224 19.8641 17.7204 20.1804 16.8104 20.1804C15.935 20.1804 15.1854 19.8511 14.5614 19.1924C13.946 18.5251 13.6384 17.7104 13.6384 16.7484C13.6384 15.7864 13.946 14.9761 14.5614 14.3174C15.1854 13.6501 15.935 13.3164 16.8104 13.3
26164C17.7204 13.3164 18.4224 13.6328 18.9164 14.2654V10.8984ZM15.8224 18.0744C16.169 18.4124 16.6024 18.5814 17.1224 18.5814C17.6424 18.5814 18.0714 18.4124 18.4094 18.0744C18.7474 17.7278 18.9164 17.2858 18.9164 16.7484C18.9164 16.2111 18.7474 15.7734 18.4094 15.4354C18.0714 15.0888 17.6424 14.9154 17.1224 14.9154C16.6024 14.9154 16.169 15.0888 15.8224 15.4354C15.4844 15.7734 15.3154 16.2111 15.3154 16.7484C15.3154 17.2858 15.4844 17.7278 15.8224 18.0744Z" fill="white"/><path d="M23.8041 14.6164C23.9601 14.2004 24.2157 13.8884 24.5711 13.6804C24.9351 13.4724 25.3381 13.3684 25.7801 13.3684V15.2404C25.2687 15.1798 24.8094 15.2838 24.4021 15.5524C24.0034 15.8211 23.8041 16.2674 23.8041 16.8914V19.9984H22.1271V13.4984H23.8041V14.6164Z" fill="white"/></svg>`,css:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#8360F4"/><path d="M10.5687 20.1804C9.58939 20.1804 8.77039 19.8511 8.11172 19.1924C7.46172 18.5337 7.13672 17.7191 7.13672 16.7484C7.13672 15.7777 7.46172 14.9631 8.11172 14.3044C8.77039 13.6457 9.58939 13.3164 10.5687 13.3164C11.2014 13.3164 11.7777 13.4681 12.2977 13.7714C12.8177 14.0747 13.2121 14.4821 13.4807 14.9934L12.0377 15.8384C11.9077 15.5697 11.7084 15.3574 11.4397 15.2014C11.1797 15.0454 10.8851 14.9674 10.5557 14.9674C10.0531 14.9674 9.63705 15.1364 9.30772 15.4744C8.97839 15.8037 8.81372 16.2284 8.81372 16.7484C8.81372 17.2597 8.97839 17.6844 9.30772 18.0224C9.63705 18.3517 10.0531 18.5164 10.5557 18.5164C10.8937 18.5164 11.1927 18.4427 11.4527 18.2954C11.7214 18.1394 11.9207 17.9271 12.0507 17.6584L13.5067 18.4904C13.2207 19.0017 12.8177 19.4134 12.2977 19.7254C11.7777 20.0287 11.2014 20.1804 10.5687 20.1804Z" fill="white"/><path d="M15.928 15.3444C15.928 15.5177 16.0406 15.6607 16.266 15.7734C16.5 15.8774 16.7816 15.9727 17.111 16.0594C17.4403 16.1374 17.7696 16.2414 18.099 16.3714C18.4283 16.4927 18.7056 16.7007 18.931 16.9954C19.165 17.2901 19.282 17.6584 19.282 18.1004C19.282 18.7677 19.0306 19.2834 18.528 19.6474C18.034 20.0027 17.4143 20.1804 16.669 20.1804C15.3343 20.1804 14.4243 19.6647 13.939 18.6334L15.395 17.8144C15.5856 18.3777 16.0103 18.6594 16.669 18.6594C17.267 18.6594 17.566 18.4731 17.566 18.1004C17.566 17.9271 17.449 17.7884 17.215 17.6844C16.9896 17.5717 16.7123 17.4721 16.383 17.3854C16.0536 17.2987 15.7243 17.1904 15.395 17.0604C15.0656 16.9304 14.784 16.7267 14.55 16.4494C14.3246 16.1634 14.212 15.8081 14.212 15.3834C14.212 14.7421 14.446 14.2394 14.914 13.8754C15.3906 13.5027 15.98 13.3164 16.682 13.3164C17.2106 13.3164 17.6916 13.4377 18.125 13.6804C18.5583 13.9144 18.9006 14.2524 19.152 14.6944L17.722 15.4744C17.514 15.0324 17.1673 14.8114 16.682 14.8114C16.4653 14.8114 16.2833 14.8591 16.136 14.9544C15.9973 15.0497 15.928 15.1797 15.928 15.3444Z" fill="white"/><path d="M21.5647 15.3444C21.5647 15.5177 21.6774 15.6607 21.9027 15.7734C22.1367 15.8774 22.4184 15.9727 22.7477 16.0594C23.077 16.1374 23.4064 16.2414 23.7357 16.3714C24.065 16.4927 24.3424 16.7007 24.5677 16.9954C24.8017 17.2901 24.9187 17.6584 24.9187 18.1004C24.9187 18.7677 24.6674 19.2834 24.1647 19.6474C23.6707 20.0027 23.051 20.1804 22.3057 20.1804C20.971 20.1804 20.061 19.6647 19.5757 18.6334L21.0317 17.8144C21.2224 18.3777 21.647 18.6594 22.3057 18.6594C22.9037 18.6594 23.2027 18.4731 23.2027 18.1004C23.2027 17.9271 23.0857 17.7884 22.8517 17.6844C22.6264 17.5717 22.349 17.4721 22.0197 17.3854C21.6904 17.2987 21.361 17.1904 21.0317 17.0604C20.7024 16.9304 20.4207 16.7267 20.1867 16.4494C19.9614 16.1634 19.8487 15.8081 19.8487 15.3834C19.8487 14.7421 20.0827 14.2394 20.5507 13.8754C21.0274 13.5027 21.6167 13.3164 22.3187 13.3164C22.8474 13.3164 23.3284 13.4377 23.7617 13.6804C24.195 13.9144 24.5374 14.2524 24.7887 14.6944L23.3587 15.4744C23.1507 15.0324 22.804 14.8114 22.3187 14.8114C22.102 14.8114 21.92 14.8591 21.7727 14.9544C21.634 15.0497 21.5647 15.1797 21.5647 15.3444Z" fill="white"/></svg>`,csv:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#5FB829"/><path d="M10.0472 20.1804C9.0679 20.1804 8.2489 19.8511 7.59023 19.1924C6.94023 18.5337 6.61523 17.7191 6.61523 16.7484C6.61523 15.7777 6.94023 14.9631 7.59023 14.3044C8.2489 13.6457 9.0679 13.3164 10.0472 13.3164C10.6799 13.3164 11.2562 13.4681 11.7762 13.7714C12.2962 14.0747 12.6906 14.4821 12.9592 14.9934L11.5162 15.8384C11.3862 15.5697 11.1869 15.3574 10.9182 15.2014C10.6582 15.0454 10.3636 14.9674 10.0342 14.9674C9.53157 14.9674 9.11557 15.1364 8.78623 15.4744C8.4569 15.8037 8.29223 16.2284 8.29223 16.7484C8.29223 17.2597 8.4569 17.6844 8.78623 18.0224C9.11557 18.3517 9.53157 18.5164 10.0342 18.5164C10.3722 18.5164 10.6712 18.4427 10.9312 18.2954C11.1999 18.1394 11.3992 17.9271 11.5292 17.6584L12.9852 18.4904C12.6992 19.0017 12.2962 19.4134 11.7762 19.7254C11.2562 20.0287 10.6799 20.1804 10.0472 20.1804Z" fill="white"/><path d="M15.4065 15.3444C15.4065 15.5177 15.5192 15.6607 15.7445 15.7734C15.9785 15.8774 16.2602 15.9727 16.5895 16.0594C16.9188 16.1374 17.2482 16.2414 17.5775 16.3714C17.9068 16.4927 18.1842 16.7007 18.4095 16.9954C18.6435 17.2901 18.7605 17.6584 18.7605 18.1004C18.7605 18.7677 18.5092 19.2834 18.0065 19.6474C17.5125 20.0027 16.8928 20.1804 16.1475 20.1804C14.8128 20.1804 13.9028 19.6647 13.4175 18.6334L14.8735 17.8144C15.0642 18.3777 15.4888 18.6594 16.1475 18.6594C16.7455 18.6594 17.0445 18.4731 17.0445 18.1004C17.0445 17.9271 16.9275 17.7884 16.6935 17.6844C16.4682 17.5717 16.1908 17.4721 15.8615 17.3854C15.5322 17.2987 15.2028 17.1904 14.8735 17.0604C14.5442 16.9304 14.2625 16.7267 14.0285 16.4494C13.8032 16.1634 13.6905 15.8081 13.6905 15.3834C13.6905 14.7421 13.9245 14.2394 14.3925 13.8754C14.8692 13.5027 15.4585 13.3164 16.1605 13.3164C16.6892 13.3164 17.1702 13.4377 17.6035 13.6804C18.0368 13.9144 18.3792 14.2524 18.6305 14.6944L17.2005 15.4744C16.9925 15.0324 16.6458 14.8114 16.1605 14.8114C15.9438 14.8114 15.7618 14.8591 15.6145 14.9544C15.4758 15.0497 15.4065 15.1797 15.4065 15.3444Z" fill="white"/><path d="M23.9255 13.4984H25.7715L23.3015 19.9984H21.3905L18.9205 13.4984H20.7665L22.3395 18.0484L23.9255 13.4984Z" fill="white"/></svg>`,dat:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#919BB6"/><path d="M11.0553 10.8984H12.7323V19.9984H11.0553V19.2314C10.5613 19.8641 9.85934 20.1804 8.94934 20.1804C8.07401 20.1804 7.32434 19.8511 6.70034 19.1924C6.08501 18.5251 5.77734 17.7104 5.77734 16.7484C5.77734 15.7864 6.08501 14.9761 6.70034 14.3174C7.32434 13.6501 8.07401 13.3164 8.94934 13.3164C9.85934 13.3164 10.5613 13.6328 11.
260553 14.2654V10.8984ZM7.96134 18.0744C8.30801 18.4124 8.74134 18.5814 9.26134 18.5814C9.78134 18.5814 10.2103 18.4124 10.5483 18.0744C10.8863 17.7278 11.0553 17.2858 11.0553 16.7484C11.0553 16.2111 10.8863 15.7734 10.5483 15.4354C10.2103 15.0888 9.78134 14.9154 9.26134 14.9154C8.74134 14.9154 8.30801 15.0888 7.96134 15.4354C7.62334 15.7734 7.45434 16.2111 7.45434 16.7484C7.45434 17.2858 7.62334 17.7278 7.96134 18.0744Z" fill="white"/><path d="M19.206 13.4984H20.883V19.9984H19.206V19.2314C18.7034 19.8641 17.997 20.1804 17.087 20.1804C16.2204 20.1804 15.475 19.8511 14.851 19.1924C14.2357 18.5251 13.928 17.7104 13.928 16.7484C13.928 15.7864 14.2357 14.9761 14.851 14.3174C15.475 13.6501 16.2204 13.3164 17.087 13.3164C17.997 13.3164 18.7034 13.6328 19.206 14.2654V13.4984ZM16.112 18.0744C16.45 18.4124 16.879 18.5814 17.399 18.5814C17.919 18.5814 18.348 18.4124 18.686 18.0744C19.0327 17.7278 19.206 17.2858 19.206 16.7484C19.206 16.2111 19.0327 15.7734 18.686 15.4354C18.348 15.0888 17.919 14.9154 17.399 14.9154C16.879 14.9154 16.45 15.0888 16.112 15.4354C15.774 15.7734 15.605 16.2111 15.605 16.7484C15.605 17.2858 15.774 17.7278 16.112 18.0744Z" fill="white"/><path d="M26.1217 15.1104H24.6527V17.8144C24.6527 18.0398 24.7091 18.2044 24.8217 18.3084C24.9344 18.4124 25.0991 18.4731 25.3157 18.4904C25.5324 18.4991 25.8011 18.4948 26.1217 18.4774V19.9984C24.9691 20.1284 24.1544 20.0201 23.6777 19.6734C23.2097 19.3268 22.9757 18.7071 22.9757 17.8144V15.1104H21.8447V13.4984H22.9757V12.1854L24.6527 11.6784V13.4984H26.1217V15.1104Z" fill="white"/></svg>`,dll:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#919BB6"/><path d="M14.6139 10.9017H16.2909V20.0017H14.6139V19.2347C14.1199 19.8674 13.4179 20.1837 12.5079 20.1837C11.6326 20.1837 10.8829 19.8544 10.2589 19.1957C9.6436 18.5284 9.33594 17.7137 9.33594 16.7517C9.33594 15.7897 9.6436 14.9794 10.2589 14.3207C10.8829 13.6534 11.6326 13.3197 12.5079 13.3197C13.4179 13.3197 14.1199 13.6361 14.6139 14.2687V10.9017ZM11.5199 18.0777C11.8666 18.4157 12.2999 18.5847 12.8199 18.5847C13.3399 18.5847 13.7689 18.4157 14.1069 18.0777C14.4449 17.7311 14.6139 17.2891 14.6139 16.7517C14.6139 16.2144 14.4449 15.7767 14.1069 15.4387C13.7689 15.0921 13.3399 14.9187 12.8199 14.9187C12.2999 14.9187 11.8666 15.0921 11.5199 15.4387C11.1819 15.7767 11.0129 16.2144 11.0129 16.7517C11.0129 17.2891 11.1819 17.7311 11.5199 18.0777Z" fill="white"/><path d="M17.8246 20.0017V10.5117H19.5016V20.0017H17.8246Z" fill="white"/><path d="M21.0365 20.0017V10.5117H22.7135V20.0017H21.0365Z" fill="white"/></svg>`,dmg:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#2FB9CE"/><path d="M8.02019 10.8984H9.69719V19.9984H8.02019V19.2314C7.52619 19.8641 6.82419 20.1804 5.91419 20.1804C5.03885 20.1804 4.28919 19.8511 3.66519 19.1924C3.04985 18.5251 2.74219 17.7104 2.74219 16.7484C2.74219 15.7864 3.04985 14.9761 3.66519 14.3174C4.28919 13.6501 5.03885 13.3164 5.91419 13.3164C6.82419 13.3164 7.52619 13.6328 8.02019 14.2654V10.8984ZM4.92619 18.0744C5.27285 18.4124 5.70619 18.5814 6.22619 18.5814C6.74619 18.5814 7.17519 18.4124 7.51319 18.0744C7.85119 17.7278 8.02019 17.2858 8.02019 16.7484C8.02019 16.2111 7.85119 15.7734 7.51319 15.4354C7.17519 15.0888 6.74619 14.9154 6.22619 14.9154C5.70619 14.9154 5.27285 15.0888 4.92619 15.4354C4.58819 15.7734 4.41919 16.2111 4.41919 16.7484C4.41919 17.2858 4.58819 17.7278 4.92619 18.0744Z" fill="white"/><path d="M18.4199 13.3164C19.1652 13.3164 19.7589 13.5591 20.2009 14.0444C20.6516 14.5298 20.8769 15.1798 20.8769 15.9944V19.9984H19.1999V16.1114C19.1999 15.7214 19.1045 15.4181 18.9139 15.2014C18.7232 14.9848 18.4545 14.8764 18.1079 14.8764C17.7265 14.8764 17.4275 15.0021 17.2109 15.2534C17.0029 15.5048 16.8989 15.8688 16.8989 16.3454V19.9984H15.2219V16.1114C15.2219 15.7214 15.1265 15.4181 14.9359 15.2014C14.7452 14.9848 14.4766 14.8764 14.1299 14.8764C13.7572 14.8764 13.4582 15.0021 13.2329 15.2534C13.0162 15.5048 12.9079 15.8688 12.9079 16.3454V19.9984H11.2309V13.4984H12.9079V14.1874C13.2979 13.6068 13.9002 13.3164 14.7149 13.3
26164C15.5122 13.3164 16.1016 13.6284 16.4829 14.2524C16.9162 13.6284 17.5619 13.3164 18.4199 13.3164Z" fill="white"/><path d="M27.2802 13.4984H28.9182V19.6864C28.9182 20.6918 28.5845 21.4588 27.9172 21.9874C27.2585 22.5161 26.4612 22.7804 25.5252 22.7804C24.8232 22.7804 24.2035 22.6461 23.6662 22.3774C23.1375 22.1088 22.7302 21.7144 22.4442 21.1944L23.8742 20.3754C24.2035 20.9821 24.7712 21.2854 25.5772 21.2854C26.1059 21.2854 26.5219 21.1468 26.8252 20.8694C27.1285 20.5921 27.2802 20.1978 27.2802 19.6864V18.9844C26.7862 19.6431 26.0929 19.9724 25.2002 19.9724C24.2815 19.9724 23.5102 19.6518 22.8862 19.0104C22.2709 18.3604 21.9632 17.5718 21.9632 16.6444C21.9632 15.7258 22.2752 14.9414 22.8992 14.2914C23.5232 13.6414 24.2902 13.3164 25.2002 13.3164C26.0929 13.3164 26.7862 13.6458 27.2802 14.3044V13.4984ZM24.1472 17.9314C24.4939 18.2608 24.9315 18.4254 25.4602 18.4254C25.9889 18.4254 26.4222 18.2608 26.7602 17.9314C27.1069 17.5934 27.2802 17.1644 27.2802 16.6444C27.2802 16.1331 27.1069 15.7128 26.7602 15.3834C26.4222 15.0454 25.9889 14.8764 25.4602 14.8764C24.9315 14.8764 24.4939 15.0454 24.1472 15.3834C23.8092 15.7128 23.6402 16.1331 23.6402 16.6444C23.6402 17.1644 23.8092 17.5934 24.1472 17.9314Z" fill="white"/></svg>`,eps:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#24B887"/><path d="M7.38586 17.4374C7.61119 18.2521 8.22219 18.6594 9.21886 18.6594C9.86019 18.6594 10.3455 18.4427 10.6749 18.0094L12.0269 18.7894C11.3855 19.7167 10.4409 20.1804 9.19286 20.1804C8.11819 20.1804 7.25586 19.8554 6.60586 19.2054C5.95586 18.5554 5.63086 17.7364 5.63086 16.7484C5.63086 15.7691 5.95153 14.9544 6.59286 14.3044C7.23419 13.6457 8.05753 13.3164 9.06286 13.3164C10.0162 13.3164 10.8005 13.6457 11.4159 14.3044C12.0399 14.9631 12.3519 15.7777 12.3519 16.7484C12.3519 16.9651 12.3302 17.1947 12.2869 17.4374H7.38586ZM7.35986 16.1374H10.6749C10.5795 15.6954 10.3802 15.3661 10.0769 15.1494C9.78219 14.9327 9.44419 14.8244 9.06286 14.8244C8.61219 14.8244 8.23953 14.9414 7.94486 15.1754C7.65019 15.4007 7.45519 15.7214 7.35986 16.1374Z" fill="white"/><path d="M17.3056 13.3164C18.1809 13.3164 18.9262 13.6501 19.5416 14.3174C20.1656 14.9761 20.4776 15.7864 20.4776 16.7484C20.4776 17.7104 20.1656 18.5251 19.5416 19.1924C18.9262 19.8511 18.1809 20.1804 17.3056 20.1804C16.3956 20.1804 15.6936 19.8641 15.1996 19.2314V22.5984H13.5226V13.4984H15.1996V14.2654C15.6936 13.6327 16.3956 13.3164 17.3056 13.3164ZM15.7066 18.0744C16.0446 18.4124 16.4736 18.5814 16.9936 18.5814C17.5136 18.5814 17.9426 18.4124 18.2806 18.0744C18.6272 17.7277 18.8006 17.2857 18.8006 16.7484C18.8006 16.2111 18.6272 15.7734 18.2806 15.4354C17.9426 15.0887 17.5136 14.9154 16.9936 14.9154C16.4736 14.9154 16.0446 15.0887 15.7066 15.4354C15.3686 15.7734 15.1996 16.2111 15.1996 16.7484C15.1996 17.2857 15.3686 17.7277 15.7066 18.0744Z" fill="white"/><path d="M23.0676 15.3444C23.0676 15.5177 23.1803 15.6607 23.4056 15.7734C23.6396 15.8774 23.9213 15.9727 24.2506 16.0594C24.58 16.1374 24.9093 16.2414 25.2386 16.3714C25.5679 16.4927 25.8453 16.7007 26.0706 16.9954C26.3046 17.2901 26.4216 17.6584 26.4216 18.1004C26.4216 18.7677 26.1703 19.2834 25.6676 19.6474C25.1736 20.0027 24.5539 20.1804 23.8086 20.1804C22.4739 20.1804 21.564 19.6647 21.0786 18.6334L22.5346 17.8144C22.7253 18.3777 23.15 18.6594 23.8086 18.6594C24.4066 18.6594 24.7056 18.4731 24.7056 18.1004C24.7056 17.9271 24.5886 17.7884 24.3546 17.6844C24.1293 17.5717 23.852 17.4721 23.5226 17.3854C23.1933 17.2987 22.864 17.1904 22.5346 17.0604C22.2053 16.9304 21.9236 16.7267 21.6896 16.4494C21.4643 16.1634 21.3516 15.8081 21.3516 15.3834C21.3516 14.7421 21.5856 14.2394 22.0536 13.8754C22.5303 13.5027 23.1196 13.3164 23.8216 13.3164C24.3503 13.3164 24.8313 13.4377 25.2646 13.6804C25.698 13.9144 26.0403 14.2524 26.2916 14.6944L24.8616 15.4744C24.6536 15.0324 24.3069 14.8114 23.8216 14.8114C23.6049 14.8114 23.423 14.8591 23.2756 14.9544C23.137 15.0497 23.0676 15.1797 23.0676 15.3444Z" fill="white"/></svg>`,fla:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#FF7188"/><path d="M12.8543 12.3317C11.9356 12.2624 11.4763 12.6307 11.4763 13.4367V13.5017H12.8543V15.1137H11.4763V20.0017H9.79928V15.1137H8.86328V13.5017H9.79928V13.4367C9.79928 12.5181 10.0549 11.8204 10.5663 11.3437C11.0776 10.8671 11.8403 10.6591 12.8543 10.7197V12.3317Z" fill="white"/><path d="M13.6229 20.0017V10.5117H15.2999V20.0017H13.6229Z" fill="white"/><path d="M21.7748 13.5017H23.4518V20.0017H21.7748V19.2347C21.2722 19.8674 20.5658 20.1837 19.6558 20.1837C18.7892 20.1837 18.0438 19.8544 17.4198 19.1957C16.8045 18.5284 16.4968 17.7137 16.4968 16.7517C16.4968 15.7897 16.8045 14.9794 17.4198 14.3207C18.0438 13.6534 18.7892 13.3197 19.6558 13.3197C20.5658 13.3197 21.2722 13.6361 21.7748 14.2687V13.5017ZM18.6808 18.0777C19.0188 18.4157 19.4478 18.5847 19.9678 18.5847C20.4878 18.5847 20.9168 18.4157 21.2548 18.0777C21.6015 17.7311 21.7748 17.2891 21.7748 16.7517C21.7748 16.2144 21.6015 15.7767 21.2548 15.4387C20.9168 15.0921 20.4878 14.9187 19.9678 14.9187C19.4478 14.9187 19.0188 15.0921 18.6808 15.4387C18.3428 15.7767 18.1738 16.2144 18.1738 16.7517C18.1738 17.2891 18.3428 17.7311 18.6808 18.0777Z" fill="white"/></svg>`,flv:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#4E70F2"/><path d="M13.5594 12.3317C12.6407 12.2624 12.1814 12.6307 12.1814 13.4367V13.5017H13.5594V15.1137H12.1814V20.0017H10.5044V15.1137H9.56836V13.5017H10.5044V13.4367C10.5044 12.5181 10.76 11.8204 11.2714 11.3437C11.7827 10.8671 12.5454 10.6591 13.5594 10.7197V12.3317Z" fill="white"/><path d="M14.328 20.0017V10.5117H16.005V20.0017H14.328Z" fill="white"/><path d="M21.8169 13.5017H23.6629L21.1929 20.0017H19.2819L16.8119 13.5017H18.6579L20.2309 18.0517L21.8169 13.5017Z" fill="white"/></svg>`,gif:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#43941D"/><path d="M13.7389 13.4993H15.3769V19.6873C15.3769 20.6927 15.0432 21.4597 14.3759 21.9883C13.7172 22.517 12.9199 22.7813 11.9839 22.7813C11.2819 22.7813 10.6622 22.647 10.1249 22.3783C9.59621 22.1097 9.18888 21.7153 8.90288 21.1953L10.3329 20.3763C10.6622 20.983 11.2299 21.2863 12.0359 21.2863C12.5645 21.2863 12.9805 21.1477 13.2839 20.8703C13.5872 20.593 13.7389 20.1987 13.7389 19.6873V18.9853C13.2449 19.644 12.5515 19.9733 11.6589 19.9733C10.7402 19.9733 9.96888 19.6527 9.34488 19.0113C8.72954 18.3613 8.42188 17.5727 8.42188 16.6453C8.42188 15.7267 8.73388 14.9423 9.35788 14.2923C9.98187 13.6423 10.7489 13.3173 11.6589 13.3173C12.5515 13.3173 13.2449 13.6467 13.7389 14.3053V13.4993ZM10.6059 17.9323C10.9525 18.2617 11.3902 18.4263 11.9189 18.4263C12.4475 18.4263 12.8809 18.2617 13.2189 17.9323C13.5655 17.5943 13.7389 17.1653 13.7389 16.6453C13.7389 16.134 13.5655 15.7137 13.2189 15.3843C12.8809 15.0463 12.4475 14.8773 11.9189 14.8773C11.3902 14.8773 10.9525 15.0463 10.6059 15.3843C10.2679 15.7137 10.0989 16.134 10.0989 16.6453C10.0989 17.1653 10.2679 17.5943 10.6059 17.9323Z" fill="white"/><path d="M17.7296 12.7193C17.4522 12.7193 17.2096 12.6197 17.0016 12.4203C16.8022 12.2123 16.7026 11.9697 16.7026 11.6923C16.7026 11.415 16.8022 11.1723 17.0016 10.9643C17.2096 10.7563 17.4522 
2610.6523 17.7296 10.6523C18.0156 10.6523 18.2582 10.7563 18.4576 10.9643C18.6656 11.1723 18.7696 11.415 18.7696 11.6923C18.7696 11.9697 18.6656 12.2123 18.4576 12.4203C18.2582 12.6197 18.0156 12.7193 17.7296 12.7193ZM16.8976 19.9993V13.4993H18.5746V19.9993H16.8976Z" fill="white"/><path d="M23.6065 12.3293C22.6878 12.26 22.2285 12.6283 22.2285 13.4343V13.4993H23.6065V15.1113H22.2285V19.9993H20.5515V15.1113H19.6155V13.4993H20.5515V13.4343C20.5515 12.5157 20.8072 11.818 21.3185 11.3413C21.8298 10.8647 22.5925 10.6567 23.6065 10.7173V12.3293Z" fill="white"/></svg>`,html:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#52ACF5"/><path d="M7.58666 13.3197C8.29732 13.3197 8.88232 13.5581 9.34166 14.0347C9.80966 14.5114 10.0437 15.1701 10.0437 16.0107V20.0017H8.36666V16.2187C8.36666 15.7854 8.24966 15.4561 8.01566 15.2307C7.78166 14.9967 7.46966 14.8797 7.07966 14.8797C6.64632 14.8797 6.29966 15.0141 6.03966 15.2827C5.77966 15.5514 5.64966 15.9544 5.64966 16.4917V20.0017H3.97266V10.9017H5.64966V14.2297C6.05699 13.6231 6.70266 13.3197 7.58666 13.3197Z" fill="white"/><path d="M14.7936 15.1137H13.3246V17.8177C13.3246 18.0431 13.3809 18.2077 13.4936 18.3117C13.6063 18.4157 13.7709 18.4764 13.9876 18.4937C14.2043 18.5024 14.4729 18.4981 14.7936 18.4807V20.0017C13.6409 20.1317 12.8263 20.0234 12.3496 19.6767C11.8816 19.3301 11.6476 18.7104 11.6476 17.8177V15.1137H10.5166V13.5017H11.6476V12.1887L13.3246 11.6817V13.5017H14.7936V15.1137Z" fill="white"/><path d="M22.8665 13.3197C23.6119 13.3197 24.2055 13.5624 24.6475 14.0477C25.0982 14.5331 25.3235 15.1831 25.3235 15.9977V20.0017H23.6465V16.1147C23.6465 15.7247 23.5512 15.4214 23.3605 15.2047C23.1699 14.9881 22.9012 14.8797 22.5545 14.8797C22.1732 14.8797 21.8742 15.0054 21.6575 15.2567C21.4495 15.5081 21.3455 15.8721 21.3455 16.3487V20.0017H19.6685V16.1147C19.6685 15.7247 19.5732 15.4214 19.3825 15.2047C19.1919 14.9881 18.9232 14.8797 18.5765 14.8797C18.2039 14.8797 17.9049 15.0054 17.6795 15.2567C17.4629 15.5081 17.3545 15.8721 17.3545 16.3487V20.0017H15.6775V13.5017H17.3545V14.1907C17.7445 13.6101 18.3469 13.3197 19.1615 13.3197C19.9589 13.3197 20.5482 13.6317 20.9295 14.2557C21.3629 13.6317 22.0085 13.3197 22.8
26665 13.3197Z" fill="white"/><path d="M26.3479 20.0017V10.5117H28.0249V20.0017H26.3479Z" fill="white"/></svg>`,indd:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#3761E9"/><path d="M4.40395 12.7193C4.12662 12.7193 3.88395 12.6197 3.67595 12.4203C3.47662 12.2123 3.37695 11.9697 3.37695 11.6923C3.37695 11.415 3.47662 11.1723 3.67595 10.9643C3.88395 10.7563 4.12662 10.6523 4.40395 10.6523C4.68995 10.6523 4.93262 10.7563 5.13195 10.9643C5.33995 11.1723 5.44395 11.415 5.44395 11.6923C5.44395 11.9697 5.33995 12.2123 5.13195 12.4203C4.93262 12.6197 4.68995 12.7193 4.40395 12.7193ZM3.57195 19.9993V13.4993H5.24895V19.9993H3.57195Z" fill="white"/><path d="M10.3979 13.3173C11.1085 13.3173 11.6935 13.5557 12.1529 14.0323C12.6209 14.509 12.8549 15.1677 12.8549 16.0083V19.9993H11.1779V16.2163C11.1779 15.783 11.0609 15.4537 10.8269 15.2283C10.5929 14.9943 10.2809 14.8773 9.89087 14.8773C9.45753 14.8773 9.11087 15.0117 8.85087 15.2803C8.59087 15.549 8.46087 15.952 8.46087 16.4893V19.9993H6.78387V13.4993H8.46087V14.2273C8.8682 13.6207 9.51387 13.3173 10.3979 13.3173Z" fill="white"/><path d="M19.2138 10.8993H20.8908V19.9993H19.2138V19.2323C18.7198 19.865 18.0178 20.1813 17.1078 20.1813C16.2325 20.1813 15.4828 19.852 14.8588 19.1933C14.2435 18.526 13.9358 17.7113 13.9358 16.7493C13.9358 15.7873 14.2435 14.977 14.8588 14.3183C15.4828 13.651 16.2325 13.3173 17.1078 13.3173C18.0178 13.3173 18.7198 13.6337 19.2138 14.2663V10.8993ZM16.1198 18.0753C16.4665 18.4133 16.8998 18.5823 17.4198 18.5823C17.9398 18.5823 18.3688 18.4133 18.7068 18.0753C19.0448 17.7287 19.2138 17.2867 19.2138 16.7493C19.2138 16.212 19.0448 15.7743 18.7068 15.4363C18.3688 15.0897 17.9398 14.9163 17.4198 14.9163C16.8998 14.9163 16.4665 15.0897 16.1198 15.4363C15.7818 15.7743 15.6128 16.212 15.6128 16.7493C15.6128 17.2867 15.7818 17.7287 16.1198 18.0753Z" fill="white"/><path d="M27.3515 10.8993H29.0285V19.9993H27.3515V19.2323C26.8575 19.865 26.1555 20.1813 25.2455 20.1813C24.3702 20.1813 23.6205 19.852 22.9965 19.1933C22.3812 18.526 22.0735 17.7113 22.0735 16.7493C22.0735 15.7873 22.3812 14.977 22.9965 14.3183C23.6205 13.651 24.3702 13.3173 25.2455 13.3173C26.1555 13.3173 26.8575 13.6337 27.3515 14.2663V10.8993ZM24.2575 18.0753C24.6042 18.4133 25.0375 18.5823 25.5575 18.5823C26.0775 18.5823 26.5065 18.4133 26.8445 18.0753C27.1825 17.7287 27.3515 17.2867 27.3515 16.7493C27.3515 16.212 27.1825 15.7743 26.8445 15.4363C26.5065 15.0897 26.0775 14.9163 25.5575 14.9163C25.0375 14.9163 24.6042 15.0897 24.2575 15.4363C23.9195 15.7743 23.7505 16.212 23.7505 16.7493C23.7505 17.2867 23.9195 17.7287 24.2575 18.0753Z" fill="white"/></svg>`,iso:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#E44662"/><path d="M9.7145 12.7193C9.43717 12.7193 9.1945 12.6197 8.9865 12.4203C8.78717 12.2123 8.6875 11.9697 8.6875 11.6923C8.6875 11.415 8.78717 11.1723 8.9865 10.9643C9.1945 10.7563 9.43717 10.6523 9.7145 10.6523C10.0005 10.6523 10.2432 10.7563 10.4425 10.9643C10.6505 11.1723 10.7545 11.415 10.7545 11.6923C10.7545 11.9697 10.6505 12.2123 10.4425 12.4203C10.2432 12.6197 10.0005 12.7193 9.7145 12.7193ZM8.8825 19.9993V13.4993H10.5595V19.9993H8.8825Z" fill="white"/><path d="M13.5906 15.3453C13.5906 15.5187 13.7033 15.6617 13.9286 15.7743C14.1626 15.8783 14.4443 15.9737 14.7736 16.0603C15.103 16.1383 15.4323 16.2423 15.7616 16.3723C16.091 16.4937 16.3683 16.7017 16.5936 16.9963C16.8276 17.291 16.9446 17.6593 16.9446 18.1013C16.9446 18.7687 16.6933 19.2843 16.1906 19.6483C15.6966 20.0037 15.077 20.1813 14.3316 20.1813C12.997 20.1813 12.087 19.6657 11.6016 18.6343L13.0576 17.8153C13.2483 18.3787 13.673 18.6603 14.3316 18.6603C14.9296 18.6603 15.2286 18.474 15.2286 18.1013C15.2286 17.928 15.1116 17.7893 14.8776 17.6853C14.6523 17.5727 14.375 17.473 14.0456 17.3863C13.7163 17.2997 13.387 17.1913 13.0576 17.0613C12.7283 16.9313 12.4466 16.7277 12.2126 16.4503C11.9873 16.1643 11.8746 15.809 11.8746 15.3843C11.8746 14.743 12.1086 14.2403 12.5766 13.8763C13.0533 13.5037 13.6426 13.3173 14.3446 13.3173C14.8733 13.3173 15.3543 13.4387 15.7876 13.6813C16.221 13.9153 16.5633 14.2533 16.8146 14.6953L15.3846 15.4753C15.1766 15.0333 14.83 14.8123 14.3446 14.8123C14.128 14.8123 13.946 14.86 13.7986 14.9553C13.66 15.0507 13.5906 15.1807 13.5906 15.3453Z" fill="white"/><path d="M23.4723 19.1933C22.8049 19.852 21.9903 20.1813 21.0283 20.1813C20.0663 20.1813 19.2516 19.852 18.5843 19.1933C17.9256 18.526 17.5963 17.7113 17.5963 16.7493C17.5963 15.7873 17.9256 14.977 18.5843 14.3183C19.2516 13.651 20.0663 13.3173 21.0283 13.3173C21.9903 13.3173 22.8049 13.651 23.4723 14.3183C24.1396 14.977 24.4733 15.7873 24.4733 16.7493C24.4733 17.7113 24.1396 18.526 23.4723 19.1933ZM19.7673 18.0363C20.1053 18.3743 20.5256 18.5433 21.0283 18.5433C21.5309 18.5433 21.9513 18.3743 22.2893 18.0363C22.6273 17.6983 22.7963 17.2693 22.7963 16.7493C22.7963 16.2293 22.6273 15.8003 22.2893 15.4623C21.9513 15.1243 21.5309 14.9553 21.0283 14.9553C20.5256 14.9553 20.1053 15.1243 19.7673 15.4623C19.4379 15.8003 19.2733 16.2293 19.2733 16.7493C19.2733 17.2693 19.4379 
2617.6983 19.7673 18.0363Z" fill="white"/></svg>`,jpg:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#F39E23"/><path d="M8.67973 12.7193C8.39373 12.7193 8.14673 12.6197 7.93873 12.4203C7.7394 12.2123 7.63973 11.9697 7.63973 11.6923C7.63973 11.415 7.7394 11.1723 7.93873 10.9643C8.14673 10.7563 8.39373 10.6523 8.67973 10.6523C8.95707 10.6523 9.1954 10.7563 9.39473 10.9643C9.60273 11.1723 9.70673 11.415 9.70673 11.6923C9.70673 11.9697 9.60273 12.2123 9.39473 12.4203C9.1954 12.6197 8.95707 12.7193 8.67973 12.7193ZM7.83473 20.1293V13.4993H9.51173V20.1293C9.51173 21.0827 9.27773 21.776 8.80973 22.2093C8.3504 22.6513 7.63973 22.842 6.67773 22.7813V21.1693C7.0764 21.1953 7.36673 21.126 7.54873 20.9613C7.7394 20.7967 7.83473 20.5193 7.83473 20.1293Z" fill="white"/><path d="M14.8245 13.3173C15.6998 13.3173 16.4451 13.651 17.0605 14.3183C17.6845 14.977 17.9965 15.7873 17.9965 16.7493C17.9965 17.7113 17.6845 18.526 17.0605 19.1933C16.4451 19.852 15.6998 20.1813 14.8245 20.1813C13.9145 20.1813 13.2125 19.865 12.7185 19.2323V22.5993H11.0415V13.4993H12.7185V14.2663C13.2125 13.6337 13.9145 13.3173 14.8245 13.3173ZM13.2255 18.0753C13.5635 18.4133 13.9925 18.5823 14.5125 18.5823C15.0325 18.5823 15.4615 18.4133 15.7995 18.0753C16.1461 17.7287 16.3195 17.2867 16.3195 16.7493C16.3195 16.212 16.1461 15.7743 15.7995 15.4363C15.4615 15.0897 15.0325 14.9163 14.5125 14.9163C13.9925 14.9163 13.5635 15.0897 13.2255 15.4363C12.8875 15.7743 12.7185 16.212 12.7185 16.7493C12.7185 17.2867 12.8875 17.7287 13.2255 18.0753Z" fill="white"/><path d="M24.1582 13.4993H25.7962V19.6873C25.7962 20.6927 25.4625 21.4597 24.7952 21.9883C24.1365 22.517 23.3392 22.7813 22.4032 22.7813C21.7012 22.7813 21.0815 22.647 20.5442 22.3783C20.0155 22.1097 19.6082 21.7153 19.3222 21.1953L20.7522 20.3763C21.0815 20.983 21.6492 21.2863 22.4552 21.2863C22.9838 21.2863 23.3998 21.1477 23.7032 20.8703C24.0065 20.593 24.1582 20.1987 24.1582 19.6873V18.9853C23.6642 19.644 22.9708 19.9733 22.0782 19.9733C21.1595 19.9733 20.3882 19.6527 19.7642 19.0113C19.1488 18.3613 18.8412 17.5727 18.8412 16.6453C18.8412 15.7267 19.1532 14.9423 19.7772 14.2923C20.4012 13.6423 21.1682 13.3173 22.0782 13.3173C22.9708 13.3173 23.6642 13.6467 24.1582 14.3053V13.4993ZM21.0252 17.9323C21.3718 18.2617 21.8095 18.4263 22.3382 18.4263C22.8668 18.4263 23.3002 18.2617 23.6382 17.9323C23.9848 17.5943 24.1582 17.1653 24.1582 16.6453C24.1582 16.134 23.9848 15.7137 23.6382 15.3843C23.3002 15.0463 22.8668 14.8773 22.3382 14.8773C21.8095 14.8773 21.3718 15.0463 21.0252 15.3843C20.6872 15.7137 20.5182 16.134 20.5182 16.6453C20.5182 17.1653 20.6872 17.5943 21.0252 17.9323Z" fill="white"/></svg>`,json:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#52ACF5"/><path d="M6.08794 12.7193C5.80194 12.7193 5.55494 12.6197 5.34694 12.4203C5.1476 12.2123 5.04794 11.9697 5.04794 11.6923C5.04794 11.415 5.1476 11.1723 5.34694 10.9643C5.55494 10.7563 5.80194 10.6523 6.08794 10.6523C6.36527 10.6523 6.6036 10.7563 6.80294 10.9643C7.01094 11.1723 7.11494 11.415 7.11494 11.6923C7.11494 11.9697 7.01094 12.2123 6.80294 12.4203C6.6036 12.6197 6.36527 12.7193 6.08794 12.7193ZM5.24294 20.1293V13.4993H6.91994V20.1293C6.91994 21.0827 6.68594 21.776 6.21794 22.2093C5.7586 22.6513 5.04794 22.842 4.08594 22.7813V21.1693C4.4846 21.1953 4.77494 21.126 4.95694 20.9613C5.1476 20.7967 5.24294 20.5193 5.24294 20.1293Z" fill="white"/><path d="M9.94589 15.3453C9.94589 15.5187 10.0586 15.6617 10.2839 15.7743C10.5179 15.8783 10.7996 15.9737 11.1289 16.0603C11.4582 16.1383 11.7876 16.2423 12.1169 16.3723C12.4462 16.4937 12.7236 16.7017 12.9489 16.9963C13.1829 17.291 13.2999 17.6593 13.2999 18.1013C13.2999 18.7687 13.0486 19.2843 12.5459 19.6483C12.0519 20.0037 11.4322 20.1813 10.6869 20.1813C9.35222 20.1813 8.44222 19.6657 7.95689 18.6343L9.41289 17.8153C9.60356 18.3787 10.0282 18.6603 10.6869 18.6603C11.2849 18.6603 11.5839 18.474 11.5839 18.1013C11.5839 17.928 11.4669 
2617.7893 11.2329 17.6853C11.0076 17.5727 10.7302 17.473 10.4009 17.3863C10.0716 17.2997 9.74222 17.1913 9.41289 17.0613C9.08356 16.9313 8.80189 16.7277 8.56789 16.4503C8.34256 16.1643 8.22989 15.809 8.22989 15.3843C8.22989 14.743 8.46389 14.2403 8.93189 13.8763C9.40856 13.5037 9.99789 13.3173 10.6999 13.3173C11.2286 13.3173 11.7096 13.4387 12.1429 13.6813C12.5762 13.9153 12.9186 14.2533 13.1699 14.6953L11.7399 15.4753C11.5319 15.0333 11.1852 14.8123 10.6999 14.8123C10.4832 14.8123 10.3012 14.86 10.1539 14.9553C10.0152 15.0507 9.94589 15.1807 9.94589 15.3453Z" fill="white"/><path d="M19.8275 19.1933C19.1602 19.852 18.3455 20.1813 17.3835 20.1813C16.4215 20.1813 15.6068 19.852 14.9395 19.1933C14.2808 18.526 13.9515 17.7113 13.9515 16.7493C13.9515 15.7873 14.2808 14.977 14.9395 14.3183C15.6068 13.651 16.4215 13.3173 17.3835 13.3173C18.3455 13.3173 19.1602 13.651 19.8275 14.3183C20.4948 14.977 20.8285 15.7873 20.8285 16.7493C20.8285 17.7113 20.4948 18.526 19.8275 19.1933ZM16.1225 18.0363C16.4605 18.3743 16.8808 18.5433 17.3835 18.5433C17.8862 18.5433 18.3065 18.3743 18.6445 18.0363C18.9825 17.6983 19.1515 17.2693 19.1515 16.7493C19.1515 16.2293 18.9825 15.8003 18.6445 15.4623C18.3065 15.1243 17.8862 14.9553 17.3835 14.9553C16.8808 14.9553 16.4605 15.1243 16.1225 15.4623C15.7932 15.8003 15.6285 16.2293 15.6285 16.7493C15.6285 17.2693 15.7932 17.6983 16.1225 18.0363Z" fill="white"/><path d="M25.6223 13.3173C26.3329 13.3173 26.9179 13.5557 27.3773 14.0323C27.8453 14.509 28.0793 15.1677 28.0793 16.0083V19.9993H26.4023V16.2163C26.4023 15.783 26.2853 15.4537 26.0513 15.2283C25.8173 14.9943 25.5053 14.8773 25.1153 14.8773C24.6819 14.8773 24.3353 15.0117 24.0753 15.2803C23.8153 15.549 23.6853 15.952 23.6853 16.4893V19.9993H22.0083V13.4993H23.6853V14.2273C24.0926 13.6207 24.7383 13.3173 25.6223 13.3173Z" fill="white"/></svg>`,js:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#3761E9"/><path d="M13.5215 12.7193C13.2355 12.7193 12.9885 12.6197 12.7805 12.4203C12.5812 12.2123 12.4815 11.9697 12.4815 11.6923C12.4815 11.415 12.5812 11.1723 12.7805 10.9643C12.9885 10.7563 13.2355 10.6523 13.5215 10.6523C13.7989 10.6523 14.0372 10.7563 14.2365 10.9643C14.4445 11.1723 14.5485 11.415 14.5485 11.6923C14.5485 11.9697 14.4445 12.2123 14.2365 12.4203C14.0372 12.6197 13.7989 12.7193 13.5215 12.7193ZM12.6765 20.1293V13.4993H14.3535V20.1293C14.3535 21.0827 14.1195 21.776 13.6515 22.2093C13.1922 22.6513 12.4815 22.842 11.5195 22.7813V21.1693C11.9182 21.1953 12.2085 21.126 12.3905 20.9613C12.5812 20.7967 12.6765 20.5193 12.6765 20.1293Z" fill="white"/><path d="M17.3795 15.3453C17.3795 15.5187 17.4922 15.6617 17.7175 15.7743C17.9515 15.8783 18.2332 15.9737 18.5625 16.0603C18.8918 16.1383 19.2212 16.2423 19.5505 16.3723C19.8798 16.4937 20.1572 16.7017 20.3825 16.9963C20.6165 17.291 20.7335 17.6593 20.7335 18.1013C20.7335 18.7687 20.4822 19.2843 19.9795 19.6483C19.4855 20.0037 18.8658 20.1813 18.1205 20.1813C16.7858 20.1813 15.8758 19.6657 15.3905 18.6343L16.8465 17.8153C17.0372 18.3787 17.4618 18.6603 18.1205 18.6603C18.7185 18.6603 19.0175 18.474 19.0175 18.1013C19.0175 17.928 18.9005 17.7893 18.6665 17.6853C18.4412 17.5727 18.1638 17.473 17.8345 17.3863C17.5052 17.2997 17.1758 17.1913 16.8465 17.0613C16.5172 16.9313 16.2355 16.7277 16.0015 16.4503C15.7762 16.1643 15.6635 15.809 15.6635 15.3843C15.6635 14.743 15.8975 14.2403 16.3655 13.8763C16.8422 13.5037 17.4315 13.3173 18.1335 13.3173C18.6622 13.3173 19.1432 13.4387 19.5765 13.6813C20.0098 13.9153 20.3522 14.2533 20.6035 14.6953L19.1735 15.4753C18.9655 15.0333 18.6188 14.8123 18.1335 14.8123C17.9168 14.8123 17.7348 14.86 17.5875 14.9553C17.4488 15.0507 17.3795 15.1807 17.3795 15.3453Z" fill="white"/></svg>`,midi:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#FF7188"/><path d="M11.1402 13.3173C11.8855 13.3173 12.4792 13.56 12.9212 14.0453C13.3718 14.5307 13.5972 15.1807 13.5972 15.9953V19.9993H11.9202V16.1123C11.9202 15.7223 11.8248 15.419 11.6342 15.2023C11.4435 14.9857 11.1748 14.8773 10.8282 14.8773C10.4468 14.8773 10.1478 15.003 9.93117 15.2543C9.72317 15.5057 9.61917 15.8697 9.61917 16.3463V19.9993H7.94217V16.1123C7.94217 15.7223 7.84684 15.419 7.65617 15.2023C7.46551 14.9857 7.19684 14.8773 6.85017 14.8773C6.47751 14.8773 6.17851 15.003 5.95317 15.2543C5.73651 15.50
2657 5.62817 15.8697 5.62817 16.3463V19.9993H3.95117V13.4993H5.62817V14.1883C6.01817 13.6077 6.62051 13.3173 7.43517 13.3173C8.23251 13.3173 8.82184 13.6293 9.20317 14.2533C9.63651 13.6293 10.2822 13.3173 11.1402 13.3173Z" fill="white"/><path d="M15.8535 12.7193C15.5762 12.7193 15.3335 12.6197 15.1255 12.4203C14.9262 12.2123 14.8265 11.9697 14.8265 11.6923C14.8265 11.415 14.9262 11.1723 15.1255 10.9643C15.3335 10.7563 15.5762 10.6523 15.8535 10.6523C16.1395 10.6523 16.3822 10.7563 16.5815 10.9643C16.7895 11.1723 16.8935 11.415 16.8935 11.6923C16.8935 11.9697 16.7895 12.2123 16.5815 12.4203C16.3822 12.6197 16.1395 12.7193 15.8535 12.7193ZM15.0215 19.9993V13.4993H16.6985V19.9993H15.0215Z" fill="white"/><path d="M23.1604 10.8993H24.8374V19.9993H23.1604V19.2323C22.6664 19.865 21.9644 20.1813 21.0544 20.1813C20.1791 20.1813 19.4294 19.852 18.8054 19.1933C18.1901 18.526 17.8824 17.7113 17.8824 16.7493C17.8824 15.7873 18.1901 14.977 18.8054 14.3183C19.4294 13.651 20.1791 13.3173 21.0544 13.3173C21.9644 13.3173 22.6664 13.6337 23.1604 14.2663V10.8993ZM20.0664 18.0753C20.4131 18.4133 20.8464 18.5823 21.3664 18.5823C21.8864 18.5823 22.3154 18.4133 22.6534 18.0753C22.9914 17.7287 23.1604 17.2867 23.1604 16.7493C23.1604 16.212 22.9914 15.7743 22.6534 15.4363C22.3154 15.0897 21.8864 14.9163 21.3664 14.9163C20.8464 14.9163 20.4131 15.0897 20.0664 15.4363C19.7284 15.7743 19.5594 16.212 19.5594 16.7493C19.5594 17.2867 19.7284 17.7287 20.0664 18.0753Z" fill="white"/><path d="M27.2031 12.7193C26.9258 12.7193 26.6831 12.6197 26.4751 12.4203C26.2758 12.2123 26.1761 11.9697 26.1761 11.6923C26.1761 11.415 26.2758 11.1723 26.4751 10.9643C26.6831 10.7563 26.9258 10.6523 27.2031 10.6523C27.4891 10.6523 27.7318 10.7563 27.9311 10.9643C28.1391 11.1723 28.2431 11.415 28.2431 11.6923C28.2431 11.9697 28.1391 12.2123 27.9311 12.4203C27.7318 12.6197 27.4891 12.7193 27.2031 12.7193ZM26.3711 19.9993V13.4993H28.0481V19.9993H26.3711Z" fill="white"/></svg>`,mov:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#E44662"/><path d="M11.523 13.3164C12.2683 13.3164 12.862 13.5591 13.304 14.0444C13.7547 14.5297 13.98 15.1797 13.98 15.9944V19.9984H12.303V16.1114C12.303 15.7214 12.2077 15.4181 12.017 15.2014C11.8263 14.9847 11.5577 14.8764 11.211 14.8764C10.8297 14.8764 10.5307 15.0021 10.314 15.2534C10.106 15.5047 10.002 15.8687 10.002 16.3454V19.9984H8.32498V16.1114C8.32498 15.7214 8.22965 15.4181 8.03898 15.2014C7.84832 14.9847 7.57965 14.8764 7.23298 14.8764C6.86032 14.8764 6.56132 15.0021 6.33598 15.2534C6.11932 15.5047 6.01098 15.8687 6.01098 16.3454V19.9984H4.33398V13.4984H6.01098V14.1874C6.40098 13.6067 7.00332 13.3164 7.81798 13.3164C8.61532 13.3164 9.20465 13.6284 9.58598 14.2524C10.0193 13.6284 10.665 13.3164 11.523 13.3164Z" fill="white"/><path d="M20.6423 19.1924C19.975 19.8511 19.1603 20.1804 18.1983 20.1804C17.2363 20.1804 16.4216 19.8511 15.7543 19.1924C15.0956 18.5251 14.7663 17.7104 14.7663 16.7484C14.7663 15.7864 15.0956 14.9761 15.7543 14.3174C16.4216 13.6501 17.2363 13.3164 18.1983 13.3164C19.1603 13.3164 19.975 13.6501 20.6423 14.3174C21.3096 14.9761 21.6433 15.7864 21.6433 16.7484C21.6433 17.7104 21.3096 18.5251 20.6423 19.1924ZM16.9373 18.0354C17.2753 18.3734 17.6956 18.5424 18.1983 18.5424C18.701 18.5424 19.1213 18.3734 19.4593 18.0354C19.7973 17.6974 19.9663 17.2684 19.9663 16.7484C19.9663 16.2284 19.7973 15.7994 19.4593 15.4614C19.1213 15.1234 18.701 14.9544 18.1983 14.9544C17.6956 14.9544 17.2753 15.1234 16.9373 15.4614C16.608 15.7994 16.4433 16.2284 16.4433 16.7484C16.4433 17.2684 16.608 17.6974 16.9373 18.0354Z" fill="white"/><path d="M26.5461 13.4984H28.3921L25.9221 19.9984H24.0111L21.5411 13.4984H23.3871L24.9601 18.0484L26.5461 13.4984Z" fill="white"/></svg>`,mpg:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#E44662"/><path d="M11.523 13.3164C12.2683 13.3164 12.862 13.5591 13.304 14.0444C13.7547 14.5297 13.98 15.1797 13.98 15.9944V19.9984H12.303V16.1114C12.303 15.7214 12.2077 15.4181 12.017 15.2014C11.8263 14.9847 11.5577 14.8764 11.211 14.8764C10.8297 14.8764 10.5307 15.0021 10.314 15.2534C10.106 15.5047 10.002 15.8687 10.002 16.3454V19.9984H8.32498V16.1114C8.32498 15.7214 8.22965 15.4181 8.03898 15.2014C7.84832 14.9847 7.57965 14.8764 7.23298 14.8764C6.86032 14.8764 6.56132 15.0021 6.33598 15.2534C6.11932 15.5047 6.01098 15.8687 6.01098 16.3454V19.9984H4.33398V13.4984H6.01098V14.1874C6.40098 13.6067 7.00332 13.3164 7.81798 13.3
26164C8.61532 13.3164 9.20465 13.6284 9.58598 14.2524C10.0193 13.6284 10.665 13.3164 11.523 13.3164Z" fill="white"/><path d="M20.6423 19.1924C19.975 19.8511 19.1603 20.1804 18.1983 20.1804C17.2363 20.1804 16.4216 19.8511 15.7543 19.1924C15.0956 18.5251 14.7663 17.7104 14.7663 16.7484C14.7663 15.7864 15.0956 14.9761 15.7543 14.3174C16.4216 13.6501 17.2363 13.3164 18.1983 13.3164C19.1603 13.3164 19.975 13.6501 20.6423 14.3174C21.3096 14.9761 21.6433 15.7864 21.6433 16.7484C21.6433 17.7104 21.3096 18.5251 20.6423 19.1924ZM16.9373 18.0354C17.2753 18.3734 17.6956 18.5424 18.1983 18.5424C18.701 18.5424 19.1213 18.3734 19.4593 18.0354C19.7973 17.6974 19.9663 17.2684 19.9663 16.7484C19.9663 16.2284 19.7973 15.7994 19.4593 15.4614C19.1213 15.1234 18.701 14.9544 18.1983 14.9544C17.6956 14.9544 17.2753 15.1234 16.9373 15.4614C16.608 15.7994 16.4433 16.2284 16.4433 16.7484C16.4433 17.2684 16.608 17.6974 16.9373 18.0354Z" fill="white"/><path d="M26.5461 13.4984H28.3921L25.9221 19.9984H24.0111L21.5411 13.4984H23.3871L24.9601 18.0484L26.5461 13.4984Z" fill="white"/></svg>`,php:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#3761E9"/><path d="M8.85917 13.3164C9.73451 13.3164 10.4798 13.6501 11.0952 14.3174C11.7192 14.9761 12.0312 15.7864 12.0312 16.7484C12.0312 17.7104 11.7192 18.5251 11.0952 19.1924C10.4798 19.8511 9.73451 20.1804 8.85917 20.1804C7.94917 20.1804 7.24717 19.8641 6.75317 19.2314V22.5984H5.07617V13.4984H6.75317V14.2654C7.24717 13.6328 7.94917 13.3164 8.85917 13.3164ZM7.26017 18.0744C7.59817 18.4124 8.02717 18.5814 8.54717 18.5814C9.06717 18.5814 9.49617 18.4124 9.83417 18.0744C10.1808 17.7278 10.3542 17.2858 10.3542 16.7484C10.3542 16.2111 10.1808 15.7734 9.83417 15.4354C9.49617 15.0888 9.06717 14.9154 8.54717 14.9154C8.02717 14.9154 7.59817 15.0888 7.26017 15.4354C6.92217 15.7734 6.75317 16.2111 6.75317 16.7484C6.75317 17.2858 6.92217 17.7278 7.26017 18.0744Z" fill="white"/><path d="M16.8279 13.3164C17.5385 13.3164 18.1235 13.5548 18.5829 14.0314C19.0509 14.5081 19.2849 15.1668 19.2849 16.0074V19.9984H17.6079V16.2154C17.6079 15.7821 17.4909 15.4528 17.2569 15.2274C17.0229 14.9934 16.7109 14.8764 16.3209 14.8764C15.8875 14.8764 15.5409 15.0108 15.2809 15.2794C15.0209 15.5481 14.8909 15.9511 14.8909 16.4884V19.9984H13.2139V10.8984H14.8909V14.2264C15.2982 13.6198 15.9439 13.3164 16.8279 13.3164Z" fill="white"/><path d="M24.4998 13.3164C25.3751 13.3164 26.1205 13.6501 26.7358 14.3174C27.3598 14.9761 27.6718 15.7864 27.6718 16.7484C27.6718 17.7104 27.3598 18.5251 26.7358 19.1924C26.1205 19.8511 25.3751 20.1804 24.4998 20.1804C23.5898 20.1804 22.8878 19.8641 22.3938 19.2314V22.5984H20.7168V13.4984H22.3938V14.2654C22.8878 13.6328 23.5898 13.3164 24.4998 13.3164ZM22.9008 18.0744C23.2388 18.4124 23.6678 18.5814 24.1878 18.5814C24.7078 18.5814 25.1368 18.4124 25.4748 18.0744C25.8215 17.7278 25.9948 17.2858 25.9948 16.7484C25.9948 16.2111 25.8215 15.7734 25.4748 15.4354C25.1368 15.0888 24.7078 14.9154 24.1878 14.9154C23.6678 14.9154 23.2388 15.0888 22.9008 15.4354C22.5628 15.7734 22.3938 16.2111 22.3938 16.7484C22.3938 17.2858 22.5628 17.7278 22.9008 18.0744Z" fill="white"/></svg>`,png:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#DE2C2C"/><path d="M8.65995 13.3164C9.53529 13.3164 10.2806 13.6501 10.896 14.3174C11.52 14.9761 11.832 15.7864 11.832 16.7484C11.832 17.7104 11.52 18.5251 10.896 19.1924C10.2806 19.8511 9.53529 20.1804 8.65995 20.1804C7.74995 20.1804 7.04795 19.8641 6.55395 19.2314V22.5984H4.87695V13.4984H6.55395V14.2654C7.04795 13.6327 7.74995 13.3164 8.65995 13.3164ZM7.06095 18.0744C7.39895 18.4124 7.82795 18.5814 8.34795 18.5814C8.86795 18.5814 9.29695 18.4124 9.63495 18.0744C9.98162 17.7277 10.155 17.2857 10.155 16.7484C10.155 16.2111 9.98162 15.7734 9.63495 15.4354C9.29695 15.0887 8.86795 14.9154 8.34795 14.9154C7.82795 14.9154 7.39895 15.0887 7.06095 15.4354C6.72295 15.7734 6.55395 16.2111 6.55395 16.7484C6.55395 17.2857 6.72295 17.7277 7.06095 18.0744Z" fill="white"/><path d="M16.6286 13.3164C17.3393 13.3164 17.9243 13.5547 18.3836 14.0314C18.8516 14.5081 19.0856 15.1667 19.0856 16.0074V19.9984H17.4086V16.2154C17.4086 15.7821 17.2916 15.4527 17.0576 15.2274C16.8236 14.9934 16.5116 14.8764 16.1216 14.8764C15.6883 14.8764 15.3416 15.0107 15.0816 15.2794C14.8216 15.5481 14.6916 15.9511 14.6916 16.4884V19.9984H13.0146V13.4984H14.6916V14.2264C15.099 13.6197 15.7446 13.3164 16.6286 13.3164Z" fill="white"/><path d="M25.4966 13.4984H27.1346V19.6864C27.1346 20.6917 26.8009 21.4587 26.1336 21.9874C25.4749 22.5161 24.6776 22.7804 23.7416 22.7804C23.0396 22.7804 22.4199 22.6461 21.8826 22.3774C21.3539 22.1087 20.9466 21.7144 20.6606 21.1944L22.0906 20.3754C22.4199 20.9821 22.9876 21.2854 23.7936 21.2854C24.3222 21.2854 24.7382 21.1467 25.0416 20.8694C25.3449 20.5921 25.4966 20.1977 25.4966 19.6864V18.9844C25.0026 19.6431 24.3092 19.9724 23.4166 19.9724C22.4979 19.9724 21.7266 19.6517 21.1026 19.0104C20.4872 18.3604 20.1796 17.5717 20.1796 16.6444C20.1796 15.7257 20.4916 14.9414 21.1156 14.2914C21.7396 13.6414 22.5066 13.3164 23.4166 13.3164C24.3092 13.3164 25.0026 13.6457 25.4966 14.3044V13.4984ZM22.3636 17.9314C22.7102 18.2607 23.1479 18.4254 23.6766 18.4254C24.2052 18.4254 24.6386 18.2607 24.9766 17.9314C25.3232 17.5934 25.4966 17.1644 25.4966 16.6444C25.4966 16.1331 25.3232 15.7127 24.9766 15.3834C24.6386 15.0454 24.2052 14.8764 23.6766 14.8764C23.1479 14.8764 22.7102 15.0454 22.3636 15.3834C22.0256 15.7127 21.8566 16.1331 21.8566 16.6444C21.8566 17.1644 22.0256 17.5934 22.3636 17.9314Z" fill="white"/></svg>`,ppt:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#ED3A3A"/>
26<path d="M9.78105 13.3177C10.6564 13.3177 11.4017 13.6514 12.017 14.3187C12.641 14.9774 12.953 15.7877 12.953 16.7497C12.953 17.7117 12.641 18.5264 12.017 19.1937C11.4017 19.8524 10.6564 20.1817 9.78105 20.1817C8.87105 20.1817 8.16905 19.8654 7.67505 19.2327V22.5997H5.99805V13.4997H7.67505V14.2667C8.16905 13.634 8.87105 13.3177 9.78105 13.3177ZM8.18205 18.0757C8.52005 18.4137 8.94905 18.5827 9.46905 18.5827C9.98905 18.5827 10.418 18.4137 10.756 18.0757C11.1027 17.729 11.276 17.287 11.276 16.7497C11.276 16.2124 11.1027 15.7747 10.756 15.4367C10.418 15.09 9.98905 14.9167 9.46905 14.9167C8.94905 14.9167 8.52005 15.09 8.18205 15.4367C7.84405 15.7747 7.67505 16.2124 7.67505 16.7497C7.67505 17.287 7.84405 17.729 8.18205 18.0757Z" fill="white"/><path d="M17.9187 13.3177C18.7941 13.3177 19.5394 13.6514 20.1547 14.3187C20.7787 14.9774 21.0907 15.7877 21.0907 16.7497C21.0907 17.7117 20.7787 18.5264 20.1547 19.1937C19.5394 19.8524 18.7941 20.1817 17.9187 20.1817C17.0087 20.1817 16.3067 19.8654 15.8127 19.2327V22.5997H14.1357V13.4997H15.8127V14.2667C16.3067 13.634 17.0087 13.3177 17.9187 13.3177ZM16.3197 18.0757C16.6577 18.4137 17.0867 18.5827 17.6067 18.5827C18.1267 18.5827 18.5557 18.4137 18.8937 18.0757C19.2404 17.729 19.4137 17.287 19.4137 16.7497C19.4137 16.2124 19.2404 15.7747 18.8937 15.4367C18.5557 15.09 18.1267 14.9167 17.6067 14.9167C17.0867 14.9167 16.6577 15.09 16.3197 15.4367C15.9817 15.7747 15.8127 16.2124 15.8127 16.7497C15.8127 17.287 15.9817 17.729 16.3197 18.0757Z" fill="white"/><path d="M25.8518 15.1117H24.3828V17.8157C24.3828 18.041 24.4391 18.2057 24.5518 18.3097C24.6645 18.4137 24.8291 18.4744 25.0458 18.4917C25.2625 18.5004 25.5311 18.496 25.8518 18.4787V19.9997C24.6991 20.1297 23.8845 20.0214 23.4078 19.6747C22.9398 19.328 22.7058 18.7084 22.7058 17.8157V15.1117H21.5748V13.4997H22.7058V12.1867L24.3828 11.6797V13.4997H25.8518V15.1117Z" fill="white"/></svg>`,ps:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#FB7C28"/><path d="M13.8299 13.3164C14.7052 13.3164 15.4505 13.6501 16.0659 14.3174C16.6899 14.9761 17.0019 15.7864 17.0019 16.7484C17.0019 17.7104 16.6899 18.5251 16.0659 19.1924C15.4505 19.8511 14.7052 20.1804 13.8299 20.1804C12.9199 20.1804 12.2179 19.8
26641 11.7239 19.2314V22.5984H10.0469V13.4984H11.7239V14.2654C12.2179 13.6327 12.9199 13.3164 13.8299 13.3164ZM12.2309 18.0744C12.5689 18.4124 12.9979 18.5814 13.5179 18.5814C14.0379 18.5814 14.4669 18.4124 14.8049 18.0744C15.1515 17.7277 15.3249 17.2857 15.3249 16.7484C15.3249 16.2111 15.1515 15.7734 14.8049 15.4354C14.4669 15.0887 14.0379 14.9154 13.5179 14.9154C12.9979 14.9154 12.5689 15.0887 12.2309 15.4354C11.8929 15.7734 11.7239 16.2111 11.7239 16.7484C11.7239 17.2857 11.8929 17.7277 12.2309 18.0744Z" fill="white"/><path d="M19.5919 15.3444C19.5919 15.5177 19.7046 15.6607 19.9299 15.7734C20.1639 15.8774 20.4456 15.9727 20.7749 16.0594C21.1043 16.1374 21.4336 16.2414 21.7629 16.3714C22.0923 16.4927 22.3696 16.7007 22.5949 16.9954C22.8289 17.2901 22.9459 17.6584 22.9459 18.1004C22.9459 18.7677 22.6946 19.2834 22.1919 19.6474C21.6979 20.0027 21.0783 20.1804 20.3329 20.1804C18.9983 20.1804 18.0883 19.6647 17.6029 18.6334L19.0589 17.8144C19.2496 18.3777 19.6743 18.6594 20.3329 18.6594C20.9309 18.6594 21.2299 18.4731 21.2299 18.1004C21.2299 17.9271 21.1129 17.7884 20.8789 17.6844C20.6536 17.5717 20.3763 17.4721 20.0469 17.3854C19.7176 17.2987 19.3883 17.1904 19.0589 17.0604C18.7296 16.9304 18.4479 16.7267 18.2139 16.4494C17.9886 16.1634 17.8759 15.8081 17.8759 15.3834C17.8759 14.7421 18.1099 14.2394 18.5779 13.8754C19.0546 13.5027 19.6439 13.3164 20.3459 13.3164C20.8746 13.3164 21.3556 13.4377 21.7889 13.6804C22.2223 13.9144 22.5646 14.2524 22.8159 14.6944L21.3859 15.4744C21.1779 15.0324 20.8313 14.8114 20.3459 14.8114C20.1293 14.8114 19.9473 14.8591 19.7999 14.9544C19.6613 15.0497 19.5919 15.1797 19.5919 15.3444Z" fill="white"/></svg>`,sql:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#2A8CE3"/><path d="M9.3933 15.3477C9.3933 15.5211 9.50596 15.6641 9.7313 15.7767C9.9653 15.8807 10.247 15.9761 10.5763 16.0627C10.9056 16.1407 11.235 16.2447 11.5643 16.3747C11.8936 16.4961 12.171 16.7041 12.3963 16.9987C12.6303 17.2934 12.7473 17.6617 12.7473 18.1037C12.7473 18.7711 12.496 19.2867 11.9933 19.6507C11.4993 20.0061 10.8796 20.1837 10.1343 20.1837C8.79963 20.1837 7.88963 19.6681 7.4043 18.6367L8.8603 17.8177C9.05096 18.3811 9.47563 18.6627 10.1343 18.6627C10.7323 18.6627 11.0313 18.4764 11.0313 18.1037C11.0313 17.9304 10.9143 17.7917 10.6803 17.6877C10.455 17.5751 10.1776 17.4754 9.8483 17.3887C9.51896 17.3021 9.18963 17.1937 8.8603 17.0637C8.53096 16.9337 8.2493 16.7301 8.0153 16.4527C7.78996 16.1667 7.6773 15.8114 7.6773 15.3867C7.6773 14.7454 7.9113 14.2427 8.3793 13.8787C8.85596 13.5061 9.4453 13.3197 10.1473 13.3197C10.676 13.3197 11.157 13.4411 11.5903 13.6837C12.0236 13.9177 12.366 14.2557 12.6173 14.6977L11.1873 15.4777C10.9793 15.0357 10.6326 14.8147 10.1473 14.8147C9.93063 14.8147 9.74863 14.8624 9.6013 14.9577C9.46263 15.0531 9.3933 15.1831 9.3933 15.3477Z" fill="white"/><path d="M18.6639 13.5017H20.3409V22.6017H18.6639V19.2347C18.1699 19.8674 17.4679 20.1837 16.5579 20.1837C15.6826 20.1837 14.9329 19.8544 14.3089 19.1957C13.6936 18.5284 13.3859 17.7137 13.3859 16.7517C13.3859 15.7897 13.6936 14.9794 14.3089 14.3207C14.9329 13.6534 15.6826 13.3197 16.5579 13.3197C17.4679 13.3197 18.1699 13.6361 18.6639 14.2687V13.5017ZM15.5699 18.0777C15.9166 18.4157 16.3499 18.5847 16.8699 18.5847C17.3899 18.5847 17.8189 18.4157 18.1569 18.0777C18.4949 17.7311 18.6639 17.2891 18.6639 16.7517C18.6639 16.2144 18.4949 15.7767 18.1569 15.4387C17.8189 15.0921 17.3899 14.9187 16.8699 14.9187C16.3499 14.9187 15.9166 15.0921 15.5699 15.4387C15.2319 15.7767 15.0629 16.2144 15.0629 16.7517C15.0629 17.2891 15.2319 17.7311 15.5699 18.0777Z" fill="white"/><path d="M21.8746 20.0017V10.5117H23.5516V20.0017H21.8746Z" fill="white"/></svg>`,svg:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#5D7EF7"/><path d="M8.31322 15.3444C8.31322 15.5177 8.42589 15.6607 8.65122 15.7734C8.88522 15.8774 9.16689 15.9727 9.49622 16.0594C9.82555 16.1374 10.1549 16.2414 10.4842 16.3714C10.8136 16.4927 11.0909 16.7007 11.3162 16.9954C11.5502 17.2901 11.66
2672 17.6584 11.6672 18.1004C11.6672 18.7677 11.4159 19.2834 10.9132 19.6474C10.4192 20.0027 9.79955 20.1804 9.05422 20.1804C7.71955 20.1804 6.80955 19.6647 6.32422 18.6334L7.78022 17.8144C7.97089 18.3777 8.39555 18.6594 9.05422 18.6594C9.65222 18.6594 9.95122 18.4731 9.95122 18.1004C9.95122 17.9271 9.83422 17.7884 9.60022 17.6844C9.37489 17.5717 9.09755 17.4721 8.76822 17.3854C8.43889 17.2987 8.10955 17.1904 7.78022 17.0604C7.45089 16.9304 7.16922 16.7267 6.93522 16.4494C6.70989 16.1634 6.59722 15.8081 6.59722 15.3834C6.59722 14.7421 6.83122 14.2394 7.29922 13.8754C7.77589 13.5027 8.36522 13.3164 9.06722 13.3164C9.59589 13.3164 10.0769 13.4377 10.5102 13.6804C10.9436 13.9144 11.2859 14.2524 11.5372 14.6944L10.1072 15.4744C9.89922 15.0324 9.55255 14.8114 9.06722 14.8114C8.85055 14.8114 8.66855 14.8591 8.52122 14.9544C8.38255 15.0497 8.31322 15.1797 8.31322 15.3444Z" fill="white"/><path d="M16.8323 13.4984H18.6783L16.2083 19.9984H14.2973L11.8273 13.4984H13.6733L15.2463 18.0484L16.8323 13.4984Z" fill="white"/><path d="M24.212 13.4984H25.85V19.6864C25.85 20.6917 25.5163 21.4587 24.849 21.9874C24.1903 22.5161 23.393 22.7804 22.457 22.7804C21.755 22.7804 21.1353 22.6461 20.598 22.3774C20.0693 22.1087 19.662 21.7144 19.376 21.1944L20.806 20.3754C21.1353 20.9821 21.703 21.2854 22.509 21.2854C23.0377 21.2854 23.4537 21.1467 23.757 20.8694C24.0603 20.5921 24.212 20.1977 24.212 19.6864V18.9844C23.718 19.6431 23.0247 19.9724 22.132 19.9724C21.2133 19.9724 20.442 19.6517 19.818 19.0104C19.2027 18.3604 18.895 17.5717 18.895 16.6444C18.895 15.7257 19.207 14.9414 19.831 14.2914C20.455 13.6414 21.222 13.3164 22.132 13.3164C23.0247 13.3164 23.718 13.6457 24.212 14.3044V13.4984ZM21.079 17.9314C21.4257 18.2607 21.8633 18.4254 22.392 18.4254C22.9207 18.4254 23.354 18.2607 23.692 17.9314C24.0387 17.5934 24.212 17.1644 24.212 16.6444C24.212 16.1331 24.0387 15.7127 23.692 15.3834C23.354 15.0454 22.9207 14.8764 22.392 14.8764C21.8633 14.8764 21.4257 15.0454 21.079 15.3834C20.741 15.7127 20.572 16.1331 20.572 16.6444C20.572 17.1644 20.741 17.5934 21.079 17.9314Z" fill="white"/></svg>`,tif:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#142A8E"/><path d="M14.5973 15.1113H13.1283V17.8153C13.1283 18.0407 13.1846 18.2053 13.2973 18.3093C13.41 18.4133 13.5746 18.474 13.7913 18.4913C14.008 18.5 14.2766 18.4957 14.5973 18.4783V19.9993C13.4446 20.1293 12.63 20.021 12.1533 19.6743C11.6853 19.3277 11.4513 18.708 11.4513 17.8153V15.1113H10.3203V13.4993H11.4513V12.1863L13.1283 11.6793V13.4993H14.5973V15.1113Z" fill="white"/><path d="M16.6117 12.7193C16.3344 12.7193 16.0917 12.6197 15.8837 12.4203C15.6844 12.2123 15.5847 11.9697 15.5847 11.6923C15.5847 11.415 15.6844 11.1723 15.8837 10.9643C16.0917 10.7563 16.3344 10.6523 16.6117 10.6523C16.8977 10.6523 17.1404 10.7563 17.3397 10.9643C17.5477 11.1723 17.6517 11.415 17.6517 11.6923C17.6517 11.9697 17.5477 12.2123 17.3397 12.4203C17.1404 12.6197 16.8977 12.7193 16.6117 12.7193ZM15.7797 19.9993V13.4993H17.4567V19.9993H15.7797Z" fill="white"/><path d="M22.4886 12.3293C21.57 12.26 21.1106 12.6283 21.1106 13.4343V13.4993H22.4886V15.1113H21.1106V19.9993H19.4336V15.1113H18.4976V13.4993H19.4336V13.4343C19.4336 12.5157 19.6893 11.818 20.2006 11.3413C20.712 10.8647 21.4746 10.6567 22.4886 10.7173V12.3293Z" fill="white"/></svg>`,txt:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#52ACF5"/><path d="M12.068 15.1117H10.599V17.8157C10.599 18.041 10.6553 18.2057 10.768 18.3097C10.8807 18.4137 11.0453 18.4744 11.262 18.4917C11.4787 18.5004 11.7473 18.496 12.068 18.4787V19.9997C10.9153 20.1297 10.1007 20.0214 9.62402 19.6747C9.15602 19.328 8.92202 18.7084 8.92202 17.8157V15.1117H7.79102V13.4997H8.92202V12.1867L10.599 11.6797V13.4997H12.068V15.1117Z" fill="white"/><path d="M19.345 19.9997H17.408L16.004 18.0237L14.587 19.9997H12.65L15.029 16.6847L12.754 13.4997H14.691L16.004 15.3327L17.317 13.4997H19.241L16.966 16.6717L19.345 19.9997Z" fill="white"/><path d="M23.9 15.1117H22.431V17.8157C22.431 18.041 22.4874 18.2057 22.6 18.3097C22.7127 18.4137 22.8774 18.4744 23.094 18.4917C23.3107 18.5004 23.5794 18.496 23.9 18.4787V19.9997C22.7474 20.1297 21.9327 20.0214 21.456 19.6747C20.988 19.328 20.754 18.7084 20.754 17.8157V15.1117H19.623V13.4997H20.754V12.1867L22.431 11.6797V13.4997H23.9V15.1117Z" fill="white"/></svg>`,wmv:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#3761E9"/><path d="M10.7399 13.4984H12.5209L10.4539 19.9984H8.85488L7.65888 16.0594L6.46288 19.9984H4.86387L2.79688 13.4984H4.57788L5.68288 17.4894L6.86587 13.4984H8.45188L9.63487 17.5024L10.7399 13.4984Z" fill="white"/>
26<path d="M20.1138 13.3164C20.8591 13.3164 21.4528 13.5591 21.8948 14.0444C22.3454 14.5297 22.5708 15.1797 22.5708 15.9944V19.9984H20.8938V16.1114C20.8938 15.7214 20.7984 15.4181 20.6078 15.2014C20.4171 14.9847 20.1484 14.8764 19.8018 14.8764C19.4204 14.8764 19.1214 15.0021 18.9048 15.2534C18.6968 15.5047 18.5928 15.8687 18.5928 16.3454V19.9984H16.9158V16.1114C16.9158 15.7214 16.8204 15.4181 16.6298 15.2014C16.4391 14.9847 16.1704 14.8764 15.8238 14.8764C15.4511 14.8764 15.1521 15.0021 14.9268 15.2534C14.7101 15.5047 14.6018 15.8687 14.6018 16.3454V19.9984H12.9248V13.4984H14.6018V14.1874C14.9918 13.6067 15.5941 13.3164 16.4088 13.3164C17.2061 13.3164 17.7954 13.6284 18.1768 14.2524C18.6101 13.6284 19.2558 13.3164 20.1138 13.3164Z" fill="white"/><path d="M27.6578 13.4984H29.5038L27.0338 19.9984H25.1228L22.6528 13.4984H24.4988L26.0718 18.0484L27.6578 13.4984Z" fill="white"/></svg>`,xls:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#55A822"/><path d="M15.2438 20.0017H13.3068L11.9028 18.0257L10.4858 20.0017H8.54883L10.9278 16.6867L8.65283 13.5017H10.5898L11.9028 15.3347L13.2158 13.5017H15.1398L12.8648 16.6737L15.2438 20.0017Z" fill="white"/><path d="M16.0809 20.0017V10.5117H17.7579V20.0017H16.0809Z" fill="white"/><path d="M20.789 15.3477C20.789 15.5211 20.9017 15.6641 21.127 15.7767C21.361 15.8807 21.6427 15.9761 21.972 16.0627C22.3014 16.1407 22.6307 16.2447 22.96 16.3747C23.2894 16.4961 23.5667 16.7041 23.792 16.9987C24.026 17.2934 24.143 17.6617 24.143 18.1037C24.143 18.7711 23.8917 19.2867 23.389 19.6507C22.895 20.0061 22.2754 20.1837 21.53 20.1837C20.1954 20.1837 19.2854 19.6681 18.8 18.6367L20.256 17.8177C20.4467 18.3811 20.8714 18.6627 21.53 18.6627C22.128 18.6627 22.427 18.4764 22.427 18.1037C22.427 17.9304 22.31 17.7917 22.076 17.6877C21.8507 17.5751 21.5734 17.4754 21.244 17.3887C20.9147 17.3021 20.5854 17.1937 20.256 17.0637C19.9267 16.9337 19.645 16.7301 19.411 16.4527C19.1857 16.1667 19.073 15.8114 19.073 15.3867C19.073 14.7454 19.307 14.2427 19.775 13.8787C20.2517 13.5061 20.841 13.3197 21.543 13.3197C22.0717 13.3197 22.5527 13.4411 22.986 13.6837C23.4194 13.9177 23.7617 14.2557 24.013 14.6977L22.583 15.4777C22.375 15.0357 22.0284 14.8147 21.543 14.8147C21.3264 14.8147 21.1444 14.8624 20.997 14.9577C20.8584 15.0531 20.789 15.1831 20.789 15.3477Z" fill="white"/></svg>`,xlsx:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#55A822"/><path d="M11.9548 20.0017H10.0178L8.61377 18.0257L7.19677 20.0017H5.25977L7.63877 16.6867L5.36377 13.5017H7.30077L8.61377 15.3347L9.92677 13.5017H11.8508L9.57577 16.6737L11.9548 20.0017Z" fill="white"/><path d="M12.7918 20.0017V10.5117H14.4688V20.0017H12.7918Z" fill="white"/><path d="M17.5 15.3477C17.5 15.5211 17.6126 15.6641 17.838 15.7767C18.072 15.8807 18.3536 15.9761 18.683 16.0627C19.0123 16.1407 19.3416 16.2447 19.671 16.3747C20.0003 16.4961 20.2776 16.7041 20.503 16.9987C20.737 17.2934 20.854 17.6617 20.854 18.1037C20.854 18.7711 20.6026 19.2867 20.1 19.6507C19.606 20.0061 18.9863 20.1837 18.241 20.1837C16.9063 20.1837 15.9963 19.6681 15.511 18.6367L16.967 17.8177C17.1576 18.3811 17.5823 18.6627 18.241 18.6627C18.839 18.6627 19.138 18.4764 19.138 18.1037C19.138 17.9304 19.021 17.7917 18.787 17.6877C18.5616 17.5751 18.2843 17.4754 17.955 17.3887C17.6256 17.3021 17.2963 17.1937 16.967 17.0637C16.6376 16.9337 16.356 16.7301 16.122 16.4527C15.8966 16.1667 15.784 15.8114 15.784 15.3867C15.784 14.7454 16.018 14.2427 16.486 13.8787C16.9626 13.5061 17.552 13.3197 18.254 13.3197C18.7826 13.3197 19.2636 13.4411 19.697 13.6837C20.1303 13.9177 20.4726 14.2557 20.724 14.6977L19.294 15.4777C19.086 15.0357 18.7393 14.8147 18.254 14.8147C18.0373 14.8147 17.8553 14.8624 17.708 14.9577C17.5693 15.0531 17.5 15.1831 17.5 15.3477Z" fill="white"/><path d="M27.735 20.0017H25.798L24.394 18.0257L22.977 20.0017H21.04L23.419 16.6867L21.144 13.5017H23.081L24.394 15.3347L25.707 13.5017H27.631L25.356 16.6737L27.735 20.0017Z" fill="white"/></svg>`,xml:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#1EA679"/><path d="M11.904 20.0017H9.96698L8.56298 18.0257L7.14598 20.0017H5.20898L7.58798 16.6867L5.31298 13.5017H7.24998L8.56298 15.3347L9.87598 13.5017H11.8L9.52498 16.6737L11.904 20.0017Z" fill="white"/><path d="M19.9301 13.3197C20.6754 13.3197 21.2691 13.5624 21.7111 14.0477C22.1617 14.5331 22.3871 15.1831 22.3871 15.9977V20.0017H20.7101V16.1147C20.7101 15.7247 20.6147 15.4214 20.4241 15.2047C20.2334 14.9881 19.9647 14.8797 19.6181 14.8797C19.2367 14.8797 18.9377 15.0054 18.7211 15.2567C18.5131 15.5081 18.4091 15.8721 18.4091 16.3487V20.0017H16.7321V16.1147C16.7321 15.7247 16.6367 15.4214 16.4461 15.2047C16.2554 14.9881 15.9867 14.8797 15.6401 14.8797C15.2674 14.8797 14.9684 15.0054 14.7431 15.2567C14.5264 15.5081 14.4181 15.8721 14.4181 16.3487V20.0017H12.7411V13.5017H14.4181V14.1907C14.8081 13.6101 15.4104 13.3
26197 16.2251 13.3197C17.0224 13.3197 17.6117 13.6317 17.9931 14.2557C18.4264 13.6317 19.0721 13.3197 19.9301 13.3197Z" fill="white"/><path d="M23.8114 20.0017V10.5117H25.4884V20.0017H23.8114Z" fill="white"/></svg>`,mp4:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#4E70F2"/><path d="M10.982 13.3164C11.7273 13.3164 12.321 13.5591 12.763 14.0444C13.2136 14.5298 13.439 15.1798 13.439 15.9944V19.9984H11.762V16.1114C11.762 15.7214 11.6666 15.4181 11.476 15.2014C11.2853 14.9848 11.0166 14.8764 10.67 14.8764C10.2886 14.8764 9.98964 15.0021 9.77297 15.2534C9.56497 15.5048 9.46097 15.8688 9.46097 16.3454V19.9984H7.78397V16.1114C7.78397 15.7214 7.68864 15.4181 7.49797 15.2014C7.3073 14.9848 7.03864 14.8764 6.69197 14.8764C6.3193 14.8764 6.0203 15.0021 5.79497 15.2534C5.5783 15.5048 5.46997 15.8688 5.46997 16.3454V19.9984H3.79297V13.4984H5.46997V14.1874C5.85997 13.6068 6.4623 13.3164 7.27697 13.3164C8.0743 13.3164 8.66364 13.6284 9.04497 14.2524C9.4783 13.6284 10.124 13.3164 10.982 13.3164Z" fill="white"/><path d="M18.2463 13.3164C19.1216 13.3164 19.8669 13.6501 20.4823 14.3174C21.1063 14.9761 21.4183 15.7864 21.4183 16.7484C21.4183 17.7104 21.1063 18.5251 20.4823 19.1924C19.8669 19.8511 19.1216 20.1804 18.2463 20.1804C17.3363 20.1804 16.6343 19.8641 16.1403 19.2314V22.5984H14.4633V13.4984H16.1403V14.2654C16.6343 13.6328 17.3363 13.3164 18.2463 13.3164ZM16.6473 18.0744C16.9853 18.4124 17.4143 18.5814 17.9343 18.5814C18.4543 18.5814 18.8833 18.4124 19.2213 18.0744C19.5679 17.7278 19.7413 17.2858 19.7413 16.7484C19.7413 16.2111 19.5679 15.7734 19.2213 15.4354C18.8833 15.0888 18.4543 14.9154 17.9343 14.9154C17.4143 14.9154 16.9853 15.0888 16.6473 15.4354C16.3093 15.7734 16.1403 16.2111 16.1403 16.7484C16.1403 17.2858 16.3093 17.7278 16.6473 18.0744Z" fill="white"/><path d="M28.975 16.7874V18.4514H28V19.9984H26.193V18.4514H21.89V16.7874L24.919 10.8984H26.843L23.827 16.7874H26.193V14.6294H28V16.7874H28.975Z" fill="white"/></svg>`,webm:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#2FB9CE"/><path d="M8.74959 14.0008H10.2183L8.51373 19.5008H7.19508L6.20877 16.1678L5.22247 19.5008H3.90382L2.19922 14.0008H3.66796L4.57922 17.3778L5.55481 14.0008H6.86274L7.83833 17.3888L8.74959 14.0008Z" fill="white"/><path d="M11.4356 17.3338C11.6214 18.0231 12.1253 18.3678 12.9472 18.3678C13.4761 18.3678 13.8764 18.1844 14.148 17.8178L15.2629 18.4778C14.734 19.2624 13.955 19.6548 12.9258 19.6548C12.0396 19.6548 11.3284 19.3798 10.7924 18.8298C10.2563 18.2798 9.98832 17.5868 9.98832 16.7508C9.98832 15.9221 10.2528 15.2328 10.7817 14.6828C11.3105 14.1254 11.9895 13.8468 12.8186 13.8468C13.6048 13.8468 14.2516 14.1254 14.759 14.6828C15.2736 15.2401 15.5309 15.9294 15.5309 16.7508C15.5309 16.9341 15.5131 17.1284 15.4773 17.3338H11.4356ZM11.4142 16.2338H14.148C14.0693 15.8598 13.905 15.5811 13.6548 15.3978C13.4118 15.2144 13.1331 15.1228 12.8186 15.1228C12.4469 15.1228 12.1396 15.2218 11.8966 15.4198C11.6536 15.6104 11.4928 15.8818 11.4142 16.2338Z" fill="white"/><path d="M19.1288 13.8468C19.8507 13.8468 20.4653 14.1291 20.9728 14.6938C21.4874 15.2511 21.7447 15.9368 21.7447 16.7508C21.7447 17.5648 21.4874 18.2541 20.9728 18.8188C20.4653 19.3761 19.8507 19.6548 19.1288 19.6548C18.3784 19.6548 17.7995 19.3871 17.3921 18.8518V19.5008H16.0091V11.8008H17.3921V14.6498C17.7995 14.1144 18.3784 13.8468 19.1288 13.8468ZM17.8102 17.8728C18.0889 18.1588 18.4427 18.3018 18.8715 18.3018C19.3004 18.3018 19.6541 18.1588 19.9329 17.8728C20.2188 17.5794 20.3617 17.2054 20.3617 16.7508C20.3617 16.2961 20.2188 15.9258 19.9329 15.6398C19.6541 15.3464 19.3004 15.1998 18.8715 15.1998C18.4427 15.1998 18.0889 15.3464 17.8102 15.6398C17.5314 15.9258 17.3921 16.2961 17.3921 16.7508C17.3921 17.2054 17.5314 17.5794 17.8102 17.8728Z" fill="white"/><path d="M28.1613 13.8468C28.7759 13.8468 29.2655 14.0521 29.63 14.4628C30.0017 14.8734 30.1875 15.4234 30.1875 16.1128V19.5008H28.8045V16.2118C28.8045 15.8818 28.7259 15.6251 28.5687 15.4418C28.4114 15.2584 28.1899 15.1668 27.904 15.1668C27.5895 15.1668 27.3429 15.2731 27.1643 15.4858C26.9927 15.6984 26.907 16.0064 26.907 16.4098V19.5008H25.524V16.2118C25.524 15.8818 25.4454 15.6251 25.2881 15.4418C25.1309 15.2584 24.9093 15.1668 24.6234 15.1668C24.3161 15.1668 24.0695 15.2731 23.8837 15.4858C23.705 15.6984 23.6157 16.0064 23.6157 16.4098V19.5008H22.2327V14.0008H23.6157V14.5838C23.9373 14.0924 24.434 13.8468 25.1059 13.8468C25.7634 13.8468 26.2494 14.1108 26.5639 14.6388C26.9212 14.1108 27.4537 13.8468 28.1613 13.8468Z" fill="white"/></svg>`},y0={folder:S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.744 3.0325C13.136 2.3675 12.32 2 11.472 2H3.2C1.44 2 0.016 3.575 0.016 5.5L0 26.5C0 28.425 1.44 30 3.2 30H28.8C30.56 30 32 28.425 32 26.5V9.5C32 7.575 30.56 6 28.8 6H16L13.744 3.0325Z" fill="#FED34A"/></svg>`,systemFolder:S`<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.616 4.54875C19.704 3.55125 18.48 3 17.208 3H4.8C2.16 3 0.024 5.3625 0.024 8.25L0 39.75C0 42.6375 2.16 45 4.8 45H43.2C45.84 45 48 42.6375 48 39.75V14.25C48 11.3625 45.84 9 43.2 9H24L20.616 4.54875Z" fill="#FED34A"/><path opacity="0.5" fill-rule="evenodd" clip-rule="evenodd" d="M21.5019 18.3939C21.5858 17.9154 22.0012 17.5664 22.4869 17.5664H25.5615C26.0462 17.5664 26.4611 17.914 26.546 18.3912L26.7336 19.4453C26.8287 19.9795 27.1961 20.4198 27.6661 20.6909C28.1364 20.9622 28.6975 21.0558 29.2075 20.8695L30.2193 20.5C30.6755 20.3334 31.1855 20.5187 31.4284 20.9393L32.9656 23.6019C33.208 24.0217 33.1144 24.5548 32.7436 24.8669L31.9318 25.5504C31.5114 25.9043 31.3106 26.4465 31.3106 26.9961C31.3106 27.5538 31.5132 28.1045 31.9391 28.4646L32.7397 29.1411C33.1093 29.4535 33.2022 29.9858 32.9602 30.4049L31.4485 33.0232C31.2064 33.4426 30.6985 33.6282 30.243 33.4639L29.2575 33.1082C28.7325 32.9187 28.1564 33.0176 27.6733 33.2971C27.1908 33.5762 26.8121 34.0275 26.7134 34.5762L26.5286 35.6028C26.4429 36.0791 26.0284 36.4256 25.5444 36.4256H22.521C22.0368 36.4256 21.6221 36.0787 21.5367 35.602L21.3522 34.5723C21.2541 34.0242 20.8763 33.573 20.3946 33.2938C19.9122 33.0143 19.3368 32.915 18.8122 33.1039L17.8293 33.4577C17.3739 33.6216 16.8665 33.4359 16.6245 33.0168L15.1128 30.3984C14.8707 29.979 14.9639 29.4464 15.334 29.1341L16.1367 28.4569C16.5608 28.099 16.7629 27.5511 16.7629 26.9961C16.7629 26.459 16.5649 25.9296 16.1531 25.5848L15.323 24.8899C14.9505 24.5781 14.856 24.0438 15.0989 23.6231L16.6361 20.9605C16.8785 20.5407 17.3869 20.3552 17.8427 20.5203L18.849 20.8847C19.3591 21.0694 
2619.9195 20.9743 20.3886 20.7018C20.8571 20.4297 21.2225 19.989 21.316 19.4553L21.5019 18.3939ZM24.0009 30C22.3441 30 21.0009 28.6569 21.0009 27C21.0009 25.3431 22.3441 24 24.0009 24C25.6578 24 27.0009 25.3431 27.0009 27C27.0009 28.6569 25.6578 30 24.0009 30Z" fill="#AB4C00"/></svg>`,publicFolder:S`<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.616 4.54875C19.704 3.55125 18.48 3 17.208 3H4.8C2.16 3 0.024 5.3625 0.024 8.25L0 39.75C0 42.6375 2.16 45 4.8 45H43.2C45.84 45 48 42.6375 48 39.75V14.25C48 11.3625 45.84 9 43.2 9H24L20.616 4.54875Z" fill="#FED34A"/><g opacity="0.5"><path fill-rule="evenodd" clip-rule="evenodd" d="M21 19.5C21 21.1569 19.6569 22.5 18 22.5C16.3431 22.5 15 21.1569 15 19.5C15 17.8431 16.3431 16.5 18 16.5C19.6569 16.5 21 17.8431 21 19.5ZM12 29C12 26.2386 14.2386 24 17 24H19C20.1495 24 21.2084 24.3879 22.0529 25.0399C19.6326 26.4155 18 29.0171 18 32V33H13.3333C12.597 33 12 32.403 12 31.6667V29Z" fill="#AB4C00"/><path fill-rule="evenodd" clip-rule="evenodd" d="M27.75 24C29.8211 24 31.5 22.3211 31.5 20.25C31.5 18.1789 29.8211 16.5 27.75 16.5C25.6789 16.5 24 18.1789 24 20.25C24 22.3211 25.6789 24 27.75 24ZM25.5 25.5C22.1863 25.5 19.5 28.1863 19.5 31.5V34.6667C19.5 35.403 20.097 36 20.8333 36H34.6667C35.403 36 36 35.403 36 34.6667V31.5C36 28.1863 33.3137 25.5 30 25.5H25.5Z" fill="#AB4C00"/></g></svg>`},C0=S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.744 3.0325C13.136 2.3675 12.32 2 11.472 2H3.2C1.44 2 0.016 3.575 0.016 5.5L0 26.5C0 28.425 1.44 30 3.2 30H28.8C30.56 30 32 28.425 32 26.5V9.5C32 7.575 30.56 6 28.8 6H16L13.744 3.0325Z" fill="#FED34A"/></svg>`,A0=S`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="4" fill="#7852EF"/><path d="M11.8426 12.3317C10.9239 12.2624 10.4646 12.6307 10.4646 13.4367V13.5017H11.8426V15.1137H10.4646V20.0017H8.78756V15.1137H7.85156V13.5017H8.78756V13.4367C8.78756 12.5181 9.04323 11.8204 9.55456 11.3437C10.0659 10.8671 10.8286 10.6591 11.8426 10.7197V12.3317Z" fill="white"/><path d="M13.4432 12.7217C13.1659 12.7217 12.9232 12.6221 12.7152 12.4227C12.5159 12.2147 12.4162 11.9721 12.4162 11.6947C12.4162 11.4174 12.5159 11.1747 12.7152 10.9667C12.9232 10.7587 13.1659 10.6547 13.4432 10.6547C13.7292 10.6547 13.9719 10.7587 14.1712 10.9667C14.3792 11.1747 14.4832 11.4174 14.4832 11.6947C14.4832 11.9721 14.3792 12.2147 14.1712 12.4227C13.9719 12.6221 13.7292 12.7217 13.4432 12.7217ZM12.6112 20.0017V13.5017H14.2882V20.0017H12.6112Z" fill="white"/><path d="M15.8231 20.0017V10.5117H17.5001V20.0017H15.8231Z" fill="white"/><path d="M20.452 17.4407C20.6773 18.2554 21.2883 18.6627 22.285 18.6627C22.9263 18.6627 23.4117 18.4461 23.741 18.0127L25.093 18.7927C24.4517 19.7201 23.507 20.1837 22.259 20.1837C21.1843 20.1837 20.322 19.8587 19.672 19.2087C19.022 18.5587 18.697 17.7397 18.697 16.7517C18.697 15.7724 19.0177 14.9577 19.659 14.3077C20.3003 13.6491 21.1237 13.3197 22.129 13.3197C23.0823 13.3197 23.8667 13.6491 24.482 14.3077C25.106 14.9664 25.418 15.7811 25.418 16.7517C25.418 16.9684 25.3963 17.1981 25.353 17.4407H20.452ZM20.426 16.1407H23.741C23.6457 15.6987 23.4463 15.3694 23.143 15.1527C22.8483 14.9361 22.5103 14.8277 22.129 14.8277C21.6783 14.8277 21.3057 14.9447 21.011 15.1787C20.7163 15.4041 20.5213 15.7247 20.426 16.1407Z" fill="white"/></svg>`;var x0=Object.defineProperty,k0=Object.getOwnPropertyDescriptor,ct=(r,t,e,i)=>{for(var o=i>1?void 0:i?k0(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&x0(t,e,o),o};const B1="awc-file-item";s.AwcFileItem=class extends C{constructor(){super(...arguments),this.view="list_block",this.type="file",this.private=!1,this.showPrivate=!1,this.showDownload=!1,this.showDelete=!1,this.isInteractive=!1,this.hideSubinfo=!1,this.isHoveredButtons=!1,this.showHoverText=!1,this.showFallbackIcon=!1,this._isImageValid=!1,this._imageValidationCache={},this._onMouseEnter=()=>{this.isHoveredButtons=!0},this._onMouseLeave=()=>{this.isHoveredButtons=!1},this._onHoverTextMouseEnter=()=>{this.showHoverText=!0},this._onHoverTextMouseLeave=()=>{this.showHoverText=!1}}
26_getFileDetails(){return{id:this.id,type:this.type,name:this.name,format:this.format,thumbnail:this.thumbnail,localFile:this.localFile,externalFileLink:this.externalFileLink,size:this.size,date:this.date,provider:this.provider,private:this.private}}_getIconByFormat(){if(this.type==="file")return b0[this.format]||A0}_getIconByFolder(){if(this.type==="folder"||this.type==="systemFolder"||this.type==="publicFolder")return y0[this.type]||C0}_getPrivateModeIcon(){return this.private?"lock":"unlock"}_getPrivateModeText(){return this.private?Y("awc-file-item.open-access"):Y("awc-file-item.close-access")}_getPrivateModeTooltip(){return this.private?Y("awc-file-item.share-tooltip-open"):Y("awc-file-item.share-tooltip-close")}_triggerDownload(t){t.stopPropagation(),this.localFile&&(this._download(this.localFile),this._onDownloadEvent(this._getFileDetails()))}_download(t){const e=document.createElement("a");e.href=t,e.rel="noopener noreferrer",e.hidden=!0,this._isSameOrigin(t)?e.download=this._downloadFileName():e.target="_blank",document.body.appendChild(e),e.click(),e.remove()}_isSameOrigin(t){try{return new URL(t,window.location.href).origin===window.location.origin}catch{return!1}}_downloadFileName(){if(!this.name)return"";const t=this.format?`.${this.format}`:"";return this.name.toLowerCase().endsWith(t.toLowerCase())?this.name:`${this.name}${t}`}_triggerDelete(t){t.stopPropagation(),this._onDeleteEvent(this._getFileDetails())}_togglePrivateMode(t){t.stopPropagation(),this.private=!this.private,this._onPrivateEvent(this._getFileDetails())}_openExternalLink(t){const e=t.target;if(e.closest("awc-popover")||e.closest("awc-icon-button")){t.stopPropagation();return}this.externalFileLink&&(t.stopPropagation(),window.open(this.externalFileLink,"_blank","noopener,noreferrer"))}_handlePreview(t){const e=t.target;e.closest("awc-popover")||e.closest("awc-icon-button")||this.isInteractive&&!this.externalFileLink&&this._onPreviewEvent(e)}_formatFileSize(){return m0(this.size,!0,Dt())}_renderDropdown(){if(this.querySelector('[slot="awc-file-item-dropdown-control"]'))return f`<div class="awc-file-item-button"><slot name="awc-file-item-dropdown-control"></slot></div>`;if(!this.showDownload&&!this.showPrivate&&!this.showDelete)return A;const t=this.showDelete&&(this.showDownload||this.showPrivate)&&!this.externalFileLink;return f`<awc-popover trigger-type="click" strategy="fixed" position="bottom" no-padding><div class="awc-file-item-wrapper" slot="awc-popover-content"><awc-dropdown-group ?divider="${t}">${this.showDownload&&!this.externalFileLink?f`<awc-dropdown-item @click="${this._triggerDownload}"><awc-icon name="download" type="icon" size="16" slot="icon"></awc-icon>${Y("awc-file-item.download")}</awc-dropdown-item>`:A} ${this.showPrivate?f`<awc-tooltip strategy="absolute" .message="${this._getPrivateModeTooltip()}"><awc-dropdown-item @click="${this._togglePrivateMode}"><awc-icon name="${this._getPrivateModeIcon()}" type="icon" size="16" slot="icon"></awc-icon>${this._getPrivateModeText()}</awc-dropdown-item></awc-tooltip>`:A}</awc-dropdown-group>${this.showDelete?f`<awc-dropdown-item @click="${this._triggerDelete}"><awc-icon name="trash" type="icon" size="16" slot="icon"></awc-icon>${Y("awc-file-item.delete")}</awc-dropdown-item>`:A}</div><awc-icon-button class="awc-file-item-button"><awc-icon name="more_vert" type="icon" size="16"></awc-icon></awc-icon-button></awc-popover>`}_renderHoverButtons(){return this.querySelector('[slot="awc-file-item-hover-control"]')?f`<slot name="awc-file-item-hover-control"></slot>`:this.showPrivate||this.showDownload||this.showDelete?f`<div class="awc-file-item__buttons" part="actions">${this.showPrivate?f`<awc-tooltip strategy="fixed" position="bottom" .message="${this._getPrivateModeTooltip()}"><awc-icon-button @click="${this._togglePrivateMode}"><awc-icon name="${this._getPrivateModeIcon()}" type="icon" size="16"></awc-icon></awc-icon-button></awc-tooltip>`:A} ${this.showDownload&&!this.externalFileLink?f`<awc-tooltip strategy="fixed" position="bottom" .message="${Y("awc-file-item.download")}"><awc-icon-button @click="${this._triggerDownload}"><awc-icon name="download" type="icon" size="16"></awc-icon></awc-icon-button></awc-tooltip>`:A} ${this.showDelete?f`<awc-tooltip strategy="fixed" position="bottom" .message="${Y("awc-file-item.delete")}"><awc-icon-button @click="${this._triggerDelete}"><awc-icon name="trash" type="icon" size="16"></awc-icon></awc-icon-button></awc-tooltip>`:A}</div>`:A}_renderPreview(){return f`<div class="awc-file-item__preview" part="preview" @click="${this._openExternalLink}">${this._isImageValid?f`<img class="awc-file-item__image" part="image" src="${this.thumbnail}" alt="${this.name}" loading="lazy">`:f`<span class="awc-file-item__icon" part="icon">${this._getIconByFormat()||this._getIconByFolder()}</span>`} ${this.view==="grid"?this._renderDropdown():A}</div>`}_isValidImageUrl(t){if(!t)return!1;try{const e=new URL(t,window.location.origin);return e.protocol.startsWith("http")||e.protocol.startsWith("https")}catch{return!1}}async _checkImageValidity(t){return this._imageValidationCache[t]!==void 0?this._imageValidationCache[t]:this._isValidImageUrl(t)?new Promise(e=>{const i=new Image;i.src=t,i.onload=()=>{this._imageValidationCache[t]=!0,e(!0)},i.onerror=()=>{this._imageValidationCache[t]=!1,e(!1)}}):(this._imageValidationCache[t]=!1,!1)}async _updateImageState(){!this.thumbnail||!this._isValidImageUrl(this.thumbnail)?this._isImageValid=!1:this._isImageValid=await this._checkImageValidity(this.thumbnail),this.requestUpdate()}_decodeHTMLEntities(t){return new DOMParser().parseFromString(t,"text/html").documentElement.textContent||""}_renderGridView(){return f`${this._renderPreview()}<div class="awc-file-item__info" part="info"><p class="awc-file-item__name" part="name" title="${this._decodeHTMLEntities(this.name)}">${this._decodeHTMLEntities(this.name)}</p>${this.hideSubinfo?A:f`<div class="awc-file-item__subinfo" part="subinfo"><span class="awc-file-item__size">${this._formatFileSize()}</span> <span class="awc-file-item__type">${this.format}</span> <span class="awc-file-item__provider">${this.provider?Qs[this.provider]:A}</span></div>`}</div>`}_renderListView(){return f`${this._renderPreview()}<div class="awc-file-item__info" part="info"><div class="awc-file-item__name" part="name" title="${this._decodeHTMLEntities(this.name)}"><p class="awc-file-item__text">${this._decodeHTMLEntities(this.name)}</p><span class="awc-file-item__provider">${this.provider?Qs[this.provider]:A}</span></div>${this.hideSubinfo?A:f`<div class="awc-file-item__subinfo" part="subinfo">${this.size&&!this.isHoveredButtons?f`<span class="awc-file-item__size">${this._formatFileSize()}</span>`:A} ${this.date&&!this.isHoveredButtons?f`<span class="awc-file-item__date">${this.date}</span>`:A} ${this.isHoveredButtons?this._renderHoverButtons():A}</div>`}</div>`}_renderListBlockView(){return f`${this._renderPreview()}<div class="awc-file-item__info" part="info"><p class="awc-file-item__name" part="name" title="${this._decodeHTMLEntities(this.name)}">${this._decodeHTMLEntities(this.name)}</p>${this.hideSubinfo?A:f`<div class="awc-file-item__subinfo" part="subinfo">${this.showHoverText&&this.externalFileLink?f`<span class="awc-file-item__subtext">${Y("awc-file-item.click-to-go")}</span>`:this.showHoverText&&!this.externalFileLink?f`<span class="awc-file-item__subtext">${Y("awc-file-item.click-to-preview")}</span>`:f`<span class="awc-file-item__size">${this._formatFileSize()}</span> <span class="awc-file-item__type">${this.format}</span> <span class="awc-file-item__provider">${this.provider?Qs[this.provider]:A}</span>`}</div>`}</div>${this.isHoveredButtons?this._renderHoverButtons():A}`}connectedCallback(){super.connectedCallback(),this._handlePreviewBound=t=>this._handlePreview(t),this._handleOpenExternalLinkBound=t=>this._openExternalLink(t),(this.isInteractive||this.view==="list"||this.view==="list_block")&&(this.addEventListener("mouseenter",this._onMouseEnter),this.addEventListener("mouseleave",this._onMouseLeave)),this.isInteractive&&(this.addEventListener("click",this._handlePreviewBound),this.addEventListener("mouseenter",this._onHoverTextMouseEnter),this.addEventListener("mouseleave",this._onHoverTextMouseLeave)),(this.view==="list"||this.view==="list_block")&&this.externalFileLink&&this.addEventListener("click",this._handleOpenExternalLinkBound)}disconnectedCallback(){this.removeEventListener("click",this._handlePreviewBound),this.removeEventListener("click",this._handleOpenExternalLinkBound),this.removeEventListener("mouseenter",this._onMouseEnter),this.removeEventListener("mouseleave",this._onMouseLeave),this.removeEventListener("mouseenter",this._onHoverTextMouseEnter),this.removeEventListener("mouseleave",this._onHoverTextMouseLeave),super.disconnectedCallback()}updated(t){super.updated(t),t.has("thumbnail")&&this._updateImageState()}render(){switch(this.view){case"grid":return this._renderGridView();case"list":return this._renderListView();case"list_block":return this._renderListBlockView();default:return this._renderListBlockView()}}},s.AwcFileItem.styles=_0,ct([c({type:String,reflect:!0})],s.AwcFileItem.prototype,"view",2),ct([c({type:String,reflect:!0})],s.AwcFileItem.prototype,"provider",2),ct([c({type:String})],s.AwcFileItem.prototype,"id",2),ct([c({type:String})],s.AwcFileItem.prototype,"thumbnail",2),ct([c({type:String})],s.AwcFileItem.prototype,"name",2),ct([c({type:String})],s.AwcFileItem.prototype,"date",2),ct([c({type:String})],s.AwcFileItem.prototype,"format",2),ct([c({type:String})],s.AwcFileItem.prototype,"type",2),ct([c({type:String,attribute:"local-file"})],s.AwcFileItem.prototype,"localFile",2),ct([c({type:String,attribute:"external-file-link"})],s.AwcFileItem.prototype,"externalFileLink",2),ct([c({type:Number})],s.AwcFileItem.prototype,"size",2),ct([c({type:Boolean,reflect:!0})],s.AwcFileItem.prototype,"private",2),ct([c({type:Boolean,attribute:"show-private"})],s.AwcFileItem.prototype,"showPrivate",2),ct([c({type:Boolean,attribute:"show-download"})],s.AwcFileItem.prototype,"showDownload",2),ct([c({type:Boolean,attribute:"show-delete"})],s.AwcFileItem.prototype,"showDelete",2),ct([c({type:Boolean,attribute:"is-interactive"})],s.AwcFileItem.prototype,"isInteractive",2),ct([c({type:Boolean,attribute:"hide-subinfo"})],s.AwcFileItem.prototype,"hideSubinfo",2),ct([M()],s.AwcFileItem.prototype,"isHoveredButtons",2),ct([M()],s.AwcFileItem.prototype,"showHoverText",2),ct([M()],s.AwcFileItem.prototype,"showFallbackIcon",2),ct([F("awc-file-download")],s.AwcFileItem.prototype,"_onDownloadEvent",2),ct([F("awc-file-private")],s.AwcFileItem.prototype,"_onPrivateEvent",2),ct([F("awc-file-delete")],s.AwcFileItem.prototype,"_onDeleteEvent",2),ct([F("awc-file-preview")],s.AwcFileItem.prototype,"_onPreviewEvent",2),s.AwcFileItem=ct([I(B1),Ie()],s.AwcFileItem);var S0=Object.defineProperty,$0=Object.getOwnPropertyDescriptor,ri=(r,t,e,i)=>{for(var o=i>1?void 0:i?$0(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&S0(t,e,o),o};const T0="awc-file";s.AwcFile=class extends C{constructor(){super(...arguments),this.heading="",this.counter=0,this.view="list_block",this.variant="regular",this.open=!1}get fileItems(){return Array.from(this.querySelectorAll(B1))}connectedCallback(){super.connectedCallback(),this._updateFileItemsView()}_switchView(t){const e=t.target.closest("[data-view]");if(!e)return;const i=e.dataset.view;i&&i!==this.view&&(this.view=i,this._updateFileItemsView())}_toggleAccordion(t){t.target.closest(".awc-file__views")||(this.open=!this.open,this._onOpenChange({open:this.open}))}_updateActiveButton(){this._viewButtons.forEach(t=>{t.toggleAttribute("active",t.dataset.view===this.view)})}
26_updateFileItemsView(){this.fileItems.forEach(t=>t.view=this.view)}updated(t){super.updated(t),t.has("view")&&(this._updateActiveButton(),this._updateFileItemsView())}_renderViewControls(){const t={grid:Y("awc-file.grid-view"),list_block:Y("awc-file.list-block-view"),list:Y("awc-file.list-view")},e={grid:"grid",list_block:"list_block",list:"list_lines"};return f`<div class="awc-file__views" part="actions" @click="${this._switchView}">${g0.map(i=>f`<awc-tooltip position="bottom" strategy="fixed" .message="${t[i]}"><awc-icon-button ?active="${this.view===i}" data-view="${i}"><awc-icon name="${e[i]}" type="icon" size="16"></awc-icon></awc-icon-button></awc-tooltip>`)}</div>`}_renderRegularHeader(){return this._renderViewControls()}_renderAccordionHeader(){return f`<div class="awc-file__header" part="header" @click="${this._toggleAccordion}"><div class="awc-file__icon"><awc-icon name="arrow_down" type="icon" size="24" class="awc-file__arrow" part="arrow"></awc-icon></div><div class="awc-file__headline"><p class="awc-file__title" part="heading">${this.heading}</p>${this.counter>0?f`<span class="awc-file__counter" part="counter">${this.counter}</span>`:A}</div><div class="awc-file__views ${this.open?"":"awc-file__views--hidden"}">${this._renderViewControls()}</div></div>`}_renderCompactHeader(){return A}_renderHeader(){switch(this.variant){case"regular":return this._renderRegularHeader();case"accordion":return this._renderAccordionHeader();case"compact":return this._renderCompactHeader();default:return A}}_renderContent(){return f`<div ?inert="${!this.open}" class="awc-file__accordion"><div class="awc-file__accordion__wrapper"><div @slotchange="${this._updateFileItemsView}" class="awc-file__body" part="body"><slot></slot></div><div class="awc-file__button"><slot name="awc-file-button"></slot></div></div></div>`}render(){return f`<section class="awc-file awc-file--${this.variant}" part="base">${this._renderHeader()} ${this._renderContent()}</section>`}},s.AwcFile.styles=v0,ri([c({type:String,reflect:!0})],s.AwcFile.prototype,"heading",2),ri([c({type:Number,reflect:!0})],s.AwcFile.prototype,"counter",2),ri([c({type:String,reflect:!0})],s.AwcFile.prototype,"view",2),ri([c({type:String,reflect:!0})],s.AwcFile.prototype,"variant",2),ri([c({type:Boolean,reflect:!0})],s.AwcFile.prototype,"open",2),ri([Sa("awc-icon-button")],s.AwcFile.prototype,"_viewButtons",2),ri([F("awc-file-open-change")],s.AwcFile.prototype,"_onOpenChange",2),s.AwcFile=ri([Ie(),I(T0)],s.AwcFile);const E0=P`:host{display:var(--awc-file-button-display,inline-flex);max-width:100%;position:relative}.awc-file-button{--awc-file-button-height:40px;cursor:pointer;width:100%;height:var(--awc-file-button-height);padding:10px 16px;display:flex;align-items:center;user-select:none;justify-content:var(--awc-file-button-justify,space-between);gap:var(--spacing-s);border:1px solid var(--awc-file-button-border-color,rgba(55,97,233,.35));border-radius:var(--corner-radius-s);color:var(--colors-primary);font:var(--awc-font-text-medium-14);background:var(--awc-file-button-background,transparent);transition:var(--awc-file-button-transition,background var(--awc-duration-slow,.3s) ease)}.awc-file-button ::slotted([slot=awc-file-button-icon]){fill:var(--colors-primary)}.awc-file-button__label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.awc-file-button:focus-visible{outline:0}.awc-file-button:focus-visible{border-color:var(--colors-secondary)}@media (hover:hover){.awc-file-button:hover{background:var(--awc-file-button-background-hover,rgba(55,97,233,.08))}.awc-file-button:active{background:var(--awc-file-button-background-hover,rgba(55,97,233,.16))}}@media (hover:none){.awc-file-button:active{background:var(--awc-file-button-background-hover,rgba(55,97,233,.1))}}`;var L0=Object.getOwnPropertyDescriptor,I0=(r,t,e,i)=>{for(var o=i>1?void 0:i?L0(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=n(o)||o);return o};const O0="awc-file-button";s.AwcFileButton=class extends C{render(){return f`<button tabindex="0" class="awc-file-button" part="base" type="button"><slot name="awc-file-button-icon"></slot><span class="awc-file-button__label" part="label"><slot></slot></span><slot name="awc-file-button-google"></slot></button>`}}
26,s.AwcFileButton.styles=E0,s.AwcFileButton=I0([I(O0)],s.AwcFileButton);let M0=0;function P0(){return String(++M0)}class D0{constructor(){this.toasts=[],this.listeners=new Set}add(t){const e=P0(),i={status:"default",...t,id:e};return this.toasts.push(i),this.notify(),e}update(t,e){const i=this.toasts.find(o=>o.id===t);return i?(Object.assign(i,e),this.notify(),!0):!1}dismiss(t){const e=this.toasts.findIndex(i=>i.id===t);return e===-1?!1:(this.toasts.splice(e,1),this.notify(),!0)}clear(t){if(this.toasts.length===0)return;if(t===void 0){this.toasts=[],this.notify();return}const e=this.toasts.filter(i=>(i.rootId??"")!==t);e.length!==this.toasts.length&&(this.toasts=e,this.notify())}get(t){return this.toasts.find(e=>e.id===t)}getAll(){return[...this.toasts]}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}notify(){const t=this.getAll();for(const e of this.listeners)e(t)}}const Bt=new D0;function V1(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,i=Array(t);e<t;e++)i[e]=r[e];return i}function B0(r){if(Array.isArray(r))return r}function V0(r,t){var e=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e!=null){var i,o,a,n,d=[],l=!0,h=!1;try{if(a=(e=e.call(r)).next,t!==0)for(;!(l=(i=a.call(e)).done)&&(d.push(i.value),d.length!==t);l=!0);}catch(p){h=!0,o=p}finally{try{if(!l&&e.return!=null&&(n=e.return(),Object(n)!==n))return}finally{if(h)throw o}}return d}}function H0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R0(r,t){return B0(r)||V0(r,t)||z0(r,t)||H0()}function z0(r,t){if(r){if(typeof r=="string")return V1(r,t);var e={}.toString.call(r).slice(8,-1);return e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set"?Array.from(r):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?V1(r,t):void 0}}const H1=Object.entries,R1=Object.setPrototypeOf,F0=Object.isFrozen,N0=Object.getPrototypeOf,j0=Object.getOwnPropertyDescriptor;let $t=Object.freeze,Et=Object.seal,Qi=Object.create,z1=typeof Reflect<"u"&&Reflect,tn=z1.apply,en=z1.construct;$t||($t=function(t){return t}),Et||(Et=function(t){return t}),tn||(tn=function(t,e){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return t.apply(e,o)}),en||(en=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return new t(...i)});const $i=Ct(Array.prototype.forEach),U0=Ct(Array.prototype.lastIndexOf),F1=Ct(Array.prototype.pop),Gr=Ct(Array.prototype.push),Z0=Ct(Array.prototype.splice),tr=Array.isArray,qr=Ct(String.prototype.toLowerCase),rn=Ct(String.prototype.toString),N1=Ct(String.prototype.match),Yr=Ct(String.prototype.replace),j1=Ct(String.prototype.indexOf),W0=Ct(String.prototype.trim),G0=Ct(Number.prototype.toString),q0=Ct(Boolean.prototype.toString),U1=typeof BigInt>"u"?null:Ct(BigInt.prototype.toString),Z1=typeof Symbol>"u"?null:Ct(Symbol.prototype.toString),Yt=Ct(Object.prototype.hasOwnProperty),Kr=Ct(Object.prototype.toString),Ht=Ct(RegExp.prototype.test),Ti=Y0(TypeError);function Ct(r){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return tn(r,t,i)}}function Y0(r){return function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return en(r,e)}}function Q(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qr;if(R1&&R1(r,null),!tr(t))return r;let i=t.length;for(;i--;){let o=t[i];if(typeof o=="string"){const a=e(o);a!==o&&(F0(t)||(t[i]=a),o=a)}r[o]=!0}return r}function K0(r){for(let t=0;t<r.length;t++)Yt(r,t)||(r[t]=null);return r}function se(r){const t=Qi(null);for(const i of H1(r)){var e=R0(i,2);const o=e[0],a=e[1];Yt(r,o)&&(tr(a)?t[o]=K0(a):a&&typeof a=="object"&&a.constructor===Object?t[o]=se(a):t[o]=a)}return t}function X0(r){switch(typeof r){case"string":return r;case"number":return G0(r);case"boolean":return q0(r);case"bigint":return U1?U1(r):"0";case"symbol":return Z1?Z1(r):"Symbol()";case"undefined":return Kr(r);case"function":case"object":{if(r===null)return Kr(r);const t=r,e=ge(t,"toString");if(typeof e=="function"){const i=e(t);return typeof i=="string"?i:Kr(i)}return Kr(r)}default:return Kr(r)}}function ge(r,t){for(;r!==null;){const i=j0(r,t);if(i){if(i.get)return Ct(i.get);if(typeof i.value=="function")return Ct(i.value)}r=N0(r)}function e(){return null}return e}function J0(r){try{return Ht(r,""),!0}catch{return!1}}const W1=$t(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),on=$t(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),an=$t(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Q0=$t(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),sn=$t(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),t7=$t(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G1=$t(["#text"]),q1=$t(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
27spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),nn=$t(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Y1=$t(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ta=$t(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),e7=Et(/{{[\w\W]*|^[\w\W]*}}/g),i7=Et(/<%[\w\W]*|^[\w\W]*%>/g),r7=Et(/\${[\w\W]*/g),o7=Et(/^data-[\-\w.\u00B7-\uFFFF]+$/),a7=Et(/^aria-[\-\w]+$/),K1=Et(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),s7=Et(/^(?:\w+script|data):/i),n7=Et(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),l7=Et(/^html$/i),c7=Et(/^[a-z][.\w]*(-[.\w]+)+$/i),X1=Et(/<[/\w!]/g),J1=Et(/<[/\w]/g),d7=Et(/<\/no(script|embed|frames)/i),h7=Et(/\/>/i),ne={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Q1=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],u7=$t(Q({},Q1)),p7=function(){const r={};return $i(Q1,t=>{r[t]=Et(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),$t(r)}(),f7=function(){return typeof window>"u"?null:window},w7=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;
vendor: 19,813 bytes, lines 27-28
27const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(i=e.getAttribute(o));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(n){return n},createScriptURL(n){return n}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},td=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},oi=function(t,e,i,o){return Yt(t,e)&&tr(t[e])?Q(o.base?se(o.base):{},t[e],o.transform):i},ln=function(t,e,i){const o=Yt(t,e)?t[e]:void 0;return o&&typeof o=="object"?se(o):i()};function ed(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f7();const t=x=>ed(x);if(t.version="3.4.14",t.removed=[],!r||!r.document||r.document.nodeType!==ne.document||!r.Element)return t.isSupported=!1,t;let e=r.document;const i=e,o=i.currentScript;r.DocumentFragment;const a=r.HTMLTemplateElement,n=r.Node,d=r.Element,l=r.NodeFilter,h=r.NamedNodeMap;h===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;const p=r.DOMParser,w=r.trustedTypes,g=d.prototype,v=ge(g,"cloneNode"),m=ge(g,"remove"),b=ge(g,"nextSibling"),k=ge(g,"childNodes"),T=ge(g,"parentNode"),$=ge(g,"shadowRoot"),E=ge(g,"attributes"),O=n&&n.prototype?ge(n.prototype,"nodeType"):null,L=n&&n.prototype?ge(n.prototype,"nodeName"):null,V=n&&n.prototype?ge(n.prototype,"ownerDocument"):null,Z=function(u){return O?O(u):u.nodeType},K=function(u){return L?L(u):u.nodeName};if(typeof a=="function"){const x=e.createElement("template");x.content&&x.content.ownerDocument&&(e=x.content.ownerDocument)}let W,j="",it,at=!1,J=0;const rt=function(){if(J>0)throw Ti('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},nt=function(u){rt(),J++;try{return W.createHTML(u)}finally{J--}},Ot=function(u){rt(),J++;try{return W.createScriptURL(u)}finally{J--}},Tt=function(){return at||(it=w7(w,o),at=!0),it},pt=e,xt=pt.implementation,Xt=pt.createNodeIterator,or=pt.createDocumentFragment,na=pt.getElementsByTagName,Ii=i.importNode;let st=td();t.isSupported=typeof H1=="function"&&typeof T=="function"&&xt&&xt.createHTMLDocument!==void 0;const eo=e7,pn=i7,_g=r7,mg=o7,bg=a7,yg=s7,md=n7,Cg=c7;let bd=K1,ht=null;const fn=Q({},[...W1,...on,...an,...sn,...G1]);let ut=null;const wn=Q({},[...q1,...nn,...Y1,...ta]);let Pe=Object.seal(Qi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),io=null,yd=null;const si=Object.seal(Qi(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Cd=!0,gn=!0,Ad=!1,xd=!0,ni=!1,Oi=!0,Mi=!1,vn=!1,la=null,ca=null,_n=!1,ar=!1,da=!1,ha=!1,kd=!0,Sd=!1;const $d="user-content-";let mn=!0,bn=!1,sr={},nr=null;const Td=Q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ed=null;const Ld=Q({},["audio","video","img","source","image","track"]);let Id=null;const Od=Q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ua="http://www.w3.org/1998/Math/MathML",pa="http://www.w3.org/2000/svg",De="http://www.w3.org/1999/xhtml";let lr=De,yn=!1,Cn=null;const Ag=Q({},[ua,pa,De],rn),Md=$t(["mi","mo","mn","ms","mtext"]);let An=Q({},Md);const Pd=$t(["annotation-xml"]);let xn=Q({},Pd);const xg=Q({},["title","style","font","a","script"]);let ro=null;const kg=["application/xhtml+xml","text/html"],Sg="text/html";let bt=null,cr=null;const $g=e.createElement("form"),Dd=function(u){return u instanceof RegExp||u instanceof Function},kn=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(cr&&cr===u)return;(!u||typeof u!="object")&&(u={}),u=se(u),ro=kg.indexOf(u.PARSER_MEDIA_TYPE)===-1?Sg:u.PARSER_MEDIA_TYPE,bt=ro==="application/xhtml+xml"?rn:qr,ht=oi(u,"ALLOWED_TAGS",fn,{transform:bt}),ut=oi(u,"ALLOWED_ATTR",wn,{transform:bt}),Cn=oi(u,"ALLOWED_NAMESPACES",Ag,{transform:rn}),Id=oi(u,"ADD_URI_SAFE_ATTR",Od,{transform:bt,base:Od}),Ed=oi(u,"ADD_DATA_URI_TAGS",Ld,{transform:bt,base:Ld}),nr=oi(u,"FORBID_CONTENTS",Td,{transform:bt}),io=oi(u,"FORBID_TAGS",se({}),{transform:bt}),yd=oi(u,"FORBID_ATTR",se({}),{transform:bt}),sr=Yt(u,"USE_PROFILES")?u.USE_PROFILES&&typeof u.USE_PROFILES=="object"?se(u.USE_PROFILES):u.USE_PROFILES:!1,Cd=u.ALLOW_ARIA_ATTR!==!1,gn=u.ALLOW_DATA_ATTR!==!1,Ad=u.ALLOW_UNKNOWN_PROTOCOLS||!1,xd=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ni=u.SAFE_FOR_TEMPLATES||!1,Oi=u.SAFE_FOR_XML!==!1,Mi=u.WHOLE_DOCUMENT||!1,ar=u.RETURN_DOM||!1,da=u.RETURN_DOM_FRAGMENT||!1,ha=u.RETURN_TRUSTED_TYPE||!1,_n=u.FORCE_BODY||!1,kd=u.SANITIZE_DOM!==!1,Sd=u.SANITIZE_NAMED_PROPS||!1,mn=u.KEEP_CONTENT!==!1,bn=u.IN_PLACE||!1,bd=J0(u.ALLOWED_URI_REGEXP)?u.ALLOWED_URI_REGEXP:K1,lr=typeof u.NAMESPACE=="string"?u.NAMESPACE:De,An=ln(u,"MATHML_TEXT_INTEGRATION_POINTS",()=>Q({},Md)),xn=ln(u,"HTML_INTEGRATION_POINTS",()=>Q({},Pd));const _=ln(u,"CUSTOM_ELEMENT_HANDLING",()=>Qi(null));if(Pe=Qi(null),Yt(_,"tagNameCheck")&&Dd(_.tagNameCheck)&&(Pe.tagNameCheck=_.tagNameCheck),Yt(_,"attributeNameCheck")&&Dd(_.attributeNameCheck)&&(Pe.attributeNameCheck=_.attributeNameCheck),Yt(_,"allowCustomizedBuiltInElements")&&typeof _.allowCustomizedBuiltInElements=="boolean"&&(Pe.allowCustomizedBuiltInElements=_.allowCustomizedBuiltInElements),Et(Pe),ni&&(gn=!1),da&&(ar=!0),sr&&(ht=Q({},G1),ut=Qi(null),sr.html===!0&&(Q(ht,W1),Q(ut,q1)),sr.svg===!0&&(Q(ht,on),Q(ut,nn),Q(ut,ta)),sr.svgFilters===!0&&(Q(ht,an),Q(ut,nn),Q(ut,ta)),sr.mathMl===!0&&(Q(ht,sn),Q(ut,Y1),Q(ut,ta))),si.tagCheck=null,si.attributeCheck=null,Yt(u,"ADD_TAGS")&&(typeof u.ADD_TAGS=="function"?si.tagCheck=u.ADD_TAGS:tr(u.ADD_TAGS)&&(ht===fn&&(ht=se(ht)),Q(ht,u.ADD_TAGS,bt))),Yt(u,"ADD_ATTR")&&(typeof u.ADD_ATTR=="function"?si.attributeCheck=u.ADD_ATTR:tr(u.ADD_ATTR)&&(ut===wn&&(ut=se(ut)),Q(ut,u.ADD_ATTR,bt))),Yt(u,"ADD_FORBID_CONTENTS")&&tr(u.ADD_FORBID_CONTENTS)&&(nr===Td&&(nr=se(nr)),Q(nr,u.ADD_FORBID_CONTENTS,bt)),mn&&(ht["#text"]=!0),Mi&&Q(ht,["html","head","body"]),ht.table&&(Q(ht,["tbody"]),delete io.tbody),u.TRUSTED_TYPES_POLICY){if(typeof u.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ti('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof u.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ti('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const y=W;W=u.TRUSTED_TYPES_POLICY;try{j=nt("")}catch(B){throw W=y,B}}else u.TRUSTED_TYPES_POLICY===null?(W=void 0,j=""):(W===void 0&&(W=Tt()),W&&typeof j=="string"&&(j=nt("")));$t&&$t(u),cr=u},Bd=Q({},[...on,...an,...Q0]),Vd=Q({},[...sn,...t7]),Tg=function(u,_,y){return _.namespaceURI===De?u==="svg":_.namespaceURI===ua?u==="svg"&&(y==="annotation-xml"||An[y]):!!Bd[u]},Eg=function(u,_,y){return _.namespaceURI===De?u==="math":_.namespaceURI===pa?u==="math"&&xn[y]:!!Vd[u]},Lg=function(u,_,y){return _.namespaceURI===pa&&!xn[y]||_.namespaceURI===ua&&!An[y]?!1:!Vd[u]&&(xg[u]||!Bd[u])},Ig=function(u){let _=T(u);(!_||!_.tagName)&&(_={namespaceURI:lr,tagName:"template"});const y=qr(u.tagName),B=qr(_.tagName);return Cn[u.namespaceURI]?u.namespaceURI===pa?Tg(y,_,B):u.namespaceURI===ua?Eg(y,_,B):u.namespaceURI===De?Lg(y,_,B):!!(ro==="application/xhtml+xml"&&Cn[u.namespaceURI]):!1},li=function(u){Gr(t.removed,{element:u});try{T(u).removeChild(u)}catch{if(m(u),!T(u))throw Ti("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Hd=function(u,_,y){try{u.removeAttributeNode(_)}catch{try{u.removeAttribute(y)}catch{}}},fa=function(u){wa(u);const _=k(u);if(_){const B=[];$i(_,N=>{Gr(B,N)}),$i(B,N=>{try{m(N)}catch{}})}const y=E(u);if(y)for(let B=y.length-1;B>=0;--B){const N=y[B],q=N&&N.name;typeof q=="string"&&Hd(u,N,q)}},Pi=function(u,_,y){if(!y)try{y=_.getAttributeNode(u)}catch{y=null}Gr(t.removed,{attribute:y||null,from:_});try{y?_.removeAttributeNode(y):_.removeAttribute(u)}catch{try{_.removeAttribute(u)}catch{}}if(u==="is")if(ar||da)try{li(_)}catch{}else try{_.setAttribute(u,"")}catch{}},Og=function(u){const _=E(u);if(_)for(let y=_.length-1;y>=0;--y){const B=_[y],N=B&&B.name;typeof N!="string"||ut[bt(N)]||Hd(u,B,N)}},wa=function(u){const _=[u];for(;_.length>0;){const y=_.pop();Z(y)===ne.element&&Og(y);const N=k(y);if(N)for(let q=N.length-1;q>=0;--q)_.push(N[q])}},Rd=function(u,_){return Oi?u==="patchsrc"?!0:u==="for"&&_!=="label"&&_!=="output":!1},Mg=function(u){if(!Oi)return;const _=[u];for(;_.length>0;){const y=_.pop(),B=Z(y);if(B===ne.processingInstruction||B===ne.comment&&Ht(J1,y.data)){try{m(y)}catch{}continue}if(B===ne.element){const q=y,lt=bt(K(y));try{q.hasAttribute&&q.hasAttribute("patchsrc")&&q.removeAttribute("patchsrc"),q.hasAttribute&&q.hasAttribute("for")&&Rd("for",lt)&&q.removeAttribute("for")}catch{}}const N=k(y);if(N)for(let q=N.length-1;q>=0;--q)_.push(N[q])}},zd=function(u){let _=null,y=null;if(_n)u="<remove></remove>"+u;else{const q=N1(u,/^[\r\n\t ]+/);y=q&&q[0]}ro==="application/xhtml+xml"&&lr===De&&(u='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+u+"</body></html>");const B=W?nt(u):u;if(lr===De)try{_=new p().parseFromString(B,ro)}catch{}if(!_||!_.documentElement){_=xt.createDocument(lr,"template",null);try{_.documentElement.innerHTML=yn?j:B}catch{}}const N=_.body||_.documentElement;return u&&y&&N.insertBefore(e.createTextNode(y),N.childNodes[0]||null),lr===De?na.call(_,Mi?"html":"body")[0]:Mi?_.documentElement:N},Fd=function(u){const _=V?V(u):u.ownerDocument;return Xt.call(_||u,u,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ga=function(u){return u=Yr(u,eo," "),u=Yr(u,pn," "),u=Yr(u,_g," "),u},Sn=function(u){var _;u.normalize();const y=V?V(u):u.ownerDocument,B=Xt.call(y||u,u,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let N=B.nextNode();for(;N;)N.data=ga(N.data),N=B.nextNode();const q=(_=u.querySelectorAll)===null||_===void 0?void 0:_.call(u,"template");q&&$i(q,lt=>{dr(lt.content)&&Sn(lt.content)})},va=function(u){const _=L?L(u):null;return typeof _!="string"||bt(_)!=="form"?!1:typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||u.attributes!==E(u)||typeof u.removeAttribute!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function"||u.nodeType!==O(u)||u.childNodes!==k(u)},dr=function(u){if(!O||typeof u!="object"||u===null)return!1;try{return O(u)===ne.documentFragment}catch{return!1}},oo=function(u){if(!O||typeof u!="object"||u===null)return!1;try{return typeof O(u)=="number"}catch{return!1}};function Be(x,u,_){x.length!==0&&$i(x,y=>{y.call(t,u,_,cr)})}const Pg=function(u,_){return!!(Oi&&u.hasChildNodes()&&!oo(u.firstElementChild)&&Ht(X1,u.textContent)&&Ht(X1,u.innerHTML)||Oi&&u.namespaceURI===De&&u7[_]&&(oo(u.firstElementChild)||typeof u.textContent=="string"&&Ht(p7[_],u.textContent))||u.nodeType===ne.processingInstruction||Oi&&u.nodeType===ne.comment&&Ht(J1,u.data))},_a=function(u,_){if(u instanceof RegExp)return Ht(u,_);if(u instanceof Function){for(var y=arguments.length,B=new Array(y>2?y-2:0),N=2;N<y;N++)B[N-2]=arguments[N];return!!u(_,...B)}return!1},Dg=function(u,_,y){if(!io[_]&&Wd(_)&&_a(Pe.tagNameCheck,_))return!1;if(mn&&!nr[_]){const B=T(u),N=k(u);if(N&&B){const q=N.length;for(let lt=q-1;lt>=0;--lt){const ft=u===y?v(N[lt],!0):N[lt];B.insertBefore(ft,b(u))}}}return li(u),!0},Nd=function(u,_,y,B){return u.length===0?_:_===y||_===B?se(_):_},jd=function(u,_){return u===_||T(u)!==null?!1:(bn&&wa(u),!0)},Ud=function(u,_){if(Be(st.beforeSanitizeElements,u,null),jd(u,_))return!0;if(va(u))return li(u),!0;const y=bt(K(u));if(ht=Nd(st.uponSanitizeElement,ht,fn,la),Be(st.uponSanitizeElement,u,{tagName:y,allowedTags:ht}),jd(u,_))return!0;if(Pg(u,y))return li(u),!0;if(io[y]||!(si.tagCheck instanceof Function&&si.tagCheck(y))&&!ht[y]){const N=Dg(u,y,_);return N===!1&&Be(st.afterSanitizeElements,u,null),N}if(Z(u)===ne.element&&!Ig(u)||(y==="noscript"||y==="noembed"||y==="noframes")&&Ht(d7,u.innerHTML))return li(u),!0;if(ni&&u.nodeType===ne.text){const N=ga(u.textContent);u.textContent!==N&&(Gr(t.removed,{element:u.cloneNode()}),u.textContent=N)}return Be(st.afterSanitizeElements,u,null),!1},Zd=function(u,_,y){if(yd[_]||Rd(_,u)||kd&&(_==="id"||_==="name")&&(y in e||y in $g))return!1;const B=ut[_]||si.attributeCheck instanceof Function&&si.attributeCheck(_,u);return gn&&Ht(mg,_)||Cd&&Ht(bg,_)?!0:B?Id[_]||Ht(bd,Yr(y,md,""))||(_==="src"||_==="xlink:href"||_==="href")&&u!=="script"&&j1(y,"data:")===0&&Ed[u]||Ad&&!Ht(yg,Yr(y,md,""))?!0:!y:Wd(u)&&_a(Pe.tagNameCheck,u)&&_a(Pe.attributeNameCheck,_,u)||_==="is"&&Pe.allowCustomizedBuiltInElements&&_a(Pe.tagNameCheck,y)},Bg=Q({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wd=function(u){return!Bg[qr(u)]&&Ht(Cg,u)},Vg=function(u,_,y,B){if(W&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!y)switch(w.getAttributeType(u,_)){case"TrustedHTML":return nt(B);case"TrustedScriptURL":return Ot(B)}return B},Hg=function(u,_,y,B){try{y?u.setAttributeNS(y,_,B):u.setAttribute(_,B),va(u)?li(u):F1(t.removed)}catch{Pi(_,u)}},Gd=function(u){Be(st.beforeSanitizeAttributes,u,null);const _=u.attributes;if(!_||va(u))return;ut=Nd(st.uponSanitizeAttribute,ut,wn,ca);const y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ut,forceKeepAttr:void 0};let B=_.length;const N=bt(u.nodeName);for(;B--;){const q=_[B],lt=q.name,ft=q.namespaceURI,Jt=q.value,Qt=bt(lt),Tn=Jt;let jt=lt==="value"?Tn:W0(Tn);if(y.attrName=Qt,y.attrValue=jt,y.keepAttr=!0,y.forceKeepAttr=void 0,Be(st.uponSanitizeAttribute,u,y),jt=y.attrValue,Sd&&(Qt==="id"||Qt==="name")&&j1(jt,$d)!==0&&(Pi(lt,u,q),jt=$d+jt),Oi&&Ht(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,jt)){Pi(lt,u,q);continue}if(Qt==="attributename"&&N1(jt,"href")){Pi(lt,u,q);continue}if(!y.forceKeepAttr){if(!y.keepAttr){Pi(lt,u,q);continue}if(!xd&&Ht(h7,jt)){Pi(lt,u,q);continue}if(ni&&(jt=ga(jt)),!Zd(N,Qt,jt)){Pi(lt,u,q);continue}jt=Vg(N,Qt,ft,jt),jt!==Tn&&Hg(u,lt,ft,jt)}}Be(st.afterSanitizeAttributes,u,null)},ma=function(u){let _=null;const y=Fd(u);for(Be(st.beforeSanitizeShadowDOM,u,null);_=y.nextNode();)if(Be(st.uponSanitizeShadowNode,_,null),Ud(_,u),Gd(_),dr(_.content)&&ma(_.content),Z(_)===ne.element){const B=$(_);dr(B)&&($n(B),ma(B))}Be(st.afterSanitizeShadowDOM,u,null)},$n=function(u){const _=[{node:u,shadow:null}];for(;_.length>0;){const y=_.pop();if(y.shadow){ma(y.shadow);continue}const B=y.node,q=Z(B)===ne.element,lt=k(B);if(lt)for(let ft=lt.length-1;ft>=0;--ft)_.push({node:lt[ft],shadow:null});if(q){const ft=L?L(B):null;if(typeof ft=="string"&&bt(ft)==="template"){const Jt=B.content;dr(Jt)&&_.push({node:Jt,shadow:null})}}if(q){const ft=$(B);dr(ft)&&_.push({node:null,shadow:ft},{node:ft,shadow:null})}}};return t.sanitize=function(x){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,y=null,B=null,N=null;if(yn=!x,yn&&(x="<!-->"),typeof x!="string"&&!oo(x)&&(x=X0(x),typeof x!="string"))throw Ti("dirty is not a string, aborting");if(!t.isSupported)return x;vn?(ht=la,ut=ca):kn(u),(st.uponSanitizeElement.length>0||st.uponSanitizeAttribute.length>0)&&(ht=se(ht)),st.uponSanitizeAttribute.length>0&&(ut=se(ut)),t.removed=[];const q=bn&&typeof x!="string"&&oo(x);if(q){Mg(x);const Jt=K(x);if(typeof Jt=="string"){const Qt=bt(Jt);if(!ht[Qt]||io[Qt])throw fa(x),Ti("root node is forbidden and cannot be sanitized in-place")}if(va(x))throw fa(x),Ti("root node is clobbered and cannot be sanitized in-place");try{$n(x)}catch(Qt){throw fa(x),Qt}}else if(oo(x))_=zd("<!---->"),y=_.ownerDocument.importNode(x,!0),y.nodeType===ne.element&&y.nodeName==="BODY"||y.nodeName==="HTML"?_=y:_.appendChild(y),$n(y);else{if(!ar&&!ni&&!Mi&&x.indexOf("<")===-1)return W&&ha?nt(x):x;if(_=zd(x),!_)return ar?null:ha?j:""}_&&_n&&li(_.firstChild);const lt=q?x:_;try{const Jt=Fd(lt);for(;B=Jt.nextNode();)Ud(B,lt),Gd(B),dr(B.content)&&ma(B.content)}catch(Jt){throw q&&(fa(x),$i(t.removed,Qt=>{Qt.element&&wa(Qt.element)})),Jt}if(q)return $i(t.removed,Jt=>{Jt.element&&wa(Jt.element)}),ni&&Sn(x),x;if(ar){if(ni&&Sn(_),da)for(N=or.call(_.ownerDocument);_.firstChild;)N.appendChild(_.firstChild);else N=_;return(ut.shadowroot||ut.shadowrootmode)&&(N=Ii.call(i,N,!0)),N}let ft=Mi?_.outerHTML:_.innerHTML;return Mi&&ht["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&Ht(l7,_.ownerDocument.doctype.name)&&(ft="<!DOCTYPE "+_.ownerDocument.doctype.name+`>
28`+ft),ni&&(ft=ga(ft)),W&&ha?nt(ft):ft},t.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kn(x),vn=!0,la=ht,ca=ut},t.clearConfig=function(){cr=null,vn=!1,la=null,ca=null,W=it,j=""},t.isValidAttribute=function(x,u,_){cr||kn({});const y=bt(x),B=bt(u);return Zd(y,B,_)},t.addHook=function(x,u){typeof u=="function"&&Yt(st,x)&&Gr(st[x],u)},t.removeHook=function(x,u){if(Yt(st,x)){if(u!==void 0){const _=U0(st[x],u);return _===-1?void 0:Z0(st[x],_,1)[0]}return F1(st[x])}},t.removeHooks=function(x){Yt(st,x)&&(st[x]=[])},t.removeAllHooks=function(){st=td()},t}var g7=ed();const v7=P`:host{display:contents}.awc-toaster__region{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}.awc-toaster__zone{position:fixed;z-index:var(--awc-toast-zone-z-index,99999999);pointer-events:none}.awc-toaster__zone--top-center{top:calc(var(--awc-toast-zone-offset-y,20px) + var(--awc-toast-zone-shift,0px));left:50%;--awc-toast-stack-dir:1;--awc-toast-stack-tx:-50%}.awc-toaster__zone--bottom-left{bottom:calc(var(--awc-toast-zone-offset-y,20px) + var(--awc-toast-zone-shift,0px));left:var(--awc-toast-zone-offset-x,20px);--awc-toast-stack-dir:-1;--awc-toast-stack-tx:0px}:host([root-id]) .awc-toaster__zone{position:absolute}:host([root-id][strategy=fixed]) .awc-toaster__zone{position:fixed}:host([root-id][strategy=fixed]) .awc-toaster__zone--top-center{top:calc(var(--awc-toast-root-box-top,0px) + var(--awc-toast-zone-offset-y,20px) + var(--awc-toast-zone-shift,0px));left:calc(var(--awc-toast-root-box-left,0px) + var(--awc-toast-root-box-width,100vw)/ 2)}:host([root-id][strategy=fixed]) .awc-toaster__zone--bottom-left{bottom:calc(var(--awc-toast-root-box-bottom,0px) + var(--awc-toast-zone-offset-y,20px) + var(--awc-toast-zone-shift,0px));left:calc(var(--awc-toast-root-box-left,0px) + var(--awc-toast-zone-offset-x,20px))}.awc-toaster__zone--bottom-left .awc-toast{bottom:0;left:0;transform-origin:center bottom}.awc-toaster__zone--top-center .awc-toast{top:0;left:0;transform-origin:center top}.awc-toaster__zone.expanded .awc-toast{transform:translateX(var(--awc-toast-stack-tx,0)) translateY(calc(var(--awc-toast-stack-dir,1) * var(--awc-toast-expanded-y,calc(var(--awc-toast-index,0) * 60px)))) translateX(var(--awc-toast-swipe-x,0)) translateY(var(--awc-toast-swipe-y,0)) scale(1);opacity:1;visibility:visible;transition:var(--awc-toast-transition),visibility 0s linear 0s}.awc-toaster__zone.expanded .awc-toast::after{content:"";position:absolute;
28left:0;right:0;height:12px}.awc-toaster__zone--bottom-left.expanded .awc-toast::after{top:-12px}.awc-toaster__zone--top-center.expanded .awc-toast::after{bottom:-12px}.awc-toast.entering,.awc-toast.leaving{opacity:0;transform:translateX(var(--awc-toast-stack-tx,0)) translateY(calc(var(--awc-toast-stack-dir,1) * -130%)) scale(var(--awc-toast-stack-scale,1))}.awc-toaster__zone.expanded .awc-toast.entering,.awc-toaster__zone.expanded .awc-toast.leaving{opacity:0;transform:translateX(var(--awc-toast-stack-tx,0)) translateY(calc(var(--awc-toast-stack-dir,1) * (var(--awc-toast-expanded-y,calc(var(--awc-toast-index,0) * 60px)) - 100%))) scale(1)}.awc-toast{--awc-toast-stack-peek:14px;--awc-toast-stack-scale:calc(1 - var(--awc-toast-index, 0) * 0.05);box-sizing:border-box;position:absolute;z-index:var(--awc-toast-z,1);opacity:var(--awc-toast-opacity,1);display:flex;align-items:flex-start;pointer-events:auto;touch-action:none;cursor:var(--awc-toast-cursor,pointer);border-radius:var(--corner-radius-m);box-shadow:var(--awc-toast-box-shadow,0 5px 20px 0 #4048621A);padding:var(--awc-toast-padding,12px 16px);max-width:var(--awc-toast-max-width,300px);width:var(--awc-toast-width,100%);min-width:var(--awc-toast-min-width,300px);min-height:var(--awc-toast-min-height,44px);transform:translateX(var(--awc-toast-stack-tx,0)) translateY(calc(var(--awc-toast-stack-dir,1) * var(--awc-toast-index,0) * var(--awc-toast-stack-peek))) translateX(var(--awc-toast-swipe-x,0)) translateY(var(--awc-toast-swipe-y,0)) scale(var(--awc-toast-stack-scale));--awc-toast-transition:transform var(--awc-duration-slow, 0.3s) cubic-bezier(0.21, 1.02, 0.73, 1),opacity var(--awc-duration-slow, 0.3s) ease,background-color var(--awc-duration-slow, 0.3s) ease;transition:var(--awc-toast-transition)}.awc-toast.entering,.awc-toast.leaving,.awc-toaster__zone.expanded .awc-toast{will-change:transform,opacity}.awc-toast.swiping,.awc-toaster__zone.expanded .awc-toast.swiping{transition:none;will-change:transform}.awc-toast.collapsed-hidden{visibility:hidden;transition:var(--awc-toast-transition),visibility 0s linear var(--awc-duration-slow,.3s)}.awc-toast--success{background:var(--awc-toast-background-color-success,#2fc998EB)}.awc-toast--success:hover{background:var(--awc-toast-background-color-success-hover,#24b887EB)}.awc-toast--error{background:var(--awc-toast-background-color-error,#ff7188EB)}.awc-toast--error:hover{background:var(--awc-toast-background-color-error-hover,#e44662EB)}.awc-toast--info{background:var(--awc-toast-background-color-info,#919BB6EB)}.awc-toast--info:hover{background:var(--awc-toast-background-color-info-hover,#7d87A2EB)}.awc-toast--warning{background:var(--awc-toast-background-color-warning,#fd9038EB)}.awc-toast--warning:hover{background:var(--awc-toast-background-color-warning-hover,#fb7C28EB)}.awc-toast__main{width:100%;max-width:100%;height:inherit;display:flex;flex-direction:column;align-items:start;flex-wrap:wrap;margin-inline:12px;min-width:0;row-gap:6px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word}.awc-toast__main.no-content{row-gap:0}.awc-toast__icon{display:flex;align-items:end;justify-content:center;fill:var(--awc-toast-icon-color,var(--colors-white));height:18px;aspect-ratio:1}.awc-toast__spinner{box-sizing:border-box;width:16px;height:16px;border:2px solid var(--awc-toast-icon-color,var(--colors-white));border-top-color:transparent;border-radius:50%;animation:awc-toast-spin .7s linear infinite}@keyframes awc-toast-spin{to{transform:rotate(360deg)}}.awc-toaster__zone:not(.expanded) .awc-toast.collapsed-hidden .awc-toast__spinner{animation-play-state:paused}.awc-toast__close{position:relative;z-index:99999;margin-left:auto;display:flex;align-items:end;justify-content:center;height:18px;aspect-ratio:1;cursor:pointer}.awc-toast__close svg{transition:fill var(--awc-duration-slow,.3s) ease;fill:var(--awc-toast-close-icon-color,rgba(255,255,255,.5))}.awc-toast__close:hover svg{fill:var(--awc-toast-close-icon-color-hover,var(--colors-white))}.awc-toast__close:focus-visible{outline:2px solid var(--colors-white);outline-offset:1px;border-radius:2px}.awc-toast__content,.awc-toast__text{font:var(--awc-font-text-regular-14);color:var(--awc-toast-content-color,var(--colors-white));flex-shrink:1;max-width:100%;margin:0}.awc-toast__actions{display:flex;gap:8px;margin-top:2px}
28.awc-toast__action,.awc-toast__cancel{font:var(--awc-font-text-regular-14);color:var(--awc-toast-content-color,var(--colors-white));cursor:pointer;border-radius:4px;padding:4px 8px;border:1px solid rgba(255,255,255,.16);background-color:rgba(255,255,255,.16);transition:background-color var(--awc-duration-slow,.3s) ease}.awc-toast__cancel{background-color:transparent}.awc-toast__action:hover,.awc-toast__cancel:hover{background-color:rgba(255,255,255,.28)}.awc-toast__action:focus-visible,.awc-toast__cancel:focus-visible{outline:2px solid var(--colors-white);outline-offset:1px}`,Ei="";let _7=0,id=new WeakMap;const rd=new Set;let od=!1;function m7(r){if(r===void 0||r==="")return{kind:"default"};if(typeof document>"u")return{kind:"default"};let t;if(typeof r=="string")try{t=document.querySelector(r)}catch{return{kind:"missing"}}else t=r;return t instanceof HTMLElement?t===document.body||t===document.documentElement?{kind:"default"}:t.isConnected?{kind:"element",element:t}:{kind:"missing"}:{kind:"missing"}}function b7(r){let t=id.get(r);return t===void 0&&(t=`r${++_7}`,id.set(r,t)),t}function y7(r){const t=typeof r=="string"?`"${r}"`:`<${r.tagName.toLowerCase()}>`;rd.has(t)||(rd.add(t),console.warn(`[awc-toast] root ${t} не найден или не в документе — тост показан в дефолтном контейнере (document.body).`))}function C7(){od=!0}function A7(){return od}const x7=S`<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.7071 3.29289C15.0976 3.68342 15.0976 4.31658 14.7071 4.70711L6.70711 12.7071C6.31658 13.0976 5.68342 13.0976 5.29289 12.7071L1.29289 8.70711C0.902369 8.31658 0.902369 7.68342 1.29289 7.29289C1.68342 6.90237 2.31658 6.90237 2.70711 7.29289L6 10.5858L13.2929 3.29289C13.6834 2.90237 14.3166 2.90237 14.7071 3.29289Z"/></svg>`,ad=S`<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.5867 2.52673C9.44781 0.491086 6.55219 0.491092 5.4133 2.52673L0.390801 11.504C-0.732332 13.5115 0.699403 16 2.9775 16H13.0225C15.3006 16 16.7323 13.5115 15.6092 11.504L10.5867 2.52673ZM7.13777 3.5165C7.5174 2.83795 8.48261 2.83795 8.86223 3.5165L13.8847 12.4937C14.2591 13.1629 13.7819 13.9924 13.0225 13.9924H2.9775C2.21813 13.9924 1.74089 13.1629 2.11527 12.4937L7.13777 3.5165ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V9C9 9.55228 8.55228 10 8 10C7.44772 10 7 9.55228 7 9V7ZM9 12C9 12.5523 8.55228 13 8 13C7.44772 13 7 12.5523 7 12C7 11.4477 7.44772 11 8 11C8.55228 11 9 11.4477 9 12Z"/></svg>`,k7=S`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 5C9 5.55228 8.55229 6 8 6C7.44772 6 7 5.55228 7 5C7 4.44772 7.44772 4 8 4C8.55229 4 9 4.44772 9 5Z" fill="white"/><path d="M9 8C9 7.44772 8.55229 7 8 7C7.44772 7 7 7.44772 7 8V11C7 11.5523 7.44772 12 8 12C8.55229 12 9 11.5523 9 11V8Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8ZM8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8C14 11.3137 11.3137 14 8 14Z" fill="white"/></svg>`,S7=S`<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.70711 3.29289C4.31658 2.90237 3.68342 2.90237 3.29289 3.29289C2.90237 3.68342 2.90237 4.31658 3.29289 4.70711L6.58209 7.9963L3.2921 11.2937C2.90201 11.6847 2.90273 12.3178 3.29369 12.7079C3.68465 13.098 4.31781 13.0973 4.7079 12.7063L7.9963 9.41052L11.2929 12.7071C11.6834 13.0976 12.3166 13.0976 12.7071 12.7071C13.0976 12.3166 13.0976 11.6834 12.7071 11.2929L9.40893 7.99472L12.69 4.70631C13.08 4.31535 13.0793 3.68219 12.6884 3.2921C12.2974 2.90201 11.6642 2.90273 11.2742 3.29369L7.99471 6.5805L4.70711 3.29289Z"/></svg>`;var $7=Object.defineProperty,T7=Object.getOwnPropertyDescriptor,er=(r,t,e,i)=>{for(var o=i>1?void 0:i?T7(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&$7(t,e,o),o};const ai="awc-toaster",sd="sanitize",le="top-center",E7=300,nd=45,L7=5,I7=10,O7=60,M7=64,ea=3;s.AwcToaster=class extends C{constructor(){super(...arguments),this.rootId=Ei,this.strategy="absolute",this.view=[],this.viewIds=new Set,this._sanitizeCache=new Map,this.slotWrappers=new Map,this.announcement="",this.leaving=new Set,this.leavingTimers=new Map,this.pendingDrop=new Set,this.announced=new Map,this.timers=new Map,this.pausedZones=new Set,this.expanded=new Set,this.mounted=new Set,this.enterTimers=new Map,this.collapseTimers=new Map,this.shown=new Set,this.lastOverflowSignature="",this.zoneShift=new Map,this.lastRootBox="",this.rootTrackingKey="",this.swipe=null,this.swipeSuppressClick=new Set,this.forwardingClick=!1,this.leavingDepth=new Map,this.leavingSwipe=new Map,this.handleStoreChange=t=>{const e=t.filter(h=>(h.rootId??Ei)===this.rootId),i=new Set(e.map(h=>h.id)),o=this.visibleIdsAllZones(),a=[],n=new Set;for(const h of this.view)i.has(h.id)||this.leaving.has(h.id)||(o.has(h.id)?a.push(h.id):n.add(h.id));const d=n.size>0?this.purgeRows(n):[];for(const h of a)this.markLeaving(h);for(const h of e)this.viewIds.has(h.id)||(this.view.push(h),this.viewIds.add(h.id));const l=[];for(const h of e){const p=this.announceText(h);p&&this.announced.get(h.id)!==p&&(l.push(p),this.announced.set(h.id,p))}l.length>0&&(this.announcement=l.join(". "));for(const h of[...this.announced.keys()])i.has(h)||this.announced.delete(h);this.view=[...this.view];for(const h of d)h.onHidden?.()}}connectedCallback(){super.connectedCallback(),this.unsubscribe=Bt.subscribe(this.handleStoreChange),this.handleStoreChange(Bt.getAll()),this.syncRo
28otTracking()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe?.(),this.stopRootTracking();for(const t of[...this.timers.keys()])this.clearTimer(t);for(const t of this.leavingTimers.values())clearTimeout(t);this.leavingTimers.clear();for(const t of this.collapseTimers.values())clearTimeout(t);this.collapseTimers.clear();for(const t of this.enterTimers.values())clearTimeout(t);this.enterTimers.clear(),this.drainRaf!==void 0&&(cancelAnimationFrame(this.drainRaf),this.drainRaf=void 0),this.enterRaf!==void 0&&(cancelAnimationFrame(this.enterRaf),this.enterRaf=void 0),this.pendingDrop.clear();for(const t of this.slotWrappers.values())t.text?.remove(),t.content?.remove();this.slotWrappers.clear()}markLeaving(t){const e=this.view.find(i=>i.id===t);if(e){const i=e.position??le;let o=0;for(const a of this.zoneOrdered(i)){if(a.id===t)break;this.leaving.has(a.id)||o++}this.leavingDepth.set(t,o)}this.leaving.add(t),this.clearTimer(t),this.clearEnterTimer(t),this.leavingTimers.set(t,setTimeout(()=>this.dropLeaving(t),E7)),this.requestUpdate()}dropLeaving(t){this.leavingTimers.delete(t),this.pendingDrop.add(t),this.scheduleDrain()}scheduleDrain(){this.drainRaf===void 0&&(this.drainRaf=requestAnimationFrame(()=>{this.drainRaf=void 0,this.flushDrop()}))}flushDrop(){if(this.pendingDrop.size===0)return;const t=this.pendingDrop;this.pendingDrop=new Set;const e=this.purgeRows(t);this.requestUpdate();for(const i of e)i.onHidden?.()}purgeRows(t){const e=[],i=[];for(const o of this.view)t.has(o.id)?e.push(o):i.push(o);this.view=i;for(const o of t){this.viewIds.delete(o),this.shown.delete(o),this.mounted.delete(o),this.swipeSuppressClick.delete(o),this.leaving.delete(o),this.leavingDepth.delete(o),this.leavingSwipe.delete(o);const a=this.slotWrappers.get(o);a&&(a.text?.remove(),a.content?.remove(),this.slotWrappers.delete(o));const n=this.leavingTimers.get(o);n!==void 0&&(clearTimeout(n),this.leavingTimers.delete(o)),this.clearEnterTimer(o),this.clearTimer(o)}return e}updated(t){(t.has("strategy")||t.has("rootId"))&&this.syncRootTracking(),this.reconcileSlots();const e=this.visibleIdsAllZones();this.syncTimers(e),this.fireOnShown(),this.measureExpanded(),this.scheduleEnter(e),this.correctOverflow(e)}syncTimers(t){for(const e of this.view)if(!this.leaving.has(e.id)){if(!t.has(e.id)){this.clearTimer(e.id);continue}this.shouldAutoHide(e)&&!this.timers.has(e.id)&&this.startTimer(e)}}shouldAutoHide(t){const e=t.position??le;return t.status!=="loading"&&(t.duration??0)>0&&!this.pausedZones.has(e)}startTimer(t){const e=t.id;this.timers.set(e,setTimeout(()=>{this.timers.delete(e),Bt.dismiss(e)},t.duration))}clearTimer(t){const e=this.timers.get(t);e!==void 0&&(clearTimeout(e),this.timers.delete(t))}onStackEnter(t){const e=this.collapseTimers.get(t);e!==void 0&&(clearTimeout(e),this.collapseTimers.delete(t)),this.pausedZones.add(t);for(const i of this.view)(i.position??le)===t&&this.clearTimer(i.id);if(!this.expanded.has(t)){const i=new Set(this.expanded);i.add(t),this.expanded=i}}onStackLeave(t){const e=this.collapseTimers.get(t);e!==void 0&&clearTimeout(e),this.collapseTimers.set(t,setTimeout(()=>{if(this.collapseTimers.delete(t),this.pausedZones.delete(t),this.expanded.has(t)){const i=new Set(this.expanded);i.delete(t),this.expanded=i}this.requestUpdate()},120))}fireOnShown(){for(const t of this.view){if(this.shown.has(t.id)||this.leaving.has(t.id))continue;if(!t.onShown){this.shown.add(t.id);continue}const e=this.shadowRoot?.querySelector(`[data-toast-id="${t.id}"]`);e&&(this.shown.add(t.id),t.onShown(e))}}onRowClick(t,e){this.forwardingClick||this.leaving.has(t.id)||this.swipeSuppressClick.delete(t.id)||(this.maybeForwardToTitleLink(t,e),t.onClick?.(),t.tapToDismiss&&Bt.dismiss(t.id))}maybeForwardToTitleLink(t,e){const i=this.slotWrappers.get(t.id)?.text;if(!i?.classList.contains("awc-toast-slotted__text--link"))return;const o=i.querySelector("a, button");if(o&&!e.composedPath().includes(o)){this.forwardingClick=!0;try{o.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0,cancelable:!0}))}finally{this.forwardingClick=!1}}}allowedSwipeDirs(t){return t==="bottom-left"?{x:-1,y:1}:{x:0,y:-1}}dampen(t){return t*(1/(1.5+Math.abs(t)/20))}onRowPointerDown(t,e){this.leaving.has(e.id)||t.button!==0||(this.swipeSuppressClick.delete(e.id),t.target?.closest("button, .awc-toast__close"))||(this.swipe={id:e.id,pointerId:t.pointerId,startX:t.clientX,startY:t.clientY,axis:null,dragged:!1,offsetX:0,offsetY:0})}onRowPointerMove(t,e){const i=this.swipe;if(!i||i.id!==e.id||i.pointerId!==t.pointerId)return;const o=t.clientX-i.startX,a=t.clientY-i.startY;
28if(!i.axis&&Math.max(Math.abs(o),Math.abs(a))>L7){i.axis=Math.abs(o)>=Math.abs(a)?"x":"y",i.dragged=!0;try{t.currentTarget.setPointerCapture(t.pointerId)}catch{}}const n=this.allowedSwipeDirs(e.position??le);let d=0,l=0;i.axis==="x"?d=n.x!==0&&Math.sign(o)===n.x?o:this.dampen(o):i.axis==="y"&&(l=n.y!==0&&Math.sign(a)===n.y?a:this.dampen(a)),i.offsetX=d,i.offsetY=l;const h=t.currentTarget;h.classList.add("swiping"),h.style.setProperty("--awc-toast-swipe-x",`${d}px`),h.style.setProperty("--awc-toast-swipe-y",`${l}px`)}onRowPointerUp(t,e){const i=this.swipe;if(!i||i.id!==e.id||i.pointerId!==t.pointerId)return;this.swipe=null;const o=t.currentTarget,a=this.allowedSwipeDirs(e.position??le),n=t.clientX-i.startX,d=t.clientY-i.startY;let l=null;if(i.axis==="x"&&a.x!==0&&Math.sign(n)===a.x&&Math.abs(n)>=nd?l=a.x<0?"left":"right":i.axis==="y"&&a.y!==0&&Math.sign(d)===a.y&&Math.abs(d)>=nd&&(l=a.y<0?"up":"down"),l){try{o.releasePointerCapture(t.pointerId)}catch{}this.beginSwipeOut(o,e,l,i.offsetX,i.offsetY),Bt.dismiss(e.id)}else this.releaseSwipe(o,t.pointerId),i.dragged&&this.swipeSuppressClick.add(e.id)}beginSwipeOut(t,e,i,o,a){const n=e.position??le;this.leavingSwipe.set(e.id,{dir:i}),t.classList.remove("swiping");const d=n==="bottom-left"?"":"-50% + ",l=this.expanded.has(n)?"var(--awc-toast-stack-dir, 1) * var(--awc-toast-expanded-y, 0px)":"var(--awc-toast-stack-dir, 1) * var(--awc-toast-index, 0) * var(--awc-toast-stack-peek, 14px)";let h,p;i==="right"?(h=`calc(${d}${o}px + 100%)`,p=`calc(${l} + ${a}px)`):i==="left"?(h=`calc(${d}${o}px - 100%)`,p=`calc(${l} + ${a}px)`):i==="up"?(h=`calc(${d}${o}px)`,p=`calc(${l} + ${a}px - 100%)`):(h=`calc(${d}${o}px)`,p=`calc(${l} + ${a}px + 100%)`),t.style.transform=`translateX(${h}) translateY(${p})`,t.style.opacity="0"}onRowPointerCancel(t,e){const i=this.swipe;!i||i.id!==e.id||i.pointerId!==t.pointerId||(this.swipe=null,this.releaseSwipe(t.currentTarget,t.pointerId))}releaseSwipe(t,e){try{t.releasePointerCapture(e)}catch{}t.classList.remove("swiping"),t.style.removeProperty("--awc-toast-swipe-x"),t.style.removeProperty("--awc-toast-swipe-y")}onCloseClick(t,e){t.stopPropagation(),e.onCloseClick?.(),Bt.dismiss(e.id)}onRowKeydown(t,e){this.leaving.has(e.id)||t.key==="Escape"&&(t.stopPropagation(),Bt.dismiss(e.id))}onCloseKeydown(t,e){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.onCloseClick(t,e))}onActionClick(t,e,i){t.stopPropagation(),i.onClick(e.id)}correctOverflow(t){if(this.leaving.size>0||this.view.some(i=>t.has(i.id)&&!this.mounted.has(i.id)))return;const e=this.overflowSignature();e!==this.lastOverflowSignature&&(this.lastOverflowSignature=e,this.correctZone(le),this.correctZone("bottom-left"))}overflowSignature(){const t=this.view.filter(i=>(i.position??le)==="top-center").length,e=this.view.filter(i=>(i.position??le)==="bottom-left").length;return`${t}:${this.expanded.has("top-center")?1:0}|${e}:${this.expanded.has("bottom-left")?1:0}`}syncRootTracking(){const t=`${this.rootId}|${this.strategy}`;if(t===this.rootTrackingKey||(this.stopRootTracking(),this.rootTrackingKey=t,this.rootId===Ei||this.strategy!=="fixed"))return;const e=this.parentElement;if(!e)return;let i;const o=()=>{i===void 0&&(i=requestAnimationFrame(()=>{i=void 0,this.syncRootBox(e)}))},a=new ResizeObserver(o);a.observe(e),window.addEventListener("scroll",o,{passive:!0,capture:!0}),window.addEventListener("resize",o,{passive:!0}),this.rootBoxCleanup=()=>{i!==void 0&&cancelAnimationFrame(i),a.disconnect(),window.removeEventListener("scroll",o,{capture:!0}),window.removeEventListener("resize",o)},this.syncRootBox(e)}stopRootTracking(){this.rootBoxCleanup?.(),this.rootBoxCleanup=void 0,this.lastRootBox="",this.rootTrackingKey=""}syncRootBox(t){const e=t.getBoundingClientRect(),i=`${e.top}|${e.bottom}|${e.left}|${e.width}`;if(i!==this.lastRootBox&&(this.lastRootBox=i,this.style.setProperty("--awc-toast-root-box-top",`${e.top}px`),this.style.setProperty("--awc-toast-root-box-bottom",`${window.innerHeight-e.bottom}px`),this.style.setProperty("--awc-toast-root-box-left",`${e.left}px`),this.style.setProperty("--awc-toast-root-box-width",`${e.width}px`),this.zoneShift.size!==0)){for(const o of[le,"bottom-left"]){const a=this.shadowRoot?.querySelector(`.awc-toaster__zone--${o}`);a&&this.applyZoneShift(a,o,0)}this.lastOverflowSignature="",this.correctOverflow(this.visibleIdsAllZones())}}containerBounds(){const t=this.rootId===Ei?null:this.parentElement;if(!t)return{top:0,bottom:window.innerHeight};const e=t.getBoundingClientRect();return{top:e.top,bottom:e.bottom}}applyZoneShift(t,e,i){if(i===0){this.zoneShift.delete(e),t.style.removeProperty("--awc-toast-zone-shift");return}this.zoneShift.set(e,i),t.style.setProperty("--awc-toast-zone-shift",`${i}px`)}correctZone(t){const e=this.shadowRoot?.querySelector(`.awc-toaster__zone--${t}`);if(!e)return;const i=e.querySelectorAll('[part~="base"]');if(i.length===0){this.applyZoneShift(e,t,0);return}const o=t==="bottom-left",a=o?i[i.length-1]:i[0],n=e.getBoundingClientRect().top,d=a.offsetHeight,l=this.containerBounds(),h=this.zoneShift.get(t)??0;if(o){const p=n-d,w=n;w>l.bottom?this.applyZoneShift(e,t,h+(w-l.bottom)):p<l.top&&w<=l.bottom&&this.applyZoneShift(e,t,Math.max(0,h-(l.top-p)))}else{const p=n,w=n+d;p<l.top?this.applyZoneShift(e,t,h+(l.top-p)):w>l.bottom&&this.applyZoneShift(e,t,Math.max(0,h-(w-l.bottom)))}}measureExpanded(){for(const e of[le,"bottom-left"]){if(!this.expanded.has(e))continue;const i=this.shadowRoot?.querySelector(`.awc-toaster__zone--${e}`);if(!i)continue;const o=[...i.querySelectorAll(".awc-toast:not(.leaving)")],a=e==="bottom-left"?o.reverse():o,n=a.map(l
28=>l.offsetHeight);let d=0;a.forEach((l,h)=>{l.style.setProperty("--awc-toast-expanded-y",`${d}px`),d+=n[h]+8})}}scheduleEnter(t){const e=this.view.filter(n=>t.has(n.id)&&!this.mounted.has(n.id)&&!this.leaving.has(n.id)&&!this.enterTimers.has(n.id));if(e.length===0)return;const i=this.depthByZone(),o=e.filter(n=>(i.get(n.id)??0)<ea).sort((n,d)=>(i.get(d.id)??0)-(i.get(n.id)??0)),a=new Map;o.forEach((n,d)=>a.set(n.id,d*O7)),this.enterRaf=requestAnimationFrame(()=>{this.enterRaf=void 0;for(const n of e){const d=a.get(n.id)??0;d===0?this.mountEntered(n.id):this.enterTimers.set(n.id,setTimeout(()=>this.mountEntered(n.id),d))}})}mountEntered(t){this.enterTimers.delete(t),!(this.leaving.has(t)||!this.view.some(e=>e.id===t))&&(this.mounted.add(t),this.requestUpdate())}clearEnterTimer(t){const e=this.enterTimers.get(t);e!==void 0&&(clearTimeout(e),this.enterTimers.delete(t))}depthByZone(){const t=new Map;for(const e of["top-center","bottom-left"]){const{depth:i}=this.buildStack(this.partitionZone(this.zoneOrdered(e)).rendered);for(const[o,a]of i)t.set(o,a)}return t}buildStack(t){const e=new Map,i=new Map;let o=0;return t.forEach((a,n)=>{i.set(a.id,t.length-n),this.leaving.has(a.id)||e.set(a.id,o++)}),{depth:e,count:o,z:i}}zoneOrdered(t){return this.view.filter(e=>(e.position??le)===t).reverse()}partitionZone(t){const e=[],i=new Set;let o=0;for(const a of t){if(this.leaving.has(a.id)){e.push(a);continue}o<I7&&(e.push(a),i.add(a.id),o++)}return{rendered:e,visibleIds:i}}visibleIdsAllZones(){const t=new Set;for(const e of["top-center","bottom-left"])for(const i of this.partitionZone(this.zoneOrdered(e)).visibleIds)t.add(i);return t}announceText(t){return(t.text??t.htmlContent??"").replace(/<[^>]*>/g,"").trim()}getIcon(t){switch(t){case"warning":return ad;case"error":return ad;case"info":return k7;default:return x7}}sanitizeFor(t,e){const i=`${e}:${t}`,o=this._sanitizeCache.get(i);if(o!==void 0)return o;let a;if(e==="safety"){const n=document.createElement("div");n.textContent=t,a=n.innerHTML}else e==="unsafe"?a=t:a=g7.sanitize(t);return this._sanitizeCache.size>=M7&&this._sanitizeCache.clear(),this._sanitizeCache.set(i,a),a}reconcileSlots(){const t=new Map;for(const e of["top-center","bottom-left"])for(const i of this.partitionZone(this.zoneOrdered(e)).rendered)t.set(i.id,i);for(const[e,i]of this.slotWrappers)t.has(e)||(i.text?.remove(),i.content?.remove(),this.slotWrappers.delete(e));for(const[e,i]of t)this.reconcileWrapper(e,"text",i.text,i.textSanitize??sd),this.reconcileWrapper(e,"content",i.htmlContent,i.contentSanitize??sd)}reconcileWrapper(t,e,i,o){let a=this.slotWrappers.get(t);const n=a?.[e];if(!i){n&&(n.remove(),a[e]=void 0);return}let d=n;d||(d=document.createElement("div"),d.setAttribute("slot",`awc-toast-${e}-${t}`),d.className=`awc-toast-slotted__${e}`,a||(a={},this.slotWrappers.set(t,a)),a[e]=d,this.appendChild(d));const l=`${o}:${i}`;if(d.getAttribute("data-awc-html")!==l&&(d.innerHTML=this.sanitizeFor(i,o),d.setAttribute("data-awc-html",l),e==="text")){const h=d.querySelectorAll("a, button");let p=!1;if(h.length===1){const w=d.cloneNode(!0);w.querySelectorAll("a, button").forEach(g=>g.remove()),p=(w.textContent??"").trim()===""}d.classList.toggle("awc-toast-slotted__text--link",p)}}renderActions(t){return!t.action&&!t.cancel?A:f`<div class="awc-toast__actions" part="actions">${t.action?f`<button type="button" class="awc-toast__action" part="action" @click="${e=>this.onActionClick(e,t,t.action)}">${t.action.label}</button>`:A} ${t.cancel?f`<button type="button" class="awc-toast__cancel" part="cancel" @click="${e=>this.onActionClick(e,t,t.cancel)}">${t.cancel.label}</button>`:A}</div>`}renderRow(t,e){const i=!!t.text,o=!!t.htmlContent,a=this.leaving.has(t.id),n=t.position??le,d=a?this.leavingDepth.get(t.id)??0:e.depth.get(t.id)??0,l=this.expanded.has(n),h=e.z.get(t.id)??1,p=a?0:d<ea?1:0,w=!a&&(d<ea||l),g=!a&&d>=ea;return f`<div class="${G({"awc-toast":!0,[`awc-toast--${t.type}`]:!0,leaving:a,entering:!a&&!this.mounted.has(t.id),"collapsed-hidden":g,"swipe-out":this.leavingSwipe.has(t.id)})}" data-swipe-dir="${this.leavingSwipe.get(t.id)?.dir??A}" style="${Ar({"--awc-toast-index":String(d),"--awc-toast-z":String(h),"--awc-toast-opacity":String(p),"pointer-events":w?"auto":"none"})}" part="base" data-toast-id="${t.id}" @click="${v=>this.onRowClick(t,v)}" @keydown="${v=>this.onRowKeydown(v,t)}" @pointerdown="${v=>this.onRowPointerDown(v,t)}" @pointermove="${v=>this.onRowPointerMove(v,t)}" @pointerup="${v=>this.onRowPointerUp(v,t)}" @pointercancel="${v=>this.onRowPointerCancel(v,t)}" @mouseenter="${()=>this.onStackEnter(n)}" @mouseleave="${()=>this.onStackLeave(n)}"><div class="awc-toast__icon" part="icon">${t.status==="loading"?f`<span class="awc-toast__spinner"></span>`:this.getIcon(t.type)}</div><div class="awc-toast__main ${o?"":"no-content"}" part="body"><div class="awc-toast__text" part="text">${i?f`<slot name="awc-toast-text-${t.id}"></slot>`:A}</div><div class="awc-toast__content" part="content">${o?f`<slot name="awc-toast-content-${t.id}"></slot>`:A}</div>${this.renderActions(t)}</div>${t.withClose?f`<div class="awc-toast__close" part="close-button" role="button" tabindex="0" aria-label="${Y("awc-toast.close")}" @click="${v=>this.onCloseClick(v,t)}" @keydown="${v=>this.onCloseKeydown(v,t)}">${S7}</div>`:A}</div>`}render(){const t=this.partitionZone(this.zoneOrdered("top-center")),e=this.partitionZone(this.zoneOrdered("bottom-left")),i=this.buildStack(t.rendered),o=this.buildStack(e.rendered),a=t.rendered,n=[...e.rendered].reverse();
28return f`<div class="awc-toaster__region" part="region" aria-live="polite" aria-atomic="true">${this.announcement}</div><div class="${G({"awc-toaster__zone":!0,"awc-toaster__zone--top-center":!0,expanded:this.expanded.has("top-center")})}">${Ws(a,d=>d.id,d=>this.renderRow(d,i))}</div><div class="${G({"awc-toaster__zone":!0,"awc-toaster__zone--bottom-left":!0,expanded:this.expanded.has("bottom-left")})}">${Ws(n,d=>d.id,d=>this.renderRow(d,o))}</div>`}},s.AwcToaster.styles=v7,er([c({type:String,attribute:"root-id"})],s.AwcToaster.prototype,"rootId",2),er([c({type:String,reflect:!0})],s.AwcToaster.prototype,"strategy",2),er([M()],s.AwcToaster.prototype,"view",2),er([M()],s.AwcToaster.prototype,"announcement",2),er([M()],s.AwcToaster.prototype,"expanded",2),s.AwcToaster=er([Ie(),I(ai)],s.AwcToaster);const P7=`${ai}:not([root-id])`;function D7(){if(!A7())return;const r=new Map,t=new Set;for(const e of Bt.getAll()){const i=e.rootId;if(!i)continue;let o=r.get(i);o===void 0&&(o=document.querySelector(`${ai}[root-id="${i}"]`)!==null,r.set(i,o)),o||t.add(i)}for(const e of t)Bt.clear(e)}function ld(r,t){t==="absolute"&&getComputedStyle(r).position==="static"&&(r.style.position="relative")}function Xr(r,t){if(typeof document>"u"||!document.body)return Ei;D7();const e=m7(r);if(e.kind!=="element")return e.kind==="missing"&&r!==void 0&&y7(r),document.querySelector(P7)||document.body.appendChild(document.createElement(ai)),Ei;const i=e.element,o=b7(i);C7();let a=i.querySelector(`:scope > ${ai}`);return a?(a.getAttribute("root-id")!==o&&a.setAttribute("root-id",o),t!==void 0&&a.getAttribute("strategy")!==t&&(a.setAttribute("strategy",t),ld(i,t)),o):(a=document.createElement(ai),a.setAttribute("root-id",o),a.setAttribute("strategy",t??"absolute"),ld(i,t??"absolute"),i.appendChild(a),o)}ye(()=>Xr());var B7=Object.defineProperty,V7=Object.getOwnPropertyDescriptor,Kt=(r,t,e,i)=>{for(var o=i>1?void 0:i?V7(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&B7(t,e,o),o};const cd="awc-toast",ia="sanitize",cn=3e3,Jr="top-center";s.AwcToast=class extends C{constructor(){super(...arguments),this.position=Jr,this.variant="info",this.duration=cn,this.withClose=!1,this.sanitize=!0,this.textSanitize=ia,this.contentSanitize=ia,this.registered=!1}connectedCallback(){super.connectedCallback(),this.registerDeclarative()}hide(){this._toastId&&Bt.dismiss(this._toastId)}show(){H7()}registerDeclarative(){if(this.registered||this._toastId)return;const t=(this.text??this.slottedHTML("awc-toast-text")).trim(),e=(this.htmlContent??this.slottedHTML("awc-toast-content")).trim();!t&&!e||(this.registered=!0,this._toastId=Bt.add({type:this.variant,text:t||void 0,htmlContent:e||void 0,duration:this.duration,position:this.position,withClose:this.withClose,textSanitize:this.textSanitize,contentSanitize:this.contentSanitize,onShown:this.onShown,onHidden:this.onHidden,onClick:this.onClick,onCloseClick:this.onCloseClick}),Xr())}slottedHTML(t){const e=this.querySelector(`[slot="${t}"]`);return e?e.innerHTML:""}render(){return A}},Kt([c({type:String})],s.AwcToast.prototype,"text",2),Kt([c({type:String})],s.AwcToast.prototype,"htmlContent",2),Kt([c({type:String,reflect:!0})],s.AwcToast.prototype,"position",2),Kt([c({type:String,reflect:!0})],s.AwcToast.prototype,"variant",2),Kt([c({type:Number,reflect:!0})],s.AwcToast.prototype,"duration",2),Kt([c({type:Boolean,attribute:"with-close"})],s.AwcToast.prototype,"withClose",2),Kt([c({type:Boolean})],s.AwcToast.prototype,"sanitize",2),Kt([c({type:String})],s.AwcToast.prototype,"textSanitize",2),Kt([c({type:String})],s.AwcToast.prototype,"contentSanitize",2),Kt([c({attribute:!1})],s.AwcToast.prototype,"onShown",2),Kt([c({attribute:!1})],s.AwcToast.prototype,"onHidden",2),Kt([c({attribute:!1})],s.AwcToast.prototype,"onClick",2),Kt([c({attribute:!1})],s.AwcToast.prototype,"onCloseClick",2),s.AwcToast=Kt([I(cd)],s.AwcToast);let dd=!1;function H7(){dd||(dd=!0,console.warn("[awc-toast] handle.show() — no-op: повторный показ закрытого тоста не поддерживается. Создайте новый тост (AwcToast.success/info/error/warning) или используйте loading() + update(
28)."))}function ir(r){return typeof r=="string"?r:r instanceof HTMLElement?r.outerHTML:""}function hd(r){return{position:r?.position??Jr,textSanitize:r?.textSanitize??ia,contentSanitize:r?.contentSanitize??ia,action:r?.action,cancel:r?.cancel,tapToDismiss:r?.tapToDismiss,onShown:r?.onShown,onHidden:r?.onHidden,onClick:r?.onClick??r?.onclick,onCloseClick:r?.onCloseClick}}function R7(r){const t=document.createElement(cd);return t._toastId=r,t}function ra(r,t,e,i){const o=ir(t).trim(),a=ir(e).trim();if(!o&&!a)return null;const n=Xr(i?.root??i?.target,i?.rootStrategy),d=Bt.add({type:r,text:o||void 0,htmlContent:a||void 0,duration:i?.timeOut??cn,withClose:i?.closeButton??!0,rootId:n,...hd(i)});return R7(d)}function ud(r,t,e){const i=ir(r).trim()||Y("awc-toast.loading"),o=ir(t).trim(),a=Xr(e?.root??e?.target,e?.rootStrategy);return Bt.add({type:"info",status:"loading",text:i,htmlContent:o||void 0,duration:0,withClose:!1,rootId:a,...hd(e)})}function z7(r){Bt.dismiss(r)}function pd(r,t){return typeof r=="function"?r(t):r}function F7(r,t,e){const i=ud(t?.loading,void 0,e),o=(a,n)=>{fd(i,{type:a,text:n,status:"default",closeButton:!0,timeOut:e?.timeOut??cn})};return r.then(a=>o("success",pd(t?.success??Y("awc-toast.success"),a)),a=>o("error",pd(t?.error??Y("awc-toast.error"),a))),i}function fd(r,t){const e={},i=t.variant??t.type;i!==void 0&&(e.type=i),t.text!==void 0&&(e.text=ir(t.text).trim()||void 0),t.content!==void 0&&(e.htmlContent=ir(t.content).trim()||void 0),t.status!==void 0&&(e.status=t.status),t.timeOut!==void 0&&(e.duration=t.timeOut),t.closeButton!==void 0&&(e.withClose=t.closeButton),t.tapToDismiss!==void 0&&(e.tapToDismiss=t.tapToDismiss),t.textSanitize!==void 0&&(e.textSanitize=t.textSanitize),t.contentSanitize!==void 0&&(e.contentSanitize=t.contentSanitize),t.action!==void 0&&(e.action=t.action),t.cancel!==void 0&&(e.cancel=t.cancel),t.onClick!==void 0&&(e.onClick=t.onClick),t.onCloseClick!==void 0&&(e.onCloseClick=t.onCloseClick),t.onHidden!==void 0&&(e.onHidden=t.onHidden),Bt.update(r,e)}function N7(r=Jr,t){const e=Xr(t),i=document.querySelector(e===Ei?`${ai}:not([root-id])`:`${ai}[root-id="${e}"]`);let o=i?.shadowRoot?.querySelector(`.awc-toaster__zone--${r}`);return!o&&i&&(i.performUpdate?.(),o=i.shadowRoot?.querySelector(`.awc-toaster__zone--${r}`)??void 0),o??document.body}function j7(){typeof window>"u"||(window.AwcToast={error:(r,t,e)=>ra("error",r,t,e),info:(r,t,e)=>ra("info",r,t,e),success:(r,t,e)=>ra("success",r,t,e),warning:(r,t,e)=>ra("warning",r,t,e),loading:(r,t,e)=>ud(r,t,e),promise:(r,t,e)=>F7(r,t,e),dismiss:r=>z7(r),update:(r,t)=>fd(r,t),clear:()=>Bt.clear(),remove:r=>{const t=typeof r=="string"?r:r?._toastId;t&&Bt.dismiss(t)},getContainer:(r=Jr,t)=>N7(r,t),options:{positionClass:Jr}})}j7();const U7=P`:host{display:block;--awc-list-item-padding:6px 8px;--awc-list-item-min-height:32px;--awc-list-item-radius:var(--corner-radius-m);--awc-list-item-lead-size:20px;--awc-list-indent-level:0px}:host([size=md]){--awc-list-item-padding:8px 12px;--awc-list-item-min-height:36px}
28:host([current-variant=surface]){--awc-list-item-current-bg:var(--colors-input-background-hover);--awc-list-item-current-color:var(--colors-text);--awc-list-item-current-icon-color:var(--colors-secondary)}:host([variant=filled]){--awc-list-item-bg:var(--colors-light-background)}.awc-list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--awc-list-gap,2px);margin:0;padding:0;list-style:none}`,Z7=P`:host{display:contents}.awc-list-group{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--awc-list-gap,2px);list-style:none}.awc-list-group__label{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:4px;padding:4px 8px;color:var(--colors-secondary);font:var(--awc-font-caption-1-medium)}.awc-list-group__label--empty{display:none}.awc-list-group__label-text{flex:1 1 auto;min-width:0}.awc-list-group__label--row .awc-list-group__label-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.awc-list-group__header{display:flex;align-items:center}.awc-list-group__header:has(>.awc-list-group__label--empty):not(:has(>.awc-list-group__actions:not(.awc-list-group__actions--empty))){display:none}.awc-list-group__header--row{box-sizing:border-box;gap:8px;min-height:var(--awc-list-item-min-height,32px);padding:var(--awc-list-item-padding,6px 8px);border-radius:var(--awc-list-item-radius,var(--corner-radius-m));background-color:var(--awc-list-item-bg,transparent)}.awc-list-group__header--row:hover{background-color:var(--awc-list-item-hover-bg,var(--colors-element-hover))}button.awc-list-group__label{appearance:none;width:100%;border:0;background:0 0;text-align:start;cursor:pointer}a.awc-list-group__label{width:100%;color:inherit;text-decoration:none;cursor:pointer}button.awc-list-group__toggle{appearance:none;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:0 0;color:var(--colors-secondary);cursor:pointer}button.awc-list-group__toggle:focus-visible{outline:2px solid var(--colors-secondary);outline-offset:-2px}.awc-list-group__toggle [part=chevron]{margin-inline-start:0}.awc-list-group__label--row{flex:1 1 auto;min-width:0;gap:8px;padding:0;color:var(--awc-list-item-color,var(--colors-text));font:var(--awc-font-text-medium-14)}.awc-list-group__header--row .awc-list-group__label--row{margin-inline-start:var(--awc-list-indent-level,0)}:host([collapsible][interactive]) .awc-list-group__header--row .awc-list-group__toggle{margin-inline-start:var(--awc-list-indent-level,0)}:host([collapsible][interactive]) .awc-list-group__header--row .awc-list-group__label--row{margin-inline-start:0}.awc-list-group__header:not(.awc-list-group__header--row) .awc-list-group__label-text{margin-inline-start:var(--awc-list-indent-level,0)}a.awc-list-group__label:focus-visible,button.awc-list-group__label:focus-visible{outline:2px solid var(--colors-secondary);outline-offset:-2px}[part=chevron]{flex:0 0 auto;margin-inline-start:auto;transition:transform var(--awc-duration-fast,.15s) ease}:host([collapsible]:not([expanded])) [part=chevron]{transform:rotate(-90deg)}.awc-list-group__lead{display:inline-flex;flex:0 0 auto;align-items:center;color:var(--colors-secondary)}.awc-list-group__lead [part=chevron]{margin-inline-start:0}.awc-list-group__lead-chevron{display:none}:host([collapsible]:not([interactive])) .awc-list-group__header--row:hover .awc-list-group__lead-icon,:host([collapsible]:not([interactive])) button.awc-list-group__label:focus-visible .awc-list-group__lead-icon{display:none}:host([collapsible]:not([interactive])) .awc-list-group__header--row:hover .awc-list-group__lead-chevron,:host([collapsible]:not([interactive])) button.awc-list-group__label:focus-visible .awc-list-group__lead-chevron{display:inline-flex}:host([collapsible][interactive]) .awc-list-group__toggle:focus-visible .awc-list-group__lead-icon,:host([collapsible][interactive]) .awc-list-group__toggle:hover .awc-list-group__lead-icon{display:none}:host([collapsible][interactive]) .awc-list-group__toggle:focus-visible .awc-list-group__lead-chevron,:host([collapsible][interactive]) .awc-list-group__toggle:hover .awc-list-group__lead-chevron{display:inline-flex}:host([current]) .awc-list-group__header--row{background-color:var(--awc-list-item-current-bg,var(--colors-primary-light));border-radius:var(--awc-list-item-radius,var(--corner-radius-m))}:host([current]) .awc-list-group__label{color:var(--awc-list-item-current-color,var(--colors-primary));--awc-icon-fill:var(--awc-list-item-current-icon-color, var(--awc-list-item-current-color, var(--colors-primary)))}.awc-list-group__items{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--awc-list-gap,2px);margin:0;padding:0;list-style:none}:host([data-indent-mode=inset]) .awc-list-group__items--indent-icon{padding-inline-start:var(--awc-list-group-indent,24px)}:host([data-indent-mode=inset]) .awc-list-group__items--indent-caption{padding-inline-start:var(--awc-list-group-indent-caption,12px)}:host([data-indent-mode=inset]) .awc-list-group__items{--awc-list-indent-level:0px}.awc-list-group__items[hidden]{display:none}.awc-list-group__actions{display:inline-flex;flex:0 0 auto;align-items:center}.awc-list-group__actions--empty{display:none}:host([reveal-actions]) .awc-list-group__actions:not(.awc-list-group__actions--empty){opacity:0;transition:opacity var(--awc-duration-fast,.1s) ease}:host([reveal-actions]) .awc-list-group__actions:focus-within,:host([reveal-actions]) .awc-list-group__header:hover .awc-list-group__actions,:host([reveal-actions]:focus-within) .awc-list-group__actions{opacity:1}`,W7="awc-list-group-toggle",G7="awc-list-group-click";var q7=Object.defineProperty,Y7=Object.getOwnPropertyDescriptor,Lt=(r,t,e,i)=>{for(var o=i>1?void 0:i?Y7(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&q7(t,e,o),o};const oa="awc-list-group",aa=r=>r?.tagName.toLowerCase()===oa,rr="group-label",dn="group-items",wd="group-toggle";s.AwcListGroup=class extends C{constructor(){super(...arguments),this.collapsible=!1,this.expanded=!1,this.revealActions=!1,this.interactive=!1,this.current=!1,this._hasLabelSlot=!1,this._hasActionsSlot=!1,this._nested=!1}connectedCallback(){super.connectedCallback(),this._detectNesting()}_detectNesting(){const t=this.parentElement;this._nested=aa(t),this._nested&&t?.getAttribute("data-indent-mode")==="inset"&&this.setAttribute("data-indent-mode","inset")}focus(t){this._label?.focus(t)}firstUpdated(){this._applyIndentLevel()}updated(t){(t.has("icon")||t.has("label")||t.has("interactive")||t.has("collapsible")||t.has("_hasLabelSlot")||t.has("_nested"))&&this._refreshIndent()}get _hasHeading(){return!!this.label||this._hasLabelSlot}get _hasLead(){return!!this.icon||this.collapsible&&this.interactive}_ownStepPx(){if(!this._hasHeading)return 0;const t=getComputedStyle(this),e=this._hasLead?t.getPropertyValue("--awc-list-group-indent"):t.getPropertyValue("--awc-list-group-indent-caption"),i=parseFloat(e);return Number.isFinite(i)?i:this._hasLead?24:12}_computeAncestorLevelPx(){let t=0,e=this.parentElement;for(;e;)aa(e)&&(t+=e._ownStepPx()),e=e.parentElement;return t}_applyIndentLevel(){if(!this._baseEl||!this._itemsEl)return;if(this.getAttribute("data-indent-mode")==="inset"){this._baseEl.style.setProperty("--awc-list-indent-level","0p
28x"),this._itemsEl.style.setProperty("--awc-list-indent-level","0px");return}const t=this._computeAncestorLevelPx();this._baseEl.style.setProperty("--awc-list-indent-level",`${t}px`),this._itemsEl.style.setProperty("--awc-list-indent-level",`${t+this._ownStepPx()}px`)}_refreshIndent(){this._applyIndentLevel(),this.querySelectorAll(oa).forEach(t=>t._applyIndentLevel())}_hasAssignedNodes(t){return t.target.assignedNodes({flatten:!0}).length>0}_onLabelSlotChange(t){this._hasLabelSlot=this._hasAssignedNodes(t)}_onActionsSlotChange(t){this._hasActionsSlot=this._hasAssignedNodes(t)}_toggle(){this.expanded=!this.expanded,this._emitToggle({expanded:this.expanded})}_handleClick(){this.href||this._emitClick({value:this.value})}_renderLabelSlot(){return f`<slot name="label" @slotchange="${this._onLabelSlotChange}">${this.label||A}</slot>`}_renderLabelText(){return f`<span class="awc-list-group__label-text">${this._renderLabelSlot()}</span>`}_renderLead(){return f`<span part="icon-start" class="awc-list-group__lead"><awc-icon class="awc-list-group__lead-icon" name="${this.icon??""}" size="16"></awc-icon><awc-icon class="awc-list-group__lead-chevron" part="chevron" name="arrow_down_large" size="16"></awc-icon></span>`}_renderLeadIcon(){return this.icon?f`<span part="icon-start" class="awc-list-group__lead"><awc-icon class="awc-list-group__lead-icon" name="${this.icon}" size="16"></awc-icon></span>`:A}_renderActions(){return f`<span part="actions" class="awc-list-group__actions ${this._hasActionsSlot?"":"awc-list-group__actions--empty"}"><slot name="actions" @slotchange="${this._onActionsSlotChange}"></slot></span>`}_renderHeading(t){return this.interactive&&this.collapsible&&t?this._renderInteractiveCollapsibleHeading():this.interactive&&t?this._renderInteractiveHeading():this.collapsible&&t?this._renderCollapsibleHeading():this._renderStaticHeading(t)}_renderRowLabel(t){const e="awc-list-group__label awc-list-group__label--row",i=this.current?"page":void 0;return this.href?f`<a part="label" id="${rr}" class="${e}" href="${D(this.href)}" aria-current="${D(i)}">${t}</a>`:f`<button part="label" id="${rr}" class="${e}" type="button" aria-current="${D(i)}" @click="${this._handleClick}">${t}</button>`}_renderInteractiveHeading(){return f`<div class="awc-list-group__header awc-list-group__header--row">${this._renderRowLabel(f`${this._renderLeadIcon()}${this._renderLabelText()}`)} ${this._renderActions()}</div>`}_renderInteractiveCollapsibleHeading(){return f`<div class="awc-list-group__header awc-list-group__header--row"><button part="toggle" id="${wd}" class="awc-list-group__toggle" type="button" aria-expanded="${this.expanded?"true":"false"}" aria-controls="${dn}" aria-label="${Y("awc-list-group.toggle-section")}" aria-labelledby="${wd} ${rr}" @click="${this._toggle}">${this.icon?this._renderLead():f`<awc-icon name="arrow_down_large" size="16" part="chevron"></awc-icon>`}</button> ${this._renderRowLabel(this._renderLabelText())} ${this._renderActions()}</div>`}_renderCollapsibleHeading(){const t=!!this.icon;return f`<div class="awc-list-group__header ${t?"awc-list-group__header--row":""}"><button part="label" id="${rr}" class="${`awc-list-group__label${t?" awc-list-group__label--row":""}`}" type="button" aria-expanded="${this.expanded?"true":"false"}" aria-controls="${dn}" @click="${this._toggle}">${t?this._renderLead():A} ${this._renderLabelText()} ${t?A:f`<awc-icon name="arrow_down_large" size="16" part="chevron"></awc-icon>`}</button> ${this._renderActions()}</div>`}_renderStaticHeading(t){const e=!!this.icon;return f`<div class="awc-list-group__header ${e?"awc-list-group__header--row":""}"><div part="label" id="${rr}" class="${`awc-list-group__label${t?"":" awc-list-group__label--empty"}${e?" awc-list-group__label--row":""}`}">${this._renderLeadIcon()} ${this._renderLabelText()}</div>${this._renderActions()}</div>`}render(){const t=this._hasHeading,e=this.collapsible&&t&&!this.expanded;let i="";t&&(i=this._hasLead?" awc-list-group__items--indent-icon":" awc-list-group__items--indent-caption");const o=f`${this._renderHeading(t)}<ul id="${dn}" class="${`awc-list-group__items${i}`}" role="list" ?hidden="${e}"><slot></slot></ul>`,a=D(t?rr:void 0);return this._nested?f`<li part="base" class="awc-list-group" role="listitem" aria-labelledby="${a}">${o}
28</li>`:f`<div part="base" class="awc-list-group" role="group" aria-labelledby="${a}">${o}</div>`}},s.AwcListGroup.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcListGroup.styles=[Z7],Lt([c({type:String})],s.AwcListGroup.prototype,"label",2),Lt([c({type:String})],s.AwcListGroup.prototype,"icon",2),Lt([c({type:Boolean,reflect:!0})],s.AwcListGroup.prototype,"collapsible",2),Lt([c({type:Boolean,reflect:!0})],s.AwcListGroup.prototype,"expanded",2),Lt([c({type:Boolean,reflect:!0,attribute:"reveal-actions"})],s.AwcListGroup.prototype,"revealActions",2),Lt([c({type:String})],s.AwcListGroup.prototype,"href",2),Lt([c({type:String})],s.AwcListGroup.prototype,"value",2),Lt([c({type:Boolean,reflect:!0})],s.AwcListGroup.prototype,"interactive",2),Lt([c({type:Boolean,reflect:!0})],s.AwcListGroup.prototype,"current",2),Lt([M()],s.AwcListGroup.prototype,"_hasLabelSlot",2),Lt([M()],s.AwcListGroup.prototype,"_hasActionsSlot",2),Lt([M()],s.AwcListGroup.prototype,"_nested",2),Lt([F(W7)],s.AwcListGroup.prototype,"_emitToggle",2),Lt([F(G7)],s.AwcListGroup.prototype,"_emitClick",2),Lt([H("[part='label']")],s.AwcListGroup.prototype,"_label",2),Lt([H(".awc-list-group")],s.AwcListGroup.prototype,"_baseEl",2),Lt([H(".awc-list-group__items")],s.AwcListGroup.prototype,"_itemsEl",2),s.AwcListGroup=Lt([Ie(),I(oa)],s.AwcListGroup);var K7=Object.defineProperty,X7=Object.getOwnPropertyDescriptor,Li=(r,t,e,i)=>{for(var o=i>1?void 0:i?X7(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&K7(t,e,o),o};const J7="awc-list";s.AwcList=class extends C{constructor(){super(...arguments),this.size="sm",this.currentVariant="accent",this.variant="default",this.indent="content",this._hasGroups=!1}_onSlotChange(t){const i=t.target.assignedElements({flatten:!0});this._hasGroups=i.some(aa),this._stampIndentMode(i)}_stampIndentMode(t){const e=this.indent==="inset",i=o=>{e?o.setAttribute("data-indent-mode","inset"):o.removeAttribute("data-indent-mode")};for(const o of t)aa(o)&&(i(o),o.querySelectorAll(oa).forEach(i),o._refreshIndent())}updated(t){if(t.has("indent")){const e=this._defaultSlot?.assignedElements({flatten:!0})??[];this._stampIndentMode(e)}}render(){const t=this._hasGroups?"presentation":"list";return f`<ul part="base" class="awc-list" role="${t}"><slot @slotchange="${this._onSlotChange}"></slot></ul>`}},s.AwcList.styles=[U7],Li([c({type:String,reflect:!0})],s.AwcList.prototype,"size",2),Li([c({type:String,reflect:!0,attribute:"current-variant"})],s.AwcList.prototype,"currentVariant",2),Li([c({type:String,reflect:!0})],s.AwcList.prototype,"variant",2),Li([c({type:String,reflect:!0})],s.AwcList.prototype,"indent",2),Li([M()],s.AwcList.prototype,"_hasGroups",2),Li([H("slot")],s.AwcList.prototype,"_defaultSlot",2),s.AwcList=Li([I(J7)],s.AwcList);const Q7=P`:host{display:block}.awc-list-item{box-sizing:border-box;display:flex;align-items:center;width:100%;min-height:var(--awc-list-item-min-height,32px);margin:0;padding:var(--awc-list-item-padding,6px 8px);border:none;border-radius:var(--awc-list-item-radius,var(--corner-radius-m));background:var(--awc-list-item-bg,none);color:var(--awc-list-item-color,var(--colors-text));font:var(--awc-font-text-medium-14);text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--awc-duration-fast,.1s) ease,color var(--awc-duration-fast,.1s) ease}:host([has-description]) .awc-list-item{align-items:flex-start}.awc-list-item__start{display:inline-flex;flex:0 0 auto;justify-content:center;align-items:center;min-inline-size:var(--awc-list-item-lead-size,20px);margin-inline-end:8px;color:var(--colors-secondary)}:host([has-description]) .awc-list-item__end,:host([has-description]) .awc-list-item__start{margin-top:2px}.awc-list-item__start--empty{display:none}.awc-list-item__start:not(.awc-list-item__start--empty){margin-inline-start:var(--awc-list-indent-level,0)}.awc-list-item__start--empty+.awc-list-item__content{margin-inline-start:var(--awc-list-indent-level,0)}.awc-list-item__content{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}.awc-list-item__label{min-width:0}:host([truncate]) .awc-list-item__content .awc-list-item__label{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.awc-list-item__content awc-tooltip{display:block;flex:1 1 auto;min-width:0}
28.awc-list-item__description{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:2px;color:var(--colors-secondary);font:var(--awc-font-text-regular-13)}.awc-list-item__end{display:inline-flex;flex:0 0 auto;align-items:center;margin-inline-start:12px}.awc-list-item__end--empty{display:none}:host([reveal-trailing]) .awc-list-item__end:not(.awc-list-item__end--empty){opacity:0;transition:opacity var(--awc-duration-fast,.1s) ease}:host([reveal-trailing]) .awc-list-item:hover .awc-list-item__end,:host([reveal-trailing]) .awc-list-item__end:focus-within,:host([reveal-trailing]:focus-within) .awc-list-item__end{opacity:1}a.awc-list-item:hover,button.awc-list-item:hover{background-color:var(--awc-list-item-hover-bg,var(--colors-element-hover))}:host([current]) .awc-list-item{background-color:var(--awc-list-item-current-bg,var(--colors-primary-light));color:var(--awc-list-item-current-color,var(--colors-primary))}:host([current]) .awc-list-item__start{color:var(--awc-list-item-current-icon-color,var(--awc-list-item-current-color,var(--colors-primary)));--awc-icon-fill:var(--awc-list-item-current-icon-color, var(--awc-list-item-current-color, var(--colors-primary)))}.awc-list-item:focus-visible{outline:var(--awc-list-item-focus-outline,2px solid var(--colors-secondary));outline-offset:-2px}:host([static]) .awc-list-item{cursor:default}:host([disabled]) .awc-list-item{cursor:default;opacity:.5;pointer-events:none}`,tg="awc-list-item-click";var eg=Object.defineProperty,ig=Object.getOwnPropertyDescriptor,At=(r,t,e,i)=>{for(var o=i>1?void 0:i?ig(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&eg(t,e,o),o};const rg="awc-list-item",og="a[href], input, select, textarea, label";s.AwcListItem=class extends C{constructor(){super(...arguments),this.current=!1,this.disabled=!1,this.isStatic=!1,this.revealTrailing=!1,this.truncate=!1,this._hasStartSlot=!1,this._hasEndSlot=!1,this._labelText="",this._labelOverflow=!1,this._descriptionOverflow=!1,this._geometryRaf=0,this._overflowRaf=0}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}focus(t){this._base?.focus(t)}get _isLink(){return!!this.href}_hasAssignedNodes(t){return t.target.assignedNodes({flatten:!0}).length>0}_onStartSlotChange(t){this._hasStartSlot=this._hasAssignedNodes(t)}_onEndSlotChange(t){this._hasEndSlot=this._hasAssignedNodes(t)}_onLabelSlotChange(t){const e=t.target.assignedNodes({flatten:!0});this._labelText=e.map(i=>i.textContent??"").join("").trim()}_recheckOverflow(){this._labelOverflow=this.truncate&&!!this._labelElement&&this._labelElement.scrollWidth>this._labelElement.clientWidth,this._descriptionOverflow=!!this.description&&!!this._descriptionElement&&this._descriptionElement.scrollHeight>this._descriptionElement.clientHeight}_handleClick(t){if(this.disabled||this.isStatic){t.preventDefault(),t.stopPropagation();return}this._isLink||this._emitClick({value:this.value})}_isolateTrailing(t){if(t.stopPropagation(),!!this._isLink){for(const e of t.composedPath()){if(e===t.currentTarget)break;if(e instanceof Element&&e.matches(og))return}t.preventDefault()}}_renderLabel(){const t=f`<span part="label" class="awc-list-item__label"><slot @slotchange="${this._onLabelSlotChange}"></slot></span>`;return this.truncate&&this._labelOverflow?f`<awc-tooltip message="${this._labelText}" position="top">${t}</awc-tooltip>`:t}_renderDescription(){if(!this.description)return A;const t=f`<span part="description" class="awc-list-item__description">${this.description}</span>`;return this._descriptionOverflow?f`<awc-tooltip message="${this.description}" position="top">${t}</awc-tooltip>`:t}_renderInner(){const t=!!this.icon||this._hasStartSlot;return f`<span part="icon-start" class="awc-list-item__start ${t?"":"awc-list-item__start--empty"}"><slot name="start" @slotchange="${this._onStartSlotChange}">${this.icon?f`<awc-icon name="${this.icon}" size="16"></awc-icon>`:A}</slot></span><span class="awc-list-item__content">${this._renderLabel()} ${this._renderDescription()} </span><span part="end" class="awc-list-item__end ${this._hasEndSlot?"":"awc-list-item__end--empty"}" @click="${this._isolateTrailing}"><slot name="end" @slotchange="${this._onEndSlotChange}"></slot></span>`}render(){const t=this._renderInner(),e=this.current?"page":void 0,i=this.disabled?"true":void 0,o=this.disabled?"-1":void 0;return this._isLink?f`<a part="base" class="awc-list-item" href="${D(this.disabled?void 0:this.href)}" aria-current="${D(e)}" aria-disabled="${D(i)}" tabindex="${D(o)}" @click="${this._handleClick}">${t}</a>`:this.isStatic?f`<div part="base" class="awc-list-item">${t}</div>`:f`<button part="base" class="awc-list-item" type="button" aria-current="${D(e)}" aria-disabled="${D(i)}" tabindex="${D(o)}" @click="${this._handleClick}">${t}</button>`}_ensureResizeObserver(){this._resizeObserver||!(this.truncate||this.description)||(this._resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._overflowRaf),this._overflowRaf=requestAnimationFrame(()=>this._recheckOverflow())}))}_observeOverflowTargets(){!this._resizeObserver||!this._contentElement||(this._resizeObserver.disconnect(),this._resizeObserver.observe(this._contentElement))}firstUpdated(){this._ensureResizeObserver(),this._observeOverflowTargets()}updated(t){t.has("description")&&this.toggleAttribute("has-description",!!this.description),(t.has("truncate")||t.has("description")||t.has("href")||t.has("isStatic"))&&(this._ensureResizeObserver(),this._resizeObserver&&(cancelAnimationFrame(this._geometryRaf),this._geometryRaf=requestAnimationFrame(()=>{this._observeOverflowTargets(),this._recheckOverflow()})))}disconnectedCallback(){super.disconnectedCallback(),cancelAnimationFrame(this._geometryRaf),cancelAnimationFrame(this._overflowRaf),this._resizeObserver?.disconnect()}},s.AwcListItem.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},s.AwcListItem.styles=[Q7],At([c({type:String})],s.AwcListItem.prototype,"href",2),At([c({type:String})],s.AwcListItem.prototype,"icon",2),At([c({type:String})],s.AwcListItem.prototype,"value",2),At([c({type:Boolean,reflect:!0})],s.AwcListItem.prototype,"current",2),At([c({type:Boolean,reflect:!0})],s.AwcListItem.prototype,"disabled",2),At([c({type:Boolean,reflect:!0,attribute:"static"})],s.AwcListItem.prototype,"isStatic",2),At([c({type:Boolean,reflect:!0,attribute:"reveal-trailing"})],s.AwcListItem.prototype,"revealTrailing",2),At([c({type:Boolean,reflect:!0})],s.AwcListItem.prototype,"truncate",2),At([c({type:String})],s.AwcListItem.prototype,"description",2),At([M()],s.AwcListItem.prototype,"_hasStartSlot",2),At([M()],s.AwcListItem.prototype,"_hasEndSlot",2),At([M()],s.AwcListItem.prototype,"_labelText",2),At([M()],s.AwcListItem.prototype,"_labelOverflow",2),At([M()],s.AwcListItem.prototype,"_descriptionOverflow",2),At([H(".awc-list-item__label")],s.AwcListItem.prototype,"_labelElement",2),At([H(".awc-list-item__description")],s.AwcListItem.prototype,"_descriptionElement",2),At([H(".awc-list-item__content")],s.AwcListItem.prototype,"_contentElement",2),At([F(tg)],s.AwcListItem.prototype,"_emitClick",2),At([H("[part='base']")],s.AwcListItem.prototype,"_base",2),s.AwcListItem=At([I(rg)],s.AwcListItem);var ag=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,sa=(r,t,e,i)=>{for(var o=i>1?void 0:i?sg(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&ag(t,e,o),o};
28s.AwcCanControl=class extends C{constructor(){super(...arguments),this.name="",this.options={},this._canInstance=null,this._scriptsLoaded=!1,this._onDOMContentLoaded=()=>{this._setupCanControl()},this._onDynamicScriptsAdded=()=>{this._scriptsLoaded=!0,this._setupCanControl()}}_removeGlobalEventListeners(){document.removeEventListener("DOMContentLoaded",this._onDOMContentLoaded),document.removeEventListener("Acloud:DynamicScriptsAdded",this._onDynamicScriptsAdded)}connectedCallback(){super.connectedCallback(),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",this._onDOMContentLoaded):(this._setupCanControl(),this._canInstance||document.addEventListener("Acloud:DynamicScriptsAdded",this._onDynamicScriptsAdded))}disconnectedCallback(){super.disconnectedCallback(),this._removeGlobalEventListeners(),this._automaticallyDestroyComponent()}_setupCanControl(){if(this._canInstance||!this.name)return;const t=window[this.name];if(typeof t=="function"){this._canInstance=new t(this,this.options);return}this._scriptsLoaded&&console.error(`[awc-can-control] Control "${this.name}" not found in window.`)}_automaticallyDestroyComponent(){this._canInstance&&typeof this._canInstance.destroy=="function"&&this._canInstance.destroy(),this._canInstance=null}createRenderRoot(){return this}render(){return f`<slot></slot>`}},sa([c({type:String,reflect:!0})],s.AwcCanControl.prototype,"name",2),sa([c({type:Object})],s.AwcCanControl.prototype,"options",2),sa([M()],s.AwcCanControl.prototype,"_canInstance",2),s.AwcCanControl=sa([I("awc-can-control")],s.AwcCanControl);var ng=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,Qr=(r,t,e,i)=>{for(var o=i>1?void 0:i?lg(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&ng(t,e,o),o};s.AwcVueMounter=class extends C{constructor(){super(...arguments),this.name="",this.options={},this.closureOptions={},this.type="construct",this._onExternalScriptsReady=()=>{this.initVue()}}initVue(){if(this.vueInstance)return;const t=this.renderRoot.firstElementChild;if(t&&!(typeof Vue>"u")&&!((this.type==="construct"||this.type==="closure")&&!this.getVueConstructor(this.name))){try{this.vueInstance=this.createVueInstance()}catch(e){console.error(`Error creating Vue instance "${this.name}":`,e);return}if(this.vueInstance)try{this.vueInstance.$mount(t)}catch(e){console.error("Error mounting Vue instance:",e),this.vueInstance=null}}}createVueInstance(){switch(this.type){case"closure":case"construct":const t=this.getVueConstructor(this.name);return t?this.type==="closure"?this.createViaClosure(t):this.createViaConstruct(t):null;case"component":if(typeof Vue>"u"||typeof Vue.component!="function")return null;const e=Vue.component(this.name);return e?this.createViaComponent(e):null;default:throw new Error(`Invalid type "${this.type}". Expected "construct", "closure", or "component".`)}}getVueConstructor(t){return t.split(".").reduce((e,i)=>e?e[i]:void 0,window)}createViaConstruct(t){return new t({data:this.options})}createViaClosure(t){const e=t(this.closureOptions);return new e({data:this.options})}createViaComponent(t){return new t({propsData:this.options})}_removeGlobalEventListeners(){document.removeEventListener("DOMContentLoaded",this._onExternalScriptsReady),document.removeEventListener("Acloud:DynamicScriptsAdded",this._onExternalScriptsReady)}connectedCallback(){super.connectedCallback(),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",this._onExternalScriptsReady):(this._onExternalScriptsReady(),this.vueInstance||document.addEventListener("Acloud:DynamicScriptsAdded",this._onExternalScriptsReady))}disconnectedCallback(){super.disconnectedCallback(),this.vueInstance&&(this.vueInstance.$destroy(),this.vueInstance=null),this._removeGlobalEventListeners()}firstUpdated(t){super.firstUpdated(t),this._onExternalScriptsReady()}createRenderRoot(){return this}render(){return f`<div></div>`}},Qr([c({type:String,reflect:!0})],s.AwcVueMounter.prototype,"name",2),Qr([c({type:Object})],s.AwcVueMounter.prototype,"options",2),Qr([c({type:Object,attribute:"closure-options"})],s.AwcVueMounter.prototype,"closureOptions",2),Qr([c({type:String,reflect:!0})],s.AwcVueMounter.prototype,"type",2),s.AwcVueMounter=Qr([I("awc-vue-mounter")],s.AwcVueMounter);const cg=["idle","loading","ready","error","resolved"];var dg=Object.defineProperty,hg=Object.getOwnPropertyDescriptor,Ue=(r,t,e,i)=>{for(var o=i>1?void 0:i?hg(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&dg(t,e,o),o};const to=new Map;
28class gd extends Error{constructor(t){super(`${t}: нет default export-функции`),this.name="AwcIslandNoDefaultError"}}const vd=new Map,hn=new WeakMap,un=new Map;function ug(r,t=0){const e=`viewport|${r}|${t}`,i=vd.get(e);if(i)return i;const o=new IntersectionObserver(a=>{for(const n of a){if(!n.isIntersecting)continue;const d=hn.get(n.target);d&&d()}},{rootMargin:r,threshold:t});return vd.set(e,o),un.set(o,new Set),o}function pg(r,t){r.observe(t),un.get(r)?.add(t)}function fg(r,t){r.unobserve(t),un.get(r)?.delete(t)}const wg=r=>!!r&&typeof r.then=="function",gg=`
29awc-island > [slot="error"] { display: none; }
30awc-island:state(error) > [slot="error"] { display: block; }
31`;let _d=null;function vg(){if(_d)return;const r=new CSSStyleSheet;r.replaceSync(gg),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],_d=r}return s.AwcIsland=class extends ci{constructor(){super(...arguments),this.src="",this.loading="eager",this.rootMargin="200px 0px",this._internals=this.attachInternals(),this._mountGen=0,this._mounted=!1,this._mountStarted=!1,this._destroyCbs=[],this._updateCbs=[],this._abortController=null,this._observedBy=null,this._options=null,this._optionsParseError=!1,this._optionsExplicit=!1}get options(){return this._options}set options(t){const e=this._options;this._options=t,this._optionsParseError=!1,this._optionsExplicit=!0,Object.is(t,e)||this.requestUpdate("options",e)}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),vg(),this._setState("idle"),this.requestUpdate()}attributeChangedCallback(t,e,i){if(t==="options"){let o=null,a=!1;if(i!==null&&i!=="")try{o=JSON.parse(i)}catch{a=!0}this.options=o,this._optionsParseError=a,this._optionsExplicit=i!==null&&i!=="";return}super.attributeChangedCallback(t,e,i)}disconnectedCallback(){super.disconnectedCallback(),this._teardownMount(),this._mountStarted=!1}_teardownMount(t="idle"){this._mountGen++,this._abortController?.abort(),this._abortController=null,this._unobserveIO(),this._mounted?(this._runDestroyCbs(),this._mounted=!1):this._destroyCbs=[],this._updateCbs=[],this._setState(t)}_setState(t){for(const e of cg)this._internals.states.delete(e);this._internals.states.add(t),this._setAriaFlag("aria-busy",t==="loading"),this._setAriaFlag("aria-invalid",t==="error")}_setAriaFlag(t,e){e?this.setAttribute(t,"true"):this.removeAttribute(t)}_markResolved(t){this._mountGen===t&&(this._internals.states.add("resolved"),this._resolvedEvent())}_failResolved(t,e){this._mountGen===t&&(this._teardownMount("error"),this._dispatchError("execute",e))}_unobserveIO(){this._observedBy&&(fg(this._observedBy,this),hn.delete(this),this._observedBy=null)}_runDestroyCbs(){const t=this._destroyCbs;this._destroyCbs=[];for(const e of t)try{e()}catch(i){console.error("awc-island: onDestroy callback threw",i)}}_emitError(t,e){this._mountGen++,this._setState("error"),this._dispatchError(t,e)}_dispatchError(t,e){this._errorEvent({stage:t,error:e},{cancelable:!0}).defaultPrevented||console.error(`awc-island: ${t} failed (src="${this.src}")`,e)}_emitOptionsParseErrorIfNeeded(){return this._optionsParseError?(this._emitError("options-parse",new Error("invalid JSON in options attribute")),!0):!1}async _mount(){const t=++this._mountGen;if(!this.src)return;if(!this._optionsExplicit){this._optionsParseError=!1;const d=this.querySelector(":scope > script[data-options]")?.textContent?.trim()??"";if(d!=="")try{this._options=JSON.parse(d)}catch{this._optionsParseError=!0}}if(this._emitOptionsParseErrorIfNeeded())return;this._setState("loading"),this._startEvent();const e=this.src;let i=to.get(e);if(i===void 0){const n=(async()=>{const d=await import(e);if(typeof d.default!="function")throw new gd(e);return{default:d.default}})();n.catch(()=>{to.get(e)===n&&to.delete(e)}),to.set(e,n),i=n}let o;if(i instanceof Promise){try{o=await i}catch(n){if(t!==this._mountGen)return;const d=n instanceof gd?"no-default":"load";this._emitError(d,n);return}if(t!==this._mountGen)return;to.set(e,o)}else o=i;this._abortController=new AbortController;let a;try{a=o.default({host:this,options:this.options,onDestroy:n=>{this._destroyCbs.push(n)},onUpdate:n=>{this._updateCbs.push(n)},signal:this._abortController.signal})}catch(n){this._emitError("execute",n);return}this._mounted=!0,this._setState("ready"),this._readyEvent(),wg(a)?Promise.resolve(a).then(()=>this._markResolved(t),n=>this._failResolved(t,n)):this._markResolved(t)}update(t){if(super.update(t),!!this.isConnected){if(!this._mountStarted){this._mountStarted=!0;const e=this._mountGen;ye(()=>{this.isConnected&&this._mountGen===e&&this._scheduleMount()});return}t.has("src")?this._remount():t.has("options")&&this._notifyUpdate()}}_scheduleMount(){if(this.loading==="lazy"){const t=this._mountGen,e=()=>{!this.isConnected||t!==this._mountGen||this._mount()},i=globalThis.requestIdleCallback;typeof i=="function"?i(e,{timeout:2e3}):setTimeout(e,1);return}if(this.loading==="on-visible"){const t=this._mountGen,e=ug(this.rootMargin),i=()=>{this._unobserveIO(),!(!this.isConnected||t!==this._mountGen)&&this._mount()};hn.set(this,i),this._observedBy=e,pg(e,this);return}this._mount()}_remount(){const t=this._mounted;this._teardownMount(),t?this._mount():this._scheduleMount()}
31_notifyUpdate(){if(this._emitOptionsParseErrorIfNeeded())return;if(!this._mounted){this._remount();return}const t=this.options;for(const e of this._updateCbs)try{e(t)}catch(i){console.error("awc-island: onUpdate callback threw",i)}}},Ue([c({type:String,reflect:!0})],s.AwcIsland.prototype,"src",2),Ue([c({type:Object,noAccessor:!0})],s.AwcIsland.prototype,"options",1),Ue([c({type:String,reflect:!0})],s.AwcIsland.prototype,"loading",2),Ue([c({type:String,attribute:"root-margin",reflect:!0})],s.AwcIsland.prototype,"rootMargin",2),Ue([F("awc-island-start")],s.AwcIsland.prototype,"_startEvent",2),Ue([F("awc-island-ready")],s.AwcIsland.prototype,"_readyEvent",2),Ue([F("awc-island-resolved")],s.AwcIsland.prototype,"_resolvedEvent",2),Ue([F("awc-island-error")],s.AwcIsland.prototype,"_errorEvent",2),s.AwcIsland=Ue([I("awc-island")],s.AwcIsland),s.getCalendarConfig=Bs,s.getLocale=Dt,s.getRegisteredCodes=sw,s.registerCalendarConfig=ew,s.registerCalendarPresets=iw,s.registerTranslation=ow,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),s}({});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.