@logosphere-ui/core 0.0.0-alpha.22 → 0.0.0-alpha.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(n,M){typeof exports=="object"&&typeof module!="undefined"?M(exports,require("dayjs")):typeof define=="function"&&define.amd?define(["exports","dayjs"],M):(n=typeof globalThis!="undefined"?globalThis:n||self,M(n.LogosphereUI={},n.dayjs))})(this,(function(n,M){"use strict";var La=Object.defineProperty,Ta=Object.defineProperties;var Ba=Object.getOwnPropertyDescriptors;var _o=Object.getOwnPropertySymbols;var Ia=Object.prototype.hasOwnProperty,Ya=Object.prototype.propertyIsEnumerable;var yo=(n,M,X)=>M in n?La(n,M,{enumerable:!0,configurable:!0,writable:!0,value:X}):n[M]=X,$t=(n,M)=>{for(var X in M||(M={}))Ia.call(M,X)&&yo(n,X,M[X]);if(_o)for(var X of _o(M))Ya.call(M,X)&&yo(n,X,M[X]);return n},jt=(n,M)=>Ta(n,Ba(M));var ao,no,lo,co,ho,po;const X=globalThis,Ft=X.ShadowRoot&&(X.ShadyCSS===void 0||X.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nt=Symbol(),fr=new WeakMap;let gr=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Nt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ft&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=fr.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&fr.set(t,e))}return e}toString(){return this.cssText}};const F=i=>new gr(typeof i=="string"?i:i+"",void 0,Nt),N=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[s+1],i[0]);return new gr(t,i,Nt)},wo=(i,e)=>{if(Ft)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=X.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},br=Ft?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return F(t)})(i):i;const{is:xo,defineProperty:$o,getOwnPropertyDescriptor:ko,getOwnPropertyNames:Co,getOwnPropertySymbols:Eo,getPrototypeOf:So}=Object,we=globalThis,mr=we.trustedTypes,Mo=mr?mr.emptyScript:"",Ut=we.reactiveElementPolyfillSupport,ot=(i,e)=>i,kt={toAttribute(i,e){switch(e){case Boolean:i=i?Mo:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},Vt=(i,e)=>!xo(i,e),vr={attribute:!0,type:String,converter:kt,reflect:!1,useDefault:!1,hasChanged:Vt};(ao=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(no=we.litPropertyMetadata)!=null||(we.litPropertyMetadata=new WeakMap);let je=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=vr){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&$o(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var a;const{get:o,set:s}=(a=ko(this.prototype,e))!=null?a:{get(){return this[t]},set(l){this[t]=l}};return{get:o,set(l){const d=o==null?void 0:o.call(this);s==null||s.call(this,l),this.requestUpdate(e,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:vr}static _$Ei(){if(this.hasOwnProperty(ot("elementProperties")))return;const e=So(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ot("properties"))){const t=this.properties,r=[...Co(t),...Eo(t)];for(const o of r)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(br(o))}else e!==void 0&&t.push(br(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return wo(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var s;const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){const a=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:kt).toAttribute(t,r.type);this._$Em=e,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(e,t){var s,a,l;const r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const d=r.getPropertyOptions(o),p=typeof d.converter=="function"?{fromAttribute:d.converter}:((s=d.converter)==null?void 0:s.fromAttribute)!==void 0?d.converter:kt;this._$Em=o;const h=p.fromAttribute(t,d.type);this[o]=(l=h!=null?h:(a=this._$Ej)==null?void 0:a.get(o))!=null?l:h,this._$Em=null}}requestUpdate(e,t,r,o=!1,s){var a,l;if(e!==void 0){const d=this.constructor;if(o===!1&&(s=this[e]),r!=null||(r=d.getPropertyOptions(e)),!(((a=r.hasChanged)!=null?a:Vt)(s,t)||r.useDefault&&r.reflect&&s===((l=this._$Ej)==null?void 0:l.get(e))&&!this.hasAttribute(d._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:s},a){var l,d,p;r&&!((l=this._$Ej)!=null?l:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(d=a!=null?a:t)!=null?d:this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&((p=this._$Eq)!=null?p:this._$Eq=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[a,l]of s){const{wrapped:d}=l,p=this[a];d!==!0||this._$AL.has(a)||p===void 0||this.C(a,void 0,l,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(s=>{var a;return(a=s.hostUpdate)==null?void 0:a.call(s)}),this.update(t)):this._$EM()}catch(s){throw e=!1,this._$EM(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};je.elementStyles=[],je.shadowRootOptions={mode:"open"},je[ot("elementProperties")]=new Map,je[ot("finalized")]=new Map,Ut==null||Ut({ReactiveElement:je}),((lo=we.reactiveElementVersions)!=null?lo:we.reactiveElementVersions=[]).push("2.1.2");const it=globalThis,_r=i=>i,Ct=it.trustedTypes,yr=Ct?Ct.createPolicy("lit-html",{createHTML:i=>i}):void 0,wr="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,xr="?"+xe,Do=`<${xr}>`,ze=document,st=()=>ze.createComment(""),at=i=>i===null||typeof i!="object"&&typeof i!="function",qt=Array.isArray,Ao=i=>qt(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Wt=`[
2
- \f\r]`,nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$r=/-->/g,kr=/>/g,Oe=RegExp(`>|${Wt}(?:([^\\s"'>=/]+)(${Wt}*=${Wt}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Cr=/'/g,Er=/"/g,Sr=/^(?:script|style|textarea|title)$/i,zo=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),u=zo(1),de=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),Mr=new WeakMap,Pe=ze.createTreeWalker(ze,129);function Dr(i,e){if(!qt(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return yr!==void 0?yr.createHTML(e):e}const Oo=(i,e)=>{const t=i.length-1,r=[];let o,s=e===2?"<svg>":e===3?"<math>":"",a=nt;for(let l=0;l<t;l++){const d=i[l];let p,h,f=-1,b=0;for(;b<d.length&&(a.lastIndex=b,h=a.exec(d),h!==null);)b=a.lastIndex,a===nt?h[1]==="!--"?a=$r:h[1]!==void 0?a=kr:h[2]!==void 0?(Sr.test(h[2])&&(o=RegExp("</"+h[2],"g")),a=Oe):h[3]!==void 0&&(a=Oe):a===Oe?h[0]===">"?(a=o!=null?o:nt,f=-1):h[1]===void 0?f=-2:(f=a.lastIndex-h[2].length,p=h[1],a=h[3]===void 0?Oe:h[3]==='"'?Er:Cr):a===Er||a===Cr?a=Oe:a===$r||a===kr?a=nt:(a=Oe,o=void 0);const v=a===Oe&&i[l+1].startsWith("/>")?" ":"";s+=a===nt?d+Do:f>=0?(r.push(p),d.slice(0,f)+wr+d.slice(f)+xe+v):d+xe+(f===-2?l:v)}return[Dr(i,s+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class lt{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let s=0,a=0;const l=e.length-1,d=this.parts,[p,h]=Oo(e,t);if(this.el=lt.createElement(p,r),Pe.currentNode=this.el.content,t===2||t===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=Pe.nextNode())!==null&&d.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(const f of o.getAttributeNames())if(f.endsWith(wr)){const b=h[a++],v=o.getAttribute(f).split(xe),C=/([.?@])?(.*)/.exec(b);d.push({type:1,index:s,name:C[2],strings:v,ctor:C[1]==="."?Lo:C[1]==="?"?To:C[1]==="@"?Bo:Et}),o.removeAttribute(f)}else f.startsWith(xe)&&(d.push({type:6,index:s}),o.removeAttribute(f));if(Sr.test(o.tagName)){const f=o.textContent.split(xe),b=f.length-1;if(b>0){o.textContent=Ct?Ct.emptyScript:"";for(let v=0;v<b;v++)o.append(f[v],st()),Pe.nextNode(),d.push({type:2,index:++s});o.append(f[b],st())}}}else if(o.nodeType===8)if(o.data===xr)d.push({type:2,index:s});else{let f=-1;for(;(f=o.data.indexOf(xe,f+1))!==-1;)d.push({type:7,index:s}),f+=xe.length-1}s++}}static createElement(e,t){const r=ze.createElement("template");return r.innerHTML=e,r}}function Fe(i,e,t=i,r){var a,l,d;if(e===de)return e;let o=r!==void 0?(a=t._$Co)==null?void 0:a[r]:t._$Cl;const s=at(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==s&&((l=o==null?void 0:o._$AO)==null||l.call(o,!1),s===void 0?o=void 0:(o=new s(i),o._$AT(i,t,r)),r!==void 0?((d=t._$Co)!=null?d:t._$Co=[])[r]=o:t._$Cl=o),o!==void 0&&(e=Fe(i,o._$AS(i,e.values),o,r)),e}class Po{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var p;const{el:{content:t},parts:r}=this._$AD,o=((p=e==null?void 0:e.creationScope)!=null?p:ze).importNode(t,!0);Pe.currentNode=o;let s=Pe.nextNode(),a=0,l=0,d=r[0];for(;d!==void 0;){if(a===d.index){let h;d.type===2?h=new dt(s,s.nextSibling,this,e):d.type===1?h=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(h=new Io(s,this,e)),this._$AV.push(h),d=r[++l]}a!==(d==null?void 0:d.index)&&(s=Pe.nextNode(),a++)}return Pe.currentNode=ze,o}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class dt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,o){var s;this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(s=o==null?void 0:o.isConnected)!=null?s:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Fe(this,e,t),at(e)?e===m||e==null||e===""?(this._$AH!==m&&this._$AR(),this._$AH=m):e!==this._$AH&&e!==de&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ao(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==m&&at(this._$AH)?this._$AA.nextSibling.data=e:this.T(ze.createTextNode(e)),this._$AH=e}$(e){var s;const{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=lt.createElement(Dr(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===o)this._$AH.p(t);else{const a=new Po(o,this),l=a.u(this.options);a.p(t),this.T(l),this._$AH=a}}_$AC(e){let t=Mr.get(e.strings);return t===void 0&&Mr.set(e.strings,t=new lt(e)),t}k(e){qt(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const s of e)o===t.length?t.push(r=new dt(this.O(st()),this.O(st()),this,this.options)):r=t[o],r._$AI(s),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const o=_r(e).nextSibling;_r(e).remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,s){this.type=1,this._$AH=m,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=m}_$AI(e,t=this,r,o){const s=this.strings;let a=!1;if(s===void 0)e=Fe(this,e,t,0),a=!at(e)||e!==this._$AH&&e!==de,a&&(this._$AH=e);else{const l=e;let d,p;for(e=s[0],d=0;d<s.length-1;d++)p=Fe(this,l[r+d],t,d),p===de&&(p=this._$AH[d]),a||(a=!at(p)||p!==this._$AH[d]),p===m?e=m:e!==m&&(e+=(p!=null?p:"")+s[d+1]),this._$AH[d]=p}a&&!o&&this.j(e)}j(e){e===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Lo extends Et{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===m?void 0:e}}class To extends Et{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==m)}}class Bo extends Et{constructor(e,t,r,o,s){super(e,t,r,o,s),this.type=5}_$AI(e,t=this){var a;if((e=(a=Fe(this,e,t,0))!=null?a:m)===de)return;const r=this._$AH,o=e===m&&r!==m||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==m&&(r===m||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Io{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Fe(this,e)}}const Zt=it.litHtmlPolyfillSupport;Zt==null||Zt(lt,dt),((co=it.litHtmlVersions)!=null?co:it.litHtmlVersions=[]).push("3.3.2");const Yo=(i,e,t)=>{var s,a;const r=(s=t==null?void 0:t.renderBefore)!=null?s:e;let o=r._$litPart$;if(o===void 0){const l=(a=t==null?void 0:t.renderBefore)!=null?a:null;r._$litPart$=o=new dt(e.insertBefore(st(),l),l,void 0,t!=null?t:{})}return o._$AI(i),o};const Le=globalThis;let T=class extends je{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const e=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Yo(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return de}};T._$litElement$=!0,T.finalized=!0,(ho=Le.litElementHydrateSupport)==null||ho.call(Le,{LitElement:T});const Kt=Le.litElementPolyfillSupport;Kt==null||Kt({LitElement:T}),((po=Le.litElementVersions)!=null?po:Le.litElementVersions=[]).push("4.2.2");const U=i=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(i,e)}):customElements.define(i,e)};const Ro={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:Vt},Ho=(i=Ro,e,t)=>{const{kind:r,metadata:o}=t;let s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),r==="setter"&&((i=Object.create(i)).wrapped=!0),s.set(t.name,i),r==="accessor"){const{name:a}=t;return{set(l){const d=e.get.call(this);e.set.call(this,l),this.requestUpdate(a,d,i,!0,l)},init(l){return l!==void 0&&this.C(a,void 0,i,l),l}}}if(r==="setter"){const{name:a}=t;return function(l){const d=this[a];e.call(this,l),this.requestUpdate(a,d,i,!0,l)}}throw Error("Unsupported decorator location: "+r)};function c(i){return(e,t)=>typeof t=="object"?Ho(i,e,t):((r,o,s)=>{const a=o.hasOwnProperty(s);return o.constructor.createProperty(s,r),a?Object.getOwnPropertyDescriptor(o,s):void 0})(i,e,t)}function $(i){return c(jt($t({},i),{state:!0,attribute:!1}))}const jo=(i,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(i,e,t),t);function J(i,e){return(t,r,o)=>{const s=a=>{var l,d;return(d=(l=a.renderRoot)==null?void 0:l.querySelector(i))!=null?d:null};return jo(t,r,{get(){return s(this)}})}}const Fo='.button{display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-family-base);font-weight:var(--font-weight-semibold);border:none;border-radius:var(--radius-base);cursor:pointer;transition:all var(--transition-speed-base) var(--transition-timing);gap:var(--spacing-2);white-space:nowrap;-webkit-user-select:none;user-select:none;outline:none;text-decoration:none;line-height:1}.button:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.button:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.button ::slotted(*){display:inline-flex;align-items:center;vertical-align:middle}.button ::slotted(i),.button ::slotted([class^="uil-"]),.button ::slotted([class*=" uil-"]){font-size:inherit;line-height:1;flex-shrink:0}.button--sm{font-size:var(--font-size-sm);padding:var(--spacing-1) var(--spacing-2)}.button--sm.button--icon-only{padding:var(--spacing-1);line-height:16px}.button--md{font-size:var(--font-size-sm);padding:var(--spacing-2) var(--spacing-3)}.button--md.button--icon-only{padding:var(--spacing-2);line-height:16px}.button--lg{font-size:var(--font-size-base);padding:var(--spacing-3) var(--spacing-4)}.button--lg.button--icon-only{padding:var(--spacing-3);line-height:16px}.button--solid.button--primary{background-color:var(--color-primary);color:#fff}.button--solid.button--primary:hover:not(:disabled){background-color:var(--color-primary-hover)}.button--solid.button--primary:active:not(:disabled){background-color:var(--color-primary-active)}.button--solid.button--secondary{background-color:var(--color-secondary);color:#fff}.button--solid.button--secondary:hover:not(:disabled){background-color:var(--color-secondary-hover)}.button--solid.button-secondary:active:not(:disabled){background-color:var(--color-secondary-active)}.button--text.button--secondary{background-color:transparent;color:var(--color-secondary)}.button--solid.button--success{background-color:var(--color-success);color:var(--color-success-text-emphasis)}.button--solid.button--success:hover:not(:disabled){background-color:var(--color-success-hover);color:var(--color-success-text-emphasis)}.button--solid.button--success:active:not(:disabled){background-color:var(--color-success-active);color:var(--color-success-text-emphasis)}.button--solid.button--danger{background-color:var(--color-danger);color:var(--color-danger-text-emphasis)}.button--solid.button--danger:hover:not(:disabled){background-color:var(--color-danger-hover);color:var(--color-danger-text-emphasis)}.button--solid.button--danger:active:not(:disabled){background-color:var(--color-danger-active);color:var(--color-danger-text-emphasis)}.button--solid.button--info{background-color:var(--color-info);color:var(--color-info-text-emphasis)}.button--solid.button--info:hover:not(:disabled){background-color:var(--color-info-hover);color:var(--color-info-text-emphasis)}.button--solid.button--info:active:not(:disabled){background-color:var(--color-info-active);color:var(--color-info-text-emphasis)}.button--solid.button--warning{background-color:var(--color-warning);color:var(--color-warning-text-emphasis)}.button--solid.button--warning:hover:not(:disabled){background-color:var(--color-warning-hover);color:var(--color-warning-text-emphasis)}.button--solid.button--warning:active:not(:disabled){background-color:var(--color-warning-active);color:var(--color-warning-text-emphasis)}.button--outline{border-width:2px;border-style:solid}.button--outline.button--sm{padding:calc(var(--spacing-1) - 2px) calc(var(--spacing-2) - 2px)}.button--outline.button--sm.button--icon-only{padding:calc(var(--spacing-1) - 2px)}.button--outline.button--md{padding:calc(var(--spacing-2) - 2px) calc(var(--spacing-3) - 2px)}.button--outline.button--md.button--icon-only{padding:calc(var(--spacing-2) - 2px)}.button--outline.button--lg{padding:calc(var(--spacing-3) - 2px) calc(var(--spacing-4) - 2px)}.button--outline.button--lg.button--icon-only{padding:calc(var(--spacing-3) - 2px)}.button--outline.button--primary{background-color:transparent;color:var(--color-primary-text-emphasis);border-color:var(--color-border)}.button--outline.button--primary:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-primary)}.button--outline.button--secondary{background-color:transparent;color:var(--color-secondary-text-emphasis);border-color:var(--color-border)}.button--outline.button--secondary:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-secondary)}.button--outline.button--success{background-color:transparent;color:var(--color-success-outline-text-emphasis);border-color:var(--color-border-success)}.button--outline.button--success:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-success-outline-text-emphasis)}.button--outline.button--danger{background-color:transparent;color:var(--color-danger-outline-text-emphasis);border-color:var(--color-border-danger)}.button--outline.button--danger:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-danger-outline-text-emphasis)}.button--outline.button--info{background-color:transparent;color:var(--color-info-outline-text-emphasis);border-color:var(--color-border-info)}.button--outline.button--info:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-info-outline-text-emphasis)}.button--outline.button--warning{background-color:transparent;color:var(--color-warning-text-emphasis);border-color:var(--color-border-warning)}.button--outline.button--warning:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-warning-text-emphasis)}.button--text.button--primary{background-color:transparent;color:var(--color-primary)}.button--text.button--primary:hover:not(:disabled){background-color:var(--color-primary-bg-subtle)}.button--text.button--success{background-color:transparent;color:var(--color-success)}.button--text.button--success:hover:not(:disabled){background-color:var(--color-success-bg-subtle)}.button--text.button--danger{background-color:transparent;color:var(--color-danger)}.button--text.button--danger:hover:not(:disabled){background-color:var(--color-danger-bg-subtle)}.button--text.button--info{background-color:transparent;color:var(--color-info)}.button--text.button--info:hover:not(:disabled){background-color:var(--color-info-bg-subtle)}.button--text.button--warning{background-color:transparent;color:var(--color-warning)}.button--text.button--warning:hover:not(:disabled){background-color:var(--color-warning-bg-subtle)}';var No=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Ne=(i,e,t,r)=>{for(var o=r>1?void 0:r?Uo(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&No(e,t,o),o};n.Button=class extends T{constructor(){super(...arguments),this.variant="solid",this.size="md",this.theme="primary",this.iconOnly=!1,this.disabled=!1}getButtonClasses(){const e=["button",`button--${this.variant}`,`button--${this.size}`,`button--${this.theme}`];return this.iconOnly&&e.push("button--icon-only"),e.join(" ")}render(){return u`
1
+ (function(a,M){typeof exports=="object"&&typeof module!="undefined"?M(exports,require("dayjs")):typeof define=="function"&&define.amd?define(["exports","dayjs"],M):(a=typeof globalThis!="undefined"?globalThis:a||self,M(a.LogosphereUI={},a.dayjs))})(this,(function(a,M){"use strict";var Rn=Object.defineProperty,Hn=Object.defineProperties;var jn=Object.getOwnPropertyDescriptors;var wo=Object.getOwnPropertySymbols;var Fn=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable;var xo=(a,M,X)=>M in a?Rn(a,M,{enumerable:!0,configurable:!0,writable:!0,value:X}):a[M]=X,$t=(a,M)=>{for(var X in M||(M={}))Fn.call(M,X)&&xo(a,X,M[X]);if(wo)for(var X of wo(M))Nn.call(M,X)&&xo(a,X,M[X]);return a},jt=(a,M)=>Hn(a,jn(M));var lo,co,ho,po,uo,fo;const X=globalThis,Ft=X.ShadowRoot&&(X.ShadyCSS===void 0||X.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nt=Symbol(),gr=new WeakMap;let mr=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Nt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ft&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=gr.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&gr.set(t,e))}return e}toString(){return this.cssText}};const F=i=>new mr(typeof i=="string"?i:i+"",void 0,Nt),N=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,s)=>r+(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)+i[s+1],i[0]);return new mr(t,i,Nt)},$o=(i,e)=>{if(Ft)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=X.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},br=Ft?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return F(t)})(i):i;const{is:ko,defineProperty:Co,getOwnPropertyDescriptor:Eo,getOwnPropertyNames:So,getOwnPropertySymbols:Mo,getPrototypeOf:Do}=Object,we=globalThis,vr=we.trustedTypes,Ao=vr?vr.emptyScript:"",Ut=we.reactiveElementPolyfillSupport,ot=(i,e)=>i,kt={toAttribute(i,e){switch(e){case Boolean:i=i?Ao:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},Vt=(i,e)=>!ko(i,e),_r={attribute:!0,type:String,converter:kt,reflect:!1,useDefault:!1,hasChanged:Vt};(lo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(co=we.litPropertyMetadata)!=null||(we.litPropertyMetadata=new WeakMap);let je=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=_r){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Co(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var n;const{get:o,set:s}=(n=Eo(this.prototype,e))!=null?n:{get(){return this[t]},set(l){this[t]=l}};return{get:o,set(l){const d=o==null?void 0:o.call(this);s==null||s.call(this,l),this.requestUpdate(e,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:_r}static _$Ei(){if(this.hasOwnProperty(ot("elementProperties")))return;const e=Do(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ot("properties"))){const t=this.properties,r=[...So(t),...Mo(t)];for(const o of r)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(br(o))}else e!==void 0&&t.push(br(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return $o(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var s;const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){const n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:kt).toAttribute(t,r.type);this._$Em=e,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){var s,n,l;const r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const d=r.getPropertyOptions(o),p=typeof d.converter=="function"?{fromAttribute:d.converter}:((s=d.converter)==null?void 0:s.fromAttribute)!==void 0?d.converter:kt;this._$Em=o;const h=p.fromAttribute(t,d.type);this[o]=(l=h!=null?h:(n=this._$Ej)==null?void 0:n.get(o))!=null?l:h,this._$Em=null}}requestUpdate(e,t,r,o=!1,s){var n,l;if(e!==void 0){const d=this.constructor;if(o===!1&&(s=this[e]),r!=null||(r=d.getPropertyOptions(e)),!(((n=r.hasChanged)!=null?n:Vt)(s,t)||r.useDefault&&r.reflect&&s===((l=this._$Ej)==null?void 0:l.get(e))&&!this.hasAttribute(d._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:s},n){var l,d,p;r&&!((l=this._$Ej)!=null?l:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(d=n!=null?n:t)!=null?d:this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&((p=this._$Eq)!=null?p:this._$Eq=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,l]of this._$Ep)this[n]=l;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[n,l]of s){const{wrapped:d}=l,p=this[n];d!==!0||this._$AL.has(n)||p===void 0||this.C(n,void 0,l,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(t)):this._$EM()}catch(s){throw e=!1,this._$EM(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};je.elementStyles=[],je.shadowRootOptions={mode:"open"},je[ot("elementProperties")]=new Map,je[ot("finalized")]=new Map,Ut==null||Ut({ReactiveElement:je}),((ho=we.reactiveElementVersions)!=null?ho:we.reactiveElementVersions=[]).push("2.1.2");const it=globalThis,yr=i=>i,Ct=it.trustedTypes,wr=Ct?Ct.createPolicy("lit-html",{createHTML:i=>i}):void 0,xr="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,$r="?"+xe,zo=`<${$r}>`,ze=document,st=()=>ze.createComment(""),nt=i=>i===null||typeof i!="object"&&typeof i!="function",qt=Array.isArray,Po=i=>qt(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Wt=`[
2
+ \f\r]`,at=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kr=/-->/g,Cr=/>/g,Pe=RegExp(`>|${Wt}(?:([^\\s"'>=/]+)(${Wt}*=${Wt}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Er=/'/g,Sr=/"/g,Mr=/^(?:script|style|textarea|title)$/i,Oo=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),u=Oo(1),de=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),Dr=new WeakMap,Oe=ze.createTreeWalker(ze,129);function Ar(i,e){if(!qt(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return wr!==void 0?wr.createHTML(e):e}const Lo=(i,e)=>{const t=i.length-1,r=[];let o,s=e===2?"<svg>":e===3?"<math>":"",n=at;for(let l=0;l<t;l++){const d=i[l];let p,h,f=-1,m=0;for(;m<d.length&&(n.lastIndex=m,h=n.exec(d),h!==null);)m=n.lastIndex,n===at?h[1]==="!--"?n=kr:h[1]!==void 0?n=Cr:h[2]!==void 0?(Mr.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=Pe):h[3]!==void 0&&(n=Pe):n===Pe?h[0]===">"?(n=o!=null?o:at,f=-1):h[1]===void 0?f=-2:(f=n.lastIndex-h[2].length,p=h[1],n=h[3]===void 0?Pe:h[3]==='"'?Sr:Er):n===Sr||n===Er?n=Pe:n===kr||n===Cr?n=at:(n=Pe,o=void 0);const v=n===Pe&&i[l+1].startsWith("/>")?" ":"";s+=n===at?d+zo:f>=0?(r.push(p),d.slice(0,f)+xr+d.slice(f)+xe+v):d+xe+(f===-2?l:v)}return[Ar(i,s+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class lt{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let s=0,n=0;const l=e.length-1,d=this.parts,[p,h]=Lo(e,t);if(this.el=lt.createElement(p,r),Oe.currentNode=this.el.content,t===2||t===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=Oe.nextNode())!==null&&d.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(const f of o.getAttributeNames())if(f.endsWith(xr)){const m=h[n++],v=o.getAttribute(f).split(xe),C=/([.?@])?(.*)/.exec(m);d.push({type:1,index:s,name:C[2],strings:v,ctor:C[1]==="."?Bo:C[1]==="?"?Io:C[1]==="@"?Yo:Et}),o.removeAttribute(f)}else f.startsWith(xe)&&(d.push({type:6,index:s}),o.removeAttribute(f));if(Mr.test(o.tagName)){const f=o.textContent.split(xe),m=f.length-1;if(m>0){o.textContent=Ct?Ct.emptyScript:"";for(let v=0;v<m;v++)o.append(f[v],st()),Oe.nextNode(),d.push({type:2,index:++s});o.append(f[m],st())}}}else if(o.nodeType===8)if(o.data===$r)d.push({type:2,index:s});else{let f=-1;for(;(f=o.data.indexOf(xe,f+1))!==-1;)d.push({type:7,index:s}),f+=xe.length-1}s++}}static createElement(e,t){const r=ze.createElement("template");return r.innerHTML=e,r}}function Fe(i,e,t=i,r){var n,l,d;if(e===de)return e;let o=r!==void 0?(n=t._$Co)==null?void 0:n[r]:t._$Cl;const s=nt(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==s&&((l=o==null?void 0:o._$AO)==null||l.call(o,!1),s===void 0?o=void 0:(o=new s(i),o._$AT(i,t,r)),r!==void 0?((d=t._$Co)!=null?d:t._$Co=[])[r]=o:t._$Cl=o),o!==void 0&&(e=Fe(i,o._$AS(i,e.values),o,r)),e}class To{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var p;const{el:{content:t},parts:r}=this._$AD,o=((p=e==null?void 0:e.creationScope)!=null?p:ze).importNode(t,!0);Oe.currentNode=o;let s=Oe.nextNode(),n=0,l=0,d=r[0];for(;d!==void 0;){if(n===d.index){let h;d.type===2?h=new dt(s,s.nextSibling,this,e):d.type===1?h=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(h=new Ro(s,this,e)),this._$AV.push(h),d=r[++l]}n!==(d==null?void 0:d.index)&&(s=Oe.nextNode(),n++)}return Oe.currentNode=ze,o}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class dt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,o){var s;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(s=o==null?void 0:o.isConnected)!=null?s:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Fe(this,e,t),nt(e)?e===b||e==null||e===""?(this._$AH!==b&&this._$AR(),this._$AH=b):e!==this._$AH&&e!==de&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Po(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==b&&nt(this._$AH)?this._$AA.nextSibling.data=e:this.T(ze.createTextNode(e)),this._$AH=e}$(e){var s;const{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=lt.createElement(Ar(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===o)this._$AH.p(t);else{const n=new To(o,this),l=n.u(this.options);n.p(t),this.T(l),this._$AH=n}}_$AC(e){let t=Dr.get(e.strings);return t===void 0&&Dr.set(e.strings,t=new lt(e)),t}k(e){qt(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const s of e)o===t.length?t.push(r=new dt(this.O(st()),this.O(st()),this,this.options)):r=t[o],r._$AI(s),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const o=yr(e).nextSibling;yr(e).remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,s){this.type=1,this._$AH=b,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=b}_$AI(e,t=this,r,o){const s=this.strings;let n=!1;if(s===void 0)e=Fe(this,e,t,0),n=!nt(e)||e!==this._$AH&&e!==de,n&&(this._$AH=e);else{const l=e;let d,p;for(e=s[0],d=0;d<s.length-1;d++)p=Fe(this,l[r+d],t,d),p===de&&(p=this._$AH[d]),n||(n=!nt(p)||p!==this._$AH[d]),p===b?e=b:e!==b&&(e+=(p!=null?p:"")+s[d+1]),this._$AH[d]=p}n&&!o&&this.j(e)}j(e){e===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Bo extends Et{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===b?void 0:e}}class Io extends Et{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==b)}}class Yo extends Et{constructor(e,t,r,o,s){super(e,t,r,o,s),this.type=5}_$AI(e,t=this){var n;if((e=(n=Fe(this,e,t,0))!=null?n:b)===de)return;const r=this._$AH,o=e===b&&r!==b||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==b&&(r===b||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Ro{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Fe(this,e)}}const Zt=it.litHtmlPolyfillSupport;Zt==null||Zt(lt,dt),((po=it.litHtmlVersions)!=null?po:it.litHtmlVersions=[]).push("3.3.2");const Ho=(i,e,t)=>{var s,n;const r=(s=t==null?void 0:t.renderBefore)!=null?s:e;let o=r._$litPart$;if(o===void 0){const l=(n=t==null?void 0:t.renderBefore)!=null?n:null;r._$litPart$=o=new dt(e.insertBefore(st(),l),l,void 0,t!=null?t:{})}return o._$AI(i),o};const Le=globalThis;let T=class extends je{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const e=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ho(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return de}};T._$litElement$=!0,T.finalized=!0,(uo=Le.litElementHydrateSupport)==null||uo.call(Le,{LitElement:T});const Kt=Le.litElementPolyfillSupport;Kt==null||Kt({LitElement:T}),((fo=Le.litElementVersions)!=null?fo:Le.litElementVersions=[]).push("4.2.2");const U=i=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(i,e)}):customElements.define(i,e)};const jo={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:Vt},Fo=(i=jo,e,t)=>{const{kind:r,metadata:o}=t;let s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),r==="setter"&&((i=Object.create(i)).wrapped=!0),s.set(t.name,i),r==="accessor"){const{name:n}=t;return{set(l){const d=e.get.call(this);e.set.call(this,l),this.requestUpdate(n,d,i,!0,l)},init(l){return l!==void 0&&this.C(n,void 0,i,l),l}}}if(r==="setter"){const{name:n}=t;return function(l){const d=this[n];e.call(this,l),this.requestUpdate(n,d,i,!0,l)}}throw Error("Unsupported decorator location: "+r)};function c(i){return(e,t)=>typeof t=="object"?Fo(i,e,t):((r,o,s)=>{const n=o.hasOwnProperty(s);return o.constructor.createProperty(s,r),n?Object.getOwnPropertyDescriptor(o,s):void 0})(i,e,t)}function $(i){return c(jt($t({},i),{state:!0,attribute:!1}))}const No=(i,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(i,e,t),t);function J(i,e){return(t,r,o)=>{const s=n=>{var l,d;return(d=(l=n.renderRoot)==null?void 0:l.querySelector(i))!=null?d:null};return No(t,r,{get(){return s(this)}})}}const Uo='.button{display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-family-base);font-weight:var(--font-weight-semibold);border:none;border-radius:var(--radius-base);cursor:pointer;transition:all var(--transition-speed-base) var(--transition-timing);gap:var(--spacing-2);white-space:nowrap;-webkit-user-select:none;user-select:none;outline:none;text-decoration:none;line-height:1}.button:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.button:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.button ::slotted(*){display:inline-flex;align-items:center;vertical-align:middle}.button ::slotted(i),.button ::slotted([class^="uil-"]),.button ::slotted([class*=" uil-"]){font-size:inherit;line-height:1;flex-shrink:0}.button--sm{font-size:var(--font-size-sm);padding:var(--spacing-1) var(--spacing-2)}.button--sm.button--icon-only{padding:var(--spacing-1);line-height:16px}.button--md{font-size:var(--font-size-sm);padding:var(--spacing-2) var(--spacing-3)}.button--md.button--icon-only{padding:var(--spacing-2);line-height:16px}.button--lg{font-size:var(--font-size-base);padding:var(--spacing-3) var(--spacing-4)}.button--lg.button--icon-only{padding:var(--spacing-3);line-height:16px}.button--solid.button--primary{background-color:var(--color-primary);color:#fff}.button--solid.button--primary:hover:not(:disabled){background-color:var(--color-primary-hover)}.button--solid.button--primary:active:not(:disabled){background-color:var(--color-primary-active)}.button--solid.button--secondary{background-color:var(--color-secondary);color:#fff}.button--solid.button--secondary:hover:not(:disabled){background-color:var(--color-secondary-hover)}.button--solid.button-secondary:active:not(:disabled){background-color:var(--color-secondary-active)}.button--text.button--secondary{background-color:transparent;color:var(--color-secondary)}.button--solid.button--success{background-color:var(--color-success);color:var(--color-success-text-emphasis)}.button--solid.button--success:hover:not(:disabled){background-color:var(--color-success-hover);color:var(--color-success-text-emphasis)}.button--solid.button--success:active:not(:disabled){background-color:var(--color-success-active);color:var(--color-success-text-emphasis)}.button--solid.button--danger{background-color:var(--color-danger);color:var(--color-danger-text-emphasis)}.button--solid.button--danger:hover:not(:disabled){background-color:var(--color-danger-hover);color:var(--color-danger-text-emphasis)}.button--solid.button--danger:active:not(:disabled){background-color:var(--color-danger-active);color:var(--color-danger-text-emphasis)}.button--solid.button--info{background-color:var(--color-info);color:var(--color-info-text-emphasis)}.button--solid.button--info:hover:not(:disabled){background-color:var(--color-info-hover);color:var(--color-info-text-emphasis)}.button--solid.button--info:active:not(:disabled){background-color:var(--color-info-active);color:var(--color-info-text-emphasis)}.button--solid.button--warning{background-color:var(--color-warning);color:var(--color-warning-text-emphasis)}.button--solid.button--warning:hover:not(:disabled){background-color:var(--color-warning-hover);color:var(--color-warning-text-emphasis)}.button--solid.button--warning:active:not(:disabled){background-color:var(--color-warning-active);color:var(--color-warning-text-emphasis)}.button--outline{border-width:2px;border-style:solid}.button--outline.button--sm{padding:calc(var(--spacing-1) - 2px) calc(var(--spacing-2) - 2px)}.button--outline.button--sm.button--icon-only{padding:calc(var(--spacing-1) - 2px)}.button--outline.button--md{padding:calc(var(--spacing-2) - 2px) calc(var(--spacing-3) - 2px)}.button--outline.button--md.button--icon-only{padding:calc(var(--spacing-2) - 2px)}.button--outline.button--lg{padding:calc(var(--spacing-3) - 2px) calc(var(--spacing-4) - 2px)}.button--outline.button--lg.button--icon-only{padding:calc(var(--spacing-3) - 2px)}.button--outline.button--primary{background-color:transparent;color:var(--color-primary-text-emphasis);border-color:var(--color-border)}.button--outline.button--primary:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-primary)}.button--outline.button--secondary{background-color:transparent;color:var(--color-secondary-text-emphasis);border-color:var(--color-border)}.button--outline.button--secondary:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-secondary)}.button--outline.button--success{background-color:transparent;color:var(--color-success-outline-text-emphasis);border-color:var(--color-border-success)}.button--outline.button--success:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-success-outline-text-emphasis)}.button--outline.button--danger{background-color:transparent;color:var(--color-danger-outline-text-emphasis);border-color:var(--color-border-danger)}.button--outline.button--danger:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-danger-outline-text-emphasis)}.button--outline.button--info{background-color:transparent;color:var(--color-info-outline-text-emphasis);border-color:var(--color-border-info)}.button--outline.button--info:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-info-outline-text-emphasis)}.button--outline.button--warning{background-color:transparent;color:var(--color-warning-text-emphasis);border-color:var(--color-border-warning)}.button--outline.button--warning:hover:not(:disabled){background-color:var(--color-outline-hover);color:var(--color-warning-text-emphasis)}.button--text.button--primary{background-color:transparent;color:var(--color-primary)}.button--text.button--primary:hover:not(:disabled){background-color:var(--color-primary-bg-subtle)}.button--text.button--success{background-color:transparent;color:var(--color-success)}.button--text.button--success:hover:not(:disabled){background-color:var(--color-success-bg-subtle)}.button--text.button--danger{background-color:transparent;color:var(--color-danger)}.button--text.button--danger:hover:not(:disabled){background-color:var(--color-danger-bg-subtle)}.button--text.button--info{background-color:transparent;color:var(--color-info)}.button--text.button--info:hover:not(:disabled){background-color:var(--color-info-bg-subtle)}.button--text.button--warning{background-color:transparent;color:var(--color-warning)}.button--text.button--warning:hover:not(:disabled){background-color:var(--color-warning-bg-subtle)}';var Vo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,Ne=(i,e,t,r)=>{for(var o=r>1?void 0:r?qo(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&Vo(e,t,o),o};a.Button=class extends T{constructor(){super(...arguments),this.variant="solid",this.size="md",this.theme="primary",this.iconOnly=!1,this.disabled=!1}getButtonClasses(){const e=["button",`button--${this.variant}`,`button--${this.size}`,`button--${this.theme}`];return this.iconOnly&&e.push("button--icon-only"),e.join(" ")}render(){return u`
4
4
  <button
5
5
  class="${this.getButtonClasses()}"
6
6
  ?disabled="${this.disabled}"
@@ -9,7 +9,7 @@
9
9
  <slot></slot>
10
10
  <slot name="suffix"></slot>
11
11
  </button>
12
- `}},n.Button.styles=[N`${F(Fo)}`],Ne([c({type:String})],n.Button.prototype,"variant",2),Ne([c({type:String})],n.Button.prototype,"size",2),Ne([c({type:String})],n.Button.prototype,"theme",2),Ne([c({type:Boolean})],n.Button.prototype,"iconOnly",2),Ne([c({type:Boolean})],n.Button.prototype,"disabled",2),n.Button=Ne([U("logosphere-button")],n.Button);const Vo=".badge{display:inline-flex;align-items:center;gap:var(--spacing-1);font-family:var(--font-family-base);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);line-height:var(--line-height-normal);border-radius:var(--radius-base);white-space:nowrap;-webkit-user-select:none;user-select:none}.badge--default-size{padding:var(--spacing-1) var(--spacing-2)}.badge--small{padding:0 var(--spacing-1)}.badge--round{border-radius:var(--radius-md)}.badge--default{background-color:var(--color-tertiary-bg);color:var(--color-secondary)}.badge--warning{background-color:var(--color-warning-rgb);color:var(--color-warning-text-emphasis)}.badge--success{background-color:var(--color-success-rgb);color:var(--color-success)}.badge--info{background-color:var(--color-info-rgb);color:var(--color-info-text-emphasis)}.badge--danger{background-color:var(--color-danger-rgb);color:var(--color-danger)}.badge--purple{background-color:var(--color-purple-rgb);color:var(--color-purple)}.badge__close{display:inline-flex;align-items:center;justify-content:center;margin-left:var(--spacing-1);padding:0;background:none;border:none;cursor:pointer;color:inherit;opacity:.75;transition:opacity var(--transition-speed-fast) var(--transition-timing);line-height:1}.badge__close:hover{opacity:1}.badge__close:focus{outline:none;opacity:1}";const $e={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},Gt=i=>(...e)=>({_$litDirective$:i,values:e});class Xt{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class Jt extends Xt{constructor(e){if(super(e),this.it=m,e.type!==$e.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===m||e==null)return this._t=void 0,this.it=e;if(e===de)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Jt.directiveName="unsafeHTML",Jt.resultType=1;const Qt=Gt(Jt),qo={"uil-times":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.41,12l4.3-4.29a1,1,0,1,0-1.42-1.42L12,10.59,7.71,6.29A1,1,0,0,0,6.29,7.71L10.59,12l-4.3,4.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L12,13.41l4.29,4.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z"/></svg>',"uil-angle-down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17,9.17a1,1,0,0,0-1.41,0L12,12.71,8.46,9.17a1,1,0,0,0-1.41,0,1,1,0,0,0,0,1.42l4.24,4.24a1,1,0,0,0,1.42,0L17,10.59A1,1,0,0,0,17,9.17Z"/></svg>',"uil-calendar":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,4H17V3a1,1,0,0,0-2,0V4H9V3A1,1,0,0,0,7,3V4H5A3,3,0,0,0,2,7V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4Zm1,15a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V12H20Zm0-9H4V7A1,1,0,0,1,5,6H7V7A1,1,0,0,0,9,7V6h6V7a1,1,0,0,0,2,0V6h2a1,1,0,0,1,1,1Z"/></svg>',"uil-arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17,11H9.41l3.3-3.29a1,1,0,1,0-1.42-1.42l-5,5a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l5,5a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H17a1,1,0,0,0,0-2Z"/></svg>',"uil-arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.92,11.62a1,1,0,0,0-.21-.33l-5-5a1,1,0,0,0-1.42,1.42L14.59,11H7a1,1,0,0,0,0,2h7.59l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5-5a1,1,0,0,0,.21-.33A1,1,0,0,0,17.92,11.62Z"/></svg>',"uil-trash":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20,6H16V5a3,3,0,0,0-3-3H11A3,3,0,0,0,8,5V6H4A1,1,0,0,0,4,8H5V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V8h1a1,1,0,0,0,0-2ZM10,5a1,1,0,0,1,1-1h2a1,1,0,0,1,1,1V6H10Zm7,14a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V8H17Z"/></svg>',"uil-compress-alt":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,2.29a1,1,0,0,0-1.42,0L14.5,8.09V6.5a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54,1,1,0,0,0,.38.08h4a1,1,0,0,0,0-2H15.91l5.8-5.79A1,1,0,0,0,21.71,2.29ZM10.88,12.58a1,1,0,0,0-.38-.08h-4a1,1,0,0,0,0,2H8.09l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5.79-5.8V17.5a1,1,0,0,0,2,0v-4a1,1,0,0,0-.08-.38A1,1,0,0,0,10.88,12.58Z"/></svg>',"uil-expand-alt":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.79,12.79,4,18.59V17a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54A1,1,0,0,0,3,22H7a1,1,0,0,0,0-2H5.41l5.8-5.79a1,1,0,0,0-1.42-1.42ZM21.92,2.62a1,1,0,0,0-.54-.54A1,1,0,0,0,21,2H17a1,1,0,0,0,0,2h1.59l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L20,5.41V7a1,1,0,0,0,2,0V3A1,1,0,0,0,21.92,2.62Z"/></svg>',"uil-copy":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,8.94a1.31,1.31,0,0,0-.06-.27l0-.09a1.07,1.07,0,0,0-.19-.28h0l-6-6h0a1.07,1.07,0,0,0-.28-.19.32.32,0,0,0-.09,0A.88.88,0,0,0,14.05,2H10A3,3,0,0,0,7,5V6H6A3,3,0,0,0,3,9V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V18h1a3,3,0,0,0,3-3V9S21,9,21,8.94ZM15,5.41,17.59,8H16a1,1,0,0,1-1-1ZM15,19a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V9A1,1,0,0,1,6,8H7v7a3,3,0,0,0,3,3h5Zm4-4a1,1,0,0,1-1,1H10a1,1,0,0,1-1-1V5a1,1,0,0,1,1-1h3V7a3,3,0,0,0,3,3h3Z"/></svg>',"uil-thumbs-up":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.3,10.08A3,3,0,0,0,19,9H14.44L15,7.57A4.13,4.13,0,0,0,11.11,2a1,1,0,0,0-.91.59L7.35,9H5a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17.73a3,3,0,0,0,2.95-2.46l1.27-7A3,3,0,0,0,21.3,10.08ZM7,20H5a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H7Zm13-7.82-1.27,7a1,1,0,0,1-1,.82H9V10.21l2.72-6.12A2.11,2.11,0,0,1,13.1,6.87L12.57,8.3A2,2,0,0,0,14.44,11H19a1,1,0,0,1,.77.36A1,1,0,0,1,20,12.18Z"/></svg>',"uil-thumbs-down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,2H6.27A3,3,0,0,0,3.32,4.46l-1.27,7A3,3,0,0,0,5,15H9.56L9,16.43A4.13,4.13,0,0,0,12.89,22a1,1,0,0,0,.91-.59L16.65,15H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM15,13.79l-2.72,6.12a2.13,2.13,0,0,1-1.38-2.78l.53-1.43A2,2,0,0,0,9.56,13H5a1,1,0,0,1-.77-.36A1,1,0,0,1,4,11.82l1.27-7a1,1,0,0,1,1-.82H15ZM20,12a1,1,0,0,1-1,1H17V4h2a1,1,0,0,1,1,1Z"/></svg>',"uil-arrow-circle-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.71,12.71a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76,1,1,0,0,0-.21-.33l-3-3a1,1,0,0,0-1.42,1.42L12.59,11H9a1,1,0,0,0,0,2h3.59l-1.3,1.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0ZM22,12A10,10,0,1,0,12,22,10,10,0,0,0,22,12ZM4,12a8,8,0,1,1,8,8A8,8,0,0,1,4,12Z"/></svg>',"uil-eye":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.92,11.6C19.9,6.91,16.1,4,12,4S4.1,6.91,2.08,11.6a1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20s7.9-2.91,9.92-7.6A1,1,0,0,0,21.92,11.6ZM12,18c-3.17,0-6.17-2.29-7.9-6C5.83,8.29,8.83,6,12,6s6.17,2.29,7.9,6C18.17,15.71,15.17,18,12,18ZM12,8a4,4,0,1,0,4,4A4,4,0,0,0,12,8Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,14Z"/></svg>',"uil-eye-slash":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.94,6.08A6.93,6.93,0,0,1,12,6c3.18,0,6.17,2.29,7.91,6a15.23,15.23,0,0,1-.9,1.64,1,1,0,0,0-.16.55,1,1,0,0,0,1.86.5,15.77,15.77,0,0,0,1.21-2.3,1,1,0,0,0,0-.79C19.9,6.91,16.1,4,12,4a7.77,7.77,0,0,0-1.4.12,1,1,0,1,0,.34,2ZM3.71,2.29A1,1,0,0,0,2.29,3.71L5.39,6.8a14.62,14.62,0,0,0-3.31,4.8,1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20a9.26,9.26,0,0,0,5.05-1.54l3.24,3.25a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Zm6.36,9.19,2.45,2.45A1.81,1.81,0,0,1,12,14a2,2,0,0,1-2-2A1.81,1.81,0,0,1,10.07,11.48ZM12,18c-3.18,0-6.17-2.29-7.9-6A12.09,12.09,0,0,1,6.8,8.21L8.57,10A4,4,0,0,0,14,15.43L15.59,17A7.24,7.24,0,0,1,12,18Z"/></svg>',"uil-search":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,20.29,18,16.61A9,9,0,1,0,16.61,18l3.68,3.68a1,1,0,0,0,1.42,0A1,1,0,0,0,21.71,20.29ZM11,18a7,7,0,1,1,7-7A7,7,0,0,1,11,18Z"/></svg>',"uil-left-arrow-to-left":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,11H9.41l2.3-2.29a1,1,0,1,0-1.42-1.42l-4,4a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l4,4a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H21a1,1,0,0,0,0-2ZM3,3A1,1,0,0,0,2,4V20a1,1,0,0,0,2,0V4A1,1,0,0,0,3,3Z"/></svg>',"uil-right-arrow-to-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.71,11.29l-4-4a1,1,0,1,0-1.42,1.42L14.59,11H3a1,1,0,0,0,0,2H14.59l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l4-4a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76A1,1,0,0,0,17.71,11.29ZM21,4a1,1,0,0,0-1,1V19a1,1,0,0,0,2,0V5A1,1,0,0,0,21,4Z"/></svg>',"uil-pin":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.37,12.79a1,1,0,0,0-.74,1.86C17.09,15.23,18,16.13,18,17c0,1.42-2.46,3-6,3s-6-1.58-6-3c0-.87.91-1.77,2.37-2.35a1,1,0,0,0-.74-1.86C5.36,13.69,4,15.26,4,17c0,2.8,3.51,5,8,5s8-2.2,8-5C20,15.26,18.64,13.69,16.37,12.79ZM11,9.86V17a1,1,0,0,0,2,0V9.86a4,4,0,1,0-2,0ZM12,4a2,2,0,1,1-2,2A2,2,0,0,1,12,4Z"/></svg>'},Yt=class Yt extends T{constructor(){super(...arguments),this.name="",this.size=20}render(){const e=qo[this.name];return e?u`
12
+ `}},a.Button.styles=[N`${F(Uo)}`],Ne([c({type:String})],a.Button.prototype,"variant",2),Ne([c({type:String})],a.Button.prototype,"size",2),Ne([c({type:String})],a.Button.prototype,"theme",2),Ne([c({type:Boolean})],a.Button.prototype,"iconOnly",2),Ne([c({type:Boolean})],a.Button.prototype,"disabled",2),a.Button=Ne([U("logosphere-button")],a.Button);const Wo=".badge{display:inline-flex;align-items:center;gap:var(--spacing-1);font-family:var(--font-family-base);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);line-height:var(--line-height-normal);border-radius:var(--radius-base);white-space:nowrap;-webkit-user-select:none;user-select:none}.badge--default-size{padding:var(--spacing-1) var(--spacing-2)}.badge--small{padding:0 var(--spacing-1)}.badge--round{border-radius:var(--radius-md)}.badge--default{background-color:var(--color-tertiary-bg);color:var(--color-secondary)}.badge--warning{background-color:var(--color-warning-rgb);color:var(--color-warning-text-emphasis)}.badge--success{background-color:var(--color-success-rgb);color:var(--color-success)}.badge--info{background-color:var(--color-info-rgb);color:var(--color-info-text-emphasis)}.badge--danger{background-color:var(--color-danger-rgb);color:var(--color-danger)}.badge--purple{background-color:var(--color-purple-rgb);color:var(--color-purple)}.badge__close{display:inline-flex;align-items:center;justify-content:center;margin-left:var(--spacing-1);padding:0;background:none;border:none;cursor:pointer;color:inherit;opacity:.75;transition:opacity var(--transition-speed-fast) var(--transition-timing);line-height:1}.badge__close:hover{opacity:1}.badge__close:focus{outline:none;opacity:1}";const $e={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},Gt=i=>(...e)=>({_$litDirective$:i,values:e});class Xt{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class Jt extends Xt{constructor(e){if(super(e),this.it=b,e.type!==$e.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===b||e==null)return this._t=void 0,this.it=e;if(e===de)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Jt.directiveName="unsafeHTML",Jt.resultType=1;const Qt=Gt(Jt),Zo={"uil-times":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.41,12l4.3-4.29a1,1,0,1,0-1.42-1.42L12,10.59,7.71,6.29A1,1,0,0,0,6.29,7.71L10.59,12l-4.3,4.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L12,13.41l4.29,4.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z"/></svg>',"uil-angle-down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17,9.17a1,1,0,0,0-1.41,0L12,12.71,8.46,9.17a1,1,0,0,0-1.41,0,1,1,0,0,0,0,1.42l4.24,4.24a1,1,0,0,0,1.42,0L17,10.59A1,1,0,0,0,17,9.17Z"/></svg>',"uil-calendar":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,4H17V3a1,1,0,0,0-2,0V4H9V3A1,1,0,0,0,7,3V4H5A3,3,0,0,0,2,7V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4Zm1,15a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V12H20Zm0-9H4V7A1,1,0,0,1,5,6H7V7A1,1,0,0,0,9,7V6h6V7a1,1,0,0,0,2,0V6h2a1,1,0,0,1,1,1Z"/></svg>',"uil-arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17,11H9.41l3.3-3.29a1,1,0,1,0-1.42-1.42l-5,5a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l5,5a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H17a1,1,0,0,0,0-2Z"/></svg>',"uil-arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.92,11.62a1,1,0,0,0-.21-.33l-5-5a1,1,0,0,0-1.42,1.42L14.59,11H7a1,1,0,0,0,0,2h7.59l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5-5a1,1,0,0,0,.21-.33A1,1,0,0,0,17.92,11.62Z"/></svg>',"uil-trash":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20,6H16V5a3,3,0,0,0-3-3H11A3,3,0,0,0,8,5V6H4A1,1,0,0,0,4,8H5V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V8h1a1,1,0,0,0,0-2ZM10,5a1,1,0,0,1,1-1h2a1,1,0,0,1,1,1V6H10Zm7,14a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V8H17Z"/></svg>',"uil-compress-alt":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,2.29a1,1,0,0,0-1.42,0L14.5,8.09V6.5a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54,1,1,0,0,0,.38.08h4a1,1,0,0,0,0-2H15.91l5.8-5.79A1,1,0,0,0,21.71,2.29ZM10.88,12.58a1,1,0,0,0-.38-.08h-4a1,1,0,0,0,0,2H8.09l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5.79-5.8V17.5a1,1,0,0,0,2,0v-4a1,1,0,0,0-.08-.38A1,1,0,0,0,10.88,12.58Z"/></svg>',"uil-expand-alt":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.79,12.79,4,18.59V17a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54A1,1,0,0,0,3,22H7a1,1,0,0,0,0-2H5.41l5.8-5.79a1,1,0,0,0-1.42-1.42ZM21.92,2.62a1,1,0,0,0-.54-.54A1,1,0,0,0,21,2H17a1,1,0,0,0,0,2h1.59l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L20,5.41V7a1,1,0,0,0,2,0V3A1,1,0,0,0,21.92,2.62Z"/></svg>',"uil-copy":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,8.94a1.31,1.31,0,0,0-.06-.27l0-.09a1.07,1.07,0,0,0-.19-.28h0l-6-6h0a1.07,1.07,0,0,0-.28-.19.32.32,0,0,0-.09,0A.88.88,0,0,0,14.05,2H10A3,3,0,0,0,7,5V6H6A3,3,0,0,0,3,9V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V18h1a3,3,0,0,0,3-3V9S21,9,21,8.94ZM15,5.41,17.59,8H16a1,1,0,0,1-1-1ZM15,19a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V9A1,1,0,0,1,6,8H7v7a3,3,0,0,0,3,3h5Zm4-4a1,1,0,0,1-1,1H10a1,1,0,0,1-1-1V5a1,1,0,0,1,1-1h3V7a3,3,0,0,0,3,3h3Z"/></svg>',"uil-thumbs-up":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.3,10.08A3,3,0,0,0,19,9H14.44L15,7.57A4.13,4.13,0,0,0,11.11,2a1,1,0,0,0-.91.59L7.35,9H5a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17.73a3,3,0,0,0,2.95-2.46l1.27-7A3,3,0,0,0,21.3,10.08ZM7,20H5a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H7Zm13-7.82-1.27,7a1,1,0,0,1-1,.82H9V10.21l2.72-6.12A2.11,2.11,0,0,1,13.1,6.87L12.57,8.3A2,2,0,0,0,14.44,11H19a1,1,0,0,1,.77.36A1,1,0,0,1,20,12.18Z"/></svg>',"uil-thumbs-down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,2H6.27A3,3,0,0,0,3.32,4.46l-1.27,7A3,3,0,0,0,5,15H9.56L9,16.43A4.13,4.13,0,0,0,12.89,22a1,1,0,0,0,.91-.59L16.65,15H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM15,13.79l-2.72,6.12a2.13,2.13,0,0,1-1.38-2.78l.53-1.43A2,2,0,0,0,9.56,13H5a1,1,0,0,1-.77-.36A1,1,0,0,1,4,11.82l1.27-7a1,1,0,0,1,1-.82H15ZM20,12a1,1,0,0,1-1,1H17V4h2a1,1,0,0,1,1,1Z"/></svg>',"uil-arrow-circle-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.71,12.71a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76,1,1,0,0,0-.21-.33l-3-3a1,1,0,0,0-1.42,1.42L12.59,11H9a1,1,0,0,0,0,2h3.59l-1.3,1.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0ZM22,12A10,10,0,1,0,12,22,10,10,0,0,0,22,12ZM4,12a8,8,0,1,1,8,8A8,8,0,0,1,4,12Z"/></svg>',"uil-eye":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.92,11.6C19.9,6.91,16.1,4,12,4S4.1,6.91,2.08,11.6a1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20s7.9-2.91,9.92-7.6A1,1,0,0,0,21.92,11.6ZM12,18c-3.17,0-6.17-2.29-7.9-6C5.83,8.29,8.83,6,12,6s6.17,2.29,7.9,6C18.17,15.71,15.17,18,12,18ZM12,8a4,4,0,1,0,4,4A4,4,0,0,0,12,8Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,14Z"/></svg>',"uil-eye-slash":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.94,6.08A6.93,6.93,0,0,1,12,6c3.18,0,6.17,2.29,7.91,6a15.23,15.23,0,0,1-.9,1.64,1,1,0,0,0-.16.55,1,1,0,0,0,1.86.5,15.77,15.77,0,0,0,1.21-2.3,1,1,0,0,0,0-.79C19.9,6.91,16.1,4,12,4a7.77,7.77,0,0,0-1.4.12,1,1,0,1,0,.34,2ZM3.71,2.29A1,1,0,0,0,2.29,3.71L5.39,6.8a14.62,14.62,0,0,0-3.31,4.8,1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20a9.26,9.26,0,0,0,5.05-1.54l3.24,3.25a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Zm6.36,9.19,2.45,2.45A1.81,1.81,0,0,1,12,14a2,2,0,0,1-2-2A1.81,1.81,0,0,1,10.07,11.48ZM12,18c-3.18,0-6.17-2.29-7.9-6A12.09,12.09,0,0,1,6.8,8.21L8.57,10A4,4,0,0,0,14,15.43L15.59,17A7.24,7.24,0,0,1,12,18Z"/></svg>',"uil-search":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,20.29,18,16.61A9,9,0,1,0,16.61,18l3.68,3.68a1,1,0,0,0,1.42,0A1,1,0,0,0,21.71,20.29ZM11,18a7,7,0,1,1,7-7A7,7,0,0,1,11,18Z"/></svg>',"uil-left-arrow-to-left":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,11H9.41l2.3-2.29a1,1,0,1,0-1.42-1.42l-4,4a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l4,4a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H21a1,1,0,0,0,0-2ZM3,3A1,1,0,0,0,2,4V20a1,1,0,0,0,2,0V4A1,1,0,0,0,3,3Z"/></svg>',"uil-right-arrow-to-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.71,11.29l-4-4a1,1,0,1,0-1.42,1.42L14.59,11H3a1,1,0,0,0,0,2H14.59l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l4-4a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76A1,1,0,0,0,17.71,11.29ZM21,4a1,1,0,0,0-1,1V19a1,1,0,0,0,2,0V5A1,1,0,0,0,21,4Z"/></svg>',"uil-pin":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.37,12.79a1,1,0,0,0-.74,1.86C17.09,15.23,18,16.13,18,17c0,1.42-2.46,3-6,3s-6-1.58-6-3c0-.87.91-1.77,2.37-2.35a1,1,0,0,0-.74-1.86C5.36,13.69,4,15.26,4,17c0,2.8,3.51,5,8,5s8-2.2,8-5C20,15.26,18.64,13.69,16.37,12.79ZM11,9.86V17a1,1,0,0,0,2,0V9.86a4,4,0,1,0-2,0ZM12,4a2,2,0,1,1-2,2A2,2,0,0,1,12,4Z"/></svg>'},Yt=class Yt extends T{constructor(){super(...arguments),this.name="",this.size=20}render(){const e=Zo[this.name];return e?u`
13
13
  <span
14
14
  style="font-size: ${this.size}px;"
15
15
  aria-hidden="true"
@@ -30,19 +30,19 @@
30
30
  height: 1em;
31
31
  fill: currentColor;
32
32
  }
33
- `;let er=Yt;customElements.define("ui-icon",er);var Wo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,Te=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zo(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wo(e,t,o),o};n.LogosphereBadge=class extends T{constructor(){super(...arguments),this.variant="default",this.size="default",this.text="",this.closeable=!1,this.isRound=!1}handleClose(){this.onClose&&this.onClose(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}getBadgeClasses(){const e=["badge",`badge--${this.variant}`,this.size==="small"?"badge--small":"badge--default-size"];return this.isRound&&e.push("badge--round"),e.join(" ")}render(){return u`
33
+ `;let er=Yt;customElements.define("ui-icon",er);var Ko=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Te=(i,e,t,r)=>{for(var o=r>1?void 0:r?Go(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&Ko(e,t,o),o};a.LogosphereBadge=class extends T{constructor(){super(...arguments),this.variant="default",this.size="default",this.text="",this.closeable=!1,this.isRound=!1}handleClose(){this.onClose&&this.onClose(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}getBadgeClasses(){const e=["badge",`badge--${this.variant}`,this.size==="small"?"badge--small":"badge--default-size"];return this.isRound&&e.push("badge--round"),e.join(" ")}render(){return u`
34
34
  <div class="${this.getBadgeClasses()}">
35
35
  <slot></slot>
36
- ${this.text?u`<span>${this.text}</span>`:m}
36
+ ${this.text?u`<span>${this.text}</span>`:b}
37
37
  ${this.closeable?u`
38
38
  <button class="badge__close" @click=${this.handleClose} aria-label="Close">
39
39
  <ui-icon name="uil-times"></ui-icon>
40
40
  </button>
41
- `:m}
41
+ `:b}
42
42
  </div>
43
- `}},n.LogosphereBadge.styles=[N`
44
- ${F(Vo)}
45
- `],Te([c({type:String})],n.LogosphereBadge.prototype,"variant",2),Te([c({type:String})],n.LogosphereBadge.prototype,"size",2),Te([c({type:String})],n.LogosphereBadge.prototype,"text",2),Te([c({type:Boolean})],n.LogosphereBadge.prototype,"closeable",2),Te([c({type:Boolean})],n.LogosphereBadge.prototype,"isRound",2),Te([c({attribute:!1})],n.LogosphereBadge.prototype,"onClose",2),n.LogosphereBadge=Te([U("logosphere-badge")],n.LogosphereBadge);const Ar=i=>i.strings===void 0,Ko={},Go=(i,e=Ko)=>i._$AH=e;const ct=(i,e)=>{var r;const t=i._$AN;if(t===void 0)return!1;for(const o of t)(r=o._$AO)==null||r.call(o,e,!1),ct(o,e);return!0},St=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while((t==null?void 0:t.size)===0)},zr=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),Qo(e)}};function Xo(i){this._$AN!==void 0?(St(this),this._$AM=i,zr(this)):this._$AM=i}function Jo(i,e=!1,t=0){const r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(r))for(let s=t;s<r.length;s++)ct(r[s],!1),St(r[s]);else r!=null&&(ct(r,!1),St(r));else ct(this,i)}const Qo=i=>{var e,t;i.type==$e.CHILD&&((e=i._$AP)!=null||(i._$AP=Jo),(t=i._$AQ)!=null||(i._$AQ=Xo))};class ei extends Xt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),zr(this),this.isConnected=e._$AU}_$AO(e,t=!0){var r,o;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),t&&(ct(this,e),St(this))}setValue(e){if(Ar(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const tr=new WeakMap,Or=Gt(class extends ei{render(i){return m}update(i,[e]){var r;const t=e!==this.G;return t&&this.G!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=e,this.ht=(r=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),m}rt(i){var e;if(this.isConnected||(i=void 0),typeof this.G=="function"){const t=(e=this.ht)!=null?e:globalThis;let r=tr.get(t);r===void 0&&(r=new WeakMap,tr.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.ht,void 0),r.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){var i,e,t;return typeof this.G=="function"?(e=tr.get((i=this.ht)!=null?i:globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),ti='.checkbox-wrapper{display:inline-flex;align-items:center;gap:var(--spacing-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--font-family-base)}.checkbox-wrapper--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.checkbox-input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.checkbox-control{width:16px;height:16px;flex-shrink:0;position:relative;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);background-color:var(--color-body-bg);transition:background-color var(--transition-speed-fast) var(--transition-timing),border-color var(--transition-speed-fast) var(--transition-timing)}.checkbox-control--checked{background-color:var(--color-primary);border-color:var(--color-primary)}.checkbox-control--checked:after{content:"";position:absolute;top:50%;left:50%;width:9px;height:5px;border-left:2px solid #ffffff;border-bottom:2px solid #ffffff;transform:translate(-50%,-65%) rotate(-45deg)}.checkbox-control--indeterminate{background-color:var(--color-primary);border-color:var(--color-primary)}.checkbox-control--indeterminate:after{content:"";position:absolute;top:50%;left:50%;width:8px;height:2px;background-color:#fff;border-radius:1px;transform:translate(-50%,-50%)}.checkbox-label{font-size:var(--font-size-sm);line-height:var(--line-height-normal);color:var(--color-body-text)}.switch-wrapper{display:inline-flex;align-items:center;gap:var(--spacing-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--font-family-base)}.switch-wrapper--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.switch-track{width:36px;height:20px;flex-shrink:0;border-radius:var(--radius-full);background-color:var(--color-border);position:relative;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.switch-track--checked{background-color:var(--color-primary)}.switch-thumb{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:var(--radius-full);background-color:#fff;box-shadow:var(--shadow-xs);transition:transform var(--transition-speed-fast) var(--transition-timing)}.switch-track--checked .switch-thumb{transform:translate(16px)}';var ri=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,ke=(i,e,t,r)=>{for(var o=r>1?void 0:r?oi(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ri(e,t,o),o};n.Checkbox=class extends T{constructor(){super(...arguments),this.label="",this.value="",this.checked=!1,this.type="checkbox",this.disabled=!1,this.indeterminate=!1,this.internalChecked=!1}connectedCallback(){super.connectedCallback(),this.internalChecked=this.checked}firstUpdated(){this.setIndeterminate()}updated(e){e.has("indeterminate")&&this.setIndeterminate(),e.has("checked")&&(this.internalChecked=this.checked)}setIndeterminate(){this.inputElement&&(this.inputElement.indeterminate=this.indeterminate)}toggleChecked(){this.disabled||(this.indeterminate?(this.indeterminate=!1,this.internalChecked=!0):this.internalChecked=!this.internalChecked,this.dispatchEvent(new CustomEvent("lgsChange",{detail:{checked:this.internalChecked,indeterminate:this.indeterminate,value:this.value},bubbles:!0,composed:!0})))}renderCheckbox(){const e=["checkbox-control",this.internalChecked?"checkbox-control--checked":"",this.indeterminate?"checkbox-control--indeterminate":""].filter(Boolean).join(" ");return u`
43
+ `}},a.LogosphereBadge.styles=[N`
44
+ ${F(Wo)}
45
+ `],Te([c({type:String})],a.LogosphereBadge.prototype,"variant",2),Te([c({type:String})],a.LogosphereBadge.prototype,"size",2),Te([c({type:String})],a.LogosphereBadge.prototype,"text",2),Te([c({type:Boolean})],a.LogosphereBadge.prototype,"closeable",2),Te([c({type:Boolean})],a.LogosphereBadge.prototype,"isRound",2),Te([c({attribute:!1})],a.LogosphereBadge.prototype,"onClose",2),a.LogosphereBadge=Te([U("logosphere-badge")],a.LogosphereBadge);const zr=i=>i.strings===void 0,Xo={},Jo=(i,e=Xo)=>i._$AH=e;const ct=(i,e)=>{var r;const t=i._$AN;if(t===void 0)return!1;for(const o of t)(r=o._$AO)==null||r.call(o,e,!1),ct(o,e);return!0},St=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while((t==null?void 0:t.size)===0)},Pr=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),ti(e)}};function Qo(i){this._$AN!==void 0?(St(this),this._$AM=i,Pr(this)):this._$AM=i}function ei(i,e=!1,t=0){const r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(r))for(let s=t;s<r.length;s++)ct(r[s],!1),St(r[s]);else r!=null&&(ct(r,!1),St(r));else ct(this,i)}const ti=i=>{var e,t;i.type==$e.CHILD&&((e=i._$AP)!=null||(i._$AP=ei),(t=i._$AQ)!=null||(i._$AQ=Qo))};class ri extends Xt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),Pr(this),this.isConnected=e._$AU}_$AO(e,t=!0){var r,o;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),t&&(ct(this,e),St(this))}setValue(e){if(zr(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const tr=new WeakMap,Or=Gt(class extends ri{render(i){return b}update(i,[e]){var r;const t=e!==this.G;return t&&this.G!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=e,this.ht=(r=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),b}rt(i){var e;if(this.isConnected||(i=void 0),typeof this.G=="function"){const t=(e=this.ht)!=null?e:globalThis;let r=tr.get(t);r===void 0&&(r=new WeakMap,tr.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.ht,void 0),r.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){var i,e,t;return typeof this.G=="function"?(e=tr.get((i=this.ht)!=null?i:globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),oi='.checkbox-wrapper{display:inline-flex;align-items:center;gap:var(--spacing-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--font-family-base)}.checkbox-wrapper--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.checkbox-input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.checkbox-control{width:16px;height:16px;flex-shrink:0;position:relative;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);background-color:var(--color-body-bg);transition:background-color var(--transition-speed-fast) var(--transition-timing),border-color var(--transition-speed-fast) var(--transition-timing)}.checkbox-control--checked{background-color:var(--color-primary);border-color:var(--color-primary)}.checkbox-control--checked:after{content:"";position:absolute;top:50%;left:50%;width:9px;height:5px;border-left:2px solid #ffffff;border-bottom:2px solid #ffffff;transform:translate(-50%,-65%) rotate(-45deg)}.checkbox-control--indeterminate{background-color:var(--color-primary);border-color:var(--color-primary)}.checkbox-control--indeterminate:after{content:"";position:absolute;top:50%;left:50%;width:8px;height:2px;background-color:#fff;border-radius:1px;transform:translate(-50%,-50%)}.checkbox-label{font-size:var(--font-size-sm);line-height:var(--line-height-normal);color:var(--color-body-text)}.switch-wrapper{display:inline-flex;align-items:center;gap:var(--spacing-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--font-family-base)}.switch-wrapper--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.switch-track{width:36px;height:20px;flex-shrink:0;border-radius:var(--radius-full);background-color:var(--color-border);position:relative;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.switch-track--checked{background-color:var(--color-primary)}.switch-thumb{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:var(--radius-full);background-color:#fff;box-shadow:var(--shadow-xs);transition:transform var(--transition-speed-fast) var(--transition-timing)}.switch-track--checked .switch-thumb{transform:translate(16px)}';var ii=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ke=(i,e,t,r)=>{for(var o=r>1?void 0:r?si(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&ii(e,t,o),o};a.Checkbox=class extends T{constructor(){super(...arguments),this.label="",this.value="",this.checked=!1,this.type="checkbox",this.disabled=!1,this.indeterminate=!1,this.internalChecked=!1}connectedCallback(){super.connectedCallback(),this.internalChecked=this.checked}firstUpdated(){this.setIndeterminate()}updated(e){e.has("indeterminate")&&this.setIndeterminate(),e.has("checked")&&(this.internalChecked=this.checked)}setIndeterminate(){this.inputElement&&(this.inputElement.indeterminate=this.indeterminate)}toggleChecked(){this.disabled||(this.indeterminate?(this.indeterminate=!1,this.internalChecked=!0):this.internalChecked=!this.internalChecked,this.dispatchEvent(new CustomEvent("lgsChange",{detail:{checked:this.internalChecked,indeterminate:this.indeterminate,value:this.value},bubbles:!0,composed:!0})))}renderCheckbox(){const e=["checkbox-control",this.internalChecked?"checkbox-control--checked":"",this.indeterminate?"checkbox-control--indeterminate":""].filter(Boolean).join(" ");return u`
46
46
  <div
47
47
  class="checkbox-wrapper ${this.disabled?"checkbox-wrapper--disabled":""}"
48
48
  @click=${this.toggleChecked}
@@ -56,7 +56,7 @@
56
56
  ${Or(t=>this.inputElement=t)}
57
57
  />
58
58
  <span class="${e}"></span>
59
- ${this.label?u`<span class="checkbox-label">${this.label}</span>`:m}
59
+ ${this.label?u`<span class="checkbox-label">${this.label}</span>`:b}
60
60
  </div>
61
61
  `}renderSwitch(){return u`
62
62
  <div
@@ -74,11 +74,11 @@
74
74
  <div class="switch-track ${this.internalChecked?"switch-track--checked":""}">
75
75
  <div class="switch-thumb"></div>
76
76
  </div>
77
- ${this.label?u`<span class="checkbox-label">${this.label}</span>`:m}
77
+ ${this.label?u`<span class="checkbox-label">${this.label}</span>`:b}
78
78
  </div>
79
- `}render(){return this.type==="switch"?this.renderSwitch():this.renderCheckbox()}},n.Checkbox.styles=[N`
80
- ${F(ti)}
81
- `],ke([c({type:String})],n.Checkbox.prototype,"label",2),ke([c({type:String})],n.Checkbox.prototype,"value",2),ke([c({type:Boolean})],n.Checkbox.prototype,"checked",2),ke([c({type:String})],n.Checkbox.prototype,"type",2),ke([c({type:Boolean})],n.Checkbox.prototype,"disabled",2),ke([c({type:Boolean})],n.Checkbox.prototype,"indeterminate",2),ke([$()],n.Checkbox.prototype,"internalChecked",2),n.Checkbox=ke([U("logosphere-checkbox")],n.Checkbox);const ii=":host{display:block}.formfield{position:relative;font-family:var(--font-family-base)}.formfield__label{display:block;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-body-text);margin-bottom:var(--spacing-2)}.formfield__required{color:var(--color-danger);margin-left:var(--spacing-1)}.formfield__container{position:relative;display:flex;align-items:center;box-sizing:border-box;border-radius:var(--radius-base);border:1px solid var(--color-border);padding:0 var(--spacing-2) 0 var(--spacing-3);background-color:var(--color-body-bg);cursor:text;transition:border-color var(--transition-speed-base) var(--transition-timing),background-color var(--transition-speed-base) var(--transition-timing)}.formfield__container--cursor-text{cursor:text}.formfield__container--cursor-pointer{cursor:pointer}.formfield__container--cursor-default{cursor:default}.formfield__container--default{min-height:32px}.formfield__container--large{min-height:40px}.formfield__container--focused{border-color:var(--color-secondary-hover);background-color:var(--color-body-bg)}.formfield__container--hovered:not(.formfield__container--focused):not(.formfield__container--error):not(.formfield__container--disabled){background-color:var(--color-tertiary-bg)}.formfield__container--error{border-color:var(--color-danger);background-color:var(--color-danger-bg-subtle)}.formfield__container--disabled{background-color:var(--color-tertiary-bg);opacity:.4;cursor:not-allowed}.formfield__container--subtle:not(.formfield__container--focused):not(.formfield__container--error){border-color:transparent}.formfield__input-area{flex:1;min-width:0;display:flex;align-items:center}.formfield__prefix,.formfield__clear,.formfield__suffix{display:flex;align-items:center;flex-shrink:0;align-self:stretch}.formfield__prefix{margin-right:var(--spacing-2)}.formfield__clear,.formfield__suffix{margin-left:var(--spacing-2)}.formfield__container--has-prefix .formfield__prefix{border-right:1px solid var(--color-border);padding-right:var(--spacing-2)}.formfield__container--has-suffix .formfield__suffix{border-left:1px solid var(--color-border);padding-left:var(--spacing-2)}.formfield__prefix:empty,.formfield__clear:empty,.formfield__suffix:empty{display:none}.formfield__helper{font-size:var(--font-size-sm);color:var(--color-tertiary);margin-top:var(--spacing-1)}.formfield__error{font-size:var(--font-size-sm);color:var(--color-danger);margin-top:var(--spacing-1)}::slotted(input),::slotted(textarea){width:100%;border:none;outline:none;background:transparent;font-size:14px;line-height:1.5}::slotted(input:disabled),::slotted(textarea:disabled){cursor:not-allowed}";var si=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,Q=(i,e,t,r)=>{for(var o=r>1?void 0:r?ai(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&si(e,t,o),o};n.FormField=class extends T{constructor(){super(...arguments),this.label="",this.helper="",this.error="",this.placeholder="",this.size="default",this.variant="default",this.cursor="text",this.required=!1,this.disabled=!1,this.readonly=!1,this._focused=!1,this._hovered=!1,this._hasPrefix=!1,this._hasSuffix=!1,this.handleSlotFocus=e=>{const t=e.target;["INPUT","TEXTAREA","SELECT"].includes(t.tagName)&&(this._focused=!0,this.dispatchEvent(new CustomEvent("field-focus",{bubbles:!0,composed:!0,detail:{originalEvent:e}})))},this.handleSlotBlur=e=>{const t=e.target;["INPUT","TEXTAREA","SELECT"].includes(t.tagName)&&(this._focused=!1,this.dispatchEvent(new CustomEvent("field-blur",{bubbles:!0,composed:!0,detail:{originalEvent:e}})))},this.handleMouseEnter=()=>{this._hovered=!0},this.handleMouseLeave=()=>{this._hovered=!1},this.handleContainerClick=e=>{var s;const t=e.target;if(["INPUT","TEXTAREA","SELECT","BUTTON"].includes(t.tagName))return;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("slot:not([name])"),o=r==null?void 0:r.assignedElements({flatten:!0}).find(a=>["INPUT","TEXTAREA","SELECT"].includes(a.tagName));o==null||o.focus()},this.handlePrefixSlotChange=e=>{const t=e.target;this._hasPrefix=t.assignedElements({flatten:!0}).length>0},this.handleSuffixSlotChange=e=>{const t=e.target;this._hasSuffix=t.assignedElements({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleSlotFocus,!0),this.addEventListener("blur",this.handleSlotBlur,!0)}firstUpdated(){var r,o;const e=(r=this.shadowRoot)==null?void 0:r.querySelector('slot[name="prefix"]'),t=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="suffix"]');e&&(this._hasPrefix=e.assignedElements({flatten:!0}).length>0),t&&(this._hasSuffix=t.assignedElements({flatten:!0}).length>0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleSlotFocus,!0),this.removeEventListener("blur",this.handleSlotBlur,!0)}render(){const e=!!this.error,t=!e&&!!this.helper,r=["formfield__container",`formfield__container--${this.size}`,`formfield__container--cursor-${this.cursor}`,this._hasPrefix?"formfield__container--has-prefix":"",this._hasSuffix?"formfield__container--has-suffix":"",e?"formfield__container--error":"",this._focused?"formfield__container--focused":"",this._hovered?"formfield__container--hovered":"",this.disabled?"formfield__container--disabled":"",this.variant==="subtle"?"formfield__container--subtle":""].filter(Boolean).join(" ");return u`
79
+ `}render(){return this.type==="switch"?this.renderSwitch():this.renderCheckbox()}},a.Checkbox.styles=[N`
80
+ ${F(oi)}
81
+ `],ke([c({type:String})],a.Checkbox.prototype,"label",2),ke([c({type:String})],a.Checkbox.prototype,"value",2),ke([c({type:Boolean})],a.Checkbox.prototype,"checked",2),ke([c({type:String})],a.Checkbox.prototype,"type",2),ke([c({type:Boolean})],a.Checkbox.prototype,"disabled",2),ke([c({type:Boolean})],a.Checkbox.prototype,"indeterminate",2),ke([$()],a.Checkbox.prototype,"internalChecked",2),a.Checkbox=ke([U("logosphere-checkbox")],a.Checkbox);const ni=":host{display:block}.formfield{position:relative;font-family:var(--font-family-base)}.formfield__label{display:block;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-body-text);margin-bottom:var(--spacing-2)}.formfield__required{color:var(--color-danger);margin-left:var(--spacing-1)}.formfield__container{position:relative;display:flex;align-items:center;box-sizing:border-box;border-radius:var(--radius-base);border:1px solid var(--color-border);padding:0 var(--spacing-2) 0 var(--spacing-3);background-color:var(--color-body-bg);cursor:text;transition:border-color var(--transition-speed-base) var(--transition-timing),background-color var(--transition-speed-base) var(--transition-timing)}.formfield__container--cursor-text{cursor:text}.formfield__container--cursor-pointer{cursor:pointer}.formfield__container--cursor-default{cursor:default}.formfield__container--default{min-height:32px}.formfield__container--large{min-height:40px}.formfield__container--focused{border-color:var(--color-secondary-hover);background-color:var(--color-body-bg)}.formfield__container--hovered:not(.formfield__container--focused):not(.formfield__container--error):not(.formfield__container--disabled){background-color:var(--color-tertiary-bg)}.formfield__container--error{border-color:var(--color-danger);background-color:var(--color-danger-bg-subtle)}.formfield__container--disabled{background-color:var(--color-tertiary-bg);opacity:.4;cursor:not-allowed}.formfield__container--subtle:not(.formfield__container--focused):not(.formfield__container--error){border-color:transparent}.formfield__input-area{flex:1;min-width:0;display:flex;align-items:center}.formfield__prefix,.formfield__clear,.formfield__suffix{display:flex;align-items:center;flex-shrink:0;align-self:stretch}.formfield__prefix{margin-right:var(--spacing-2)}.formfield__clear,.formfield__suffix{margin-left:var(--spacing-2)}.formfield__container--has-prefix .formfield__prefix{border-right:1px solid var(--color-border);padding-right:var(--spacing-2)}.formfield__container--has-suffix .formfield__suffix{border-left:1px solid var(--color-border);padding-left:var(--spacing-2)}.formfield__prefix:empty,.formfield__clear:empty,.formfield__suffix:empty{display:none}.formfield__helper{font-size:var(--font-size-sm);color:var(--color-tertiary);margin-top:var(--spacing-1)}.formfield__error{font-size:var(--font-size-sm);color:var(--color-danger);margin-top:var(--spacing-1)}::slotted(input),::slotted(textarea){width:100%;border:none;outline:none;background:transparent;font-size:14px;line-height:1.5}::slotted(input:disabled),::slotted(textarea:disabled){cursor:not-allowed}";var ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor,Q=(i,e,t,r)=>{for(var o=r>1?void 0:r?li(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&ai(e,t,o),o};a.FormField=class extends T{constructor(){super(...arguments),this.label="",this.helper="",this.error="",this.placeholder="",this.size="default",this.variant="default",this.cursor="text",this.required=!1,this.disabled=!1,this.readonly=!1,this._focused=!1,this._hovered=!1,this._hasPrefix=!1,this._hasSuffix=!1,this.handleSlotFocus=e=>{const t=e.target;["INPUT","TEXTAREA","SELECT"].includes(t.tagName)&&(this._focused=!0,this.dispatchEvent(new CustomEvent("field-focus",{bubbles:!0,composed:!0,detail:{originalEvent:e}})))},this.handleSlotBlur=e=>{const t=e.target;["INPUT","TEXTAREA","SELECT"].includes(t.tagName)&&(this._focused=!1,this.dispatchEvent(new CustomEvent("field-blur",{bubbles:!0,composed:!0,detail:{originalEvent:e}})))},this.handleMouseEnter=()=>{this._hovered=!0},this.handleMouseLeave=()=>{this._hovered=!1},this.handleContainerClick=e=>{var s;const t=e.target;if(["INPUT","TEXTAREA","SELECT","BUTTON"].includes(t.tagName))return;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("slot:not([name])"),o=r==null?void 0:r.assignedElements({flatten:!0}).find(n=>["INPUT","TEXTAREA","SELECT"].includes(n.tagName));o==null||o.focus()},this.handlePrefixSlotChange=e=>{const t=e.target;this._hasPrefix=t.assignedElements({flatten:!0}).length>0},this.handleSuffixSlotChange=e=>{const t=e.target;this._hasSuffix=t.assignedElements({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleSlotFocus,!0),this.addEventListener("blur",this.handleSlotBlur,!0)}firstUpdated(){var r,o;const e=(r=this.shadowRoot)==null?void 0:r.querySelector('slot[name="prefix"]'),t=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="suffix"]');e&&(this._hasPrefix=e.assignedElements({flatten:!0}).length>0),t&&(this._hasSuffix=t.assignedElements({flatten:!0}).length>0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleSlotFocus,!0),this.removeEventListener("blur",this.handleSlotBlur,!0)}render(){const e=!!this.error,t=!e&&!!this.helper,r=["formfield__container",`formfield__container--${this.size}`,`formfield__container--cursor-${this.cursor}`,this._hasPrefix?"formfield__container--has-prefix":"",this._hasSuffix?"formfield__container--has-suffix":"",e?"formfield__container--error":"",this._focused?"formfield__container--focused":"",this._hovered?"formfield__container--hovered":"",this.disabled?"formfield__container--disabled":"",this.variant==="subtle"?"formfield__container--subtle":""].filter(Boolean).join(" ");return u`
82
82
  <div class="formfield">
83
83
  ${this.label?u`
84
84
  <label class="formfield__label">
@@ -110,7 +110,7 @@
110
110
  ${t?u`<div class="formfield__helper">${this.helper}</div>`:""}
111
111
  ${e?u`<div class="formfield__error">${this.error}</div>`:""}
112
112
  </div>
113
- `}},n.FormField.styles=[N`${F(ii)}`],Q([c({type:String})],n.FormField.prototype,"label",2),Q([c({type:String})],n.FormField.prototype,"helper",2),Q([c({type:String})],n.FormField.prototype,"error",2),Q([c({type:String})],n.FormField.prototype,"placeholder",2),Q([c({type:String})],n.FormField.prototype,"size",2),Q([c({type:String})],n.FormField.prototype,"variant",2),Q([c({type:String})],n.FormField.prototype,"cursor",2),Q([c({type:Boolean})],n.FormField.prototype,"required",2),Q([c({type:Boolean})],n.FormField.prototype,"disabled",2),Q([c({type:Boolean})],n.FormField.prototype,"readonly",2),Q([$()],n.FormField.prototype,"_focused",2),Q([$()],n.FormField.prototype,"_hovered",2),Q([$()],n.FormField.prototype,"_hasPrefix",2),Q([$()],n.FormField.prototype,"_hasSuffix",2),n.FormField=Q([U("logosphere-formfield")],n.FormField);const ni=":host{display:block}.switch{display:inline-block;position:relative}.switch--md{width:36px;height:20px}.switch--sm{width:32px;height:18px}.switch__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.switch__track{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--radius-full);cursor:pointer;transition:background-color var(--transition-speed-base) var(--transition-timing);background-color:var(--color-gray-300)}.switch__track--on{background-color:var(--color-primary)}.switch__track--disabled{cursor:not-allowed}.switch__track--disabled-on{background-color:color-mix(in srgb,var(--color-primary) 30%,transparent)}.switch__track--disabled-off{background-color:var(--color-gray-200)}.switch__thumb{position:absolute;background-color:#fff;border-radius:var(--radius-full);box-shadow:var(--shadow-xs);top:2px;left:2px;transform:translate(0);transition:transform var(--transition-speed-base) var(--transition-timing)}.switch--md .switch__thumb{width:16px;height:16px}.switch--sm .switch__thumb{width:14px;height:14px}.switch__thumb--on.switch--md .switch__thumb,.switch__track--on~.switch__thumb{transform:translate(16px)}.switch__track--on+.switch__thumb{transform:translate(16px)}";var li=Object.defineProperty,di=Object.getOwnPropertyDescriptor,ht=(i,e,t,r)=>{for(var o=r>1?void 0:r?di(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&li(e,t,o),o};n.Switch=class extends T{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.size="md"}onChange(e){const t=e.target;this.checked=t.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked}}))}render(){const e=`switch switch--${this.size}`,t=["switch__track",this.checked&&!this.disabled?"switch__track--on":"",this.disabled?"switch__track--disabled":"",this.disabled&&this.checked?"switch__track--disabled-on":"",this.disabled&&!this.checked?"switch__track--disabled-off":""].filter(Boolean).join(" "),r=this.checked?"translateX(16px)":"translateX(0)";return u`
113
+ `}},a.FormField.styles=[N`${F(ni)}`],Q([c({type:String})],a.FormField.prototype,"label",2),Q([c({type:String})],a.FormField.prototype,"helper",2),Q([c({type:String})],a.FormField.prototype,"error",2),Q([c({type:String})],a.FormField.prototype,"placeholder",2),Q([c({type:String})],a.FormField.prototype,"size",2),Q([c({type:String})],a.FormField.prototype,"variant",2),Q([c({type:String})],a.FormField.prototype,"cursor",2),Q([c({type:Boolean})],a.FormField.prototype,"required",2),Q([c({type:Boolean})],a.FormField.prototype,"disabled",2),Q([c({type:Boolean})],a.FormField.prototype,"readonly",2),Q([$()],a.FormField.prototype,"_focused",2),Q([$()],a.FormField.prototype,"_hovered",2),Q([$()],a.FormField.prototype,"_hasPrefix",2),Q([$()],a.FormField.prototype,"_hasSuffix",2),a.FormField=Q([U("logosphere-formfield")],a.FormField);const di=":host{display:block}.switch{display:inline-block;position:relative}.switch--md{width:36px;height:20px}.switch--sm{width:32px;height:18px}.switch__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.switch__track{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--radius-full);cursor:pointer;transition:background-color var(--transition-speed-base) var(--transition-timing);background-color:var(--color-gray-300)}.switch__track--on{background-color:var(--color-primary)}.switch__track--disabled{cursor:not-allowed}.switch__track--disabled-on{background-color:color-mix(in srgb,var(--color-primary) 30%,transparent)}.switch__track--disabled-off{background-color:var(--color-gray-200)}.switch__thumb{position:absolute;background-color:#fff;border-radius:var(--radius-full);box-shadow:var(--shadow-xs);top:2px;left:2px;transform:translate(0);transition:transform var(--transition-speed-base) var(--transition-timing)}.switch--md .switch__thumb{width:16px;height:16px}.switch--sm .switch__thumb{width:14px;height:14px}.switch__thumb--on.switch--md .switch__thumb,.switch__track--on~.switch__thumb{transform:translate(16px)}.switch__track--on+.switch__thumb{transform:translate(16px)}";var ci=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,ht=(i,e,t,r)=>{for(var o=r>1?void 0:r?hi(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&ci(e,t,o),o};a.Switch=class extends T{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.size="md"}onChange(e){const t=e.target;this.checked=t.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked}}))}render(){const e=`switch switch--${this.size}`,t=["switch__track",this.checked&&!this.disabled?"switch__track--on":"",this.disabled?"switch__track--disabled":"",this.disabled&&this.checked?"switch__track--disabled-on":"",this.disabled&&!this.checked?"switch__track--disabled-off":""].filter(Boolean).join(" "),r=this.checked?"translateX(16px)":"translateX(0)";return u`
114
114
  <label class="${e}">
115
115
  <input
116
116
  class="switch__input"
@@ -126,7 +126,7 @@
126
126
  ></span>
127
127
  </div>
128
128
  </label>
129
- `}},n.Switch.styles=[N`${F(ni)}`],ht([c({type:Boolean})],n.Switch.prototype,"checked",2),ht([c({type:Boolean})],n.Switch.prototype,"disabled",2),ht([c({type:String})],n.Switch.prototype,"size",2),ht([J("input")],n.Switch.prototype,"inputElement",2),n.Switch=ht([U("logosphere-switch")],n.Switch);const ci=".breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:var(--spacing-2);font-family:var(--font-family-base);font-size:var(--font-size-sm);line-height:var(--line-height-normal);list-style:none;margin:0;padding:0}.breadcrumb__item{display:inline-flex;align-items:center;gap:var(--spacing-2)}.breadcrumb__link{color:var(--color-primary);text-decoration:none;font-weight:var(--font-weight-regular);transition:color var(--transition-speed-fast) var(--transition-timing),text-decoration var(--transition-speed-fast) var(--transition-timing)}.breadcrumb__link:hover{color:var(--color-primary-hover);text-decoration:underline}.breadcrumb__label{color:var(--color-tertiary);font-weight:var(--font-weight-regular)}.breadcrumb__label--active{color:var(--color-emphasis);font-weight:var(--font-weight-medium)}.breadcrumb__separator{color:var(--color-gray-400);-webkit-user-select:none;user-select:none;flex-shrink:0}";var hi=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,Pr=(i,e,t,r)=>{for(var o=r>1?void 0:r?pi(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&hi(e,t,o),o};n.Breadcrumb=class extends T{constructor(){super(...arguments),this.items=[]}render(){return u`
129
+ `}},a.Switch.styles=[N`${F(di)}`],ht([c({type:Boolean})],a.Switch.prototype,"checked",2),ht([c({type:Boolean})],a.Switch.prototype,"disabled",2),ht([c({type:String})],a.Switch.prototype,"size",2),ht([J("input")],a.Switch.prototype,"inputElement",2),a.Switch=ht([U("logosphere-switch")],a.Switch);const pi=".breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:var(--spacing-2);font-family:var(--font-family-base);font-size:var(--font-size-sm);line-height:var(--line-height-normal);list-style:none;margin:0;padding:0}.breadcrumb__item{display:inline-flex;align-items:center;gap:var(--spacing-2)}.breadcrumb__link{color:var(--color-primary);text-decoration:none;font-weight:var(--font-weight-regular);transition:color var(--transition-speed-fast) var(--transition-timing),text-decoration var(--transition-speed-fast) var(--transition-timing)}.breadcrumb__link:hover{color:var(--color-primary-hover);text-decoration:underline}.breadcrumb__label{color:var(--color-tertiary);font-weight:var(--font-weight-regular)}.breadcrumb__label--active{color:var(--color-emphasis);font-weight:var(--font-weight-medium)}.breadcrumb__separator{color:var(--color-gray-400);-webkit-user-select:none;user-select:none;flex-shrink:0}";var ui=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,Lr=(i,e,t,r)=>{for(var o=r>1?void 0:r?fi(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&ui(e,t,o),o};a.Breadcrumb=class extends T{constructor(){super(...arguments),this.items=[]}render(){return u`
130
130
  <nav>
131
131
  <ol class="breadcrumb">
132
132
  ${this.items.map((e,t)=>u`
@@ -137,15 +137,15 @@
137
137
  `)}
138
138
  </ol>
139
139
  </nav>
140
- `}},n.Breadcrumb.styles=[N`${F(ci)}`],Pr([c({type:Array})],n.Breadcrumb.prototype,"items",2),n.Breadcrumb=Pr([U("logosphere-breadcrumb")],n.Breadcrumb);const ui=".card{width:100%;border-radius:var(--radius-base);border:1px solid var(--color-border);overflow:hidden;box-shadow:var(--shadow-base);display:grid;grid-template-rows:auto 1fr auto}.card__header{padding:var(--spacing-4);border-bottom:1px solid var(--color-border)}.card__header--hidden{display:none}.card__title{margin:0;font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--color-body-text);font-family:var(--font-family-base)}.card__body{padding:var(--spacing-4);font-size:var(--font-size-sm);line-height:var(--line-height-normal);font-family:var(--font-family-base)}.card__description{margin:0;color:var(--color-tertiary);font-size:var(--font-size-xs);line-height:var(--line-height-normal)}.card__footer{padding:var(--spacing-4);display:flex;justify-content:flex-end;flex-wrap:wrap;gap:var(--spacing-2);background-color:var(--color-body-bg);border-top:1px solid var(--color-border)}.card__footer--hidden{display:none}";var fi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,ge=(i,e,t,r)=>{for(var o=r>1?void 0:r?gi(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fi(e,t,o),o};n.Card=class extends T{constructor(){super(...arguments),this.title="",this.description="",this.header=!0,this.footer=!0,this.okLabel="Tamam",this.cancelLabel="İptal"}handleOk(){var e;(e=this.onOk)==null||e.call(this),this.dispatchEvent(new CustomEvent("ok",{bubbles:!0,composed:!0}))}handleCancel(){var e;(e=this.onCancel)==null||e.call(this),this.dispatchEvent(new CustomEvent("cancel",{bubbles:!0,composed:!0}))}render(){return u`
140
+ `}},a.Breadcrumb.styles=[N`${F(pi)}`],Lr([c({type:Array})],a.Breadcrumb.prototype,"items",2),a.Breadcrumb=Lr([U("logosphere-breadcrumb")],a.Breadcrumb);const gi=".card{width:100%;border-radius:var(--radius-base);border:1px solid var(--color-border);overflow:hidden;box-shadow:var(--shadow-base);display:grid;grid-template-rows:auto 1fr auto}.card__header{padding:var(--spacing-4);border-bottom:1px solid var(--color-border)}.card__header--hidden{display:none}.card__title{margin:0;font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--color-body-text);font-family:var(--font-family-base)}.card__body{padding:var(--spacing-4);font-size:var(--font-size-sm);line-height:var(--line-height-normal);font-family:var(--font-family-base)}.card__description{margin:0;color:var(--color-tertiary);font-size:var(--font-size-xs);line-height:var(--line-height-normal)}.card__footer{padding:var(--spacing-4);display:flex;justify-content:flex-end;flex-wrap:wrap;gap:var(--spacing-2);background-color:var(--color-body-bg);border-top:1px solid var(--color-border)}.card__footer--hidden{display:none}";var mi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor,ge=(i,e,t,r)=>{for(var o=r>1?void 0:r?bi(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&mi(e,t,o),o};a.Card=class extends T{constructor(){super(...arguments),this.title="",this.description="",this.header=!0,this.footer=!0,this.okLabel="Tamam",this.cancelLabel="İptal"}handleOk(){var e;(e=this.onOk)==null||e.call(this),this.dispatchEvent(new CustomEvent("ok",{bubbles:!0,composed:!0}))}handleCancel(){var e;(e=this.onCancel)==null||e.call(this),this.dispatchEvent(new CustomEvent("cancel",{bubbles:!0,composed:!0}))}render(){return u`
141
141
  <div class="card">
142
142
  ${this.header?u`
143
143
  <div class="card__header">
144
- ${this.title?u`<h3 class="card__title">${this.title}</h3>`:m}
145
- ${this.description?u`<p class="card__description">${this.description}</p>`:m}
144
+ ${this.title?u`<h3 class="card__title">${this.title}</h3>`:b}
145
+ ${this.description?u`<p class="card__description">${this.description}</p>`:b}
146
146
  <slot name="header"></slot>
147
147
  </div>
148
- `:m}
148
+ `:b}
149
149
 
150
150
  <div class="card__body">
151
151
  <slot></slot>
@@ -163,7 +163,7 @@
163
163
  >
164
164
  ${this.okLabel}
165
165
  </logosphere-button>
166
- `:m}
166
+ `:b}
167
167
  ${this.onCancel?u`
168
168
  <logosphere-button
169
169
  variant="solid"
@@ -173,13 +173,13 @@
173
173
  >
174
174
  ${this.cancelLabel}
175
175
  </logosphere-button>
176
- `:m}
176
+ `:b}
177
177
  </div>
178
- `:m}
178
+ `:b}
179
179
  </div>
180
- `}},n.Card.styles=[N`
181
- ${F(ui)}
182
- `],ge([c({type:String})],n.Card.prototype,"title",2),ge([c({type:String})],n.Card.prototype,"description",2),ge([c({type:Boolean})],n.Card.prototype,"header",2),ge([c({type:Boolean})],n.Card.prototype,"footer",2),ge([c({attribute:!1})],n.Card.prototype,"onOk",2),ge([c({attribute:!1})],n.Card.prototype,"onCancel",2),ge([c({type:String})],n.Card.prototype,"okLabel",2),ge([c({type:String})],n.Card.prototype,"cancelLabel",2),n.Card=ge([U("logosphere-card")],n.Card);const rr=Gt(class extends Xt{constructor(i){if(super(i),i.type!==$e.PROPERTY&&i.type!==$e.ATTRIBUTE&&i.type!==$e.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ar(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===de||e===m)return e;const t=i.element,r=i.name;if(i.type===$e.PROPERTY){if(e===t[r])return de}else if(i.type===$e.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return de}else if(i.type===$e.ATTRIBUTE&&t.getAttribute(r)===e+"")return de;return Go(i),e}}),bi=".input__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.input__field::placeholder{color:var(--color-tertiary)}.input__field:disabled{cursor:not-allowed}.input__field--default{height:16px}.input__field--large{height:24px}.input__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:center;outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.input__clear-btn:hover{color:var(--color-gray-600)}";var mi=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,Y=(i,e,t,r)=>{for(var o=r>1?void 0:r?vi(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&mi(e,t,o),o};n.LogosphereInput=class extends T{constructor(){super(...arguments),this.value="",this.type="text",this.placeholder="",this.name="",this.autocomplete="",this.pattern="",this.size="default",this.variant="default",this.label="",this.helper="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this._internalError="",this._showPassword=!1,this.handleInput=e=>{const t=e.target;this.value=t.value,this._internalError&&(this._internalError="",this._inputElement.setCustomValidity("")),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleChange=e=>{const t=e.target;this.value=t.value,t.checkValidity()||(this._internalError=t.validationMessage),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleKeyDown=e=>{this.dispatchEvent(new CustomEvent("keydown",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleKeyUp=e=>{this.dispatchEvent(new CustomEvent("keyup",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleClear=()=>{this.value="",this._inputElement&&(this._inputElement.value=""),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:"",originalEvent:null}}))},this.handlePasswordToggle=()=>{var e;this.disabled||(this._showPassword=!this._showPassword,(e=this._inputElement)==null||e.focus())}}get inputElement(){return this._inputElement}focus(){var e;(e=this._inputElement)==null||e.focus()}blur(){var e;(e=this._inputElement)==null||e.blur()}select(){var e;(e=this._inputElement)==null||e.select()}setSelectionRange(e,t,r){var o;(o=this._inputElement)==null||o.setSelectionRange(e,t,r)}checkValidity(){var e,t;return(t=(e=this._inputElement)==null?void 0:e.checkValidity())!=null?t:!0}reportValidity(){var e,t;return(t=(e=this._inputElement)==null?void 0:e.reportValidity())!=null?t:!0}setCustomValidity(e){var t;(t=this._inputElement)==null||t.setCustomValidity(e),this._internalError=e,this.requestUpdate()}willUpdate(e){e.has("type")&&this.type!=="password"&&this._showPassword&&(this._showPassword=!1)}render(){var a,l,d,p,h;const e=this.error||this._internalError,t=!!this.value&&!this.disabled&&!this.readonly,r=this.type==="password",o=r&&this._showPassword?"text":this.type,s=`input__field input__field--${this.size}`;return u`
180
+ `}},a.Card.styles=[N`
181
+ ${F(gi)}
182
+ `],ge([c({type:String})],a.Card.prototype,"title",2),ge([c({type:String})],a.Card.prototype,"description",2),ge([c({type:Boolean})],a.Card.prototype,"header",2),ge([c({type:Boolean})],a.Card.prototype,"footer",2),ge([c({attribute:!1})],a.Card.prototype,"onOk",2),ge([c({attribute:!1})],a.Card.prototype,"onCancel",2),ge([c({type:String})],a.Card.prototype,"okLabel",2),ge([c({type:String})],a.Card.prototype,"cancelLabel",2),a.Card=ge([U("logosphere-card")],a.Card);const rr=Gt(class extends Xt{constructor(i){if(super(i),i.type!==$e.PROPERTY&&i.type!==$e.ATTRIBUTE&&i.type!==$e.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!zr(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===de||e===b)return e;const t=i.element,r=i.name;if(i.type===$e.PROPERTY){if(e===t[r])return de}else if(i.type===$e.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return de}else if(i.type===$e.ATTRIBUTE&&t.getAttribute(r)===e+"")return de;return Jo(i),e}}),vi=".input__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.input__field::placeholder{color:var(--color-tertiary)}.input__field:disabled{cursor:not-allowed}.input__field--default{height:16px}.input__field--large{height:24px}.input__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:center;outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.input__clear-btn:hover{color:var(--color-gray-600)}";var _i=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,I=(i,e,t,r)=>{for(var o=r>1?void 0:r?yi(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&_i(e,t,o),o};const Tr={0:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function or(i){return i.split("").filter(e=>/[a-zA-Z0-9]/.test(e)).join("")}function wi(i,e){let t=0,r="";for(let o=0;o<e.length&&!(t>=i.length);o++){const s=e[o],n=Tr[s];if(n){for(;t<i.length&&!n.test(i[t]);)t++;t<i.length&&(r+=i[t++])}else r+=s}return r}function xi(i,e,t){let r=0;for(let o=0;o<i.length;o++)if(Tr[e[o]]&&(r++,r===t))return o+1;return i.length}a.LogosphereInput=class extends T{constructor(){super(...arguments),this.value="",this.type="text",this.placeholder="",this.name="",this.autocomplete="",this.pattern="",this.size="default",this.variant="default",this.label="",this.helper="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.mask="",this._internalError="",this._showPassword=!1,this.handleInput=e=>{var r;const t=e.target;if(this.mask){const o=(r=t.selectionStart)!=null?r:t.value.length,s=or(t.value.slice(0,o)).length,n=or(t.value),l=wi(n,this.mask);t.value=l,this.value=l;const d=xi(l,this.mask,s);requestAnimationFrame(()=>t.setSelectionRange(d,d))}else this.value=t.value;this._internalError&&(this._internalError="",this._inputElement.setCustomValidity("")),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:this.value,rawValue:this.mask?or(this.value):this.value,originalEvent:e}}))},this.handleChange=e=>{const t=e.target;this.value=t.value,t.checkValidity()||(this._internalError=t.validationMessage),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleKeyDown=e=>{this.dispatchEvent(new CustomEvent("keydown",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleKeyUp=e=>{this.dispatchEvent(new CustomEvent("keyup",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleClear=()=>{this.value="",this._inputElement&&(this._inputElement.value=""),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:"",originalEvent:null}}))},this.handlePasswordToggle=()=>{var e;this.disabled||(this._showPassword=!this._showPassword,(e=this._inputElement)==null||e.focus())}}get inputElement(){return this._inputElement}focus(){var e;(e=this._inputElement)==null||e.focus()}blur(){var e;(e=this._inputElement)==null||e.blur()}select(){var e;(e=this._inputElement)==null||e.select()}setSelectionRange(e,t,r){var o;(o=this._inputElement)==null||o.setSelectionRange(e,t,r)}checkValidity(){var e,t;return(t=(e=this._inputElement)==null?void 0:e.checkValidity())!=null?t:!0}reportValidity(){var e,t;return(t=(e=this._inputElement)==null?void 0:e.reportValidity())!=null?t:!0}setCustomValidity(e){var t;(t=this._inputElement)==null||t.setCustomValidity(e),this._internalError=e,this.requestUpdate()}willUpdate(e){e.has("type")&&this.type!=="password"&&this._showPassword&&(this._showPassword=!1)}get _effectivePlaceholder(){return this.placeholder?this.placeholder:this.mask?this.mask.replace(/[0a*]/g,"_"):""}render(){var n,l,d,p,h;const e=this.error||this._internalError,t=!!this.value&&!this.disabled&&!this.readonly,r=this.type==="password",o=r&&this._showPassword?"text":this.type,s=`input__field input__field--${this.size}`;return u`
183
183
  <logosphere-formfield
184
184
  .label=${this.label}
185
185
  .helper=${this.helper}
@@ -187,7 +187,7 @@
187
187
  .required=${this.required}
188
188
  .disabled=${this.disabled}
189
189
  .readonly=${this.readonly}
190
- .placeholder=${this.placeholder}
190
+ .placeholder=${this._effectivePlaceholder}
191
191
  .size=${this.size}
192
192
  .variant=${this.variant}
193
193
  >
@@ -196,18 +196,18 @@
196
196
  class="${s}"
197
197
  type=${o}
198
198
  .value=${rr(this.value)}
199
- placeholder=${this.placeholder||m}
200
- name=${this.name||m}
201
- autocomplete=${this.autocomplete||m}
199
+ placeholder=${this._effectivePlaceholder||b}
200
+ name=${this.name||b}
201
+ autocomplete=${this.autocomplete||b}
202
202
  ?required=${this.required}
203
203
  ?disabled=${this.disabled}
204
204
  ?readonly=${this.readonly}
205
- minlength=${(a=this.minlength)!=null?a:m}
206
- maxlength=${(l=this.maxlength)!=null?l:m}
207
- pattern=${this.pattern||m}
208
- min=${(d=this.min)!=null?d:m}
209
- max=${(p=this.max)!=null?p:m}
210
- step=${(h=this.step)!=null?h:m}
205
+ minlength=${(n=this.minlength)!=null?n:b}
206
+ maxlength=${(l=this.maxlength)!=null?l:b}
207
+ pattern=${this.pattern||b}
208
+ min=${(d=this.min)!=null?d:b}
209
+ max=${(p=this.max)!=null?p:b}
210
+ step=${(h=this.step)!=null?h:b}
211
211
  @input=${this.handleInput}
212
212
  @change=${this.handleChange}
213
213
  @keydown=${this.handleKeyDown}
@@ -223,7 +223,7 @@
223
223
  >
224
224
  <ui-icon name="uil-times" size="14"></ui-icon>
225
225
  </button>
226
- `:m}
226
+ `:b}
227
227
  ${r?u`
228
228
  <button
229
229
  type="button"
@@ -234,10 +234,10 @@
234
234
  >
235
235
  <ui-icon name=${this._showPassword?"uil-eye-slash":"uil-eye"} size="16"></ui-icon>
236
236
  </button>
237
- `:m}
237
+ `:b}
238
238
  <slot name="suffix" slot="suffix"></slot>
239
239
  </logosphere-formfield>
240
- `}},n.LogosphereInput.styles=[N`${F(bi)}`],Y([J("input")],n.LogosphereInput.prototype,"_inputElement",2),Y([c({type:String})],n.LogosphereInput.prototype,"value",2),Y([c({type:String})],n.LogosphereInput.prototype,"type",2),Y([c({type:String})],n.LogosphereInput.prototype,"placeholder",2),Y([c({type:String})],n.LogosphereInput.prototype,"name",2),Y([c({type:String})],n.LogosphereInput.prototype,"autocomplete",2),Y([c({type:Number})],n.LogosphereInput.prototype,"minlength",2),Y([c({type:Number})],n.LogosphereInput.prototype,"maxlength",2),Y([c({type:String})],n.LogosphereInput.prototype,"pattern",2),Y([c({type:Number})],n.LogosphereInput.prototype,"min",2),Y([c({type:Number})],n.LogosphereInput.prototype,"max",2),Y([c({type:Number})],n.LogosphereInput.prototype,"step",2),Y([c({type:String})],n.LogosphereInput.prototype,"size",2),Y([c({type:String})],n.LogosphereInput.prototype,"variant",2),Y([c({type:String})],n.LogosphereInput.prototype,"label",2),Y([c({type:String})],n.LogosphereInput.prototype,"helper",2),Y([c({type:String})],n.LogosphereInput.prototype,"error",2),Y([c({type:Boolean})],n.LogosphereInput.prototype,"required",2),Y([c({type:Boolean})],n.LogosphereInput.prototype,"disabled",2),Y([c({type:Boolean})],n.LogosphereInput.prototype,"readonly",2),Y([$()],n.LogosphereInput.prototype,"_internalError",2),Y([$()],n.LogosphereInput.prototype,"_showPassword",2),n.LogosphereInput=Y([U("logosphere-input")],n.LogosphereInput);var te="top",se="bottom",ae="right",re="left",or="auto",pt=[te,se,ae,re],Ue="start",ut="end",_i="clippingParents",Lr="viewport",ft="popper",yi="reference",Tr=pt.reduce(function(i,e){return i.concat([e+"-"+Ue,e+"-"+ut])},[]),Br=[].concat(pt,[or]).reduce(function(i,e){return i.concat([e,e+"-"+Ue,e+"-"+ut])},[]),wi="beforeRead",xi="read",$i="afterRead",ki="beforeMain",Ci="main",Ei="afterMain",Si="beforeWrite",Mi="write",Di="afterWrite",Ai=[wi,xi,$i,ki,Ci,Ei,Si,Mi,Di];function he(i){return i?(i.nodeName||"").toLowerCase():null}function oe(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function Be(i){var e=oe(i).Element;return i instanceof e||i instanceof Element}function ne(i){var e=oe(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function ir(i){if(typeof ShadowRoot=="undefined")return!1;var e=oe(i).ShadowRoot;return i instanceof e||i instanceof ShadowRoot}function zi(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},s=e.elements[t];!ne(s)||!he(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Oi(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],s=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=a.reduce(function(d,p){return d[p]="",d},{});!ne(o)||!he(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(d){o.removeAttribute(d)}))})}}const Pi={name:"applyStyles",enabled:!0,phase:"write",fn:zi,effect:Oi,requires:["computeStyles"]};function pe(i){return i.split("-")[0]}var Ie=Math.max,Mt=Math.min,Ve=Math.round;function sr(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ir(){return!/^((?!chrome|android).)*safari/i.test(sr())}function qe(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=i.getBoundingClientRect(),o=1,s=1;e&&ne(i)&&(o=i.offsetWidth>0&&Ve(r.width)/i.offsetWidth||1,s=i.offsetHeight>0&&Ve(r.height)/i.offsetHeight||1);var a=Be(i)?oe(i):window,l=a.visualViewport,d=!Ir()&&t,p=(r.left+(d&&l?l.offsetLeft:0))/o,h=(r.top+(d&&l?l.offsetTop:0))/s,f=r.width/o,b=r.height/s;return{width:f,height:b,top:h,right:p+f,bottom:h+b,left:p,x:p,y:h}}function ar(i){var e=qe(i),t=i.offsetWidth,r=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:r}}function Yr(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&ir(t)){var r=e;do{if(r&&i.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function be(i){return oe(i).getComputedStyle(i)}function Li(i){return["table","td","th"].indexOf(he(i))>=0}function Ce(i){return((Be(i)?i.ownerDocument:i.document)||window.document).documentElement}function Dt(i){return he(i)==="html"?i:i.assignedSlot||i.parentNode||(ir(i)?i.host:null)||Ce(i)}function Rr(i){return!ne(i)||be(i).position==="fixed"?null:i.offsetParent}function Ti(i){var e=/firefox/i.test(sr()),t=/Trident/i.test(sr());if(t&&ne(i)){var r=be(i);if(r.position==="fixed")return null}var o=Dt(i);for(ir(o)&&(o=o.host);ne(o)&&["html","body"].indexOf(he(o))<0;){var s=be(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function gt(i){for(var e=oe(i),t=Rr(i);t&&Li(t)&&be(t).position==="static";)t=Rr(t);return t&&(he(t)==="html"||he(t)==="body"&&be(t).position==="static")?e:t||Ti(i)||e}function nr(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function bt(i,e,t){return Ie(i,Mt(e,t))}function Bi(i,e,t){var r=bt(i,e,t);return r>t?t:r}function Hr(){return{top:0,right:0,bottom:0,left:0}}function jr(i){return Object.assign({},Hr(),i)}function Fr(i,e){return e.reduce(function(t,r){return t[r]=i,t},{})}var Ii=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,jr(typeof e!="number"?e:Fr(e,pt))};function Yi(i){var e,t=i.state,r=i.name,o=i.options,s=t.elements.arrow,a=t.modifiersData.popperOffsets,l=pe(t.placement),d=nr(l),p=[re,ae].indexOf(l)>=0,h=p?"height":"width";if(!(!s||!a)){var f=Ii(o.padding,t),b=ar(s),v=d==="y"?te:re,C=d==="y"?se:ae,k=t.rects.reference[h]+t.rects.reference[d]-a[d]-t.rects.popper[h],g=a[d]-t.rects.reference[d],_=gt(s),w=_?d==="y"?_.clientHeight||0:_.clientWidth||0:0,y=k/2-g/2,x=f[v],E=w-b[h]-f[C],S=w/2-b[h]/2+y,D=bt(x,S,E),O=d;t.modifiersData[r]=(e={},e[O]=D,e.centerOffset=D-S,e)}}function Ri(i){var e=i.state,t=i.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Yr(e.elements.popper,o)&&(e.elements.arrow=o))}const Hi={name:"arrow",enabled:!0,phase:"main",fn:Yi,effect:Ri,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function We(i){return i.split("-")[1]}var ji={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fi(i,e){var t=i.x,r=i.y,o=e.devicePixelRatio||1;return{x:Ve(t*o)/o||0,y:Ve(r*o)/o||0}}function Nr(i){var e,t=i.popper,r=i.popperRect,o=i.placement,s=i.variation,a=i.offsets,l=i.position,d=i.gpuAcceleration,p=i.adaptive,h=i.roundOffsets,f=i.isFixed,b=a.x,v=b===void 0?0:b,C=a.y,k=C===void 0?0:C,g=typeof h=="function"?h({x:v,y:k}):{x:v,y:k};v=g.x,k=g.y;var _=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),y=re,x=te,E=window;if(p){var S=gt(t),D="clientHeight",O="clientWidth";if(S===oe(t)&&(S=Ce(t),be(S).position!=="static"&&l==="absolute"&&(D="scrollHeight",O="scrollWidth")),S=S,o===te||(o===re||o===ae)&&s===ut){x=se;var z=f&&S===E&&E.visualViewport?E.visualViewport.height:S[D];k-=z-r.height,k*=d?1:-1}if(o===re||(o===te||o===se)&&s===ut){y=ae;var P=f&&S===E&&E.visualViewport?E.visualViewport.width:S[O];v-=P-r.width,v*=d?1:-1}}var B=Object.assign({position:l},p&&ji),j=h===!0?Fi({x:v,y:k},oe(t)):{x:v,y:k};if(v=j.x,k=j.y,d){var L;return Object.assign({},B,(L={},L[x]=w?"0":"",L[y]=_?"0":"",L.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+k+"px)":"translate3d("+v+"px, "+k+"px, 0)",L))}return Object.assign({},B,(e={},e[x]=w?k+"px":"",e[y]=_?v+"px":"",e.transform="",e))}function Ni(i){var e=i.state,t=i.options,r=t.gpuAcceleration,o=r===void 0?!0:r,s=t.adaptive,a=s===void 0?!0:s,l=t.roundOffsets,d=l===void 0?!0:l,p={placement:pe(e.placement),variation:We(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Nr(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Nr(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Ui={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ni,data:{}};var At={passive:!0};function Vi(i){var e=i.state,t=i.instance,r=i.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,d=oe(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",t.update,At)}),l&&d.addEventListener("resize",t.update,At),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",t.update,At)}),l&&d.removeEventListener("resize",t.update,At)}}const qi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vi,data:{}};var Wi={left:"right",right:"left",bottom:"top",top:"bottom"};function zt(i){return i.replace(/left|right|bottom|top/g,function(e){return Wi[e]})}var Zi={start:"end",end:"start"};function Ur(i){return i.replace(/start|end/g,function(e){return Zi[e]})}function lr(i){var e=oe(i),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function dr(i){return qe(Ce(i)).left+lr(i).scrollLeft}function Ki(i,e){var t=oe(i),r=Ce(i),o=t.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,d=0;if(o){s=o.width,a=o.height;var p=Ir();(p||!p&&e==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:s,height:a,x:l+dr(i),y:d}}function Gi(i){var e,t=Ce(i),r=lr(i),o=(e=i.ownerDocument)==null?void 0:e.body,s=Ie(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ie(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+dr(i),d=-r.scrollTop;return be(o||t).direction==="rtl"&&(l+=Ie(t.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:d}}function cr(i){var e=be(i),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function Vr(i){return["html","body","#document"].indexOf(he(i))>=0?i.ownerDocument.body:ne(i)&&cr(i)?i:Vr(Dt(i))}function mt(i,e){var t;e===void 0&&(e=[]);var r=Vr(i),o=r===((t=i.ownerDocument)==null?void 0:t.body),s=oe(r),a=o?[s].concat(s.visualViewport||[],cr(r)?r:[]):r,l=e.concat(a);return o?l:l.concat(mt(Dt(a)))}function hr(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Xi(i,e){var t=qe(i,!1,e==="fixed");return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}function qr(i,e,t){return e===Lr?hr(Ki(i,t)):Be(e)?Xi(e,t):hr(Gi(Ce(i)))}function Ji(i){var e=mt(Dt(i)),t=["absolute","fixed"].indexOf(be(i).position)>=0,r=t&&ne(i)?gt(i):i;return Be(r)?e.filter(function(o){return Be(o)&&Yr(o,r)&&he(o)!=="body"}):[]}function Qi(i,e,t,r){var o=e==="clippingParents"?Ji(i):[].concat(e),s=[].concat(o,[t]),a=s[0],l=s.reduce(function(d,p){var h=qr(i,p,r);return d.top=Ie(h.top,d.top),d.right=Mt(h.right,d.right),d.bottom=Mt(h.bottom,d.bottom),d.left=Ie(h.left,d.left),d},qr(i,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Wr(i){var e=i.reference,t=i.element,r=i.placement,o=r?pe(r):null,s=r?We(r):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,d;switch(o){case te:d={x:a,y:e.y-t.height};break;case se:d={x:a,y:e.y+e.height};break;case ae:d={x:e.x+e.width,y:l};break;case re:d={x:e.x-t.width,y:l};break;default:d={x:e.x,y:e.y}}var p=o?nr(o):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case Ue:d[p]=d[p]-(e[h]/2-t[h]/2);break;case ut:d[p]=d[p]+(e[h]/2-t[h]/2);break}}return d}function vt(i,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?i.placement:r,s=t.strategy,a=s===void 0?i.strategy:s,l=t.boundary,d=l===void 0?_i:l,p=t.rootBoundary,h=p===void 0?Lr:p,f=t.elementContext,b=f===void 0?ft:f,v=t.altBoundary,C=v===void 0?!1:v,k=t.padding,g=k===void 0?0:k,_=jr(typeof g!="number"?g:Fr(g,pt)),w=b===ft?yi:ft,y=i.rects.popper,x=i.elements[C?w:b],E=Qi(Be(x)?x:x.contextElement||Ce(i.elements.popper),d,h,a),S=qe(i.elements.reference),D=Wr({reference:S,element:y,placement:o}),O=hr(Object.assign({},y,D)),z=b===ft?O:S,P={top:E.top-z.top+_.top,bottom:z.bottom-E.bottom+_.bottom,left:E.left-z.left+_.left,right:z.right-E.right+_.right},B=i.modifiersData.offset;if(b===ft&&B){var j=B[o];Object.keys(P).forEach(function(L){var W=[ae,se].indexOf(L)>=0?1:-1,Z=[te,se].indexOf(L)>=0?"y":"x";P[L]+=j[Z]*W})}return P}function es(i,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,s=t.rootBoundary,a=t.padding,l=t.flipVariations,d=t.allowedAutoPlacements,p=d===void 0?Br:d,h=We(r),f=h?l?Tr:Tr.filter(function(C){return We(C)===h}):pt,b=f.filter(function(C){return p.indexOf(C)>=0});b.length===0&&(b=f);var v=b.reduce(function(C,k){return C[k]=vt(i,{placement:k,boundary:o,rootBoundary:s,padding:a})[pe(k)],C},{});return Object.keys(v).sort(function(C,k){return v[C]-v[k]})}function ts(i){if(pe(i)===or)return[];var e=zt(i);return[Ur(i),e,Ur(e)]}function rs(i){var e=i.state,t=i.options,r=i.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,s=o===void 0?!0:o,a=t.altAxis,l=a===void 0?!0:a,d=t.fallbackPlacements,p=t.padding,h=t.boundary,f=t.rootBoundary,b=t.altBoundary,v=t.flipVariations,C=v===void 0?!0:v,k=t.allowedAutoPlacements,g=e.options.placement,_=pe(g),w=_===g,y=d||(w||!C?[zt(g)]:ts(g)),x=[g].concat(y).reduce(function(De,fe){return De.concat(pe(fe)===or?es(e,{placement:fe,boundary:h,rootBoundary:f,padding:p,flipVariations:C,allowedAutoPlacements:k}):fe)},[]),E=e.rects.reference,S=e.rects.popper,D=new Map,O=!0,z=x[0],P=0;P<x.length;P++){var B=x[P],j=pe(B),L=We(B)===Ue,W=[te,se].indexOf(j)>=0,Z=W?"width":"height",V=vt(e,{placement:B,boundary:h,rootBoundary:f,altBoundary:b,padding:p}),K=W?L?ae:re:L?se:te;E[Z]>S[Z]&&(K=zt(K));var ce=zt(K),ee=[];if(s&&ee.push(V[j]<=0),l&&ee.push(V[K]<=0,V[ce]<=0),ee.every(function(De){return De})){z=B,O=!1;break}D.set(B,ee)}if(O)for(var me=C?3:1,G=function(fe){var Re=x.find(function(Ge){var ye=D.get(Ge);if(ye)return ye.slice(0,fe).every(function(Xe){return Xe})});if(Re)return z=Re,"break"},ve=me;ve>0;ve--){var _e=G(ve);if(_e==="break")break}e.placement!==z&&(e.modifiersData[r]._skip=!0,e.placement=z,e.reset=!0)}}const os={name:"flip",enabled:!0,phase:"main",fn:rs,requiresIfExists:["offset"],data:{_skip:!1}};function Zr(i,e,t){return t===void 0&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function Kr(i){return[te,ae,se,re].some(function(e){return i[e]>=0})}function is(i){var e=i.state,t=i.name,r=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,a=vt(e,{elementContext:"reference"}),l=vt(e,{altBoundary:!0}),d=Zr(a,r),p=Zr(l,o,s),h=Kr(d),f=Kr(p);e.modifiersData[t]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}const ss={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:is};function as(i,e,t){var r=pe(i),o=[re,te].indexOf(r)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:i})):t,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[re,ae].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function ns(i){var e=i.state,t=i.options,r=i.name,o=t.offset,s=o===void 0?[0,0]:o,a=Br.reduce(function(h,f){return h[f]=as(f,e.rects,s),h},{}),l=a[e.placement],d=l.x,p=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=p),e.modifiersData[r]=a}const ls={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ns};function ds(i){var e=i.state,t=i.name;e.modifiersData[t]=Wr({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const cs={name:"popperOffsets",enabled:!0,phase:"read",fn:ds,data:{}};function hs(i){return i==="x"?"y":"x"}function ps(i){var e=i.state,t=i.options,r=i.name,o=t.mainAxis,s=o===void 0?!0:o,a=t.altAxis,l=a===void 0?!1:a,d=t.boundary,p=t.rootBoundary,h=t.altBoundary,f=t.padding,b=t.tether,v=b===void 0?!0:b,C=t.tetherOffset,k=C===void 0?0:C,g=vt(e,{boundary:d,rootBoundary:p,padding:f,altBoundary:h}),_=pe(e.placement),w=We(e.placement),y=!w,x=nr(_),E=hs(x),S=e.modifiersData.popperOffsets,D=e.rects.reference,O=e.rects.popper,z=typeof k=="function"?k(Object.assign({},e.rects,{placement:e.placement})):k,P=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(S){if(s){var L,W=x==="y"?te:re,Z=x==="y"?se:ae,V=x==="y"?"height":"width",K=S[x],ce=K+g[W],ee=K-g[Z],me=v?-O[V]/2:0,G=w===Ue?D[V]:O[V],ve=w===Ue?-O[V]:-D[V],_e=e.elements.arrow,De=v&&_e?ar(_e):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Hr(),Re=fe[W],Ge=fe[Z],ye=bt(0,D[V],De[V]),Xe=y?D[V]/2-me-ye-Re-P.mainAxis:G-ye-Re-P.mainAxis,Rt=y?-D[V]/2+me+ye+Ge+P.mainAxis:ve+ye+Ge+P.mainAxis,He=e.elements.arrow&&gt(e.elements.arrow),yt=He?x==="y"?He.clientTop||0:He.clientLeft||0:0,Je=(L=B==null?void 0:B[x])!=null?L:0,Qe=K+Xe-Je-yt,et=K+Rt-Je,tt=bt(v?Mt(ce,Qe):ce,K,v?Ie(ee,et):ee);S[x]=tt,j[x]=tt-K}if(l){var rt,wt=x==="x"?te:re,xt=x==="x"?se:ae,Ae=S[E],Ht=E==="y"?"height":"width",uo=Ae+g[wt],fo=Ae-g[xt],ur=[te,re].indexOf(_)!==-1,go=(rt=B==null?void 0:B[E])!=null?rt:0,bo=ur?uo:Ae-D[Ht]-O[Ht]-go+P.altAxis,mo=ur?Ae+D[Ht]+O[Ht]-go-P.altAxis:fo,vo=v&&ur?Bi(bo,Ae,mo):bt(v?bo:uo,Ae,v?mo:fo);S[E]=vo,j[E]=vo-Ae}e.modifiersData[r]=j}}const us={name:"preventOverflow",enabled:!0,phase:"main",fn:ps,requiresIfExists:["offset"]};function fs(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function gs(i){return i===oe(i)||!ne(i)?lr(i):fs(i)}function bs(i){var e=i.getBoundingClientRect(),t=Ve(e.width)/i.offsetWidth||1,r=Ve(e.height)/i.offsetHeight||1;return t!==1||r!==1}function ms(i,e,t){t===void 0&&(t=!1);var r=ne(e),o=ne(e)&&bs(e),s=Ce(e),a=qe(i,o,t),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!t)&&((he(e)!=="body"||cr(s))&&(l=gs(e)),ne(e)?(d=qe(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):s&&(d.x=dr(s))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function vs(i){var e=new Map,t=new Set,r=[];i.forEach(function(s){e.set(s.name,s)});function o(s){t.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var d=e.get(l);d&&o(d)}}),r.push(s)}return i.forEach(function(s){t.has(s.name)||o(s)}),r}function _s(i){var e=vs(i);return Ai.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function ys(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function ws(i){var e=i.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var Gr={placement:"bottom",modifiers:[],strategy:"absolute"};function Xr(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function xs(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,r=t===void 0?[]:t,o=e.defaultOptions,s=o===void 0?Gr:o;return function(l,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gr,s),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},f=[],b=!1,v={state:h,setOptions:function(_){var w=typeof _=="function"?_(h.options):_;k(),h.options=Object.assign({},s,h.options,w),h.scrollParents={reference:Be(l)?mt(l):l.contextElement?mt(l.contextElement):[],popper:mt(d)};var y=_s(ws([].concat(r,h.options.modifiers)));return h.orderedModifiers=y.filter(function(x){return x.enabled}),C(),v.update()},forceUpdate:function(){if(!b){var _=h.elements,w=_.reference,y=_.popper;if(Xr(w,y)){h.rects={reference:ms(w,gt(y),h.options.strategy==="fixed"),popper:ar(y)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(P){return h.modifiersData[P.name]=Object.assign({},P.data)});for(var x=0;x<h.orderedModifiers.length;x++){if(h.reset===!0){h.reset=!1,x=-1;continue}var E=h.orderedModifiers[x],S=E.fn,D=E.options,O=D===void 0?{}:D,z=E.name;typeof S=="function"&&(h=S({state:h,options:O,name:z,instance:v})||h)}}}},update:ys(function(){return new Promise(function(g){v.forceUpdate(),g(h)})}),destroy:function(){k(),b=!0}};if(!Xr(l,d))return v;v.setOptions(p).then(function(g){!b&&p.onFirstUpdate&&p.onFirstUpdate(g)});function C(){h.orderedModifiers.forEach(function(g){var _=g.name,w=g.options,y=w===void 0?{}:w,x=g.effect;if(typeof x=="function"){var E=x({state:h,name:_,instance:v,options:y}),S=function(){};f.push(E||S)}})}function k(){f.forEach(function(g){return g()}),f=[]}return v}}var $s=[qi,cs,Ui,Pi,ls,os,us,Hi,ss],pr=xs({defaultModifiers:$s});const ks='.popover__wrapper{position:relative;display:inline-block;font-family:var(--font-family-base)}.popover__trigger{display:inline-flex}.popover__panel{position:relative;overflow:visible;z-index:var(--z-index-popover);min-width:240px;border-radius:var(--radius-md);border:1px solid var(--color-border);background-color:var(--color-body-bg);box-shadow:var(--shadow-md)}.popover__content{position:relative;z-index:1;background-color:var(--color-body-bg);border-radius:var(--radius-md);overflow:hidden}.popover__content:before{content:"";position:absolute;top:0;left:0;right:0;height:8px;background-color:var(--color-body-bg);border-radius:var(--radius-md) var(--radius-md) 0 0;z-index:1;pointer-events:none}.popover__content>*{position:relative;z-index:2}.popover__title{padding:10px var(--spacing-3);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--color-body-text)}.popover__body{padding:var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-secondary)}.popover__body--with-border{border-top:1px solid var(--color-border)}.popper-arrow{position:absolute;width:12px;height:12px;pointer-events:none;z-index:0}.popper-arrow:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--color-border);transform:rotate(45deg)}.popper-arrow:after{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;background:var(--color-body-bg);transform:rotate(45deg)}[data-popper]{position:relative;overflow:visible}[data-popper-placement^=bottom]>.popper-arrow{top:-6px;left:50%;transform:translate(-50%,-50%)}[data-popper-placement^=top]>.popper-arrow{bottom:-6px;left:50%;transform:translate(-50%,50%)}[data-popper-placement^=left]>.popper-arrow{right:-6px;top:50%;transform:translate(50%,-50%)}[data-popper-placement^=right]>.popper-arrow{left:-6px;top:50%;transform:translate(-50%,-50%)}';var Cs=Object.defineProperty,Es=Object.getOwnPropertyDescriptor,ue=(i,e,t,r)=>{for(var o=r>1?void 0:r?Es(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Cs(e,t,o),o};n.Popover=class extends T{constructor(){super(...arguments),this.title="",this.trigger="click",this.placement="bottom",this.offset=8,this.open=!1,this.closeOnOutsideClick=!0,this.handleDocumentClick=e=>{!this.open||!this.closeOnOutsideClick||e.composedPath().includes(this)||this.setOpen(!1)},this.toggle=e=>{(this.trigger==="click"||this.trigger==="both")&&(e==null||e.stopPropagation(),this.setOpen(!this.open))},this.handleMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="both")&&this.setOpen(!0)},this.handleMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="both")&&this.setOpen(!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleDocumentClick,{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleDocumentClick,{capture:!0}),this.destroyPopper()}updated(e){super.updated(e);const t=e.has("placement"),r=e.has("open")&&this.open;if(e.has("open")&&!this.open){this.destroyPopper();return}(r||t)&&this.open&&this.updatePopper()}setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"popover-open":"popover-close",{bubbles:!0,composed:!0})))}updatePopper(){if(!this.isConnected||!this.open)return;const e=this.triggerElement,t=this.popperElement;if(!(!e||!t)){if(this.popperInstance){this.popperInstance.setOptions({placement:this.placement,modifiers:this.getPopperModifiers(),strategy:"fixed"}),this.popperInstance.update();return}this.popperInstance=pr(e,t,{placement:this.placement,strategy:"fixed",modifiers:this.getPopperModifiers()})}}getPopperModifiers(){return[{name:"offset",options:{offset:[0,this.offset]}},{name:"arrow",options:{element:this.popperArrowElement,padding:8}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8}}]}destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=void 0)}render(){const e=!!this.title;return u`
240
+ `}},a.LogosphereInput.styles=[N`${F(vi)}`],I([J("input")],a.LogosphereInput.prototype,"_inputElement",2),I([c({type:String})],a.LogosphereInput.prototype,"value",2),I([c({type:String})],a.LogosphereInput.prototype,"type",2),I([c({type:String})],a.LogosphereInput.prototype,"placeholder",2),I([c({type:String})],a.LogosphereInput.prototype,"name",2),I([c({type:String})],a.LogosphereInput.prototype,"autocomplete",2),I([c({type:Number})],a.LogosphereInput.prototype,"minlength",2),I([c({type:Number})],a.LogosphereInput.prototype,"maxlength",2),I([c({type:String})],a.LogosphereInput.prototype,"pattern",2),I([c({type:Number})],a.LogosphereInput.prototype,"min",2),I([c({type:Number})],a.LogosphereInput.prototype,"max",2),I([c({type:Number})],a.LogosphereInput.prototype,"step",2),I([c({type:String})],a.LogosphereInput.prototype,"size",2),I([c({type:String})],a.LogosphereInput.prototype,"variant",2),I([c({type:String})],a.LogosphereInput.prototype,"label",2),I([c({type:String})],a.LogosphereInput.prototype,"helper",2),I([c({type:String})],a.LogosphereInput.prototype,"error",2),I([c({type:Boolean})],a.LogosphereInput.prototype,"required",2),I([c({type:Boolean})],a.LogosphereInput.prototype,"disabled",2),I([c({type:Boolean})],a.LogosphereInput.prototype,"readonly",2),I([c({type:String})],a.LogosphereInput.prototype,"mask",2),I([$()],a.LogosphereInput.prototype,"_internalError",2),I([$()],a.LogosphereInput.prototype,"_showPassword",2),a.LogosphereInput=I([U("logosphere-input")],a.LogosphereInput);var te="top",se="bottom",ne="right",re="left",ir="auto",pt=[te,se,ne,re],Ue="start",ut="end",$i="clippingParents",Br="viewport",ft="popper",ki="reference",Ir=pt.reduce(function(i,e){return i.concat([e+"-"+Ue,e+"-"+ut])},[]),Yr=[].concat(pt,[ir]).reduce(function(i,e){return i.concat([e,e+"-"+Ue,e+"-"+ut])},[]),Ci="beforeRead",Ei="read",Si="afterRead",Mi="beforeMain",Di="main",Ai="afterMain",zi="beforeWrite",Pi="write",Oi="afterWrite",Li=[Ci,Ei,Si,Mi,Di,Ai,zi,Pi,Oi];function he(i){return i?(i.nodeName||"").toLowerCase():null}function oe(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function Be(i){var e=oe(i).Element;return i instanceof e||i instanceof Element}function ae(i){var e=oe(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function sr(i){if(typeof ShadowRoot=="undefined")return!1;var e=oe(i).ShadowRoot;return i instanceof e||i instanceof ShadowRoot}function Ti(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},s=e.elements[t];!ae(s)||!he(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(n){var l=o[n];l===!1?s.removeAttribute(n):s.setAttribute(n,l===!0?"":l)}))})}function Bi(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],s=e.attributes[r]||{},n=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=n.reduce(function(d,p){return d[p]="",d},{});!ae(o)||!he(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(d){o.removeAttribute(d)}))})}}const Ii={name:"applyStyles",enabled:!0,phase:"write",fn:Ti,effect:Bi,requires:["computeStyles"]};function pe(i){return i.split("-")[0]}var Ie=Math.max,Mt=Math.min,Ve=Math.round;function nr(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Rr(){return!/^((?!chrome|android).)*safari/i.test(nr())}function qe(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=i.getBoundingClientRect(),o=1,s=1;e&&ae(i)&&(o=i.offsetWidth>0&&Ve(r.width)/i.offsetWidth||1,s=i.offsetHeight>0&&Ve(r.height)/i.offsetHeight||1);var n=Be(i)?oe(i):window,l=n.visualViewport,d=!Rr()&&t,p=(r.left+(d&&l?l.offsetLeft:0))/o,h=(r.top+(d&&l?l.offsetTop:0))/s,f=r.width/o,m=r.height/s;return{width:f,height:m,top:h,right:p+f,bottom:h+m,left:p,x:p,y:h}}function ar(i){var e=qe(i),t=i.offsetWidth,r=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:r}}function Hr(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&sr(t)){var r=e;do{if(r&&i.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function me(i){return oe(i).getComputedStyle(i)}function Yi(i){return["table","td","th"].indexOf(he(i))>=0}function Ce(i){return((Be(i)?i.ownerDocument:i.document)||window.document).documentElement}function Dt(i){return he(i)==="html"?i:i.assignedSlot||i.parentNode||(sr(i)?i.host:null)||Ce(i)}function jr(i){return!ae(i)||me(i).position==="fixed"?null:i.offsetParent}function Ri(i){var e=/firefox/i.test(nr()),t=/Trident/i.test(nr());if(t&&ae(i)){var r=me(i);if(r.position==="fixed")return null}var o=Dt(i);for(sr(o)&&(o=o.host);ae(o)&&["html","body"].indexOf(he(o))<0;){var s=me(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function gt(i){for(var e=oe(i),t=jr(i);t&&Yi(t)&&me(t).position==="static";)t=jr(t);return t&&(he(t)==="html"||he(t)==="body"&&me(t).position==="static")?e:t||Ri(i)||e}function lr(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function mt(i,e,t){return Ie(i,Mt(e,t))}function Hi(i,e,t){var r=mt(i,e,t);return r>t?t:r}function Fr(){return{top:0,right:0,bottom:0,left:0}}function Nr(i){return Object.assign({},Fr(),i)}function Ur(i,e){return e.reduce(function(t,r){return t[r]=i,t},{})}var ji=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Nr(typeof e!="number"?e:Ur(e,pt))};function Fi(i){var e,t=i.state,r=i.name,o=i.options,s=t.elements.arrow,n=t.modifiersData.popperOffsets,l=pe(t.placement),d=lr(l),p=[re,ne].indexOf(l)>=0,h=p?"height":"width";if(!(!s||!n)){var f=ji(o.padding,t),m=ar(s),v=d==="y"?te:re,C=d==="y"?se:ne,k=t.rects.reference[h]+t.rects.reference[d]-n[d]-t.rects.popper[h],g=n[d]-t.rects.reference[d],_=gt(s),w=_?d==="y"?_.clientHeight||0:_.clientWidth||0:0,y=k/2-g/2,x=f[v],E=w-m[h]-f[C],S=w/2-m[h]/2+y,D=mt(x,S,E),P=d;t.modifiersData[r]=(e={},e[P]=D,e.centerOffset=D-S,e)}}function Ni(i){var e=i.state,t=i.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Hr(e.elements.popper,o)&&(e.elements.arrow=o))}const Ui={name:"arrow",enabled:!0,phase:"main",fn:Fi,effect:Ni,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function We(i){return i.split("-")[1]}var Vi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qi(i,e){var t=i.x,r=i.y,o=e.devicePixelRatio||1;return{x:Ve(t*o)/o||0,y:Ve(r*o)/o||0}}function Vr(i){var e,t=i.popper,r=i.popperRect,o=i.placement,s=i.variation,n=i.offsets,l=i.position,d=i.gpuAcceleration,p=i.adaptive,h=i.roundOffsets,f=i.isFixed,m=n.x,v=m===void 0?0:m,C=n.y,k=C===void 0?0:C,g=typeof h=="function"?h({x:v,y:k}):{x:v,y:k};v=g.x,k=g.y;var _=n.hasOwnProperty("x"),w=n.hasOwnProperty("y"),y=re,x=te,E=window;if(p){var S=gt(t),D="clientHeight",P="clientWidth";if(S===oe(t)&&(S=Ce(t),me(S).position!=="static"&&l==="absolute"&&(D="scrollHeight",P="scrollWidth")),S=S,o===te||(o===re||o===ne)&&s===ut){x=se;var z=f&&S===E&&E.visualViewport?E.visualViewport.height:S[D];k-=z-r.height,k*=d?1:-1}if(o===re||(o===te||o===se)&&s===ut){y=ne;var O=f&&S===E&&E.visualViewport?E.visualViewport.width:S[P];v-=O-r.width,v*=d?1:-1}}var B=Object.assign({position:l},p&&Vi),j=h===!0?qi({x:v,y:k},oe(t)):{x:v,y:k};if(v=j.x,k=j.y,d){var L;return Object.assign({},B,(L={},L[x]=w?"0":"",L[y]=_?"0":"",L.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+k+"px)":"translate3d("+v+"px, "+k+"px, 0)",L))}return Object.assign({},B,(e={},e[x]=w?k+"px":"",e[y]=_?v+"px":"",e.transform="",e))}function Wi(i){var e=i.state,t=i.options,r=t.gpuAcceleration,o=r===void 0?!0:r,s=t.adaptive,n=s===void 0?!0:s,l=t.roundOffsets,d=l===void 0?!0:l,p={placement:pe(e.placement),variation:We(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Vr(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:n,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Vr(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Zi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wi,data:{}};var At={passive:!0};function Ki(i){var e=i.state,t=i.instance,r=i.options,o=r.scroll,s=o===void 0?!0:o,n=r.resize,l=n===void 0?!0:n,d=oe(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",t.update,At)}),l&&d.addEventListener("resize",t.update,At),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",t.update,At)}),l&&d.removeEventListener("resize",t.update,At)}}const Gi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ki,data:{}};var Xi={left:"right",right:"left",bottom:"top",top:"bottom"};function zt(i){return i.replace(/left|right|bottom|top/g,function(e){return Xi[e]})}var Ji={start:"end",end:"start"};function qr(i){return i.replace(/start|end/g,function(e){return Ji[e]})}function dr(i){var e=oe(i),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function cr(i){return qe(Ce(i)).left+dr(i).scrollLeft}function Qi(i,e){var t=oe(i),r=Ce(i),o=t.visualViewport,s=r.clientWidth,n=r.clientHeight,l=0,d=0;if(o){s=o.width,n=o.height;var p=Rr();(p||!p&&e==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:s,height:n,x:l+cr(i),y:d}}function es(i){var e,t=Ce(i),r=dr(i),o=(e=i.ownerDocument)==null?void 0:e.body,s=Ie(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),n=Ie(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+cr(i),d=-r.scrollTop;return me(o||t).direction==="rtl"&&(l+=Ie(t.clientWidth,o?o.clientWidth:0)-s),{width:s,height:n,x:l,y:d}}function hr(i){var e=me(i),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function Wr(i){return["html","body","#document"].indexOf(he(i))>=0?i.ownerDocument.body:ae(i)&&hr(i)?i:Wr(Dt(i))}function bt(i,e){var t;e===void 0&&(e=[]);var r=Wr(i),o=r===((t=i.ownerDocument)==null?void 0:t.body),s=oe(r),n=o?[s].concat(s.visualViewport||[],hr(r)?r:[]):r,l=e.concat(n);return o?l:l.concat(bt(Dt(n)))}function pr(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function ts(i,e){var t=qe(i,!1,e==="fixed");return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}function Zr(i,e,t){return e===Br?pr(Qi(i,t)):Be(e)?ts(e,t):pr(es(Ce(i)))}function rs(i){var e=bt(Dt(i)),t=["absolute","fixed"].indexOf(me(i).position)>=0,r=t&&ae(i)?gt(i):i;return Be(r)?e.filter(function(o){return Be(o)&&Hr(o,r)&&he(o)!=="body"}):[]}function os(i,e,t,r){var o=e==="clippingParents"?rs(i):[].concat(e),s=[].concat(o,[t]),n=s[0],l=s.reduce(function(d,p){var h=Zr(i,p,r);return d.top=Ie(h.top,d.top),d.right=Mt(h.right,d.right),d.bottom=Mt(h.bottom,d.bottom),d.left=Ie(h.left,d.left),d},Zr(i,n,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Kr(i){var e=i.reference,t=i.element,r=i.placement,o=r?pe(r):null,s=r?We(r):null,n=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,d;switch(o){case te:d={x:n,y:e.y-t.height};break;case se:d={x:n,y:e.y+e.height};break;case ne:d={x:e.x+e.width,y:l};break;case re:d={x:e.x-t.width,y:l};break;default:d={x:e.x,y:e.y}}var p=o?lr(o):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case Ue:d[p]=d[p]-(e[h]/2-t[h]/2);break;case ut:d[p]=d[p]+(e[h]/2-t[h]/2);break}}return d}function vt(i,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?i.placement:r,s=t.strategy,n=s===void 0?i.strategy:s,l=t.boundary,d=l===void 0?$i:l,p=t.rootBoundary,h=p===void 0?Br:p,f=t.elementContext,m=f===void 0?ft:f,v=t.altBoundary,C=v===void 0?!1:v,k=t.padding,g=k===void 0?0:k,_=Nr(typeof g!="number"?g:Ur(g,pt)),w=m===ft?ki:ft,y=i.rects.popper,x=i.elements[C?w:m],E=os(Be(x)?x:x.contextElement||Ce(i.elements.popper),d,h,n),S=qe(i.elements.reference),D=Kr({reference:S,element:y,placement:o}),P=pr(Object.assign({},y,D)),z=m===ft?P:S,O={top:E.top-z.top+_.top,bottom:z.bottom-E.bottom+_.bottom,left:E.left-z.left+_.left,right:z.right-E.right+_.right},B=i.modifiersData.offset;if(m===ft&&B){var j=B[o];Object.keys(O).forEach(function(L){var W=[ne,se].indexOf(L)>=0?1:-1,Z=[te,se].indexOf(L)>=0?"y":"x";O[L]+=j[Z]*W})}return O}function is(i,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,s=t.rootBoundary,n=t.padding,l=t.flipVariations,d=t.allowedAutoPlacements,p=d===void 0?Yr:d,h=We(r),f=h?l?Ir:Ir.filter(function(C){return We(C)===h}):pt,m=f.filter(function(C){return p.indexOf(C)>=0});m.length===0&&(m=f);var v=m.reduce(function(C,k){return C[k]=vt(i,{placement:k,boundary:o,rootBoundary:s,padding:n})[pe(k)],C},{});return Object.keys(v).sort(function(C,k){return v[C]-v[k]})}function ss(i){if(pe(i)===ir)return[];var e=zt(i);return[qr(i),e,qr(e)]}function ns(i){var e=i.state,t=i.options,r=i.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,s=o===void 0?!0:o,n=t.altAxis,l=n===void 0?!0:n,d=t.fallbackPlacements,p=t.padding,h=t.boundary,f=t.rootBoundary,m=t.altBoundary,v=t.flipVariations,C=v===void 0?!0:v,k=t.allowedAutoPlacements,g=e.options.placement,_=pe(g),w=_===g,y=d||(w||!C?[zt(g)]:ss(g)),x=[g].concat(y).reduce(function(De,fe){return De.concat(pe(fe)===ir?is(e,{placement:fe,boundary:h,rootBoundary:f,padding:p,flipVariations:C,allowedAutoPlacements:k}):fe)},[]),E=e.rects.reference,S=e.rects.popper,D=new Map,P=!0,z=x[0],O=0;O<x.length;O++){var B=x[O],j=pe(B),L=We(B)===Ue,W=[te,se].indexOf(j)>=0,Z=W?"width":"height",V=vt(e,{placement:B,boundary:h,rootBoundary:f,altBoundary:m,padding:p}),K=W?L?ne:re:L?se:te;E[Z]>S[Z]&&(K=zt(K));var ce=zt(K),ee=[];if(s&&ee.push(V[j]<=0),l&&ee.push(V[K]<=0,V[ce]<=0),ee.every(function(De){return De})){z=B,P=!1;break}D.set(B,ee)}if(P)for(var be=C?3:1,G=function(fe){var Re=x.find(function(Ge){var ye=D.get(Ge);if(ye)return ye.slice(0,fe).every(function(Xe){return Xe})});if(Re)return z=Re,"break"},ve=be;ve>0;ve--){var _e=G(ve);if(_e==="break")break}e.placement!==z&&(e.modifiersData[r]._skip=!0,e.placement=z,e.reset=!0)}}const as={name:"flip",enabled:!0,phase:"main",fn:ns,requiresIfExists:["offset"],data:{_skip:!1}};function Gr(i,e,t){return t===void 0&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function Xr(i){return[te,ne,se,re].some(function(e){return i[e]>=0})}function ls(i){var e=i.state,t=i.name,r=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,n=vt(e,{elementContext:"reference"}),l=vt(e,{altBoundary:!0}),d=Gr(n,r),p=Gr(l,o,s),h=Xr(d),f=Xr(p);e.modifiersData[t]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}const ds={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ls};function cs(i,e,t){var r=pe(i),o=[re,te].indexOf(r)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:i})):t,n=s[0],l=s[1];return n=n||0,l=(l||0)*o,[re,ne].indexOf(r)>=0?{x:l,y:n}:{x:n,y:l}}function hs(i){var e=i.state,t=i.options,r=i.name,o=t.offset,s=o===void 0?[0,0]:o,n=Yr.reduce(function(h,f){return h[f]=cs(f,e.rects,s),h},{}),l=n[e.placement],d=l.x,p=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=p),e.modifiersData[r]=n}const ps={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hs};function us(i){var e=i.state,t=i.name;e.modifiersData[t]=Kr({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const fs={name:"popperOffsets",enabled:!0,phase:"read",fn:us,data:{}};function gs(i){return i==="x"?"y":"x"}function ms(i){var e=i.state,t=i.options,r=i.name,o=t.mainAxis,s=o===void 0?!0:o,n=t.altAxis,l=n===void 0?!1:n,d=t.boundary,p=t.rootBoundary,h=t.altBoundary,f=t.padding,m=t.tether,v=m===void 0?!0:m,C=t.tetherOffset,k=C===void 0?0:C,g=vt(e,{boundary:d,rootBoundary:p,padding:f,altBoundary:h}),_=pe(e.placement),w=We(e.placement),y=!w,x=lr(_),E=gs(x),S=e.modifiersData.popperOffsets,D=e.rects.reference,P=e.rects.popper,z=typeof k=="function"?k(Object.assign({},e.rects,{placement:e.placement})):k,O=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(S){if(s){var L,W=x==="y"?te:re,Z=x==="y"?se:ne,V=x==="y"?"height":"width",K=S[x],ce=K+g[W],ee=K-g[Z],be=v?-P[V]/2:0,G=w===Ue?D[V]:P[V],ve=w===Ue?-P[V]:-D[V],_e=e.elements.arrow,De=v&&_e?ar(_e):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Fr(),Re=fe[W],Ge=fe[Z],ye=mt(0,D[V],De[V]),Xe=y?D[V]/2-be-ye-Re-O.mainAxis:G-ye-Re-O.mainAxis,Rt=y?-D[V]/2+be+ye+Ge+O.mainAxis:ve+ye+Ge+O.mainAxis,He=e.elements.arrow&&gt(e.elements.arrow),yt=He?x==="y"?He.clientTop||0:He.clientLeft||0:0,Je=(L=B==null?void 0:B[x])!=null?L:0,Qe=K+Xe-Je-yt,et=K+Rt-Je,tt=mt(v?Mt(ce,Qe):ce,K,v?Ie(ee,et):ee);S[x]=tt,j[x]=tt-K}if(l){var rt,wt=x==="x"?te:re,xt=x==="x"?se:ne,Ae=S[E],Ht=E==="y"?"height":"width",go=Ae+g[wt],mo=Ae-g[xt],fr=[te,re].indexOf(_)!==-1,bo=(rt=B==null?void 0:B[E])!=null?rt:0,vo=fr?go:Ae-D[Ht]-P[Ht]-bo+O.altAxis,_o=fr?Ae+D[Ht]+P[Ht]-bo-O.altAxis:mo,yo=v&&fr?Hi(vo,Ae,_o):mt(v?vo:go,Ae,v?_o:mo);S[E]=yo,j[E]=yo-Ae}e.modifiersData[r]=j}}const bs={name:"preventOverflow",enabled:!0,phase:"main",fn:ms,requiresIfExists:["offset"]};function vs(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function _s(i){return i===oe(i)||!ae(i)?dr(i):vs(i)}function ys(i){var e=i.getBoundingClientRect(),t=Ve(e.width)/i.offsetWidth||1,r=Ve(e.height)/i.offsetHeight||1;return t!==1||r!==1}function ws(i,e,t){t===void 0&&(t=!1);var r=ae(e),o=ae(e)&&ys(e),s=Ce(e),n=qe(i,o,t),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!t)&&((he(e)!=="body"||hr(s))&&(l=_s(e)),ae(e)?(d=qe(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):s&&(d.x=cr(s))),{x:n.left+l.scrollLeft-d.x,y:n.top+l.scrollTop-d.y,width:n.width,height:n.height}}function xs(i){var e=new Map,t=new Set,r=[];i.forEach(function(s){e.set(s.name,s)});function o(s){t.add(s.name);var n=[].concat(s.requires||[],s.requiresIfExists||[]);n.forEach(function(l){if(!t.has(l)){var d=e.get(l);d&&o(d)}}),r.push(s)}return i.forEach(function(s){t.has(s.name)||o(s)}),r}function $s(i){var e=xs(i);return Li.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function ks(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function Cs(i){var e=i.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var Jr={placement:"bottom",modifiers:[],strategy:"absolute"};function Qr(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Es(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,r=t===void 0?[]:t,o=e.defaultOptions,s=o===void 0?Jr:o;return function(l,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jr,s),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},f=[],m=!1,v={state:h,setOptions:function(_){var w=typeof _=="function"?_(h.options):_;k(),h.options=Object.assign({},s,h.options,w),h.scrollParents={reference:Be(l)?bt(l):l.contextElement?bt(l.contextElement):[],popper:bt(d)};var y=$s(Cs([].concat(r,h.options.modifiers)));return h.orderedModifiers=y.filter(function(x){return x.enabled}),C(),v.update()},forceUpdate:function(){if(!m){var _=h.elements,w=_.reference,y=_.popper;if(Qr(w,y)){h.rects={reference:ws(w,gt(y),h.options.strategy==="fixed"),popper:ar(y)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(O){return h.modifiersData[O.name]=Object.assign({},O.data)});for(var x=0;x<h.orderedModifiers.length;x++){if(h.reset===!0){h.reset=!1,x=-1;continue}var E=h.orderedModifiers[x],S=E.fn,D=E.options,P=D===void 0?{}:D,z=E.name;typeof S=="function"&&(h=S({state:h,options:P,name:z,instance:v})||h)}}}},update:ks(function(){return new Promise(function(g){v.forceUpdate(),g(h)})}),destroy:function(){k(),m=!0}};if(!Qr(l,d))return v;v.setOptions(p).then(function(g){!m&&p.onFirstUpdate&&p.onFirstUpdate(g)});function C(){h.orderedModifiers.forEach(function(g){var _=g.name,w=g.options,y=w===void 0?{}:w,x=g.effect;if(typeof x=="function"){var E=x({state:h,name:_,instance:v,options:y}),S=function(){};f.push(E||S)}})}function k(){f.forEach(function(g){return g()}),f=[]}return v}}var Ss=[Gi,fs,Zi,Ii,ps,as,bs,Ui,ds],ur=Es({defaultModifiers:Ss});const Ms='.popover__wrapper{position:relative;display:inline-block;font-family:var(--font-family-base)}.popover__trigger{display:inline-flex}.popover__panel{position:relative;overflow:visible;z-index:var(--z-index-popover);min-width:240px;border-radius:var(--radius-md);border:1px solid var(--color-border);background-color:var(--color-body-bg);box-shadow:var(--shadow-md)}.popover__content{position:relative;z-index:1;background-color:var(--color-body-bg);border-radius:var(--radius-md);overflow:hidden}.popover__content:before{content:"";position:absolute;top:0;left:0;right:0;height:8px;background-color:var(--color-body-bg);border-radius:var(--radius-md) var(--radius-md) 0 0;z-index:1;pointer-events:none}.popover__content>*{position:relative;z-index:2}.popover__title{padding:10px var(--spacing-3);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--color-body-text)}.popover__body{padding:var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-secondary)}.popover__body--with-border{border-top:1px solid var(--color-border)}.popper-arrow{position:absolute;width:12px;height:12px;pointer-events:none;z-index:0}.popper-arrow:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--color-border);transform:rotate(45deg)}.popper-arrow:after{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;background:var(--color-body-bg);transform:rotate(45deg)}[data-popper]{position:relative;overflow:visible}[data-popper-placement^=bottom]>.popper-arrow{top:-6px;left:50%;transform:translate(-50%,-50%)}[data-popper-placement^=top]>.popper-arrow{bottom:-6px;left:50%;transform:translate(-50%,50%)}[data-popper-placement^=left]>.popper-arrow{right:-6px;top:50%;transform:translate(50%,-50%)}[data-popper-placement^=right]>.popper-arrow{left:-6px;top:50%;transform:translate(-50%,-50%)}';var Ds=Object.defineProperty,As=Object.getOwnPropertyDescriptor,ue=(i,e,t,r)=>{for(var o=r>1?void 0:r?As(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&Ds(e,t,o),o};a.Popover=class extends T{constructor(){super(...arguments),this.title="",this.trigger="click",this.placement="bottom",this.offset=8,this.open=!1,this.closeOnOutsideClick=!0,this.handleDocumentClick=e=>{!this.open||!this.closeOnOutsideClick||e.composedPath().includes(this)||this.setOpen(!1)},this.toggle=e=>{(this.trigger==="click"||this.trigger==="both")&&(e==null||e.stopPropagation(),this.setOpen(!this.open))},this.handleMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="both")&&this.setOpen(!0)},this.handleMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="both")&&this.setOpen(!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleDocumentClick,{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleDocumentClick,{capture:!0}),this.destroyPopper()}updated(e){super.updated(e);const t=e.has("placement"),r=e.has("open")&&this.open;if(e.has("open")&&!this.open){this.destroyPopper();return}(r||t)&&this.open&&this.updatePopper()}setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"popover-open":"popover-close",{bubbles:!0,composed:!0})))}updatePopper(){if(!this.isConnected||!this.open)return;const e=this.triggerElement,t=this.popperElement;if(!(!e||!t)){if(this.popperInstance){this.popperInstance.setOptions({placement:this.placement,modifiers:this.getPopperModifiers(),strategy:"fixed"}),this.popperInstance.update();return}this.popperInstance=ur(e,t,{placement:this.placement,strategy:"fixed",modifiers:this.getPopperModifiers()})}}getPopperModifiers(){return[{name:"offset",options:{offset:[0,this.offset]}},{name:"arrow",options:{element:this.popperArrowElement,padding:8}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8}}]}destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=void 0)}render(){const e=!!this.title;return u`
241
241
  <div
242
242
  class="popover__wrapper"
243
243
  @mouseenter=${this.handleMouseEnter}
@@ -266,7 +266,7 @@
266
266
  </div>
267
267
  `:null}
268
268
  </div>
269
- `}},n.Popover.styles=[N`${F(ks)}`],ue([c({type:String})],n.Popover.prototype,"title",2),ue([c({type:String})],n.Popover.prototype,"trigger",2),ue([c({type:String})],n.Popover.prototype,"placement",2),ue([c({type:Number})],n.Popover.prototype,"offset",2),ue([c({type:Boolean,reflect:!0})],n.Popover.prototype,"open",2),ue([c({type:Boolean})],n.Popover.prototype,"closeOnOutsideClick",2),ue([J('[part="trigger"]')],n.Popover.prototype,"triggerElement",2),ue([J("[data-popper]")],n.Popover.prototype,"popperElement",2),ue([J("[data-popper-arrow]")],n.Popover.prototype,"popperArrowElement",2),n.Popover=ue([U("logosphere-popover")],n.Popover);const Ss=".textarea__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.textarea__field::placeholder{color:var(--color-tertiary)}.textarea__field:disabled{cursor:not-allowed}.textarea__field--resize-none{resize:none}.textarea__field--resize-vertical{resize:vertical}.textarea__field--resize-horizontal{resize:horizontal}.textarea__field--resize-both{resize:both}.textarea__field--auto-resize{resize:none;overflow:hidden}.textarea__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:flex-start;align-self:flex-start;margin-top:var(--spacing-1);outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.textarea__clear-btn:hover{color:var(--color-gray-600)}";var Ms=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,H=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ds(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ms(e,t,o),o};n.TextArea=class extends T{constructor(){super(...arguments),this.value="",this.placeholder="",this.name="",this.autocomplete="",this.rows=3,this.wrap="soft",this.resize="vertical",this.autoResize=!1,this.size="default",this.variant="default",this.label="",this.helper="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this._internalError="",this.handleInput=e=>{const t=e.target;this.value=t.value,this.autoResize&&this.adjustHeight(),this._internalError&&(this._internalError="",this._textareaElement.setCustomValidity("")),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleChange=e=>{const t=e.target;this.value=t.value,t.checkValidity()||(this._internalError=t.validationMessage),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleKeyDown=e=>{this.dispatchEvent(new CustomEvent("keydown",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleKeyUp=e=>{this.dispatchEvent(new CustomEvent("keyup",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleClear=()=>{this.value="",this._textareaElement&&(this._textareaElement.value="",this.autoResize&&this.adjustHeight()),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:"",originalEvent:null}}))}}get textareaElement(){return this._textareaElement}focus(){var e;(e=this._textareaElement)==null||e.focus()}blur(){var e;(e=this._textareaElement)==null||e.blur()}select(){var e;(e=this._textareaElement)==null||e.select()}setSelectionRange(e,t,r){var o;(o=this._textareaElement)==null||o.setSelectionRange(e,t,r)}checkValidity(){var e,t;return(t=(e=this._textareaElement)==null?void 0:e.checkValidity())!=null?t:!0}reportValidity(){var e,t;return(t=(e=this._textareaElement)==null?void 0:e.reportValidity())!=null?t:!0}setCustomValidity(e){var t;(t=this._textareaElement)==null||t.setCustomValidity(e),this._internalError=e,this.requestUpdate()}adjustHeight(){!this.autoResize||!this._textareaElement||(this._textareaElement.style.height="auto",this._textareaElement.style.height=`${this._textareaElement.scrollHeight}px`)}updated(e){super.updated(e),e.has("value")&&this.autoResize&&this.adjustHeight()}getResizeClass(){return this.autoResize?"textarea__field--auto-resize":{none:"textarea__field--resize-none",vertical:"textarea__field--resize-vertical",horizontal:"textarea__field--resize-horizontal",both:"textarea__field--resize-both"}[this.resize]}render(){var o,s,a;const e=this.error||this._internalError,t=!!this.value&&!this.disabled&&!this.readonly,r=`textarea__field ${this.getResizeClass()}`;return u`
269
+ `}},a.Popover.styles=[N`${F(Ms)}`],ue([c({type:String})],a.Popover.prototype,"title",2),ue([c({type:String})],a.Popover.prototype,"trigger",2),ue([c({type:String})],a.Popover.prototype,"placement",2),ue([c({type:Number})],a.Popover.prototype,"offset",2),ue([c({type:Boolean,reflect:!0})],a.Popover.prototype,"open",2),ue([c({type:Boolean})],a.Popover.prototype,"closeOnOutsideClick",2),ue([J('[part="trigger"]')],a.Popover.prototype,"triggerElement",2),ue([J("[data-popper]")],a.Popover.prototype,"popperElement",2),ue([J("[data-popper-arrow]")],a.Popover.prototype,"popperArrowElement",2),a.Popover=ue([U("logosphere-popover")],a.Popover);const zs=".textarea__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.textarea__field::placeholder{color:var(--color-tertiary)}.textarea__field:disabled{cursor:not-allowed}.textarea__field--resize-none{resize:none}.textarea__field--resize-vertical{resize:vertical}.textarea__field--resize-horizontal{resize:horizontal}.textarea__field--resize-both{resize:both}.textarea__field--auto-resize{resize:none;overflow:hidden}.textarea__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:flex-start;align-self:flex-start;margin-top:var(--spacing-1);outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.textarea__clear-btn:hover{color:var(--color-gray-600)}";var Ps=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,H=(i,e,t,r)=>{for(var o=r>1?void 0:r?Os(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&Ps(e,t,o),o};a.TextArea=class extends T{constructor(){super(...arguments),this.value="",this.placeholder="",this.name="",this.autocomplete="",this.rows=3,this.wrap="soft",this.resize="vertical",this.autoResize=!1,this.size="default",this.variant="default",this.label="",this.helper="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this._internalError="",this.handleInput=e=>{const t=e.target;this.value=t.value,this.autoResize&&this.adjustHeight(),this._internalError&&(this._internalError="",this._textareaElement.setCustomValidity("")),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleChange=e=>{const t=e.target;this.value=t.value,t.checkValidity()||(this._internalError=t.validationMessage),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleKeyDown=e=>{this.dispatchEvent(new CustomEvent("keydown",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleKeyUp=e=>{this.dispatchEvent(new CustomEvent("keyup",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleClear=()=>{this.value="",this._textareaElement&&(this._textareaElement.value="",this.autoResize&&this.adjustHeight()),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:"",originalEvent:null}}))}}get textareaElement(){return this._textareaElement}focus(){var e;(e=this._textareaElement)==null||e.focus()}blur(){var e;(e=this._textareaElement)==null||e.blur()}select(){var e;(e=this._textareaElement)==null||e.select()}setSelectionRange(e,t,r){var o;(o=this._textareaElement)==null||o.setSelectionRange(e,t,r)}checkValidity(){var e,t;return(t=(e=this._textareaElement)==null?void 0:e.checkValidity())!=null?t:!0}reportValidity(){var e,t;return(t=(e=this._textareaElement)==null?void 0:e.reportValidity())!=null?t:!0}setCustomValidity(e){var t;(t=this._textareaElement)==null||t.setCustomValidity(e),this._internalError=e,this.requestUpdate()}adjustHeight(){!this.autoResize||!this._textareaElement||(this._textareaElement.style.height="auto",this._textareaElement.style.height=`${this._textareaElement.scrollHeight}px`)}updated(e){super.updated(e),e.has("value")&&this.autoResize&&this.adjustHeight()}getResizeClass(){return this.autoResize?"textarea__field--auto-resize":{none:"textarea__field--resize-none",vertical:"textarea__field--resize-vertical",horizontal:"textarea__field--resize-horizontal",both:"textarea__field--resize-both"}[this.resize]}render(){var o,s,n;const e=this.error||this._internalError,t=!!this.value&&!this.disabled&&!this.readonly,r=`textarea__field ${this.getResizeClass()}`;return u`
270
270
  <logosphere-formfield
271
271
  .label=${this.label}
272
272
  .helper=${this.helper}
@@ -282,16 +282,16 @@
282
282
  <textarea
283
283
  class="${r}"
284
284
  .value=${rr(this.value)}
285
- placeholder=${this.placeholder||m}
286
- name=${this.name||m}
287
- autocomplete=${this.autocomplete||m}
285
+ placeholder=${this.placeholder||b}
286
+ name=${this.name||b}
287
+ autocomplete=${this.autocomplete||b}
288
288
  ?required=${this.required}
289
289
  ?disabled=${this.disabled}
290
290
  ?readonly=${this.readonly}
291
- minlength=${(o=this.minlength)!=null?o:m}
292
- maxlength=${(s=this.maxlength)!=null?s:m}
291
+ minlength=${(o=this.minlength)!=null?o:b}
292
+ maxlength=${(s=this.maxlength)!=null?s:b}
293
293
  rows=${this.rows}
294
- cols=${(a=this.cols)!=null?a:m}
294
+ cols=${(n=this.cols)!=null?n:b}
295
295
  wrap=${this.wrap}
296
296
  @input=${this.handleInput}
297
297
  @change=${this.handleChange}
@@ -308,15 +308,15 @@
308
308
  >
309
309
  <ui-icon name="uil-times" size="14"></ui-icon>
310
310
  </button>
311
- `:m}
311
+ `:b}
312
312
  <slot name="suffix" slot="suffix"></slot>
313
313
  </logosphere-formfield>
314
- `}},n.TextArea.styles=[N`${F(Ss)}`],H([J("textarea")],n.TextArea.prototype,"_textareaElement",2),H([c({type:String})],n.TextArea.prototype,"value",2),H([c({type:String})],n.TextArea.prototype,"placeholder",2),H([c({type:String})],n.TextArea.prototype,"name",2),H([c({type:String})],n.TextArea.prototype,"autocomplete",2),H([c({type:Number})],n.TextArea.prototype,"minlength",2),H([c({type:Number})],n.TextArea.prototype,"maxlength",2),H([c({type:Number})],n.TextArea.prototype,"rows",2),H([c({type:Number})],n.TextArea.prototype,"cols",2),H([c({type:String})],n.TextArea.prototype,"wrap",2),H([c({type:String})],n.TextArea.prototype,"resize",2),H([c({type:Boolean})],n.TextArea.prototype,"autoResize",2),H([c({type:String})],n.TextArea.prototype,"size",2),H([c({type:String})],n.TextArea.prototype,"variant",2),H([c({type:String})],n.TextArea.prototype,"label",2),H([c({type:String})],n.TextArea.prototype,"helper",2),H([c({type:String})],n.TextArea.prototype,"error",2),H([c({type:Boolean})],n.TextArea.prototype,"required",2),H([c({type:Boolean})],n.TextArea.prototype,"disabled",2),H([c({type:Boolean})],n.TextArea.prototype,"readonly",2),H([$()],n.TextArea.prototype,"_internalError",2),n.TextArea=H([U("logosphere-textarea")],n.TextArea);const As='.combobox{display:flex;flex-direction:column;gap:var(--spacing-1);font-family:var(--font-family-base);width:100%}.combobox__label{display:block;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-body-text)}.combobox__label--required:after{content:" *";color:var(--color-primary)}.combobox__readonly{border:none;background:transparent;font-size:var(--font-size-sm);color:var(--color-body-text);padding:0;outline:none;font-family:var(--font-family-base)}.combobox__wrapper{position:relative;width:100%;cursor:pointer}.combobox__trigger{display:flex;align-items:center;justify-content:space-between;width:100%;gap:var(--spacing-2);padding:0;border:none;border-radius:0;background-color:transparent;cursor:pointer;overflow:hidden;font-size:var(--font-size-sm);color:var(--color-body-text);transition:color var(--transition-speed-fast) var(--transition-timing);box-sizing:border-box}.combobox__trigger--default{min-height:20px}.combobox__trigger--large{min-height:24px;font-size:var(--font-size-base)}.combobox__trigger--open{color:var(--color-body-text)}.combobox__trigger--readonly{cursor:default;color:var(--color-tertiary)}.combobox__trigger--disabled{cursor:not-allowed;color:var(--color-tertiary)}.combobox__trigger--readonly .combobox__chevron,.combobox__trigger--disabled .combobox__chevron{opacity:.3}.combobox__placeholder{color:var(--color-tertiary);font-size:var(--font-size-sm);flex:1}.combobox__single-value{flex:1;font-size:var(--font-size-sm);color:var(--color-body-text)}.combobox__chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--color-tertiary);flex-shrink:0;transition:transform var(--transition-speed-fast) var(--transition-timing);position:absolute;right:var(--spacing-3)}.combobox__chevron--open{transform:rotate(180deg)}.combobox__tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-1);flex:1;overflow:hidden}.combobox__tag{display:inline-flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-2);background-color:var(--color-tertiary-bg);border-radius:var(--radius-sm);font-size:var(--font-size-xs);color:var(--color-body-text);white-space:nowrap}.combobox__tag-remove{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0;cursor:pointer;color:var(--color-tertiary);line-height:1;transition:color var(--transition-speed-fast) var(--transition-timing)}.combobox__tag-remove:hover{color:var(--color-body-text)}.combobox__clear{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0 12px 0 0;cursor:pointer;color:var(--color-secondary);line-height:1;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.combobox__clear:hover{color:var(--color-body-text)}.combobox__filter-input{flex:1;border:none;outline:none;background:transparent;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);min-width:0;padding:0;cursor:text}.combobox__filter-input:disabled{cursor:not-allowed}.combobox__filter-input::placeholder{color:var(--color-tertiary)}.combobox__filter-input--inline{flex:1;min-width:60px}.combobox__trigger--multi-filter{flex-wrap:wrap;height:auto;min-height:32px;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-3)}.combobox__trigger--large.combobox__trigger--multi-filter{min-height:40px}.combobox__dropdown{width:auto;min-width:240px;background-color:var(--color-body-bg);border:1px solid var(--color-border);border-radius:var(--radius-base);box-shadow:var(--shadow-base);z-index:var(--z-index-dropdown);overflow:hidden}.combobox__search{width:100%;padding:var(--spacing-1-5) var(--spacing-3);border:none;border-bottom:1px solid var(--color-border);font-size:var(--font-size-sm);color:var(--color-body-text);font-family:var(--font-family-base);outline:none;box-sizing:border-box;background-color:var(--color-body-bg)}.combobox__search::placeholder{color:var(--color-tertiary)}.combobox__list{max-height:208px;overflow-y:auto}.combobox__item{display:flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-1-5) var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-body-text);cursor:pointer;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.combobox__item:hover,.combobox__item--selected,.combobox__item--focused{background-color:var(--color-tertiary-bg)}.combobox__empty{padding:var(--spacing-2) var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-tertiary);text-align:center}';var zs=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,R=(i,e,t,r)=>{for(var o=r>1?void 0:r?Os(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zs(e,t,o),o};n.Combobox=class extends T{constructor(){super(...arguments),this.inputId="combo-"+Math.random().toString(36).substring(2),this.label="",this.helper="",this.error="",this.placeholder="Seçim yapınız",this.required=!1,this.disabled=!1,this.readOnly=!1,this.variant="default",this.multiple=!1,this.filterable=!1,this.optionLabel="label",this.optionValue="value",this.emptyMessage="Sonuç yok",this.items=[],this.size="default",this.selected=[],this.inputValue="",this.isOpen=!1,this.focusedIndex=-1,this._filteredItems=[],this._dropdownMinWidth=240,this._handleOutsideClick=e=>{e.composedPath().includes(this)||this._closeDropdown()},this._handleKeydown=e=>{if(!(this.readOnly||this.disabled))switch(e.key){case"ArrowDown":e.preventDefault(),this.isOpen?this.focusedIndex=Math.min(this.focusedIndex+1,this._filteredItems.length-1):(this.isOpen=!0,this.focusedIndex=0),this._scrollFocusedIntoView();break;case"ArrowUp":e.preventDefault(),this.isOpen&&(this.focusedIndex=Math.max(this.focusedIndex-1,0),this._scrollFocusedIntoView());break;case"Enter":e.preventDefault(),this.isOpen?this.focusedIndex>=0&&this.focusedIndex<this._filteredItems.length&&this._selectItem(this._filteredItems[this.focusedIndex],e):(this.isOpen=!0,this.focusedIndex=0);break;case"Escape":e.preventDefault(),this._closeDropdown();break}},this._removeTag=(e,t)=>{t.stopPropagation(),this.setSelected(this.selected.filter(r=>r[this.optionValue]!==e[this.optionValue]))},this._clearSelection=e=>{e.stopPropagation(),this.setSelected([]),this.inputValue=""},this._onFilterFocus=()=>{this.readOnly||this.disabled||(this.inputValue="",this.isOpen=!0,this.focusedIndex=0)},this._onFilterInput=e=>{this.readOnly||this.disabled||(this.inputValue=e.target.value,this.focusedIndex=0,this.isOpen||(this.isOpen=!0))},this._stopPropagation=e=>e.stopPropagation(),this._onTriggerClick=e=>{e.stopPropagation(),!(this.readOnly||this.disabled)&&(this.filterable&&!this.multiple?this._focusFilterInput():this.isOpen=!this.isOpen)},this._onFieldClick=e=>{if(!(this.readOnly||this.disabled||e.composedPath().some(o=>{var s;return(s=o==null?void 0:o.classList)==null?void 0:s.contains("combobox__dropdown")}))){if(this.filterable&&!this.multiple){this.isOpen=!0,this._focusFilterInput();return}this.isOpen=!this.isOpen}},this._onChevronClick=e=>{if(e.stopPropagation(),!(this.readOnly||this.disabled)){if(this.isOpen){this._closeDropdown();return}this.isOpen=!0,this.filterable&&!this.multiple&&this._focusFilterInput()}}}willUpdate(e){if(e.has("items")||e.has("inputValue")||e.has("optionLabel")){const t=this.inputValue.toLocaleLowerCase();this._filteredItems=this.items.filter(r=>{var o;return String((o=r[this.optionLabel])!=null?o:"").toLocaleLowerCase().includes(t)})}}updated(e){var t,r;if(e.has("isOpen")&&this.isOpen&&this.filterable&&this.multiple&&((r=(t=this.shadowRoot)==null?void 0:t.querySelector(".combobox__search"))==null||r.focus()),e.has("isOpen")){this.isOpen?this.updateComplete.then(()=>this._updatePopper()):this._destroyPopper();return}this.isOpen&&this._updatePopper()}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleOutsideClick),this._destroyPopper()}_closeDropdown(){this.isOpen=!1,this.focusedIndex=-1,this.filterable&&(this.inputValue="")}get _filterDisplayValue(){return this.isOpen?this.inputValue:!this.multiple&&this.selected.length?String(this.selected[0][this.optionLabel]):""}_focusFilterInput(){this.updateComplete.then(()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector(".combobox__filter-input"))==null||t.focus()})}_scrollFocusedIntoView(){this.updateComplete.then(()=>{var t,r;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll(".combobox__item");(r=e==null?void 0:e[this.focusedIndex])==null||r.scrollIntoView({block:"nearest"})})}selectedItems(){return this.selected}isSelected(e){return this.selected.some(t=>t[this.optionValue]===e[this.optionValue])}_selectItem(e,t){t.stopPropagation();let r;this.multiple?r=this.isSelected(e)?this.selected.filter(o=>o[this.optionValue]!==e[this.optionValue]):[...this.selected,e]:(r=[e],this.isOpen=!1,this.filterable&&(this.inputValue="")),this.setSelected(r)}setSelected(e){this.selected=e,this.dispatchEvent(new CustomEvent("selected",{detail:{selected:e},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0}))}_renderTagList(){return u`
314
+ `}},a.TextArea.styles=[N`${F(zs)}`],H([J("textarea")],a.TextArea.prototype,"_textareaElement",2),H([c({type:String})],a.TextArea.prototype,"value",2),H([c({type:String})],a.TextArea.prototype,"placeholder",2),H([c({type:String})],a.TextArea.prototype,"name",2),H([c({type:String})],a.TextArea.prototype,"autocomplete",2),H([c({type:Number})],a.TextArea.prototype,"minlength",2),H([c({type:Number})],a.TextArea.prototype,"maxlength",2),H([c({type:Number})],a.TextArea.prototype,"rows",2),H([c({type:Number})],a.TextArea.prototype,"cols",2),H([c({type:String})],a.TextArea.prototype,"wrap",2),H([c({type:String})],a.TextArea.prototype,"resize",2),H([c({type:Boolean})],a.TextArea.prototype,"autoResize",2),H([c({type:String})],a.TextArea.prototype,"size",2),H([c({type:String})],a.TextArea.prototype,"variant",2),H([c({type:String})],a.TextArea.prototype,"label",2),H([c({type:String})],a.TextArea.prototype,"helper",2),H([c({type:String})],a.TextArea.prototype,"error",2),H([c({type:Boolean})],a.TextArea.prototype,"required",2),H([c({type:Boolean})],a.TextArea.prototype,"disabled",2),H([c({type:Boolean})],a.TextArea.prototype,"readonly",2),H([$()],a.TextArea.prototype,"_internalError",2),a.TextArea=H([U("logosphere-textarea")],a.TextArea);const Ls='.combobox{display:flex;flex-direction:column;gap:var(--spacing-1);font-family:var(--font-family-base);width:100%}.combobox__label{display:block;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-body-text)}.combobox__label--required:after{content:" *";color:var(--color-primary)}.combobox__readonly{border:none;background:transparent;font-size:var(--font-size-sm);color:var(--color-body-text);padding:0;outline:none;font-family:var(--font-family-base)}.combobox__wrapper{position:relative;width:100%;cursor:pointer}.combobox__trigger{display:flex;align-items:center;justify-content:space-between;width:100%;gap:var(--spacing-2);padding:0;border:none;border-radius:0;background-color:transparent;cursor:pointer;overflow:hidden;font-size:var(--font-size-sm);color:var(--color-body-text);transition:color var(--transition-speed-fast) var(--transition-timing);box-sizing:border-box}.combobox__trigger--default{min-height:20px}.combobox__trigger--large{min-height:24px;font-size:var(--font-size-base)}.combobox__trigger--open{color:var(--color-body-text)}.combobox__trigger--readonly{cursor:default;color:var(--color-tertiary)}.combobox__trigger--disabled{cursor:not-allowed;color:var(--color-tertiary)}.combobox__trigger--readonly .combobox__chevron,.combobox__trigger--disabled .combobox__chevron{opacity:.3}.combobox__placeholder{color:var(--color-tertiary);font-size:var(--font-size-sm);flex:1}.combobox__single-value{flex:1;font-size:var(--font-size-sm);color:var(--color-body-text)}.combobox__chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--color-tertiary);flex-shrink:0;transition:transform var(--transition-speed-fast) var(--transition-timing);position:absolute;right:var(--spacing-3)}.combobox__chevron--open{transform:rotate(180deg)}.combobox__tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-1);flex:1;overflow:hidden}.combobox__tag{display:inline-flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-2);background-color:var(--color-tertiary-bg);border-radius:var(--radius-sm);font-size:var(--font-size-xs);color:var(--color-body-text);white-space:nowrap}.combobox__tag-remove{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0;cursor:pointer;color:var(--color-tertiary);line-height:1;transition:color var(--transition-speed-fast) var(--transition-timing)}.combobox__tag-remove:hover{color:var(--color-body-text)}.combobox__clear{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0 12px 0 0;cursor:pointer;color:var(--color-secondary);line-height:1;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.combobox__clear:hover{color:var(--color-body-text)}.combobox__filter-input{flex:1;border:none;outline:none;background:transparent;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);min-width:0;padding:0;cursor:text}.combobox__filter-input:disabled{cursor:not-allowed}.combobox__filter-input::placeholder{color:var(--color-tertiary)}.combobox__filter-input--inline{flex:1;min-width:60px}.combobox__trigger--multi-filter{flex-wrap:wrap;height:auto;min-height:32px;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-3)}.combobox__trigger--large.combobox__trigger--multi-filter{min-height:40px}.combobox__dropdown[popover]{position:fixed;inset:unset;margin:0;padding:0;border:none}.combobox__dropdown{width:auto;min-width:240px;background-color:var(--color-body-bg);border:1px solid var(--color-border);border-radius:var(--radius-base);box-shadow:var(--shadow-base);z-index:var(--z-index-dropdown);overflow:hidden}.combobox__search{width:100%;padding:var(--spacing-1-5) var(--spacing-3);border:none;border-bottom:1px solid var(--color-border);font-size:var(--font-size-sm);color:var(--color-body-text);font-family:var(--font-family-base);outline:none;box-sizing:border-box;background-color:var(--color-body-bg)}.combobox__search::placeholder{color:var(--color-tertiary)}.combobox__list{max-height:208px;overflow-y:auto}.combobox__item{display:flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-1-5) var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-body-text);cursor:pointer;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.combobox__item:hover,.combobox__item--selected,.combobox__item--focused{background-color:var(--color-tertiary-bg)}.combobox__empty{padding:var(--spacing-2) var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-tertiary);text-align:center}';var Ts=Object.defineProperty,Bs=Object.getOwnPropertyDescriptor,R=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bs(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&Ts(e,t,o),o};a.Combobox=class extends T{constructor(){super(...arguments),this.inputId="combo-"+Math.random().toString(36).substring(2),this.label="",this.helper="",this.error="",this.placeholder="Seçim yapınız",this.required=!1,this.disabled=!1,this.readOnly=!1,this.variant="default",this.multiple=!1,this.filterable=!1,this.optionLabel="label",this.optionValue="value",this.emptyMessage="Sonuç yok",this.items=[],this.size="default",this.selected=[],this.inputValue="",this.isOpen=!1,this.focusedIndex=-1,this._filteredItems=[],this._dropdownMinWidth=240,this._handleOutsideClick=e=>{e.composedPath().includes(this)||this._closeDropdown()},this._handleKeydown=e=>{if(!(this.readOnly||this.disabled))switch(e.key){case"ArrowDown":e.preventDefault(),this.isOpen?this.focusedIndex=Math.min(this.focusedIndex+1,this._filteredItems.length-1):(this.isOpen=!0,this.focusedIndex=0),this._scrollFocusedIntoView();break;case"ArrowUp":e.preventDefault(),this.isOpen&&(this.focusedIndex=Math.max(this.focusedIndex-1,0),this._scrollFocusedIntoView());break;case"Enter":e.preventDefault(),this.isOpen?this.focusedIndex>=0&&this.focusedIndex<this._filteredItems.length&&this._selectItem(this._filteredItems[this.focusedIndex],e):(this.isOpen=!0,this.focusedIndex=0);break;case"Escape":e.preventDefault(),this._closeDropdown();break}},this._removeTag=(e,t)=>{t.stopPropagation(),this.setSelected(this.selected.filter(r=>r[this.optionValue]!==e[this.optionValue]))},this._clearSelection=e=>{e.stopPropagation(),this.setSelected([]),this.inputValue=""},this._onFilterFocus=()=>{this.readOnly||this.disabled||(this.inputValue="",this.isOpen=!0,this.focusedIndex=0)},this._onFilterInput=e=>{this.readOnly||this.disabled||(this.inputValue=e.target.value,this.focusedIndex=0,this.isOpen||(this.isOpen=!0))},this._stopPropagation=e=>e.stopPropagation(),this._onTriggerClick=e=>{e.stopPropagation(),!(this.readOnly||this.disabled)&&(this.filterable&&!this.multiple?this._focusFilterInput():this.isOpen=!this.isOpen)},this._onFieldClick=e=>{if(!(this.readOnly||this.disabled||e.composedPath().some(o=>{var s;return(s=o==null?void 0:o.classList)==null?void 0:s.contains("combobox__dropdown")}))){if(this.filterable&&!this.multiple){this.isOpen=!0,this._focusFilterInput();return}this.isOpen=!this.isOpen}},this._onChevronClick=e=>{if(e.stopPropagation(),!(this.readOnly||this.disabled)){if(this.isOpen){this._closeDropdown();return}this.isOpen=!0,this.filterable&&!this.multiple&&this._focusFilterInput()}}}willUpdate(e){if(e.has("items")||e.has("inputValue")||e.has("optionLabel")){const t=this.inputValue.toLocaleLowerCase();this._filteredItems=this.items.filter(r=>{var o;return String((o=r[this.optionLabel])!=null?o:"").toLocaleLowerCase().includes(t)})}}updated(e){var t,r;if(e.has("isOpen")&&this.isOpen&&this.filterable&&this.multiple&&((r=(t=this.shadowRoot)==null?void 0:t.querySelector(".combobox__search"))==null||r.focus()),e.has("isOpen")){this.isOpen?this.updateComplete.then(()=>{this._showPopover(),this._updatePopper()}):(this._hidePopover(),this._destroyPopper());return}this.isOpen&&this._updatePopper()}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleOutsideClick),this._destroyPopper()}_closeDropdown(){this.isOpen=!1,this.focusedIndex=-1,this.filterable&&(this.inputValue="")}get _filterDisplayValue(){return this.isOpen?this.inputValue:!this.multiple&&this.selected.length?String(this.selected[0][this.optionLabel]):""}_focusFilterInput(){this.updateComplete.then(()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector(".combobox__filter-input"))==null||t.focus()})}_scrollFocusedIntoView(){this.updateComplete.then(()=>{var t,r;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll(".combobox__item");(r=e==null?void 0:e[this.focusedIndex])==null||r.scrollIntoView({block:"nearest"})})}selectedItems(){return this.selected}isSelected(e){return this.selected.some(t=>t[this.optionValue]===e[this.optionValue])}_selectItem(e,t){t.stopPropagation();let r;this.multiple?r=this.isSelected(e)?this.selected.filter(o=>o[this.optionValue]!==e[this.optionValue]):[...this.selected,e]:(r=[e],this.isOpen=!1,this.filterable&&(this.inputValue="")),this.setSelected(r)}setSelected(e){this.selected=e,this.dispatchEvent(new CustomEvent("selected",{detail:{selected:e},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0}))}_renderTagList(){return u`
315
315
  <div class="combobox__tags">
316
316
  ${this.selected.map(e=>u`
317
317
  <span class="combobox__tag">
318
318
  ${e[this.optionLabel]}
319
- ${this.readOnly?m:u`
319
+ ${this.readOnly?b:u`
320
320
  <button
321
321
  class="combobox__tag-remove"
322
322
  @click=${t=>this._removeTag(e,t)}
@@ -344,16 +344,16 @@
344
344
  <button class="combobox__clear" @click=${this._clearSelection} aria-label="Clear">
345
345
  <ui-icon name="uil-times" size="14"></ui-icon>
346
346
  </button>
347
- `:m}
347
+ `:b}
348
348
  `:this.multiple&&this.selected.length?this._renderTagList():!this.multiple&&this.selected.length?u`
349
349
  <span class="combobox__single-value">${this.selected[0][this.optionLabel]}</span>
350
- ${this.readOnly?m:u`
350
+ ${this.readOnly?b:u`
351
351
  <button class="combobox__clear" @click=${this._clearSelection} aria-label="Clear">
352
352
  <ui-icon name="uil-times" size="14"></ui-icon>
353
353
  </button>
354
354
  `}
355
- `:u`<span class="combobox__placeholder">${this.placeholder}</span>`}_renderDropdown(){return this.isOpen?u`
356
- <div data-combobox-popper class="combobox__dropdown">
355
+ `:u`<span class="combobox__placeholder">${this.placeholder}</span>`}_renderDropdown(){return u`
356
+ <div data-combobox-popper popover="manual" class="combobox__dropdown">
357
357
  ${this.filterable&&this.multiple?u`
358
358
  <input
359
359
  class="combobox__search"
@@ -364,7 +364,7 @@
364
364
  @keydown=${this._handleKeydown}
365
365
  @click=${this._stopPropagation}
366
366
  />
367
- `:m}
367
+ `:b}
368
368
 
369
369
  <div class="combobox__list">
370
370
  ${this._filteredItems.length===0?u`<div class="combobox__empty">${this.emptyMessage}</div>`:this._filteredItems.map((e,t)=>u`
@@ -381,13 +381,13 @@
381
381
  .value=${e[this.optionValue]}
382
382
  @click=${this._stopPropagation}
383
383
  ></logosphere-checkbox>
384
- `:m}
384
+ `:b}
385
385
  ${e[this.optionLabel]}
386
386
  </div>
387
387
  `)}
388
388
  </div>
389
389
  </div>
390
- `:m}_getPopperModifiers(){return[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8,fallbackPlacements:["top-start","right-start","left-start","bottom-end","top-end"]}}]}_getPopperReferenceElement(){var t,r;const e=(r=(t=this._formFieldElement)==null?void 0:t.shadowRoot)==null?void 0:r.querySelector(".formfield__container");return e!=null?e:this._referenceElement}_updatePopper(){const e=this._getPopperReferenceElement(),t=this._dropdownElement;if(!this.isOpen||!e||!t||!this.isConnected)return;const r=Math.round(e.getBoundingClientRect().width);if(t.style.width=`${Math.max(this._dropdownMinWidth,r)}px`,this._popperInstance){this._popperInstance.setOptions({placement:"bottom-start",strategy:"fixed",modifiers:this._getPopperModifiers()}),this._popperInstance.update();return}this._popperInstance=pr(e,t,{placement:"bottom-start",strategy:"fixed",modifiers:this._getPopperModifiers()})}_destroyPopper(){this._popperInstance&&(this._popperInstance.destroy(),this._popperInstance=void 0)}render(){const e=["combobox__trigger",`combobox__trigger--${this.size}`,this.disabled?"combobox__trigger--disabled":"",this.readOnly?"combobox__trigger--readonly":"",!this.readOnly&&!this.disabled&&this.isOpen?"combobox__trigger--open":""].filter(Boolean).join(" ");return u`
390
+ `}_getPopperModifiers(){return[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8,fallbackPlacements:["top-start","right-start","left-start","bottom-end","top-end"]}}]}_getPopperReferenceElement(){var t,r;const e=(r=(t=this._formFieldElement)==null?void 0:t.shadowRoot)==null?void 0:r.querySelector(".formfield__container");return e!=null?e:this._referenceElement}_updatePopper(){const e=this._getPopperReferenceElement(),t=this._dropdownElement;if(!this.isOpen||!e||!t||!this.isConnected)return;const r=Math.round(e.getBoundingClientRect().width);if(t.style.width=`${Math.max(this._dropdownMinWidth,r)}px`,this._popperInstance){this._popperInstance.setOptions({placement:"bottom-start",strategy:"fixed",modifiers:this._getPopperModifiers()}),this._popperInstance.update();return}this._popperInstance=ur(e,t,{placement:"bottom-start",strategy:"fixed",modifiers:this._getPopperModifiers()})}_destroyPopper(){this._popperInstance&&(this._popperInstance.destroy(),this._popperInstance=void 0)}_showPopover(){var t;const e=this._dropdownElement;(t=e==null?void 0:e.showPopover)==null||t.call(e)}_hidePopover(){var t;const e=this._dropdownElement;try{(t=e==null?void 0:e.hidePopover)==null||t.call(e)}catch(r){}}render(){const e=["combobox__trigger",`combobox__trigger--${this.size}`,this.disabled?"combobox__trigger--disabled":"",this.readOnly?"combobox__trigger--readonly":"",!this.readOnly&&!this.disabled&&this.isOpen?"combobox__trigger--open":""].filter(Boolean).join(" ");return u`
391
391
  <div class="combobox">
392
392
  <logosphere-formfield
393
393
  .label=${this.label}
@@ -406,7 +406,7 @@
406
406
  class="${e}"
407
407
  tabindex="${this.readOnly||this.filterable||this.disabled?-1:0}"
408
408
  @click=${this._onTriggerClick}
409
- @keydown=${this.filterable?m:this._handleKeydown}
409
+ @keydown=${this.filterable?b:this._handleKeydown}
410
410
  >
411
411
  ${this._renderTriggerContent()}
412
412
  </div>
@@ -421,10 +421,10 @@
421
421
  </span>
422
422
  </logosphere-formfield>
423
423
  </div>
424
- `}},n.Combobox.styles=[N`
425
- ${F(As)}
426
- `],R([c({type:String})],n.Combobox.prototype,"label",2),R([c({type:String})],n.Combobox.prototype,"helper",2),R([c({type:String})],n.Combobox.prototype,"error",2),R([c({type:String})],n.Combobox.prototype,"placeholder",2),R([c({type:Boolean})],n.Combobox.prototype,"required",2),R([c({type:Boolean})],n.Combobox.prototype,"disabled",2),R([c({type:Boolean})],n.Combobox.prototype,"readOnly",2),R([c({type:String})],n.Combobox.prototype,"variant",2),R([c({type:Boolean})],n.Combobox.prototype,"multiple",2),R([c({type:Boolean})],n.Combobox.prototype,"filterable",2),R([c({type:String})],n.Combobox.prototype,"optionLabel",2),R([c({type:String})],n.Combobox.prototype,"optionValue",2),R([c({type:String})],n.Combobox.prototype,"emptyMessage",2),R([c({type:Array})],n.Combobox.prototype,"items",2),R([c({type:String})],n.Combobox.prototype,"size",2),R([$()],n.Combobox.prototype,"selected",2),R([$()],n.Combobox.prototype,"inputValue",2),R([$()],n.Combobox.prototype,"isOpen",2),R([$()],n.Combobox.prototype,"focusedIndex",2),R([J(".combobox__wrapper")],n.Combobox.prototype,"_referenceElement",2),R([J("logosphere-formfield")],n.Combobox.prototype,"_formFieldElement",2),R([J("[data-combobox-popper]")],n.Combobox.prototype,"_dropdownElement",2),n.Combobox=R([U("logosphere-combobox")],n.Combobox);const Ps=":host{display:block;z-index:9999}.chatbot{font-family:var(--font-family-base)}.chatbot__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0003;z-index:var(--z-index-modal-backdrop)}.chatbot__launcher{position:fixed;z-index:var(--z-index-modal);display:flex;align-items:center;gap:var(--spacing-4);padding-left:var(--spacing-4);padding-right:var(--spacing-4);height:66px;color:#fff;border-radius:var(--radius-xl);cursor:pointer;box-shadow:var(--shadow-base);background-color:var(--color-body-bg);overflow:hidden;transition:box-shadow var(--transition-speed-fast) var(--transition-timing)}.chatbot__launcher:hover{box-shadow:var(--shadow-md)}.chatbot__launcher--draggable{cursor:move}.chatbot__launcher--hidden{visibility:hidden;width:72px;height:66px;justify-content:center;padding:0}.chatbot__launcher-icon{width:40px;height:34px;flex-shrink:0}.chatbot__launcher-text{display:flex;flex-direction:column}.chatbot__launcher-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;white-space:nowrap;color:var(--color-body-text)}.chatbot__launcher-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;white-space:nowrap;color:var(--color-tertiary)}.chatbot__window{position:fixed;z-index:var(--z-index-modal);display:flex;flex-direction:column;box-shadow:var(--shadow-xl);border-radius:var(--radius-md);overflow:hidden;background-color:var(--color-body-bg)}.chatbot__window--hidden{display:none}.chatbot__window--fullscreen{left:50px;right:50px;top:80px;bottom:80px;width:auto;height:auto}.chatbot__resize-top{position:absolute;top:0;left:0;right:0;height:8px;cursor:ns-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-top:hover{background-color:#0000000d}.chatbot__resize-side{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-side:hover{background-color:#0000000d}.chatbot__resize-side--left{left:0}.chatbot__resize-side--right{right:0}.chatbot__resize-corner{position:absolute;top:0;width:16px;height:16px;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-corner:hover{background-color:#0000001a}.chatbot__resize-corner--nwse{left:0;cursor:nwse-resize}.chatbot__resize-corner--nesw{right:0;cursor:nesw-resize}.chatbot__header{height:74px;display:flex;align-items:center;justify-content:space-between;padding-left:var(--spacing-5);padding-right:var(--spacing-4);gap:var(--spacing-4);flex-shrink:0;background-color:var(--color-body-bg);border-bottom:1px solid var(--color-border)}.chatbot__header-info{display:flex;align-items:center;gap:var(--spacing-4)}.chatbot__header-logo{width:50px;height:41px}.chatbot__header-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;color:var(--color-body-text)}.chatbot__header-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;color:var(--color-tertiary)}.chatbot__header-actions{display:flex;align-items:center;gap:var(--spacing-2)}.chatbot__body{flex:1;display:flex;flex-direction:column;background-color:var(--color-body-bg);position:relative;overflow:hidden}.chatbot__product{padding:var(--spacing-3);padding-bottom:0;flex-shrink:0;margin:0 var(--spacing-3)}.chatbot__messages{flex:1;display:flex;flex-direction:column;gap:var(--spacing-3);margin-top:var(--spacing-4);padding:var(--spacing-4);overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.chatbot__messages::-webkit-scrollbar{display:none}.chatbot__message{display:flex}.chatbot__message--user{justify-content:flex-end}.chatbot__message--assistant,.chatbot__message--system{justify-content:flex-start}.chatbot__bubble{position:relative;color:var(--color-body-text);max-width:85%;border-radius:var(--radius-md);padding:var(--spacing-4);font-size:var(--font-size-sm);line-height:20px;font-weight:var(--font-weight-medium)}.chatbot__bubble--user{background-color:var(--color-primary);color:#fff;border-bottom-right-radius:0;border-top-right-radius:var(--radius-xl);border-top-left-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.chatbot__bubble--user a{color:#ffffffe6}.chatbot__bubble--assistant,.chatbot__bubble--system{background-color:var(--color-tertiary-bg);border-bottom-left-radius:0;border-top-right-radius:var(--radius-xl);border-top-left-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-xl)}.chatbot__message-content p{margin:0}.chatbot__message-content ol{list-style-type:decimal;margin:0;padding-left:var(--spacing-5)}.chatbot__message-content ul{list-style-type:disc;margin:0;padding-left:var(--spacing-5)}.chatbot__message-content li>ol,.chatbot__message-content li>ul{margin-top:var(--spacing-1);margin-bottom:var(--spacing-1)}.chatbot__message-content ol ol{list-style-type:lower-alpha}.chatbot__message-content ol ol ol{list-style-type:lower-roman}.chatbot__message-content ul ul{list-style-type:circle}.chatbot__message-content ul ul ul{list-style-type:square}.chatbot__message-content li{padding-left:var(--spacing-1)}.chatbot__message-content a{color:var(--color-primary);text-decoration:underline;transition:color var(--transition-speed-fast) var(--transition-timing)}.chatbot__message-content a:hover{color:var(--color-primary-hover)}.chatbot__feedback{display:flex;align-items:center;gap:var(--spacing-2);padding-top:var(--spacing-2)}.chatbot__typing-wrapper{display:flex;justify-content:flex-start}.chatbot__typing{background-color:var(--color-tertiary-bg);padding:var(--spacing-3);border-radius:var(--radius-xl);border-bottom-left-radius:0;display:inline-flex;align-items:center;gap:2px}.chatbot__typing-dot{display:inline-block;width:6px;height:6px;background-color:var(--color-gray-300);border-radius:var(--radius-full);animation:chatbot-typing 1.4s infinite ease-in-out both;margin:0 2px}.chatbot__typing-dot:nth-child(1){animation-delay:-.32s}.chatbot__typing-dot:nth-child(2){animation-delay:-.16s}@keyframes chatbot-typing{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.chatbot__input-area{padding:var(--spacing-4);padding-top:var(--spacing-2);padding-bottom:var(--spacing-1);background-color:var(--color-body-bg)}.chatbot__input-wrapper{position:relative;display:flex;align-items:center;gap:var(--spacing-2);background-color:var(--color-tertiary-bg);border-radius:var(--radius-md);padding:var(--spacing-2);border:1px solid transparent;transition:background-color var(--transition-speed-fast) var(--transition-timing),border-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__input-wrapper:focus-within{background-color:var(--color-body-bg);border-color:var(--color-border)}.chatbot__input{flex:1;background:transparent;border:none;outline:none;font-family:var(--font-family-base);font-size:var(--font-size-sm);color:var(--color-body-text)}.chatbot__input::placeholder{color:var(--color-tertiary)}.chatbot__input:disabled{opacity:.5;cursor:not-allowed}.chatbot__footer{display:flex;align-items:center;justify-content:center;padding-bottom:var(--spacing-2)}.chatbot__footer-text{margin:0;padding:0;color:var(--color-secondary);font-size:var(--font-size-xs);font-family:var(--font-family-base)}.chatbot__product-selector{padding:var(--spacing-3) var(--spacing-3) 0;flex-shrink:0}.chatbot__product-input{display:block;width:100%;height:24px;padding-left:var(--spacing-1);border:1px solid var(--color-border);border-radius:var(--radius-md);background:transparent;color:var(--color-body-color);font-size:var(--font-size-md);outline:none}";var Ls=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,I=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ts(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ls(e,t,o),o};n.LogosphereChatBot=class extends T{constructor(){super(...arguments),this.returnUri="",this.questionPrompt="",this.minimizedIconOnly=!1,this.draggable=!1,this.resizable=!1,this.products=[],this.openInitially=!1,this.showFeedbackButtons=!1,this.open=!1,this.fullscreen=!1,this.messages=[],this.isLoading=!1,this.inputText="",this.selectedProductId="",this.windowWidth=440,this.windowHeight=Math.min(700,window.innerHeight-40),this.position={right:20,bottom:20},this.isDragging=!1,this.screenWidth=window.innerWidth,this.dragStartPos={x:0,y:0},this.initialPosition={right:0,bottom:0},this.isResizing=!1,this.resizeDirection="horizontal",this.resizeStartWidth=0,this.resizeStartHeight=0,this.onWindowResize=()=>{this.screenWidth=window.innerWidth;const e=window.innerHeight-40;this.windowHeight>e&&(this.windowHeight=e)},this.onToggle=()=>{this.open=!this.open,this.scrollToBottom()},this.onClose=()=>{this.open=!1,this.fullscreen=!1},this.onToggleFullscreen=()=>{this.fullscreen=!this.fullscreen},this.onMouseMove=e=>{var t;if(this.isDragging){const r=this.dragStartPos.x-e.clientX,o=this.dragStartPos.y-e.clientY,s=(t=this.shadowRoot)==null?void 0:t.querySelector(".chatbot__launcher"),a=s==null?void 0:s.getBoundingClientRect(),l=(a==null?void 0:a.width)||72,d=(a==null?void 0:a.height)||66;this.position={right:Math.max(0,Math.min(window.innerWidth-l,this.initialPosition.right+r)),bottom:Math.max(0,Math.min(window.innerHeight-d,this.initialPosition.bottom+o))}}else if(this.isResizing){const r=this.dragStartPos.x-e.clientX,o=this.dragStartPos.y-e.clientY;if(this.resizeDirection==="horizontal"||this.resizeDirection==="both"){const s=this.position.right<this.screenWidth/2;this.windowWidth=Math.max(300,this.resizeStartWidth+(s?r:-r))}(this.resizeDirection==="vertical"||this.resizeDirection==="both")&&(this.windowHeight=Math.max(400,this.resizeStartHeight+o))}},this.onMouseUp=e=>{this.isDragging?(this.isDragging=!1,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),Math.hypot(e.clientX-this.dragStartPos.x,e.clientY-this.dragStartPos.y)<5&&this.onToggle()):this.isResizing&&(this.isResizing=!1,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp))},this.handleKeyDown=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),this.sendMessage())},this.onInput=e=>{const t=e.target;this.inputText=t?t.value:e.detail},this.onCopyMessage=e=>{navigator.clipboard.writeText(e)}}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)}async firstUpdated(){this.selectedProductId=this._resolveInitialProduct(),this.open=this.openInitially,this.open&&await this.initConversation()}updated(e){e.has("products")&&this.handleProductUpdate(),e.has("messages")&&this.scrollToBottom(),e.has("open")&&this.open&&!this.conversationId&&this.initConversation()}_resolveInitialProduct(){if(!this.products.length)return"";const e=this.products.find(t=>t.selected);return e?e.id:this.products.length===1?this.products[0].id:""}handleProductUpdate(){if(!this.products.length)return;const e=this._resolveInitialProduct();this.products.some(r=>r.id===this.selectedProductId)||(this.selectedProductId=e,this.messages=[],this.conversationId=void 0,this.open&&this.initConversation()),requestAnimationFrame(()=>this.updateComboboxItems())}updateComboboxItems(){var o,s,a;const e=this.productEl;if(!e||((o=this.products)==null?void 0:o.length)<=1)return;const t=this.products.map(l=>({value:l.id,label:l.name}));e.items=t;const r=((s=e.selectedItems)==null?void 0:s.call(e))||[];if(r.length===0&&this.selectedProductId){const l=t.find(d=>d.value===this.selectedProductId);l&&e.setSelected&&e.setSelected([l])}else if(r.length>0){const l=(a=r[0])==null?void 0:a.value;!this.products.some(p=>p.id===l)&&e.setSelected&&e.setSelected([])}}async onProductChange(e){var r,o,s;const t=(s=(o=(r=e.detail)==null?void 0:r.selected)==null?void 0:o[0])==null?void 0:s.value;t&&t!==this.selectedProductId&&(this.selectedProductId=t)}onMouseDown(e){this.draggable&&(e.preventDefault(),this.isDragging=!0,this.dragStartPos={x:e.clientX,y:e.clientY},this.initialPosition=$t({},this.position),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))}startResize(e,t){this.resizable&&(e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.resizeDirection=t,this.dragStartPos={x:e.clientX,y:e.clientY},this.resizeStartWidth=this.windowWidth,this.resizeStartHeight=this.windowHeight,window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))}async ensureToken(e=!1){var s;const t="logosphere_chatbot_token";if(e&&(this.assertionToken=void 0,localStorage.removeItem(t)),!e){const a=localStorage.getItem(t);if(a){this.assertionToken=a;return}}const o=await(await fetch(`${this.returnUri}/api/chat/start`)).json();if(!o.Success||!((s=o.Data)!=null&&s.Token))throw new Error("Token alınamadı");this.assertionToken=o.Data.Token,localStorage.setItem(t,this.assertionToken)}async postChat(e){await this.ensureToken();const t=`${this.returnUri}/api/chat/completions`,r=()=>fetch(t,{method:"POST",headers:{"Content-Type":"application/json",client_assertion:this.assertionToken,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"},body:JSON.stringify(e)});let o=await r();if(o.status===401&&(await this.ensureToken(!0),o=await r()),!o.ok)throw new Error(`HTTP ${o.status}`);return o.json()}async initConversation(){var e,t,r;if(!this.isLoading){this.isLoading=!0;try{await this.ensureToken();const o=await this.postChat({ChatCompletionType:"NewConversation",Context:this.selectedProductId,QuestionPrompt:this.questionPrompt});this.conversationId=o.Data.ConversationId;const s=(r=(t=(e=o.Data.Choices)==null?void 0:e[0])==null?void 0:t.Message)==null?void 0:r.Content;s&&this.addMessage(s,"assistant")}catch(o){this.addMessage("Bir hata oluştu, lütfen tekrar deneyiniz.","system")}finally{this.isLoading=!1}}}async sendMessage(){var t,r,o,s;const e=this.inputText.trim();if(!(!e||!this.conversationId||this.isLoading)){if(!this.selectedProductId){this.addMessage("Lütfen önce bir ürün seçiniz.","system");return}this.addMessage(e,"user"),this.inputText="",this.isLoading=!0;try{const l=(s=(o=(r=(t=(await this.postChat({ChatCompletionType:"ConversationUpdate",Content:e,Context:this.selectedProductId,ConversationId:this.conversationId,QuestionPrompt:this.questionPrompt})).Data)==null?void 0:t.Choices)==null?void 0:r[0])==null?void 0:o.Message)==null?void 0:s.Content;this.addMessage(l||"Cevap alınamadı.","assistant")}catch(a){this.addMessage("Bağlantı hatası.","system")}finally{this.isLoading=!1}}}addMessage(e,t){this.messages=[...this.messages,{content:e,role:t,timestamp:Date.now()}]}scrollToBottom(){setTimeout(()=>{this.chatContainer&&(this.chatContainer.scrollTop=this.chatContainer.scrollHeight)},0)}formatContent(e){if(!e)return"";const r=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").split(`
427
- `);let o="";const s=[];let a=!1;const l=()=>{a&&(o+="</li>",a=!1)},d=h=>{for(;s.length>0&&s[s.length-1].indent>=h;)l(),o+=`</${s.pop().type}>`,s.length>0&&(a=!0)},p=()=>d(-1);for(const h of r){const f=h.match(/^(\s*)\d+\.\s+(.*)/),b=h.match(/^(\s*)[-*]\s+(.*)/);if(f||b){const v=(f?f[1]:b[1]).length,C=f?"ol":"ul",k=f?f[2]:b[2];if(s.length===0)o+=`<${C}>`,s.push({type:C,indent:v});else{const g=s[s.length-1];v>g.indent?(o+=`<${C}>`,s.push({type:C,indent:v})):v===g.indent?l():(d(v+1),s.length>0&&s[s.length-1].indent===v?l():(p(),o+=`<${C}>`,s.push({type:C,indent:v})))}o+=`<li>${k}`,a=!0}else h.trim()===""?s.length===0&&(o+="<br>"):(p(),o+=`<p>${h}</p>`)}return p(),o.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}render(){const e=this.position.right<this.screenWidth/2;return u`
424
+ `}},a.Combobox.styles=[N`
425
+ ${F(Ls)}
426
+ `],R([c({type:String})],a.Combobox.prototype,"label",2),R([c({type:String})],a.Combobox.prototype,"helper",2),R([c({type:String})],a.Combobox.prototype,"error",2),R([c({type:String})],a.Combobox.prototype,"placeholder",2),R([c({type:Boolean})],a.Combobox.prototype,"required",2),R([c({type:Boolean})],a.Combobox.prototype,"disabled",2),R([c({type:Boolean})],a.Combobox.prototype,"readOnly",2),R([c({type:String})],a.Combobox.prototype,"variant",2),R([c({type:Boolean})],a.Combobox.prototype,"multiple",2),R([c({type:Boolean})],a.Combobox.prototype,"filterable",2),R([c({type:String})],a.Combobox.prototype,"optionLabel",2),R([c({type:String})],a.Combobox.prototype,"optionValue",2),R([c({type:String})],a.Combobox.prototype,"emptyMessage",2),R([c({type:Array})],a.Combobox.prototype,"items",2),R([c({type:String})],a.Combobox.prototype,"size",2),R([$()],a.Combobox.prototype,"selected",2),R([$()],a.Combobox.prototype,"inputValue",2),R([$()],a.Combobox.prototype,"isOpen",2),R([$()],a.Combobox.prototype,"focusedIndex",2),R([J(".combobox__wrapper")],a.Combobox.prototype,"_referenceElement",2),R([J("logosphere-formfield")],a.Combobox.prototype,"_formFieldElement",2),R([J("[data-combobox-popper]")],a.Combobox.prototype,"_dropdownElement",2),a.Combobox=R([U("logosphere-combobox")],a.Combobox);const Is=":host{display:block;z-index:9999}.chatbot{font-family:var(--font-family-base)}.chatbot__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0003;z-index:var(--z-index-modal-backdrop)}.chatbot__launcher{position:fixed;z-index:var(--z-index-modal);display:flex;align-items:center;gap:var(--spacing-4);padding-left:var(--spacing-4);padding-right:var(--spacing-4);height:66px;color:#fff;border-radius:var(--radius-xl);cursor:pointer;box-shadow:var(--shadow-base);background-color:var(--color-body-bg);overflow:hidden;transition:box-shadow var(--transition-speed-fast) var(--transition-timing)}.chatbot__launcher:hover{box-shadow:var(--shadow-md)}.chatbot__launcher--draggable{cursor:move}.chatbot__launcher--hidden{visibility:hidden;width:72px;height:66px;justify-content:center;padding:0}.chatbot__launcher-icon{width:40px;height:34px;flex-shrink:0}.chatbot__launcher-text{display:flex;flex-direction:column}.chatbot__launcher-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;white-space:nowrap;color:var(--color-body-text)}.chatbot__launcher-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;white-space:nowrap;color:var(--color-tertiary)}.chatbot__window{position:fixed;z-index:var(--z-index-modal);display:flex;flex-direction:column;box-shadow:var(--shadow-xl);border-radius:var(--radius-md);overflow:hidden;background-color:var(--color-body-bg)}.chatbot__window--hidden{display:none}.chatbot__window--fullscreen{left:50px;right:50px;top:80px;bottom:80px;width:auto;height:auto}.chatbot__resize-top{position:absolute;top:0;left:0;right:0;height:8px;cursor:ns-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-top:hover{background-color:#0000000d}.chatbot__resize-side{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-side:hover{background-color:#0000000d}.chatbot__resize-side--left{left:0}.chatbot__resize-side--right{right:0}.chatbot__resize-corner{position:absolute;top:0;width:16px;height:16px;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-corner:hover{background-color:#0000001a}.chatbot__resize-corner--nwse{left:0;cursor:nwse-resize}.chatbot__resize-corner--nesw{right:0;cursor:nesw-resize}.chatbot__header{height:74px;display:flex;align-items:center;justify-content:space-between;padding-left:var(--spacing-5);padding-right:var(--spacing-4);gap:var(--spacing-4);flex-shrink:0;background-color:var(--color-body-bg);border-bottom:1px solid var(--color-border)}.chatbot__header-info{display:flex;align-items:center;gap:var(--spacing-4)}.chatbot__header-logo{width:50px;height:41px}.chatbot__header-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;color:var(--color-body-text)}.chatbot__header-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;color:var(--color-tertiary)}.chatbot__header-actions{display:flex;align-items:center;gap:var(--spacing-2)}.chatbot__body{flex:1;display:flex;flex-direction:column;background-color:var(--color-body-bg);position:relative;overflow:hidden}.chatbot__product{padding:var(--spacing-3);padding-bottom:0;flex-shrink:0;margin:0 var(--spacing-3)}.chatbot__messages{flex:1;display:flex;flex-direction:column;gap:var(--spacing-3);margin-top:var(--spacing-4);padding:var(--spacing-4);overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.chatbot__messages::-webkit-scrollbar{display:none}.chatbot__message{display:flex}.chatbot__message--user{justify-content:flex-end}.chatbot__message--assistant,.chatbot__message--system{justify-content:flex-start}.chatbot__bubble{position:relative;color:var(--color-body-text);max-width:85%;border-radius:var(--radius-md);padding:var(--spacing-4);font-size:var(--font-size-sm);line-height:20px;font-weight:var(--font-weight-medium)}.chatbot__bubble--user{background-color:var(--color-primary);color:#fff;border-bottom-right-radius:0;border-top-right-radius:var(--radius-xl);border-top-left-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.chatbot__bubble--user a{color:#ffffffe6}.chatbot__bubble--assistant,.chatbot__bubble--system{background-color:var(--color-tertiary-bg);border-bottom-left-radius:0;border-top-right-radius:var(--radius-xl);border-top-left-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-xl)}.chatbot__message-content p{margin:0}.chatbot__message-content ol{list-style-type:decimal;margin:0;padding-left:var(--spacing-5)}.chatbot__message-content ul{list-style-type:disc;margin:0;padding-left:var(--spacing-5)}.chatbot__message-content li>ol,.chatbot__message-content li>ul{margin-top:var(--spacing-1);margin-bottom:var(--spacing-1)}.chatbot__message-content ol ol{list-style-type:lower-alpha}.chatbot__message-content ol ol ol{list-style-type:lower-roman}.chatbot__message-content ul ul{list-style-type:circle}.chatbot__message-content ul ul ul{list-style-type:square}.chatbot__message-content li{padding-left:var(--spacing-1)}.chatbot__message-content a{color:var(--color-primary);text-decoration:underline;transition:color var(--transition-speed-fast) var(--transition-timing)}.chatbot__message-content a:hover{color:var(--color-primary-hover)}.chatbot__feedback{display:flex;align-items:center;gap:var(--spacing-2);padding-top:var(--spacing-2)}.chatbot__typing-wrapper{display:flex;justify-content:flex-start}.chatbot__typing{background-color:var(--color-tertiary-bg);padding:var(--spacing-3);border-radius:var(--radius-xl);border-bottom-left-radius:0;display:inline-flex;align-items:center;gap:2px}.chatbot__typing-dot{display:inline-block;width:6px;height:6px;background-color:var(--color-gray-300);border-radius:var(--radius-full);animation:chatbot-typing 1.4s infinite ease-in-out both;margin:0 2px}.chatbot__typing-dot:nth-child(1){animation-delay:-.32s}.chatbot__typing-dot:nth-child(2){animation-delay:-.16s}@keyframes chatbot-typing{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.chatbot__input-area{padding:var(--spacing-4);padding-top:var(--spacing-2);padding-bottom:var(--spacing-1);background-color:var(--color-body-bg)}.chatbot__input-wrapper{position:relative;display:flex;align-items:center;gap:var(--spacing-2);background-color:var(--color-tertiary-bg);border-radius:var(--radius-md);padding:var(--spacing-2);border:1px solid transparent;transition:background-color var(--transition-speed-fast) var(--transition-timing),border-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__input-wrapper:focus-within{background-color:var(--color-body-bg);border-color:var(--color-border)}.chatbot__input{flex:1;background:transparent;border:none;outline:none;font-family:var(--font-family-base);font-size:var(--font-size-sm);color:var(--color-body-text)}.chatbot__input::placeholder{color:var(--color-tertiary)}.chatbot__input:disabled{opacity:.5;cursor:not-allowed}.chatbot__footer{display:flex;align-items:center;justify-content:center;padding-bottom:var(--spacing-2)}.chatbot__footer-text{margin:0;padding:0;color:var(--color-secondary);font-size:var(--font-size-xs);font-family:var(--font-family-base)}.chatbot__product-selector{padding:var(--spacing-3) var(--spacing-3) 0;flex-shrink:0}.chatbot__product-input{display:block;width:100%;height:24px;padding-left:var(--spacing-1);border:1px solid var(--color-border);border-radius:var(--radius-md);background:transparent;color:var(--color-body-color);font-size:var(--font-size-md);outline:none}";var Ys=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,Y=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rs(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&Ys(e,t,o),o};a.LogosphereChatBot=class extends T{constructor(){super(...arguments),this.returnUri="",this.questionPrompt="",this.minimizedIconOnly=!1,this.draggable=!1,this.resizable=!1,this.products=[],this.openInitially=!1,this.showFeedbackButtons=!1,this.open=!1,this.fullscreen=!1,this.messages=[],this.isLoading=!1,this.inputText="",this.selectedProductId="",this.windowWidth=440,this.windowHeight=Math.min(700,window.innerHeight-40),this.position={right:20,bottom:20},this.isDragging=!1,this.screenWidth=window.innerWidth,this.dragStartPos={x:0,y:0},this.initialPosition={right:0,bottom:0},this.isResizing=!1,this.resizeDirection="horizontal",this.resizeStartWidth=0,this.resizeStartHeight=0,this.onWindowResize=()=>{this.screenWidth=window.innerWidth;const e=window.innerHeight-40;this.windowHeight>e&&(this.windowHeight=e)},this.onToggle=()=>{this.open=!this.open,this.scrollToBottom()},this.onClose=()=>{this.open=!1,this.fullscreen=!1},this.onToggleFullscreen=()=>{this.fullscreen=!this.fullscreen},this.onMouseMove=e=>{var t;if(this.isDragging){const r=this.dragStartPos.x-e.clientX,o=this.dragStartPos.y-e.clientY,s=(t=this.shadowRoot)==null?void 0:t.querySelector(".chatbot__launcher"),n=s==null?void 0:s.getBoundingClientRect(),l=(n==null?void 0:n.width)||72,d=(n==null?void 0:n.height)||66;this.position={right:Math.max(0,Math.min(window.innerWidth-l,this.initialPosition.right+r)),bottom:Math.max(0,Math.min(window.innerHeight-d,this.initialPosition.bottom+o))}}else if(this.isResizing){const r=this.dragStartPos.x-e.clientX,o=this.dragStartPos.y-e.clientY;if(this.resizeDirection==="horizontal"||this.resizeDirection==="both"){const s=this.position.right<this.screenWidth/2;this.windowWidth=Math.max(300,this.resizeStartWidth+(s?r:-r))}(this.resizeDirection==="vertical"||this.resizeDirection==="both")&&(this.windowHeight=Math.max(400,this.resizeStartHeight+o))}},this.onMouseUp=e=>{this.isDragging?(this.isDragging=!1,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),Math.hypot(e.clientX-this.dragStartPos.x,e.clientY-this.dragStartPos.y)<5&&this.onToggle()):this.isResizing&&(this.isResizing=!1,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp))},this.handleKeyDown=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),this.sendMessage())},this.onInput=e=>{const t=e.target;this.inputText=t?t.value:e.detail},this.onCopyMessage=e=>{navigator.clipboard.writeText(e)}}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)}async firstUpdated(){this.selectedProductId=this._resolveInitialProduct(),this.open=this.openInitially,this.open&&await this.initConversation()}updated(e){e.has("products")&&this.handleProductUpdate(),e.has("messages")&&this.scrollToBottom(),e.has("open")&&this.open&&!this.conversationId&&this.initConversation()}_resolveInitialProduct(){if(!this.products.length)return"";const e=this.products.find(t=>t.selected);return e?e.id:this.products.length===1?this.products[0].id:""}handleProductUpdate(){if(!this.products.length)return;const e=this.products.find(r=>r.selected),t=this.products.some(r=>r.id===this.selectedProductId);e&&e.id!==this.selectedProductId?(this.selectedProductId=e.id,this.messages=[],this.conversationId=void 0,this.open&&this.initConversation()):t||(this.selectedProductId=this._resolveInitialProduct(),this.messages=[],this.conversationId=void 0,this.open&&this.initConversation()),requestAnimationFrame(()=>this.updateComboboxItems())}updateComboboxItems(){var o,s,n;const e=this.productEl;if(!e||((o=this.products)==null?void 0:o.length)<=1)return;const t=this.products.map(l=>({value:l.id,label:l.name}));if(e.items=t,((n=(((s=e.selectedItems)==null?void 0:s.call(e))||[])[0])==null?void 0:n.value)!==this.selectedProductId){const l=t.find(d=>d.value===this.selectedProductId);e.setSelected&&e.setSelected(l?[l]:[])}}async onProductChange(e){var r,o,s;const t=(s=(o=(r=e.detail)==null?void 0:r.selected)==null?void 0:o[0])==null?void 0:s.value;t&&t!==this.selectedProductId&&(this.selectedProductId=t)}onMouseDown(e){this.draggable&&(e.preventDefault(),this.isDragging=!0,this.dragStartPos={x:e.clientX,y:e.clientY},this.initialPosition=$t({},this.position),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))}startResize(e,t){this.resizable&&(e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.resizeDirection=t,this.dragStartPos={x:e.clientX,y:e.clientY},this.resizeStartWidth=this.windowWidth,this.resizeStartHeight=this.windowHeight,window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))}async ensureToken(e=!1){var s;const t="logosphere_chatbot_token";if(e&&(this.assertionToken=void 0,localStorage.removeItem(t)),!e){const n=localStorage.getItem(t);if(n){this.assertionToken=n;return}}const o=await(await fetch(`${this.returnUri}/api/chat/start`)).json();if(!o.Success||!((s=o.Data)!=null&&s.Token))throw new Error("Token alınamadı");this.assertionToken=o.Data.Token,localStorage.setItem(t,this.assertionToken)}async postChat(e){await this.ensureToken();const t=`${this.returnUri}/api/chat/completions`,r=()=>fetch(t,{method:"POST",headers:{"Content-Type":"application/json",client_assertion:this.assertionToken,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"},body:JSON.stringify(e)});let o=await r();if(o.status===401&&(await this.ensureToken(!0),o=await r()),!o.ok)throw new Error(`HTTP ${o.status}`);return o.json()}async initConversation(){var e,t,r;if(!this.isLoading){this.isLoading=!0;try{await this.ensureToken();const o=await this.postChat({ChatCompletionType:"NewConversation",Context:this.selectedProductId,QuestionPrompt:this.questionPrompt});this.conversationId=o.Data.ConversationId;const s=(r=(t=(e=o.Data.Choices)==null?void 0:e[0])==null?void 0:t.Message)==null?void 0:r.Content;s&&this.addMessage(s,"assistant")}catch(o){this.addMessage("Bir hata oluştu, lütfen tekrar deneyiniz.","system")}finally{this.isLoading=!1}}}async sendMessage(){var t,r,o,s;const e=this.inputText.trim();if(!(!e||!this.conversationId||this.isLoading)){if(!this.selectedProductId){this.addMessage("Lütfen önce bir ürün seçiniz.","system");return}this.addMessage(e,"user"),this.inputText="",this.isLoading=!0;try{const l=(s=(o=(r=(t=(await this.postChat({ChatCompletionType:"ConversationUpdate",Content:e,Context:this.selectedProductId,ConversationId:this.conversationId,QuestionPrompt:this.questionPrompt})).Data)==null?void 0:t.Choices)==null?void 0:r[0])==null?void 0:o.Message)==null?void 0:s.Content;this.addMessage(l||"Cevap alınamadı.","assistant")}catch(n){this.addMessage("Bağlantı hatası.","system")}finally{this.isLoading=!1}}}addMessage(e,t){this.messages=[...this.messages,{content:e,role:t,timestamp:Date.now()}]}scrollToBottom(){setTimeout(()=>{this.chatContainer&&(this.chatContainer.scrollTop=this.chatContainer.scrollHeight)},0)}formatContent(e){if(!e)return"";const r=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").split(`
427
+ `);let o="";const s=[];let n=!1;const l=()=>{n&&(o+="</li>",n=!1)},d=h=>{for(;s.length>0&&s[s.length-1].indent>=h;)l(),o+=`</${s.pop().type}>`,s.length>0&&(n=!0)},p=()=>d(-1);for(const h of r){const f=h.match(/^(\s*)\d+\.\s+(.*)/),m=h.match(/^(\s*)[-*]\s+(.*)/);if(f||m){const v=(f?f[1]:m[1]).length,C=f?"ol":"ul",k=f?f[2]:m[2];if(s.length===0)o+=`<${C}>`,s.push({type:C,indent:v});else{const g=s[s.length-1];v>g.indent?(o+=`<${C}>`,s.push({type:C,indent:v})):v===g.indent?l():(d(v+1),s.length>0&&s[s.length-1].indent===v?l():(p(),o+=`<${C}>`,s.push({type:C,indent:v})))}o+=`<li>${k}`,n=!0}else h.trim()===""?s.length===0&&(o+="<br>"):(p(),o+=`<p>${h}</p>`)}return p(),o.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}render(){const e=this.position.right<this.screenWidth/2;return u`
428
428
  <div class="chatbot">
429
429
  ${this.renderOverlay()}
430
430
  ${this.renderLauncher()}
@@ -438,7 +438,7 @@
438
438
  @click=${this.draggable?null:this.onToggle}
439
439
  aria-expanded=${this.open?"true":"false"}
440
440
  >
441
- <img class="chatbot__launcher-icon" src="${n.LogosphereChatBot.ICONS.launcher}" alt="chatbot" />
441
+ <img class="chatbot__launcher-icon" src="${a.LogosphereChatBot.ICONS.launcher}" alt="chatbot" />
442
442
  ${!this.open&&!this.minimizedIconOnly?u`
443
443
  <div class="chatbot__launcher-text">
444
444
  <p class="chatbot__launcher-title">Logo</p>
@@ -466,7 +466,7 @@
466
466
  `}renderHeader(){return u`
467
467
  <div class="chatbot__header">
468
468
  <div class="chatbot__header-info">
469
- <img class="chatbot__header-logo" alt="logo" src="${n.LogosphereChatBot.ICONS.launcher}" />
469
+ <img class="chatbot__header-logo" alt="logo" src="${a.LogosphereChatBot.ICONS.launcher}" />
470
470
  <div>
471
471
  <p class="chatbot__header-title">Logo</p>
472
472
  <p class="chatbot__header-subtitle">Dijital Danışman</p>
@@ -583,9 +583,9 @@
583
583
  <div class="chatbot__footer">
584
584
  <p class="chatbot__footer-text">İçerik Yapay Zeka ile Üretilmiştir</p>
585
585
  </div>
586
- `}},n.LogosphereChatBot.styles=[N`${F(Ps)}`],n.LogosphereChatBot.ICONS={launcher:"data:image/svg+xml,%3Csvg%20width%3D%2251%22%20height%3D%2242%22%20viewBox%3D%220%200%2051%2042%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M38.457%200C40.0338%200%2041.542%200.293293%2042.9302%200.8283L49.15%206.07675C50.2611%207.93912%2050.8994%2010.1162%2050.8994%2012.4424V23.084C50.8994%2024.4858%2050.6676%2025.8334%2050.2402%2027.0907L43.1534%2034.6096C41.7043%2035.2006%2040.1187%2035.5264%2038.457%2035.5264H30.7605L38.5805%2027.2296C40.814%2027.1643%2042.6045%2025.3332%2042.6045%2023.084V12.4424C42.6045%2010.1518%2040.7476%208.29492%2038.457%208.29492H12.4424C10.1518%208.29492%208.29492%2010.1518%208.29492%2012.4424V23.084C8.29492%2025.3746%2010.1518%2027.2314%2012.4424%2027.2314H33.5078L20.4487%2041.0866C17.7992%2042.5379%2014.3381%2040.2741%2014.7842%2036.7803C14.8402%2036.3421%2014.9629%2035.9194%2015.1416%2035.5264H12.4424C10.9217%2035.5264%209.46472%2035.2536%208.11774%2034.7542L0.610679%2026.945C0.214298%2025.7295%200%2024.4318%200%2023.084V12.4424C0%2010.8011%200.317794%209.23402%200.895207%207.79935L7.12424%201.19058C8.73679%200.427072%2010.5397%200%2012.4424%200H38.457ZM23.1357%2017.7881C23.1357%2015.4815%2021.2656%2013.6113%2018.959%2013.6113C16.6525%2013.6114%2014.7822%2015.4815%2014.7822%2017.7881C14.7824%2020.0945%2016.6526%2021.9638%2018.959%2021.9639C21.2655%2021.9639%2023.1356%2020.0945%2023.1357%2017.7881ZM36.2344%2017.7881C36.2344%2015.4815%2034.3642%2013.6113%2032.0576%2013.6113C29.7511%2013.6114%2027.8809%2015.4815%2027.8809%2017.7881C27.881%2020.0945%2029.7512%2021.9638%2032.0576%2021.9639C34.3641%2021.9639%2036.2342%2020.0945%2036.2344%2017.7881Z%22%20fill%3D%22url(%23paint0_linear_97_4585)%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_97_4585%22%20x1%3D%2231.662%22%20y1%3D%224.88016%22%20x2%3D%2214.4119%22%20y2%3D%2237.9167%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23F22727%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23CA0D0D%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"},I([c({type:String,attribute:"return-uri"})],n.LogosphereChatBot.prototype,"returnUri",2),I([c({type:String,attribute:"question-prompt"})],n.LogosphereChatBot.prototype,"questionPrompt",2),I([c({type:Boolean,attribute:"minimized-icon-only"})],n.LogosphereChatBot.prototype,"minimizedIconOnly",2),I([c({type:Boolean,attribute:"draggable"})],n.LogosphereChatBot.prototype,"draggable",2),I([c({type:Boolean,attribute:"resizable"})],n.LogosphereChatBot.prototype,"resizable",2),I([c({type:Array,hasChanged:(i,e)=>i===e?!1:!e||!i||i.length!==e.length?!0:JSON.stringify(i)!==JSON.stringify(e)}),c({type:Array})],n.LogosphereChatBot.prototype,"products",2),I([c({type:Boolean,attribute:"open-initially"})],n.LogosphereChatBot.prototype,"openInitially",2),I([c({type:Boolean,attribute:"show-feedback-buttons"})],n.LogosphereChatBot.prototype,"showFeedbackButtons",2),I([$()],n.LogosphereChatBot.prototype,"open",2),I([$()],n.LogosphereChatBot.prototype,"fullscreen",2),I([$()],n.LogosphereChatBot.prototype,"messages",2),I([$()],n.LogosphereChatBot.prototype,"conversationId",2),I([$()],n.LogosphereChatBot.prototype,"assertionToken",2),I([$()],n.LogosphereChatBot.prototype,"isLoading",2),I([$()],n.LogosphereChatBot.prototype,"inputText",2),I([$()],n.LogosphereChatBot.prototype,"selectedProductId",2),I([$()],n.LogosphereChatBot.prototype,"windowWidth",2),I([$()],n.LogosphereChatBot.prototype,"windowHeight",2),I([$()],n.LogosphereChatBot.prototype,"position",2),I([$()],n.LogosphereChatBot.prototype,"isDragging",2),I([$()],n.LogosphereChatBot.prototype,"screenWidth",2),I([J("#chat-container")],n.LogosphereChatBot.prototype,"chatContainer",2),I([J("#product")],n.LogosphereChatBot.prototype,"productEl",2),n.LogosphereChatBot=I([U("logosphere-chatbot")],n.LogosphereChatBot);const Bs=':host{display:block;font-family:var(--font-family-base)}.dp__calendar{display:block}.dp__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-3)}.dp__nav-btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--spacing-2);border:none;background:none;border-radius:var(--radius-base);cursor:pointer;color:var(--color-body-text);transition:background-color var(--transition-speed-fast) var(--transition-timing)}.dp__nav-btn:hover{background-color:var(--color-tertiary-bg)}.dp__header-label{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);letter-spacing:-.025em;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--color-body-text);transition:color var(--transition-speed-fast) var(--transition-timing)}.dp__header-label:hover{color:var(--color-primary)}.dp__weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:var(--font-size-sm);color:var(--color-tertiary);margin-bottom:var(--spacing-1);-webkit-user-select:none;user-select:none}.dp__weekday{padding:var(--spacing-1) 0}.dp__grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:2px;outline:none}.dp__day{position:relative;height:36px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding:0;min-width:0;border-radius:0;color:var(--color-body-text);font-family:var(--font-family-base)}.dp__day-num{position:relative;z-index:1;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-full);font-size:var(--font-size-sm);flex-shrink:0;transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__day--range-start:before,.dp__day--range-end:before,.dp__day--range-between:before{content:"";position:absolute;top:2px;bottom:2px;background-color:color-mix(in srgb,var(--color-primary) 15%,transparent);z-index:0;pointer-events:none}.dp__day--range-start:before{left:50%;right:0}.dp__day--range-end:before{left:0;right:50%}.dp__day--range-between:before{left:0;right:0}.dp__day--out-of-month{opacity:.4}.dp__day--focused .dp__day-num{background-color:var(--color-tertiary-bg)}.dp__day--disabled{cursor:not-allowed;pointer-events:none}.dp__day--disabled .dp__day-num{color:var(--color-gray-300);background-color:var(--color-gray-50)}.dp__day--disabled-weekday{cursor:not-allowed;pointer-events:none}.dp__day--disabled-weekday .dp__day-num{color:var(--color-gray-300)}.dp__day--today .dp__day-num{background-color:var(--color-gray-200);color:var(--color-gray-800)}.dp__day--selected .dp__day-num{background-color:var(--color-primary);color:#fff}.dp__day--default:hover .dp__day-num{background-color:var(--color-tertiary-bg)}.dp__day--range-pending .dp__day-num,.dp__day--range-start .dp__day-num,.dp__day--range-end .dp__day-num{background-color:var(--color-primary);color:#fff}.dp__day--range-between .dp__day-num{color:var(--color-primary);background:transparent}.dp__month-grid,.dp__year-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:10px;margin-top:var(--spacing-3)}.dp__month-btn,.dp__year-btn{height:48px;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--radius-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);font-family:var(--font-family-base);cursor:pointer;background:none;color:var(--color-body-text);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__month-btn:hover:not(.dp__month-btn--selected),.dp__year-btn:hover:not(.dp__year-btn--selected){background-color:var(--color-tertiary-bg)}.dp__month-btn--selected,.dp__year-btn--selected{background-color:var(--color-primary);color:#fff}.dp__month-btn--current:not(.dp__month-btn--selected),.dp__year-btn--current:not(.dp__year-btn--selected){background-color:var(--color-gray-200);color:var(--color-gray-800)}.dp__footer{display:flex;align-items:center;justify-content:space-evenly;margin-top:var(--spacing-4);padding-bottom:var(--spacing-3)}.dp__footer-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-1) var(--spacing-2);font-size:var(--font-size-sm);color:var(--color-tertiary);border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;font-family:var(--font-family-base);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__footer-btn:hover{background-color:var(--color-tertiary-bg);color:var(--color-body-text)}';function _t(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ot={exports:{}},Is=Ot.exports,Jr;function Ys(){return Jr||(Jr=1,(function(i,e){(function(t,r){i.exports=r()})(Is,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,s){var a=o.prototype,l=a.format;s.en.formats=t,a.format=function(d){d===void 0&&(d="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,h=(function(f,b){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(v,C,k){var g=k&&k.toUpperCase();return C||b[k]||t[k]||b[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(_,w,y){return w||y.slice(1)}))}))})(d,p===void 0?{}:p);return l.call(this,h)}}}))})(Ot)),Ot.exports}var Rs=Ys();const Hs=_t(Rs);var Pt={exports:{}},js=Pt.exports,Qr;function Fs(){return Qr||(Qr=1,(function(i,e){(function(t,r){i.exports=r()})(js,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,d={},p=function(g){return(g=+g)+(g>68?1900:2e3)},h=function(g){return function(_){this[g]=+_}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(_){if(!_||_==="Z")return 0;var w=_.match(/([+-]|\d\d)/g),y=60*w[1]+(+w[2]||0);return y===0?0:w[0]==="+"?-y:y})(g)}],b=function(g){var _=d[g];return _&&(_.indexOf?_:_.s.concat(_.f))},v=function(g,_){var w,y=d.meridiem;if(y){for(var x=1;x<=24;x+=1)if(g.indexOf(y(x,0,_))>-1){w=x>12;break}}else w=g===(_?"pm":"PM");return w},C={A:[l,function(g){this.afternoon=v(g,!1)}],a:[l,function(g){this.afternoon=v(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[s,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[a,h("seconds")],ss:[a,h("seconds")],m:[a,h("minutes")],mm:[a,h("minutes")],H:[a,h("hours")],h:[a,h("hours")],HH:[a,h("hours")],hh:[a,h("hours")],D:[a,h("day")],DD:[s,h("day")],Do:[l,function(g){var _=d.ordinal,w=g.match(/\d+/);if(this.day=w[0],_)for(var y=1;y<=31;y+=1)_(y).replace(/\[|\]/g,"")===g&&(this.day=y)}],w:[a,h("week")],ww:[s,h("week")],M:[a,h("month")],MM:[s,h("month")],MMM:[l,function(g){var _=b("months"),w=(b("monthsShort")||_.map((function(y){return y.slice(0,3)}))).indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[l,function(g){var _=b("months").indexOf(g)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,h("year")],YY:[s,function(g){this.year=p(g)}],YYYY:[/\d{4}/,h("year")],Z:f,ZZ:f};function k(g){var _,w;_=g,w=d&&d.formats;for(var y=(g=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(P,B,j){var L=j&&j.toUpperCase();return B||w[j]||t[j]||w[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(W,Z,V){return Z||V.slice(1)}))}))).match(r),x=y.length,E=0;E<x;E+=1){var S=y[E],D=C[S],O=D&&D[0],z=D&&D[1];y[E]=z?{regex:O,parser:z}:S.replace(/^\[|\]$/g,"")}return function(P){for(var B={},j=0,L=0;j<x;j+=1){var W=y[j];if(typeof W=="string")L+=W.length;else{var Z=W.regex,V=W.parser,K=P.slice(L),ce=Z.exec(K)[0];V.call(B,ce),P=P.replace(ce,"")}}return(function(ee){var me=ee.afternoon;if(me!==void 0){var G=ee.hours;me?G<12&&(ee.hours+=12):G===12&&(ee.hours=0),delete ee.afternoon}})(B),B}}return function(g,_,w){w.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(p=g.parseTwoDigitYear);var y=_.prototype,x=y.parse;y.parse=function(E){var S=E.date,D=E.utc,O=E.args;this.$u=D;var z=O[1];if(typeof z=="string"){var P=O[2]===!0,B=O[3]===!0,j=P||B,L=O[2];B&&(L=O[2]),d=this.$locale(),!P&&L&&(d=w.Ls[L]),this.$d=(function(K,ce,ee,me){try{if(["x","X"].indexOf(ce)>-1)return new Date((ce==="X"?1e3:1)*K);var G=k(ce)(K),ve=G.year,_e=G.month,De=G.day,fe=G.hours,Re=G.minutes,Ge=G.seconds,ye=G.milliseconds,Xe=G.zone,Rt=G.week,He=new Date,yt=De||(ve||_e?1:He.getDate()),Je=ve||He.getFullYear(),Qe=0;ve&&!_e||(Qe=_e>0?_e-1:He.getMonth());var et,tt=fe||0,rt=Re||0,wt=Ge||0,xt=ye||0;return Xe?new Date(Date.UTC(Je,Qe,yt,tt,rt,wt,xt+60*Xe.offset*1e3)):ee?new Date(Date.UTC(Je,Qe,yt,tt,rt,wt,xt)):(et=new Date(Je,Qe,yt,tt,rt,wt,xt),Rt&&(et=me(et).week(Rt).toDate()),et)}catch(Ae){return new Date("")}})(S,z,D,w),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),j&&S!=this.format(z)&&(this.$d=new Date("")),d={}}else if(z instanceof Array)for(var W=z.length,Z=1;Z<=W;Z+=1){O[1]=z[Z-1];var V=w.apply(this,O);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}Z===W&&(this.$d=new Date(""))}else x.call(this,E)}}}))})(Pt)),Pt.exports}var Ns=Fs();const Us=_t(Ns);var Lt={exports:{}},Vs=Lt.exports,eo;function qs(){return eo||(eo=1,(function(i,e){(function(t,r){i.exports=r()})(Vs,(function(){return function(t,r,o){r.prototype.isBetween=function(s,a,l,d){var p=o(s),h=o(a),f=(d=d||"()")[0]==="(",b=d[1]===")";return(f?this.isAfter(p,l):!this.isBefore(p,l))&&(b?this.isBefore(h,l):!this.isAfter(h,l))||(f?this.isBefore(p,l):!this.isAfter(p,l))&&(b?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(Lt)),Lt.exports}var Ws=qs();const Zs=_t(Ws);var Tt={exports:{}},Ks=Tt.exports,to;function Gs(){return to||(to=1,(function(i,e){(function(t,r){i.exports=r()})(Ks,(function(){var t="week",r="year";return function(o,s,a){var l=s.prototype;l.week=function(d){if(d===void 0&&(d=null),d!==null)return this.add(7*(d-this.week()),"day");var p=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=a(this).startOf(r).add(1,r).date(p),f=a(this).endOf(t);if(h.isBefore(f))return 1}var b=a(this).startOf(r).date(p).startOf(t).subtract(1,"millisecond"),v=this.diff(b,t,!0);return v<0?a(this).startOf("week").week():Math.ceil(v)},l.weeks=function(d){return d===void 0&&(d=null),this.week(d)}}}))})(Tt)),Tt.exports}var Xs=Gs();const Js=_t(Xs);var Bt={exports:{}},Qs=Bt.exports,ro;function ea(){return ro||(ro=1,(function(i,e){(function(t,r){i.exports=r()})(Qs,(function(){return function(t,r,o){var s=r.prototype,a=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,b,v,C,k){var g=f.name?f:f.$locale(),_=a(g[b]),w=a(g[v]),y=_||w.map((function(E){return E.slice(0,C)}));if(!k)return y;var x=g.weekStart;return y.map((function(E,S){return y[(S+(x||0))%7]}))},d=function(){return o.Ls[o.locale()]},p=function(f,b){return f.formats[b]||(function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,k,g){return k||g.slice(1)}))})(f.formats[b.toUpperCase()])},h=function(){var f=this;return{months:function(b){return b?b.format("MMMM"):l(f,"months")},monthsShort:function(b){return b?b.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):l(f,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return p(f.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return h.bind(this)()},o.localeData=function(){var f=d();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(b){return p(f,b)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return l(d(),"months")},o.monthsShort=function(){return l(d(),"monthsShort","months",3)},o.weekdays=function(f){return l(d(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return l(d(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return l(d(),"weekdaysMin","weekdays",2,f)}}}))})(Bt)),Bt.exports}var ta=ea();const ra=_t(ta);var It={exports:{}},oa=It.exports,oo;function ia(){return oo||(oo=1,(function(i,e){(function(t,r){i.exports=r(M)})(oa,(function(t){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var o=r(t),s={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};return o.default.locale(s,null,!0),s}))})(It)),It.exports}ia(),M.extend(Hs),M.extend(Us),M.extend(Zs),M.extend(Js),M.extend(ra),M.locale("tr");const io=["DD/MM/YYYY","DD.MM.YYYY","DD MM YYYY","DD-MM-YYYY","DD/MM/YY","DD.MM.YY","DD MM YY","DD-MM-YY","YYYY-MM-DD","YYYY/MM/DD","YYYY.MM.DD","YYYY MM DD"],so=M.weekdaysShort(),sa=M.months(),aa=[...so.slice(1),so[0]];function ie(i){if(!i)return null;for(const t of io){const r=M(i,t,!0);if(r.isValid())return r}const e=M(i);return e.isValid()?e:null}var na=Object.defineProperty,la=Object.getOwnPropertyDescriptor,q=(i,e,t,r)=>{for(var o=r>1?void 0:r?la(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&na(e,t,o),o};n.LogosphereCalendar=class extends T{constructor(){super(...arguments),this.value=null,this.min=null,this.max=null,this.disabled=!1,this.rangeMode=!1,this.disabledDays=[],this.rangeStart=null,this.rangeEnd=null,this.closable=!1,this._cursor=M(),this._rangeStart=null,this._rangeEnd=null,this._hoverDate=null,this._viewMode="calendar",this._clear=()=>{this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null,this._emitStateChange())},this._today=()=>{const e=M();this._withinBounds(e)&&this._select(e)},this._navigatePrevious=()=>{switch(this._viewMode){case"calendar":this._cursor=this._cursor.subtract(1,"month");break;case"month":this._cursor=this._cursor.subtract(1,"year");break;case"year":this._cursor=this._cursor.subtract(12,"year");break}},this._navigateNext=()=>{switch(this._viewMode){case"calendar":this._cursor=this._cursor.add(1,"month");break;case"month":this._cursor=this._cursor.add(1,"year");break;case"year":this._cursor=this._cursor.add(12,"year");break}},this._handleHeaderClick=()=>{this._viewMode==="calendar"?this._viewMode="month":this._viewMode==="month"&&(this._viewMode="year")}}willUpdate(e){var t,r,o,s;if(e.has("value")&&!this.rangeMode){const a=ie(this.value);a&&(this._cursor=a)}e.has("rangeStart")&&(this._rangeStart=this.rangeStart),e.has("rangeEnd")&&(this._rangeEnd=this.rangeEnd),(e.has("rangeStart")||e.has("rangeEnd"))&&this.rangeMode&&(this._cursor=(s=(o=(t=ie(this.rangeEnd))==null?void 0:t.clone())!=null?o:(r=ie(this.rangeStart))==null?void 0:r.clone())!=null?s:this._cursor)}focusGrid(){var e;(e=this.renderRoot.querySelector("#grid"))==null||e.focus()}_emitStateChange(){this.dispatchEvent(new CustomEvent("calendar-state-change",{detail:{rangeStart:this._rangeStart,rangeEnd:this._rangeEnd}}))}_emitChange(e){var t;this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{value:e}})),(t=this.onChange)==null||t.call(this,e)}_emitRangeChange(){var t;if(!this._rangeStart||!this._rangeEnd)return;const e={start:this._rangeStart,end:this._rangeEnd};this.dispatchEvent(new CustomEvent("rangeChange",{detail:e})),(t=this.onRangeChange)==null||t.call(this,e)}_withinBounds(e){const t=ie(this.min),r=ie(this.max);return!(t&&e.isBefore(t,"day")||r&&e.isAfter(r,"day")||this.disabledDays.includes(e.day()))}_getYears(){const e=this._cursor.year()-6;return Array.from({length:12},(t,r)=>e+r)}_getHeaderLabel(){switch(this._viewMode){case"calendar":return this._cursor.format("MMMM YYYY");case"month":return this._cursor.format("YYYY");case"year":{const e=this._getYears();return`${e[0]}-${e[e.length-1]}`}}}_daysInGrid(){const e=this._cursor.startOf("month"),t=e.subtract((e.day()+6)%7,"day");return Array.from({length:42},(r,o)=>t.add(o,"day"))}_isInRange(e){if(!this.rangeMode||!this._rangeStart||!this._rangeEnd)return null;const t=ie(this._rangeStart),r=ie(this._rangeEnd);return!t||!r?null:e.isSame(t,"day")?"start":e.isSame(r,"day")?"end":e.isBetween(t,r,"day","[]")?"between":null}_getHoverPreview(e){if(!this.rangeMode||!this._rangeStart||this._rangeEnd||!this._hoverDate)return null;const t=ie(this._rangeStart);if(!t)return null;const r=this._hoverDate,o=r.isAfter(t,"day"),s=o?t:r,a=o?r:t;return e.isSame(t,"day")?"preview-start":e.isSame(r,"day")?"preview-end":e.isAfter(s,"day")&&e.isBefore(a,"day")?"preview-between":null}_getDayClasses(e){const t=["dp__day"];if(!this._withinBounds(e))return t.push(this.disabledDays.includes(e.day())?"dp__day--disabled-weekday":"dp__day--disabled"),t.join(" ");const r=this._isInRange(e);if(r==="start")return t.push("dp__day--range-start"),t.join(" ");if(r==="end")return t.push("dp__day--range-end"),t.join(" ");if(r==="between")return t.push("dp__day--range-between"),t.join(" ");const o=this._getHoverPreview(e);return o==="preview-start"?(t.push("dp__day--range-start"),t.join(" ")):o==="preview-end"?(t.push("dp__day--range-end"),t.join(" ")):o==="preview-between"?(t.push("dp__day--range-between"),t.join(" ")):this.rangeMode&&this._rangeStart&&!this._rangeEnd&&e.isSame(ie(this._rangeStart),"day")?(t.push("dp__day--range-pending"),t.join(" ")):(e.isSame(ie(this.value),"day")?t.push("dp__day--selected"):e.isSame(M(),"day")?t.push("dp__day--today"):t.push("dp__day--default"),t.join(" "))}_select(e){if(!(this.disabled||!this._withinBounds(e))){if(this.rangeMode){if(!this._rangeStart){this._rangeStart=e.format("YYYY-MM-DD"),this._cursor=e,this._emitStateChange();return}if(!this._rangeEnd){const t=ie(this._rangeStart);t&&e.isBefore(t,"day")?(this._rangeEnd=this._rangeStart,this._rangeStart=e.format("YYYY-MM-DD")):this._rangeEnd=e.format("YYYY-MM-DD"),this._cursor=e,this._viewMode="calendar",this._emitStateChange(),this._emitRangeChange();return}this._rangeStart=e.format("YYYY-MM-DD"),this._rangeEnd=null,this._cursor=e,this._emitStateChange();return}this._emitChange(e.format("YYYY-MM-DD")),this._cursor=e,this._viewMode="calendar"}}_selectMonth(e){this._cursor=this._cursor.month(e),this._viewMode="calendar"}_selectYear(e){this._cursor=this._cursor.year(e),this._viewMode="month"}_keydownGrid(e){const t={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7};e.key in t?(e.preventDefault(),this._cursor=this._cursor.add(t[e.key],"day")):e.key==="Enter"||e.key===" "?(e.preventDefault(),this._select(this._cursor)):e.key==="Escape"&&this.closable?(e.preventDefault(),this.dispatchEvent(new CustomEvent("close-request"))):e.key==="PageUp"?(e.preventDefault(),this._cursor=e.shiftKey?this._cursor.subtract(1,"year"):this._cursor.subtract(1,"month")):e.key==="PageDown"?(e.preventDefault(),this._cursor=e.shiftKey?this._cursor.add(1,"year"):this._cursor.add(1,"month")):e.key==="Home"?(e.preventDefault(),this._cursor=this._cursor.startOf("month")):e.key==="End"&&(e.preventDefault(),this._cursor=this._cursor.endOf("month"))}_renderCalendar(e){const t=this._daysInGrid();return u`
586
+ `}},a.LogosphereChatBot.styles=[N`${F(Is)}`],a.LogosphereChatBot.ICONS={launcher:"data:image/svg+xml,%3Csvg%20width%3D%2251%22%20height%3D%2242%22%20viewBox%3D%220%200%2051%2042%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M38.457%200C40.0338%200%2041.542%200.293293%2042.9302%200.8283L49.15%206.07675C50.2611%207.93912%2050.8994%2010.1162%2050.8994%2012.4424V23.084C50.8994%2024.4858%2050.6676%2025.8334%2050.2402%2027.0907L43.1534%2034.6096C41.7043%2035.2006%2040.1187%2035.5264%2038.457%2035.5264H30.7605L38.5805%2027.2296C40.814%2027.1643%2042.6045%2025.3332%2042.6045%2023.084V12.4424C42.6045%2010.1518%2040.7476%208.29492%2038.457%208.29492H12.4424C10.1518%208.29492%208.29492%2010.1518%208.29492%2012.4424V23.084C8.29492%2025.3746%2010.1518%2027.2314%2012.4424%2027.2314H33.5078L20.4487%2041.0866C17.7992%2042.5379%2014.3381%2040.2741%2014.7842%2036.7803C14.8402%2036.3421%2014.9629%2035.9194%2015.1416%2035.5264H12.4424C10.9217%2035.5264%209.46472%2035.2536%208.11774%2034.7542L0.610679%2026.945C0.214298%2025.7295%200%2024.4318%200%2023.084V12.4424C0%2010.8011%200.317794%209.23402%200.895207%207.79935L7.12424%201.19058C8.73679%200.427072%2010.5397%200%2012.4424%200H38.457ZM23.1357%2017.7881C23.1357%2015.4815%2021.2656%2013.6113%2018.959%2013.6113C16.6525%2013.6114%2014.7822%2015.4815%2014.7822%2017.7881C14.7824%2020.0945%2016.6526%2021.9638%2018.959%2021.9639C21.2655%2021.9639%2023.1356%2020.0945%2023.1357%2017.7881ZM36.2344%2017.7881C36.2344%2015.4815%2034.3642%2013.6113%2032.0576%2013.6113C29.7511%2013.6114%2027.8809%2015.4815%2027.8809%2017.7881C27.881%2020.0945%2029.7512%2021.9638%2032.0576%2021.9639C34.3641%2021.9639%2036.2342%2020.0945%2036.2344%2017.7881Z%22%20fill%3D%22url(%23paint0_linear_97_4585)%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_97_4585%22%20x1%3D%2231.662%22%20y1%3D%224.88016%22%20x2%3D%2214.4119%22%20y2%3D%2237.9167%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23F22727%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23CA0D0D%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"},Y([c({type:String,attribute:"return-uri"})],a.LogosphereChatBot.prototype,"returnUri",2),Y([c({type:String,attribute:"question-prompt"})],a.LogosphereChatBot.prototype,"questionPrompt",2),Y([c({type:Boolean,attribute:"minimized-icon-only"})],a.LogosphereChatBot.prototype,"minimizedIconOnly",2),Y([c({type:Boolean,attribute:"draggable"})],a.LogosphereChatBot.prototype,"draggable",2),Y([c({type:Boolean,attribute:"resizable"})],a.LogosphereChatBot.prototype,"resizable",2),Y([c({type:Array,hasChanged:(i,e)=>i===e?!1:!e||!i||i.length!==e.length?!0:JSON.stringify(i)!==JSON.stringify(e)}),c({type:Array})],a.LogosphereChatBot.prototype,"products",2),Y([c({type:Boolean,attribute:"open-initially"})],a.LogosphereChatBot.prototype,"openInitially",2),Y([c({type:Boolean,attribute:"show-feedback-buttons"})],a.LogosphereChatBot.prototype,"showFeedbackButtons",2),Y([$()],a.LogosphereChatBot.prototype,"open",2),Y([$()],a.LogosphereChatBot.prototype,"fullscreen",2),Y([$()],a.LogosphereChatBot.prototype,"messages",2),Y([$()],a.LogosphereChatBot.prototype,"conversationId",2),Y([$()],a.LogosphereChatBot.prototype,"assertionToken",2),Y([$()],a.LogosphereChatBot.prototype,"isLoading",2),Y([$()],a.LogosphereChatBot.prototype,"inputText",2),Y([$()],a.LogosphereChatBot.prototype,"selectedProductId",2),Y([$()],a.LogosphereChatBot.prototype,"windowWidth",2),Y([$()],a.LogosphereChatBot.prototype,"windowHeight",2),Y([$()],a.LogosphereChatBot.prototype,"position",2),Y([$()],a.LogosphereChatBot.prototype,"isDragging",2),Y([$()],a.LogosphereChatBot.prototype,"screenWidth",2),Y([J("#chat-container")],a.LogosphereChatBot.prototype,"chatContainer",2),Y([J("#product")],a.LogosphereChatBot.prototype,"productEl",2),a.LogosphereChatBot=Y([U("logosphere-chatbot")],a.LogosphereChatBot);const Hs=':host{display:block;font-family:var(--font-family-base)}.dp__calendar{display:block}.dp__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-3)}.dp__nav-btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--spacing-2);border:none;background:none;border-radius:var(--radius-base);cursor:pointer;color:var(--color-body-text);transition:background-color var(--transition-speed-fast) var(--transition-timing)}.dp__nav-btn:hover{background-color:var(--color-tertiary-bg)}.dp__header-label{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);letter-spacing:-.025em;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--color-body-text);transition:color var(--transition-speed-fast) var(--transition-timing)}.dp__header-label:hover{color:var(--color-primary)}.dp__weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:var(--font-size-sm);color:var(--color-tertiary);margin-bottom:var(--spacing-1);-webkit-user-select:none;user-select:none}.dp__weekday{padding:var(--spacing-1) 0}.dp__grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:2px;outline:none}.dp__day{position:relative;height:36px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding:0;min-width:0;border-radius:0;color:var(--color-body-text);font-family:var(--font-family-base)}.dp__day-num{position:relative;z-index:1;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-full);font-size:var(--font-size-sm);flex-shrink:0;transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__day--range-start:before,.dp__day--range-end:before,.dp__day--range-between:before{content:"";position:absolute;top:2px;bottom:2px;background-color:color-mix(in srgb,var(--color-primary) 15%,transparent);z-index:0;pointer-events:none}.dp__day--range-start:before{left:50%;right:0}.dp__day--range-end:before{left:0;right:50%}.dp__day--range-between:before{left:0;right:0}.dp__day--out-of-month{opacity:.4}.dp__day--focused .dp__day-num{background-color:var(--color-tertiary-bg)}.dp__day--disabled{cursor:not-allowed;pointer-events:none}.dp__day--disabled .dp__day-num{color:var(--color-gray-300);background-color:var(--color-gray-50)}.dp__day--disabled-weekday{cursor:not-allowed;pointer-events:none}.dp__day--disabled-weekday .dp__day-num{color:var(--color-gray-300)}.dp__day--today .dp__day-num{background-color:var(--color-gray-200);color:var(--color-gray-800)}.dp__day--selected .dp__day-num{background-color:var(--color-primary);color:#fff}.dp__day--default:hover .dp__day-num{background-color:var(--color-tertiary-bg)}.dp__day--range-pending .dp__day-num,.dp__day--range-start .dp__day-num,.dp__day--range-end .dp__day-num{background-color:var(--color-primary);color:#fff}.dp__day--range-between .dp__day-num{color:var(--color-primary);background:transparent}.dp__month-grid,.dp__year-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:10px;margin-top:var(--spacing-3)}.dp__month-btn,.dp__year-btn{height:48px;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--radius-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);font-family:var(--font-family-base);cursor:pointer;background:none;color:var(--color-body-text);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__month-btn:hover:not(.dp__month-btn--selected),.dp__year-btn:hover:not(.dp__year-btn--selected){background-color:var(--color-tertiary-bg)}.dp__month-btn--selected,.dp__year-btn--selected{background-color:var(--color-primary);color:#fff}.dp__month-btn--current:not(.dp__month-btn--selected),.dp__year-btn--current:not(.dp__year-btn--selected){background-color:var(--color-gray-200);color:var(--color-gray-800)}.dp__footer{display:flex;align-items:center;justify-content:space-evenly;margin-top:var(--spacing-4);padding-bottom:var(--spacing-3)}.dp__footer-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-1) var(--spacing-2);font-size:var(--font-size-sm);color:var(--color-tertiary);border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;font-family:var(--font-family-base);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__footer-btn:hover{background-color:var(--color-tertiary-bg);color:var(--color-body-text)}';function _t(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Pt={exports:{}},js=Pt.exports,eo;function Fs(){return eo||(eo=1,(function(i,e){(function(t,r){i.exports=r()})(js,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,s){var n=o.prototype,l=n.format;s.en.formats=t,n.format=function(d){d===void 0&&(d="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,h=(function(f,m){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(v,C,k){var g=k&&k.toUpperCase();return C||m[k]||t[k]||m[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(_,w,y){return w||y.slice(1)}))}))})(d,p===void 0?{}:p);return l.call(this,h)}}}))})(Pt)),Pt.exports}var Ns=Fs();const Us=_t(Ns);var Ot={exports:{}},Vs=Ot.exports,to;function qs(){return to||(to=1,(function(i,e){(function(t,r){i.exports=r()})(Vs,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,n=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,d={},p=function(g){return(g=+g)+(g>68?1900:2e3)},h=function(g){return function(_){this[g]=+_}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(_){if(!_||_==="Z")return 0;var w=_.match(/([+-]|\d\d)/g),y=60*w[1]+(+w[2]||0);return y===0?0:w[0]==="+"?-y:y})(g)}],m=function(g){var _=d[g];return _&&(_.indexOf?_:_.s.concat(_.f))},v=function(g,_){var w,y=d.meridiem;if(y){for(var x=1;x<=24;x+=1)if(g.indexOf(y(x,0,_))>-1){w=x>12;break}}else w=g===(_?"pm":"PM");return w},C={A:[l,function(g){this.afternoon=v(g,!1)}],a:[l,function(g){this.afternoon=v(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[s,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[n,h("seconds")],ss:[n,h("seconds")],m:[n,h("minutes")],mm:[n,h("minutes")],H:[n,h("hours")],h:[n,h("hours")],HH:[n,h("hours")],hh:[n,h("hours")],D:[n,h("day")],DD:[s,h("day")],Do:[l,function(g){var _=d.ordinal,w=g.match(/\d+/);if(this.day=w[0],_)for(var y=1;y<=31;y+=1)_(y).replace(/\[|\]/g,"")===g&&(this.day=y)}],w:[n,h("week")],ww:[s,h("week")],M:[n,h("month")],MM:[s,h("month")],MMM:[l,function(g){var _=m("months"),w=(m("monthsShort")||_.map((function(y){return y.slice(0,3)}))).indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[l,function(g){var _=m("months").indexOf(g)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,h("year")],YY:[s,function(g){this.year=p(g)}],YYYY:[/\d{4}/,h("year")],Z:f,ZZ:f};function k(g){var _,w;_=g,w=d&&d.formats;for(var y=(g=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,B,j){var L=j&&j.toUpperCase();return B||w[j]||t[j]||w[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(W,Z,V){return Z||V.slice(1)}))}))).match(r),x=y.length,E=0;E<x;E+=1){var S=y[E],D=C[S],P=D&&D[0],z=D&&D[1];y[E]=z?{regex:P,parser:z}:S.replace(/^\[|\]$/g,"")}return function(O){for(var B={},j=0,L=0;j<x;j+=1){var W=y[j];if(typeof W=="string")L+=W.length;else{var Z=W.regex,V=W.parser,K=O.slice(L),ce=Z.exec(K)[0];V.call(B,ce),O=O.replace(ce,"")}}return(function(ee){var be=ee.afternoon;if(be!==void 0){var G=ee.hours;be?G<12&&(ee.hours+=12):G===12&&(ee.hours=0),delete ee.afternoon}})(B),B}}return function(g,_,w){w.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(p=g.parseTwoDigitYear);var y=_.prototype,x=y.parse;y.parse=function(E){var S=E.date,D=E.utc,P=E.args;this.$u=D;var z=P[1];if(typeof z=="string"){var O=P[2]===!0,B=P[3]===!0,j=O||B,L=P[2];B&&(L=P[2]),d=this.$locale(),!O&&L&&(d=w.Ls[L]),this.$d=(function(K,ce,ee,be){try{if(["x","X"].indexOf(ce)>-1)return new Date((ce==="X"?1e3:1)*K);var G=k(ce)(K),ve=G.year,_e=G.month,De=G.day,fe=G.hours,Re=G.minutes,Ge=G.seconds,ye=G.milliseconds,Xe=G.zone,Rt=G.week,He=new Date,yt=De||(ve||_e?1:He.getDate()),Je=ve||He.getFullYear(),Qe=0;ve&&!_e||(Qe=_e>0?_e-1:He.getMonth());var et,tt=fe||0,rt=Re||0,wt=Ge||0,xt=ye||0;return Xe?new Date(Date.UTC(Je,Qe,yt,tt,rt,wt,xt+60*Xe.offset*1e3)):ee?new Date(Date.UTC(Je,Qe,yt,tt,rt,wt,xt)):(et=new Date(Je,Qe,yt,tt,rt,wt,xt),Rt&&(et=be(et).week(Rt).toDate()),et)}catch(Ae){return new Date("")}})(S,z,D,w),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),j&&S!=this.format(z)&&(this.$d=new Date("")),d={}}else if(z instanceof Array)for(var W=z.length,Z=1;Z<=W;Z+=1){P[1]=z[Z-1];var V=w.apply(this,P);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}Z===W&&(this.$d=new Date(""))}else x.call(this,E)}}}))})(Ot)),Ot.exports}var Ws=qs();const Zs=_t(Ws);var Lt={exports:{}},Ks=Lt.exports,ro;function Gs(){return ro||(ro=1,(function(i,e){(function(t,r){i.exports=r()})(Ks,(function(){return function(t,r,o){r.prototype.isBetween=function(s,n,l,d){var p=o(s),h=o(n),f=(d=d||"()")[0]==="(",m=d[1]===")";return(f?this.isAfter(p,l):!this.isBefore(p,l))&&(m?this.isBefore(h,l):!this.isAfter(h,l))||(f?this.isBefore(p,l):!this.isAfter(p,l))&&(m?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(Lt)),Lt.exports}var Xs=Gs();const Js=_t(Xs);var Tt={exports:{}},Qs=Tt.exports,oo;function en(){return oo||(oo=1,(function(i,e){(function(t,r){i.exports=r()})(Qs,(function(){var t="week",r="year";return function(o,s,n){var l=s.prototype;l.week=function(d){if(d===void 0&&(d=null),d!==null)return this.add(7*(d-this.week()),"day");var p=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=n(this).startOf(r).add(1,r).date(p),f=n(this).endOf(t);if(h.isBefore(f))return 1}var m=n(this).startOf(r).date(p).startOf(t).subtract(1,"millisecond"),v=this.diff(m,t,!0);return v<0?n(this).startOf("week").week():Math.ceil(v)},l.weeks=function(d){return d===void 0&&(d=null),this.week(d)}}}))})(Tt)),Tt.exports}var tn=en();const rn=_t(tn);var Bt={exports:{}},on=Bt.exports,io;function sn(){return io||(io=1,(function(i,e){(function(t,r){i.exports=r()})(on,(function(){return function(t,r,o){var s=r.prototype,n=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,m,v,C,k){var g=f.name?f:f.$locale(),_=n(g[m]),w=n(g[v]),y=_||w.map((function(E){return E.slice(0,C)}));if(!k)return y;var x=g.weekStart;return y.map((function(E,S){return y[(S+(x||0))%7]}))},d=function(){return o.Ls[o.locale()]},p=function(f,m){return f.formats[m]||(function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,k,g){return k||g.slice(1)}))})(f.formats[m.toUpperCase()])},h=function(){var f=this;return{months:function(m){return m?m.format("MMMM"):l(f,"months")},monthsShort:function(m){return m?m.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):l(f,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return p(f.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return h.bind(this)()},o.localeData=function(){var f=d();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(m){return p(f,m)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return l(d(),"months")},o.monthsShort=function(){return l(d(),"monthsShort","months",3)},o.weekdays=function(f){return l(d(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return l(d(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return l(d(),"weekdaysMin","weekdays",2,f)}}}))})(Bt)),Bt.exports}var nn=sn();const an=_t(nn);var It={exports:{}},ln=It.exports,so;function dn(){return so||(so=1,(function(i,e){(function(t,r){i.exports=r(M)})(ln,(function(t){function r(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var o=r(t),s={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(n){return n+"."}};return o.default.locale(s,null,!0),s}))})(It)),It.exports}dn(),M.extend(Us),M.extend(Zs),M.extend(Js),M.extend(rn),M.extend(an),M.locale("tr");const no=["DD/MM/YYYY","DD.MM.YYYY","DD MM YYYY","DD-MM-YYYY","DD/MM/YY","DD.MM.YY","DD MM YY","DD-MM-YY","YYYY-MM-DD","YYYY/MM/DD","YYYY.MM.DD","YYYY MM DD"],ao=M.weekdaysShort(),cn=M.months(),hn=[...ao.slice(1),ao[0]];function ie(i){if(!i)return null;for(const t of no){const r=M(i,t,!0);if(r.isValid())return r}const e=M(i);return e.isValid()?e:null}var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,q=(i,e,t,r)=>{for(var o=r>1?void 0:r?un(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&pn(e,t,o),o};a.LogosphereCalendar=class extends T{constructor(){super(...arguments),this.value=null,this.min=null,this.max=null,this.disabled=!1,this.rangeMode=!1,this.disabledDays=[],this.rangeStart=null,this.rangeEnd=null,this.closable=!1,this._cursor=M(),this._rangeStart=null,this._rangeEnd=null,this._hoverDate=null,this._viewMode="calendar",this._clear=()=>{this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null,this._emitStateChange())},this._today=()=>{const e=M();this._withinBounds(e)&&this._select(e)},this._navigatePrevious=()=>{switch(this._viewMode){case"calendar":this._cursor=this._cursor.subtract(1,"month");break;case"month":this._cursor=this._cursor.subtract(1,"year");break;case"year":this._cursor=this._cursor.subtract(12,"year");break}},this._navigateNext=()=>{switch(this._viewMode){case"calendar":this._cursor=this._cursor.add(1,"month");break;case"month":this._cursor=this._cursor.add(1,"year");break;case"year":this._cursor=this._cursor.add(12,"year");break}},this._handleHeaderClick=()=>{this._viewMode==="calendar"?this._viewMode="month":this._viewMode==="month"&&(this._viewMode="year")}}willUpdate(e){var t,r,o,s;if(e.has("value")&&!this.rangeMode){const n=ie(this.value);n&&(this._cursor=n)}e.has("rangeStart")&&(this._rangeStart=this.rangeStart),e.has("rangeEnd")&&(this._rangeEnd=this.rangeEnd),(e.has("rangeStart")||e.has("rangeEnd"))&&this.rangeMode&&(this._cursor=(s=(o=(t=ie(this.rangeEnd))==null?void 0:t.clone())!=null?o:(r=ie(this.rangeStart))==null?void 0:r.clone())!=null?s:this._cursor)}focusGrid(){var e;(e=this.renderRoot.querySelector("#grid"))==null||e.focus()}_emitStateChange(){this.dispatchEvent(new CustomEvent("calendar-state-change",{detail:{rangeStart:this._rangeStart,rangeEnd:this._rangeEnd}}))}_emitChange(e){var t;this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{value:e}})),(t=this.onChange)==null||t.call(this,e)}_emitRangeChange(){var t;if(!this._rangeStart||!this._rangeEnd)return;const e={start:this._rangeStart,end:this._rangeEnd};this.dispatchEvent(new CustomEvent("rangeChange",{detail:e})),(t=this.onRangeChange)==null||t.call(this,e)}_withinBounds(e){const t=ie(this.min),r=ie(this.max);return!(t&&e.isBefore(t,"day")||r&&e.isAfter(r,"day")||this.disabledDays.includes(e.day()))}_getYears(){const e=this._cursor.year()-6;return Array.from({length:12},(t,r)=>e+r)}_getHeaderLabel(){switch(this._viewMode){case"calendar":return this._cursor.format("MMMM YYYY");case"month":return this._cursor.format("YYYY");case"year":{const e=this._getYears();return`${e[0]}-${e[e.length-1]}`}}}_daysInGrid(){const e=this._cursor.startOf("month"),t=e.subtract((e.day()+6)%7,"day");return Array.from({length:42},(r,o)=>t.add(o,"day"))}_isInRange(e){if(!this.rangeMode||!this._rangeStart||!this._rangeEnd)return null;const t=ie(this._rangeStart),r=ie(this._rangeEnd);return!t||!r?null:e.isSame(t,"day")?"start":e.isSame(r,"day")?"end":e.isBetween(t,r,"day","[]")?"between":null}_getHoverPreview(e){if(!this.rangeMode||!this._rangeStart||this._rangeEnd||!this._hoverDate)return null;const t=ie(this._rangeStart);if(!t)return null;const r=this._hoverDate,o=r.isAfter(t,"day"),s=o?t:r,n=o?r:t;return e.isSame(t,"day")?"preview-start":e.isSame(r,"day")?"preview-end":e.isAfter(s,"day")&&e.isBefore(n,"day")?"preview-between":null}_getDayClasses(e){const t=["dp__day"];if(!this._withinBounds(e))return t.push(this.disabledDays.includes(e.day())?"dp__day--disabled-weekday":"dp__day--disabled"),t.join(" ");const r=this._isInRange(e);if(r==="start")return t.push("dp__day--range-start"),t.join(" ");if(r==="end")return t.push("dp__day--range-end"),t.join(" ");if(r==="between")return t.push("dp__day--range-between"),t.join(" ");const o=this._getHoverPreview(e);return o==="preview-start"?(t.push("dp__day--range-start"),t.join(" ")):o==="preview-end"?(t.push("dp__day--range-end"),t.join(" ")):o==="preview-between"?(t.push("dp__day--range-between"),t.join(" ")):this.rangeMode&&this._rangeStart&&!this._rangeEnd&&e.isSame(ie(this._rangeStart),"day")?(t.push("dp__day--range-pending"),t.join(" ")):(e.isSame(ie(this.value),"day")?t.push("dp__day--selected"):e.isSame(M(),"day")?t.push("dp__day--today"):t.push("dp__day--default"),t.join(" "))}_select(e){if(!(this.disabled||!this._withinBounds(e))){if(this.rangeMode){if(!this._rangeStart){this._rangeStart=e.format("YYYY-MM-DD"),this._cursor=e,this._emitStateChange();return}if(!this._rangeEnd){const t=ie(this._rangeStart);t&&e.isBefore(t,"day")?(this._rangeEnd=this._rangeStart,this._rangeStart=e.format("YYYY-MM-DD")):this._rangeEnd=e.format("YYYY-MM-DD"),this._cursor=e,this._viewMode="calendar",this._emitStateChange(),this._emitRangeChange();return}this._rangeStart=e.format("YYYY-MM-DD"),this._rangeEnd=null,this._cursor=e,this._emitStateChange();return}this._emitChange(e.format("YYYY-MM-DD")),this._cursor=e,this._viewMode="calendar"}}_selectMonth(e){this._cursor=this._cursor.month(e),this._viewMode="calendar"}_selectYear(e){this._cursor=this._cursor.year(e),this._viewMode="month"}_keydownGrid(e){const t={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7};e.key in t?(e.preventDefault(),this._cursor=this._cursor.add(t[e.key],"day")):e.key==="Enter"||e.key===" "?(e.preventDefault(),this._select(this._cursor)):e.key==="Escape"&&this.closable?(e.preventDefault(),this.dispatchEvent(new CustomEvent("close-request"))):e.key==="PageUp"?(e.preventDefault(),this._cursor=e.shiftKey?this._cursor.subtract(1,"year"):this._cursor.subtract(1,"month")):e.key==="PageDown"?(e.preventDefault(),this._cursor=e.shiftKey?this._cursor.add(1,"year"):this._cursor.add(1,"month")):e.key==="Home"?(e.preventDefault(),this._cursor=this._cursor.startOf("month")):e.key==="End"&&(e.preventDefault(),this._cursor=this._cursor.endOf("month"))}_renderCalendar(e){const t=this._daysInGrid();return u`
587
587
  <div class="dp__weekdays" role="row">
588
- ${aa.map(r=>u`<div class="dp__weekday" role="columnheader" aria-label=${r}>${r}</div>`)}
588
+ ${hn.map(r=>u`<div class="dp__weekday" role="columnheader" aria-label=${r}>${r}</div>`)}
589
589
  </div>
590
590
  <div
591
591
  id="grid"
@@ -596,13 +596,13 @@
596
596
  @keydown=${this._keydownGrid}
597
597
  @mouseleave=${()=>{this._hoverDate=null}}
598
598
  >
599
- ${t.map(r=>{const o=r.month()===this._cursor.month(),s=e?r.isSame(e,"day"):!1,a=r.isSame(this._cursor,"day"),l=!this._withinBounds(r),d=[this._getDayClasses(r),o?"":"dp__day--out-of-month",a?"dp__day--focused":""].filter(Boolean).join(" ");return u`
599
+ ${t.map(r=>{const o=r.month()===this._cursor.month(),s=e?r.isSame(e,"day"):!1,n=r.isSame(this._cursor,"day"),l=!this._withinBounds(r),d=[this._getDayClasses(r),o?"":"dp__day--out-of-month",n?"dp__day--focused":""].filter(Boolean).join(" ");return u`
600
600
  <button
601
601
  class=${d}
602
602
  role="gridcell"
603
603
  aria-selected=${s?"true":"false"}
604
604
  aria-disabled=${l?"true":"false"}
605
- tabindex=${a?"0":"-1"}
605
+ tabindex=${n?"0":"-1"}
606
606
  @click=${()=>!l&&this._select(r)}
607
607
  @mouseenter=${()=>{this.rangeMode&&this._rangeStart&&!this._rangeEnd&&(this._hoverDate=r)}}
608
608
  >
@@ -612,7 +612,7 @@
612
612
  </div>
613
613
  `}_renderMonthGrid(){return u`
614
614
  <div class="dp__month-grid" role="grid" aria-label="Ay seçimi">
615
- ${sa.map((e,t)=>{const r=t===this._cursor.month(),o=t===M().month()&&this._cursor.year()===M().year();return u`
615
+ ${cn.map((e,t)=>{const r=t===this._cursor.month(),o=t===M().month()&&this._cursor.year()===M().year();return u`
616
616
  <button
617
617
  class="dp__month-btn ${r?"dp__month-btn--selected":""} ${o&&!r?"dp__month-btn--current":""}"
618
618
  role="gridcell"
@@ -670,7 +670,7 @@
670
670
  `:null}
671
671
  </div>
672
672
  </div>
673
- `}},n.LogosphereCalendar.styles=[N`${F(Bs)}`],q([c({type:String})],n.LogosphereCalendar.prototype,"value",2),q([c({type:String})],n.LogosphereCalendar.prototype,"min",2),q([c({type:String})],n.LogosphereCalendar.prototype,"max",2),q([c({type:Boolean})],n.LogosphereCalendar.prototype,"disabled",2),q([c({type:Boolean})],n.LogosphereCalendar.prototype,"rangeMode",2),q([c({type:Array})],n.LogosphereCalendar.prototype,"disabledDays",2),q([c({type:String})],n.LogosphereCalendar.prototype,"rangeStart",2),q([c({type:String})],n.LogosphereCalendar.prototype,"rangeEnd",2),q([c({type:Boolean})],n.LogosphereCalendar.prototype,"closable",2),q([c({attribute:!1})],n.LogosphereCalendar.prototype,"onChange",2),q([c({attribute:!1})],n.LogosphereCalendar.prototype,"onRangeChange",2),q([$()],n.LogosphereCalendar.prototype,"_cursor",2),q([$()],n.LogosphereCalendar.prototype,"_rangeStart",2),q([$()],n.LogosphereCalendar.prototype,"_rangeEnd",2),q([$()],n.LogosphereCalendar.prototype,"_hoverDate",2),q([$()],n.LogosphereCalendar.prototype,"_viewMode",2),n.LogosphereCalendar=q([U("logosphere-calendar")],n.LogosphereCalendar);const da=".dp{display:block;position:relative;width:100%;font-family:var(--font-family-base)}.dp__field,.dp__reference{width:100%}.dp__input{width:100%;border:none;outline:none;background:transparent;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);line-height:1.5}.dp__input::placeholder{color:var(--color-tertiary)}.dp__input:disabled{cursor:not-allowed}.dp__icon-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;line-height:1;transition:color var(--transition-speed-fast) var(--transition-timing)}.dp__icon-btn_suffix{padding-right:var(--spacing-1)}.dp__icon-btn:hover{color:var(--color-gray-600)}.dp__icon-btn:disabled{cursor:not-allowed;opacity:.5}.dp__popup{background-color:var(--color-body-bg);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);z-index:var(--z-index-dropdown);padding:var(--spacing-4);box-sizing:border-box;overflow:hidden;max-height:calc(100vh - 16px)}";var ca=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,A=(i,e,t,r)=>{for(var o=r>1?void 0:r?ha(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ca(e,t,o),o};let pa=0;const ua=()=>`dp-${++pa}`;n.LogosphereDatePicker=class extends T{constructor(){super(...arguments),this.value=null,this.min=null,this.max=null,this.required=!1,this.disabled=!1,this.readonly=!1,this.expandFactor=1.05,this.placeholder="GG/AA/YYYY veya GG.AA.YYYY",this.label="",this.helper="",this.error="",this.size="default",this.variant="default",this.rangeMode=!1,this.disabledDays=[],this.rangeStart=null,this.rangeEnd=null,this._open=!1,this._rangeStart=null,this._rangeEnd=null,this._hasError=!1,this._errorMsg="",this._inputDraft=null,this._errorTimer=null,this.inputId=ua(),this._outsideClick=e=>{this._open&&(e.composedPath().includes(this)||(this._parseAndSetDate(),this._toggleOpen(!1)))},this._openDropdown=()=>{this._toggleOpen(!0)},this._onBlur=()=>{this._parseAndSetDate()}}willUpdate(e){e.has("rangeStart")&&(this._rangeStart=this.rangeStart),e.has("rangeEnd")&&(this._rangeEnd=this.rangeEnd),e.has("value")&&!this._isInputFocused()&&(this._inputDraft=null)}connectedCallback(){super.connectedCallback(),window.addEventListener("click",this._outsideClick,!0)}disconnectedCallback(){window.removeEventListener("click",this._outsideClick,!0),this._destroyPopper(),this._errorTimer&&clearTimeout(this._errorTimer),super.disconnectedCallback()}updated(e){if(super.updated(e),e.has("_open")){this._open?this._updatePopper():this._destroyPopper();return}this._open&&this._updatePopper()}_safeDay(e){return ie(e)}_isInputFocused(){var e;return((e=this.shadowRoot)==null?void 0:e.activeElement)===this._inputElement}_withinBounds(e){const t=this._safeDay(this.min),r=this._safeDay(this.max);return!(t&&e.isBefore(t,"day")||r&&e.isAfter(r,"day")||this.disabledDays.includes(e.day()))}_displayValue(){if(this.rangeMode&&this._rangeStart&&this._rangeEnd){const t=this._safeDay(this._rangeStart),r=this._safeDay(this._rangeEnd);if(t&&r)return`${t.format("DD/MM/YYYY")} - ${r.format("DD/MM/YYYY")}`}const e=this._safeDay(this.value);return e?e.format("DD/MM/YYYY"):""}_inputValue(){var e;return(e=this._inputDraft)!=null?e:this._displayValue()}_emitChange(e){var t;this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{value:e}})),(t=this.onChange)==null||t.call(this,e)}_emitRangeChange(){var t;if(!this._rangeStart||!this._rangeEnd)return;const e={start:this._rangeStart,end:this._rangeEnd};this.dispatchEvent(new CustomEvent("rangeChange",{detail:e})),(t=this.onRangeChange)==null||t.call(this,e)}_showInputError(e){this._errorTimer&&clearTimeout(this._errorTimer),this._hasError=!0,this._errorMsg=e,this._errorTimer=setTimeout(()=>this._clearInputError(),3e3)}_clearInputError(){this._hasError=!1,this._errorMsg="",this._errorTimer&&(clearTimeout(this._errorTimer),this._errorTimer=null)}_toggleOpen(e){if(this.disabled)return;const t=e!=null?e:!this._open;this._open=t,t&&this.updateComplete.then(()=>this._updatePopper())}_onInput(e){const t=e.target.value;this._inputDraft=t,t.trim()||(this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null)),this._clearInputError()}_parseSingleDate(e){for(const t of io){const r=M(e,t,!0);if(r.isValid())return r}return this._safeDay(e)}_parseRangeInput(e){const t=e.split(/\s+-\s+/);if(t.length!==2)return null;const r=this._parseSingleDate(t[0].trim()),o=this._parseSingleDate(t[1].trim());return!r||!o?null:r.isAfter(o,"day")?{start:o,end:r}:{start:r,end:o}}_onKeydown(e){(e.key==="Tab"||e.key==="Enter")&&this._parseAndSetDate()}_parseAndSetDate(){const e=this._inputElement;if(!e)return;const t=e.value.trim();if(!t){if(this.rangeMode&&this._rangeStart&&!this._rangeEnd)return;this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null),this._inputDraft=null;return}if(this.rangeMode){const o=this._parseRangeInput(t);if(o){if(this._withinBounds(o.start)&&this._withinBounds(o.end)){this._rangeStart=o.start.format("YYYY-MM-DD"),this._rangeEnd=o.end.format("YYYY-MM-DD"),this._inputDraft=null,this._clearInputError(),this._emitRangeChange();return}this._showInputError("Seçilen aralık sınırlar dışında.");return}const s=this._parseSingleDate(t);if(s&&this._withinBounds(s)){this._rangeStart=s.format("YYYY-MM-DD"),this._rangeEnd=null,this._inputDraft=null,this._clearInputError();return}this._showInputError("Geçersiz aralık formatı. Örnek: 19/09/2025 - 25/09/2025");return}const r=this._parseSingleDate(t);r&&this._withinBounds(r)?(this._emitChange(r.format("YYYY-MM-DD")),this._inputDraft=null,this._clearInputError()):this._showInputError("Geçersiz tarih formatı. Örnek: 19/09/2025")}_updatePopper(){if(!this._open||!this.isConnected)return;const e=this._referenceElement,t=this._popupElement;if(!e||!t)return;const r=Math.max(270,Math.round(e.getBoundingClientRect().width*(this.expandFactor||1)));if(t.style.width=`${r}px`,this._popperInstance){this._popperInstance.setOptions({placement:"bottom",strategy:"fixed",modifiers:this._getPopperModifiers()}),this._popperInstance.update();return}this._popperInstance=pr(e,t,{placement:"bottom",strategy:"fixed",modifiers:this._getPopperModifiers()})}_getPopperModifiers(){return[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8,fallbackPlacements:["top-start","right-start","left-start","bottom-end","top-end","right-end","left-end"]}}]}_destroyPopper(){this._popperInstance&&(this._popperInstance.destroy(),this._popperInstance=void 0)}_handleCalendarChange(e){this._emitChange(e.detail.value),this._inputDraft=null,this._toggleOpen(!1)}_handleCalendarRangeChange(e){this._rangeStart=e.detail.start,this._rangeEnd=e.detail.end,this._inputDraft=null,this._emitRangeChange(),this._toggleOpen(!1)}_handleCalendarStateChange(e){this._rangeStart=e.detail.rangeStart,this._rangeEnd=e.detail.rangeEnd}_handleSuffixClick(e){var t;e.stopPropagation(),this._openDropdown(),(t=this._inputElement)==null||t.focus()}_handleClearClick(e){var t;e.stopPropagation(),this._emitChange(null),this._rangeStart=null,this._rangeEnd=null,this._inputDraft=null,this._clearInputError(),(t=this._inputElement)==null||t.focus()}render(){const e=this.error||(this._hasError?this._errorMsg:""),t=!!this._displayValue();return u`
673
+ `}},a.LogosphereCalendar.styles=[N`${F(Hs)}`],q([c({type:String})],a.LogosphereCalendar.prototype,"value",2),q([c({type:String})],a.LogosphereCalendar.prototype,"min",2),q([c({type:String})],a.LogosphereCalendar.prototype,"max",2),q([c({type:Boolean})],a.LogosphereCalendar.prototype,"disabled",2),q([c({type:Boolean})],a.LogosphereCalendar.prototype,"rangeMode",2),q([c({type:Array})],a.LogosphereCalendar.prototype,"disabledDays",2),q([c({type:String})],a.LogosphereCalendar.prototype,"rangeStart",2),q([c({type:String})],a.LogosphereCalendar.prototype,"rangeEnd",2),q([c({type:Boolean})],a.LogosphereCalendar.prototype,"closable",2),q([c({attribute:!1})],a.LogosphereCalendar.prototype,"onChange",2),q([c({attribute:!1})],a.LogosphereCalendar.prototype,"onRangeChange",2),q([$()],a.LogosphereCalendar.prototype,"_cursor",2),q([$()],a.LogosphereCalendar.prototype,"_rangeStart",2),q([$()],a.LogosphereCalendar.prototype,"_rangeEnd",2),q([$()],a.LogosphereCalendar.prototype,"_hoverDate",2),q([$()],a.LogosphereCalendar.prototype,"_viewMode",2),a.LogosphereCalendar=q([U("logosphere-calendar")],a.LogosphereCalendar);const fn=".dp{display:block;position:relative;width:100%;font-family:var(--font-family-base)}.dp__field,.dp__reference{width:100%}.dp__input{width:100%;border:none;outline:none;background:transparent;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);line-height:1.5}.dp__input::placeholder{color:var(--color-tertiary)}.dp__input:disabled{cursor:not-allowed}.dp__icon-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;line-height:1;transition:color var(--transition-speed-fast) var(--transition-timing)}.dp__icon-btn_suffix{padding-right:var(--spacing-1)}.dp__icon-btn:hover{color:var(--color-gray-600)}.dp__icon-btn:disabled{cursor:not-allowed;opacity:.5}.dp__popup{background-color:var(--color-body-bg);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);z-index:var(--z-index-dropdown);padding:var(--spacing-4);box-sizing:border-box;overflow:hidden;max-height:calc(100vh - 16px)}";var gn=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,A=(i,e,t,r)=>{for(var o=r>1?void 0:r?mn(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&gn(e,t,o),o};let bn=0;const vn=()=>`dp-${++bn}`;a.LogosphereDatePicker=class extends T{constructor(){super(...arguments),this.value=null,this.min=null,this.max=null,this.required=!1,this.disabled=!1,this.readonly=!1,this.expandFactor=1.05,this.placeholder="GG/AA/YYYY veya GG.AA.YYYY",this.label="",this.helper="",this.error="",this.size="default",this.variant="default",this.rangeMode=!1,this.disabledDays=[],this.rangeStart=null,this.rangeEnd=null,this._open=!1,this._rangeStart=null,this._rangeEnd=null,this._hasError=!1,this._errorMsg="",this._inputDraft=null,this._errorTimer=null,this.inputId=vn(),this._outsideClick=e=>{this._open&&(e.composedPath().includes(this)||(this._parseAndSetDate(),this._toggleOpen(!1)))},this._openDropdown=()=>{this._toggleOpen(!0)},this._onBlur=()=>{this._parseAndSetDate()}}willUpdate(e){e.has("rangeStart")&&(this._rangeStart=this.rangeStart),e.has("rangeEnd")&&(this._rangeEnd=this.rangeEnd),e.has("value")&&!this._isInputFocused()&&(this._inputDraft=null)}connectedCallback(){super.connectedCallback(),window.addEventListener("click",this._outsideClick,!0)}disconnectedCallback(){window.removeEventListener("click",this._outsideClick,!0),this._destroyPopper(),this._errorTimer&&clearTimeout(this._errorTimer),super.disconnectedCallback()}updated(e){if(super.updated(e),e.has("_open")){this._open?this._updatePopper():this._destroyPopper();return}this._open&&this._updatePopper()}_safeDay(e){return ie(e)}_isInputFocused(){var e;return((e=this.shadowRoot)==null?void 0:e.activeElement)===this._inputElement}_withinBounds(e){const t=this._safeDay(this.min),r=this._safeDay(this.max);return!(t&&e.isBefore(t,"day")||r&&e.isAfter(r,"day")||this.disabledDays.includes(e.day()))}_displayValue(){if(this.rangeMode&&this._rangeStart&&this._rangeEnd){const t=this._safeDay(this._rangeStart),r=this._safeDay(this._rangeEnd);if(t&&r)return`${t.format("DD/MM/YYYY")} - ${r.format("DD/MM/YYYY")}`}const e=this._safeDay(this.value);return e?e.format("DD/MM/YYYY"):""}_inputValue(){var e;return(e=this._inputDraft)!=null?e:this._displayValue()}_emitChange(e){var t;this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{value:e}})),(t=this.onChange)==null||t.call(this,e)}_emitRangeChange(){var t;if(!this._rangeStart||!this._rangeEnd)return;const e={start:this._rangeStart,end:this._rangeEnd};this.dispatchEvent(new CustomEvent("rangeChange",{detail:e})),(t=this.onRangeChange)==null||t.call(this,e)}_showInputError(e){this._errorTimer&&clearTimeout(this._errorTimer),this._hasError=!0,this._errorMsg=e,this._errorTimer=setTimeout(()=>this._clearInputError(),3e3)}_clearInputError(){this._hasError=!1,this._errorMsg="",this._errorTimer&&(clearTimeout(this._errorTimer),this._errorTimer=null)}_toggleOpen(e){if(this.disabled)return;const t=e!=null?e:!this._open;this._open=t,t&&this.updateComplete.then(()=>this._updatePopper())}_onInput(e){const t=e.target.value;this._inputDraft=t,t.trim()||(this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null)),this._clearInputError()}_parseSingleDate(e){for(const t of no){const r=M(e,t,!0);if(r.isValid())return r}return this._safeDay(e)}_parseRangeInput(e){const t=e.split(/\s+-\s+/);if(t.length!==2)return null;const r=this._parseSingleDate(t[0].trim()),o=this._parseSingleDate(t[1].trim());return!r||!o?null:r.isAfter(o,"day")?{start:o,end:r}:{start:r,end:o}}_onKeydown(e){(e.key==="Tab"||e.key==="Enter")&&this._parseAndSetDate()}_parseAndSetDate(){const e=this._inputElement;if(!e)return;const t=e.value.trim();if(!t){if(this.rangeMode&&this._rangeStart&&!this._rangeEnd)return;this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null),this._inputDraft=null;return}if(this.rangeMode){const o=this._parseRangeInput(t);if(o){if(this._withinBounds(o.start)&&this._withinBounds(o.end)){this._rangeStart=o.start.format("YYYY-MM-DD"),this._rangeEnd=o.end.format("YYYY-MM-DD"),this._inputDraft=null,this._clearInputError(),this._emitRangeChange();return}this._showInputError("Seçilen aralık sınırlar dışında.");return}const s=this._parseSingleDate(t);if(s&&this._withinBounds(s)){this._rangeStart=s.format("YYYY-MM-DD"),this._rangeEnd=null,this._inputDraft=null,this._clearInputError();return}this._showInputError("Geçersiz aralık formatı. Örnek: 19/09/2025 - 25/09/2025");return}const r=this._parseSingleDate(t);r&&this._withinBounds(r)?(this._emitChange(r.format("YYYY-MM-DD")),this._inputDraft=null,this._clearInputError()):this._showInputError("Geçersiz tarih formatı. Örnek: 19/09/2025")}_updatePopper(){if(!this._open||!this.isConnected)return;const e=this._referenceElement,t=this._popupElement;if(!e||!t)return;const r=Math.max(270,Math.round(e.getBoundingClientRect().width*(this.expandFactor||1)));if(t.style.width=`${r}px`,this._popperInstance){this._popperInstance.setOptions({placement:"bottom",strategy:"fixed",modifiers:this._getPopperModifiers()}),this._popperInstance.update();return}this._popperInstance=ur(e,t,{placement:"bottom",strategy:"fixed",modifiers:this._getPopperModifiers()})}_getPopperModifiers(){return[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8,fallbackPlacements:["top-start","right-start","left-start","bottom-end","top-end","right-end","left-end"]}}]}_destroyPopper(){this._popperInstance&&(this._popperInstance.destroy(),this._popperInstance=void 0)}_handleCalendarChange(e){this._emitChange(e.detail.value),this._inputDraft=null,this._toggleOpen(!1)}_handleCalendarRangeChange(e){this._rangeStart=e.detail.start,this._rangeEnd=e.detail.end,this._inputDraft=null,this._emitRangeChange(),this._toggleOpen(!1)}_handleCalendarStateChange(e){this._rangeStart=e.detail.rangeStart,this._rangeEnd=e.detail.rangeEnd}_handleSuffixClick(e){var t;e.stopPropagation(),this._openDropdown(),(t=this._inputElement)==null||t.focus()}_handleClearClick(e){var t;e.stopPropagation(),this._emitChange(null),this._rangeStart=null,this._rangeEnd=null,this._inputDraft=null,this._clearInputError(),(t=this._inputElement)==null||t.focus()}render(){const e=this.error||(this._hasError?this._errorMsg:""),t=!!this._displayValue();return u`
674
674
  <div class="dp">
675
675
  <div class="dp__reference">
676
676
  <logosphere-formfield
@@ -710,7 +710,7 @@
710
710
  >
711
711
  <ui-icon name="uil-times" size="14"></ui-icon>
712
712
  </button>
713
- `:m}
713
+ `:b}
714
714
  <button
715
715
  id=${this.inputId+"-ico"}
716
716
  slot="suffix"
@@ -750,11 +750,11 @@
750
750
  @close-request=${()=>this._toggleOpen(!1)}
751
751
  ></logosphere-calendar>
752
752
  </div>
753
- `:m}
753
+ `:b}
754
754
  </div>
755
- `}},n.LogosphereDatePicker.styles=[N`
756
- ${F(da)}
757
- `],A([c({type:String})],n.LogosphereDatePicker.prototype,"value",2),A([c({type:String})],n.LogosphereDatePicker.prototype,"min",2),A([c({type:String})],n.LogosphereDatePicker.prototype,"max",2),A([c({type:Boolean})],n.LogosphereDatePicker.prototype,"required",2),A([c({type:Boolean})],n.LogosphereDatePicker.prototype,"disabled",2),A([c({type:Boolean})],n.LogosphereDatePicker.prototype,"readonly",2),A([c({type:Number})],n.LogosphereDatePicker.prototype,"expandFactor",2),A([c({type:String})],n.LogosphereDatePicker.prototype,"placeholder",2),A([c({type:String})],n.LogosphereDatePicker.prototype,"label",2),A([c({type:String})],n.LogosphereDatePicker.prototype,"helper",2),A([c({type:String})],n.LogosphereDatePicker.prototype,"error",2),A([c({type:String})],n.LogosphereDatePicker.prototype,"size",2),A([c({type:String})],n.LogosphereDatePicker.prototype,"variant",2),A([c({type:Boolean})],n.LogosphereDatePicker.prototype,"rangeMode",2),A([c({type:Array})],n.LogosphereDatePicker.prototype,"disabledDays",2),A([c({type:String})],n.LogosphereDatePicker.prototype,"rangeStart",2),A([c({type:String})],n.LogosphereDatePicker.prototype,"rangeEnd",2),A([c({attribute:!1})],n.LogosphereDatePicker.prototype,"onChange",2),A([c({attribute:!1})],n.LogosphereDatePicker.prototype,"onRangeChange",2),A([$()],n.LogosphereDatePicker.prototype,"_open",2),A([$()],n.LogosphereDatePicker.prototype,"_rangeStart",2),A([$()],n.LogosphereDatePicker.prototype,"_rangeEnd",2),A([$()],n.LogosphereDatePicker.prototype,"_hasError",2),A([$()],n.LogosphereDatePicker.prototype,"_errorMsg",2),A([$()],n.LogosphereDatePicker.prototype,"_inputDraft",2),A([J(".dp__reference")],n.LogosphereDatePicker.prototype,"_referenceElement",2),A([J("[data-datepicker-popper]")],n.LogosphereDatePicker.prototype,"_popupElement",2),A([J("input")],n.LogosphereDatePicker.prototype,"_inputElement",2),n.LogosphereDatePicker=A([U("logosphere-datepicker")],n.LogosphereDatePicker);const fa=":host{display:block}.drawer{position:relative;font-family:var(--font-family-base)}.drawer__trigger{display:inline-flex}.drawer__panel{position:fixed;top:0;bottom:0;width:var(--drawer-width, 360px);max-width:min(100vw,var(--drawer-width, 360px));background:var(--color-body-bg);border-left:1px solid var(--color-border);box-shadow:var(--shadow-lg);z-index:var(--z-index-modal);display:flex;flex-direction:column;pointer-events:none;opacity:0;transition:transform var(--transition-speed-slow) var(--transition-timing),opacity var(--transition-speed-slow) linear}.drawer__panel--right{right:0;transform:translate(100%)}.drawer__panel--left{left:0;transform:translate(-100%);border-left:none;border-right:1px solid var(--color-border)}.drawer__panel--open{transform:translate(0);pointer-events:auto;opacity:1}.drawer__header{padding:var(--spacing-3) var(--spacing-4);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-2)}.drawer__title{margin:0;font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);color:var(--color-body-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer__close{width:28px;height:28px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-body-bg);display:inline-flex;align-items:center;justify-content:center;color:var(--color-body-text);cursor:pointer}.drawer__close:hover{background:var(--color-tertiary-bg)}.drawer__body{flex:1;overflow:auto;padding:var(--spacing-4)}";var ga=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,Ye=(i,e,t,r)=>{for(var o=r>1?void 0:r?ba(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ga(e,t,o),o};n.Drawer=class extends T{constructor(){super(...arguments),this.open=!1,this.title="",this.position="right",this.width=360,this.closeOnEsc=!0,this.containerSelector="",this._frameStyle="",this._onKeyDown=e=>{!this.open||!this.closeOnEsc||(e.key==="Escape"||e.key==="Esc")&&this._setOpen(!1)},this._onTriggerClick=()=>this._setOpen(!0),this._onCloseClick=()=>this._setOpen(!1),this._syncFrame=()=>{const e=this._resolveContainer().getBoundingClientRect(),t=Math.max(0,e.top),r=Math.max(0,window.innerHeight-e.bottom),o=Math.max(0,e.left),s=Math.max(0,window.innerWidth-e.right),a=Math.max(0,e.width);this._frameStyle=this.position==="right"?`top:${t}px;bottom:${r}px;right:${s}px;max-width:${a}px;`:`top:${t}px;bottom:${r}px;left:${o}px;max-width:${a}px;`}}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this._onKeyDown,!0),window.addEventListener("resize",this._syncFrame),window.addEventListener("scroll",this._syncFrame,!0),this.updateComplete.then(()=>this._syncFrame())}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._onKeyDown,!0),window.removeEventListener("resize",this._syncFrame),window.removeEventListener("scroll",this._syncFrame,!0)}updated(e){(e.has("open")||e.has("position")||e.has("width")||e.has("containerSelector"))&&this._syncFrame()}openDrawer(){this._setOpen(!0)}closeDrawer(){this._setOpen(!1)}_setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"drawer-open":"drawer-close",{bubbles:!0,composed:!0})))}_resolveContainer(){var e;if(this.containerSelector){const t=this.getRootNode();if("querySelector"in t){const o=t.querySelector(this.containerSelector);if(o)return o}const r=document.querySelector(this.containerSelector);if(r)return r}return(e=this.parentElement)!=null?e:this}render(){return u`
755
+ `}},a.LogosphereDatePicker.styles=[N`
756
+ ${F(fn)}
757
+ `],A([c({type:String})],a.LogosphereDatePicker.prototype,"value",2),A([c({type:String})],a.LogosphereDatePicker.prototype,"min",2),A([c({type:String})],a.LogosphereDatePicker.prototype,"max",2),A([c({type:Boolean})],a.LogosphereDatePicker.prototype,"required",2),A([c({type:Boolean})],a.LogosphereDatePicker.prototype,"disabled",2),A([c({type:Boolean})],a.LogosphereDatePicker.prototype,"readonly",2),A([c({type:Number})],a.LogosphereDatePicker.prototype,"expandFactor",2),A([c({type:String})],a.LogosphereDatePicker.prototype,"placeholder",2),A([c({type:String})],a.LogosphereDatePicker.prototype,"label",2),A([c({type:String})],a.LogosphereDatePicker.prototype,"helper",2),A([c({type:String})],a.LogosphereDatePicker.prototype,"error",2),A([c({type:String})],a.LogosphereDatePicker.prototype,"size",2),A([c({type:String})],a.LogosphereDatePicker.prototype,"variant",2),A([c({type:Boolean})],a.LogosphereDatePicker.prototype,"rangeMode",2),A([c({type:Array})],a.LogosphereDatePicker.prototype,"disabledDays",2),A([c({type:String})],a.LogosphereDatePicker.prototype,"rangeStart",2),A([c({type:String})],a.LogosphereDatePicker.prototype,"rangeEnd",2),A([c({attribute:!1})],a.LogosphereDatePicker.prototype,"onChange",2),A([c({attribute:!1})],a.LogosphereDatePicker.prototype,"onRangeChange",2),A([$()],a.LogosphereDatePicker.prototype,"_open",2),A([$()],a.LogosphereDatePicker.prototype,"_rangeStart",2),A([$()],a.LogosphereDatePicker.prototype,"_rangeEnd",2),A([$()],a.LogosphereDatePicker.prototype,"_hasError",2),A([$()],a.LogosphereDatePicker.prototype,"_errorMsg",2),A([$()],a.LogosphereDatePicker.prototype,"_inputDraft",2),A([J(".dp__reference")],a.LogosphereDatePicker.prototype,"_referenceElement",2),A([J("[data-datepicker-popper]")],a.LogosphereDatePicker.prototype,"_popupElement",2),A([J("input")],a.LogosphereDatePicker.prototype,"_inputElement",2),a.LogosphereDatePicker=A([U("logosphere-datepicker")],a.LogosphereDatePicker);const _n=":host{display:block}.drawer{position:relative;font-family:var(--font-family-base)}.drawer__trigger{display:inline-flex}.drawer__panel{position:fixed;top:0;bottom:0;width:var(--drawer-width, 360px);max-width:min(100vw,var(--drawer-width, 360px));background:var(--color-body-bg);border-left:1px solid var(--color-border);box-shadow:var(--shadow-lg);z-index:var(--z-index-modal);display:flex;flex-direction:column;pointer-events:none;opacity:0;transition:transform var(--transition-speed-slow) var(--transition-timing),opacity var(--transition-speed-slow) linear}.drawer__panel--right{right:0;transform:translate(100%)}.drawer__panel--left{left:0;transform:translate(-100%);border-left:none;border-right:1px solid var(--color-border)}.drawer__panel--open{transform:translate(0);pointer-events:auto;opacity:1}.drawer__header{padding:var(--spacing-3) var(--spacing-4);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-2)}.drawer__title{margin:0;font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);color:var(--color-body-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer__close{width:28px;height:28px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-body-bg);display:inline-flex;align-items:center;justify-content:center;color:var(--color-body-text);cursor:pointer}.drawer__close:hover{background:var(--color-tertiary-bg)}.drawer__body{flex:1;overflow:auto;padding:var(--spacing-4)}";var yn=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Ye=(i,e,t,r)=>{for(var o=r>1?void 0:r?wn(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&yn(e,t,o),o};a.Drawer=class extends T{constructor(){super(...arguments),this.open=!1,this.title="",this.position="right",this.width=360,this.closeOnEsc=!0,this.containerSelector="",this._frameStyle="",this._onKeyDown=e=>{!this.open||!this.closeOnEsc||(e.key==="Escape"||e.key==="Esc")&&this._setOpen(!1)},this._onTriggerClick=()=>this._setOpen(!0),this._onCloseClick=()=>this._setOpen(!1),this._syncFrame=()=>{const e=this._resolveContainer().getBoundingClientRect(),t=Math.max(0,e.top),r=Math.max(0,window.innerHeight-e.bottom),o=Math.max(0,e.left),s=Math.max(0,window.innerWidth-e.right),n=Math.max(0,e.width);this._frameStyle=this.position==="right"?`top:${t}px;bottom:${r}px;right:${s}px;max-width:${n}px;`:`top:${t}px;bottom:${r}px;left:${o}px;max-width:${n}px;`}}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this._onKeyDown,!0),window.addEventListener("resize",this._syncFrame),window.addEventListener("scroll",this._syncFrame,!0),this.updateComplete.then(()=>this._syncFrame())}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._onKeyDown,!0),window.removeEventListener("resize",this._syncFrame),window.removeEventListener("scroll",this._syncFrame,!0)}updated(e){(e.has("open")||e.has("position")||e.has("width")||e.has("containerSelector"))&&this._syncFrame()}openDrawer(){this._setOpen(!0)}closeDrawer(){this._setOpen(!1)}_setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"drawer-open":"drawer-close",{bubbles:!0,composed:!0})))}_resolveContainer(){var e;if(this.containerSelector){const t=this.getRootNode();if("querySelector"in t){const o=t.querySelector(this.containerSelector);if(o)return o}const r=document.querySelector(this.containerSelector);if(r)return r}return(e=this.parentElement)!=null?e:this}render(){return u`
758
758
  <div class="drawer">
759
759
  <div class="drawer__trigger" @click=${this._onTriggerClick}>
760
760
  <slot name="trigger"></slot>
@@ -778,7 +778,7 @@
778
778
  </div>
779
779
  </aside>
780
780
  </div>
781
- `}},n.Drawer.styles=[N`${F(fa)}`],Ye([c({type:Boolean,reflect:!0})],n.Drawer.prototype,"open",2),Ye([c({type:String})],n.Drawer.prototype,"title",2),Ye([c({type:String})],n.Drawer.prototype,"position",2),Ye([c({type:Number})],n.Drawer.prototype,"width",2),Ye([c({type:Boolean})],n.Drawer.prototype,"closeOnEsc",2),Ye([c({type:String})],n.Drawer.prototype,"containerSelector",2),n.Drawer=Ye([U("logosphere-drawer")],n.Drawer);const ma=":host{display:block}.dm{font-family:var(--font-family-base)}.dm__container{width:100%;max-width:896px;margin:0 auto;padding:var(--spacing-6);background-color:var(--color-body-bg);border-radius:var(--radius-base);box-shadow:var(--shadow-md)}.dm__header{margin-bottom:var(--spacing-6)}.dm__title{font-size:var(--font-size-2xl);font-weight:var(--font-weight-bold);color:var(--color-body-text);margin:0 0 var(--spacing-2) 0}.dm__stats{display:flex;gap:var(--spacing-4);font-size:var(--font-size-sm);color:var(--color-tertiary)}.dm__form{margin-bottom:var(--spacing-6);padding:var(--spacing-4);background-color:var(--color-tertiary-bg);border-radius:var(--radius-base)}.dm__form-row{display:flex;gap:var(--spacing-4)}.dm__form-field{flex:1}.dm__form-field--filename{width:192px;flex:none}.dm__input{width:100%;padding:var(--spacing-2) var(--spacing-3);border:1px solid var(--color-border);border-radius:var(--radius-sm);outline:none;font-family:var(--font-family-base);font-size:var(--font-size-sm);background-color:var(--color-body-bg);color:var(--color-body-text);box-sizing:border-box;transition:border-color var(--transition-speed-fast) var(--transition-timing)}.dm__input:focus{border-color:var(--color-primary)}.dm__submit-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-4);background-color:var(--color-primary);color:#fff;border:none;border-radius:var(--radius-sm);cursor:pointer;font-family:var(--font-family-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:background-color var(--transition-speed-fast) var(--transition-timing);white-space:nowrap}.dm__submit-btn:hover:not(:disabled){background-color:var(--color-primary-hover)}.dm__submit-btn:disabled{opacity:.5;cursor:not-allowed}.dm__form-note{margin-top:var(--spacing-3);font-size:var(--font-size-xs);color:var(--color-tertiary)}.dm__form-note p{margin:0}.dm__spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-bottom-color:#fff;border-radius:var(--radius-full);animation:dm-spin .8s linear infinite}.dm__spinner--sm{width:12px;height:12px;border-color:#3b82f64d;border-bottom-color:#3b82f6}@keyframes dm-spin{to{transform:rotate(360deg)}}@keyframes dm-pulse{0%,to{opacity:1}50%{opacity:.5}}.dm__list{display:flex;flex-direction:column;gap:var(--spacing-4)}.dm__empty{text-align:center;padding:var(--spacing-8) 0;color:var(--color-tertiary);font-size:var(--font-size-sm)}.dm__item{border:1px solid var(--color-border);border-radius:var(--radius-base);padding:var(--spacing-4)}.dm__item--error{border-color:var(--color-primary-border-subtle);background-color:var(--color-danger-bg-subtle)}.dm__item-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-3)}.dm__item-info{flex:1;min-width:0}.dm__item-name{font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-body-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.dm__item-url{font-size:var(--font-size-xs);color:var(--color-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.dm__item-controls{display:flex;align-items:center;gap:var(--spacing-2)}.dm__status{font-size:var(--font-size-xs);padding:var(--spacing-1) var(--spacing-2);border-radius:var(--radius-full);font-weight:var(--font-weight-medium)}.dm__status--downloading{background-color:var(--color-info-bg-subtle);color:var(--color-info-text-emphasis)}.dm__status--paused{background-color:var(--color-warning-bg-subtle);color:var(--color-warning-text-emphasis)}.dm__status--completed{background-color:var(--color-success-bg-subtle);color:var(--color-success-text-emphasis)}.dm__status--error{background-color:var(--color-danger-bg-subtle);color:var(--color-danger-text-emphasis)}.dm__status--pending{background-color:var(--color-gray-100);color:var(--color-gray-800)}.dm__remove-btn{background:none;border:none;cursor:pointer;color:var(--color-tertiary);padding:var(--spacing-1);line-height:1;font-size:var(--font-size-sm);border-radius:var(--radius-sm);transition:color var(--transition-speed-fast) var(--transition-timing)}.dm__remove-btn:hover{color:var(--color-danger)}.dm__progress{margin-bottom:var(--spacing-3)}.dm__progress-labels{display:flex;justify-content:space-between;font-size:var(--font-size-xs);color:var(--color-tertiary);margin-bottom:var(--spacing-1)}.dm__progress-track{width:100%;background-color:var(--color-gray-200);border-radius:var(--radius-full);height:8px;overflow:hidden}.dm__progress-bar{height:8px;border-radius:var(--radius-full);transition:width .3s ease}.dm__progress-bar--downloading{background-color:var(--color-info-active)}.dm__progress-bar--paused{background-color:var(--color-warning-active)}.dm__progress-bar--completed{background-color:var(--color-success)}.dm__progress-bar--error{background-color:var(--color-danger)}.dm__progress-bar--pending{background-color:var(--color-gray-400)}.dm__progress-bar--indeterminate{width:100%;animation:dm-pulse 1.5s ease-in-out infinite}.dm__item-footer{display:flex;justify-content:space-between;font-size:var(--font-size-xs);color:var(--color-tertiary)}.dm__item-speeds{display:flex;gap:var(--spacing-4)}.dm__item-actions{display:flex;gap:var(--spacing-2)}.dm__action-btn{display:inline-flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-2);border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;font-family:var(--font-family-base);font-size:var(--font-size-xs);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dm__action-btn--pause{color:var(--color-info-active)}.dm__action-btn--pause:hover{background-color:var(--color-info-bg-subtle);color:var(--color-info-text-emphasis)}.dm__action-btn--resume{color:var(--color-success)}.dm__action-btn--resume:hover{background-color:var(--color-success-bg-subtle);color:var(--color-success-text-emphasis)}.dm__status-completed{color:var(--color-success)}.dm__error-info{color:var(--color-danger)}.dm__error-label{font-weight:var(--font-weight-medium)}.dm__error-detail{font-size:var(--font-size-xs)}.dm__chunks{margin-top:var(--spacing-3);font-size:var(--font-size-xs);color:var(--color-tertiary);display:flex;flex-direction:column;gap:2px}.dm__actions{margin-top:var(--spacing-6);display:flex;justify-content:space-between;align-items:center}.dm__clear-btn{padding:var(--spacing-2) var(--spacing-4);font-size:var(--font-size-sm);color:var(--color-tertiary);background:none;border:none;cursor:pointer;font-family:var(--font-family-base);transition:color var(--transition-speed-fast) var(--transition-timing)}.dm__clear-btn:hover{color:var(--color-body-text)}.dm__persist-note{font-size:var(--font-size-sm);color:var(--color-tertiary)}";var va=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,Ze=(i,e,t,r)=>{for(var o=r>1?void 0:r?_a(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&va(e,t,o),o};n.DownloadManager=class extends T{constructor(){super(...arguments),this.chunkSize=2*1024*1024,this.maxConcurrentDownloads=3,this.maxConcurrentChunks=4,this.downloads=[],this.isAddingFiles=!1,this.activeDownloads=new Map,this.storageKey="download-manager-state",this.clearCompleted=()=>{this.downloads=this.downloads.filter(e=>e.status!=="completed"),this.requestUpdate(),this.saveState()},this.handleAddDownload=e=>{e.preventDefault();const t=e.target,r=new globalThis.FormData(t),o=r.get("url"),s=r.get("filename");if(!(o!=null&&o.trim()))return;const a=this.downloads.find(l=>l.url===o.trim());a&&a.status!=="error"||(this.addDownload(o.trim(),(s==null?void 0:s.trim())||void 0),t.reset())}}connectedCallback(){super.connectedCallback(),this.loadState(),this.setupVisibilityChangeHandler()}disconnectedCallback(){super.disconnectedCallback(),this.saveState()}setupVisibilityChangeHandler(){document.addEventListener("visibilitychange",()=>{document.hidden&&this.saveState()})}loadState(){try{const e=globalThis.localStorage.getItem(this.storageKey);if(e){const t=JSON.parse(e);this.downloads=t.downloads||[],this.downloads.forEach(r=>{var o;r.status==="downloading"&&(r.status="paused"),r.status==="error"&&((o=r.error)!=null&&o.includes("Failed to fetch"))&&(r.status="paused",r.error=void 0)})}}catch(e){console.error("Failed to load download state:",e)}}saveState(){try{const e={downloads:this.downloads.map(t=>jt($t({},t),{status:t.status==="downloading"?"paused":t.status}))};globalThis.localStorage.setItem(this.storageKey,JSON.stringify(e))}catch(e){console.error("Failed to save download state:",e)}}async getFileSize(e){try{const t=await globalThis.fetch(e,{method:"HEAD",mode:"cors",credentials:"omit",signal:globalThis.AbortSignal.timeout(1e4)});if(t.ok){const r=t.headers.get("content-length");if(r){const o=parseInt(r);if(!isNaN(o)&&o>0)return o}}try{const r=await globalThis.fetch(e,{method:"GET",headers:{Range:"bytes=0-0"},mode:"cors",credentials:"omit",signal:globalThis.AbortSignal.timeout(1e4)});if(r.ok){const o=r.headers.get("content-range");if(o){const a=o.match(/\/(\d+)/);if(a){const l=parseInt(a[1]);if(!isNaN(l)&&l>0)return l}}const s=r.headers.get("content-length");if(s){const a=parseInt(s);if(!isNaN(a)&&a>0)return a}}}catch(r){}return 0}catch(t){return(!(t instanceof Error)||!["AbortError","ERR_EMPTY_RESPONSE","Failed to fetch"].some(r=>t.message.includes(r)))&&console.warn("Failed to get file size:",t),0}}createChunks(e){if(e===0)return[{start:0,end:this.chunkSize-1,downloaded:0,status:"pending"}];const t=[];for(let r=0;r<e;r+=this.chunkSize)t.push({start:r,end:Math.min(r+this.chunkSize-1,e-1),downloaded:0,status:"pending"});return t}async downloadChunk(e,t){const r=t.end>t.start?`bytes=${t.start+t.downloaded}-${t.end}`:`bytes=${t.start+t.downloaded}-`,o=await globalThis.fetch(e,{headers:{Range:r},signal:globalThis.AbortSignal.any([new globalThis.AbortController().signal,globalThis.AbortSignal.timeout(6e4)]),mode:"cors",credentials:"omit"});if(!o.ok){if(o.status===416)return{data:new Uint8Array(0),isComplete:!0};throw new Error(`HTTP ${o.status}: ${o.statusText}`)}const s=new Uint8Array(await o.arrayBuffer()),a=o.headers.get("content-range");let l=!1,d;if(a){const p=a.match(/\/(\d+)/);if(p){d=parseInt(p[1]);const h=a.match(/(\d+)-(\d+)/);h&&(l=parseInt(h[2])>=d-1)}}else s.length===0&&(l=!0);return{data:s,isComplete:l,actualSize:d}}async downloadFile(e){const t=new globalThis.AbortController;this.activeDownloads.set(e.id,t);try{e.status="downloading",e.startTime=Date.now(),this.requestUpdate();const r=e.chunks.filter(d=>d.status==="pending"),o=new Set,s=async d=>{const p=e.chunks[d];if(!(!p||p.status!=="pending")){p.status="downloading",o.add(d),this.requestUpdate();try{if(e.status!=="downloading")return;const h=await this.downloadChunk(e.url,p);if(e.status!=="downloading")return;p.downloaded=h.data.length,p.status="completed",e.downloaded+=p.downloaded,h.actualSize&&e.size===0&&(e.size=h.actualSize,e.size>this.chunkSize&&e.chunks.push(...this.createChunks(e.size).slice(1))),o.delete(d),this.requestUpdate(),this.saveState(),(h.isComplete||e.chunks.every(f=>f.status==="completed"))&&(e.status="completed",e.endTime=Date.now(),this.requestUpdate(),this.saveState())}catch(h){p.status="error",o.delete(d),e.chunks.filter(f=>f.status==="error").length===e.chunks.length&&(e.status="error",e.error=h instanceof Error?h.message:"All chunks failed"),this.requestUpdate(),this.saveState()}await new Promise(h=>setTimeout(h,1))}},a=[];let l=0;for(;(l<r.length||o.size>0)&&e.status==="downloading";){for(;o.size<this.maxConcurrentChunks&&l<r.length&&e.status==="downloading";)a.push(s(l)),l++;if(o.size>0)try{await Promise.race([Promise.race(a),new Promise(d=>setTimeout(d,100))])}catch(d){}await new Promise(d=>setTimeout(d,10))}}catch(r){(!(r instanceof Error)||r.name!=="AbortError")&&(e.status="error",e.error=r instanceof Error?r.message:"Unknown error",this.requestUpdate())}finally{this.activeDownloads.delete(e.id),this.saveState()}}pauseDownload(e){const t=this.activeDownloads.get(e);t&&(t.abort(),this.activeDownloads.delete(e));const r=this.downloads.find(o=>o.id===e);(r==null?void 0:r.status)==="downloading"&&(r.status="paused",this.requestUpdate(),this.saveState())}resumeDownload(e){const t=this.downloads.find(r=>r.id===e);(t==null?void 0:t.status)==="paused"&&this.downloadFile(t)}removeDownload(e){this.pauseDownload(e),this.downloads=this.downloads.filter(t=>t.id!==e),this.requestUpdate(),this.saveState()}formatBytes(e){if(e===0)return"0 Bytes";const t=1024,r=["Bytes","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,o)).toFixed(2))+" "+r[o]}formatDuration(e){const t=Math.floor(e/1e3),r=Math.floor(t/60),o=Math.floor(r/60);return o>0?`${o}h ${r%60}m ${t%60}s`:r>0?`${r}m ${t%60}s`:`${t}s`}getProgressPercentage(e){return e.size===0?e.status==="completed"?100:0:Math.round(e.downloaded/e.size*100)}getDownloadSpeed(e){if(!e.startTime)return"0 KB/s";const t=(Date.now()-e.startTime)/1e3;return t===0?"0 KB/s":this.formatBytes(e.downloaded/t)+"/s"}getETA(e){if(!e.startTime||e.downloaded===0||e.size===0)return"Unknown";const t=(Date.now()-e.startTime)/1e3;return this.formatDuration((e.size-e.downloaded)/(e.downloaded/t)*1e3)}async addDownload(e,t){try{this.isAddingFiles=!0,this.requestUpdate();try{new globalThis.URL(e)}catch(a){throw new Error("Invalid URL format")}const r=await this.getFileSize(e),s={id:`download_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,url:e,filename:t||e.split("/").pop()||"unknown",size:r,downloaded:0,status:"pending",chunks:this.createChunks(r)};this.downloads.push(s),this.requestUpdate(),this.saveState(),this.downloadFile(s)}catch(r){const o=r instanceof Error?r.message:"Unknown error occurred";this.downloads.push({id:`error_${Date.now()}`,url:e,filename:t||e.split("/").pop()||"unknown",size:0,downloaded:0,status:"error",chunks:[],error:o}),this.requestUpdate(),this.saveState()}finally{this.isAddingFiles=!1,this.requestUpdate()}}getStatusClass(e){var r;return(r={downloading:"dm__status--downloading",paused:"dm__status--paused",completed:"dm__status--completed",error:"dm__status--error"}[e])!=null?r:"dm__status--pending"}getProgressBarClass(e){var r;return(r={downloading:"dm__progress-bar--downloading",paused:"dm__progress-bar--paused",completed:"dm__progress-bar--completed",error:"dm__progress-bar--error"}[e])!=null?r:"dm__progress-bar--pending"}render(){const e=this.downloads.filter(o=>o.status==="downloading").length,t=this.downloads.filter(o=>o.status==="completed").length,r=this.downloads.filter(o=>o.status==="paused").length;return u`
781
+ `}},a.Drawer.styles=[N`${F(_n)}`],Ye([c({type:Boolean,reflect:!0})],a.Drawer.prototype,"open",2),Ye([c({type:String})],a.Drawer.prototype,"title",2),Ye([c({type:String})],a.Drawer.prototype,"position",2),Ye([c({type:Number})],a.Drawer.prototype,"width",2),Ye([c({type:Boolean})],a.Drawer.prototype,"closeOnEsc",2),Ye([c({type:String})],a.Drawer.prototype,"containerSelector",2),a.Drawer=Ye([U("logosphere-drawer")],a.Drawer);const xn=":host{display:block}.dm{font-family:var(--font-family-base)}.dm__container{width:100%;max-width:896px;margin:0 auto;padding:var(--spacing-6);background-color:var(--color-body-bg);border-radius:var(--radius-base);box-shadow:var(--shadow-md)}.dm__header{margin-bottom:var(--spacing-6)}.dm__title{font-size:var(--font-size-2xl);font-weight:var(--font-weight-bold);color:var(--color-body-text);margin:0 0 var(--spacing-2) 0}.dm__stats{display:flex;gap:var(--spacing-4);font-size:var(--font-size-sm);color:var(--color-tertiary)}.dm__form{margin-bottom:var(--spacing-6);padding:var(--spacing-4);background-color:var(--color-tertiary-bg);border-radius:var(--radius-base)}.dm__form-row{display:flex;gap:var(--spacing-4)}.dm__form-field{flex:1}.dm__form-field--filename{width:192px;flex:none}.dm__input{width:100%;padding:var(--spacing-2) var(--spacing-3);border:1px solid var(--color-border);border-radius:var(--radius-sm);outline:none;font-family:var(--font-family-base);font-size:var(--font-size-sm);background-color:var(--color-body-bg);color:var(--color-body-text);box-sizing:border-box;transition:border-color var(--transition-speed-fast) var(--transition-timing)}.dm__input:focus{border-color:var(--color-primary)}.dm__submit-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-4);background-color:var(--color-primary);color:#fff;border:none;border-radius:var(--radius-sm);cursor:pointer;font-family:var(--font-family-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:background-color var(--transition-speed-fast) var(--transition-timing);white-space:nowrap}.dm__submit-btn:hover:not(:disabled){background-color:var(--color-primary-hover)}.dm__submit-btn:disabled{opacity:.5;cursor:not-allowed}.dm__form-note{margin-top:var(--spacing-3);font-size:var(--font-size-xs);color:var(--color-tertiary)}.dm__form-note p{margin:0}.dm__spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-bottom-color:#fff;border-radius:var(--radius-full);animation:dm-spin .8s linear infinite}.dm__spinner--sm{width:12px;height:12px;border-color:#3b82f64d;border-bottom-color:#3b82f6}@keyframes dm-spin{to{transform:rotate(360deg)}}@keyframes dm-pulse{0%,to{opacity:1}50%{opacity:.5}}.dm__list{display:flex;flex-direction:column;gap:var(--spacing-4)}.dm__empty{text-align:center;padding:var(--spacing-8) 0;color:var(--color-tertiary);font-size:var(--font-size-sm)}.dm__item{border:1px solid var(--color-border);border-radius:var(--radius-base);padding:var(--spacing-4)}.dm__item--error{border-color:var(--color-primary-border-subtle);background-color:var(--color-danger-bg-subtle)}.dm__item-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-3)}.dm__item-info{flex:1;min-width:0}.dm__item-name{font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-body-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.dm__item-url{font-size:var(--font-size-xs);color:var(--color-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.dm__item-controls{display:flex;align-items:center;gap:var(--spacing-2)}.dm__status{font-size:var(--font-size-xs);padding:var(--spacing-1) var(--spacing-2);border-radius:var(--radius-full);font-weight:var(--font-weight-medium)}.dm__status--downloading{background-color:var(--color-info-bg-subtle);color:var(--color-info-text-emphasis)}.dm__status--paused{background-color:var(--color-warning-bg-subtle);color:var(--color-warning-text-emphasis)}.dm__status--completed{background-color:var(--color-success-bg-subtle);color:var(--color-success-text-emphasis)}.dm__status--error{background-color:var(--color-danger-bg-subtle);color:var(--color-danger-text-emphasis)}.dm__status--pending{background-color:var(--color-gray-100);color:var(--color-gray-800)}.dm__remove-btn{background:none;border:none;cursor:pointer;color:var(--color-tertiary);padding:var(--spacing-1);line-height:1;font-size:var(--font-size-sm);border-radius:var(--radius-sm);transition:color var(--transition-speed-fast) var(--transition-timing)}.dm__remove-btn:hover{color:var(--color-danger)}.dm__progress{margin-bottom:var(--spacing-3)}.dm__progress-labels{display:flex;justify-content:space-between;font-size:var(--font-size-xs);color:var(--color-tertiary);margin-bottom:var(--spacing-1)}.dm__progress-track{width:100%;background-color:var(--color-gray-200);border-radius:var(--radius-full);height:8px;overflow:hidden}.dm__progress-bar{height:8px;border-radius:var(--radius-full);transition:width .3s ease}.dm__progress-bar--downloading{background-color:var(--color-info-active)}.dm__progress-bar--paused{background-color:var(--color-warning-active)}.dm__progress-bar--completed{background-color:var(--color-success)}.dm__progress-bar--error{background-color:var(--color-danger)}.dm__progress-bar--pending{background-color:var(--color-gray-400)}.dm__progress-bar--indeterminate{width:100%;animation:dm-pulse 1.5s ease-in-out infinite}.dm__item-footer{display:flex;justify-content:space-between;font-size:var(--font-size-xs);color:var(--color-tertiary)}.dm__item-speeds{display:flex;gap:var(--spacing-4)}.dm__item-actions{display:flex;gap:var(--spacing-2)}.dm__action-btn{display:inline-flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-2);border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;font-family:var(--font-family-base);font-size:var(--font-size-xs);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dm__action-btn--pause{color:var(--color-info-active)}.dm__action-btn--pause:hover{background-color:var(--color-info-bg-subtle);color:var(--color-info-text-emphasis)}.dm__action-btn--resume{color:var(--color-success)}.dm__action-btn--resume:hover{background-color:var(--color-success-bg-subtle);color:var(--color-success-text-emphasis)}.dm__status-completed{color:var(--color-success)}.dm__error-info{color:var(--color-danger)}.dm__error-label{font-weight:var(--font-weight-medium)}.dm__error-detail{font-size:var(--font-size-xs)}.dm__chunks{margin-top:var(--spacing-3);font-size:var(--font-size-xs);color:var(--color-tertiary);display:flex;flex-direction:column;gap:2px}.dm__actions{margin-top:var(--spacing-6);display:flex;justify-content:space-between;align-items:center}.dm__clear-btn{padding:var(--spacing-2) var(--spacing-4);font-size:var(--font-size-sm);color:var(--color-tertiary);background:none;border:none;cursor:pointer;font-family:var(--font-family-base);transition:color var(--transition-speed-fast) var(--transition-timing)}.dm__clear-btn:hover{color:var(--color-body-text)}.dm__persist-note{font-size:var(--font-size-sm);color:var(--color-tertiary)}";var $n=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Ze=(i,e,t,r)=>{for(var o=r>1?void 0:r?kn(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&$n(e,t,o),o};a.DownloadManager=class extends T{constructor(){super(...arguments),this.chunkSize=2*1024*1024,this.maxConcurrentDownloads=3,this.maxConcurrentChunks=4,this.downloads=[],this.isAddingFiles=!1,this.activeDownloads=new Map,this.storageKey="download-manager-state",this.clearCompleted=()=>{this.downloads=this.downloads.filter(e=>e.status!=="completed"),this.requestUpdate(),this.saveState()},this.handleAddDownload=e=>{e.preventDefault();const t=e.target,r=new globalThis.FormData(t),o=r.get("url"),s=r.get("filename");if(!(o!=null&&o.trim()))return;const n=this.downloads.find(l=>l.url===o.trim());n&&n.status!=="error"||(this.addDownload(o.trim(),(s==null?void 0:s.trim())||void 0),t.reset())}}connectedCallback(){super.connectedCallback(),this.loadState(),this.setupVisibilityChangeHandler()}disconnectedCallback(){super.disconnectedCallback(),this.saveState()}setupVisibilityChangeHandler(){document.addEventListener("visibilitychange",()=>{document.hidden&&this.saveState()})}loadState(){try{const e=globalThis.localStorage.getItem(this.storageKey);if(e){const t=JSON.parse(e);this.downloads=t.downloads||[],this.downloads.forEach(r=>{var o;r.status==="downloading"&&(r.status="paused"),r.status==="error"&&((o=r.error)!=null&&o.includes("Failed to fetch"))&&(r.status="paused",r.error=void 0)})}}catch(e){console.error("Failed to load download state:",e)}}saveState(){try{const e={downloads:this.downloads.map(t=>jt($t({},t),{status:t.status==="downloading"?"paused":t.status}))};globalThis.localStorage.setItem(this.storageKey,JSON.stringify(e))}catch(e){console.error("Failed to save download state:",e)}}async getFileSize(e){try{const t=await globalThis.fetch(e,{method:"HEAD",mode:"cors",credentials:"omit",signal:globalThis.AbortSignal.timeout(1e4)});if(t.ok){const r=t.headers.get("content-length");if(r){const o=parseInt(r);if(!isNaN(o)&&o>0)return o}}try{const r=await globalThis.fetch(e,{method:"GET",headers:{Range:"bytes=0-0"},mode:"cors",credentials:"omit",signal:globalThis.AbortSignal.timeout(1e4)});if(r.ok){const o=r.headers.get("content-range");if(o){const n=o.match(/\/(\d+)/);if(n){const l=parseInt(n[1]);if(!isNaN(l)&&l>0)return l}}const s=r.headers.get("content-length");if(s){const n=parseInt(s);if(!isNaN(n)&&n>0)return n}}}catch(r){}return 0}catch(t){return(!(t instanceof Error)||!["AbortError","ERR_EMPTY_RESPONSE","Failed to fetch"].some(r=>t.message.includes(r)))&&console.warn("Failed to get file size:",t),0}}createChunks(e){if(e===0)return[{start:0,end:this.chunkSize-1,downloaded:0,status:"pending"}];const t=[];for(let r=0;r<e;r+=this.chunkSize)t.push({start:r,end:Math.min(r+this.chunkSize-1,e-1),downloaded:0,status:"pending"});return t}async downloadChunk(e,t){const r=t.end>t.start?`bytes=${t.start+t.downloaded}-${t.end}`:`bytes=${t.start+t.downloaded}-`,o=await globalThis.fetch(e,{headers:{Range:r},signal:globalThis.AbortSignal.any([new globalThis.AbortController().signal,globalThis.AbortSignal.timeout(6e4)]),mode:"cors",credentials:"omit"});if(!o.ok){if(o.status===416)return{data:new Uint8Array(0),isComplete:!0};throw new Error(`HTTP ${o.status}: ${o.statusText}`)}const s=new Uint8Array(await o.arrayBuffer()),n=o.headers.get("content-range");let l=!1,d;if(n){const p=n.match(/\/(\d+)/);if(p){d=parseInt(p[1]);const h=n.match(/(\d+)-(\d+)/);h&&(l=parseInt(h[2])>=d-1)}}else s.length===0&&(l=!0);return{data:s,isComplete:l,actualSize:d}}async downloadFile(e){const t=new globalThis.AbortController;this.activeDownloads.set(e.id,t);try{e.status="downloading",e.startTime=Date.now(),this.requestUpdate();const r=e.chunks.filter(d=>d.status==="pending"),o=new Set,s=async d=>{const p=e.chunks[d];if(!(!p||p.status!=="pending")){p.status="downloading",o.add(d),this.requestUpdate();try{if(e.status!=="downloading")return;const h=await this.downloadChunk(e.url,p);if(e.status!=="downloading")return;p.downloaded=h.data.length,p.status="completed",e.downloaded+=p.downloaded,h.actualSize&&e.size===0&&(e.size=h.actualSize,e.size>this.chunkSize&&e.chunks.push(...this.createChunks(e.size).slice(1))),o.delete(d),this.requestUpdate(),this.saveState(),(h.isComplete||e.chunks.every(f=>f.status==="completed"))&&(e.status="completed",e.endTime=Date.now(),this.requestUpdate(),this.saveState())}catch(h){p.status="error",o.delete(d),e.chunks.filter(f=>f.status==="error").length===e.chunks.length&&(e.status="error",e.error=h instanceof Error?h.message:"All chunks failed"),this.requestUpdate(),this.saveState()}await new Promise(h=>setTimeout(h,1))}},n=[];let l=0;for(;(l<r.length||o.size>0)&&e.status==="downloading";){for(;o.size<this.maxConcurrentChunks&&l<r.length&&e.status==="downloading";)n.push(s(l)),l++;if(o.size>0)try{await Promise.race([Promise.race(n),new Promise(d=>setTimeout(d,100))])}catch(d){}await new Promise(d=>setTimeout(d,10))}}catch(r){(!(r instanceof Error)||r.name!=="AbortError")&&(e.status="error",e.error=r instanceof Error?r.message:"Unknown error",this.requestUpdate())}finally{this.activeDownloads.delete(e.id),this.saveState()}}pauseDownload(e){const t=this.activeDownloads.get(e);t&&(t.abort(),this.activeDownloads.delete(e));const r=this.downloads.find(o=>o.id===e);(r==null?void 0:r.status)==="downloading"&&(r.status="paused",this.requestUpdate(),this.saveState())}resumeDownload(e){const t=this.downloads.find(r=>r.id===e);(t==null?void 0:t.status)==="paused"&&this.downloadFile(t)}removeDownload(e){this.pauseDownload(e),this.downloads=this.downloads.filter(t=>t.id!==e),this.requestUpdate(),this.saveState()}formatBytes(e){if(e===0)return"0 Bytes";const t=1024,r=["Bytes","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,o)).toFixed(2))+" "+r[o]}formatDuration(e){const t=Math.floor(e/1e3),r=Math.floor(t/60),o=Math.floor(r/60);return o>0?`${o}h ${r%60}m ${t%60}s`:r>0?`${r}m ${t%60}s`:`${t}s`}getProgressPercentage(e){return e.size===0?e.status==="completed"?100:0:Math.round(e.downloaded/e.size*100)}getDownloadSpeed(e){if(!e.startTime)return"0 KB/s";const t=(Date.now()-e.startTime)/1e3;return t===0?"0 KB/s":this.formatBytes(e.downloaded/t)+"/s"}getETA(e){if(!e.startTime||e.downloaded===0||e.size===0)return"Unknown";const t=(Date.now()-e.startTime)/1e3;return this.formatDuration((e.size-e.downloaded)/(e.downloaded/t)*1e3)}async addDownload(e,t){try{this.isAddingFiles=!0,this.requestUpdate();try{new globalThis.URL(e)}catch(n){throw new Error("Invalid URL format")}const r=await this.getFileSize(e),s={id:`download_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,url:e,filename:t||e.split("/").pop()||"unknown",size:r,downloaded:0,status:"pending",chunks:this.createChunks(r)};this.downloads.push(s),this.requestUpdate(),this.saveState(),this.downloadFile(s)}catch(r){const o=r instanceof Error?r.message:"Unknown error occurred";this.downloads.push({id:`error_${Date.now()}`,url:e,filename:t||e.split("/").pop()||"unknown",size:0,downloaded:0,status:"error",chunks:[],error:o}),this.requestUpdate(),this.saveState()}finally{this.isAddingFiles=!1,this.requestUpdate()}}getStatusClass(e){var r;return(r={downloading:"dm__status--downloading",paused:"dm__status--paused",completed:"dm__status--completed",error:"dm__status--error"}[e])!=null?r:"dm__status--pending"}getProgressBarClass(e){var r;return(r={downloading:"dm__progress-bar--downloading",paused:"dm__progress-bar--paused",completed:"dm__progress-bar--completed",error:"dm__progress-bar--error"}[e])!=null?r:"dm__progress-bar--pending"}render(){const e=this.downloads.filter(o=>o.status==="downloading").length,t=this.downloads.filter(o=>o.status==="completed").length,r=this.downloads.filter(o=>o.status==="paused").length;return u`
782
782
  <div class="dm">
783
783
  <div class="dm__container">
784
784
  <div class="dm__header">
@@ -874,11 +874,11 @@
874
874
  `:""}
875
875
  </div>
876
876
  </div>
877
- `}},n.DownloadManager.styles=[N`${F(ma)}`],Ze([c({type:Number})],n.DownloadManager.prototype,"chunkSize",2),Ze([c({type:Number})],n.DownloadManager.prototype,"maxConcurrentDownloads",2),Ze([c({type:Number})],n.DownloadManager.prototype,"maxConcurrentChunks",2),Ze([$()],n.DownloadManager.prototype,"downloads",2),Ze([$()],n.DownloadManager.prototype,"isAddingFiles",2),n.DownloadManager=Ze([U("download-manager")],n.DownloadManager);const ya=".tree{width:100%;font-family:var(--font-family-base)}.tree__list,.tree__children{list-style:none;margin:0;padding:0}.tree__item{margin:0;padding:0}.tree__row{display:flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-2) var(--spacing-3);padding-left:calc(var(--spacing-3) + (var(--tree-level, 0) * 14px));border-radius:var(--radius-sm);color:var(--color-body-text);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.tree--icons .tree__row{justify-content:center;padding:0;width:44px;height:44px;min-height:44px;margin:0 auto}.tree__row:hover{background-color:var(--color-tertiary-bg)}.tree__row:focus-visible{outline:2px solid var(--color-secondary);outline-offset:1px}.tree__row--disabled{opacity:.5;cursor:not-allowed}.tree__row--active .tree__label,.tree__row--active .tree__icon{color:var(--color-primary)}.tree:not(.tree--icons) .tree__row--active{background-color:var(--color-tertiary-bg)}.tree__icon{width:20px;min-width:20px;display:inline-flex;align-items:center;justify-content:center;color:inherit}.tree--icons .tree__icon{width:20px;min-width:20px;height:20px}.tree--icons .tree__row--active{background-color:var(--color-primary)}.tree--icons .tree__row--active .tree__icon{color:#fff}.tree--icons .tree__row--active:hover{background-color:var(--color-primary-hover)}.tree__chevron-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:none;background:transparent;color:var(--color-tertiary);cursor:pointer;padding:0;flex-shrink:0}.tree__chevron-btn--right{margin-left:auto}.tree__chevron{transform:rotate(-90deg);transition:transform var(--transition-speed-fast) var(--transition-timing)}.tree__chevron--open{transform:rotate(0)}.tree__chevron-spacer{width:20px;height:20px;flex-shrink:0}.tree__label{display:inline-flex;align-items:center;font-size:var(--font-size-sm);color:inherit}";var wa=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,Ee=(i,e,t,r)=>{for(var o=r>1?void 0:r?xa(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wa(e,t,o),o};n.TreeMenu=class extends T{constructor(){super(...arguments),this.items=[],this.expandedIds=[],this.expandOnLabelClick=!0,this.chevronPosition="left",this.showLabels=!0,this.iconSize=16,this._expandedSet=new Set}willUpdate(e){var t;e.has("expandedIds")&&(this._expandedSet=new Set((t=this.expandedIds)!=null?t:[]))}_isExpanded(e){return this._expandedSet.has(e)}_emitToggle(e,t){this.dispatchEvent(new CustomEvent("toggle",{detail:{item:e,expanded:t},bubbles:!0,composed:!0}))}_emitItemClick(e){this.dispatchEvent(new CustomEvent("item-click",{detail:{item:e},bubbles:!0,composed:!0}))}_emitNodeClick(e,t){this.dispatchEvent(new CustomEvent("node-click",{detail:{item:e,hasChildren:t},bubbles:!0,composed:!0}))}_setExpanded(e,t){t?this._expandedSet.add(e.id):this._expandedSet.delete(e.id),this.expandedIds=Array.from(this._expandedSet),this._emitToggle(e,t)}_toggle(e,t){var r;t.stopPropagation(),!(e.disabled||!((r=e.children)!=null&&r.length))&&this._setExpanded(e,!this._isExpanded(e.id))}_handleItemClick(e,t){var o,s;if(t.stopPropagation(),e.disabled)return;const r=!!((o=e.children)!=null&&o.length);if(this._emitNodeClick(e,r),r&&this.expandOnLabelClick){this._setExpanded(e,!this._isExpanded(e.id));return}r||((s=e.onClick)==null||s.call(e,e),this._emitItemClick(e))}_handleRowKeydown(e,t){t.key!=="Enter"&&t.key!==" "||(t.preventDefault(),this._handleItemClick(e,t))}_renderIcon(e){return e.iconName?u`
877
+ `}},a.DownloadManager.styles=[N`${F(xn)}`],Ze([c({type:Number})],a.DownloadManager.prototype,"chunkSize",2),Ze([c({type:Number})],a.DownloadManager.prototype,"maxConcurrentDownloads",2),Ze([c({type:Number})],a.DownloadManager.prototype,"maxConcurrentChunks",2),Ze([$()],a.DownloadManager.prototype,"downloads",2),Ze([$()],a.DownloadManager.prototype,"isAddingFiles",2),a.DownloadManager=Ze([U("download-manager")],a.DownloadManager);const Cn=".tree{width:100%;font-family:var(--font-family-base)}.tree__list,.tree__children{list-style:none;margin:0;padding:0}.tree__item{margin:0;padding:0}.tree__row{display:flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-2) var(--spacing-3);padding-left:calc(var(--spacing-3) + (var(--tree-level, 0) * 14px));border-radius:var(--radius-sm);color:var(--color-body-text);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.tree--icons .tree__row{justify-content:center;padding:0;width:44px;height:44px;min-height:44px;margin:0 auto}.tree__row:hover{background-color:var(--color-tertiary-bg)}.tree__row:focus-visible{outline:2px solid var(--color-secondary);outline-offset:1px}.tree__row--disabled{opacity:.5;cursor:not-allowed}.tree__row--active .tree__label,.tree__row--active .tree__icon{color:var(--color-primary)}.tree:not(.tree--icons) .tree__row--active{background-color:var(--color-tertiary-bg)}.tree__icon{width:20px;min-width:20px;display:inline-flex;align-items:center;justify-content:center;color:inherit}.tree--icons .tree__icon{width:20px;min-width:20px;height:20px}.tree--icons .tree__row--active{background-color:var(--color-primary)}.tree--icons .tree__row--active .tree__icon{color:#fff}.tree--icons .tree__row--active:hover{background-color:var(--color-primary-hover)}.tree__chevron-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:none;background:transparent;color:var(--color-tertiary);cursor:pointer;padding:0;flex-shrink:0}.tree__chevron-btn--right{margin-left:auto}.tree__chevron{transform:rotate(-90deg);transition:transform var(--transition-speed-fast) var(--transition-timing)}.tree__chevron--open{transform:rotate(0)}.tree__chevron-spacer{width:20px;height:20px;flex-shrink:0}.tree__label{display:inline-flex;align-items:center;font-size:var(--font-size-sm);color:inherit}";var En=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,Ee=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sn(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&En(e,t,o),o};a.TreeMenu=class extends T{constructor(){super(...arguments),this.items=[],this.expandedIds=[],this.expandOnLabelClick=!0,this.chevronPosition="left",this.showLabels=!0,this.iconSize=16,this._expandedSet=new Set}willUpdate(e){var t;e.has("expandedIds")&&(this._expandedSet=new Set((t=this.expandedIds)!=null?t:[]))}_isExpanded(e){return this._expandedSet.has(e)}_emitToggle(e,t){this.dispatchEvent(new CustomEvent("toggle",{detail:{item:e,expanded:t},bubbles:!0,composed:!0}))}_emitItemClick(e){this.dispatchEvent(new CustomEvent("item-click",{detail:{item:e},bubbles:!0,composed:!0}))}_emitNodeClick(e,t){this.dispatchEvent(new CustomEvent("node-click",{detail:{item:e,hasChildren:t},bubbles:!0,composed:!0}))}_setExpanded(e,t){t?this._expandedSet.add(e.id):this._expandedSet.delete(e.id),this.expandedIds=Array.from(this._expandedSet),this._emitToggle(e,t)}_toggle(e,t){var r;t.stopPropagation(),!(e.disabled||!((r=e.children)!=null&&r.length))&&this._setExpanded(e,!this._isExpanded(e.id))}_handleItemClick(e,t){var o,s;if(t.stopPropagation(),e.disabled)return;const r=!!((o=e.children)!=null&&o.length);if(this._emitNodeClick(e,r),r&&this.expandOnLabelClick){this._setExpanded(e,!this._isExpanded(e.id));return}r||((s=e.onClick)==null||s.call(e,e),this._emitItemClick(e))}_handleRowKeydown(e,t){t.key!=="Enter"&&t.key!==" "||(t.preventDefault(),this._handleItemClick(e,t))}_renderIcon(e){return e.iconName?u`
878
878
  <span class="tree__icon">
879
879
  <ui-icon name=${e.iconName} .size=${this.iconSize}></ui-icon>
880
880
  </span>
881
- `:e.iconHtml?u`<span class="tree__icon">${Qt(e.iconHtml)}</span>`:m}_renderChevron(e,t){var o;const r=!!((o=e.children)!=null&&o.length);return this.showLabels?r?u`
881
+ `:e.iconHtml?u`<span class="tree__icon">${Qt(e.iconHtml)}</span>`:b}_renderChevron(e,t){var o;const r=!!((o=e.children)!=null&&o.length);return this.showLabels?r?u`
882
882
  <button
883
883
  type="button"
884
884
  class="tree__chevron-btn ${this.chevronPosition==="right"?"tree__chevron-btn--right":""}"
@@ -891,7 +891,7 @@
891
891
  size="20"
892
892
  ></ui-icon>
893
893
  </button>
894
- `:u`<span class="tree__chevron-spacer"></span>`:m}_renderNode(e,t){var a;const r=!!((a=e.children)!=null&&a.length),o=r?this._isExpanded(e.id):!1,s=this.showLabels?`--tree-level:${t};`:"--tree-level:0;";return u`
894
+ `:u`<span class="tree__chevron-spacer"></span>`:b}_renderNode(e,t){var n;const r=!!((n=e.children)!=null&&n.length),o=r?this._isExpanded(e.id):!1,s=this.showLabels?`--tree-level:${t};`:"--tree-level:0;";return u`
895
895
  <li class="tree__item">
896
896
  <div
897
897
  class="tree__row ${e.disabled?"tree__row--disabled":""} ${e.active?"tree__row--active":""}"
@@ -902,17 +902,17 @@
902
902
  @keydown=${l=>this._handleRowKeydown(e,l)}
903
903
  title=${this.showLabels?"":e.label}
904
904
  >
905
- ${this.chevronPosition==="left"?this._renderChevron(e,o):m}
905
+ ${this.chevronPosition==="left"?this._renderChevron(e,o):b}
906
906
  ${this._renderIcon(e)}
907
- ${this.showLabels?u`<span class="tree__label">${e.label}</span>`:m}
908
- ${this.chevronPosition==="right"?this._renderChevron(e,o):m}
907
+ ${this.showLabels?u`<span class="tree__label">${e.label}</span>`:b}
908
+ ${this.chevronPosition==="right"?this._renderChevron(e,o):b}
909
909
  </div>
910
910
 
911
911
  ${this.showLabels&&r&&o?u`
912
912
  <ul class="tree__children">
913
913
  ${e.children.map(l=>this._renderNode(l,t+1))}
914
914
  </ul>
915
- `:m}
915
+ `:b}
916
916
  </li>
917
917
  `}render(){return u`
918
918
  <nav class="tree ${this.showLabels?"":"tree--icons"}" aria-label="Tree Menu">
@@ -920,7 +920,7 @@
920
920
  ${this.items.map(e=>this._renderNode(e,0))}
921
921
  </ul>
922
922
  </nav>
923
- `}},n.TreeMenu.styles=[N`${F(ya)}`],Ee([c({attribute:!1})],n.TreeMenu.prototype,"items",2),Ee([c({type:Array})],n.TreeMenu.prototype,"expandedIds",2),Ee([c({type:Boolean})],n.TreeMenu.prototype,"expandOnLabelClick",2),Ee([c({type:String})],n.TreeMenu.prototype,"chevronPosition",2),Ee([c({type:Boolean})],n.TreeMenu.prototype,"showLabels",2),Ee([c({type:Number})],n.TreeMenu.prototype,"iconSize",2),Ee([$()],n.TreeMenu.prototype,"_expandedSet",2),n.TreeMenu=Ee([U("logosphere-tree-menu")],n.TreeMenu);var $a=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,Ke=(i,e,t,r)=>{for(var o=r>1?void 0:r?ka(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$a(e,t,o),o};n.LeftMenuItemElement=class extends T{constructor(){super(...arguments),this.itemId="",this.label="",this.disabled=!1,this.active=!1}render(){return u`<slot></slot>`}},Ke([c({type:String})],n.LeftMenuItemElement.prototype,"itemId",2),Ke([c({type:String})],n.LeftMenuItemElement.prototype,"label",2),Ke([c({type:Boolean})],n.LeftMenuItemElement.prototype,"disabled",2),Ke([c({type:Boolean})],n.LeftMenuItemElement.prototype,"active",2),Ke([c({attribute:!1})],n.LeftMenuItemElement.prototype,"onClick",2),n.LeftMenuItemElement=Ke([U("leftmenu-item")],n.LeftMenuItemElement);const Ca=':host{display:block;position:relative;height:100%;font-family:var(--font-family-base)}.lm{position:relative;height:100%;transition:width var(--transition-speed-base) var(--transition-timing)}.lm__panel{width:var(--lm-closed-width);min-width:var(--lm-closed-width);height:100%;background:var(--color-body-bg);border-right:1px solid var(--color-border);display:flex;flex-direction:column;overflow:hidden;overflow-x:hidden;box-sizing:border-box;transition:width var(--transition-speed-base) var(--transition-timing),min-width var(--transition-speed-base) var(--transition-timing),box-shadow var(--transition-speed-base) var(--transition-timing)}.lm--open .lm__panel{width:var(--lm-open-width);min-width:var(--lm-open-width)}.lm--overlay.lm--open .lm__panel{position:absolute;left:0;top:0;box-shadow:var(--shadow-md);z-index:var(--z-index-dropdown)}.lm__brand{padding:var(--spacing-3);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;box-sizing:border-box}.lm--closed .lm__brand{width:64px;height:64px;padding:0}.lm__search{padding:var(--spacing-4) var(--spacing-3)}.lm__nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:var(--spacing-3);scrollbar-width:thin}.lm__nav logosphere-tree-menu{width:100%}.lm__custom{border-top:1px solid var(--color-border);margin-top:var(--spacing-4);padding:var(--spacing-2)}.lm--closed .lm__custom{padding:var(--spacing-2) 0}.lm__custom--hidden{display:none}.lm--closed .lm__nav{padding-left:0;padding-right:0;scrollbar-gutter:auto;scrollbar-color:var(--color-border) transparent}.lm--closed .lm__nav::-webkit-scrollbar{width:4px;height:4px}.lm--closed .lm__nav::-webkit-scrollbar-track{background:transparent}.lm--closed .lm__nav::-webkit-scrollbar-thumb{background-color:var(--color-border);border-radius:999px}.lm--closed .lm__nav:hover::-webkit-scrollbar-thumb{background-color:var(--color-tertiary)}.lm__footer{margin-top:auto;border-top:1px solid var(--color-border);padding:var(--spacing-2);display:flex;align-items:center;justify-content:center;gap:var(--spacing-2)}.lm--closed .lm__footer{flex-direction:column;justify-content:center}.lm__ctrl{width:32px;height:32px;border:1px solid var(--color-border);background:var(--color-body-bg);border-radius:var(--radius-sm);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--color-body-text)}.lm__ctrl:hover{background:var(--color-tertiary-bg)}.lm__pin-icon--inactive{color:var(--color-tertiary)}.lm__pin-icon--active{color:var(--color-body-text)}.lm__toggle-icon{transform:rotate(180deg);transition:transform var(--transition-speed-base) var(--transition-timing)}.lm__toggle-icon--open{transform:rotate(0)}::slotted(leftmenu-item){display:none!important}::slotted([slot="logo-open"]),::slotted([slot="logo-closed"]){display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%}::slotted([slot="custom-open"]),::slotted([slot="custom-closed"]){display:block;width:100%}';var Ea=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,le=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sa(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ea(e,t,o),o};n.LeftMenu=class extends T{constructor(){super(...arguments),this.open=!1,this.pinned=!1,this.closedWidth=64,this.openWidth=248,this.storageKey="logosphere-leftmenu-state",this._nodes=[],this._expandedIds=new Set,this._search="",this._searchExpandedIds=new Set,this._hasCustomOpen=!1,this._hasCustomClosed=!1,this._isHydratingState=!1,this._onSlotChange=e=>{const r=e.target.assignedElements({flatten:!0}).filter(o=>o.tagName==="LEFTMENU-ITEM");this._nodes=r.map((o,s)=>this._mapItemElement(o,`root-${s}`))},this._onCustomOpenSlotChange=e=>{const t=e.target;this._hasCustomOpen=t.assignedElements({flatten:!0}).length>0},this._onCustomClosedSlotChange=e=>{const t=e.target;this._hasCustomClosed=t.assignedElements({flatten:!0}).length>0},this._handleSearchInput=e=>{var o;const r=(o=e.detail)==null?void 0:o.value;typeof r=="string"&&this._setSearch(r)},this._toggleOpen=()=>{this.open=!this.open},this._togglePin=()=>{this.pinned=!this.pinned,this.dispatchEvent(new CustomEvent("pin-change",{detail:{pinned:this.pinned},bubbles:!0,composed:!0}))},this._handleTreeToggle=e=>{e.stopPropagation();const{item:t,expanded:r}=e.detail;r?this._expandedIds.add(t.id):this._expandedIds.delete(t.id),this._expandedIds=new Set(this._expandedIds)},this._handleTreeNodeClick=e=>{this.open||!e.detail.hasChildren||(this.open=!0,this._expandedIds.add(e.detail.item.id),this._expandedIds=new Set(this._expandedIds))},this._handleTreeItemClick=e=>{e.stopPropagation();const t=e.detail.item.data;this.dispatchEvent(new CustomEvent("item-click",{detail:{item:t!=null?t:e.detail.item},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this._loadPersistedState()}updated(e){this._isHydratingState||(e.has("open")||e.has("pinned"))&&this._persistState()}_loadPersistedState(){if(typeof window!="undefined")try{const e=window.localStorage.getItem(this.storageKey);if(!e)return;const t=JSON.parse(e);this._isHydratingState=!0,typeof t.open=="boolean"&&(this.open=t.open),typeof t.pinned=="boolean"&&(this.pinned=t.pinned),this._isHydratingState=!1}catch(e){this._isHydratingState=!1}}_persistState(){if(typeof window!="undefined")try{window.localStorage.setItem(this.storageKey,JSON.stringify({open:this.open,pinned:this.pinned}))}catch(e){}}_mapItemElement(e,t){var d;const r=e.itemId||e.id||t,o=Array.from(e.children).find(p=>p.getAttribute("slot")==="icon"),s=o==null?void 0:o.querySelector("ui-icon"),a=Array.from(e.children).filter(p=>p.tagName==="LEFTMENU-ITEM"&&p.getAttribute("slot")==="children"),l=Array.from(e.childNodes).filter(p=>p.nodeType===Node.TEXT_NODE).map(p=>{var h;return(h=p.textContent)!=null?h:""}).join(" ").replace(/\s+/g," ").trim();return{id:r,label:(e.label||l||r).trim(),disabled:e.disabled,active:e.active,iconName:(d=s==null?void 0:s.getAttribute("name"))!=null?d:null,iconHtml:o?o.innerHTML:null,onClick:e.onClick?()=>{var p;return(p=e.onClick)==null?void 0:p.call(e,e)}:void 0,children:a.map((p,h)=>this._mapItemElement(p,`${r}-${h}`))}}_setSearch(e){if(this._search=e,!e){this._searchExpandedIds=new Set;return}const t=new Set,r=o=>{let s=!1;return o.forEach(a=>{const l=a.label.toLocaleLowerCase().includes(e.toLocaleLowerCase()),d=r(a.children);d&&t.add(a.id),l&&a.children.length&&t.add(a.id),s=s||l||d}),s};r(this._nodes),this._searchExpandedIds=t}_filterNodes(e,t){if(!t)return e;const r=t.toLocaleLowerCase(),o=s=>{const a=s.children.map(o).filter(Boolean);return!s.label.toLocaleLowerCase().includes(r)&&a.length===0?null:jt($t({},s),{children:a})};return e.map(o).filter(Boolean)}_toTreeItems(e){return e.map(t=>{var r;return{id:t.id,label:t.label,disabled:t.disabled,active:t.active,iconName:(r=t.iconName)!=null?r:void 0,iconHtml:t.iconHtml,onClick:t.onClick?()=>{var o;(o=t.onClick)==null||o.call(t,t)}:void 0,data:t,children:this._toTreeItems(t.children)}})}_effectiveExpandedIds(){const e=new Set(this._expandedIds);return this._search&&this._searchExpandedIds.forEach(t=>e.add(t)),Array.from(e)}render(){const e=this._filterNodes(this._nodes,this._search),t=this._toTreeItems(e),r=this.pinned?this.open?this.openWidth:this.closedWidth:this.closedWidth;return u`
923
+ `}},a.TreeMenu.styles=[N`${F(Cn)}`],Ee([c({attribute:!1})],a.TreeMenu.prototype,"items",2),Ee([c({type:Array})],a.TreeMenu.prototype,"expandedIds",2),Ee([c({type:Boolean})],a.TreeMenu.prototype,"expandOnLabelClick",2),Ee([c({type:String})],a.TreeMenu.prototype,"chevronPosition",2),Ee([c({type:Boolean})],a.TreeMenu.prototype,"showLabels",2),Ee([c({type:Number})],a.TreeMenu.prototype,"iconSize",2),Ee([$()],a.TreeMenu.prototype,"_expandedSet",2),a.TreeMenu=Ee([U("logosphere-tree-menu")],a.TreeMenu);var Mn=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Ke=(i,e,t,r)=>{for(var o=r>1?void 0:r?Dn(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&Mn(e,t,o),o};a.LeftMenuItemElement=class extends T{constructor(){super(...arguments),this.itemId="",this.label="",this.disabled=!1,this.active=!1}render(){return u`<slot></slot>`}},Ke([c({type:String})],a.LeftMenuItemElement.prototype,"itemId",2),Ke([c({type:String})],a.LeftMenuItemElement.prototype,"label",2),Ke([c({type:Boolean})],a.LeftMenuItemElement.prototype,"disabled",2),Ke([c({type:Boolean})],a.LeftMenuItemElement.prototype,"active",2),Ke([c({attribute:!1})],a.LeftMenuItemElement.prototype,"onClick",2),a.LeftMenuItemElement=Ke([U("leftmenu-item")],a.LeftMenuItemElement);const An=':host{display:block;position:relative;height:100%;font-family:var(--font-family-base)}.lm{position:relative;height:100%;transition:width var(--transition-speed-base) var(--transition-timing)}.lm__panel{width:var(--lm-closed-width);min-width:var(--lm-closed-width);height:100%;background:var(--color-body-bg);border-right:1px solid var(--color-border);display:flex;flex-direction:column;overflow:hidden;overflow-x:hidden;box-sizing:border-box;transition:width var(--transition-speed-base) var(--transition-timing),min-width var(--transition-speed-base) var(--transition-timing),box-shadow var(--transition-speed-base) var(--transition-timing)}.lm--open .lm__panel{width:var(--lm-open-width);min-width:var(--lm-open-width)}.lm--overlay.lm--open .lm__panel{position:absolute;left:0;top:0;box-shadow:var(--shadow-md);z-index:var(--z-index-dropdown)}.lm__brand{padding:var(--spacing-3);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;box-sizing:border-box}.lm--closed .lm__brand{width:64px;height:64px;padding:0}.lm__search{padding:var(--spacing-4) var(--spacing-3)}.lm__nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:var(--spacing-3);scrollbar-width:thin}.lm__nav logosphere-tree-menu{width:100%}.lm__custom{border-top:1px solid var(--color-border);margin-top:var(--spacing-4);padding:var(--spacing-2)}.lm--closed .lm__custom{padding:var(--spacing-2) 0}.lm__custom--hidden{display:none}.lm--closed .lm__nav{padding-left:0;padding-right:0;scrollbar-gutter:auto;scrollbar-color:var(--color-border) transparent}.lm--closed .lm__nav::-webkit-scrollbar{width:4px;height:4px}.lm--closed .lm__nav::-webkit-scrollbar-track{background:transparent}.lm--closed .lm__nav::-webkit-scrollbar-thumb{background-color:var(--color-border);border-radius:999px}.lm--closed .lm__nav:hover::-webkit-scrollbar-thumb{background-color:var(--color-tertiary)}.lm__footer{margin-top:auto;border-top:1px solid var(--color-border);padding:var(--spacing-2);display:flex;align-items:center;justify-content:center;gap:var(--spacing-2)}.lm--closed .lm__footer{flex-direction:column;justify-content:center}.lm__ctrl{width:32px;height:32px;border:1px solid var(--color-border);background:var(--color-body-bg);border-radius:var(--radius-sm);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--color-body-text)}.lm__ctrl:hover{background:var(--color-tertiary-bg)}.lm__pin-icon--inactive{color:var(--color-tertiary)}.lm__pin-icon--active{color:var(--color-body-text)}.lm__toggle-icon{transform:rotate(180deg);transition:transform var(--transition-speed-base) var(--transition-timing)}.lm__toggle-icon--open{transform:rotate(0)}::slotted(leftmenu-item){display:none!important}::slotted([slot="logo-open"]),::slotted([slot="logo-closed"]){display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%}::slotted([slot="custom-open"]),::slotted([slot="custom-closed"]){display:block;width:100%}';var zn=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,le=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pn(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&zn(e,t,o),o};a.LeftMenu=class extends T{constructor(){super(...arguments),this.open=!1,this.pinned=!1,this.closedWidth=64,this.openWidth=248,this.storageKey="logosphere-leftmenu-state",this._nodes=[],this._expandedIds=new Set,this._search="",this._searchExpandedIds=new Set,this._hasCustomOpen=!1,this._hasCustomClosed=!1,this._isHydratingState=!1,this._onSlotChange=e=>{const r=e.target.assignedElements({flatten:!0}).filter(o=>o.tagName==="LEFTMENU-ITEM");this._nodes=r.map((o,s)=>this._mapItemElement(o,`root-${s}`))},this._onCustomOpenSlotChange=e=>{const t=e.target;this._hasCustomOpen=t.assignedElements({flatten:!0}).length>0},this._onCustomClosedSlotChange=e=>{const t=e.target;this._hasCustomClosed=t.assignedElements({flatten:!0}).length>0},this._handleSearchInput=e=>{var o;const r=(o=e.detail)==null?void 0:o.value;typeof r=="string"&&this._setSearch(r)},this._toggleOpen=()=>{this.open=!this.open},this._togglePin=()=>{this.pinned=!this.pinned,this.dispatchEvent(new CustomEvent("pin-change",{detail:{pinned:this.pinned},bubbles:!0,composed:!0}))},this._handleTreeToggle=e=>{e.stopPropagation();const{item:t,expanded:r}=e.detail;r?this._expandedIds.add(t.id):this._expandedIds.delete(t.id),this._expandedIds=new Set(this._expandedIds)},this._handleTreeNodeClick=e=>{this.open||!e.detail.hasChildren||(this.open=!0,this._expandedIds.add(e.detail.item.id),this._expandedIds=new Set(this._expandedIds))},this._handleTreeItemClick=e=>{e.stopPropagation();const t=e.detail.item.data;this.dispatchEvent(new CustomEvent("item-click",{detail:{item:t!=null?t:e.detail.item},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this._loadPersistedState()}updated(e){this._isHydratingState||(e.has("open")||e.has("pinned"))&&this._persistState()}_loadPersistedState(){if(typeof window!="undefined")try{const e=window.localStorage.getItem(this.storageKey);if(!e)return;const t=JSON.parse(e);this._isHydratingState=!0,typeof t.open=="boolean"&&(this.open=t.open),typeof t.pinned=="boolean"&&(this.pinned=t.pinned),this._isHydratingState=!1}catch(e){this._isHydratingState=!1}}_persistState(){if(typeof window!="undefined")try{window.localStorage.setItem(this.storageKey,JSON.stringify({open:this.open,pinned:this.pinned}))}catch(e){}}_mapItemElement(e,t){var d;const r=e.itemId||e.id||t,o=Array.from(e.children).find(p=>p.getAttribute("slot")==="icon"),s=o==null?void 0:o.querySelector("ui-icon"),n=Array.from(e.children).filter(p=>p.tagName==="LEFTMENU-ITEM"&&p.getAttribute("slot")==="children"),l=Array.from(e.childNodes).filter(p=>p.nodeType===Node.TEXT_NODE).map(p=>{var h;return(h=p.textContent)!=null?h:""}).join(" ").replace(/\s+/g," ").trim();return{id:r,label:(e.label||l||r).trim(),disabled:e.disabled,active:e.active,iconName:(d=s==null?void 0:s.getAttribute("name"))!=null?d:null,iconHtml:o?o.innerHTML:null,onClick:e.onClick?()=>{var p;return(p=e.onClick)==null?void 0:p.call(e,e)}:void 0,children:n.map((p,h)=>this._mapItemElement(p,`${r}-${h}`))}}_setSearch(e){if(this._search=e,!e){this._searchExpandedIds=new Set;return}const t=new Set,r=o=>{let s=!1;return o.forEach(n=>{const l=n.label.toLocaleLowerCase().includes(e.toLocaleLowerCase()),d=r(n.children);d&&t.add(n.id),l&&n.children.length&&t.add(n.id),s=s||l||d}),s};r(this._nodes),this._searchExpandedIds=t}_filterNodes(e,t){if(!t)return e;const r=t.toLocaleLowerCase(),o=s=>{const n=s.children.map(o).filter(Boolean);return!s.label.toLocaleLowerCase().includes(r)&&n.length===0?null:jt($t({},s),{children:n})};return e.map(o).filter(Boolean)}_toTreeItems(e){return e.map(t=>{var r;return{id:t.id,label:t.label,disabled:t.disabled,active:t.active,iconName:(r=t.iconName)!=null?r:void 0,iconHtml:t.iconHtml,onClick:t.onClick?()=>{var o;(o=t.onClick)==null||o.call(t,t)}:void 0,data:t,children:this._toTreeItems(t.children)}})}_effectiveExpandedIds(){const e=new Set(this._expandedIds);return this._search&&this._searchExpandedIds.forEach(t=>e.add(t)),Array.from(e)}render(){const e=this._filterNodes(this._nodes,this._search),t=this._toTreeItems(e),r=this.pinned?this.open?this.openWidth:this.closedWidth:this.closedWidth;return u`
924
924
  <aside
925
925
  class="lm ${this.open?"lm--open":"lm--closed"} ${this.pinned?"lm--pinned":"lm--overlay"}"
926
926
  style=${`--lm-open-width:${this.openWidth}px; --lm-closed-width:${this.closedWidth}px; width:${r}px;`}
@@ -942,7 +942,7 @@
942
942
  <ui-icon slot="prefix" name="uil-search" size="16"></ui-icon>
943
943
  </logosphere-input>
944
944
  </div>
945
- `:m}
945
+ `:b}
946
946
 
947
947
  <nav class="lm__nav">
948
948
  <logosphere-tree-menu
@@ -991,9 +991,9 @@
991
991
  </div>
992
992
  </div>
993
993
  </aside>
994
- `}},n.LeftMenu.styles=[N`
995
- ${F(Ca)}
996
- `],le([c({type:Boolean,reflect:!0})],n.LeftMenu.prototype,"open",2),le([c({type:Boolean,reflect:!0})],n.LeftMenu.prototype,"pinned",2),le([c({type:Number})],n.LeftMenu.prototype,"closedWidth",2),le([c({type:Number})],n.LeftMenu.prototype,"openWidth",2),le([c({type:String})],n.LeftMenu.prototype,"storageKey",2),le([$()],n.LeftMenu.prototype,"_nodes",2),le([$()],n.LeftMenu.prototype,"_expandedIds",2),le([$()],n.LeftMenu.prototype,"_search",2),le([$()],n.LeftMenu.prototype,"_searchExpandedIds",2),le([$()],n.LeftMenu.prototype,"_hasCustomOpen",2),le([$()],n.LeftMenu.prototype,"_hasCustomClosed",2),n.LeftMenu=le([U("logosphere-leftmenu")],n.LeftMenu);const Ma=".modal__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--z-index-modal-backdrop);display:flex;align-items:center;justify-content:center;background-color:#00000080;padding:var(--spacing-4);font-family:var(--font-family-base)}.modal__dialog{width:100%;max-width:720px;border-radius:var(--radius-lg);border:1px solid var(--color-border);overflow:hidden;box-shadow:var(--shadow-xl);background-color:var(--color-body-bg);display:grid;grid-template-rows:auto 1fr auto}.modal__header{padding:var(--spacing-4) var(--spacing-4) var(--spacing-2);border-bottom:1px solid var(--color-border);display:flex;align-items:center;gap:var(--spacing-2)}.modal__header-content{flex:1;min-width:0}.modal__title{font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);color:var(--color-body-text);margin:0}.modal__body{padding:var(--spacing-4)}.modal__footer{padding:var(--spacing-4);display:flex;flex-wrap:wrap;gap:var(--spacing-3);justify-content:flex-end;border-top:1px solid var(--color-border)}";var Da=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,Se=(i,e,t,r)=>{for(var o=r>1?void 0:r?Aa(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Da(e,t,o),o};n.Modal=class extends T{constructor(){super(...arguments),this.open=!1,this.title="",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.showBack=!1,this.showClose=!1,this.hasFooterContent=!1,this.onKeyDown=e=>{this.open&&this.closeOnEsc&&e.key==="Escape"&&this.setOpen(!1)},this.onBackdropClick=e=>{var r;if(!this.closeOnBackdrop)return;const t=(r=this.shadowRoot)==null?void 0:r.querySelector(".__modal-content");t&&!t.contains(e.target)&&this.setOpen(!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.onKeyDown)}openModal(){this.setOpen(!0)}closeModal(){this.setOpen(!1)}setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"modal-open":"modal-close",{bubbles:!0})))}checkFooterContent(){this.hasFooterContent=this.querySelector('[slot="footer"]')!==null}updated(e){super.updated(e),this.checkFooterContent()}render(){return this.open?u`
994
+ `}},a.LeftMenu.styles=[N`
995
+ ${F(An)}
996
+ `],le([c({type:Boolean,reflect:!0})],a.LeftMenu.prototype,"open",2),le([c({type:Boolean,reflect:!0})],a.LeftMenu.prototype,"pinned",2),le([c({type:Number})],a.LeftMenu.prototype,"closedWidth",2),le([c({type:Number})],a.LeftMenu.prototype,"openWidth",2),le([c({type:String})],a.LeftMenu.prototype,"storageKey",2),le([$()],a.LeftMenu.prototype,"_nodes",2),le([$()],a.LeftMenu.prototype,"_expandedIds",2),le([$()],a.LeftMenu.prototype,"_search",2),le([$()],a.LeftMenu.prototype,"_searchExpandedIds",2),le([$()],a.LeftMenu.prototype,"_hasCustomOpen",2),le([$()],a.LeftMenu.prototype,"_hasCustomClosed",2),a.LeftMenu=le([U("logosphere-leftmenu")],a.LeftMenu);const On=".modal__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--z-index-modal-backdrop);display:flex;align-items:center;justify-content:center;background-color:#00000080;padding:var(--spacing-4);font-family:var(--font-family-base)}.modal__dialog{width:100%;max-width:720px;border-radius:var(--radius-lg);border:1px solid var(--color-border);overflow:hidden;box-shadow:var(--shadow-xl);background-color:var(--color-body-bg);display:grid;grid-template-rows:auto 1fr auto}.modal__header{padding:var(--spacing-4) var(--spacing-4) var(--spacing-2);border-bottom:1px solid var(--color-border);display:flex;align-items:center;gap:var(--spacing-2)}.modal__header-content{flex:1;min-width:0}.modal__title{font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);color:var(--color-body-text);margin:0}.modal__body{padding:var(--spacing-4)}.modal__footer{padding:var(--spacing-4);display:flex;flex-wrap:wrap;gap:var(--spacing-3);justify-content:flex-end;border-top:1px solid var(--color-border)}";var Ln=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Se=(i,e,t,r)=>{for(var o=r>1?void 0:r?Tn(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&Ln(e,t,o),o};a.Modal=class extends T{constructor(){super(...arguments),this.open=!1,this.title="",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.showBack=!1,this.showClose=!1,this.hasFooterContent=!1,this.onKeyDown=e=>{this.open&&this.closeOnEsc&&e.key==="Escape"&&this.setOpen(!1)},this.onBackdropClick=e=>{var r;if(!this.closeOnBackdrop)return;const t=(r=this.shadowRoot)==null?void 0:r.querySelector(".__modal-content");t&&!e.composedPath().includes(t)&&this.setOpen(!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.onKeyDown)}openModal(){this.setOpen(!0)}closeModal(){this.setOpen(!1)}setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"modal-open":"modal-close",{bubbles:!0})))}checkFooterContent(){this.hasFooterContent=this.querySelector('[slot="footer"]')!==null}updated(e){super.updated(e),this.checkFooterContent()}render(){return this.open?u`
997
997
  <div
998
998
  class="modal__backdrop"
999
999
  role="presentation"
@@ -1031,7 +1031,7 @@
1031
1031
  `:""}
1032
1032
  </div>
1033
1033
  </div>
1034
- `:u``}},n.Modal.styles=[N`${F(Ma)}`],Se([c({type:Boolean,reflect:!0})],n.Modal.prototype,"open",2),Se([c({type:String})],n.Modal.prototype,"title",2),Se([c({type:Boolean})],n.Modal.prototype,"closeOnEsc",2),Se([c({type:Boolean})],n.Modal.prototype,"closeOnBackdrop",2),Se([c({type:Boolean})],n.Modal.prototype,"showBack",2),Se([c({type:Boolean})],n.Modal.prototype,"showClose",2),Se([c({type:Boolean,state:!0})],n.Modal.prototype,"hasFooterContent",2),n.Modal=Se([U("logosphere-modal")],n.Modal);const za=".tab{width:100%;font-family:var(--font-family-base)}.tab__list{display:flex;overflow-x:auto;overflow-y:hidden;border-bottom:1px solid var(--color-border);scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}.tab__list::-webkit-scrollbar{display:none}.tab__button{display:inline-flex;flex-direction:row;align-items:center;gap:var(--spacing-2);padding:var(--spacing-3) var(--spacing-4);min-width:120px;position:relative;cursor:pointer;border:none;border-bottom:2px solid transparent;background:transparent;font-family:var(--font-family-base);white-space:nowrap;transition:background-color var(--transition-speed-base) var(--transition-timing),border-color var(--transition-speed-base) var(--transition-timing)}.tab__button:hover:not(.tab__button--disabled):not(.tab__button--active){background-color:var(--color-tertiary-bg)}.tab__button--active{border-bottom-color:var(--color-primary)}.tab__button--disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.tab__icon{font-size:var(--font-size-xl);flex-shrink:0;color:inherit;line-height:1}.tab__content{display:flex;flex-direction:column;align-items:flex-start}.tab__label{font-weight:var(--font-weight-medium);font-size:var(--font-size-sm);color:var(--color-body-text)}.tab__label--inactive{color:var(--color-tertiary)}.tab__description{font-size:var(--font-size-xs);text-align:left;color:var(--color-tertiary)}.tab__description--active{color:var(--color-secondary)}.tab__panel{padding:var(--spacing-4);outline:none}.tab__panel--hidden{display:none}";var Oa=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Me=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pa(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Oa(e,t,o),o};n.LogosphereTab=class extends T{constructor(){super(...arguments),this.tabs=[],this.activeTab="",this.lazy=!0,this.variant="default",this._focusedIndex=0,this._renderedTabs=new Set}connectedCallback(){super.connectedCallback(),!this.activeTab&&this.tabs.length>0&&(this.activeTab=this.tabs[0].id)}willUpdate(e){if(super.willUpdate(e),e.has("activeTab")&&this.activeTab){this._renderedTabs.add(this.activeTab);const t=this.tabs.findIndex(r=>r.id===this.activeTab);t!==-1&&(this._focusedIndex=t)}e.has("tabs")&&this.tabs.length>0&&(this.tabs.some(r=>r.id===this.activeTab)||(this.activeTab=this.tabs[0].id),this._focusedIndex=this.tabs.findIndex(r=>r.id===this.activeTab))}handleTabClick(e,t){if(t)return;const r=this.activeTab;this.activeTab=e,this._focusedIndex=this.tabs.findIndex(o=>o.id===e),this.dispatchEvent(new CustomEvent("tab-change",{detail:{oldTab:r,newTab:e},bubbles:!0,composed:!0}))}handleKeyDown(e){var s,a,l,d,p;const{tabs:t}=this;if(t.filter(h=>!h.disabled).length===0)return;let r=this._focusedIndex;const o=this._focusedIndex;switch(e.key){case"ArrowLeft":e.preventDefault();do r=r>0?r-1:t.length-1;while((s=t[r])!=null&&s.disabled&&r!==o);break;case"ArrowRight":e.preventDefault();do r=r<t.length-1?r+1:0;while((a=t[r])!=null&&a.disabled&&r!==o);break;case"Home":for(e.preventDefault(),r=0;(l=t[r])!=null&&l.disabled&&r<t.length-1;)r++;break;case"End":for(e.preventDefault(),r=t.length-1;(d=t[r])!=null&&d.disabled&&r>0;)r--;break;default:return}if(r!==this._focusedIndex&&!((p=t[r])!=null&&p.disabled)){const h=this.activeTab;this._focusedIndex=r,this.activeTab=t[r].id,this.updateComplete.then(()=>{var b;const f=(b=this.shadowRoot)==null?void 0:b.querySelector(`[role="tab"][data-tab-id="${t[r].id}"]`);f==null||f.focus()}),this.dispatchEvent(new CustomEvent("tab-change",{detail:{oldTab:h,newTab:t[r].id},bubbles:!0,composed:!0}))}}scrollTabIntoView(e){this.updateComplete.then(()=>{var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector(`[role="tab"][data-tab-id="${e}"]`);if(t&&this.tablist){const o=this.tablist.getBoundingClientRect(),s=t.getBoundingClientRect();s.left<o.left?this.tablist.scrollLeft-=o.left-s.left+16:s.right>o.right&&(this.tablist.scrollLeft+=s.right-o.right+16)}})}renderTabButton(e,t){const r=this.activeTab===e.id,o=this._focusedIndex===t,s=["tab__button",r?"tab__button--active":"",e.disabled?"tab__button--disabled":""].filter(Boolean).join(" "),a=["tab__label",r?"":"tab__label--inactive"].filter(Boolean).join(" "),l=["tab__description",r?"tab__description--active":""].filter(Boolean).join(" ");return u`
1034
+ `:u``}},a.Modal.styles=[N`${F(On)}`],Se([c({type:Boolean,reflect:!0})],a.Modal.prototype,"open",2),Se([c({type:String})],a.Modal.prototype,"title",2),Se([c({type:Boolean})],a.Modal.prototype,"closeOnEsc",2),Se([c({type:Boolean})],a.Modal.prototype,"closeOnBackdrop",2),Se([c({type:Boolean})],a.Modal.prototype,"showBack",2),Se([c({type:Boolean})],a.Modal.prototype,"showClose",2),Se([c({type:Boolean,state:!0})],a.Modal.prototype,"hasFooterContent",2),a.Modal=Se([U("logosphere-modal")],a.Modal);const Bn=".tab{width:100%;font-family:var(--font-family-base)}.tab__list{display:flex;overflow-x:auto;overflow-y:hidden;border-bottom:1px solid var(--color-border);scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}.tab__list::-webkit-scrollbar{display:none}.tab__button{display:inline-flex;flex-direction:row;align-items:center;gap:var(--spacing-2);padding:var(--spacing-3) var(--spacing-4);min-width:120px;position:relative;cursor:pointer;border:none;border-bottom:2px solid transparent;background:transparent;font-family:var(--font-family-base);white-space:nowrap;transition:background-color var(--transition-speed-base) var(--transition-timing),border-color var(--transition-speed-base) var(--transition-timing)}.tab__button:hover:not(.tab__button--disabled):not(.tab__button--active){background-color:var(--color-tertiary-bg)}.tab__button--active{border-bottom-color:var(--color-primary)}.tab__button--disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.tab__icon{font-size:var(--font-size-xl);flex-shrink:0;color:inherit;line-height:1}.tab__content{display:flex;flex-direction:column;align-items:flex-start}.tab__label{font-weight:var(--font-weight-medium);font-size:var(--font-size-sm);color:var(--color-body-text)}.tab__label--inactive{color:var(--color-tertiary)}.tab__description{font-size:var(--font-size-xs);text-align:left;color:var(--color-tertiary)}.tab__description--active{color:var(--color-secondary)}.tab__panel{padding:var(--spacing-4);outline:none}.tab__panel--hidden{display:none}";var In=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,Me=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yn(e,t):e,s=i.length-1,n;s>=0;s--)(n=i[s])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&In(e,t,o),o};a.LogosphereTab=class extends T{constructor(){super(...arguments),this.tabs=[],this.activeTab="",this.lazy=!0,this.variant="default",this._focusedIndex=0,this._renderedTabs=new Set}connectedCallback(){super.connectedCallback(),!this.activeTab&&this.tabs.length>0&&(this.activeTab=this.tabs[0].id)}willUpdate(e){if(super.willUpdate(e),e.has("activeTab")&&this.activeTab){this._renderedTabs.add(this.activeTab);const t=this.tabs.findIndex(r=>r.id===this.activeTab);t!==-1&&(this._focusedIndex=t)}e.has("tabs")&&this.tabs.length>0&&(this.tabs.some(r=>r.id===this.activeTab)||(this.activeTab=this.tabs[0].id),this._focusedIndex=this.tabs.findIndex(r=>r.id===this.activeTab))}handleTabClick(e,t){if(t)return;const r=this.activeTab;this.activeTab=e,this._focusedIndex=this.tabs.findIndex(o=>o.id===e),this.dispatchEvent(new CustomEvent("tab-change",{detail:{oldTab:r,newTab:e},bubbles:!0,composed:!0}))}handleKeyDown(e){var s,n,l,d,p;const{tabs:t}=this;if(t.filter(h=>!h.disabled).length===0)return;let r=this._focusedIndex;const o=this._focusedIndex;switch(e.key){case"ArrowLeft":e.preventDefault();do r=r>0?r-1:t.length-1;while((s=t[r])!=null&&s.disabled&&r!==o);break;case"ArrowRight":e.preventDefault();do r=r<t.length-1?r+1:0;while((n=t[r])!=null&&n.disabled&&r!==o);break;case"Home":for(e.preventDefault(),r=0;(l=t[r])!=null&&l.disabled&&r<t.length-1;)r++;break;case"End":for(e.preventDefault(),r=t.length-1;(d=t[r])!=null&&d.disabled&&r>0;)r--;break;default:return}if(r!==this._focusedIndex&&!((p=t[r])!=null&&p.disabled)){const h=this.activeTab;this._focusedIndex=r,this.activeTab=t[r].id,this.updateComplete.then(()=>{var m;const f=(m=this.shadowRoot)==null?void 0:m.querySelector(`[role="tab"][data-tab-id="${t[r].id}"]`);f==null||f.focus()}),this.dispatchEvent(new CustomEvent("tab-change",{detail:{oldTab:h,newTab:t[r].id},bubbles:!0,composed:!0}))}}scrollTabIntoView(e){this.updateComplete.then(()=>{var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector(`[role="tab"][data-tab-id="${e}"]`);if(t&&this.tablist){const o=this.tablist.getBoundingClientRect(),s=t.getBoundingClientRect();s.left<o.left?this.tablist.scrollLeft-=o.left-s.left+16:s.right>o.right&&(this.tablist.scrollLeft+=s.right-o.right+16)}})}renderTabButton(e,t){const r=this.activeTab===e.id,o=this._focusedIndex===t,s=["tab__button",r?"tab__button--active":"",e.disabled?"tab__button--disabled":""].filter(Boolean).join(" "),n=["tab__label",r?"":"tab__label--inactive"].filter(Boolean).join(" "),l=["tab__description",r?"tab__description--active":""].filter(Boolean).join(" ");return u`
1035
1035
  <button
1036
1036
  role="tab"
1037
1037
  class=${s}
@@ -1043,13 +1043,13 @@
1043
1043
  @click=${()=>this.handleTabClick(e.id,e.disabled)}
1044
1044
  @focus=${()=>this.scrollTabIntoView(e.id)}
1045
1045
  >
1046
- ${e.icon?u`<i class="${e.icon} tab__icon"></i>`:m}
1046
+ ${e.icon?u`<i class="${e.icon} tab__icon"></i>`:b}
1047
1047
  <div class="tab__content">
1048
- <span class=${a}>${e.label}</span>
1049
- ${e.description?u`<span class=${l}>${e.description}</span>`:m}
1048
+ <span class=${n}>${e.label}</span>
1049
+ ${e.description?u`<span class=${l}>${e.description}</span>`:b}
1050
1050
  </div>
1051
1051
  </button>
1052
- `}renderTabPanel(e){const t=this.activeTab===e.id;if(!(!this.lazy||this._renderedTabs.has(e.id)))return m;const o=["tab__panel",t?"":"tab__panel--hidden"].filter(Boolean).join(" ");return u`
1052
+ `}renderTabPanel(e){const t=this.activeTab===e.id;if(!(!this.lazy||this._renderedTabs.has(e.id)))return b;const o=["tab__panel",t?"":"tab__panel--hidden"].filter(Boolean).join(" ");return u`
1053
1053
  <div
1054
1054
  role="tabpanel"
1055
1055
  id="panel-${e.id}"
@@ -1058,7 +1058,7 @@
1058
1058
  tabindex="0"
1059
1059
  >
1060
1060
  <slot name=${`panel-${e.id}`}>
1061
- ${typeof e.content=="string"?u`${e.content}`:m}
1061
+ ${typeof e.content=="string"?u`${e.content}`:b}
1062
1062
  </slot>
1063
1063
  </div>
1064
1064
  `}render(){return u`
@@ -1068,6 +1068,6 @@
1068
1068
  </div>
1069
1069
  <div class="tab__panels">${this.tabs.map(e=>this.renderTabPanel(e))}</div>
1070
1070
  </div>
1071
- `}},n.LogosphereTab.styles=[N`
1072
- ${F(za)}
1073
- `],Me([c({type:Array})],n.LogosphereTab.prototype,"tabs",2),Me([c({type:String})],n.LogosphereTab.prototype,"activeTab",2),Me([c({type:Boolean})],n.LogosphereTab.prototype,"lazy",2),Me([c({type:String})],n.LogosphereTab.prototype,"variant",2),Me([$()],n.LogosphereTab.prototype,"_focusedIndex",2),Me([$()],n.LogosphereTab.prototype,"_renderedTabs",2),Me([J('[role="tablist"]')],n.LogosphereTab.prototype,"tablist",2),n.LogosphereTab=Me([U("logosphere-tab")],n.LogosphereTab),Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
1071
+ `}},a.LogosphereTab.styles=[N`
1072
+ ${F(Bn)}
1073
+ `],Me([c({type:Array})],a.LogosphereTab.prototype,"tabs",2),Me([c({type:String})],a.LogosphereTab.prototype,"activeTab",2),Me([c({type:Boolean})],a.LogosphereTab.prototype,"lazy",2),Me([c({type:String})],a.LogosphereTab.prototype,"variant",2),Me([$()],a.LogosphereTab.prototype,"_focusedIndex",2),Me([$()],a.LogosphereTab.prototype,"_renderedTabs",2),Me([J('[role="tablist"]')],a.LogosphereTab.prototype,"tablist",2),a.LogosphereTab=Me([U("logosphere-tab")],a.LogosphereTab),Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})}));