@squeletteapp/widget 0.3.3 → 0.3.4
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.
|
@@ -474,7 +474,7 @@ function Io({
|
|
|
474
474
|
)
|
|
475
475
|
] });
|
|
476
476
|
}
|
|
477
|
-
const kn = "squelette-widget", on = typeof globalThis != "undefined" ? globalThis : {}, Lo = "https://squelette.app", Sn = typeof on.SQUELETTE_WIDGET_BASE_URL == "string" && on.SQUELETTE_WIDGET_BASE_URL.length > 0 ? on.SQUELETTE_WIDGET_BASE_URL : Lo, Oo = "https://cdn.squelette.app/widget.js", Ot = "Feedback";
|
|
477
|
+
const kn = "squelette-widget", on = typeof globalThis != "undefined" ? globalThis : {}, Lo = "https://www.squelette.app", Sn = typeof on.SQUELETTE_WIDGET_BASE_URL == "string" && on.SQUELETTE_WIDGET_BASE_URL.length > 0 ? on.SQUELETTE_WIDGET_BASE_URL : Lo, Oo = "https://cdn.squelette.app/widget.js", Ot = "Feedback";
|
|
478
478
|
class Do {
|
|
479
479
|
constructor() {
|
|
480
480
|
ut(this, "listeners", /* @__PURE__ */ new Map());
|
|
@@ -749,7 +749,7 @@ class Ko extends HTMLElement {
|
|
|
749
749
|
if (!(b(this, Ye) || b(this, He))) {
|
|
750
750
|
L(this, He, !0), this.render();
|
|
751
751
|
try {
|
|
752
|
-
(n = b(this, kt)) != null || L(this, kt, import("./app-
|
|
752
|
+
(n = b(this, kt)) != null || L(this, kt, import("./app-BlWW73xf.js"));
|
|
753
753
|
const s = await b(this, kt), o = (r = s.WidgetFrame) != null ? r : s.default;
|
|
754
754
|
if (!o)
|
|
755
755
|
throw new Error("[SqueletteWidget] Widget app missing export");
|
|
@@ -7357,7 +7357,7 @@ function cd({
|
|
|
7357
7357
|
{
|
|
7358
7358
|
ref: s,
|
|
7359
7359
|
className: "w-full h-full border-none outline-none border border-red-400",
|
|
7360
|
-
src: `https://squelette.app/widget/${e}/changelog/last?theme=${t}`,
|
|
7360
|
+
src: `https://www.squelette.app/widget/${e}/changelog/last?theme=${t}`,
|
|
7361
7361
|
onLoad: u
|
|
7362
7362
|
}
|
|
7363
7363
|
),
|
|
@@ -7616,7 +7616,7 @@ async function gd(e) {
|
|
|
7616
7616
|
}
|
|
7617
7617
|
}
|
|
7618
7618
|
const i = await (await fetch(
|
|
7619
|
-
`https://squelette.app/api/public/w/${e}/changelog/last`
|
|
7619
|
+
`https://www.squelette.app/api/public/w/${e}/changelog/last`
|
|
7620
7620
|
)).json(), s = (t = i == null ? void 0 : i.ticket) != null ? t : null;
|
|
7621
7621
|
if (n && s) {
|
|
7622
7622
|
const o = `squelette_banner_cache_${e}`, a = {
|
|
@@ -7797,7 +7797,7 @@ function ko() {
|
|
|
7797
7797
|
identify: Ho,
|
|
7798
7798
|
clearIdentity: Yo,
|
|
7799
7799
|
banner: yd,
|
|
7800
|
-
version: "0.3.
|
|
7800
|
+
version: "0.3.4",
|
|
7801
7801
|
cdn: Oo
|
|
7802
7802
|
});
|
|
7803
7803
|
}
|
package/dist/widget.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as a, g as r, S as s, c as d, e as i, b as l, d as g, a as n, f as c, i as W, r as o } from "./index-
|
|
1
|
+
import { h as a, g as r, S as s, c as d, e as i, b as l, d as g, a as n, f as c, i as W, r as o } from "./index-CEsSn3c9.js";
|
|
2
2
|
export {
|
|
3
3
|
a as SqueletteBanner,
|
|
4
4
|
r as SqueletteBannerElement,
|
package/dist/widget.js
CHANGED
|
@@ -23,7 +23,7 @@ var SqueletteWidgetBundle=function($){"use strict";var vd=Object.defineProperty;
|
|
|
23
23
|
:host([data-theme="dark"]) .sq-frame {
|
|
24
24
|
background: rgba(0, 0, 0, 0.3);
|
|
25
25
|
}
|
|
26
|
-
`;var He,U,pn,Ur,Nt=0,jr=[],K=T,Gr=K.__b,Kr=K.__r,Hr=K.diffed,Yr=K.__c,Xr=K.unmount,Zr=K.__;function It(e,t){K.__h&&K.__h(U,e,Nt||t),Nt=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ot(e){return Nt=1,Io(Qr,e)}function Io(e,t,n){var r=It(He++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Qr(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=U,!U.__f)){var i=function(a,l,c){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!s||s.call(this,a,l,c);var u=r.__c.props!==a;return d.forEach(function(h){if(h.__N){var p=h.__[0];h.__=h.__N,h.__N=void 0,p!==h.__[0]&&(u=!0)}}),s&&s.call(this,a,l,c)||u};U.__f=!0;var s=U.shouldComponentUpdate,o=U.componentWillUpdate;U.componentWillUpdate=function(a,l,c){if(this.__e){var d=s;s=void 0,i(a,l,c),s=d}o&&o.call(this,a,l,c)},U.shouldComponentUpdate=i}return r.__N||r.__}function ve(e,t){var n=It(He++,3);!K.__s&&bn(n.__H,t)&&(n.__=e,n.u=t,U.__H.__h.push(n))}function Oo(e,t){var n=It(He++,4);!K.__s&&bn(n.__H,t)&&(n.__=e,n.u=t,U.__h.push(n))}function se(e){return Nt=5,mn(function(){return{current:e}},[])}function mn(e,t){var n=It(He++,7);return bn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Lo(){for(var e;e=jr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Lt),e.__H.__h.forEach(gn),e.__H.__h=[]}catch(t){e.__H.__h=[],K.__e(t,e.__v)}}K.__b=function(e){U=null,Gr&&Gr(e)},K.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Zr&&Zr(e,t)},K.__r=function(e){Kr&&Kr(e),He=0;var t=(U=e.__c).__H;t&&(pn===U?(t.__h=[],U.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Lt),t.__h.forEach(gn),t.__h=[],He=0)),pn=U},K.diffed=function(e){Hr&&Hr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(jr.push(t)!==1&&Ur===K.requestAnimationFrame||((Ur=K.requestAnimationFrame)||Do)(Lo)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),pn=U=null},K.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Lt),n.__h=n.__h.filter(function(r){return!r.__||gn(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],K.__e(r,n.__v)}}),Yr&&Yr(e,t)},K.unmount=function(e){Xr&&Xr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Lt(r)}catch(i){t=i}}),n.__H=void 0,t&&K.__e(t,n.__v))};var Jr=typeof requestAnimationFrame=="function";function Do(e){var t,n=function(){clearTimeout(r),Jr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Jr&&(t=requestAnimationFrame(n))}function Lt(e){var t=U,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),U=t}function gn(e){var t=U;e.__c=e.__(),U=t}function bn(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Qr(e,t){return typeof t=="function"?t(e):t}function Bo({open:e,label:t,iframeSrc:n,FrameComponent:r,ensureFrame:i,onOpen:s,onClose:o,onFrameLoaded:a}){ve(()=>{e&&i()},[e,i]);const l=r;return P("div",{class:"sq-root",children:[P("button",{class:"sq-trigger",type:"button","aria-haspopup":"dialog","aria-expanded":e?"true":"false",onClick:e?o:s,part:"launcher",children:[P("span",{class:"sq-trigger-icon","aria-hidden":"true",children:"✶"}),P("span",{class:"sq-trigger-label",children:t})]}),P("div",{class:"sq-overlay","data-state":e?"open":"closed",onClick:o,role:"presentation"}),P("div",{class:"sq-panel","data-state":e?"open":"closed","aria-hidden":e?"false":"true",part:"panel",children:l&&n?P(l,{src:n,title:"Squelette feedback",onLoaded:a,onClose:o}):null})]})}const yn="squelette-widget",_n=typeof globalThis!="undefined"?globalThis:{},vn=typeof _n.SQUELETTE_WIDGET_BASE_URL=="string"&&_n.SQUELETTE_WIDGET_BASE_URL.length>0?_n.SQUELETTE_WIDGET_BASE_URL:"https://squelette.app",zo="https://cdn.squelette.app/widget.js",Dt="Feedback";class Wo{constructor(){Pt(this,"listeners",new Map)}on(t,n){var i;const r=(i=this.listeners.get(t))!=null?i:new Set;return r.add(n),this.listeners.set(t,r),()=>this.off(t,n)}off(t,n){const r=this.listeners.get(t);r&&r.delete(n)}emit(t,n){const r=this.listeners.get(t);if(r)for(const i of r)i(n)}}const Uo=`
|
|
26
|
+
`;var He,U,pn,Ur,Nt=0,jr=[],K=T,Gr=K.__b,Kr=K.__r,Hr=K.diffed,Yr=K.__c,Xr=K.unmount,Zr=K.__;function It(e,t){K.__h&&K.__h(U,e,Nt||t),Nt=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ot(e){return Nt=1,Io(Qr,e)}function Io(e,t,n){var r=It(He++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Qr(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=U,!U.__f)){var i=function(a,l,c){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!s||s.call(this,a,l,c);var u=r.__c.props!==a;return d.forEach(function(h){if(h.__N){var p=h.__[0];h.__=h.__N,h.__N=void 0,p!==h.__[0]&&(u=!0)}}),s&&s.call(this,a,l,c)||u};U.__f=!0;var s=U.shouldComponentUpdate,o=U.componentWillUpdate;U.componentWillUpdate=function(a,l,c){if(this.__e){var d=s;s=void 0,i(a,l,c),s=d}o&&o.call(this,a,l,c)},U.shouldComponentUpdate=i}return r.__N||r.__}function ve(e,t){var n=It(He++,3);!K.__s&&bn(n.__H,t)&&(n.__=e,n.u=t,U.__H.__h.push(n))}function Oo(e,t){var n=It(He++,4);!K.__s&&bn(n.__H,t)&&(n.__=e,n.u=t,U.__h.push(n))}function se(e){return Nt=5,mn(function(){return{current:e}},[])}function mn(e,t){var n=It(He++,7);return bn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Lo(){for(var e;e=jr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Lt),e.__H.__h.forEach(gn),e.__H.__h=[]}catch(t){e.__H.__h=[],K.__e(t,e.__v)}}K.__b=function(e){U=null,Gr&&Gr(e)},K.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Zr&&Zr(e,t)},K.__r=function(e){Kr&&Kr(e),He=0;var t=(U=e.__c).__H;t&&(pn===U?(t.__h=[],U.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Lt),t.__h.forEach(gn),t.__h=[],He=0)),pn=U},K.diffed=function(e){Hr&&Hr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(jr.push(t)!==1&&Ur===K.requestAnimationFrame||((Ur=K.requestAnimationFrame)||Do)(Lo)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),pn=U=null},K.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Lt),n.__h=n.__h.filter(function(r){return!r.__||gn(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],K.__e(r,n.__v)}}),Yr&&Yr(e,t)},K.unmount=function(e){Xr&&Xr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Lt(r)}catch(i){t=i}}),n.__H=void 0,t&&K.__e(t,n.__v))};var Jr=typeof requestAnimationFrame=="function";function Do(e){var t,n=function(){clearTimeout(r),Jr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Jr&&(t=requestAnimationFrame(n))}function Lt(e){var t=U,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),U=t}function gn(e){var t=U;e.__c=e.__(),U=t}function bn(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Qr(e,t){return typeof t=="function"?t(e):t}function Bo({open:e,label:t,iframeSrc:n,FrameComponent:r,ensureFrame:i,onOpen:s,onClose:o,onFrameLoaded:a}){ve(()=>{e&&i()},[e,i]);const l=r;return P("div",{class:"sq-root",children:[P("button",{class:"sq-trigger",type:"button","aria-haspopup":"dialog","aria-expanded":e?"true":"false",onClick:e?o:s,part:"launcher",children:[P("span",{class:"sq-trigger-icon","aria-hidden":"true",children:"✶"}),P("span",{class:"sq-trigger-label",children:t})]}),P("div",{class:"sq-overlay","data-state":e?"open":"closed",onClick:o,role:"presentation"}),P("div",{class:"sq-panel","data-state":e?"open":"closed","aria-hidden":e?"false":"true",part:"panel",children:l&&n?P(l,{src:n,title:"Squelette feedback",onLoaded:a,onClose:o}):null})]})}const yn="squelette-widget",_n=typeof globalThis!="undefined"?globalThis:{},vn=typeof _n.SQUELETTE_WIDGET_BASE_URL=="string"&&_n.SQUELETTE_WIDGET_BASE_URL.length>0?_n.SQUELETTE_WIDGET_BASE_URL:"https://www.squelette.app",zo="https://cdn.squelette.app/widget.js",Dt="Feedback";class Wo{constructor(){Pt(this,"listeners",new Map)}on(t,n){var i;const r=(i=this.listeners.get(t))!=null?i:new Set;return r.add(n),this.listeners.set(t,r),()=>this.off(t,n)}off(t,n){const r=this.listeners.get(t);r&&r.delete(n)}emit(t,n){const r=this.listeners.get(t);if(r)for(const i of r)i(n)}}const Uo=`
|
|
27
27
|
:host {
|
|
28
28
|
position: relative;
|
|
29
29
|
z-index: 2147483000;
|
|
@@ -160,9 +160,9 @@ var SqueletteWidgetBundle=function($){"use strict";var vd=Object.defineProperty;
|
|
|
160
160
|
max-height: min(85vh, 720px);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
`,ei=new Map,jo=typeof Document!="undefined"&&"adoptedStyleSheets"in Document.prototype;function Bt(e,t){var r;if(!t)return;if(jo){let i=(r=ei.get(t))!=null?r:null;i||(i=new CSSStyleSheet,i.replaceSync(t),ei.set(t,i)),e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return}const n=document.createElement("style");n.textContent=t,e.appendChild(n)}function Go(e){Bt(e,Uo)}function Ko(e,t,n){n?e.hasAttribute(t)||e.setAttribute(t,""):e.hasAttribute(t)&&e.removeAttribute(t)}function ti(e){return e?e.toLowerCase():"en"}function ni(e){return e==="light"||e==="dark"?e:"auto"}function zt(e){return e==="roadmap"||e==="changelog"?e:"feedback"}function ri(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 n=e.apiBase.replace(/\/$/,"");switch(e.view){case"roadmap":return e.board&&t.set("board",e.board),`${n}/widget/${encodeURIComponent(e.project)}/roadmap?${t.toString()}`;case"changelog":return`${n}/widget/${encodeURIComponent(e.project)}/changelog?${t.toString()}`;case"feedback":default:return e.board&&t.set("board",e.board),`${n}/widget/${encodeURIComponent(e.project)}/feedback?${t.toString()}`}}function Ho(e,t){const n=window.matchMedia("(prefers-color-scheme: dark)"),r=i=>{e.dataset.theme=i?"dark":"light"};if(t==="auto"){r(n.matches);const i=s=>r(s.matches);return n.addEventListener("change",i),()=>n.removeEventListener("change",i)}return e.dataset.theme=t,()=>{}}const wn={feedback:{width:340,height:200},roadmap:{width:400,height:420},changelog:{width:400,height:520}},xn={width:400,height:540};function kn(e,t){var i;const{width:n,height:r}=(i=wn[t])!=null?i:xn;e.style.setProperty("--sq-panel-width",`${n}px`),e.style.setProperty("--sq-panel-height",`${r}px`)}function Yo(e){const t=document.body.style;{const n={overflow:t.overflow,paddingRight:t.paddingRight},r=window.innerWidth-document.documentElement.clientWidth;return t.overflow="hidden",r>0&&(t.paddingRight=`${r}px`),()=>{t.overflow=n.overflow,t.paddingRight=n.paddingRight}}}class ii extends HTMLElement{constructor(){super();ne(this,N,{project:null,board:null,theme:"auto",locale:"en",apiBase:vn,label:Dt,view:"feedback"});ne(this,qe,!1);ne(this,ct,!1);ne(this,de,!1);ne(this,$e);ne(this,je);ne(this,ut,null);ne(this,Et,null);ne(this,le,null);ne(this,ge,null);ne(this,be,null);ne(this,oe,null);ne(this,Vt,null);ne(this,dt,new Wo);ne(this,Ve,null);Pt(this,"ensureFrameModule",async()=>{var n,r,i;if(!(b(this,ut)||b(this,ct))){L(this,ct,!0),this.render();try{(n=b(this,Et))!=null||L(this,Et,Promise.resolve().then(()=>_d));const s=await b(this,Et),o=(r=s.WidgetFrame)!=null?r:s.default;if(!o)throw new Error("[SqueletteWidget] Widget app missing export");L(this,ut,o),Bt(b(this,$e),(i=s.stylesText)!=null?i:Wr)}catch(s){console.error("[SqueletteWidget] Failed to load widget app",s)}finally{L(this,ct,!1),this.render()}}});Pt(this,"handleFrameLoaded",()=>{L(this,de,!0),L(this,Ve,b(this,$e).querySelector("iframe")),this.postIdentityToFrame(),this.render(),this.dispatchEvent(new CustomEvent("squelette:frame-loaded"))});L(this,$e,this.attachShadow({mode:"open"})),L(this,je,document.createElement("div")),Go(b(this,$e)),b(this,$e).appendChild(b(this,je)),this.render()}static get observedAttributes(){return["project","board","theme","locale","token","signature","label","view","open","api-base"]}connectedCallback(){var r,i,s;b(this,N).project=this.getAttribute("project"),b(this,N).board=this.getAttribute("board"),b(this,N).theme=ni(this.getAttribute("theme")),b(this,N).locale=ti(this.getAttribute("locale")),b(this,N).token=(r=this.getAttribute("token"))!=null?r:void 0,b(this,N).signature=(i=this.getAttribute("signature"))!=null?i:void 0,b(this,N).label=(s=this.getAttribute("label"))!=null?s:Dt,b(this,N).view=zt(this.getAttribute("view"));const n=this.getAttribute("api-base");b(this,N).apiBase=n&&n.length>0?n:b(this,N).apiBase,this.applyTheme(b(this,N).theme),kn(this,b(this,N).view),this.hasAttribute("open")&&this.setOpen(!0,"attribute"),L(this,be,o=>{if(!b(this,N).project||!o.data||typeof o.data!="object")return;try{const c=new URL(b(this,N).apiBase).origin;if(o.origin!==c)return}catch{return}const a=o.data;if(a.type!=="squelette:submit")return;const l=a.payload;l&&b(this,dt).emit("submit",{source:"app",payload:l})}),window.addEventListener("message",b(this,be)),L(this,ge,o=>{var l;L(this,Vt,(l=o.detail)!=null?l:null),this.postIdentityToFrame()}),window.addEventListener("squelette:identity",b(this,ge)),this.render()}disconnectedCallback(){b(this,be)&&(window.removeEventListener("message",b(this,be)),L(this,be,null)),b(this,le)&&(b(this,le).call(this),L(this,le,null)),b(this,ge)&&(window.removeEventListener("squelette:identity",b(this,ge)),L(this,ge,null)),b(this,oe)&&(b(this,oe).call(this),L(this,oe,null))}attributeChangedCallback(n,r,i){if(n==="open"){if(b(this,qe)===(i!==null))return;this.setOpen(i!==null,"attribute");return}switch(n){case"project":b(this,N).project=i,L(this,de,!1);break;case"board":b(this,N).board=i,L(this,de,!1);break;case"locale":b(this,N).locale=ti(i),L(this,de,!1);break;case"theme":b(this,N).theme=ni(i),this.applyTheme(b(this,N).theme);break;case"token":b(this,N).token=i!=null?i:void 0,L(this,de,!1);break;case"signature":b(this,N).signature=i!=null?i:void 0,L(this,de,!1);break;case"label":b(this,N).label=i!=null?i:Dt;break;case"view":b(this,N).view=zt(i),L(this,de,!1),kn(this,b(this,N).view);break;case"api-base":b(this,N).apiBase=i&&i.length>0?i:vn,L(this,de,!1);break}n!=="open"&&this.render()}async open(){await this.setOpen(!0,"api")}async close(){await this.setOpen(!1,"api")}async toggle(){await this.setOpen(!b(this,qe),"api")}on(n,r){return n==="submit"&&!b(this,N).project&&console.warn("[SqueletteWidget] Cannot listen for submit before project is set."),b(this,dt).on(n,r)}async destroy(){Ke(null,b(this,je)),b(this,be)&&(window.removeEventListener("message",b(this,be)),L(this,be,null)),b(this,le)&&(b(this,le).call(this),L(this,le,null)),b(this,ge)&&(window.removeEventListener("squelette:identity",b(this,ge)),L(this,ge,null)),this.parentNode&&this.parentNode.removeChild(this),b(this,oe)&&(b(this,oe).call(this),L(this,oe,null))}render(){const n=ri(b(this,N));Ke(P(Bo,{open:b(this,qe),label:b(this,N).label,iframeSrc:n,FrameComponent:b(this,ut),ensureFrame:this.ensureFrameModule,onOpen:()=>void this.setOpen(!0,"api"),onClose:()=>void this.setOpen(!1,"api"),onFrameLoaded:this.handleFrameLoaded}),b(this,je))}async setOpen(n,r){if(n&&!b(this,N).project){console.warn("[SqueletteWidget] Missing `project` attribute or option.");return}if(b(this,qe)!==n){if(L(this,qe,n),Ko(this,"open",n),n)b(this,oe)||L(this,oe,Yo()),kn(this,b(this,N).view);else{b(this,oe)&&(b(this,oe).call(this),L(this,oe,null)),L(this,de,!1);const i=ri(b(this,N));i&&b(this,Ve)&&(b(this,Ve).src=i)}this.render(),b(this,dt).emit(n?"open":"close",{source:r})}}applyTheme(n){b(this,le)&&(b(this,le).call(this),L(this,le,null)),L(this,le,Ho(this,n))}postIdentityToFrame(){if(!(!b(this,Ve)||!b(this,Ve).contentWindow))try{const n=new URL(b(this,N).apiBase).origin;b(this,Ve).contentWindow.postMessage({type:"squelette-identify",payload:b(this,Vt)},n)}catch(n){console.warn("[SqueletteWidget] Unable to forward identity payload",n)}}}N=new WeakMap,qe=new WeakMap,ct=new WeakMap,de=new WeakMap,$e=new WeakMap,je=new WeakMap,ut=new WeakMap,Et=new WeakMap,le=new WeakMap,ge=new WeakMap,be=new WeakMap,oe=new WeakMap,Vt=new WeakMap,dt=new WeakMap,Ve=new WeakMap;function Sn(){customElements.get(yn)||customElements.define(yn,ii)}let Wt=null;function si(e){window.dispatchEvent(new CustomEvent("squelette:identity",{detail:e}))}function oi(e){if(!e||!e.userId||!e.email||!e.signature){console.error("[SqueletteWidget] Invalid identification payload.",e);return}Wt=e,si(Wt)}function ai(){Wt=null,si(null)}function li(){return Wt}function Tn(e,t,n){const r=Math.max(t,n);return Math.min(Math.max(e,t),r)}function Xo(e,t){var E,I;const n=[],r=(E=t.position)!=null?E:"top",i=(I=t.overlayBlur)!=null?I:!0,s=12,o=r.startsWith("fixed-"),a=/^fixed-(top|center|bottom)-(left|center|right)$/;let l=null,c=!1,d=!1,u=null;const h=()=>{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")},p=()=>{var ye;if(!c||!l)return;const f=l.getBoundingClientRect(),A=window.innerWidth,q=window.innerHeight,R=zt(e.getAttribute("view")),W=(ye=wn[R])!=null?ye:xn,J=Math.min(W.width,A-s*2),fe=Math.min(W.height,q-s*2),he=Math.max(s,A-J-s),Q=Math.max(s,q-fe-s),Y=f.top-s,v=q-f.bottom-s;let ie=f.bottom+s,ee=f.left+f.width/2-J/2,ae="top";if(r==="left"||r==="right"){let O=r==="right";const G=f.right+s,te=f.left-J-s,ce=G+J<=A-s,B=te>=s;O&&!ce&&B?O=!1:!O&&!B&&ce&&(O=!0),O?(ee=G,ae="left"):(ee=te,ae="right");const ke=f.top+f.height/2-fe/2;ie=Tn(ke,s,Q)}else{let O=r==="bottom";r!=="top"&&r!=="bottom"&&(O=v>=Y);const G=f.bottom+s,te=f.top-fe-s,ce=G+fe<=q-s,B=te>=s;O&&!ce&&B?O=!1:!O&&!B&&ce&&(O=!0),O?(ie=G,ae="top"):(ie=te,ae="bottom"),ee=f.left+f.width/2-J/2}ie=Tn(ie,s,Q),ee=Tn(ee,s,he),e.dataset.anchor="button",e.dataset.anchorOrigin=ae,e.style.setProperty("--sq-offset-top",`${Math.round(ie)}px`),e.style.setProperty("--sq-offset-left",`${Math.round(ee)}px`),e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto")},y=()=>{c&&requestAnimationFrame(p)},_=()=>{d||(window.addEventListener("resize",y),window.addEventListener("scroll",y,!0),d=!0)},g=()=>{d&&(window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0),d=!1)},m=()=>{!l||o||(c=!0,e.dataset.anchor="button",e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto"),_(),p(),requestAnimationFrame(p))},k=()=>{c=!1,g()};n.push(()=>{k(),h()}),i||(e.dataset.overlayBlur="off",n.push(()=>{delete e.dataset.overlayBlur}));const M=()=>{var O;if(!o)return;const f=r.match(a);if(!f){console.warn(`[SqueletteWidget] Unsupported position value: ${r}`);return}const[,A,q]=f,R=24,W=zt(e.getAttribute("view")),J=(O=wn[W])!=null?O:xn,fe=window.innerWidth,he=window.innerHeight,Q=Math.min(J.width,fe-R*2),Y=Math.min(J.height,he-R*2);let v="auto",ie="auto",ee="auto",ae="auto";switch(A){case"top":v=`${R}px`;break;case"bottom":ie=`${R}px`;break;case"center":v=`${Math.max(R,Math.round((he-Y)/2))}px`;break}switch(q){case"left":ee=`${R}px`;break;case"right":ae=`${R}px`;break;case"center":ee=`${Math.max(R,Math.round((fe-Q)/2))}px`;break}e.dataset.anchor="fixed";const ye=A==="center"?q==="center"?"bottom":q:A;e.dataset.anchorOrigin=ye,e.dataset.fixedVertical=A,e.dataset.fixedHorizontal=q,e.style.setProperty("--sq-offset-top",v),e.style.setProperty("--sq-offset-bottom",ie),e.style.setProperty("--sq-offset-left",ee),e.style.setProperty("--sq-offset-right",ae)};if(o&&M(),t.buttonSelector)if(l=document.querySelector(t.buttonSelector),l){const f=l;e.dataset.launcherHidden="true",n.push(()=>{delete e.dataset.launcherHidden});const A=R=>{R.preventDefault(),R.stopPropagation(),e.toggle()};f.addEventListener("click",A,!1),n.push(()=>f.removeEventListener("click",A,!1));const q=()=>{o?M():requestAnimationFrame(p)};e.addEventListener("squelette:frame-loaded",q),n.push(()=>e.removeEventListener("squelette:frame-loaded",q)),u=R=>{if(!e.hasAttribute("open"))return;const W=R.target;!e.contains(W)&&!f.contains(W)&&e.close()},document.addEventListener("click",u,!0),n.push(()=>{u&&(document.removeEventListener("click",u,!0),u=null)})}else console.warn(`[SqueletteWidget] Button selector not found: ${t.buttonSelector}`);const C=e.on("open",()=>{o?M():l&&m()}),S=e.on("close",()=>{k()});if(n.push(C,S),t.onOpenChange){const f=e.on("open",()=>{var q;return(q=t.onOpenChange)==null?void 0:q.call(t,!0)}),A=e.on("close",()=>{var q;return(q=t.onOpenChange)==null?void 0:q.call(t,!1)});n.push(f,A)}if(t.onLoad){const f=()=>{var A;(A=t.onLoad)==null||A.call(t),e.removeEventListener("squelette:frame-loaded",f)};e.addEventListener("squelette:frame-loaded",f),n.push(()=>e.removeEventListener("squelette:frame-loaded",f))}return n}const ci='*,: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%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.visible{visibility:visible}.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-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-none{border-style:none}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.bg-black\\/60{background-color:#0009}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.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)}.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)}.drop-shadow-xl{--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / .03)) drop-shadow(0 8px 5px rgb(0 0 0 / .08));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}.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 Zo=Symbol.for("preact-signals");function Ut(){if(Pe>1)Pe--;else{for(var e,t=!1;gt!==void 0;){var n=gt;for(gt=void 0,An++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&hi(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(An=0,Pe--,t)throw e}}function ui(e){if(Pe>0)return e();Pe++;try{return e()}finally{Ut()}}var D=void 0;function di(e){var t=D;D=void 0;try{return e()}finally{D=t}}var gt=void 0,Pe=0,An=0,jt=0;function fi(e){if(D!==void 0){var t=e.n;if(t===void 0||t.t!==D)return t={i:0,S:e,p:D.s,n:void 0,t:D,e:void 0,x:void 0,r:t},D.s!==void 0&&(D.s.n=t),D.s=t,e.n=t,32&D.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=D.s,t.n=void 0,D.s.n=t,D.s=t),t}}function Z(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}Z.prototype.brand=Zo,Z.prototype.h=function(){return!0},Z.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n!==void 0?n.e=e:di(function(){var r;(r=t.W)==null||r.call(t)}))},Z.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&di(function(){var i;(i=t.Z)==null||i.call(t)}))}},Z.prototype.subscribe=function(e){var t=this;return Xe(function(){var n=t.value,r=D;D=void 0;try{e(n)}finally{D=r}},{name:"sub"})},Z.prototype.valueOf=function(){return this.value},Z.prototype.toString=function(){return this.value+""},Z.prototype.toJSON=function(){return this.value},Z.prototype.peek=function(){var e=D;D=void 0;try{return this.value}finally{D=e}},Object.defineProperty(Z.prototype,"value",{get:function(){var e=fi(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(An>100)throw new Error("Cycle detected");this.v=e,this.i++,jt++,Pe++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ut()}}}});function Ie(e,t){return new Z(e,t)}function hi(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 pi(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function mi(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Oe(e,t){Z.call(this,void 0),this.x=e,this.s=void 0,this.g=jt-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}Oe.prototype=new Z,Oe.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===jt))return!0;if(this.g=jt,this.f|=1,this.i>0&&!hi(this))return this.f&=-2,!0;var e=D;try{pi(this),D=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return D=e,mi(this),this.f&=-2,!0},Oe.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)}Z.prototype.S.call(this,e)},Oe.prototype.U=function(e){if(this.t!==void 0&&(Z.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)}},Oe.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(Oe.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=fi(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function gi(e,t){return new Oe(e,t)}function bi(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Pe++;var n=D;D=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Mn(e),r}finally{D=n,Ut()}}}function Mn(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,bi(e)}function Jo(e){if(D!==this)throw new Error("Out-of-order effect");mi(this),D=e,this.f&=-2,8&this.f&&Mn(this),Ut()}function Ye(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}Ye.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()}},Ye.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,bi(this),pi(this),Pe++;var e=D;return D=this,Jo.bind(this,e)},Ye.prototype.N=function(){2&this.f||(this.f|=2,this.o=gt,gt=this)},Ye.prototype.d=function(){this.f|=8,1&this.f||Mn(this)},Ye.prototype.dispose=function(){this.d()};function Xe(e,t){var n=new Ye(e,t);try{n.c()}catch(i){throw n.d(),i}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var Cn,En,yi=[],_i=[];Xe(function(){Cn=this.N})();function Ze(e,t){T[e]=t.bind(null,T[e]||function(){})}function Gt(e){En&&En(),En=e&&e.S()}function vi(e){var t=this,n=e.data,r=ea(n);r.value=n;var i=mn(function(){for(var a=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=gi(function(){var p=r.value.value;return p===0?0:p===!0?"":p||""}),d=gi(function(){return!Array.isArray(c.value)&&!Cr(c.value)}),u=Xe(function(){if(this.N=wi,d.value){var p=c.value;a.__v&&a.__v.__e&&a.__v.__e.nodeType===3&&(a.__v.__e.data=p)}}),h=t.__$u.d;return t.__$u.d=function(){u(),h.call(this)},[d,c]},[]),s=i[0],o=i[1];return s.value?o.peek():o.value}vi.displayName="ReactiveTextNode",Object.defineProperties(Z.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:vi},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Ze("__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 n,r=t.props;for(var i in r)if(i!=="children"){var s=r[i];s instanceof Z&&(n||(t.__np=n={}),n[i]=s,r[i]=s.peek())}}e(t)}),Ze("__r",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==Ae){Gt();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var s;return Xe(function(){s=this}),s.c=function(){r.__$f|=1,r.setState({})},s}())),Gt(n)}e(t)}),Ze("__e",function(e,t,n,r){typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Gt(),e(t,n,r)}),Ze("diffed",function(e,t){typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Gt();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var s=n.U;if(s)for(var o in s){var a=s[o];a!==void 0&&!(o in r)&&(a.d(),s[o]=void 0)}else s={},n.U=s;for(var l in r){var c=s[l],d=r[l];c===void 0?(c=Qo(n,l,d,i),s[l]=c):c.o(d,i)}}}e(t)});function Qo(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,s=Ie(n);return{o:function(o,a){s.value=o,r=a},d:Xe(function(){this.N=wi;var o=s.value.value;r[t]!==o&&(r[t]=o,i?e[t]=o:o?e.setAttribute(t,o):e.removeAttribute(t))})}}Ze("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var s=r[i];s&&s.d()}}}}else{var o=t.__c;if(o){var a=o.__$u;a&&(o.__$u=void 0,a.d())}}e(t)}),Ze("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),_e.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&n.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var s=2&this.__$f;if(!(r||s||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function ea(e,t){return Ot(function(){return Ie(e,t)})[0]}var ta=typeof requestAnimationFrame=="undefined"?setTimeout:function(e){var t=function(){clearTimeout(n),cancelAnimationFrame(r),e()},n=setTimeout(t,35),r=requestAnimationFrame(t)},na=function(e){queueMicrotask(function(){queueMicrotask(e)})};function ra(){ui(function(){for(var e;e=yi.shift();)Cn.call(e)})}function ia(){yi.push(this)===1&&(T.requestAnimationFrame||ta)(ra)}function sa(){ui(function(){for(var e;e=_i.shift();)Cn.call(e)})}function wi(){_i.push(this)===1&&(T.requestAnimationFrame||na)(sa)}function oa(e,t){var n=se(e);n.current=e,ve(function(){return Xe(function(){return this.N=ia,n.current()},t)},[])}function aa(e,t){e.indexOf(t)===-1&&e.push(t)}function xi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Le=(e,t,n)=>n>t?t:n<e?e:n;let Vn=()=>{};const Me={},ki=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function la(e){return typeof e=="object"&&e!==null}const Si=e=>/^0[^.\s]+$/u.test(e);function Pn(e){let t;return()=>(t===void 0&&(t=e()),t)}const Je=e=>e,ca=(e,t)=>n=>t(e(n)),Rn=(...e)=>e.reduce(ca),Fn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ti{constructor(){this.subscriptions=[]}add(t){return aa(this.subscriptions,t),()=>xi(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const we=e=>e*1e3,pe=e=>e/1e3;function Ai(e,t){return t?e*(1e3/t):0}const ua=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},Mi=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,da=1e-7,fa=12;function ha(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Mi(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>da&&++a<fa);return o}function bt(e,t,n,r){if(e===t&&n===r)return Je;const i=s=>ha(s,0,1,e,n);return s=>s===0||s===1?s:Mi(i(s),t,r)}const Ci=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ei=e=>t=>1-e(1-t),Vi=bt(.33,1.53,.69,.99),qn=Ei(Vi),Pi=Ci(qn),Ri=e=>(e*=2)<1?.5*qn(e):.5*(2-Math.pow(2,-10*(e-1))),$n=e=>1-Math.sin(Math.acos(e)),pa=Ei($n),Fi=Ci($n),ma=bt(.42,0,1,1),ga=bt(0,0,.58,1),qi=bt(.42,0,.58,1),$i=e=>Array.isArray(e)&&typeof e[0]!="number";function Ni(e,t){return $i(e)?e[ua(0,e.length,t)]:e}const Ii=e=>Array.isArray(e)&&typeof e[0]=="number",ba={linear:Je,easeIn:ma,easeInOut:qi,easeOut:ga,circIn:$n,circInOut:Fi,circOut:pa,backIn:qn,backInOut:Pi,backOut:Vi,anticipate:Ri},ya=e=>typeof e=="string",Oi=e=>{if(Ii(e)){Vn(e.length===4);const[t,n,r,i]=e;return bt(t,n,r,i)}else if(ya(e))return ba[e];return e},Kt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _a(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,u=!1,h=!1)=>{const y=h&&i?n:r;return u&&o.add(d),y.has(d)||y.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const va=40;function Li(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Kt.reduce((M,C)=>(M[C]=_a(s),M),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:p,postRender:y}=o,_=()=>{const M=Me.useManualTiming?i.timestamp:performance.now();n=!1,Me.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(M-i.timestamp,va),1)),i.timestamp=M,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),d.process(i),u.process(i),h.process(i),p.process(i),y.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(_))},g=()=>{n=!0,r=!0,i.isProcessing||e(_)};return{schedule:Kt.reduce((M,C)=>{const S=o[C];return M[C]=(E,I=!1,f=!1)=>(n||g(),S.schedule(E,I,f)),M},{}),cancel:M=>{for(let C=0;C<Kt.length;C++)o[Kt[C]].cancel(M)},state:i,steps:o}}const{schedule:Ce,cancel:Nn,state:Ht}=Li(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Je,!0);let Yt;function wa(){Yt=void 0}const ue={now:()=>(Yt===void 0&&ue.set(Ht.isProcessing||Me.useManualTiming?Ht.timestamp:performance.now()),Yt),set:e=>{Yt=e,queueMicrotask(wa)}},Di=e=>t=>typeof t=="string"&&t.startsWith(e),Bi=Di("--"),xa=Di("var(--"),In=e=>xa(e)?ka.test(e.split("/*")[0].trim()):!1,ka=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yt={...Qe,transform:e=>Le(0,1,e)},Xt={...Qe,default:1},_t=e=>Math.round(e*1e5)/1e5,On=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Sa(e){return e==null}const Ta=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ln=(e,t)=>n=>!!(typeof n=="string"&&Ta.test(n)&&n.startsWith(e)||t&&!Sa(n)&&Object.prototype.hasOwnProperty.call(n,t)),zi=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(On);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Aa=e=>Le(0,255,e),Dn={...Qe,transform:e=>Math.round(Aa(e))},De={test:Ln("rgb","red"),parse:zi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dn.transform(e)+", "+Dn.transform(t)+", "+Dn.transform(n)+", "+_t(yt.transform(r))+")"};function Ma(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Bn={test:Ln("#"),parse:Ma,transform:De.transform},vt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Re=vt("deg"),et=vt("%"),V=vt("px"),Ca=vt("vh"),Ea=vt("vw"),Wi={...et,parse:e=>et.parse(e)/100,transform:e=>et.transform(e*100)},tt={test:Ln("hsl","hue"),parse:zi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+et.transform(_t(t))+", "+et.transform(_t(n))+", "+_t(yt.transform(r))+")"},H={test:e=>De.test(e)||Bn.test(e)||tt.test(e),parse:e=>De.test(e)?De.parse(e):tt.test(e)?tt.parse(e):Bn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?De.transform(e):tt.transform(e),getAnimatableNone:e=>{const t=H.parse(e);return t.alpha=0,H.transform(t)}},Va=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pa(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(On))==null?void 0:t.length)||0)+(((n=e.match(Va))==null?void 0:n.length)||0)>0}const Ui="number",ji="color",Ra="var",Fa="var(",Gi="${}",qa=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(qa,l=>(H.test(l)?(r.color.push(s),i.push(ji),n.push(H.parse(l))):l.startsWith(Fa)?(r.var.push(s),i.push(Ra),n.push(l)):(r.number.push(s),i.push(Ui),n.push(parseFloat(l))),++s,Gi)).split(Gi);return{values:n,split:a,indexes:r,types:i}}function Ki(e){return wt(e).values}function Hi(e){const{split:t,types:n}=wt(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Ui?s+=_t(i[o]):a===ji?s+=H.transform(i[o]):s+=i[o]}return s}}const $a=e=>typeof e=="number"?0:H.test(e)?H.getAnimatableNone(e):e;function Na(e){const t=Ki(e);return Hi(e)(t.map($a))}const nt={test:Pa,parse:Ki,createTransformer:Hi,getAnimatableNone:Na};function zn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*6*n:n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function Ia({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=zn(l,a,e+.3333333333333333),s=zn(l,a,e),o=zn(l,a,e-.3333333333333333)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Zt(e,t){return n=>n>0?t:e}const xt=(e,t,n)=>e+(t-e)*n,Wn=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Oa=[Bn,De,tt],La=e=>Oa.find(t=>t.test(e));function Yi(e){const t=La(e);if(!t)return!1;let n=t.parse(e);return t===tt&&(n=Ia(n)),n}const Xi=(e,t)=>{const n=Yi(e),r=Yi(t);if(!n||!r)return Zt(e,t);const i={...n};return s=>(i.red=Wn(n.red,r.red,s),i.green=Wn(n.green,r.green,s),i.blue=Wn(n.blue,r.blue,s),i.alpha=xt(n.alpha,r.alpha,s),De.transform(i))},Un=new Set(["none","hidden"]);function Da(e,t){return Un.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ba(e,t){return n=>xt(e,t,n)}function jn(e){return typeof e=="number"?Ba:typeof e=="string"?In(e)?Zt:H.test(e)?Xi:Ua:Array.isArray(e)?Zi:typeof e=="object"?H.test(e)?Xi:za:Zt}function Zi(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>jn(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function za(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=jn(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Wa(e,t){var i;const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][r[o]],l=(i=e.values[a])!=null?i:0;n[s]=l,r[o]++}return n}const Ua=(e,t)=>{const n=nt.createTransformer(t),r=wt(e),i=wt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Un.has(e)&&!i.values.length||Un.has(t)&&!r.values.length?Da(e,t):Rn(Zi(Wa(r,i),i.values),n):Zt(e,t)};function Ji(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):jn(e)(e,t)}const ja=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ce.update(t,n),stop:()=>Nn(t),now:()=>Ht.isProcessing?Ht.timestamp:ue.now()}},Qi=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Jt=2e4;function Gn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Jt;)t+=n,r=e.next(t);return t>=Jt?1/0:t}function es(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Gn(r),Jt);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:pe(i)}}const Ga=5;function ts(e,t,n){const r=Math.max(t-Ga,0);return Ai(n-e(r),t-r)}const j={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Kn=.001;function Ka({duration:e=j.duration,bounce:t=j.bounce,velocity:n=j.velocity,mass:r=j.mass}){let i,s,o=1-t;o=Le(j.minDamping,j.maxDamping,o),e=Le(j.minDuration,j.maxDuration,pe(e)),o<1?(i=c=>{const d=c*o,u=d*e,h=d-n,p=Hn(c,o),y=Math.exp(-u);return Kn-h/p*y},s=c=>{const u=c*o*e,h=u*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-u),_=Hn(Math.pow(c,2),o);return(-i(c)+Kn>0?-1:1)*((h-p)*y)/_}):(i=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-Kn+d*u},s=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=Ya(i,s,a);if(e=we(e),isNaN(l))return{stiffness:j.stiffness,damping:j.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Ha=12;function Ya(e,t,n){let r=n;for(let i=1;i<Ha;i++)r=r-e(r)/t(r);return r}function Hn(e,t){return e*Math.sqrt(1-t*t)}const Xa=["duration","bounce"],Za=["stiffness","damping","mass"];function ns(e,t){return t.some(n=>e[n]!==void 0)}function Ja(e){let t={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...e};if(!ns(e,Za)&&ns(e,Xa))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Le(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:j.mass,stiffness:i,damping:s}}else{const n=Ka(e);t={...t,...n,mass:j.mass},t.isResolvedFromDuration=!0}return t}function kt(e=j.visualDuration,t=j.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:p}=Ja({...n,velocity:-pe(n.velocity||0)}),y=h||0,_=c/(2*Math.sqrt(l*d)),g=o-s,m=pe(Math.sqrt(l/d)),k=Math.abs(g)<5;r||(r=k?j.restSpeed.granular:j.restSpeed.default),i||(i=k?j.restDelta.granular:j.restDelta.default);let M;if(_<1){const S=Hn(m,_);M=E=>{const I=Math.exp(-_*m*E);return o-I*((y+_*m*g)/S*Math.sin(S*E)+g*Math.cos(S*E))}}else if(_===1)M=S=>o-Math.exp(-m*S)*(g+(y+m*g)*S);else{const S=m*Math.sqrt(_*_-1);M=E=>{const I=Math.exp(-_*m*E),f=Math.min(S*E,300);return o-I*((y+_*m*g)*Math.sinh(f)+S*g*Math.cosh(f))/S}}const C={calculatedDuration:p&&u||null,next:S=>{const E=M(S);if(p)a.done=S>=u;else{let I=S===0?y:0;_<1&&(I=S===0?we(y):ts(M,S,E));const f=Math.abs(I)<=r,A=Math.abs(o-E)<=i;a.done=f&&A}return a.value=a.done?o:E,a},toString:()=>{const S=Math.min(Gn(C),Jt),E=Qi(I=>C.next(S*I).value,S,30);return S+"ms "+E},toTransition:()=>{}};return C}kt.applyToOptions=e=>{const t=es(e,100,kt);return e.ease=t.ease,e.duration=we(t.duration),e.type="keyframes",e};function Yn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},p=f=>a!==void 0&&f<a||l!==void 0&&f>l,y=f=>a===void 0?l:l===void 0||Math.abs(a-f)<Math.abs(l-f)?a:l;let _=n*t;const g=u+_,m=o===void 0?g:o(g);m!==g&&(_=m-u);const k=f=>-_*Math.exp(-f/r),M=f=>m+k(f),C=f=>{const A=k(f),q=M(f);h.done=Math.abs(A)<=c,h.value=h.done?m:q};let S,E;const I=f=>{p(h.value)&&(S=f,E=kt({keyframes:[h.value,y(h.value)],velocity:ts(M,f,h.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return I(0),{calculatedDuration:null,next:f=>{let A=!1;return!E&&S===void 0&&(A=!0,C(f),I(f)),S!==void 0&&f>=S?E.next(f-S):(!A&&C(f),h)}}}function Qa(e,t,n){const r=[],i=n||Me.mix||Ji,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Je:t;a=Rn(l,a)}r.push(a)}return r}function el(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Vn(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Qa(t,r,i),l=a.length,c=d=>{if(o&&d<e[0])return t[0];let u=0;if(l>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const h=Fn(e[u],e[u+1],d);return a[u](h)};return n?d=>c(Le(e[0],e[s-1],d)):c}function rs(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Fn(0,t,r);e.push(xt(n,1,i))}}function is(e){const t=[0];return rs(t,e.length-1),t}function tl(e,t){return e.map(n=>n*t)}function nl(e,t){return e.map(()=>t||qi).splice(0,e.length-1)}function St({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=$i(r)?r.map(Oi):Oi(r),s={done:!1,value:t[0]},o=tl(n&&n.length===t.length?n:is(t),e),a=el(o,t,{ease:Array.isArray(i)?i:nl(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const rl=e=>e!==null;function Xn(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(rl),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const il={decay:Yn,inertia:Yn,tween:St,keyframes:St,spring:kt};function ss(e){typeof e.type=="string"&&(e.type=il[e.type])}class Zn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const sl=e=>e/100;class Jn extends Zn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ue.now()&&this.tick(ue.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ss(t);const{type:n=St,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||St;l!==St&&typeof a[0]!="number"&&(this.mixKeyframes=Rn(sl,Ji(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Gn(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:p,type:y,onUpdate:_,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let M=this.currentTime,C=r;if(u){const f=Math.min(this.currentTime,i)/a;let A=Math.floor(f),q=f%1;!q&&f>=1&&(q=1),q===1&&A--,A=Math.min(A,u+1),!!(A%2)&&(h==="reverse"?(q=1-q,p&&(q-=p/a)):h==="mirror"&&(C=o)),M=Le(0,1,q)*a}const S=k?{done:!1,value:d[0]}:C.next(M);s&&(S.value=s(S.value));let{done:E}=S;!k&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return I&&y!==Yn&&(S.value=Xn(d,this.options,g,this.speed)),_&&_(S.value),I&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return pe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(this.currentTime)}set time(t){var n;t=we(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ue.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=pe(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=ja,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n!=null?n:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ue.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function ol(e){var t;for(let n=1;n<e.length;n++)(t=e[n])!=null||(e[n]=e[n-1])}const Be=e=>e*180/Math.PI,Qn=e=>{const t=Be(Math.atan2(e[1],e[0]));return er(t)},al={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qn,rotateZ:Qn,skewX:e=>Be(Math.atan(e[1])),skewY:e=>Be(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},er=e=>(e=e%360,e<0&&(e+=360),e),os=Qn,as=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ls=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ll={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:as,scaleY:ls,scale:e=>(as(e)+ls(e))/2,rotateX:e=>er(Be(Math.atan2(e[6],e[5]))),rotateY:e=>er(Be(Math.atan2(-e[2],e[0]))),rotateZ:os,rotate:os,skewX:e=>Be(Math.atan(e[4])),skewY:e=>Be(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tr(e){return e.includes("scale")?1:0}function nr(e,t){if(!e||e==="none")return tr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ll,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=al,i=a}if(!i)return tr(t);const s=r[t],o=i[1].split(",").map(ul);return typeof s=="function"?s(o):o[s]}const cl=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nr(n,t)};function ul(e){return parseFloat(e.trim())}const rt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(rt),cs=e=>e===Qe||e===V,dl=new Set(["x","y","z"]),fl=rt.filter(e=>!dl.has(e));function hl(e){const t=[];return fl.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ze={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nr(t,"x"),y:(e,{transform:t})=>nr(t,"y")};ze.translateX=ze.x,ze.translateY=ze.y;const We=new Set;let rr=!1,ir=!1,sr=!1;function us(){if(ir){const e=Array.from(We).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=hl(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ir=!1,rr=!1,We.forEach(e=>e.complete(sr)),We.clear()}function ds(){We.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ir=!0)})}function pl(){sr=!0,ds(),us(),sr=!1}class or{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(We.add(this),rr||(rr=!0,Ce.read(ds),Ce.resolveKeyframes(us))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}ol(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),We.delete(this)}cancel(){this.state==="scheduled"&&(We.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ml=e=>e.startsWith("--");function gl(e,t,n){ml(t)?e.style.setProperty(t,n):e.style[t]=n}const bl=Pn(()=>window.ScrollTimeline!==void 0),yl={};function _l(e,t){const n=Pn(e);return()=>{var r;return(r=yl[t])!=null?r:n()}}const fs=_l(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tt([0,.65,.55,1]),circOut:Tt([.55,0,1,.45]),backIn:Tt([.31,.01,.66,-.59]),backOut:Tt([.33,1.53,.69,.99])};function ps(e,t){if(e)return typeof e=="function"?fs()?Qi(e,t):"ease-out":Ii(e)?Tt(e):Array.isArray(e)?e.map(n=>ps(n,t)||hs.easeOut):hs[e]}function vl(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const u=ps(a,i);Array.isArray(u)&&(d.easing=u);const h={delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function ar(e){return typeof e=="function"&&"applyToOptions"in e}function wl({type:e,...t}){var n,r;return ar(e)&&fs()?e.applyToOptions(t):((n=t.duration)!=null||(t.duration=300),(r=t.ease)!=null||(t.ease="easeOut"),t)}class xl extends Zn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Vn(typeof t.type!="string");const c=wl(t);this.animation=vl(n,r,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Xn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):gl(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return pe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=we(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&bl()?(this.animation.timeline=t,Je):n(this)}}const ms={anticipate:Ri,backInOut:Pi,circInOut:Fi};function kl(e){return e in ms}function Sl(e){typeof e.ease=="string"&&kl(e.ease)&&(e.ease=ms[e.ease])}const gs=10;class Tl extends xl{constructor(t){Sl(t),ss(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){var c;const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Jn({...o,autoplay:!1}),l=we((c=this.finishedTime)!=null?c:this.time);n.setWithVelocity(a.sample(l-gs).value,a.sample(l).value,gs),a.stop()}}const bs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nt.test(e)||e==="0")&&!e.startsWith("url("));function Al(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ml(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=bs(i,t),a=bs(s,t);return!o||!a?!1:Al(e)||(n==="spring"||ar(n))&&r}function lr(e){e.duration=0,e.type="keyframes"}const Cl=new Set(["opacity","clipPath","filter","transform"]),El=Pn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Vl(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return El()&&n&&Cl.has(n)&&(n!=="transform"||!c)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const Pl=40;class Rl extends Zn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:d,...u}){var y;super(),this.stop=()=>{var _,g;this._animation&&(this._animation.stop(),(_=this.stopTimeline)==null||_.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=ue.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:c,element:d,...u},p=(d==null?void 0:d.KeyframeResolver)||or;this.keyframeResolver=new p(a,(_,g,m)=>this.onKeyframesResolved(_,g,h,!m),l,c,d),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=ue.now(),Ml(t,s,o,a)||((Me.instantAnimations||!l)&&(d==null||d(Xn(t,r,n))),t[0]=t[t.length-1],lr(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Pl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!c&&Vl(h)?new Tl({...h,element:h.motionValue.owner.current}):new Jn(h);p.finished.then(()=>this.notifyFinished()).catch(Je),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),pl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class Fl{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return ys(this.animations,"duration")}get iterationDuration(){return ys(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function ys(e,t){let n=0;for(let r=0;r<e.length;r++){const i=e[r][t];i!==null&&i>n&&(n=i)}return n}class ql extends Fl{then(t,n){return this.finished.finally(t).then(()=>{})}}const $l=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Nl(e){const t=$l.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n!=null?n:r}`,i]}function _s(e,t,n=1){const[r,i]=Nl(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return ki(o)?parseFloat(o):o}return In(i)?_s(i,t,n+1):i}function vs(e,t){var n,r;return(r=(n=e==null?void 0:e[t])!=null?n:e==null?void 0:e.default)!=null?r:e}const ws=new Set(["width","height","top","left","right","bottom",...rt]),Il={test:e=>e==="auto",parse:e=>e},xs=e=>t=>t.test(e),ks=[Qe,V,et,Re,Ea,Ca,Il],Ss=e=>ks.find(xs(e));function Ol(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Si(e):!0}const Ll=new Set(["brightness","contrast","saturate","opacity"]);function Dl(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(On)||[];if(!r)return e;const i=n.replace(r,"");let s=Ll.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Bl=/\b([a-z-]*)\(.*?\)/gu,cr={...nt,getAnimatableNone:e=>{const t=e.match(Bl);return t?t.map(Dl).join(" "):e}},Ts={...Qe,transform:Math.round},ur={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:Re,rotateX:Re,rotateY:Re,rotateZ:Re,scale:Xt,scaleX:Xt,scaleY:Xt,scaleZ:Xt,skew:Re,skewX:Re,skewY:Re,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:yt,originX:Wi,originY:Wi,originZ:V},zIndex:Ts,fillOpacity:yt,strokeOpacity:yt,numOctaves:Ts},zl={...ur,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:cr,WebkitFilter:cr},As=e=>zl[e];function Ms(e,t){let n=As(e);return n!==cr&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Wl=new Set(["auto","none","0"]);function Ul(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Wl.has(s)&&wt(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Ms(n,i)}class jl extends or{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),In(c))){const d=_s(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!ws.has(r)||t.length!==2)return;const[i,s]=t,o=Ss(i),a=Ss(s);if(o!==a)if(cs(o)&&cs(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else ze[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Ol(t[i]))&&r.push(i);r.length&&Ul(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ze[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=ze[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Gl(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=(r=n==null?void 0:n[e])!=null?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const Cs=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Es=30,Kl=e=>!isNaN(parseFloat(e));class Hl{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=ue.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ue.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Kl(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ti);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ue.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Es)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Es);return Ai(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function At(e,t){return new Hl(e,t)}const{schedule:Yl}=Li(queueMicrotask,!1);function Vs(e){return la(e)&&"ownerSVGElement"in e}function Xl(e){return Vs(e)&&e.tagName==="svg"}const re=e=>!!(e&&e.getVelocity),Zl=[...ks,H,nt],Jl=e=>Zl.find(xs(e));function dr(e){return typeof e=="object"&&!Array.isArray(e)}function Ps(e,t,n,r){return typeof e=="string"&&dr(t)?Gl(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Ql(e,t,n){return e*(t+1)}function Rs(e,t,n,r){var i;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):(i=r.get(t))!=null?i:e}function ec(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];i.at>t&&i.at<n&&(xi(e,i),r--)}}function tc(e,t,n,r,i,s){ec(e,i,s);for(let o=0;o<t.length;o++)e.push({value:t[o],at:xt(i,s,r[o]),easing:Ni(n,o)})}function nc(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function rc(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const ic="easeInOut";function sc(e,{defaultTransition:t={},...n}={},r,i){const s=t.duration||.3,o=new Map,a=new Map,l={},c=new Map;let d=0,u=0,h=0;for(let p=0;p<e.length;p++){const y=e[p];if(typeof y=="string"){c.set(y,u);continue}else if(!Array.isArray(y)){c.set(y.name,Rs(u,y.at,d,c));continue}let[_,g,m={}]=y;m.at!==void 0&&(u=Rs(u,m.at,d,c));let k=0;const M=(C,S,E,I=0,f=0)=>{const A=oc(C),{delay:q=0,times:R=is(A),type:W="keyframes",repeat:J,repeatType:fe,repeatDelay:he=0,...Q}=S;let{ease:Y=t.ease||"easeOut",duration:v}=S;const ie=typeof q=="function"?q(I,f):q,ee=A.length,ae=ar(W)?W:i==null?void 0:i[W||"keyframes"];if(ee<=2&&ae){let te=100;if(ee===2&&cc(A)){const ke=A[1]-A[0];te=Math.abs(ke)}const ce={...Q};v!==void 0&&(ce.duration=we(v));const B=es(ce,te,ae);Y=B.ease,v=B.duration}v!=null||(v=s);const ye=u+ie;R.length===1&&R[0]===0&&(R[1]=1);const O=R.length-A.length;if(O>0&&rs(R,O),A.length===1&&A.unshift(null),J){v=Ql(v,J);const te=[...A],ce=[...R];Y=Array.isArray(Y)?[...Y]:[Y];const B=[...Y];for(let ke=0;ke<J;ke++){A.push(...te);for(let Se=0;Se<te.length;Se++)R.push(ce[Se]+(ke+1)),Y.push(Se===0?"linear":Ni(B,Se-1))}nc(R,J)}const G=ye+v;tc(E,A,Y,R,ye,G),k=Math.max(ie+v,k),h=Math.max(G,h)};if(re(_)){const C=Fs(_,a);M(g,m,qs("default",C))}else{const C=Ps(_,g,r,l),S=C.length;for(let E=0;E<S;E++){g=g,m=m;const I=C[E],f=Fs(I,a);for(const A in g)M(g[A],ac(m,A),qs(A,f),E,S)}}d=u,u+=k}return a.forEach((p,y)=>{for(const _ in p){const g=p[_];g.sort(rc);const m=[],k=[],M=[];for(let S=0;S<g.length;S++){const{at:E,value:I,easing:f}=g[S];m.push(I),k.push(Fn(0,h,E)),M.push(f||"easeOut")}k[0]!==0&&(k.unshift(0),m.unshift(m[0]),M.unshift(ic)),k[k.length-1]!==1&&(k.push(1),m.push(null)),o.has(y)||o.set(y,{keyframes:{},transition:{}});const C=o.get(y);C.keyframes[_]=m,C.transition[_]={...t,duration:h,ease:M,times:k,...n}}}),o}function Fs(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function qs(e,t){return t[e]||(t[e]=[]),t[e]}function oc(e){return Array.isArray(e)?e:[e]}function ac(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const lc=e=>typeof e=="number",cc=e=>e.every(lc),Mt=new WeakMap,uc=e=>Array.isArray(e);function $s(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ns(e,t,n,r){if(typeof t=="function"){const[i,s]=$s(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=$s(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function dc(e,t,n){const r=e.getProps();return Ns(r,t,r.custom,e)}function fc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,At(n))}function hc(e){return uc(e)?e[e.length-1]||0:e}function pc(e,t){const n=dc(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=hc(s[o]);fc(e,o,a)}}function mc(e){return!!(re(e)&&e.add)}function gc(e,t){const n=e.getValue("willChange");if(mc(n))return n.add(t);if(!n&&Me.WillChange){const r=new Me.WillChange("auto");e.addValue("willChange",r),r.add(t)}}const fr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bc="data-"+fr("framerAppearId");function yc(e){return e.props[bc]}const _c=e=>e!==null;function vc(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_c),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const wc={type:"spring",stiffness:500,damping:25,restSpeed:10},xc=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kc={type:"keyframes",duration:.8},Sc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tc=(e,{keyframes:t})=>t.length>2?kc:it.has(e)?e.startsWith("scale")?xc(t[1]):wc:Sc;function Ac({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const Is=(e,t,n,r={},i,s)=>o=>{const a=vs(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-we(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Ac(a)||Object.assign(d,Tc(e,d)),d.duration&&(d.duration=we(d.duration)),d.repeatDelay&&(d.repeatDelay=we(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(lr(d),d.delay===0&&(u=!0)),(Me.instantAnimations||Me.skipAnimations)&&(u=!0,lr(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!s&&t.get()!==void 0){const h=vc(d.keyframes,a);if(h!==void 0){Ce.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Jn(d):new Rl(d)};function Mc({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Cc(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var d;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const h=e.getValue(u,(d=e.latestValues[u])!=null?d:null),p=a[u];if(p===void 0||c&&Mc(c,u))continue;const y={delay:n,...vs(s||{},u)},_=h.get();if(_!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===_&&!y.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const k=yc(e);if(k){const M=window.MotionHandoffAnimation(k,u,Ce);M!==null&&(y.startTime=M,g=!0)}}gc(e,u),h.start(Is(u,h,p,e.shouldReduceMotion&&ws.has(u)?{type:!1}:y,e,g));const m=h.animation;m&&l.push(m)}return o&&Promise.all(l).then(()=>{Ce.update(()=>{o&&pc(e,o)})}),l}function Ec({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vc(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Pc(e,t){return Ec(Vc(e.getBoundingClientRect(),t))}const Os={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hr={};for(const e in Os)hr[e]={isEnabled:t=>Os[e].some(n=>!!t[n])};const Ls=()=>({min:0,max:0}),pr=()=>({x:Ls(),y:Ls()}),Rc=typeof window!="undefined",mr={current:null},Ds={current:!1};function Fc(){if(Ds.current=!0,!!Rc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mr.current=e.matches;e.addEventListener("change",t),t()}else mr.current=!1}function qc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $c(e){return typeof e=="string"||Array.isArray(e)}const Nc=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Bs(e){return qc(e.animate)||Nc.some(t=>$c(e[t]))}function Ic(e){return!!(Bs(e)||e.variants)}function Oc(e,t,n){for(const r in t){const i=t[r],s=n[r];if(re(i))e.addValue(r,i);else if(re(s))e.addValue(r,At(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,At(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const zs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ws{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=or,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ue.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Ce.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Bs(n),this.isVariantNode=Ic(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in u){const p=u[h];l[h]!==void 0&&re(p)&&p.set(l[h])}}mount(t){var n;this.current=t,Mt.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),Ds.current||Fc(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mr.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Nn(this.notifyUpdate),Nn(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){var n;this.children.add(t),(n=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=it.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in hr){const n=hr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<zs.length;r++){const i=zs[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Oc(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=At(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!=null?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(ki(r)||Si(r))?r=parseFloat(r):!Jl(r)&&nt.test(n)&&(r=Ms(t,n)),this.setBaseTarget(t,re(r)?r.get():r)),re(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ns(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!re(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ti),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Yl.render(this.render)}}class Us extends Ws{constructor(){super(...arguments),this.KeyframeResolver=jl}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;re(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Lc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dc=rt.length;function Bc(e,t,n){let r="",i=!0;for(let s=0;s<Dc;s++){const o=rt[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Cs(a,ur[o]);if(!l){i=!1;const d=Lc[o]||o;r+=`${d}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function js(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(it.has(l)){o=!0;continue}else if(Bi(l)){i[l]=c;continue}else{const d=Cs(c,ur[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=Bc(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${c} ${d}`}}function Gs(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}const zc={};function Wc(e,{layout:t,layoutId:n}){return it.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zc[e]||e==="opacity")}function Ks(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(re(r[o])||t.style&&re(t.style[o])||Wc(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function Uc(e){return window.getComputedStyle(e)}class jc extends Us{constructor(){super(...arguments),this.type="html",this.renderInstance=Gs}readValueFromInstance(t,n){var r;if(it.has(n))return(r=this.projection)!=null&&r.isProjecting?tr(n):cl(t,n);{const i=Uc(t),s=(Bi(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Pc(t,n)}build(t,n,r){js(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ks(t,n,r)}}function Gc(e,t){return e in t}class Kc extends Ws{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Gc(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return pr()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const Hc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yc={offset:"strokeDashoffset",array:"strokeDasharray"};function Xc(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Hc:Yc;e[s.offset]=V.transform(-r);const o=V.transform(t),a=V.transform(n);e[s.array]=`${o} ${a}`}function Zc(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,c,d){var p,y;if(js(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:h}=e;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=(p=u.transformOrigin)!=null?p:"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=(y=d==null?void 0:d.transformBox)!=null?y:"fill-box",delete u.transformBox),t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),r!==void 0&&(u.scale=r),i!==void 0&&Xc(u,i,s,o,!1)}const Hs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Jc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Qc(e,t,n,r){Gs(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Hs.has(i)?i:fr(i),t.attrs[i])}function eu(e,t,n){const r=Ks(e,t,n);for(const i in e)if(re(e[i])||re(t[i])){const s=rt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class tu extends Us{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pr}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(it.has(n)){const r=As(n);return r&&r.default||0}return n=Hs.has(n)?n:fr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return eu(t,n,r)}build(t,n,r){Zc(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Qc(t,n,r,i)}mount(t){this.isSVGTag=Jc(t.tagName),super.mount(t)}}function nu(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Vs(e)&&!Xl(e)?new tu(t):new jc(t);n.mount(e),Mt.set(e,n)}function ru(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Kc(t);n.mount(e),Mt.set(e,n)}function iu(e,t,n){const r=re(e)?e:At(e);return r.start(Is("",r,t,n)),r.animation}function su(e,t){return re(e)||typeof e=="number"||typeof e=="string"&&!dr(t)}function Ys(e,t,n,r){const i=[];if(su(e,t))i.push(iu(e,dr(t)&&t.default||t,n&&(n.default||n)));else{const s=Ps(e,t,r),o=s.length;for(let a=0;a<o;a++){const l=s[a],c=l instanceof Element?nu:ru;Mt.has(l)||c(l);const d=Mt.get(l),u={...n};"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(a,o)),i.push(...Cc(d,{...t,transition:u},{}))}}return i}function ou(e,t,n){const r=[];return sc(e,t,n,{spring:kt}).forEach(({keyframes:s,transition:o},a)=>{r.push(...Ys(a,s,o))}),r}function au(e){return Array.isArray(e)&&e.some(Array.isArray)}function lu(e){function t(n,r,i){let s=[],o;if(au(n))s=ou(n,r,e);else{const{onComplete:l,...c}=i||{};typeof l=="function"&&(o=l),s=Ys(n,r,c,e)}const a=new ql(s);return o&&a.finished.then(o),a}return t}const xe=lu();function Xs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Xs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cu(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xs(e))&&(r&&(r+=" "),r+=t);return r}const gr="-",uu=e=>{const t=fu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(gr);return a[0]===""&&a.length!==1&&a.shift(),Zs(a,t)||du(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Zs=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Zs(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(gr);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Js=/^\[(.+)\]$/,du=e=>{if(Js.test(e)){const t=Js.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fu=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)br(n[i],r,i,t);return r},br=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Qs(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(hu(i)){br(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{br(o,Qs(t,s),n,r)})})},Qs=(e,t)=>{let n=e;return t.split(gr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hu=e=>e.isThemeGetter,pu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},yr="!",_r=":",mu=_r.length,gu=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,a=0,l=0,c;for(let y=0;y<i.length;y++){let _=i[y];if(o===0&&a===0){if(_===_r){s.push(i.slice(l,y)),l=y+mu;continue}if(_==="/"){c=y;continue}}_==="["?o++:_==="]"?o--:_==="("?a++:_===")"&&a--}const d=s.length===0?i:i.substring(l),u=bu(d),h=u!==d,p=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:p}};if(t){const i=t+_r,s=r;r=o=>o.startsWith(i)?s(o.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},bu=e=>e.endsWith(yr)?e.substring(0,e.length-1):e.startsWith(yr)?e.substring(1):e,yu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(o=>{o[0]==="["||t[o]?(i.push(...s.sort(),o),s=[]):s.push(o)}),i.push(...s.sort()),i}},_u=e=>({cache:pu(e.cacheSize),parseClassName:gu(e),sortModifiers:yu(e),...uu(e)}),vu=/\s+/,wu=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],a=e.trim().split(vu);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:h,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:_}=n(d);if(u){l=d+(l.length>0?" "+l:l);continue}let g=!!_,m=r(g?y.substring(0,_):y);if(!m){if(!g){l=d+(l.length>0?" "+l:l);continue}if(m=r(y),!m){l=d+(l.length>0?" "+l:l);continue}g=!1}const k=s(h).join(":"),M=p?k+yr:k,C=M+m;if(o.includes(C))continue;o.push(C);const S=i(m,g);for(let E=0;E<S.length;++E){const I=S[E];o.push(M+I)}l=d+(l.length>0?" "+l:l)}return l};function xu(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=eo(t))&&(r&&(r+=" "),r+=n);return r}const eo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=eo(e[r]))&&(n&&(n+=" "),n+=t);return n};function ku(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((d,u)=>u(d),e());return n=_u(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=wu(l,n);return i(l,d),d}return function(){return s(xu.apply(null,arguments))}}const X=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},to=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,no=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Su=/^\d+\/\d+$/,Tu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Au=/\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$/,Mu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Eu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,st=e=>Su.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>!!e&&Number.isInteger(Number(e)),vr=e=>e.endsWith("%")&&F(e.slice(0,-1)),Ee=e=>Tu.test(e),Vu=()=>!0,Pu=e=>Au.test(e)&&!Mu.test(e),ro=()=>!1,Ru=e=>Cu.test(e),Fu=e=>Eu.test(e),qu=e=>!w(e)&&!x(e),$u=e=>ot(e,lo,ro),w=e=>to.test(e),Ue=e=>ot(e,co,Pu),wr=e=>ot(e,Du,F),io=e=>ot(e,oo,ro),Nu=e=>ot(e,ao,Fu),Qt=e=>ot(e,uo,Ru),x=e=>no.test(e),Ct=e=>at(e,co),Iu=e=>at(e,Bu),so=e=>at(e,oo),Ou=e=>at(e,lo),Lu=e=>at(e,ao),en=e=>at(e,uo,!0),ot=(e,t,n)=>{const r=to.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},at=(e,t,n=!1)=>{const r=no.exec(e);return r?r[1]?t(r[1]):n:!1},oo=e=>e==="position"||e==="percentage",ao=e=>e==="image"||e==="url",lo=e=>e==="length"||e==="size"||e==="bg-size",co=e=>e==="length",Du=e=>e==="number",Bu=e=>e==="family-name",uo=e=>e==="shadow",zu=ku(()=>{const e=X("color"),t=X("font"),n=X("text"),r=X("font-weight"),i=X("tracking"),s=X("leading"),o=X("breakpoint"),a=X("container"),l=X("spacing"),c=X("radius"),d=X("shadow"),u=X("inset-shadow"),h=X("text-shadow"),p=X("drop-shadow"),y=X("blur"),_=X("perspective"),g=X("aspect"),m=X("ease"),k=X("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),x,w],E=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],f=()=>[x,w,l],A=()=>[st,"full","auto",...f()],q=()=>[Fe,"none","subgrid",x,w],R=()=>["auto",{span:["full",Fe,x,w]},Fe,x,w],W=()=>[Fe,"auto",x,w],J=()=>["auto","min","max","fr",x,w],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...f()],Y=()=>[st,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],v=()=>[e,x,w],ie=()=>[...C(),so,io,{position:[x,w]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",Ou,$u,{size:[x,w]}],ye=()=>[vr,Ct,Ue],O=()=>["","none","full",c,x,w],G=()=>["",F,Ct,Ue],te=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[F,vr,so,io],ke=()=>["","none",y,x,w],Se=()=>["none",F,x,w],sn=()=>["none",F,x,w],Mr=()=>[F,x,w],on=()=>[st,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[Vu],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[qu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",F],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",st,w,x,g]}],container:["container"],columns:[{columns:[F,w,x,a]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:S()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[Fe,"auto",x,w]}],basis:[{basis:[st,"full","auto",a,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,st,"auto","initial","none",w]}],grow:[{grow:["",F,x,w]}],shrink:[{shrink:["",F,x,w]}],order:[{order:[Fe,"first","last","none",x,w]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[a,"screen",...Y()]}],"min-w":[{"min-w":[a,"screen","none",...Y()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",n,Ct,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,x,wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vr,w]}],"font-family":[{font:[Iu,w,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:[i,x,w]}],"line-clamp":[{"line-clamp":[F,"none",x,wr]}],leading:[{leading:[s,...f()]}],"list-image":[{"list-image":["none",x,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",x,w]}],"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:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",x,Ue]}],"text-decoration-color":[{decoration:v()}],"underline-offset":[{"underline-offset":[F,"auto",x,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x,w]}],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",x,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fe,x,w],radial:["",x,w],conic:[Fe,x,w]},Lu,Nu]}],"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:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"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:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,x,w]}],"outline-w":[{outline:["",F,Ct,Ue]}],"outline-color":[{outline:v()}],shadow:[{shadow:["","none",d,en,Qt]}],"shadow-color":[{shadow:v()}],"inset-shadow":[{"inset-shadow":["none",u,en,Qt]}],"inset-shadow-color":[{"inset-shadow":v()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:v()}],"ring-offset-w":[{"ring-offset":[F,Ue]}],"ring-offset-color":[{"ring-offset":v()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":v()}],"text-shadow":[{"text-shadow":["none",h,en,Qt]}],"text-shadow-color":[{"text-shadow":v()}],opacity:[{opacity:[F,x,w]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"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":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"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":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"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":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"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":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"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":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"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":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":v()}],"mask-image-y-to-color":[{"mask-y-to":v()}],"mask-image-radial":[{"mask-radial":[x,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"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:ie()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",x,w]}],filter:[{filter:["","none",x,w]}],blur:[{blur:ke()}],brightness:[{brightness:[F,x,w]}],contrast:[{contrast:[F,x,w]}],"drop-shadow":[{"drop-shadow":["","none",p,en,Qt]}],"drop-shadow-color":[{"drop-shadow":v()}],grayscale:[{grayscale:["",F,x,w]}],"hue-rotate":[{"hue-rotate":[F,x,w]}],invert:[{invert:["",F,x,w]}],saturate:[{saturate:[F,x,w]}],sepia:[{sepia:["",F,x,w]}],"backdrop-filter":[{"backdrop-filter":["","none",x,w]}],"backdrop-blur":[{"backdrop-blur":ke()}],"backdrop-brightness":[{"backdrop-brightness":[F,x,w]}],"backdrop-contrast":[{"backdrop-contrast":[F,x,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,x,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,x,w]}],"backdrop-invert":[{"backdrop-invert":["",F,x,w]}],"backdrop-opacity":[{"backdrop-opacity":[F,x,w]}],"backdrop-saturate":[{"backdrop-saturate":[F,x,w]}],"backdrop-sepia":[{"backdrop-sepia":["",F,x,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",x,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",x,w]}],ease:[{ease:["linear","initial",m,x,w]}],delay:[{delay:[F,x,w]}],animate:[{animate:["none",k,x,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,x,w]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:sn()}],"scale-x":[{"scale-x":sn()}],"scale-y":[{"scale-y":sn()}],"scale-z":[{"scale-z":sn()}],"scale-3d":["scale-3d"],skew:[{skew:Mr()}],"skew-x":[{"skew-x":Mr()}],"skew-y":[{"skew-y":Mr()}],transform:[{transform:[x,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:on()}],"translate-x":[{"translate-x":on()}],"translate-y":[{"translate-y":on()}],"translate-z":[{"translate-z":on()}],"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",x,w]}],"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":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"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",x,w]}],fill:[{fill:["none",...v()]}],"stroke-w":[{stroke:[F,Ct,Ue,wr]}],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 xr(...e){return zu(cu(e))}function Wu(e,t){for(var n in t)e[n]=t[n];return e}function fo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function ho(e,t){this.props=e,this.context=t}(ho.prototype=new _e).isPureReactComponent=!0,ho.prototype.shouldComponentUpdate=function(e,t){return fo(this.props,e)||fo(this.state,t)};var po=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),po&&po(e)};var Uu=T.__e;T.__e=function(e,t,n,r){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Uu(e,t,n,r)};var mo=T.unmount;function go(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Wu({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return go(r,t,n)})),e}function bo(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return bo(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function kr(){this.__u=0,this.o=null,this.__b=null}function yo(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tn(){this.i=null,this.l=null}T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),mo&&mo(e)},(kr.prototype=new _e).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=yo(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=bo(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},kr.prototype.componentWillUnmount=function(){this.o=[]},kr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=go(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&mt(Ae,null,e.fallback);return i&&(i.__u&=-33),[mt(Ae,null,t.__a?null:e.children),i]};var _o=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ju(e){return this.getChildContext=function(){return e.context},e.children}function Gu(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Ke(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(i,s){this.childNodes.push(i),t.h.insertBefore(i,s)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}Ke(mt(ju,{context:t.context},e.__v),t.v)}function Ku(e,t){var n=mt(Gu,{__v:e,h:t});return n.containerInfo=t,n}(tn.prototype=new _e).__a=function(e){var t=this,n=yo(t.__v),r=t.l.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),_o(t,e,r)):i()};n?n(s):s()}},tn.prototype.render=function(e){this.i=null,this.l=new Map;var t=qt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},tn.prototype.componentDidUpdate=tn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){_o(e,n,t)})};var Hu=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Yu=/^(?: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]/,Xu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zu=/[A-Z0-9]/g,Ju=typeof document!="undefined",Qu=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var vo=T.event;function ed(){}function td(){return this.cancelBubble}function nd(){return this.defaultPrevented}T.event=function(e){return vo&&(e=vo(e)),e.persist=ed,e.isPropagationStopped=td,e.isDefaultPrevented=nd,e.nativeEvent=e};var rd={enumerable:!1,configurable:!0,get:function(){return this.class}},wo=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},s=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||Ju&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Qu(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":Xu.test(o)&&(o=l):l=o="oninput":s&&Yu.test(o)?o=o.replace(Zu,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[o=l]&&(o="oninputCapture"),i[o]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=qt(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=qt(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",rd)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Hu,wo&&wo(e)};var xo=T.__r;T.__r=function(e){xo&&xo(e),e.__c};var ko=T.diffed;T.diffed=function(e){ko&&ko(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};const lt=Ie(!1),id=Ie(null);function sd({workspaceSlug:e,theme:t}){const n=se(null),r=se(null),i=se(null),s=se(null),[o,a]=Ot(null),l=se(null),c=se(!1);ve(()=>{const g=document.createElement("div");g.id="squelette-banner-modal-portal",g.style.position="fixed",g.style.inset="0",g.style.zIndex="999999",g.style.pointerEvents="none";const m=g.attachShadow({mode:"open"});return Bt(m,ci),document.body.appendChild(g),i.current=g,a(m),console.log("[BannerModal] Shadow root created"),()=>{i.current&&(document.body.removeChild(i.current),i.current=null,a(null))}},[]);const d=()=>{var g;if(!(!((g=s.current)!=null&&g.contentWindow)||!l.current))try{const m=new URL(vn).origin;s.current.contentWindow.postMessage({type:"squelette-identify",payload:l.current},m)}catch(m){console.warn("[BannerModal] Failed to send identity to iframe:",m)}};ve(()=>{const g=li();g&&(l.current=g);const m=M=>{var S;const C=M;l.current=(S=C.detail)!=null?S:null,c.current?d():console.info("[BannerModal] Iframe not ready yet, identity will be sent when ready")},k=M=>{var C;((C=M.data)==null?void 0:C.type)==="squelette-iframe-ready"&&(c.current=!0,l.current?d():console.log("[BannerModal] Iframe ready but no identity yet"))};return window.addEventListener("squelette:identity",m),window.addEventListener("message",k),()=>{window.removeEventListener("squelette:identity",m),window.removeEventListener("message",k)}},[]);const u=()=>{console.log("[BannerModal] Iframe onLoad event fired")};ve(()=>{if(!(!n.current||!r.current||!o)&<.value){const g=n.current,m=r.current;xe(g,{opacity:1},{duration:.5}),xe(m,{y:0},{type:"spring",mass:.2,damping:20,stiffness:75}),xe(m,{opacity:1},{duration:.2})}},[lt.value,o]);const h=async()=>{if(!n.current||!r.current){lt.value=!1;return}const g=n.current,m=r.current;await Promise.all([xe(g,{opacity:0},{duration:.2}).finished,xe(m,{opacity:0,y:-70},{duration:.2,ease:[.16,1,.3,1]}).finished]),lt.value=!1},p=g=>{g.target===n.current&&h()};if(!o)return null;const y=mn(()=>P("iframe",{ref:s,className:"w-full h-full border-none outline-none border border-red-400",src:`https://squelette.app/widget/${e}/changelog/last?theme=${t}`,onLoad:u}),[]),_=P("div",{ref:n,className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center",style:{pointerEvents:lt.value?"auto":"none",opacity:0},onClick:p,children:P("div",{ref:r,className:"bg-white rounded-3xl drop-shadow-xl max-w-lg w-full mx-4 p-0 border-none outline-none relative overflow-hidden",style:{opacity:0,transform:"translateY(-70px)",height:600},children:y})});return Ku(_,o)}const So=()=>{try{return localStorage.getItem("squelette-enable-cache")!=="false"}catch{return!0}},od=5*60*1e3,To="squelette_banner_last_ticket",me=Ie(null),nn=Ie(!1),Sr=Ie(!0);function ad({workspaceSlug:e="squelette",theme:t}){const n=se(null),r=se(null);ve(()=>{fd(e).then(o=>{if(!o)return;const a=localStorage.getItem(To);(!So()||!a||new Date(o.created_at)>new Date(a))&&(me.value=o,Sr.value=!0)})},[e]),ve(()=>{if(!n.current||!me.value)return;const o=setTimeout(()=>{n.current&&xe(n.current,{y:0,opacity:1},{ease:ud,duration:1,onComplete:()=>{nn.value=!0}})},500);return()=>clearTimeout(o)},[me.value]),ve(()=>{if(!n.current||!r.current)return;let o=null;const a=n.current,l=r.current,c=()=>{if(!l)return null;o=xe(l,{rotate:[0,-15,15,-15,15,0]},{duration:.6,repeat:1/0,repeatType:"reverse"})},d=()=>{o==null||o.stop()};return a.addEventListener("mouseenter",c),a.addEventListener("mouseleave",d),()=>{a.removeEventListener("mouseleave",d),a.removeEventListener("mouseenter",c)}},[me.value]);const i=async()=>{!me.value||!n.current||(nn.value=!1,await new Promise(o=>setTimeout(o,400)),await xe(n.current,{y:"-100%",opacity:0},{duration:.5,ease:[.16,1,.3,1]}).finished,localStorage.setItem(To,me.value.created_at),Sr.value=!1)},s=()=>{me.value&&(id.value=me.value,lt.value=!0,i())};return me.value?P(Ae,{children:[Sr.value&&P("div",{className:"flex items-center justify-center w-full h-[64px] overflow-visible",children:P("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:n,onClick:s,children:[P("div",{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:[P("span",{children:"Nouveau"}),P("div",{ref:r,className:"inline",children:P(cd,{className:"size-4"})})]}),P(ld,{onClose:i})]})}),P(sd,{workspaceSlug:e,theme:t})]}):null}function ld({onClose:e}){const t=se(null),n=se(null);oa(()=>{if(!(!t.current||!n.current))if(nn.value){const i=n.current.scrollWidth;xe(t.current,{width:i+20,paddingLeft:"0.5rem",paddingRight:"0.5rem"},{duration:1.2,ease:[.16,1,.3,1]})}else xe(t.current,{width:0,paddingLeft:0,paddingRight:0},{duration:.3,ease:[.16,1,.3,1]})});const r=i=>{i.stopPropagation(),e()};return me.value?P("div",{className:"overflow-hidden min-w-0 items-baseline box-border inline-flex",style:{width:0,paddingLeft:0,paddingRight:0},ref:t,children:P("div",{className:"gap-2 inline-flex items-center",ref:n,children:[P("span",{className:"font-medium text-sm whitespace-nowrap max-w-[400px]",style:{color:"var(--squelette-banner-text)"},children:P(hd,{duration:4,gap:16,children:me.value.title})}),P("button",{onClick:r,className:"p-0 border-0 bg-transparent cursor-pointer transition-opacity",style:{color:"var(--squelette-banner-text)",opacity:1},onMouseEnter:i=>{i.currentTarget.style.opacity="var(--squelette-banner-button-hover)"},onMouseLeave:i=>{i.currentTarget.style.opacity="1"},"aria-label":"Close banner",children:P(dd,{className:"size-4"})})]})}):null}function cd({className:e}){return P("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:xr("lucide lucide-megaphone-icon lucide-megaphone origin-center",e),children:[P("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"}),P("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"}),P("path",{d:"M8 6v8"})]})}function ud(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375}function dd({className:e}){return P("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:xr("lucide lucide-x-icon lucide-x",e),children:[P("path",{d:"M18 6 6 18"}),P("path",{d:"m6 6 12 12"})]})}async function fd(e){var t;try{const n=So();if(n){const o=`squelette_banner_cache_${e}`,a=localStorage.getItem(o);if(a){const{ticket:l,timestamp:c}=JSON.parse(a);if(!(Date.now()-c>od))return l}}const i=await(await fetch(`https://squelette.app/api/public/w/${e}/changelog/last`)).json(),s=(t=i==null?void 0:i.ticket)!=null?t:null;if(n&&s){const o=`squelette_banner_cache_${e}`,a={ticket:s,timestamp:Date.now()};localStorage.setItem(o,JSON.stringify(a))}return s}catch(n){return console.error("Error fetching changelog ticket:",n),null}}function hd({children:e,duration:t=10,gap:n=8,className:r,delay:i=.7}){const s=se(null),o=se(null),[a,l]=Ot(0),[c,d]=Ot(0);Oo(()=>{const _=()=>{o.current&&l(Math.ceil(o.current.offsetWidth)),s.current&&d(Math.ceil(s.current.offsetWidth))};_();const g=new ResizeObserver(_),m=new ResizeObserver(_);return o.current&&g.observe(o.current),s.current&&m.observe(s.current),()=>{g.disconnect(),m.disconnect()}},[e,n]);const u=a+n,h=u>0?Math.max(2,Math.ceil((c+u)/u)+1):2,y=t/1;return P(Ae,{children:[P("style",{children:`
|
|
163
|
+
`,ei=new Map,jo=typeof Document!="undefined"&&"adoptedStyleSheets"in Document.prototype;function Bt(e,t){var r;if(!t)return;if(jo){let i=(r=ei.get(t))!=null?r:null;i||(i=new CSSStyleSheet,i.replaceSync(t),ei.set(t,i)),e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return}const n=document.createElement("style");n.textContent=t,e.appendChild(n)}function Go(e){Bt(e,Uo)}function Ko(e,t,n){n?e.hasAttribute(t)||e.setAttribute(t,""):e.hasAttribute(t)&&e.removeAttribute(t)}function ti(e){return e?e.toLowerCase():"en"}function ni(e){return e==="light"||e==="dark"?e:"auto"}function zt(e){return e==="roadmap"||e==="changelog"?e:"feedback"}function ri(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 n=e.apiBase.replace(/\/$/,"");switch(e.view){case"roadmap":return e.board&&t.set("board",e.board),`${n}/widget/${encodeURIComponent(e.project)}/roadmap?${t.toString()}`;case"changelog":return`${n}/widget/${encodeURIComponent(e.project)}/changelog?${t.toString()}`;case"feedback":default:return e.board&&t.set("board",e.board),`${n}/widget/${encodeURIComponent(e.project)}/feedback?${t.toString()}`}}function Ho(e,t){const n=window.matchMedia("(prefers-color-scheme: dark)"),r=i=>{e.dataset.theme=i?"dark":"light"};if(t==="auto"){r(n.matches);const i=s=>r(s.matches);return n.addEventListener("change",i),()=>n.removeEventListener("change",i)}return e.dataset.theme=t,()=>{}}const wn={feedback:{width:340,height:200},roadmap:{width:400,height:420},changelog:{width:400,height:520}},xn={width:400,height:540};function kn(e,t){var i;const{width:n,height:r}=(i=wn[t])!=null?i:xn;e.style.setProperty("--sq-panel-width",`${n}px`),e.style.setProperty("--sq-panel-height",`${r}px`)}function Yo(e){const t=document.body.style;{const n={overflow:t.overflow,paddingRight:t.paddingRight},r=window.innerWidth-document.documentElement.clientWidth;return t.overflow="hidden",r>0&&(t.paddingRight=`${r}px`),()=>{t.overflow=n.overflow,t.paddingRight=n.paddingRight}}}class ii extends HTMLElement{constructor(){super();ne(this,N,{project:null,board:null,theme:"auto",locale:"en",apiBase:vn,label:Dt,view:"feedback"});ne(this,qe,!1);ne(this,ct,!1);ne(this,de,!1);ne(this,$e);ne(this,je);ne(this,ut,null);ne(this,Et,null);ne(this,le,null);ne(this,ge,null);ne(this,be,null);ne(this,oe,null);ne(this,Vt,null);ne(this,dt,new Wo);ne(this,Ve,null);Pt(this,"ensureFrameModule",async()=>{var n,r,i;if(!(b(this,ut)||b(this,ct))){L(this,ct,!0),this.render();try{(n=b(this,Et))!=null||L(this,Et,Promise.resolve().then(()=>_d));const s=await b(this,Et),o=(r=s.WidgetFrame)!=null?r:s.default;if(!o)throw new Error("[SqueletteWidget] Widget app missing export");L(this,ut,o),Bt(b(this,$e),(i=s.stylesText)!=null?i:Wr)}catch(s){console.error("[SqueletteWidget] Failed to load widget app",s)}finally{L(this,ct,!1),this.render()}}});Pt(this,"handleFrameLoaded",()=>{L(this,de,!0),L(this,Ve,b(this,$e).querySelector("iframe")),this.postIdentityToFrame(),this.render(),this.dispatchEvent(new CustomEvent("squelette:frame-loaded"))});L(this,$e,this.attachShadow({mode:"open"})),L(this,je,document.createElement("div")),Go(b(this,$e)),b(this,$e).appendChild(b(this,je)),this.render()}static get observedAttributes(){return["project","board","theme","locale","token","signature","label","view","open","api-base"]}connectedCallback(){var r,i,s;b(this,N).project=this.getAttribute("project"),b(this,N).board=this.getAttribute("board"),b(this,N).theme=ni(this.getAttribute("theme")),b(this,N).locale=ti(this.getAttribute("locale")),b(this,N).token=(r=this.getAttribute("token"))!=null?r:void 0,b(this,N).signature=(i=this.getAttribute("signature"))!=null?i:void 0,b(this,N).label=(s=this.getAttribute("label"))!=null?s:Dt,b(this,N).view=zt(this.getAttribute("view"));const n=this.getAttribute("api-base");b(this,N).apiBase=n&&n.length>0?n:b(this,N).apiBase,this.applyTheme(b(this,N).theme),kn(this,b(this,N).view),this.hasAttribute("open")&&this.setOpen(!0,"attribute"),L(this,be,o=>{if(!b(this,N).project||!o.data||typeof o.data!="object")return;try{const c=new URL(b(this,N).apiBase).origin;if(o.origin!==c)return}catch{return}const a=o.data;if(a.type!=="squelette:submit")return;const l=a.payload;l&&b(this,dt).emit("submit",{source:"app",payload:l})}),window.addEventListener("message",b(this,be)),L(this,ge,o=>{var l;L(this,Vt,(l=o.detail)!=null?l:null),this.postIdentityToFrame()}),window.addEventListener("squelette:identity",b(this,ge)),this.render()}disconnectedCallback(){b(this,be)&&(window.removeEventListener("message",b(this,be)),L(this,be,null)),b(this,le)&&(b(this,le).call(this),L(this,le,null)),b(this,ge)&&(window.removeEventListener("squelette:identity",b(this,ge)),L(this,ge,null)),b(this,oe)&&(b(this,oe).call(this),L(this,oe,null))}attributeChangedCallback(n,r,i){if(n==="open"){if(b(this,qe)===(i!==null))return;this.setOpen(i!==null,"attribute");return}switch(n){case"project":b(this,N).project=i,L(this,de,!1);break;case"board":b(this,N).board=i,L(this,de,!1);break;case"locale":b(this,N).locale=ti(i),L(this,de,!1);break;case"theme":b(this,N).theme=ni(i),this.applyTheme(b(this,N).theme);break;case"token":b(this,N).token=i!=null?i:void 0,L(this,de,!1);break;case"signature":b(this,N).signature=i!=null?i:void 0,L(this,de,!1);break;case"label":b(this,N).label=i!=null?i:Dt;break;case"view":b(this,N).view=zt(i),L(this,de,!1),kn(this,b(this,N).view);break;case"api-base":b(this,N).apiBase=i&&i.length>0?i:vn,L(this,de,!1);break}n!=="open"&&this.render()}async open(){await this.setOpen(!0,"api")}async close(){await this.setOpen(!1,"api")}async toggle(){await this.setOpen(!b(this,qe),"api")}on(n,r){return n==="submit"&&!b(this,N).project&&console.warn("[SqueletteWidget] Cannot listen for submit before project is set."),b(this,dt).on(n,r)}async destroy(){Ke(null,b(this,je)),b(this,be)&&(window.removeEventListener("message",b(this,be)),L(this,be,null)),b(this,le)&&(b(this,le).call(this),L(this,le,null)),b(this,ge)&&(window.removeEventListener("squelette:identity",b(this,ge)),L(this,ge,null)),this.parentNode&&this.parentNode.removeChild(this),b(this,oe)&&(b(this,oe).call(this),L(this,oe,null))}render(){const n=ri(b(this,N));Ke(P(Bo,{open:b(this,qe),label:b(this,N).label,iframeSrc:n,FrameComponent:b(this,ut),ensureFrame:this.ensureFrameModule,onOpen:()=>void this.setOpen(!0,"api"),onClose:()=>void this.setOpen(!1,"api"),onFrameLoaded:this.handleFrameLoaded}),b(this,je))}async setOpen(n,r){if(n&&!b(this,N).project){console.warn("[SqueletteWidget] Missing `project` attribute or option.");return}if(b(this,qe)!==n){if(L(this,qe,n),Ko(this,"open",n),n)b(this,oe)||L(this,oe,Yo()),kn(this,b(this,N).view);else{b(this,oe)&&(b(this,oe).call(this),L(this,oe,null)),L(this,de,!1);const i=ri(b(this,N));i&&b(this,Ve)&&(b(this,Ve).src=i)}this.render(),b(this,dt).emit(n?"open":"close",{source:r})}}applyTheme(n){b(this,le)&&(b(this,le).call(this),L(this,le,null)),L(this,le,Ho(this,n))}postIdentityToFrame(){if(!(!b(this,Ve)||!b(this,Ve).contentWindow))try{const n=new URL(b(this,N).apiBase).origin;b(this,Ve).contentWindow.postMessage({type:"squelette-identify",payload:b(this,Vt)},n)}catch(n){console.warn("[SqueletteWidget] Unable to forward identity payload",n)}}}N=new WeakMap,qe=new WeakMap,ct=new WeakMap,de=new WeakMap,$e=new WeakMap,je=new WeakMap,ut=new WeakMap,Et=new WeakMap,le=new WeakMap,ge=new WeakMap,be=new WeakMap,oe=new WeakMap,Vt=new WeakMap,dt=new WeakMap,Ve=new WeakMap;function Sn(){customElements.get(yn)||customElements.define(yn,ii)}let Wt=null;function si(e){window.dispatchEvent(new CustomEvent("squelette:identity",{detail:e}))}function oi(e){if(!e||!e.userId||!e.email||!e.signature){console.error("[SqueletteWidget] Invalid identification payload.",e);return}Wt=e,si(Wt)}function ai(){Wt=null,si(null)}function li(){return Wt}function Tn(e,t,n){const r=Math.max(t,n);return Math.min(Math.max(e,t),r)}function Xo(e,t){var E,I;const n=[],r=(E=t.position)!=null?E:"top",i=(I=t.overlayBlur)!=null?I:!0,s=12,o=r.startsWith("fixed-"),a=/^fixed-(top|center|bottom)-(left|center|right)$/;let l=null,c=!1,d=!1,u=null;const h=()=>{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")},p=()=>{var ye;if(!c||!l)return;const f=l.getBoundingClientRect(),A=window.innerWidth,q=window.innerHeight,R=zt(e.getAttribute("view")),W=(ye=wn[R])!=null?ye:xn,J=Math.min(W.width,A-s*2),fe=Math.min(W.height,q-s*2),he=Math.max(s,A-J-s),Q=Math.max(s,q-fe-s),Y=f.top-s,v=q-f.bottom-s;let ie=f.bottom+s,ee=f.left+f.width/2-J/2,ae="top";if(r==="left"||r==="right"){let O=r==="right";const G=f.right+s,te=f.left-J-s,ce=G+J<=A-s,B=te>=s;O&&!ce&&B?O=!1:!O&&!B&&ce&&(O=!0),O?(ee=G,ae="left"):(ee=te,ae="right");const ke=f.top+f.height/2-fe/2;ie=Tn(ke,s,Q)}else{let O=r==="bottom";r!=="top"&&r!=="bottom"&&(O=v>=Y);const G=f.bottom+s,te=f.top-fe-s,ce=G+fe<=q-s,B=te>=s;O&&!ce&&B?O=!1:!O&&!B&&ce&&(O=!0),O?(ie=G,ae="top"):(ie=te,ae="bottom"),ee=f.left+f.width/2-J/2}ie=Tn(ie,s,Q),ee=Tn(ee,s,he),e.dataset.anchor="button",e.dataset.anchorOrigin=ae,e.style.setProperty("--sq-offset-top",`${Math.round(ie)}px`),e.style.setProperty("--sq-offset-left",`${Math.round(ee)}px`),e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto")},y=()=>{c&&requestAnimationFrame(p)},_=()=>{d||(window.addEventListener("resize",y),window.addEventListener("scroll",y,!0),d=!0)},g=()=>{d&&(window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0),d=!1)},m=()=>{!l||o||(c=!0,e.dataset.anchor="button",e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto"),_(),p(),requestAnimationFrame(p))},k=()=>{c=!1,g()};n.push(()=>{k(),h()}),i||(e.dataset.overlayBlur="off",n.push(()=>{delete e.dataset.overlayBlur}));const M=()=>{var O;if(!o)return;const f=r.match(a);if(!f){console.warn(`[SqueletteWidget] Unsupported position value: ${r}`);return}const[,A,q]=f,R=24,W=zt(e.getAttribute("view")),J=(O=wn[W])!=null?O:xn,fe=window.innerWidth,he=window.innerHeight,Q=Math.min(J.width,fe-R*2),Y=Math.min(J.height,he-R*2);let v="auto",ie="auto",ee="auto",ae="auto";switch(A){case"top":v=`${R}px`;break;case"bottom":ie=`${R}px`;break;case"center":v=`${Math.max(R,Math.round((he-Y)/2))}px`;break}switch(q){case"left":ee=`${R}px`;break;case"right":ae=`${R}px`;break;case"center":ee=`${Math.max(R,Math.round((fe-Q)/2))}px`;break}e.dataset.anchor="fixed";const ye=A==="center"?q==="center"?"bottom":q:A;e.dataset.anchorOrigin=ye,e.dataset.fixedVertical=A,e.dataset.fixedHorizontal=q,e.style.setProperty("--sq-offset-top",v),e.style.setProperty("--sq-offset-bottom",ie),e.style.setProperty("--sq-offset-left",ee),e.style.setProperty("--sq-offset-right",ae)};if(o&&M(),t.buttonSelector)if(l=document.querySelector(t.buttonSelector),l){const f=l;e.dataset.launcherHidden="true",n.push(()=>{delete e.dataset.launcherHidden});const A=R=>{R.preventDefault(),R.stopPropagation(),e.toggle()};f.addEventListener("click",A,!1),n.push(()=>f.removeEventListener("click",A,!1));const q=()=>{o?M():requestAnimationFrame(p)};e.addEventListener("squelette:frame-loaded",q),n.push(()=>e.removeEventListener("squelette:frame-loaded",q)),u=R=>{if(!e.hasAttribute("open"))return;const W=R.target;!e.contains(W)&&!f.contains(W)&&e.close()},document.addEventListener("click",u,!0),n.push(()=>{u&&(document.removeEventListener("click",u,!0),u=null)})}else console.warn(`[SqueletteWidget] Button selector not found: ${t.buttonSelector}`);const C=e.on("open",()=>{o?M():l&&m()}),S=e.on("close",()=>{k()});if(n.push(C,S),t.onOpenChange){const f=e.on("open",()=>{var q;return(q=t.onOpenChange)==null?void 0:q.call(t,!0)}),A=e.on("close",()=>{var q;return(q=t.onOpenChange)==null?void 0:q.call(t,!1)});n.push(f,A)}if(t.onLoad){const f=()=>{var A;(A=t.onLoad)==null||A.call(t),e.removeEventListener("squelette:frame-loaded",f)};e.addEventListener("squelette:frame-loaded",f),n.push(()=>e.removeEventListener("squelette:frame-loaded",f))}return n}const ci='*,: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%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.visible{visibility:visible}.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-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-none{border-style:none}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.bg-black\\/60{background-color:#0009}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.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)}.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)}.drop-shadow-xl{--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / .03)) drop-shadow(0 8px 5px rgb(0 0 0 / .08));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}.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 Zo=Symbol.for("preact-signals");function Ut(){if(Pe>1)Pe--;else{for(var e,t=!1;gt!==void 0;){var n=gt;for(gt=void 0,An++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&hi(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(An=0,Pe--,t)throw e}}function ui(e){if(Pe>0)return e();Pe++;try{return e()}finally{Ut()}}var D=void 0;function di(e){var t=D;D=void 0;try{return e()}finally{D=t}}var gt=void 0,Pe=0,An=0,jt=0;function fi(e){if(D!==void 0){var t=e.n;if(t===void 0||t.t!==D)return t={i:0,S:e,p:D.s,n:void 0,t:D,e:void 0,x:void 0,r:t},D.s!==void 0&&(D.s.n=t),D.s=t,e.n=t,32&D.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=D.s,t.n=void 0,D.s.n=t,D.s=t),t}}function Z(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}Z.prototype.brand=Zo,Z.prototype.h=function(){return!0},Z.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n!==void 0?n.e=e:di(function(){var r;(r=t.W)==null||r.call(t)}))},Z.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&di(function(){var i;(i=t.Z)==null||i.call(t)}))}},Z.prototype.subscribe=function(e){var t=this;return Xe(function(){var n=t.value,r=D;D=void 0;try{e(n)}finally{D=r}},{name:"sub"})},Z.prototype.valueOf=function(){return this.value},Z.prototype.toString=function(){return this.value+""},Z.prototype.toJSON=function(){return this.value},Z.prototype.peek=function(){var e=D;D=void 0;try{return this.value}finally{D=e}},Object.defineProperty(Z.prototype,"value",{get:function(){var e=fi(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(An>100)throw new Error("Cycle detected");this.v=e,this.i++,jt++,Pe++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ut()}}}});function Ie(e,t){return new Z(e,t)}function hi(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 pi(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function mi(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Oe(e,t){Z.call(this,void 0),this.x=e,this.s=void 0,this.g=jt-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}Oe.prototype=new Z,Oe.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===jt))return!0;if(this.g=jt,this.f|=1,this.i>0&&!hi(this))return this.f&=-2,!0;var e=D;try{pi(this),D=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return D=e,mi(this),this.f&=-2,!0},Oe.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)}Z.prototype.S.call(this,e)},Oe.prototype.U=function(e){if(this.t!==void 0&&(Z.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)}},Oe.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(Oe.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=fi(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function gi(e,t){return new Oe(e,t)}function bi(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Pe++;var n=D;D=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Mn(e),r}finally{D=n,Ut()}}}function Mn(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,bi(e)}function Jo(e){if(D!==this)throw new Error("Out-of-order effect");mi(this),D=e,this.f&=-2,8&this.f&&Mn(this),Ut()}function Ye(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}Ye.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()}},Ye.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,bi(this),pi(this),Pe++;var e=D;return D=this,Jo.bind(this,e)},Ye.prototype.N=function(){2&this.f||(this.f|=2,this.o=gt,gt=this)},Ye.prototype.d=function(){this.f|=8,1&this.f||Mn(this)},Ye.prototype.dispose=function(){this.d()};function Xe(e,t){var n=new Ye(e,t);try{n.c()}catch(i){throw n.d(),i}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var Cn,En,yi=[],_i=[];Xe(function(){Cn=this.N})();function Ze(e,t){T[e]=t.bind(null,T[e]||function(){})}function Gt(e){En&&En(),En=e&&e.S()}function vi(e){var t=this,n=e.data,r=ea(n);r.value=n;var i=mn(function(){for(var a=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=gi(function(){var p=r.value.value;return p===0?0:p===!0?"":p||""}),d=gi(function(){return!Array.isArray(c.value)&&!Cr(c.value)}),u=Xe(function(){if(this.N=wi,d.value){var p=c.value;a.__v&&a.__v.__e&&a.__v.__e.nodeType===3&&(a.__v.__e.data=p)}}),h=t.__$u.d;return t.__$u.d=function(){u(),h.call(this)},[d,c]},[]),s=i[0],o=i[1];return s.value?o.peek():o.value}vi.displayName="ReactiveTextNode",Object.defineProperties(Z.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:vi},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Ze("__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 n,r=t.props;for(var i in r)if(i!=="children"){var s=r[i];s instanceof Z&&(n||(t.__np=n={}),n[i]=s,r[i]=s.peek())}}e(t)}),Ze("__r",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==Ae){Gt();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var s;return Xe(function(){s=this}),s.c=function(){r.__$f|=1,r.setState({})},s}())),Gt(n)}e(t)}),Ze("__e",function(e,t,n,r){typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Gt(),e(t,n,r)}),Ze("diffed",function(e,t){typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Gt();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var s=n.U;if(s)for(var o in s){var a=s[o];a!==void 0&&!(o in r)&&(a.d(),s[o]=void 0)}else s={},n.U=s;for(var l in r){var c=s[l],d=r[l];c===void 0?(c=Qo(n,l,d,i),s[l]=c):c.o(d,i)}}}e(t)});function Qo(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,s=Ie(n);return{o:function(o,a){s.value=o,r=a},d:Xe(function(){this.N=wi;var o=s.value.value;r[t]!==o&&(r[t]=o,i?e[t]=o:o?e.setAttribute(t,o):e.removeAttribute(t))})}}Ze("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var s=r[i];s&&s.d()}}}}else{var o=t.__c;if(o){var a=o.__$u;a&&(o.__$u=void 0,a.d())}}e(t)}),Ze("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),_e.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&n.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var s=2&this.__$f;if(!(r||s||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function ea(e,t){return Ot(function(){return Ie(e,t)})[0]}var ta=typeof requestAnimationFrame=="undefined"?setTimeout:function(e){var t=function(){clearTimeout(n),cancelAnimationFrame(r),e()},n=setTimeout(t,35),r=requestAnimationFrame(t)},na=function(e){queueMicrotask(function(){queueMicrotask(e)})};function ra(){ui(function(){for(var e;e=yi.shift();)Cn.call(e)})}function ia(){yi.push(this)===1&&(T.requestAnimationFrame||ta)(ra)}function sa(){ui(function(){for(var e;e=_i.shift();)Cn.call(e)})}function wi(){_i.push(this)===1&&(T.requestAnimationFrame||na)(sa)}function oa(e,t){var n=se(e);n.current=e,ve(function(){return Xe(function(){return this.N=ia,n.current()},t)},[])}function aa(e,t){e.indexOf(t)===-1&&e.push(t)}function xi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Le=(e,t,n)=>n>t?t:n<e?e:n;let Vn=()=>{};const Me={},ki=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function la(e){return typeof e=="object"&&e!==null}const Si=e=>/^0[^.\s]+$/u.test(e);function Pn(e){let t;return()=>(t===void 0&&(t=e()),t)}const Je=e=>e,ca=(e,t)=>n=>t(e(n)),Rn=(...e)=>e.reduce(ca),Fn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ti{constructor(){this.subscriptions=[]}add(t){return aa(this.subscriptions,t),()=>xi(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const we=e=>e*1e3,pe=e=>e/1e3;function Ai(e,t){return t?e*(1e3/t):0}const ua=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},Mi=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,da=1e-7,fa=12;function ha(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Mi(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>da&&++a<fa);return o}function bt(e,t,n,r){if(e===t&&n===r)return Je;const i=s=>ha(s,0,1,e,n);return s=>s===0||s===1?s:Mi(i(s),t,r)}const Ci=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ei=e=>t=>1-e(1-t),Vi=bt(.33,1.53,.69,.99),qn=Ei(Vi),Pi=Ci(qn),Ri=e=>(e*=2)<1?.5*qn(e):.5*(2-Math.pow(2,-10*(e-1))),$n=e=>1-Math.sin(Math.acos(e)),pa=Ei($n),Fi=Ci($n),ma=bt(.42,0,1,1),ga=bt(0,0,.58,1),qi=bt(.42,0,.58,1),$i=e=>Array.isArray(e)&&typeof e[0]!="number";function Ni(e,t){return $i(e)?e[ua(0,e.length,t)]:e}const Ii=e=>Array.isArray(e)&&typeof e[0]=="number",ba={linear:Je,easeIn:ma,easeInOut:qi,easeOut:ga,circIn:$n,circInOut:Fi,circOut:pa,backIn:qn,backInOut:Pi,backOut:Vi,anticipate:Ri},ya=e=>typeof e=="string",Oi=e=>{if(Ii(e)){Vn(e.length===4);const[t,n,r,i]=e;return bt(t,n,r,i)}else if(ya(e))return ba[e];return e},Kt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _a(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,u=!1,h=!1)=>{const y=h&&i?n:r;return u&&o.add(d),y.has(d)||y.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const va=40;function Li(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Kt.reduce((M,C)=>(M[C]=_a(s),M),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:p,postRender:y}=o,_=()=>{const M=Me.useManualTiming?i.timestamp:performance.now();n=!1,Me.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(M-i.timestamp,va),1)),i.timestamp=M,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),d.process(i),u.process(i),h.process(i),p.process(i),y.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(_))},g=()=>{n=!0,r=!0,i.isProcessing||e(_)};return{schedule:Kt.reduce((M,C)=>{const S=o[C];return M[C]=(E,I=!1,f=!1)=>(n||g(),S.schedule(E,I,f)),M},{}),cancel:M=>{for(let C=0;C<Kt.length;C++)o[Kt[C]].cancel(M)},state:i,steps:o}}const{schedule:Ce,cancel:Nn,state:Ht}=Li(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Je,!0);let Yt;function wa(){Yt=void 0}const ue={now:()=>(Yt===void 0&&ue.set(Ht.isProcessing||Me.useManualTiming?Ht.timestamp:performance.now()),Yt),set:e=>{Yt=e,queueMicrotask(wa)}},Di=e=>t=>typeof t=="string"&&t.startsWith(e),Bi=Di("--"),xa=Di("var(--"),In=e=>xa(e)?ka.test(e.split("/*")[0].trim()):!1,ka=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yt={...Qe,transform:e=>Le(0,1,e)},Xt={...Qe,default:1},_t=e=>Math.round(e*1e5)/1e5,On=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Sa(e){return e==null}const Ta=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ln=(e,t)=>n=>!!(typeof n=="string"&&Ta.test(n)&&n.startsWith(e)||t&&!Sa(n)&&Object.prototype.hasOwnProperty.call(n,t)),zi=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(On);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Aa=e=>Le(0,255,e),Dn={...Qe,transform:e=>Math.round(Aa(e))},De={test:Ln("rgb","red"),parse:zi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dn.transform(e)+", "+Dn.transform(t)+", "+Dn.transform(n)+", "+_t(yt.transform(r))+")"};function Ma(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Bn={test:Ln("#"),parse:Ma,transform:De.transform},vt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Re=vt("deg"),et=vt("%"),V=vt("px"),Ca=vt("vh"),Ea=vt("vw"),Wi={...et,parse:e=>et.parse(e)/100,transform:e=>et.transform(e*100)},tt={test:Ln("hsl","hue"),parse:zi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+et.transform(_t(t))+", "+et.transform(_t(n))+", "+_t(yt.transform(r))+")"},H={test:e=>De.test(e)||Bn.test(e)||tt.test(e),parse:e=>De.test(e)?De.parse(e):tt.test(e)?tt.parse(e):Bn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?De.transform(e):tt.transform(e),getAnimatableNone:e=>{const t=H.parse(e);return t.alpha=0,H.transform(t)}},Va=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pa(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(On))==null?void 0:t.length)||0)+(((n=e.match(Va))==null?void 0:n.length)||0)>0}const Ui="number",ji="color",Ra="var",Fa="var(",Gi="${}",qa=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(qa,l=>(H.test(l)?(r.color.push(s),i.push(ji),n.push(H.parse(l))):l.startsWith(Fa)?(r.var.push(s),i.push(Ra),n.push(l)):(r.number.push(s),i.push(Ui),n.push(parseFloat(l))),++s,Gi)).split(Gi);return{values:n,split:a,indexes:r,types:i}}function Ki(e){return wt(e).values}function Hi(e){const{split:t,types:n}=wt(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Ui?s+=_t(i[o]):a===ji?s+=H.transform(i[o]):s+=i[o]}return s}}const $a=e=>typeof e=="number"?0:H.test(e)?H.getAnimatableNone(e):e;function Na(e){const t=Ki(e);return Hi(e)(t.map($a))}const nt={test:Pa,parse:Ki,createTransformer:Hi,getAnimatableNone:Na};function zn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*6*n:n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function Ia({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=zn(l,a,e+.3333333333333333),s=zn(l,a,e),o=zn(l,a,e-.3333333333333333)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Zt(e,t){return n=>n>0?t:e}const xt=(e,t,n)=>e+(t-e)*n,Wn=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Oa=[Bn,De,tt],La=e=>Oa.find(t=>t.test(e));function Yi(e){const t=La(e);if(!t)return!1;let n=t.parse(e);return t===tt&&(n=Ia(n)),n}const Xi=(e,t)=>{const n=Yi(e),r=Yi(t);if(!n||!r)return Zt(e,t);const i={...n};return s=>(i.red=Wn(n.red,r.red,s),i.green=Wn(n.green,r.green,s),i.blue=Wn(n.blue,r.blue,s),i.alpha=xt(n.alpha,r.alpha,s),De.transform(i))},Un=new Set(["none","hidden"]);function Da(e,t){return Un.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ba(e,t){return n=>xt(e,t,n)}function jn(e){return typeof e=="number"?Ba:typeof e=="string"?In(e)?Zt:H.test(e)?Xi:Ua:Array.isArray(e)?Zi:typeof e=="object"?H.test(e)?Xi:za:Zt}function Zi(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>jn(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function za(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=jn(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Wa(e,t){var i;const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][r[o]],l=(i=e.values[a])!=null?i:0;n[s]=l,r[o]++}return n}const Ua=(e,t)=>{const n=nt.createTransformer(t),r=wt(e),i=wt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Un.has(e)&&!i.values.length||Un.has(t)&&!r.values.length?Da(e,t):Rn(Zi(Wa(r,i),i.values),n):Zt(e,t)};function Ji(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):jn(e)(e,t)}const ja=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ce.update(t,n),stop:()=>Nn(t),now:()=>Ht.isProcessing?Ht.timestamp:ue.now()}},Qi=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Jt=2e4;function Gn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Jt;)t+=n,r=e.next(t);return t>=Jt?1/0:t}function es(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Gn(r),Jt);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:pe(i)}}const Ga=5;function ts(e,t,n){const r=Math.max(t-Ga,0);return Ai(n-e(r),t-r)}const j={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Kn=.001;function Ka({duration:e=j.duration,bounce:t=j.bounce,velocity:n=j.velocity,mass:r=j.mass}){let i,s,o=1-t;o=Le(j.minDamping,j.maxDamping,o),e=Le(j.minDuration,j.maxDuration,pe(e)),o<1?(i=c=>{const d=c*o,u=d*e,h=d-n,p=Hn(c,o),y=Math.exp(-u);return Kn-h/p*y},s=c=>{const u=c*o*e,h=u*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-u),_=Hn(Math.pow(c,2),o);return(-i(c)+Kn>0?-1:1)*((h-p)*y)/_}):(i=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-Kn+d*u},s=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=Ya(i,s,a);if(e=we(e),isNaN(l))return{stiffness:j.stiffness,damping:j.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Ha=12;function Ya(e,t,n){let r=n;for(let i=1;i<Ha;i++)r=r-e(r)/t(r);return r}function Hn(e,t){return e*Math.sqrt(1-t*t)}const Xa=["duration","bounce"],Za=["stiffness","damping","mass"];function ns(e,t){return t.some(n=>e[n]!==void 0)}function Ja(e){let t={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...e};if(!ns(e,Za)&&ns(e,Xa))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Le(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:j.mass,stiffness:i,damping:s}}else{const n=Ka(e);t={...t,...n,mass:j.mass},t.isResolvedFromDuration=!0}return t}function kt(e=j.visualDuration,t=j.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:p}=Ja({...n,velocity:-pe(n.velocity||0)}),y=h||0,_=c/(2*Math.sqrt(l*d)),g=o-s,m=pe(Math.sqrt(l/d)),k=Math.abs(g)<5;r||(r=k?j.restSpeed.granular:j.restSpeed.default),i||(i=k?j.restDelta.granular:j.restDelta.default);let M;if(_<1){const S=Hn(m,_);M=E=>{const I=Math.exp(-_*m*E);return o-I*((y+_*m*g)/S*Math.sin(S*E)+g*Math.cos(S*E))}}else if(_===1)M=S=>o-Math.exp(-m*S)*(g+(y+m*g)*S);else{const S=m*Math.sqrt(_*_-1);M=E=>{const I=Math.exp(-_*m*E),f=Math.min(S*E,300);return o-I*((y+_*m*g)*Math.sinh(f)+S*g*Math.cosh(f))/S}}const C={calculatedDuration:p&&u||null,next:S=>{const E=M(S);if(p)a.done=S>=u;else{let I=S===0?y:0;_<1&&(I=S===0?we(y):ts(M,S,E));const f=Math.abs(I)<=r,A=Math.abs(o-E)<=i;a.done=f&&A}return a.value=a.done?o:E,a},toString:()=>{const S=Math.min(Gn(C),Jt),E=Qi(I=>C.next(S*I).value,S,30);return S+"ms "+E},toTransition:()=>{}};return C}kt.applyToOptions=e=>{const t=es(e,100,kt);return e.ease=t.ease,e.duration=we(t.duration),e.type="keyframes",e};function Yn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},p=f=>a!==void 0&&f<a||l!==void 0&&f>l,y=f=>a===void 0?l:l===void 0||Math.abs(a-f)<Math.abs(l-f)?a:l;let _=n*t;const g=u+_,m=o===void 0?g:o(g);m!==g&&(_=m-u);const k=f=>-_*Math.exp(-f/r),M=f=>m+k(f),C=f=>{const A=k(f),q=M(f);h.done=Math.abs(A)<=c,h.value=h.done?m:q};let S,E;const I=f=>{p(h.value)&&(S=f,E=kt({keyframes:[h.value,y(h.value)],velocity:ts(M,f,h.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return I(0),{calculatedDuration:null,next:f=>{let A=!1;return!E&&S===void 0&&(A=!0,C(f),I(f)),S!==void 0&&f>=S?E.next(f-S):(!A&&C(f),h)}}}function Qa(e,t,n){const r=[],i=n||Me.mix||Ji,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Je:t;a=Rn(l,a)}r.push(a)}return r}function el(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Vn(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Qa(t,r,i),l=a.length,c=d=>{if(o&&d<e[0])return t[0];let u=0;if(l>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const h=Fn(e[u],e[u+1],d);return a[u](h)};return n?d=>c(Le(e[0],e[s-1],d)):c}function rs(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Fn(0,t,r);e.push(xt(n,1,i))}}function is(e){const t=[0];return rs(t,e.length-1),t}function tl(e,t){return e.map(n=>n*t)}function nl(e,t){return e.map(()=>t||qi).splice(0,e.length-1)}function St({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=$i(r)?r.map(Oi):Oi(r),s={done:!1,value:t[0]},o=tl(n&&n.length===t.length?n:is(t),e),a=el(o,t,{ease:Array.isArray(i)?i:nl(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const rl=e=>e!==null;function Xn(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(rl),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const il={decay:Yn,inertia:Yn,tween:St,keyframes:St,spring:kt};function ss(e){typeof e.type=="string"&&(e.type=il[e.type])}class Zn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const sl=e=>e/100;class Jn extends Zn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ue.now()&&this.tick(ue.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ss(t);const{type:n=St,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||St;l!==St&&typeof a[0]!="number"&&(this.mixKeyframes=Rn(sl,Ji(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Gn(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:p,type:y,onUpdate:_,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let M=this.currentTime,C=r;if(u){const f=Math.min(this.currentTime,i)/a;let A=Math.floor(f),q=f%1;!q&&f>=1&&(q=1),q===1&&A--,A=Math.min(A,u+1),!!(A%2)&&(h==="reverse"?(q=1-q,p&&(q-=p/a)):h==="mirror"&&(C=o)),M=Le(0,1,q)*a}const S=k?{done:!1,value:d[0]}:C.next(M);s&&(S.value=s(S.value));let{done:E}=S;!k&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return I&&y!==Yn&&(S.value=Xn(d,this.options,g,this.speed)),_&&_(S.value),I&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return pe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(this.currentTime)}set time(t){var n;t=we(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ue.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=pe(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=ja,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n!=null?n:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ue.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function ol(e){var t;for(let n=1;n<e.length;n++)(t=e[n])!=null||(e[n]=e[n-1])}const Be=e=>e*180/Math.PI,Qn=e=>{const t=Be(Math.atan2(e[1],e[0]));return er(t)},al={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qn,rotateZ:Qn,skewX:e=>Be(Math.atan(e[1])),skewY:e=>Be(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},er=e=>(e=e%360,e<0&&(e+=360),e),os=Qn,as=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ls=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ll={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:as,scaleY:ls,scale:e=>(as(e)+ls(e))/2,rotateX:e=>er(Be(Math.atan2(e[6],e[5]))),rotateY:e=>er(Be(Math.atan2(-e[2],e[0]))),rotateZ:os,rotate:os,skewX:e=>Be(Math.atan(e[4])),skewY:e=>Be(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tr(e){return e.includes("scale")?1:0}function nr(e,t){if(!e||e==="none")return tr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ll,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=al,i=a}if(!i)return tr(t);const s=r[t],o=i[1].split(",").map(ul);return typeof s=="function"?s(o):o[s]}const cl=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nr(n,t)};function ul(e){return parseFloat(e.trim())}const rt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(rt),cs=e=>e===Qe||e===V,dl=new Set(["x","y","z"]),fl=rt.filter(e=>!dl.has(e));function hl(e){const t=[];return fl.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ze={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nr(t,"x"),y:(e,{transform:t})=>nr(t,"y")};ze.translateX=ze.x,ze.translateY=ze.y;const We=new Set;let rr=!1,ir=!1,sr=!1;function us(){if(ir){const e=Array.from(We).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=hl(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ir=!1,rr=!1,We.forEach(e=>e.complete(sr)),We.clear()}function ds(){We.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ir=!0)})}function pl(){sr=!0,ds(),us(),sr=!1}class or{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(We.add(this),rr||(rr=!0,Ce.read(ds),Ce.resolveKeyframes(us))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}ol(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),We.delete(this)}cancel(){this.state==="scheduled"&&(We.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ml=e=>e.startsWith("--");function gl(e,t,n){ml(t)?e.style.setProperty(t,n):e.style[t]=n}const bl=Pn(()=>window.ScrollTimeline!==void 0),yl={};function _l(e,t){const n=Pn(e);return()=>{var r;return(r=yl[t])!=null?r:n()}}const fs=_l(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tt([0,.65,.55,1]),circOut:Tt([.55,0,1,.45]),backIn:Tt([.31,.01,.66,-.59]),backOut:Tt([.33,1.53,.69,.99])};function ps(e,t){if(e)return typeof e=="function"?fs()?Qi(e,t):"ease-out":Ii(e)?Tt(e):Array.isArray(e)?e.map(n=>ps(n,t)||hs.easeOut):hs[e]}function vl(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const u=ps(a,i);Array.isArray(u)&&(d.easing=u);const h={delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function ar(e){return typeof e=="function"&&"applyToOptions"in e}function wl({type:e,...t}){var n,r;return ar(e)&&fs()?e.applyToOptions(t):((n=t.duration)!=null||(t.duration=300),(r=t.ease)!=null||(t.ease="easeOut"),t)}class xl extends Zn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Vn(typeof t.type!="string");const c=wl(t);this.animation=vl(n,r,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Xn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):gl(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return pe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=we(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&bl()?(this.animation.timeline=t,Je):n(this)}}const ms={anticipate:Ri,backInOut:Pi,circInOut:Fi};function kl(e){return e in ms}function Sl(e){typeof e.ease=="string"&&kl(e.ease)&&(e.ease=ms[e.ease])}const gs=10;class Tl extends xl{constructor(t){Sl(t),ss(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){var c;const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Jn({...o,autoplay:!1}),l=we((c=this.finishedTime)!=null?c:this.time);n.setWithVelocity(a.sample(l-gs).value,a.sample(l).value,gs),a.stop()}}const bs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nt.test(e)||e==="0")&&!e.startsWith("url("));function Al(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ml(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=bs(i,t),a=bs(s,t);return!o||!a?!1:Al(e)||(n==="spring"||ar(n))&&r}function lr(e){e.duration=0,e.type="keyframes"}const Cl=new Set(["opacity","clipPath","filter","transform"]),El=Pn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Vl(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return El()&&n&&Cl.has(n)&&(n!=="transform"||!c)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const Pl=40;class Rl extends Zn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:d,...u}){var y;super(),this.stop=()=>{var _,g;this._animation&&(this._animation.stop(),(_=this.stopTimeline)==null||_.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=ue.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:c,element:d,...u},p=(d==null?void 0:d.KeyframeResolver)||or;this.keyframeResolver=new p(a,(_,g,m)=>this.onKeyframesResolved(_,g,h,!m),l,c,d),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=ue.now(),Ml(t,s,o,a)||((Me.instantAnimations||!l)&&(d==null||d(Xn(t,r,n))),t[0]=t[t.length-1],lr(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Pl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!c&&Vl(h)?new Tl({...h,element:h.motionValue.owner.current}):new Jn(h);p.finished.then(()=>this.notifyFinished()).catch(Je),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),pl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class Fl{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return ys(this.animations,"duration")}get iterationDuration(){return ys(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function ys(e,t){let n=0;for(let r=0;r<e.length;r++){const i=e[r][t];i!==null&&i>n&&(n=i)}return n}class ql extends Fl{then(t,n){return this.finished.finally(t).then(()=>{})}}const $l=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Nl(e){const t=$l.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n!=null?n:r}`,i]}function _s(e,t,n=1){const[r,i]=Nl(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return ki(o)?parseFloat(o):o}return In(i)?_s(i,t,n+1):i}function vs(e,t){var n,r;return(r=(n=e==null?void 0:e[t])!=null?n:e==null?void 0:e.default)!=null?r:e}const ws=new Set(["width","height","top","left","right","bottom",...rt]),Il={test:e=>e==="auto",parse:e=>e},xs=e=>t=>t.test(e),ks=[Qe,V,et,Re,Ea,Ca,Il],Ss=e=>ks.find(xs(e));function Ol(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Si(e):!0}const Ll=new Set(["brightness","contrast","saturate","opacity"]);function Dl(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(On)||[];if(!r)return e;const i=n.replace(r,"");let s=Ll.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Bl=/\b([a-z-]*)\(.*?\)/gu,cr={...nt,getAnimatableNone:e=>{const t=e.match(Bl);return t?t.map(Dl).join(" "):e}},Ts={...Qe,transform:Math.round},ur={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:Re,rotateX:Re,rotateY:Re,rotateZ:Re,scale:Xt,scaleX:Xt,scaleY:Xt,scaleZ:Xt,skew:Re,skewX:Re,skewY:Re,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:yt,originX:Wi,originY:Wi,originZ:V},zIndex:Ts,fillOpacity:yt,strokeOpacity:yt,numOctaves:Ts},zl={...ur,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:cr,WebkitFilter:cr},As=e=>zl[e];function Ms(e,t){let n=As(e);return n!==cr&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Wl=new Set(["auto","none","0"]);function Ul(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Wl.has(s)&&wt(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Ms(n,i)}class jl extends or{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),In(c))){const d=_s(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!ws.has(r)||t.length!==2)return;const[i,s]=t,o=Ss(i),a=Ss(s);if(o!==a)if(cs(o)&&cs(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else ze[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Ol(t[i]))&&r.push(i);r.length&&Ul(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ze[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=ze[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Gl(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=(r=n==null?void 0:n[e])!=null?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const Cs=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Es=30,Kl=e=>!isNaN(parseFloat(e));class Hl{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=ue.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ue.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Kl(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ti);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ue.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Es)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Es);return Ai(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function At(e,t){return new Hl(e,t)}const{schedule:Yl}=Li(queueMicrotask,!1);function Vs(e){return la(e)&&"ownerSVGElement"in e}function Xl(e){return Vs(e)&&e.tagName==="svg"}const re=e=>!!(e&&e.getVelocity),Zl=[...ks,H,nt],Jl=e=>Zl.find(xs(e));function dr(e){return typeof e=="object"&&!Array.isArray(e)}function Ps(e,t,n,r){return typeof e=="string"&&dr(t)?Gl(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Ql(e,t,n){return e*(t+1)}function Rs(e,t,n,r){var i;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):(i=r.get(t))!=null?i:e}function ec(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];i.at>t&&i.at<n&&(xi(e,i),r--)}}function tc(e,t,n,r,i,s){ec(e,i,s);for(let o=0;o<t.length;o++)e.push({value:t[o],at:xt(i,s,r[o]),easing:Ni(n,o)})}function nc(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function rc(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const ic="easeInOut";function sc(e,{defaultTransition:t={},...n}={},r,i){const s=t.duration||.3,o=new Map,a=new Map,l={},c=new Map;let d=0,u=0,h=0;for(let p=0;p<e.length;p++){const y=e[p];if(typeof y=="string"){c.set(y,u);continue}else if(!Array.isArray(y)){c.set(y.name,Rs(u,y.at,d,c));continue}let[_,g,m={}]=y;m.at!==void 0&&(u=Rs(u,m.at,d,c));let k=0;const M=(C,S,E,I=0,f=0)=>{const A=oc(C),{delay:q=0,times:R=is(A),type:W="keyframes",repeat:J,repeatType:fe,repeatDelay:he=0,...Q}=S;let{ease:Y=t.ease||"easeOut",duration:v}=S;const ie=typeof q=="function"?q(I,f):q,ee=A.length,ae=ar(W)?W:i==null?void 0:i[W||"keyframes"];if(ee<=2&&ae){let te=100;if(ee===2&&cc(A)){const ke=A[1]-A[0];te=Math.abs(ke)}const ce={...Q};v!==void 0&&(ce.duration=we(v));const B=es(ce,te,ae);Y=B.ease,v=B.duration}v!=null||(v=s);const ye=u+ie;R.length===1&&R[0]===0&&(R[1]=1);const O=R.length-A.length;if(O>0&&rs(R,O),A.length===1&&A.unshift(null),J){v=Ql(v,J);const te=[...A],ce=[...R];Y=Array.isArray(Y)?[...Y]:[Y];const B=[...Y];for(let ke=0;ke<J;ke++){A.push(...te);for(let Se=0;Se<te.length;Se++)R.push(ce[Se]+(ke+1)),Y.push(Se===0?"linear":Ni(B,Se-1))}nc(R,J)}const G=ye+v;tc(E,A,Y,R,ye,G),k=Math.max(ie+v,k),h=Math.max(G,h)};if(re(_)){const C=Fs(_,a);M(g,m,qs("default",C))}else{const C=Ps(_,g,r,l),S=C.length;for(let E=0;E<S;E++){g=g,m=m;const I=C[E],f=Fs(I,a);for(const A in g)M(g[A],ac(m,A),qs(A,f),E,S)}}d=u,u+=k}return a.forEach((p,y)=>{for(const _ in p){const g=p[_];g.sort(rc);const m=[],k=[],M=[];for(let S=0;S<g.length;S++){const{at:E,value:I,easing:f}=g[S];m.push(I),k.push(Fn(0,h,E)),M.push(f||"easeOut")}k[0]!==0&&(k.unshift(0),m.unshift(m[0]),M.unshift(ic)),k[k.length-1]!==1&&(k.push(1),m.push(null)),o.has(y)||o.set(y,{keyframes:{},transition:{}});const C=o.get(y);C.keyframes[_]=m,C.transition[_]={...t,duration:h,ease:M,times:k,...n}}}),o}function Fs(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function qs(e,t){return t[e]||(t[e]=[]),t[e]}function oc(e){return Array.isArray(e)?e:[e]}function ac(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const lc=e=>typeof e=="number",cc=e=>e.every(lc),Mt=new WeakMap,uc=e=>Array.isArray(e);function $s(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ns(e,t,n,r){if(typeof t=="function"){const[i,s]=$s(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=$s(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function dc(e,t,n){const r=e.getProps();return Ns(r,t,r.custom,e)}function fc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,At(n))}function hc(e){return uc(e)?e[e.length-1]||0:e}function pc(e,t){const n=dc(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=hc(s[o]);fc(e,o,a)}}function mc(e){return!!(re(e)&&e.add)}function gc(e,t){const n=e.getValue("willChange");if(mc(n))return n.add(t);if(!n&&Me.WillChange){const r=new Me.WillChange("auto");e.addValue("willChange",r),r.add(t)}}const fr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bc="data-"+fr("framerAppearId");function yc(e){return e.props[bc]}const _c=e=>e!==null;function vc(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_c),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const wc={type:"spring",stiffness:500,damping:25,restSpeed:10},xc=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kc={type:"keyframes",duration:.8},Sc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tc=(e,{keyframes:t})=>t.length>2?kc:it.has(e)?e.startsWith("scale")?xc(t[1]):wc:Sc;function Ac({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const Is=(e,t,n,r={},i,s)=>o=>{const a=vs(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-we(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Ac(a)||Object.assign(d,Tc(e,d)),d.duration&&(d.duration=we(d.duration)),d.repeatDelay&&(d.repeatDelay=we(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(lr(d),d.delay===0&&(u=!0)),(Me.instantAnimations||Me.skipAnimations)&&(u=!0,lr(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!s&&t.get()!==void 0){const h=vc(d.keyframes,a);if(h!==void 0){Ce.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Jn(d):new Rl(d)};function Mc({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Cc(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var d;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const h=e.getValue(u,(d=e.latestValues[u])!=null?d:null),p=a[u];if(p===void 0||c&&Mc(c,u))continue;const y={delay:n,...vs(s||{},u)},_=h.get();if(_!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===_&&!y.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const k=yc(e);if(k){const M=window.MotionHandoffAnimation(k,u,Ce);M!==null&&(y.startTime=M,g=!0)}}gc(e,u),h.start(Is(u,h,p,e.shouldReduceMotion&&ws.has(u)?{type:!1}:y,e,g));const m=h.animation;m&&l.push(m)}return o&&Promise.all(l).then(()=>{Ce.update(()=>{o&&pc(e,o)})}),l}function Ec({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vc(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Pc(e,t){return Ec(Vc(e.getBoundingClientRect(),t))}const Os={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hr={};for(const e in Os)hr[e]={isEnabled:t=>Os[e].some(n=>!!t[n])};const Ls=()=>({min:0,max:0}),pr=()=>({x:Ls(),y:Ls()}),Rc=typeof window!="undefined",mr={current:null},Ds={current:!1};function Fc(){if(Ds.current=!0,!!Rc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mr.current=e.matches;e.addEventListener("change",t),t()}else mr.current=!1}function qc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $c(e){return typeof e=="string"||Array.isArray(e)}const Nc=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Bs(e){return qc(e.animate)||Nc.some(t=>$c(e[t]))}function Ic(e){return!!(Bs(e)||e.variants)}function Oc(e,t,n){for(const r in t){const i=t[r],s=n[r];if(re(i))e.addValue(r,i);else if(re(s))e.addValue(r,At(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,At(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const zs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ws{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=or,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ue.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Ce.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Bs(n),this.isVariantNode=Ic(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in u){const p=u[h];l[h]!==void 0&&re(p)&&p.set(l[h])}}mount(t){var n;this.current=t,Mt.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),Ds.current||Fc(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mr.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Nn(this.notifyUpdate),Nn(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){var n;this.children.add(t),(n=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=it.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in hr){const n=hr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<zs.length;r++){const i=zs[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Oc(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=At(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!=null?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(ki(r)||Si(r))?r=parseFloat(r):!Jl(r)&&nt.test(n)&&(r=Ms(t,n)),this.setBaseTarget(t,re(r)?r.get():r)),re(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ns(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!re(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ti),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Yl.render(this.render)}}class Us extends Ws{constructor(){super(...arguments),this.KeyframeResolver=jl}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;re(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Lc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dc=rt.length;function Bc(e,t,n){let r="",i=!0;for(let s=0;s<Dc;s++){const o=rt[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Cs(a,ur[o]);if(!l){i=!1;const d=Lc[o]||o;r+=`${d}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function js(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(it.has(l)){o=!0;continue}else if(Bi(l)){i[l]=c;continue}else{const d=Cs(c,ur[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=Bc(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${c} ${d}`}}function Gs(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}const zc={};function Wc(e,{layout:t,layoutId:n}){return it.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zc[e]||e==="opacity")}function Ks(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(re(r[o])||t.style&&re(t.style[o])||Wc(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function Uc(e){return window.getComputedStyle(e)}class jc extends Us{constructor(){super(...arguments),this.type="html",this.renderInstance=Gs}readValueFromInstance(t,n){var r;if(it.has(n))return(r=this.projection)!=null&&r.isProjecting?tr(n):cl(t,n);{const i=Uc(t),s=(Bi(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Pc(t,n)}build(t,n,r){js(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ks(t,n,r)}}function Gc(e,t){return e in t}class Kc extends Ws{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Gc(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return pr()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const Hc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yc={offset:"strokeDashoffset",array:"strokeDasharray"};function Xc(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Hc:Yc;e[s.offset]=V.transform(-r);const o=V.transform(t),a=V.transform(n);e[s.array]=`${o} ${a}`}function Zc(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,c,d){var p,y;if(js(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:h}=e;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=(p=u.transformOrigin)!=null?p:"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=(y=d==null?void 0:d.transformBox)!=null?y:"fill-box",delete u.transformBox),t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),r!==void 0&&(u.scale=r),i!==void 0&&Xc(u,i,s,o,!1)}const Hs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Jc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Qc(e,t,n,r){Gs(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Hs.has(i)?i:fr(i),t.attrs[i])}function eu(e,t,n){const r=Ks(e,t,n);for(const i in e)if(re(e[i])||re(t[i])){const s=rt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class tu extends Us{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pr}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(it.has(n)){const r=As(n);return r&&r.default||0}return n=Hs.has(n)?n:fr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return eu(t,n,r)}build(t,n,r){Zc(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Qc(t,n,r,i)}mount(t){this.isSVGTag=Jc(t.tagName),super.mount(t)}}function nu(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Vs(e)&&!Xl(e)?new tu(t):new jc(t);n.mount(e),Mt.set(e,n)}function ru(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Kc(t);n.mount(e),Mt.set(e,n)}function iu(e,t,n){const r=re(e)?e:At(e);return r.start(Is("",r,t,n)),r.animation}function su(e,t){return re(e)||typeof e=="number"||typeof e=="string"&&!dr(t)}function Ys(e,t,n,r){const i=[];if(su(e,t))i.push(iu(e,dr(t)&&t.default||t,n&&(n.default||n)));else{const s=Ps(e,t,r),o=s.length;for(let a=0;a<o;a++){const l=s[a],c=l instanceof Element?nu:ru;Mt.has(l)||c(l);const d=Mt.get(l),u={...n};"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(a,o)),i.push(...Cc(d,{...t,transition:u},{}))}}return i}function ou(e,t,n){const r=[];return sc(e,t,n,{spring:kt}).forEach(({keyframes:s,transition:o},a)=>{r.push(...Ys(a,s,o))}),r}function au(e){return Array.isArray(e)&&e.some(Array.isArray)}function lu(e){function t(n,r,i){let s=[],o;if(au(n))s=ou(n,r,e);else{const{onComplete:l,...c}=i||{};typeof l=="function"&&(o=l),s=Ys(n,r,c,e)}const a=new ql(s);return o&&a.finished.then(o),a}return t}const xe=lu();function Xs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Xs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cu(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xs(e))&&(r&&(r+=" "),r+=t);return r}const gr="-",uu=e=>{const t=fu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(gr);return a[0]===""&&a.length!==1&&a.shift(),Zs(a,t)||du(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Zs=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Zs(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(gr);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Js=/^\[(.+)\]$/,du=e=>{if(Js.test(e)){const t=Js.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fu=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)br(n[i],r,i,t);return r},br=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Qs(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(hu(i)){br(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{br(o,Qs(t,s),n,r)})})},Qs=(e,t)=>{let n=e;return t.split(gr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hu=e=>e.isThemeGetter,pu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},yr="!",_r=":",mu=_r.length,gu=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,a=0,l=0,c;for(let y=0;y<i.length;y++){let _=i[y];if(o===0&&a===0){if(_===_r){s.push(i.slice(l,y)),l=y+mu;continue}if(_==="/"){c=y;continue}}_==="["?o++:_==="]"?o--:_==="("?a++:_===")"&&a--}const d=s.length===0?i:i.substring(l),u=bu(d),h=u!==d,p=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:p}};if(t){const i=t+_r,s=r;r=o=>o.startsWith(i)?s(o.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},bu=e=>e.endsWith(yr)?e.substring(0,e.length-1):e.startsWith(yr)?e.substring(1):e,yu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(o=>{o[0]==="["||t[o]?(i.push(...s.sort(),o),s=[]):s.push(o)}),i.push(...s.sort()),i}},_u=e=>({cache:pu(e.cacheSize),parseClassName:gu(e),sortModifiers:yu(e),...uu(e)}),vu=/\s+/,wu=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],a=e.trim().split(vu);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:h,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:_}=n(d);if(u){l=d+(l.length>0?" "+l:l);continue}let g=!!_,m=r(g?y.substring(0,_):y);if(!m){if(!g){l=d+(l.length>0?" "+l:l);continue}if(m=r(y),!m){l=d+(l.length>0?" "+l:l);continue}g=!1}const k=s(h).join(":"),M=p?k+yr:k,C=M+m;if(o.includes(C))continue;o.push(C);const S=i(m,g);for(let E=0;E<S.length;++E){const I=S[E];o.push(M+I)}l=d+(l.length>0?" "+l:l)}return l};function xu(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=eo(t))&&(r&&(r+=" "),r+=n);return r}const eo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=eo(e[r]))&&(n&&(n+=" "),n+=t);return n};function ku(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((d,u)=>u(d),e());return n=_u(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=wu(l,n);return i(l,d),d}return function(){return s(xu.apply(null,arguments))}}const X=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},to=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,no=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Su=/^\d+\/\d+$/,Tu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Au=/\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$/,Mu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Eu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,st=e=>Su.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>!!e&&Number.isInteger(Number(e)),vr=e=>e.endsWith("%")&&F(e.slice(0,-1)),Ee=e=>Tu.test(e),Vu=()=>!0,Pu=e=>Au.test(e)&&!Mu.test(e),ro=()=>!1,Ru=e=>Cu.test(e),Fu=e=>Eu.test(e),qu=e=>!w(e)&&!x(e),$u=e=>ot(e,lo,ro),w=e=>to.test(e),Ue=e=>ot(e,co,Pu),wr=e=>ot(e,Du,F),io=e=>ot(e,oo,ro),Nu=e=>ot(e,ao,Fu),Qt=e=>ot(e,uo,Ru),x=e=>no.test(e),Ct=e=>at(e,co),Iu=e=>at(e,Bu),so=e=>at(e,oo),Ou=e=>at(e,lo),Lu=e=>at(e,ao),en=e=>at(e,uo,!0),ot=(e,t,n)=>{const r=to.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},at=(e,t,n=!1)=>{const r=no.exec(e);return r?r[1]?t(r[1]):n:!1},oo=e=>e==="position"||e==="percentage",ao=e=>e==="image"||e==="url",lo=e=>e==="length"||e==="size"||e==="bg-size",co=e=>e==="length",Du=e=>e==="number",Bu=e=>e==="family-name",uo=e=>e==="shadow",zu=ku(()=>{const e=X("color"),t=X("font"),n=X("text"),r=X("font-weight"),i=X("tracking"),s=X("leading"),o=X("breakpoint"),a=X("container"),l=X("spacing"),c=X("radius"),d=X("shadow"),u=X("inset-shadow"),h=X("text-shadow"),p=X("drop-shadow"),y=X("blur"),_=X("perspective"),g=X("aspect"),m=X("ease"),k=X("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),x,w],E=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],f=()=>[x,w,l],A=()=>[st,"full","auto",...f()],q=()=>[Fe,"none","subgrid",x,w],R=()=>["auto",{span:["full",Fe,x,w]},Fe,x,w],W=()=>[Fe,"auto",x,w],J=()=>["auto","min","max","fr",x,w],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...f()],Y=()=>[st,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],v=()=>[e,x,w],ie=()=>[...C(),so,io,{position:[x,w]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",Ou,$u,{size:[x,w]}],ye=()=>[vr,Ct,Ue],O=()=>["","none","full",c,x,w],G=()=>["",F,Ct,Ue],te=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[F,vr,so,io],ke=()=>["","none",y,x,w],Se=()=>["none",F,x,w],sn=()=>["none",F,x,w],Mr=()=>[F,x,w],on=()=>[st,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[Vu],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[qu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",F],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",st,w,x,g]}],container:["container"],columns:[{columns:[F,w,x,a]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:S()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[Fe,"auto",x,w]}],basis:[{basis:[st,"full","auto",a,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,st,"auto","initial","none",w]}],grow:[{grow:["",F,x,w]}],shrink:[{shrink:["",F,x,w]}],order:[{order:[Fe,"first","last","none",x,w]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[a,"screen",...Y()]}],"min-w":[{"min-w":[a,"screen","none",...Y()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",n,Ct,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,x,wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vr,w]}],"font-family":[{font:[Iu,w,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:[i,x,w]}],"line-clamp":[{"line-clamp":[F,"none",x,wr]}],leading:[{leading:[s,...f()]}],"list-image":[{"list-image":["none",x,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",x,w]}],"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:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",x,Ue]}],"text-decoration-color":[{decoration:v()}],"underline-offset":[{"underline-offset":[F,"auto",x,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x,w]}],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",x,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fe,x,w],radial:["",x,w],conic:[Fe,x,w]},Lu,Nu]}],"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:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"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:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,x,w]}],"outline-w":[{outline:["",F,Ct,Ue]}],"outline-color":[{outline:v()}],shadow:[{shadow:["","none",d,en,Qt]}],"shadow-color":[{shadow:v()}],"inset-shadow":[{"inset-shadow":["none",u,en,Qt]}],"inset-shadow-color":[{"inset-shadow":v()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:v()}],"ring-offset-w":[{"ring-offset":[F,Ue]}],"ring-offset-color":[{"ring-offset":v()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":v()}],"text-shadow":[{"text-shadow":["none",h,en,Qt]}],"text-shadow-color":[{"text-shadow":v()}],opacity:[{opacity:[F,x,w]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"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":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"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":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"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":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"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":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"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":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"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":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":v()}],"mask-image-y-to-color":[{"mask-y-to":v()}],"mask-image-radial":[{"mask-radial":[x,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"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:ie()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",x,w]}],filter:[{filter:["","none",x,w]}],blur:[{blur:ke()}],brightness:[{brightness:[F,x,w]}],contrast:[{contrast:[F,x,w]}],"drop-shadow":[{"drop-shadow":["","none",p,en,Qt]}],"drop-shadow-color":[{"drop-shadow":v()}],grayscale:[{grayscale:["",F,x,w]}],"hue-rotate":[{"hue-rotate":[F,x,w]}],invert:[{invert:["",F,x,w]}],saturate:[{saturate:[F,x,w]}],sepia:[{sepia:["",F,x,w]}],"backdrop-filter":[{"backdrop-filter":["","none",x,w]}],"backdrop-blur":[{"backdrop-blur":ke()}],"backdrop-brightness":[{"backdrop-brightness":[F,x,w]}],"backdrop-contrast":[{"backdrop-contrast":[F,x,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,x,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,x,w]}],"backdrop-invert":[{"backdrop-invert":["",F,x,w]}],"backdrop-opacity":[{"backdrop-opacity":[F,x,w]}],"backdrop-saturate":[{"backdrop-saturate":[F,x,w]}],"backdrop-sepia":[{"backdrop-sepia":["",F,x,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",x,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",x,w]}],ease:[{ease:["linear","initial",m,x,w]}],delay:[{delay:[F,x,w]}],animate:[{animate:["none",k,x,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,x,w]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:sn()}],"scale-x":[{"scale-x":sn()}],"scale-y":[{"scale-y":sn()}],"scale-z":[{"scale-z":sn()}],"scale-3d":["scale-3d"],skew:[{skew:Mr()}],"skew-x":[{"skew-x":Mr()}],"skew-y":[{"skew-y":Mr()}],transform:[{transform:[x,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:on()}],"translate-x":[{"translate-x":on()}],"translate-y":[{"translate-y":on()}],"translate-z":[{"translate-z":on()}],"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",x,w]}],"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":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"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",x,w]}],fill:[{fill:["none",...v()]}],"stroke-w":[{stroke:[F,Ct,Ue,wr]}],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 xr(...e){return zu(cu(e))}function Wu(e,t){for(var n in t)e[n]=t[n];return e}function fo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function ho(e,t){this.props=e,this.context=t}(ho.prototype=new _e).isPureReactComponent=!0,ho.prototype.shouldComponentUpdate=function(e,t){return fo(this.props,e)||fo(this.state,t)};var po=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),po&&po(e)};var Uu=T.__e;T.__e=function(e,t,n,r){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Uu(e,t,n,r)};var mo=T.unmount;function go(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Wu({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return go(r,t,n)})),e}function bo(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return bo(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function kr(){this.__u=0,this.o=null,this.__b=null}function yo(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tn(){this.i=null,this.l=null}T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),mo&&mo(e)},(kr.prototype=new _e).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=yo(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=bo(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},kr.prototype.componentWillUnmount=function(){this.o=[]},kr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=go(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&mt(Ae,null,e.fallback);return i&&(i.__u&=-33),[mt(Ae,null,t.__a?null:e.children),i]};var _o=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ju(e){return this.getChildContext=function(){return e.context},e.children}function Gu(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Ke(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(i,s){this.childNodes.push(i),t.h.insertBefore(i,s)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}Ke(mt(ju,{context:t.context},e.__v),t.v)}function Ku(e,t){var n=mt(Gu,{__v:e,h:t});return n.containerInfo=t,n}(tn.prototype=new _e).__a=function(e){var t=this,n=yo(t.__v),r=t.l.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),_o(t,e,r)):i()};n?n(s):s()}},tn.prototype.render=function(e){this.i=null,this.l=new Map;var t=qt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},tn.prototype.componentDidUpdate=tn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){_o(e,n,t)})};var Hu=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Yu=/^(?: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]/,Xu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zu=/[A-Z0-9]/g,Ju=typeof document!="undefined",Qu=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var vo=T.event;function ed(){}function td(){return this.cancelBubble}function nd(){return this.defaultPrevented}T.event=function(e){return vo&&(e=vo(e)),e.persist=ed,e.isPropagationStopped=td,e.isDefaultPrevented=nd,e.nativeEvent=e};var rd={enumerable:!1,configurable:!0,get:function(){return this.class}},wo=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},s=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||Ju&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Qu(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":Xu.test(o)&&(o=l):l=o="oninput":s&&Yu.test(o)?o=o.replace(Zu,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[o=l]&&(o="oninputCapture"),i[o]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=qt(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=qt(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",rd)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Hu,wo&&wo(e)};var xo=T.__r;T.__r=function(e){xo&&xo(e),e.__c};var ko=T.diffed;T.diffed=function(e){ko&&ko(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};const lt=Ie(!1),id=Ie(null);function sd({workspaceSlug:e,theme:t}){const n=se(null),r=se(null),i=se(null),s=se(null),[o,a]=Ot(null),l=se(null),c=se(!1);ve(()=>{const g=document.createElement("div");g.id="squelette-banner-modal-portal",g.style.position="fixed",g.style.inset="0",g.style.zIndex="999999",g.style.pointerEvents="none";const m=g.attachShadow({mode:"open"});return Bt(m,ci),document.body.appendChild(g),i.current=g,a(m),console.log("[BannerModal] Shadow root created"),()=>{i.current&&(document.body.removeChild(i.current),i.current=null,a(null))}},[]);const d=()=>{var g;if(!(!((g=s.current)!=null&&g.contentWindow)||!l.current))try{const m=new URL(vn).origin;s.current.contentWindow.postMessage({type:"squelette-identify",payload:l.current},m)}catch(m){console.warn("[BannerModal] Failed to send identity to iframe:",m)}};ve(()=>{const g=li();g&&(l.current=g);const m=M=>{var S;const C=M;l.current=(S=C.detail)!=null?S:null,c.current?d():console.info("[BannerModal] Iframe not ready yet, identity will be sent when ready")},k=M=>{var C;((C=M.data)==null?void 0:C.type)==="squelette-iframe-ready"&&(c.current=!0,l.current?d():console.log("[BannerModal] Iframe ready but no identity yet"))};return window.addEventListener("squelette:identity",m),window.addEventListener("message",k),()=>{window.removeEventListener("squelette:identity",m),window.removeEventListener("message",k)}},[]);const u=()=>{console.log("[BannerModal] Iframe onLoad event fired")};ve(()=>{if(!(!n.current||!r.current||!o)&<.value){const g=n.current,m=r.current;xe(g,{opacity:1},{duration:.5}),xe(m,{y:0},{type:"spring",mass:.2,damping:20,stiffness:75}),xe(m,{opacity:1},{duration:.2})}},[lt.value,o]);const h=async()=>{if(!n.current||!r.current){lt.value=!1;return}const g=n.current,m=r.current;await Promise.all([xe(g,{opacity:0},{duration:.2}).finished,xe(m,{opacity:0,y:-70},{duration:.2,ease:[.16,1,.3,1]}).finished]),lt.value=!1},p=g=>{g.target===n.current&&h()};if(!o)return null;const y=mn(()=>P("iframe",{ref:s,className:"w-full h-full border-none outline-none border border-red-400",src:`https://www.squelette.app/widget/${e}/changelog/last?theme=${t}`,onLoad:u}),[]),_=P("div",{ref:n,className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center",style:{pointerEvents:lt.value?"auto":"none",opacity:0},onClick:p,children:P("div",{ref:r,className:"bg-white rounded-3xl drop-shadow-xl max-w-lg w-full mx-4 p-0 border-none outline-none relative overflow-hidden",style:{opacity:0,transform:"translateY(-70px)",height:600},children:y})});return Ku(_,o)}const So=()=>{try{return localStorage.getItem("squelette-enable-cache")!=="false"}catch{return!0}},od=5*60*1e3,To="squelette_banner_last_ticket",me=Ie(null),nn=Ie(!1),Sr=Ie(!0);function ad({workspaceSlug:e="squelette",theme:t}){const n=se(null),r=se(null);ve(()=>{fd(e).then(o=>{if(!o)return;const a=localStorage.getItem(To);(!So()||!a||new Date(o.created_at)>new Date(a))&&(me.value=o,Sr.value=!0)})},[e]),ve(()=>{if(!n.current||!me.value)return;const o=setTimeout(()=>{n.current&&xe(n.current,{y:0,opacity:1},{ease:ud,duration:1,onComplete:()=>{nn.value=!0}})},500);return()=>clearTimeout(o)},[me.value]),ve(()=>{if(!n.current||!r.current)return;let o=null;const a=n.current,l=r.current,c=()=>{if(!l)return null;o=xe(l,{rotate:[0,-15,15,-15,15,0]},{duration:.6,repeat:1/0,repeatType:"reverse"})},d=()=>{o==null||o.stop()};return a.addEventListener("mouseenter",c),a.addEventListener("mouseleave",d),()=>{a.removeEventListener("mouseleave",d),a.removeEventListener("mouseenter",c)}},[me.value]);const i=async()=>{!me.value||!n.current||(nn.value=!1,await new Promise(o=>setTimeout(o,400)),await xe(n.current,{y:"-100%",opacity:0},{duration:.5,ease:[.16,1,.3,1]}).finished,localStorage.setItem(To,me.value.created_at),Sr.value=!1)},s=()=>{me.value&&(id.value=me.value,lt.value=!0,i())};return me.value?P(Ae,{children:[Sr.value&&P("div",{className:"flex items-center justify-center w-full h-[64px] overflow-visible",children:P("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:n,onClick:s,children:[P("div",{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:[P("span",{children:"Nouveau"}),P("div",{ref:r,className:"inline",children:P(cd,{className:"size-4"})})]}),P(ld,{onClose:i})]})}),P(sd,{workspaceSlug:e,theme:t})]}):null}function ld({onClose:e}){const t=se(null),n=se(null);oa(()=>{if(!(!t.current||!n.current))if(nn.value){const i=n.current.scrollWidth;xe(t.current,{width:i+20,paddingLeft:"0.5rem",paddingRight:"0.5rem"},{duration:1.2,ease:[.16,1,.3,1]})}else xe(t.current,{width:0,paddingLeft:0,paddingRight:0},{duration:.3,ease:[.16,1,.3,1]})});const r=i=>{i.stopPropagation(),e()};return me.value?P("div",{className:"overflow-hidden min-w-0 items-baseline box-border inline-flex",style:{width:0,paddingLeft:0,paddingRight:0},ref:t,children:P("div",{className:"gap-2 inline-flex items-center",ref:n,children:[P("span",{className:"font-medium text-sm whitespace-nowrap max-w-[400px]",style:{color:"var(--squelette-banner-text)"},children:P(hd,{duration:4,gap:16,children:me.value.title})}),P("button",{onClick:r,className:"p-0 border-0 bg-transparent cursor-pointer transition-opacity",style:{color:"var(--squelette-banner-text)",opacity:1},onMouseEnter:i=>{i.currentTarget.style.opacity="var(--squelette-banner-button-hover)"},onMouseLeave:i=>{i.currentTarget.style.opacity="1"},"aria-label":"Close banner",children:P(dd,{className:"size-4"})})]})}):null}function cd({className:e}){return P("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:xr("lucide lucide-megaphone-icon lucide-megaphone origin-center",e),children:[P("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"}),P("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"}),P("path",{d:"M8 6v8"})]})}function ud(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375}function dd({className:e}){return P("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:xr("lucide lucide-x-icon lucide-x",e),children:[P("path",{d:"M18 6 6 18"}),P("path",{d:"m6 6 12 12"})]})}async function fd(e){var t;try{const n=So();if(n){const o=`squelette_banner_cache_${e}`,a=localStorage.getItem(o);if(a){const{ticket:l,timestamp:c}=JSON.parse(a);if(!(Date.now()-c>od))return l}}const i=await(await fetch(`https://www.squelette.app/api/public/w/${e}/changelog/last`)).json(),s=(t=i==null?void 0:i.ticket)!=null?t:null;if(n&&s){const o=`squelette_banner_cache_${e}`,a={ticket:s,timestamp:Date.now()};localStorage.setItem(o,JSON.stringify(a))}return s}catch(n){return console.error("Error fetching changelog ticket:",n),null}}function hd({children:e,duration:t=10,gap:n=8,className:r,delay:i=.7}){const s=se(null),o=se(null),[a,l]=Ot(0),[c,d]=Ot(0);Oo(()=>{const _=()=>{o.current&&l(Math.ceil(o.current.offsetWidth)),s.current&&d(Math.ceil(s.current.offsetWidth))};_();const g=new ResizeObserver(_),m=new ResizeObserver(_);return o.current&&g.observe(o.current),s.current&&m.observe(s.current),()=>{g.disconnect(),m.disconnect()}},[e,n]);const u=a+n,h=u>0?Math.max(2,Math.ceil((c+u)/u)+1):2,y=t/1;return P(Ae,{children:[P("style",{children:`
|
|
164
164
|
@keyframes marquee-banner {
|
|
165
165
|
from { transform: translate3d(0,0,0); }
|
|
166
166
|
to { transform: translate3d(calc(-${u}px),0,0); }
|
|
167
167
|
}
|
|
168
|
-
`}),P("span",{ref:s,className:xr("relative inline-block overflow-hidden align-baseline w-full translate-y-0.5",r),style:{maskImage:"linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%)"},"aria-label":e,children:P("span",{className:"inline-flex items-baseline will-change-transform",style:{gap:`${n}px`,animation:nn.value&&u>0?`marquee-banner ${y}s linear ${i}s infinite`:"none"},children:Array.from({length:h}).map((_,g)=>P("span",{ref:g===0?o:null,className:"whitespace-nowrap shrink-0",children:e},g))})})]})}class rn extends HTMLElement{constructor(){super();Pt(this,"shadow");this.shadow=this.attachShadow({mode:"open"}),Bt(this.shadow,ci),this.style.position="fixed",this.style.top="0",this.style.left="0",this.style.right="0",this.style.zIndex="9999"}connectedCallback(){var i;const n=(i=this.getAttribute("workspace-slug"))!=null?i:"squelette",r=this.getAttribute("theme")||"light";Ke(P(ad,{workspaceSlug:n,theme:r}),this.shadow)}disconnectedCallback(){Ke(null,this.shadow)}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-banner")||(console.debug("[SqueletteBanner] auto-registering custom element"),customElements.define("squelette-banner",rn)));const Ao={init({slug:e,theme:t,contentTheme:n}){if(typeof document=="undefined")return null;customElements.get("squelette-banner")||customElements.define("squelette-banner",rn);const r=document.querySelector("squelette-banner");if(r)return t&&this.setTheme(t),r;const i=new rn;return i.setAttribute("workspace-slug",e),i.setAttribute("theme",n!=null?n:"light"),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 pd(e){switch(e){case"roadmap":return"Roadmap";case"changelog":return"Changelog";case"feedback":default:return Dt}}function Mo(e){var i;Sn();const t=document.createElement(yn);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(([s,o])=>t.setAttribute(s,o)),((i=e.appendTo)!=null?i:document.body).appendChild(t);const r=li();return r&&window.dispatchEvent(new CustomEvent("squelette:identity",{detail:r})),t}function Tr(e,t,n,r){var s;const i=Mo({project:t,board:n!=null?n:void 0,view:e,theme:r==null?void 0:r.theme,locale:r==null?void 0:r.locale,token:r==null?void 0:r.token,signature:r==null?void 0:r.signature,appendTo:r==null?void 0:r.appendTo,attributes:r==null?void 0:r.attributes,label:(s=r==null?void 0:r.label)!=null?s:pd(e),apiBase:r==null?void 0:r.apiBase});if(r){const o=Xo(i,r);if(o.length>0){const a=i.destroy.bind(i);i.destroy=async()=>{for(const l of o.splice(0,o.length))l();await a()}}}return i}function Ar(){const e=window;e.SqueletteWidget||(e.SqueletteWidget={create:Mo,createFeedbackWidget:(t,n,r)=>Tr("feedback",t,n,r),createRoadmapWidget:(t,n,r)=>Tr("roadmap",t,n,r),createChangelogWidget:(t,n)=>Tr("changelog",t,null,n),identify:oi,clearIdentity:ai,banner:Ao,version:"0.3.
|
|
168
|
+
`}),P("span",{ref:s,className:xr("relative inline-block overflow-hidden align-baseline w-full translate-y-0.5",r),style:{maskImage:"linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%)"},"aria-label":e,children:P("span",{className:"inline-flex items-baseline will-change-transform",style:{gap:`${n}px`,animation:nn.value&&u>0?`marquee-banner ${y}s linear ${i}s infinite`:"none"},children:Array.from({length:h}).map((_,g)=>P("span",{ref:g===0?o:null,className:"whitespace-nowrap shrink-0",children:e},g))})})]})}class rn extends HTMLElement{constructor(){super();Pt(this,"shadow");this.shadow=this.attachShadow({mode:"open"}),Bt(this.shadow,ci),this.style.position="fixed",this.style.top="0",this.style.left="0",this.style.right="0",this.style.zIndex="9999"}connectedCallback(){var i;const n=(i=this.getAttribute("workspace-slug"))!=null?i:"squelette",r=this.getAttribute("theme")||"light";Ke(P(ad,{workspaceSlug:n,theme:r}),this.shadow)}disconnectedCallback(){Ke(null,this.shadow)}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-banner")||(console.debug("[SqueletteBanner] auto-registering custom element"),customElements.define("squelette-banner",rn)));const Ao={init({slug:e,theme:t,contentTheme:n}){if(typeof document=="undefined")return null;customElements.get("squelette-banner")||customElements.define("squelette-banner",rn);const r=document.querySelector("squelette-banner");if(r)return t&&this.setTheme(t),r;const i=new rn;return i.setAttribute("workspace-slug",e),i.setAttribute("theme",n!=null?n:"light"),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 pd(e){switch(e){case"roadmap":return"Roadmap";case"changelog":return"Changelog";case"feedback":default:return Dt}}function Mo(e){var i;Sn();const t=document.createElement(yn);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(([s,o])=>t.setAttribute(s,o)),((i=e.appendTo)!=null?i:document.body).appendChild(t);const r=li();return r&&window.dispatchEvent(new CustomEvent("squelette:identity",{detail:r})),t}function Tr(e,t,n,r){var s;const i=Mo({project:t,board:n!=null?n:void 0,view:e,theme:r==null?void 0:r.theme,locale:r==null?void 0:r.locale,token:r==null?void 0:r.token,signature:r==null?void 0:r.signature,appendTo:r==null?void 0:r.appendTo,attributes:r==null?void 0:r.attributes,label:(s=r==null?void 0:r.label)!=null?s:pd(e),apiBase:r==null?void 0:r.apiBase});if(r){const o=Xo(i,r);if(o.length>0){const a=i.destroy.bind(i);i.destroy=async()=>{for(const l of o.splice(0,o.length))l();await a()}}}return i}function Ar(){const e=window;e.SqueletteWidget||(e.SqueletteWidget={create:Mo,createFeedbackWidget:(t,n,r)=>Tr("feedback",t,n,r),createRoadmapWidget:(t,n,r)=>Tr("roadmap",t,n,r),createChangelogWidget:(t,n)=>Tr("changelog",t,null,n),identify:oi,clearIdentity:ai,banner:Ao,version:"0.3.4",cdn:zo})}Sn(),Ar(),Ar();function md(...e){return window.SqueletteWidget.createFeedbackWidget(...e)}function gd(...e){return window.SqueletteWidget.createRoadmapWidget(...e)}function bd(...e){return window.SqueletteWidget.createChangelogWidget(...e)}function yd(...e){return window.SqueletteWidget.create(...e)}function Co({src:e,title:t,onLoaded:n,onClose:r}){const i=se(null);return ve(()=>{const s=i.current;if(!s)return;const o=()=>{s.dataset.ready="true",n==null||n()};return s.addEventListener("load",o),()=>s.removeEventListener("load",o)},[n]),ve(()=>{const s=o=>{console.log("WidgetFrame received message:",o.data),o.data.type==="close-feedback-widget"&&(console.log("WidgetFrame closing widget as requested"),r())};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)},[r]),P("iframe",{ref:i,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 _d=Object.freeze(Object.defineProperty({__proto__:null,WidgetFrame:Co,default:Co,stylesText:Wr},Symbol.toStringTag,{value:"Module"}));return $.SqueletteBanner=Ao,$.SqueletteBannerElement=rn,$.SqueletteWidgetElement=ii,$.clearIdentity=ai,$.createChangelogWidget=bd,$.createFeedbackWidget=md,$.createRoadmapWidget=gd,$.createWidget=yd,$.ensureGlobalHelper=Ar,$.identify=oi,$.registerSqueletteWidget=Sn,Object.defineProperty($,Symbol.toStringTag,{value:"Module"}),$}({});
|