@molin.ai/shop-ai 0.8.39 → 0.8.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/molin-shop-ai.min.js +133 -126
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
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),ge=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===ge)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!==ge&&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!==ge,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===ge&&(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)===ge)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 ge}};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=`
|
|
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 ${
|
|
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">
|
|
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 ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(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 wu=go,Mi=class extends on{resolveIcon(e){let r=wu[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",Mi);function Ni(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function bu(t,e=","){return t.map(Ni).join(e)}var Co=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function an(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 cn(t,e="@media "){return e+D(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(n=>`(${n}-width:${r[n]})`).join(" and "))).join(",")}function D(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function yo(t){return t}function pn(){}var W={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function $o(t){return t.match(/[-=:;]/g)?.length||0}function ji(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($o(t),15)<<18}var xu=["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 Vi({n:t,i:e,v:r=[]},n,i,s){t&&(t=Ni({n:t,i:e,v:r})),s=[...D(s)];for(let u of r){let a=n.theme("screens",u);for(let c of D(a&&cn(a)||n.v(u))){var o;s.push(c),i|=a?67108864|ji(c):u=="dark"?1073741824:c[0]=="@"?ji(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~xu.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:i,r:s,i:e}}var So=new Map;function Di(t){if(t.d){let e=[],r=Ii(t.r.reduce((n,i)=>i[0]=="@"?(e.push(i),n):i?Ii(n,s=>Ii(i,o=>{let u=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(u){let a=s.indexOf(u[1]);return~a?s.slice(0,a)+u[0]+s.slice(a+u[1].length):Li(s,o)}return Li(o,s)})):n,"&"),n=>Li(n,t.n?"."+Co(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((n,i)=>i+"{"+n+"}",t.d)}}function Ii(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,n,i)=>e(n)+i)}function Li(t,e){return t.replace(/&/g,e)}var vo=new Intl.Collator("en",{numeric:!0});function Eo(t,e){for(var r=0,n=t.length;r<n;){let i=n+r>>1;0>=_o(t[i],e)?r=i+1:n=i}return n}function _o(t,e){let r=t.p&W.o;return r==(e.p&W.o)&&(r==W.b||r==W.o)?0:t.p-e.p||t.o-e.o||vo.compare(wo(t.n),wo(e.n))||vo.compare(bo(t.n),bo(e.n))}function wo(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function bo(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function Ti(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(${[Ti(t.substr(1,s),o),Ti(t.substr(1+s,s),o),Ti(t.substr(1+2*s,s),o),i]})`}return i=="1"?t:i=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function Ao(t,e,r,n,i=[]){return function s(o,{n:u,p:a,r:c=[],i:f},p){let b=[],x="",k=0,A=0;for(let $ in o||{}){var I,j;let M=o[$];if($[0]=="@"){if(!M)continue;if($[1]=="a"){b.push(...Hi(u,a,un(""+M),p,a,c,f,!0));continue}if($[1]=="l"){for(let L of D(M))b.push(...s(L,{n:u,p:(I=W[$[7]],a&~W.o|I),r:$[7]=="d"?[]:c,i:f},p));continue}if($[1]=="i"){b.push(...D(M).map(L=>({p:-1,o:0,r:[],d:$+" "+L})));continue}if($[1]=="k"){b.push({p:W.d,o:0,r:[$],d:s(M,{p:W.d},p).map(Di).join("")});continue}if($[1]=="f"){b.push(...D(M).map(L=>({p:W.d,o:0,r:[$],d:s(L,{p:W.d},p).map(Di).join("")})));continue}}if(typeof M!="object"||Array.isArray(M))$=="label"&&M?u=M+an(JSON.stringify([a,f,o])):(M||M===0)&&($=$.replace(/[A-Z]/g,L=>"-"+L.toLowerCase()),A+=1,k=Math.max(k,(j=$)[0]=="-"?0:$o(j)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(j)?+!!RegExp.$1||-!!RegExp.$2:0)+1),x+=(x?";":"")+D(M).map(L=>p.s($,Fi(""+L,p.theme)+(f?" !important":""))).join(";"));else if($[0]=="@"||$.includes("&")){let L=a;$[0]=="@"&&($=$.replace(/\bscreen\(([^)]+)\)/g,(H,q)=>{let K=p.theme("screens",q);return K?(L|=67108864,cn(K,"")):H}),L|=ji($)),b.push(...s(M,{n:u,p:L,r:[...c,$],i:f},p))}else b.push(...s(M,{p:a,r:[...c,$]},p))}return b.unshift({n:u,p:a,o:Math.max(0,15-A)+1.5*Math.min(k||15,15),r:c,d:x}),b.sort(_o)}(t,Vi(e,r,n,i),r)}function Fi(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):""+D(u).filter(a=>Object(a)!==a)})}function Mo(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 ln(t,e,r=W.u,n,i){let s=[];for(let o of t)for(let u of function(a,c,f,p,b){a={...a,i:a.i||b};let x=function(k,A){let I=So.get(k.n);return I?I(k,A):A.r(k.n,k.v[0]=="dark")}(a,c);return x?typeof x=="string"?({r:p,p:f}=Vi(a,c,f,p),Mo(ln(un(x),c,f,p,a.i),a.n)):Array.isArray(x)?x.map(k=>{var A,I;return{o:0,...k,r:[...D(p),...D(k.r)],p:(A=f,I=k.p??f,A&~W.o|I)}}):Ao(x,a,c,f,p):[{c:Ni(a),p:0,o:0,r:[]}]}(o,e,r,n,i))s.splice(Eo(s,u),0,u);return s}function Hi(t,e,r,n,i,s,o,u){return Mo((u?r.flatMap(a=>ln([a],n,i,s,o)):ln(r,n,i,s,o)).map(a=>a.p&W.o&&(a.n||e==W.b)?{...a,p:a.p&~W.o|e,o:0}:a),t)}function ku(t,e,r,n){var i;return i=(s,o)=>{let{n:u,p:a,r:c,i:f}=Vi(s,o,e);return r&&Hi(u,e,r,o,a,c,f,n)},So.set(t,i),t}function Oi(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(Cu),i}))}}function Cu(t,e,r){return r.indexOf(t)==e}var xo=new Map;function un(t){let e=xo.get(t);if(!e){let r=[],n=[[]],i=0,s=0,o=null,u=0,a=(c,f=0)=>{i!=u&&(r.push(t.slice(i,u+f)),c&&Oi(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=="(")a(),r.push(c);else if(c==":")t[u+1]!=":"&&a(!1,1);else if(/[\s,)]/.test(c)){a(!0);let f=r.lastIndexOf("(");if(c==")"){let p=r[f-1];if(/[~@]$/.test(p)){let b=n.shift();r.length=f,Oi([...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);Oi([...r,ku(p.length>1?p.slice(0,-1)+an(JSON.stringify([p,b])):p+"("+bu(b)+")",W.a,b,/@$/.test(p))],n)}f=r.lastIndexOf("(",f-1)}r.length=f+1}else/[~@]/.test(c)&&t[u+1]=="("&&n.unshift([])}a(!0),xo.set(t,e=n[0])}return e}function v(t,e,r){return[t,Ri(e,r)]}function Ri(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,n)=>({[t]:e?e(r,n):Pi(r,1)}):r=>t||{[r[1]]:Pi(r,2)}}function Pi(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,Bi(e,r,n)]}function Bi(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=Io(t||i[1]),u=s.theme(o,i.$$)??ke(i.$$,o,s);if(u!=null)return i._=Pi(i,0,u),n(i,s,o)}}function Z(t,e={},r){return[t,$u(e,r)]}function $u(t={},e){return(r,n)=>{let{section:i=Io(r[0]).replace("-","")+"Color"}=t,[s,o]=Su(r.$$);if(!s)return;let u=n.theme(i,s)||ke(s,i,n);if(!u||typeof u=="object")return;let{opacityVariable:a=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:f=i,selector:p}=t,b=n.theme(c,o||"DEFAULT")||o&&ke(o,c,n),x=e||(({_:A})=>{let I=lr(f,A);return p?{[p]:I}:I});r._={value:fe(u,{opacityVariable:a||void 0,opacityValue:b||void 0}),color:A=>fe(u,A),opacityVariable:a||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:a||void 0,opacityValue:b||"1"}),color:I=>fe(A,I),opacityVariable:a||void 0,opacityValue:b||void 0},k={"&":k,[n.v("dark")]:x(r,n)})}return k}}function Su(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function lr(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 ke(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=wt(Fi(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 Io(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function wt(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",n,i="")=>wt(r)+n+wt(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 zi({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:D(e.variants),rules:D(e.rules),ignorelist:D(e.ignorelist),hash:void 0,stringify:(n,i)=>n+":"+i,finalize:[]};for(let n of D([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&&D(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:a,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,...D(i)],darkMode:s,darkColor:o,theme:{...r.theme,...u,extend:{...r.theme.extend,...u?.extend}},variants:[...r.variants,...D(a)],rules:[...r.rules,...D(c)],ignorelist:[...r.ignorelist,...D(f)],hash:p,stringify:b,finalize:[...r.finalize,...D(x)]}}return r}function ko(t,e,r,n,i,s){for(let o of e){let u=r.get(o);u||r.set(o,u=n(o));let a=u(t,i,s);if(a)return a}}function Eu(t){var e;return Ui(t[0],typeof(e=t[1])=="function"?e:()=>e)}function _u(t){var e,r;return Array.isArray(t)?Ui(t[0],Ri(t[1],t[2])):Ui(t,Ri(e,r))}function Ui(t,e){return Lo(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 Lo(t,e){let r=D(t).map(Au);return(n,i,s)=>{for(let o of r){let u=e(n,o,i,s);if(u)return u}}}function Au(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function To(t,e){let r=zi(t),n=function({theme:a,darkMode:c,darkColor:f=pn,variants:p,rules:b,hash:x,stringify:k,ignorelist:A,finalize:I}){let j=new Map,$=new Map,M=new Map,L=new Map,H=Lo(A,(O,Y)=>Y.test(O));p.push(["dark",Array.isArray(c)||c=="class"?`${D(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let q=typeof x=="function"?O=>x(O,an):x?an:yo;q!==yo&&I.push(O=>({...O,n:O.n&&q(O.n),d:O.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(Y,ne)=>"--"+q(ne).replace("#",""))}));let K={theme:function({extend:O={},...Y}){let ne={},yi={get colors(){return Je("colors")},theme:Je,negative(){return{}},breakpoints(B){let Q={};for(let oe in B)typeof B[oe]=="string"&&(Q["screen-"+oe]=B[oe]);return Q}};return Je;function Je(B,Q,oe,Yt){if(B){if({1:B,2:Yt}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(B)||[,B],/[.[]/.test(B)){let Ee=[];B.replace(/\[([^\]]+)\]|([^.[]+)/g,(Ke,er,su=er)=>Ee.push(su)),B=Ee.shift(),oe=Q,Q=Ee.join("-")}let xe=ne[B]||Object.assign(Object.assign(ne[B]={},Jr(Y,B)),Jr(O,B));if(Q==null)return xe;Q||(Q="DEFAULT");let Xe=xe[Q]??Q.split("-").reduce((Ee,Ke)=>Ee?.[Ke],xe)??oe;return Yt?fe(Xe,{opacityValue:Fi(Yt,Je)}):Xe}let Qt={};for(let xe of[...Object.keys(Y),...Object.keys(O)])Qt[xe]=Je(xe);return Qt}function Jr(B,Q){let oe=B[Q];return typeof oe=="function"&&(oe=oe(yi)),oe&&/color|fill|stroke/i.test(Q)?function Yt(Qt,xe=[]){let Xe={};for(let Ee in Qt){let Ke=Qt[Ee],er=[...xe,Ee];Xe[er.join("-")]=Ke,Ee=="DEFAULT"&&(er=xe,Xe[xe.join("-")]=Ke),typeof Ke=="object"&&Object.assign(Xe,Yt(Ke,er))}return Xe}(oe):oe}}(a),e:Co,h:q,s(O,Y){return k(O,Y,K)},d(O,Y,ne){return f(O,Y,K,ne)},v(O){return j.has(O)||j.set(O,ko(O,p,$,Eu,K)||"&:"+O),j.get(O)},r(O,Y){let ne=JSON.stringify([O,Y]);return M.has(ne)||M.set(ne,!H(O,K)&&ko(O,b,L,_u,K,Y)),M.get(ne)},f(O){return I.reduce((Y,ne)=>ne(Y,K),O)}};return K}(r),i=new Map,s=[],o=new Set;e.resume(a=>i.set(a,a),(a,c)=>{e.insert(a,s.length,c),s.push(c),o.add(a)});function u(a){let c=n.f(a),f=Di(c);if(f&&!o.has(f)){o.add(f);let p=Eo(s,a);e.insert(f,p,a),s.splice(p,0,a)}return c.n}return Object.defineProperties(function(c){if(!i.size)for(let p of D(r.preflight))typeof p=="function"&&(p=p(n)),p&&(typeof p=="string"?Hi("",W.b,un(p),n,W.b,[],!1,!0):Ao(p,{},n,W.b)).forEach(u);c=""+c;let f=i.get(c);if(!f){let p=new Set;for(let b of ln(un(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 a=e.snapshot(),c=new Set(o),f=new Map(i),p=[...s];return()=>{a(),o=c,i=f,s=p}},clear(){e.clear(),o=new Set,i=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function Mu(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function Oo(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&&Mu(o,s=t(o))&&i.setAttribute("class",s)}}function Iu(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 fn(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:Iu(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:pn}}var Lu=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 jo(t){return Lu.get(t)}function Do(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 Ro(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 Tu=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Po(){return({stringify:t})=>({stringify(e,r,n){let i="",s=jo(e);s&&(i+=t(s,r,n)+";");let o=Do(e),u=Ro(e,r);for(let a of Tu)o&a[1]&&(i+=t(a[0]+e,r,n)+";"),u&a[1]&&(i+=t(e,a[0]+r,n)+";");return i+t(e,r,n)}})}function No(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",Bi("lineClamp",({_:t})=>Uo(t))],["line-clamp-(\\d+)",({1:t})=>Uo(t)]]}}function Uo(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}var cr={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:T("blur"),backdropBrightness:T("brightness"),backdropContrast:T("contrast"),backdropGrayscale:T("grayscale"),backdropHueRotate:T("hueRotate"),backdropInvert:T("invert"),backdropOpacity:T("opacity"),backdropSaturate:T("saturate"),backdropSepia:T("sepia"),backgroundColor:T("colors"),backgroundImage:{none:"none"},backgroundOpacity:T("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:T("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:T("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:T("colors"),caretColor:T("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...ae(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:T("borderColor"),divideOpacity:T("borderOpacity"),divideWidth:T("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"),...ur(2,6),...ur(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:T("spacing"),gradientColorStops:T("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"),...ur(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...ur(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:T("spacing"),placeholderColor:T("colors"),placeholderOpacity:T("opacity"),outlineColor:T("colors"),outlineOffset:he(8,"px"),outlineWidth:he(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:T("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:T("spacing"),scrollPadding:T("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...he(2,"deg"),...he(12,"deg",3)},space:T("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:ae(2),textColor:T("colors"),textDecorationColor:T("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...he(8,"px")},textUnderlineOffset:{auto:"auto",...he(8,"px")},textIndent:T("spacing"),textOpacity:T("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:T("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"),...ur(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 ur(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 T(t){return({theme:e})=>e(t)}var Vo={"*,::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, ${cr.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, ${cr.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 Wo=[v("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:ke(`[${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 a=r[u];typeof a=="string"&&(s[cn(a)]={"&":{maxWidth:a,...o(u)}})}return s;function o(u){let a=i&&(typeof i=="string"?i:i[u]||i.DEFAULT);if(a)return{paddingRight:a,paddingLeft:a}}}),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",hn),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",Fo),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",zo),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",zo),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=>hn(Fo(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",Ho),v("(content|items|self)-",t=>({["align-"+t[1]]:Ho(t)})),v("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),w("p([xytrbl])?(?:$|-)","padding",bt("padding")),w("-?m([xytrbl])?(?:$|-)","margin",bt("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=D(t))[1]=="string"?{fontFamily:ye(t)}:{fontFamily:ye(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)",...De({"--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}})),Z("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"),Z("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"),Z("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"}),Z("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Z("accent-",{opacityVariable:!1,opacitySection:"opacity"}),v("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${nt(t," ")},var(--tw-gradient-stops))`),Z("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)"})),Z("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)`})),Z("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"),Z("bg-",{section:"backgroundColor"}),w("bg-","backgroundImage"),w("bg-","backgroundPosition"),v("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",hn),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-${nt(r[0])}-radius`]:e,[`border-${nt(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})=>({...De({"--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)"})),Z("border-([xytrbl])-",{section:"borderColor"},bt("border","Color")),Z("border-"),w("border-([xytrbl])(?:$|-)","borderWidth",bt("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-${nt(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${nt(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),Z("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),w("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Z("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),w("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),v("ring-inset",{"--tw-ring-inset":"inset"}),Z("ring-",{property:"--tw-ring-color"}),w("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...De({"--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)"})),Z("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),w("shadow(?:$|-)","boxShadow",({_:t})=>({...De({"--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":ye(t),"--tw-shadow-colored":ye(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"),...Bo(),...Bo("backdrop-"),w("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:ye(t),transitionTimingFunction:t._=="none"?void 0:ye(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:ye(e("transitionDuration",""))})),w("duration(?:$|-)","transitionDuration","transitionDuration",ye),w("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",ye),w("delay(?:$|-)","transitionDelay","transitionDelay",ye),w("animate(?:$|-)","animation",(t,{theme:e,h:r,e:n})=>{let i=ye(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",Wi),v("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":Zo(t=="gpu")})),w("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...Wi()})),w("-?(rotate)-","rotate",qi),w("-?(translate-[xy])-","translate",qi),w("-?(skew-[xy])-","skew",qi),v("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",hn),"(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})=>({...De({"--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",bt("scroll-padding")),w("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",bt("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})=>({...De({"--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)-"),Z("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"),Z("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Z("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 hn(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function Fo(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function nt(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 ye(t){return t&&""+(t._||t)}function Ho({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function bt(t,e=""){return({1:r,_:n})=>{let i={x:"lr",y:"tb"}[r]||r+r;return i?{...lr(t+"-"+nt(i[0])+e,n),...lr(t+"-"+nt(i[1])+e,n)}:lr(t+e,n)}}function Bo(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={...De(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}`]:D(s).map(o=>`${n}(${o})`).join(" "),...r})))]}function qi({1:t,_:e}){return{["--tw-"+t]:e,...Wi()}}function Wi(){return{...De({"--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":Zo()}),transform:"var(--tw-transform)"}}function Zo(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 zo({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function qo({1:t}){return`repeat(${t},minmax(0,1fr))`}function De(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var Go=[["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)||ke(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:n="",6:i=e},{e:s,h:o,v:u})=>{let a=wt(n)||(r[0]=="["?r:u(r.slice(1)));return`${(a.includes("&")?a:"&"+a).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)||ke(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)||ke(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=ke(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&wt(t).replace(/[}]+$/,"").split("{")]];function Jo({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:Vo,theme:{...cr,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:Go,rules:Wo,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 Ou={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},ju={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},Du={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Ru={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Pu={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Uu={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Nu={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Vu={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Fu={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Hu={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},Bu={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},zu={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},qu={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},Wu={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},Zu={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},Gu={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},Ju={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},Xu={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},Ku={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},Yu={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},Qu={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},ec={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},Xo={__proto__:null,slate:Ou,gray:ju,zinc:Du,neutral:Ru,stone:Pu,red:Uu,orange:Nu,amber:Vu,yellow:Fu,lime:Hu,green:Bu,emerald:zu,teal:qu,cyan:Wu,sky:Zu,blue:Gu,indigo:Ju,violet:Xu,purple:Ku,fuchsia:Yu,pink:Qu,rose:ec};function Ko({disablePreflight:t}={}){return Jo({colors:Xo,disablePreflight:t})}function ea({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,a)=>ta(t,o[0]=="."?"."+a.e(a.h(o.slice(1))):o,a,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=Qo(o.theme("fontSize",s));return u&&{"@layer components":u}}],[t+"-",({$$:s},o)=>i(s,o)],[t,(s,o)=>({...i(e,o),"@layer base":[Yo(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"}}),Yo(t,o,r)],"@layer components":{...Qo(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function i(s,o){let u={},a={},c=(f,p,b)=>{let x=o.theme(`colors.${s}.${p}`,p);b["--tw-prose-"+f]=fe(x);let k=b!=a&&o.d("colors",`${s}-${p}`,x);k&&(a["--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,a))}return Object.keys(u).length?{"@layer defaults":{"&":u,[o.v("dark")]:a}}:void 0}}function Yo(t,e,r){let n={};for(let i in r)n[ta(t,i,e,s=>`.${e.e(e.h(t))}${s}`)]=r[i];return n}function ta(t,e,{e:r,h:n},i){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",u=s,a="")=>i(`${o}:where(${u}):not(:where(.${r(n("not-"+t))} *))${a}`))}function Qo(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 Zi=zi({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:[Ko(),Po(),No(),ea()]});function ra(t,e=!0){let r=function(){if(tc)try{let a=fn(new CSSStyleSheet);return a.connect=c=>{let f=Gi(c);f.adoptedStyleSheets=[...f.adoptedStyleSheets,a.target]},a.disconnect=pn,a}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[fn(s)],u=new WeakMap;return{get target(){return o[0].target},snapshot(){let a=o.map(c=>c.snapshot());return()=>a.forEach(c=>c())},clear(){o.forEach(a=>a.clear())},destroy(){o.forEach(a=>a.destroy())},insert(a,c,f){o[0].insert(a,c,f);let p=this.target.cssRules[c];o.forEach((b,x)=>x&&b.target.insertRule(p.cssText,c))},resume(a,c){return o[0].resume(a,c)},connect(a){let c=document.createElement("style");Gi(a).appendChild(c);let f=fn(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(a,f)},disconnect(a){let c=o.indexOf(u.get(a));c>=0&&o.splice(c,1)}}}(),n=To({...t,hash:t.hash??e},r),i=Oo(n);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),i.observe(Gi(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...a){super(...a),this.tw=n}}}}var tc=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function Gi(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var _=t=>ra(Zi)(t);var pr=class extends _(S){constructor(){super();g(this,"render",()=>h`
|
|
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:ye(t)}:{fontFamily:ye(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":ye(t),"--tw-shadow-colored":ye(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:ye(t),transitionTimingFunction:t._=="none"?void 0:ye(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:ye(e("transitionDuration",""))})),w("duration(?:$|-)","transitionDuration","transitionDuration",ye),w("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",ye),w("delay(?:$|-)","transitionDelay","transitionDelay",ye),w("animate(?:$|-)","animation",(t,{theme:e,h:r,e:n})=>{let i=ye(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 ye(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`
|
|
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]">
|
|
@@ -177,7 +177,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(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"}};
|
|
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`
|
|
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,9 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
194
194
|
transform: rotate(360deg);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
`);customElements.get("mw-bubble")||customElements.define("mw-bubble",
|
|
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},ve=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),ge}});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`
|
|
198
198
|
<div class="flex h-full w-full flex-1 flex-col overflow-y-auto px-4 pb-2 pt-6">
|
|
199
|
-
${
|
|
199
|
+
${dr(this.examples.title,()=>h`
|
|
200
200
|
<h2 class="mt-14 px-2 pb-2 pt-9 text-left text-3xl font-bold leading-tight tracking-tight">
|
|
201
201
|
<span>${this.examples.title}</span>
|
|
202
202
|
<svg class="inline-block h-9 w-9 align-middle" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 58 61">
|
|
@@ -211,14 +211,14 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
211
211
|
${ve(this.examples.items,r=>r,r=>h`
|
|
212
212
|
<li
|
|
213
213
|
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="${()=>
|
|
214
|
+
@click="${()=>g(this,bn,ma).call(this,r)}">
|
|
215
215
|
<span>${r.trim()}</span>
|
|
216
216
|
</li>
|
|
217
217
|
`)}
|
|
218
218
|
</ul>
|
|
219
219
|
`:E}
|
|
220
220
|
</div>
|
|
221
|
-
`}};
|
|
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`
|
|
222
222
|
<div class="relative z-10 h-12">
|
|
223
223
|
<div class="gradient-blur absolute inset-x-0.5 mt-2 h-12"></div>
|
|
224
224
|
|
|
@@ -241,7 +241,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
241
241
|
<div class="flex-grow"></div>
|
|
242
242
|
|
|
243
243
|
<!-- new chat btn -->
|
|
244
|
-
<button @click=${
|
|
244
|
+
<button @click=${g(this,Et,ga)} type="button" class="${this.showNewChat?"inline-flex":"hidden"} shrink-0">
|
|
245
245
|
<!-- svg icon of a bubble with a plus -->
|
|
246
246
|
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 37 36">
|
|
247
247
|
<path
|
|
@@ -253,7 +253,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
253
253
|
</button>
|
|
254
254
|
|
|
255
255
|
<!-- close chat btn -->
|
|
256
|
-
<button @click=${
|
|
256
|
+
<button @click=${g(this,Et,ya)} class="${this.showClose?"inline-flex":"hidden"} shrink-0">
|
|
257
257
|
<!-- svg icon of an X -->
|
|
258
258
|
<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
259
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
|
@@ -268,7 +268,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
268
268
|
</div>
|
|
269
269
|
</div>
|
|
270
270
|
</div>
|
|
271
|
-
`}}
|
|
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`
|
|
272
272
|
/* blurred background */
|
|
273
273
|
|
|
274
274
|
.gradient-blur {
|
|
@@ -280,40 +280,46 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
280
280
|
/* bg-color gradient */
|
|
281
281
|
background-image: linear-gradient(to bottom, white 20%, transparent);
|
|
282
282
|
}
|
|
283
|
-
`);var
|
|
284
|
-
<form @submit="${
|
|
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)]">
|
|
285
285
|
<textarea
|
|
286
286
|
name="input"
|
|
287
|
-
@input="${
|
|
288
|
-
@keydown="${
|
|
287
|
+
@input="${g(this,X,xa)}"
|
|
288
|
+
@keydown="${g(this,X,wa)}"
|
|
289
289
|
autofocus
|
|
290
290
|
?disabled="${this.disabled}"
|
|
291
291
|
placeholder="${this.placeholder}"
|
|
292
|
-
class="box-content h-[${
|
|
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>
|
|
293
293
|
|
|
294
|
-
<button type="submit" ?disabled="${this.disabled}" class="mx-1 px-2 transition-opacity duration-200 hover:opacity-80">
|
|
294
|
+
<button type="submit" ?disabled="${this.disabled||this.loading}" class="mx-1 px-2 transition-opacity duration-200 hover:opacity-80">
|
|
295
295
|
${this.streaming?h`
|
|
296
296
|
<!-- x -->
|
|
297
297
|
<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
298
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
|
299
299
|
</svg>
|
|
300
|
-
`:h`
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
300
|
+
`:this.loading?h`
|
|
301
|
+
<!-- loading spinner -->
|
|
302
|
+
<svg class="h-6 w-6 animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
303
|
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="#312E30" stroke-width="4"></circle>
|
|
304
|
+
<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
|
+
</svg>
|
|
306
|
+
`:h`
|
|
307
|
+
<!-- airplane -->
|
|
308
|
+
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 35 34">
|
|
309
|
+
<path
|
|
310
|
+
stroke="#312E30"
|
|
311
|
+
stroke-linecap="round"
|
|
312
|
+
stroke-linejoin="round"
|
|
313
|
+
stroke-width="2.5"
|
|
314
|
+
d="M33 16.99a1.07 1.07 0 0 0-.589-.955L5.107 2.22a2.162 2.162 0 0 0-2.515.447 2.141 2.141 0 0 0-.318 2.524L9.537 16.99 2.274 28.808a2.138 2.138 0 0 0 .318 2.524 2.157 2.157 0 0 0 2.515.447l27.304-13.832A1.075 1.075 0 0 0 33 16.99Zm0 0H9.53" />
|
|
315
|
+
</svg>
|
|
316
|
+
`}
|
|
311
317
|
</button>
|
|
312
318
|
</form>
|
|
313
319
|
<slot>
|
|
314
320
|
<div class="h-5 w-full"></div>
|
|
315
321
|
</slot>
|
|
316
|
-
`}};
|
|
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`
|
|
317
323
|
<div class="ml-20 flex justify-end font-sans text-base">
|
|
318
324
|
<div class="max-w-full">
|
|
319
325
|
<!-- include an invisible border (same color as background) so that this message is the same height as the bot message -->
|
|
@@ -349,7 +355,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
349
355
|
</div>
|
|
350
356
|
</div>
|
|
351
357
|
</div>
|
|
352
|
-
`;default:throw new Error(`Unknown side: ${this.side}`)}}};
|
|
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`
|
|
353
359
|
<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">
|
|
354
360
|
<circle fill="currentFill" stroke="none" cx="27" cy="50" r="6">
|
|
355
361
|
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1" />
|
|
@@ -361,11 +367,11 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
361
367
|
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3" />
|
|
362
368
|
</circle>
|
|
363
369
|
</svg>
|
|
364
|
-
`)}};customElements.get("mw-loading")||customElements.define("mw-loading",
|
|
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`
|
|
365
371
|
<p class="flex items-center justify-center whitespace-nowrap text-xs">
|
|
366
372
|
<span>Powered by</span>
|
|
367
373
|
|
|
368
|
-
<a href="${
|
|
374
|
+
<a href="${vc}" target="_blank" class="inline-flex items-center underline">
|
|
369
375
|
<svg class="mx-1 inline-block h-4 w-4" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
370
376
|
<circle cx="10.0361" cy="10.0361" r="10.0361" fill="#242038" />
|
|
371
377
|
<path
|
|
@@ -384,7 +390,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
384
390
|
<span>Molin AI</span>
|
|
385
391
|
</a>
|
|
386
392
|
</p>
|
|
387
|
-
`)}};customElements.get("mw-powered-by")||customElements.define("mw-powered-by",
|
|
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`
|
|
388
394
|
<div class="relative h-full w-full overflow-hidden rounded-lg">
|
|
389
395
|
<!-- use the same icon as for missing image url as the background behind the image so there is no flicker while it's loading -->
|
|
390
396
|
<div class="absolute inset-0 flex items-center justify-center bg-gray-100">
|
|
@@ -399,7 +405,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
399
405
|
|
|
400
406
|
<!-- absolute position to take the height of the parent and to appear on top of the shopping bag background -->
|
|
401
407
|
<div class="absolute inset-0 flex h-full w-full bg-gray-100">
|
|
402
|
-
${
|
|
408
|
+
${a(this,at)&&a(this,yr)?h`
|
|
403
409
|
<!-- missing image url -->
|
|
404
410
|
<div class="flex h-full w-full items-center justify-center">
|
|
405
411
|
<!-- shopping bag icon -->
|
|
@@ -410,26 +416,26 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
410
416
|
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" />
|
|
411
417
|
</svg>
|
|
412
418
|
</div>
|
|
413
|
-
`:
|
|
419
|
+
`:a(this,at)?h`
|
|
414
420
|
<!-- 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 -->
|
|
415
421
|
<img
|
|
416
|
-
@error="${()=>{m(this,
|
|
417
|
-
@load="${()=>{m(this,
|
|
422
|
+
@error="${()=>{m(this,yr,!0),this.requestUpdate()}}"
|
|
423
|
+
@load="${()=>{m(this,lt,!0),this.requestUpdate()}}"
|
|
418
424
|
src="${this.src}"
|
|
419
|
-
class="${
|
|
425
|
+
class="${a(this,lt)?"bg-white":""} h-full w-full object-contain"
|
|
420
426
|
loading="lazy" />
|
|
421
427
|
`:h`
|
|
422
428
|
<!-- Cloudflare Images: resize the source image -->
|
|
423
429
|
<!-- 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 -->
|
|
424
430
|
<img
|
|
425
|
-
@error="${()=>{m(this,
|
|
426
|
-
@load="${()=>{m(this,
|
|
431
|
+
@error="${()=>{m(this,at,!0),this.requestUpdate()}}"
|
|
432
|
+
@load="${()=>{m(this,lt,!0),this.requestUpdate()}}"
|
|
427
433
|
src="https://molin.ai/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=1/${this.src}"
|
|
428
434
|
srcset="
|
|
429
435
|
https://molin.ai/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=1/${this.src} 1x,
|
|
430
436
|
https://molin.ai/cdn-cgi/image/w=70,fit=crop,format=auto,quality=75,dpr=2/${this.src} 2x
|
|
431
437
|
"
|
|
432
|
-
class="${
|
|
438
|
+
class="${a(this,lt)?"bg-white":""} h-full w-full object-contain"
|
|
433
439
|
loading="lazy" />
|
|
434
440
|
`}
|
|
435
441
|
</div>
|
|
@@ -447,17 +453,17 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
447
453
|
</svg>
|
|
448
454
|
</div>
|
|
449
455
|
</div>
|
|
450
|
-
`}};
|
|
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`
|
|
451
457
|
<a
|
|
452
|
-
href="${
|
|
453
|
-
title="${
|
|
458
|
+
href="${$e(this.trackedProductUrl)}"
|
|
459
|
+
title="${$e(e)}"
|
|
454
460
|
class="group flex w-full max-w-md cursor-pointer gap-[10px] overflow-hidden rounded-lg"
|
|
455
461
|
target="${this.linksNewTab?"_blank":"_self"}"
|
|
456
462
|
?disabled="${this.streaming}">
|
|
457
463
|
${this.streaming?h`
|
|
458
464
|
<!-- shimmer -->
|
|
459
465
|
<div class="h-[70px] w-[70px] animate-pulse overflow-hidden rounded-lg bg-gray-200"></div>
|
|
460
|
-
`:h`<mw-product-thumbnail class="block h-[70px] w-[70px]" src="${
|
|
466
|
+
`:h`<mw-product-thumbnail class="block h-[70px] w-[70px]" src="${$e(s)}"></mw-product-thumbnail>`}
|
|
461
467
|
|
|
462
468
|
<div class="flex flex-1 flex-col justify-between">
|
|
463
469
|
<div>
|
|
@@ -473,7 +479,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
473
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>`}
|
|
474
480
|
</div>
|
|
475
481
|
</a>
|
|
476
|
-
`}};g(xn,"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",xn);function kn(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 Cn=function(){},Et=function(){};var gr=(t,e,r)=>Math.min(Math.max(r,t),e);var as=.001,oc=.01,ga=10,ac=.05,lc=1;function ya({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;Cn(t<=ga*1e3,"Spring duration must be 10 seconds or less");let o=1-e;o=gr(ac,lc,o),t=gr(oc,ga,t/1e3),o<1?(i=c=>{let f=c*o,p=f*t,b=f-r,x=$n(c,o),k=Math.exp(-p);return as-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=$n(Math.pow(c,2),o);return(-i(c)+as>0?-1:1)*((b-x)*k)/A}):(i=c=>{let f=Math.exp(-c*t),p=(c-r)*t+1;return-as+f*p},s=c=>{let f=Math.exp(-c*t),p=(r-c)*(t*t);return f*p});let u=5/t,a=cc(i,s,u);if(t=t*1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{let c=Math.pow(a,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:t}}}var uc=12;function cc(t,e,r){let n=r;for(let i=1;i<uc;i++)n=n-t(n)/e(n);return n}function $n(t,e){return t*Math.sqrt(1-e*e)}var pc=["duration","bounce"],fc=["stiffness","damping","mass"];function va(t,e){return e.some(r=>t[r]!==void 0)}function hc(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!va(t,fc)&&va(t,pc)){let r=ya(t);e=Object.assign(Object.assign(Object.assign({},e),r),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function Sn(t){var{from:e=0,to:r=1,restSpeed:n=2,restDelta:i}=t,s=kn(t,["from","to","restSpeed","restDelta"]);let o={done:!1,value:e},{stiffness:u,damping:a,mass:c,velocity:f,duration:p,isResolvedFromDuration:b}=hc(s),x=wa,k=wa;function A(){let I=f?-(f/1e3):0,j=r-e,$=a/(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=$n(M,$);x=H=>{let q=Math.exp(-$*M*H);return r-q*((I+$*M*j)/L*Math.sin(L*H)+j*Math.cos(L*H))},k=H=>{let q=Math.exp(-$*M*H);return $*M*q*(Math.sin(L*H)*(I+$*M*j)/L+j*Math.cos(L*H))-q*(Math.cos(L*H)*(I+$*M*j)-L*j*Math.sin(L*H))}}else if($===1)x=L=>r-Math.exp(-M*L)*(j+(I+M*j)*L);else{let L=M*Math.sqrt($*$-1);x=H=>{let q=Math.exp(-$*M*H),K=Math.min(L*H,300);return r-q*((I+$*M*j)*Math.sinh(K)+L*j*Math.cosh(K))/L}}}return A(),{next:I=>{let j=x(I);if(b)o.done=I>=p;else{let $=k(I)*1e3,M=Math.abs($)<=n,L=Math.abs(r-j)<=i;o.done=M&&L}return o.value=o.done?r:j,o},flipTarget:()=>{f=-f,[e,r]=[r,e],A()}}}Sn.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";var wa=t=>0;var ls=(t,e,r)=>{let n=e-t;return n===0?1:(r-t)/n};var _t=(t,e,r)=>-r*t+r*e+t;var En=(t,e)=>r=>Math.max(Math.min(r,e),t),Pe=t=>t%1?Number(t.toFixed(5)):t,At=/(-)?([\d]*\.?[\d])+/g,_n=/(#[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,ba=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ie(t){return typeof t=="string"}var Mt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},An=Object.assign(Object.assign({},Mt),{transform:En(0,1)}),Xf=Object.assign(Object.assign({},Mt),{default:1});var yr=t=>({test:e=>Ie(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Qf=yr("deg"),It=yr("%"),e0=yr("px"),t0=yr("vh"),r0=yr("vw"),n0=Object.assign(Object.assign({},It),{parse:t=>It.parse(t)/100,transform:t=>It.transform(t*100)});var Lt=(t,e)=>r=>!!(Ie(r)&&ba.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),Mn=(t,e,r)=>n=>{if(!Ie(n))return n;let[i,s,o,u]=n.match(At);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}};var Ce={test:Lt("hsl","hue"),parse:Mn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+It.transform(Pe(e))+", "+It.transform(Pe(r))+", "+Pe(An.transform(n))+")"};var dc=En(0,255),In=Object.assign(Object.assign({},Mt),{transform:t=>Math.round(dc(t))}),de={test:Lt("rgb","red"),parse:Mn("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+In.transform(t)+", "+In.transform(e)+", "+In.transform(r)+", "+Pe(An.transform(n))+")"};function mc(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 Tt={test:Lt("#"),parse:mc,transform:de.transform};var Ue={test:t=>de.test(t)||Tt.test(t)||Ce.test(t),parse:t=>de.test(t)?de.parse(t):Ce.test(t)?Ce.parse(t):Tt.parse(t),transform:t=>Ie(t)?t:t.hasOwnProperty("red")?de.transform(t):Ce.transform(t)};var xa="${c}",ka="${n}";function gc(t){var e,r,n,i;return isNaN(t)&&Ie(t)&&((r=(e=t.match(At))===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)+((i=(n=t.match(_n))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function Ca(t){typeof t=="number"&&(t=`${t}`);let e=[],r=0,n=t.match(_n);n&&(r=n.length,t=t.replace(_n,xa),e.push(...n.map(Ue.parse)));let i=t.match(At);return i&&(t=t.replace(At,ka),e.push(...i.map(Mt.parse))),{values:e,numColors:r,tokenised:t}}function $a(t){return Ca(t).values}function Sa(t){let{values:e,numColors:r,tokenised:n}=Ca(t),i=e.length;return s=>{let o=n;for(let u=0;u<i;u++)o=o.replace(u<r?xa:ka,u<r?Ue.transform(s[u]):Pe(s[u]));return o}}var yc=t=>typeof t=="number"?0:t;function vc(t){let e=$a(t);return Sa(t)(e.map(yc))}var Ln={test:gc,parse:$a,createTransformer:Sa,getAnimatableNone:vc};function us(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 cs({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,a=2*r-u;i=us(a,u,t+1/3),s=us(a,u,t),o=us(a,u,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}var wc=(t,e,r)=>{let n=t*t,i=e*e;return Math.sqrt(Math.max(0,r*(i-n)+n))},bc=[Tt,de,Ce],Ea=t=>bc.find(e=>e.test(t)),_a=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,Tn=(t,e)=>{let r=Ea(t),n=Ea(e);Et(!!r,_a(t)),Et(!!n,_a(e));let i=r.parse(t),s=n.parse(e);r===Ce&&(i=cs(i),r=de),n===Ce&&(s=cs(s),n=de);let o=Object.assign({},i);return u=>{for(let a in o)a!=="alpha"&&(o[a]=wc(i[a],s[a],u));return o.alpha=_t(i.alpha,s.alpha,u),r.transform(o)}};var Aa=t=>typeof t=="number";var xc=(t,e)=>r=>e(t(r)),On=(...t)=>t.reduce(xc);function Ia(t,e){return Aa(t)?r=>_t(t,e,r):Ue.test(t)?Tn(t,e):fs(t,e)}var ps=(t,e)=>{let r=[...t],n=r.length,i=t.map((s,o)=>Ia(s,e[o]));return s=>{for(let o=0;o<n;o++)r[o]=i[o](s);return r}},La=(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]=Ia(t[i],e[i]));return i=>{for(let s in n)r[s]=n[s](i);return r}};function Ma(t){let e=Ln.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 fs=(t,e)=>{let r=Ln.createTransformer(e),n=Ma(t),i=Ma(e);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?On(ps(n.parsed,i.parsed),r):(Cn(!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 kc=(t,e)=>r=>_t(t,e,r);function Cc(t){if(typeof t=="number")return kc;if(typeof t=="string")return Ue.test(t)?Tn:fs;if(Array.isArray(t))return ps;if(typeof t=="object")return La}function $c(t,e,r){let n=[],i=r||Cc(t[0]),s=t.length-1;for(let o=0;o<s;o++){let u=i(t[o],t[o+1]);if(e){let a=Array.isArray(e)?e[o]:e;u=On(a,u)}n.push(u)}return n}function Sc([t,e],[r]){return n=>r(ls(t,e,n))}function Ec(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 a=1;for(;a<r&&!(t[a]>i||a===n);a++);s=a-1}let u=ls(t[s],t[s+1],i);return e[s](u)}}function jn(t,e,{clamp:r=!0,ease:n,mixer:i}={}){let s=t.length;Et(s===e.length,"Both input and output ranges must be the same length"),Et(!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=$c(e,n,i),u=s===2?Sc(t,o):Ec(t,o);return r?a=>u(gr(t[0],t[s-1],a)):u}var vr=t=>e=>1-t(1-e),Dn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ta=t=>e=>Math.pow(e,t),hs=t=>e=>e*e*((t+1)*e-t),Oa=t=>{let e=hs(t);return r=>(r*=2)<1?.5*e(r):.5*(2-Math.pow(2,-10*(r-1)))};var ja=1.525,_c=4/11,Ac=8/11,Mc=9/10;var Da=Ta(2),oh=vr(Da),Ra=Dn(Da),Ic=t=>1-Math.sin(Math.acos(t)),Lc=vr(Ic),ah=Dn(Lc),Pa=hs(ja),lh=vr(Pa),uh=Dn(Pa),ch=Oa(ja),Tc=4356/361,Oc=35442/1805,jc=16061/1805,Dc=t=>{if(t===1||t===0)return t;let e=t*t;return t<_c?7.5625*e:t<Ac?9.075*e-9.9*t+3.4:t<Mc?Tc*e-Oc*t+jc:10.8*t*t-20.52*t+10.72},ph=vr(Dc);function Rc(t,e){return t.map(()=>e||Ra).splice(0,t.length-1)}function Pc(t){let e=t.length;return t.map((r,n)=>n!==0?n/(e-1):0)}function Uc(t,e){return t.map(r=>r*e)}function wr({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=Uc(n&&n.length===o.length?n:Pc(o),i);function a(){return jn(u,o,{ease:Array.isArray(r)?r:Rc(o,r)})}let c=a();return{next:f=>(s.value=c(f),s.done=f>=i,s),flipTarget:()=>{o.reverse(),c=a()}}}function Ua({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,a=e+u,c=s===void 0?a:s(a);return c!==a&&(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 Na={keyframes:wr,spring:Sn,decay:Ua};function Va(t){if(Array.isArray(t.to))return wr;if(Na[t.type])return Na[t.type];let e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?wr:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Sn:wr}var ds=16.666666666666668,Nc=typeof performance<"u"?()=>performance.now():()=>Date.now(),ms=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(Nc()),ds);function Fa(t){let e=[],r=[],n=0,i=!1,s=!1,o=new WeakSet,u={schedule:(a,c=!1,f=!1)=>{let p=f&&i,b=p?e:r;return c&&o.add(a),b.indexOf(a)===-1&&(b.push(a),p&&i&&(n=e.length)),a},cancel:a=>{let c=r.indexOf(a);c!==-1&&r.splice(c,1),o.delete(a)},process:a=>{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(a),o.has(f)&&(u.schedule(f),t())}i=!1,s&&(s=!1,u.process(a))}};return u}var Vc=40,gs=!0,xr=!1,ys=!1,br={delta:0,timestamp:0},kr=["read","update","preRender","render","postRender"],Rn=kr.reduce((t,e)=>(t[e]=Fa(()=>xr=!0),t),{}),Fc=kr.reduce((t,e)=>{let r=Rn[e];return t[e]=(n,i=!1,s=!1)=>(xr||Bc(),r.schedule(n,i,s)),t},{}),Ha=kr.reduce((t,e)=>(t[e]=Rn[e].cancel,t),{}),Sh=kr.reduce((t,e)=>(t[e]=()=>Rn[e].process(br),t),{}),Hc=t=>Rn[t].process(br),Ba=t=>{xr=!1,br.delta=gs?ds:Math.max(Math.min(t-br.timestamp,Vc),1),br.timestamp=t,ys=!0,kr.forEach(Hc),ys=!1,xr&&(gs=!1,ms(Ba))},Bc=()=>{xr=!0,gs=!0,ys||ms(Ba)};var za=Fc;function vs(t,e,r=0){return t-e-r}function qa(t,e,r=0,n=!0){return n?vs(e+-t,e,r):e-(t-e)+r}function Wa(t,e,r,n){return n?t>=e+r:t<=-r}var zc=t=>{let e=({delta:r})=>t(r);return{start:()=>za.update(e,!0),stop:()=>Ha.update(e)}};function ws(t){var e,r,{from:n,autoplay:i=!0,driver:s=zc,elapsed:o=0,repeat:u=0,repeatType:a="loop",repeatDelay:c=0,onPlay:f,onStop:p,onComplete:b,onRepeat:x,onUpdate:k}=t,A=kn(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:I}=A,j,$=0,M=A.duration,L,H=!1,q=!0,K,O=Va(A);!((r=(e=O).needsInterpolation)===null||r===void 0)&&r.call(e,n,I)&&(K=jn([0,100],[n,I],{clamp:!1}),n=0,I=100);let Y=O(Object.assign(Object.assign({},A),{from:n,to:I}));function ne(){$++,a==="reverse"?(q=$%2===0,o=qa(o,M,c,q)):(o=vs(o,M,c),a==="mirror"&&Y.flipTarget()),H=!1,x&&x()}function yi(){j.stop(),b&&b()}function Je(B){if(q||(B=-B),o+=B,!H){let Q=Y.next(Math.max(0,o));L=Q.value,K&&(L=K(L)),H=q?Q.done:o<=0}k?.(L),H&&($===0&&(M??(M=o)),$<u?Wa(o,M,c,q)&&ne():yi())}function Jr(){f?.(),j=s(Je),j.start()}return i&&Jr(),{stop:()=>{p?.(),j.stop()}}}var U,Za,Pn,Ga,Un,Ja,Xa,Ka,Nn,Vn=class Vn extends _(S){constructor(){super();d(this,U);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,U,Za).call(this)}get images(){return this.product?.images||[]}render(){if(!this.product)return h`
|
|
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`
|
|
477
483
|
<div class="my-2 w-full rounded-3xl border bg-white p-4">
|
|
478
484
|
<div class="relative mx-auto mb-4 max-w-[240px]">
|
|
479
485
|
<div class="h-[180px] w-full animate-pulse rounded-2xl bg-gray-200"></div>
|
|
@@ -520,36 +526,36 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
520
526
|
</svg>
|
|
521
527
|
`}
|
|
522
528
|
</div>
|
|
523
|
-
${
|
|
529
|
+
${dr(this.images.length>1,()=>h`
|
|
524
530
|
<div class="absolute inset-0 flex items-center justify-between px-4">
|
|
525
531
|
<button
|
|
526
|
-
@click="${
|
|
532
|
+
@click="${g(this,V,il)}"
|
|
527
533
|
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">
|
|
528
534
|
<hi-outline class="block h-6 w-3" name="chevron-left"></hi-outline>
|
|
529
535
|
</button>
|
|
530
536
|
<button
|
|
531
|
-
@click="${
|
|
537
|
+
@click="${g(this,V,nl)}"
|
|
532
538
|
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">
|
|
533
539
|
<hi-outline class="block h-6 w-3" name="chevron-right"></hi-outline>
|
|
534
540
|
</button>
|
|
535
541
|
</div>
|
|
536
542
|
`)}
|
|
537
|
-
${
|
|
543
|
+
${dr(this.images?.length>1,()=>h`
|
|
538
544
|
<div class="slider-dots absolute bottom-3 left-1/2 flex -translate-x-1/2 gap-2">
|
|
539
545
|
${this.images.map((o,u)=>h`
|
|
540
546
|
<button
|
|
541
|
-
@click="${()=>
|
|
547
|
+
@click="${()=>g(this,V,sl).call(this,u)}"
|
|
542
548
|
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>
|
|
543
549
|
`)}
|
|
544
550
|
</div>
|
|
545
551
|
`)}
|
|
546
552
|
</div>
|
|
547
553
|
</div>
|
|
548
|
-
<div @click="${
|
|
549
|
-
${s?h`<a @click="${
|
|
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}
|
|
550
556
|
|
|
551
557
|
<h3
|
|
552
|
-
@click="${
|
|
558
|
+
@click="${g(this,V,Hn)}"
|
|
553
559
|
class="${this._isValidUrl?"":"pointer-events-none cursor-default"} mb-1 line-clamp-2 cursor-pointer text-lg font-semibold transition-all hover:underline">
|
|
554
560
|
${r||h`<span class="inline-block h-6 w-32 animate-pulse rounded bg-gray-200"></span>`}
|
|
555
561
|
</h3>
|
|
@@ -559,32 +565,32 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
559
565
|
<!-- <div class="my-4 border-t border-gray-200"></div> -->
|
|
560
566
|
|
|
561
567
|
<!-- <button
|
|
562
|
-
@click="${
|
|
568
|
+
@click="${g(this,V,rl)}"
|
|
563
569
|
?disabled="${!this._isValidUrl}"
|
|
564
570
|
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">
|
|
565
571
|
${this.labels.addToCart}
|
|
566
572
|
</button> -->
|
|
567
573
|
</div>
|
|
568
574
|
</div>
|
|
569
|
-
`}};U=new WeakSet,Za=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}},Pn=function(r){r.preventDefault(),!(!this.product?.url||!this._isValidUrl)&&window.open(this.product.url,"_blank")},Ga=function(r){!this.product?.url||!this._isValidUrl||(window.open(this.product.url,"_blank"),this.dispatchEvent(new Vn.AddToCartEvent(this.product)))},Un=function(r,n){l(this,U,Nn)&&ws({from:r,to:n,duration:300,onUpdate:i=>{l(this,U,Nn)&&(l(this,U,Nn).style.transform=`translateX(${i}%)`)}})},Ja=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,U,Un).call(this,i,s),this._currentImageIndex=n},Xa=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,U,Un).call(this,i,s),this._currentImageIndex=n},Ka=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,U,Un).call(this,s,o),this._currentImageIndex=i},Nn=function(){return this.renderRoot.querySelector(".image-slider")},g(Vn,"properties",{product:{type:Object},labels:{type:Object},_currentImageIndex:{type:Number,state:!0},_isValidUrl:{type:Boolean,state:!0}});var Cr=Vn,bs;Cr.AddToCartEvent=(bs=class extends CustomEvent{constructor(e,r={}){super(Cr.AddToCartEvent.type,{detail:{product:e},...r})}},g(bs,"type","mw-product-card:add-to-cart"),bs);customElements.get("mw-product-card")||customElements.define("mw-product-card",Cr);var $r,se,we,Sr,xs,Fn=class{constructor(e,r){d(this,Sr);d(this,$r);d(this,se);d(this,we);if(!e)throw new Error("host is required");if(!r)throw new Error("config is required");m(this,$r,e),l(this,$r).addController(this),m(this,se,r)}connect(e){m(this,se,e),m(this,we,y(this,Sr,xs).call(this))}hostConnected(){setTimeout(()=>{m(this,we,y(this,Sr,xs).call(this))},0)}hostDisconnected(){l(this,we)?.close(1e3,"lit_host_disconnected"),m(this,we,void 0)}send(e){l(this,we)?.send(e)}close(e,r){l(this,we)?.close(e,r)}get isConnected(){return l(this,we)?.readyState===WebSocket.OPEN}get isConnecting(){return l(this,we)?.readyState===WebSocket.CONNECTING}};$r=new WeakMap,se=new WeakMap,we=new WeakMap,Sr=new WeakSet,xs=function(){let e=new WebSocket(l(this,se).url());return l(this,se).onClose&&(e.onclose=l(this,se).onClose),l(this,se).onOpen&&(e.onopen=l(this,se).onOpen),l(this,se).onError&&(e.onerror=l(this,se).onError),l(this,se).onMessage&&(e.onmessage=l(this,se).onMessage),e};var Ya="664df22d-d461-42d6-801e-f70247e2cd7c",G,J,me,Ot,jt,X,Ne,Qa,el,tl,rl,Hn=class{constructor(e,r){d(this,X);d(this,G);d(this,J);d(this,me);g(this,"isStreaming",!1);g(this,"typingIndicator");g(this,"ranOutOfCredits",!1);g(this,"messages",[]);g(this,"conversationId","");d(this,Ot,0);d(this,jt);g(this,"isLiveMode",!1);m(this,G,e),m(this,J,r),m(this,me,this.initWS()),e.addController(this)}sendUserInput(e,{xUserData:r,xCustomInstructions:n,role:i="user",expectStreaming:s=!1}={}){return y(this,X,Ne).call(this,{type:"USER_INPUT",value:e,role:i,xUserData:r,xCustomInstructions:n},{expectStreaming:s})}sendUserCancel(){return y(this,X,Ne).call(this,{type:"USER_CANCEL"})}sendUserTypingStart(){return y(this,X,Ne).call(this,{type:"USER_TYPING_START"})}sendUserTypingStop(){return y(this,X,Ne).call(this,{type:"USER_TYPING_STOP"})}sendUserMeta(e){return y(this,X,Ne).call(this,{type:"USER_META",metadata:e})}reloadConfig(){y(this,X,Ne).call(this,{type:"RELOAD_CONFIG"})}close(){l(this,me).close(1e3,"closed by user")}retry(){clearTimeout(l(this,jt)),m(this,jt,setTimeout(()=>{l(this,J).onReconnect?.(),m(this,me,this.initWS())},1e3*l(this,Ot))),Xs(this,Ot)._++}initWS(){return new Fn(l(this,G),{url:()=>l(this,J).url(this.conversationId,{}),onOpen:e=>y(this,X,Qa).call(this,e),onMessage:e=>y(this,X,el).call(this,JSON.parse(e.data)),onError:e=>y(this,X,tl).call(this,e),onClose:e=>y(this,X,rl).call(this,e)})}hostConnected(){this.conversationId=l(this,J).restoreConversationState?.()?.conversationId||"",this.messages=l(this,J).restoreConversationState?.()?.messages||[]}reset(){y(this,X,Ne).call(this,{type:"NEW_CHAT"}),l(this,J).onReset?.(),this.isStreaming=!1,this.typingIndicator=void 0,this.ranOutOfCredits=!1,this.messages=[],this.conversationId="",this.isLiveMode=!1,l(this,G).requestUpdate()}hostDisconnected(){clearTimeout(l(this,jt))}reconnectSocket(){l(this,me).close(1e3,"destroy"),m(this,me,this.initWS())}get lastMsg(){if(this.messages.length>0)return this.messages[this.messages.length-1]}};G=new WeakMap,J=new WeakMap,me=new WeakMap,Ot=new WeakMap,jt=new WeakMap,X=new WeakSet,Ne=function(e,{expectStreaming:r=!1}={}){return l(this,me).isConnecting?(console.warn("WebSocket is connecting, message not sent",e),!1):l(this,me).isConnected?(r&&!this.isLiveMode&&(this.isStreaming=!0,l(this,G).requestUpdate()),l(this,me).send(JSON.stringify(e)),!0):(console.warn("WebSocket is not connected, message not sent",e),this.retry(),!1)},Qa=function(e){m(this,Ot,0)},el=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,l(this,G).requestUpdate(),l(this,J).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),l(this,J).onMessageAppend?.(e),l(this,G).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,l(this,G).requestUpdate(),l(this,J).onMessageDone?.(e,r),l(this,J).persistConversationState?.(this.conversationId,this.messages);break}case"MESSAGE_CANCEL":{this.isStreaming=!1,this.typingIndicator=void 0,l(this,G).requestUpdate();break}case"ERROR":{l(this,J).onMessageError?.(e);break}case"CONNECTED":{this.conversationId=e.conversationId,this.messages=e.messages,l(this,J).onConnect?.(e.conversationId),l(this,J).persistConversationState?.(e.conversationId,e.messages),this.isLiveMode=e.metadata?.isLiveMode,l(this,G).requestUpdate();break}case"TYPING_START":{e.role==="assistant"&&(this.isStreaming=!0),this.typingIndicator={role:e.role,metadata:e.metadata},l(this,G).requestUpdate();break}case"TYPING_STOP":{this.typingIndicator=void 0,l(this,G).requestUpdate();break}case"RAN_OUT_OF_CREDITS":{this.messages.some(r=>r.id===Ya)||this.messages.push({id:Ya,role:"assistant",content:"Sorry, I've run out of credits. Please contact the shop directly.",timestamp:Date.now()}),this.ranOutOfCredits=!0,l(this,G).requestUpdate();break}case"RECONNECT":{this.reconnectSocket(),l(this,G).requestUpdate();break}default:console.warn(`Unknown message type: ${JSON.stringify(e)}`)}},tl=function(e){console.error("onError",e),l(this,J).onError?.(e)},rl=function(e){l(this,G).isConnected&&!l(this,me).isConnected&&e.reason==="reconnect"&&this.retry(),this.isStreaming=!1,this.typingIndicator=void 0,l(this,G).requestUpdate(),l(this,J).onClose?.()};function Dt(t){return Array.isArray(t)?t:t?[t]:[]}function nl(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 Er=class extends xt{constructor(e){if(super(e),this.it=E,e.type!==dn.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===ge)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:[]}}};Er.directiveName="unsafeHTML",Er.resultType=1;var il=mn(Er);var ks;function Cs(t){return{lang:t?.lang??ks?.lang,message:t?.message,abortEarly:t?.abortEarly??ks?.abortEarly,abortPipeEarly:t?.abortPipeEarly??ks?.abortPipeEarly}}var qc;function Wc(t){return qc?.get(t)}var Zc;function Gc(t){return Zc?.get(t)}var Jc;function Xc(t,e){return Jc?.get(t)?.get(e)}function ol(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??ol(s),a={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??Xc(t.reference,a.lang)??(c?Gc(a.lang):null)??n.message??Wc(a.lang);f!==void 0&&(a.message=typeof f=="function"?f(a):f),c&&(r.typed=!1),r.issues?r.issues.push(a):r.issues=[a]}function ue(t){return{version:1,vendor:"valibot",validate(e){return t["~run"]({value:e},Cs())}}}function Kc(t,e){return Object.hasOwn(t,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}function al(t,e){let r=[...new Set(t)];return r.length>1?`(${r.join(` ${e} `)})`:r[0]??"never"}var Yc=class extends Error{constructor(t){super(t[0].message),this.name="ValiError",this.issues=t}};function $s(t,e){return{kind:"validation",type:"max_length",reference:$s,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 Ss(t,e){return{kind:"validation",type:"min_length",reference:Ss,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 Qc(t,e,r){return typeof t.fallback=="function"?t.fallback(e,r):t.fallback}function ll(t,e,r){return typeof t.default=="function"?t.default(e,r):t.default}function Es(){return{kind:"schema",type:"any",reference:Es,expects:"any",async:!1,get"~standard"(){return ue(this)},"~run"(t){return t.typed=!0,t}}}function Rt(t,e){return{kind:"schema",type:"array",reference:Rt,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 a={type:"array",origin:"value",input:i,key:s,value:o};for(let c of u.issues)c.path?c.path.unshift(a):c.path=[a],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 _s(t){return{kind:"schema",type:"boolean",reference:_s,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 As(t){return{kind:"schema",type:"null",reference:As,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 Bn(t){return{kind:"schema",type:"number",reference:Bn,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 Le(t,e){return{kind:"schema",type:"object",reference:Le,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]:ll(o),a=o["~run"]({value:u},n);if(a.issues){let c={type:"object",origin:"value",input:i,key:s,value:u};for(let f of a.issues)f.path?f.path.unshift(c):f.path=[c],r.issues?.push(f);if(r.issues||(r.issues=a.issues),n.abortEarly){r.typed=!1;break}}a.typed||(r.typed=!1),r.value[s]=a.value}else if(o.fallback!==void 0)r.value[s]=Qc(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 Pt(t,e){return{kind:"schema",type:"optional",reference:Pt,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=ll(this,r,n)),r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,n)}}}function Ms(t,e){return{kind:"schema",type:"picklist",reference:Ms,expects:al(t.map(ol),"|"),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 zn(t,e,r){return{kind:"schema",type:"record",reference:zn,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(Kc(s,o)){let u=s[o],a=this.key["~run"]({value:o},i);if(a.issues){let f={type:"object",origin:"key",input:s,key:o,value:u};for(let p of a.issues)p.path=[f],n.issues?.push(p);if(n.issues||(n.issues=a.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}}(!a.typed||!c.typed)&&(n.typed=!1),a.typed&&(n.value[a.value]=c.value)}}else le(this,"type",n,i);return n}}}function z(t){return{kind:"schema",type:"string",reference:z,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 sl(t){let e;if(t)for(let r of t)e?e.push(...r.issues):e=r.issues;return e}function Ut(t,e){return{kind:"schema",type:"union",reference:Ut,expects:al(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 a=u["~run"]({value:r.value},n);if(a.typed)if(a.issues)s?s.push(a):s=[a];else{i=a;break}else o?o.push(a):o=[a]}if(i)return i;if(s){if(s.length===1)return s[0];le(this,"type",r,n,{issues:sl(s)}),r.typed=!0}else{if(o?.length===1)return o[0];le(this,"type",r,n,{issues:sl(o)})}return r}}}function ul(t,e,r){let n=t["~run"]({value:e},Cs(r));if(n.issues)throw new Yc(n.issues);return n.value}function cl(t,e){let r={};for(let n in t.entries)r[n]=!e||e.includes(n)?Pt(t.entries[n]):t.entries[n];return{...t,entries:r,get"~standard"(){return ue(this)}}}function pl(...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 _r(t,e,r){let n=t["~run"]({value:e},Cs(r));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}var fl=cl(Le({name:z(),description:z(),price:z(),image_url:Ut([z(),Rt(z())]),category:z(),url:z()}));function hl(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],a=e<r.length-1||!o;if("text"in t)return h`<p>${t.text}</p>`;if("html"in t)return h`${il(t.html)}`;if("data"in t)switch(t.tag){case"product-card":case"product-card-v1":case"product-card-horizontal":{let c=_r(fl,t.data);if(c.success){let f={...c.output,images:[]};return f.images=Dt(f.image_url),h`
|
|
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);var Er,se,we,_r,$s,Wn=class{constructor(e,r){d(this,_r);d(this,Er);d(this,se);d(this,we);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,we,g(this,_r,$s).call(this))}hostConnected(){setTimeout(()=>{m(this,we,g(this,_r,$s).call(this))},0)}hostDisconnected(){a(this,we)?.close(1e3,"lit_host_disconnected"),m(this,we,void 0)}send(e){a(this,we)?.send(e)}close(e,r){a(this,we)?.close(e,r)}get isConnected(){return a(this,we)?.readyState===WebSocket.OPEN}get isConnecting(){return a(this,we)?.readyState===WebSocket.CONNECTING}};Er=new WeakMap,se=new WeakMap,we=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 ol=Array.isArray;var Ss=t=>!!(t&&t.constructor&&t.call&&t.apply);var al=t=>!(!t||!t.then||!Ss(t.then));function*ll(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 ll(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 al(r)?r.then(n=>[void 0,n]).catch(n=>[n,void 0]):[void 0,r]}catch(r){return[r,void 0]}};var ul="664df22d-d461-42d6-801e-f70247e2cd7c",B,K,te,jt,Dt,be,z,Ee,cl,pl,fl,hl,Zn=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,jt,0);d(this,Dt);y(this,"isLiveMode",!1);d(this,be,[]);m(this,B,e),m(this,K,r),m(this,te,this.initWS()),e.addController(this)}get hasQueuedMessages(){return a(this,be).length>0}async enqueueMessage(e,{expectStreaming:r=!1}={}){if(a(this,be).length>0){let n=a(this,be)[a(this,be).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,be).push({message:e,options:{expectStreaming:r}}),a(this,B).requestUpdate(),!a(this,te).isConnecting&&!a(this,te).isConnected&&this.retry(),await _s({times:3,delay:1e3},async()=>{if(a(this,te).isConnected){let n=[...a(this,be)];m(this,be,[]),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),!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,Dt)),m(this,Dt,setTimeout(()=>{a(this,K).onReconnect?.(),m(this,te,this.initWS())},1e3*a(this,jt))),io(this,jt)._++}initWS(){return new Wn(a(this,B),{url:()=>a(this,K).url(this.conversationId,{}),onOpen:e=>g(this,z,cl).call(this,e),onMessage:e=>g(this,z,pl).call(this,JSON.parse(e.data)),onError:e=>g(this,z,fl).call(this,e),onClose:e=>g(this,z,hl).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,be,[]),a(this,B).requestUpdate()}hostDisconnected(){clearTimeout(a(this,Dt))}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,jt=new WeakMap,Dt=new WeakMap,be=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)},cl=function(e){m(this,jt,0)},pl=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===ul)||this.messages.push({id:ul,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)}`)}},fl=function(e){console.error("onError",e),a(this,K).onError?.(e)},hl=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?.()};function Rt(t){return Array.isArray(t)?t:t?[t]:[]}function dl(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 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===ge)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 ml=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 yl(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??yl(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 vl(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 wl(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 Gn(t){return{kind:"schema",type:"number",reference:Gn,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]:wl(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=wl(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:vl(t.map(yl),"|"),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 Jn(t,e,r){return{kind:"schema",type:"record",reference:Jn,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 gl(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:vl(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:gl(s)}),r.typed=!0}else{if(o?.length===1)return o[0];le(this,"type",r,n,{issues:gl(o)})}return r}}}function bl(t,e,r){let n=t["~run"]({value:e},Is(r));if(n.issues)throw new pp(n.issues);return n.value}function xl(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 kl(...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 Cl=xl(Oe({name:W(),description:W(),price:W(),image_url:Vt([W(),Pt(W())]),category:W(),url:W()}));function $l(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`${ml(t.html)}`;if("data"in t)switch(t.tag){case"product-card":case"product-card-v1":case"product-card-horizontal":{let c=Mr(Cl,t.data);if(c.success){let f={...c.output,images:[]};return f.images=Rt(f.image_url),h`
|
|
570
576
|
${u?h`<div class="my-3 w-full border-t border-gray-200/50"></div>`:null}
|
|
571
577
|
<mw-product-card-horizontal
|
|
572
578
|
product="${JSON.stringify(f)}"
|
|
573
|
-
?streaming="${!
|
|
579
|
+
?streaming="${!l}"
|
|
574
580
|
?links-new-tab="${i}"
|
|
575
581
|
.searchParams="${s}"
|
|
576
582
|
.imagesByProductUrl="${n}"></mw-product-card-horizontal>
|
|
577
|
-
`}console.warn(c.issues);break}case"order-status-card-v1":return h`<mw-product-order-status-card order-details="${JSON.stringify(t.data)}" ?streaming="${!
|
|
583
|
+
`}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,Yn,Sl,Kn=class{constructor(e,r,{timeoutMs:n=2e3}={}){d(this,Yn);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,Yn,Sl).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,Yn=new WeakSet,Sl=function(){m(this,ut,!0),a(this,Nt).typingStarted()};function El(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 _l=()=>{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},Al=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 Ml=()=>{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}}},Il=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 Ll=()=>{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},Tl=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 Ol=Jn(W(),Vt([W(),Gn(),js(),Ds()])),jl=kl(W(),Ts(1),Ls(5e3)),Dl=()=>{try{return window.UNAS?Ll():window.Shopify?_l():window.ShopRenter?Ml():null}catch{return null}},Rl=async()=>{try{return window.UNAS?await Tl():window.Shopify?await Al():window.ShopRenter?await Il():[]}catch{return[]}},Ft={schema:Oe({conversationId:Ut(W()),messages:Ut(Pt(Oe({id:W(),timestamp:Gn(),role:Rs(["user","assistant","support"]),content:W(),parts:Ut(Pt(Vt([Oe({text:W()}),Oe({html:W()}),Oe({tag:W(),data:Jn(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=bl(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 Pl(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,Ul,Vl,Nl,Fl,Hl,ql,Bl,zl,Qn,Lr,ei=class ei extends _(S){constructor(){super();d(this,D);d(this,je);d(this,De);d(this,Or,new Kn(this,{typingStarted:()=>a(this,P).sendUserTypingStart(),typingStopped:()=>a(this,P).sendUserTypingStop()}));d(this,ct,!1);d(this,P,new Zn(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,Qn)?.scrollTo(0,a(this,D,Qn).scrollHeight),r.role==="assistant"&&this.callbacks.onNewMessageStartedStreaming?.({widgetId:this.widgetId,message:r,conversationId:this.conversationId})},onMessageAppend:r=>{let n=a(this,D,Qn);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=Dl();a(this,P).sendUserMeta({xUserData:a(this,je),xCustomInstructions:a(this,De),customerInformation:n,language:window.navigator.language,cart:[]}),Rl().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(){Pl(this.config,"config is required");let r=dl(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`
|
|
578
584
|
<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]">
|
|
579
585
|
<div
|
|
580
586
|
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]">
|
|
581
587
|
<mw-chat-header
|
|
582
588
|
class="absolute left-1.5 right-1.5 top-1.5"
|
|
583
589
|
.content="${{logoUrl:this.config.logoUrl,title:this.config.title,color:this.config.color}}"
|
|
584
|
-
?show-new-chat="${!
|
|
590
|
+
?show-new-chat="${!a(this,P).isLiveMode&&this.messages.length>0}"
|
|
585
591
|
?show-close="${this.showClose}"
|
|
586
|
-
@mw:new-chat-click="${
|
|
587
|
-
@mw:close-click="${
|
|
592
|
+
@mw:new-chat-click="${g(this,D,Bl)}"
|
|
593
|
+
@mw:close-click="${g(this,D,zl)}">
|
|
588
594
|
</mw-chat-header>
|
|
589
595
|
|
|
590
596
|
<!-- used by the dashboard to inject content -->
|
|
@@ -593,7 +599,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
593
599
|
</div>
|
|
594
600
|
|
|
595
601
|
<!-- this structure of 2 divs is required for the browser native stick/scroll to bottom -->
|
|
596
|
-
<div id="scrollable-content" class="mt-6 flex h-full flex-shrink flex-grow flex-col-reverse overflow-auto" @scroll="${
|
|
602
|
+
<div id="scrollable-content" class="mt-6 flex h-full flex-shrink flex-grow flex-col-reverse overflow-auto" @scroll="${g(this,D,Ul)}">
|
|
597
603
|
${this.config?.showStillLearningBanner?h`
|
|
598
604
|
<div class="flex justify-center">
|
|
599
605
|
<div class="mb-2 flex max-w-[70%] select-none items-center justify-center rounded-full bg-black px-3 py-2">
|
|
@@ -618,19 +624,19 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
618
624
|
<!-- this is the 2nd (inner) div that will natively stick/scroll to bottom -->
|
|
619
625
|
<div class="${this.messages.length>0?"pt-20":""}">
|
|
620
626
|
${ve(Array.from(r),([n])=>n,([n,i])=>h`
|
|
621
|
-
<div class="my-2 text-center text-xs text-gray-500">${
|
|
622
|
-
${ve(i??[],s=>s.id,(s,o)=>{let
|
|
623
|
-
<div data-id="${s.id}" class="${
|
|
627
|
+
<div class="my-2 text-center text-xs text-gray-500">${El(new Date(Number(n)),window.navigator.language)}</div>
|
|
628
|
+
${ve(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`
|
|
629
|
+
<div data-id="${s.id}" class="${l?"mb-[2px]":"mb-3"} mx-2 flex-row">
|
|
624
630
|
<mw-chat-message
|
|
625
631
|
color="${this.config.color}"
|
|
626
632
|
status="${k}"
|
|
627
633
|
logo="${s.metadata?.avatar||this.config.logoUrl}"
|
|
628
634
|
side="${s.role}"
|
|
629
|
-
position=${
|
|
630
|
-
@click="${
|
|
635
|
+
position=${a(this,jr)}
|
|
636
|
+
@click="${g(this,D,Vl)}">
|
|
631
637
|
<div
|
|
632
638
|
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">
|
|
633
|
-
${s.content===
|
|
639
|
+
${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?ve(s.parts,(A,I)=>I,(A,I)=>$l(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>`}
|
|
634
640
|
</div>
|
|
635
641
|
</mw-chat-message>
|
|
636
642
|
</div>
|
|
@@ -638,12 +644,12 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
638
644
|
`)}
|
|
639
645
|
|
|
640
646
|
<!-- show typing indicator if the non-user side is typing -->
|
|
641
|
-
${["assistant","support"].includes(
|
|
647
|
+
${["assistant","support"].includes(a(this,P)?.typingIndicator?.role??"")&&a(this,P)?.typingIndicator?.role?h`
|
|
642
648
|
<mw-chat-message
|
|
643
649
|
class="mx-2 mb-3 block"
|
|
644
650
|
color="${this.config.color}"
|
|
645
|
-
logo="${
|
|
646
|
-
side="${
|
|
651
|
+
logo="${a(this,P)?.typingIndicator?.metadata?.avatar||this.config.logoUrl}"
|
|
652
|
+
side="${a(this,P).typingIndicator.role}">
|
|
647
653
|
<div
|
|
648
654
|
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">
|
|
649
655
|
<mw-loading class="-mx-2 block h-8 max-h-[24px] w-8 fill-[${this.config.color}]"></mw-loading>
|
|
@@ -656,17 +662,18 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
656
662
|
class="flex-grow"
|
|
657
663
|
.examples="${this.messages.length>0?[]:this.config.examples}"
|
|
658
664
|
color="${this.config.color}"
|
|
659
|
-
@mw:example-click="${
|
|
665
|
+
@mw:example-click="${g(this,D,Nl)}"></mw-chat-background>
|
|
660
666
|
</div>
|
|
661
667
|
|
|
662
668
|
<div class="m-1.5 flex-shrink-0 flex-grow-0 space-y-2 rounded-3xl bg-[#eeedf1] p-1.5">
|
|
663
669
|
<mw-chat-input
|
|
664
|
-
@mw:change="${
|
|
665
|
-
@mw:submit="${
|
|
666
|
-
@mw:cancel="${
|
|
670
|
+
@mw:change="${g(this,D,Hl)}"
|
|
671
|
+
@mw:submit="${g(this,D,Fl)}"
|
|
672
|
+
@mw:cancel="${g(this,D,ql)}"
|
|
667
673
|
placeholder="${this.config.input?.placeholder}"
|
|
668
|
-
?disabled="${
|
|
669
|
-
?streaming="${
|
|
674
|
+
?disabled="${a(this,P).ranOutOfCredits||a(this,P)?.hasQueuedMessages}"
|
|
675
|
+
?streaming="${a(this,P)?.isStreaming??!0}"
|
|
676
|
+
?loading="${a(this,P)?.hasQueuedMessages}">
|
|
670
677
|
</mw-chat-input>
|
|
671
678
|
|
|
672
679
|
${this.config.removePoweredBy?E:h`
|
|
@@ -678,7 +685,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
678
685
|
</div>
|
|
679
686
|
</div>
|
|
680
687
|
</div>
|
|
681
|
-
`}reloadConfig(){
|
|
688
|
+
`}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(Ol,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(jl,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,Ul=function(){m(this,ct,!0)},Vl=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)}},Nl=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)},Fl=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)},Hl=function(r){a(this,Or).onInput(r.detail.full)},ql=function(){a(this,P)?.sendUserCancel(),this.callbacks.onUserCanceledStreaming?.({widgetId:this.widgetId})},Bl=function(){a(this,P).reset()},zl=function(){this.dispatchEvent(new ei.CloseClickEvent)},Qn=function(){return this.renderRoot.querySelector("#scrollable-content")},Lr=function(){return this.renderRoot.querySelector("mw-chat-input")},y(ei,"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=ei,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`
|
|
682
689
|
<div class="flex flex-row flex-wrap gap-0">
|
|
683
690
|
<div class="relative z-0 flex min-h-9 items-center justify-center overflow-hidden rounded-[${this.radius}]">
|
|
684
691
|
<!-- Spinning gradient background -->
|
|
@@ -690,7 +697,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
690
697
|
<slot></slot>
|
|
691
698
|
</div>
|
|
692
699
|
</div>
|
|
693
|
-
`}};
|
|
700
|
+
`}};y(Dr,"properties",{color:{type:String},radius:{type:String},size:{type:String},border:{type:String}}),y(Dr,"styles",re`
|
|
694
701
|
:host {
|
|
695
702
|
display: block;
|
|
696
703
|
}
|
|
@@ -705,13 +712,13 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
705
712
|
transform: rotate(360deg);
|
|
706
713
|
}
|
|
707
714
|
}
|
|
708
|
-
`);customElements.get("mw-spinning-border")||customElements.define("mw-spinning-border",
|
|
715
|
+
`);customElements.get("mw-spinning-border")||customElements.define("mw-spinning-border",Dr);var qt,Wl,Zl,Ht=class Ht extends _(S){constructor(){super();d(this,qt);y(this,"render",()=>h`
|
|
709
716
|
<div class="popup-desktop group relative w-[300px] cursor-pointer select-none rounded-[17px] shadow-2xl">
|
|
710
717
|
<mw-spinning-border .color="${this.color}" .border="${"transparent"}" .radius="${"17px"}">
|
|
711
718
|
<!-- wrapper -->
|
|
712
719
|
<div class="relative z-[2147483647] m-[1px] w-[300px] rounded-2xl bg-white font-sans text-base leading-normal">
|
|
713
720
|
<!-- content -->
|
|
714
|
-
<div class="p-4 text-left text-gray-800" @click="${
|
|
721
|
+
<div class="p-4 text-left text-gray-800" @click="${g(this,qt,Zl)}">
|
|
715
722
|
<p>${this.text}</p>
|
|
716
723
|
</div>
|
|
717
724
|
</div>
|
|
@@ -720,12 +727,12 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
720
727
|
<!-- close button -->
|
|
721
728
|
<button
|
|
722
729
|
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"
|
|
723
|
-
@click="${
|
|
730
|
+
@click="${g(this,qt,Wl)}"
|
|
724
731
|
aria-label="Close">
|
|
725
732
|
×
|
|
726
733
|
</button>
|
|
727
734
|
</div>
|
|
728
|
-
`);this.text="Hello there. How can we help?",this.color="#601feb"}};
|
|
735
|
+
`);this.text="Hello there. How can we help?",this.color="#601feb"}};qt=new WeakSet,Wl=function(){this.dispatchEvent(new Ht.CloseEvent)},Zl=function(){this.dispatchEvent(new Ht.ClickEvent)},y(Ht,"properties",{text:{type:String},color:{type:String}}),y(Ht,"styles",re`
|
|
729
736
|
.popup-desktop:hover button {
|
|
730
737
|
transition-delay: 0s !important;
|
|
731
738
|
}
|
|
@@ -733,19 +740,19 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
733
740
|
.popup-desktop button {
|
|
734
741
|
transition-delay: 1s;
|
|
735
742
|
}
|
|
736
|
-
`);var
|
|
743
|
+
`);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,Gl,Jl,Rr=class Rr extends _(S){constructor(){super();d(this,Bt);y(this,"render",()=>h`
|
|
737
744
|
<!-- wrapper -->
|
|
738
745
|
<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">
|
|
739
746
|
<!-- close button -->
|
|
740
747
|
<button
|
|
741
748
|
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"
|
|
742
|
-
@click="${
|
|
749
|
+
@click="${g(this,Bt,Gl)}"
|
|
743
750
|
aria-label="Close">
|
|
744
751
|
×
|
|
745
752
|
</button>
|
|
746
753
|
|
|
747
754
|
<!-- content -->
|
|
748
|
-
<div class="p-4 text-gray-800" @click="${
|
|
755
|
+
<div class="p-4 text-gray-800" @click="${g(this,Bt,Jl)}">
|
|
749
756
|
<h1 class="mr-8 py-2.5 text-left font-display text-lg font-bold">${this.title}</h1>
|
|
750
757
|
<p class="py-2.5 text-left">${this.text}</p>
|
|
751
758
|
<div class="h-4"></div>
|
|
@@ -758,30 +765,30 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
758
765
|
<!-- can append any other content -->
|
|
759
766
|
<slot name="footer"></slot>
|
|
760
767
|
</div>
|
|
761
|
-
`);this.title="Chat with Molin AI",this.text="Hello there. How can we help?",this.button="Chat now",this.color="#601feb"}};Bt=new WeakSet,
|
|
768
|
+
`);this.title="Chat with Molin AI",this.text="Hello there. How can we help?",this.button="Chat now",this.color="#601feb"}};Bt=new WeakSet,Gl=function(){this.dispatchEvent(new Rr.CloseEvent)},Jl=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,ti=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,ni,Xl,ri=class{constructor(e,r,n=Date){d(this,ni);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,ni,Xl).call(this),a(this,ce).getDelayMs()))}};Wt=new WeakMap,ce=new WeakMap,dt=new WeakMap,Ur=new WeakMap,mt=new WeakMap,Vr=new WeakMap,ni=new WeakSet,Xl=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,ii,zs,si=class si extends _(S){constructor(){super();d(this,Re);d(this,Be,new ri(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 ti(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`
|
|
762
769
|
<!-- mobile shadow backdrop -->
|
|
763
|
-
<div @click="${
|
|
770
|
+
<div @click="${g(this,Re,ii)}" class="${r} fixed inset-0 z-[2147483647] bg-black/50 transition-[opacity,visibility] sm:hidden"></div>
|
|
764
771
|
|
|
765
772
|
<!-- mobile overlay -->
|
|
766
773
|
<div class="${r} fixed bottom-0 left-0 right-0 z-[2147483647] sm:hidden">
|
|
767
|
-
<mw-popup-mobile title="${n.mobile.title}" text="${n.mobile.text}" button="${n.mobile.button}" color="${n.mobile.color}" @mw:click="${
|
|
774
|
+
<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,ii)}">
|
|
768
775
|
${n.mobile.poweredBy?h`<mw-powered-by class="block p-4" slot="footer"></mw-powered-by>`:E}
|
|
769
776
|
</mw-popup-mobile>
|
|
770
777
|
</div>
|
|
771
778
|
|
|
772
779
|
<!-- desktop -->
|
|
773
780
|
<div class="${r} ${this.positionClasses} fixed z-[2147483647] transition-[opacity,translate,visibility] max-sm:hidden">
|
|
774
|
-
<mw-popup-desktop color="${n.desktop.color}" text="${n.desktop.text}" @mw:click="${
|
|
781
|
+
<mw-popup-desktop color="${n.desktop.color}" text="${n.desktop.text}" @mw:click="${g(this,Re,zs)}" @mw:close="${g(this,Re,ii)}"></mw-popup-desktop>
|
|
775
782
|
</div>
|
|
776
|
-
`}hide(){
|
|
783
|
+
`}hide(){a(this,Be).hide()}};Be=new WeakMap,Ws=new WeakMap,Re=new WeakSet,ii=function(){a(this,Be).onCloseClick()},zs=function(){this.dispatchEvent(new si.ClickEvent),a(this,Be).onContentClick()},y(si,"properties",{positionClasses:{type:String,attribute:"position"},delayMs:{type:Number,attribute:"delay"},soundUrl:{type:String,attribute:"sound"},content:{type:Object}});var Nr=si,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 ai,Kl,oi=class extends _(S){constructor(){super();d(this,ai);y(this,"render",()=>h`
|
|
777
784
|
<span class="relative inline-flex">
|
|
778
785
|
<slot></slot>
|
|
779
|
-
<span class="${
|
|
786
|
+
<span class="${a(this,ai,Kl)} pointer-events-none absolute z-10 flex h-3 w-3">
|
|
780
787
|
<span class="bg-${this.color} absolute inline-flex h-3 w-3 animate-ping rounded-full opacity-75"></span>
|
|
781
788
|
<span class="bg-${this.color} relative inline-flex h-3 w-3 rounded-full"></span>
|
|
782
789
|
</span>
|
|
783
790
|
</span>
|
|
784
|
-
`);this.color="sky-500",this.position="top-right"}};
|
|
791
|
+
`);this.color="sky-500",this.position="top-right"}};ai=new WeakSet,Kl=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(oi,"properties",{color:{type:String,attribute:"color"},position:{type:String,attribute:"position"}});customElements.get("mw-pulse-dot")||customElements.define("mw-pulse-dot",oi);var li=class extends _(S){constructor(){super();y(this,"render",()=>h`
|
|
785
792
|
<div class="${this.positionClasses} fixed bottom-24 right-6 z-10 flex animate-bounce flex-col items-center justify-center font-sans text-base">
|
|
786
793
|
<p class="mb-2 -translate-x-4 -rotate-12 transform text-lg font-bold leading-normal text-gray-800">${this.text}</p>
|
|
787
794
|
|
|
@@ -794,7 +801,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
794
801
|
stroke-linecap="round"></path>
|
|
795
802
|
</svg>
|
|
796
803
|
</div>
|
|
797
|
-
`);this.positionClasses="",this.text="Try it out"}};
|
|
804
|
+
`);this.positionClasses="",this.text="Try it out"}};y(li,"properties",{positionClasses:{type:String,attribute:"position"},text:{type:String}});customElements.get("mw-try-it-out")||customElements.define("mw-try-it-out",li);var Yl=(t,e,r)=>{for(let n of e)if(n[0]===t)return(0,n[1])();return r?.()};var ui=class extends _(S){constructor(){super(),this.orderDetails=null,this.streaming=!1,this.linksNewTab=!1}render(){let e=Rt(this.orderDetails?.order_status?.step||[]),r=Rt(this.orderDetails?.items?.item||[]),n=Rt(this.orderDetails?.actions||[]);return h`
|
|
798
805
|
<div class="flex w-full max-w-md flex-col rounded-3xl border bg-white p-4">
|
|
799
806
|
<!-- Header with order ID -->
|
|
800
807
|
<div class="mb-2">
|
|
@@ -819,11 +826,11 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
819
826
|
</div>
|
|
820
827
|
</li>
|
|
821
828
|
`)}
|
|
822
|
-
`:ve(e,i=>i.label,(i,s)=>{let o=i.status==="completed",u=i.status==="in_progress",
|
|
823
|
-
${
|
|
829
|
+
`:ve(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">
|
|
830
|
+
${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>`}
|
|
824
831
|
|
|
825
832
|
<div class="group relative flex items-start">
|
|
826
|
-
${
|
|
833
|
+
${Yl(i.status,[["pending",()=>h` <span class="flex h-6 items-center">
|
|
827
834
|
<span class="flex h-4 w-4 items-center justify-center rounded-full border-2 border-gray-300 bg-white">
|
|
828
835
|
<span class="h-1.5 w-1.5 rounded-full bg-transparent"></span>
|
|
829
836
|
</span>
|
|
@@ -883,7 +890,7 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
883
890
|
`)}
|
|
884
891
|
`:r?.map(i=>{let s=i?.image_url;return h`
|
|
885
892
|
<div class="flex items-center gap-2 py-1.5">
|
|
886
|
-
<mw-product-thumbnail class="block h-12 w-12" src="${
|
|
893
|
+
<mw-product-thumbnail class="block h-12 w-12" src="${$e(s)}"></mw-product-thumbnail>
|
|
887
894
|
|
|
888
895
|
<div class="min-w-0 flex-1">
|
|
889
896
|
${!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>`}
|
|
@@ -966,11 +973,11 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
966
973
|
|
|
967
974
|
<!-- Action buttons section -->
|
|
968
975
|
<div class="flex w-full flex-col gap-2 overflow-hidden">
|
|
969
|
-
${this.streaming&&!n[0]?.track_order?.label&&!
|
|
976
|
+
${this.streaming&&!n[0]?.track_order?.label&&!us(n[0]?.track_order?.tracking_url||"")?h`
|
|
970
977
|
<!-- Loading shimmer for buttons -->
|
|
971
978
|
<div class="h-10 w-full min-w-[250px] animate-pulse overflow-hidden rounded-xl bg-gray-200"></div>
|
|
972
979
|
`:ve(n,(i,s)=>`action-${s}`,i=>{if(i?.track_order?.label)return h`
|
|
973
|
-
${
|
|
980
|
+
${us(i.track_order?.tracking_url||"")?h` <a
|
|
974
981
|
target="${this.linksNewTab?"_blank":"_self"}"
|
|
975
982
|
href="${i.track_order?.tracking_url}"
|
|
976
983
|
class="mt-1 w-full rounded-xl bg-[#601feb] px-4 py-2 text-center text-sm font-medium text-white hover:opacity-90"
|
|
@@ -979,51 +986,51 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
979
986
|
`})}
|
|
980
987
|
</div>
|
|
981
988
|
</div>
|
|
982
|
-
`}};
|
|
989
|
+
`}};y(ui,"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",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 me,Br,Gt,Jt,Ze=class{constructor(e,r){d(this,me);d(this,Br);d(this,Gt);d(this,Jt);m(this,me,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,me).widgetId?m(this,Jt,e.config):m(this,Gt,new pi(a(this,me),()=>{if(a(this,me).cdn&&a(this,me).widgetId)return`${a(this,me).cdn}/config?w=${a(this,me).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,me).cdn,widgetId:a(this,me).widgetId,config:n}),n},onError:a(this,Br)?.onError}))}};me=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`
|
|
983
990
|
<!-- embed our chat component forwarding props -->
|
|
984
991
|
<mw-chat
|
|
985
992
|
widget="${this.widgetId}"
|
|
986
993
|
.config="${this.config}"
|
|
987
|
-
.callbacks="${
|
|
994
|
+
.callbacks="${a(this,di)}"
|
|
988
995
|
.xUserData="${this.xUserData}"
|
|
989
996
|
.xCustomInstructions="${this.xCustomInstructions}"
|
|
990
997
|
?show-close="${this.showClose}"
|
|
991
|
-
@mw:close-click="${
|
|
998
|
+
@mw:close-click="${g(this,Ue,ou)}">
|
|
992
999
|
<slot name="banner" slot="banner"></slot>
|
|
993
1000
|
</mw-chat>
|
|
994
|
-
`:E}injectConfig(r){m(this,
|
|
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`
|
|
995
1002
|
:host {
|
|
996
1003
|
all: initial; /* reset all properties that can pierce the shadow DOM */
|
|
997
1004
|
}
|
|
998
|
-
`),
|
|
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`
|
|
999
1006
|
<!-- embed our bubble component forwarding props -->
|
|
1000
1007
|
<!-- these props are never internally updated by mw-bubble so we pass them down only one way -->
|
|
1001
1008
|
<mw-bubble
|
|
1002
1009
|
state="${this.state}"
|
|
1003
|
-
.color="${
|
|
1004
|
-
.bubbleStyle="${
|
|
1005
|
-
.src="${
|
|
1006
|
-
`:E}};
|
|
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`
|
|
1007
1014
|
:host {
|
|
1008
1015
|
all: initial; /* reset all properties that can pierce the shadow DOM */
|
|
1009
1016
|
}
|
|
1010
|
-
`),
|
|
1017
|
+
`),y(Gr,"properties",{cdn:{type:String},widgetId:{type:String,attribute:"widget"},state:{type:String}});customElements.define("molin-shop-ai-launcher",Gr);var _5="navigator"in globalThis&&/Mobi|Android|iPhone/i.test(navigator.userAgent),A5="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`
|
|
1011
1018
|
<mw-bubble
|
|
1012
|
-
class="${r} ${
|
|
1013
|
-
@click="${
|
|
1014
|
-
state="${
|
|
1015
|
-
.color="${
|
|
1016
|
-
.bubbleStyle="${
|
|
1017
|
-
.src="${
|
|
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>
|
|
1018
1025
|
|
|
1019
1026
|
<!-- only load the component if enabled on any platform -->
|
|
1020
1027
|
${this.isPopupEnabled?h`
|
|
1021
1028
|
<mw-popup
|
|
1022
1029
|
position="${s}"
|
|
1023
|
-
delay="${this.config.popup?.delayMs||
|
|
1030
|
+
delay="${this.config.popup?.delayMs||lu({minMs:2e3,maxMs:5e3})}"
|
|
1024
1031
|
sound="${this.config.popup?.muteSounds?"":"https://assets.molinai.io/2024/widget-v20241209/popup.aac"}"
|
|
1025
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}}}"
|
|
1026
|
-
@mw:click="${
|
|
1033
|
+
@mw:click="${g(this,T,hu)}"></mw-popup>
|
|
1027
1034
|
`:E}
|
|
1028
1035
|
|
|
1029
1036
|
<!-- show "Try it out" if enabled (even if the chat window is showing) -->
|
|
@@ -1033,26 +1040,26 @@ var ou=Object.defineProperty;var Js=t=>{throw TypeError(t)};var au=(t,e,r)=>e in
|
|
|
1033
1040
|
text="${this.config.tryItOut?.text||""}"></mw-try-it-out>`:E}
|
|
1034
1041
|
|
|
1035
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. -->
|
|
1036
|
-
${
|
|
1043
|
+
${a(this,Je)?h`
|
|
1037
1044
|
<div
|
|
1038
|
-
class="${
|
|
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]">
|
|
1039
1046
|
<mw-chat
|
|
1040
1047
|
widget="${this.widgetId}"
|
|
1041
1048
|
.config="${this.config}"
|
|
1042
|
-
.callbacks="${
|
|
1049
|
+
.callbacks="${a(this,xi)}"
|
|
1043
1050
|
.xUserData="${this.xUserData}"
|
|
1044
1051
|
.xCustomInstructions="${this.xCustomInstructions}"
|
|
1045
1052
|
?show-close="${!0}"
|
|
1046
|
-
@mw:close-click="${
|
|
1053
|
+
@mw:close-click="${g(this,T,mu)}">
|
|
1047
1054
|
<slot name="banner" slot="banner"></slot>
|
|
1048
1055
|
</mw-chat>
|
|
1049
1056
|
</div>
|
|
1050
1057
|
`:E}
|
|
1051
|
-
`}get isPopupEnabled(){return
|
|
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`
|
|
1052
1059
|
:host {
|
|
1053
1060
|
all: initial; /* reset all properties that can pierce the shadow DOM */
|
|
1054
1061
|
}
|
|
1055
|
-
`),
|
|
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};
|
|
1056
1063
|
/*! Bundled license information:
|
|
1057
1064
|
|
|
1058
1065
|
@lit/reactive-element/css-tag.js:
|