@molin.ai/shop-ai 0.8.43 → 0.8.44

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.
@@ -1,11 +1,11 @@
1
- var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in t?wu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var y=(t,e,r)=>bu(t,typeof e!="symbol"?e+"":e,r),Ci=(t,e,r)=>e.has(t)||no("Cannot "+r);var a=(t,e,r)=>(Ci(t,e,"read from private field"),r?r.call(t):e.get(t)),d=(t,e,r)=>e.has(t)?no("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),m=(t,e,r,n)=>(Ci(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),g=(t,e,r)=>(Ci(t,e,"access private method"),r);var io=(t,e,r,n)=>({set _(i){m(t,e,i,r)},get _(){return a(t,e,n)}});var Qr=globalThis,en=Qr.ShadowRoot&&(Qr.ShadyCSS===void 0||Qr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$i=Symbol(),so=new WeakMap,nr=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==$i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(en&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=so.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&so.set(r,e))}return e}toString(){return this.cssText}},oo=t=>new nr(typeof t=="string"?t:t+"",void 0,$i),re=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]);return new nr(r,t,$i)},ao=(t,e)=>{if(en)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=Qr.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},Si=en?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return oo(r)})(t):t;var{is:xu,defineProperty:ku,getOwnPropertyDescriptor:Cu,getOwnPropertyNames:$u,getOwnPropertySymbols:Su,getPrototypeOf:Eu}=Object,tn=globalThis,lo=tn.trustedTypes,_u=lo?lo.emptyScript:"",Au=tn.reactiveElementPolyfillSupport,ir=(t,e)=>t,Ei={toAttribute(t,e){switch(e){case Boolean:t=t?_u:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},co=(t,e)=>!xu(t,e),uo={attribute:!0,type:String,converter:Ei,reflect:!1,useDefault:!1,hasChanged:co};Symbol.metadata??=Symbol("metadata"),tn.litPropertyMetadata??=new WeakMap;var Me=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=uo){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&ku(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:s}=Cu(this.prototype,e)??{get(){return this[r]},set(o){this[r]=o}};return{get:i,set(o){let u=i?.call(this);s?.call(this,o),this.requestUpdate(e,u,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??uo}static _$Ei(){if(this.hasOwnProperty(ir("elementProperties")))return;let e=Eu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ir("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ir("properties"))){let r=this.properties,n=[...$u(r),...Su(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(Si(i))}else e!==void 0&&r.push(Si(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n: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(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ao(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$ET(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:Ei).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let s=n.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Ei;this._$Em=i;let u=o.fromAttribute(r,s.type);this[i]=u??this._$Ej?.get(i)??u,this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){let i=this.constructor,s=this[e];if(n??=i.getPropertyOptions(e),!((n.hasChanged??co)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:s},o){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??r??this[e]),s!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,s]of n){let{wrapped:o}=s,u=this[i];o!==!0||this._$AL.has(i)||u===void 0||this.C(i,void 0,s,u)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),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.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};Me.elementStyles=[],Me.shadowRootOptions={mode:"open"},Me[ir("elementProperties")]=new Map,Me[ir("finalized")]=new Map,Au?.({ReactiveElement:Me}),(tn.reactiveElementVersions??=[]).push("2.1.1");var Ai=globalThis,rn=Ai.trustedTypes,po=rn?rn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Mi="$lit$",Ie=`lit$${Math.random().toFixed(9).slice(2)}$`,Ii="?"+Ie,Mu=`<${Ii}>`,tt=document,or=()=>tt.createComment(""),ar=t=>t===null||typeof t!="object"&&typeof t!="function",Li=Array.isArray,vo=t=>Li(t)||typeof t?.[Symbol.iterator]=="function",_i=`[
2
- \f\r]`,sr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fo=/-->/g,ho=/>/g,Qe=RegExp(`>|${_i}(?:([^\\s"'>=/]+)(${_i}*=${_i}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),mo=/'/g,go=/"/g,wo=/^(?:script|style|textarea|title)$/i,Ti=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),h=Ti(1),Lp=Ti(2),Tp=Ti(3),ye=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),yo=new WeakMap,et=tt.createTreeWalker(tt,129);function bo(t,e){if(!Li(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return po!==void 0?po.createHTML(e):e}var xo=(t,e)=>{let r=t.length-1,n=[],i,s=e===2?"<svg>":e===3?"<math>":"",o=sr;for(let u=0;u<r;u++){let l=t[u],c,f,p=-1,b=0;for(;b<l.length&&(o.lastIndex=b,f=o.exec(l),f!==null);)b=o.lastIndex,o===sr?f[1]==="!--"?o=fo:f[1]!==void 0?o=ho:f[2]!==void 0?(wo.test(f[2])&&(i=RegExp("</"+f[2],"g")),o=Qe):f[3]!==void 0&&(o=Qe):o===Qe?f[0]===">"?(o=i??sr,p=-1):f[1]===void 0?p=-2:(p=o.lastIndex-f[2].length,c=f[1],o=f[3]===void 0?Qe:f[3]==='"'?go:mo):o===go||o===mo?o=Qe:o===fo||o===ho?o=sr:(o=Qe,i=void 0);let x=o===Qe&&t[u+1].startsWith("/>")?" ":"";s+=o===sr?l+Mu:p>=0?(n.push(c),l.slice(0,p)+Mi+l.slice(p)+Ie+x):l+Ie+(p===-2?u:x)}return[bo(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},lr=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,u=e.length-1,l=this.parts,[c,f]=xo(e,r);if(this.el=t.createElement(c,n),et.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=et.nextNode())!==null&&l.length<u;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(Mi)){let b=f[o++],x=i.getAttribute(p).split(Ie),k=/([.?@])?(.*)/.exec(b);l.push({type:1,index:s,name:k[2],strings:x,ctor:k[1]==="."?sn:k[1]==="?"?on:k[1]==="@"?an:nt}),i.removeAttribute(p)}else p.startsWith(Ie)&&(l.push({type:6,index:s}),i.removeAttribute(p));if(wo.test(i.tagName)){let p=i.textContent.split(Ie),b=p.length-1;if(b>0){i.textContent=rn?rn.emptyScript:"";for(let x=0;x<b;x++)i.append(p[x],or()),et.nextNode(),l.push({type:2,index:++s});i.append(p[b],or())}}}else if(i.nodeType===8)if(i.data===Ii)l.push({type:2,index:s});else{let p=-1;for(;(p=i.data.indexOf(Ie,p+1))!==-1;)l.push({type:7,index:s}),p+=Ie.length-1}s++}}static createElement(e,r){let n=tt.createElement("template");return n.innerHTML=e,n}};function rt(t,e,r=t,n){if(e===ye)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=ar(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=rt(t,i._$AS(t,e.values),i,n)),e}var nn=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??tt).importNode(r,!0);et.currentNode=i;let s=et.nextNode(),o=0,u=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new bt(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new ln(s,this,e)),this._$AV.push(c),l=n[++u]}o!==l?.index&&(s=et.nextNode(),o++)}return et.currentNode=tt,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},bt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=rt(this,e,r),ar(e)?e===E||e==null||e===""?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==ye&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vo(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!==E&&ar(this._$AH)?this._$AA.nextSibling.data=e:this.T(tt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=lr.createElement(bo(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new nn(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=yo.get(e.strings);return r===void 0&&yo.set(e.strings,r=new lr(e)),r}k(e){Li(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of e)i===r.length?r.push(n=new t(this.O(or()),this.O(or()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=E}_$AI(e,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)e=rt(this,e,r,0),o=!ar(e)||e!==this._$AH&&e!==ye,o&&(this._$AH=e);else{let u=e,l,c;for(e=s[0],l=0;l<s.length-1;l++)c=rt(this,u[n+l],r,l),c===ye&&(c=this._$AH[l]),o||=!ar(c)||c!==this._$AH[l],c===E?e=E:e!==E&&(e+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!i&&this.j(e)}j(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},sn=class extends nt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===E?void 0:e}},on=class extends nt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==E)}},an=class extends nt{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=rt(this,e,r,0)??E)===ye)return;let n=this._$AH,i=e===E&&n!==E||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==E&&(n===E||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ln=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){rt(this,e)}},ko={M:Mi,P:Ie,A:Ii,C:1,L:xo,R:nn,D:vo,V:rt,I:bt,H:nt,N:on,U:an,B:sn,F:ln},Iu=Ai.litHtmlPolyfillSupport;Iu?.(lr,bt),(Ai.litHtmlVersions??=[]).push("3.3.1");var Co=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let s=r?.renderBefore??null;n._$litPart$=i=new bt(e.insertBefore(or(),s),s,void 0,r??{})}return i._$AI(t),i};var Oi=globalThis,S=class extends Me{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Co(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ye}};S._$litElement$=!0,S.finalized=!0,Oi.litElementHydrateSupport?.({LitElement:S});var Lu=Oi.litElementPolyfillSupport;Lu?.({LitElement:S});(Oi.litElementVersions??=[]).push("4.2.1");var ur=class ur extends HTMLElement{constructor(){super();y(this,"name","");this.attachShadow({mode:"open"})}attributeChangedCallback(r,n,i){if(n!==i&&ur.observedAttributes.includes(r)){switch(r){case"name":this.name=i||"";break}this.render()}}resolveIcon(r){throw new Error("Not implemented")}render(){let r=document.createElement("style");for(r.textContent=`
1
+ var $c=Object.defineProperty;var ta=e=>{throw TypeError(e)};var Sc=(e,t,r)=>t in e?$c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var g=(e,t,r)=>Sc(e,typeof t!="symbol"?t+"":t,r),os=(e,t,r)=>t.has(e)||ta("Cannot "+r);var a=(e,t,r)=>(os(e,t,"read from private field"),r?r.call(e):t.get(e)),f=(e,t,r)=>t.has(e)?ta("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),m=(e,t,r,n)=>(os(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),y=(e,t,r)=>(os(e,t,"access private method"),r);var ra=(e,t,r,n)=>({set _(i){m(e,t,i,r)},get _(){return a(e,t,n)}});var jn=globalThis,Tn=jn.ShadowRoot&&(jn.ShadyCSS===void 0||jn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,as=Symbol(),na=new WeakMap,br=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==as)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Tn&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=na.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&na.set(r,t))}return t}toString(){return this.cssText}},ia=e=>new br(typeof e=="string"?e:e+"",void 0,as),ie=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[s+1],e[0]);return new br(r,e,as)},sa=(e,t)=>{if(Tn)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=jn.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},ls=Tn?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return ia(r)})(e):e;var{is:Ec,defineProperty:_c,getOwnPropertyDescriptor:Ac,getOwnPropertyNames:Mc,getOwnPropertySymbols:Ic,getPrototypeOf:Oc}=Object,Ln=globalThis,oa=Ln.trustedTypes,jc=oa?oa.emptyScript:"",Tc=Ln.reactiveElementPolyfillSupport,kr=(e,t)=>e,us={toAttribute(e,t){switch(t){case Boolean:e=e?jc:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},la=(e,t)=>!Ec(e,t),aa={attribute:!0,type:String,converter:us,reflect:!1,useDefault:!1,hasChanged:la};Symbol.metadata??=Symbol("metadata"),Ln.litPropertyMetadata??=new WeakMap;var je=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=aa){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&_c(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:s}=Ac(this.prototype,t)??{get(){return this[r]},set(o){this[r]=o}};return{get:i,set(o){let u=i?.call(this);s?.call(this,o),this.requestUpdate(t,u,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??aa}static _$Ei(){if(this.hasOwnProperty(kr("elementProperties")))return;let t=Oc(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(kr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(kr("properties"))){let r=this.properties,n=[...Mc(r),...Ic(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(ls(i))}else t!==void 0&&r.push(ls(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return sa(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:us).toAttribute(r,n.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let s=n.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:us;this._$Em=i;let u=o.fromAttribute(r,s.type);this[i]=u??this._$Ej?.get(i)??u,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){let i=this.constructor,s=this[t];if(n??=i.getPropertyOptions(t),!((n.hasChanged??la)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:i,wrapped:s},o){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??r??this[t]),s!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,s]of n){let{wrapped:o}=s,u=this[i];o!==!0||this._$AL.has(i)||u===void 0||this.C(i,void 0,s,u)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(t){}firstUpdated(t){}};je.elementStyles=[],je.shadowRootOptions={mode:"open"},je[kr("elementProperties")]=new Map,je[kr("finalized")]=new Map,Tc?.({ReactiveElement:je}),(Ln.reactiveElementVersions??=[]).push("2.1.1");var ps=globalThis,Dn=ps.trustedTypes,ua=Dn?Dn.createPolicy("lit-html",{createHTML:e=>e}):void 0,hs="$lit$",Te=`lit$${Math.random().toFixed(9).slice(2)}$`,ds="?"+Te,Lc=`<${ds}>`,nt=document,$r=()=>nt.createComment(""),Sr=e=>e===null||typeof e!="object"&&typeof e!="function",fs=Array.isArray,ma=e=>fs(e)||typeof e?.[Symbol.iterator]=="function",cs=`[
2
+ \f\r]`,Cr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ca=/-->/g,pa=/>/g,tt=RegExp(`>|${cs}(?:([^\\s"'>=/]+)(${cs}*=${cs}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ha=/'/g,da=/"/g,ga=/^(?:script|style|textarea|title)$/i,ms=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),d=ms(1),J1=ms(2),K1=ms(3),ve=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),fa=new WeakMap,rt=nt.createTreeWalker(nt,129);function ya(e,t){if(!fs(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ua!==void 0?ua.createHTML(t):t}var wa=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=Cr;for(let u=0;u<r;u++){let l=e[u],c,p,h=-1,v=0;for(;v<l.length&&(o.lastIndex=v,p=o.exec(l),p!==null);)v=o.lastIndex,o===Cr?p[1]==="!--"?o=ca:p[1]!==void 0?o=pa:p[2]!==void 0?(ga.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=tt):p[3]!==void 0&&(o=tt):o===tt?p[0]===">"?(o=i??Cr,h=-1):p[1]===void 0?h=-2:(h=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?tt:p[3]==='"'?da:ha):o===da||o===ha?o=tt:o===ca||o===pa?o=Cr:(o=tt,i=void 0);let b=o===tt&&e[u+1].startsWith("/>")?" ":"";s+=o===Cr?l+Lc:h>=0?(n.push(c),l.slice(0,h)+hs+l.slice(h)+Te+b):l+Te+(h===-2?u:b)}return[ya(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Er=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,u=t.length-1,l=this.parts,[c,p]=wa(t,r);if(this.el=e.createElement(c,n),rt.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=rt.nextNode())!==null&&l.length<u;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(hs)){let v=p[o++],b=i.getAttribute(h).split(Te),$=/([.?@])?(.*)/.exec(v);l.push({type:1,index:s,name:$[2],strings:b,ctor:$[1]==="."?Rn:$[1]==="?"?Un:$[1]==="@"?Vn:st}),i.removeAttribute(h)}else h.startsWith(Te)&&(l.push({type:6,index:s}),i.removeAttribute(h));if(ga.test(i.tagName)){let h=i.textContent.split(Te),v=h.length-1;if(v>0){i.textContent=Dn?Dn.emptyScript:"";for(let b=0;b<v;b++)i.append(h[b],$r()),rt.nextNode(),l.push({type:2,index:++s});i.append(h[v],$r())}}}else if(i.nodeType===8)if(i.data===ds)l.push({type:2,index:s});else{let h=-1;for(;(h=i.data.indexOf(Te,h+1))!==-1;)l.push({type:7,index:s}),h+=Te.length-1}s++}}static createElement(t,r){let n=nt.createElement("template");return n.innerHTML=t,n}};function it(e,t,r=e,n){if(t===ve)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=Sr(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=it(e,i._$AS(e,t.values),i,n)),t}var Pn=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??nt).importNode(r,!0);rt.currentNode=i;let s=rt.nextNode(),o=0,u=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new It(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new Bn(s,this,t)),this._$AV.push(c),l=n[++u]}o!==l?.index&&(s=rt.nextNode(),o++)}return rt.currentNode=nt,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},It=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=it(this,t,r),Sr(t)?t===M||t==null||t===""?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==ve&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ma(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==M&&Sr(this._$AH)?this._$AA.nextSibling.data=t:this.T(nt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Er.createElement(ya(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Pn(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=fa.get(t.strings);return r===void 0&&fa.set(t.strings,r=new Er(t)),r}k(t){fs(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O($r()),this.O($r()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},st=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=it(this,t,r,0),o=!Sr(t)||t!==this._$AH&&t!==ve,o&&(this._$AH=t);else{let u=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=it(this,u[n+l],r,l),c===ve&&(c=this._$AH[l]),o||=!Sr(c)||c!==this._$AH[l],c===M?t=M:t!==M&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!i&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Rn=class extends st{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}},Un=class extends st{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==M)}},Vn=class extends st{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=it(this,t,r,0)??M)===ve)return;let n=this._$AH,i=t===M&&n!==M||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==M&&(n===M||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Bn=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}},va={M:hs,P:Te,A:ds,C:1,L:wa,R:Pn,D:ma,V:it,I:It,H:st,N:Un,U:Vn,B:Rn,F:Bn},Dc=ps.litHtmlPolyfillSupport;Dc?.(Er,It),(ps.litHtmlVersions??=[]).push("3.3.1");var xa=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let s=r?.renderBefore??null;n._$litPart$=i=new It(t.insertBefore($r(),s),s,void 0,r??{})}return i._$AI(e),i};var gs=globalThis,_=class extends je{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=xa(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ve}};_._$litElement$=!0,_.finalized=!0,gs.litElementHydrateSupport?.({LitElement:_});var Pc=gs.litElementPolyfillSupport;Pc?.({LitElement:_});(gs.litElementVersions??=[]).push("4.2.1");var _r=class _r extends HTMLElement{constructor(){super();g(this,"name","");this.attachShadow({mode:"open"})}attributeChangedCallback(r,n,i){if(n!==i&&_r.observedAttributes.includes(r)){switch(r){case"name":this.name=i||"";break}this.render()}}resolveIcon(r){throw new Error("Not implemented")}render(){let r=document.createElement("style");for(r.textContent=`
4
4
  :host {
5
5
  display: inline-block;
6
6
  line-height: 0;
7
7
  }
8
- `;this.shadowRoot?.firstChild;)this.shadowRoot.removeChild(this.shadowRoot.firstChild),this.shadowRoot.appendChild(r);if(!this.name)return;let n=this.resolveIcon(this.name);if(!n){console.warn(`'${this.name}' not found, please add it to ${ur.name}`);return}let o=new DOMParser().parseFromString(n,"image/svg+xml").documentElement;o.setAttribute("fill","currentColor"),o.style.width="100%",o.style.height="100%",this.shadowRoot?.appendChild(o)}};y(ur,"observedAttributes",["name"]);var un=ur;var $o={clock:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ `;this.shadowRoot?.firstChild;)this.shadowRoot.removeChild(this.shadowRoot.firstChild),this.shadowRoot.appendChild(r);if(!this.name)return;let n=this.resolveIcon(this.name);if(!n){console.warn(`'${this.name}' not found, please add it to ${_r.name}`);return}let o=new DOMParser().parseFromString(n,"image/svg+xml").documentElement;o.setAttribute("fill","currentColor"),o.style.width="100%",o.style.height="100%",this.shadowRoot?.appendChild(o)}};g(_r,"observedAttributes",["name"]);var Nn=_r;var ba={clock:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
9
9
  <path d="M12 6V12H16.5M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
10
10
  </svg>`,"arrow-path":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
11
11
  <path d="M16.0228 9.34841H21.0154V9.34663M2.98413 19.6444V14.6517M2.98413 14.6517L7.97677 14.6517M2.98413 14.6517L6.16502 17.8347C7.15555 18.8271 8.41261 19.58 9.86436 19.969C14.2654 21.1483 18.7892 18.5364 19.9685 14.1353M4.03073 9.86484C5.21 5.46374 9.73377 2.85194 14.1349 4.03121C15.5866 4.4202 16.8437 5.17312 17.8342 6.1655L21.0154 9.34663M21.0154 4.3558V9.34663" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
@@ -119,7 +119,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
119
119
  <path d="M19.5 13.5L12 21M12 21L4.5 13.5M12 21L12 3" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
120
120
  </svg>`,"bars-3":`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
121
121
  <path d="M3.75 6.75H20.25M3.75 12H20.25M3.75 17.25H20.25" stroke="#0F172A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
122
- </svg>`};var Tu=$o,ji=class extends un{resolveIcon(e){let r=Tu[e];if(!r)throw console.warn("hi-outline: icon not found",e),new Error(`Icon ${e} not found`);return r}render(){super.render();let e=this.shadowRoot?.querySelector("svg");if(!e)throw new Error("svgEl not found "+this.name);e.setAttribute("fill","none"),e.querySelectorAll("[stroke]").forEach(r=>{r.setAttribute("stroke","currentColor")})}};customElements.get("hi-outline")||customElements.define("hi-outline",ji);function Bi(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function Ou(t,e=","){return t.map(Bi).join(e)}var Lo=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function cn(t){for(var e=9,r=t.length;r--;)e=Math.imul(e^t.charCodeAt(r),1597334677);return"#"+((e^e>>>9)>>>0).toString(36)}function hn(t,e="@media "){return e+U(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(n=>`(${n}-width:${r[n]})`).join(" and "))).join(",")}function U(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function So(t){return t}function dn(){}var G={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function To(t){return t.match(/[-=:;]/g)?.length||0}function Vi(t){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(t)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(To(t),15)<<18}var ju=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function zi({n:t,i:e,v:r=[]},n,i,s){t&&(t=Bi({n:t,i:e,v:r})),s=[...U(s)];for(let u of r){let l=n.theme("screens",u);for(let c of U(l&&hn(l)||n.v(u))){var o;s.push(c),i|=l?67108864|Vi(c):u=="dark"?1073741824:c[0]=="@"?Vi(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~ju.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:i,r:s,i:e}}var Oo=new Map;function Ni(t){if(t.d){let e=[],r=Di(t.r.reduce((n,i)=>i[0]=="@"?(e.push(i),n):i?Di(n,s=>Di(i,o=>{let u=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(u){let l=s.indexOf(u[1]);return~l?s.slice(0,l)+u[0]+s.slice(l+u[1].length):Ri(s,o)}return Ri(o,s)})):n,"&"),n=>Ri(n,t.n?"."+Lo(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((n,i)=>i+"{"+n+"}",t.d)}}function Di(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,n,i)=>e(n)+i)}function Ri(t,e){return t.replace(/&/g,e)}var Eo=new Intl.Collator("en",{numeric:!0});function jo(t,e){for(var r=0,n=t.length;r<n;){let i=n+r>>1;0>=Do(t[i],e)?r=i+1:n=i}return n}function Do(t,e){let r=t.p&G.o;return r==(e.p&G.o)&&(r==G.b||r==G.o)?0:t.p-e.p||t.o-e.o||Eo.compare(_o(t.n),_o(e.n))||Eo.compare(Ao(t.n),Ao(e.n))}function _o(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function Ao(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function Pi(t,e){return Math.round(parseInt(t,16)*e)}function fe(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:n}=e,i=n?`var(${n})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",i);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,o=[17,1,.062272][s-1];return`rgba(${[Pi(t.substr(1,s),o),Pi(t.substr(1+s,s),o),Pi(t.substr(1+2*s,s),o),i]})`}return i=="1"?t:i=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function Ro(t,e,r,n,i=[]){return function s(o,{n:u,p:l,r:c=[],i:f},p){let b=[],x="",k=0,A=0;for(let $ in o||{}){var I,R;let M=o[$];if($[0]=="@"){if(!M)continue;if($[1]=="a"){b.push(...Zi(u,l,fn(""+M),p,l,c,f,!0));continue}if($[1]=="l"){for(let L of U(M))b.push(...s(L,{n:u,p:(I=G[$[7]],l&~G.o|I),r:$[7]=="d"?[]:c,i:f},p));continue}if($[1]=="i"){b.push(...U(M).map(L=>({p:-1,o:0,r:[],d:$+" "+L})));continue}if($[1]=="k"){b.push({p:G.d,o:0,r:[$],d:s(M,{p:G.d},p).map(Ni).join("")});continue}if($[1]=="f"){b.push(...U(M).map(L=>({p:G.d,o:0,r:[$],d:s(L,{p:G.d},p).map(Ni).join("")})));continue}}if(typeof M!="object"||Array.isArray(M))$=="label"&&M?u=M+cn(JSON.stringify([l,f,o])):(M||M===0)&&($=$.replace(/[A-Z]/g,L=>"-"+L.toLowerCase()),A+=1,k=Math.max(k,(R=$)[0]=="-"?0:To(R)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(R)?+!!RegExp.$1||-!!RegExp.$2:0)+1),x+=(x?";":"")+U(M).map(L=>p.s($,Wi(""+L,p.theme)+(f?" !important":""))).join(";"));else if($[0]=="@"||$.includes("&")){let L=l;$[0]=="@"&&($=$.replace(/\bscreen\(([^)]+)\)/g,(H,Z)=>{let Y=p.theme("screens",Z);return Y?(L|=67108864,hn(Y,"")):H}),L|=Vi($)),b.push(...s(M,{n:u,p:L,r:[...c,$],i:f},p))}else b.push(...s(M,{p:l,r:[...c,$]},p))}return b.unshift({n:u,p:l,o:Math.max(0,15-A)+1.5*Math.min(k||15,15),r:c,d:x}),b.sort(Do)}(t,zi(e,r,n,i),r)}function Wi(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,n,i,s,o="")=>{let u=e(i,o);return typeof u=="function"&&/color|fill|stroke/i.test(i)?fe(u):""+U(u).filter(l=>Object(l)!==l)})}function Po(t,e){let r,n=[];for(let i of t)i.d&&i.n?r?.p==i.p&&""+r.r==""+i.r?(r.c=[r.c,i.c].filter(Boolean).join(" "),r.d=r.d+";"+i.d):n.push(r={...i,n:i.n&&e}):n.push({...i,n:i.n&&e});return n}function pn(t,e,r=G.u,n,i){let s=[];for(let o of t)for(let u of function(l,c,f,p,b){l={...l,i:l.i||b};let x=function(k,A){let I=Oo.get(k.n);return I?I(k,A):A.r(k.n,k.v[0]=="dark")}(l,c);return x?typeof x=="string"?({r:p,p:f}=zi(l,c,f,p),Po(pn(fn(x),c,f,p,l.i),l.n)):Array.isArray(x)?x.map(k=>{var A,I;return{o:0,...k,r:[...U(p),...U(k.r)],p:(A=f,I=k.p??f,A&~G.o|I)}}):Ro(x,l,c,f,p):[{c:Bi(l),p:0,o:0,r:[]}]}(o,e,r,n,i))s.splice(jo(s,u),0,u);return s}function Zi(t,e,r,n,i,s,o,u){return Po((u?r.flatMap(l=>pn([l],n,i,s,o)):pn(r,n,i,s,o)).map(l=>l.p&G.o&&(l.n||e==G.b)?{...l,p:l.p&~G.o|e,o:0}:l),t)}function Du(t,e,r,n){var i;return i=(s,o)=>{let{n:u,p:l,r:c,i:f}=zi(s,o,e);return r&&Zi(u,e,r,o,l,c,f,n)},Oo.set(t,i),t}function Ui(t,e,r){if(t[t.length-1]!="("){let n=[],i=!1,s=!1,o="";for(let u of t)if(!(u=="("||/[~@]$/.test(u))){if(u[0]=="!"&&(u=u.slice(1),i=!i),u.endsWith(":")){n[u=="dark:"?"unshift":"push"](u.slice(0,-1));continue}u[0]=="-"&&(u=u.slice(1),s=!s),u.endsWith("-")&&(u=u.slice(0,-1)),u&&u!="&"&&(o+=(o&&"-")+u)}o&&(s&&(o="-"+o),e[0].push({n:o,v:n.filter(Ru),i}))}}function Ru(t,e,r){return r.indexOf(t)==e}var Mo=new Map;function fn(t){let e=Mo.get(t);if(!e){let r=[],n=[[]],i=0,s=0,o=null,u=0,l=(c,f=0)=>{i!=u&&(r.push(t.slice(i,u+f)),c&&Ui(r,n)),i=u+1};for(;u<t.length;u++){let c=t[u];if(s)t[u-1]!="\\"&&(s+=+(c=="[")||-(c=="]"));else if(c=="[")s+=1;else if(o)t[u-1]!="\\"&&o.test(t.slice(u))&&(o=null,i=u+RegExp.lastMatch.length);else if(c=="/"&&t[u-1]!="\\"&&(t[u+1]=="*"||t[u+1]=="/"))o=t[u+1]=="*"?/^\*\//:/^[\r\n]/;else if(c=="(")l(),r.push(c);else if(c==":")t[u+1]!=":"&&l(!1,1);else if(/[\s,)]/.test(c)){l(!0);let f=r.lastIndexOf("(");if(c==")"){let p=r[f-1];if(/[~@]$/.test(p)){let b=n.shift();r.length=f,Ui([...r,"#"],n);let{v:x}=n[0].pop();for(let k of b)k.v.splice(+(k.v[0]=="dark")-+(x[0]=="dark"),x.length);Ui([...r,Du(p.length>1?p.slice(0,-1)+cn(JSON.stringify([p,b])):p+"("+Ou(b)+")",G.a,b,/@$/.test(p))],n)}f=r.lastIndexOf("(",f-1)}r.length=f+1}else/[~@]/.test(c)&&t[u+1]=="("&&n.unshift([])}l(!0),Mo.set(t,e=n[0])}return e}function v(t,e,r){return[t,Fi(e,r)]}function Fi(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,n)=>({[t]:e?e(r,n):Hi(r,1)}):r=>t||{[r[1]]:Hi(r,2)}}function Hi(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function w(t,e,r,n){return[t,Gi(e,r,n)]}function Gi(t,e,r){let n=typeof e=="string"?(i,s)=>({[e]:r?r(i,s):i._}):e||(({1:i,_:s},o,u)=>({[i||u]:s}));return(i,s)=>{let o=Uo(t||i[1]),u=s.theme(o,i.$$)??Ce(i.$$,o,s);if(u!=null)return i._=Hi(i,0,u),n(i,s,o)}}function J(t,e={},r){return[t,Pu(e,r)]}function Pu(t={},e){return(r,n)=>{let{section:i=Uo(r[0]).replace("-","")+"Color"}=t,[s,o]=Uu(r.$$);if(!s)return;let u=n.theme(i,s)||Ce(s,i,n);if(!u||typeof u=="object")return;let{opacityVariable:l=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:f=i,selector:p}=t,b=n.theme(c,o||"DEFAULT")||o&&Ce(o,c,n),x=e||(({_:A})=>{let I=cr(f,A);return p?{[p]:I}:I});r._={value:fe(u,{opacityVariable:l||void 0,opacityValue:b||void 0}),color:A=>fe(u,A),opacityVariable:l||void 0,opacityValue:b||void 0};let k=x(r,n);if(!r.dark){let A=n.d(i,s,u);A&&A!==u&&(r._={value:fe(A,{opacityVariable:l||void 0,opacityValue:b||"1"}),color:I=>fe(A,I),opacityVariable:l||void 0,opacityValue:b||void 0},k={"&":k,[n.v("dark")]:x(r,n)})}return k}}function Uu(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function cr(t,e){let r={};return typeof e=="string"?r[t]=e:(e.opacityVariable&&e.value.includes(e.opacityVariable)&&(r[e.opacityVariable]=e.opacityValue||"1"),r[t]=e.value),r}function Ce(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=xt(Wi(t.slice(1,-1),r.theme)),!e)return t;if(!(/color|fill|stroke/i.test(e)&&!(/^color:/.test(t)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(t))||/image/i.test(e)&&!(/^image:/.test(t)||/^[a-z-]+\(/.test(t))||/weight/i.test(e)&&!(/^(number|any):/.test(t)||/^\d+$/.test(t))||/position/i.test(e)&&/^(length|size):/.test(t)))return t.replace(/^[a-z-]+:/,"")}}function Uo(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function xt(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",n,i="")=>xt(r)+n+xt(i)):t.replace(/(^|[^\\])_+/g,(e,r)=>r+" ".repeat(e.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function Ji({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:U(e.variants),rules:U(e.rules),ignorelist:U(e.ignorelist),hash:void 0,stringify:(n,i)=>n+":"+i,finalize:[]};for(let n of U([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&&U(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:i,darkMode:s=r.darkMode,darkColor:o=r.darkColor,theme:u,variants:l,rules:c,ignorelist:f,hash:p=r.hash,stringify:b=r.stringify,finalize:x}=typeof n=="function"?n(r):n;r={preflight:r.preflight!==!1&&i!==!1&&[...r.preflight,...U(i)],darkMode:s,darkColor:o,theme:{...r.theme,...u,extend:{...r.theme.extend,...u?.extend}},variants:[...r.variants,...U(l)],rules:[...r.rules,...U(c)],ignorelist:[...r.ignorelist,...U(f)],hash:p,stringify:b,finalize:[...r.finalize,...U(x)]}}return r}function Io(t,e,r,n,i,s){for(let o of e){let u=r.get(o);u||r.set(o,u=n(o));let l=u(t,i,s);if(l)return l}}function Vu(t){var e;return qi(t[0],typeof(e=t[1])=="function"?e:()=>e)}function Nu(t){var e,r;return Array.isArray(t)?qi(t[0],Fi(t[1],t[2])):qi(t,Fi(e,r))}function qi(t,e){return Vo(t,(r,n,i,s)=>{let o=n.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=s,e(o,i)})}function Vo(t,e){let r=U(t).map(Fu);return(n,i,s)=>{for(let o of r){let u=e(n,o,i,s);if(u)return u}}}function Fu(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function No(t,e){let r=Ji(t),n=function({theme:l,darkMode:c,darkColor:f=dn,variants:p,rules:b,hash:x,stringify:k,ignorelist:A,finalize:I}){let R=new Map,$=new Map,M=new Map,L=new Map,H=Vo(A,(j,Q)=>Q.test(j));p.push(["dark",Array.isArray(c)||c=="class"?`${U(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let Z=typeof x=="function"?j=>x(j,cn):x?cn:So;Z!==So&&I.push(j=>({...j,n:j.n&&Z(j.n),d:j.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(Q,ie)=>"--"+Z(ie).replace("#",""))}));let Y={theme:function({extend:j={},...Q}){let ie={},ki={get colors(){return Xe("colors")},theme:Xe,negative(){return{}},breakpoints(q){let ee={};for(let oe in q)typeof q[oe]=="string"&&(ee["screen-"+oe]=q[oe]);return ee}};return Xe;function Xe(q,ee,oe,er){if(q){if({1:q,2:er}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(q)||[,q],/[.[]/.test(q)){let Ae=[];q.replace(/\[([^\]]+)\]|([^.[]+)/g,(Ye,rr,vu=rr)=>Ae.push(vu)),q=Ae.shift(),oe=ee,ee=Ae.join("-")}let ke=ie[q]||Object.assign(Object.assign(ie[q]={},Yr(Q,q)),Yr(j,q));if(ee==null)return ke;ee||(ee="DEFAULT");let Ke=ke[ee]??ee.split("-").reduce((Ae,Ye)=>Ae?.[Ye],ke)??oe;return er?fe(Ke,{opacityValue:Wi(er,Xe)}):Ke}let tr={};for(let ke of[...Object.keys(Q),...Object.keys(j)])tr[ke]=Xe(ke);return tr}function Yr(q,ee){let oe=q[ee];return typeof oe=="function"&&(oe=oe(ki)),oe&&/color|fill|stroke/i.test(ee)?function er(tr,ke=[]){let Ke={};for(let Ae in tr){let Ye=tr[Ae],rr=[...ke,Ae];Ke[rr.join("-")]=Ye,Ae=="DEFAULT"&&(rr=ke,Ke[ke.join("-")]=Ye),typeof Ye=="object"&&Object.assign(Ke,er(Ye,rr))}return Ke}(oe):oe}}(l),e:Lo,h:Z,s(j,Q){return k(j,Q,Y)},d(j,Q,ie){return f(j,Q,Y,ie)},v(j){return R.has(j)||R.set(j,Io(j,p,$,Vu,Y)||"&:"+j),R.get(j)},r(j,Q){let ie=JSON.stringify([j,Q]);return M.has(ie)||M.set(ie,!H(j,Y)&&Io(j,b,L,Nu,Y,Q)),M.get(ie)},f(j){return I.reduce((Q,ie)=>ie(Q,Y),j)}};return Y}(r),i=new Map,s=[],o=new Set;e.resume(l=>i.set(l,l),(l,c)=>{e.insert(l,s.length,c),s.push(c),o.add(l)});function u(l){let c=n.f(l),f=Ni(c);if(f&&!o.has(f)){o.add(f);let p=jo(s,l);e.insert(f,p,l),s.splice(p,0,l)}return c.n}return Object.defineProperties(function(c){if(!i.size)for(let p of U(r.preflight))typeof p=="function"&&(p=p(n)),p&&(typeof p=="string"?Zi("",G.b,fn(p),n,G.b,[],!1,!0):Ro(p,{},n,G.b)).forEach(u);c=""+c;let f=i.get(c);if(!f){let p=new Set;for(let b of pn(fn(c),n))p.add(b.c).add(u(b));f=[...p].filter(Boolean).join(" "),i.set(c,f).set(f,f)}return f},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:n.theme,config:r,snapshot(){let l=e.snapshot(),c=new Set(o),f=new Map(i),p=[...s];return()=>{l(),o=c,i=f,s=p}},clear(){e.clear(),o=new Set,i=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function Hu(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function Fo(t){let e=new MutationObserver(r);return{observe(i){e.observe(i,{attributeFilter:["class"],subtree:!0,childList:!0}),n(i),r([{target:i,type:""}])},disconnect(){e.disconnect()}};function r(i){for(let{type:s,target:o}of i)if(s[0]=="a")n(o);else for(let u of o.querySelectorAll("[class]"))n(u);e.takeRecords()}function n(i){let s,o=i.getAttribute?.("class");o&&Hu(o,s=t(o))&&i.setAttribute("class",s)}}function qu(t){let e=document.querySelector(t||'style[data-twind=""]');return(!e||e.tagName!="STYLE")&&(e=document.createElement("style"),document.head.prepend(e)),e.dataset.twind="claimed",e}function mn(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:qu(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,n=>n.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=e.cssRules.length;r--;)e.deleteRule(r)},destroy(){e.ownerNode?.remove()},insert(r,n){try{e.insertRule(r,n)}catch{e.insertRule(":root{}",n)}},resume:dn}}var Bu=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Ho(t){return Bu.get(t)}function qo(t){var e=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(t);return e?e[1]?1:e[2]?2:e[3]?3:5:0}function Bo(t,e){var r=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(t);return r?r[1]?/^sti/i.test(e)?1:0:r[2]?/^pat/i.test(e)?1:0:r[3]?/^image-/i.test(e)?1:0:r[4]?e[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(e)?4:0:0}var zu=[["-webkit-",1],["-moz-",2],["-ms-",4]];function zo(){return({stringify:t})=>({stringify(e,r,n){let i="",s=Ho(e);s&&(i+=t(s,r,n)+";");let o=qo(e),u=Bo(e,r);for(let l of zu)o&l[1]&&(i+=t(l[0]+e,r,n)+";"),u&l[1]&&(i+=t(e,l[0]+r,n)+";");return i+t(e,r,n)}})}function Zo(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",Gi("lineClamp",({_:t})=>Wo(t))],["line-clamp-(\\d+)",({1:t})=>Wo(t)]]}}function Wo(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}var fr={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...ae(4,"rem",4,.5,.5),...ae(12,"rem",4,5),14:"3.5rem",...ae(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:O("blur"),backdropBrightness:O("brightness"),backdropContrast:O("contrast"),backdropGrayscale:O("grayscale"),backdropHueRotate:O("hueRotate"),backdropInvert:O("invert"),backdropOpacity:O("opacity"),backdropSaturate:O("saturate"),backdropSepia:O("sepia"),backgroundColor:O("colors"),backgroundImage:{none:"none"},backgroundOpacity:O("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...ae(200,"",100,0,50),...ae(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:O("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:O("spacing"),borderWidth:{DEFAULT:"1px",...he(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:O("colors"),caretColor:O("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...ae(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:O("borderColor"),divideOpacity:O("borderOpacity"),divideWidth:O("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:t})=>({...t("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({...t("spacing"),...pr(2,6),...pr(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:O("spacing"),gradientColorStops:O("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:t})=>({...t("spacing"),...pr(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...pr(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...ae(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),maxHeight:({theme:t})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...t("spacing")}),maxWidth:({theme:t,breakpoints:e})=>({...e(t("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...ae(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:O("spacing"),placeholderColor:O("colors"),placeholderOpacity:O("opacity"),outlineColor:O("colors"),outlineOffset:he(8,"px"),outlineWidth:he(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:O("colors"),ringOffsetWidth:he(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...he(8,"px")},rotate:{...he(2,"deg"),...he(12,"deg",3),...he(180,"deg",45)},saturate:ae(200,"",100,0,50),scale:{...ae(150,"",100,0,50),...ae(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:O("spacing"),scrollPadding:O("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...he(2,"deg"),...he(12,"deg",3)},space:O("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:ae(2),textColor:O("colors"),textDecorationColor:O("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...he(8,"px")},textUnderlineOffset:{auto:"auto",...he(8,"px")},textIndent:O("spacing"),textOpacity:O("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:O("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:t})=>({...t("spacing"),...pr(2,4),full:"100%"}),width:({theme:t})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...t("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...ae(50,"",1,0,10),auto:"auto"}};function pr(t,e){let r={};do for(var n=1;n<t;n++)r[`${n}/${t}`]=Number((n/t*100).toFixed(6))+"%";while(++t<=e);return r}function he(t,e,r=0){let n={};for(;r<=t;r=2*r||1)n[r]=r+e;return n}function ae(t,e="",r=1,n=0,i=1,s={}){for(;n<=t;n+=i)s[n]=n/r+e;return s}function O(t){return({theme:e})=>e(t)}var Go={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${fr.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${fr.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};var ea=[v("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:Ce(`[${e}]`,"",r)}}})),v("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),w("aspect-","aspectRatio"),v("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:n,padding:i}=e("container"),s={width:"100%",marginRight:n&&"auto",marginLeft:n&&"auto",...o("xs")};for(let u in r){let l=r[u];typeof l=="string"&&(s[hn(l)]={"&":{maxWidth:l,...o(u)}})}return s;function o(u){let l=i&&(typeof i=="string"?i:i[u]||i.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),w("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),v("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),v("box-(border|content)","boxSizing",({1:t})=>t+"-box"),v("hidden",{display:"none"}),v("table-(auto|fixed)","tableLayout"),v(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",v("isolate","isolation"),v("object-(contain|cover|fill|none|scale-down)","objectFit"),w("object-","objectPosition"),v("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",gn),v("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),v("(static|fixed|absolute|relative|sticky)","position"),w("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),w("-?(top|bottom|left|right)(?:$|-)","inset"),v("(visible|collapse)","visibility"),v("invisible",{visibility:"hidden"}),w("-?z-","zIndex"),v("flex-((row|col)(-reverse)?)","flexDirection",Jo),v("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),w("(flex-(?:grow|shrink))(?:$|-)"),w("(flex)-"),w("grow(?:$|-)","flexGrow"),w("shrink(?:$|-)","flexShrink"),w("basis-","flexBasis"),w("-?(order)-"),"-?(order)-(\\d+)",w("grid-cols-","gridTemplateColumns"),v("grid-cols-(\\d+)","gridTemplateColumns",Qo),w("col-","gridColumn"),v("col-(span)-(\\d+)","gridColumn",Yo),w("col-start-","gridColumnStart"),v("col-start-(auto|\\d+)","gridColumnStart"),w("col-end-","gridColumnEnd"),v("col-end-(auto|\\d+)","gridColumnEnd"),w("grid-rows-","gridTemplateRows"),v("grid-rows-(\\d+)","gridTemplateRows",Qo),w("row-","gridRow"),v("row-(span)-(\\d+)","gridRow",Yo),w("row-start-","gridRowStart"),v("row-start-(auto|\\d+)","gridRowStart"),w("row-end-","gridRowEnd"),v("row-end-(auto|\\d+)","gridRowEnd"),v("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>gn(Jo(t))),v("grid-flow-(dense)","gridAutoFlow"),w("auto-cols-","gridAutoColumns"),w("auto-rows-","gridAutoRows"),w("gap-x(?:$|-)","gap","columnGap"),w("gap-y(?:$|-)","gap","rowGap"),w("gap(?:$|-)","gap"),"(justify-(?:items|self))-",v("justify-","justifyContent",Xo),v("(content|items|self)-",t=>({["align-"+t[1]]:Xo(t)})),v("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),w("p([xytrbl])?(?:$|-)","padding",kt("padding")),w("-?m([xytrbl])?(?:$|-)","margin",kt("margin")),w("-?space-(x|y)(?:$|-)","space",({1:t,_:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[t]]:`calc(${e} * calc(1 - var(--tw-space-${t}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[t]]:`calc(${e} * var(--tw-space-${t}-reverse))`}})),v("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),w("w-","width"),w("min-w-","minWidth"),w("max-w-","maxWidth"),w("h-","height"),w("min-h-","minHeight"),w("max-h-","maxHeight"),w("font-","fontWeight"),w("font-","fontFamily",({_:t})=>typeof(t=U(t))[1]=="string"?{fontFamily:ve(t)}:{fontFamily:ve(t[0]),...t[1]}),v("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),v("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),v("italic","fontStyle"),v("not-italic",{fontStyle:"normal"}),v("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:t,2:e="",3:r})=>e=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(r?"numeric-fraction":"pt".includes(e[0])?"numeric-spacing":e?"numeric-figure":t)]:t,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Ve({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),w("tracking-","letterSpacing"),w("leading-","lineHeight"),v("list-(inside|outside)","listStylePosition"),w("list-","listStyleType"),v("list-","listStyleType"),w("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),J("placeholder-",{property:"color",selector:"&::placeholder"}),v("text-(left|center|right|justify|start|end)","textAlign"),v("text-(ellipsis|clip)","textOverflow"),w("text-opacity-","textOpacity","--tw-text-opacity"),J("text-",{property:"color"}),w("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),w("indent-","textIndent"),v("(overline|underline|line-through)","textDecorationLine"),v("no-underline",{textDecorationLine:"none"}),w("underline-offset-","textUnderlineOffset"),J("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),w("decoration-","textDecorationThickness"),v("decoration-","textDecorationStyle"),v("(uppercase|lowercase|capitalize)","textTransform"),v("normal-case",{textTransform:"none"}),v("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),v("align-","verticalAlign"),v("whitespace-","whiteSpace"),v("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),v("break-words",{overflowWrap:"break-word"}),v("break-all",{wordBreak:"break-all"}),v("break-keep",{wordBreak:"keep-all"}),J("caret-",{opacityVariable:!1,opacitySection:"opacity"}),J("accent-",{opacityVariable:!1,opacitySection:"opacity"}),v("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${it(t," ")},var(--tw-gradient-stops))`),J("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-from":t.value,"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),J("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${t.value},var(--tw-gradient-to)`})),J("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),v("bg-(fixed|local|scroll)","backgroundAttachment"),v("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),v(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),v("bg-blend-","backgroundBlendMode"),v("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),w("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),J("bg-",{section:"backgroundColor"}),w("bg-","backgroundImage"),w("bg-","backgroundPosition"),v("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",gn),w("bg-","backgroundSize"),w("rounded(?:$|-)","borderRadius"),w("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:t,_:e})=>{let r={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[t]||[t,t];return{[`border-${it(r[0])}-radius`]:e,[`border-${it(r[1])}-radius`]:e}}),v("border-(collapse|separate)","borderCollapse"),w("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),v("border-(solid|dashed|dotted|double|none)","borderStyle"),w("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...Ve({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(t||"-x")]:e,["--tw-border-spacing"+(t||"-y")]:e,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),J("border-([xytrbl])-",{section:"borderColor"},kt("border","Color")),J("border-"),w("border-([xytrbl])(?:$|-)","borderWidth",kt("border","Width")),w("border(?:$|-)","borderWidth"),w("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),v("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),v("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),w("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${it(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${it(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),J("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),w("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),J("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),w("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),v("ring-inset",{"--tw-ring-inset":"inset"}),J("ring-",{property:"--tw-ring-color"}),w("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...Ve({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":e("ringOffsetWidth","","0px"),"--tw-ring-offset-color":fe(e("ringOffsetColor","","#fff")),"--tw-ring-color":fe(e("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":e("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${t} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),J("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),w("shadow(?:$|-)","boxShadow",({_:t})=>({...Ve({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":ve(t),"--tw-shadow-colored":ve(t).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),w("(opacity)-"),v("mix-blend-","mixBlendMode"),...Ko(),...Ko("backdrop-"),w("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:ve(t),transitionTimingFunction:t._=="none"?void 0:ve(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:ve(e("transitionDuration",""))})),w("duration(?:$|-)","transitionDuration","transitionDuration",ve),w("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",ve),w("delay(?:$|-)","transitionDelay","transitionDelay",ve),w("animate(?:$|-)","animation",(t,{theme:e,h:r,e:n})=>{let i=ve(t),s=i.split(" "),o=e("keyframes",s[0]);return o?{["@keyframes "+(s[0]=n(r(s[0])))]:o,animation:s.join(" ")}:{animation:i}}),"(transform)-(none)",v("transform",Ki),v("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":ta(t=="gpu")})),w("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...Ki()})),w("-?(rotate)-","rotate",Xi),w("-?(translate-[xy])-","translate",Xi),w("-?(skew-[xy])-","skew",Xi),v("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",gn),"(appearance)-",w("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",w("(cursor)-"),"(cursor)-",v("snap-(none)","scroll-snap-type"),v("snap-(x|y|both)",({1:t})=>({...Ve({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),v("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),v("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),v("snap-(normal|always)","scroll-snap-stop"),v("scroll-(auto|smooth)","scroll-behavior"),w("scroll-p([xytrbl])?(?:$|-)","padding",kt("scroll-padding")),w("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",kt("scroll-margin")),v("touch-(auto|none|manipulation)","touch-action"),v("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...Ve({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${e?"pan-x":r?"pan-y":t}`]:t,"touch-action":"var(--tw-touch-action)"})),v("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),v("outline",{outlineStyle:"solid"}),v("outline-(dashed|dotted|double)","outlineStyle"),w("-?(outline-offset)-"),J("outline-",{opacityVariable:!1,opacitySection:"opacity"}),w("outline-","outlineWidth"),"(pointer-events)-",w("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],v("select-(none|text|all|auto)","userSelect"),J("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),J("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),w("stroke-","strokeWidth"),v("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),v("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function gn(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function Jo(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function it(t,e="-"){let r=[];for(let n of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[n]);return r.join(e)}function ve(t){return t&&""+(t._||t)}function Xo({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function kt(t,e=""){return({1:r,_:n})=>{let i={x:"lr",y:"tb"}[r]||r+r;return i?{...cr(t+"-"+it(i[0])+e,n),...cr(t+"-"+it(i[1])+e,n)}:cr(t+e,n)}}function Ko(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let n of e)r[`--tw-${t}${n}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...Ve(r),[`${t}filter`]:e.map(n=>`var(--tw-${t}${n})`).join(" ")},[`(${t}filter)-(none)`,v(`${t}filter`,r),...e.map(n=>w(`${n[0]=="h"?"-?":""}(${t}${n})(?:$|-)`,n,({1:i,_:s})=>({[`--tw-${i}`]:U(s).map(o=>`${n}(${o})`).join(" "),...r})))]}function Xi({1:t,_:e}){return{["--tw-"+t]:e,...Ki()}}function Ki(){return{...Ve({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":ta()}),transform:"var(--tw-transform)"}}function ta(t){return[t?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Yo({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function Qo({1:t}){return`repeat(${t},minmax(0,1fr))`}function Ve(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var ra=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:t})=>`@media (orientation:${t})`],["contrast-(more|less)",({1:t})=>`@media (prefers-contrast:${t})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:t})=>`&::${t}`],["(marker|selection)",({1:t})=>`& *::${t},&::${t}`],["file","&::file-selector-button"],["(first|last|only)",({1:t})=>`&:${t}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:t,$$:e},r)=>e&&`&[${t}-${r.theme(t,e)||Ce(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:n="",6:i=e},{e:s,h:o,v:u})=>{let l=xt(n)||(r[0]=="["?r:u(r.slice(1)));return`${(l.includes("&")?l:"&"+l).replace(/&/g,`:merge(.${s(o(t+i))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||Ce(t,"",e)),t)return t.includes(":")||(t+=":var(--tw)"),/^\w*\s*\(/.test(t)||(t=`(${t})`),`@supports ${t.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:t},e)=>{if(t&&(t=e.theme("screens",t)||Ce(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=Ce(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&xt(t).replace(/[}]+$/,"").split("{")]];function na({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:Go,theme:{...fr,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:ra,rules:ea,finalize(r){return r.n&&r.d&&r.r.some(n=>/^&::(before|after)$/.test(n))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var Wu={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},Zu={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},Gu={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Ju={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Xu={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Ku={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Yu={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Qu={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},ec={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},tc={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},rc={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},nc={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},ic={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},sc={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},oc={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},ac={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},lc={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},uc={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},cc={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},pc={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},fc={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},hc={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},ia={__proto__:null,slate:Wu,gray:Zu,zinc:Gu,neutral:Ju,stone:Xu,red:Ku,orange:Yu,amber:Qu,yellow:ec,lime:tc,green:rc,emerald:nc,teal:ic,cyan:sc,sky:oc,blue:ac,indigo:lc,violet:uc,purple:cc,fuchsia:pc,pink:fc,rose:hc};function sa({disablePreflight:t}={}){return na({colors:ia,disablePreflight:t})}function la({className:t="prose",defaultColor:e="gray",extend:r={},colors:n={}}={}){return n={body:"700",headings:"900",lead:"600",links:"900",bold:"900",counters:"500",bullets:"300",hr:"200",quotes:"900","quote-borders":"200",captions:"500",code:"900","pre-code":"200","pre-bg":"800","th-borders":"300","td-borders":"200",...n,dark:n.dark===null?null:{body:"300",headings:"#fff",lead:"400",links:"#fff",bold:"#fff",counters:"400",bullets:"600",hr:"700",quotes:"100","quote-borders":"700",captions:"400",code:"#fff","pre-code":"300","pre-bg":"rgb(0 0 0 / 50%)","th-borders":"600","td-borders":"700",...n.dark}},{variants:[["headings","h1,h2,h3,h4,h5,h6,th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",".lead"]].map(([s,o=s])=>[`${t}-${s}`,(u,l)=>ua(t,o[0]=="."?"."+l.e(l.h(o.slice(1))):o,l,c=>`& :is(${c.trim()})`)]),rules:[[`(lead|not-${t})`,({1:s},{h:o})=>[{c:o(s)}]],[`${t}-invert`,{"@layer base":{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}],[t+"-",({$$:s},o)=>{let u=aa(o.theme("fontSize",s));return u&&{"@layer components":u}}],[t+"-",({$$:s},o)=>i(s,o)],[t,(s,o)=>({...i(e,o),"@layer base":[oa(t,o,{a:{color:"var(--tw-prose-links)",textDecorationLine:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong,blockquote strong,thead th strong":{color:"inherit"},ul:{listStyleType:"disc"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},"ol,ul":{marginTop:C(20,16),marginBottom:C(20,16),paddingLeft:C(26,16)},li:{marginTop:C(8,16),marginBottom:C(8,16)},"ol>li,ul>li":{paddingLeft:C(6,16)},">ul>li p":{marginTop:C(12,16),marginBottom:C(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:C(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:C(20,16)},"ol>li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul>li::marker":{color:"var(--tw-prose-bullets)"},"ul ul,ul ol,ol ul,ol ol":{marginTop:C(12,16),marginBottom:C(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:C(48,16),marginBottom:C(48,16)},blockquote:{marginTop:C(32,20),marginBottom:C(32,20),paddingLeft:C(20,20),fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderLeftWidth:"0.25rem",borderLeftColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},p:{marginTop:C(20,16),marginBottom:C(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:C(36,16),marginTop:"0",marginBottom:C(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:C(24,16),marginTop:C(48,24),marginBottom:C(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:C(20,16),marginTop:C(32,20),marginBottom:C(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:C(24,16),marginBottom:C(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:C(32,16),marginBottom:C(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:C(14,16),lineHeight:"1.4",marginTop:C(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:C(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:C(21,24)},"h3 code":{fontSize:C(18,20)},"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400",fontSize:C(14,16),lineHeight:"1.7",marginTop:C(24,14),marginBottom:C(24,14),borderRadius:"0.375rem",paddingTop:C(12,14),paddingRight:C(16,14),paddingBottom:C(12,14),paddingLeft:C(16,14)},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left",marginTop:C(32,16),marginBottom:C(32,16),fontSize:C(14,16),lineHeight:"1.7"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom",paddingRight:C(8,14),paddingBottom:C(8,14),paddingLeft:C(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td,tfoot td":{verticalAlign:"baseline",paddingTop:C(8,14),paddingRight:C(8,14),paddingBottom:C(8,14),paddingLeft:C(8,14)},"tbody td:first-child,tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child,tfoot td:last-child":{paddingRight:"0"},[`.${o.e(o.h("lead"))}`]:{color:"var(--tw-prose-lead)",fontSize:C(20,16),lineHeight:"1.6",marginTop:C(24,20),marginBottom:C(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),oa(t,o,r)],"@layer components":{...aa(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function i(s,o){let u={},l={},c=(f,p,b)=>{let x=o.theme(`colors.${s}.${p}`,p);b["--tw-prose-"+f]=fe(x);let k=b!=l&&o.d("colors",`${s}-${p}`,x);k&&(l["--tw-prose-"+f]=fe(k))};for(let f in n){let p=n[f];f!="dark"&&p&&c(f,p,u)}for(let f in n.dark||{}){let p=n.dark[f];p&&(n.dark?c("invert-"+f,p,u):c(f,p,l))}return Object.keys(u).length?{"@layer defaults":{"&":u,[o.v("dark")]:l}}:void 0}}function oa(t,e,r){let n={};for(let i in r)n[ua(t,i,e,s=>`.${e.e(e.h(t))}${s}`)]=r[i];return n}function ua(t,e,{e:r,h:n},i){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",u=s,l="")=>i(`${o}:where(${u}):not(:where(.${r(n("not-"+t))} *))${l}`))}function aa(t){return t?typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}:void 0}function C(t,e){return`${(t/e).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var Yi=Ji({hash:!1,darkMode:"class",theme:{extend:{colors:{violet:{DEFAULT:"#601feb",50:"#f3f2ff",100:"#eae7ff",200:"#d7d2ff",300:"#baaeff",400:"#9980ff",500:"#784dff",600:"#6829fe",700:"#601feb",800:"#4b12c5",900:"#3f11a1",950:"#25086d"},pink:{DEFAULT:"#ff0bbb",50:"#fff0fc",100:"#ffe3fc",200:"#ffc6f9",300:"#ff98f2",400:"#ff58e5",500:"#ff27d5",600:"#ff0bbb",700:"#df0095",800:"#b8007b",900:"#980368",950:"#5f003b"},lime:{DEFAULT:"#b9e901",50:"#fdffe4",100:"#f9ffc5",200:"#f1ff92",300:"#e2ff54",400:"#d1fa21",500:"#b9e901",600:"#8ab400",700:"#688902",800:"#526b09",900:"#465a0d",950:"#243300"}},spacing:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},padding:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},lineHeight:{3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px"},maxWidth:{xs:"320px",sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px","3xl":"768px","4xl":"896px","5xl":"1024px","6xl":"1152px","7xl":"1280px"},maxHeight:{.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},borderRadius:{sm:"2px",DEFAULT:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px"},fontSize:{xs:["12px","16px"],sm:["14px","20px"],base:["16px","24px"],lg:["18px","28px"],xl:["20px","28px"],"2xl":["24px","32px"],"3xl":["30px","36px"],"4xl":["36px","40px"],"5xl":["48px","1"],"6xl":["60px","1"],"7xl":["72px","1"],"8xl":["96px","1"],"9xl":["128px","1"]}}},presets:[sa(),zo(),Zo(),la()]});function ca(t,e=!0){let r=function(){if(dc)try{let l=mn(new CSSStyleSheet);return l.connect=c=>{let f=Qi(c);f.adoptedStyleSheets=[...f.adoptedStyleSheets,l.target]},l.disconnect=dn,l}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[mn(s)],u=new WeakMap;return{get target(){return o[0].target},snapshot(){let l=o.map(c=>c.snapshot());return()=>l.forEach(c=>c())},clear(){o.forEach(l=>l.clear())},destroy(){o.forEach(l=>l.destroy())},insert(l,c,f){o[0].insert(l,c,f);let p=this.target.cssRules[c];o.forEach((b,x)=>x&&b.target.insertRule(p.cssText,c))},resume(l,c){return o[0].resume(l,c)},connect(l){let c=document.createElement("style");Qi(l).appendChild(c);let f=mn(c),{cssRules:p}=this.target;for(let b=0;b<p.length;b++)f.target.insertRule(p[b].cssText,b);o.push(f),u.set(l,f)},disconnect(l){let c=o.indexOf(u.get(l));c>=0&&o.splice(c,1)}}}(),n=No({...t,hash:t.hash??e},r),i=Fo(n);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),i.observe(Qi(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...l){super(...l),this.tw=n}}}}var dc=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function Qi(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var _=t=>ca(Yi)(t);var hr=class extends _(S){constructor(){super();y(this,"render",()=>h`
122
+ </svg>`};var Rc=ba,ys=class extends Nn{resolveIcon(t){let r=Rc[t];if(!r)throw console.warn("hi-outline: icon not found",t),new Error(`Icon ${t} not found`);return r}render(){super.render();let t=this.shadowRoot?.querySelector("svg");if(!t)throw new Error("svgEl not found "+this.name);t.setAttribute("fill","none"),t.querySelectorAll("[stroke]").forEach(r=>{r.setAttribute("stroke","currentColor")})}};customElements.get("hi-outline")||customElements.define("hi-outline",ys);var Ar,ae,xe,Mr,ws,Hn=class{constructor(t,r){f(this,Mr);f(this,Ar);f(this,ae);f(this,xe);if(!t)throw new Error("host is required");if(!r)throw new Error("config is required");m(this,Ar,t),a(this,Ar).addController(this),m(this,ae,r)}connect(t){m(this,ae,t),m(this,xe,y(this,Mr,ws).call(this))}hostConnected(){setTimeout(()=>{m(this,xe,y(this,Mr,ws).call(this))},0)}hostDisconnected(){a(this,xe)?.close(1e3,"lit_host_disconnected"),m(this,xe,void 0)}send(t){a(this,xe)?.send(t)}close(t,r){a(this,xe)?.close(t,r)}get isConnected(){return a(this,xe)?.readyState===WebSocket.OPEN}get isConnecting(){return a(this,xe)?.readyState===WebSocket.CONNECTING}};Ar=new WeakMap,ae=new WeakMap,xe=new WeakMap,Mr=new WeakSet,ws=function(){let t=new WebSocket(a(this,ae).url());return a(this,ae).onClose&&(t.onclose=a(this,ae).onClose),a(this,ae).onOpen&&(t.onopen=a(this,ae).onOpen),a(this,ae).onError&&(t.onerror=a(this,ae).onError),a(this,ae).onMessage&&(t.onmessage=a(this,ae).onMessage),t};var ka=Array.isArray;var vs=e=>!!(e&&e.constructor&&e.call&&e.apply);var Ca=e=>!(!e||!e.then||!vs(e.then));function*$a(e,t,r=i=>i,n=1){let i=vs(r)?r:()=>r,s=t?e:0,o=t??e;for(let u=s;u<=o&&(yield i(u),!(u+n>o));u+=n);}var bs=async(e,t)=>{let r=e?.times??3,n=e?.delay,i=e?.backoff??null;for(let s of $a(1,r)){let[o,u]=await ks(t)(l=>{throw{_exited:l}});if(!o)return u;if(o._exited)throw o._exited;if(s===r)throw o;n&&await xs(n),i&&await xs(i(s))}},xs=e=>new Promise(t=>setTimeout(t,e)),ks=e=>(...t)=>{try{let r=e(...t);return Ca(r)?r.then(n=>[void 0,n]).catch(n=>[n,void 0]):[void 0,r]}catch(r){return[r,void 0]}};var Sa="664df22d-d461-42d6-801e-f70247e2cd7c",Z,X,q,Ot,jt,fe,G,Ee,Ea,_a,Aa,Ma,Fn=class{constructor(t,r){f(this,G);f(this,Z);f(this,X);f(this,q,null);g(this,"isStreaming",!1);g(this,"typingIndicator");g(this,"ranOutOfCredits",!1);g(this,"messages",[]);g(this,"conversationId","");f(this,Ot,0);f(this,jt);g(this,"isLiveMode",!1);f(this,fe,[]);m(this,Z,t),m(this,X,r),a(this,X).autoConnect!==!1&&m(this,q,this.initWS()),t.addController(this)}get hasQueuedMessages(){return a(this,fe).length>0}async enqueueMessage(t,{expectStreaming:r=!1}={}){if(a(this,fe).length>0){let n=a(this,fe)[a(this,fe).length-1];if(t.type==="USER_INPUT"&&n.message.type==="USER_INPUT"&&t.value===n.message.value)return!0}return a(this,q)||this.connect(),a(this,q)?.isConnected?y(this,G,Ee).call(this,t,{expectStreaming:r}):(a(this,fe).push({message:t,options:{expectStreaming:r}}),a(this,Z).requestUpdate(),a(this,q)&&!a(this,q).isConnecting&&!a(this,q).isConnected&&this.retry(),await bs({times:5,delay:2e3},async()=>{if(a(this,q)?.isConnected){let n=[...a(this,fe)];m(this,fe,[]),a(this,Z).requestUpdate();let i=!1;for(let{message:s,options:o}of n){let u=y(this,G,Ee).call(this,s,o);s===t&&(i=u)}return i}else throw new Error("WebSocket not connected yet")}).catch(()=>(console.warn("Failed to send message after retries",t),m(this,fe,[]),a(this,Z).requestUpdate(),!1)))}sendUserInput(t,{xUserData:r,xCustomInstructions:n,role:i="user",expectStreaming:s=!1}={}){return y(this,G,Ee).call(this,{type:"USER_INPUT",value:t,role:i,xUserData:r,xCustomInstructions:n},{expectStreaming:s})}async enqueueUserInput(t,{xUserData:r,xCustomInstructions:n,role:i="user",expectStreaming:s=!1}={}){return this.enqueueMessage({type:"USER_INPUT",value:t,role:i,xUserData:r,xCustomInstructions:n},{expectStreaming:s})}sendUserCancel(){return y(this,G,Ee).call(this,{type:"USER_CANCEL"})}sendUserTypingStart(){return y(this,G,Ee).call(this,{type:"USER_TYPING_START"})}sendUserTypingStop(){return y(this,G,Ee).call(this,{type:"USER_TYPING_STOP"})}sendUserMeta(t){return y(this,G,Ee).call(this,{type:"USER_META",metadata:t})}reloadConfig(){y(this,G,Ee).call(this,{type:"RELOAD_CONFIG"})}close(){a(this,q)?.close(1e3,"closed by user")}retry(){clearTimeout(a(this,jt)),m(this,jt,setTimeout(()=>{a(this,X).onReconnect?.(),m(this,q,this.initWS())},1e3*a(this,Ot))),ra(this,Ot)._++}initWS(){return new Hn(a(this,Z),{url:()=>a(this,X).url(this.conversationId,{}),onOpen:t=>y(this,G,Ea).call(this,t),onMessage:t=>y(this,G,_a).call(this,JSON.parse(t.data)),onError:t=>y(this,G,Aa).call(this,t),onClose:t=>y(this,G,Ma).call(this,t)})}hostConnected(){this.conversationId=a(this,X).restoreConversationState?.()?.conversationId||"",this.messages=a(this,X).restoreConversationState?.()?.messages||[]}reset(){y(this,G,Ee).call(this,{type:"NEW_CHAT"}),a(this,X).onReset?.(),this.isStreaming=!1,this.typingIndicator=void 0,this.ranOutOfCredits=!1,this.messages=[],this.conversationId="",this.isLiveMode=!1,m(this,fe,[]),a(this,Z).requestUpdate()}hostDisconnected(){clearTimeout(a(this,jt))}connect(){a(this,q)||m(this,q,this.initWS())}reconnectSocket(){a(this,q)?.close(1e3,"destroy"),m(this,q,this.initWS())}get lastMsg(){if(this.messages.length>0)return this.messages[this.messages.length-1]}};Z=new WeakMap,X=new WeakMap,q=new WeakMap,Ot=new WeakMap,jt=new WeakMap,fe=new WeakMap,G=new WeakSet,Ee=function(t,{expectStreaming:r=!1}={}){return a(this,q)?a(this,q).isConnecting?(console.warn("WebSocket is connecting, message not sent",t),!1):a(this,q).isConnected?(r&&!this.isLiveMode&&(this.isStreaming=!0,a(this,Z).requestUpdate()),a(this,q).send(JSON.stringify(t)),!0):(console.warn("WebSocket is not connected, message not sent",t),this.retry(),!1):(console.warn("WebSocket not initialized, message not sent",t),this.connect(),!1)},Ea=function(t){m(this,Ot,0)},_a=function(t){switch(t.type){case"NEW_MESSAGE":{this.messages=[...this.messages,{...t.message,streaming:!0}].filter((r,n,i)=>n===i.findIndex(s=>s.id===r.id)),this.typingIndicator=void 0,a(this,Z).requestUpdate(),a(this,X).onNewMessage?.(t.message);break}case"APPEND_MESSAGE":{let r=this.messages.find(n=>n.id===t.message.id);if(r){switch(t.message.content_type){case"text":{let{part:n,delta:i,position:s}=t.message;r.content=r.content.slice(0,s)+i,r.parts||=[],r.parts[n]={text:r.parts[n]&&"text"in r.parts[n]?(r.parts[n].text||"").slice(0,s)+i:i};break}case"html":{let{part:n,delta:i,position:s}=t.message;r.parts||=[],r.parts[n]={html:r.parts[n]&&"html"in r.parts[n]?(r.parts[n].html||"").slice(0,s)+i:i};break}case"data":{let{part:n}=t.message;r.parts||=[],r.parts[n]={tag:t.message.tag,data:r.parts[n]&&"data"in r.parts[n]?Object.assign(r.parts[n].data||{},t.message.data):t.message.data};break}}t.metadata&&(r.metadata=t.metadata),a(this,X).onMessageAppend?.(t),a(this,Z).requestUpdate()}else throw new Error(`Message with id ${t.message.id} not found`);break}case"MESSAGE_DONE":{let r=this.messages.find(n=>n.id===t.message.id);if(r)Object.assign(r,t.message),r.streaming=!1;else throw new Error(`Message with id ${t.message.id} not found`);this.isStreaming=!1,a(this,Z).requestUpdate(),a(this,X).onMessageDone?.(t,r),a(this,X).persistConversationState?.(this.conversationId,this.messages);break}case"MESSAGE_CANCEL":{this.isStreaming=!1,this.typingIndicator=void 0,a(this,Z).requestUpdate();break}case"ERROR":{a(this,X).onMessageError?.(t);break}case"CONNECTED":{this.conversationId=t.conversationId,this.messages=t.messages,a(this,X).onConnect?.(t.conversationId),a(this,X).persistConversationState?.(t.conversationId,t.messages),this.isLiveMode=t.metadata?.isLiveMode,a(this,Z).requestUpdate();break}case"TYPING_START":{t.role==="assistant"&&(this.isStreaming=!0),this.typingIndicator={role:t.role,metadata:t.metadata},a(this,Z).requestUpdate();break}case"TYPING_STOP":{this.typingIndicator=void 0,a(this,Z).requestUpdate();break}case"RAN_OUT_OF_CREDITS":{this.messages.some(r=>r.id===Sa)||this.messages.push({id:Sa,role:"assistant",content:"Sorry, I've run out of credits. Please contact the shop directly.",timestamp:Date.now()}),this.ranOutOfCredits=!0,a(this,Z).requestUpdate();break}case"RECONNECT":{this.reconnectSocket(),a(this,Z).requestUpdate();break}default:console.warn(`Unknown message type: ${JSON.stringify(t)}`)}},Aa=function(t){console.error("onError",t),a(this,X).onError?.(t)},Ma=function(t){a(this,Z).isConnected&&a(this,q)&&!a(this,q).isConnected&&t.reason==="reconnect"&&this.retry(),this.isStreaming=!1,this.typingIndicator=void 0,a(this,Z).requestUpdate(),a(this,X).onClose?.()};var Hh=Symbol(),Uc=Symbol();var Ia=Object.getPrototypeOf,Cs=new WeakMap,Vc=e=>e&&(Cs.has(e)?Cs.get(e):Ia(e)===Object.prototype||Ia(e)===Array.prototype);var Oa=e=>Vc(e)&&e[Uc]||null,$s=(e,t=!0)=>{Cs.set(e,t)};var Ss=e=>typeof e=="object"&&e!==null,Bc=e=>Ss(e)&&!Es.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),La=(e,t)=>{let r=ja.get(e);if(r?.[0]===t)return r[1];let n=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return $s(n,!0),ja.set(e,[t,n]),Reflect.ownKeys(e).forEach(i=>{if(Object.getOwnPropertyDescriptor(n,i))return;let s=Reflect.get(e,i),{enumerable:o}=Reflect.getOwnPropertyDescriptor(e,i),u={value:s,enumerable:o,configurable:!0};if(Es.has(s))$s(s,!1);else if(ot.has(s)){let[l,c]=ot.get(s);u.value=La(l,c())}Object.defineProperty(n,i,u)}),Object.preventExtensions(n)},Nc=(e,t,r,n)=>({deleteProperty(i,s){let o=Reflect.get(i,s);r(s);let u=Reflect.deleteProperty(i,s);return u&&n(["delete",[s],o]),u},set(i,s,o,u){let l=!e()&&Reflect.has(i,s),c=Reflect.get(i,s,u);if(l&&(Ta(c,o)||zn.has(o)&&Ta(c,zn.get(o))))return!0;r(s),Ss(o)&&(o=Oa(o)||o);let p=!ot.has(o)&&Fc(o)?_s(o):o;return t(s,p),Reflect.set(i,s,p,u),n(["set",[s],o,c]),!0}}),ot=new WeakMap,Es=new WeakSet,ja=new WeakMap,qn=[1,1],zn=new WeakMap,Ta=Object.is,Hc=(e,t)=>new Proxy(e,t),Fc=Bc,qc=La,zc=Nc;function _s(e={}){if(!Ss(e))throw new Error("object required");let t=zn.get(e);if(t)return t;let r=qn[0],n=new Set,i=(C,A=++qn[0])=>{r!==A&&(r=A,n.forEach(k=>k(C,A)))},s=qn[1],o=(C=++qn[1])=>(s!==C&&!n.size&&(s=C,l.forEach(([A])=>{let k=A[1](C);k>r&&(r=k)})),r),u=C=>(A,k)=>{let E=[...A];E[1]=[C,...E[1]],i(E,k)},l=new Map,c=(C,A)=>{let k=!Es.has(A)&&ot.get(A);if(k){if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&l.has(C))throw new Error("prop listener already exists");if(n.size){let E=k[2](u(C));l.set(C,[k,E])}else l.set(C,[k])}},p=C=>{var A;let k=l.get(C);k&&(l.delete(C),(A=k[1])==null||A.call(k))},h=C=>(n.add(C),n.size===1&&l.forEach(([k,E],T)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&E)throw new Error("remove already exists");let N=k[2](u(T));l.set(T,[k,N])}),()=>{n.delete(C),n.size===0&&l.forEach(([k,E],T)=>{E&&(E(),l.set(T,[k]))})}),v=!0,b=zc(()=>v,c,p,i),$=Hc(e,b);zn.set(e,$);let j=[e,o,h];return ot.set($,j),Reflect.ownKeys(e).forEach(C=>{let A=Object.getOwnPropertyDescriptor(e,C);"value"in A&&A.writable&&($[C]=e[C])}),v=!1,$}function Wn(e,t,r){let n=ot.get(e);(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!n&&console.warn("Please use proxy object");let i,s=[],o=n[2],u=!1,c=o(p=>{if(s.push(p),r){t(s.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,u&&t(s.splice(0))}))});return u=!0,()=>{u=!1,c()}}function Tt(e){let t=ot.get(e);(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!t&&console.warn("Please use proxy object");let[r,n]=t;return qc(r,n())}var Ir,Lt,at,Dt,Pt=class{constructor(t,r){f(this,Ir);f(this,Lt);f(this,at);f(this,Dt,()=>{});m(this,Ir,t),m(this,Lt,r),m(this,at,Tt(r)),t.addController(this)}get state(){return a(this,at)}get value(){return a(this,at)}hostConnected(){a(this,Dt).call(this),m(this,Dt,Wn(a(this,Lt),()=>{m(this,at,Tt(a(this,Lt))),a(this,Ir).requestUpdate()}))}hostDisconnected(){a(this,Dt).call(this)}};Ir=new WeakMap,Lt=new WeakMap,at=new WeakMap,Dt=new WeakMap;var Or,jr,lt,Rt,Ne=class{constructor(t,r,n){f(this,Or);f(this,jr);g(this,"proxyObject");f(this,lt);f(this,Rt,()=>{});m(this,Or,t),m(this,jr,n),this.proxyObject=_s(r),m(this,lt,Tt(this.proxyObject)),t.addController(this)}get state(){return a(this,lt)}get value(){return a(this,lt)}hostConnected(){a(this,Rt).call(this),a(this,jr)?.subscribe&&m(this,Rt,Wn(this.proxyObject,()=>{m(this,lt,Tt(this.proxyObject)),a(this,Or).requestUpdate()}))}hostDisconnected(){a(this,Rt).call(this)}};Or=new WeakMap,jr=new WeakMap,lt=new WeakMap,Rt=new WeakMap;var Ut,Tr,Vt,ut,ct,Zn=class{constructor(t,{provider:r,tag:n,key:i}){f(this,Ut);f(this,Tr);f(this,Vt);f(this,ut,null);f(this,ct,null);m(this,Ut,t),m(this,Tr,n),m(this,Vt,i),t.addController(this)}get value(){return a(this,ct)?a(this,ct).value:null}hostConnected(){if(a(this,ct)||(m(this,ut,Wc(a(this,Ut),a(this,Tr))),!a(this,ut)))return;let t=a(this,ut)[a(this,Vt)]instanceof Ne?a(this,ut)[a(this,Vt)]:null;t&&m(this,ct,new Pt(a(this,Ut),t.proxyObject))}hostDisconnected(){}};Ut=new WeakMap,Tr=new WeakMap,Vt=new WeakMap,ut=new WeakMap,ct=new WeakMap;function Wc(e,t){let r=e;for(;r;){let n=r.closest(t);if(n)return n;let i=r.getRootNode();if(i instanceof ShadowRoot)r=i.host;else break}return null}var Da=()=>{if(window.Shopify)try{return{customerId:Zc()}}catch{return null}return null},Zc=()=>{try{let e=[()=>window.ShopifyAnalytics?.meta?.page?.customerId,()=>window.meta?.page?.customerId,()=>window._st?.cid,()=>window.ShopifyAnalytics?.lib?.user()?.traits()?.uniqToken];for(let t of e)try{let r=t();if(/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(r))continue;if(r)return r}catch{}}catch{return null}return null},Pa=async()=>{try{return(await(await fetch(window.Shopify.routes.root+"cart.js")).json()).items.map(n=>({id:n.id,name:n.title,quantity:n.quantity,price:n.price,variantId:n.variant_id,sku:n.sku,url:n.url,description:n.product_description,image:n.featured_image?.url}))}catch{return[]}};function Ra(e,t="http"){return e.startsWith("http://")||e.startsWith("https://")?e:`${t}://${e}`}function As(e){return new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+!*'();@&=,$]*)*(\\?[-a-z\\d%_.~+!*'();@&=,$]*)?(\\#[-a-z\\d%_.~+!*'();@&=,$]*)?$","i").test(e)}function Ua(e,t){let r=e instanceof URL?e:new URL(e);if(t)for(let[n,i]of t)r.searchParams.set(n,i);return r}var Va=()=>{if(window.ShopRenter)try{let e=Jc();return{customerEmail:e?.customerEmail,customerId:e?.customerId,customerName:e?.customerName}}catch{return null}return null},Jc=()=>{try{if(window.ShopRenter){let e=window.ShopRenter.customer;return{customerEmail:e?.email,customerId:e?.userId,customerName:[e?.name?.firstName,e?.name?.lastName].filter(Boolean).join(" ")}}return{customerEmail:null,customerId:null,customerName:null}}catch{return{customerEmail:null,customerId:null,customerName:null}}},Ba=async()=>{try{let e=window.ShopRenter.shop?.domain;if(!e)return[];let t=Ra(e,"https")+"/cart.json";return(await(await fetch(t)).json()).items.map(s=>({id:s.id,name:s.name,quantity:s.quantity,price:s.price,sku:s.sku,image:s.image,url:s.href}))}catch{return[]}};var Na=()=>{if(window.UNAS)try{let e=window.UNAS.customer;return{customerEmail:e?.email,customerId:e?.id}}catch(e){return console.error("Error fetching customer information:",e),null}return null},Ha=async()=>new Promise((e,t)=>{try{window.UNAS.getCart(r=>{let i=r.items.map(s=>({id:s.id,name:s.name,quantity:s.quantity,price:s.price,sku:s.sku}));e(i)})}catch(r){console.error("Error fetching cart information:",r),t(r)}});var Ms;function Is(e){return{lang:e?.lang??Ms?.lang,message:e?.message,abortEarly:e?.abortEarly??Ms?.abortEarly,abortPipeEarly:e?.abortPipeEarly??Ms?.abortPipeEarly}}var Yc;function Qc(e){return Yc?.get(e)}var ep;function tp(e){return ep?.get(e)}var rp;function np(e,t){return rp?.get(e)?.get(t)}function qa(e){let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function ue(e,t,r,n,i){let s=i&&"input"in i?i.input:r.value,o=i?.expected??e.expects??null,u=i?.received??qa(s),l={kind:e.kind,type:e.type,input:s,expected:o,received:u,message:`Invalid ${t}: ${o?`Expected ${o} but r`:"R"}eceived ${u}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},c=e.kind==="schema",p=i?.message??e.message??np(e.reference,l.lang)??(c?tp(l.lang):null)??n.message??Qc(l.lang);p!==void 0&&(l.message=typeof p=="function"?p(l):p),c&&(r.typed=!1),r.issues?r.issues.push(l):r.issues=[l]}function ce(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},Is())}}}function ip(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function za(e,t){let r=[...new Set(e)];return r.length>1?`(${r.join(` ${t} `)})`:r[0]??"never"}var sp=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};function Os(e,t){return{kind:"validation",type:"max_length",reference:Os,async:!1,expects:`<=${e}`,requirement:e,message:t,"~run"(r,n){return r.typed&&r.value.length>this.requirement&&ue(this,"length",r,n,{received:`${r.value.length}`}),r}}}function js(e,t){return{kind:"validation",type:"min_length",reference:js,async:!1,expects:`>=${e}`,requirement:e,message:t,"~run"(r,n){return r.typed&&r.value.length<this.requirement&&ue(this,"length",r,n,{received:`${r.value.length}`}),r}}}function op(e,t,r){return typeof e.fallback=="function"?e.fallback(t,r):e.fallback}function Wa(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function Ts(){return{kind:"schema",type:"any",reference:Ts,expects:"any",async:!1,get"~standard"(){return ce(this)},"~run"(e){return e.typed=!0,e}}}function Bt(e,t){return{kind:"schema",type:"array",reference:Bt,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return ce(this)},"~run"(r,n){let i=r.value;if(Array.isArray(i)){r.typed=!0,r.value=[];for(let s=0;s<i.length;s++){let o=i[s],u=this.item["~run"]({value:o},n);if(u.issues){let l={type:"array",origin:"value",input:i,key:s,value:o};for(let c of u.issues)c.path?c.path.unshift(l):c.path=[l],r.issues?.push(c);if(r.issues||(r.issues=u.issues),n.abortEarly){r.typed=!1;break}}u.typed||(r.typed=!1),r.value.push(u.value)}}else ue(this,"type",r,n);return r}}}function Ls(e){return{kind:"schema",type:"boolean",reference:Ls,expects:"boolean",async:!1,message:e,get"~standard"(){return ce(this)},"~run"(t,r){return typeof t.value=="boolean"?t.typed=!0:ue(this,"type",t,r),t}}}function Ds(e){return{kind:"schema",type:"null",reference:Ds,expects:"null",async:!1,message:e,get"~standard"(){return ce(this)},"~run"(t,r){return t.value===null?t.typed=!0:ue(this,"type",t,r),t}}}function Gn(e){return{kind:"schema",type:"number",reference:Gn,expects:"number",async:!1,message:e,get"~standard"(){return ce(this)},"~run"(t,r){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:ue(this,"type",t,r),t}}}function Le(e,t){return{kind:"schema",type:"object",reference:Le,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return ce(this)},"~run"(r,n){let i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(let s in this.entries){let o=this.entries[s];if(s in i||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){let u=s in i?i[s]:Wa(o),l=o["~run"]({value:u},n);if(l.issues){let c={type:"object",origin:"value",input:i,key:s,value:u};for(let p of l.issues)p.path?p.path.unshift(c):p.path=[c],r.issues?.push(p);if(r.issues||(r.issues=l.issues),n.abortEarly){r.typed=!1;break}}l.typed||(r.typed=!1),r.value[s]=l.value}else if(o.fallback!==void 0)r.value[s]=op(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(ue(this,"key",r,n,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:i,key:s,value:i[s]}]}),n.abortEarly))break}}else ue(this,"type",r,n);return r}}}function Nt(e,t){return{kind:"schema",type:"optional",reference:Nt,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return ce(this)},"~run"(r,n){return r.value===void 0&&(this.default!==void 0&&(r.value=Wa(this,r,n)),r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,n)}}}function Ps(e,t){return{kind:"schema",type:"picklist",reference:Ps,expects:za(e.map(qa),"|"),async:!1,options:e,message:t,get"~standard"(){return ce(this)},"~run"(r,n){return this.options.includes(r.value)?r.typed=!0:ue(this,"type",r,n),r}}}function Jn(e,t,r){return{kind:"schema",type:"record",reference:Jn,expects:"Object",async:!1,key:e,value:t,message:r,get"~standard"(){return ce(this)},"~run"(n,i){let s=n.value;if(s&&typeof s=="object"){n.typed=!0,n.value={};for(let o in s)if(ip(s,o)){let u=s[o],l=this.key["~run"]({value:o},i);if(l.issues){let p={type:"object",origin:"key",input:s,key:o,value:u};for(let h of l.issues)h.path=[p],n.issues?.push(h);if(n.issues||(n.issues=l.issues),i.abortEarly){n.typed=!1;break}}let c=this.value["~run"]({value:u},i);if(c.issues){let p={type:"object",origin:"value",input:s,key:o,value:u};for(let h of c.issues)h.path?h.path.unshift(p):h.path=[p],n.issues?.push(h);if(n.issues||(n.issues=c.issues),i.abortEarly){n.typed=!1;break}}(!l.typed||!c.typed)&&(n.typed=!1),l.typed&&(n.value[l.value]=c.value)}}else ue(this,"type",n,i);return n}}}function J(e){return{kind:"schema",type:"string",reference:J,expects:"string",async:!1,message:e,get"~standard"(){return ce(this)},"~run"(t,r){return typeof t.value=="string"?t.typed=!0:ue(this,"type",t,r),t}}}function Fa(e){let t;if(e)for(let r of e)t?t.push(...r.issues):t=r.issues;return t}function Ht(e,t){return{kind:"schema",type:"union",reference:Ht,expects:za(e.map(r=>r.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return ce(this)},"~run"(r,n){let i,s,o;for(let u of this.options){let l=u["~run"]({value:r.value},n);if(l.typed)if(l.issues)s?s.push(l):s=[l];else{i=l;break}else o?o.push(l):o=[l]}if(i)return i;if(s){if(s.length===1)return s[0];ue(this,"type",r,n,{issues:Fa(s)}),r.typed=!0}else{if(o?.length===1)return o[0];ue(this,"type",r,n,{issues:Fa(o)})}return r}}}function Za(e,t,r){let n=e["~run"]({value:t},Is(r));if(n.issues)throw new sp(n.issues);return n.value}function Ga(e,t){let r={};for(let n in e.entries)r[n]=!t||t.includes(n)?Nt(e.entries[n]):e.entries[n];return{...e,entries:r,get"~standard"(){return ce(this)}}}function Ja(...e){return{...e[0],pipe:e,get"~standard"(){return ce(this)},"~run"(t,r){for(let n of e)if(n.kind!=="metadata"){if(t.issues&&(n.kind==="schema"||n.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=n["~run"](t,r))}return t}}}function Lr(e,t,r){let n=e["~run"]({value:t},Is(r));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}var Ka=Jn(J(),Ht([J(),Gn(),Ls(),Ds()])),Xa=Ja(J(),js(1),Os(5e3)),Ya=()=>{try{return window.UNAS?Na():window.Shopify?Da():window.ShopRenter?Va():null}catch{return null}},Qa=async()=>{try{return window.UNAS?await Ha():window.Shopify?await Pa():window.ShopRenter?await Ba():[]}catch{return[]}},Ft={schema:Le({conversationId:Nt(J()),messages:Nt(Bt(Le({id:J(),timestamp:Gn(),role:Ps(["user","assistant","support"]),content:J(),parts:Nt(Bt(Ht([Le({text:J()}),Le({html:J()}),Le({tag:J(),data:Jn(J(),Ts())})])))})))}),getStorageKey(e){if(!e)throw new Error("widgetId is not set");return`_molin_${e}`},persist(e,t,r){let n=this.getStorageKey(e);localStorage.setItem(n,JSON.stringify({conversationId:t,messages:r}))},restore(e){try{let t=this.getStorageKey(e),r=JSON.parse(localStorage.getItem(t)||"{}"),n=Za(this.schema,r);return{conversationId:n.conversationId||"",messages:n.messages||[]}}catch(t){return console.error("Failed to restore conversation state:",t),{conversationId:"",messages:[]}}},reset(e){let t=this.getStorageKey(e);localStorage.removeItem(t)}};var Pr,Rr,qt,R,H,el,Dr=class extends _{constructor(){super();f(this,R);g(this,"contextCtrl");f(this,Pr);f(this,Rr);f(this,qt,null);this.widgetId="",this.config={},this.callbacks={},this.xUserData=void 0,this.xCustomInstructions=void 0,this.autoConnect=!0,this.contextCtrl=new Ne(this,{config:this.config,callbacks:this.callbacks,xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,widgetId:this.widgetId,conversationId:"",messages:[],isStreaming:!1,typingIndicator:void 0,ranOutOfCredits:!1,isLiveMode:!1,lastMsg:void 0,hasQueuedMessages:!1,sendUserInput:this.sendUserInput.bind(this),sendUserCancel:this.sendUserCancel.bind(this),sendUserTypingStart:this.sendUserTypingStart.bind(this),sendUserTypingStop:this.sendUserTypingStop.bind(this),reset:this.reset.bind(this),reloadConfig:this.reloadConfig.bind(this),enqueueUserInput:this.enqueueUserInput.bind(this),connect:this.connect.bind(this)})}connectedCallback(){super.connectedCallback(),this.updated()}updated(){this.autoConnect&&a(this,R,H).connect(),Object.assign(this.contextCtrl.proxyObject,{widgetId:this.widgetId,config:this.config,callbacks:this.callbacks,xUserData:a(this,Pr),xCustomInstructions:a(this,Rr),conversationId:a(this,R,H).conversationId,messages:a(this,R,H).messages,isStreaming:a(this,R,H).isStreaming,typingIndicator:a(this,R,H).typingIndicator,ranOutOfCredits:a(this,R,H).ranOutOfCredits,isLiveMode:a(this,R,H).isLiveMode,lastMsg:a(this,R,H).lastMsg,hasQueuedMessages:a(this,R,H).hasQueuedMessages,sendUserInput:this.sendUserInput.bind(this),sendUserCancel:this.sendUserCancel.bind(this),sendUserTypingStart:this.sendUserTypingStart.bind(this),sendUserTypingStop:this.sendUserTypingStop.bind(this),reset:this.reset.bind(this),reloadConfig:this.reloadConfig.bind(this),enqueueUserInput:this.enqueueUserInput.bind(this),connect:this.connect.bind(this)}),y(this,R,el).call(this)}sendUserInput(r,n={}){let i={xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,...n},s=a(this,R,H).sendUserInput(r,i);return s&&this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:r,example:!1,conversationId:a(this,R,H).conversationId}),s}async enqueueUserInput(r,n={}){let i={xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,role:"user",expectStreaming:!0,...n};return a(this,R,H).enqueueUserInput(r,i)}sendUserCancel(){a(this,R,H).sendUserCancel(),this.callbacks.onUserCanceledStreaming?.({widgetId:this.widgetId})}sendUserTypingStart(){a(this,R,H).sendUserTypingStart()}sendUserTypingStop(){a(this,R,H).sendUserTypingStop()}reset(){a(this,R,H).reset()}reloadConfig(){a(this,R,H).reloadConfig()}connect(){a(this,R,H).connect()}render(){return d`<slot></slot>`}};Pr=new WeakMap,Rr=new WeakMap,qt=new WeakMap,R=new WeakSet,H=function(){return a(this,qt)||m(this,qt,new Fn(this,{autoConnect:this.autoConnect,url:r=>{let n=new URL(this.config.wsApiUrl);return n.searchParams.set("widgetId",this.widgetId),n.searchParams.set("conversationId",r),n.searchParams.set("pageUrl",window.location.href),n},onReconnect:()=>{},onError:r=>{console.error("ws error",r)},onClose:()=>{},onNewMessage:r=>{r.role==="assistant"&&this.callbacks.onNewMessageStartedStreaming?.({widgetId:this.widgetId,message:r,conversationId:a(this,R,H).conversationId})},onMessageAppend:r=>{},onMessageDone:(r,n)=>{n.role==="assistant"&&this.callbacks.onMessageEndedStreaming?.({widgetId:this.widgetId,text:n.content??"",message:n,usage_TOKENS_COMPLETION:r.message.usage.TOKENS_COMPLETION,conversationId:a(this,R,H).conversationId})},onMessageError:r=>{console.error("ws message error",r),r.message&&this.callbacks.onError?.({widgetId:this.widgetId,error:"WS: "+r.message})},onReset:()=>{Ft.reset(this.widgetId)},onConnect:r=>{let n=Ya();a(this,R,H).sendUserMeta({xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,customerInformation:n,language:window.navigator.language,cart:[]}),Qa().then(i=>{i?.length>0&&a(this,R,H).sendUserMeta({xUserData:this.xUserData,xCustomInstructions:this.xCustomInstructions,customerInformation:n,cart:i,language:window.navigator.language})}).catch(i=>{console.error(i)})},persistConversationState:(r,n)=>{Ft.persist(this.widgetId,r,n)},restoreConversationState:()=>Ft.restore(this.widgetId)})),a(this,qt)},el=function(){function r(i){if(!i)return;let s;try{s=typeof i=="object"?i:JSON.parse(i)}catch(u){console.error("Molin: user-data is not valid JSON",u);return}if(!s||typeof s!="object"||Object.keys(s).length===0)return;let o=Lr(Ka,s);if(!o.success){console.error("Molin: user-data does not pass schema validation",o.issues);return}return o.output}function n(i){if(!i)return;let s=Lr(Xa,i);if(!s.success){console.error("Molin: custom-instructions does not pass schema validation",s.issues);return}return s.output}m(this,Pr,r(this.xUserData)),m(this,Rr,n(this.xCustomInstructions))},g(Dr,"properties",{widgetId:{type:String},config:{type:Object},callbacks:{type:Object},xUserData:{type:Object},xCustomInstructions:{type:Object},autoConnect:{type:Boolean}});function tl(e){let t=new Zn(e,{provider:Dr,tag:"mw-context-widget",key:"contextCtrl"});return new Proxy({value:null},{get(r,n){if(n==="value")return t.value}})}customElements.get("mw-context-widget")||customElements.define("mw-context-widget",Dr);function Ws(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function ap(e,t=","){return e.map(Ws).join(t)}var ll=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Xn(e){for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function ei(e,t="@media "){return t+U(e).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(n=>`(${n}-width:${r[n]})`).join(" and "))).join(",")}function U(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function rl(e){return e}function ti(){}var Y={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function ul(e){return e.match(/[-=:;]/g)?.length||0}function Ns(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(ul(e),15)<<18}var lp=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Zs({n:e,i:t,v:r=[]},n,i,s){e&&(e=Ws({n:e,i:t,v:r})),s=[...U(s)];for(let u of r){let l=n.theme("screens",u);for(let c of U(l&&ei(l)||n.v(u))){var o;s.push(c),i|=l?67108864|Ns(c):u=="dark"?1073741824:c[0]=="@"?Ns(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~lp.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:i,r:s,i:t}}var cl=new Map;function Hs(e){if(e.d){let t=[],r=Rs(e.r.reduce((n,i)=>i[0]=="@"?(t.push(i),n):i?Rs(n,s=>Rs(i,o=>{let u=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(u){let l=s.indexOf(u[1]);return~l?s.slice(0,l)+u[0]+s.slice(l+u[1].length):Us(s,o)}return Us(o,s)})):n,"&"),n=>Us(n,e.n?"."+ll(e.n):""));return r&&t.push(r.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((n,i)=>i+"{"+n+"}",e.d)}}function Rs(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,n,i)=>t(n)+i)}function Us(e,t){return e.replace(/&/g,t)}var nl=new Intl.Collator("en",{numeric:!0});function pl(e,t){for(var r=0,n=e.length;r<n;){let i=n+r>>1;0>=hl(e[i],t)?r=i+1:n=i}return n}function hl(e,t){let r=e.p&Y.o;return r==(t.p&Y.o)&&(r==Y.b||r==Y.o)?0:e.p-t.p||e.o-t.o||nl.compare(il(e.n),il(t.n))||nl.compare(sl(e.n),sl(t.n))}function il(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function sl(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Vs(e,t){return Math.round(parseInt(e,16)*t)}function me(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:r="1",opacityVariable:n}=t,i=n?`var(${n})`:r;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if(e[0]=="#"&&(e.length==4||e.length==7)){let s=(e.length-1)/3,o=[17,1,.062272][s-1];return`rgba(${[Vs(e.substr(1,s),o),Vs(e.substr(1+s,s),o),Vs(e.substr(1+2*s,s),o),i]})`}return i=="1"?e:i=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function dl(e,t,r,n,i=[]){return function s(o,{n:u,p:l,r:c=[],i:p},h){let v=[],b="",$=0,j=0;for(let k in o||{}){var C,A;let E=o[k];if(k[0]=="@"){if(!E)continue;if(k[1]=="a"){v.push(...Js(u,l,Qn(""+E),h,l,c,p,!0));continue}if(k[1]=="l"){for(let T of U(E))v.push(...s(T,{n:u,p:(C=Y[k[7]],l&~Y.o|C),r:k[7]=="d"?[]:c,i:p},h));continue}if(k[1]=="i"){v.push(...U(E).map(T=>({p:-1,o:0,r:[],d:k+" "+T})));continue}if(k[1]=="k"){v.push({p:Y.d,o:0,r:[k],d:s(E,{p:Y.d},h).map(Hs).join("")});continue}if(k[1]=="f"){v.push(...U(E).map(T=>({p:Y.d,o:0,r:[k],d:s(T,{p:Y.d},h).map(Hs).join("")})));continue}}if(typeof E!="object"||Array.isArray(E))k=="label"&&E?u=E+Xn(JSON.stringify([l,p,o])):(E||E===0)&&(k=k.replace(/[A-Z]/g,T=>"-"+T.toLowerCase()),j+=1,$=Math.max($,(A=k)[0]=="-"?0:ul(A)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(A)?+!!RegExp.$1||-!!RegExp.$2:0)+1),b+=(b?";":"")+U(E).map(T=>h.s(k,Gs(""+T,h.theme)+(p?" !important":""))).join(";"));else if(k[0]=="@"||k.includes("&")){let T=l;k[0]=="@"&&(k=k.replace(/\bscreen\(([^)]+)\)/g,(N,K)=>{let te=h.theme("screens",K);return te?(T|=67108864,ei(te,"")):N}),T|=Ns(k)),v.push(...s(E,{n:u,p:T,r:[...c,k],i:p},h))}else v.push(...s(E,{p:l,r:[...c,k]},h))}return v.unshift({n:u,p:l,o:Math.max(0,15-j)+1.5*Math.min($||15,15),r:c,d:b}),v.sort(hl)}(e,Zs(t,r,n,i),r)}function Gs(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,n,i,s,o="")=>{let u=t(i,o);return typeof u=="function"&&/color|fill|stroke/i.test(i)?me(u):""+U(u).filter(l=>Object(l)!==l)})}function fl(e,t){let r,n=[];for(let i of e)i.d&&i.n?r?.p==i.p&&""+r.r==""+i.r?(r.c=[r.c,i.c].filter(Boolean).join(" "),r.d=r.d+";"+i.d):n.push(r={...i,n:i.n&&t}):n.push({...i,n:i.n&&t});return n}function Yn(e,t,r=Y.u,n,i){let s=[];for(let o of e)for(let u of function(l,c,p,h,v){l={...l,i:l.i||v};let b=function($,j){let C=cl.get($.n);return C?C($,j):j.r($.n,$.v[0]=="dark")}(l,c);return b?typeof b=="string"?({r:h,p}=Zs(l,c,p,h),fl(Yn(Qn(b),c,p,h,l.i),l.n)):Array.isArray(b)?b.map($=>{var j,C;return{o:0,...$,r:[...U(h),...U($.r)],p:(j=p,C=$.p??p,j&~Y.o|C)}}):dl(b,l,c,p,h):[{c:Ws(l),p:0,o:0,r:[]}]}(o,t,r,n,i))s.splice(pl(s,u),0,u);return s}function Js(e,t,r,n,i,s,o,u){return fl((u?r.flatMap(l=>Yn([l],n,i,s,o)):Yn(r,n,i,s,o)).map(l=>l.p&Y.o&&(l.n||t==Y.b)?{...l,p:l.p&~Y.o|t,o:0}:l),e)}function up(e,t,r,n){var i;return i=(s,o)=>{let{n:u,p:l,r:c,i:p}=Zs(s,o,t);return r&&Js(u,t,r,o,l,c,p,n)},cl.set(e,i),e}function Bs(e,t,r){if(e[e.length-1]!="("){let n=[],i=!1,s=!1,o="";for(let u of e)if(!(u=="("||/[~@]$/.test(u))){if(u[0]=="!"&&(u=u.slice(1),i=!i),u.endsWith(":")){n[u=="dark:"?"unshift":"push"](u.slice(0,-1));continue}u[0]=="-"&&(u=u.slice(1),s=!s),u.endsWith("-")&&(u=u.slice(0,-1)),u&&u!="&"&&(o+=(o&&"-")+u)}o&&(s&&(o="-"+o),t[0].push({n:o,v:n.filter(cp),i}))}}function cp(e,t,r){return r.indexOf(e)==t}var ol=new Map;function Qn(e){let t=ol.get(e);if(!t){let r=[],n=[[]],i=0,s=0,o=null,u=0,l=(c,p=0)=>{i!=u&&(r.push(e.slice(i,u+p)),c&&Bs(r,n)),i=u+1};for(;u<e.length;u++){let c=e[u];if(s)e[u-1]!="\\"&&(s+=+(c=="[")||-(c=="]"));else if(c=="[")s+=1;else if(o)e[u-1]!="\\"&&o.test(e.slice(u))&&(o=null,i=u+RegExp.lastMatch.length);else if(c=="/"&&e[u-1]!="\\"&&(e[u+1]=="*"||e[u+1]=="/"))o=e[u+1]=="*"?/^\*\//:/^[\r\n]/;else if(c=="(")l(),r.push(c);else if(c==":")e[u+1]!=":"&&l(!1,1);else if(/[\s,)]/.test(c)){l(!0);let p=r.lastIndexOf("(");if(c==")"){let h=r[p-1];if(/[~@]$/.test(h)){let v=n.shift();r.length=p,Bs([...r,"#"],n);let{v:b}=n[0].pop();for(let $ of v)$.v.splice(+($.v[0]=="dark")-+(b[0]=="dark"),b.length);Bs([...r,up(h.length>1?h.slice(0,-1)+Xn(JSON.stringify([h,v])):h+"("+ap(v)+")",Y.a,v,/@$/.test(h))],n)}p=r.lastIndexOf("(",p-1)}r.length=p+1}else/[~@]/.test(c)&&e[u+1]=="("&&n.unshift([])}l(!0),ol.set(e,t=n[0])}return t}function w(e,t,r){return[e,Fs(t,r)]}function Fs(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(r,n)=>({[e]:t?t(r,n):qs(r,1)}):r=>e||{[r[1]]:qs(r,2)}}function qs(e,t,r=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${r} * -1)`:r}function x(e,t,r,n){return[e,Ks(t,r,n)]}function Ks(e,t,r){let n=typeof t=="string"?(i,s)=>({[t]:r?r(i,s):i._}):t||(({1:i,_:s},o,u)=>({[i||u]:s}));return(i,s)=>{let o=ml(e||i[1]),u=s.theme(o,i.$$)??_e(i.$$,o,s);if(u!=null)return i._=qs(i,0,u),n(i,s,o)}}function Q(e,t={},r){return[e,pp(t,r)]}function pp(e={},t){return(r,n)=>{let{section:i=ml(r[0]).replace("-","")+"Color"}=e,[s,o]=hp(r.$$);if(!s)return;let u=n.theme(i,s)||_e(s,i,n);if(!u||typeof u=="object")return;let{opacityVariable:l=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:p=i,selector:h}=e,v=n.theme(c,o||"DEFAULT")||o&&_e(o,c,n),b=t||(({_:j})=>{let C=Ur(p,j);return h?{[h]:C}:C});r._={value:me(u,{opacityVariable:l||void 0,opacityValue:v||void 0}),color:j=>me(u,j),opacityVariable:l||void 0,opacityValue:v||void 0};let $=b(r,n);if(!r.dark){let j=n.d(i,s,u);j&&j!==u&&(r._={value:me(j,{opacityVariable:l||void 0,opacityValue:v||"1"}),color:C=>me(j,C),opacityVariable:l||void 0,opacityValue:v||void 0},$={"&":$,[n.v("dark")]:b(r,n)})}return $}}function hp(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Ur(e,t){let r={};return typeof t=="string"?r[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(r[t.opacityVariable]=t.opacityValue||"1"),r[e]=t.value),r}function _e(e,t,r){if(e[0]=="["&&e.slice(-1)=="]"){if(e=zt(Gs(e.slice(1,-1),r.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function ml(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function zt(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,r="",n,i="")=>zt(r)+n+zt(i)):e.replace(/(^|[^\\])_+/g,(t,r)=>r+" ".repeat(t.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function Xs({presets:e=[],...t}){let r={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:U(t.variants),rules:U(t.rules),ignorelist:U(t.ignorelist),hash:void 0,stringify:(n,i)=>n+":"+i,finalize:[]};for(let n of U([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&U(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:i,darkMode:s=r.darkMode,darkColor:o=r.darkColor,theme:u,variants:l,rules:c,ignorelist:p,hash:h=r.hash,stringify:v=r.stringify,finalize:b}=typeof n=="function"?n(r):n;r={preflight:r.preflight!==!1&&i!==!1&&[...r.preflight,...U(i)],darkMode:s,darkColor:o,theme:{...r.theme,...u,extend:{...r.theme.extend,...u?.extend}},variants:[...r.variants,...U(l)],rules:[...r.rules,...U(c)],ignorelist:[...r.ignorelist,...U(p)],hash:h,stringify:v,finalize:[...r.finalize,...U(b)]}}return r}function al(e,t,r,n,i,s){for(let o of t){let u=r.get(o);u||r.set(o,u=n(o));let l=u(e,i,s);if(l)return l}}function dp(e){var t;return zs(e[0],typeof(t=e[1])=="function"?t:()=>t)}function fp(e){var t,r;return Array.isArray(e)?zs(e[0],Fs(e[1],e[2])):zs(e,Fs(t,r))}function zs(e,t){return gl(e,(r,n,i,s)=>{let o=n.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=s,t(o,i)})}function gl(e,t){let r=U(e).map(mp);return(n,i,s)=>{for(let o of r){let u=t(n,o,i,s);if(u)return u}}}function mp(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function yl(e,t){let r=Xs(e),n=function({theme:l,darkMode:c,darkColor:p=ti,variants:h,rules:v,hash:b,stringify:$,ignorelist:j,finalize:C}){let A=new Map,k=new Map,E=new Map,T=new Map,N=gl(j,(P,re)=>re.test(P));h.push(["dark",Array.isArray(c)||c=="class"?`${U(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let K=typeof b=="function"?P=>b(P,Xn):b?Xn:rl;K!==rl&&C.push(P=>({...P,n:P.n&&K(P.n),d:P.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(re,oe)=>"--"+K(oe).replace("#",""))}));let te={theme:function({extend:P={},...re}){let oe={},ss={get colors(){return Ye("colors")},theme:Ye,negative(){return{}},breakpoints(W){let ne={};for(let le in W)typeof W[le]=="string"&&(ne["screen-"+le]=W[le]);return ne}};return Ye;function Ye(W,ne,le,wr){if(W){if({1:W,2:wr}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(W)||[,W],/[.[]/.test(W)){let Oe=[];W.replace(/\[([^\]]+)\]|([^.[]+)/g,(et,xr,Cc=xr)=>Oe.push(Cc)),W=Oe.shift(),le=ne,ne=Oe.join("-")}let Se=oe[W]||Object.assign(Object.assign(oe[W]={},On(re,W)),On(P,W));if(ne==null)return Se;ne||(ne="DEFAULT");let Qe=Se[ne]??ne.split("-").reduce((Oe,et)=>Oe?.[et],Se)??le;return wr?me(Qe,{opacityValue:Gs(wr,Ye)}):Qe}let vr={};for(let Se of[...Object.keys(re),...Object.keys(P)])vr[Se]=Ye(Se);return vr}function On(W,ne){let le=W[ne];return typeof le=="function"&&(le=le(ss)),le&&/color|fill|stroke/i.test(ne)?function wr(vr,Se=[]){let Qe={};for(let Oe in vr){let et=vr[Oe],xr=[...Se,Oe];Qe[xr.join("-")]=et,Oe=="DEFAULT"&&(xr=Se,Qe[Se.join("-")]=et),typeof et=="object"&&Object.assign(Qe,wr(et,xr))}return Qe}(le):le}}(l),e:ll,h:K,s(P,re){return $(P,re,te)},d(P,re,oe){return p(P,re,te,oe)},v(P){return A.has(P)||A.set(P,al(P,h,k,dp,te)||"&:"+P),A.get(P)},r(P,re){let oe=JSON.stringify([P,re]);return E.has(oe)||E.set(oe,!N(P,te)&&al(P,v,T,fp,te,re)),E.get(oe)},f(P){return C.reduce((re,oe)=>oe(re,te),P)}};return te}(r),i=new Map,s=[],o=new Set;t.resume(l=>i.set(l,l),(l,c)=>{t.insert(l,s.length,c),s.push(c),o.add(l)});function u(l){let c=n.f(l),p=Hs(c);if(p&&!o.has(p)){o.add(p);let h=pl(s,l);t.insert(p,h,l),s.splice(h,0,l)}return c.n}return Object.defineProperties(function(c){if(!i.size)for(let h of U(r.preflight))typeof h=="function"&&(h=h(n)),h&&(typeof h=="string"?Js("",Y.b,Qn(h),n,Y.b,[],!1,!0):dl(h,{},n,Y.b)).forEach(u);c=""+c;let p=i.get(c);if(!p){let h=new Set;for(let v of Yn(Qn(c),n))h.add(v.c).add(u(v));p=[...h].filter(Boolean).join(" "),i.set(c,p).set(p,p)}return p},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:n.theme,config:r,snapshot(){let l=t.snapshot(),c=new Set(o),p=new Map(i),h=[...s];return()=>{l(),o=c,i=p,s=h}},clear(){t.clear(),o=new Set,i=new Map,s=[]},destroy(){this.clear(),t.destroy()}}))}function gp(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function wl(e){let t=new MutationObserver(r);return{observe(i){t.observe(i,{attributeFilter:["class"],subtree:!0,childList:!0}),n(i),r([{target:i,type:""}])},disconnect(){t.disconnect()}};function r(i){for(let{type:s,target:o}of i)if(s[0]=="a")n(o);else for(let u of o.querySelectorAll("[class]"))n(u);t.takeRecords()}function n(i){let s,o=i.getAttribute?.("class");o&&gp(o,s=e(o))&&i.setAttribute("class",s)}}function yp(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function ri(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:yp(e)).sheet;return{target:t,snapshot(){let r=Array.from(t.cssRules,n=>n.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=t.cssRules.length;r--;)t.deleteRule(r)},destroy(){t.ownerNode?.remove()},insert(r,n){try{t.insertRule(r,n)}catch{t.insertRule(":root{}",n)}},resume:ti}}var wp=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function vl(e){return wp.get(e)}function xl(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function bl(e,t){var r=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return r?r[1]?/^sti/i.test(t)?1:0:r[2]?/^pat/i.test(t)?1:0:r[3]?/^image-/i.test(t)?1:0:r[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var vp=[["-webkit-",1],["-moz-",2],["-ms-",4]];function kl(){return({stringify:e})=>({stringify(t,r,n){let i="",s=vl(t);s&&(i+=e(s,r,n)+";");let o=xl(t),u=bl(t,r);for(let l of vp)o&l[1]&&(i+=e(l[0]+t,r,n)+";"),u&l[1]&&(i+=e(t,l[0]+r,n)+";");return i+e(t,r,n)}})}function $l(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",Ks("lineClamp",({_:e})=>Cl(e))],["line-clamp-(\\d+)",({1:e})=>Cl(e)]]}}function Cl(e){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${e}`}}var Br={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...pe(4,"rem",4,.5,.5),...pe(12,"rem",4,5),14:"3.5rem",...pe(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:D("blur"),backdropBrightness:D("brightness"),backdropContrast:D("contrast"),backdropGrayscale:D("grayscale"),backdropHueRotate:D("hueRotate"),backdropInvert:D("invert"),backdropOpacity:D("opacity"),backdropSaturate:D("saturate"),backdropSepia:D("sepia"),backgroundColor:D("colors"),backgroundImage:{none:"none"},backgroundOpacity:D("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...pe(200,"",100,0,50),...pe(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:D("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:D("spacing"),borderWidth:{DEFAULT:"1px",...ge(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:D("colors"),caretColor:D("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...pe(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:D("borderColor"),divideOpacity:D("borderOpacity"),divideWidth:D("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Vr(2,6),...Vr(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:D("spacing"),gradientColorStops:D("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Vr(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Vr(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...pe(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...pe(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:D("spacing"),placeholderColor:D("colors"),placeholderOpacity:D("opacity"),outlineColor:D("colors"),outlineOffset:ge(8,"px"),outlineWidth:ge(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:D("colors"),ringOffsetWidth:ge(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...ge(8,"px")},rotate:{...ge(2,"deg"),...ge(12,"deg",3),...ge(180,"deg",45)},saturate:pe(200,"",100,0,50),scale:{...pe(150,"",100,0,50),...pe(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:D("spacing"),scrollPadding:D("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...ge(2,"deg"),...ge(12,"deg",3)},space:D("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:pe(2),textColor:D("colors"),textDecorationColor:D("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...ge(8,"px")},textUnderlineOffset:{auto:"auto",...ge(8,"px")},textIndent:D("spacing"),textOpacity:D("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:D("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Vr(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...pe(50,"",1,0,10),auto:"auto"}};function Vr(e,t){let r={};do for(var n=1;n<e;n++)r[`${n}/${e}`]=Number((n/e*100).toFixed(6))+"%";while(++e<=t);return r}function ge(e,t,r=0){let n={};for(;r<=e;r=2*r||1)n[r]=r+t;return n}function pe(e,t="",r=1,n=0,i=1,s={}){for(;n<=e;n+=i)s[n]=n/r+t;return s}function D(e){return({theme:t})=>t(e)}var Sl={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Br.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Br.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};var Ol=[w("\\[([-\\w]+):(.+)]",({1:e,2:t},r)=>({"@layer overrides":{"&":{[e]:_e(`[${t}]`,"",r)}}})),w("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),x("aspect-","aspectRatio"),w("container",(e,{theme:t})=>{let{screens:r=t("screens"),center:n,padding:i}=t("container"),s={width:"100%",marginRight:n&&"auto",marginLeft:n&&"auto",...o("xs")};for(let u in r){let l=r[u];typeof l=="string"&&(s[ei(l)]={"&":{maxWidth:l,...o(u)}})}return s;function o(u){let l=i&&(typeof i=="string"?i:i[u]||i.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),x("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),w("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),w("box-(border|content)","boxSizing",({1:e})=>e+"-box"),w("hidden",{display:"none"}),w("table-(auto|fixed)","tableLayout"),w(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",w("isolate","isolation"),w("object-(contain|cover|fill|none|scale-down)","objectFit"),x("object-","objectPosition"),w("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",ni),w("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),w("(static|fixed|absolute|relative|sticky)","position"),x("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),x("-?(top|bottom|left|right)(?:$|-)","inset"),w("(visible|collapse)","visibility"),w("invisible",{visibility:"hidden"}),x("-?z-","zIndex"),w("flex-((row|col)(-reverse)?)","flexDirection",El),w("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),x("(flex-(?:grow|shrink))(?:$|-)"),x("(flex)-"),x("grow(?:$|-)","flexGrow"),x("shrink(?:$|-)","flexShrink"),x("basis-","flexBasis"),x("-?(order)-"),"-?(order)-(\\d+)",x("grid-cols-","gridTemplateColumns"),w("grid-cols-(\\d+)","gridTemplateColumns",Il),x("col-","gridColumn"),w("col-(span)-(\\d+)","gridColumn",Ml),x("col-start-","gridColumnStart"),w("col-start-(auto|\\d+)","gridColumnStart"),x("col-end-","gridColumnEnd"),w("col-end-(auto|\\d+)","gridColumnEnd"),x("grid-rows-","gridTemplateRows"),w("grid-rows-(\\d+)","gridTemplateRows",Il),x("row-","gridRow"),w("row-(span)-(\\d+)","gridRow",Ml),x("row-start-","gridRowStart"),w("row-start-(auto|\\d+)","gridRowStart"),x("row-end-","gridRowEnd"),w("row-end-(auto|\\d+)","gridRowEnd"),w("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>ni(El(e))),w("grid-flow-(dense)","gridAutoFlow"),x("auto-cols-","gridAutoColumns"),x("auto-rows-","gridAutoRows"),x("gap-x(?:$|-)","gap","columnGap"),x("gap-y(?:$|-)","gap","rowGap"),x("gap(?:$|-)","gap"),"(justify-(?:items|self))-",w("justify-","justifyContent",_l),w("(content|items|self)-",e=>({["align-"+e[1]]:_l(e)})),w("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),x("p([xytrbl])?(?:$|-)","padding",Wt("padding")),x("-?m([xytrbl])?(?:$|-)","margin",Wt("margin")),x("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),w("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),x("w-","width"),x("min-w-","minWidth"),x("max-w-","maxWidth"),x("h-","height"),x("min-h-","minHeight"),x("max-h-","maxHeight"),x("font-","fontWeight"),x("font-","fontFamily",({_:e})=>typeof(e=U(e))[1]=="string"?{fontFamily:be(e)}:{fontFamily:be(e[0]),...e[1]}),w("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),w("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),w("italic","fontStyle"),w("not-italic",{fontStyle:"normal"}),w("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:r})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(r?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...He({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),x("tracking-","letterSpacing"),x("leading-","lineHeight"),w("list-(inside|outside)","listStylePosition"),x("list-","listStyleType"),w("list-","listStyleType"),x("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Q("placeholder-",{property:"color",selector:"&::placeholder"}),w("text-(left|center|right|justify|start|end)","textAlign"),w("text-(ellipsis|clip)","textOverflow"),x("text-opacity-","textOpacity","--tw-text-opacity"),Q("text-",{property:"color"}),x("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),x("indent-","textIndent"),w("(overline|underline|line-through)","textDecorationLine"),w("no-underline",{textDecorationLine:"none"}),x("underline-offset-","textUnderlineOffset"),Q("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),x("decoration-","textDecorationThickness"),w("decoration-","textDecorationStyle"),w("(uppercase|lowercase|capitalize)","textTransform"),w("normal-case",{textTransform:"none"}),w("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),w("align-","verticalAlign"),w("whitespace-","whiteSpace"),w("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),w("break-words",{overflowWrap:"break-word"}),w("break-all",{wordBreak:"break-all"}),w("break-keep",{wordBreak:"keep-all"}),Q("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Q("accent-",{opacityVariable:!1,opacitySection:"opacity"}),w("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${pt(e," ")},var(--tw-gradient-stops))`),Q("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Q("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Q("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),w("bg-(fixed|local|scroll)","backgroundAttachment"),w("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),w(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),w("bg-blend-","backgroundBlendMode"),w("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),x("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Q("bg-",{section:"backgroundColor"}),x("bg-","backgroundImage"),x("bg-","backgroundPosition"),w("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",ni),x("bg-","backgroundSize"),x("rounded(?:$|-)","borderRadius"),x("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let r={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${pt(r[0])}-radius`]:t,[`border-${pt(r[1])}-radius`]:t}}),w("border-(collapse|separate)","borderCollapse"),x("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),w("border-(solid|dashed|dotted|double|none)","borderStyle"),x("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...He({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Q("border-([xytrbl])-",{section:"borderColor"},Wt("border","Color")),Q("border-"),x("border-([xytrbl])(?:$|-)","borderWidth",Wt("border","Width")),x("border(?:$|-)","borderWidth"),x("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),w("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),w("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),x("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let r={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${pt(r[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${pt(r[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Q("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),x("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Q("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),x("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),w("ring-inset",{"--tw-ring-inset":"inset"}),Q("ring-",{property:"--tw-ring-color"}),x("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...He({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":me(t("ringOffsetColor","","#fff")),"--tw-ring-color":me(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Q("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),x("shadow(?:$|-)","boxShadow",({_:e})=>({...He({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":be(e),"--tw-shadow-colored":be(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),x("(opacity)-"),w("mix-blend-","mixBlendMode"),...Al(),...Al("backdrop-"),x("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:be(e),transitionTimingFunction:e._=="none"?void 0:be(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:be(t("transitionDuration",""))})),x("duration(?:$|-)","transitionDuration","transitionDuration",be),x("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",be),x("delay(?:$|-)","transitionDelay","transitionDelay",be),x("animate(?:$|-)","animation",(e,{theme:t,h:r,e:n})=>{let i=be(e),s=i.split(" "),o=t("keyframes",s[0]);return o?{["@keyframes "+(s[0]=n(r(s[0])))]:o,animation:s.join(" ")}:{animation:i}}),"(transform)-(none)",w("transform",Qs),w("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":jl(e=="gpu")})),x("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Qs()})),x("-?(rotate)-","rotate",Ys),x("-?(translate-[xy])-","translate",Ys),x("-?(skew-[xy])-","skew",Ys),w("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",ni),"(appearance)-",x("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",x("(cursor)-"),"(cursor)-",w("snap-(none)","scroll-snap-type"),w("snap-(x|y|both)",({1:e})=>({...He({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),w("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),w("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),w("snap-(normal|always)","scroll-snap-stop"),w("scroll-(auto|smooth)","scroll-behavior"),x("scroll-p([xytrbl])?(?:$|-)","padding",Wt("scroll-padding")),x("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Wt("scroll-margin")),w("touch-(auto|none|manipulation)","touch-action"),w("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:r})=>({...He({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":r?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),w("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),w("outline",{outlineStyle:"solid"}),w("outline-(dashed|dotted|double)","outlineStyle"),x("-?(outline-offset)-"),Q("outline-",{opacityVariable:!1,opacitySection:"opacity"}),x("outline-","outlineWidth"),"(pointer-events)-",x("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],w("select-(none|text|all|auto)","userSelect"),Q("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Q("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),x("stroke-","strokeWidth"),w("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),w("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function ni(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function El(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function pt(e,t="-"){let r=[];for(let n of e)r.push({t:"top",r:"right",b:"bottom",l:"left"}[n]);return r.join(t)}function be(e){return e&&""+(e._||e)}function _l({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function Wt(e,t=""){return({1:r,_:n})=>{let i={x:"lr",y:"tb"}[r]||r+r;return i?{...Ur(e+"-"+pt(i[0])+t,n),...Ur(e+"-"+pt(i[1])+t,n)}:Ur(e+t,n)}}function Al(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),r={};for(let n of t)r[`--tw-${e}${n}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...He(r),[`${e}filter`]:t.map(n=>`var(--tw-${e}${n})`).join(" ")},[`(${e}filter)-(none)`,w(`${e}filter`,r),...t.map(n=>x(`${n[0]=="h"?"-?":""}(${e}${n})(?:$|-)`,n,({1:i,_:s})=>({[`--tw-${i}`]:U(s).map(o=>`${n}(${o})`).join(" "),...r})))]}function Ys({1:e,_:t}){return{["--tw-"+e]:t,...Qs()}}function Qs(){return{...He({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":jl()}),transform:"var(--tw-transform)"}}function jl(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Ml({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Il({1:e}){return`repeat(${e},minmax(0,1fr))`}function He(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var Tl=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},r)=>t&&`&[${e}-${r.theme(e,t)||_e(t,"",r)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:r,5:n="",6:i=t},{e:s,h:o,v:u})=>{let l=zt(n)||(r[0]=="["?r:u(r.slice(1)));return`${(l.includes("&")?l:"&"+l).replace(/&/g,`:merge(.${s(o(e+i))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&(e=t.theme("supports",e)||_e(e,"",t)),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&(e=t.theme("screens",e)||_e(e,"",t)),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&(e=_e(e,"",t)),e&&`@media (min-width:${e})`)],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&zt(e).replace(/[}]+$/,"").split("{")]];function Ll({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:Sl,theme:{...Br,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:Tl,rules:Ol,finalize(r){return r.n&&r.d&&r.r.some(n=>/^&::(before|after)$/.test(n))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var xp={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},bp={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},kp={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Cp={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},$p={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Sp={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Ep={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},_p={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Ap={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Mp={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},Ip={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},Op={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},jp={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},Tp={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},Lp={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},Dp={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},Pp={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},Rp={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},Up={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},Vp={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},Bp={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},Np={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},Dl={__proto__:null,slate:xp,gray:bp,zinc:kp,neutral:Cp,stone:$p,red:Sp,orange:Ep,amber:_p,yellow:Ap,lime:Mp,green:Ip,emerald:Op,teal:jp,cyan:Tp,sky:Lp,blue:Dp,indigo:Pp,violet:Rp,purple:Up,fuchsia:Vp,pink:Bp,rose:Np};function Pl({disablePreflight:e}={}){return Ll({colors:Dl,disablePreflight:e})}function Vl({className:e="prose",defaultColor:t="gray",extend:r={},colors:n={}}={}){return n={body:"700",headings:"900",lead:"600",links:"900",bold:"900",counters:"500",bullets:"300",hr:"200",quotes:"900","quote-borders":"200",captions:"500",code:"900","pre-code":"200","pre-bg":"800","th-borders":"300","td-borders":"200",...n,dark:n.dark===null?null:{body:"300",headings:"#fff",lead:"400",links:"#fff",bold:"#fff",counters:"400",bullets:"600",hr:"700",quotes:"100","quote-borders":"700",captions:"400",code:"#fff","pre-code":"300","pre-bg":"rgb(0 0 0 / 50%)","th-borders":"600","td-borders":"700",...n.dark}},{variants:[["headings","h1,h2,h3,h4,h5,h6,th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",".lead"]].map(([s,o=s])=>[`${e}-${s}`,(u,l)=>Bl(e,o[0]=="."?"."+l.e(l.h(o.slice(1))):o,l,c=>`& :is(${c.trim()})`)]),rules:[[`(lead|not-${e})`,({1:s},{h:o})=>[{c:o(s)}]],[`${e}-invert`,{"@layer base":{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}],[e+"-",({$$:s},o)=>{let u=Ul(o.theme("fontSize",s));return u&&{"@layer components":u}}],[e+"-",({$$:s},o)=>i(s,o)],[e,(s,o)=>({...i(t,o),"@layer base":[Rl(e,o,{a:{color:"var(--tw-prose-links)",textDecorationLine:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong,blockquote strong,thead th strong":{color:"inherit"},ul:{listStyleType:"disc"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},"ol,ul":{marginTop:S(20,16),marginBottom:S(20,16),paddingLeft:S(26,16)},li:{marginTop:S(8,16),marginBottom:S(8,16)},"ol>li,ul>li":{paddingLeft:S(6,16)},">ul>li p":{marginTop:S(12,16),marginBottom:S(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:S(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:S(20,16)},"ol>li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul>li::marker":{color:"var(--tw-prose-bullets)"},"ul ul,ul ol,ol ul,ol ol":{marginTop:S(12,16),marginBottom:S(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:S(48,16),marginBottom:S(48,16)},blockquote:{marginTop:S(32,20),marginBottom:S(32,20),paddingLeft:S(20,20),fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderLeftWidth:"0.25rem",borderLeftColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},p:{marginTop:S(20,16),marginBottom:S(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:S(36,16),marginTop:"0",marginBottom:S(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:S(24,16),marginTop:S(48,24),marginBottom:S(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:S(20,16),marginTop:S(32,20),marginBottom:S(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:S(24,16),marginBottom:S(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:S(32,16),marginBottom:S(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:S(14,16),lineHeight:"1.4",marginTop:S(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:S(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:S(21,24)},"h3 code":{fontSize:S(18,20)},"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400",fontSize:S(14,16),lineHeight:"1.7",marginTop:S(24,14),marginBottom:S(24,14),borderRadius:"0.375rem",paddingTop:S(12,14),paddingRight:S(16,14),paddingBottom:S(12,14),paddingLeft:S(16,14)},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left",marginTop:S(32,16),marginBottom:S(32,16),fontSize:S(14,16),lineHeight:"1.7"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom",paddingRight:S(8,14),paddingBottom:S(8,14),paddingLeft:S(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td,tfoot td":{verticalAlign:"baseline",paddingTop:S(8,14),paddingRight:S(8,14),paddingBottom:S(8,14),paddingLeft:S(8,14)},"tbody td:first-child,tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child,tfoot td:last-child":{paddingRight:"0"},[`.${o.e(o.h("lead"))}`]:{color:"var(--tw-prose-lead)",fontSize:S(20,16),lineHeight:"1.6",marginTop:S(24,20),marginBottom:S(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),Rl(e,o,r)],"@layer components":{...Ul(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function i(s,o){let u={},l={},c=(p,h,v)=>{let b=o.theme(`colors.${s}.${h}`,h);v["--tw-prose-"+p]=me(b);let $=v!=l&&o.d("colors",`${s}-${h}`,b);$&&(l["--tw-prose-"+p]=me($))};for(let p in n){let h=n[p];p!="dark"&&h&&c(p,h,u)}for(let p in n.dark||{}){let h=n.dark[p];h&&(n.dark?c("invert-"+p,h,u):c(p,h,l))}return Object.keys(u).length?{"@layer defaults":{"&":u,[o.v("dark")]:l}}:void 0}}function Rl(e,t,r){let n={};for(let i in r)n[Bl(e,i,t,s=>`.${t.e(t.h(e))}${s}`)]=r[i];return n}function Bl(e,t,{e:r,h:n},i){return t.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",u=s,l="")=>i(`${o}:where(${u}):not(:where(.${r(n("not-"+e))} *))${l}`))}function Ul(e){return e?typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}:void 0}function S(e,t){return`${(e/t).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var eo=Xs({hash:!1,darkMode:"class",theme:{extend:{colors:{violet:{DEFAULT:"#601feb",50:"#f3f2ff",100:"#eae7ff",200:"#d7d2ff",300:"#baaeff",400:"#9980ff",500:"#784dff",600:"#6829fe",700:"#601feb",800:"#4b12c5",900:"#3f11a1",950:"#25086d"},pink:{DEFAULT:"#ff0bbb",50:"#fff0fc",100:"#ffe3fc",200:"#ffc6f9",300:"#ff98f2",400:"#ff58e5",500:"#ff27d5",600:"#ff0bbb",700:"#df0095",800:"#b8007b",900:"#980368",950:"#5f003b"},lime:{DEFAULT:"#b9e901",50:"#fdffe4",100:"#f9ffc5",200:"#f1ff92",300:"#e2ff54",400:"#d1fa21",500:"#b9e901",600:"#8ab400",700:"#688902",800:"#526b09",900:"#465a0d",950:"#243300"}},spacing:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},padding:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},lineHeight:{3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px"},maxWidth:{xs:"320px",sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px","3xl":"768px","4xl":"896px","5xl":"1024px","6xl":"1152px","7xl":"1280px"},maxHeight:{.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},borderRadius:{sm:"2px",DEFAULT:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px"},fontSize:{xs:["12px","16px"],sm:["14px","20px"],base:["16px","24px"],lg:["18px","28px"],xl:["20px","28px"],"2xl":["24px","32px"],"3xl":["30px","36px"],"4xl":["36px","40px"],"5xl":["48px","1"],"6xl":["60px","1"],"7xl":["72px","1"],"8xl":["96px","1"],"9xl":["128px","1"]}}},presets:[Pl(),kl(),$l(),Vl()]});function Nl(e,t=!0){let r=function(){if(Hp)try{let l=ri(new CSSStyleSheet);return l.connect=c=>{let p=to(c);p.adoptedStyleSheets=[...p.adoptedStyleSheets,l.target]},l.disconnect=ti,l}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[ri(s)],u=new WeakMap;return{get target(){return o[0].target},snapshot(){let l=o.map(c=>c.snapshot());return()=>l.forEach(c=>c())},clear(){o.forEach(l=>l.clear())},destroy(){o.forEach(l=>l.destroy())},insert(l,c,p){o[0].insert(l,c,p);let h=this.target.cssRules[c];o.forEach((v,b)=>b&&v.target.insertRule(h.cssText,c))},resume(l,c){return o[0].resume(l,c)},connect(l){let c=document.createElement("style");to(l).appendChild(c);let p=ri(c),{cssRules:h}=this.target;for(let v=0;v<h.length;v++)p.target.insertRule(h[v].cssText,v);o.push(p),u.set(l,p)},disconnect(l){let c=o.indexOf(u.get(l));c>=0&&o.splice(c,1)}}}(),n=yl({...e,hash:e.hash??t},r),i=wl(n);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),i.observe(to(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...l){super(...l),this.tw=n}}}}var Hp=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function to(e){return e.shadowRoot||e.attachShadow({mode:"open"})}var I=e=>Nl(eo)(e);var Nr=class extends I(_){constructor(){super();g(this,"render",()=>d`
123
123
  <div class="shadow-button inline-block rounded-[17.8576px] transition-transform hover:scale-105 active:scale-90">
124
124
  <div class="flex flex-row flex-wrap gap-0">
125
125
  <div class="relative z-0 flex min-h-9 items-center justify-center overflow-hidden rounded-[17.8576px]">
@@ -136,10 +136,10 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
136
136
  <button class="leading-0 relative inline-block h-16 w-16 rounded-[16.8576px] bg-transparent text-sm text-white" aria-label="Open Molin AI chat window">
137
137
  <!-- the 'open' state invites the user to open (e.g. the chat window) -->
138
138
  <div class="${this.state==="open"?"visible opacity-100":"invisible opacity-0"} absolute bottom-0 left-[1px] right-0 top-[1px] transition-[opacity,visibility]">
139
- ${this.src?h`
139
+ ${this.src?d`
140
140
  <!-- load given source -->
141
141
  <img class="flex h-[62px] w-[62px] items-center justify-center rounded-[16.8576px] bg-white" src="${this.src}" alt="Molin AI chat" />
142
- `:h`
142
+ `:d`
143
143
  <!-- the solid background with AI text -->
144
144
  <div class="flex h-[62px] w-[62px] items-center justify-center rounded-[16.8576px] bg-[${this.backgroundColor}]">
145
145
  <svg width="35.44" height="22.17" viewBox="0 0 211 128" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -177,7 +177,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
177
177
  </div>
178
178
  </div>
179
179
  </div>
180
- `);this.state="open",this.color="#601feb",this.bubbleStyle="solid",this.src=""}get iconColor(){return this.bubbleStyle==="solid"?"#ffffff":this.color}get backgroundColor(){return this.bubbleStyle==="solid"?this.color:"#ffffff"}};y(hr,"properties",{state:{type:String},color:{type:String},bubbleStyle:{type:String},src:{type:String}}),y(hr,"styles",re`
180
+ `);this.state="open",this.color="#601feb",this.bubbleStyle="solid",this.src=""}get iconColor(){return this.bubbleStyle==="solid"?"#ffffff":this.color}get backgroundColor(){return this.bubbleStyle==="solid"?this.color:"#ffffff"}};g(Nr,"properties",{state:{type:String},color:{type:String},bubbleStyle:{type:String},src:{type:String}}),g(Nr,"styles",ie`
181
181
  .shadow-button {
182
182
  box-shadow:
183
183
  -58.9194px 74.8436px 38.218px rgba(0, 0, 0, 0.01),
@@ -194,9 +194,927 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
194
194
  transform: rotate(360deg);
195
195
  }
196
196
  }
197
- `);customElements.get("mw-bubble")||customElements.define("mw-bubble",hr);var yn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},vn=t=>(...e)=>({_$litDirective$:t,values:e}),Ct=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:mc}=ko;var pa=()=>document.createComment(""),$t=(t,e,r)=>{let n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=n.insertBefore(pa(),i),o=n.insertBefore(pa(),i);r=new mc(s,o,t,t.options)}else{let s=r._$AB.nextSibling,o=r._$AM,u=o!==t;if(u){let l;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(l=t._$AU)!==o._$AU&&r._$AP(l)}if(s!==i||u){let l=r._$AA;for(;l!==s;){let c=l.nextSibling;n.insertBefore(l,i),l=c}}}return r},Ne=(t,e,r=t)=>(t._$AI(e,r),t),gc={},fa=(t,e=gc)=>t._$AH=e,ha=t=>t._$AH,wn=t=>{t._$AR(),t._$AA.remove()};var da=(t,e,r)=>{let n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},we=vn(class extends Ct{constructor(t){if(super(t),t.type!==yn.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);let i=[],s=[],o=0;for(let u of t)i[o]=n?n(u,o):o,s[o]=r(u,o),o++;return{values:s,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){let i=ha(t),{values:s,keys:o}=this.dt(e,r,n);if(!Array.isArray(i))return this.ut=o,s;let u=this.ut??=[],l=[],c,f,p=0,b=i.length-1,x=0,k=s.length-1;for(;p<=b&&x<=k;)if(i[p]===null)p++;else if(i[b]===null)b--;else if(u[p]===o[x])l[x]=Ne(i[p],s[x]),p++,x++;else if(u[b]===o[k])l[k]=Ne(i[b],s[k]),b--,k--;else if(u[p]===o[k])l[k]=Ne(i[p],s[k]),$t(t,l[k+1],i[p]),p++,k--;else if(u[b]===o[x])l[x]=Ne(i[b],s[x]),$t(t,i[p],i[b]),b--,x++;else if(c===void 0&&(c=da(o,x,k),f=da(u,p,b)),c.has(u[p]))if(c.has(u[b])){let A=f.get(o[x]),I=A!==void 0?i[A]:null;if(I===null){let R=$t(t,i[p]);Ne(R,s[x]),l[x]=R}else l[x]=Ne(I,s[x]),$t(t,i[p],I),i[A]=null;x++}else wn(i[b]),b--;else wn(i[p]),p++;for(;x<=k;){let A=$t(t,l[k+1]);Ne(A,s[x]),l[x++]=A}for(;p<=b;){let A=i[p++];A!==null&&wn(A)}return this.ut=o,fa(t,l),ye}});function dr(t,e,r){return t?e(t):r?.(t)}var bn,ma,xn=class xn extends _(S){constructor(){super();d(this,bn);this.examples={title:"",items:[]},this.color=""}render(){return!this.examples?.title&&!this.examples?.items?.length?E:h`
197
+ `);customElements.get("mw-bubble")||customElements.define("mw-bubble",Nr);var Hl={airplay:`<svg
198
+ xmlns="http://www.w3.org/2000/svg"
199
+ width="24"
200
+ height="24"
201
+ viewBox="0 0 24 24"
202
+ fill="none"
203
+ stroke="currentColor"
204
+ stroke-width="2"
205
+ stroke-linecap="round"
206
+ stroke-linejoin="round"
207
+ >
208
+ <path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1" />
209
+ <path d="m12 15 5 6H7Z" />
210
+ </svg>`,phone:`<svg
211
+ xmlns="http://www.w3.org/2000/svg"
212
+ width="24"
213
+ height="24"
214
+ viewBox="0 0 24 24"
215
+ fill="none"
216
+ stroke="currentColor"
217
+ stroke-width="2"
218
+ stroke-linecap="round"
219
+ stroke-linejoin="round"
220
+ >
221
+ <path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" />
222
+ </svg>`,package:`<svg
223
+ xmlns="http://www.w3.org/2000/svg"
224
+ width="24"
225
+ height="24"
226
+ viewBox="0 0 24 24"
227
+ fill="none"
228
+ stroke="currentColor"
229
+ stroke-width="2"
230
+ stroke-linecap="round"
231
+ stroke-linejoin="round"
232
+ >
233
+ <path d="M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z" />
234
+ <path d="M12 22V12" />
235
+ <polyline points="3.29 7 12 12 20.71 7" />
236
+ <path d="m7.5 4.27 9 5.15" />
237
+ </svg>`,"message-square":`<svg
238
+ xmlns="http://www.w3.org/2000/svg"
239
+ width="24"
240
+ height="24"
241
+ viewBox="0 0 24 24"
242
+ fill="none"
243
+ stroke="currentColor"
244
+ stroke-width="2"
245
+ stroke-linecap="round"
246
+ stroke-linejoin="round"
247
+ >
248
+ <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" />
249
+ </svg>`,info:`<svg
250
+ xmlns="http://www.w3.org/2000/svg"
251
+ width="24"
252
+ height="24"
253
+ viewBox="0 0 24 24"
254
+ fill="none"
255
+ stroke="currentColor"
256
+ stroke-width="2"
257
+ stroke-linecap="round"
258
+ stroke-linejoin="round"
259
+ >
260
+ <circle cx="12" cy="12" r="10" />
261
+ <path d="M12 16v-4" />
262
+ <path d="M12 8h.01" />
263
+ </svg>`,user:`<svg
264
+ xmlns="http://www.w3.org/2000/svg"
265
+ width="24"
266
+ height="24"
267
+ viewBox="0 0 24 24"
268
+ fill="none"
269
+ stroke="currentColor"
270
+ stroke-width="2"
271
+ stroke-linecap="round"
272
+ stroke-linejoin="round"
273
+ >
274
+ <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
275
+ <circle cx="12" cy="7" r="4" />
276
+ </svg>`,mail:`<svg
277
+ xmlns="http://www.w3.org/2000/svg"
278
+ width="24"
279
+ height="24"
280
+ viewBox="0 0 24 24"
281
+ fill="none"
282
+ stroke="currentColor"
283
+ stroke-width="2"
284
+ stroke-linecap="round"
285
+ stroke-linejoin="round"
286
+ >
287
+ <path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" />
288
+ <rect x="2" y="4" width="20" height="16" rx="2" />
289
+ </svg>`,hash:`<svg
290
+ xmlns="http://www.w3.org/2000/svg"
291
+ width="24"
292
+ height="24"
293
+ viewBox="0 0 24 24"
294
+ fill="none"
295
+ stroke="currentColor"
296
+ stroke-width="2"
297
+ stroke-linecap="round"
298
+ stroke-linejoin="round"
299
+ >
300
+ <line x1="4" x2="20" y1="9" y2="9" />
301
+ <line x1="4" x2="20" y1="15" y2="15" />
302
+ <line x1="10" x2="8" y1="3" y2="21" />
303
+ <line x1="16" x2="14" y1="3" y2="21" />
304
+ </svg>`,search:`<svg
305
+ xmlns="http://www.w3.org/2000/svg"
306
+ width="24"
307
+ height="24"
308
+ viewBox="0 0 24 24"
309
+ fill="none"
310
+ stroke="currentColor"
311
+ stroke-width="2"
312
+ stroke-linecap="round"
313
+ stroke-linejoin="round"
314
+ >
315
+ <path d="m21 21-4.34-4.34" />
316
+ <circle cx="11" cy="11" r="8" />
317
+ </svg>`,"chart-line":`<svg
318
+ xmlns="http://www.w3.org/2000/svg"
319
+ width="24"
320
+ height="24"
321
+ viewBox="0 0 24 24"
322
+ fill="none"
323
+ stroke="currentColor"
324
+ stroke-width="2"
325
+ stroke-linecap="round"
326
+ stroke-linejoin="round"
327
+ >
328
+ <path d="M3 3v16a2 2 0 0 0 2 2h16" />
329
+ <path d="m19 9-5 5-4-4-3 3" />
330
+ </svg>`,"credit-card":`<svg
331
+ xmlns="http://www.w3.org/2000/svg"
332
+ width="24"
333
+ height="24"
334
+ viewBox="0 0 24 24"
335
+ fill="none"
336
+ stroke="currentColor"
337
+ stroke-width="2"
338
+ stroke-linecap="round"
339
+ stroke-linejoin="round"
340
+ >
341
+ <rect width="20" height="14" x="2" y="5" rx="2" />
342
+ <line x1="2" x2="22" y1="10" y2="10" />
343
+ </svg>`,clock:`<svg
344
+ xmlns="http://www.w3.org/2000/svg"
345
+ width="24"
346
+ height="24"
347
+ viewBox="0 0 24 24"
348
+ fill="none"
349
+ stroke="currentColor"
350
+ stroke-width="2"
351
+ stroke-linecap="round"
352
+ stroke-linejoin="round"
353
+ >
354
+ <path d="M12 6v6l4 2" />
355
+ <circle cx="12" cy="12" r="10" />
356
+ </svg>`,circle:`<svg
357
+ xmlns="http://www.w3.org/2000/svg"
358
+ width="24"
359
+ height="24"
360
+ viewBox="0 0 24 24"
361
+ fill="none"
362
+ stroke="currentColor"
363
+ stroke-width="2"
364
+ stroke-linecap="round"
365
+ stroke-linejoin="round"
366
+ >
367
+ <circle cx="12" cy="12" r="10" />
368
+ </svg>`,"chevron-down":`<svg
369
+ xmlns="http://www.w3.org/2000/svg"
370
+ width="24"
371
+ height="24"
372
+ viewBox="0 0 24 24"
373
+ fill="none"
374
+ stroke="currentColor"
375
+ stroke-width="2"
376
+ stroke-linecap="round"
377
+ stroke-linejoin="round"
378
+ >
379
+ <path d="m6 9 6 6 6-6" />
380
+ </svg>`,"chevron-right":`<svg
381
+ xmlns="http://www.w3.org/2000/svg"
382
+ width="24"
383
+ height="24"
384
+ viewBox="0 0 24 24"
385
+ fill="none"
386
+ stroke="currentColor"
387
+ stroke-width="2"
388
+ stroke-linecap="round"
389
+ stroke-linejoin="round"
390
+ >
391
+ <path d="m9 18 6-6-6-6" />
392
+ </svg>`,"circle-check":`<svg
393
+ xmlns="http://www.w3.org/2000/svg"
394
+ width="24"
395
+ height="24"
396
+ viewBox="0 0 24 24"
397
+ fill="none"
398
+ stroke="currentColor"
399
+ stroke-width="2"
400
+ stroke-linecap="round"
401
+ stroke-linejoin="round"
402
+ >
403
+ <circle cx="12" cy="12" r="10" />
404
+ <path d="m9 12 2 2 4-4" />
405
+ </svg>`,"circle-x":`<svg
406
+ xmlns="http://www.w3.org/2000/svg"
407
+ width="24"
408
+ height="24"
409
+ viewBox="0 0 24 24"
410
+ fill="none"
411
+ stroke="currentColor"
412
+ stroke-width="2"
413
+ stroke-linecap="round"
414
+ stroke-linejoin="round"
415
+ >
416
+ <circle cx="12" cy="12" r="10" />
417
+ <path d="m15 9-6 6" />
418
+ <path d="m9 9 6 6" />
419
+ </svg>`,facebook:`<svg
420
+ xmlns="http://www.w3.org/2000/svg"
421
+ width="24"
422
+ height="24"
423
+ viewBox="0 0 24 24"
424
+ fill="none"
425
+ stroke="currentColor"
426
+ stroke-width="2"
427
+ stroke-linecap="round"
428
+ stroke-linejoin="round"
429
+ >
430
+ <path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z" />
431
+ </svg>`,youtube:`<svg
432
+ xmlns="http://www.w3.org/2000/svg"
433
+ width="24"
434
+ height="24"
435
+ viewBox="0 0 24 24"
436
+ fill="none"
437
+ stroke="currentColor"
438
+ stroke-width="2"
439
+ stroke-linecap="round"
440
+ stroke-linejoin="round"
441
+ >
442
+ <path d="M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17" />
443
+ <path d="m10 15 5-3-5-3z" />
444
+ </svg>`,linkedin:`<svg
445
+ xmlns="http://www.w3.org/2000/svg"
446
+ width="24"
447
+ height="24"
448
+ viewBox="0 0 24 24"
449
+ fill="none"
450
+ stroke="currentColor"
451
+ stroke-width="2"
452
+ stroke-linecap="round"
453
+ stroke-linejoin="round"
454
+ >
455
+ <path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z" />
456
+ <rect width="4" height="12" x="2" y="9" />
457
+ <circle cx="4" cy="4" r="2" />
458
+ </svg>`,telegram:"404: Not Found",whatsapp:"404: Not Found",twitter:`<svg
459
+ xmlns="http://www.w3.org/2000/svg"
460
+ width="24"
461
+ height="24"
462
+ viewBox="0 0 24 24"
463
+ fill="none"
464
+ stroke="currentColor"
465
+ stroke-width="2"
466
+ stroke-linecap="round"
467
+ stroke-linejoin="round"
468
+ >
469
+ <path d="M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z" />
470
+ </svg>`,"arrow-right":`<svg
471
+ xmlns="http://www.w3.org/2000/svg"
472
+ width="24"
473
+ height="24"
474
+ viewBox="0 0 24 24"
475
+ fill="none"
476
+ stroke="currentColor"
477
+ stroke-width="2"
478
+ stroke-linecap="round"
479
+ stroke-linejoin="round"
480
+ >
481
+ <path d="M5 12h14" />
482
+ <path d="m12 5 7 7-7 7" />
483
+ </svg>`,"arrow-left":`<svg
484
+ xmlns="http://www.w3.org/2000/svg"
485
+ width="24"
486
+ height="24"
487
+ viewBox="0 0 24 24"
488
+ fill="none"
489
+ stroke="currentColor"
490
+ stroke-width="2"
491
+ stroke-linecap="round"
492
+ stroke-linejoin="round"
493
+ >
494
+ <path d="m12 19-7-7 7-7" />
495
+ <path d="M19 12H5" />
496
+ </svg>`,"arrow-up":`<svg
497
+ xmlns="http://www.w3.org/2000/svg"
498
+ width="24"
499
+ height="24"
500
+ viewBox="0 0 24 24"
501
+ fill="none"
502
+ stroke="currentColor"
503
+ stroke-width="2"
504
+ stroke-linecap="round"
505
+ stroke-linejoin="round"
506
+ >
507
+ <path d="m5 12 7-7 7 7" />
508
+ <path d="M12 19V5" />
509
+ </svg>`,"arrow-down":`<svg
510
+ xmlns="http://www.w3.org/2000/svg"
511
+ width="24"
512
+ height="24"
513
+ viewBox="0 0 24 24"
514
+ fill="none"
515
+ stroke="currentColor"
516
+ stroke-width="2"
517
+ stroke-linecap="round"
518
+ stroke-linejoin="round"
519
+ >
520
+ <path d="M12 5v14" />
521
+ <path d="m19 12-7 7-7-7" />
522
+ </svg>`,"arrow-right-to-line":`<svg
523
+ xmlns="http://www.w3.org/2000/svg"
524
+ width="24"
525
+ height="24"
526
+ viewBox="0 0 24 24"
527
+ fill="none"
528
+ stroke="currentColor"
529
+ stroke-width="2"
530
+ stroke-linecap="round"
531
+ stroke-linejoin="round"
532
+ >
533
+ <path d="M17 12H3" />
534
+ <path d="m11 18 6-6-6-6" />
535
+ <path d="M21 5v14" />
536
+ </svg>`,"arrow-left-to-line":`<svg
537
+ xmlns="http://www.w3.org/2000/svg"
538
+ width="24"
539
+ height="24"
540
+ viewBox="0 0 24 24"
541
+ fill="none"
542
+ stroke="currentColor"
543
+ stroke-width="2"
544
+ stroke-linecap="round"
545
+ stroke-linejoin="round"
546
+ >
547
+ <path d="M3 19V5" />
548
+ <path d="m13 6-6 6 6 6" />
549
+ <path d="M7 12h14" />
550
+ </svg>`,"maximize-2":`<svg
551
+ xmlns="http://www.w3.org/2000/svg"
552
+ width="24"
553
+ height="24"
554
+ viewBox="0 0 24 24"
555
+ fill="none"
556
+ stroke="currentColor"
557
+ stroke-width="2"
558
+ stroke-linecap="round"
559
+ stroke-linejoin="round"
560
+ >
561
+ <path d="M15 3h6v6" />
562
+ <path d="m21 3-7 7" />
563
+ <path d="m3 21 7-7" />
564
+ <path d="M9 21H3v-6" />
565
+ </svg>`,"minimize-2":`<svg
566
+ xmlns="http://www.w3.org/2000/svg"
567
+ width="24"
568
+ height="24"
569
+ viewBox="0 0 24 24"
570
+ fill="none"
571
+ stroke="currentColor"
572
+ stroke-width="2"
573
+ stroke-linecap="round"
574
+ stroke-linejoin="round"
575
+ >
576
+ <path d="m14 10 7-7" />
577
+ <path d="M20 10h-6V4" />
578
+ <path d="m3 21 7-7" />
579
+ <path d="M4 14h6v6" />
580
+ </svg>`,"skip-forward":`<svg
581
+ xmlns="http://www.w3.org/2000/svg"
582
+ width="24"
583
+ height="24"
584
+ viewBox="0 0 24 24"
585
+ fill="none"
586
+ stroke="currentColor"
587
+ stroke-width="2"
588
+ stroke-linecap="round"
589
+ stroke-linejoin="round"
590
+ >
591
+ <polygon points="5 4 15 12 5 20 5 4" />
592
+ <line x1="19" x2="19" y1="5" y2="19" />
593
+ </svg>`,"skip-back":`<svg
594
+ xmlns="http://www.w3.org/2000/svg"
595
+ width="24"
596
+ height="24"
597
+ viewBox="0 0 24 24"
598
+ fill="none"
599
+ stroke="currentColor"
600
+ stroke-width="2"
601
+ stroke-linecap="round"
602
+ stroke-linejoin="round"
603
+ >
604
+ <polygon points="19 20 9 12 19 4 19 20" />
605
+ <line x1="5" x2="5" y1="19" y2="5" />
606
+ </svg>`,"mouse-pointer-click":`<svg
607
+ xmlns="http://www.w3.org/2000/svg"
608
+ width="24"
609
+ height="24"
610
+ viewBox="0 0 24 24"
611
+ fill="none"
612
+ stroke="currentColor"
613
+ stroke-width="2"
614
+ stroke-linecap="round"
615
+ stroke-linejoin="round"
616
+ >
617
+ <path d="M14 4.1 12 6" />
618
+ <path d="m5.1 8-2.9-.8" />
619
+ <path d="m6 12-1.9 2" />
620
+ <path d="M7.2 2.2 8 5.1" />
621
+ <path d="M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z" />
622
+ </svg>`,globe:`<svg
623
+ xmlns="http://www.w3.org/2000/svg"
624
+ width="24"
625
+ height="24"
626
+ viewBox="0 0 24 24"
627
+ fill="none"
628
+ stroke="currentColor"
629
+ stroke-width="2"
630
+ stroke-linecap="round"
631
+ stroke-linejoin="round"
632
+ >
633
+ <circle cx="12" cy="12" r="10" />
634
+ <path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" />
635
+ <path d="M2 12h20" />
636
+ </svg>`,play:`<svg
637
+ xmlns="http://www.w3.org/2000/svg"
638
+ width="24"
639
+ height="24"
640
+ viewBox="0 0 24 24"
641
+ fill="none"
642
+ stroke="currentColor"
643
+ stroke-width="2"
644
+ stroke-linecap="round"
645
+ stroke-linejoin="round"
646
+ >
647
+ <polygon points="6 3 20 12 6 21 6 3" />
648
+ </svg>`,pause:`<svg
649
+ xmlns="http://www.w3.org/2000/svg"
650
+ width="24"
651
+ height="24"
652
+ viewBox="0 0 24 24"
653
+ fill="none"
654
+ stroke="currentColor"
655
+ stroke-width="2"
656
+ stroke-linecap="round"
657
+ stroke-linejoin="round"
658
+ >
659
+ <rect x="14" y="4" width="4" height="16" rx="1" />
660
+ <rect x="6" y="4" width="4" height="16" rx="1" />
661
+ </svg>`,"volume-off":`<svg
662
+ xmlns="http://www.w3.org/2000/svg"
663
+ width="24"
664
+ height="24"
665
+ viewBox="0 0 24 24"
666
+ fill="none"
667
+ stroke="currentColor"
668
+ stroke-width="2"
669
+ stroke-linecap="round"
670
+ stroke-linejoin="round"
671
+ >
672
+ <path d="M16 9a5 5 0 0 1 .95 2.293" />
673
+ <path d="M19.364 5.636a9 9 0 0 1 1.889 9.96" />
674
+ <path d="m2 2 20 20" />
675
+ <path d="m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11" />
676
+ <path d="M9.828 4.172A.686.686 0 0 1 11 4.657v.686" />
677
+ </svg>`,"volume-2":`<svg
678
+ xmlns="http://www.w3.org/2000/svg"
679
+ width="24"
680
+ height="24"
681
+ viewBox="0 0 24 24"
682
+ fill="none"
683
+ stroke="currentColor"
684
+ stroke-width="2"
685
+ stroke-linecap="round"
686
+ stroke-linejoin="round"
687
+ >
688
+ <path d="M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z" />
689
+ <path d="M16 9a5 5 0 0 1 0 6" />
690
+ <path d="M19.364 18.364a9 9 0 0 0 0-12.728" />
691
+ </svg>`,"panel-left-open":`<svg
692
+ xmlns="http://www.w3.org/2000/svg"
693
+ width="24"
694
+ height="24"
695
+ viewBox="0 0 24 24"
696
+ fill="none"
697
+ stroke="currentColor"
698
+ stroke-width="2"
699
+ stroke-linecap="round"
700
+ stroke-linejoin="round"
701
+ >
702
+ <rect width="18" height="18" x="3" y="3" rx="2" />
703
+ <path d="M9 3v18" />
704
+ <path d="m14 9 3 3-3 3" />
705
+ </svg>`,"panel-left-close":`<svg
706
+ xmlns="http://www.w3.org/2000/svg"
707
+ width="24"
708
+ height="24"
709
+ viewBox="0 0 24 24"
710
+ fill="none"
711
+ stroke="currentColor"
712
+ stroke-width="2"
713
+ stroke-linecap="round"
714
+ stroke-linejoin="round"
715
+ >
716
+ <rect width="18" height="18" x="3" y="3" rx="2" />
717
+ <path d="M9 3v18" />
718
+ <path d="m16 15-3-3 3-3" />
719
+ </svg>`,"square-pen":`<svg
720
+ xmlns="http://www.w3.org/2000/svg"
721
+ width="24"
722
+ height="24"
723
+ viewBox="0 0 24 24"
724
+ fill="none"
725
+ stroke="currentColor"
726
+ stroke-width="2"
727
+ stroke-linecap="round"
728
+ stroke-linejoin="round"
729
+ >
730
+ <path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
731
+ <path d="M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" />
732
+ </svg>`,share:`<svg
733
+ xmlns="http://www.w3.org/2000/svg"
734
+ width="24"
735
+ height="24"
736
+ viewBox="0 0 24 24"
737
+ fill="none"
738
+ stroke="currentColor"
739
+ stroke-width="2"
740
+ stroke-linecap="round"
741
+ stroke-linejoin="round"
742
+ >
743
+ <path d="M12 2v13" />
744
+ <path d="m16 6-4-4-4 4" />
745
+ <path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" />
746
+ </svg>`,settings:`<svg
747
+ xmlns="http://www.w3.org/2000/svg"
748
+ width="24"
749
+ height="24"
750
+ viewBox="0 0 24 24"
751
+ fill="none"
752
+ stroke="currentColor"
753
+ stroke-width="2"
754
+ stroke-linecap="round"
755
+ stroke-linejoin="round"
756
+ >
757
+ <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />
758
+ <circle cx="12" cy="12" r="3" />
759
+ </svg>`,"dollar-sign":`<svg
760
+ xmlns="http://www.w3.org/2000/svg"
761
+ width="24"
762
+ height="24"
763
+ viewBox="0 0 24 24"
764
+ fill="none"
765
+ stroke="currentColor"
766
+ stroke-width="2"
767
+ stroke-linecap="round"
768
+ stroke-linejoin="round"
769
+ >
770
+ <line x1="12" x2="12" y1="2" y2="22" />
771
+ <path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6" />
772
+ </svg>`,"book-open":`<svg
773
+ xmlns="http://www.w3.org/2000/svg"
774
+ width="24"
775
+ height="24"
776
+ viewBox="0 0 24 24"
777
+ fill="none"
778
+ stroke="currentColor"
779
+ stroke-width="2"
780
+ stroke-linecap="round"
781
+ stroke-linejoin="round"
782
+ >
783
+ <path d="M12 7v14" />
784
+ <path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z" />
785
+ </svg>`,users:`<svg
786
+ xmlns="http://www.w3.org/2000/svg"
787
+ width="24"
788
+ height="24"
789
+ viewBox="0 0 24 24"
790
+ fill="none"
791
+ stroke="currentColor"
792
+ stroke-width="2"
793
+ stroke-linecap="round"
794
+ stroke-linejoin="round"
795
+ >
796
+ <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />
797
+ <path d="M16 3.128a4 4 0 0 1 0 7.744" />
798
+ <path d="M22 21v-2a4 4 0 0 0-3-3.87" />
799
+ <circle cx="9" cy="7" r="4" />
800
+ </svg>`,"help-circle":"404: Not Found",monitor:`<svg
801
+ xmlns="http://www.w3.org/2000/svg"
802
+ width="24"
803
+ height="24"
804
+ viewBox="0 0 24 24"
805
+ fill="none"
806
+ stroke="currentColor"
807
+ stroke-width="2"
808
+ stroke-linecap="round"
809
+ stroke-linejoin="round"
810
+ >
811
+ <rect width="20" height="14" x="2" y="3" rx="2" />
812
+ <line x1="8" x2="16" y1="21" y2="21" />
813
+ <line x1="12" x2="12" y1="17" y2="21" />
814
+ </svg>`,sun:`<svg
815
+ xmlns="http://www.w3.org/2000/svg"
816
+ width="24"
817
+ height="24"
818
+ viewBox="0 0 24 24"
819
+ fill="none"
820
+ stroke="currentColor"
821
+ stroke-width="2"
822
+ stroke-linecap="round"
823
+ stroke-linejoin="round"
824
+ >
825
+ <circle cx="12" cy="12" r="4" />
826
+ <path d="M12 2v2" />
827
+ <path d="M12 20v2" />
828
+ <path d="m4.93 4.93 1.41 1.41" />
829
+ <path d="m17.66 17.66 1.41 1.41" />
830
+ <path d="M2 12h2" />
831
+ <path d="M20 12h2" />
832
+ <path d="m6.34 17.66-1.41 1.41" />
833
+ <path d="m19.07 4.93-1.41 1.41" />
834
+ </svg>`,moon:`<svg
835
+ xmlns="http://www.w3.org/2000/svg"
836
+ width="24"
837
+ height="24"
838
+ viewBox="0 0 24 24"
839
+ fill="none"
840
+ stroke="currentColor"
841
+ stroke-width="2"
842
+ stroke-linecap="round"
843
+ stroke-linejoin="round"
844
+ >
845
+ <path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" />
846
+ </svg>`,"log-out":`<svg
847
+ xmlns="http://www.w3.org/2000/svg"
848
+ width="24"
849
+ height="24"
850
+ viewBox="0 0 24 24"
851
+ fill="none"
852
+ stroke="currentColor"
853
+ stroke-width="2"
854
+ stroke-linecap="round"
855
+ stroke-linejoin="round"
856
+ >
857
+ <path d="m16 17 5-5-5-5" />
858
+ <path d="M21 12H9" />
859
+ <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
860
+ </svg>`,send:`<svg
861
+ xmlns="http://www.w3.org/2000/svg"
862
+ width="24"
863
+ height="24"
864
+ viewBox="0 0 24 24"
865
+ fill="none"
866
+ stroke="currentColor"
867
+ stroke-width="2"
868
+ stroke-linecap="round"
869
+ stroke-linejoin="round"
870
+ >
871
+ <path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z" />
872
+ <path d="m21.854 2.147-10.94 10.939" />
873
+ </svg>`,x:`<svg
874
+ xmlns="http://www.w3.org/2000/svg"
875
+ width="24"
876
+ height="24"
877
+ viewBox="0 0 24 24"
878
+ fill="none"
879
+ stroke="currentColor"
880
+ stroke-width="2"
881
+ stroke-linecap="round"
882
+ stroke-linejoin="round"
883
+ >
884
+ <path d="M18 6 6 18" />
885
+ <path d="m6 6 12 12" />
886
+ </svg>`,"circle-check-big":`<svg
887
+ xmlns="http://www.w3.org/2000/svg"
888
+ width="24"
889
+ height="24"
890
+ viewBox="0 0 24 24"
891
+ fill="none"
892
+ stroke="currentColor"
893
+ stroke-width="2"
894
+ stroke-linecap="round"
895
+ stroke-linejoin="round"
896
+ >
897
+ <path d="M21.801 10A10 10 0 1 1 17 3.335" />
898
+ <path d="m9 11 3 3L22 4" />
899
+ </svg>`,"square-mouse-pointer":`<svg
900
+ xmlns="http://www.w3.org/2000/svg"
901
+ width="24"
902
+ height="24"
903
+ viewBox="0 0 24 24"
904
+ fill="none"
905
+ stroke="currentColor"
906
+ stroke-width="2"
907
+ stroke-linecap="round"
908
+ stroke-linejoin="round"
909
+ >
910
+ <path d="M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z" />
911
+ <path d="M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6" />
912
+ </svg>`,"loader-circle":`<svg
913
+ xmlns="http://www.w3.org/2000/svg"
914
+ width="24"
915
+ height="24"
916
+ viewBox="0 0 24 24"
917
+ fill="none"
918
+ stroke="currentColor"
919
+ stroke-width="2"
920
+ stroke-linecap="round"
921
+ stroke-linejoin="round"
922
+ >
923
+ <path d="M21 12a9 9 0 1 1-6.219-8.56" />
924
+ </svg>`,"triangle-alert":`<svg
925
+ xmlns="http://www.w3.org/2000/svg"
926
+ width="24"
927
+ height="24"
928
+ viewBox="0 0 24 24"
929
+ fill="none"
930
+ stroke="currentColor"
931
+ stroke-width="2"
932
+ stroke-linecap="round"
933
+ stroke-linejoin="round"
934
+ >
935
+ <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" />
936
+ <path d="M12 9v4" />
937
+ <path d="M12 17h.01" />
938
+ </svg>`,compass:`<svg
939
+ xmlns="http://www.w3.org/2000/svg"
940
+ width="24"
941
+ height="24"
942
+ viewBox="0 0 24 24"
943
+ fill="none"
944
+ stroke="currentColor"
945
+ stroke-width="2"
946
+ stroke-linecap="round"
947
+ stroke-linejoin="round"
948
+ >
949
+ <path d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z" />
950
+ <circle cx="12" cy="12" r="10" />
951
+ </svg>`,"bed-double":`<svg
952
+ xmlns="http://www.w3.org/2000/svg"
953
+ width="24"
954
+ height="24"
955
+ viewBox="0 0 24 24"
956
+ fill="none"
957
+ stroke="currentColor"
958
+ stroke-width="2"
959
+ stroke-linecap="round"
960
+ stroke-linejoin="round"
961
+ >
962
+ <path d="M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8" />
963
+ <path d="M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4" />
964
+ <path d="M12 4v6" />
965
+ <path d="M2 18h20" />
966
+ </svg>`,"square-library":`<svg
967
+ xmlns="http://www.w3.org/2000/svg"
968
+ width="24"
969
+ height="24"
970
+ viewBox="0 0 24 24"
971
+ fill="none"
972
+ stroke="currentColor"
973
+ stroke-width="2"
974
+ stroke-linecap="round"
975
+ stroke-linejoin="round"
976
+ >
977
+ <rect width="18" height="18" x="3" y="3" rx="2" />
978
+ <path d="M7 7v10" />
979
+ <path d="M11 7v10" />
980
+ <path d="m15 7 2 10" />
981
+ </svg>`,"trending-up":`<svg
982
+ xmlns="http://www.w3.org/2000/svg"
983
+ width="24"
984
+ height="24"
985
+ viewBox="0 0 24 24"
986
+ fill="none"
987
+ stroke="currentColor"
988
+ stroke-width="2"
989
+ stroke-linecap="round"
990
+ stroke-linejoin="round"
991
+ >
992
+ <path d="M16 7h6v6" />
993
+ <path d="m22 7-8.5 8.5-5-5L2 17" />
994
+ </svg>`,plus:`<svg
995
+ xmlns="http://www.w3.org/2000/svg"
996
+ width="24"
997
+ height="24"
998
+ viewBox="0 0 24 24"
999
+ fill="none"
1000
+ stroke="currentColor"
1001
+ stroke-width="2"
1002
+ stroke-linecap="round"
1003
+ stroke-linejoin="round"
1004
+ >
1005
+ <path d="M5 12h14" />
1006
+ <path d="M12 5v14" />
1007
+ </svg>`,sparkles:`<svg
1008
+ xmlns="http://www.w3.org/2000/svg"
1009
+ width="24"
1010
+ height="24"
1011
+ viewBox="0 0 24 24"
1012
+ fill="none"
1013
+ stroke="currentColor"
1014
+ stroke-width="2"
1015
+ stroke-linecap="round"
1016
+ stroke-linejoin="round"
1017
+ >
1018
+ <path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" />
1019
+ <path d="M20 3v4" />
1020
+ <path d="M22 5h-4" />
1021
+ <path d="M4 17v2" />
1022
+ <path d="M5 18H3" />
1023
+ </svg>`,"external-link":`<svg
1024
+ xmlns="http://www.w3.org/2000/svg"
1025
+ width="24"
1026
+ height="24"
1027
+ viewBox="0 0 24 24"
1028
+ fill="none"
1029
+ stroke="currentColor"
1030
+ stroke-width="2"
1031
+ stroke-linecap="round"
1032
+ stroke-linejoin="round"
1033
+ >
1034
+ <path d="M15 3h6v6" />
1035
+ <path d="M10 14 21 3" />
1036
+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
1037
+ </svg>`,dock:`<svg
1038
+ xmlns="http://www.w3.org/2000/svg"
1039
+ width="24"
1040
+ height="24"
1041
+ viewBox="0 0 24 24"
1042
+ fill="none"
1043
+ stroke="currentColor"
1044
+ stroke-width="2"
1045
+ stroke-linecap="round"
1046
+ stroke-linejoin="round"
1047
+ >
1048
+ <path d="M2 8h20" />
1049
+ <rect width="20" height="16" x="2" y="4" rx="2" />
1050
+ <path d="M6 16h12" />
1051
+ </svg>`};var Hr=class Hr extends HTMLElement{constructor(){super();g(this,"name","");g(this,"fill","none");g(this,"stroke","currentColor");this.attachShadow({mode:"open"})}attributeChangedCallback(r,n,i){if(n!==i&&Hr.observedAttributes.includes(r)){switch(r){case"name":this.name=i||"";break;case"fill":this.fill=i||"none";break;case"stroke":this.stroke=i||"currentColor";break}this.render()}}resolveIcon(r){throw new Error("Not implemented")}render(){let r=document.createElement("style");if(r.textContent=`
1052
+ :host {
1053
+ display: inline-block;
1054
+ line-height: 0;
1055
+ }
1056
+ `,this.shadowRoot){for(;this.shadowRoot.firstChild;)this.shadowRoot.removeChild(this.shadowRoot.firstChild);this.shadowRoot.appendChild(r)}if(!this.name)return;let n=this.resolveIcon(this.name);if(!n){console.warn(`'${this.name}' not found, please add it to ${Hr.name}`);return}let o=new DOMParser().parseFromString(n,"image/svg+xml").documentElement;o.setAttribute("fill",this.fill),o.setAttribute("stroke",this.stroke),o.style.width="100%",o.style.height="100%",this.shadowRoot?.appendChild(o)}};g(Hr,"observedAttributes",["name","fill","stroke"]);var ii=Hr;var Fp=Hl,ro=class extends ii{resolveIcon(t){return Fp[t]}};customElements.get("lucide-icon")||customElements.define("lucide-icon",ro);var Fr=class extends I(_){constructor(){super(),this.color="#601feb",this.radius="16.8576px",this.size="320px",this.border="#d1d5db"}render(){return d`
1057
+ <div class="flex flex-row flex-wrap gap-0">
1058
+ <div class="relative z-0 flex min-h-9 items-center justify-center overflow-hidden rounded-[${this.radius}]">
1059
+ <!-- Spinning gradient background -->
1060
+ <div
1061
+ class="absolute z-[-2] m-auto h-[${this.size}] w-[${this.size}] animate-[spin-slow_4s_linear_infinite] bg-[${this.border}] bg-cover bg-[0_0] bg-no-repeat"
1062
+ style="background-image: conic-gradient(transparent, ${this.color}, transparent 30%);"></div>
1063
+ <!-- White background with 1px border space for gradient -->
1064
+ <div class="absolute left-[1px] top-[1px] z-[-1] h-[calc(100%_-_2px)] w-[calc(100%_-_2px)] rounded-[${this.radius}] bg-white"></div>
1065
+ <slot></slot>
1066
+ </div>
1067
+ </div>
1068
+ `}};g(Fr,"properties",{color:{type:String},radius:{type:String},size:{type:String},border:{type:String}}),g(Fr,"styles",ie`
1069
+ :host {
1070
+ display: block;
1071
+ }
1072
+ .spin-slow {
1073
+ animation: spin-slow 4s linear infinite;
1074
+ }
1075
+ @keyframes spin-slow {
1076
+ from {
1077
+ transform: rotate(0deg);
1078
+ }
1079
+ to {
1080
+ transform: rotate(360deg);
1081
+ }
1082
+ }
1083
+ `);customElements.get("mw-spinning-border")||customElements.define("mw-spinning-border",Fr);var zr,ke,Fl,ql,qp,zl,Wl,qr=class qr extends I(_){constructor(){super();f(this,ke);f(this,zr,new Date);this.color="#8B5CF6",this.disabled=!1,this.placeholder="Ask AI...",this.dark=!1,this._inputValue=""}render(){return d`
1084
+ <mw-spinning-border
1085
+ .size=${"420px"}
1086
+ .color=${this.color||"#8B5CF6"}
1087
+ .radius=${"24px"}
1088
+ class="${this.dark?"dark":""} rounded-[24px] font-sans text-sm shadow-lg transition-transform duration-500 hover:scale-105">
1089
+ <form
1090
+ @submit="${y(this,ke,ql)}"
1091
+ class="m-[1px] flex w-[250px] items-center rounded-[24px] bg-white px-2 py-2 text-gray-800 transition-all duration-500 focus-within:w-[calc(100vw-2rem)] focus-within:scale-100 active:w-[calc(100vw-2rem)] dark:bg-gray-900 dark:text-white md:focus-within:w-[350px] md:active:w-[350px]">
1092
+ <lucide-icon class="h-5 w-5 flex-none text-[${this.color||"#8B5CF6"}]" name="${"sparkles"}"></lucide-icon>
1093
+
1094
+ <input
1095
+ ?disabled="${this.disabled}"
1096
+ @keydown="${y(this,ke,Wl)}"
1097
+ @input="${y(this,ke,Fl)}"
1098
+ .value="${this._inputValue}"
1099
+ placeholder="${this.placeholder}"
1100
+ autocomplete="off"
1101
+ name="input"
1102
+ class="ml-2 w-full bg-transparent text-gray-800 placeholder:font-light placeholder:text-gray-500 focus:outline-none dark:text-white dark:placeholder:text-gray-400" />
1103
+
1104
+ <!-- submit button -->
1105
+ <button
1106
+ ?disabled="${this.disabled||!this._inputValue.trim()}"
1107
+ class="relative ml-2 h-8 w-8 flex-none rounded-full bg-[${this.color||"#8B5CF6"}] p-0 text-white hover:opacity-70 disabled:bg-gray-400 disabled:text-gray-300 disabled:hover:opacity-100"
1108
+ type="submit">
1109
+ <div class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
1110
+ <lucide-icon class="block h-5 w-5 text-white" name="${"arrow-up"}"></lucide-icon>
1111
+ </div>
1112
+ </button>
1113
+ </form>
1114
+ </mw-spinning-border>
1115
+ `}};zr=new WeakMap,ke=new WeakSet,Fl=function(r){let n=r.target;this._inputValue=n.value,this.dispatchEvent(new qr.ChangeEvent({value:this._inputValue}))},ql=function(r){r.preventDefault();let n=new Date;if(n.getTime()-a(this,zr).getTime()<500)return;m(this,zr,n);let s=this._inputValue.trim();s&&this.dispatchEvent(new qr.SubmitInputEvent({text:s}))&&(this._inputValue="")},qp=function(){return this.renderRoot.querySelector('input[name="input"]')??null},zl=function(){return this.renderRoot.querySelector('button[type="submit"]')??null},Wl=function(r){zp(r)&&(r.preventDefault(),this.disabled||a(this,ke,zl)?.click())},g(qr,"properties",{color:{type:String},disabled:{type:Boolean},placeholder:{type:String},dark:{type:Boolean},_inputValue:{type:String,state:!0}});var ht=qr,no;ht.SubmitInputEvent=(no=class extends CustomEvent{constructor(t,r={}){super(ht.SubmitInputEvent.type,{detail:t,bubbles:!0,composed:!0,...r})}},g(no,"type","mw-floating-ask-ai:submit"),no);var io;ht.ChangeEvent=(io=class extends CustomEvent{constructor(t,r={}){super(ht.ChangeEvent.type,{detail:t,bubbles:!0,composed:!0,...r})}},g(io,"type","mw-floating-ask-ai:change"),io);function zp(e){return(e.code==="Enter"||e.code==="NumpadEnter")&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}customElements.get("mw-floating-ask-ai")||customElements.define("mw-floating-ask-ai",ht);var si={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},oi=e=>(...t)=>({_$litDirective$:e,values:t}),Zt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{I:Wp}=va;var Zl=()=>document.createComment(""),Gt=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let s=n.insertBefore(Zl(),i),o=n.insertBefore(Zl(),i);r=new Wp(s,o,e,e.options)}else{let s=r._$AB.nextSibling,o=r._$AM,u=o!==e;if(u){let l;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(l=e._$AU)!==o._$AU&&r._$AP(l)}if(s!==i||u){let l=r._$AA;for(;l!==s;){let c=l.nextSibling;n.insertBefore(l,i),l=c}}}return r},Fe=(e,t,r=e)=>(e._$AI(t,r),e),Zp={},Gl=(e,t=Zp)=>e._$AH=t,Jl=e=>e._$AH,ai=e=>{e._$AR(),e._$AA.remove()};var Kl=(e,t,r)=>{let n=new Map;for(let i=t;i<=r;i++)n.set(e[i],i);return n},Ce=oi(class extends Zt{constructor(e){if(super(e),e.type!==si.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let n;r===void 0?r=t:t!==void 0&&(n=t);let i=[],s=[],o=0;for(let u of e)i[o]=n?n(u,o):o,s[o]=r(u,o),o++;return{values:s,keys:i}}render(e,t,r){return this.dt(e,t,r).values}update(e,[t,r,n]){let i=Jl(e),{values:s,keys:o}=this.dt(t,r,n);if(!Array.isArray(i))return this.ut=o,s;let u=this.ut??=[],l=[],c,p,h=0,v=i.length-1,b=0,$=s.length-1;for(;h<=v&&b<=$;)if(i[h]===null)h++;else if(i[v]===null)v--;else if(u[h]===o[b])l[b]=Fe(i[h],s[b]),h++,b++;else if(u[v]===o[$])l[$]=Fe(i[v],s[$]),v--,$--;else if(u[h]===o[$])l[$]=Fe(i[h],s[$]),Gt(e,l[$+1],i[h]),h++,$--;else if(u[v]===o[b])l[b]=Fe(i[v],s[b]),Gt(e,i[h],i[v]),v--,b++;else if(c===void 0&&(c=Kl(o,b,$),p=Kl(u,h,v)),c.has(u[h]))if(c.has(u[v])){let j=p.get(o[b]),C=j!==void 0?i[j]:null;if(C===null){let A=Gt(e,i[h]);Fe(A,s[b]),l[b]=A}else l[b]=Fe(C,s[b]),Gt(e,i[h],C),i[j]=null;b++}else ai(i[v]),v--;else ai(i[h]),h++;for(;b<=$;){let j=Gt(e,l[$+1]);Fe(j,s[b]),l[b++]=j}for(;h<=v;){let j=i[h++];j!==null&&ai(j)}return this.ut=o,Gl(e,l),ve}});function Wr(e,t,r){return e?t(e):r?.(e)}var li,Xl,ui=class ui extends I(_){constructor(){super();f(this,li);this.examples={title:"",items:[]},this.color=""}render(){return!this.examples?.title&&!this.examples?.items?.length?M:d`
198
1116
  <div class="flex h-full w-full flex-1 flex-col overflow-y-auto px-4 pb-2 pt-6">
199
- ${dr(this.examples.title,()=>h`
1117
+ ${Wr(this.examples.title,()=>d`
200
1118
  <h2 class="mt-14 px-2 pb-2 pt-9 text-left text-3xl font-bold leading-tight tracking-tight">
201
1119
  <span>${this.examples.title}</span>
202
1120
  <svg class="inline-block h-9 w-9 align-middle" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 58 61">
@@ -206,19 +1124,19 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
206
1124
  </svg>
207
1125
  </h2>
208
1126
  `)}
209
- ${this.examples?.items?.length?h`
1127
+ ${this.examples?.items?.length?d`
210
1128
  <ul class="mt-auto flex select-none flex-wrap justify-end gap-2.5 text-sm/6 text-black">
211
- ${we(this.examples.items,r=>r,r=>h`
1129
+ ${Ce(this.examples.items,r=>r,r=>d`
212
1130
  <li
213
1131
  class="border-1 hover:bg-[${this.color}]/[0.08] border-gray my-auto inline-block cursor-pointer rounded-2xl px-4 py-2 text-left transition-all duration-200 hover:-translate-y-0.5 hover:opacity-80 hover:shadow"
214
- @click="${()=>g(this,bn,ma).call(this,r)}">
1132
+ @click="${()=>y(this,li,Xl).call(this,r)}">
215
1133
  <span>${r.trim()}</span>
216
1134
  </li>
217
1135
  `)}
218
1136
  </ul>
219
- `:E}
1137
+ `:M}
220
1138
  </div>
221
- `}};bn=new WeakSet,ma=function(r){this.dispatchEvent(new xn.ExampleClickEvent({example:r}))},y(xn,"properties",{examples:{type:Object},color:{type:String}});var mr=xn,es;mr.ExampleClickEvent=(es=class extends CustomEvent{constructor(e,r={}){super(mr.ExampleClickEvent.type,{detail:e,...r})}},y(es,"type","mw:example-click"),es);customElements.get("mw-chat-background")||customElements.define("mw-chat-background",mr);var Et,ga,ya,St=class St extends _(S){constructor(){super();d(this,Et);this.content={logoUrl:"",title:"",color:""},this.showNewChat=!1,this.showClose=!1}render(){return h`
1139
+ `}};li=new WeakSet,Xl=function(r){this.dispatchEvent(new ui.ExampleClickEvent({example:r}))},g(ui,"properties",{examples:{type:Object},color:{type:String}});var Zr=ui,so;Zr.ExampleClickEvent=(so=class extends CustomEvent{constructor(t,r={}){super(Zr.ExampleClickEvent.type,{detail:t,...r})}},g(so,"type","mw:example-click"),so);customElements.get("mw-chat-background")||customElements.define("mw-chat-background",Zr);var Kt,Yl,Ql,Jt=class Jt extends I(_){constructor(){super();f(this,Kt);this.content={logoUrl:"",title:"",color:""},this.showNewChat=!1,this.showClose=!1}render(){return d`
222
1140
  <div class="relative z-10 h-12">
223
1141
  <div class="gradient-blur absolute inset-x-0.5 mt-2 h-12"></div>
224
1142
 
@@ -241,7 +1159,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
241
1159
  <div class="flex-grow"></div>
242
1160
 
243
1161
  <!-- new chat btn -->
244
- <button @click=${g(this,Et,ga)} type="button" class="${this.showNewChat?"inline-flex":"hidden"} shrink-0">
1162
+ <button @click=${y(this,Kt,Yl)} type="button" class="${this.showNewChat?"inline-flex":"hidden"} shrink-0">
245
1163
  <!-- svg icon of a bubble with a plus -->
246
1164
  <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 37 36">
247
1165
  <path
@@ -253,7 +1171,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
253
1171
  </button>
254
1172
 
255
1173
  <!-- close chat btn -->
256
- <button @click=${g(this,Et,ya)} class="${this.showClose?"inline-flex":"hidden"} shrink-0">
1174
+ <button @click=${y(this,Kt,Ql)} class="${this.showClose?"inline-flex":"hidden"} shrink-0">
257
1175
  <!-- svg icon of an X -->
258
1176
  <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="white">
259
1177
  <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
@@ -268,7 +1186,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
268
1186
  </div>
269
1187
  </div>
270
1188
  </div>
271
- `}};Et=new WeakSet,ga=function(){this.dispatchEvent(new St.NewChatClickEvent)},ya=function(){this.dispatchEvent(new St.CloseClickEvent)},y(St,"properties",{content:{type:Object},showNewChat:{type:Boolean,attribute:"show-new-chat"},showClose:{type:Boolean,attribute:"show-close"}}),y(St,"styles",re`
1189
+ `}};Kt=new WeakSet,Yl=function(){this.dispatchEvent(new Jt.NewChatClickEvent)},Ql=function(){this.dispatchEvent(new Jt.CloseClickEvent)},g(Jt,"properties",{content:{type:Object},showNewChat:{type:Boolean,attribute:"show-new-chat"},showClose:{type:Boolean,attribute:"show-close"}}),g(Jt,"styles",ie`
272
1190
  /* blurred background */
273
1191
 
274
1192
  .gradient-blur {
@@ -280,30 +1198,30 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
280
1198
  /* bg-color gradient */
281
1199
  background-image: linear-gradient(to bottom, white 20%, transparent);
282
1200
  }
283
- `);var st=St,ts;st.NewChatClickEvent=(ts=class extends CustomEvent{constructor(e={}){super(st.NewChatClickEvent.type,{...e})}},y(ts,"type","mw:new-chat-click"),ts);var rs;st.CloseClickEvent=(rs=class extends CustomEvent{constructor(e={}){super(st.CloseClickEvent.type,{...e})}},y(rs,"type","mw:close-click"),rs);customElements.get("mw-chat-header")||customElements.define("mw-chat-header",st);var ns={maxHeight:120,initialHeight:32,paddingY:12},gr,X,kn,va,wa,ba,xa,Cn,ot=class ot extends _(S){constructor(){super();d(this,X);d(this,gr,new Date);this.disabled=!1,this.streaming=!1,this.loading=!1,this.placeholder="Type a message..."}render(){return h`
284
- <form @submit="${g(this,X,ba)}" class="flex w-full items-center overflow-hidden rounded-[18px] bg-white shadow-[0px_3px_20px_0px_rgba(0,0,0,0.2)]">
1201
+ `);var dt=Jt,oo;dt.NewChatClickEvent=(oo=class extends CustomEvent{constructor(t={}){super(dt.NewChatClickEvent.type,{...t})}},g(oo,"type","mw:new-chat-click"),oo);var ao;dt.CloseClickEvent=(ao=class extends CustomEvent{constructor(t={}){super(dt.CloseClickEvent.type,{...t})}},g(ao,"type","mw:close-click"),ao);customElements.get("mw-chat-header")||customElements.define("mw-chat-header",dt);var lo={maxHeight:120,initialHeight:32,paddingY:12},Gr,ee,ci,eu,tu,ru,nu,pi,ft=class ft extends I(_){constructor(){super();f(this,ee);f(this,Gr,new Date);this.disabled=!1,this.streaming=!1,this.loading=!1,this.placeholder="Type a message..."}render(){return d`
1202
+ <form @submit="${y(this,ee,ru)}" class="flex w-full items-center overflow-hidden rounded-[18px] bg-white shadow-[0px_3px_20px_0px_rgba(0,0,0,0.2)]">
285
1203
  <textarea
286
1204
  name="input"
287
- @input="${g(this,X,xa)}"
288
- @keydown="${g(this,X,wa)}"
1205
+ @input="${y(this,ee,nu)}"
1206
+ @keydown="${y(this,ee,tu)}"
289
1207
  autofocus
290
1208
  ?disabled="${this.disabled}"
291
1209
  placeholder="${this.placeholder}"
292
- class="box-content h-[${ns.initialHeight}px] w-full resize-none place-content-center rounded bg-white px-3 py-[${ns.paddingY}px] text-base text-gray-800 outline-none disabled:place-content-baseline"></textarea>
1210
+ class="box-content h-[${lo.initialHeight}px] w-full resize-none place-content-center rounded bg-white px-3 py-[${lo.paddingY}px] text-base text-gray-800 outline-none disabled:place-content-baseline"></textarea>
293
1211
 
294
1212
  <button type="submit" ?disabled="${this.disabled||this.loading}" class="mx-1 px-2 transition-opacity duration-200 hover:opacity-80">
295
- ${this.streaming?h`
1213
+ ${this.streaming?d`
296
1214
  <!-- x -->
297
1215
  <svg class="h-6 w-6 fill-current" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="#312E30">
298
1216
  <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
299
1217
  </svg>
300
- `:this.loading?h`
1218
+ `:this.loading?d`
301
1219
  <!-- loading spinner -->
302
1220
  <svg class="h-6 w-6 animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
303
1221
  <circle class="opacity-25" cx="12" cy="12" r="10" stroke="#312E30" stroke-width="4"></circle>
304
1222
  <path class="opacity-75" fill="#312E30" d="m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
305
1223
  </svg>
306
- `:h`
1224
+ `:d`
307
1225
  <!-- airplane -->
308
1226
  <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 35 34">
309
1227
  <path
@@ -319,7 +1237,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
319
1237
  <slot>
320
1238
  <div class="h-5 w-full"></div>
321
1239
  </slot>
322
- `}setValue(r){let n=a(this,X,kn);if(!n){console.warn("input element not found, cannot set value");return}n.value=r,g(this,X,Cn).call(this),this.dispatchEvent(new ot.ChangeEvent({delta:null,full:r}))}};gr=new WeakMap,X=new WeakSet,kn=function(){return this.renderRoot.querySelector('textarea[name="input"]')??null},va=function(){return this.renderRoot.querySelector('button[type="submit"]')??null},wa=function(r){yc(r)&&(r.preventDefault(),this.streaming||a(this,X,va)?.click())},ba=function(r){r.preventDefault();let n=new Date;if(n.getTime()-a(this,gr).getTime()<500)return;if(m(this,gr,n),this.streaming){this.dispatchEvent(new ot.CancelEvent);return}let s=a(this,X,kn);if(!s)throw new Error("Expected input element to be present");let o=s.value.trim();o&&this.dispatchEvent(new ot.SubmitEvent(o))&&(s.value=""),g(this,X,Cn).call(this)},xa=function(r){this.dispatchEvent(new ot.ChangeEvent({delta:r.data,full:r.target instanceof HTMLTextAreaElement?r.target.value:""})),g(this,X,Cn).call(this)},Cn=function(){let r=a(this,X,kn);if(!r)return;let{maxHeight:n,initialHeight:i,paddingY:s}=ns;r.style.height=`${i}px`;let o=r.scrollHeight,u=s*2,l=Math.min(o-u,n);r.style.height=`${l}px`},y(ot,"properties",{disabled:{type:Boolean},streaming:{type:Boolean},loading:{type:Boolean},placeholder:{type:String}});var Le=ot,is;Le.ChangeEvent=(is=class extends CustomEvent{constructor(e,r={}){super(Le.ChangeEvent.type,{detail:e,...r})}},y(is,"type","mw:change"),is);var ss;Le.SubmitEvent=(ss=class extends CustomEvent{constructor(e,r={}){super(Le.SubmitEvent.type,{detail:e,...r,cancelable:!0})}},y(ss,"type","mw:submit"),ss);var os;Le.CancelEvent=(os=class extends CustomEvent{constructor(e={}){super(Le.CancelEvent.type,{...e})}},y(os,"type","mw:cancel"),os);function yc(t){return(t.code==="Enter"||t.code==="NumpadEnter")&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey}customElements.get("mw-chat-input")||customElements.define("mw-chat-input",Le);var $n=class extends _(S){constructor(){super(),this.side="assistant",this.status="",this.color="",this.logoUrl="",this.position="single"}render(){let r=this.side==="user"&&this.position==="single"?"rounded-2xl":this.side==="user"&&["single-current","first"].includes(this.position)?"rounded-2xl rounded-br-[4px]":this.side==="user"&&["middle","last-current"].includes(this.position)?"rounded-2xl rounded-r-[4px]":this.side==="user"&&this.position==="last"?"rounded-2xl rounded-tr-[4px]":["support","assistant"].includes(this.side)&&["single","single-current"].includes(this.position)?"rounded-2xl":["support","assistant"].includes(this.side)&&this.position==="first"?"rounded-2xl rounded-bl-[4px]":["support","assistant"].includes(this.side)&&this.position==="middle"?"rounded-2xl rounded-l-[4px]":["support","assistant"].includes(this.side)&&["last","last-current"].includes(this.position)?"rounded-2xl rounded-tl-[4px]":"rounded-2xl";switch(this.side){case"user":return h`
1240
+ `}setValue(r){let n=a(this,ee,ci);if(!n){console.warn("input element not found, cannot set value");return}n.value=r,y(this,ee,pi).call(this),this.dispatchEvent(new ft.ChangeEvent({delta:null,full:r}))}};Gr=new WeakMap,ee=new WeakSet,ci=function(){return this.renderRoot.querySelector('textarea[name="input"]')??null},eu=function(){return this.renderRoot.querySelector('button[type="submit"]')??null},tu=function(r){Gp(r)&&(r.preventDefault(),this.streaming||a(this,ee,eu)?.click())},ru=function(r){r.preventDefault();let n=new Date;if(n.getTime()-a(this,Gr).getTime()<500)return;if(m(this,Gr,n),this.streaming){this.dispatchEvent(new ft.CancelEvent);return}let s=a(this,ee,ci);if(!s)throw new Error("Expected input element to be present");let o=s.value.trim();o&&this.dispatchEvent(new ft.SubmitEvent(o))&&(s.value=""),y(this,ee,pi).call(this)},nu=function(r){this.dispatchEvent(new ft.ChangeEvent({delta:r.data,full:r.target instanceof HTMLTextAreaElement?r.target.value:""})),y(this,ee,pi).call(this)},pi=function(){let r=a(this,ee,ci);if(!r)return;let{maxHeight:n,initialHeight:i,paddingY:s}=lo;r.style.height=`${i}px`;let o=r.scrollHeight,u=s*2,l=Math.min(o-u,n);r.style.height=`${l}px`},g(ft,"properties",{disabled:{type:Boolean},streaming:{type:Boolean},loading:{type:Boolean},placeholder:{type:String}});var De=ft,uo;De.ChangeEvent=(uo=class extends CustomEvent{constructor(t,r={}){super(De.ChangeEvent.type,{detail:t,...r})}},g(uo,"type","mw:change"),uo);var co;De.SubmitEvent=(co=class extends CustomEvent{constructor(t,r={}){super(De.SubmitEvent.type,{detail:t,...r,cancelable:!0})}},g(co,"type","mw:submit"),co);var po;De.CancelEvent=(po=class extends CustomEvent{constructor(t={}){super(De.CancelEvent.type,{...t})}},g(po,"type","mw:cancel"),po);function Gp(e){return(e.code==="Enter"||e.code==="NumpadEnter")&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}customElements.get("mw-chat-input")||customElements.define("mw-chat-input",De);var hi=class extends I(_){constructor(){super(),this.side="assistant",this.status="",this.color="",this.logoUrl="",this.position="single"}render(){let r=this.side==="user"&&this.position==="single"?"rounded-2xl":this.side==="user"&&["single-current","first"].includes(this.position)?"rounded-2xl rounded-br-[4px]":this.side==="user"&&["middle","last-current"].includes(this.position)?"rounded-2xl rounded-r-[4px]":this.side==="user"&&this.position==="last"?"rounded-2xl rounded-tr-[4px]":["support","assistant"].includes(this.side)&&["single","single-current"].includes(this.position)?"rounded-2xl":["support","assistant"].includes(this.side)&&this.position==="first"?"rounded-2xl rounded-bl-[4px]":["support","assistant"].includes(this.side)&&this.position==="middle"?"rounded-2xl rounded-l-[4px]":["support","assistant"].includes(this.side)&&["last","last-current"].includes(this.position)?"rounded-2xl rounded-tl-[4px]":"rounded-2xl";switch(this.side){case"user":return d`
323
1241
  <div class="ml-20 flex justify-end font-sans text-base">
324
1242
  <div class="max-w-full">
325
1243
  <!-- include an invisible border (same color as background) so that this message is the same height as the bot message -->
@@ -328,15 +1246,15 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
328
1246
  </div>
329
1247
 
330
1248
  <!-- render status (if any) -->
331
- ${this.status==="sent"?h`
1249
+ ${this.status==="sent"?d`
332
1250
  <!-- tick mark -->
333
1251
  <svg class="ml-auto h-3 w-3 text-gray-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
334
1252
  <path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5" />
335
1253
  </svg>
336
- `:E}
1254
+ `:M}
337
1255
  </div>
338
1256
  </div>
339
- `;case"assistant":case"support":return h`
1257
+ `;case"assistant":case"support":return d`
340
1258
  <div class="mr-8 flex justify-start font-sans text-base">
341
1259
  <div class="flex max-w-full space-x-2">
342
1260
  <!--
@@ -355,7 +1273,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
355
1273
  </div>
356
1274
  </div>
357
1275
  </div>
358
- `;default:throw new Error(`Unknown side: ${this.side}`)}}};y($n,"properties",{side:{type:String},status:{type:String},color:{type:String},logoUrl:{type:String,attribute:"logo"},position:{type:String}});customElements.get("mw-chat-message")||customElements.define("mw-chat-message",$n);var as=class extends _(S){constructor(){super(...arguments);y(this,"render",()=>h`
1276
+ `;default:throw new Error(`Unknown side: ${this.side}`)}}};g(hi,"properties",{side:{type:String},status:{type:String},color:{type:String},logoUrl:{type:String,attribute:"logo"},position:{type:String}});customElements.get("mw-chat-message")||customElements.define("mw-chat-message",hi);var ho=class extends I(_){constructor(){super(...arguments);g(this,"render",()=>d`
359
1277
  <svg class="leading-0 inline-block h-full w-full" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" xml:space="preserve">
360
1278
  <circle fill="currentFill" stroke="none" cx="27" cy="50" r="6">
361
1279
  <animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1" />
@@ -367,11 +1285,11 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
367
1285
  <animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3" />
368
1286
  </circle>
369
1287
  </svg>
370
- `)}};customElements.get("mw-loading")||customElements.define("mw-loading",as);var vc="https://molin.ai/?utm_source=molin-shop-ai&utm_medium=widget&utm_campaign=poweredby",ls=class extends _(S){constructor(){super(...arguments);y(this,"render",()=>h`
1288
+ `)}};customElements.get("mw-loading")||customElements.define("mw-loading",ho);var Jp="https://molin.ai/?utm_source=molin-shop-ai&utm_medium=widget&utm_campaign=poweredby",fo=class extends I(_){constructor(){super(...arguments);g(this,"render",()=>d`
371
1289
  <p class="flex items-center justify-center whitespace-nowrap text-xs">
372
1290
  <span>Powered by</span>
373
1291
 
374
- <a href="${vc}" target="_blank" class="inline-flex items-center underline">
1292
+ <a href="${Jp}" target="_blank" class="inline-flex items-center underline">
375
1293
  <svg class="mx-1 inline-block h-4 w-4" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
376
1294
  <circle cx="10.0361" cy="10.0361" r="10.0361" fill="#242038" />
377
1295
  <path
@@ -390,7 +1308,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
390
1308
  <span>Molin AI</span>
391
1309
  </a>
392
1310
  </p>
393
- `)}};customElements.get("mw-powered-by")||customElements.define("mw-powered-by",ls);function ka(t,e="http"){return t.startsWith("http://")||t.startsWith("https://")?t:`${e}://${t}`}function us(t){return new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+!*'();@&=,$]*)*(\\?[-a-z\\d%_.~+!*'();@&=,$]*)?(\\#[-a-z\\d%_.~+!*'();@&=,$]*)?$","i").test(t)}function Ca(t,e){let r=t instanceof URL?t:new URL(t);if(e)for(let[n,i]of e)r.searchParams.set(n,i);return r}var $e=t=>t??E;var at,yr,lt,Sn=class extends _(S){constructor(){super();d(this,at,!1);d(this,yr,!1);d(this,lt,!1);this.src=""}render(){return(this.src?.startsWith("https://cdn.shopify.com")||!1)&&m(this,at,!0),this.src?h`
1311
+ `)}};customElements.get("mw-powered-by")||customElements.define("mw-powered-by",fo);var Ae=e=>e??M;var mt,Jr,gt,di=class extends I(_){constructor(){super();f(this,mt,!1);f(this,Jr,!1);f(this,gt,!1);this.src=""}render(){return(this.src?.startsWith("https://cdn.shopify.com")||!1)&&m(this,mt,!0),this.src?d`
394
1312
  <div class="relative h-full w-full overflow-hidden rounded-lg">
395
1313
  <!-- use the same icon as for missing image url as the background behind the image so there is no flicker while it's loading -->
396
1314
  <div class="absolute inset-0 flex items-center justify-center bg-gray-100">
@@ -405,7 +1323,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
405
1323
 
406
1324
  <!-- absolute position to take the height of the parent and to appear on top of the shopping bag background -->
407
1325
  <div class="absolute inset-0 flex h-full w-full bg-gray-100">
408
- ${a(this,at)&&a(this,yr)?h`
1326
+ ${a(this,mt)&&a(this,Jr)?d`
409
1327
  <!-- missing image url -->
410
1328
  <div class="flex h-full w-full items-center justify-center">
411
1329
  <!-- shopping bag icon -->
@@ -416,31 +1334,31 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
416
1334
  d="M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z" />
417
1335
  </svg>
418
1336
  </div>
419
- `:a(this,at)?h`
1337
+ `:a(this,mt)?d`
420
1338
  <!-- we do not need an alt attribute because this does not matter for SEO and we do not have a non-generic image description anyway -->
421
1339
  <img
422
- @error="${()=>{m(this,yr,!0),this.requestUpdate()}}"
423
- @load="${()=>{m(this,lt,!0),this.requestUpdate()}}"
1340
+ @error="${()=>{m(this,Jr,!0),this.requestUpdate()}}"
1341
+ @load="${()=>{m(this,gt,!0),this.requestUpdate()}}"
424
1342
  src="${this.src}"
425
- class="${a(this,lt)?"bg-white":""} h-full w-full object-contain"
1343
+ class="${a(this,gt)?"bg-white":""} h-full w-full object-contain"
426
1344
  loading="lazy" />
427
- `:h`
1345
+ `:d`
428
1346
  <!-- Cloudflare Images: resize the source image -->
429
1347
  <!-- we do not need an alt attribute because this does not matter for SEO and we do not have a non-generic image description anyway -->
430
1348
  <img
431
- @error="${()=>{m(this,at,!0),this.requestUpdate()}}"
432
- @load="${()=>{m(this,lt,!0),this.requestUpdate()}}"
1349
+ @error="${()=>{m(this,mt,!0),this.requestUpdate()}}"
1350
+ @load="${()=>{m(this,gt,!0),this.requestUpdate()}}"
433
1351
  src="https://molin.ai/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=1/${this.src}"
434
1352
  srcset="
435
1353
  https://molin.ai/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=1/${this.src} 1x,
436
1354
  https://molin.ai/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=2/${this.src} 2x
437
1355
  "
438
- class="${a(this,lt)?"bg-white":""} h-full w-full object-contain"
1356
+ class="${a(this,gt)?"bg-white":""} h-full w-full object-contain"
439
1357
  loading="lazy" />
440
1358
  `}
441
1359
  </div>
442
1360
  </div>
443
- `:h`
1361
+ `:d`
444
1362
  <!-- missing image url -->
445
1363
  <div class="flex h-full w-full overflow-hidden rounded-lg bg-gray-100">
446
1364
  <div class="flex h-full w-full items-center justify-center">
@@ -453,33 +1371,33 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
453
1371
  </svg>
454
1372
  </div>
455
1373
  </div>
456
- `}};at=new WeakMap,yr=new WeakMap,lt=new WeakMap,y(Sn,"properties",{src:{type:String}});customElements.get("mw-product-thumbnail")||customElements.define("mw-product-thumbnail",Sn);var En=class extends _(S){constructor(){super(),this.product=void 0,this.streaming=!1,this.linksNewTab=!1,this.searchParams=void 0,this.imagesByProductUrl={}}get trackedProductUrl(){let e=this.product?.url,r=this.searchParams;try{if(e&&r)return Ca(e,r).href}catch{}return e}render(){let{name:e,description:r,price:n,url:i}=this.product||{},s=i?this.imagesByProductUrl?.[i]:void 0;return h`
1374
+ `}};mt=new WeakMap,Jr=new WeakMap,gt=new WeakMap,g(di,"properties",{src:{type:String}});customElements.get("mw-product-thumbnail")||customElements.define("mw-product-thumbnail",di);var fi=class extends I(_){constructor(){super(),this.product=void 0,this.streaming=!1,this.linksNewTab=!1,this.searchParams=void 0,this.imagesByProductUrl={}}get trackedProductUrl(){let t=this.product?.url,r=this.searchParams;try{if(t&&r)return Ua(t,r).href}catch{}return t}render(){let{name:t,description:r,price:n,url:i}=this.product||{},s=i?this.imagesByProductUrl?.[i]:void 0;return d`
457
1375
  <a
458
- href="${$e(this.trackedProductUrl)}"
459
- title="${$e(e)}"
1376
+ href="${Ae(this.trackedProductUrl)}"
1377
+ title="${Ae(t)}"
460
1378
  class="group flex w-full max-w-md cursor-pointer gap-[10px] overflow-hidden rounded-lg"
461
1379
  target="${this.linksNewTab?"_blank":"_self"}"
462
1380
  ?disabled="${this.streaming}">
463
- ${this.streaming?h`
1381
+ ${this.streaming?d`
464
1382
  <!-- shimmer -->
465
1383
  <div class="h-[70px] w-[70px] animate-pulse overflow-hidden rounded-lg bg-gray-200"></div>
466
- `:h`<mw-product-thumbnail class="block h-[70px] w-[70px]" src="${$e(s)}"></mw-product-thumbnail>`}
1384
+ `:d`<mw-product-thumbnail class="block h-[70px] w-[70px]" src="${Ae(s)}"></mw-product-thumbnail>`}
467
1385
 
468
1386
  <div class="flex flex-1 flex-col justify-between">
469
1387
  <div>
470
- ${e||!this.streaming?h`<h3 class="line-clamp-1 text-sm font-medium group-hover:underline">${e}</h3>`:h`<div class="h-5 w-32 animate-pulse rounded bg-gray-200"></div>`}
1388
+ ${t||!this.streaming?d`<h3 class="line-clamp-1 text-sm font-medium group-hover:underline">${t}</h3>`:d`<div class="h-5 w-32 animate-pulse rounded bg-gray-200"></div>`}
471
1389
 
472
1390
  <!-- no margin here -->
473
1391
 
474
- ${r||!this.streaming?h`<p class="line-clamp-2 text-xs text-gray-500">${r}</p>`:h`<div class="my-1 h-6 w-3/4 animate-pulse rounded bg-gray-200"></div>`}
1392
+ ${r||!this.streaming?d`<p class="line-clamp-2 text-xs text-gray-500">${r}</p>`:d`<div class="my-1 h-6 w-3/4 animate-pulse rounded bg-gray-200"></div>`}
475
1393
  </div>
476
1394
 
477
1395
  <!-- flexbox filled space -->
478
1396
 
479
- ${n||!this.streaming?h`<span class="text-xs text-gray-900">${n}</span>`:h`<div class="h-4 w-14 animate-pulse rounded bg-gray-200"></div>`}
1397
+ ${n||!this.streaming?d`<span class="text-xs text-gray-900">${n}</span>`:d`<div class="h-4 w-14 animate-pulse rounded bg-gray-200"></div>`}
480
1398
  </div>
481
1399
  </a>
482
- `}};y(En,"properties",{product:{type:Object},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"},searchParams:{type:Object},imagesByProductUrl:{type:Object}});customElements.get("mw-product-card-horizontal")||customElements.define("mw-product-card-horizontal",En);function _n(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}var An=function(){},_t=function(){};var vr=(t,e,r)=>Math.min(Math.max(r,t),e);var cs=.001,wc=.01,$a=10,bc=.05,xc=1;function Sa({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;An(t<=$a*1e3,"Spring duration must be 10 seconds or less");let o=1-e;o=vr(bc,xc,o),t=vr(wc,$a,t/1e3),o<1?(i=c=>{let f=c*o,p=f*t,b=f-r,x=Mn(c,o),k=Math.exp(-p);return cs-b/x*k},s=c=>{let p=c*o*t,b=p*r+r,x=Math.pow(o,2)*Math.pow(c,2)*t,k=Math.exp(-p),A=Mn(Math.pow(c,2),o);return(-i(c)+cs>0?-1:1)*((b-x)*k)/A}):(i=c=>{let f=Math.exp(-c*t),p=(c-r)*t+1;return-cs+f*p},s=c=>{let f=Math.exp(-c*t),p=(r-c)*(t*t);return f*p});let u=5/t,l=Cc(i,s,u);if(t=t*1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{let c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:t}}}var kc=12;function Cc(t,e,r){let n=r;for(let i=1;i<kc;i++)n=n-t(n)/e(n);return n}function Mn(t,e){return t*Math.sqrt(1-e*e)}var $c=["duration","bounce"],Sc=["stiffness","damping","mass"];function Ea(t,e){return e.some(r=>t[r]!==void 0)}function Ec(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!Ea(t,Sc)&&Ea(t,$c)){let r=Sa(t);e=Object.assign(Object.assign(Object.assign({},e),r),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function In(t){var{from:e=0,to:r=1,restSpeed:n=2,restDelta:i}=t,s=_n(t,["from","to","restSpeed","restDelta"]);let o={done:!1,value:e},{stiffness:u,damping:l,mass:c,velocity:f,duration:p,isResolvedFromDuration:b}=Ec(s),x=_a,k=_a;function A(){let I=f?-(f/1e3):0,R=r-e,$=l/(2*Math.sqrt(u*c)),M=Math.sqrt(u/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-e)/100,.4)),$<1){let L=Mn(M,$);x=H=>{let Z=Math.exp(-$*M*H);return r-Z*((I+$*M*R)/L*Math.sin(L*H)+R*Math.cos(L*H))},k=H=>{let Z=Math.exp(-$*M*H);return $*M*Z*(Math.sin(L*H)*(I+$*M*R)/L+R*Math.cos(L*H))-Z*(Math.cos(L*H)*(I+$*M*R)-L*R*Math.sin(L*H))}}else if($===1)x=L=>r-Math.exp(-M*L)*(R+(I+M*R)*L);else{let L=M*Math.sqrt($*$-1);x=H=>{let Z=Math.exp(-$*M*H),Y=Math.min(L*H,300);return r-Z*((I+$*M*R)*Math.sinh(Y)+L*R*Math.cosh(Y))/L}}}return A(),{next:I=>{let R=x(I);if(b)o.done=I>=p;else{let $=k(I)*1e3,M=Math.abs($)<=n,L=Math.abs(r-R)<=i;o.done=M&&L}return o.value=o.done?r:R,o},flipTarget:()=>{f=-f,[e,r]=[r,e],A()}}}In.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";var _a=t=>0;var ps=(t,e,r)=>{let n=e-t;return n===0?1:(r-t)/n};var At=(t,e,r)=>-r*t+r*e+t;var Ln=(t,e)=>r=>Math.max(Math.min(r,e),t),Fe=t=>t%1?Number(t.toFixed(5)):t,Mt=/(-)?([\d]*\.?[\d])+/g,Tn=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Aa=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Te(t){return typeof t=="string"}var It={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},On=Object.assign(Object.assign({},It),{transform:Ln(0,1)}),ph=Object.assign(Object.assign({},It),{default:1});var wr=t=>({test:e=>Te(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),dh=wr("deg"),Lt=wr("%"),mh=wr("px"),gh=wr("vh"),yh=wr("vw"),vh=Object.assign(Object.assign({},Lt),{parse:t=>Lt.parse(t)/100,transform:t=>Lt.transform(t*100)});var Tt=(t,e)=>r=>!!(Te(r)&&Aa.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),jn=(t,e,r)=>n=>{if(!Te(n))return n;let[i,s,o,u]=n.match(Mt);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}};var Se={test:Tt("hsl","hue"),parse:jn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Lt.transform(Fe(e))+", "+Lt.transform(Fe(r))+", "+Fe(On.transform(n))+")"};var _c=Ln(0,255),Dn=Object.assign(Object.assign({},It),{transform:t=>Math.round(_c(t))}),de={test:Tt("rgb","red"),parse:jn("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Dn.transform(t)+", "+Dn.transform(e)+", "+Dn.transform(r)+", "+Fe(On.transform(n))+")"};function Ac(t){let e="",r="",n="",i="";return t.length>5?(e=t.substr(1,2),r=t.substr(3,2),n=t.substr(5,2),i=t.substr(7,2)):(e=t.substr(1,1),r=t.substr(2,1),n=t.substr(3,1),i=t.substr(4,1),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var Ot={test:Tt("#"),parse:Ac,transform:de.transform};var He={test:t=>de.test(t)||Ot.test(t)||Se.test(t),parse:t=>de.test(t)?de.parse(t):Se.test(t)?Se.parse(t):Ot.parse(t),transform:t=>Te(t)?t:t.hasOwnProperty("red")?de.transform(t):Se.transform(t)};var Ma="${c}",Ia="${n}";function Mc(t){var e,r,n,i;return isNaN(t)&&Te(t)&&((r=(e=t.match(Mt))===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)+((i=(n=t.match(Tn))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function La(t){typeof t=="number"&&(t=`${t}`);let e=[],r=0,n=t.match(Tn);n&&(r=n.length,t=t.replace(Tn,Ma),e.push(...n.map(He.parse)));let i=t.match(Mt);return i&&(t=t.replace(Mt,Ia),e.push(...i.map(It.parse))),{values:e,numColors:r,tokenised:t}}function Ta(t){return La(t).values}function Oa(t){let{values:e,numColors:r,tokenised:n}=La(t),i=e.length;return s=>{let o=n;for(let u=0;u<i;u++)o=o.replace(u<r?Ma:Ia,u<r?He.transform(s[u]):Fe(s[u]));return o}}var Ic=t=>typeof t=="number"?0:t;function Lc(t){let e=Ta(t);return Oa(t)(e.map(Ic))}var Rn={test:Mc,parse:Ta,createTransformer:Oa,getAnimatableNone:Lc};function fs(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hs({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,s=0,o=0;if(!e)i=s=o=r;else{let u=r<.5?r*(1+e):r+e-r*e,l=2*r-u;i=fs(l,u,t+1/3),s=fs(l,u,t),o=fs(l,u,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}var Tc=(t,e,r)=>{let n=t*t,i=e*e;return Math.sqrt(Math.max(0,r*(i-n)+n))},Oc=[Ot,de,Se],ja=t=>Oc.find(e=>e.test(t)),Da=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,Pn=(t,e)=>{let r=ja(t),n=ja(e);_t(!!r,Da(t)),_t(!!n,Da(e));let i=r.parse(t),s=n.parse(e);r===Se&&(i=hs(i),r=de),n===Se&&(s=hs(s),n=de);let o=Object.assign({},i);return u=>{for(let l in o)l!=="alpha"&&(o[l]=Tc(i[l],s[l],u));return o.alpha=At(i.alpha,s.alpha,u),r.transform(o)}};var Ra=t=>typeof t=="number";var jc=(t,e)=>r=>e(t(r)),Un=(...t)=>t.reduce(jc);function Ua(t,e){return Ra(t)?r=>At(t,e,r):He.test(t)?Pn(t,e):ms(t,e)}var ds=(t,e)=>{let r=[...t],n=r.length,i=t.map((s,o)=>Ua(s,e[o]));return s=>{for(let o=0;o<n;o++)r[o]=i[o](s);return r}},Va=(t,e)=>{let r=Object.assign(Object.assign({},t),e),n={};for(let i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=Ua(t[i],e[i]));return i=>{for(let s in n)r[s]=n[s](i);return r}};function Pa(t){let e=Rn.parse(t),r=e.length,n=0,i=0,s=0;for(let o=0;o<r;o++)n||typeof e[o]=="number"?n++:e[o].hue!==void 0?s++:i++;return{parsed:e,numNumbers:n,numRGB:i,numHSL:s}}var ms=(t,e)=>{let r=Rn.createTransformer(e),n=Pa(t),i=Pa(e);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?Un(ds(n.parsed,i.parsed),r):(An(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),o=>`${o>0?e:t}`)};var Dc=(t,e)=>r=>At(t,e,r);function Rc(t){if(typeof t=="number")return Dc;if(typeof t=="string")return He.test(t)?Pn:ms;if(Array.isArray(t))return ds;if(typeof t=="object")return Va}function Pc(t,e,r){let n=[],i=r||Rc(t[0]),s=t.length-1;for(let o=0;o<s;o++){let u=i(t[o],t[o+1]);if(e){let l=Array.isArray(e)?e[o]:e;u=Un(l,u)}n.push(u)}return n}function Uc([t,e],[r]){return n=>r(ps(t,e,n))}function Vc(t,e){let r=t.length,n=r-1;return i=>{let s=0,o=!1;if(i<=t[0]?o=!0:i>=t[n]&&(s=n-1,o=!0),!o){let l=1;for(;l<r&&!(t[l]>i||l===n);l++);s=l-1}let u=ps(t[s],t[s+1],i);return e[s](u)}}function Vn(t,e,{clamp:r=!0,ease:n,mixer:i}={}){let s=t.length;_t(s===e.length,"Both input and output ranges must be the same length"),_t(!n||!Array.isArray(n)||n.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());let o=Pc(e,n,i),u=s===2?Uc(t,o):Vc(t,o);return r?l=>u(vr(t[0],t[s-1],l)):u}var br=t=>e=>1-t(1-e),Nn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Na=t=>e=>Math.pow(e,t),gs=t=>e=>e*e*((t+1)*e-t),Fa=t=>{let e=gs(t);return r=>(r*=2)<1?.5*e(r):.5*(2-Math.pow(2,-10*(r-1)))};var Ha=1.525,Nc=4/11,Fc=8/11,Hc=9/10;var qa=Na(2),x0=br(qa),Ba=Nn(qa),qc=t=>1-Math.sin(Math.acos(t)),Bc=br(qc),k0=Nn(Bc),za=gs(Ha),C0=br(za),$0=Nn(za),S0=Fa(Ha),zc=4356/361,Wc=35442/1805,Zc=16061/1805,Gc=t=>{if(t===1||t===0)return t;let e=t*t;return t<Nc?7.5625*e:t<Fc?9.075*e-9.9*t+3.4:t<Hc?zc*e-Wc*t+Zc:10.8*t*t-20.52*t+10.72},E0=br(Gc);function Jc(t,e){return t.map(()=>e||Ba).splice(0,t.length-1)}function Xc(t){let e=t.length;return t.map((r,n)=>n!==0?n/(e-1):0)}function Kc(t,e){return t.map(r=>r*e)}function xr({from:t=0,to:e=1,ease:r,offset:n,duration:i=300}){let s={done:!1,value:t},o=Array.isArray(e)?e:[t,e],u=Kc(n&&n.length===o.length?n:Xc(o),i);function l(){return Vn(u,o,{ease:Array.isArray(r)?r:Jc(o,r)})}let c=l();return{next:f=>(s.value=c(f),s.done=f>=i,s),flipTarget:()=>{o.reverse(),c=l()}}}function Wa({velocity:t=0,from:e=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:s}){let o={done:!1,value:e},u=r*t,l=e+u,c=s===void 0?l:s(l);return c!==l&&(u=c-e),{next:f=>{let p=-u*Math.exp(-f/n);return o.done=!(p>i||p<-i),o.value=o.done?c:c+p,o},flipTarget:()=>{}}}var Za={keyframes:xr,spring:In,decay:Wa};function Ga(t){if(Array.isArray(t.to))return xr;if(Za[t.type])return Za[t.type];let e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?xr:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?In:xr}var ys=16.666666666666668,Yc=typeof performance<"u"?()=>performance.now():()=>Date.now(),vs=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(Yc()),ys);function Ja(t){let e=[],r=[],n=0,i=!1,s=!1,o=new WeakSet,u={schedule:(l,c=!1,f=!1)=>{let p=f&&i,b=p?e:r;return c&&o.add(l),b.indexOf(l)===-1&&(b.push(l),p&&i&&(n=e.length)),l},cancel:l=>{let c=r.indexOf(l);c!==-1&&r.splice(c,1),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[e,r]=[r,e],r.length=0,n=e.length,n)for(let c=0;c<n;c++){let f=e[c];f(l),o.has(f)&&(u.schedule(f),t())}i=!1,s&&(s=!1,u.process(l))}};return u}var Qc=40,ws=!0,Cr=!1,bs=!1,kr={delta:0,timestamp:0},$r=["read","update","preRender","render","postRender"],Fn=$r.reduce((t,e)=>(t[e]=Ja(()=>Cr=!0),t),{}),ep=$r.reduce((t,e)=>{let r=Fn[e];return t[e]=(n,i=!1,s=!1)=>(Cr||rp(),r.schedule(n,i,s)),t},{}),Xa=$r.reduce((t,e)=>(t[e]=Fn[e].cancel,t),{}),N0=$r.reduce((t,e)=>(t[e]=()=>Fn[e].process(kr),t),{}),tp=t=>Fn[t].process(kr),Ka=t=>{Cr=!1,kr.delta=ws?ys:Math.max(Math.min(t-kr.timestamp,Qc),1),kr.timestamp=t,bs=!0,$r.forEach(tp),bs=!1,Cr&&(ws=!1,vs(Ka))},rp=()=>{Cr=!0,ws=!0,bs||vs(Ka)};var Ya=ep;function xs(t,e,r=0){return t-e-r}function Qa(t,e,r=0,n=!0){return n?xs(e+-t,e,r):e-(t-e)+r}function el(t,e,r,n){return n?t>=e+r:t<=-r}var np=t=>{let e=({delta:r})=>t(r);return{start:()=>Ya.update(e,!0),stop:()=>Xa.update(e)}};function ks(t){var e,r,{from:n,autoplay:i=!0,driver:s=np,elapsed:o=0,repeat:u=0,repeatType:l="loop",repeatDelay:c=0,onPlay:f,onStop:p,onComplete:b,onRepeat:x,onUpdate:k}=t,A=_n(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:I}=A,R,$=0,M=A.duration,L,H=!1,Z=!0,Y,j=Ga(A);!((r=(e=j).needsInterpolation)===null||r===void 0)&&r.call(e,n,I)&&(Y=Vn([0,100],[n,I],{clamp:!1}),n=0,I=100);let Q=j(Object.assign(Object.assign({},A),{from:n,to:I}));function ie(){$++,l==="reverse"?(Z=$%2===0,o=Qa(o,M,c,Z)):(o=xs(o,M,c),l==="mirror"&&Q.flipTarget()),H=!1,x&&x()}function ki(){R.stop(),b&&b()}function Xe(q){if(Z||(q=-q),o+=q,!H){let ee=Q.next(Math.max(0,o));L=ee.value,Y&&(L=Y(L)),H=Z?ee.done:o<=0}k?.(L),H&&($===0&&(M??(M=o)),$<u?el(o,M,c,Z)&&ie():ki())}function Yr(){f?.(),R=s(Xe),R.start()}return i&&Yr(),{stop:()=>{p?.(),R.stop()}}}var V,tl,Hn,rl,qn,nl,il,sl,Bn,zn=class zn extends _(S){constructor(){super();d(this,V);this.product=void 0,this.labels={addToCart:"Add to cart",color:"Color",size:"Size"},this._currentImageIndex=0,this._isValidUrl=!1}willUpdate(r){r.has("product")&&g(this,V,tl).call(this)}get images(){return this.product?.images||[]}render(){if(!this.product)return h`
1400
+ `}};g(fi,"properties",{product:{type:Object},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"},searchParams:{type:Object},imagesByProductUrl:{type:Object}});customElements.get("mw-product-card-horizontal")||customElements.define("mw-product-card-horizontal",fi);function mi(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var gi=function(){},Xt=function(){};var Kr=(e,t,r)=>Math.min(Math.max(r,e),t);var mo=.001,Kp=.01,iu=10,Xp=.05,Yp=1;function su({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,s;gi(e<=iu*1e3,"Spring duration must be 10 seconds or less");let o=1-t;o=Kr(Xp,Yp,o),e=Kr(Kp,iu,e/1e3),o<1?(i=c=>{let p=c*o,h=p*e,v=p-r,b=yi(c,o),$=Math.exp(-h);return mo-v/b*$},s=c=>{let h=c*o*e,v=h*r+r,b=Math.pow(o,2)*Math.pow(c,2)*e,$=Math.exp(-h),j=yi(Math.pow(c,2),o);return(-i(c)+mo>0?-1:1)*((v-b)*$)/j}):(i=c=>{let p=Math.exp(-c*e),h=(c-r)*e+1;return-mo+p*h},s=c=>{let p=Math.exp(-c*e),h=(r-c)*(e*e);return p*h});let u=5/e,l=e1(i,s,u);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:e}}}var Qp=12;function e1(e,t,r){let n=r;for(let i=1;i<Qp;i++)n=n-e(n)/t(n);return n}function yi(e,t){return e*Math.sqrt(1-t*t)}var t1=["duration","bounce"],r1=["stiffness","damping","mass"];function ou(e,t){return t.some(r=>e[r]!==void 0)}function n1(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ou(e,r1)&&ou(e,t1)){let r=su(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function wi(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,s=mi(e,["from","to","restSpeed","restDelta"]);let o={done:!1,value:t},{stiffness:u,damping:l,mass:c,velocity:p,duration:h,isResolvedFromDuration:v}=n1(s),b=au,$=au;function j(){let C=p?-(p/1e3):0,A=r-t,k=l/(2*Math.sqrt(u*c)),E=Math.sqrt(u/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),k<1){let T=yi(E,k);b=N=>{let K=Math.exp(-k*E*N);return r-K*((C+k*E*A)/T*Math.sin(T*N)+A*Math.cos(T*N))},$=N=>{let K=Math.exp(-k*E*N);return k*E*K*(Math.sin(T*N)*(C+k*E*A)/T+A*Math.cos(T*N))-K*(Math.cos(T*N)*(C+k*E*A)-T*A*Math.sin(T*N))}}else if(k===1)b=T=>r-Math.exp(-E*T)*(A+(C+E*A)*T);else{let T=E*Math.sqrt(k*k-1);b=N=>{let K=Math.exp(-k*E*N),te=Math.min(T*N,300);return r-K*((C+k*E*A)*Math.sinh(te)+T*A*Math.cosh(te))/T}}}return j(),{next:C=>{let A=b(C);if(v)o.done=C>=h;else{let k=$(C)*1e3,E=Math.abs(k)<=n,T=Math.abs(r-A)<=i;o.done=E&&T}return o.value=o.done?r:A,o},flipTarget:()=>{p=-p,[t,r]=[r,t],j()}}}wi.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var au=e=>0;var go=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var Yt=(e,t,r)=>-r*e+r*t+e;var vi=(e,t)=>r=>Math.max(Math.min(r,t),e),qe=e=>e%1?Number(e.toFixed(5)):e,Qt=/(-)?([\d]*\.?[\d])+/g,xi=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,lu=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Pe(e){return typeof e=="string"}var er={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bi=Object.assign(Object.assign({},er),{transform:vi(0,1)}),r2=Object.assign(Object.assign({},er),{default:1});var Xr=e=>({test:t=>Pe(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),s2=Xr("deg"),tr=Xr("%"),o2=Xr("px"),a2=Xr("vh"),l2=Xr("vw"),u2=Object.assign(Object.assign({},tr),{parse:e=>tr.parse(e)/100,transform:e=>tr.transform(e*100)});var rr=(e,t)=>r=>!!(Pe(r)&&lu.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),ki=(e,t,r)=>n=>{if(!Pe(n))return n;let[i,s,o,u]=n.match(Qt);return{[e]:parseFloat(i),[t]:parseFloat(s),[r]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}};var Me={test:rr("hsl","hue"),parse:ki("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+tr.transform(qe(t))+", "+tr.transform(qe(r))+", "+qe(bi.transform(n))+")"};var i1=vi(0,255),Ci=Object.assign(Object.assign({},er),{transform:e=>Math.round(i1(e))}),ye={test:rr("rgb","red"),parse:ki("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ci.transform(e)+", "+Ci.transform(t)+", "+Ci.transform(r)+", "+qe(bi.transform(n))+")"};function s1(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var nr={test:rr("#"),parse:s1,transform:ye.transform};var ze={test:e=>ye.test(e)||nr.test(e)||Me.test(e),parse:e=>ye.test(e)?ye.parse(e):Me.test(e)?Me.parse(e):nr.parse(e),transform:e=>Pe(e)?e:e.hasOwnProperty("red")?ye.transform(e):Me.transform(e)};var uu="${c}",cu="${n}";function o1(e){var t,r,n,i;return isNaN(e)&&Pe(e)&&((r=(t=e.match(Qt))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(xi))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function pu(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=e.match(xi);n&&(r=n.length,e=e.replace(xi,uu),t.push(...n.map(ze.parse)));let i=e.match(Qt);return i&&(e=e.replace(Qt,cu),t.push(...i.map(er.parse))),{values:t,numColors:r,tokenised:e}}function hu(e){return pu(e).values}function du(e){let{values:t,numColors:r,tokenised:n}=pu(e),i=t.length;return s=>{let o=n;for(let u=0;u<i;u++)o=o.replace(u<r?uu:cu,u<r?ze.transform(s[u]):qe(s[u]));return o}}var a1=e=>typeof e=="number"?0:e;function l1(e){let t=hu(e);return du(e)(t.map(a1))}var $i={test:o1,parse:hu,createTransformer:du,getAnimatableNone:l1};function yo(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function wo({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,s=0,o=0;if(!t)i=s=o=r;else{let u=r<.5?r*(1+t):r+t-r*t,l=2*r-u;i=yo(l,u,e+1/3),s=yo(l,u,e),o=yo(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}var u1=(e,t,r)=>{let n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},c1=[nr,ye,Me],fu=e=>c1.find(t=>t.test(e)),mu=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Si=(e,t)=>{let r=fu(e),n=fu(t);Xt(!!r,mu(e)),Xt(!!n,mu(t));let i=r.parse(e),s=n.parse(t);r===Me&&(i=wo(i),r=ye),n===Me&&(s=wo(s),n=ye);let o=Object.assign({},i);return u=>{for(let l in o)l!=="alpha"&&(o[l]=u1(i[l],s[l],u));return o.alpha=Yt(i.alpha,s.alpha,u),r.transform(o)}};var gu=e=>typeof e=="number";var p1=(e,t)=>r=>t(e(r)),Ei=(...e)=>e.reduce(p1);function wu(e,t){return gu(e)?r=>Yt(e,t,r):ze.test(e)?Si(e,t):xo(e,t)}var vo=(e,t)=>{let r=[...e],n=r.length,i=e.map((s,o)=>wu(s,t[o]));return s=>{for(let o=0;o<n;o++)r[o]=i[o](s);return r}},vu=(e,t)=>{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=wu(e[i],t[i]));return i=>{for(let s in n)r[s]=n[s](i);return r}};function yu(e){let t=$i.parse(e),r=t.length,n=0,i=0,s=0;for(let o=0;o<r;o++)n||typeof t[o]=="number"?n++:t[o].hue!==void 0?s++:i++;return{parsed:t,numNumbers:n,numRGB:i,numHSL:s}}var xo=(e,t)=>{let r=$i.createTransformer(t),n=yu(e),i=yu(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?Ei(vo(n.parsed,i.parsed),r):(gi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),o=>`${o>0?t:e}`)};var h1=(e,t)=>r=>Yt(e,t,r);function d1(e){if(typeof e=="number")return h1;if(typeof e=="string")return ze.test(e)?Si:xo;if(Array.isArray(e))return vo;if(typeof e=="object")return vu}function f1(e,t,r){let n=[],i=r||d1(e[0]),s=e.length-1;for(let o=0;o<s;o++){let u=i(e[o],e[o+1]);if(t){let l=Array.isArray(t)?t[o]:t;u=Ei(l,u)}n.push(u)}return n}function m1([e,t],[r]){return n=>r(go(e,t,n))}function g1(e,t){let r=e.length,n=r-1;return i=>{let s=0,o=!1;if(i<=e[0]?o=!0:i>=e[n]&&(s=n-1,o=!0),!o){let l=1;for(;l<r&&!(e[l]>i||l===n);l++);s=l-1}let u=go(e[s],e[s+1],i);return t[s](u)}}function _i(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let s=e.length;Xt(s===t.length,"Both input and output ranges must be the same length"),Xt(!n||!Array.isArray(n)||n.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=f1(t,n,i),u=s===2?m1(e,o):g1(e,o);return r?l=>u(Kr(e[0],e[s-1],l)):u}var Yr=e=>t=>1-e(1-t),Ai=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xu=e=>t=>Math.pow(t,e),bo=e=>t=>t*t*((e+1)*t-e),bu=e=>{let t=bo(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))};var ku=1.525,y1=4/11,w1=8/11,v1=9/10;var Cu=xu(2),hm=Yr(Cu),$u=Ai(Cu),x1=e=>1-Math.sin(Math.acos(e)),b1=Yr(x1),dm=Ai(b1),Su=bo(ku),fm=Yr(Su),mm=Ai(Su),gm=bu(ku),k1=4356/361,C1=35442/1805,$1=16061/1805,S1=e=>{if(e===1||e===0)return e;let t=e*e;return e<y1?7.5625*t:e<w1?9.075*t-9.9*e+3.4:e<v1?k1*t-C1*e+$1:10.8*e*e-20.52*e+10.72},ym=Yr(S1);function E1(e,t){return e.map(()=>t||$u).splice(0,e.length-1)}function _1(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function A1(e,t){return e.map(r=>r*t)}function Qr({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){let s={done:!1,value:e},o=Array.isArray(t)?t:[e,t],u=A1(n&&n.length===o.length?n:_1(o),i);function l(){return _i(u,o,{ease:Array.isArray(r)?r:E1(o,r)})}let c=l();return{next:p=>(s.value=c(p),s.done=p>=i,s),flipTarget:()=>{o.reverse(),c=l()}}}function Eu({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:s}){let o={done:!1,value:t},u=r*e,l=t+u,c=s===void 0?l:s(l);return c!==l&&(u=c-t),{next:p=>{let h=-u*Math.exp(-p/n);return o.done=!(h>i||h<-i),o.value=o.done?c:c+h,o},flipTarget:()=>{}}}var _u={keyframes:Qr,spring:wi,decay:Eu};function Au(e){if(Array.isArray(e.to))return Qr;if(_u[e.type])return _u[e.type];let t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Qr:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?wi:Qr}var ko=16.666666666666668,M1=typeof performance<"u"?()=>performance.now():()=>Date.now(),Co=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(M1()),ko);function Mu(e){let t=[],r=[],n=0,i=!1,s=!1,o=new WeakSet,u={schedule:(l,c=!1,p=!1)=>{let h=p&&i,v=h?t:r;return c&&o.add(l),v.indexOf(l)===-1&&(v.push(l),h&&i&&(n=t.length)),l},cancel:l=>{let c=r.indexOf(l);c!==-1&&r.splice(c,1),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let c=0;c<n;c++){let p=t[c];p(l),o.has(p)&&(u.schedule(p),e())}i=!1,s&&(s=!1,u.process(l))}};return u}var I1=40,$o=!0,tn=!1,So=!1,en={delta:0,timestamp:0},rn=["read","update","preRender","render","postRender"],Mi=rn.reduce((e,t)=>(e[t]=Mu(()=>tn=!0),e),{}),O1=rn.reduce((e,t)=>{let r=Mi[t];return e[t]=(n,i=!1,s=!1)=>(tn||T1(),r.schedule(n,i,s)),e},{}),Iu=rn.reduce((e,t)=>(e[t]=Mi[t].cancel,e),{}),Om=rn.reduce((e,t)=>(e[t]=()=>Mi[t].process(en),e),{}),j1=e=>Mi[e].process(en),Ou=e=>{tn=!1,en.delta=$o?ko:Math.max(Math.min(e-en.timestamp,I1),1),en.timestamp=e,So=!0,rn.forEach(j1),So=!1,tn&&($o=!1,Co(Ou))},T1=()=>{tn=!0,$o=!0,So||Co(Ou)};var ju=O1;function Eo(e,t,r=0){return e-t-r}function Tu(e,t,r=0,n=!0){return n?Eo(t+-e,t,r):t-(e-t)+r}function Lu(e,t,r,n){return n?e>=t+r:e<=-r}var L1=e=>{let t=({delta:r})=>e(r);return{start:()=>ju.update(t,!0),stop:()=>Iu.update(t)}};function _o(e){var t,r,{from:n,autoplay:i=!0,driver:s=L1,elapsed:o=0,repeat:u=0,repeatType:l="loop",repeatDelay:c=0,onPlay:p,onStop:h,onComplete:v,onRepeat:b,onUpdate:$}=e,j=mi(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=j,A,k=0,E=j.duration,T,N=!1,K=!0,te,P=Au(j);!((r=(t=P).needsInterpolation)===null||r===void 0)&&r.call(t,n,C)&&(te=_i([0,100],[n,C],{clamp:!1}),n=0,C=100);let re=P(Object.assign(Object.assign({},j),{from:n,to:C}));function oe(){k++,l==="reverse"?(K=k%2===0,o=Tu(o,E,c,K)):(o=Eo(o,E,c),l==="mirror"&&re.flipTarget()),N=!1,b&&b()}function ss(){A.stop(),v&&v()}function Ye(W){if(K||(W=-W),o+=W,!N){let ne=re.next(Math.max(0,o));T=ne.value,te&&(T=te(T)),N=K?ne.done:o<=0}$?.(T),N&&(k===0&&(E??(E=o)),k<u?Lu(o,E,c,K)&&oe():ss())}function On(){p?.(),A=s(Ye),A.start()}return i&&On(),{stop:()=>{h?.(),A.stop()}}}var B,Du,Ii,Pu,Oi,Ru,Uu,Vu,ji,Ti=class Ti extends I(_){constructor(){super();f(this,B);this.product=void 0,this.labels={addToCart:"Add to cart",color:"Color",size:"Size"},this._currentImageIndex=0,this._isValidUrl=!1}willUpdate(r){r.has("product")&&y(this,B,Du).call(this)}get images(){return this.product?.images||[]}render(){if(!this.product)return d`
483
1401
  <div class="my-2 w-full rounded-3xl border bg-white p-4">
484
1402
  <div class="relative mx-auto mb-4 max-w-[240px]">
485
1403
  <div class="h-[180px] w-full animate-pulse rounded-2xl bg-gray-200"></div>
@@ -498,12 +1416,12 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
498
1416
  <div class="h-8 flex-auto animate-pulse rounded-xl bg-gray-200"></div>
499
1417
  </div>
500
1418
  </div>
501
- `;if(this.product.layout==="horizontal")return h` <mw-product-card-horizontal product="${JSON.stringify(this.product)}"></mw-product-card-horizontal> `;let{name:r,description:n,price:i,category:s}=this.product;return h`
1419
+ `;if(this.product.layout==="horizontal")return d` <mw-product-card-horizontal product="${JSON.stringify(this.product)}"></mw-product-card-horizontal> `;let{name:r,description:n,price:i,category:s}=this.product;return d`
502
1420
  <div class="my-2 w-full rounded-3xl border-[0.5px] border-[#5e5d59]/25 bg-white p-4 hover:shadow-sm">
503
1421
  <div class="pointer-events-auto mx-auto mb-4">
504
1422
  <div class="group relative overflow-hidden rounded-2xl">
505
1423
  <div class="image-slider z-0 flex transition-transform duration-300 ease-in-out" style="transform: translateX(-${this._currentImageIndex*100}%)">
506
- ${this.images.length>0?we(this.images,o=>o,(o,u)=>h`
1424
+ ${this.images.length>0?Ce(this.images,o=>o,(o,u)=>d`
507
1425
  <!-- Cloudflare Images: resize the source image -->
508
1426
  <img
509
1427
  src="https://molin.ai/cdn-cgi/image/w=100,fit=scale-down,format=auto,quality=75,dpr=1/${o}"
@@ -514,7 +1432,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
514
1432
  alt="image ${u+1}: ${r}"
515
1433
  class="h-auto w-full flex-shrink-0 object-scale-down"
516
1434
  loading="lazy" />
517
- `):h`
1435
+ `):d`
518
1436
  <div class="h-full w-full flex-shrink-0 object-scale-down"></div>
519
1437
  <svg class="rounded-lg" height="144" viewBox="0 0 100 133" fill="none" xmlns="http://www.w3.org/2000/svg">
520
1438
  <rect width="100" height="133" rx="2" fill="#EEEEEE" style="" transform="matrix(0.9999999999999999, 0, 0, 0.9999999999999999, 0, -7.105427357601002e-15)" />
@@ -526,67 +1444,67 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
526
1444
  </svg>
527
1445
  `}
528
1446
  </div>
529
- ${dr(this.images.length>1,()=>h`
1447
+ ${Wr(this.images.length>1,()=>d`
530
1448
  <div class="absolute inset-0 flex items-center justify-between px-4">
531
1449
  <button
532
- @click="${g(this,V,il)}"
1450
+ @click="${y(this,B,Uu)}"
533
1451
  class="absolute left-2 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-full bg-white bg-opacity-80 shadow transition-all hover:bg-opacity-100">
534
1452
  <hi-outline class="block h-6 w-3" name="chevron-left"></hi-outline>
535
1453
  </button>
536
1454
  <button
537
- @click="${g(this,V,nl)}"
1455
+ @click="${y(this,B,Ru)}"
538
1456
  class="absolute right-2 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-full bg-white bg-opacity-80 shadow transition-all hover:bg-opacity-100">
539
1457
  <hi-outline class="block h-6 w-3" name="chevron-right"></hi-outline>
540
1458
  </button>
541
1459
  </div>
542
1460
  `)}
543
- ${dr(this.images?.length>1,()=>h`
1461
+ ${Wr(this.images?.length>1,()=>d`
544
1462
  <div class="slider-dots absolute bottom-3 left-1/2 flex -translate-x-1/2 gap-2">
545
- ${this.images.map((o,u)=>h`
1463
+ ${this.images.map((o,u)=>d`
546
1464
  <button
547
- @click="${()=>g(this,V,sl).call(this,u)}"
1465
+ @click="${()=>y(this,B,Vu).call(this,u)}"
548
1466
  class="${u===this._currentImageIndex?"bg-opacity-100":"bg-opacity-60"} h-1.5 w-1.5 rounded-full bg-white transition-all hover:bg-opacity-80"></button>
549
1467
  `)}
550
1468
  </div>
551
1469
  `)}
552
1470
  </div>
553
1471
  </div>
554
- <div @click="${g(this,V,Hn)}" class="cursor-pointer">
555
- ${s?h`<a @click="${g(this,V,Hn)}" class="${this._isValidUrl?"":"pointer-events-none"} line-clamp-1 text-xs text-gray-600 hover:underline"> ${s} </a>`:null}
1472
+ <div @click="${y(this,B,Ii)}" class="cursor-pointer">
1473
+ ${s?d`<a @click="${y(this,B,Ii)}" class="${this._isValidUrl?"":"pointer-events-none"} line-clamp-1 text-xs text-gray-600 hover:underline"> ${s} </a>`:null}
556
1474
 
557
1475
  <h3
558
- @click="${g(this,V,Hn)}"
1476
+ @click="${y(this,B,Ii)}"
559
1477
  class="${this._isValidUrl?"":"pointer-events-none cursor-default"} mb-1 line-clamp-2 cursor-pointer text-lg font-semibold transition-all hover:underline">
560
- ${r||h`<span class="inline-block h-6 w-32 animate-pulse rounded bg-gray-200"></span>`}
1478
+ ${r||d`<span class="inline-block h-6 w-32 animate-pulse rounded bg-gray-200"></span>`}
561
1479
  </h3>
562
- ${n?h`<p class="mb-2 line-clamp-2 text-sm text-gray-600">${n}</p>`:h`<div class="mb-2 h-4 w-3/4 animate-pulse rounded bg-gray-200"></div>`}
563
- <span class="text-lg font-bold"> ${i||h`<span class="inline-block h-6 w-16 animate-pulse rounded bg-gray-200"></span>`} </span>
1480
+ ${n?d`<p class="mb-2 line-clamp-2 text-sm text-gray-600">${n}</p>`:d`<div class="mb-2 h-4 w-3/4 animate-pulse rounded bg-gray-200"></div>`}
1481
+ <span class="text-lg font-bold"> ${i||d`<span class="inline-block h-6 w-16 animate-pulse rounded bg-gray-200"></span>`} </span>
564
1482
 
565
1483
  <!-- <div class="my-4 border-t border-gray-200"></div> -->
566
1484
 
567
1485
  <!-- <button
568
- @click="${g(this,V,rl)}"
1486
+ @click="${y(this,B,Pu)}"
569
1487
  ?disabled="${!this._isValidUrl}"
570
1488
  class="${this._isValidUrl?"bg-gray-900 hover:bg-gray-800":"bg-gray-900/80 cursor-default"} w-full rounded-xl px-4 py-1.5 text-sm text-white">
571
1489
  ${this.labels.addToCart}
572
1490
  </button> -->
573
1491
  </div>
574
1492
  </div>
575
- `}};V=new WeakSet,tl=function(){if(!this.product?.url){this._isValidUrl=!1;return}try{let r=new URL(this.product.url);this._isValidUrl=r.protocol==="http:"||r.protocol==="https:"}catch{this._isValidUrl=!1}},Hn=function(r){r.preventDefault(),!(!this.product?.url||!this._isValidUrl)&&window.open(this.product.url,"_blank")},rl=function(r){!this.product?.url||!this._isValidUrl||(window.open(this.product.url,"_blank"),this.dispatchEvent(new zn.AddToCartEvent(this.product)))},qn=function(r,n){a(this,V,Bn)&&ks({from:r,to:n,duration:300,onUpdate:i=>{a(this,V,Bn)&&(a(this,V,Bn).style.transform=`translateX(${i}%)`)}})},nl=function(){if(!this.product?.images?.length)return;let r=this._currentImageIndex,n=(r+1)%this.product.images.length,i=-(r*100),s=-(n*100);g(this,V,qn).call(this,i,s),this._currentImageIndex=n},il=function(){if(!this.product?.images?.length)return;let r=this._currentImageIndex,n=(r-1+this.product.images.length)%this.product.images.length,i=-(r*100),s=-(n*100);g(this,V,qn).call(this,i,s),this._currentImageIndex=n},sl=function(r){if(!this.product?.images?.length)return;let n=this._currentImageIndex,i=Math.max(0,Math.min(r,this.product.images.length-1)),s=-(n*100),o=-(i*100);g(this,V,qn).call(this,s,o),this._currentImageIndex=i},Bn=function(){return this.renderRoot.querySelector(".image-slider")},y(zn,"properties",{product:{type:Object},labels:{type:Object},_currentImageIndex:{type:Number,state:!0},_isValidUrl:{type:Boolean,state:!0}});var Sr=zn,Cs;Sr.AddToCartEvent=(Cs=class extends CustomEvent{constructor(e,r={}){super(Sr.AddToCartEvent.type,{detail:{product:e},...r})}},y(Cs,"type","mw-product-card:add-to-cart"),Cs);customElements.get("mw-product-card")||customElements.define("mw-product-card",Sr);function jt(t){return Array.isArray(t)?t:t?[t]:[]}function ol(t,e){let r=new Map;for(let n of t){let i=e(n);r.has(i)||r.set(i,[]),(r.get(i)||[]).push(n)}return r}var al=(t,e,r)=>{for(let n of e)if(n[0]===t)return(0,n[1])();return r?.()};var Wn=class extends _(S){constructor(){super(),this.orderDetails=null,this.streaming=!1,this.linksNewTab=!1}render(){let e=jt(this.orderDetails?.order_status?.step||[]),r=jt(this.orderDetails?.items?.item||[]),n=jt(this.orderDetails?.actions||[]);return h`
1493
+ `}};B=new WeakSet,Du=function(){if(!this.product?.url){this._isValidUrl=!1;return}try{let r=new URL(this.product.url);this._isValidUrl=r.protocol==="http:"||r.protocol==="https:"}catch{this._isValidUrl=!1}},Ii=function(r){r.preventDefault(),!(!this.product?.url||!this._isValidUrl)&&window.open(this.product.url,"_blank")},Pu=function(r){!this.product?.url||!this._isValidUrl||(window.open(this.product.url,"_blank"),this.dispatchEvent(new Ti.AddToCartEvent(this.product)))},Oi=function(r,n){a(this,B,ji)&&_o({from:r,to:n,duration:300,onUpdate:i=>{a(this,B,ji)&&(a(this,B,ji).style.transform=`translateX(${i}%)`)}})},Ru=function(){if(!this.product?.images?.length)return;let r=this._currentImageIndex,n=(r+1)%this.product.images.length,i=-(r*100),s=-(n*100);y(this,B,Oi).call(this,i,s),this._currentImageIndex=n},Uu=function(){if(!this.product?.images?.length)return;let r=this._currentImageIndex,n=(r-1+this.product.images.length)%this.product.images.length,i=-(r*100),s=-(n*100);y(this,B,Oi).call(this,i,s),this._currentImageIndex=n},Vu=function(r){if(!this.product?.images?.length)return;let n=this._currentImageIndex,i=Math.max(0,Math.min(r,this.product.images.length-1)),s=-(n*100),o=-(i*100);y(this,B,Oi).call(this,s,o),this._currentImageIndex=i},ji=function(){return this.renderRoot.querySelector(".image-slider")},g(Ti,"properties",{product:{type:Object},labels:{type:Object},_currentImageIndex:{type:Number,state:!0},_isValidUrl:{type:Boolean,state:!0}});var nn=Ti,Ao;nn.AddToCartEvent=(Ao=class extends CustomEvent{constructor(t,r={}){super(nn.AddToCartEvent.type,{detail:{product:t},...r})}},g(Ao,"type","mw-product-card:add-to-cart"),Ao);customElements.get("mw-product-card")||customElements.define("mw-product-card",nn);function ir(e){return Array.isArray(e)?e:e?[e]:[]}function Bu(e,t){let r=new Map;for(let n of e){let i=t(n);r.has(i)||r.set(i,[]),(r.get(i)||[]).push(n)}return r}var Nu=(e,t,r)=>{for(let n of t)if(n[0]===e)return(0,n[1])();return r?.()};var Li=class extends I(_){constructor(){super(),this.orderDetails=null,this.streaming=!1,this.linksNewTab=!1}render(){let t=ir(this.orderDetails?.order_status?.step||[]),r=ir(this.orderDetails?.items?.item||[]),n=ir(this.orderDetails?.actions||[]);return d`
576
1494
  <div class="flex w-full max-w-md flex-col rounded-3xl border bg-white p-4">
577
1495
  <!-- Header with order ID -->
578
1496
  <div class="mb-2">
579
- ${this.orderDetails?.order_id?.label||!this.streaming?h`<h2 class="text-lg font-semibold">${this.orderDetails?.order_id?.label} ${this.orderDetails?.order_id?.value}</h2>`:h`<div class="h-7 w-full animate-pulse rounded bg-gray-200"></div>`}
1497
+ ${this.orderDetails?.order_id?.label||!this.streaming?d`<h2 class="text-lg font-semibold">${this.orderDetails?.order_id?.label} ${this.orderDetails?.order_id?.value}</h2>`:d`<div class="h-7 w-full animate-pulse rounded bg-gray-200"></div>`}
580
1498
  </div>
581
1499
 
582
1500
  <!-- Progress Timeline -->
583
1501
  <div>
584
1502
  <ol role="list" class="w-full overflow-hidden">
585
- ${this.streaming&&!this.orderDetails?h`
1503
+ ${this.streaming&&!this.orderDetails?d`
586
1504
  <!-- Loading for status timeline -->
587
- ${[1,2,3].map((i,s)=>h`
1505
+ ${[1,2,3].map((i,s)=>d`
588
1506
  <li class="w-full pb-8">
589
- ${s<2?h`<div class="absolute left-2 top-2 -ml-px mt-0.5 h-full w-0.5 animate-pulse bg-gray-200" aria-hidden="true"></div>`:""}
1507
+ ${s<2?d`<div class="absolute left-2 top-2 -ml-px mt-0.5 h-full w-0.5 animate-pulse bg-gray-200" aria-hidden="true"></div>`:""}
590
1508
  <div class="group relative flex items-start">
591
1509
  <span class="flex h-6 items-center">
592
1510
  <span class="h-4 w-4 animate-pulse rounded-full bg-gray-200"></span>
@@ -597,25 +1515,25 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
597
1515
  </div>
598
1516
  </li>
599
1517
  `)}
600
- `:we(e,i=>i.label,(i,s)=>{let o=i.status==="completed",u=i.status==="in_progress",l=s===e.length-1;return h`<li class="relative pb-4">
601
- ${l?"":h`<div class="${`absolute left-2 top-2 -ml-px mt-0.5 h-full w-0.5 ${o?"bg-[#601feb]":"bg-gray-300"}`}" aria-hidden="true"></div>`}
1518
+ `:Ce(t,i=>i.label,(i,s)=>{let o=i.status==="completed",u=i.status==="in_progress",l=s===t.length-1;return d`<li class="relative pb-4">
1519
+ ${l?"":d`<div class="${`absolute left-2 top-2 -ml-px mt-0.5 h-full w-0.5 ${o?"bg-[#601feb]":"bg-gray-300"}`}" aria-hidden="true"></div>`}
602
1520
 
603
1521
  <div class="group relative flex items-start">
604
- ${al(i.status,[["pending",()=>h` <span class="flex h-6 items-center">
1522
+ ${Nu(i.status,[["pending",()=>d` <span class="flex h-6 items-center">
605
1523
  <span class="flex h-4 w-4 items-center justify-center rounded-full border-2 border-gray-300 bg-white">
606
1524
  <span class="h-1.5 w-1.5 rounded-full bg-transparent"></span>
607
1525
  </span>
608
- </span>`],["in_progress",()=>h`<span class="flex h-6 items-center">
1526
+ </span>`],["in_progress",()=>d`<span class="flex h-6 items-center">
609
1527
  <span class="flex h-4 w-4 items-center justify-center rounded-full border-2 border-[#601feb] bg-white">
610
1528
  <span class="h-1.5 w-1.5 rounded-full bg-[#601feb]"></span>
611
1529
  </span>
612
- </span>`],["completed",()=>h`
1530
+ </span>`],["completed",()=>d`
613
1531
  <span class="flex h-6 items-center">
614
1532
  <span class="flex h-4 w-4 items-center justify-center rounded-full bg-[#601feb]">
615
1533
  <hi-outline class="mb-3 block h-3 w-3 text-white" name="check"></hi-outline>
616
1534
  </span>
617
1535
  </span>
618
- `]],()=>h`<span class="flex h-6 items-center">
1536
+ `]],()=>d`<span class="flex h-6 items-center">
619
1537
  <span class="flex h-4 w-4 items-center justify-center rounded-full border-2 border-[#601feb] bg-white">
620
1538
  <span class="h-1.5 w-1.5 rounded-full bg-[#601feb]"></span>
621
1539
  </span>
@@ -631,7 +1549,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
631
1549
 
632
1550
  <!-- Products list with order items -->
633
1551
  <div class="mb-2 w-full">
634
- ${r.length===0&&!this.orderDetails?.total?.amount&&this.streaming?h`
1552
+ ${r.length===0&&!this.orderDetails?.total?.amount&&this.streaming?d`
635
1553
  <!-- Loading shimmer for products -->
636
1554
  <div class="w-full space-y-4">
637
1555
  <div class="flex items-center gap-2">
@@ -646,11 +1564,11 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
646
1564
  <div class="h-4 w-10 animate-pulse rounded bg-gray-200"></div>
647
1565
  </div>
648
1566
  </div>
649
- `:h`
1567
+ `:d`
650
1568
  <div class="divide-y divide-gray-100">
651
- ${this.streaming&&!r.length?h`
1569
+ ${this.streaming&&!r.length?d`
652
1570
  <!-- Loading shimmer for individual products -->
653
- ${[1,2].map(()=>h`
1571
+ ${[1,2].map(()=>d`
654
1572
  <div class="flex items-center gap-2 py-1.5">
655
1573
  <div class="h-12 w-12 animate-pulse rounded-lg bg-gray-200"></div>
656
1574
  <div class="min-w-0 flex-1">
@@ -659,14 +1577,14 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
659
1577
  <div class="h-4 w-24 animate-pulse rounded bg-gray-200"></div>
660
1578
  </div>
661
1579
  `)}
662
- `:r?.map(i=>{let s=i?.image_url;return h`
1580
+ `:r?.map(i=>{let s=i?.image_url;return d`
663
1581
  <div class="flex items-center gap-2 py-1.5">
664
- <mw-product-thumbnail class="block h-12 w-12" src="${$e(s)}"></mw-product-thumbnail>
1582
+ <mw-product-thumbnail class="block h-12 w-12" src="${Ae(s)}"></mw-product-thumbnail>
665
1583
 
666
1584
  <div class="min-w-0 flex-1">
667
- ${!i?.name&&this.streaming?h`<div class="h-4 w-32 animate-pulse rounded bg-gray-200"></div>`:h`<h3 class="truncate text-sm font-medium">${i?.name}</h3>`}
1585
+ ${!i?.name&&this.streaming?d`<div class="h-4 w-32 animate-pulse rounded bg-gray-200"></div>`:d`<h3 class="truncate text-sm font-medium">${i?.name}</h3>`}
668
1586
  </div>
669
- ${!i?.price&&this.streaming?h`<div class="h-4 w-24 animate-pulse rounded bg-gray-200"></div>`:h`<span class="text-sm text-gray-500">${i?.quantity&&Number(i.quantity)>1?"x":""} ${i?.price}</span>`}
1587
+ ${!i?.price&&this.streaming?d`<div class="h-4 w-24 animate-pulse rounded bg-gray-200"></div>`:d`<span class="text-sm text-gray-500">${i?.quantity&&Number(i.quantity)>1?"x":""} ${i?.price}</span>`}
670
1588
  </div>
671
1589
  `})}
672
1590
  </div>
@@ -682,9 +1600,9 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
682
1600
 
683
1601
  <!-- Shipping and payment information -->
684
1602
  <div class="mb-2 flex w-full flex-col gap-2 overflow-hidden">
685
- ${this.streaming&&!this.orderDetails?h`
1603
+ ${this.streaming&&!this.orderDetails?d`
686
1604
  <!-- Loading shimmer template -->
687
- ${[1,2].map(()=>h`
1605
+ ${[1,2].map(()=>d`
688
1606
  <div>
689
1607
  <div class="mb-2 h-5 w-32 animate-pulse rounded bg-gray-200"></div>
690
1608
  <div class="space-y-2 overflow-hidden">
@@ -693,10 +1611,10 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
693
1611
  </div>
694
1612
  </div>
695
1613
  `)}
696
- `:h`
1614
+ `:d`
697
1615
  <!-- Shipping Section -->
698
1616
  <div>
699
- ${this.streaming&&!this.orderDetails?.shipping?h`
1617
+ ${this.streaming&&!this.orderDetails?.shipping?d`
700
1618
  <div>
701
1619
  <div class="mb-2 h-5 w-32 animate-pulse rounded bg-gray-200"></div>
702
1620
  <div class="space-y-2 overflow-hidden">
@@ -704,18 +1622,18 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
704
1622
  <div class="h-4 w-36 animate-pulse rounded bg-gray-200"></div>
705
1623
  </div>
706
1624
  </div>
707
- `:this.orderDetails?.shipping?.method||this.orderDetails?.customer?.name?h`
1625
+ `:this.orderDetails?.shipping?.method||this.orderDetails?.customer?.name?d`
708
1626
  <h3 class="mb-1 text-sm font-medium">${this.orderDetails?.shipping?.label}</h3>
709
1627
  <div class="space-y-1">
710
- ${this.orderDetails.customer?.name?h`<p class="text-xs text-gray-600">${this.orderDetails.customer.name}</p>`:""}
711
- ${this.orderDetails.shipping?.method?h`<p class="text-xs text-gray-600">${this.orderDetails.shipping.method}</p>`:""}
1628
+ ${this.orderDetails.customer?.name?d`<p class="text-xs text-gray-600">${this.orderDetails.customer.name}</p>`:""}
1629
+ ${this.orderDetails.shipping?.method?d`<p class="text-xs text-gray-600">${this.orderDetails.shipping.method}</p>`:""}
712
1630
  </div>
713
1631
  `:""}
714
1632
  </div>
715
1633
 
716
1634
  <!-- Payment Section -->
717
1635
  <div>
718
- ${this.streaming&&!this.orderDetails?.payment?h`
1636
+ ${this.streaming&&!this.orderDetails?.payment?d`
719
1637
  <div>
720
1638
  <div class="mb-2 h-5 w-32 animate-pulse rounded bg-gray-200"></div>
721
1639
  <div class="space-y-2 overflow-hidden">
@@ -723,15 +1641,15 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
723
1641
  <div class="h-4 w-36 animate-pulse rounded bg-gray-200"></div>
724
1642
  </div>
725
1643
  </div>
726
- `:this.orderDetails?.payment?h`
1644
+ `:this.orderDetails?.payment?d`
727
1645
  <h3 class="mb-1 text-sm font-medium">${this.orderDetails.payment.label}</h3>
728
- ${this.orderDetails.payment?.method?.value?h`
1646
+ ${this.orderDetails.payment?.method?.value?d`
729
1647
  <p class="text-xs text-gray-600">
730
1648
  <span class="font-medium">${this.orderDetails.payment.method.label}:</span>
731
1649
  ${this.orderDetails.payment.method.value}
732
1650
  </p>
733
1651
  `:""}
734
- ${this.orderDetails.payment.status?.value?h`
1652
+ ${this.orderDetails.payment.status?.value?d`
735
1653
  <p class="text-xs text-gray-600">
736
1654
  <span class="font-medium">${this.orderDetails.payment.status.label}:</span>
737
1655
  <span>${this.orderDetails.payment.status.value}</span>
@@ -744,11 +1662,11 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
744
1662
 
745
1663
  <!-- Action buttons section -->
746
1664
  <div class="flex w-full flex-col gap-2 overflow-hidden">
747
- ${this.streaming&&!n[0]?.track_order?.label&&!us(n[0]?.track_order?.tracking_url||"")?h`
1665
+ ${this.streaming&&!n[0]?.track_order?.label&&!As(n[0]?.track_order?.tracking_url||"")?d`
748
1666
  <!-- Loading shimmer for buttons -->
749
1667
  <div class="h-10 w-full min-w-[250px] animate-pulse overflow-hidden rounded-xl bg-gray-200"></div>
750
- `:we(n,(i,s)=>`action-${s}`,i=>{if(i?.track_order?.label)return h`
751
- ${us(i.track_order?.tracking_url||"")?h` <a
1668
+ `:Ce(n,(i,s)=>`action-${s}`,i=>{if(i?.track_order?.label)return d`
1669
+ ${As(i.track_order?.tracking_url||"")?d` <a
752
1670
  target="${this.linksNewTab?"_blank":"_self"}"
753
1671
  href="${i.track_order?.tracking_url}"
754
1672
  class="mt-1 w-full rounded-xl bg-[#601feb] px-4 py-2 text-center text-sm font-medium text-white hover:opacity-90"
@@ -757,25 +1675,25 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
757
1675
  `})}
758
1676
  </div>
759
1677
  </div>
760
- `}};y(Wn,"properties",{orderDetails:{type:Object,attribute:"order-details"},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"}});customElements.get("mw-product-order-status-card")||customElements.define("mw-product-order-status-card",Wn);var Er,se,be,_r,$s,Zn=class{constructor(e,r){d(this,_r);d(this,Er);d(this,se);d(this,be);if(!e)throw new Error("host is required");if(!r)throw new Error("config is required");m(this,Er,e),a(this,Er).addController(this),m(this,se,r)}connect(e){m(this,se,e),m(this,be,g(this,_r,$s).call(this))}hostConnected(){setTimeout(()=>{m(this,be,g(this,_r,$s).call(this))},0)}hostDisconnected(){a(this,be)?.close(1e3,"lit_host_disconnected"),m(this,be,void 0)}send(e){a(this,be)?.send(e)}close(e,r){a(this,be)?.close(e,r)}get isConnected(){return a(this,be)?.readyState===WebSocket.OPEN}get isConnecting(){return a(this,be)?.readyState===WebSocket.CONNECTING}};Er=new WeakMap,se=new WeakMap,be=new WeakMap,_r=new WeakSet,$s=function(){let e=new WebSocket(a(this,se).url());return a(this,se).onClose&&(e.onclose=a(this,se).onClose),a(this,se).onOpen&&(e.onopen=a(this,se).onOpen),a(this,se).onError&&(e.onerror=a(this,se).onError),a(this,se).onMessage&&(e.onmessage=a(this,se).onMessage),e};var ll=Array.isArray;var Ss=t=>!!(t&&t.constructor&&t.call&&t.apply);var ul=t=>!(!t||!t.then||!Ss(t.then));function*cl(t,e,r=i=>i,n=1){let i=Ss(r)?r:()=>r,s=e?t:0,o=e??t;for(let u=s;u<=o&&(yield i(u),!(u+n>o));u+=n);}var _s=async(t,e)=>{let r=t?.times??3,n=t?.delay,i=t?.backoff??null;for(let s of cl(1,r)){let[o,u]=await As(e)(l=>{throw{_exited:l}});if(!o)return u;if(o._exited)throw o._exited;if(s===r)throw o;n&&await Es(n),i&&await Es(i(s))}},Es=t=>new Promise(e=>setTimeout(e,t)),As=t=>(...e)=>{try{let r=t(...e);return ul(r)?r.then(n=>[void 0,n]).catch(n=>[n,void 0]):[void 0,r]}catch(r){return[r,void 0]}};var pl="664df22d-d461-42d6-801e-f70247e2cd7c",B,K,te,Dt,Rt,me,z,Ee,fl,hl,dl,ml,Gn=class{constructor(e,r){d(this,z);d(this,B);d(this,K);d(this,te);y(this,"isStreaming",!1);y(this,"typingIndicator");y(this,"ranOutOfCredits",!1);y(this,"messages",[]);y(this,"conversationId","");d(this,Dt,0);d(this,Rt);y(this,"isLiveMode",!1);d(this,me,[]);m(this,B,e),m(this,K,r),m(this,te,this.initWS()),e.addController(this)}get hasQueuedMessages(){return a(this,me).length>0}async enqueueMessage(e,{expectStreaming:r=!1}={}){if(a(this,me).length>0){let n=a(this,me)[a(this,me).length-1];if(e.type==="USER_INPUT"&&n.message.type==="USER_INPUT"&&e.value===n.message.value)return!0}return a(this,te).isConnected?g(this,z,Ee).call(this,e,{expectStreaming:r}):(a(this,me).push({message:e,options:{expectStreaming:r}}),a(this,B).requestUpdate(),!a(this,te).isConnecting&&!a(this,te).isConnected&&this.retry(),await _s({times:5,delay:2e3},async()=>{if(a(this,te).isConnected){let n=[...a(this,me)];m(this,me,[]),a(this,B).requestUpdate();let i=!1;for(let{message:s,options:o}of n){let u=g(this,z,Ee).call(this,s,o);s===e&&(i=u)}return i}else throw new Error("WebSocket not connected yet")}).catch(()=>(console.warn("Failed to send message after retries",e),m(this,me,[]),a(this,B).requestUpdate(),!1)))}sendUserInput(e,{xUserData:r,xCustomInstructions:n,role:i="user",expectStreaming:s=!1}={}){return g(this,z,Ee).call(this,{type:"USER_INPUT",value:e,role:i,xUserData:r,xCustomInstructions:n},{expectStreaming:s})}async enqueueUserInput(e,{xUserData:r,xCustomInstructions:n,role:i="user",expectStreaming:s=!1}={}){return this.enqueueMessage({type:"USER_INPUT",value:e,role:i,xUserData:r,xCustomInstructions:n},{expectStreaming:s})}sendUserCancel(){return g(this,z,Ee).call(this,{type:"USER_CANCEL"})}sendUserTypingStart(){return g(this,z,Ee).call(this,{type:"USER_TYPING_START"})}sendUserTypingStop(){return g(this,z,Ee).call(this,{type:"USER_TYPING_STOP"})}sendUserMeta(e){return g(this,z,Ee).call(this,{type:"USER_META",metadata:e})}reloadConfig(){g(this,z,Ee).call(this,{type:"RELOAD_CONFIG"})}close(){a(this,te).close(1e3,"closed by user")}retry(){clearTimeout(a(this,Rt)),m(this,Rt,setTimeout(()=>{a(this,K).onReconnect?.(),m(this,te,this.initWS())},1e3*a(this,Dt))),io(this,Dt)._++}initWS(){return new Zn(a(this,B),{url:()=>a(this,K).url(this.conversationId,{}),onOpen:e=>g(this,z,fl).call(this,e),onMessage:e=>g(this,z,hl).call(this,JSON.parse(e.data)),onError:e=>g(this,z,dl).call(this,e),onClose:e=>g(this,z,ml).call(this,e)})}hostConnected(){this.conversationId=a(this,K).restoreConversationState?.()?.conversationId||"",this.messages=a(this,K).restoreConversationState?.()?.messages||[]}reset(){g(this,z,Ee).call(this,{type:"NEW_CHAT"}),a(this,K).onReset?.(),this.isStreaming=!1,this.typingIndicator=void 0,this.ranOutOfCredits=!1,this.messages=[],this.conversationId="",this.isLiveMode=!1,m(this,me,[]),a(this,B).requestUpdate()}hostDisconnected(){clearTimeout(a(this,Rt))}reconnectSocket(){a(this,te).close(1e3,"destroy"),m(this,te,this.initWS())}get lastMsg(){if(this.messages.length>0)return this.messages[this.messages.length-1]}};B=new WeakMap,K=new WeakMap,te=new WeakMap,Dt=new WeakMap,Rt=new WeakMap,me=new WeakMap,z=new WeakSet,Ee=function(e,{expectStreaming:r=!1}={}){return a(this,te).isConnecting?(console.warn("WebSocket is connecting, message not sent",e),!1):a(this,te).isConnected?(r&&!this.isLiveMode&&(this.isStreaming=!0,a(this,B).requestUpdate()),a(this,te).send(JSON.stringify(e)),!0):(console.warn("WebSocket is not connected, message not sent",e),this.retry(),!1)},fl=function(e){m(this,Dt,0)},hl=function(e){switch(e.type){case"NEW_MESSAGE":{this.messages=[...this.messages,{...e.message,streaming:!0}].filter((r,n,i)=>n===i.findIndex(s=>s.id===r.id)),this.typingIndicator=void 0,a(this,B).requestUpdate(),a(this,K).onNewMessage?.(e.message);break}case"APPEND_MESSAGE":{let r=this.messages.find(n=>n.id===e.message.id);if(r){switch(e.message.content_type){case"text":{let{part:n,delta:i,position:s}=e.message;r.content=r.content.slice(0,s)+i,r.parts||=[],r.parts[n]={text:r.parts[n]&&"text"in r.parts[n]?(r.parts[n].text||"").slice(0,s)+i:i};break}case"html":{let{part:n,delta:i,position:s}=e.message;r.parts||=[],r.parts[n]={html:r.parts[n]&&"html"in r.parts[n]?(r.parts[n].html||"").slice(0,s)+i:i};break}case"data":{let{part:n}=e.message;r.parts||=[],r.parts[n]={tag:e.message.tag,data:r.parts[n]&&"data"in r.parts[n]?Object.assign(r.parts[n].data||{},e.message.data):e.message.data};break}}e.metadata&&(r.metadata=e.metadata),a(this,K).onMessageAppend?.(e),a(this,B).requestUpdate()}else throw new Error(`Message with id ${e.message.id} not found`);break}case"MESSAGE_DONE":{let r=this.messages.find(n=>n.id===e.message.id);if(r)Object.assign(r,e.message),r.streaming=!1;else throw new Error(`Message with id ${e.message.id} not found`);this.isStreaming=!1,a(this,B).requestUpdate(),a(this,K).onMessageDone?.(e,r),a(this,K).persistConversationState?.(this.conversationId,this.messages);break}case"MESSAGE_CANCEL":{this.isStreaming=!1,this.typingIndicator=void 0,a(this,B).requestUpdate();break}case"ERROR":{a(this,K).onMessageError?.(e);break}case"CONNECTED":{this.conversationId=e.conversationId,this.messages=e.messages,a(this,K).onConnect?.(e.conversationId),a(this,K).persistConversationState?.(e.conversationId,e.messages),this.isLiveMode=e.metadata?.isLiveMode,a(this,B).requestUpdate();break}case"TYPING_START":{e.role==="assistant"&&(this.isStreaming=!0),this.typingIndicator={role:e.role,metadata:e.metadata},a(this,B).requestUpdate();break}case"TYPING_STOP":{this.typingIndicator=void 0,a(this,B).requestUpdate();break}case"RAN_OUT_OF_CREDITS":{this.messages.some(r=>r.id===pl)||this.messages.push({id:pl,role:"assistant",content:"Sorry, I've run out of credits. Please contact the shop directly.",timestamp:Date.now()}),this.ranOutOfCredits=!0,a(this,B).requestUpdate();break}case"RECONNECT":{this.reconnectSocket(),a(this,B).requestUpdate();break}default:console.warn(`Unknown message type: ${JSON.stringify(e)}`)}},dl=function(e){console.error("onError",e),a(this,K).onError?.(e)},ml=function(e){a(this,B).isConnected&&!a(this,te).isConnected&&e.reason==="reconnect"&&this.retry(),this.isStreaming=!1,this.typingIndicator=void 0,a(this,B).requestUpdate(),a(this,K).onClose?.()};var Ar=class extends Ct{constructor(e){if(super(e),this.it=E,e.type!==yn.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===E||e==null)return this._t=void 0,this.it=e;if(e===ye)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;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Ar.directiveName="unsafeHTML",Ar.resultType=1;var gl=vn(Ar);var Ms;function Is(t){return{lang:t?.lang??Ms?.lang,message:t?.message,abortEarly:t?.abortEarly??Ms?.abortEarly,abortPipeEarly:t?.abortPipeEarly??Ms?.abortPipeEarly}}var ip;function sp(t){return ip?.get(t)}var op;function ap(t){return op?.get(t)}var lp;function up(t,e){return lp?.get(t)?.get(e)}function vl(t){let e=typeof t;return e==="string"?`"${t}"`:e==="number"||e==="bigint"||e==="boolean"?`${t}`:e==="object"||e==="function"?(t&&Object.getPrototypeOf(t)?.constructor?.name)??"null":e}function le(t,e,r,n,i){let s=i&&"input"in i?i.input:r.value,o=i?.expected??t.expects??null,u=i?.received??vl(s),l={kind:t.kind,type:t.type,input:s,expected:o,received:u,message:`Invalid ${e}: ${o?`Expected ${o} but r`:"R"}eceived ${u}`,requirement:t.requirement,path:i?.path,issues:i?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},c=t.kind==="schema",f=i?.message??t.message??up(t.reference,l.lang)??(c?ap(l.lang):null)??n.message??sp(l.lang);f!==void 0&&(l.message=typeof f=="function"?f(l):f),c&&(r.typed=!1),r.issues?r.issues.push(l):r.issues=[l]}function ue(t){return{version:1,vendor:"valibot",validate(e){return t["~run"]({value:e},Is())}}}function cp(t,e){return Object.hasOwn(t,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}function wl(t,e){let r=[...new Set(t)];return r.length>1?`(${r.join(` ${e} `)})`:r[0]??"never"}var pp=class extends Error{constructor(t){super(t[0].message),this.name="ValiError",this.issues=t}};function Ls(t,e){return{kind:"validation",type:"max_length",reference:Ls,async:!1,expects:`<=${t}`,requirement:t,message:e,"~run"(r,n){return r.typed&&r.value.length>this.requirement&&le(this,"length",r,n,{received:`${r.value.length}`}),r}}}function Ts(t,e){return{kind:"validation",type:"min_length",reference:Ts,async:!1,expects:`>=${t}`,requirement:t,message:e,"~run"(r,n){return r.typed&&r.value.length<this.requirement&&le(this,"length",r,n,{received:`${r.value.length}`}),r}}}function fp(t,e,r){return typeof t.fallback=="function"?t.fallback(e,r):t.fallback}function bl(t,e,r){return typeof t.default=="function"?t.default(e,r):t.default}function Os(){return{kind:"schema",type:"any",reference:Os,expects:"any",async:!1,get"~standard"(){return ue(this)},"~run"(t){return t.typed=!0,t}}}function Pt(t,e){return{kind:"schema",type:"array",reference:Pt,expects:"Array",async:!1,item:t,message:e,get"~standard"(){return ue(this)},"~run"(r,n){let i=r.value;if(Array.isArray(i)){r.typed=!0,r.value=[];for(let s=0;s<i.length;s++){let o=i[s],u=this.item["~run"]({value:o},n);if(u.issues){let l={type:"array",origin:"value",input:i,key:s,value:o};for(let c of u.issues)c.path?c.path.unshift(l):c.path=[l],r.issues?.push(c);if(r.issues||(r.issues=u.issues),n.abortEarly){r.typed=!1;break}}u.typed||(r.typed=!1),r.value.push(u.value)}}else le(this,"type",r,n);return r}}}function js(t){return{kind:"schema",type:"boolean",reference:js,expects:"boolean",async:!1,message:t,get"~standard"(){return ue(this)},"~run"(e,r){return typeof e.value=="boolean"?e.typed=!0:le(this,"type",e,r),e}}}function Ds(t){return{kind:"schema",type:"null",reference:Ds,expects:"null",async:!1,message:t,get"~standard"(){return ue(this)},"~run"(e,r){return e.value===null?e.typed=!0:le(this,"type",e,r),e}}}function Jn(t){return{kind:"schema",type:"number",reference:Jn,expects:"number",async:!1,message:t,get"~standard"(){return ue(this)},"~run"(e,r){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:le(this,"type",e,r),e}}}function Oe(t,e){return{kind:"schema",type:"object",reference:Oe,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return ue(this)},"~run"(r,n){let i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(let s in this.entries){let o=this.entries[s];if(s in i||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){let u=s in i?i[s]:bl(o),l=o["~run"]({value:u},n);if(l.issues){let c={type:"object",origin:"value",input:i,key:s,value:u};for(let f of l.issues)f.path?f.path.unshift(c):f.path=[c],r.issues?.push(f);if(r.issues||(r.issues=l.issues),n.abortEarly){r.typed=!1;break}}l.typed||(r.typed=!1),r.value[s]=l.value}else if(o.fallback!==void 0)r.value[s]=fp(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(le(this,"key",r,n,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:i,key:s,value:i[s]}]}),n.abortEarly))break}}else le(this,"type",r,n);return r}}}function Ut(t,e){return{kind:"schema",type:"optional",reference:Ut,expects:`(${t.expects} | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return ue(this)},"~run"(r,n){return r.value===void 0&&(this.default!==void 0&&(r.value=bl(this,r,n)),r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,n)}}}function Rs(t,e){return{kind:"schema",type:"picklist",reference:Rs,expects:wl(t.map(vl),"|"),async:!1,options:t,message:e,get"~standard"(){return ue(this)},"~run"(r,n){return this.options.includes(r.value)?r.typed=!0:le(this,"type",r,n),r}}}function Xn(t,e,r){return{kind:"schema",type:"record",reference:Xn,expects:"Object",async:!1,key:t,value:e,message:r,get"~standard"(){return ue(this)},"~run"(n,i){let s=n.value;if(s&&typeof s=="object"){n.typed=!0,n.value={};for(let o in s)if(cp(s,o)){let u=s[o],l=this.key["~run"]({value:o},i);if(l.issues){let f={type:"object",origin:"key",input:s,key:o,value:u};for(let p of l.issues)p.path=[f],n.issues?.push(p);if(n.issues||(n.issues=l.issues),i.abortEarly){n.typed=!1;break}}let c=this.value["~run"]({value:u},i);if(c.issues){let f={type:"object",origin:"value",input:s,key:o,value:u};for(let p of c.issues)p.path?p.path.unshift(f):p.path=[f],n.issues?.push(p);if(n.issues||(n.issues=c.issues),i.abortEarly){n.typed=!1;break}}(!l.typed||!c.typed)&&(n.typed=!1),l.typed&&(n.value[l.value]=c.value)}}else le(this,"type",n,i);return n}}}function W(t){return{kind:"schema",type:"string",reference:W,expects:"string",async:!1,message:t,get"~standard"(){return ue(this)},"~run"(e,r){return typeof e.value=="string"?e.typed=!0:le(this,"type",e,r),e}}}function yl(t){let e;if(t)for(let r of t)e?e.push(...r.issues):e=r.issues;return e}function Vt(t,e){return{kind:"schema",type:"union",reference:Vt,expects:wl(t.map(r=>r.expects),"|"),async:!1,options:t,message:e,get"~standard"(){return ue(this)},"~run"(r,n){let i,s,o;for(let u of this.options){let l=u["~run"]({value:r.value},n);if(l.typed)if(l.issues)s?s.push(l):s=[l];else{i=l;break}else o?o.push(l):o=[l]}if(i)return i;if(s){if(s.length===1)return s[0];le(this,"type",r,n,{issues:yl(s)}),r.typed=!0}else{if(o?.length===1)return o[0];le(this,"type",r,n,{issues:yl(o)})}return r}}}function xl(t,e,r){let n=t["~run"]({value:e},Is(r));if(n.issues)throw new pp(n.issues);return n.value}function kl(t,e){let r={};for(let n in t.entries)r[n]=!e||e.includes(n)?Ut(t.entries[n]):t.entries[n];return{...t,entries:r,get"~standard"(){return ue(this)}}}function Cl(...t){return{...t[0],pipe:t,get"~standard"(){return ue(this)},"~run"(e,r){for(let n of t)if(n.kind!=="metadata"){if(e.issues&&(n.kind==="schema"||n.kind==="transformation")){e.typed=!1;break}(!e.issues||!r.abortEarly&&!r.abortPipeEarly)&&(e=n["~run"](e,r))}return e}}}function Mr(t,e,r){let n=t["~run"]({value:e},Is(r));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}var $l=kl(Oe({name:W(),description:W(),price:W(),image_url:Vt([W(),Pt(W())]),category:W(),url:W()}));function Sl(t,e,r,{imagesByProductUrl:n,linksNewTab:i=!0,searchParams:s,messageIsStreaming:o=!1}){if(!t)return h``;let u=e>0&&r[e-1]&&"data"in r[e-1],l=e<r.length-1||!o;if("text"in t)return h`<p>${t.text}</p>`;if("html"in t)return h`${gl(t.html)}`;if("data"in t)switch(t.tag){case"product-card":case"product-card-v1":case"product-card-horizontal":{let c=Mr($l,t.data);if(c.success){let f={...c.output,images:[]};return f.images=jt(f.image_url),h`
761
- ${u?h`<div class="my-3 w-full border-t border-gray-200/50"></div>`:null}
1678
+ `}};g(Li,"properties",{orderDetails:{type:Object,attribute:"order-details"},streaming:{type:Boolean},linksNewTab:{type:Boolean,attribute:"links-new-tab"}});customElements.get("mw-product-order-status-card")||customElements.define("mw-product-order-status-card",Li);var sn=class extends Zt{constructor(t){if(super(t),this.it=M,t.type!==si.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===M||t==null)return this._t=void 0,this.it=t;if(t===ve)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};sn.directiveName="unsafeHTML",sn.resultType=1;var Hu=oi(sn);var Fu=Ga(Le({name:J(),description:J(),price:J(),image_url:Ht([J(),Bt(J())]),category:J(),url:J()}));function qu(e,t,r,{imagesByProductUrl:n,linksNewTab:i=!0,searchParams:s,messageIsStreaming:o=!1}){if(!e)return d``;let u=t>0&&r[t-1]&&"data"in r[t-1],l=t<r.length-1||!o;if("text"in e)return d`<p>${e.text}</p>`;if("html"in e)return d`${Hu(e.html)}`;if("data"in e)switch(e.tag){case"product-card":case"product-card-v1":case"product-card-horizontal":{let c=Lr(Fu,e.data);if(c.success){let p={...c.output,images:[]};return p.images=ir(p.image_url),d`
1679
+ ${u?d`<div class="my-3 w-full border-t border-gray-200/50"></div>`:null}
762
1680
  <mw-product-card-horizontal
763
- product="${JSON.stringify(f)}"
1681
+ product="${JSON.stringify(p)}"
764
1682
  ?streaming="${!l}"
765
1683
  ?links-new-tab="${i}"
766
1684
  .searchParams="${s}"
767
1685
  .imagesByProductUrl="${n}"></mw-product-card-horizontal>
768
- `}console.warn(c.issues);break}case"order-status-card-v1":return h`<mw-product-order-status-card order-details="${JSON.stringify(t.data)}" ?streaming="${!l}" ?links-new-tab="${i}"></mw-product-order-status-card> `}return console.warn("could not render part:",t),h`<p><i>data type not supported</i></p>`}var Ir,Nt,qe,ut,Qn,El,Yn=class{constructor(e,r,{timeoutMs:n=2e3}={}){d(this,Qn);d(this,Ir);d(this,Nt);d(this,qe);d(this,ut,!1);y(this,"timeoutMs");m(this,Ir,e),m(this,Nt,r),this.timeoutMs=n,e.addController(this)}get isTyping(){return a(this,ut)}hostDisconnected(){clearTimeout(a(this,qe)),m(this,qe,void 0)}onInput(e){if(a(this,Ir).isConnected){if(!e.trim()){this.typingStopped();return}clearTimeout(a(this,qe)),m(this,qe,setTimeout(()=>this.typingStopped(),this.timeoutMs)),a(this,ut)||g(this,Qn,El).call(this)}}typingStopped(){clearTimeout(a(this,qe)),m(this,ut,!1),a(this,Nt).typingStopped()}};Ir=new WeakMap,Nt=new WeakMap,qe=new WeakMap,ut=new WeakMap,Qn=new WeakSet,El=function(){m(this,ut,!0),a(this,Nt).typingStarted()};function _l(t,e="en-US"){let r=new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric"}).format(t);return`${t.toLocaleDateString(e,{year:"numeric",month:"short",day:"numeric"})}, ${r}`}var Al=()=>{if(window.Shopify)try{return{customerId:hp()}}catch{return null}return null},hp=()=>{try{let t=[()=>window.ShopifyAnalytics?.meta?.page?.customerId,()=>window.meta?.page?.customerId,()=>window._st?.cid,()=>window.ShopifyAnalytics?.lib?.user()?.traits()?.uniqToken];for(let e of t)try{let r=e();if(/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(r))continue;if(r)return r}catch{}}catch{return null}return null},Ml=async()=>{try{return(await(await fetch(window.Shopify.routes.root+"cart.js")).json()).items.map(n=>({id:n.id,name:n.title,quantity:n.quantity,price:n.price,variantId:n.variant_id,sku:n.sku,url:n.url,description:n.product_description,image:n.featured_image?.url}))}catch{return[]}};var Il=()=>{if(window.ShopRenter)try{let t=mp();return{customerEmail:t?.customerEmail,customerId:t?.customerId,customerName:t?.customerName}}catch{return null}return null},mp=()=>{try{if(window.ShopRenter){let t=window.ShopRenter.customer;return{customerEmail:t?.email,customerId:t?.userId,customerName:[t?.name?.firstName,t?.name?.lastName].filter(Boolean).join(" ")}}return{customerEmail:null,customerId:null,customerName:null}}catch{return{customerEmail:null,customerId:null,customerName:null}}},Ll=async()=>{try{let t=window.ShopRenter.shop?.domain;if(!t)return[];let e=ka(t,"https")+"/cart.json";return(await(await fetch(e)).json()).items.map(s=>({id:s.id,name:s.name,quantity:s.quantity,price:s.price,sku:s.sku,image:s.image,url:s.href}))}catch{return[]}};var Tl=()=>{if(window.UNAS)try{let t=window.UNAS.customer;return{customerEmail:t?.email,customerId:t?.id}}catch(t){return console.error("Error fetching customer information:",t),null}return null},Ol=async()=>new Promise((t,e)=>{try{window.UNAS.getCart(r=>{let i=r.items.map(s=>({id:s.id,name:s.name,quantity:s.quantity,price:s.price,sku:s.sku}));t(i)})}catch(r){console.error("Error fetching cart information:",r),e(r)}});var jl=Xn(W(),Vt([W(),Jn(),js(),Ds()])),Dl=Cl(W(),Ts(1),Ls(5e3)),Rl=()=>{try{return window.UNAS?Tl():window.Shopify?Al():window.ShopRenter?Il():null}catch{return null}},Pl=async()=>{try{return window.UNAS?await Ol():window.Shopify?await Ml():window.ShopRenter?await Ll():[]}catch{return[]}},Ft={schema:Oe({conversationId:Ut(W()),messages:Ut(Pt(Oe({id:W(),timestamp:Jn(),role:Rs(["user","assistant","support"]),content:W(),parts:Ut(Pt(Vt([Oe({text:W()}),Oe({html:W()}),Oe({tag:W(),data:Xn(W(),Os())})])))})))}),getStorageKey(t){if(!t)throw new Error("widgetId is not set");return`_molin_${t}`},persist(t,e,r){let n=this.getStorageKey(t);localStorage.setItem(n,JSON.stringify({conversationId:e,messages:r}))},restore(t){try{let e=this.getStorageKey(t),r=JSON.parse(localStorage.getItem(e)||"{}"),n=xl(this.schema,r);return{conversationId:n.conversationId||"",messages:n.messages||[]}}catch(e){return console.error("Failed to restore conversation state:",e),{conversationId:"",messages:[]}}},reset(t){let e=this.getStorageKey(t);localStorage.removeItem(e)}};var vp=!0,Ps="Invariant failed";function Ul(t,e){if(!t){if(vp)throw new Error(Ps);var r=typeof e=="function"?e():e,n=r?"".concat(Ps,": ").concat(r):Ps;throw new Error(n)}}var wp="\xB7 \xB7 \xB7",je,De,D,Vs,Or,ct,P,jr,Vl,Nl,Fl,Hl,ql,Bl,zl,Wl,ei,Lr,ti=class ti extends _(S){constructor(){super();d(this,D);d(this,je);d(this,De);d(this,Or,new Yn(this,{typingStarted:()=>a(this,P).sendUserTypingStart(),typingStopped:()=>a(this,P).sendUserTypingStop()}));d(this,ct,!1);d(this,P,new Gn(this,{url:r=>{let n=new URL(this.config.wsApiUrl);return n.searchParams.set("widgetId",this.widgetId),n.searchParams.set("conversationId",r),n.searchParams.set("pageUrl",window.location.href),n},onReconnect:()=>{},onError:r=>{console.error("ws error",r)},onClose:()=>{},onNewMessage:r=>{m(this,ct,!1),r.role==="user"&&a(this,D,ei)?.scrollTo(0,a(this,D,ei).scrollHeight),r.role==="assistant"&&this.callbacks.onNewMessageStartedStreaming?.({widgetId:this.widgetId,message:r,conversationId:this.conversationId})},onMessageAppend:r=>{let n=a(this,D,ei);if(!n)return;let i=a(this,P).lastMsg;!i||i.role!=="assistant"||requestAnimationFrame(()=>{let s=n.querySelector(`[data-id="${i.id}"]`);if(!s)return;let o=s.offsetHeight,u=n.getClientRects()[0].height-70;o>u&&!a(this,ct)&&(n.scrollTop=s.offsetTop-80)})},onMessageDone:(r,n)=>{m(this,ct,!1),n.role==="assistant"&&this.callbacks.onMessageEndedStreaming?.({widgetId:this.widgetId,text:n.content??"",message:n,usage_TOKENS_COMPLETION:r.message.usage.TOKENS_COMPLETION,conversationId:this.conversationId})},onMessageError:r=>{console.error("ws message error",r),r.message&&this.callbacks.onError?.({widgetId:this.widgetId,error:"WS: "+r.message})},onReset:()=>{Ft.reset(this.widgetId)},onConnect:r=>{let n=Rl();a(this,P).sendUserMeta({xUserData:a(this,je),xCustomInstructions:a(this,De),customerInformation:n,language:window.navigator.language,cart:[]}),Pl().then(i=>{i?.length>0&&a(this,P).sendUserMeta({xUserData:a(this,je),xCustomInstructions:a(this,De),customerInformation:n,cart:i,language:window.navigator.language})}).catch(i=>{console.error(i)})},persistConversationState:(r,n)=>{Ft.persist(this.widgetId,r,n)},restoreConversationState:()=>Ft.restore(this.widgetId)}));d(this,jr,"single");this.widgetId="",this.config={},this.callbacks={},this.showClose=!1,this.xUserData={},this.xCustomInstructions=""}get conversationId(){return a(this,P).conversationId}get messages(){return a(this,P).messages}firstUpdated(){g(this,D,Vs).call(this)}updated(){g(this,D,Vs).call(this)}get isLiveChatMode(){return a(this,P).isLiveMode}render(){Ul(this.config,"config is required");let r=ol(this.messages,n=>{try{let i=new Date(n.timestamp),s=Math.floor(i.getUTCMinutes()/5)*5;return i.setUTCMinutes(s,0,0),i.valueOf().toString()}catch(i){console.error(i)}});return h`
1686
+ `}console.warn(c.issues);break}case"order-status-card-v1":return d`<mw-product-order-status-card order-details="${JSON.stringify(e.data)}" ?streaming="${!l}" ?links-new-tab="${i}"></mw-product-order-status-card> `}return console.warn("could not render part:",e),d`<p><i>data type not supported</i></p>`}var on,sr,We,yt,Pi,zu,Di=class{constructor(t,r,{timeoutMs:n=2e3}={}){f(this,Pi);f(this,on);f(this,sr);f(this,We);f(this,yt,!1);g(this,"timeoutMs");m(this,on,t),m(this,sr,r),this.timeoutMs=n,t.addController(this)}get isTyping(){return a(this,yt)}hostDisconnected(){clearTimeout(a(this,We)),m(this,We,void 0)}onInput(t){if(a(this,on).isConnected){if(!t.trim()){this.typingStopped();return}clearTimeout(a(this,We)),m(this,We,setTimeout(()=>this.typingStopped(),this.timeoutMs)),a(this,yt)||y(this,Pi,zu).call(this)}}typingStopped(){clearTimeout(a(this,We)),m(this,yt,!1),a(this,sr).typingStopped()}};on=new WeakMap,sr=new WeakMap,We=new WeakMap,yt=new WeakMap,Pi=new WeakSet,zu=function(){m(this,yt,!0),a(this,sr).typingStarted()};function Wu(e,t="en-US"){let r=new Intl.DateTimeFormat(t,{hour:"numeric",minute:"numeric"}).format(e);return`${e.toLocaleDateString(t,{year:"numeric",month:"short",day:"numeric"})}, ${r}`}var D1=!0,Mo="Invariant failed";function wt(e,t){if(!e){if(D1)throw new Error(Mo);var r=typeof t=="function"?t():t,n=r?"".concat(Mo,": ").concat(r):Mo;throw new Error(n)}}var P1="\xB7 \xB7 \xB7",L,un,cn,z,Zu,Gu,Ju,Ku,Xu,Yu,Qu,R1,an,Ri=class Ri extends I(_){constructor(){super();f(this,z);f(this,L,tl(this));f(this,un,new Di(this,{typingStarted:()=>a(this,L).value?.sendUserTypingStart(),typingStopped:()=>a(this,L).value?.sendUserTypingStop()}));f(this,cn,"single");this.showClose=!1}get conversationId(){return a(this,L).value?.conversationId||""}get messages(){return a(this,L).value?.messages||[]}get config(){return a(this,L).value?.config}get callbacks(){return a(this,L).value?.callbacks||{}}get widgetId(){return a(this,L).value?.widgetId||""}get typingIndicator(){return a(this,L).value?.typingIndicator}get isStreaming(){return a(this,L).value?.isStreaming}get ranOutOfCredits(){return a(this,L).value?.ranOutOfCredits}get isLiveMode(){return a(this,L).value?.isLiveMode}get lastMsg(){return a(this,L).value?.lastMsg}get hasQueuedMessages(){return a(this,L).value?.hasQueuedMessages}render(){wt(this.config,"config is required");let r=Bu(this.messages,n=>{try{let i=new Date(n.timestamp),s=Math.floor(i.getUTCMinutes()/5)*5;return i.setUTCMinutes(s,0,0),i.valueOf().toString()}catch(i){console.error(i)}});return d`
769
1687
  <div class="relative mx-auto h-full bg-[#FDFDFD] font-sans text-base before:absolute before:inset-0 before:bg-[#8d8d8d] before:opacity-10 sm:rounded-[36px] sm:p-1.5 sm:before:rounded-[36px]">
770
1688
  <div
771
1689
  class="relative flex h-full flex-col bg-white shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25),-116px_177px_59px_0px_rgba(0,0,0,0.00),-74px_113px_54px_0px_rgba(0,0,0,0.01),-42px_64px_46px_0px_rgba(0,0,0,0.03),-19px_28px_34px_0px_rgba(0,0,0,0.06)] sm:rounded-[30px]">
772
1690
  <mw-chat-header
773
1691
  class="absolute left-1.5 right-1.5 top-1.5"
774
1692
  .content="${{logoUrl:this.config.logoUrl,title:this.config.title,color:this.config.color}}"
775
- ?show-new-chat="${!a(this,P).isLiveMode&&this.messages.length>0}"
1693
+ ?show-new-chat="${!this.isLiveMode&&this.messages.length>0}"
776
1694
  ?show-close="${this.showClose}"
777
- @mw:new-chat-click="${g(this,D,zl)}"
778
- @mw:close-click="${g(this,D,Wl)}">
1695
+ @mw:new-chat-click="${y(this,z,Yu)}"
1696
+ @mw:close-click="${y(this,z,Qu)}">
779
1697
  </mw-chat-header>
780
1698
 
781
1699
  <!-- used by the dashboard to inject content -->
@@ -784,8 +1702,8 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
784
1702
  </div>
785
1703
 
786
1704
  <!-- this structure of 2 divs is required for the browser native stick/scroll to bottom -->
787
- <div id="scrollable-content" class="mt-6 flex h-full flex-shrink flex-grow flex-col-reverse overflow-auto" @scroll="${g(this,D,Vl)}">
788
- ${this.config?.showStillLearningBanner?h`
1705
+ <div id="scrollable-content" class="mt-6 flex h-full flex-shrink flex-grow flex-col-reverse overflow-auto">
1706
+ ${this.config?.showStillLearningBanner?d`
789
1707
  <div class="flex justify-center">
790
1708
  <div class="mb-2 flex max-w-[70%] select-none items-center justify-center rounded-full bg-black px-3 py-2">
791
1709
  <!-- (i) symbol -->
@@ -800,7 +1718,7 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
800
1718
  <span class="ml-1 text-xs text-white">I'm still learning!</span>
801
1719
  </div>
802
1720
  </div>
803
- `:h`
1721
+ `:d`
804
1722
  <!-- this makes the chat stick to bottom when the banner is hidden -->
805
1723
  <div class="flex p-1"></div>
806
1724
  `}
@@ -808,20 +1726,20 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
808
1726
  <!-- the padding at the top makes empty room at the top when scrolling and content is hidden behind header -->
809
1727
  <!-- this is the 2nd (inner) div that will natively stick/scroll to bottom -->
810
1728
  <div class="${this.messages.length>0?"pt-20":""}">
811
- ${we(Array.from(r),([n])=>n,([n,i])=>h`
812
- <div class="my-2 text-center text-xs text-gray-500">${_l(new Date(Number(n)),window.navigator.language)}</div>
813
- ${we(i??[],s=>s.id,(s,o)=>{let l=i[o+1]?.role===s.role,f=(o>0?i[o-1]:void 0)?.role===s.role,b=(i.length>0?i[i.length-1]:void 0)?.id===s.id;m(this,jr,b&&!f&&!l?"single-current":!f&&!l?"single":!f&&l?"first":b&&f&&!l?"last-current":f&&!l?"last":f&&l?"middle":"single");let k=a(this,P).isLiveMode&&s.role==="user"&&s.id===a(this,P).lastMsg?.id?"sent":"";return h`
1729
+ ${Ce(Array.from(r),([n])=>n,([n,i])=>d`
1730
+ <div class="my-2 text-center text-xs text-gray-500">${Wu(new Date(Number(n)),window.navigator.language)}</div>
1731
+ ${Ce(i??[],s=>s.id,(s,o)=>{let l=i[o+1]?.role===s.role,p=(o>0?i[o-1]:void 0)?.role===s.role,v=(i.length>0?i[i.length-1]:void 0)?.id===s.id;m(this,cn,v&&!p&&!l?"single-current":!p&&!l?"single":!p&&l?"first":v&&p&&!l?"last-current":p&&!l?"last":p&&l?"middle":"single");let $=this.isLiveMode&&s.role==="user"&&s.id===this.lastMsg?.id?"sent":"";return d`
814
1732
  <div data-id="${s.id}" class="${l?"mb-[2px]":"mb-3"} mx-2 flex-row">
815
1733
  <mw-chat-message
816
- color="${this.config.color}"
817
- status="${k}"
818
- logo="${s.metadata?.avatar||this.config.logoUrl}"
1734
+ .color="${this.config?.color}"
1735
+ status="${$}"
1736
+ logo="${s.metadata?.avatar||this.config?.logoUrl}"
819
1737
  side="${s.role}"
820
- position=${a(this,jr)}
821
- @click="${g(this,D,Nl)}">
1738
+ position=${a(this,cn)}
1739
+ @click="${y(this,z,Zu)}">
822
1740
  <div
823
1741
  class="prose prose-h1:first:mt-0 prose-h2:first:mt-0 prose-h3:first:mt-0 prose-h4:first:mt-0 prose-h1:last:mb-0 prose-h2:last:mb-0 prose-h3:last:mb-0 prose-h4:last:mb-0 prose-h1:mt-5 prose-h2:mt-5 prose-h3:mt-5 prose-h4:mt-5 prose-h1:mb-2 prose-h2:mb-2 prose-h3:mb-2 prose-h4:mb-2 prose-h1:text-xl prose-h1:text-bold prose-h2:text-lg prose-h2:text-bold prose-h3:text-base prose-h3:text-bold prose-h4:text-sm prose-h4:text-bold break-words text-inherit">
824
- ${s.content===wp?h`<mw-loading class="-mx-2 block h-8 max-h-[24px] w-8 fill-[${this.config.color}]"></mw-loading>`:s.parts?we(s.parts,(A,I)=>I,(A,I)=>Sl(A,I,s.parts??[],{imagesByProductUrl:s.metadata?.imagesByProductUrl,linksNewTab:this.config.linksNewTab??!0,searchParams:this.config.disableUtmInjection?void 0:new URLSearchParams({utm_source:"molin.ai",utm_medium:"chat",utm_campaign:"general"}),messageIsStreaming:s.streaming})):h`<p>${s.content}</p>`}
1742
+ ${s.content===P1?d`<mw-loading class="-mx-2 block h-8 max-h-[24px] w-8 fill-[${this.config?.color}]"></mw-loading>`:s.parts?Ce(s.parts,(j,C)=>C,(j,C)=>qu(j,C,s.parts??[],{imagesByProductUrl:s.metadata?.imagesByProductUrl,linksNewTab:this.config?.linksNewTab??!0,searchParams:this.config?.disableUtmInjection?void 0:new URLSearchParams({utm_source:"molin.ai",utm_medium:"chat",utm_campaign:"general"}),messageIsStreaming:s.streaming})):d`<p>${s.content}</p>`}
825
1743
  </div>
826
1744
  </mw-chat-message>
827
1745
  </div>
@@ -829,39 +1747,35 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
829
1747
  `)}
830
1748
 
831
1749
  <!-- show typing indicator if the non-user side is typing -->
832
- ${["assistant","support"].includes(a(this,P)?.typingIndicator?.role??"")&&a(this,P)?.typingIndicator?.role?h`
833
- <mw-chat-message
834
- class="mx-2 mb-3 block"
835
- color="${this.config.color}"
836
- logo="${a(this,P)?.typingIndicator?.metadata?.avatar||this.config.logoUrl}"
837
- side="${a(this,P).typingIndicator.role}">
1750
+ ${["assistant","support"].includes(this.typingIndicator?.role??"")&&this.typingIndicator?.role?d`
1751
+ <mw-chat-message class="mx-2 mb-3 block" color="${this.config?.color}" logo="${this.typingIndicator?.metadata?.avatar||this.config?.logoUrl}" side="${this.typingIndicator.role}">
838
1752
  <div
839
1753
  class="prose prose-h1:first:mt-0 prose-h2:first:mt-0 prose-h3:first:mt-0 prose-h4:first:mt-0 prose-h1:last:mb-0 prose-h2:last:mb-0 prose-h3:last:mb-0 prose-h4:last:mb-0 prose-h1:mt-5 prose-h2:mt-5 prose-h3:mt-5 prose-h4:mt-5 prose-h1:mb-2 prose-h2:mb-2 prose-h3:mb-2 prose-h4:mb-2 prose-h1:text-xl prose-h1:text-bold prose-h2:text-lg prose-h2:text-bold prose-h3:text-base prose-h3:text-bold prose-h4:text-sm prose-h4:text-bold break-words text-inherit">
840
1754
  <mw-loading class="-mx-2 block h-8 max-h-[24px] w-8 fill-[${this.config.color}]"></mw-loading>
841
1755
  </div>
842
1756
  </mw-chat-message>
843
- `:E}
1757
+ `:M}
844
1758
  </div>
845
1759
 
846
1760
  <mw-chat-background
847
1761
  class="flex-grow"
848
1762
  .examples="${this.messages.length>0?[]:this.config.examples}"
849
1763
  color="${this.config.color}"
850
- @mw:example-click="${g(this,D,Fl)}"></mw-chat-background>
1764
+ @mw:example-click="${y(this,z,Gu)}"></mw-chat-background>
851
1765
  </div>
852
1766
 
853
1767
  <div class="m-1.5 flex-shrink-0 flex-grow-0 space-y-2 rounded-3xl bg-[#eeedf1] p-1.5">
854
1768
  <mw-chat-input
855
- @mw:change="${g(this,D,ql)}"
856
- @mw:submit="${g(this,D,Hl)}"
857
- @mw:cancel="${g(this,D,Bl)}"
1769
+ @mw:change="${y(this,z,Ku)}"
1770
+ @mw:submit="${y(this,z,Ju)}"
1771
+ @mw:cancel="${y(this,z,Xu)}"
858
1772
  placeholder="${this.config.input?.placeholder}"
859
- ?disabled="${a(this,P).ranOutOfCredits||a(this,P)?.hasQueuedMessages}"
860
- ?streaming="${a(this,P)?.isStreaming??!0}"
861
- ?loading="${a(this,P)?.hasQueuedMessages}">
1773
+ ?disabled="${this.ranOutOfCredits||this.hasQueuedMessages}"
1774
+ ?streaming="${this.isStreaming??!0}"
1775
+ ?loading="${this.hasQueuedMessages}">
862
1776
  </mw-chat-input>
863
1777
 
864
- ${this.config.removePoweredBy?E:h`
1778
+ ${this.config.removePoweredBy?M:d`
865
1779
  <!-- spacing between input box and powered-by or bottom -->
866
1780
  <div class="h-4">
867
1781
  <mw-powered-by></mw-powered-by>
@@ -870,40 +1784,13 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
870
1784
  </div>
871
1785
  </div>
872
1786
  </div>
873
- `}reloadConfig(){a(this,P).reloadConfig(),this.requestUpdate()}async sendMessage(r){if(!r||typeof r!="string")return console.warn("sendMessage requires a valid string message"),!1;let n=await a(this,P).enqueueUserInput(r,{xUserData:a(this,je),xCustomInstructions:a(this,De),role:"user",expectStreaming:!0});return n&&a(this,D,Lr)?.setValue(""),n}setInputValue(r){if(!r||typeof r!="string"){console.warn("setInputValue requires a valid string value");return}let n=a(this,D,Lr);if(!n){console.warn("input element not found, cannot set value");return}n.setValue?n.setValue(r):console.warn("input element does not have setValue method")}reset(){a(this,P).reset()}};je=new WeakMap,De=new WeakMap,D=new WeakSet,Vs=function(){function r(i){if(!i)return;let s;try{s=typeof i=="object"?i:JSON.parse(i)}catch(u){console.error("Molin: user-data is not valid JSON",u);return}if(!s||typeof s!="object"||Object.keys(s).length===0)return;let o=Mr(jl,s);if(!o.success){console.error("Molin: user-data does not pass schema validation",o.issues);return}return o.output}function n(i){if(!i)return;let s=Mr(Dl,i);if(!s.success){console.error("Molin: custom-instructions does not pass schema validation",s.issues);return}return s.output}m(this,je,r(this.xUserData)),m(this,De,n(this.xCustomInstructions))},Or=new WeakMap,ct=new WeakMap,P=new WeakMap,jr=new WeakMap,Vl=function(){m(this,ct,!0)},Nl=function(r){let n=r.target;if(n instanceof HTMLAnchorElement){if(r.preventDefault(),this.callbacks.onUserClickedLink?.({widgetId:this.widgetId,url:n.href,conversationId:this.conversationId}),window.self!==window.top){window.open(n.href,"_blank");return}let s=this.config.linksNewTab?"_blank":"_self";window.open(n.href,n.target||s)}},Fl=function(r){r.preventDefault();let n=r.detail.example;a(this,P).enqueueUserInput(n,{xUserData:a(this,je),xCustomInstructions:a(this,De)}).then(i=>{i&&(a(this,D,Lr)?.setValue(""),this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:n,example:!0,conversationId:this.conversationId}))}).catch(console.warn)},Hl=function(r){r.preventDefault();let n=r.detail;a(this,P).enqueueUserInput(n,{xUserData:a(this,je),xCustomInstructions:a(this,De)}).then(i=>{i&&(a(this,D,Lr)?.setValue(""),a(this,Or).typingStopped(),this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:n,example:!1,conversationId:this.conversationId}))}).catch(console.warn)},ql=function(r){a(this,Or).onInput(r.detail.full)},Bl=function(){a(this,P)?.sendUserCancel(),this.callbacks.onUserCanceledStreaming?.({widgetId:this.widgetId})},zl=function(){a(this,P).reset()},Wl=function(){this.dispatchEvent(new ti.CloseClickEvent)},ei=function(){return this.renderRoot.querySelector("#scrollable-content")},Lr=function(){return this.renderRoot.querySelector("mw-chat-input")},y(ti,"properties",{widgetId:{type:String,attribute:"widget"},config:{type:Object,attribute:!1},callbacks:{type:Object,attribute:!1},showClose:{type:Boolean,attribute:"show-close"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1}});var Tr=ti,Us;Tr.CloseClickEvent=(Us=class extends CustomEvent{constructor(e={}){super(Tr.CloseClickEvent.type,{...e})}},y(Us,"type","mw:close-click"),Us);customElements.get("mw-chat")||customElements.define("mw-chat",Tr);var Dr=class extends _(S){constructor(){super(),this.color="#601feb",this.radius="16.8576px",this.size="320px",this.border="#d1d5db"}render(){return h`
874
- <div class="flex flex-row flex-wrap gap-0">
875
- <div class="relative z-0 flex min-h-9 items-center justify-center overflow-hidden rounded-[${this.radius}]">
876
- <!-- Spinning gradient background -->
877
- <div
878
- class="absolute z-[-2] m-auto h-[${this.size}] w-[${this.size}] animate-[spin-slow_4s_linear_infinite] bg-[${this.border}] bg-cover bg-[0_0] bg-no-repeat"
879
- style="background-image: conic-gradient(transparent, ${this.color}, transparent 30%);"></div>
880
- <!-- White background with 1px border space for gradient -->
881
- <div class="absolute left-[1px] top-[1px] z-[-1] h-[calc(100%_-_2px)] w-[calc(100%_-_2px)] rounded-[${this.radius}] bg-white"></div>
882
- <slot></slot>
883
- </div>
884
- </div>
885
- `}};y(Dr,"properties",{color:{type:String},radius:{type:String},size:{type:String},border:{type:String}}),y(Dr,"styles",re`
886
- :host {
887
- display: block;
888
- }
889
- .spin-slow {
890
- animation: spin-slow 4s linear infinite;
891
- }
892
- @keyframes spin-slow {
893
- from {
894
- transform: rotate(0deg);
895
- }
896
- to {
897
- transform: rotate(360deg);
898
- }
899
- }
900
- `);customElements.get("mw-spinning-border")||customElements.define("mw-spinning-border",Dr);var qt,Zl,Gl,Ht=class Ht extends _(S){constructor(){super();d(this,qt);y(this,"render",()=>h`
1787
+ `}reloadConfig(){a(this,L).value?.reloadConfig(),this.requestUpdate()}async sendMessage(r){if(wt(a(this,L).value,"widget context is required"),!r||typeof r!="string")return console.warn("sendMessage requires a valid string message"),!1;let n=await a(this,L).value.enqueueUserInput(r,{xUserData:a(this,L).value?.xUserData,xCustomInstructions:a(this,L).value?.xCustomInstructions,role:"user",expectStreaming:!0});return n&&a(this,z,an)?.setValue(""),n??!1}setInputValue(r){if(!r||typeof r!="string"){console.warn("setInputValue requires a valid string value");return}let n=a(this,z,an);if(!n){console.warn("input element not found, cannot set value");return}n.setValue?n.setValue(r):console.warn("input element does not have setValue method")}reset(){a(this,L).value?.reset()}};L=new WeakMap,un=new WeakMap,cn=new WeakMap,z=new WeakSet,Zu=function(r){let i=r.composedPath().find(s=>s instanceof HTMLAnchorElement);if(i){if(r.preventDefault(),this.callbacks.onUserClickedLink?.({widgetId:this.widgetId,url:i.href,conversationId:this.conversationId}),window.self!==window.top){window.open(i.href,"_blank");return}let o=this.config?.linksNewTab?"_blank":"_self";window.open(i.href,i.target||o)}},Gu=function(r){wt(a(this,L).value,"widget context is required"),r.preventDefault();let n=r.detail.example;a(this,L).value.enqueueUserInput(n,{xUserData:a(this,L).value?.xUserData,xCustomInstructions:a(this,L).value?.xCustomInstructions}).then(i=>{i&&(a(this,z,an)?.setValue(""),this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:n,example:!0,conversationId:this.conversationId}))}).catch(console.warn)},Ju=function(r){wt(a(this,L).value,"widget context is required"),r.preventDefault();let n=r.detail;a(this,L).value.enqueueUserInput(n,{xUserData:a(this,L).value?.xUserData,xCustomInstructions:a(this,L).value?.xCustomInstructions}).then(i=>{i&&(a(this,z,an)?.setValue(""),a(this,un).typingStopped(),this.callbacks.onUserSentInput?.({widgetId:this.widgetId,text:n,example:!1,conversationId:this.conversationId}))}).catch(console.warn)},Ku=function(r){a(this,un).onInput(r.detail.full)},Xu=function(){wt(a(this,L).value,"widget context is required"),a(this,L).value.sendUserCancel(),this.callbacks.onUserCanceledStreaming?.({widgetId:this.widgetId})},Yu=function(){wt(a(this,L).value,"widget context is required"),a(this,L).value.reset()},Qu=function(){this.dispatchEvent(new Ri.CloseClickEvent)},R1=function(){return this.renderRoot.querySelector("#scrollable-content")},an=function(){return this.renderRoot.querySelector("mw-chat-input")},g(Ri,"properties",{showClose:{type:Boolean,attribute:"show-close"}});var ln=Ri,Io;ln.CloseClickEvent=(Io=class extends CustomEvent{constructor(t={}){super(ln.CloseClickEvent.type,{...t})}},g(Io,"type","mw:close-click"),Io);customElements.get("mw-chat")||customElements.define("mw-chat",ln);var ar,ec,tc,or=class or extends I(_){constructor(){super();f(this,ar);g(this,"render",()=>d`
901
1788
  <div class="popup-desktop group relative w-[300px] cursor-pointer select-none rounded-[17px] shadow-2xl">
902
1789
  <mw-spinning-border .color="${this.color}" .border="${"transparent"}" .radius="${"17px"}">
903
1790
  <!-- wrapper -->
904
1791
  <div class="relative z-[2147483647] m-[1px] w-[300px] rounded-2xl bg-white font-sans text-base leading-normal">
905
1792
  <!-- content -->
906
- <div class="p-4 text-left text-gray-800" @click="${g(this,qt,Gl)}">
1793
+ <div class="p-4 text-left text-gray-800" @click="${y(this,ar,tc)}">
907
1794
  <p>${this.text}</p>
908
1795
  </div>
909
1796
  </div>
@@ -912,12 +1799,12 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
912
1799
  <!-- close button -->
913
1800
  <button
914
1801
  class="absolute -top-8 right-0 inline-flex h-6 w-6 items-center justify-center rounded-full bg-gray-300 bg-opacity-50 pb-[2px] text-center text-gray-700 opacity-0 shadow transition-opacity duration-300 ease-in-out group-hover:opacity-100"
915
- @click="${g(this,qt,Zl)}"
1802
+ @click="${y(this,ar,ec)}"
916
1803
  aria-label="Close">
917
1804
  ×
918
1805
  </button>
919
1806
  </div>
920
- `);this.text="Hello there. How can we help?",this.color="#601feb"}};qt=new WeakSet,Zl=function(){this.dispatchEvent(new Ht.CloseEvent)},Gl=function(){this.dispatchEvent(new Ht.ClickEvent)},y(Ht,"properties",{text:{type:String},color:{type:String}}),y(Ht,"styles",re`
1807
+ `);this.text="Hello there. How can we help?",this.color="#601feb"}};ar=new WeakSet,ec=function(){this.dispatchEvent(new or.CloseEvent)},tc=function(){this.dispatchEvent(new or.ClickEvent)},g(or,"properties",{text:{type:String},color:{type:String}}),g(or,"styles",ie`
921
1808
  .popup-desktop:hover button {
922
1809
  transition-delay: 0s !important;
923
1810
  }
@@ -925,55 +1812,55 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
925
1812
  .popup-desktop button {
926
1813
  transition-delay: 1s;
927
1814
  }
928
- `);var pt=Ht,Ns;pt.CloseEvent=(Ns=class extends CustomEvent{constructor(e={}){super(pt.CloseEvent.type,{...e})}},y(Ns,"type","mw:close"),Ns);var Fs;pt.ClickEvent=(Fs=class extends CustomEvent{constructor(e={}){super(pt.ClickEvent.type,{...e})}},y(Fs,"type","mw:click"),Fs);customElements.get("mw-popup-desktop")||customElements.define("mw-popup-desktop",pt);var Bt,Jl,Xl,Rr=class Rr extends _(S){constructor(){super();d(this,Bt);y(this,"render",()=>h`
1815
+ `);var vt=or,Oo;vt.CloseEvent=(Oo=class extends CustomEvent{constructor(t={}){super(vt.CloseEvent.type,{...t})}},g(Oo,"type","mw:close"),Oo);var jo;vt.ClickEvent=(jo=class extends CustomEvent{constructor(t={}){super(vt.ClickEvent.type,{...t})}},g(jo,"type","mw:click"),jo);customElements.get("mw-popup-desktop")||customElements.define("mw-popup-desktop",vt);var lr,rc,nc,pn=class pn extends I(_){constructor(){super();f(this,lr);g(this,"render",()=>d`
929
1816
  <!-- wrapper -->
930
1817
  <div class="group relative z-[2147483647] select-none rounded-t-2xl bg-white text-left font-sans text-[16px] text-base leading-normal text-gray-800 shadow-2xl transition-all">
931
1818
  <!-- close button -->
932
1819
  <button
933
1820
  class="absolute right-4 top-[28px] inline-flex h-7 w-7 items-center justify-center rounded-full bg-gray-300 bg-opacity-50 pb-[2px] text-center text-xl shadow-none duration-300 ease-in-out focus:outline-none"
934
- @click="${g(this,Bt,Jl)}"
1821
+ @click="${y(this,lr,rc)}"
935
1822
  aria-label="Close">
936
1823
  ×
937
1824
  </button>
938
1825
 
939
1826
  <!-- content -->
940
- <div class="p-4 text-gray-800" @click="${g(this,Bt,Xl)}">
1827
+ <div class="p-4 text-gray-800" @click="${y(this,lr,nc)}">
941
1828
  <h1 class="mr-8 py-2.5 text-left font-display text-lg font-bold">${this.title}</h1>
942
1829
  <p class="py-2.5 text-left">${this.text}</p>
943
1830
  <div class="h-4"></div>
944
- ${this.button&&this.color?h`
1831
+ ${this.button&&this.color?d`
945
1832
  <!-- only visible if button text and color are given -->
946
1833
  <button class="w-full rounded-full bg-[${this.color}] px-5 py-2.5 text-center text-sm font-medium text-white" type="button">${this.button}</button>
947
- `:E}
1834
+ `:M}
948
1835
  </div>
949
1836
 
950
1837
  <!-- can append any other content -->
951
1838
  <slot name="footer"></slot>
952
1839
  </div>
953
- `);this.title="Chat with Molin AI",this.text="Hello there. How can we help?",this.button="Chat now",this.color="#601feb"}};Bt=new WeakSet,Jl=function(){this.dispatchEvent(new Rr.CloseEvent)},Xl=function(){this.dispatchEvent(new Rr.ClickEvent)},y(Rr,"properties",{title:{type:String},text:{type:String},button:{type:String},color:{type:String}});var ft=Rr,Hs;ft.CloseEvent=(Hs=class extends CustomEvent{constructor(e={}){super(ft.CloseEvent.type,{...e})}},y(Hs,"type","mw:close"),Hs);var qs;ft.ClickEvent=(qs=class extends CustomEvent{constructor(e={}){super(ft.ClickEvent.type,{...e})}},y(qs,"type","mw:click"),qs);customElements.get("mw-popup-mobile")||customElements.define("mw-popup-mobile",ft);var zt,Pr,ht,ri=class{constructor(e,r){d(this,zt);d(this,Pr,!1);d(this,ht,()=>{a(this,Pr)||(a(this,zt).userFirstInteracted?.(),m(this,Pr,!0)),a(this,zt).userInteracted?.()});m(this,zt,r),e.addController(this)}hostConnected(){this.startListening()}hostDisconnected(){this.stopListening()}startListening(){window.addEventListener("click",a(this,ht)),window.addEventListener("keydown",a(this,ht))}stopListening(){window.removeEventListener("click",a(this,ht)),window.removeEventListener("keydown",a(this,ht))}};zt=new WeakMap,Pr=new WeakMap,ht=new WeakMap;var bp=24*60*60*1e3,Wt,ce,dt,Ur,mt,Vr,ii,Kl,ni=class{constructor(e,r,n=Date){d(this,ii);d(this,Wt);d(this,ce);d(this,dt);d(this,Ur);d(this,mt,!1);d(this,Vr,!1);m(this,Wt,e),m(this,ce,r),m(this,dt,n),e.addController(this)}get showing(){return a(this,mt)}hostDisconnected(){this.abortAutoShowTimer()}show({sound:e}={}){if(this.abortAutoShowTimer(),!a(this,mt)&&(m(this,mt,!0),a(this,Wt).requestUpdate(),e)){a(this,ce).playPopupSound();let r=a(this,ce).getPersistedState();a(this,ce).setPersistedState({...r,playedSoundOnce:!0})}}hide(){m(this,Vr,!0),this.abortAutoShowTimer(),m(this,mt,!1),a(this,Wt).requestUpdate()}abortAutoShowTimer(){clearTimeout(a(this,Ur))}onCloseClick(){let e=a(this,ce).getPersistedState();a(this,ce).setPersistedState({...e,userDismissedAt:a(this,dt).now()}),this.hide()}onContentClick(){let e=a(this,ce).getPersistedState();a(this,ce).setPersistedState({...e,userDismissedAt:a(this,dt).now()}),this.hide()}userFirstInteracted(){this.abortAutoShowTimer(),a(this,Vr)||m(this,Ur,setTimeout(()=>g(this,ii,Kl).call(this),a(this,ce).getDelayMs()))}};Wt=new WeakMap,ce=new WeakMap,dt=new WeakMap,Ur=new WeakMap,mt=new WeakMap,Vr=new WeakMap,ii=new WeakSet,Kl=function(){let e=a(this,ce).getPersistedState(),r=!!e?.playedSoundOnce;e?.userDismissedAt&&a(this,dt).now()-e.userDismissedAt<bp||this.show({sound:!r})};var Be,Ws,Re,si,zs,oi=class oi extends _(S){constructor(){super();d(this,Re);d(this,Be,new ni(this,{getDelayMs:()=>this.delayMs,playPopupSound:()=>{this.soundUrl&&new Audio(this.soundUrl).play().then(()=>{}).catch(r=>{console.error("Error playing audio:",r,{})})},setPersistedState:r=>{r?localStorage.setItem("_molin_popup",JSON.stringify(r)):localStorage.removeItem("_molin_popup")},getPersistedState:()=>{let r=localStorage.getItem("_molin_popup");try{return r?JSON.parse(r):null}catch{return null}}}));d(this,Ws,new ri(this,a(this,Be)));this.positionClasses="",this.delayMs=0,this.soundUrl="",this.content={desktop:{text:"",color:""},mobile:{title:"",text:"",button:"",color:"",poweredBy:!0}}}render(){let r=a(this,Be).showing?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3",n=this.content;return h`
1840
+ `);this.title="Chat with Molin AI",this.text="Hello there. How can we help?",this.button="Chat now",this.color="#601feb"}};lr=new WeakSet,rc=function(){this.dispatchEvent(new pn.CloseEvent)},nc=function(){this.dispatchEvent(new pn.ClickEvent)},g(pn,"properties",{title:{type:String},text:{type:String},button:{type:String},color:{type:String}});var xt=pn,To;xt.CloseEvent=(To=class extends CustomEvent{constructor(t={}){super(xt.CloseEvent.type,{...t})}},g(To,"type","mw:close"),To);var Lo;xt.ClickEvent=(Lo=class extends CustomEvent{constructor(t={}){super(xt.ClickEvent.type,{...t})}},g(Lo,"type","mw:click"),Lo);customElements.get("mw-popup-mobile")||customElements.define("mw-popup-mobile",xt);var ur,hn,bt,Ui=class{constructor(t,r){f(this,ur);f(this,hn,!1);f(this,bt,()=>{a(this,hn)||(a(this,ur).userFirstInteracted?.(),m(this,hn,!0)),a(this,ur).userInteracted?.()});m(this,ur,r),t.addController(this)}hostConnected(){this.startListening()}hostDisconnected(){this.stopListening()}startListening(){window.addEventListener("click",a(this,bt)),window.addEventListener("keydown",a(this,bt))}stopListening(){window.removeEventListener("click",a(this,bt)),window.removeEventListener("keydown",a(this,bt))}};ur=new WeakMap,hn=new WeakMap,bt=new WeakMap;var U1=1440*60*1e3,cr,he,kt,dn,Ct,fn,Bi,ic,Vi=class{constructor(t,r,n=Date){f(this,Bi);f(this,cr);f(this,he);f(this,kt);f(this,dn);f(this,Ct,!1);f(this,fn,!1);m(this,cr,t),m(this,he,r),m(this,kt,n),t.addController(this)}get showing(){return a(this,Ct)}hostDisconnected(){this.abortAutoShowTimer()}show({sound:t}={}){if(this.abortAutoShowTimer(),!a(this,Ct)&&(m(this,Ct,!0),a(this,cr).requestUpdate(),t)){a(this,he).playPopupSound();let r=a(this,he).getPersistedState();a(this,he).setPersistedState({...r,playedSoundOnce:!0})}}hide(){m(this,fn,!0),this.abortAutoShowTimer(),m(this,Ct,!1),a(this,cr).requestUpdate()}abortAutoShowTimer(){clearTimeout(a(this,dn))}onCloseClick(){let t=a(this,he).getPersistedState();a(this,he).setPersistedState({...t,userDismissedAt:a(this,kt).now()}),this.hide()}onContentClick(){let t=a(this,he).getPersistedState();a(this,he).setPersistedState({...t,userDismissedAt:a(this,kt).now()}),this.hide()}userFirstInteracted(){this.abortAutoShowTimer(),a(this,fn)||m(this,dn,setTimeout(()=>y(this,Bi,ic).call(this),a(this,he).getDelayMs()))}};cr=new WeakMap,he=new WeakMap,kt=new WeakMap,dn=new WeakMap,Ct=new WeakMap,fn=new WeakMap,Bi=new WeakSet,ic=function(){let t=a(this,he).getPersistedState(),r=!!t?.playedSoundOnce;t?.userDismissedAt&&a(this,kt).now()-t.userDismissedAt<U1||this.show({sound:!r})};var Ze,Ro,Re,Ni,Po,Hi=class Hi extends I(_){constructor(){super();f(this,Re);f(this,Ze,new Vi(this,{getDelayMs:()=>this.delayMs,playPopupSound:()=>{this.soundUrl&&new Audio(this.soundUrl).play().then(()=>{}).catch(r=>{console.error("Error playing audio:",r,{})})},setPersistedState:r=>{r?localStorage.setItem("_molin_popup",JSON.stringify(r)):localStorage.removeItem("_molin_popup")},getPersistedState:()=>{let r=localStorage.getItem("_molin_popup");try{return r?JSON.parse(r):null}catch{return null}}}));f(this,Ro,new Ui(this,a(this,Ze)));this.positionClasses="",this.delayMs=0,this.soundUrl="",this.content={desktop:{text:"",color:""},mobile:{title:"",text:"",button:"",color:"",poweredBy:!0}}}render(){let r=a(this,Ze).showing?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3",n=this.content;return d`
954
1841
  <!-- mobile shadow backdrop -->
955
- <div @click="${g(this,Re,si)}" class="${r} fixed inset-0 z-[2147483647] bg-black/50 transition-[opacity,visibility] sm:hidden"></div>
1842
+ <div @click="${y(this,Re,Ni)}" class="${r} fixed inset-0 z-[2147483647] bg-black/50 transition-[opacity,visibility] sm:hidden"></div>
956
1843
 
957
1844
  <!-- mobile overlay -->
958
1845
  <div class="${r} fixed bottom-0 left-0 right-0 z-[2147483647] sm:hidden">
959
- <mw-popup-mobile title="${n.mobile.title}" text="${n.mobile.text}" button="${n.mobile.button}" color="${n.mobile.color}" @mw:click="${g(this,Re,zs)}" @mw:close="${g(this,Re,si)}">
960
- ${n.mobile.poweredBy?h`<mw-powered-by class="block p-4" slot="footer"></mw-powered-by>`:E}
1846
+ <mw-popup-mobile title="${n.mobile.title}" text="${n.mobile.text}" button="${n.mobile.button}" color="${n.mobile.color}" @mw:click="${y(this,Re,Po)}" @mw:close="${y(this,Re,Ni)}">
1847
+ ${n.mobile.poweredBy?d`<mw-powered-by class="block p-4" slot="footer"></mw-powered-by>`:M}
961
1848
  </mw-popup-mobile>
962
1849
  </div>
963
1850
 
964
1851
  <!-- desktop -->
965
1852
  <div class="${r} ${this.positionClasses} fixed z-[2147483647] transition-[opacity,translate,visibility] max-sm:hidden">
966
- <mw-popup-desktop color="${n.desktop.color}" text="${n.desktop.text}" @mw:click="${g(this,Re,zs)}" @mw:close="${g(this,Re,si)}"></mw-popup-desktop>
1853
+ <mw-popup-desktop color="${n.desktop.color}" text="${n.desktop.text}" @mw:click="${y(this,Re,Po)}" @mw:close="${y(this,Re,Ni)}"></mw-popup-desktop>
967
1854
  </div>
968
- `}hide(){a(this,Be).hide()}};Be=new WeakMap,Ws=new WeakMap,Re=new WeakSet,si=function(){a(this,Be).onCloseClick()},zs=function(){this.dispatchEvent(new oi.ClickEvent),a(this,Be).onContentClick()},y(oi,"properties",{positionClasses:{type:String,attribute:"position"},delayMs:{type:Number,attribute:"delay"},soundUrl:{type:String,attribute:"sound"},content:{type:Object}});var Nr=oi,Bs;Nr.ClickEvent=(Bs=class extends CustomEvent{constructor(e={}){super(Nr.ClickEvent.type,{...e})}},y(Bs,"type","mw:click"),Bs);customElements.get("mw-popup")||customElements.define("mw-popup",Nr);var li,Yl,ai=class extends _(S){constructor(){super();d(this,li);y(this,"render",()=>h`
1855
+ `}hide(){a(this,Ze).hide()}};Ze=new WeakMap,Ro=new WeakMap,Re=new WeakSet,Ni=function(){a(this,Ze).onCloseClick()},Po=function(){this.dispatchEvent(new Hi.ClickEvent),a(this,Ze).onContentClick()},g(Hi,"properties",{positionClasses:{type:String,attribute:"position"},delayMs:{type:Number,attribute:"delay"},soundUrl:{type:String,attribute:"sound"},content:{type:Object}});var mn=Hi,Do;mn.ClickEvent=(Do=class extends CustomEvent{constructor(t={}){super(mn.ClickEvent.type,{...t})}},g(Do,"type","mw:click"),Do);customElements.get("mw-popup")||customElements.define("mw-popup",mn);var qi,sc,Fi=class extends I(_){constructor(){super();f(this,qi);g(this,"render",()=>d`
969
1856
  <span class="relative inline-flex">
970
1857
  <slot></slot>
971
- <span class="${a(this,li,Yl)} pointer-events-none absolute z-10 flex h-3 w-3">
1858
+ <span class="${a(this,qi,sc)} pointer-events-none absolute z-10 flex h-3 w-3">
972
1859
  <span class="bg-${this.color} absolute inline-flex h-3 w-3 animate-ping rounded-full opacity-75"></span>
973
1860
  <span class="bg-${this.color} relative inline-flex h-3 w-3 rounded-full"></span>
974
1861
  </span>
975
1862
  </span>
976
- `);this.color="sky-500",this.position="top-right"}};li=new WeakSet,Yl=function(){switch(this.position){case"top-left":return"top-0 left-0 -mt-1 -ml-1";case"top-right":return"top-0 right-0 -mt-1 -mr-1";case"bottom-left":return"bottom-0 left-0 -mb-1 -ml-1";case"bottom-right":return"bottom-0 right-0 -mb-1 -mr-1";default:throw new Error(`Invalid position: ${this.position}`)}},y(ai,"properties",{color:{type:String,attribute:"color"},position:{type:String,attribute:"position"}});customElements.get("mw-pulse-dot")||customElements.define("mw-pulse-dot",ai);var ui=class extends _(S){constructor(){super();y(this,"render",()=>h`
1863
+ `);this.color="sky-500",this.position="top-right"}};qi=new WeakSet,sc=function(){switch(this.position){case"top-left":return"top-0 left-0 -mt-1 -ml-1";case"top-right":return"top-0 right-0 -mt-1 -mr-1";case"bottom-left":return"bottom-0 left-0 -mb-1 -ml-1";case"bottom-right":return"bottom-0 right-0 -mb-1 -mr-1";default:throw new Error(`Invalid position: ${this.position}`)}},g(Fi,"properties",{color:{type:String,attribute:"color"},position:{type:String,attribute:"position"}});customElements.get("mw-pulse-dot")||customElements.define("mw-pulse-dot",Fi);var zi=class extends I(_){constructor(){super();g(this,"render",()=>d`
977
1864
  <div class="${this.positionClasses} fixed bottom-24 right-6 z-10 flex animate-bounce flex-col items-center justify-center font-sans text-base">
978
1865
  <p class="mb-2 -translate-x-4 -rotate-12 transform text-lg font-bold leading-normal text-gray-800">${this.text}</p>
979
1866
 
@@ -986,80 +1873,92 @@ var wu=Object.defineProperty;var no=t=>{throw TypeError(t)};var bu=(t,e,r)=>e in
986
1873
  stroke-linecap="round"></path>
987
1874
  </svg>
988
1875
  </div>
989
- `);this.positionClasses="",this.text="Try it out"}};y(ui,"properties",{positionClasses:{type:String,attribute:"position"},text:{type:String}});customElements.get("mw-try-it-out")||customElements.define("mw-try-it-out",ui);var ze,_e,Gs,Fr,Zs=class{constructor(e=window.localStorage){d(this,_e);d(this,ze);m(this,ze,e)}setex(e,r,n){return a(this,ze).setItem(e,g(this,_e,Fr).call(this,{value:g(this,_e,Fr).call(this,r),expiresAt:Date.now()+n*1e3})||"")}set(e,r){return a(this,ze).setItem(e,g(this,_e,Fr).call(this,{value:g(this,_e,Fr).call(this,r)})||"")}get(e){let r=a(this,ze).getItem(e);if(!r)return;let n=g(this,_e,Gs).call(this,r);if(n){if(n.expiresAt&&n.expiresAt<Date.now()){a(this,ze).removeItem(e);return}return g(this,_e,Gs).call(this,n.value)}}get molin_shop_assistant_distinct_id(){return localStorage.getItem("molin_shop_assistant_distinct_id")}set molin_shop_assistant_distinct_id(e){e===null?localStorage.removeItem("molin_shop_assistant_distinct_id"):localStorage.setItem("molin_shop_assistant_distinct_id",e)}get molin_widget_open_state(){return pe.get("molin-shop-ai-widget-open")??null}set molin_widget_open_state(e){pe.set("molin-shop-ai-widget-open",e)}resetWidgetData(){pe.molin_shop_assistant_distinct_id=null,pe.molin_widget_open_state=null}};ze=new WeakMap,_e=new WeakSet,Gs=function(e){if(!(typeof e!="string"||e===""))try{return JSON.parse(e)}catch{return}},Fr=function(e){if(e!==void 0)try{return JSON.stringify(e)}catch{return}};var pe=new Zs;var ne,Pe,ci,Hr,Zt,Js=class{constructor(){d(this,ne,[]);d(this,Pe);d(this,ci,10);d(this,Hr,5e3);d(this,Zt,!1)}async add(e,r){if(a(this,ne).push(tu(e,r)),a(this,ne).length>=a(this,ci))return this.flush();a(this,Pe)||m(this,Pe,setTimeout(()=>{this.flush().catch(console.error)},a(this,Hr)))}async flush(){if(a(this,Zt)||a(this,ne).length===0)return;let e=[...a(this,ne)];try{m(this,Zt,!0),clearTimeout(a(this,Pe)),m(this,Pe,void 0),m(this,ne,[]);let r=new AbortController,n=setTimeout(()=>r.abort(),5e3);await eu(e,{signal:r.signal}),clearTimeout(n)}catch(r){if(r.name==="AbortError")console.error("Request timed out, retrying events"),m(this,ne,[...e,...a(this,ne)]);else{console.error("Failed to send events to backend:",r);let n=e.filter(i=>i.event.includes("error"));m(this,ne,[...n,...a(this,ne)])}}finally{m(this,Zt,!1),a(this,ne).length>0&&!a(this,Pe)&&m(this,Pe,setTimeout(()=>{this.flush().catch(console.error)},a(this,Hr)))}}async flushBeforeUnload(){if(a(this,ne).length>0)try{let e=new FormData;e.set("events",JSON.stringify(a(this,ne))),navigator.sendBeacon(new URL("/widgets/data/collect",ru()).href,e)}catch(e){console.error("Failed to send final events:",e)}}};ne=new WeakMap,Pe=new WeakMap,ci=new WeakMap,Hr=new WeakMap,Zt=new WeakMap;var Ql=new Js;window.addEventListener("beforeunload",()=>{Ql.flushBeforeUnload().catch(console.error)});async function F(t,e,r){if(typeof t!="string")throw new TypeError("Event name must be a string");if(typeof e!="object"||e===null)throw new TypeError("Properties must be an object");try{if(r?.immediate){await eu([tu(t,e)]);return}else return Ql.add(t,e)}catch(n){console.error("Failed to send event:",n)}}async function eu(t,{signal:e}={}){let r=new FormData;r.set("events",JSON.stringify(t));let n=await fetch(new URL("/widgets/data/collect",ru()),{method:"POST",body:r,signal:e});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);n.body?.cancel().catch(console.warn)}function tu(t,e){return{event:t,widget_id:e.widgetId,properties:Object.assign({},e,kp()),distinct_id:xp(),timestamp:new Date().toISOString()}}function xp(){try{let t=pe.molin_shop_assistant_distinct_id;return t||(t=crypto.randomUUID(),pe.molin_shop_assistant_distinct_id=t),t}catch(t){console.error("Failed to deserialize distinct_id:",t);let e=crypto.randomUUID();try{pe.molin_shop_assistant_distinct_id=e}catch(r){console.error("Failed to store new distinct_id:",r)}return e}}function kp(){return{referrer:document.referrer,userAgent:navigator.userAgent,language:navigator.language,screenWidth:window.innerWidth,screenHeight:window.innerHeight,timestamp:new Date().toISOString(),timezoneOffset:new Date().getTimezoneOffset(),doNotTrack:navigator.doNotTrack??void 0}}function ru(){let t=new URL(import.meta.url).hostname;return{localhost:"http://localhost:8787","molin.localhost":"http://molin.localhost:8787","widget.molin.foo":"https://molin.foo","widget.molin.ai":"https://molin.ai","molin.ai":"https://molin.ai","molin.foo":"https://molin.foo"}[t]||"https://molin.ai"}var gt,qr,We,yt,fi,iu,pi=class{constructor(e,r,n){d(this,fi);d(this,gt);d(this,qr);d(this,We);d(this,yt);y(this,"isLoading",!1);y(this,"data");m(this,gt,e),m(this,qr,r),m(this,We,n),e.addController(this)}fetch(){if(this.isLoading)return;a(this,yt)?.abort();let e=new AbortController;m(this,yt,e),this.isLoading=!0,this.data=void 0,a(this,gt).requestUpdate(),(async()=>{let r=g(this,fi,iu).call(this);return r.signal?.addEventListener("abort",()=>e.abort(),{signal:e.signal}),fetch(r,{signal:e.signal})})().then(async r=>{if(!r.ok)throw new Error(`${r.statusText}: ${await r.text()}`);this.isLoading=!1,this.data=typeof a(this,We)?.transform=="function"?await a(this,We).transform(r):r,a(this,gt).requestUpdate()}).catch(r=>{a(this,We)?.onError?.(r),this.isLoading=!1,this.data=void 0,a(this,gt).requestUpdate()}).finally(()=>{e.abort()})}hostConnected(){this.isLoading||a(this,We)?.fetchWhenConnected&&this.fetch()}hostDisconnected(){a(this,yt)?.abort(),m(this,yt,void 0)}};gt=new WeakMap,qr=new WeakMap,We=new WeakMap,yt=new WeakMap,fi=new WeakSet,iu=function(){let e=a(this,qr);if(typeof e=="function"&&(e=e()),!e)throw new Error("missing request");return new Request(e)};var ge,Br,Gt,Jt,Ze=class{constructor(e,r){d(this,ge);d(this,Br);d(this,Gt);d(this,Jt);m(this,ge,e),m(this,Br,r),e.addController(this)}get data(){return a(this,Jt)||a(this,Gt)?.data}hostConnected(){if(a(this,Gt)||a(this,Jt))return;let e=su();e&&e.widgetId===a(this,ge).widgetId?m(this,Jt,e.config):m(this,Gt,new pi(a(this,ge),()=>{if(a(this,ge).cdn&&a(this,ge).widgetId)return`${a(this,ge).cdn}/config?w=${a(this,ge).widgetId}`;throw new Error("missing cdn or widgetId")},{fetchWhenConnected:!0,transform:async r=>{let n=await r.json();return n&&!e&&window.__INIT_MOLIN_SHOP_AI({cdn:a(this,ge).cdn,widgetId:a(this,ge).widgetId,config:n}),n},onError:a(this,Br)?.onError}))}};ge=new WeakMap,Br=new WeakMap,Gt=new WeakMap,Jt=new WeakMap;function Ge(){return window.molinSettings&&typeof window.molinSettings=="object"?window.molinSettings:null}var hi,Zr,di,Ue,ou,zr,Wr=class Wr extends _(S){constructor(){super();d(this,Ue);d(this,hi,new Ze(this,{onError:console.error}));d(this,Zr);d(this,di,{onError:r=>{alert(r.error),console.error(r.widgetId,r.error),F("ShopAssistant: error",{...r},{immediate:!0})},onNewMessageStartedStreaming:r=>{F("ShopAssistant: user received bot message (streaming started)",r)},onMessageEndedStreaming:r=>{F("ShopAssistant: user received bot message (streaming ended)",r)},onUserCanceledStreaming:r=>{F("ShopAssistant: user canceled streaming",r)},onUserClickedLink:r=>{F("ShopAssistant: user clicked link",r)},onUserSentInput:r=>{F("ShopAssistant: user sent input",r)}});this.cdn="https://widget.molin.ai",this.widgetId="",this.showClose=!1,this.xUserData=Ge()?.userData,this.xCustomInstructions=Ge()?.customInstructions}get config(){return a(this,Zr)||a(this,hi).data}render(){return this.config?h`
990
- <!-- embed our chat component forwarding props -->
991
- <mw-chat
992
- widget="${this.widgetId}"
993
- .config="${this.config}"
994
- .callbacks="${a(this,di)}"
995
- .xUserData="${this.xUserData}"
996
- .xCustomInstructions="${this.xCustomInstructions}"
997
- ?show-close="${this.showClose}"
998
- @mw:close-click="${g(this,Ue,ou)}">
999
- <slot name="banner" slot="banner"></slot>
1000
- </mw-chat>
1001
- `:E}injectConfig(r){m(this,Zr,r),this.requestUpdate()}reloadConfig(){a(this,Ue,zr)?.reloadConfig()}reset(){this.xUserData={},this.xCustomInstructions="",a(this,Ue,zr)?.reset(),this.requestUpdate()}get conversationId(){return a(this,Ue,zr)?.conversationId??""}get messages(){return a(this,Ue,zr)?.messages??[]}};hi=new WeakMap,Zr=new WeakMap,di=new WeakMap,Ue=new WeakSet,ou=function(){this.dispatchEvent(new Wr.CloseClickEvent)},zr=function(){return this.renderRoot.querySelector("mw-chat")},y(Wr,"styles",re`
1876
+ `);this.positionClasses="",this.text="Try it out"}};g(zi,"properties",{positionClasses:{type:String,attribute:"position"},text:{type:String}});customElements.get("mw-try-it-out")||customElements.define("mw-try-it-out",zi);var Ge,Ie,Vo,gn,Uo=class{constructor(t=window.localStorage){f(this,Ie);f(this,Ge);m(this,Ge,t)}setex(t,r,n){return a(this,Ge).setItem(t,y(this,Ie,gn).call(this,{value:y(this,Ie,gn).call(this,r),expiresAt:Date.now()+n*1e3})||"")}set(t,r){return a(this,Ge).setItem(t,y(this,Ie,gn).call(this,{value:y(this,Ie,gn).call(this,r)})||"")}get(t){let r=a(this,Ge).getItem(t);if(!r)return;let n=y(this,Ie,Vo).call(this,r);if(n){if(n.expiresAt&&n.expiresAt<Date.now()){a(this,Ge).removeItem(t);return}return y(this,Ie,Vo).call(this,n.value)}}get molin_shop_assistant_distinct_id(){return localStorage.getItem("molin_shop_assistant_distinct_id")}set molin_shop_assistant_distinct_id(t){t===null?localStorage.removeItem("molin_shop_assistant_distinct_id"):localStorage.setItem("molin_shop_assistant_distinct_id",t)}get molin_widget_open_state(){return de.get("molin-shop-ai-widget-open")??null}set molin_widget_open_state(t){de.set("molin-shop-ai-widget-open",t)}resetWidgetData(){de.molin_shop_assistant_distinct_id=null,de.molin_widget_open_state=null}};Ge=new WeakMap,Ie=new WeakSet,Vo=function(t){if(!(typeof t!="string"||t===""))try{return JSON.parse(t)}catch{return}},gn=function(t){if(t!==void 0)try{return JSON.stringify(t)}catch{return}};var de=new Uo;var se,Ue,Wi,yn,pr,Bo=class{constructor(){f(this,se,[]);f(this,Ue);f(this,Wi,10);f(this,yn,5e3);f(this,pr,!1)}async add(t,r){if(a(this,se).push(lc(t,r)),a(this,se).length>=a(this,Wi))return this.flush();a(this,Ue)||m(this,Ue,setTimeout(()=>{this.flush().catch(console.error)},a(this,yn)))}async flush(){if(a(this,pr)||a(this,se).length===0)return;let t=[...a(this,se)];try{m(this,pr,!0),clearTimeout(a(this,Ue)),m(this,Ue,void 0),m(this,se,[]);let r=new AbortController,n=setTimeout(()=>r.abort(),5e3);await ac(t,{signal:r.signal}),clearTimeout(n)}catch(r){if(r.name==="AbortError")console.error("Request timed out, retrying events"),m(this,se,[...t,...a(this,se)]);else{console.error("Failed to send events to backend:",r);let n=t.filter(i=>i.event.includes("error"));m(this,se,[...n,...a(this,se)])}}finally{m(this,pr,!1),a(this,se).length>0&&!a(this,Ue)&&m(this,Ue,setTimeout(()=>{this.flush().catch(console.error)},a(this,yn)))}}async flushBeforeUnload(){if(a(this,se).length>0)try{let t=new FormData;t.set("events",JSON.stringify(a(this,se))),navigator.sendBeacon(new URL("/widgets/data/collect",uc()).href,t)}catch(t){console.error("Failed to send final events:",t)}}};se=new WeakMap,Ue=new WeakMap,Wi=new WeakMap,yn=new WeakMap,pr=new WeakMap;var oc=new Bo;window.addEventListener("beforeunload",()=>{oc.flushBeforeUnload().catch(console.error)});async function F(e,t,r){if(typeof e!="string")throw new TypeError("Event name must be a string");if(typeof t!="object"||t===null)throw new TypeError("Properties must be an object");try{if(r?.immediate){await ac([lc(e,t)]);return}else return oc.add(e,t)}catch(n){console.error("Failed to send event:",n)}}async function ac(e,{signal:t}={}){let r=new FormData;r.set("events",JSON.stringify(e));let n=await fetch(new URL("/widgets/data/collect",uc()),{method:"POST",body:r,signal:t});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);n.body?.cancel().catch(console.warn)}function lc(e,t){return{event:e,widget_id:t.widgetId,properties:Object.assign({},t,B1()),distinct_id:V1(),timestamp:new Date().toISOString()}}function V1(){try{let e=de.molin_shop_assistant_distinct_id;return e||(e=crypto.randomUUID(),de.molin_shop_assistant_distinct_id=e),e}catch(e){console.error("Failed to deserialize distinct_id:",e);let t=crypto.randomUUID();try{de.molin_shop_assistant_distinct_id=t}catch(r){console.error("Failed to store new distinct_id:",r)}return t}}function B1(){return{referrer:document.referrer,userAgent:navigator.userAgent,language:navigator.language,screenWidth:window.innerWidth,screenHeight:window.innerHeight,timestamp:new Date().toISOString(),timezoneOffset:new Date().getTimezoneOffset(),doNotTrack:navigator.doNotTrack??void 0}}function uc(){let e=new URL(import.meta.url).hostname;return{localhost:"http://localhost:8787","molin.localhost":"http://molin.localhost:8787","widget.molin.foo":"https://molin.foo","widget.molin.ai":"https://molin.ai","molin.ai":"https://molin.ai","molin.foo":"https://molin.foo"}[e]||"https://molin.ai"}var $t,wn,Je,St,Gi,pc,Zi=class{constructor(t,r,n){f(this,Gi);f(this,$t);f(this,wn);f(this,Je);f(this,St);g(this,"isLoading",!1);g(this,"data");m(this,$t,t),m(this,wn,r),m(this,Je,n),t.addController(this)}fetch(){if(this.isLoading)return;a(this,St)?.abort();let t=new AbortController;m(this,St,t),this.isLoading=!0,this.data=void 0,a(this,$t).requestUpdate(),(async()=>{let r=y(this,Gi,pc).call(this);return r.signal?.addEventListener("abort",()=>t.abort(),{signal:t.signal}),fetch(r,{signal:t.signal})})().then(async r=>{if(!r.ok)throw new Error(`${r.statusText}: ${await r.text()}`);this.isLoading=!1,this.data=typeof a(this,Je)?.transform=="function"?await a(this,Je).transform(r):r,a(this,$t).requestUpdate()}).catch(r=>{a(this,Je)?.onError?.(r),this.isLoading=!1,this.data=void 0,a(this,$t).requestUpdate()}).finally(()=>{t.abort()})}hostConnected(){this.isLoading||a(this,Je)?.fetchWhenConnected&&this.fetch()}hostDisconnected(){a(this,St)?.abort(),m(this,St,void 0)}};$t=new WeakMap,wn=new WeakMap,Je=new WeakMap,St=new WeakMap,Gi=new WeakSet,pc=function(){let t=a(this,wn);if(typeof t=="function"&&(t=t()),!t)throw new Error("missing request");return new Request(t)};var we,vn,hr,dr,Ke=class{constructor(t,r){f(this,we);f(this,vn);f(this,hr);f(this,dr);m(this,we,t),m(this,vn,r),t.addController(this)}get data(){return a(this,dr)||a(this,hr)?.data}hostConnected(){if(a(this,hr)||a(this,dr))return;let t=hc();t&&t.widgetId===a(this,we).widgetId?m(this,dr,t.config):m(this,hr,new Zi(a(this,we),()=>{if(a(this,we).cdn&&a(this,we).widgetId)return`${a(this,we).cdn}/config?w=${a(this,we).widgetId}`;throw new Error("missing cdn or widgetId")},{fetchWhenConnected:!0,transform:async r=>{let n=await r.json();return n&&!t&&window.__INIT_MOLIN_SHOP_AI({cdn:a(this,we).cdn,widgetId:a(this,we).widgetId,config:n}),n},onError:a(this,vn)?.onError}))}};we=new WeakMap,vn=new WeakMap,hr=new WeakMap,dr=new WeakMap;function Xe(){return window.molinSettings&&typeof window.molinSettings=="object"?window.molinSettings:null}var Ji,kn,Cn,Ve,dc,xn,bn=class bn extends I(_){constructor(){super();f(this,Ve);f(this,Ji,new Ke(this,{onError:console.error}));f(this,kn);f(this,Cn,{onError:r=>{alert(r.error),console.error(r.widgetId,r.error),F("ShopAssistant: error",{...r},{immediate:!0})},onNewMessageStartedStreaming:r=>{F("ShopAssistant: user received bot message (streaming started)",r)},onMessageEndedStreaming:r=>{F("ShopAssistant: user received bot message (streaming ended)",r)},onUserCanceledStreaming:r=>{F("ShopAssistant: user canceled streaming",r)},onUserClickedLink:r=>{F("ShopAssistant: user clicked link",r)},onUserSentInput:r=>{F("ShopAssistant: user sent input",r)}});this.cdn="https://widget.molin.ai",this.widgetId="",this.showClose=!1,this.xUserData=Xe()?.userData,this.xCustomInstructions=Xe()?.customInstructions}get config(){return a(this,kn)||a(this,Ji).data}render(){return this.config?d`
1877
+ <mw-context-widget .widgetId="${this.widgetId}" .config="${this.config}" .callbacks="${a(this,Cn)}" .xUserData="${this.xUserData}" .xCustomInstructions="${this.xCustomInstructions}">
1878
+ <!-- embed our chat component forwarding props -->
1879
+ <mw-chat
1880
+ widget="${this.widgetId}"
1881
+ .config="${this.config}"
1882
+ .callbacks="${a(this,Cn)}"
1883
+ .xUserData="${this.xUserData}"
1884
+ .xCustomInstructions="${this.xCustomInstructions}"
1885
+ ?show-close="${this.showClose}"
1886
+ @mw:close-click="${y(this,Ve,dc)}">
1887
+ <slot name="banner" slot="banner"></slot>
1888
+ </mw-chat>
1889
+ </mw-context-widget>
1890
+ `:M}injectConfig(r){m(this,kn,r),this.requestUpdate()}reloadConfig(){a(this,Ve,xn)?.reloadConfig()}reset(){this.xUserData={},this.xCustomInstructions="",a(this,Ve,xn)?.reset(),this.requestUpdate()}get conversationId(){return a(this,Ve,xn)?.conversationId??""}get messages(){return a(this,Ve,xn)?.messages??[]}};Ji=new WeakMap,kn=new WeakMap,Cn=new WeakMap,Ve=new WeakSet,dc=function(){this.dispatchEvent(new bn.CloseClickEvent)},xn=function(){return this.renderRoot.querySelector("mw-chat")},g(bn,"styles",ie`
1002
1891
  :host {
1003
1892
  all: initial; /* reset all properties that can pierce the shadow DOM */
1004
1893
  }
1005
- `),y(Wr,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},showClose:{type:Boolean,attribute:"show-close"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1}});var vt=Wr;customElements.get("molin-shop-ai-chat")||customElements.define("molin-shop-ai-chat",vt);var Xs;vt.CloseClickEvent=(Xs=class extends CustomEvent{constructor(e={}){super(vt.CloseClickEvent.type,{...e})}},y(Xs,"type","mw:close-click"),Xs);var Ks=class{constructor({hidden:e=!1}){y(this,"hidden");this.hidden=e}setUserData(e){for(let r of document.querySelectorAll("molin-shop-ai"))e?r.setAttribute("user-data",JSON.stringify(e)):r.removeAttribute("user-data");for(let r of document.querySelectorAll("molin-shop-ai-chat"))e?r.setAttribute("user-data",JSON.stringify(e)):r.removeAttribute("user-data")}setCustomInstructions(e){for(let r of document.querySelectorAll("molin-shop-ai"))e?r.setAttribute("custom-instructions",e):r.removeAttribute("custom-instructions");for(let r of document.querySelectorAll("molin-shop-ai-chat"))e?r.setAttribute("custom-instructions",e):r.removeAttribute("custom-instructions")}showLauncher(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof xe&&e.showLauncher()}hideLauncher(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof xe&&e.hideLauncher()}openChat({message:e,autoSend:r}={}){for(let n of document.querySelectorAll("molin-shop-ai"))n instanceof xe&&n.openChat({message:e,autoSend:r})}closeChat(){for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof xe&&e.closeChat()}reset(){pe.resetWidgetData();for(let e of document.querySelectorAll("molin-shop-ai"))e instanceof xe&&e.reset();for(let e of document.querySelectorAll("molin-shop-ai-chat"))e instanceof vt&&e.reset()}};function au({hidden:t}){let e=new Ks({hidden:t});return window.Molin=e,e}function mi(){let t=window.Molin;if(!t)throw new Error("window.Molin global not initialized");return t}window.__INIT_MOLIN_SHOP_AI=function(e){Cp(e);let r=Ge(),n=typeof r?.hidden=="boolean"?r.hidden:window.self!==window.top;if(au({hidden:n}),e.auto){let i=document.createElement("molin-shop-ai");i.setAttribute("cdn",e.cdn),i.setAttribute("widget",e.widgetId),document.body.appendChild(i)}};function Cp(t){window.__INIT_MOLIN_SHOP_AI_OPTIONS=t}function su(){return window.__INIT_MOLIN_SHOP_AI_OPTIONS}var gi,Gr=class extends _(S){constructor(){super();d(this,gi,new Ze(this,{onError:console.error}));this.cdn="https://widget.molin.ai",this.widgetId="",this.state="open"}get config(){return a(this,gi).data}render(){return this.config?h`
1894
+ `),g(bn,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},showClose:{type:Boolean,attribute:"show-close"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1}});var Et=bn;customElements.get("molin-shop-ai-chat")||customElements.define("molin-shop-ai-chat",Et);var No;Et.CloseClickEvent=(No=class extends CustomEvent{constructor(t={}){super(Et.CloseClickEvent.type,{...t})}},g(No,"type","mw:close-click"),No);var Ho=class{constructor({hidden:t=!1}){g(this,"hidden");this.hidden=t}setUserData(t){for(let r of document.querySelectorAll("molin-shop-ai"))t?r.setAttribute("user-data",JSON.stringify(t)):r.removeAttribute("user-data");for(let r of document.querySelectorAll("molin-shop-ai-chat"))t?r.setAttribute("user-data",JSON.stringify(t)):r.removeAttribute("user-data")}setCustomInstructions(t){for(let r of document.querySelectorAll("molin-shop-ai"))t?r.setAttribute("custom-instructions",t):r.removeAttribute("custom-instructions");for(let r of document.querySelectorAll("molin-shop-ai-chat"))t?r.setAttribute("custom-instructions",t):r.removeAttribute("custom-instructions")}showLauncher(){for(let t of document.querySelectorAll("molin-shop-ai"))t instanceof $e&&t.showLauncher()}hideLauncher(){for(let t of document.querySelectorAll("molin-shop-ai"))t instanceof $e&&t.hideLauncher()}openChat({message:t,autoSend:r}={}){for(let n of document.querySelectorAll("molin-shop-ai"))n instanceof $e&&n.openChat({message:t,autoSend:r})}closeChat(){for(let t of document.querySelectorAll("molin-shop-ai"))t instanceof $e&&t.closeChat()}reset(){de.resetWidgetData();for(let t of document.querySelectorAll("molin-shop-ai"))t instanceof $e&&t.reset();for(let t of document.querySelectorAll("molin-shop-ai-chat"))t instanceof Et&&t.reset()}};function fc({hidden:e}){let t=new Ho({hidden:e});return window.Molin=t,t}function Ki(){let e=window.Molin;if(!e)throw new Error("window.Molin global not initialized");return e}window.__INIT_MOLIN_SHOP_AI=function(t){N1(t);let r=Xe(),n=typeof r?.hidden=="boolean"?r.hidden:window.self!==window.top;if(fc({hidden:n}),t.auto){let i=document.createElement("molin-shop-ai");i.setAttribute("cdn",t.cdn),i.setAttribute("widget",t.widgetId),document.body.appendChild(i)}};function N1(e){window.__INIT_MOLIN_SHOP_AI_OPTIONS=e}function hc(){return window.__INIT_MOLIN_SHOP_AI_OPTIONS}var Xi,$n=class extends I(_){constructor(){super();f(this,Xi,new Ke(this,{onError:console.error}));this.cdn="https://widget.molin.ai",this.widgetId="",this.state="open"}get config(){return a(this,Xi).data}render(){return this.config?d`
1006
1895
  <!-- embed our bubble component forwarding props -->
1007
1896
  <!-- these props are never internally updated by mw-bubble so we pass them down only one way -->
1008
1897
  <mw-bubble
1009
1898
  state="${this.state}"
1010
- .color="${$e(this.config?.bubble?.color||this.config?.color)}"
1011
- .bubbleStyle="${$e(this.config?.bubble?.style)}"
1012
- .src="${$e(this.config?.bubble?.bubbleUrl)}"></mw-bubble>
1013
- `:E}};gi=new WeakMap,y(Gr,"styles",re`
1899
+ .color="${Ae(this.config?.bubble?.color||this.config?.color)}"
1900
+ .bubbleStyle="${Ae(this.config?.bubble?.style)}"
1901
+ .src="${Ae(this.config?.bubble?.bubbleUrl)}"></mw-bubble>
1902
+ `:M}};Xi=new WeakMap,g($n,"styles",ie`
1014
1903
  :host {
1015
1904
  all: initial; /* reset all properties that can pierce the shadow DOM */
1016
1905
  }
1017
- `),y(Gr,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},state:{type:String}});customElements.define("molin-shop-ai-launcher",Gr);var A5="navigator"in globalThis&&/Mobi|Android|iPhone/i.test(navigator.userAgent),M5="navigator"in globalThis&&"share"in navigator,$p=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536});function Sp(t){if(typeof window>"u")return!1;let e=$p[t];return typeof e!="number"?(console.warn(`Invalid breakpoint: ${t}`),!1):window.matchMedia(`(min-width: ${e}px)`).matches}function Ys(){return Sp("sm")}var vi,Xt,Kt,wt,Jr,wi,yi=class{constructor(e,r,n,i=window.history){d(this,vi);d(this,Xt);d(this,Kt);d(this,wt);d(this,Jr,!1);d(this,wi,()=>{a(this,Xt).test(window.location.pathname)&&a(this,Kt).navigated()});m(this,vi,e),m(this,Xt,r),m(this,Kt,n),m(this,wt,i),e.addController(this)}hostConnected(){a(this,wi).call(this);let e=a(this,wt).pushState;a(this,wt).pushState=(...r)=>{if(e.call(a(this,wt),...r),!a(this,Jr))try{let n=new URL(r[2],window.location.origin);a(this,Xt).test(n.pathname)&&a(this,Kt).navigated()}catch{}}}hostDisconnected(){m(this,Jr,!0)}};vi=new WeakMap,Xt=new WeakMap,Kt=new WeakMap,wt=new WeakMap,Jr=new WeakMap,wi=new WeakMap;function lu({minMs:t,maxMs:e}){return Math.random()*(e-t)+t}function Qs(t,e=""){return Object.entries(t).filter(([r,n])=>n).map(([r,n])=>`${e}${r}-[${n}]`).join(" ")}function uu(t,e={}){return[Qs(t),Qs(e,"max-sm:")].join(" ")}function cu(t){return Qs(t)}function eo(t){return Object.entries(t).filter(([e,r])=>r).filter(([e])=>e==="left"||e==="right").map(([e,r])=>{let n=`sm:${e}-[${r}]`;return e==="left"&&(n+=" sm:right-auto"),e==="right"&&(n+=" sm:left-auto"),n}).join(" ")}function pu(t){let e=eo(t),n=`sm:bottom-[${t.bottom?`calc(${t.bottom}+72px)`:"72px"}]`;return[e,n].filter(Boolean).join(" ")}var bi,Kr,ro,N,Je,xi,T,fu,Xr,Yt,hu,du,mu,to,gu,yu,Qt,xe=class extends _(S){constructor(){super();d(this,T);d(this,bi,new Ze(this,{onError:console.error}));d(this,Kr);d(this,ro,new yi(this,/.*/i,{navigated:()=>{if(!this.widgetId){console.warn("No widgetId set, cannot track page view");return}let r=a(this,T,Yt)?.conversationId,n=Ft.restore(this.widgetId)?.conversationId,i=r||n;i&&F("ShopAssistant: pageview",{widgetId:this.widgetId,conversationId:i,url:document.location.href,title:document.title,hidden:this.config?this.config.hidden||!1:void 0})}}));d(this,N,!1);d(this,Je,!1);d(this,xi,{onError:r=>{alert(r.error),console.error(r.widgetId,r.error),F("ShopAssistant: error",{...r},{immediate:!0})},onNewMessageStartedStreaming:r=>{F("ShopAssistant: user received bot message (streaming started)",r)},onMessageEndedStreaming:r=>{F("ShopAssistant: user received bot message (streaming ended)",r)},onUserCanceledStreaming:r=>{F("ShopAssistant: user canceled streaming",r)},onUserClickedLink:r=>{F("ShopAssistant: user clicked link",r)},onUserSentInput:r=>{F("ShopAssistant: user sent input",r)}});this.cdn="https://widget.molin.ai",this.widgetId="",this.xUserData=Ge()?.userData,this.xCustomInstructions=Ge()?.customInstructions}get config(){return a(this,Kr)||a(this,bi).data}render(){if(!this.config)return E;let r=uu(this.config.bubble.position,this.config.bubble.mobilePosition),n=cu(this.config.bubble.position),i=eo(this.config.bubble.position),s=pu(this.config.bubble.position);return this.config.hidden?E:mi().hidden?E:h`
1018
- <mw-bubble
1019
- class="${r} ${a(this,N)?"opacity-0":"opacity-100"} fixed z-[${a(this,T,fu)}] transition-opacity"
1020
- @click="${g(this,T,du)}"
1021
- state="${a(this,N)?"close":"open"}"
1022
- .color="${this.config?.bubble?.color||this.config?.color}"
1023
- .bubbleStyle="${this.config?.bubble?.style}"
1024
- .src="${this.config?.bubble?.bubbleUrl}"></mw-bubble>
1906
+ `),g($n,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},state:{type:String}});customElements.define("molin-shop-ai-launcher",$n);var N4="navigator"in globalThis&&/Mobi|Android|iPhone/i.test(navigator.userAgent),H4="navigator"in globalThis&&"share"in navigator,H1=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536});function F1(e){if(typeof window>"u")return!1;let t=H1[e];return typeof t!="number"?(console.warn(`Invalid breakpoint: ${e}`),!1):window.matchMedia(`(min-width: ${t}px)`).matches}function Fo(){return F1("sm")}var Qi,fr,mr,_t,Sn,es,Yi=class{constructor(t,r,n,i=window.history){f(this,Qi);f(this,fr);f(this,mr);f(this,_t);f(this,Sn,!1);f(this,es,()=>{a(this,fr).test(window.location.pathname)&&a(this,mr).navigated()});m(this,Qi,t),m(this,fr,r),m(this,mr,n),m(this,_t,i),t.addController(this)}hostConnected(){a(this,es).call(this);let t=a(this,_t).pushState;a(this,_t).pushState=(...r)=>{if(t.call(a(this,_t),...r),!a(this,Sn))try{let n=new URL(r[2],window.location.origin);a(this,fr).test(n.pathname)&&a(this,mr).navigated()}catch{}}}hostDisconnected(){m(this,Sn,!0)}};Qi=new WeakMap,fr=new WeakMap,mr=new WeakMap,_t=new WeakMap,Sn=new WeakMap,es=new WeakMap;function mc({minMs:e,maxMs:t}){return Math.random()*(t-e)+e}function qo(e,t=""){return Object.entries(e).filter(([r,n])=>n).map(([r,n])=>`${t}${r}-[${n}]`).join(" ")}function gc(e,t={}){return[qo(e),qo(t,"max-sm:")].join(" ")}function yc(e){return qo(e)}function zo(e){return Object.entries(e).filter(([t,r])=>r).filter(([t])=>t==="left"||t==="right").map(([t,r])=>{let n=`sm:${t}-[${r}]`;return t==="left"&&(n+=" sm:right-auto"),t==="right"&&(n+=" sm:left-auto"),n}).join(" ")}function wc(e){let t=zo(e),n=`sm:bottom-[${e.bottom?`calc(${e.bottom}+72px)`:"72px"}]`;return[t,n].filter(Boolean).join(" ")}var gr,yr,En,_n,An,ts,Wo=class{constructor(t,r,{threshold:n=5}={}){f(this,gr,0);f(this,yr,!1);f(this,En);f(this,_n);f(this,An,()=>{a(this,yr)||(requestAnimationFrame(a(this,ts)),m(this,yr,!0))});f(this,ts,()=>{let t=window.scrollY,r=t-a(this,gr);if(Math.abs(r)>=a(this,_n)){let n=r>0?"down":"up";a(this,En).call(this,{scrollY:t,direction:n,deltaY:Math.abs(r)}),m(this,gr,t)}m(this,yr,!1)});m(this,En,r),m(this,_n,n),t.addController(this)}hostConnected(){m(this,gr,window.scrollY),window.addEventListener("scroll",a(this,An),{passive:!0})}hostDisconnected(){window.removeEventListener("scroll",a(this,An))}};gr=new WeakMap,yr=new WeakMap,En=new WeakMap,_n=new WeakMap,An=new WeakMap,ts=new WeakMap;function vc(e,t,r){return new Wo(e,t,r)}var rs,Qo,In,ea,V,Be,ns,O,Zo,Go,Mn,At,Jo,xc,bc,kc,is,Ko,Xo,Yo,Mt,$e=class extends I(_){constructor(){super();f(this,O);f(this,rs,new Ke(this,{onError:console.error}));f(this,Qo,vc(this,r=>{a(this,O,Go)&&!a(this,V)&&(r.direction==="down"?this._floatingInputVisible=!1:r.direction==="up"&&(this._floatingInputVisible=!0),this.requestUpdate())},{threshold:20}));f(this,In);f(this,ea,new Yi(this,/.*/i,{navigated:()=>{if(!this.widgetId){console.warn("No widgetId set, cannot track page view");return}let r=a(this,O,At)?.conversationId,n=Ft.restore(this.widgetId)?.conversationId,i=r||n;i&&F("ShopAssistant: pageview",{widgetId:this.widgetId,conversationId:i,url:document.location.href,title:document.title,hidden:this.config?this.config.hidden||!1:void 0})}}));f(this,V,!1);f(this,Be,!1);f(this,ns,{onError:r=>{alert(r.error),console.error(r.widgetId,r.error),F("ShopAssistant: error",{...r},{immediate:!0})},onNewMessageStartedStreaming:r=>{F("ShopAssistant: user received bot message (streaming started)",r)},onMessageEndedStreaming:r=>{F("ShopAssistant: user received bot message (streaming ended)",r)},onUserCanceledStreaming:r=>{F("ShopAssistant: user canceled streaming",r)},onUserClickedLink:r=>{F("ShopAssistant: user clicked link",r)},onUserSentInput:r=>{F("ShopAssistant: user sent input",r)}});f(this,is,r=>{let n=r.detail.text,i=a(this,O,Jo);i&&typeof i.connect=="function"&&i.connect(),m(this,V,!0),m(this,Be,!0),this.requestUpdate(),y(this,O,Mt).call(this,!0),setTimeout(()=>{y(this,O,Yo).call(this,n),y(this,O,Xo).call(this,n).catch(console.warn)},100),F("ShopAssistant: user sent input",{widgetId:this.widgetId,text:n,example:!1,conversationId:a(this,O,At)?.conversationId||""})});this.cdn="https://widget.molin.ai",this.widgetId="",this._floatingInputVisible=!0,this.xUserData=Xe()?.userData,this.xCustomInstructions=Xe()?.customInstructions}get config(){return a(this,In)||a(this,rs).data}render(){if(!this.config)return M;let r=gc(this.config.bubble.position,this.config.bubble.mobilePosition),n=yc(this.config.bubble.position),i=zo(this.config.bubble.position),s=wc(this.config.bubble.position);return this.config.hidden?M:Ki().hidden?M:d`
1907
+ <mw-context-widget
1908
+ .widgetId="${this.widgetId}"
1909
+ .config="${this.config}"
1910
+ .callbacks="${a(this,ns)}"
1911
+ .xUserData="${this.xUserData}"
1912
+ .xCustomInstructions="${this.xCustomInstructions}"
1913
+ .autoConnect="${a(this,Be)}">
1914
+ <mw-bubble
1915
+ class="${r} ${a(this,V)?"opacity-0":"opacity-100"} fixed z-[${a(this,O,Zo)}] transition-opacity"
1916
+ @click="${y(this,O,bc)}"
1917
+ state="${a(this,V)?"close":"open"}"
1918
+ .color="${this.config?.bubble?.color||this.config?.color}"
1919
+ .bubbleStyle="${this.config?.bubble?.style}"
1920
+ .src="${this.config?.bubble?.bubbleUrl}"></mw-bubble>
1025
1921
 
1026
- <!-- only load the component if enabled on any platform -->
1027
- ${this.isPopupEnabled?h`
1028
- <mw-popup
1029
- position="${s}"
1030
- delay="${this.config.popup?.delayMs||lu({minMs:2e3,maxMs:5e3})}"
1031
- sound="${this.config.popup?.muteSounds?"":"https://assets.molinai.io/2024/widget-v20241209/popup.aac"}"
1032
- .content="${{desktop:{text:this.config.popup?.text||"Hello there. How can we help?",color:this.config?.bubble?.color||this.config.color},mobile:{title:this.config.popup?.mobileTitleText||`Chat with ${this.config.title}`,text:this.config.popup?.text||"Hello there. How can we help?",button:this.config.popup?.mobileButtonText||`Chat with ${this.config.title}`,color:this.config.color,poweredBy:!this.config.removePoweredBy}}}"
1033
- @mw:click="${g(this,T,hu)}"></mw-popup>
1034
- `:E}
1922
+ <!-- only load the component if enabled on any platform -->
1923
+ ${this.isPopupEnabled?d`
1924
+ <mw-popup
1925
+ position="${s}"
1926
+ delay="${this.config.popup?.delayMs||mc({minMs:2e3,maxMs:5e3})}"
1927
+ sound="${this.config.popup?.muteSounds?"":"https://assets.molinai.io/2024/widget-v20241209/popup.aac"}"
1928
+ .content="${{desktop:{text:this.config.popup?.text||"Hello there. How can we help?",color:this.config?.bubble?.color||this.config.color},mobile:{title:this.config.popup?.mobileTitleText||`Chat with ${this.config.title}`,text:this.config.popup?.text||"Hello there. How can we help?",button:this.config.popup?.mobileButtonText||`Chat with ${this.config.title}`,color:this.config.color,poweredBy:!this.config.removePoweredBy}}}"
1929
+ @mw:click="${y(this,O,xc)}"></mw-popup>
1930
+ `:M}
1035
1931
 
1036
- <!-- show "Try it out" if enabled (even if the chat window is showing) -->
1037
- ${this.config?.tryItOut?.mobileEnabled||this.config?.tryItOut?.desktopEnabled?h`<mw-try-it-out
1038
- class="${this.config?.tryItOut?.mobileEnabled?"visible":"invisible"} ${this.config?.tryItOut?.desktopEnabled?"sm:visible":"sm:invisible"}"
1039
- position="${n}"
1040
- text="${this.config.tryItOut?.text||""}"></mw-try-it-out>`:E}
1932
+ <!-- show "Try it out" if enabled (even if the chat window is showing) -->
1933
+ ${this.config?.tryItOut?.mobileEnabled||this.config?.tryItOut?.desktopEnabled?d`<mw-try-it-out
1934
+ class="${this.config?.tryItOut?.mobileEnabled?"visible":"invisible"} ${this.config?.tryItOut?.desktopEnabled?"sm:visible":"sm:invisible"}"
1935
+ position="${n}"
1936
+ text="${this.config.tryItOut?.text||""}"></mw-try-it-out>`:M}
1041
1937
 
1042
- <!-- On first render, do not render the dialog, so it does not connect to backend. Once it's rendered once, it's never removed from the DOM. -->
1043
- ${a(this,Je)?h`
1044
- <div
1045
- class="${a(this,N)?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3"} ${i} fixed inset-0 z-[2147483647] bg-white font-sans text-[16px] leading-normal text-gray-800 shadow-2xl transition-all sm:bottom-[1.5rem] sm:top-auto sm:h-[92%] sm:max-h-[800px] sm:w-[calc(100dvh*0.50)] sm:min-w-[300px] sm:max-w-[400px] sm:rounded-[36px] 2xl:max-w-[420px]">
1046
- <mw-chat
1047
- widget="${this.widgetId}"
1048
- .config="${this.config}"
1049
- .callbacks="${a(this,xi)}"
1050
- .xUserData="${this.xUserData}"
1051
- .xCustomInstructions="${this.xCustomInstructions}"
1052
- ?show-close="${!0}"
1053
- @mw:close-click="${g(this,T,mu)}">
1054
- <slot name="banner" slot="banner"></slot>
1055
- </mw-chat>
1056
- </div>
1057
- `:E}
1058
- `}get isPopupEnabled(){return Ys()?!!this.config?.popup?.desktopEnabled:!!this.config?.popup?.mobileEnabled}updated(){a(this,N)&&a(this,T,Xr)?.hide()}firstUpdated(){Ys()&&pe.molin_widget_open_state?.isOpen&&!a(this,N)&&(m(this,N,!0),m(this,Je,!0),this.requestUpdate())}openChat({message:r,autoSend:n=!1}={}){if(a(this,N)){g(this,T,to).call(this,{message:r,autoSend:n});return}m(this,N,!0),m(this,Je,!0),this.requestUpdate(),g(this,T,Qt).call(this,!0),a(this,T,Xr)?.hide(),setTimeout(()=>{g(this,T,to).call(this,{message:r,autoSend:n})},200),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:a(this,N)?"open":"close"})}closeChat(){a(this,N)&&(m(this,N,!1),this.requestUpdate(),g(this,T,Qt).call(this,!1),a(this,T,Xr)?.hide(),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:a(this,N)?"open":"close"}))}showLauncher(){let r=mi();r.hidden=!1,this.requestUpdate(),F("ShopAssistant: called show launcher",{widgetId:this.widgetId,source:"programmatic-method"})}hideLauncher(){let r=mi();r.hidden=!0,this.requestUpdate(),F("ShopAssistant: called hide launcher",{widgetId:this.widgetId,source:"programmatic-method"})}injectConfig(r){m(this,Kr,r),this.requestUpdate()}reset(){this.xUserData={},this.xCustomInstructions="",a(this,T,Yt)?.reset(),this.requestUpdate()}};bi=new WeakMap,Kr=new WeakMap,ro=new WeakMap,N=new WeakMap,Je=new WeakMap,xi=new WeakMap,T=new WeakSet,fu=function(){return typeof this.config?.bubble?.zIndex=="number"?this.config.bubble.zIndex:2147483647},Xr=function(){return this.renderRoot.querySelector("mw-popup")},Yt=function(){return this.renderRoot.querySelector("mw-chat")},hu=function(){m(this,N,!0),m(this,Je,!0),this.requestUpdate(),g(this,T,Qt).call(this,!0),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"popup-click",state:a(this,N)?"open":"close"})},du=function(){m(this,N,!a(this,N)),m(this,Je,!0),this.requestUpdate(),g(this,T,Qt).call(this,a(this,N)),a(this,T,Xr)?.hide(),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"bubble-toggle",state:a(this,N)?"open":"close"})},mu=function(){m(this,N,!1),this.requestUpdate(),g(this,T,Qt).call(this,!1),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"top-right-close-button",state:a(this,N)?"open":"close"})},to=function({message:r,autoSend:n=!1}={}){if(!r)return;g(this,T,yu).call(this,r);let i=!a(this,T,Yt)?.isLiveChatMode;i&&this.reset(),n&&i&&g(this,T,gu).call(this,r).catch(console.warn)},gu=async function(r){let n=a(this,T,Yt);if(!n){console.warn("Chat element not found, cannot send message");return}n.sendMessage?await n.sendMessage(r):console.warn("Chat element does not have sendMessage method")},yu=function(r){let n=a(this,T,Yt);if(!n){console.warn("Chat element not found, cannot set input value");return}n.setInputValue?n.setInputValue(r):console.warn("Chat element does not have setInputValue method")},Qt=function(r){pe.molin_widget_open_state={isOpen:r}},y(xe,"styles",re`
1938
+ <!-- On first render, do not render the dialog, so it does not connect to backend. Once it's rendered once, it's never removed from the DOM. -->
1939
+ <div
1940
+ class="${a(this,V)?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3"} ${i} fixed inset-0 z-[2147483647] bg-white font-sans text-[16px] leading-normal text-gray-800 shadow-2xl transition-all sm:bottom-[1.5rem] sm:top-auto sm:h-[92%] sm:max-h-[800px] sm:w-[calc(100dvh*0.50)] sm:min-w-[300px] sm:max-w-[400px] sm:rounded-[36px] 2xl:max-w-[420px]">
1941
+ <mw-chat ?show-close="${!0}" @mw:close-click="${y(this,O,kc)}">
1942
+ <slot name="banner" slot="banner"></slot>
1943
+ </mw-chat>
1944
+ </div>
1945
+
1946
+ <!-- Floating input only visible when enabled, in center, on desktop only -->
1947
+ ${this.config?.floatingAskAI?.enabled&&a(this,O,Go)?d`
1948
+ <mw-floating-ask-ai
1949
+ ?dark="${this.config?.floatingAskAI?.darkMode}"
1950
+ .color="${this.config.color||this.config?.bubble?.color}"
1951
+ .placeholder="${this.config?.floatingAskAI?.placeholder}"
1952
+ class="${!a(this,V)&&this._floatingInputVisible?"opacity-100 translate-y-0":"opacity-0 translate-y-full"} fixed left-1/2 z-[${a(this,O,Zo)}] hidden -translate-x-1/2 transition-all duration-300 ease-in-out max-md:hidden sm:block"
1953
+ style="bottom: ${this.config.bubble.position.bottom||"1.5rem"}"
1954
+ @mw-floating-ask-ai:submit="${a(this,is)}"></mw-floating-ask-ai>
1955
+ `:M}
1956
+ </mw-context-widget>
1957
+ `}get isPopupEnabled(){return Fo()?!!this.config?.popup?.desktopEnabled:!!this.config?.popup?.mobileEnabled}updated(){a(this,V)&&a(this,O,Mn)?.hide()}firstUpdated(){Fo()&&de.molin_widget_open_state?.isOpen&&!a(this,V)&&(m(this,V,!0),m(this,Be,!0),this.requestUpdate())}openChat({message:r,autoSend:n=!1}={}){if(a(this,V)){y(this,O,Ko).call(this,{message:r,autoSend:n});return}let i=a(this,O,Jo);i&&typeof i.connect=="function"&&i.connect(),m(this,V,!0),m(this,Be,!0),this.requestUpdate(),y(this,O,Mt).call(this,!0),a(this,O,Mn)?.hide(),setTimeout(()=>{y(this,O,Ko).call(this,{message:r,autoSend:n})},200),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:a(this,V)?"open":"close"})}closeChat(){a(this,V)&&(m(this,V,!1),this._floatingInputVisible=!0,this.requestUpdate(),y(this,O,Mt).call(this,!1),a(this,O,Mn)?.hide(),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:a(this,V)?"open":"close"}))}showLauncher(){let r=Ki();r.hidden=!1,this.requestUpdate(),F("ShopAssistant: called show launcher",{widgetId:this.widgetId,source:"programmatic-method"})}hideLauncher(){let r=Ki();r.hidden=!0,this.requestUpdate(),F("ShopAssistant: called hide launcher",{widgetId:this.widgetId,source:"programmatic-method"})}injectConfig(r){m(this,In,r),this.requestUpdate()}reset(){this.xUserData={},this.xCustomInstructions="",a(this,O,At)?.reset(),this.requestUpdate()}};rs=new WeakMap,Qo=new WeakMap,In=new WeakMap,ea=new WeakMap,V=new WeakMap,Be=new WeakMap,ns=new WeakMap,O=new WeakSet,Zo=function(){return typeof this.config?.bubble?.zIndex=="number"?this.config.bubble.zIndex:2147483647},Go=function(){return this.config?.floatingAskAI?.enabled||!0},Mn=function(){return this.renderRoot.querySelector("mw-popup")},At=function(){return this.renderRoot.querySelector("mw-chat")},Jo=function(){return this.renderRoot.querySelector("mw-context-widget")},xc=function(){m(this,V,!0),m(this,Be,!0),this.requestUpdate(),y(this,O,Mt).call(this,!0),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"popup-click",state:a(this,V)?"open":"close"})},bc=function(){m(this,V,!a(this,V)),m(this,Be,!0),this.requestUpdate(),y(this,O,Mt).call(this,a(this,V)),a(this,O,Mn)?.hide(),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"bubble-toggle",state:a(this,V)?"open":"close"})},kc=function(){m(this,V,!1),this._floatingInputVisible=!0,this.requestUpdate(),y(this,O,Mt).call(this,!1),F("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"top-right-close-button",state:a(this,V)?"open":"close"})},is=new WeakMap,Ko=function({message:r,autoSend:n=!1}={}){if(!r)return;y(this,O,Yo).call(this,r);let i=!a(this,O,At)?.isLiveMode;i&&this.reset(),n&&i&&y(this,O,Xo).call(this,r).catch(console.warn)},Xo=async function(r){let n=a(this,O,At);if(!n){console.warn("Chat element not found, cannot send message");return}n.sendMessage?await n.sendMessage(r):console.warn("Chat element does not have sendMessage method")},Yo=function(r){let n=a(this,O,At);if(!n){console.warn("Chat element not found, cannot set input value");return}n.setInputValue?n.setInputValue(r):console.warn("Chat element does not have setInputValue method")},Mt=function(r){de.molin_widget_open_state={isOpen:r}},g($e,"styles",ie`
1059
1958
  :host {
1060
1959
  all: initial; /* reset all properties that can pierce the shadow DOM */
1061
1960
  }
1062
- `),y(xe,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1}});customElements.get("molin-shop-ai")||customElements.define("molin-shop-ai",xe);export{xe as MolinShopAI};
1961
+ `),g($e,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},xUserData:{type:Object,attribute:!1},xCustomInstructions:{type:String,attribute:!1},_floatingInputVisible:{type:Boolean,state:!0}});customElements.get("molin-shop-ai")||customElements.define("molin-shop-ai",$e);export{$e as MolinShopAI};
1063
1962
  /*! Bundled license information:
1064
1963
 
1065
1964
  @lit/reactive-element/css-tag.js: