@squeletteapp/widget 0.3.9 → 0.3.10

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/widget.js CHANGED
@@ -1,4 +1,4 @@
1
- var SqueletteWidgetBundle=function(E){"use strict";var gi=Object.defineProperty;var $n=E=>{throw TypeError(E)};var bi=(E,R,b)=>R in E?gi(E,R,{enumerable:!0,configurable:!0,writable:!0,value:b}):E[R]=b;var Ze=(E,R,b)=>bi(E,typeof R!="symbol"?R+"":R,b),Pn=(E,R,b)=>R.has(E)||$n("Cannot "+b);var u=(E,R,b)=>(Pn(E,R,"read from private field"),b?b.call(E):R.get(E)),V=(E,R,b)=>R.has(E)?$n("Cannot add the same private member more than once"):R instanceof WeakSet?R.add(E):R.set(E,b),A=(E,R,b,Be)=>(Pn(E,R,"write to private field"),Be?Be.call(E,b):R.set(E,b),b);var C,ve,We,te,we,qe,Ie,Ye,K,oe,ie,X,Xe,Oe,me;var R,b,Be,tr,ke,rr,nr,or,ir,yt,xt,kt,Ue={},ar=[],Mn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,je=Array.isArray;function pe(e,t){for(var r in t)e[r]=t[r];return e}function St(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Fe(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?R.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return Je(e,a,n,o,null)}function Je(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++Be:o,__i:-1,__u:0};return o==null&&b.vnode!=null&&b.vnode(i),i}function he(e){return e.children}function ue(e,t){this.props=e,this.context=t}function Ae(e,t){if(t==null)return e.__?Ae(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Ae(e):null}function sr(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return sr(e)}}function lr(e){(!e.__d&&(e.__d=!0)&&ke.push(e)&&!Ke.__r++||rr!=b.debounceRendering)&&((rr=b.debounceRendering)||nr)(Ke)}function Ke(){for(var e,t,r,n,o,i,a,s=1;ke.length;)ke.length>s&&ke.sort(or),e=ke.shift(),s=ke.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=pe({},n)).__v=n.__v+1,b.vnode&&b.vnode(r),Et(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o==null?Ae(n):o,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,pr(i,r,a),n.__e=n.__=null,r.__e!=o&&sr(r)));Ke.__r=0}function cr(e,t,r,n,o,i,a,s,c,d,f){var l,g,h,y,$,q,x,w=n&&n.__k||ar,T=t.length;for(c=zn(r,t,w,c,T),l=0;l<T;l++)(h=r.__k[l])!=null&&(g=h.__i==-1?Ue:w[h.__i]||Ue,h.__i=l,q=Et(e,h,g,o,i,a,s,c,d,f),y=h.__e,h.ref&&g.ref!=h.ref&&(g.ref&&qt(g.ref,null,h),f.push(h.ref,h.__c||y,h)),$==null&&y!=null&&($=y),(x=!!(4&h.__u))||g.__k===h.__k?c=dr(h,c,e,x):typeof h.type=="function"&&q!==void 0?c=q:y&&(c=y.nextSibling),h.__u&=-7);return r.__e=$,c}function zn(e,t,r,n,o){var i,a,s,c,d,f=r.length,l=f,g=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=i+g,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Je(null,a,null,null,null):je(a)?Je(he,{children:a},null,null,null):a.constructor==null&&a.__b>0?Je(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(d=a.__i=Ln(a,r,c,l))!=-1&&(l--,(s=r[d])&&(s.__u|=2)),s==null||s.__v==null?(d==-1&&(o>f?g--:o<f&&g++),typeof a.type!="function"&&(a.__u|=4)):d!=c&&(d==c-1?g--:d==c+1?g++:(d>c?g--:g++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<f;i++)(s=r[i])!=null&&!(2&s.__u)&&(s.__e==n&&(n=Ae(s)),_r(s,s));return n}function dr(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=dr(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=Ae(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Qe(e,t){return t=t||[],e==null||typeof e=="boolean"||(je(e)?e.some(function(r){Qe(r,t)}):t.push(e)),t}function Ln(e,t,r,n){var o,i,a,s=e.key,c=e.type,d=t[r],f=d!=null&&(2&d.__u)==0;if(d===null&&e.key==null||f&&s==d.key&&c==d.type)return r;if(n>(f?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((d=t[a=o>=0?o--:i++])!=null&&!(2&d.__u)&&s==d.key&&c==d.type)return a}return-1}function ur(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||Mn.test(t)?r:r+"px"}function et(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||ur(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||ur(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ir,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=yt,e.addEventListener(t,i?kt:xt,i)):e.removeEventListener(t,i?kt:xt,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function fr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=yt++;else if(t.t<r.u)return;return r(b.event?b.event(t):t)}}}function Et(e,t,r,n,o,i,a,s,c,d){var f,l,g,h,y,$,q,x,w,T,U,G,B,Z,p,P,N,L=t.type;if(t.constructor!=null)return null;128&r.__u&&(c=!!(32&r.__u),i=[s=t.__e=r.__e]),(f=b.__b)&&f(t);e:if(typeof L=="function")try{if(x=t.props,w="prototype"in L&&L.prototype.render,T=(f=L.contextType)&&n[f.__c],U=f?T?T.props.value:f.__:n,r.__c?q=(l=t.__c=r.__c).__=l.__E:(w?t.__c=l=new L(x,U):(t.__c=l=new ue(x,U),l.constructor=L,l.render=Rn),T&&T.sub(l),l.props=x,l.state||(l.state={}),l.context=U,l.__n=n,g=l.__d=!0,l.__h=[],l._sb=[]),w&&l.__s==null&&(l.__s=l.state),w&&L.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=pe({},l.__s)),pe(l.__s,L.getDerivedStateFromProps(x,l.__s))),h=l.props,y=l.state,l.__v=t,g)w&&L.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),w&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(w&&L.getDerivedStateFromProps==null&&x!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(x,U),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(x,l.__s,U)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(l.props=x,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),G=0;G<l._sb.length;G++)l.__h.push(l._sb[G]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(x,l.__s,U),w&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,y,$)})}if(l.context=U,l.props=x,l.__P=e,l.__e=!1,B=b.__r,Z=0,w){for(l.state=l.__s,l.__d=!1,B&&B(t),f=l.render(l.props,l.state,l.context),p=0;p<l._sb.length;p++)l.__h.push(l._sb[p]);l._sb=[]}else do l.__d=!1,B&&B(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++Z<25);l.state=l.__s,l.getChildContext!=null&&(n=pe(pe({},n),l.getChildContext())),w&&!g&&l.getSnapshotBeforeUpdate!=null&&($=l.getSnapshotBeforeUpdate(h,y)),P=f,f!=null&&f.type===he&&f.key==null&&(P=hr(f.props.children)),s=cr(e,je(P)?P:[P],t,r,n,o,i,a,s,c,d),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),q&&(l.__E=l.__=null)}catch(F){if(t.__v=null,c||i!=null)if(F.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else{for(N=i.length;N--;)St(i[N]);Ct(t)}else t.__e=r.__e,t.__k=r.__k,F.then||Ct(t);b.__e(F,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=Tn(r.__e,t,r,n,o,i,a,c,d);return(f=b.diffed)&&f(t),128&t.__u?void 0:s}function Ct(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Ct)}function pr(e,t,r){for(var n=0;n<r.length;n++)qt(r[n],r[++n],r[++n]);b.__c&&b.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){b.__e(i,o.__v)}})}function hr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:je(e)?e.map(hr):pe({},e)}function Tn(e,t,r,n,o,i,a,s,c){var d,f,l,g,h,y,$,q=r.props,x=t.props,w=t.type;if(w=="svg"?o="http://www.w3.org/2000/svg":w=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((h=i[d])&&"setAttribute"in h==!!w&&(w?h.localName==w:h.nodeType==3)){e=h,i[d]=null;break}}if(e==null){if(w==null)return document.createTextNode(x);e=document.createElementNS(o,w,x.is&&x),s&&(b.__m&&b.__m(t,i),s=!1),i=null}if(w==null)q===x||s&&e.data==x||(e.data=x);else{if(i=i&&R.call(e.childNodes),q=r.props||Ue,!s&&i!=null)for(q={},d=0;d<e.attributes.length;d++)q[(h=e.attributes[d]).name]=h.value;for(d in q)if(h=q[d],d!="children"){if(d=="dangerouslySetInnerHTML")l=h;else if(!(d in x)){if(d=="value"&&"defaultValue"in x||d=="checked"&&"defaultChecked"in x)continue;et(e,d,null,h,o)}}for(d in x)h=x[d],d=="children"?g=h:d=="dangerouslySetInnerHTML"?f=h:d=="value"?y=h:d=="checked"?$=h:s&&typeof h!="function"||q[d]===h||et(e,d,h,q[d],o);if(f)s||l&&(f.__html==l.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(l&&(e.innerHTML=""),cr(t.type=="template"?e.content:e,je(g)?g:[g],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&Ae(r,0),s,c),i!=null)for(d=i.length;d--;)St(i[d]);s||(d="value",w=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[d]||w=="progress"&&!y||w=="option"&&y!=q[d])&&et(e,d,y,q[d],o),d="checked",$!=null&&$!=e[d]&&et(e,d,$,q[d],o))}return e}function qt(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){b.__e(o,r)}}function _r(e,t,r){var n,o;if(b.unmount&&b.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||qt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){b.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&_r(n[o],t,r||typeof e.type!="function");r||St(e.__e),e.__c=e.__=e.__e=void 0}function Rn(e,t,r){return this.constructor(e,r)}function $e(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),b.__&&b.__(e,t),o=(n=!1)?null:t.__k,i=[],a=[],Et(t,e=t.__k=Fe(he,null,[e]),o||Ue,Ue,t.namespaceURI,o?null:t.firstChild?R.call(t.childNodes):null,i,o?o.__e:t.firstChild,n,a),pr(i,e,a)}R=ar.slice,b={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},Be=0,tr=function(e){return e!=null&&e.constructor==null},ue.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=pe({},this.state),typeof e=="function"&&(e=e(pe({},r),this.props)),e&&pe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),lr(this))},ue.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),lr(this))},ue.prototype.render=he,ke=[],nr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,or=function(e,t){return e.__v.__b-t.__v.__b},Ke.__r=0,ir=/(PointerCapture)$|Capture$/i,yt=0,xt=fr(!1),kt=fr(!0);var Nn=0;function k(e,t,r,n,o,i){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var d={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Nn,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return b.vnode&&b.vnode(d),d}const mr=`/*
1
+ var SqueletteWidgetBundle=function(q){"use strict";var gi=Object.defineProperty;var $n=q=>{throw TypeError(q)};var bi=(q,N,g)=>N in q?gi(q,N,{enumerable:!0,configurable:!0,writable:!0,value:g}):q[N]=g;var Ke=(q,N,g)=>bi(q,typeof N!="symbol"?N+"":N,g),Pn=(q,N,g)=>N.has(q)||$n("Cannot "+g);var p=(q,N,g)=>(Pn(q,N,"read from private field"),g?g.call(q):N.get(q)),Y=(q,N,g)=>N.has(q)?$n("Cannot add the same private member more than once"):N instanceof WeakSet?N.add(q):N.set(q,g),P=(q,N,g,Fe)=>(Pn(q,N,"write to private field"),Fe?Fe.call(q,g):N.set(q,g),g);var C,we,Oe,re,ye,Ae,Ie,Ze,ee,oe,ie,J,Je,Ue,_e;var N,g,Fe,rr,Se,nr,or,ir,ar,xt,kt,St,je={},sr=[],Mn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,He=Array.isArray;function pe(e,t){for(var r in t)e[r]=t[r];return e}function Et(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function De(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?N.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return Qe(e,a,n,o,null)}function Qe(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++Fe:o,__i:-1,__u:0};return o==null&&g.vnode!=null&&g.vnode(i),i}function he(e){return e.children}function ue(e,t){this.props=e,this.context=t}function $e(e,t){if(t==null)return e.__?$e(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?$e(e):null}function lr(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return lr(e)}}function cr(e){(!e.__d&&(e.__d=!0)&&Se.push(e)&&!et.__r++||nr!=g.debounceRendering)&&((nr=g.debounceRendering)||or)(et)}function et(){for(var e,t,r,n,o,i,a,s=1;Se.length;)Se.length>s&&Se.sort(ir),e=Se.shift(),s=Se.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=pe({},n)).__v=n.__v+1,g.vnode&&g.vnode(r),qt(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o==null?$e(n):o,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,hr(i,r,a),n.__e=n.__=null,r.__e!=o&&lr(r)));et.__r=0}function dr(e,t,r,n,o,i,a,s,l,d,f){var c,b,u,v,A,S,y,E=n&&n.__k||sr,$=t.length;for(l=zn(r,t,E,l,$),c=0;c<$;c++)(u=r.__k[c])!=null&&(b=u.__i==-1?je:E[u.__i]||je,u.__i=c,S=qt(e,u,b,o,i,a,s,l,d,f),v=u.__e,u.ref&&b.ref!=u.ref&&(b.ref&&At(b.ref,null,u),f.push(u.ref,u.__c||v,u)),A==null&&v!=null&&(A=v),(y=!!(4&u.__u))||b.__k===u.__k?l=ur(u,l,e,y):typeof u.type=="function"&&S!==void 0?l=S:v&&(l=v.nextSibling),u.__u&=-7);return r.__e=A,l}function zn(e,t,r,n,o){var i,a,s,l,d,f=r.length,c=f,b=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=i+b,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Qe(null,a,null,null,null):He(a)?Qe(he,{children:a},null,null,null):a.constructor==null&&a.__b>0?Qe(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(d=a.__i=Ln(a,r,l,c))!=-1&&(c--,(s=r[d])&&(s.__u|=2)),s==null||s.__v==null?(d==-1&&(o>f?b--:o<f&&b++),typeof a.type!="function"&&(a.__u|=4)):d!=l&&(d==l-1?b--:d==l+1?b++:(d>l?b--:b++,a.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<f;i++)(s=r[i])!=null&&!(2&s.__u)&&(s.__e==n&&(n=$e(s)),_r(s,s));return n}function ur(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=ur(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=$e(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function tt(e,t){return t=t||[],e==null||typeof e=="boolean"||(He(e)?e.some(function(r){tt(r,t)}):t.push(e)),t}function Ln(e,t,r,n){var o,i,a,s=e.key,l=e.type,d=t[r],f=d!=null&&(2&d.__u)==0;if(d===null&&e.key==null||f&&s==d.key&&l==d.type)return r;if(n>(f?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((d=t[a=o>=0?o--:i++])!=null&&!(2&d.__u)&&s==d.key&&l==d.type)return a}return-1}function fr(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||Mn.test(t)?r:r+"px"}function rt(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||fr(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||fr(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ar,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=xt,e.addEventListener(t,i?St:kt,i)):e.removeEventListener(t,i?St:kt,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function pr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=xt++;else if(t.t<r.u)return;return r(g.event?g.event(t):t)}}}function qt(e,t,r,n,o,i,a,s,l,d){var f,c,b,u,v,A,S,y,E,$,R,G,U,V,h,M,B,T=t.type;if(t.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(f=g.__b)&&f(t);e:if(typeof T=="function")try{if(y=t.props,E="prototype"in T&&T.prototype.render,$=(f=T.contextType)&&n[f.__c],R=f?$?$.props.value:f.__:n,r.__c?S=(c=t.__c=r.__c).__=c.__E:(E?t.__c=c=new T(y,R):(t.__c=c=new ue(y,R),c.constructor=T,c.render=Rn),$&&$.sub(c),c.props=y,c.state||(c.state={}),c.context=R,c.__n=n,b=c.__d=!0,c.__h=[],c._sb=[]),E&&c.__s==null&&(c.__s=c.state),E&&T.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=pe({},c.__s)),pe(c.__s,T.getDerivedStateFromProps(y,c.__s))),u=c.props,v=c.state,c.__v=t,b)E&&T.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),E&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(E&&T.getDerivedStateFromProps==null&&y!==u&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,R),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,R)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(j){j&&(j.__=t)}),G=0;G<c._sb.length;G++)c.__h.push(c._sb[G]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,R),E&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(u,v,A)})}if(c.context=R,c.props=y,c.__P=e,c.__e=!1,U=g.__r,V=0,E){for(c.state=c.__s,c.__d=!1,U&&U(t),f=c.render(c.props,c.state,c.context),h=0;h<c._sb.length;h++)c.__h.push(c._sb[h]);c._sb=[]}else do c.__d=!1,U&&U(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++V<25);c.state=c.__s,c.getChildContext!=null&&(n=pe(pe({},n),c.getChildContext())),E&&!b&&c.getSnapshotBeforeUpdate!=null&&(A=c.getSnapshotBeforeUpdate(u,v)),M=f,f!=null&&f.type===he&&f.key==null&&(M=mr(f.props.children)),s=dr(e,He(M)?M:[M],t,r,n,o,i,a,s,l,d),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),S&&(c.__E=c.__=null)}catch(j){if(t.__v=null,l||i!=null)if(j.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else{for(B=i.length;B--;)Et(i[B]);Ct(t)}else t.__e=r.__e,t.__k=r.__k,j.then||Ct(t);g.__e(j,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=Tn(r.__e,t,r,n,o,i,a,l,d);return(f=g.diffed)&&f(t),128&t.__u?void 0:s}function Ct(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Ct)}function hr(e,t,r){for(var n=0;n<r.length;n++)At(r[n],r[++n],r[++n]);g.__c&&g.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){g.__e(i,o.__v)}})}function mr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:He(e)?e.map(mr):pe({},e)}function Tn(e,t,r,n,o,i,a,s,l){var d,f,c,b,u,v,A,S=r.props,y=t.props,E=t.type;if(E=="svg"?o="http://www.w3.org/2000/svg":E=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((u=i[d])&&"setAttribute"in u==!!E&&(E?u.localName==E:u.nodeType==3)){e=u,i[d]=null;break}}if(e==null){if(E==null)return document.createTextNode(y);e=document.createElementNS(o,E,y.is&&y),s&&(g.__m&&g.__m(t,i),s=!1),i=null}if(E==null)S===y||s&&e.data==y||(e.data=y);else{if(i=i&&N.call(e.childNodes),S=r.props||je,!s&&i!=null)for(S={},d=0;d<e.attributes.length;d++)S[(u=e.attributes[d]).name]=u.value;for(d in S)if(u=S[d],d!="children"){if(d=="dangerouslySetInnerHTML")c=u;else if(!(d in y)){if(d=="value"&&"defaultValue"in y||d=="checked"&&"defaultChecked"in y)continue;rt(e,d,null,u,o)}}for(d in y)u=y[d],d=="children"?b=u:d=="dangerouslySetInnerHTML"?f=u:d=="value"?v=u:d=="checked"?A=u:s&&typeof u!="function"||S[d]===u||rt(e,d,u,S[d],o);if(f)s||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),dr(t.type=="template"?e.content:e,He(b)?b:[b],t,r,n,E=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&$e(r,0),s,l),i!=null)for(d=i.length;d--;)Et(i[d]);s||(d="value",E=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[d]||E=="progress"&&!v||E=="option"&&v!=S[d])&&rt(e,d,v,S[d],o),d="checked",A!=null&&A!=e[d]&&rt(e,d,A,S[d],o))}return e}function At(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){g.__e(o,r)}}function _r(e,t,r){var n,o;if(g.unmount&&g.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||At(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){g.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&_r(n[o],t,r||typeof e.type!="function");r||Et(e.__e),e.__c=e.__=e.__e=void 0}function Rn(e,t,r){return this.constructor(e,r)}function Pe(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),g.__&&g.__(e,t),o=(n=!1)?null:t.__k,i=[],a=[],qt(t,e=t.__k=De(he,null,[e]),o||je,je,t.namespaceURI,o?null:t.firstChild?N.call(t.childNodes):null,i,o?o.__e:t.firstChild,n,a),hr(i,e,a)}N=sr.slice,g={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},Fe=0,rr=function(e){return e!=null&&e.constructor==null},ue.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=pe({},this.state),typeof e=="function"&&(e=e(pe({},r),this.props)),e&&pe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),cr(this))},ue.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cr(this))},ue.prototype.render=he,Se=[],or=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ir=function(e,t){return e.__v.__b-t.__v.__b},et.__r=0,ar=/(PointerCapture)$|Capture$/i,xt=0,kt=pr(!1),St=pr(!0);var Nn=0;function x(e,t,r,n,o,i){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var d={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Nn,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return g.vnode&&g.vnode(d),d}const gr=`/*
2
2
  * Scoped styles for the embedded iframe element. These live in the Shadow DOM
3
3
  * and are injected using constructable style sheets when supported.
4
4
  */
@@ -23,7 +23,7 @@ var SqueletteWidgetBundle=function(E){"use strict";var gi=Object.defineProperty;
23
23
  :host([data-theme="dark"]) .sq-frame {
24
24
  background: rgba(0, 0, 0, 0.3);
25
25
  }
26
- `;var Pe,I,At,gr,tt=0,br=[],O=b,vr=O.__b,wr=O.__r,yr=O.diffed,xr=O.__c,kr=O.unmount,Sr=O.__;function rt(e,t){O.__h&&O.__h(I,e,tt||t),tt=0;var r=I.__H||(I.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Me(e){return tt=1,Wn(Cr,e)}function Wn(e,t,r){var n=rt(Pe++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Cr(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],d=n.t(c,s);c!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=I,!I.__f)){var o=function(s,c,d){if(!n.__c.__H)return!0;var f=n.__c.__H.__.filter(function(g){return!!g.__c});if(f.every(function(g){return!g.__N}))return!i||i.call(this,s,c,d);var l=n.__c.props!==s;return f.forEach(function(g){if(g.__N){var h=g.__[0];g.__=g.__N,g.__N=void 0,h!==g.__[0]&&(l=!0)}}),i&&i.call(this,s,c,d)||l};I.__f=!0;var i=I.shouldComponentUpdate,a=I.componentWillUpdate;I.componentWillUpdate=function(s,c,d){if(this.__e){var f=i;i=void 0,o(s,c,d),i=f}a&&a.call(this,s,c,d)},I.shouldComponentUpdate=o}return n.__N||n.__}function ee(e,t){var r=rt(Pe++,3);!O.__s&&zt(r.__H,t)&&(r.__=e,r.u=t,I.__H.__h.push(r))}function $t(e,t){var r=rt(Pe++,4);!O.__s&&zt(r.__H,t)&&(r.__=e,r.u=t,I.__h.push(r))}function Y(e){return tt=5,Pt(function(){return{current:e}},[])}function Pt(e,t){var r=rt(Pe++,7);return zt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function In(){for(var e;e=br.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nt),e.__H.__h.forEach(Mt),e.__H.__h=[]}catch(t){e.__H.__h=[],O.__e(t,e.__v)}}O.__b=function(e){I=null,vr&&vr(e)},O.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Sr&&Sr(e,t)},O.__r=function(e){wr&&wr(e),Pe=0;var t=(I=e.__c).__H;t&&(At===I?(t.__h=[],I.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(nt),t.__h.forEach(Mt),t.__h=[],Pe=0)),At=I},O.diffed=function(e){yr&&yr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(br.push(t)!==1&&gr===O.requestAnimationFrame||((gr=O.requestAnimationFrame)||On)(In)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),At=I=null},O.__c=function(e,t){t.some(function(r){try{r.__h.forEach(nt),r.__h=r.__h.filter(function(n){return!n.__||Mt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],O.__e(n,r.__v)}}),xr&&xr(e,t)},O.unmount=function(e){kr&&kr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{nt(n)}catch(o){t=o}}),r.__H=void 0,t&&O.__e(t,r.__v))};var Er=typeof requestAnimationFrame=="function";function On(e){var t,r=function(){clearTimeout(n),Er&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Er&&(t=requestAnimationFrame(r))}function nt(e){var t=I,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),I=t}function Mt(e){var t=I;e.__c=e.__(),I=t}function zt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Cr(e,t){return typeof t=="function"?t(e):t}function Bn({open:e,label:t,iframeSrc:r,FrameComponent:n,ensureFrame:o,onOpen:i,onClose:a,onFrameLoaded:s}){ee(()=>{e&&o()},[e,o]);const c=n;return k("div",{class:"sq-root",children:[k("button",{class:"sq-trigger",type:"button","aria-haspopup":"dialog","aria-expanded":e?"true":"false",onClick:e?a:i,part:"launcher",children:[k("span",{class:"sq-trigger-icon","aria-hidden":"true",children:"✶"}),k("span",{class:"sq-trigger-label",children:t})]}),k("div",{class:"sq-overlay","data-state":e?"open":"closed",onClick:a,role:"presentation"}),k("div",{class:"sq-panel","data-state":e?"open":"closed","aria-hidden":e?"false":"true",part:"panel",children:c&&r?k(c,{src:r,title:"Squelette feedback",onLoaded:s,onClose:a}):null})]})}const Lt="squelette-widget",Tt=typeof globalThis!="undefined"?globalThis:{},Rt=typeof Tt.SQUELETTE_WIDGET_BASE_URL=="string"&&Tt.SQUELETTE_WIDGET_BASE_URL.length>0?Tt.SQUELETTE_WIDGET_BASE_URL:"https://www.squelette.app",Un="https://cdn.squelette.app/widget.js",ot="Feedback";class jn{constructor(){Ze(this,"listeners",new Map)}on(t,r){var o;const n=(o=this.listeners.get(t))!=null?o:new Set;return n.add(r),this.listeners.set(t,n),()=>this.off(t,r)}off(t,r){const n=this.listeners.get(t);n&&n.delete(r)}emit(t,r){const n=this.listeners.get(t);if(n)for(const o of n)o(r)}}const Fn=`
26
+ `;var Me,O,$t,br,nt=0,vr=[],I=g,wr=I.__b,yr=I.__r,xr=I.diffed,kr=I.__c,Sr=I.unmount,Er=I.__;function ot(e,t){I.__h&&I.__h(O,e,nt||t),nt=0;var r=O.__H||(O.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ze(e){return nt=1,Bn(Cr,e)}function Bn(e,t,r){var n=ot(Me++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Cr(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],d=n.t(l,s);l!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=O,!O.__f)){var o=function(s,l,d){if(!n.__c.__H)return!0;var f=n.__c.__H.__.filter(function(b){return!!b.__c});if(f.every(function(b){return!b.__N}))return!i||i.call(this,s,l,d);var c=n.__c.props!==s;return f.forEach(function(b){if(b.__N){var u=b.__[0];b.__=b.__N,b.__N=void 0,u!==b.__[0]&&(c=!0)}}),i&&i.call(this,s,l,d)||c};O.__f=!0;var i=O.shouldComponentUpdate,a=O.componentWillUpdate;O.componentWillUpdate=function(s,l,d){if(this.__e){var f=i;i=void 0,o(s,l,d),i=f}a&&a.call(this,s,l,d)},O.shouldComponentUpdate=o}return n.__N||n.__}function Q(e,t){var r=ot(Me++,3);!I.__s&&Lt(r.__H,t)&&(r.__=e,r.u=t,O.__H.__h.push(r))}function Pt(e,t){var r=ot(Me++,4);!I.__s&&Lt(r.__H,t)&&(r.__=e,r.u=t,O.__h.push(r))}function X(e){return nt=5,Mt(function(){return{current:e}},[])}function Mt(e,t){var r=ot(Me++,7);return Lt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Wn(){for(var e;e=vr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(it),e.__H.__h.forEach(zt),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){O=null,wr&&wr(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Er&&Er(e,t)},I.__r=function(e){yr&&yr(e),Me=0;var t=(O=e.__c).__H;t&&($t===O?(t.__h=[],O.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(it),t.__h.forEach(zt),t.__h=[],Me=0)),$t=O},I.diffed=function(e){xr&&xr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(vr.push(t)!==1&&br===I.requestAnimationFrame||((br=I.requestAnimationFrame)||On)(Wn)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),$t=O=null},I.__c=function(e,t){t.some(function(r){try{r.__h.forEach(it),r.__h=r.__h.filter(function(n){return!n.__||zt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(n,r.__v)}}),kr&&kr(e,t)},I.unmount=function(e){Sr&&Sr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{it(n)}catch(o){t=o}}),r.__H=void 0,t&&I.__e(t,r.__v))};var qr=typeof requestAnimationFrame=="function";function On(e){var t,r=function(){clearTimeout(n),qr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);qr&&(t=requestAnimationFrame(r))}function it(e){var t=O,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),O=t}function zt(e){var t=O;e.__c=e.__(),O=t}function Lt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Cr(e,t){return typeof t=="function"?t(e):t}function In({open:e,label:t,iframeSrc:r,FrameComponent:n,ensureFrame:o,onOpen:i,onClose:a,onFrameLoaded:s}){Q(()=>{e&&o()},[e,o]);const l=n;return x("div",{class:"sq-root",children:[x("button",{class:"sq-trigger",type:"button","aria-haspopup":"dialog","aria-expanded":e?"true":"false",onClick:e?a:i,part:"launcher",children:[x("span",{class:"sq-trigger-icon","aria-hidden":"true",children:"✶"}),x("span",{class:"sq-trigger-label",children:t})]}),x("div",{class:"sq-overlay","data-state":e?"open":"closed",onClick:a,role:"presentation"}),x("div",{class:"sq-panel","data-state":e?"open":"closed","aria-hidden":e?"false":"true",part:"panel",children:l&&r?x(l,{src:r,title:"Squelette feedback",onLoaded:s,onClose:a}):null})]})}const Tt="squelette-widget",Rt=typeof globalThis!="undefined"?globalThis:{},Nt=typeof Rt.SQUELETTE_WIDGET_BASE_URL=="string"&&Rt.SQUELETTE_WIDGET_BASE_URL.length>0?Rt.SQUELETTE_WIDGET_BASE_URL:"https://www.squelette.app",Un="https://cdn.squelette.app/widget.js",at="Feedback";class Fn{constructor(){Ke(this,"listeners",new Map)}on(t,r){var o;const n=(o=this.listeners.get(t))!=null?o:new Set;return n.add(r),this.listeners.set(t,n),()=>this.off(t,r)}off(t,r){const n=this.listeners.get(t);n&&n.delete(r)}emit(t,r){const n=this.listeners.get(t);if(n)for(const o of n)o(r)}}const jn=`
27
27
  :host {
28
28
  position: relative;
29
29
  z-index: 2147483000;
@@ -160,7 +160,7 @@ var SqueletteWidgetBundle=function(E){"use strict";var gi=Object.defineProperty;
160
160
  max-height: min(85vh, 720px);
161
161
  }
162
162
  }
163
- `,qr=new Map,Hn=typeof Document!="undefined"&&"adoptedStyleSheets"in Document.prototype;function it(e,t){var n;if(!t)return;if(Hn){let o=(n=qr.get(t))!=null?n:null;o||(o=new CSSStyleSheet,o.replaceSync(t),qr.set(t,o)),e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return}const r=document.createElement("style");r.textContent=t,e.appendChild(r)}function Dn(e){it(e,Fn)}function Gn(e,t,r){r?e.hasAttribute(t)||e.setAttribute(t,""):e.hasAttribute(t)&&e.removeAttribute(t)}function Ar(e){return e?e.toLowerCase():"en"}function $r(e){return e==="light"||e==="dark"?e:"auto"}function at(e){return e==="roadmap"||e==="changelog"?e:"feedback"}function Pr(e){if(!e.project)return null;const t=new URLSearchParams({locale:e.locale});e.theme&&e.theme!=="auto"&&t.set("theme",e.theme),e.signature&&t.set("signature",e.signature),e.token&&t.set("token",e.token);const r=e.apiBase.replace(/\/$/,"");switch(e.view){case"roadmap":return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/roadmap?${t.toString()}`;case"changelog":return`${r}/widget/${encodeURIComponent(e.project)}/changelog?${t.toString()}`;case"feedback":default:return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/feedback?${t.toString()}`}}function Vn(e,t){const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{e.dataset.theme=o?"dark":"light"};if(t==="auto"){n(r.matches);const o=i=>n(i.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)}return e.dataset.theme=t,()=>{}}const Nt={feedback:{width:340,height:200},roadmap:{width:400,height:420},changelog:{width:400,height:520}},Wt={width:400,height:540};function It(e,t){var o;const{width:r,height:n}=(o=Nt[t])!=null?o:Wt;e.style.setProperty("--sq-panel-width",`${r}px`),e.style.setProperty("--sq-panel-height",`${n}px`)}function Yn(e){const t=document.body.style;{const r={overflow:t.overflow,paddingRight:t.paddingRight},n=window.innerWidth-document.documentElement.clientWidth;return t.overflow="hidden",n>0&&(t.paddingRight=`${n}px`),()=>{t.overflow=r.overflow,t.paddingRight=r.paddingRight}}}class Mr extends HTMLElement{constructor(){super();V(this,C,{project:null,board:null,theme:"auto",locale:"en",apiBase:Rt,label:ot,view:"feedback"});V(this,ve,!1);V(this,We,!1);V(this,te,!1);V(this,we);V(this,qe);V(this,Ie,null);V(this,Ye,null);V(this,K,null);V(this,oe,null);V(this,ie,null);V(this,X,null);V(this,Xe,null);V(this,Oe,new jn);V(this,me,null);Ze(this,"ensureFrameModule",async()=>{var r,n,o;if(!(u(this,Ie)||u(this,We))){A(this,We,!0),this.render();try{(r=u(this,Ye))!=null||A(this,Ye,Promise.resolve().then(()=>mi));const i=await u(this,Ye),a=(n=i.WidgetFrame)!=null?n:i.default;if(!a)throw new Error("[SqueletteWidget] Widget app missing export");A(this,Ie,a),it(u(this,we),(o=i.stylesText)!=null?o:mr)}catch(i){console.error("[SqueletteWidget] Failed to load widget app",i)}finally{A(this,We,!1),this.render()}}});Ze(this,"handleFrameLoaded",()=>{A(this,te,!0),A(this,me,u(this,we).querySelector("iframe")),this.postIdentityToFrame(),this.render(),this.dispatchEvent(new CustomEvent("squelette:frame-loaded"))});A(this,we,this.attachShadow({mode:"open"})),A(this,qe,document.createElement("div")),Dn(u(this,we)),u(this,we).appendChild(u(this,qe)),this.render()}static get observedAttributes(){return["project","board","theme","locale","token","signature","label","view","open","api-base"]}connectedCallback(){var n,o,i;u(this,C).project=this.getAttribute("project"),u(this,C).board=this.getAttribute("board"),u(this,C).theme=$r(this.getAttribute("theme")),u(this,C).locale=Ar(this.getAttribute("locale")),u(this,C).token=(n=this.getAttribute("token"))!=null?n:void 0,u(this,C).signature=(o=this.getAttribute("signature"))!=null?o:void 0,u(this,C).label=(i=this.getAttribute("label"))!=null?i:ot,u(this,C).view=at(this.getAttribute("view"));const r=this.getAttribute("api-base");u(this,C).apiBase=r&&r.length>0?r:u(this,C).apiBase,this.applyTheme(u(this,C).theme),It(this,u(this,C).view),this.hasAttribute("open")&&this.setOpen(!0,"attribute"),A(this,ie,a=>{if(!u(this,C).project||!a.data||typeof a.data!="object")return;try{const d=new URL(u(this,C).apiBase).origin;if(a.origin!==d)return}catch{return}const s=a.data;if(s.type!=="squelette:submit")return;const c=s.payload;c&&u(this,Oe).emit("submit",{source:"app",payload:c})}),window.addEventListener("message",u(this,ie)),A(this,oe,a=>{var c;A(this,Xe,(c=a.detail)!=null?c:null),this.postIdentityToFrame()}),window.addEventListener("squelette:identity",u(this,oe)),this.render()}disconnectedCallback(){u(this,ie)&&(window.removeEventListener("message",u(this,ie)),A(this,ie,null)),u(this,K)&&(u(this,K).call(this),A(this,K,null)),u(this,oe)&&(window.removeEventListener("squelette:identity",u(this,oe)),A(this,oe,null)),u(this,X)&&(u(this,X).call(this),A(this,X,null))}attributeChangedCallback(r,n,o){if(r==="open"){if(u(this,ve)===(o!==null))return;this.setOpen(o!==null,"attribute");return}switch(r){case"project":u(this,C).project=o,A(this,te,!1);break;case"board":u(this,C).board=o,A(this,te,!1);break;case"locale":u(this,C).locale=Ar(o),A(this,te,!1);break;case"theme":u(this,C).theme=$r(o),this.applyTheme(u(this,C).theme);break;case"token":u(this,C).token=o!=null?o:void 0,A(this,te,!1);break;case"signature":u(this,C).signature=o!=null?o:void 0,A(this,te,!1);break;case"label":u(this,C).label=o!=null?o:ot;break;case"view":u(this,C).view=at(o),A(this,te,!1),It(this,u(this,C).view);break;case"api-base":u(this,C).apiBase=o&&o.length>0?o:Rt,A(this,te,!1);break}r!=="open"&&this.render()}async open(){await this.setOpen(!0,"api")}async close(){await this.setOpen(!1,"api")}async toggle(){await this.setOpen(!u(this,ve),"api")}on(r,n){return r==="submit"&&!u(this,C).project&&console.warn("[SqueletteWidget] Cannot listen for submit before project is set."),u(this,Oe).on(r,n)}async destroy(){$e(null,u(this,qe)),u(this,ie)&&(window.removeEventListener("message",u(this,ie)),A(this,ie,null)),u(this,K)&&(u(this,K).call(this),A(this,K,null)),u(this,oe)&&(window.removeEventListener("squelette:identity",u(this,oe)),A(this,oe,null)),this.parentNode&&this.parentNode.removeChild(this),u(this,X)&&(u(this,X).call(this),A(this,X,null))}render(){const r=Pr(u(this,C));$e(k(Bn,{open:u(this,ve),label:u(this,C).label,iframeSrc:r,FrameComponent:u(this,Ie),ensureFrame:this.ensureFrameModule,onOpen:()=>void this.setOpen(!0,"api"),onClose:()=>void this.setOpen(!1,"api"),onFrameLoaded:this.handleFrameLoaded}),u(this,qe))}async setOpen(r,n){if(r&&!u(this,C).project){console.warn("[SqueletteWidget] Missing `project` attribute or option.");return}if(u(this,ve)!==r){if(A(this,ve,r),Gn(this,"open",r),r)u(this,X)||A(this,X,Yn()),It(this,u(this,C).view);else{u(this,X)&&(u(this,X).call(this),A(this,X,null)),A(this,te,!1);const o=Pr(u(this,C));o&&u(this,me)&&(u(this,me).src=o)}this.render(),u(this,Oe).emit(r?"open":"close",{source:n})}}applyTheme(r){u(this,K)&&(u(this,K).call(this),A(this,K,null)),A(this,K,Vn(this,r))}postIdentityToFrame(){if(!(!u(this,me)||!u(this,me).contentWindow))try{const r=new URL(u(this,C).apiBase).origin;u(this,me).contentWindow.postMessage({type:"squelette-identify",payload:u(this,Xe)},r)}catch(r){console.warn("[SqueletteWidget] Unable to forward identity payload",r)}}}C=new WeakMap,ve=new WeakMap,We=new WeakMap,te=new WeakMap,we=new WeakMap,qe=new WeakMap,Ie=new WeakMap,Ye=new WeakMap,K=new WeakMap,oe=new WeakMap,ie=new WeakMap,X=new WeakMap,Xe=new WeakMap,Oe=new WeakMap,me=new WeakMap;function Ot(){customElements.get(Lt)||customElements.define(Lt,Mr)}let st=null;function zr(e){window.dispatchEvent(new CustomEvent("squelette:identity",{detail:e}))}function Lr(e){if(!e||!e.userId||!e.email||!e.signature){console.error("[SqueletteWidget] Invalid identification payload.",e);return}st=e,zr(st)}function Tr(){st=null,zr(null)}function Rr(){return st}function Bt(e,t,r){const n=Math.max(t,r);return Math.min(Math.max(e,t),n)}function Xn(e,t){var B,Z;const r=[],n=(B=t.position)!=null?B:"top",o=(Z=t.overlayBlur)!=null?Z:!0,i=12,a=n.startsWith("fixed-"),s=/^fixed-(top|center|bottom)-(left|center|right)$/;let c=null,d=!1,f=!1,l=null;const g=()=>{e.removeAttribute("data-anchor"),e.removeAttribute("data-anchor-origin"),e.removeAttribute("data-fixed-vertical"),e.removeAttribute("data-fixed-horizontal"),e.style.removeProperty("--sq-offset-top"),e.style.removeProperty("--sq-offset-left"),e.style.removeProperty("--sq-offset-bottom"),e.style.removeProperty("--sq-offset-right")},h=()=>{var ye;if(!d||!c)return;const p=c.getBoundingClientRect(),P=window.innerWidth,N=window.innerHeight,L=at(e.getAttribute("view")),F=(ye=Nt[L])!=null?ye:Wt,ae=Math.min(F.width,P-i*2),se=Math.min(F.height,N-i*2),le=Math.max(i,P-ae-i),J=Math.max(i,N-se-i),ce=p.top-i,v=N-p.bottom-i;let re=p.bottom+i,Q=p.left+p.width/2-ae/2,de="top";if(n==="left"||n==="right"){let M=n==="right";const H=p.right+i,fe=p.left-ae-i,xe=H+ae<=P-i,W=fe>=i;M&&!xe&&W?M=!1:!M&&!W&&xe&&(M=!0),M?(Q=H,de="left"):(Q=fe,de="right");const gt=p.top+p.height/2-se/2;re=Bt(gt,i,J)}else{let M=n==="bottom";n!=="top"&&n!=="bottom"&&(M=v>=ce);const H=p.bottom+i,fe=p.top-se-i,xe=H+se<=N-i,W=fe>=i;M&&!xe&&W?M=!1:!M&&!W&&xe&&(M=!0),M?(re=H,de="top"):(re=fe,de="bottom"),Q=p.left+p.width/2-ae/2}re=Bt(re,i,J),Q=Bt(Q,i,le),e.dataset.anchor="button",e.dataset.anchorOrigin=de,e.style.setProperty("--sq-offset-top",`${Math.round(re)}px`),e.style.setProperty("--sq-offset-left",`${Math.round(Q)}px`),e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto")},y=()=>{d&&requestAnimationFrame(h)},$=()=>{f||(window.addEventListener("resize",y),window.addEventListener("scroll",y,!0),f=!0)},q=()=>{f&&(window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0),f=!1)},x=()=>{!c||a||(d=!0,e.dataset.anchor="button",e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto"),$(),h(),requestAnimationFrame(h))},w=()=>{d=!1,q()};r.push(()=>{w(),g()}),o||(e.dataset.overlayBlur="off",r.push(()=>{delete e.dataset.overlayBlur}));const T=()=>{var M;if(!a)return;const p=n.match(s);if(!p){console.warn(`[SqueletteWidget] Unsupported position value: ${n}`);return}const[,P,N]=p,L=24,F=at(e.getAttribute("view")),ae=(M=Nt[F])!=null?M:Wt,se=window.innerWidth,le=window.innerHeight,J=Math.min(ae.width,se-L*2),ce=Math.min(ae.height,le-L*2);let v="auto",re="auto",Q="auto",de="auto";switch(P){case"top":v=`${L}px`;break;case"bottom":re=`${L}px`;break;case"center":v=`${Math.max(L,Math.round((le-ce)/2))}px`;break}switch(N){case"left":Q=`${L}px`;break;case"right":de=`${L}px`;break;case"center":Q=`${Math.max(L,Math.round((se-J)/2))}px`;break}e.dataset.anchor="fixed";const ye=P==="center"?N==="center"?"bottom":N:P;e.dataset.anchorOrigin=ye,e.dataset.fixedVertical=P,e.dataset.fixedHorizontal=N,e.style.setProperty("--sq-offset-top",v),e.style.setProperty("--sq-offset-bottom",re),e.style.setProperty("--sq-offset-left",Q),e.style.setProperty("--sq-offset-right",de)};if(a&&T(),t.buttonSelector)if(c=document.querySelector(t.buttonSelector),c){const p=c;e.dataset.launcherHidden="true",r.push(()=>{delete e.dataset.launcherHidden});const P=L=>{L.preventDefault(),L.stopPropagation(),e.toggle()};p.addEventListener("click",P,!1),r.push(()=>p.removeEventListener("click",P,!1));const N=()=>{a?T():requestAnimationFrame(h)};e.addEventListener("squelette:frame-loaded",N),r.push(()=>e.removeEventListener("squelette:frame-loaded",N)),l=L=>{if(!e.hasAttribute("open"))return;const F=L.target;!e.contains(F)&&!p.contains(F)&&e.close()},document.addEventListener("click",l,!0),r.push(()=>{l&&(document.removeEventListener("click",l,!0),l=null)})}else console.warn(`[SqueletteWidget] Button selector not found: ${t.buttonSelector}`);const U=e.on("open",()=>{a?T():c&&x()}),G=e.on("close",()=>{w()});if(r.push(U,G),t.onOpenChange){const p=e.on("open",()=>{var N;return(N=t.onOpenChange)==null?void 0:N.call(t,!0)}),P=e.on("close",()=>{var N;return(N=t.onOpenChange)==null?void 0:N.call(t,!1)});r.push(p,P)}if(t.onLoad){const p=()=>{var P;(P=t.onLoad)==null||P.call(t),e.removeEventListener("squelette:frame-loaded",p)};e.addEventListener("squelette:frame-loaded",p),r.push(()=>e.removeEventListener("squelette:frame-loaded",p))}return r}const Nr='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--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-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--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-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance: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{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-\\[32px\\]{border-radius:32px}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-\\[3px\\]{border-width:3px}.border-none{border-style:none}.border-\\[\\#222222\\]{--tw-border-opacity: 1;border-color:rgb(34 34 34 / var(--tw-border-opacity, 1))}.border-\\[\\#f0f0f0\\]{--tw-border-opacity: 1;border-color:rgb(240 240 240 / var(--tw-border-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-transparent{background-color:transparent}.bg-white\\/30{background-color:#ffffff4d}.p-0{padding:0}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.align-baseline{vertical-align:baseline}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}:host{display:block;width:100%;contain:content;--squelette-banner-bg: #ffffff;--squelette-banner-border: #e5e7eb;--squelette-banner-text: #111827;--squelette-banner-badge-bg: #7f3cec;--squelette-banner-badge-text: #ffffff;--squelette-banner-button-hover: .7}';var Zn=Symbol.for("preact-signals");function lt(){if(ge>1)ge--;else{for(var e,t=!1;He!==void 0;){var r=He;for(He=void 0,Ut++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Or(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(Ut=0,ge--,t)throw e}}function Jn(e){if(ge>0)return e();ge++;try{return e()}finally{lt()}}var z=void 0;function Wr(e){var t=z;z=void 0;try{return e()}finally{z=t}}var He=void 0,ge=0,Ut=0,ct=0;function Ir(e){if(z!==void 0){var t=e.n;if(t===void 0||t.t!==z)return t={i:0,S:e,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:t},z.s!==void 0&&(z.s.n=t),z.s=t,e.n=t,32&z.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=z.s,t.n=void 0,z.s.n=t,z.s=t),t}}function D(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}D.prototype.brand=Zn,D.prototype.h=function(){return!0},D.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Wr(function(){var n;(n=t.W)==null||n.call(t)}))},D.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Wr(function(){var o;(o=t.Z)==null||o.call(t)}))}},D.prototype.subscribe=function(e){var t=this;return De(function(){var r=t.value,n=z;z=void 0;try{e(r)}finally{z=n}},{name:"sub"})},D.prototype.valueOf=function(){return this.value},D.prototype.toString=function(){return this.value+""},D.prototype.toJSON=function(){return this.value},D.prototype.peek=function(){var e=z;z=void 0;try{return this.value}finally{z=e}},Object.defineProperty(D.prototype,"value",{get:function(){var e=Ir(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ut>100)throw new Error("Cycle detected");this.v=e,this.i++,ct++,ge++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{lt()}}}});function Se(e,t){return new D(e,t)}function Or(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Br(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Ur(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Ee(e,t){D.call(this,void 0),this.x=e,this.s=void 0,this.g=ct-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Ee.prototype=new D,Ee.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ct))return!0;if(this.g=ct,this.f|=1,this.i>0&&!Or(this))return this.f&=-2,!0;var e=z;try{Br(this),z=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return z=e,Ur(this),this.f&=-2,!0},Ee.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}D.prototype.S.call(this,e)},Ee.prototype.U=function(e){if(this.t!==void 0&&(D.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Ee.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Ee.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ir(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function jr(e,t){return new Ee(e,t)}function Fr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ge++;var r=z;z=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,jt(e),n}finally{z=r,lt()}}}function jt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Fr(e)}function Kn(e){if(z!==this)throw new Error("Out-of-order effect");Ur(this),z=e,this.f&=-2,8&this.f&&jt(this),lt()}function ze(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}ze.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},ze.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Fr(this),Br(this),ge++;var e=z;return z=this,Kn.bind(this,e)},ze.prototype.N=function(){2&this.f||(this.f|=2,this.o=He,He=this)},ze.prototype.d=function(){this.f|=8,1&this.f||jt(this)},ze.prototype.dispose=function(){this.d()};function De(e,t){var r=new ze(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Hr,Ft,Dr=[];De(function(){Hr=this.N})();function Le(e,t){b[e]=t.bind(null,b[e]||function(){})}function dt(e){Ft&&Ft(),Ft=e&&e.S()}function Gr(e){var t=this,r=e.data,n=eo(r);n.value=r;var o=Pt(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var d=jr(function(){var h=n.value.value;return h===0?0:h===!0?"":h||""}),f=jr(function(){return!Array.isArray(d.value)&&!tr(d.value)}),l=De(function(){if(this.N=Vr,f.value){var h=d.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=h)}}),g=t.__$u.d;return t.__$u.d=function(){l(),g.call(this)},[f,d]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}Gr.displayName="ReactiveTextNode",Object.defineProperties(D.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Gr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Le("__b",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof D&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)}),Le("__r",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==he){dt();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(o){var i;return De(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i}())),dt(r)}e(t)}),Le("__e",function(e,t,r,n){typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),dt(),e(t,r,n)}),Le("diffed",function(e,t){typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),dt();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var c in n){var d=i[c],f=n[c];d===void 0?(d=Qn(r,c,f,o),i[c]=d):d.o(f,o)}}}e(t)});function Qn(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=Se(r);return{o:function(a,s){i.value=a,n=s},d:De(function(){this.N=Vr;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}Le("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)}),Le("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)}),ue.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function eo(e,t){return Me(function(){return Se(e,t)})[0]}var to=function(e){queueMicrotask(function(){queueMicrotask(e)})};function ro(){Jn(function(){for(var e;e=Dr.shift();)Hr.call(e)})}function Vr(){Dr.push(this)===1&&(b.requestAnimationFrame||to)(ro)}function Yr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Yr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function no(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Yr(e))&&(n&&(n+=" "),n+=t);return n}const Ht="-",oo=e=>{const t=ao(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const s=a.split(Ht);return s[0]===""&&s.length!==1&&s.shift(),Xr(s,t)||io(a)},getConflictingClassGroupIds:(a,s)=>{const c=r[a]||[];return s&&n[a]?[...c,...n[a]]:c}}},Xr=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Xr(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Ht);return(a=t.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},Zr=/^\[(.+)\]$/,io=e=>{if(Zr.test(e)){const t=Zr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ao=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Dt(r[o],n,o,t);return n},Dt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Jr(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(so(o)){Dt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,a])=>{Dt(a,Jr(t,i),r,n)})})},Jr=(e,t)=>{let r=e;return t.split(Ht).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},so=e=>e.isThemeGetter,lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,a)=>{r.set(i,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let a=r.get(i);if(a!==void 0)return a;if((a=n.get(i))!==void 0)return o(i,a),a},set(i,a){r.has(i)?r.set(i,a):o(i,a)}}},Gt="!",Vt=":",co=Vt.length,uo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,s=0,c=0,d;for(let y=0;y<o.length;y++){let $=o[y];if(a===0&&s===0){if($===Vt){i.push(o.slice(c,y)),c=y+co;continue}if($==="/"){d=y;continue}}$==="["?a++:$==="]"?a--:$==="("?s++:$===")"&&s--}const f=i.length===0?o:o.substring(c),l=fo(f),g=l!==f,h=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:l,maybePostfixModifierPosition:h}};if(t){const o=t+Vt,i=n;n=a=>a.startsWith(o)?i(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},fo=e=>e.endsWith(Gt)?e.substring(0,e.length-1):e.startsWith(Gt)?e.substring(1):e,po=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let i=[];return n.forEach(a=>{a[0]==="["||t[a]?(o.push(...i.sort(),a),i=[]):i.push(a)}),o.push(...i.sort()),o}},ho=e=>({cache:lo(e.cacheSize),parseClassName:uo(e),sortModifiers:po(e),...oo(e)}),_o=/\s+/,mo=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(_o);let c="";for(let d=s.length-1;d>=0;d-=1){const f=s[d],{isExternal:l,modifiers:g,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:$}=r(f);if(l){c=f+(c.length>0?" "+c:c);continue}let q=!!$,x=n(q?y.substring(0,$):y);if(!x){if(!q){c=f+(c.length>0?" "+c:c);continue}if(x=n(y),!x){c=f+(c.length>0?" "+c:c);continue}q=!1}const w=i(g).join(":"),T=h?w+Gt:w,U=T+x;if(a.includes(U))continue;a.push(U);const G=o(x,q);for(let B=0;B<G.length;++B){const Z=G[B];a.push(T+Z)}c=f+(c.length>0?" "+c:c)}return c};function go(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Kr(t))&&(n&&(n+=" "),n+=r);return n}const Kr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Kr(e[n]))&&(r&&(r+=" "),r+=t);return r};function bo(e,...t){let r,n,o,i=a;function a(c){const d=t.reduce((f,l)=>l(f),e());return r=ho(d),n=r.cache.get,o=r.cache.set,i=s,s(c)}function s(c){const d=n(c);if(d)return d;const f=mo(c,r);return o(c,f),f}return function(){return i(go.apply(null,arguments))}}const j=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Qr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,en=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vo=/^\d+\/\d+$/,wo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,So=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Te=e=>vo.test(e),S=e=>!!e&&!Number.isNaN(Number(e)),be=e=>!!e&&Number.isInteger(Number(e)),Yt=e=>e.endsWith("%")&&S(e.slice(0,-1)),_e=e=>wo.test(e),Eo=()=>!0,Co=e=>yo.test(e)&&!xo.test(e),tn=()=>!1,qo=e=>ko.test(e),Ao=e=>So.test(e),$o=e=>!_(e)&&!m(e),Po=e=>Re(e,sn,tn),_=e=>Qr.test(e),Ce=e=>Re(e,ln,Co),Xt=e=>Re(e,Ro,S),rn=e=>Re(e,on,tn),Mo=e=>Re(e,an,Ao),ut=e=>Re(e,cn,qo),m=e=>en.test(e),Ge=e=>Ne(e,ln),zo=e=>Ne(e,No),nn=e=>Ne(e,on),Lo=e=>Ne(e,sn),To=e=>Ne(e,an),ft=e=>Ne(e,cn,!0),Re=(e,t,r)=>{const n=Qr.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ne=(e,t,r=!1)=>{const n=en.exec(e);return n?n[1]?t(n[1]):r:!1},on=e=>e==="position"||e==="percentage",an=e=>e==="image"||e==="url",sn=e=>e==="length"||e==="size"||e==="bg-size",ln=e=>e==="length",Ro=e=>e==="number",No=e=>e==="family-name",cn=e=>e==="shadow",Wo=bo(()=>{const e=j("color"),t=j("font"),r=j("text"),n=j("font-weight"),o=j("tracking"),i=j("leading"),a=j("breakpoint"),s=j("container"),c=j("spacing"),d=j("radius"),f=j("shadow"),l=j("inset-shadow"),g=j("text-shadow"),h=j("drop-shadow"),y=j("blur"),$=j("perspective"),q=j("aspect"),x=j("ease"),w=j("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...U(),m,_],B=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],p=()=>[m,_,c],P=()=>[Te,"full","auto",...p()],N=()=>[be,"none","subgrid",m,_],L=()=>["auto",{span:["full",be,m,_]},be,m,_],F=()=>[be,"auto",m,_],ae=()=>["auto","min","max","fr",m,_],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],J=()=>["auto",...p()],ce=()=>[Te,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],v=()=>[e,m,_],re=()=>[...U(),nn,rn,{position:[m,_]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],de=()=>["auto","cover","contain",Lo,Po,{size:[m,_]}],ye=()=>[Yt,Ge,Ce],M=()=>["","none","full",d,m,_],H=()=>["",S,Ge,Ce],fe=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[S,Yt,nn,rn],gt=()=>["","none",y,m,_],bt=()=>["none",S,m,_],vt=()=>["none",S,m,_],er=()=>[S,m,_],wt=()=>[Te,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[Eo],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[$o],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",S],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Te,_,m,q]}],container:["container"],columns:[{columns:[S,_,m,s]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[be,"auto",m,_]}],basis:[{basis:[Te,"full","auto",s,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[S,Te,"auto","initial","none",_]}],grow:[{grow:["",S,m,_]}],shrink:[{shrink:["",S,m,_]}],order:[{order:[be,"first","last","none",m,_]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:J()}],mx:[{mx:J()}],my:[{my:J()}],ms:[{ms:J()}],me:[{me:J()}],mt:[{mt:J()}],mr:[{mr:J()}],mb:[{mb:J()}],ml:[{ml:J()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],w:[{w:[s,"screen",...ce()]}],"min-w":[{"min-w":[s,"screen","none",...ce()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",r,Ge,Ce]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,m,Xt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yt,_]}],"font-family":[{font:[zo,_,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,m,_]}],"line-clamp":[{"line-clamp":[S,"none",m,Xt]}],leading:[{leading:[i,...p()]}],"list-image":[{"list-image":["none",m,_]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",m,_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:v()}],"text-color":[{text:v()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[S,"from-font","auto",m,Ce]}],"text-decoration-color":[{decoration:v()}],"underline-offset":[{"underline-offset":[S,"auto",m,_]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m,_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m,_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:de()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},be,m,_],radial:["",m,_],conic:[be,m,_]},To,Mo]}],"bg-color":[{bg:v()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:v()}],"gradient-via":[{via:v()}],"gradient-to":[{to:v()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:v()}],"border-color-x":[{"border-x":v()}],"border-color-y":[{"border-y":v()}],"border-color-s":[{"border-s":v()}],"border-color-e":[{"border-e":v()}],"border-color-t":[{"border-t":v()}],"border-color-r":[{"border-r":v()}],"border-color-b":[{"border-b":v()}],"border-color-l":[{"border-l":v()}],"divide-color":[{divide:v()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[S,m,_]}],"outline-w":[{outline:["",S,Ge,Ce]}],"outline-color":[{outline:v()}],shadow:[{shadow:["","none",f,ft,ut]}],"shadow-color":[{shadow:v()}],"inset-shadow":[{"inset-shadow":["none",l,ft,ut]}],"inset-shadow-color":[{"inset-shadow":v()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:v()}],"ring-offset-w":[{"ring-offset":[S,Ce]}],"ring-offset-color":[{"ring-offset":v()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":v()}],"text-shadow":[{"text-shadow":["none",g,ft,ut]}],"text-shadow-color":[{"text-shadow":v()}],opacity:[{opacity:[S,m,_]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[S]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":v()}],"mask-image-linear-to-color":[{"mask-linear-to":v()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":v()}],"mask-image-t-to-color":[{"mask-t-to":v()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":v()}],"mask-image-r-to-color":[{"mask-r-to":v()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":v()}],"mask-image-b-to-color":[{"mask-b-to":v()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":v()}],"mask-image-l-to-color":[{"mask-l-to":v()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":v()}],"mask-image-x-to-color":[{"mask-x-to":v()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":v()}],"mask-image-y-to-color":[{"mask-y-to":v()}],"mask-image-radial":[{"mask-radial":[m,_]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":v()}],"mask-image-radial-to-color":[{"mask-radial-to":v()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[S]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":v()}],"mask-image-conic-to-color":[{"mask-conic-to":v()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",m,_]}],filter:[{filter:["","none",m,_]}],blur:[{blur:gt()}],brightness:[{brightness:[S,m,_]}],contrast:[{contrast:[S,m,_]}],"drop-shadow":[{"drop-shadow":["","none",h,ft,ut]}],"drop-shadow-color":[{"drop-shadow":v()}],grayscale:[{grayscale:["",S,m,_]}],"hue-rotate":[{"hue-rotate":[S,m,_]}],invert:[{invert:["",S,m,_]}],saturate:[{saturate:[S,m,_]}],sepia:[{sepia:["",S,m,_]}],"backdrop-filter":[{"backdrop-filter":["","none",m,_]}],"backdrop-blur":[{"backdrop-blur":gt()}],"backdrop-brightness":[{"backdrop-brightness":[S,m,_]}],"backdrop-contrast":[{"backdrop-contrast":[S,m,_]}],"backdrop-grayscale":[{"backdrop-grayscale":["",S,m,_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S,m,_]}],"backdrop-invert":[{"backdrop-invert":["",S,m,_]}],"backdrop-opacity":[{"backdrop-opacity":[S,m,_]}],"backdrop-saturate":[{"backdrop-saturate":[S,m,_]}],"backdrop-sepia":[{"backdrop-sepia":["",S,m,_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",m,_]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[S,"initial",m,_]}],ease:[{ease:["linear","initial",x,m,_]}],delay:[{delay:[S,m,_]}],animate:[{animate:["none",w,m,_]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[$,m,_]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:bt()}],"rotate-x":[{"rotate-x":bt()}],"rotate-y":[{"rotate-y":bt()}],"rotate-z":[{"rotate-z":bt()}],scale:[{scale:vt()}],"scale-x":[{"scale-x":vt()}],"scale-y":[{"scale-y":vt()}],"scale-z":[{"scale-z":vt()}],"scale-3d":["scale-3d"],skew:[{skew:er()}],"skew-x":[{"skew-x":er()}],"skew-y":[{"skew-y":er()}],transform:[{transform:[m,_,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:wt()}],"translate-x":[{"translate-x":wt()}],"translate-y":[{"translate-y":wt()}],"translate-z":[{"translate-z":wt()}],"translate-none":["translate-none"],accent:[{accent:v()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:v()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m,_]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m,_]}],fill:[{fill:["none",...v()]}],"stroke-w":[{stroke:[S,Ge,Ce,Xt]}],stroke:[{stroke:["none",...v()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ve(...e){return Wo(no(e))}function Io(e,t){for(var r in t)e[r]=t[r];return e}function dn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function un(e,t){this.props=e,this.context=t}(un.prototype=new ue).isPureReactComponent=!0,un.prototype.shouldComponentUpdate=function(e,t){return dn(this.props,e)||dn(this.state,t)};var fn=b.__b;b.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fn&&fn(e)};var Oo=b.__e;b.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Oo(e,t,r,n)};var pn=b.unmount;function hn(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Io({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return hn(n,t,r)})),e}function _n(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return _n(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Zt(){this.__u=0,this.o=null,this.__b=null}function mn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function pt(){this.i=null,this.l=null}b.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),pn&&pn(e)},(Zt.prototype=new ue).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=mn(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=_n(c,c.__c.__P,c.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.o.pop();)d.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Zt.prototype.componentWillUnmount=function(){this.o=[]},Zt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=hn(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Fe(he,null,e.fallback);return o&&(o.__u&=-33),[Fe(he,null,t.__a?null:e.children),o]};var gn=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Bo(e){return this.getChildContext=function(){return e.context},e.children}function Uo(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){$e(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}$e(Fe(Bo,{context:t.context},e.__v),t.v)}function jo(e,t){var r=Fe(Uo,{__v:e,h:t});return r.containerInfo=t,r}(pt.prototype=new ue).__a=function(e){var t=this,r=mn(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),gn(t,e,n)):o()};r?r(i):i()}},pt.prototype.render=function(e){this.i=null,this.l=new Map;var t=Qe(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},pt.prototype.componentDidUpdate=pt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){gn(e,r,t)})};var Fo=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Ho=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Do=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Go=/[A-Z0-9]/g,Vo=typeof document!="undefined",Yo=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ue.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ue.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var bn=b.event;function Xo(){}function Zo(){return this.cancelBubble}function Jo(){return this.defaultPrevented}b.event=function(e){return bn&&(e=bn(e)),e.persist=Xo,e.isPropagationStopped=Zo,e.isDefaultPrevented=Jo,e.nativeEvent=e};var Ko={enumerable:!1,configurable:!0,get:function(){return this.class}},vn=b.vnode;b.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||Vo&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||Yo(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":Do.test(a)&&(a=c):c=a="oninput":i&&Ho.test(a)?a=a.replace(Go,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&o[a=c]&&(a="oninputCapture"),o[a]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Qe(r.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Qe(r.children).forEach(function(d){d.props.selected=o.multiple?o.defaultValue.indexOf(d.props.value)!=-1:o.defaultValue==d.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Ko)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Fo,vn&&vn(e)};var wn=b.__r;b.__r=function(e){wn&&wn(e),e.__c};var yn=b.diffed;b.diffed=function(e){yn&&yn(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value)};function xn(){const e=Y(null),t=Y("idle"),r=Y();return ee(()=>()=>{r.current&&clearTimeout(r.current)},[]),{ref:e,animate:(o,i={})=>new Promise(a=>{const s=e.current;if(!s){a();return}const{duration:c=300,easing:d="ease-out",delay:f=0,onComplete:l}=i;t.current="running",s.style.transition=`all ${c}ms ${d} ${f}ms`,Object.entries(o).forEach(([h,y])=>{s.style.setProperty(h,y)});const g=c+f;r.current=setTimeout(()=>{t.current="finished",s.style.transition="",l==null||l(),a()},g)})}}function Qo(e,t){const{ref:r,animate:n}=xn();return ee(()=>{if(!e||!r.current)return;const o=setTimeout(()=>{n({transform:"translateY(0)",opacity:"1"},{duration:1e3,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)",onComplete:t})},500);return()=>clearTimeout(o)},[e]),r}function ei(e,t){const{ref:r,animate:n}=xn();return ee(()=>{r.current&&(e?n({width:`${t+20}px`,paddingLeft:"0.5rem",paddingRight:"0.5rem"},{duration:1200,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}):n({width:"0",paddingLeft:"0",paddingRight:"0"},{duration:300,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}))},[e,t]),r}function ti(e){const t=Y(null),r=Y(null);return ee(()=>{!t.current||!r.current||e&&(t.current.style.transition="opacity 500ms ease-out",t.current.style.opacity="1",r.current.style.transition="transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease-out",r.current.style.transform="translateY(0)",r.current.style.opacity="1")},[e]),{overlayRef:t,contentRef:r,close:async()=>{!t.current||!r.current||(t.current.style.transition="opacity 200ms ease-out",t.current.style.opacity="0",r.current.style.transition="transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease-out",r.current.style.transform="translateY(-70px)",r.current.style.opacity="0",await new Promise(o=>setTimeout(o,200)))}}}const ht=Se(!1),ri=Se(null);function ni({workspaceSlug:e,theme:t,base:r="https://www.squelette.app"}){const n=Y(null),o=Y(null),[i,a]=Me(null),s=Y(null),c=Y(!1),{overlayRef:d,contentRef:f,close:l}=ti(ht.value);ee(()=>{const w=document.createElement("div");w.id="squelette-banner-modal-portal",w.style.position="fixed",w.style.inset="0",w.style.zIndex="999999",w.style.pointerEvents="none";const T=w.attachShadow({mode:"open"});return it(T,Nr),document.body.appendChild(w),n.current=w,a(T),()=>{n.current&&(document.body.removeChild(n.current),n.current=null,a(null))}},[]);const g=()=>{var w;if(!(!((w=o.current)!=null&&w.contentWindow)||!s.current))try{const T=new URL(Rt).origin;o.current.contentWindow.postMessage({type:"squelette-identify",payload:s.current},T)}catch(T){console.warn("[BannerModal] Failed to send identity to iframe:",T)}};ee(()=>{const w=Rr();w&&(s.current=w);const T=G=>{var Z;const B=G;s.current=(Z=B.detail)!=null?Z:null,c.current?g():console.info("[BannerModal] Iframe not ready yet, identity will be sent when ready")},U=G=>{var B;((B=G.data)==null?void 0:B.type)==="squelette-iframe-ready"&&(c.current=!0,s.current?g():console.log("[BannerModal] Iframe ready but no identity yet"))};return window.addEventListener("squelette:identity",T),window.addEventListener("message",U),()=>{window.removeEventListener("squelette:identity",T),window.removeEventListener("message",U)}},[]);const h=()=>{console.log("[BannerModal] Iframe onLoad event fired")},y=async()=>{await l(),ht.value=!1},$=w=>{w.target===d.current&&y()};if(!i)return null;const q=Pt(()=>k("iframe",{ref:o,className:"w-full h-full border-none outline-none",src:`${r}/widget/${e}/changelog/last?theme=${t}`,onLoad:h}),[]),x=k("div",{ref:d,className:Ve("fixed inset-0 backdrop-blur-sm flex items-center justify-center",t==="dark"?"bg-black/30":"bg-white/30"),style:{pointerEvents:ht.value?"auto":"none",opacity:0},onClick:$,children:k("div",{ref:f,className:Ve("rounded-[32px] border-[3px] shadow-lg max-w-lg w-full mx-4 p-0 outline-none relative overflow-hidden",t==="light"?"border-[#f0f0f0]":"border-[#222222]"),style:{opacity:0,transform:"translateY(-70px)",height:650},children:q})});return jo(x,i)}const kn=()=>{try{return localStorage.getItem("squelette-enable-cache")!=="false"}catch{return!0}},oi=5*60*1e3,Sn="squelette_banner_last_ticket",En=48,ne=Se(null),_t=Se(!1),Jt=Se(!0);function ii({workspaceSlug:e="squelette",theme:t,base:r="https://www.squelette.app"}){const n=Y(null),o=Y(null),[i,a]=Me(96),s=Qo(!!ne.value,()=>{_t.value=!0});ee(()=>{if(!document.getElementById("squelette-shake-animation")){const l=document.createElement("style");l.id="squelette-shake-animation",l.textContent=`
163
+ `,Ar=new Map,Hn=typeof Document!="undefined"&&"adoptedStyleSheets"in Document.prototype;function st(e,t){var n;if(!t)return;if(Hn){let o=(n=Ar.get(t))!=null?n:null;o||(o=new CSSStyleSheet,o.replaceSync(t),Ar.set(t,o)),e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return}const r=document.createElement("style");r.textContent=t,e.appendChild(r)}function Dn(e){st(e,jn)}function Gn(e,t,r){r?e.hasAttribute(t)||e.setAttribute(t,""):e.hasAttribute(t)&&e.removeAttribute(t)}function $r(e){return e?e.toLowerCase():"en"}function Pr(e){return e==="light"||e==="dark"?e:"auto"}function lt(e){return e==="roadmap"||e==="changelog"?e:"feedback"}function Mr(e){if(!e.project)return null;const t=new URLSearchParams({locale:e.locale});e.theme&&e.theme!=="auto"&&t.set("theme",e.theme),e.signature&&t.set("signature",e.signature),e.token&&t.set("token",e.token);const r=e.apiBase.replace(/\/$/,"");switch(e.view){case"roadmap":return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/roadmap?${t.toString()}`;case"changelog":return`${r}/widget/${encodeURIComponent(e.project)}/changelog?${t.toString()}`;case"feedback":default:return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/feedback?${t.toString()}`}}function Vn(e,t){const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{e.dataset.theme=o?"dark":"light"};if(t==="auto"){n(r.matches);const o=i=>n(i.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)}return e.dataset.theme=t,()=>{}}const Bt={feedback:{width:340,height:200},roadmap:{width:400,height:420},changelog:{width:400,height:520}},Wt={width:400,height:540};function Ot(e,t){var o;const{width:r,height:n}=(o=Bt[t])!=null?o:Wt;e.style.setProperty("--sq-panel-width",`${r}px`),e.style.setProperty("--sq-panel-height",`${n}px`)}function Yn(e){const t=document.body.style;{const r={overflow:t.overflow,paddingRight:t.paddingRight},n=window.innerWidth-document.documentElement.clientWidth;return t.overflow="hidden",n>0&&(t.paddingRight=`${n}px`),()=>{t.overflow=r.overflow,t.paddingRight=r.paddingRight}}}class zr extends HTMLElement{constructor(){super();Y(this,C,{project:null,board:null,theme:"auto",locale:"en",apiBase:Nt,label:at,view:"feedback"});Y(this,we,!1);Y(this,Oe,!1);Y(this,re,!1);Y(this,ye);Y(this,Ae);Y(this,Ie,null);Y(this,Ze,null);Y(this,ee,null);Y(this,oe,null);Y(this,ie,null);Y(this,J,null);Y(this,Je,null);Y(this,Ue,new Fn);Y(this,_e,null);Ke(this,"ensureFrameModule",async()=>{var r,n,o;if(!(p(this,Ie)||p(this,Oe))){P(this,Oe,!0),this.render();try{(r=p(this,Ze))!=null||P(this,Ze,Promise.resolve().then(()=>_i));const i=await p(this,Ze),a=(n=i.WidgetFrame)!=null?n:i.default;if(!a)throw new Error("[SqueletteWidget] Widget app missing export");P(this,Ie,a),st(p(this,ye),(o=i.stylesText)!=null?o:gr)}catch(i){console.error("[SqueletteWidget] Failed to load widget app",i)}finally{P(this,Oe,!1),this.render()}}});Ke(this,"handleFrameLoaded",()=>{P(this,re,!0),P(this,_e,p(this,ye).querySelector("iframe")),this.postIdentityToFrame(),this.render(),this.dispatchEvent(new CustomEvent("squelette:frame-loaded"))});P(this,ye,this.attachShadow({mode:"open"})),P(this,Ae,document.createElement("div")),Dn(p(this,ye)),p(this,ye).appendChild(p(this,Ae)),this.render()}static get observedAttributes(){return["project","board","theme","locale","token","signature","label","view","open","api-base"]}connectedCallback(){var n,o,i;p(this,C).project=this.getAttribute("project"),p(this,C).board=this.getAttribute("board"),p(this,C).theme=Pr(this.getAttribute("theme")),p(this,C).locale=$r(this.getAttribute("locale")),p(this,C).token=(n=this.getAttribute("token"))!=null?n:void 0,p(this,C).signature=(o=this.getAttribute("signature"))!=null?o:void 0,p(this,C).label=(i=this.getAttribute("label"))!=null?i:at,p(this,C).view=lt(this.getAttribute("view"));const r=this.getAttribute("api-base");p(this,C).apiBase=r&&r.length>0?r:p(this,C).apiBase,this.applyTheme(p(this,C).theme),Ot(this,p(this,C).view),this.hasAttribute("open")&&this.setOpen(!0,"attribute"),P(this,ie,a=>{if(!p(this,C).project||!a.data||typeof a.data!="object")return;try{const d=new URL(p(this,C).apiBase).origin;if(a.origin!==d)return}catch{return}const s=a.data;if(s.type!=="squelette:submit")return;const l=s.payload;l&&p(this,Ue).emit("submit",{source:"app",payload:l})}),window.addEventListener("message",p(this,ie)),P(this,oe,a=>{var l;P(this,Je,(l=a.detail)!=null?l:null),this.postIdentityToFrame()}),window.addEventListener("squelette:identity",p(this,oe)),this.render()}disconnectedCallback(){p(this,ie)&&(window.removeEventListener("message",p(this,ie)),P(this,ie,null)),p(this,ee)&&(p(this,ee).call(this),P(this,ee,null)),p(this,oe)&&(window.removeEventListener("squelette:identity",p(this,oe)),P(this,oe,null)),p(this,J)&&(p(this,J).call(this),P(this,J,null))}attributeChangedCallback(r,n,o){if(r==="open"){if(p(this,we)===(o!==null))return;this.setOpen(o!==null,"attribute");return}switch(r){case"project":p(this,C).project=o,P(this,re,!1);break;case"board":p(this,C).board=o,P(this,re,!1);break;case"locale":p(this,C).locale=$r(o),P(this,re,!1);break;case"theme":p(this,C).theme=Pr(o),this.applyTheme(p(this,C).theme);break;case"token":p(this,C).token=o!=null?o:void 0,P(this,re,!1);break;case"signature":p(this,C).signature=o!=null?o:void 0,P(this,re,!1);break;case"label":p(this,C).label=o!=null?o:at;break;case"view":p(this,C).view=lt(o),P(this,re,!1),Ot(this,p(this,C).view);break;case"api-base":p(this,C).apiBase=o&&o.length>0?o:Nt,P(this,re,!1);break}r!=="open"&&this.render()}async open(){await this.setOpen(!0,"api")}async close(){await this.setOpen(!1,"api")}async toggle(){await this.setOpen(!p(this,we),"api")}on(r,n){return r==="submit"&&!p(this,C).project&&console.warn("[SqueletteWidget] Cannot listen for submit before project is set."),p(this,Ue).on(r,n)}async destroy(){Pe(null,p(this,Ae)),p(this,ie)&&(window.removeEventListener("message",p(this,ie)),P(this,ie,null)),p(this,ee)&&(p(this,ee).call(this),P(this,ee,null)),p(this,oe)&&(window.removeEventListener("squelette:identity",p(this,oe)),P(this,oe,null)),this.parentNode&&this.parentNode.removeChild(this),p(this,J)&&(p(this,J).call(this),P(this,J,null))}render(){const r=Mr(p(this,C));Pe(x(In,{open:p(this,we),label:p(this,C).label,iframeSrc:r,FrameComponent:p(this,Ie),ensureFrame:this.ensureFrameModule,onOpen:()=>void this.setOpen(!0,"api"),onClose:()=>void this.setOpen(!1,"api"),onFrameLoaded:this.handleFrameLoaded}),p(this,Ae))}async setOpen(r,n){if(r&&!p(this,C).project){console.warn("[SqueletteWidget] Missing `project` attribute or option.");return}if(p(this,we)!==r){if(P(this,we,r),Gn(this,"open",r),r)p(this,J)||P(this,J,Yn()),Ot(this,p(this,C).view);else{p(this,J)&&(p(this,J).call(this),P(this,J,null)),P(this,re,!1);const o=Mr(p(this,C));o&&p(this,_e)&&(p(this,_e).src=o)}this.render(),p(this,Ue).emit(r?"open":"close",{source:n})}}applyTheme(r){p(this,ee)&&(p(this,ee).call(this),P(this,ee,null)),P(this,ee,Vn(this,r))}postIdentityToFrame(){if(!(!p(this,_e)||!p(this,_e).contentWindow))try{const r=new URL(p(this,C).apiBase).origin;p(this,_e).contentWindow.postMessage({type:"squelette-identify",payload:p(this,Je)},r)}catch(r){console.warn("[SqueletteWidget] Unable to forward identity payload",r)}}}C=new WeakMap,we=new WeakMap,Oe=new WeakMap,re=new WeakMap,ye=new WeakMap,Ae=new WeakMap,Ie=new WeakMap,Ze=new WeakMap,ee=new WeakMap,oe=new WeakMap,ie=new WeakMap,J=new WeakMap,Je=new WeakMap,Ue=new WeakMap,_e=new WeakMap;function It(){customElements.get(Tt)||customElements.define(Tt,zr)}let ct=null;function Lr(e){window.dispatchEvent(new CustomEvent("squelette:identity",{detail:e}))}function Tr(e){if(!e||!e.userId||!e.email||!e.signature){console.error("[SqueletteWidget] Invalid identification payload.",e);return}ct=e,Lr(ct)}function Rr(){ct=null,Lr(null)}function Nr(){return ct}function Ut(e,t,r){const n=Math.max(t,r);return Math.min(Math.max(e,t),n)}function Xn(e,t){var U,V;const r=[],n=(U=t.position)!=null?U:"top",o=(V=t.overlayBlur)!=null?V:!0,i=12,a=n.startsWith("fixed-"),s=/^fixed-(top|center|bottom)-(left|center|right)$/;let l=null,d=!1,f=!1,c=null;const b=()=>{e.removeAttribute("data-anchor"),e.removeAttribute("data-anchor-origin"),e.removeAttribute("data-fixed-vertical"),e.removeAttribute("data-fixed-horizontal"),e.style.removeProperty("--sq-offset-top"),e.style.removeProperty("--sq-offset-left"),e.style.removeProperty("--sq-offset-bottom"),e.style.removeProperty("--sq-offset-right")},u=()=>{var xe;if(!d||!l)return;const h=l.getBoundingClientRect(),M=window.innerWidth,B=window.innerHeight,T=lt(e.getAttribute("view")),j=(xe=Bt[T])!=null?xe:Wt,ae=Math.min(j.width,M-i*2),se=Math.min(j.height,B-i*2),le=Math.max(i,M-ae-i),K=Math.max(i,B-se-i),ce=h.top-i,w=B-h.bottom-i;let ne=h.bottom+i,te=h.left+h.width/2-ae/2,de="top";if(n==="left"||n==="right"){let z=n==="right";const H=h.right+i,fe=h.left-ae-i,ke=H+ae<=M-i,W=fe>=i;z&&!ke&&W?z=!1:!z&&!W&&ke&&(z=!0),z?(te=H,de="left"):(te=fe,de="right");const bt=h.top+h.height/2-se/2;ne=Ut(bt,i,K)}else{let z=n==="bottom";n!=="top"&&n!=="bottom"&&(z=w>=ce);const H=h.bottom+i,fe=h.top-se-i,ke=H+se<=B-i,W=fe>=i;z&&!ke&&W?z=!1:!z&&!W&&ke&&(z=!0),z?(ne=H,de="top"):(ne=fe,de="bottom"),te=h.left+h.width/2-ae/2}ne=Ut(ne,i,K),te=Ut(te,i,le),e.dataset.anchor="button",e.dataset.anchorOrigin=de,e.style.setProperty("--sq-offset-top",`${Math.round(ne)}px`),e.style.setProperty("--sq-offset-left",`${Math.round(te)}px`),e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto")},v=()=>{d&&requestAnimationFrame(u)},A=()=>{f||(window.addEventListener("resize",v),window.addEventListener("scroll",v,!0),f=!0)},S=()=>{f&&(window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0),f=!1)},y=()=>{!l||a||(d=!0,e.dataset.anchor="button",e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto"),A(),u(),requestAnimationFrame(u))},E=()=>{d=!1,S()};r.push(()=>{E(),b()}),o||(e.dataset.overlayBlur="off",r.push(()=>{delete e.dataset.overlayBlur}));const $=()=>{var z;if(!a)return;const h=n.match(s);if(!h){console.warn(`[SqueletteWidget] Unsupported position value: ${n}`);return}const[,M,B]=h,T=24,j=lt(e.getAttribute("view")),ae=(z=Bt[j])!=null?z:Wt,se=window.innerWidth,le=window.innerHeight,K=Math.min(ae.width,se-T*2),ce=Math.min(ae.height,le-T*2);let w="auto",ne="auto",te="auto",de="auto";switch(M){case"top":w=`${T}px`;break;case"bottom":ne=`${T}px`;break;case"center":w=`${Math.max(T,Math.round((le-ce)/2))}px`;break}switch(B){case"left":te=`${T}px`;break;case"right":de=`${T}px`;break;case"center":te=`${Math.max(T,Math.round((se-K)/2))}px`;break}e.dataset.anchor="fixed";const xe=M==="center"?B==="center"?"bottom":B:M;e.dataset.anchorOrigin=xe,e.dataset.fixedVertical=M,e.dataset.fixedHorizontal=B,e.style.setProperty("--sq-offset-top",w),e.style.setProperty("--sq-offset-bottom",ne),e.style.setProperty("--sq-offset-left",te),e.style.setProperty("--sq-offset-right",de)};if(a&&$(),t.buttonSelector)if(l=document.querySelector(t.buttonSelector),l){const h=l;e.dataset.launcherHidden="true",r.push(()=>{delete e.dataset.launcherHidden});const M=T=>{T.preventDefault(),T.stopPropagation(),e.toggle()};h.addEventListener("click",M,!1),r.push(()=>h.removeEventListener("click",M,!1));const B=()=>{a?$():requestAnimationFrame(u)};e.addEventListener("squelette:frame-loaded",B),r.push(()=>e.removeEventListener("squelette:frame-loaded",B)),c=T=>{if(!e.hasAttribute("open"))return;const j=T.target;!e.contains(j)&&!h.contains(j)&&e.close()},document.addEventListener("click",c,!0),r.push(()=>{c&&(document.removeEventListener("click",c,!0),c=null)})}else console.warn(`[SqueletteWidget] Button selector not found: ${t.buttonSelector}`);const R=e.on("open",()=>{a?$():l&&y()}),G=e.on("close",()=>{E()});if(r.push(R,G),t.onOpenChange){const h=e.on("open",()=>{var B;return(B=t.onOpenChange)==null?void 0:B.call(t,!0)}),M=e.on("close",()=>{var B;return(B=t.onOpenChange)==null?void 0:B.call(t,!1)});r.push(h,M)}if(t.onLoad){const h=()=>{var M;(M=t.onLoad)==null||M.call(t),e.removeEventListener("squelette:frame-loaded",h)};e.addEventListener("squelette:frame-loaded",h),r.push(()=>e.removeEventListener("squelette:frame-loaded",h))}return r}const Br='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--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-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--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-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance: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{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-\\[32px\\]{border-radius:32px}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-\\[3px\\]{border-width:3px}.border-none{border-style:none}.border-\\[\\#222222\\]{--tw-border-opacity: 1;border-color:rgb(34 34 34 / var(--tw-border-opacity, 1))}.border-\\[\\#f0f0f0\\]{--tw-border-opacity: 1;border-color:rgb(240 240 240 / var(--tw-border-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-transparent{background-color:transparent}.bg-white\\/30{background-color:#ffffff4d}.p-0{padding:0}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.align-baseline{vertical-align:baseline}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}:host{display:block;width:100%;contain:content;--squelette-banner-bg: #ffffff;--squelette-banner-border: #e5e7eb;--squelette-banner-text: #111827;--squelette-banner-badge-bg: #7f3cec;--squelette-banner-badge-text: #ffffff;--squelette-banner-button-hover: .7}';var Zn=Symbol.for("preact-signals");function dt(){if(ge>1)ge--;else{for(var e,t=!1;Ge!==void 0;){var r=Ge;for(Ge=void 0,Ft++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ir(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(Ft=0,ge--,t)throw e}}function Jn(e){if(ge>0)return e();ge++;try{return e()}finally{dt()}}var L=void 0;function Wr(e){var t=L;L=void 0;try{return e()}finally{L=t}}var Ge=void 0,ge=0,Ft=0,ut=0;function Or(e){if(L!==void 0){var t=e.n;if(t===void 0||t.t!==L)return t={i:0,S:e,p:L.s,n:void 0,t:L,e:void 0,x:void 0,r:t},L.s!==void 0&&(L.s.n=t),L.s=t,e.n=t,32&L.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=L.s,t.n=void 0,L.s.n=t,L.s=t),t}}function D(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}D.prototype.brand=Zn,D.prototype.h=function(){return!0},D.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Wr(function(){var n;(n=t.W)==null||n.call(t)}))},D.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Wr(function(){var o;(o=t.Z)==null||o.call(t)}))}},D.prototype.subscribe=function(e){var t=this;return Ve(function(){var r=t.value,n=L;L=void 0;try{e(r)}finally{L=n}},{name:"sub"})},D.prototype.valueOf=function(){return this.value},D.prototype.toString=function(){return this.value+""},D.prototype.toJSON=function(){return this.value},D.prototype.peek=function(){var e=L;L=void 0;try{return this.value}finally{L=e}},Object.defineProperty(D.prototype,"value",{get:function(){var e=Or(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ft>100)throw new Error("Cycle detected");this.v=e,this.i++,ut++,ge++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{dt()}}}});function Ee(e,t){return new D(e,t)}function Ir(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ur(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Fr(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function qe(e,t){D.call(this,void 0),this.x=e,this.s=void 0,this.g=ut-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}qe.prototype=new D,qe.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ut))return!0;if(this.g=ut,this.f|=1,this.i>0&&!Ir(this))return this.f&=-2,!0;var e=L;try{Ur(this),L=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return L=e,Fr(this),this.f&=-2,!0},qe.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}D.prototype.S.call(this,e)},qe.prototype.U=function(e){if(this.t!==void 0&&(D.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},qe.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(qe.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Or(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function jr(e,t){return new qe(e,t)}function Hr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ge++;var r=L;L=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,jt(e),n}finally{L=r,dt()}}}function jt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Hr(e)}function Kn(e){if(L!==this)throw new Error("Out-of-order effect");Fr(this),L=e,this.f&=-2,8&this.f&&jt(this),dt()}function Le(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}Le.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Le.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Hr(this),Ur(this),ge++;var e=L;return L=this,Kn.bind(this,e)},Le.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ge,Ge=this)},Le.prototype.d=function(){this.f|=8,1&this.f||jt(this)},Le.prototype.dispose=function(){this.d()};function Ve(e,t){var r=new Le(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Dr,Ht,Gr=[];Ve(function(){Dr=this.N})();function Te(e,t){g[e]=t.bind(null,g[e]||function(){})}function ft(e){Ht&&Ht(),Ht=e&&e.S()}function Vr(e){var t=this,r=e.data,n=eo(r);n.value=r;var o=Mt(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var d=jr(function(){var u=n.value.value;return u===0?0:u===!0?"":u||""}),f=jr(function(){return!Array.isArray(d.value)&&!rr(d.value)}),c=Ve(function(){if(this.N=Yr,f.value){var u=d.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=u)}}),b=t.__$u.d;return t.__$u.d=function(){c(),b.call(this)},[f,d]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}Vr.displayName="ReactiveTextNode",Object.defineProperties(D.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Vr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Te("__b",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof D&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)}),Te("__r",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==he){ft();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(o){var i;return Ve(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i}())),ft(r)}e(t)}),Te("__e",function(e,t,r,n){typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),ft(),e(t,r,n)}),Te("diffed",function(e,t){typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),ft();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var l in n){var d=i[l],f=n[l];d===void 0?(d=Qn(r,l,f,o),i[l]=d):d.o(f,o)}}}e(t)});function Qn(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=Ee(r);return{o:function(a,s){i.value=a,n=s},d:Ve(function(){this.N=Yr;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}Te("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)}),Te("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)}),ue.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function eo(e,t){return ze(function(){return Ee(e,t)})[0]}var to=function(e){queueMicrotask(function(){queueMicrotask(e)})};function ro(){Jn(function(){for(var e;e=Gr.shift();)Dr.call(e)})}function Yr(){Gr.push(this)===1&&(g.requestAnimationFrame||to)(ro)}function Xr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Xr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function no(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Xr(e))&&(n&&(n+=" "),n+=t);return n}const Dt="-",oo=e=>{const t=ao(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const s=a.split(Dt);return s[0]===""&&s.length!==1&&s.shift(),Zr(s,t)||io(a)},getConflictingClassGroupIds:(a,s)=>{const l=r[a]||[];return s&&n[a]?[...l,...n[a]]:l}}},Zr=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Zr(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Dt);return(a=t.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},Jr=/^\[(.+)\]$/,io=e=>{if(Jr.test(e)){const t=Jr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ao=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Gt(r[o],n,o,t);return n},Gt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Kr(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(so(o)){Gt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,a])=>{Gt(a,Kr(t,i),r,n)})})},Kr=(e,t)=>{let r=e;return t.split(Dt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},so=e=>e.isThemeGetter,lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,a)=>{r.set(i,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let a=r.get(i);if(a!==void 0)return a;if((a=n.get(i))!==void 0)return o(i,a),a},set(i,a){r.has(i)?r.set(i,a):o(i,a)}}},Vt="!",Yt=":",co=Yt.length,uo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,s=0,l=0,d;for(let v=0;v<o.length;v++){let A=o[v];if(a===0&&s===0){if(A===Yt){i.push(o.slice(l,v)),l=v+co;continue}if(A==="/"){d=v;continue}}A==="["?a++:A==="]"?a--:A==="("?s++:A===")"&&s--}const f=i.length===0?o:o.substring(l),c=fo(f),b=c!==f,u=d&&d>l?d-l:void 0;return{modifiers:i,hasImportantModifier:b,baseClassName:c,maybePostfixModifierPosition:u}};if(t){const o=t+Yt,i=n;n=a=>a.startsWith(o)?i(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},fo=e=>e.endsWith(Vt)?e.substring(0,e.length-1):e.startsWith(Vt)?e.substring(1):e,po=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let i=[];return n.forEach(a=>{a[0]==="["||t[a]?(o.push(...i.sort(),a),i=[]):i.push(a)}),o.push(...i.sort()),o}},ho=e=>({cache:lo(e.cacheSize),parseClassName:uo(e),sortModifiers:po(e),...oo(e)}),mo=/\s+/,_o=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(mo);let l="";for(let d=s.length-1;d>=0;d-=1){const f=s[d],{isExternal:c,modifiers:b,hasImportantModifier:u,baseClassName:v,maybePostfixModifierPosition:A}=r(f);if(c){l=f+(l.length>0?" "+l:l);continue}let S=!!A,y=n(S?v.substring(0,A):v);if(!y){if(!S){l=f+(l.length>0?" "+l:l);continue}if(y=n(v),!y){l=f+(l.length>0?" "+l:l);continue}S=!1}const E=i(b).join(":"),$=u?E+Vt:E,R=$+y;if(a.includes(R))continue;a.push(R);const G=o(y,S);for(let U=0;U<G.length;++U){const V=G[U];a.push($+V)}l=f+(l.length>0?" "+l:l)}return l};function go(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Qr(t))&&(n&&(n+=" "),n+=r);return n}const Qr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Qr(e[n]))&&(r&&(r+=" "),r+=t);return r};function bo(e,...t){let r,n,o,i=a;function a(l){const d=t.reduce((f,c)=>c(f),e());return r=ho(d),n=r.cache.get,o=r.cache.set,i=s,s(l)}function s(l){const d=n(l);if(d)return d;const f=_o(l,r);return o(l,f),f}return function(){return i(go.apply(null,arguments))}}const F=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},en=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vo=/^\d+\/\d+$/,wo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,So=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Re=e=>vo.test(e),k=e=>!!e&&!Number.isNaN(Number(e)),be=e=>!!e&&Number.isInteger(Number(e)),Xt=e=>e.endsWith("%")&&k(e.slice(0,-1)),me=e=>wo.test(e),Eo=()=>!0,qo=e=>yo.test(e)&&!xo.test(e),rn=()=>!1,Co=e=>ko.test(e),Ao=e=>So.test(e),$o=e=>!m(e)&&!_(e),Po=e=>Ne(e,ln,rn),m=e=>en.test(e),Ce=e=>Ne(e,cn,qo),Zt=e=>Ne(e,Ro,k),nn=e=>Ne(e,an,rn),Mo=e=>Ne(e,sn,Ao),pt=e=>Ne(e,dn,Co),_=e=>tn.test(e),Ye=e=>Be(e,cn),zo=e=>Be(e,No),on=e=>Be(e,an),Lo=e=>Be(e,ln),To=e=>Be(e,sn),ht=e=>Be(e,dn,!0),Ne=(e,t,r)=>{const n=en.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Be=(e,t,r=!1)=>{const n=tn.exec(e);return n?n[1]?t(n[1]):r:!1},an=e=>e==="position"||e==="percentage",sn=e=>e==="image"||e==="url",ln=e=>e==="length"||e==="size"||e==="bg-size",cn=e=>e==="length",Ro=e=>e==="number",No=e=>e==="family-name",dn=e=>e==="shadow",Bo=bo(()=>{const e=F("color"),t=F("font"),r=F("text"),n=F("font-weight"),o=F("tracking"),i=F("leading"),a=F("breakpoint"),s=F("container"),l=F("spacing"),d=F("radius"),f=F("shadow"),c=F("inset-shadow"),b=F("text-shadow"),u=F("drop-shadow"),v=F("blur"),A=F("perspective"),S=F("aspect"),y=F("ease"),E=F("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...R(),_,m],U=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],h=()=>[_,m,l],M=()=>[Re,"full","auto",...h()],B=()=>[be,"none","subgrid",_,m],T=()=>["auto",{span:["full",be,_,m]},be,_,m],j=()=>[be,"auto",_,m],ae=()=>["auto","min","max","fr",_,m],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...h()],ce=()=>[Re,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],w=()=>[e,_,m],ne=()=>[...R(),on,nn,{position:[_,m]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],de=()=>["auto","cover","contain",Lo,Po,{size:[_,m]}],xe=()=>[Xt,Ye,Ce],z=()=>["","none","full",d,_,m],H=()=>["",k,Ye,Ce],fe=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[k,Xt,on,nn],bt=()=>["","none",v,_,m],vt=()=>["none",k,_,m],wt=()=>["none",k,_,m],tr=()=>[k,_,m],yt=()=>[Re,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[me],breakpoint:[me],color:[Eo],container:[me],"drop-shadow":[me],ease:["in","out","in-out"],font:[$o],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[me],shadow:[me],spacing:["px",k],text:[me],"text-shadow":[me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Re,m,_,S]}],container:["container"],columns:[{columns:[k,m,_,s]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[be,"auto",_,m]}],basis:[{basis:[Re,"full","auto",s,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[k,Re,"auto","initial","none",m]}],grow:[{grow:["",k,_,m]}],shrink:[{shrink:["",k,_,m]}],order:[{order:[be,"first","last","none",_,m]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],w:[{w:[s,"screen",...ce()]}],"min-w":[{"min-w":[s,"screen","none",...ce()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",r,Ye,Ce]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,_,Zt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xt,m]}],"font-family":[{font:[zo,m,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,_,m]}],"line-clamp":[{"line-clamp":[k,"none",_,Zt]}],leading:[{leading:[i,...h()]}],"list-image":[{"list-image":["none",_,m]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[k,"from-font","auto",_,Ce]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[k,"auto",_,m]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,m]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:de()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},be,_,m],radial:["",_,m],conic:[be,_,m]},To,Mo]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[k,_,m]}],"outline-w":[{outline:["",k,Ye,Ce]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",f,ht,pt]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",c,ht,pt]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[k,Ce]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",b,ht,pt]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[k,_,m]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[k]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[_,m]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[k]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,m]}],filter:[{filter:["","none",_,m]}],blur:[{blur:bt()}],brightness:[{brightness:[k,_,m]}],contrast:[{contrast:[k,_,m]}],"drop-shadow":[{"drop-shadow":["","none",u,ht,pt]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",k,_,m]}],"hue-rotate":[{"hue-rotate":[k,_,m]}],invert:[{invert:["",k,_,m]}],saturate:[{saturate:[k,_,m]}],sepia:[{sepia:["",k,_,m]}],"backdrop-filter":[{"backdrop-filter":["","none",_,m]}],"backdrop-blur":[{"backdrop-blur":bt()}],"backdrop-brightness":[{"backdrop-brightness":[k,_,m]}],"backdrop-contrast":[{"backdrop-contrast":[k,_,m]}],"backdrop-grayscale":[{"backdrop-grayscale":["",k,_,m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[k,_,m]}],"backdrop-invert":[{"backdrop-invert":["",k,_,m]}],"backdrop-opacity":[{"backdrop-opacity":[k,_,m]}],"backdrop-saturate":[{"backdrop-saturate":[k,_,m]}],"backdrop-sepia":[{"backdrop-sepia":["",k,_,m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,m]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[k,"initial",_,m]}],ease:[{ease:["linear","initial",y,_,m]}],delay:[{delay:[k,_,m]}],animate:[{animate:["none",E,_,m]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,_,m]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:vt()}],"rotate-x":[{"rotate-x":vt()}],"rotate-y":[{"rotate-y":vt()}],"rotate-z":[{"rotate-z":vt()}],scale:[{scale:wt()}],"scale-x":[{"scale-x":wt()}],"scale-y":[{"scale-y":wt()}],"scale-z":[{"scale-z":wt()}],"scale-3d":["scale-3d"],skew:[{skew:tr()}],"skew-x":[{"skew-x":tr()}],"skew-y":[{"skew-y":tr()}],transform:[{transform:[_,m,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yt()}],"translate-x":[{"translate-x":yt()}],"translate-y":[{"translate-y":yt()}],"translate-z":[{"translate-z":yt()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,m]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,m]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[k,Ye,Ce,Zt]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Xe(...e){return Bo(no(e))}function Wo(e,t){for(var r in t)e[r]=t[r];return e}function un(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function fn(e,t){this.props=e,this.context=t}(fn.prototype=new ue).isPureReactComponent=!0,fn.prototype.shouldComponentUpdate=function(e,t){return un(this.props,e)||un(this.state,t)};var pn=g.__b;g.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pn&&pn(e)};var Oo=g.__e;g.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Oo(e,t,r,n)};var hn=g.unmount;function mn(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Wo({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return mn(n,t,r)})),e}function _n(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return _n(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Jt(){this.__u=0,this.o=null,this.__b=null}function gn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function mt(){this.i=null,this.l=null}g.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),hn&&hn(e)},(Jt.prototype=new ue).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=gn(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=_n(l,l.__c.__P,l.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.o.pop();)d.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Jt.prototype.componentWillUnmount=function(){this.o=[]},Jt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=mn(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&De(he,null,e.fallback);return o&&(o.__u&=-33),[De(he,null,t.__a?null:e.children),o]};var bn=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Io(e){return this.getChildContext=function(){return e.context},e.children}function Uo(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){Pe(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}Pe(De(Io,{context:t.context},e.__v),t.v)}function Fo(e,t){var r=De(Uo,{__v:e,h:t});return r.containerInfo=t,r}(mt.prototype=new ue).__a=function(e){var t=this,r=gn(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),bn(t,e,n)):o()};r?r(i):i()}},mt.prototype.render=function(e){this.i=null,this.l=new Map;var t=tt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},mt.prototype.componentDidUpdate=mt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){bn(e,r,t)})};var jo=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Ho=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Do=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Go=/[A-Z0-9]/g,Vo=typeof document!="undefined",Yo=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ue.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ue.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var vn=g.event;function Xo(){}function Zo(){return this.cancelBubble}function Jo(){return this.defaultPrevented}g.event=function(e){return vn&&(e=vn(e)),e.persist=Xo,e.isPropagationStopped=Zo,e.isDefaultPrevented=Jo,e.nativeEvent=e};var Ko={enumerable:!1,configurable:!0,get:function(){return this.class}},wn=g.vnode;g.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||Vo&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||Yo(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Do.test(a)&&(a=l):l=a="oninput":i&&Ho.test(a)?a=a.replace(Go,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=tt(r.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=tt(r.children).forEach(function(d){d.props.selected=o.multiple?o.defaultValue.indexOf(d.props.value)!=-1:o.defaultValue==d.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Ko)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=jo,wn&&wn(e)};var yn=g.__r;g.__r=function(e){yn&&yn(e),e.__c};var xn=g.diffed;g.diffed=function(e){xn&&xn(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value)};function kn(){const e=X(null),t=X("idle"),r=X();return Q(()=>()=>{r.current&&clearTimeout(r.current)},[]),{ref:e,animate:(o,i={})=>new Promise(a=>{const s=e.current;if(!s){a();return}const{duration:l=300,easing:d="ease-out",delay:f=0,onComplete:c}=i;t.current="running",s.style.transition=`all ${l}ms ${d} ${f}ms`,Object.entries(o).forEach(([u,v])=>{s.style.setProperty(u,v)});const b=l+f;r.current=setTimeout(()=>{t.current="finished",s.style.transition="",c==null||c(),a()},b)})}}function Qo(e,t){const{ref:r,animate:n}=kn();return Q(()=>{if(!e||!r.current)return;const o=setTimeout(()=>{n({transform:"translateY(0)",opacity:"1"},{duration:1e3,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)",onComplete:t})},500);return()=>clearTimeout(o)},[e]),r}function ei(e,t){const{ref:r,animate:n}=kn();return Q(()=>{r.current&&(e?n({width:`${t+20}px`,paddingLeft:"0.5rem",paddingRight:"0.5rem"},{duration:1200,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}):n({width:"0",paddingLeft:"0",paddingRight:"0"},{duration:300,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}))},[e,t]),r}function ti(e){const t=X(null),r=X(null);return Q(()=>{!t.current||!r.current||e&&(t.current.style.transition="opacity 500ms ease-out",t.current.style.opacity="1",r.current.style.transition="transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease-out",r.current.style.transform="translateY(0)",r.current.style.opacity="1")},[e]),{overlayRef:t,contentRef:r,close:async()=>{!t.current||!r.current||(t.current.style.transition="opacity 200ms ease-out",t.current.style.opacity="0",r.current.style.transition="transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease-out",r.current.style.transform="translateY(-70px)",r.current.style.opacity="0",await new Promise(o=>setTimeout(o,200)))}}}const _t=Ee(!1),ri=Ee(null);function ni({workspaceSlug:e,theme:t,base:r="https://www.squelette.app",ticketId:n}){const o=X(null),i=X(null),[a,s]=ze(null),l=X(null),d=X(!1),{overlayRef:f,contentRef:c,close:b}=ti(_t.value);Q(()=>{const $=document.createElement("div");$.id="squelette-banner-modal-portal",$.style.position="fixed",$.style.inset="0",$.style.zIndex="999999",$.style.pointerEvents="none";const R=$.attachShadow({mode:"open"});return st(R,Br),document.body.appendChild($),o.current=$,s(R),()=>{o.current&&(document.body.removeChild(o.current),o.current=null,s(null))}},[]);const u=()=>{var $;if(!(!(($=i.current)!=null&&$.contentWindow)||!l.current))try{const R=new URL(Nt).origin;i.current.contentWindow.postMessage({type:"squelette-identify",payload:l.current},R)}catch(R){console.warn("[BannerModal] Failed to send identity to iframe:",R)}};Q(()=>{const $=Nr();$&&(l.current=$);const R=U=>{var h;const V=U;l.current=(h=V.detail)!=null?h:null,d.current?u():console.info("[BannerModal] Iframe not ready yet, identity will be sent when ready")},G=U=>{var V;((V=U.data)==null?void 0:V.type)==="squelette-iframe-ready"&&(d.current=!0,l.current?u():console.log("[BannerModal] Iframe ready but no identity yet"))};return window.addEventListener("squelette:identity",R),window.addEventListener("message",G),()=>{window.removeEventListener("squelette:identity",R),window.removeEventListener("message",G)}},[]);const v=()=>{console.log("[BannerModal] Iframe onLoad event fired")},A=async()=>{await b(),_t.value=!1},S=$=>{$.target===f.current&&A()};if(!a)return null;const y=Mt(()=>x("iframe",{ref:i,className:"w-full h-full border-none outline-none",src:`${r}/widget/${e}/changelog/last?theme=${t}${n?`&ticketId=${n}`:""}`,onLoad:v}),[r,e,t,n]),E=x("div",{ref:f,className:Xe("fixed inset-0 backdrop-blur-sm flex items-center justify-center",t==="dark"?"bg-black/30":"bg-white/30"),style:{pointerEvents:_t.value?"auto":"none",opacity:0},onClick:S,children:x("div",{ref:c,className:Xe("rounded-[32px] border-[3px] shadow-lg max-w-lg w-full mx-4 p-0 outline-none relative overflow-hidden",t==="light"?"border-[#f0f0f0]":"border-[#222222]"),style:{opacity:0,transform:"translateY(-70px)",height:650},children:y})});return Fo(E,a)}const Kt=e=>{if(e)return!1;try{return localStorage.getItem("squelette-enable-cache")!=="false"}catch{return!0}},oi=5*60*1e3,Sn="squelette_banner_last_ticket",En=48,Z=Ee(null),ve=Ee(!1),We=Ee(!0);function ii({workspaceSlug:e="squelette",theme:t,base:r="https://www.squelette.app",debug:n=!1,ticketId:o}){const i=X(null),a=X(null),[s,l]=ze(96),d=Qo(!!Z.value,()=>{ve.value=!0});Q(()=>(console.log("[Banner] Component mounted, resetting signals"),Z.value=null,ve.value=!1,We.value=!1,()=>{console.log("[Banner] Component unmounting")}),[]),Q(()=>{if(!document.getElementById("squelette-shake-animation")){const u=document.createElement("style");u.id="squelette-shake-animation",u.textContent=`
164
164
  @keyframes shake {
165
165
  0%, 100% { transform: rotate(0deg); }
166
166
  20% { transform: rotate(-15deg); }
@@ -168,9 +168,9 @@ var SqueletteWidgetBundle=function(E){"use strict";var gi=Object.defineProperty;
168
168
  60% { transform: rotate(-15deg); }
169
169
  80% { transform: rotate(15deg); }
170
170
  }
171
- `,document.head.appendChild(l)}},[]),ee(()=>{ci(r,e).then(l=>{if(!l)return;const g=localStorage.getItem(Sn);(!kn()||!g||new Date(l.created_at)>new Date(g))&&(ne.value=l,Jt.value=!0)})},[e]),ee(()=>{if(!s.current||!n.current)return;const l=s.current,g=n.current,h=()=>{g&&(g.style.animation="shake 0.6s ease-in-out infinite")},y=()=>{g.style.animation=""};return l.addEventListener("mouseenter",h),l.addEventListener("mouseleave",y),()=>{l.removeEventListener("mouseleave",y),l.removeEventListener("mouseenter",h)}},[]),$t(()=>{if(!o.current)return;const l=()=>{o.current&&a(Math.ceil(o.current.getBoundingClientRect().width))};if(l(),typeof ResizeObserver=="undefined")return;const g=new ResizeObserver(l);return g.observe(o.current),()=>g.disconnect()},[ne.value]);const c=async()=>{!ne.value||!s.current||(_t.value=!1,await new Promise(l=>setTimeout(l,400)),s.current.style.transition="transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease-out",s.current.style.transform="translateY(-100%)",s.current.style.opacity="0",await new Promise(l=>setTimeout(l,500)),localStorage.setItem(Sn,ne.value.created_at),Jt.value=!1)},d=()=>{ne.value&&(ri.value=ne.value,ht.value=!0,c())};if(!ne.value)return null;const f=Math.max(0,i);return k(he,{children:[Jt.value&&k("div",{className:"flex items-center justify-center w-full h-[64px] overflow-visible",children:k("div",{className:"group rounded-full p-1 border flex items-center cursor-pointer",style:{opacity:0,transform:"translateY(-100%)",backgroundColor:"var(--squelette-banner-bg)",borderColor:"var(--squelette-banner-border)"},ref:s,onClick:d,children:[k("div",{ref:o,className:"flex gap-1 h-6 px-2 items-center justify-center rounded-full text-sm",style:{backgroundColor:"var(--squelette-banner-badge-bg)",color:"var(--squelette-banner-badge-text)"},children:[k("span",{children:"Nouveau"}),k("div",{ref:n,className:"inline",children:k(si,{className:"size-4"})})]}),k(ai,{onClose:c,badgeWidth:f})]})}),k(ni,{base:r,workspaceSlug:e,theme:t})]})}function ai({onClose:e,badgeWidth:t}){const r=Y(null),[n,o]=Me(0),i=ei(_t.value,n);$t(()=>{if(!r.current)return;const s=()=>{if(!r.current)return;const d=r.current.scrollWidth,f=typeof window!="undefined"?window.innerWidth:d,l=En,g=Math.max(0,f-t-l);o(Math.min(d,g))};s();const c=new ResizeObserver(s);return c.observe(r.current),typeof window!="undefined"&&window.addEventListener("resize",s),()=>{c.disconnect(),typeof window!="undefined"&&window.removeEventListener("resize",s)}},[ne.value,t]);const a=s=>{s.stopPropagation(),e()};return ne.value?k("div",{className:"overflow-hidden min-w-0 items-baseline box-border inline-flex",style:{width:0,paddingLeft:0,paddingRight:0,maxWidth:"100vw",maxInlineSize:`calc(100vw - ${t+En}px)`},ref:i,children:k("div",{className:"gap-2 inline-flex items-center",ref:r,children:[k("span",{className:"font-medium text-sm whitespace-nowrap max-w-[400px]",style:{color:"var(--squelette-banner-text)"},children:k(di,{duration:4,gap:16,children:ne.value.title})}),k("button",{onClick:a,className:"p-0 border-0 bg-transparent cursor-pointer transition-opacity",style:{color:"var(--squelette-banner-text)",opacity:1},onMouseEnter:s=>{s.currentTarget.style.opacity="var(--squelette-banner-button-hover)"},onMouseLeave:s=>{s.currentTarget.style.opacity="1"},"aria-label":"Close banner",children:k(li,{className:"size-4"})})]})}):null}function si({className:e}){return k("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:Ve("lucide lucide-megaphone-icon lucide-megaphone origin-center",e),children:[k("path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"}),k("path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14"}),k("path",{d:"M8 6v8"})]})}function li({className:e}){return k("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:Ve("lucide lucide-x-icon lucide-x",e),children:[k("path",{d:"M18 6 6 18"}),k("path",{d:"m6 6 12 12"})]})}async function ci(e,t){var r;try{const n=kn();if(n){const s=`squelette_banner_cache_${t}`,c=localStorage.getItem(s);if(c){const{ticket:d,timestamp:f}=JSON.parse(c);if(!(Date.now()-f>oi))return d}}const i=await(await fetch(`${e}/api/public/w/${t}/changelog/last`)).json(),a=(r=i==null?void 0:i.ticket)!=null?r:null;if(n&&a){const s=`squelette_banner_cache_${t}`,c={ticket:a,timestamp:Date.now()};localStorage.setItem(s,JSON.stringify(c))}return a}catch(n){return console.error("Error fetching changelog ticket:",n),null}}function di({children:e,duration:t=50,gap:r=8,className:n,delay:o=.8}){const i=Y(null),a=Y(null),[s,c]=Me(0),[d,f]=Me(0);$t(()=>{const $=()=>{a.current&&c(Math.ceil(a.current.offsetWidth)),i.current&&f(Math.ceil(i.current.offsetWidth))};$();const q=new ResizeObserver($),x=new ResizeObserver($);return a.current&&q.observe(a.current),i.current&&x.observe(i.current),()=>{q.disconnect(),x.disconnect()}},[e,r]);const l=s+r,g=l>0?Math.max(2,Math.ceil((d+l)/l)+1):2,y=l>0?l/50:t;return k(he,{children:[k("style",{children:`
171
+ `,document.head.appendChild(u)}},[]),Q(()=>{console.log("[Banner] useEffect triggered",{workspaceSlug:e,debug:n,ticketId:o}),console.log("[Banner] Current signal states:",{lastTicket:Z.value,isVisible:ve.value,showBanner:We.value}),ci(r,e,n,o).then(u=>{if(console.log("[Banner] Fetched ticket:",u),!u){console.log("[Banner] No ticket found, returning");return}const v=localStorage.getItem(Sn);console.log("[Banner] lastSeenCreatedAt from localStorage:",v),console.log("[Banner] ticket.created_at:",u.created_at),console.log("[Banner] getEnableCache(debug):",Kt(n)),!Kt(n)||!v||new Date(u.created_at)>new Date(v)?(console.log("[Banner] Setting signals to show banner"),Z.value=u,ve.value=!1,We.value=!0,console.log("[Banner] After setting signals:",{lastTicket:Z.value,isVisible:ve.value,showBanner:We.value})):console.log("[Banner] Not showing banner - already seen")})},[e,n,o]),Q(()=>{if(!d.current||!i.current)return;const u=d.current,v=i.current,A=()=>{v&&(v.style.animation="shake 0.6s ease-in-out infinite")},S=()=>{v.style.animation=""};return u.addEventListener("mouseenter",A),u.addEventListener("mouseleave",S),()=>{u.removeEventListener("mouseleave",S),u.removeEventListener("mouseenter",A)}},[]),Pt(()=>{if(!a.current)return;const u=()=>{a.current&&l(Math.ceil(a.current.getBoundingClientRect().width))};if(u(),typeof ResizeObserver=="undefined")return;const v=new ResizeObserver(u);return v.observe(a.current),()=>v.disconnect()},[Z.value]);const f=async()=>{!Z.value||!d.current||(ve.value=!1,await new Promise(u=>setTimeout(u,400)),d.current.style.transition="transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease-out",d.current.style.transform="translateY(-100%)",d.current.style.opacity="0",await new Promise(u=>setTimeout(u,500)),localStorage.setItem(Sn,Z.value.created_at),We.value=!1)},c=()=>{Z.value&&(ri.value=Z.value,_t.value=!0,f())};if(!Z.value)return null;const b=Math.max(0,s);return x(he,{children:[We.value&&x("div",{className:"flex items-center justify-center w-full h-[64px] overflow-visible",children:x("div",{className:"group rounded-full p-1 border flex items-center cursor-pointer",style:{opacity:0,transform:"translateY(-100%)",backgroundColor:"var(--squelette-banner-bg)",borderColor:"var(--squelette-banner-border)"},ref:d,onClick:c,children:[x("div",{ref:a,className:"flex gap-1 h-6 px-2 items-center justify-center rounded-full text-sm",style:{backgroundColor:"var(--squelette-banner-badge-bg)",color:"var(--squelette-banner-badge-text)"},children:[x("span",{children:"Nouveau"}),x("div",{ref:i,className:"inline",children:x(si,{className:"size-4"})})]}),x(ai,{onClose:f,badgeWidth:b})]})}),x(ni,{base:r,workspaceSlug:e,theme:t,ticketId:o})]})}function ai({onClose:e,badgeWidth:t}){const r=X(null),[n,o]=ze(0),i=ei(ve.value,n);Pt(()=>{if(!r.current)return;const s=()=>{if(!r.current)return;const d=r.current.scrollWidth,f=typeof window!="undefined"?window.innerWidth:d,c=En,b=Math.max(0,f-t-c);o(Math.min(d,b))};s();const l=new ResizeObserver(s);return l.observe(r.current),typeof window!="undefined"&&window.addEventListener("resize",s),()=>{l.disconnect(),typeof window!="undefined"&&window.removeEventListener("resize",s)}},[Z.value,t]);const a=s=>{s.stopPropagation(),e()};return Z.value?x("div",{className:"overflow-hidden min-w-0 items-baseline box-border inline-flex",style:{width:0,paddingLeft:0,paddingRight:0,maxWidth:"100vw",maxInlineSize:`calc(100vw - ${t+En}px)`},ref:i,children:x("div",{className:"gap-2 inline-flex items-center",ref:r,children:[x("span",{className:"font-medium text-sm whitespace-nowrap max-w-[400px]",style:{color:"var(--squelette-banner-text)"},children:x(di,{duration:4,gap:16,children:Z.value.title})}),x("button",{onClick:a,className:"p-0 border-0 bg-transparent cursor-pointer transition-opacity",style:{color:"var(--squelette-banner-text)",opacity:1},onMouseEnter:s=>{s.currentTarget.style.opacity="var(--squelette-banner-button-hover)"},onMouseLeave:s=>{s.currentTarget.style.opacity="1"},"aria-label":"Close banner",children:x(li,{className:"size-4"})})]})}):null}function si({className:e}){return x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:Xe("lucide lucide-megaphone-icon lucide-megaphone origin-center",e),children:[x("path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"}),x("path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14"}),x("path",{d:"M8 6v8"})]})}function li({className:e}){return x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:Xe("lucide lucide-x-icon lucide-x",e),children:[x("path",{d:"M18 6 6 18"}),x("path",{d:"m6 6 12 12"})]})}async function ci(e,t,r,n){var o;try{const i=Kt(r);if(i&&!n){const f=`squelette_banner_cache_${t}`,c=localStorage.getItem(f);if(c){const{ticket:b,timestamp:u}=JSON.parse(c);if(!(Date.now()-u>oi))return b}}const a=n?`${e}/api/public/w/${t}/changelog/last?ticketId=${n}`:`${e}/api/public/w/${t}/changelog/last`,l=await(await fetch(a)).json(),d=(o=l==null?void 0:l.ticket)!=null?o:null;if(i&&d&&!n){const f=`squelette_banner_cache_${t}`,c={ticket:d,timestamp:Date.now()};localStorage.setItem(f,JSON.stringify(c))}return d}catch(i){return console.error("Error fetching changelog ticket:",i),null}}function di({children:e,duration:t=50,gap:r=8,className:n,delay:o=.8}){const i=X(null),a=X(null),[s,l]=ze(0),[d,f]=ze(0);Pt(()=>{const A=()=>{a.current&&l(Math.ceil(a.current.offsetWidth)),i.current&&f(Math.ceil(i.current.offsetWidth))};A();const S=new ResizeObserver(A),y=new ResizeObserver(A);return a.current&&S.observe(a.current),i.current&&y.observe(i.current),()=>{S.disconnect(),y.disconnect()}},[e,r]);const c=s+r,b=c>0?Math.max(2,Math.ceil((d+c)/c)+1):2,v=c>0?c/50:t;return x(he,{children:[x("style",{children:`
172
172
  @keyframes marquee-banner {
173
173
  from { transform: translate3d(0,0,0); }
174
- to { transform: translate3d(calc(-${l}px),0,0); }
174
+ to { transform: translate3d(calc(-${c}px),0,0); }
175
175
  }
176
- `}),k("span",{ref:i,className:Ve("relative inline-block overflow-hidden align-baseline w-full translate-y-0.5",n),style:{maskImage:"linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%)"},"aria-label":e,children:k("span",{className:"inline-flex items-baseline will-change-transform",style:{gap:`${r}px`,animation:_t.value&&l>0?`marquee-banner ${y}s linear ${o}s infinite`:"none"},children:Array.from({length:g}).map(($,q)=>k("span",{ref:q===0?a:null,className:"whitespace-nowrap shrink-0",children:e},q))})})]})}class mt extends HTMLElement{constructor(){super();Ze(this,"shadow");this.shadow=this.attachShadow({mode:"open"}),it(this.shadow,Nr),this.style.position="fixed",this.style.top="0",this.style.left="0",this.style.right="0",this.style.zIndex="9999"}connectedCallback(){var i;const r=(i=this.getAttribute("workspace-slug"))!=null?i:"squelette",n=this.getAttribute("theme")||"light",o=this.getAttribute("base")||"https://www.squelette.app";$e(k(ii,{workspaceSlug:r,theme:n,base:o}),this.shadow)}disconnectedCallback(){$e(null,this.shadow)}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-banner")||(console.debug("[SqueletteBanner] auto-registering custom element"),customElements.define("squelette-banner",mt)));const Cn={init({slug:e,theme:t,contentTheme:r,base:n}){if(typeof document=="undefined")return null;customElements.get("squelette-banner")||customElements.define("squelette-banner",mt);const o=document.querySelector("squelette-banner");if(o)return t&&this.setTheme(t),o;const i=new mt;return i.setAttribute("workspace-slug",e),i.setAttribute("theme",r!=null?r:"light"),n&&i.setAttribute("base",n),document.body.appendChild(i),t&&this.setTheme(t),i},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to apply theme");return}e.bg&&t.style.setProperty("--squelette-banner-bg",e.bg),e.border&&t.style.setProperty("--squelette-banner-border",e.border),e.text&&t.style.setProperty("--squelette-banner-text",e.text),e.badgeBg&&t.style.setProperty("--squelette-banner-badge-bg",e.badgeBg),e.badgeText&&t.style.setProperty("--squelette-banner-badge-text",e.badgeText),e.buttonHover!==void 0&&t.style.setProperty("--squelette-banner-button-hover",String(e.buttonHover))}};function ui(e){switch(e){case"roadmap":return"Roadmap";case"changelog":return"Changelog";case"feedback":default:return ot}}function qn(e){var o;Ot();const t=document.createElement(Lt);t.setAttribute("project",e.project),e.board&&t.setAttribute("board",e.board),e.view&&t.setAttribute("view",e.view),e.theme&&t.setAttribute("theme",e.theme),e.locale&&t.setAttribute("locale",e.locale),e.token&&t.setAttribute("token",e.token),e.signature&&t.setAttribute("signature",e.signature),e.label&&t.setAttribute("label",e.label),e.apiBase&&t.setAttribute("api-base",e.apiBase),e.attributes&&Object.entries(e.attributes).forEach(([i,a])=>t.setAttribute(i,a)),((o=e.appendTo)!=null?o:document.body).appendChild(t);const n=Rr();return n&&window.dispatchEvent(new CustomEvent("squelette:identity",{detail:n})),t}function Kt(e,t,r,n){var i;const o=qn({project:t,board:r!=null?r:void 0,view:e,theme:n==null?void 0:n.theme,locale:n==null?void 0:n.locale,token:n==null?void 0:n.token,signature:n==null?void 0:n.signature,appendTo:n==null?void 0:n.appendTo,attributes:n==null?void 0:n.attributes,label:(i=n==null?void 0:n.label)!=null?i:ui(e),apiBase:n==null?void 0:n.apiBase});if(n){const a=Xn(o,n);if(a.length>0){const s=o.destroy.bind(o);o.destroy=async()=>{for(const c of a.splice(0,a.length))c();await s()}}}return o}function Qt(){const e=window;e.SqueletteWidget||(e.SqueletteWidget={create:qn,createFeedbackWidget:(t,r,n)=>Kt("feedback",t,r,n),createRoadmapWidget:(t,r,n)=>Kt("roadmap",t,r,n),createChangelogWidget:(t,r)=>Kt("changelog",t,null,r),identify:Lr,clearIdentity:Tr,banner:Cn,version:"0.3.9",cdn:Un})}Ot(),Qt(),Qt();function fi(...e){return window.SqueletteWidget.createFeedbackWidget(...e)}function pi(...e){return window.SqueletteWidget.createRoadmapWidget(...e)}function hi(...e){return window.SqueletteWidget.createChangelogWidget(...e)}function _i(...e){return window.SqueletteWidget.create(...e)}function An({src:e,title:t,onLoaded:r,onClose:n}){const o=Y(null);return ee(()=>{const i=o.current;if(!i)return;const a=()=>{i.dataset.ready="true",r==null||r()};return i.addEventListener("load",a),()=>i.removeEventListener("load",a)},[r]),ee(()=>{const i=a=>{a.data.type==="close-feedback-widget"&&(console.log("WidgetFrame closing widget as requested"),n())};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[n]),k("iframe",{ref:o,class:"sq-frame",part:"frame",src:e,title:t,loading:"eager",allow:"clipboard-write; clipboard-read; fullscreen;",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"})}const mi=Object.freeze(Object.defineProperty({__proto__:null,WidgetFrame:An,default:An,stylesText:mr},Symbol.toStringTag,{value:"Module"}));return E.SqueletteBanner=Cn,E.SqueletteBannerElement=mt,E.SqueletteWidgetElement=Mr,E.clearIdentity=Tr,E.createChangelogWidget=hi,E.createFeedbackWidget=fi,E.createRoadmapWidget=pi,E.createWidget=_i,E.ensureGlobalHelper=Qt,E.identify=Lr,E.registerSqueletteWidget=Ot,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),E}({});
176
+ `}),x("span",{ref:i,className:Xe("relative inline-block overflow-hidden align-baseline w-full translate-y-0.5",n),style:{maskImage:"linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%)"},"aria-label":e,children:x("span",{className:"inline-flex items-baseline will-change-transform",style:{gap:`${r}px`,animation:ve.value&&c>0?`marquee-banner ${v}s linear ${o}s infinite`:"none"},children:Array.from({length:b}).map((A,S)=>x("span",{ref:S===0?a:null,className:"whitespace-nowrap shrink-0",children:e},S))})})]})}class gt extends HTMLElement{constructor(){super();Ke(this,"shadow");this.shadow=this.attachShadow({mode:"open"}),st(this.shadow,Br),this.style.position="fixed",this.style.top="0",this.style.left="0",this.style.right="0",this.style.zIndex="9999"}connectedCallback(){var l;const r=(l=this.getAttribute("workspace-slug"))!=null?l:"squelette",n=this.getAttribute("theme")||"light",o=this.getAttribute("base")||"https://www.squelette.app",i=this.getAttribute("debug")==="true",a=this.getAttribute("ticket-id"),s=a?Number(a):void 0;Pe(x(ii,{workspaceSlug:r,theme:n,base:o,debug:i,ticketId:s}),this.shadow)}disconnectedCallback(){Pe(null,this.shadow)}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-banner")||(console.debug("[SqueletteBanner] auto-registering custom element"),customElements.define("squelette-banner",gt)));const qn={init({slug:e,theme:t,contentTheme:r,base:n,debug:o,ticketId:i}){if(console.log("[SqueletteBanner] init called",{slug:e,contentTheme:r,base:n,debug:o,ticketId:i}),typeof document=="undefined")return null;customElements.get("squelette-banner")||customElements.define("squelette-banner",gt);const a=document.querySelector("squelette-banner");if(a)return console.log("[SqueletteBanner] Found existing banner, updating attributes"),t&&this.setTheme(t),r&&this.setContentTheme(r),o!==void 0&&a.setAttribute("debug",String(o)),i!==void 0&&a.setAttribute("ticket-id",String(i)),a;console.log("[SqueletteBanner] Creating new banner element");const s=new gt;return s.setAttribute("workspace-slug",e),s.setAttribute("theme",r!=null?r:"light"),n&&s.setAttribute("base",n),o!==void 0&&s.setAttribute("debug",String(o)),i!==void 0&&s.setAttribute("ticket-id",String(i)),document.body.appendChild(s),console.log("[SqueletteBanner] Banner element appended to body"),t&&this.setTheme(t),s},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to apply theme");return}e.bg&&t.style.setProperty("--squelette-banner-bg",e.bg),e.border&&t.style.setProperty("--squelette-banner-border",e.border),e.text&&t.style.setProperty("--squelette-banner-text",e.text),e.badgeBg&&t.style.setProperty("--squelette-banner-badge-bg",e.badgeBg),e.badgeText&&t.style.setProperty("--squelette-banner-badge-text",e.badgeText),e.buttonHover!==void 0&&t.style.setProperty("--squelette-banner-button-hover",String(e.buttonHover))},setContentTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to update content theme");return}t.setAttribute("theme",e)},destroy(){if(console.log("[SqueletteBanner] destroy called"),typeof document=="undefined")return;const e=document.querySelector("squelette-banner");if(!e){console.warn("[SqueletteBanner] No banner found to destroy");return}console.log("[SqueletteBanner] Removing banner element"),e.remove(),console.log("[SqueletteBanner] Banner element removed")}};function ui(e){switch(e){case"roadmap":return"Roadmap";case"changelog":return"Changelog";case"feedback":default:return at}}function Cn(e){var o;It();const t=document.createElement(Tt);t.setAttribute("project",e.project),e.board&&t.setAttribute("board",e.board),e.view&&t.setAttribute("view",e.view),e.theme&&t.setAttribute("theme",e.theme),e.locale&&t.setAttribute("locale",e.locale),e.token&&t.setAttribute("token",e.token),e.signature&&t.setAttribute("signature",e.signature),e.label&&t.setAttribute("label",e.label),e.apiBase&&t.setAttribute("api-base",e.apiBase),e.attributes&&Object.entries(e.attributes).forEach(([i,a])=>t.setAttribute(i,a)),((o=e.appendTo)!=null?o:document.body).appendChild(t);const n=Nr();return n&&window.dispatchEvent(new CustomEvent("squelette:identity",{detail:n})),t}function Qt(e,t,r,n){var i;const o=Cn({project:t,board:r!=null?r:void 0,view:e,theme:n==null?void 0:n.theme,locale:n==null?void 0:n.locale,token:n==null?void 0:n.token,signature:n==null?void 0:n.signature,appendTo:n==null?void 0:n.appendTo,attributes:n==null?void 0:n.attributes,label:(i=n==null?void 0:n.label)!=null?i:ui(e),apiBase:n==null?void 0:n.apiBase});if(n){const a=Xn(o,n);if(a.length>0){const s=o.destroy.bind(o);o.destroy=async()=>{for(const l of a.splice(0,a.length))l();await s()}}}return o}function er(){const e=window;e.SqueletteWidget||(e.SqueletteWidget={create:Cn,createFeedbackWidget:(t,r,n)=>Qt("feedback",t,r,n),createRoadmapWidget:(t,r,n)=>Qt("roadmap",t,r,n),createChangelogWidget:(t,r)=>Qt("changelog",t,null,r),identify:Tr,clearIdentity:Rr,banner:qn,version:"0.3.10",cdn:Un})}It(),er(),er();function fi(...e){return window.SqueletteWidget.createFeedbackWidget(...e)}function pi(...e){return window.SqueletteWidget.createRoadmapWidget(...e)}function hi(...e){return window.SqueletteWidget.createChangelogWidget(...e)}function mi(...e){return window.SqueletteWidget.create(...e)}function An({src:e,title:t,onLoaded:r,onClose:n}){const o=X(null);return Q(()=>{const i=o.current;if(!i)return;const a=()=>{i.dataset.ready="true",r==null||r()};return i.addEventListener("load",a),()=>i.removeEventListener("load",a)},[r]),Q(()=>{const i=a=>{a.data.type==="close-feedback-widget"&&(console.log("WidgetFrame closing widget as requested"),n())};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[n]),x("iframe",{ref:o,class:"sq-frame",part:"frame",src:e,title:t,loading:"eager",allow:"clipboard-write; clipboard-read; fullscreen;",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"})}const _i=Object.freeze(Object.defineProperty({__proto__:null,WidgetFrame:An,default:An,stylesText:gr},Symbol.toStringTag,{value:"Module"}));return q.SqueletteBanner=qn,q.SqueletteBannerElement=gt,q.SqueletteWidgetElement=zr,q.clearIdentity=Rr,q.createChangelogWidget=hi,q.createFeedbackWidget=fi,q.createRoadmapWidget=pi,q.createWidget=mi,q.ensureGlobalHelper=er,q.identify=Tr,q.registerSqueletteWidget=It,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),q}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squeletteapp/widget",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Embeddable Squelette widget",
5
5
  "type": "module",
6
6
  "main": "dist/widget.js",