@zenuml/core 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/zenuml.esm.mjs +10 -6
- package/dist/zenuml.js +4 -4
- package/package.json +1 -1
package/dist/zenuml.esm.mjs
CHANGED
|
@@ -56,7 +56,7 @@ function X8() {
|
|
|
56
56
|
return I3 || (I3 = 1, nh.exports = $8()), nh.exports;
|
|
57
57
|
}
|
|
58
58
|
var S = X8();
|
|
59
|
-
const Bi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_GIT_BRANCH: "main", VITE_APP_GIT_HASH: "
|
|
59
|
+
const Bi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_GIT_BRANCH: "main", VITE_APP_GIT_HASH: "9fb7d922" };
|
|
60
60
|
function S5(i) {
|
|
61
61
|
return "init" in i;
|
|
62
62
|
}
|
|
@@ -36469,7 +36469,7 @@ const XC = (i) => /* @__PURE__ */ L.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
36469
36469
|
/* @__PURE__ */ S.jsxs("span", { className: "inline-block px-2", children: [
|
|
36470
36470
|
"main",
|
|
36471
36471
|
":",
|
|
36472
|
-
"
|
|
36472
|
+
"9fb7d922"
|
|
36473
36473
|
] })
|
|
36474
36474
|
] }) : null;
|
|
36475
36475
|
}, G0 = ({
|
|
@@ -45239,7 +45239,7 @@ class Kv extends L.Component {
|
|
|
45239
45239
|
] }) : this.props.children;
|
|
45240
45240
|
}
|
|
45241
45241
|
}
|
|
45242
|
-
const Wv = "4.4.
|
|
45242
|
+
const Wv = "4.4.1", qv = (i) => w7() - i, w7 = () => performance.now();
|
|
45243
45243
|
function Zv(i, t) {
|
|
45244
45244
|
return new Promise((n) => {
|
|
45245
45245
|
const s = {}, l = () => {
|
|
@@ -56577,9 +56577,13 @@ function nw() {
|
|
|
56577
56577
|
L2,
|
|
56578
56578
|
`url(${P4})`,
|
|
56579
56579
|
{ weight: "400", style: "normal" }
|
|
56580
|
-
).load().then(
|
|
56581
|
-
|
|
56582
|
-
|
|
56580
|
+
).load().then(
|
|
56581
|
+
(t) => {
|
|
56582
|
+
document.fonts.add(t), qE();
|
|
56583
|
+
},
|
|
56584
|
+
() => {
|
|
56585
|
+
}
|
|
56586
|
+
)), Uh);
|
|
56583
56587
|
}
|
|
56584
56588
|
class B7 {
|
|
56585
56589
|
static version = Wv;
|
package/dist/zenuml.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var dl;function sg(){if(dl)return Z8;dl=1;var s=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,l,L){var c=null;if(L!==void 0&&(c=""+L),l.key!==void 0&&(c=""+l.key),"key"in l){L={};for(var u in l)u!=="key"&&(L[u]=l[u])}else L=l;return l=L.ref,{$$typeof:s,type:i,key:c,ref:l!==void 0?l:null,props:L}}return Z8.Fragment=e,Z8.jsx=n,Z8.jsxs=n,Z8}var fl;function og(){return fl||(fl=1,en.exports=sg()),en.exports}var _=og();const C9={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_GIT_BRANCH:"main",VITE_APP_GIT_HASH:"
|
|
10
|
+
*/var dl;function sg(){if(dl)return Z8;dl=1;var s=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,l,L){var c=null;if(L!==void 0&&(c=""+L),l.key!==void 0&&(c=""+l.key),"key"in l){L={};for(var u in l)u!=="key"&&(L[u]=l[u])}else L=l;return l=L.ref,{$$typeof:s,type:i,key:c,ref:l!==void 0?l:null,props:L}}return Z8.Fragment=e,Z8.jsx=n,Z8.jsxs=n,Z8}var fl;function og(){return fl||(fl=1,en.exports=sg()),en.exports}var _=og();const C9={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_GIT_BRANCH:"main",VITE_APP_GIT_HASH:"9fb7d922"};function gl(s){return"init"in s}function tn(s){return!!s.write}function pl(s){return"v"in s||"e"in s}function m7(s){if("e"in s)throw s.e;if((C9?"production":void 0)!=="production"&&!("v"in s))throw new Error("[Bug] atom state is not initialized");return s.v}const x7=new WeakMap;function ml(s){var e;return w7(s)&&!!((e=x7.get(s))!=null&&e[0])}function rg(s){const e=x7.get(s);e?.[0]&&(e[0]=!1,e[1].forEach(n=>n()))}function nn(s,e){let n=x7.get(s);if(!n){n=[!0,new Set],x7.set(s,n);const i=()=>{n[0]=!1};s.then(i,i)}n[1].add(e)}function w7(s){return typeof s?.then=="function"}function xl(s,e,n){if(!n.p.has(s)){n.p.add(s);const i=()=>n.p.delete(s);e.then(i,i)}}function wl(s,e,n){var i;const l=new Set;for(const L of((i=n.get(s))==null?void 0:i.t)||[])l.add(L);for(const L of e.p)l.add(L);return l}const lg=(s,e,...n)=>e.read(...n),ag=(s,e,...n)=>e.write(...n),Lg=(s,e)=>{if(e.INTERNAL_onInit)return e.INTERNAL_onInit(s);if(e.unstable_onInit)return console.warn("[DEPRECATED] atom.unstable_onInit is renamed to atom.INTERNAL_onInit."),e.unstable_onInit(s)},cg=(s,e,n)=>{var i;return(i=e.onMount)==null?void 0:i.call(e,n)},Cg=(s,e)=>{var n;const i=M3(s),l=i[0],L=i[6],c=i[9];if((C9?"production":void 0)!=="production"&&!e)throw new Error("Atom is undefined or null");let u=l.get(e);return u||(u={d:new Map,p:new Set,n:0},l.set(e,u),(n=L.i)==null||n.call(L,e),c?.(s,e)),u},ug=s=>{const e=M3(s),n=e[1],i=e[3],l=e[4],L=e[5],c=e[6],u=e[13],d=[],f=p=>{try{p()}catch(m){d.push(m)}};do{c.f&&f(c.f);const p=new Set,m=p.add.bind(p);i.forEach(w=>{var v;return(v=n.get(w))==null?void 0:v.l.forEach(m)}),i.clear(),L.forEach(m),L.clear(),l.forEach(m),l.clear(),p.forEach(f),i.size&&u(s)}while(i.size||L.size||l.size);if(d.length)throw new AggregateError(d)},hg=s=>{const e=M3(s),n=e[1],i=e[2],l=e[3],L=e[11],c=e[14],u=e[17],d=[],f=new WeakSet,p=new WeakSet,m=Array.from(l);for(;m.length;){const w=m[m.length-1],v=L(s,w);if(p.has(w)){m.pop();continue}if(f.has(w)){if(i.get(w)===v.n)d.push([w,v]);else if((C9?"production":void 0)!=="production"&&i.has(w))throw new Error("[Bug] invalidated atom exists");p.add(w),m.pop();continue}f.add(w);for(const y of wl(w,v,n))f.has(y)||m.push(y)}for(let w=d.length-1;w>=0;--w){const[v,y]=d[w];let A=!1;for(const O of y.d.keys())if(O!==v&&l.has(O)){A=!0;break}A&&(c(s,v),u(s,v)),i.delete(v)}},sn=new WeakSet,dg=(s,e)=>{var n,i;const l=M3(s),L=l[1],c=l[2],u=l[3],d=l[6],f=l[7],p=l[11],m=l[12],w=l[13],v=l[14],y=l[16],A=l[17],O=l[20],T=p(s,e);if(pl(T)){if(L.has(e)&&c.get(e)!==T.n)return T;let Y=!1;for(const[Q,U]of T.d)if(v(s,Q).n!==U){Y=!0;break}if(!Y)return T}T.d.clear();let N=!0;function H(){L.has(e)&&(A(s,e),w(s),m(s))}function b(Y){var Q;if(Y===e){const J=p(s,Y);if(!pl(J))if(gl(Y))O(s,Y,Y.init);else throw new Error("no atom init");return m7(J)}const U=v(s,Y);try{return m7(U)}finally{T.d.set(Y,U.n),ml(T.v)&&xl(e,T.v,U),L.has(e)&&((Q=L.get(Y))==null||Q.t.add(e)),N||H()}}let R,S;const W={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return(C9?"production":void 0)!=="production"&&!tn(e)&&console.warn("setSelf function cannot be used with read-only atom"),!S&&tn(e)&&(S=(...Y)=>{if((C9?"production":void 0)!=="production"&&N&&console.warn("setSelf function cannot be called in sync"),!N)try{return y(s,e,...Y)}finally{w(s),m(s)}}),S}},F=T.n;try{(C9?"production":void 0)!=="production"&&sn.delete(s);const Y=f(s,e,b,W);return(C9?"production":void 0)!=="production"&&sn.has(s)&&console.warn("Detected store mutation during atom read. This is not supported."),O(s,e,Y),w7(Y)&&(nn(Y,()=>R?.abort()),Y.then(H,H)),(n=d.r)==null||n.call(d,e),T}catch(Y){return delete T.v,T.e=Y,++T.n,T}finally{N=!1,F!==T.n&&c.get(e)===F&&(c.set(e,T.n),u.add(e),(i=d.c)==null||i.call(d,e))}},fg=(s,e)=>{const n=M3(s),i=n[1],l=n[2],L=n[11],c=[e];for(;c.length;){const u=c.pop(),d=L(s,u);for(const f of wl(u,d,i)){const p=L(s,f);l.set(f,p.n),c.push(f)}}},gg=(s,e,...n)=>{const i=M3(s),l=i[3],L=i[6],c=i[8],u=i[11],d=i[12],f=i[13],p=i[14],m=i[15],w=i[16],v=i[17],y=i[20];let A=!0;const O=N=>m7(p(s,N)),T=(N,...H)=>{var b;const R=u(s,N);try{if(N===e){if(!gl(N))throw new Error("atom not writable");(C9?"production":void 0)!=="production"&&sn.add(s);const S=R.n,W=H[0];y(s,N,W),v(s,N),S!==R.n&&(l.add(N),m(s,N),(b=L.c)==null||b.call(L,N));return}else return w(s,N,...H)}finally{A||(f(s),d(s))}};try{return c(s,e,O,T,...n)}finally{A=!1}},pg=(s,e)=>{var n;const i=M3(s),l=i[1],L=i[3],c=i[6],u=i[11],d=i[15],f=i[18],p=i[19],m=u(s,e),w=l.get(e);if(w&&!ml(m.v)){for(const[v,y]of m.d)if(!w.d.has(v)){const A=u(s,v);f(s,v).t.add(e),w.d.add(v),y!==A.n&&(L.add(v),d(s,v),(n=c.c)==null||n.call(c,v))}for(const v of w.d)if(!m.d.has(v)){w.d.delete(v);const y=p(s,v);y?.t.delete(e)}}},mg=(s,e)=>{var n;const i=M3(s),l=i[1],L=i[4],c=i[6],u=i[10],d=i[11],f=i[12],p=i[13],m=i[14],w=i[16],v=i[18],y=d(s,e);let A=l.get(e);if(!A){m(s,e);for(const O of y.d.keys())v(s,O).t.add(e);if(A={l:new Set,d:new Set(y.d.keys()),t:new Set},l.set(e,A),tn(e)){const O=()=>{let T=!0;const N=(...H)=>{try{return w(s,e,...H)}finally{T||(p(s),f(s))}};try{const H=u(s,e,N);H&&(A.u=()=>{T=!0;try{H()}finally{T=!1}})}finally{T=!1}};L.add(O)}(n=c.m)==null||n.call(c,e)}return A},xg=(s,e)=>{var n,i;const l=M3(s),L=l[1],c=l[5],u=l[6],d=l[11],f=l[19],p=d(s,e);let m=L.get(e);if(!m||m.l.size)return m;let w=!1;for(const v of m.t)if((n=L.get(v))!=null&&n.d.has(e)){w=!0;break}if(!w){m.u&&c.add(m.u),m=void 0,L.delete(e);for(const v of p.d.keys()){const y=f(s,v);y?.t.delete(e)}(i=u.u)==null||i.call(u,e);return}return m},wg=(s,e,n)=>{const i=M3(s)[11],l=i(s,e),L="v"in l,c=l.v;if(w7(n))for(const u of l.d.keys())xl(e,n,i(s,u));l.v=n,delete l.e,(!L||!Object.is(c,l.v))&&(++l.n,w7(c)&&rg(c))},vg=(s,e)=>{const n=M3(s)[14];return m7(n(s,e))},Mg=(s,e,...n)=>{const i=M3(s),l=i[12],L=i[13],c=i[16];try{return c(s,e,...n)}finally{L(s),l(s)}},_g=(s,e,n)=>{const i=M3(s),l=i[12],L=i[18],c=i[19],d=L(s,e).l;return d.add(n),l(s),()=>{d.delete(n),c(s,e),l(s)}},vl=new WeakMap,M3=s=>{const e=vl.get(s);if((C9?"production":void 0)!=="production"&&!e)throw new Error("Store must be created by buildStore to read its building blocks");return e};function yg(...s){const e={get(i){const l=M3(e)[21];return l(e,i)},set(i,...l){const L=M3(e)[22];return L(e,i,...l)},sub(i,l){const L=M3(e)[23];return L(e,i,l)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},lg,ag,Lg,cg,Cg,ug,hg,dg,fg,gg,pg,mg,xg,wg,vg,Mg,_g,void 0].map((i,l)=>s[l]||i);return vl.set(e,Object.freeze(n)),e}const Ml={};let Rg=0;function L1(s,e){const n=`atom${++Rg}`,i={toString(){return(Ml?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof s=="function"?i.read=s:(i.init=s,i.read=Ag,i.write=Sg),e&&(i.write=e),i}function Ag(s){return s(this)}function Sg(s,e,n){return e(this,typeof n=="function"?n(s(this)):n)}function on(){return yg()}let E8;function bg(){return E8||(E8=on(),(Ml?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=E8),globalThis.__JOTAI_DEFAULT_STORE__!==E8&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),E8}var rn={exports:{}},j2={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react.production.js
|
|
13
13
|
*
|
|
@@ -77,7 +77,7 @@ Please report this to https://github.com/markedjs/marked.`,s){const l="<p>An err
|
|
|
77
77
|
`)+`
|
|
78
78
|
`+u).trim(),N=this.emojis.map(H=>I5(H)).join("");this.text=N&&T?`${N} ${T}`:N||T,this.textStyle={...A,...m,...v},this.classNames=[...O,...w,...y],this.commentStyle={...A,...m},this.messageStyle={...A,...v},this.commentClassNames=[...O,...w],this.messageClassNames=[...O,...y]}}const $m={gfm:!0,breaks:!0};class Km{measure(e){if(!e||!e.trim())return 0;const n=new Yi(e);return N2.lexer(n?.text??"",$m).length?e.trim().split(`
|
|
79
79
|
`).length*Hi:0}}class J4 extends CL{get metrics(){return this.runtime.metrics}measureComment(e=this.context){return!e?.getComment||!e.getComment()?0:new Km().measure(e.getComment())}findLeftParticipant(e,n){if(!e)return;const i=p9(e)||[];return this.runtime.participants.find(L=>i.includes(L))||i[0]||n||void 0}}class qm extends J4{constructor(e,n,i){super(e,i),this.asyncMessage=n}kind="async";measure(e,n){const i=this.asyncMessage,l=this.measureComment(i),L=i?.From?.()||i?.ProvidedFrom?.()||i?.Origin?.()||n,c=i?.Owner?.()||i?.to?.()?.getFormattedText?.()||L;return{top:e,height:l+(L===c?fL:Fi),kind:this.kind}}}class Qm extends J4{constructor(e,n,i){super(e,i),this.creation=n}kind="creation";measure(e,n){const i=this.creation?.Owner?.()||n,l=this.measureComment(this.creation);i&&this.runtime.updateCreationTop(i,e+l);let L=e+l+Ui;const c=this.creation?.braceBlock?.()?.block?.();if(c){const f=this.findLeftParticipant(this.creation,n)||n;L=this.layoutBlock(c,f,L,this.kind),L+=2}else L+=22;this.creation?.Assignment?.()&&(L+=12);const d=L-e;return{top:e,height:d,kind:this.kind}}}class Jm extends J4{kind="divider";measure(e){return{top:e,height:40,kind:this.kind}}}class ex extends J4{kind="empty";measure(e){return{top:e,height:0,kind:this.kind}}}class tx extends J4{constructor(e,n,i){super(e,i),this.alt=n}kind="alt";measure(e,n){const i=this.findLeftParticipant(this.alt,n)||n,l=this.measureComment(this.alt);let L=e+1+this.metrics.fragmentHeaderHeight+l;const c=this.alt?.ifBlock?.();c&&(L+=t6,L=this.layoutBlock(c.braceBlock()?.block(),i,L)),this.alt?.elseIfBlock?.()?.forEach(d=>{L+=t6,L+=8,L+=1,L=this.layoutBlock(d?.braceBlock?.()?.block?.(),i,L)});const u=this.alt?.elseBlock?.()?.braceBlock?.()?.block?.();return u&&(L+=t6,L+=8,L+=1,L=this.layoutBlock(u,i,L)),L+=this.metrics.fragmentPaddingBottom+1,{top:e,height:L-e,kind:this.kind}}}class nx extends J4{kind="ref";measure(e){const n=this.context?.ref?.()||this.context,i=this.measureComment(n),l=this.metrics.fragmentHeaderHeight,L=i+l+this.metrics.fragmentPaddingBottom;return{top:e,height:L,kind:this.kind}}}class ix extends J4{constructor(e,n,i,l){super(e,i),this.fragment=n,this.kind=l}measure(e,n){const i=this.measureComment(this.fragment);let l=e+Wi+this.metrics.fragmentHeaderHeight+i;!!this.fragment?.parExpr?.()?.condition?.()&&(l+=t6);const c=this.fragment?.braceBlock?.()?.block?.();if(c){const u=this.findLeftParticipant(this.fragment,n)||n;l=this.layoutBlock(c,u,l,this.kind)}return l+=this.metrics.fragmentPaddingBottom+Wi,{top:e,height:l-e,kind:this.kind}}}class sx extends J4{constructor(e,n,i){super(e,i),this.tcf=n}kind="tcf";measure(e,n){const i=this.findLeftParticipant(this.tcf,n)||n,l=this.measureComment(this.tcf);let L=e+1+this.metrics.fragmentHeaderHeight+l;const c=this.tcf?.tryBlock?.()?.braceBlock?.()?.block?.();c&&(L=this.layoutBlock(c,i,L)),(this.tcf?.catchBlock?.()||[]).forEach(f=>{L+=20,L+=8,L+=1;const p=f?.braceBlock?.()?.block?.();L=this.layoutBlock(p,i,L)});const d=this.tcf?.finallyBlock?.()?.braceBlock?.()?.block?.();return d&&(L+=20,L+=8,L+=1,L=this.layoutBlock(d,i,L)),L+=this.metrics.fragmentPaddingBottom+1,{top:e,height:L-e,kind:this.kind}}}class ox extends J4{kind="return";returnContext;constructor(e,n){super(e,n),this.returnContext=e?.ret?.()}measure(e){const n=this.returnContext||this.context,i=this.measureComment(n);let l=e+i;const L=this.returnContext,c=L?.asyncMessage?.(),u=c?.From?.()||L?.From?.()||u1,d=c?.to?.()?.getFormattedText?.()||L?.ReturnTo?.()||u1,f=u===d;if(l+=f?20:0,!f){const w=this.context?.parentCtx,v=w?.stat?.()||[],y=v[v.length-1]===this.context,A=(()=>{let O=w?.parentCtx;for(;O;){if(typeof O.messageBody=="function"||typeof O.creationBody=="function")return!0;O=O.parentCtx}return!1})();(!y||!A)&&(l+=16)}const m=l-e;return{top:e,height:m,kind:this.kind}}}const n6=["loop","opt","par","section","critical"];class rx extends J4{constructor(e,n,i){super(e,i),this.message=n}kind="sync";measure(e,n){const i=this.measureComment(this.message);let l=e+i;const L=this.message.From?.()||u1,c=this.message.Owner?.()||u1,u=this.message.braceBlock?.()?.block?.(),d=this.message.Assignment?.(),f=L===c;if(l+=f?dL:Fi,u){const w=this.findLeftParticipant(this.message,n)||n;l=this.layoutBlock(u,w,l,this.kind),l+=2}else l+=22;d&&!f&&(l+=12);const m=l-e;return{top:e,height:m,kind:this.kind}}}const lx=(s,e)=>{const n=s.creation?.();if(n)return new Qm(s,n,e);const i=s.message?.();if(i)return new rx(s,i,e);const l=s.asyncMessage?.();if(l)return new qm(s,l,e);if(s.ret?.())return new ox(s,e);if(s.divider?.())return new Jm(s,e);for(const u of n6){const d=s[u]?.();if(d)return new ix(s,d,e,u)}const L=s.tcf?.();if(L)return new sx(s,L,e);const c=s.alt?.();return c?new tx(s,c,e):s.ref?.()?new nx(s,e):new ex(s,e)};class kL extends CL{statements;constructor(e,n){super(e,n),this.statements=e?.stat?.()||[]}layout(e,n,i){if(!this.statements.length)return n;const l=this.runtime.metrics;let L=n+l.statementMarginY;return this.statements.forEach((c,u)=>{i==="par"&&u!==0&&(L+=1);const f=lx(c,this.runtime).measure(L,e);this.runtime.recordCoordinate(c,f),L=f.top+f.height+l.statementMarginY}),L}}class ZL{statementMap=new Map;creationTops=new Map;totalHeight;constructor(e){const n=e?.block?.()??e,i=g9(e).map(d=>d.name),l=e6(e),L=l.length===0?u1:l[0].from||u1,c={metrics:hL,participants:i,recordCoordinate:(d,f)=>{const p=Z5(d);this.statementMap.set(p,f)},updateCreationTop:(d,f)=>{const p=f-8;this.creationTops.set(d,p)}},u=new kL(n,c);this.totalHeight=u.layout(L,56)}getCreationTop(e){return this.creationTops.get(e)}getStatementCoordinate(e){return this.statementMap.get(e)}getTotalHeight(){return this.totalHeight}}const ax=()=>(((typeof location<"u"?new URLSearchParams(location.search).get("WIDTH_PROVIDER"):null)||void 0)==="canvas"?"canvas":"browser")==="canvas"?zi:am;var B1=(s=>(s.Static="static",s.Dynamic="dynamic",s))(B1||{});const j3=L1(""),D4=L1(s=>{const e=s(j3);return e.trim()?Qa(e):null}),te=L1(s=>{const e=s(D4);return F0(e||null)}),V3=L1(s=>new cL(s(D4),ax())),Lx=L1(s=>{const e=s(D4);return e?new ZL(e):null}),i6=L1("theme-default"),EL=L1(!1),cx=L1(!0),Cx=L1(1),e9=L1([]),ux=L1(null,(s,e,n)=>{const i=s(e9);i.includes(n)?e(e9,i.filter(l=>l!==n)):e(e9,[...i,n])}),Xi=L1(null),c3=L1("dynamic"),IL=L1(!1),ne=L1(!1),NL=L1(!1),OL=L1(!1),DL=L1(!1),s6=Ig(()=>`${location.hostname}-zenuml-numbering`,!0),BL=L1(0),G0=L1(null),$i=I8(()=>{}),Ki=I8(()=>{}),m9=L1(null),M4=I8(()=>{}),j0=L1(null),zL=I8(()=>{}),hx=I8(()=>{}),o6=L1(null),dx=L1(null),fx=L1(null),gx=L1(null),qi=L1([]),FL=L1(s=>{const e=s(qi),n=s(te);return e.length===n.Size()});function px(s,e){if(s.match(/^[a-z]+:\/\//i))return s;if(s.match(/^\/\//))return window.location.protocol+s;if(s.match(/^[a-z]+:/i))return s;const n=document.implementation.createHTMLDocument(),i=n.createElement("base"),l=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(l),e&&(i.href=e),l.href=s,l.href}const mx=(()=>{let s=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(s+=1,`u${e()}${s}`)})();function J9(s){const e=[];for(let n=0,i=s.length;n<i;n++)e.push(s[n]);return e}let N5=null;function UL(s={}){return N5||(s.includeStyleProperties?(N5=s.includeStyleProperties,N5):(N5=J9(window.getComputedStyle(document.documentElement)),N5))}function ie(s,e){const i=(s.ownerDocument.defaultView||window).getComputedStyle(s).getPropertyValue(e);return i?parseFloat(i.replace("px","")):0}function xx(s){const e=ie(s,"border-left-width"),n=ie(s,"border-right-width");return s.clientWidth+e+n}function wx(s){const e=ie(s,"border-top-width"),n=ie(s,"border-bottom-width");return s.clientHeight+e+n}function HL(s,e={}){const n=e.width||xx(s),i=e.height||wx(s);return{width:n,height:i}}function vx(){let s,e;try{e=process}catch{}const n=e&&e.env?e.env.devicePixelRatio:null;return n&&(s=parseInt(n,10),Number.isNaN(s)&&(s=1)),s||window.devicePixelRatio||1}const l4=16384;function Mx(s){(s.width>l4||s.height>l4)&&(s.width>l4&&s.height>l4?s.width>s.height?(s.height*=l4/s.width,s.width=l4):(s.width*=l4/s.height,s.height=l4):s.width>l4?(s.height*=l4/s.width,s.width=l4):(s.width*=l4/s.height,s.height=l4))}function _x(s,e={}){return s.toBlob?new Promise(n=>{s.toBlob(n,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(n=>{const i=window.atob(s.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),l=i.length,L=new Uint8Array(l);for(let c=0;c<l;c+=1)L[c]=i.charCodeAt(c);n(new Blob([L],{type:e.type?e.type:"image/png"}))})}function se(s){return new Promise((e,n)=>{const i=new Image;i.onload=()=>{i.decode().then(()=>{requestAnimationFrame(()=>e(i))})},i.onerror=n,i.crossOrigin="anonymous",i.decoding="async",i.src=s})}async function yx(s){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(s)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Rx(s,e,n){const i="http://www.w3.org/2000/svg",l=document.createElementNS(i,"svg"),L=document.createElementNS(i,"foreignObject");return l.setAttribute("width",`${e}`),l.setAttribute("height",`${n}`),l.setAttribute("viewBox",`0 0 ${e} ${n}`),L.setAttribute("width","100%"),L.setAttribute("height","100%"),L.setAttribute("x","0"),L.setAttribute("y","0"),L.setAttribute("externalResourcesRequired","true"),l.appendChild(L),L.appendChild(s),yx(l)}const Y3=(s,e)=>{if(s instanceof e)return!0;const n=Object.getPrototypeOf(s);return n===null?!1:n.constructor.name===e.name||Y3(n,e)};function Ax(s){const e=s.getPropertyValue("content");return`${s.cssText} content: '${e.replace(/'|"/g,"")}';`}function Sx(s,e){return UL(e).map(n=>{const i=s.getPropertyValue(n),l=s.getPropertyPriority(n);return`${n}: ${i}${l?" !important":""};`}).join(" ")}function bx(s,e,n,i){const l=`.${s}:${e}`,L=n.cssText?Ax(n):Sx(n,i);return document.createTextNode(`${l}{${L}}`)}function WL(s,e,n,i){const l=window.getComputedStyle(s,n),L=l.getPropertyValue("content");if(L===""||L==="none")return;const c=mx();try{e.className=`${e.className} ${c}`}catch{return}const u=document.createElement("style");u.appendChild(bx(c,n,l,i)),e.appendChild(u)}function Tx(s,e,n){WL(s,e,":before",n),WL(s,e,":after",n)}const PL="application/font-woff",GL="image/jpeg",kx={woff:PL,woff2:PL,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:GL,jpeg:GL,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Zx(s){const e=/\.([^./]*?)$/g.exec(s);return e?e[1]:""}function Qi(s){const e=Zx(s).toLowerCase();return kx[e]||""}function Ex(s){return s.split(/,/)[1]}function Ji(s){return s.search(/^(data:)/)!==-1}function Ix(s,e){return`data:${e};base64,${s}`}async function jL(s,e,n){const i=await fetch(s,e);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const l=await i.blob();return new Promise((L,c)=>{const u=new FileReader;u.onerror=c,u.onloadend=()=>{try{L(n({res:i,result:u.result}))}catch(d){c(d)}},u.readAsDataURL(l)})}const es={};function Nx(s,e,n){let i=s.replace(/\?.*/,"");return n&&(i=s),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),e?`[${e}]${i}`:i}async function ts(s,e,n){const i=Nx(s,e,n.includeQueryParams);if(es[i]!=null)return es[i];n.cacheBust&&(s+=(/\?/.test(s)?"&":"?")+new Date().getTime());let l;try{const L=await jL(s,n.fetchRequestInit,({res:c,result:u})=>(e||(e=c.headers.get("Content-Type")||""),Ex(u)));l=Ix(L,e)}catch(L){l=n.imagePlaceholder||"";let c=`Failed to fetch resource: ${s}`;L&&(c=typeof L=="string"?L:L.message),c&&console.warn(c)}return es[i]=l,l}async function Ox(s){const e=s.toDataURL();return e==="data:,"?s.cloneNode(!1):se(e)}async function Dx(s,e){if(s.currentSrc){const L=document.createElement("canvas"),c=L.getContext("2d");L.width=s.clientWidth,L.height=s.clientHeight,c?.drawImage(s,0,0,L.width,L.height);const u=L.toDataURL();return se(u)}const n=s.poster,i=Qi(n),l=await ts(n,i,e);return se(l)}async function Bx(s,e){var n;try{if(!((n=s?.contentDocument)===null||n===void 0)&&n.body)return await oe(s.contentDocument.body,e,!0)}catch{}return s.cloneNode(!1)}async function zx(s,e){return Y3(s,HTMLCanvasElement)?Ox(s):Y3(s,HTMLVideoElement)?Dx(s,e):Y3(s,HTMLIFrameElement)?Bx(s,e):s.cloneNode(VL(s))}const Fx=s=>s.tagName!=null&&s.tagName.toUpperCase()==="SLOT",VL=s=>s.tagName!=null&&s.tagName.toUpperCase()==="SVG";async function Ux(s,e,n){var i,l;if(VL(e))return e;let L=[];return Fx(s)&&s.assignedNodes?L=J9(s.assignedNodes()):Y3(s,HTMLIFrameElement)&&(!((i=s.contentDocument)===null||i===void 0)&&i.body)?L=J9(s.contentDocument.body.childNodes):L=J9(((l=s.shadowRoot)!==null&&l!==void 0?l:s).childNodes),L.length===0||Y3(s,HTMLVideoElement)||await L.reduce((c,u)=>c.then(()=>oe(u,n)).then(d=>{d&&e.appendChild(d)}),Promise.resolve()),e}function Hx(s,e,n){const i=e.style;if(!i)return;const l=window.getComputedStyle(s);l.cssText?(i.cssText=l.cssText,i.transformOrigin=l.transformOrigin):UL(n).forEach(L=>{let c=l.getPropertyValue(L);L==="font-size"&&c.endsWith("px")&&(c=`${Math.floor(parseFloat(c.substring(0,c.length-2)))-.1}px`),Y3(s,HTMLIFrameElement)&&L==="display"&&c==="inline"&&(c="block"),L==="d"&&e.getAttribute("d")&&(c=`path(${e.getAttribute("d")})`),i.setProperty(L,c,l.getPropertyPriority(L))})}function Wx(s,e){Y3(s,HTMLTextAreaElement)&&(e.innerHTML=s.value),Y3(s,HTMLInputElement)&&e.setAttribute("value",s.value)}function Px(s,e){if(Y3(s,HTMLSelectElement)){const n=e,i=Array.from(n.children).find(l=>s.value===l.getAttribute("value"));i&&i.setAttribute("selected","")}}function Gx(s,e,n){return Y3(e,Element)&&(Hx(s,e,n),Tx(s,e,n),Wx(s,e),Px(s,e)),e}async function jx(s,e){const n=s.querySelectorAll?s.querySelectorAll("use"):[];if(n.length===0)return s;const i={};for(let L=0;L<n.length;L++){const u=n[L].getAttribute("xlink:href");if(u){const d=s.querySelector(u),f=document.querySelector(u);!d&&f&&!i[u]&&(i[u]=await oe(f,e,!0))}}const l=Object.values(i);if(l.length){const L="http://www.w3.org/1999/xhtml",c=document.createElementNS(L,"svg");c.setAttribute("xmlns",L),c.style.position="absolute",c.style.width="0",c.style.height="0",c.style.overflow="hidden",c.style.display="none";const u=document.createElementNS(L,"defs");c.appendChild(u);for(let d=0;d<l.length;d++)u.appendChild(l[d]);s.appendChild(c)}return s}async function oe(s,e,n){return!n&&e.filter&&!e.filter(s)?null:Promise.resolve(s).then(i=>zx(i,e)).then(i=>Ux(s,i,e)).then(i=>Gx(s,i,e)).then(i=>jx(i,e))}const YL=/url\((['"]?)([^'"]+?)\1\)/g,Vx=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Yx=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Xx(s){const e=s.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function $x(s){const e=[];return s.replace(YL,(n,i,l)=>(e.push(l),n)),e.filter(n=>!Ji(n))}async function Kx(s,e,n,i,l){try{const L=n?px(e,n):e,c=Qi(e);let u;return l||(u=await ts(L,c,i)),s.replace(Xx(e),`$1${u}$3`)}catch{}return s}function qx(s,{preferredFontFormat:e}){return e?s.replace(Yx,n=>{for(;;){const[i,,l]=Vx.exec(n)||[];if(!l)return"";if(l===e)return`src: ${i};`}}):s}function XL(s){return s.search(YL)!==-1}async function $L(s,e,n){if(!XL(s))return s;const i=qx(s,n);return $x(i).reduce((L,c)=>L.then(u=>Kx(u,c,e,n)),Promise.resolve(i))}async function O5(s,e,n){var i;const l=(i=e.style)===null||i===void 0?void 0:i.getPropertyValue(s);if(l){const L=await $L(l,null,n);return e.style.setProperty(s,L,e.style.getPropertyPriority(s)),!0}return!1}async function Qx(s,e){await O5("background",s,e)||await O5("background-image",s,e),await O5("mask",s,e)||await O5("-webkit-mask",s,e)||await O5("mask-image",s,e)||await O5("-webkit-mask-image",s,e)}async function Jx(s,e){const n=Y3(s,HTMLImageElement);if(!(n&&!Ji(s.src))&&!(Y3(s,SVGImageElement)&&!Ji(s.href.baseVal)))return;const i=n?s.src:s.href.baseVal,l=await ts(i,Qi(i),e);await new Promise((L,c)=>{s.onload=L,s.onerror=e.onImageErrorHandler?(...d)=>{try{L(e.onImageErrorHandler(...d))}catch(f){c(f)}}:c;const u=s;u.decode&&(u.decode=L),u.loading==="lazy"&&(u.loading="eager"),n?(s.srcset="",s.src=l):s.href.baseVal=l})}async function ew(s,e){const i=J9(s.childNodes).map(l=>KL(l,e));await Promise.all(i).then(()=>s)}async function KL(s,e){Y3(s,Element)&&(await Qx(s,e),await Jx(s,e),await ew(s,e))}function tw(s,e){const{style:n}=s;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const i=e.style;return i!=null&&Object.keys(i).forEach(l=>{n[l]=i[l]}),s}const qL={};async function QL(s){let e=qL[s];if(e!=null)return e;const i=await(await fetch(s)).text();return e={url:s,cssText:i},qL[s]=e,e}async function JL(s,e){let n=s.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,L=(n.match(/url\([^)]+\)/g)||[]).map(async c=>{let u=c.replace(i,"$1");return u.startsWith("https://")||(u=new URL(u,s.url).href),jL(u,e.fetchRequestInit,({result:d})=>(n=n.replace(c,`url(${d})`),[c,d]))});return Promise.all(L).then(()=>n)}function ec(s){if(s==null)return[];const e=[],n=/(\/\*[\s\S]*?\*\/)/gi;let i=s.replace(n,"");const l=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const d=l.exec(i);if(d===null)break;e.push(d[0])}i=i.replace(l,"");const L=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,c="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",u=new RegExp(c,"gi");for(;;){let d=L.exec(i);if(d===null){if(d=u.exec(i),d===null)break;L.lastIndex=u.lastIndex}else u.lastIndex=L.lastIndex;e.push(d[0])}return e}async function nw(s,e){const n=[],i=[];return s.forEach(l=>{if("cssRules"in l)try{J9(l.cssRules||[]).forEach((L,c)=>{if(L.type===CSSRule.IMPORT_RULE){let u=c+1;const d=L.href,f=QL(d).then(p=>JL(p,e)).then(p=>ec(p).forEach(m=>{try{l.insertRule(m,m.startsWith("@import")?u+=1:l.cssRules.length)}catch(w){console.error("Error inserting rule from remote css",{rule:m,error:w})}})).catch(p=>{console.error("Error loading remote css",p.toString())});i.push(f)}})}catch(L){const c=s.find(u=>u.href==null)||document.styleSheets[0];l.href!=null&&i.push(QL(l.href).then(u=>JL(u,e)).then(u=>ec(u).forEach(d=>{c.insertRule(d,c.cssRules.length)})).catch(u=>{console.error("Error loading remote stylesheet",u)})),console.error("Error inlining remote css file",L)}}),Promise.all(i).then(()=>(s.forEach(l=>{if("cssRules"in l)try{J9(l.cssRules||[]).forEach(L=>{n.push(L)})}catch(L){console.error(`Error while reading CSS rules from ${l.href}`,L)}}),n))}function iw(s){return s.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>XL(e.style.getPropertyValue("src")))}async function sw(s,e){if(s.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=J9(s.ownerDocument.styleSheets),i=await nw(n,e);return iw(i)}function tc(s){return s.trim().replace(/["']/g,"")}function ow(s){const e=new Set;function n(i){(i.style.fontFamily||getComputedStyle(i).fontFamily).split(",").forEach(L=>{e.add(tc(L))}),Array.from(i.children).forEach(L=>{L instanceof HTMLElement&&n(L)})}return n(s),e}async function rw(s,e){const n=await sw(s,e),i=ow(s);return(await Promise.all(n.filter(L=>i.has(tc(L.style.fontFamily))).map(L=>{const c=L.parentStyleSheet?L.parentStyleSheet.href:null;return $L(L.cssText,c,e)}))).join(`
|
|
80
|
-
`)}async function lw(s,e){const n=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await rw(s,e);if(n){const i=document.createElement("style"),l=document.createTextNode(n);i.appendChild(l),s.firstChild?s.insertBefore(i,s.firstChild):s.appendChild(i)}}async function ns(s,e={}){const{width:n,height:i}=HL(s,e),l=await oe(s,e,!0);return await lw(l,e),await KL(l,e),tw(l,e),await Rx(l,n,i)}async function is(s,e={}){const{width:n,height:i}=HL(s,e),l=await ns(s,e),L=await se(l),c=document.createElement("canvas"),u=c.getContext("2d"),d=e.pixelRatio||vx(),f=e.canvasWidth||n,p=e.canvasHeight||i;return c.width=f*d,c.height=p*d,e.skipAutoScale||Mx(c),c.style.width=`${f}`,c.style.height=`${p}`,e.backgroundColor&&(u.fillStyle=e.backgroundColor,u.fillRect(0,0,c.width,c.height)),u.drawImage(L,0,0,c.width,c.height),c}async function nc(s,e={}){return(await is(s,e)).toDataURL()}async function aw(s,e={}){return(await is(s,e)).toDataURL("image/jpeg",e.quality||1)}async function Lw(s,e={}){const n=await is(s,e);return await _x(n)}function ic(s){var e,n,i="";if(typeof s=="string"||typeof s=="number")i+=s;else if(typeof s=="object")if(Array.isArray(s)){var l=s.length;for(e=0;e<l;e++)s[e]&&(n=ic(s[e]))&&(i&&(i+=" "),i+=n)}else for(n in s)s[n]&&(i&&(i+=" "),i+=n);return i}function cw(){for(var s,e,n=0,i="",l=arguments.length;n<l;n++)(s=arguments[n])&&(e=ic(s))&&(i&&(i+=" "),i+=e);return i}const Cw=(s,e)=>{const n=new Array(s.length+e.length);for(let i=0;i<s.length;i++)n[i]=s[i];for(let i=0;i<e.length;i++)n[s.length+i]=e[i];return n},uw=(s,e)=>({classGroupId:s,validator:e}),sc=(s=new Map,e=null,n)=>({nextPart:s,validators:e,classGroupId:n}),re="-",oc=[],hw="arbitrary..",dw=s=>{const e=gw(s),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=s;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return fw(c);const u=c.split(re),d=u[0]===""&&u.length>1?1:0;return rc(u,d,e)},getConflictingClassGroupIds:(c,u)=>{if(u){const d=i[c],f=n[c];return d?f?Cw(f,d):d:f||oc}return n[c]||oc}}},rc=(s,e,n)=>{if(s.length-e===0)return n.classGroupId;const l=s[e],L=n.nextPart.get(l);if(L){const f=rc(s,e+1,L);if(f)return f}const c=n.validators;if(c===null)return;const u=e===0?s.join(re):s.slice(e).join(re),d=c.length;for(let f=0;f<d;f++){const p=c[f];if(p.validator(u))return p.classGroupId}},fw=s=>s.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=s.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?hw+i:void 0})(),gw=s=>{const{theme:e,classGroups:n}=s;return pw(n,e)},pw=(s,e)=>{const n=sc();for(const i in s){const l=s[i];ss(l,n,i,e)}return n},ss=(s,e,n,i)=>{const l=s.length;for(let L=0;L<l;L++){const c=s[L];mw(c,e,n,i)}},mw=(s,e,n,i)=>{if(typeof s=="string"){xw(s,e,n);return}if(typeof s=="function"){ww(s,e,n,i);return}vw(s,e,n,i)},xw=(s,e,n)=>{const i=s===""?e:lc(e,s);i.classGroupId=n},ww=(s,e,n,i)=>{if(Mw(s)){ss(s(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(uw(n,s))},vw=(s,e,n,i)=>{const l=Object.entries(s),L=l.length;for(let c=0;c<L;c++){const[u,d]=l[c];ss(d,lc(e,u),n,i)}},lc=(s,e)=>{let n=s;const i=e.split(re),l=i.length;for(let L=0;L<l;L++){const c=i[L];let u=n.nextPart.get(c);u||(u=sc(),n.nextPart.set(c,u)),n=u}return n},Mw=s=>"isThemeGetter"in s&&s.isThemeGetter===!0,_w=s=>{if(s<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null);const l=(L,c)=>{n[L]=c,e++,e>s&&(e=0,i=n,n=Object.create(null))};return{get(L){let c=n[L];if(c!==void 0)return c;if((c=i[L])!==void 0)return l(L,c),c},set(L,c){L in n?n[L]=c:l(L,c)}}},os="!",ac=":",yw=[],Lc=(s,e,n,i,l)=>({modifiers:s,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:l}),Rw=s=>{const{prefix:e,experimentalParseClassName:n}=s;let i=l=>{const L=[];let c=0,u=0,d=0,f;const p=l.length;for(let A=0;A<p;A++){const O=l[A];if(c===0&&u===0){if(O===ac){L.push(l.slice(d,A)),d=A+1;continue}if(O==="/"){f=A;continue}}O==="["?c++:O==="]"?c--:O==="("?u++:O===")"&&u--}const m=L.length===0?l:l.slice(d);let w=m,v=!1;m.endsWith(os)?(w=m.slice(0,-1),v=!0):m.startsWith(os)&&(w=m.slice(1),v=!0);const y=f&&f>d?f-d:void 0;return Lc(L,v,w,y)};if(e){const l=e+ac,L=i;i=c=>c.startsWith(l)?L(c.slice(l.length)):Lc(yw,!1,c,void 0,!0)}if(n){const l=i;i=L=>n({className:L,parseClassName:l})}return i},Aw=s=>{const e=new Map;return s.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{const i=[];let l=[];for(let L=0;L<n.length;L++){const c=n[L],u=c[0]==="[",d=e.has(c);u||d?(l.length>0&&(l.sort(),i.push(...l),l=[]),i.push(c)):l.push(c)}return l.length>0&&(l.sort(),i.push(...l)),i}},Sw=s=>({cache:_w(s.cacheSize),parseClassName:Rw(s),sortModifiers:Aw(s),...dw(s)}),bw=/\s+/,Tw=(s,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:L}=e,c=[],u=s.trim().split(bw);let d="";for(let f=u.length-1;f>=0;f-=1){const p=u[f],{isExternal:m,modifiers:w,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:A}=n(p);if(m){d=p+(d.length>0?" "+d:d);continue}let O=!!A,T=i(O?y.substring(0,A):y);if(!T){if(!O){d=p+(d.length>0?" "+d:d);continue}if(T=i(y),!T){d=p+(d.length>0?" "+d:d);continue}O=!1}const N=w.length===0?"":w.length===1?w[0]:L(w).join(":"),H=v?N+os:N,b=H+T;if(c.indexOf(b)>-1)continue;c.push(b);const R=l(T,O);for(let S=0;S<R.length;++S){const W=R[S];c.push(H+W)}d=p+(d.length>0?" "+d:d)}return d},kw=(...s)=>{let e=0,n,i,l="";for(;e<s.length;)(n=s[e++])&&(i=cc(n))&&(l&&(l+=" "),l+=i);return l},cc=s=>{if(typeof s=="string")return s;let e,n="";for(let i=0;i<s.length;i++)s[i]&&(e=cc(s[i]))&&(n&&(n+=" "),n+=e);return n},Zw=(s,...e)=>{let n,i,l,L;const c=d=>{const f=e.reduce((p,m)=>m(p),s());return n=Sw(f),i=n.cache.get,l=n.cache.set,L=u,u(d)},u=d=>{const f=i(d);if(f)return f;const p=Tw(d,n);return l(d,p),p};return L=c,(...d)=>L(kw(...d))},Ew=[],r3=s=>{const e=n=>n[s]||Ew;return e.isThemeGetter=!0,e},Cc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,uc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Iw=/^\d+\/\d+$/,Nw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ow=/\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$/,Dw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Bw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,D5=s=>Iw.test(s),Q2=s=>!!s&&!Number.isNaN(Number(s)),e0=s=>!!s&&Number.isInteger(Number(s)),rs=s=>s.endsWith("%")&&Q2(s.slice(0,-1)),x9=s=>Nw.test(s),Fw=()=>!0,Uw=s=>Ow.test(s)&&!Dw.test(s),hc=()=>!1,Hw=s=>Bw.test(s),Ww=s=>zw.test(s),Pw=s=>!A2(s)&&!S2(s),Gw=s=>B5(s,mc,hc),A2=s=>Cc.test(s),V0=s=>B5(s,xc,Uw),ls=s=>B5(s,$w,Q2),dc=s=>B5(s,gc,hc),jw=s=>B5(s,pc,Ww),le=s=>B5(s,wc,Hw),S2=s=>uc.test(s),r6=s=>z5(s,xc),Vw=s=>z5(s,Kw),fc=s=>z5(s,gc),Yw=s=>z5(s,mc),Xw=s=>z5(s,pc),ae=s=>z5(s,wc,!0),B5=(s,e,n)=>{const i=Cc.exec(s);return i?i[1]?e(i[1]):n(i[2]):!1},z5=(s,e,n=!1)=>{const i=uc.exec(s);return i?i[1]?e(i[1]):n:!1},gc=s=>s==="position"||s==="percentage",pc=s=>s==="image"||s==="url",mc=s=>s==="length"||s==="size"||s==="bg-size",xc=s=>s==="length",$w=s=>s==="number",Kw=s=>s==="family-name",wc=s=>s==="shadow",qw=Zw(()=>{const s=r3("color"),e=r3("font"),n=r3("text"),i=r3("font-weight"),l=r3("tracking"),L=r3("leading"),c=r3("breakpoint"),u=r3("container"),d=r3("spacing"),f=r3("radius"),p=r3("shadow"),m=r3("inset-shadow"),w=r3("text-shadow"),v=r3("drop-shadow"),y=r3("blur"),A=r3("perspective"),O=r3("aspect"),T=r3("ease"),N=r3("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...b(),S2,A2],S=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],F=()=>[S2,A2,d],Y=()=>[D5,"full","auto",...F()],Q=()=>[e0,"none","subgrid",S2,A2],U=()=>["auto",{span:["full",e0,S2,A2]},e0,S2,A2],J=()=>[e0,"auto",S2,A2],L2=()=>["auto","min","max","fr",S2,A2],O2=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],l2=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...F()],t2=()=>[D5,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],$=()=>[s,S2,A2],x2=()=>[...b(),fc,dc,{position:[S2,A2]}],b2=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",Yw,Gw,{size:[S2,A2]}],e2=()=>[rs,r6,V0],o2=()=>["","none","full",f,S2,A2],d2=()=>["",Q2,r6,V0],p2=()=>["solid","dashed","dotted","double"],F2=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I2=()=>[Q2,rs,fc,dc],p1=()=>["","none",y,S2,A2],h1=()=>["none",Q2,S2,A2],l3=()=>["none",Q2,S2,A2],L4=()=>[Q2,S2,A2],c4=()=>[D5,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[x9],breakpoint:[x9],color:[Fw],container:[x9],"drop-shadow":[x9],ease:["in","out","in-out"],font:[Pw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[x9],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[x9],shadow:[x9],spacing:["px",Q2],text:[x9],"text-shadow":[x9],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",D5,A2,S2,O]}],container:["container"],columns:[{columns:[Q2,A2,S2,u]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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:R()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[e0,"auto",S2,A2]}],basis:[{basis:[D5,"full","auto",u,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q2,D5,"auto","initial","none",A2]}],grow:[{grow:["",Q2,S2,A2]}],shrink:[{shrink:["",Q2,S2,A2]}],order:[{order:[e0,"first","last","none",S2,A2]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L2()}],"auto-rows":[{"auto-rows":L2()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...O2(),"normal"]}],"justify-items":[{"justify-items":[...l2(),"normal"]}],"justify-self":[{"justify-self":["auto",...l2()]}],"align-content":[{content:["normal",...O2()]}],"align-items":[{items:[...l2(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...l2(),{baseline:["","last"]}]}],"place-content":[{"place-content":O2()}],"place-items":[{"place-items":[...l2(),"baseline"]}],"place-self":[{"place-self":["auto",...l2()]}],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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:t2()}],w:[{w:[u,"screen",...t2()]}],"min-w":[{"min-w":[u,"screen","none",...t2()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...t2()]}],h:[{h:["screen","lh",...t2()]}],"min-h":[{"min-h":["screen","lh","none",...t2()]}],"max-h":[{"max-h":["screen","lh",...t2()]}],"font-size":[{text:["base",n,r6,V0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,S2,ls]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rs,A2]}],"font-family":[{font:[Vw,A2,e]}],"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:[l,S2,A2]}],"line-clamp":[{"line-clamp":[Q2,"none",S2,ls]}],leading:[{leading:[L,...F()]}],"list-image":[{"list-image":["none",S2,A2]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",S2,A2]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...p2(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q2,"from-font","auto",S2,V0]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[Q2,"auto",S2,A2]}],"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",S2,A2]}],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",S2,A2]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:x2()}],"bg-repeat":[{bg:b2()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},e0,S2,A2],radial:["",S2,A2],conic:[e0,S2,A2]},Xw,jw]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:e2()}],"gradient-via-pos":[{via:e2()}],"gradient-to-pos":[{to:e2()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:o2()}],"rounded-s":[{"rounded-s":o2()}],"rounded-e":[{"rounded-e":o2()}],"rounded-t":[{"rounded-t":o2()}],"rounded-r":[{"rounded-r":o2()}],"rounded-b":[{"rounded-b":o2()}],"rounded-l":[{"rounded-l":o2()}],"rounded-ss":[{"rounded-ss":o2()}],"rounded-se":[{"rounded-se":o2()}],"rounded-ee":[{"rounded-ee":o2()}],"rounded-es":[{"rounded-es":o2()}],"rounded-tl":[{"rounded-tl":o2()}],"rounded-tr":[{"rounded-tr":o2()}],"rounded-br":[{"rounded-br":o2()}],"rounded-bl":[{"rounded-bl":o2()}],"border-w":[{border:d2()}],"border-w-x":[{"border-x":d2()}],"border-w-y":[{"border-y":d2()}],"border-w-s":[{"border-s":d2()}],"border-w-e":[{"border-e":d2()}],"border-w-t":[{"border-t":d2()}],"border-w-r":[{"border-r":d2()}],"border-w-b":[{"border-b":d2()}],"border-w-l":[{"border-l":d2()}],"divide-x":[{"divide-x":d2()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":d2()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...p2(),"hidden","none"]}],"divide-style":[{divide:[...p2(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...p2(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q2,S2,A2]}],"outline-w":[{outline:["",Q2,r6,V0]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",p,ae,le]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",m,ae,le]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:d2()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[Q2,V0]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":d2()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",w,ae,le]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[Q2,S2,A2]}],"mix-blend":[{"mix-blend":[...F2(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":F2()}],"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":[Q2]}],"mask-image-linear-from-pos":[{"mask-linear-from":I2()}],"mask-image-linear-to-pos":[{"mask-linear-to":I2()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":I2()}],"mask-image-t-to-pos":[{"mask-t-to":I2()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":I2()}],"mask-image-r-to-pos":[{"mask-r-to":I2()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":I2()}],"mask-image-b-to-pos":[{"mask-b-to":I2()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":I2()}],"mask-image-l-to-pos":[{"mask-l-to":I2()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":I2()}],"mask-image-x-to-pos":[{"mask-x-to":I2()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":I2()}],"mask-image-y-to-pos":[{"mask-y-to":I2()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[S2,A2]}],"mask-image-radial-from-pos":[{"mask-radial-from":I2()}],"mask-image-radial-to-pos":[{"mask-radial-to":I2()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[Q2]}],"mask-image-conic-from-pos":[{"mask-conic-from":I2()}],"mask-image-conic-to-pos":[{"mask-conic-to":I2()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:x2()}],"mask-repeat":[{mask:b2()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",S2,A2]}],filter:[{filter:["","none",S2,A2]}],blur:[{blur:p1()}],brightness:[{brightness:[Q2,S2,A2]}],contrast:[{contrast:[Q2,S2,A2]}],"drop-shadow":[{"drop-shadow":["","none",v,ae,le]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",Q2,S2,A2]}],"hue-rotate":[{"hue-rotate":[Q2,S2,A2]}],invert:[{invert:["",Q2,S2,A2]}],saturate:[{saturate:[Q2,S2,A2]}],sepia:[{sepia:["",Q2,S2,A2]}],"backdrop-filter":[{"backdrop-filter":["","none",S2,A2]}],"backdrop-blur":[{"backdrop-blur":p1()}],"backdrop-brightness":[{"backdrop-brightness":[Q2,S2,A2]}],"backdrop-contrast":[{"backdrop-contrast":[Q2,S2,A2]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q2,S2,A2]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q2,S2,A2]}],"backdrop-invert":[{"backdrop-invert":["",Q2,S2,A2]}],"backdrop-opacity":[{"backdrop-opacity":[Q2,S2,A2]}],"backdrop-saturate":[{"backdrop-saturate":[Q2,S2,A2]}],"backdrop-sepia":[{"backdrop-sepia":["",Q2,S2,A2]}],"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",S2,A2]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q2,"initial",S2,A2]}],ease:[{ease:["linear","initial",T,S2,A2]}],delay:[{delay:[Q2,S2,A2]}],animate:[{animate:["none",N,S2,A2]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,S2,A2]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:h1()}],"rotate-x":[{"rotate-x":h1()}],"rotate-y":[{"rotate-y":h1()}],"rotate-z":[{"rotate-z":h1()}],scale:[{scale:l3()}],"scale-x":[{"scale-x":l3()}],"scale-y":[{"scale-y":l3()}],"scale-z":[{"scale-z":l3()}],"scale-3d":["scale-3d"],skew:[{skew:L4()}],"skew-x":[{"skew-x":L4()}],"skew-y":[{"skew-y":L4()}],transform:[{transform:[S2,A2,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:c4()}],"translate-x":[{"translate-x":c4()}],"translate-y":[{"translate-y":c4()}],"translate-z":[{"translate-z":c4()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"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",S2,A2]}],"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",S2,A2]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[Q2,r6,V0,ls]}],stroke:[{stroke:["none",...$()]}],"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 W2(...s){return qw(cw(s))}const Qw={"collapse-expanded":s=>E.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"miter",...s},E.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:0}),E.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("g",{id:"SVGRepo_iconCarrier"},E.createElement("line",{x1:14,y1:10,x2:21,y2:3}),E.createElement("polyline",{points:"20 10 14 10 14 4"}),E.createElement("line",{x1:3,y1:21,x2:10,y2:14}),E.createElement("polyline",{points:"4 14 10 14 10 20"}))),"collapse-unexpanded":s=>E.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...s},E.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:0}),E.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("g",{id:"SVGRepo_iconCarrier"},E.createElement("title",null),E.createElement("g",{id:"Complete"},E.createElement("g",{id:"expand"},E.createElement("g",null,E.createElement("polyline",{"data-name":"Right",fill:"none",id:"Right-2",points:"3 17.3 3 21 6.7 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1}),E.createElement("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,x1:10,x2:3.8,y1:14,y2:20.2}),E.createElement("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,x1:14,x2:20.2,y1:10,y2:3.8}),E.createElement("polyline",{"data-name":"Right",fill:"none",id:"Right-3",points:"21 6.7 21 3 17.3 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1})))))),debug:s=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...s},E.createElement("line",{x1:6,y1:3,x2:6,y2:15}),E.createElement("circle",{cx:18,cy:6,r:3}),E.createElement("circle",{cx:6,cy:18,r:3}),E.createElement("path",{d:"M18 9a9 9 0 0 1-9 9"})),privacy:s=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 214.27 214.27",...s},E.createElement("path",{d:"M196.926 55.171c-.11-5.785-.215-11.25-.215-16.537a7.5 7.5 0 0 0-7.5-7.5c-32.075 0-56.496-9.218-76.852-29.01a7.498 7.498 0 0 0-10.457 0c-20.354 19.792-44.771 29.01-76.844 29.01a7.5 7.5 0 0 0-7.5 7.5c0 5.288-.104 10.755-.215 16.541-1.028 53.836-2.436 127.567 87.331 158.682a7.495 7.495 0 0 0 4.912 0c89.774-31.116 88.368-104.849 87.34-158.686zm-89.795 143.641c-76.987-27.967-75.823-89.232-74.79-143.351.062-3.248.122-6.396.164-9.482 30.04-1.268 54.062-10.371 74.626-28.285 20.566 17.914 44.592 27.018 74.634 28.285.042 3.085.102 6.231.164 9.477 1.032 54.121 2.195 115.388-74.798 143.356z"}),E.createElement("path",{d:"m132.958 81.082-36.199 36.197-15.447-15.447a7.501 7.501 0 0 0-10.606 10.607l20.75 20.75a7.477 7.477 0 0 0 5.303 2.196 7.477 7.477 0 0 0 5.303-2.196l41.501-41.5a7.498 7.498 0 0 0 .001-10.606 7.5 7.5 0 0 0-10.606-.001z"})),"alt-fragment":s=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{d:"M12 8L20 12L12 16L4 12L12 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"critical-fragment":s=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{d:"M12 5L19 12L12 19L5 12L12 5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M12 9V13",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M12 15V15.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"loop-fragment":s=>E.createElement("svg",{fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{d:"M960 101.84l-896.002.002c-35.344 0-64 28.656-64 64v576c0 35.36 28.656 64 64 64h160c20.496 0 32-26.32 32-31.984v-.016c0-5.824-10.88-32.416-32-32.416h-120.96c-21.376 0-38.72-17.344-38.72-38.72V206.002c0-21.391 17.328-38.72 38.72-38.72l818.272-1.007c21.376 0 38.72 17.328 38.72 38.72V702.69c0 21.376-17.344 38.72-38.72 38.72H518.142l75.984-68.912c9.344-8.944 12.369-23.408 3.025-32.336l-5.472-8.064c-9.376-8.945-24.496-8.945-33.84 0L428.111 750.53c-.192.16-.368.224-.528.368l-8.48 8.096c-4.672 4.431-7.008 10.335-6.976 16.223-.032 5.904 2.288 11.777 6.977 16.288l8.48 8.096c.16.16.368.192.528.336L555.84 915.44c9.344 8.944 24.464 8.944 33.84 0l5.472-8.065c9.344-8.944 6.32-23.44-3.025-32.368l-77.135-69.168H960c35.343 0 64-28.64 64-64v-576c0-35.344-28.657-64-64-64z"})),"opt-fragment":s=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("circle",{cx:12,cy:12,r:7,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"3 2",strokeLinecap:"round"})),"ref-fragment":s=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{d:"M10 6H18C19.1046 6 20 6.89543 20 8V16C20 17.1046 19.1046 18 18 18H10",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M10 6L6 12L10 18",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"par-fragment":s=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{d:"M5 10H19",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M5 14H19",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"section-fragment":s=>E.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 1.5C2 1.77614 1.77614 2 1.5 2C1.22386 2 1 1.77614 1 1.5C1 1.22386 1.22386 1 1.5 1C1.77614 1 2 1.22386 2 1.5ZM2 5L2 10H13V5H2ZM2 4C1.44772 4 1 4.44772 1 5V10C1 10.5523 1.44772 11 2 11H13C13.5523 11 14 10.5523 14 10V5C14 4.44772 13.5523 4 13 4H2ZM1.5 14C1.77614 14 2 13.7761 2 13.5C2 13.2239 1.77614 13 1.5 13C1.22386 13 1 13.2239 1 13.5C1 13.7761 1.22386 14 1.5 14ZM4 1.5C4 1.77614 3.77614 2 3.5 2C3.22386 2 3 1.77614 3 1.5C3 1.22386 3.22386 1 3.5 1C3.77614 1 4 1.22386 4 1.5ZM3.5 14C3.77614 14 4 13.7761 4 13.5C4 13.2239 3.77614 13 3.5 13C3.22386 13 3 13.2239 3 13.5C3 13.7761 3.22386 14 3.5 14ZM6 1.5C6 1.77614 5.77614 2 5.5 2C5.22386 2 5 1.77614 5 1.5C5 1.22386 5.22386 1 5.5 1C5.77614 1 6 1.22386 6 1.5ZM5.5 14C5.77614 14 6 13.7761 6 13.5C6 13.2239 5.77614 13 5.5 13C5.22386 13 5 13.2239 5 13.5C5 13.7761 5.22386 14 5.5 14ZM8 1.5C8 1.77614 7.77614 2 7.5 2C7.22386 2 7 1.77614 7 1.5C7 1.22386 7.22386 1 7.5 1C7.77614 1 8 1.22386 8 1.5ZM7.5 14C7.77614 14 8 13.7761 8 13.5C8 13.2239 7.77614 13 7.5 13C7.22386 13 7 13.2239 7 13.5C7 13.7761 7.22386 14 7.5 14ZM10 1.5C10 1.77614 9.77614 2 9.5 2C9.22386 2 9 1.77614 9 1.5C9 1.22386 9.22386 1 9.5 1C9.77614 1 10 1.22386 10 1.5ZM9.5 14C9.77614 14 10 13.7761 10 13.5C10 13.2239 9.77614 13 9.5 13C9.22386 13 9 13.2239 9 13.5C9 13.7761 9.22386 14 9.5 14ZM12 1.5C12 1.77614 11.7761 2 11.5 2C11.2239 2 11 1.77614 11 1.5C11 1.22386 11.2239 1 11.5 1C11.7761 1 12 1.22386 12 1.5ZM11.5 14C11.7761 14 12 13.7761 12 13.5C12 13.2239 11.7761 13 11.5 13C11.2239 13 11 13.2239 11 13.5C11 13.7761 11.2239 14 11.5 14ZM14 1.5C14 1.77614 13.7761 2 13.5 2C13.2239 2 13 1.77614 13 1.5C13 1.22386 13.2239 1 13.5 1C13.7761 1 14 1.22386 14 1.5ZM13.5 14C13.7761 14 14 13.7761 14 13.5C14 13.2239 13.7761 13 13.5 13C13.2239 13 13 13.2239 13 13.5C13 13.7761 13.2239 14 13.5 14Z",fill:"currentColor"})),"try-catch-fragment":s=>E.createElement("svg",{width:"24px",height:"24px",viewBox:"0 3 76 76",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",baseProfile:"full",enableBackground:"new 0 0 76.00 76.00",xmlSpace:"preserve",...s},E.createElement("path",{fill:"currentColor",fillOpacity:1,strokeWidth:.2,strokeLinejoin:"round",d:"M 26,22.0001L 27,21.9998L 27,27L 26.0001,27.0003C 23.2386,27.0003 21.0001,29.2389 21.0001,32.0003L 21,46.0002C 21,48.7616 23.2386,51.0002 25.9999,51.0002L 27,51.0002L 27,47L 33.75,53.5L 27,60L 27,56L 26,56C 20.4771,56 16,51.5229 16,46L 16,32.0001C 16,26.4773 20.4771,22.0001 26,22.0001 Z M 33,27L 59,27L 59,32L 33,32L 33,27 Z M 36,35L 59,35L 59,40L 36,40L 36,35 Z M 33,43L 59,43L 59,48L 33,48L 33,43 Z "}))},F5=s=>{const e=Qw[s.name];return e?_.jsx("span",{className:W2("flex items-center justify-center w-5 h-4",s.className),onClick:s.onClick,children:_.jsx(e,{})}):null},Jw=()=>{const[s,e]=E.useState(!1);return E.useEffect(()=>{const n=i=>{i.key==="F1"&&(i.preventDefault(),e(l=>!l))};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[]),s?_.jsxs("div",{className:"text-xs inline-flex items-center font-mono font-medium leading-sm mx-1 px-3 py-1 bg-slate-100 text-slate-500 rounded-sm",children:[_.jsx(F5,{name:"debug",className:"h-3 w-3"}),_.jsxs("span",{className:"inline-block px-2",children:["main",":","8985fef8"]})]}):null},Le=({text:s,isEditable:e=!0,className:n="",onSave:i,title:l="Click to edit",autoEditToken:L,selectAllOnEdit:c=!1})=>{const[u,d]=E.useState(!1),[f,p]=E.useState(!1),m=E.useRef(""),w=E.useRef(null),v=E.useRef(!1),y=E.useRef(null),A=Y=>{const Q=w.current;if(!Q)return;Q.focus();const U=window.getSelection();if(!U)return;if(!Y){const L2=document.createRange();L2.selectNodeContents(Q),U.removeAllRanges(),U.addRange(L2);return}let J=document.caretRangeFromPoint?.(Y.x,Y.y);if(!J&&document.caretPositionFromPoint){const L2=document.caretPositionFromPoint(Y.x,Y.y);L2&&(J=document.createRange(),J.setStart(L2.offsetNode,L2.offset))}J&&(J.collapse(!0),U.removeAllRanges(),U.addRange(J))};E.useLayoutEffect(()=>{u&&A(y.current)},[u]);const O=Y=>{if(!e)return;Y.preventDefault(),Y.stopPropagation(),v.current=!1;const Q=Y.target;y.current=c||!("clientX"in Y)?null:{x:Y.clientX,y:Y.clientY},Q&&(m.current=Q.innerText??""),d(!0)},T=Y=>{if(u||!e)return;const Q=Y.currentTarget.closest(".message");Q&&Q.getAttribute("data-selected")!=="true"||O(Y)},N=()=>{!u&&e&&p(!0)},H=()=>{p(!1)},b=()=>{const Y=w.current?.innerText?.trim()??"";i(Y)},R=()=>{u&&(v.current||(d(!1),p(!1),b()))},S=Y=>{if(e){if(!u){(Y.key==="Enter"||Y.key===" ")&&O(Y);return}if(Y.stopPropagation(),Y.key==="Escape"){Y.preventDefault(),Y.stopPropagation(),v.current=!0;const Q=Y.target;Q&&(Q.innerText=m.current),d(!1),p(!1);return}Y.key==="Enter"&&(Y.preventDefault(),Y.stopPropagation())}},W=Y=>{e&&u&&(Y.key==="Enter"||Y.key==="Tab")&&(v.current=!0,d(!1),p(!1),b())},F=()=>{const Y=[n,"editable-span-base"];return u?Y.push("editable-span-editing"):f?Y.push("editable-span-hover"):e&&Y.push("cursor-pointer"),Y.filter(Boolean).join(" ")};return E.useEffect(()=>{!L||!e||(m.current=w.current?.innerText??s,v.current=!1,y.current=null,d(!0))},[L,e,s]),_.jsx("span",{ref:w,title:e?l:void 0,className:F(),contentEditable:u&&e,suppressContentEditableWarning:!0,tabIndex:e&&!u?0:void 0,role:e&&!u?"button":void 0,onClick:T,onMouseEnter:N,onMouseLeave:H,onBlur:R,onKeyUp:W,onKeyDown:S,children:s})},ev=s=>{const e=f2(c3),[n,i]=Q1(j3),l=f2(M4),L="Click to add title",c=s.context?.content(),u=c?R3(c):"",d=e!==B1.Static,f=!!u,p=m=>{const v=(m===L?"":m.replace(/[\r\n]+/g," ")).trim();if(!(v===u||!v))if(s.context){const y=s.context.TITLE_CONTENT()?.symbol,A=s.context.TITLE().symbol.stop+1,O=y?.text??"",T=O.length-O.trimStart().length,N=y?y.start+T:A,H=y?y.stop+1:A,b=(T>0?"":" ")+v,R=n.slice(0,N)+b+n.slice(H);i(R),l(R)}else{const y=`title ${v}
|
|
80
|
+
`)}async function lw(s,e){const n=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await rw(s,e);if(n){const i=document.createElement("style"),l=document.createTextNode(n);i.appendChild(l),s.firstChild?s.insertBefore(i,s.firstChild):s.appendChild(i)}}async function ns(s,e={}){const{width:n,height:i}=HL(s,e),l=await oe(s,e,!0);return await lw(l,e),await KL(l,e),tw(l,e),await Rx(l,n,i)}async function is(s,e={}){const{width:n,height:i}=HL(s,e),l=await ns(s,e),L=await se(l),c=document.createElement("canvas"),u=c.getContext("2d"),d=e.pixelRatio||vx(),f=e.canvasWidth||n,p=e.canvasHeight||i;return c.width=f*d,c.height=p*d,e.skipAutoScale||Mx(c),c.style.width=`${f}`,c.style.height=`${p}`,e.backgroundColor&&(u.fillStyle=e.backgroundColor,u.fillRect(0,0,c.width,c.height)),u.drawImage(L,0,0,c.width,c.height),c}async function nc(s,e={}){return(await is(s,e)).toDataURL()}async function aw(s,e={}){return(await is(s,e)).toDataURL("image/jpeg",e.quality||1)}async function Lw(s,e={}){const n=await is(s,e);return await _x(n)}function ic(s){var e,n,i="";if(typeof s=="string"||typeof s=="number")i+=s;else if(typeof s=="object")if(Array.isArray(s)){var l=s.length;for(e=0;e<l;e++)s[e]&&(n=ic(s[e]))&&(i&&(i+=" "),i+=n)}else for(n in s)s[n]&&(i&&(i+=" "),i+=n);return i}function cw(){for(var s,e,n=0,i="",l=arguments.length;n<l;n++)(s=arguments[n])&&(e=ic(s))&&(i&&(i+=" "),i+=e);return i}const Cw=(s,e)=>{const n=new Array(s.length+e.length);for(let i=0;i<s.length;i++)n[i]=s[i];for(let i=0;i<e.length;i++)n[s.length+i]=e[i];return n},uw=(s,e)=>({classGroupId:s,validator:e}),sc=(s=new Map,e=null,n)=>({nextPart:s,validators:e,classGroupId:n}),re="-",oc=[],hw="arbitrary..",dw=s=>{const e=gw(s),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=s;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return fw(c);const u=c.split(re),d=u[0]===""&&u.length>1?1:0;return rc(u,d,e)},getConflictingClassGroupIds:(c,u)=>{if(u){const d=i[c],f=n[c];return d?f?Cw(f,d):d:f||oc}return n[c]||oc}}},rc=(s,e,n)=>{if(s.length-e===0)return n.classGroupId;const l=s[e],L=n.nextPart.get(l);if(L){const f=rc(s,e+1,L);if(f)return f}const c=n.validators;if(c===null)return;const u=e===0?s.join(re):s.slice(e).join(re),d=c.length;for(let f=0;f<d;f++){const p=c[f];if(p.validator(u))return p.classGroupId}},fw=s=>s.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=s.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?hw+i:void 0})(),gw=s=>{const{theme:e,classGroups:n}=s;return pw(n,e)},pw=(s,e)=>{const n=sc();for(const i in s){const l=s[i];ss(l,n,i,e)}return n},ss=(s,e,n,i)=>{const l=s.length;for(let L=0;L<l;L++){const c=s[L];mw(c,e,n,i)}},mw=(s,e,n,i)=>{if(typeof s=="string"){xw(s,e,n);return}if(typeof s=="function"){ww(s,e,n,i);return}vw(s,e,n,i)},xw=(s,e,n)=>{const i=s===""?e:lc(e,s);i.classGroupId=n},ww=(s,e,n,i)=>{if(Mw(s)){ss(s(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(uw(n,s))},vw=(s,e,n,i)=>{const l=Object.entries(s),L=l.length;for(let c=0;c<L;c++){const[u,d]=l[c];ss(d,lc(e,u),n,i)}},lc=(s,e)=>{let n=s;const i=e.split(re),l=i.length;for(let L=0;L<l;L++){const c=i[L];let u=n.nextPart.get(c);u||(u=sc(),n.nextPart.set(c,u)),n=u}return n},Mw=s=>"isThemeGetter"in s&&s.isThemeGetter===!0,_w=s=>{if(s<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null);const l=(L,c)=>{n[L]=c,e++,e>s&&(e=0,i=n,n=Object.create(null))};return{get(L){let c=n[L];if(c!==void 0)return c;if((c=i[L])!==void 0)return l(L,c),c},set(L,c){L in n?n[L]=c:l(L,c)}}},os="!",ac=":",yw=[],Lc=(s,e,n,i,l)=>({modifiers:s,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:l}),Rw=s=>{const{prefix:e,experimentalParseClassName:n}=s;let i=l=>{const L=[];let c=0,u=0,d=0,f;const p=l.length;for(let A=0;A<p;A++){const O=l[A];if(c===0&&u===0){if(O===ac){L.push(l.slice(d,A)),d=A+1;continue}if(O==="/"){f=A;continue}}O==="["?c++:O==="]"?c--:O==="("?u++:O===")"&&u--}const m=L.length===0?l:l.slice(d);let w=m,v=!1;m.endsWith(os)?(w=m.slice(0,-1),v=!0):m.startsWith(os)&&(w=m.slice(1),v=!0);const y=f&&f>d?f-d:void 0;return Lc(L,v,w,y)};if(e){const l=e+ac,L=i;i=c=>c.startsWith(l)?L(c.slice(l.length)):Lc(yw,!1,c,void 0,!0)}if(n){const l=i;i=L=>n({className:L,parseClassName:l})}return i},Aw=s=>{const e=new Map;return s.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{const i=[];let l=[];for(let L=0;L<n.length;L++){const c=n[L],u=c[0]==="[",d=e.has(c);u||d?(l.length>0&&(l.sort(),i.push(...l),l=[]),i.push(c)):l.push(c)}return l.length>0&&(l.sort(),i.push(...l)),i}},Sw=s=>({cache:_w(s.cacheSize),parseClassName:Rw(s),sortModifiers:Aw(s),...dw(s)}),bw=/\s+/,Tw=(s,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:L}=e,c=[],u=s.trim().split(bw);let d="";for(let f=u.length-1;f>=0;f-=1){const p=u[f],{isExternal:m,modifiers:w,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:A}=n(p);if(m){d=p+(d.length>0?" "+d:d);continue}let O=!!A,T=i(O?y.substring(0,A):y);if(!T){if(!O){d=p+(d.length>0?" "+d:d);continue}if(T=i(y),!T){d=p+(d.length>0?" "+d:d);continue}O=!1}const N=w.length===0?"":w.length===1?w[0]:L(w).join(":"),H=v?N+os:N,b=H+T;if(c.indexOf(b)>-1)continue;c.push(b);const R=l(T,O);for(let S=0;S<R.length;++S){const W=R[S];c.push(H+W)}d=p+(d.length>0?" "+d:d)}return d},kw=(...s)=>{let e=0,n,i,l="";for(;e<s.length;)(n=s[e++])&&(i=cc(n))&&(l&&(l+=" "),l+=i);return l},cc=s=>{if(typeof s=="string")return s;let e,n="";for(let i=0;i<s.length;i++)s[i]&&(e=cc(s[i]))&&(n&&(n+=" "),n+=e);return n},Zw=(s,...e)=>{let n,i,l,L;const c=d=>{const f=e.reduce((p,m)=>m(p),s());return n=Sw(f),i=n.cache.get,l=n.cache.set,L=u,u(d)},u=d=>{const f=i(d);if(f)return f;const p=Tw(d,n);return l(d,p),p};return L=c,(...d)=>L(kw(...d))},Ew=[],r3=s=>{const e=n=>n[s]||Ew;return e.isThemeGetter=!0,e},Cc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,uc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Iw=/^\d+\/\d+$/,Nw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ow=/\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$/,Dw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Bw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,D5=s=>Iw.test(s),Q2=s=>!!s&&!Number.isNaN(Number(s)),e0=s=>!!s&&Number.isInteger(Number(s)),rs=s=>s.endsWith("%")&&Q2(s.slice(0,-1)),x9=s=>Nw.test(s),Fw=()=>!0,Uw=s=>Ow.test(s)&&!Dw.test(s),hc=()=>!1,Hw=s=>Bw.test(s),Ww=s=>zw.test(s),Pw=s=>!A2(s)&&!S2(s),Gw=s=>B5(s,mc,hc),A2=s=>Cc.test(s),V0=s=>B5(s,xc,Uw),ls=s=>B5(s,$w,Q2),dc=s=>B5(s,gc,hc),jw=s=>B5(s,pc,Ww),le=s=>B5(s,wc,Hw),S2=s=>uc.test(s),r6=s=>z5(s,xc),Vw=s=>z5(s,Kw),fc=s=>z5(s,gc),Yw=s=>z5(s,mc),Xw=s=>z5(s,pc),ae=s=>z5(s,wc,!0),B5=(s,e,n)=>{const i=Cc.exec(s);return i?i[1]?e(i[1]):n(i[2]):!1},z5=(s,e,n=!1)=>{const i=uc.exec(s);return i?i[1]?e(i[1]):n:!1},gc=s=>s==="position"||s==="percentage",pc=s=>s==="image"||s==="url",mc=s=>s==="length"||s==="size"||s==="bg-size",xc=s=>s==="length",$w=s=>s==="number",Kw=s=>s==="family-name",wc=s=>s==="shadow",qw=Zw(()=>{const s=r3("color"),e=r3("font"),n=r3("text"),i=r3("font-weight"),l=r3("tracking"),L=r3("leading"),c=r3("breakpoint"),u=r3("container"),d=r3("spacing"),f=r3("radius"),p=r3("shadow"),m=r3("inset-shadow"),w=r3("text-shadow"),v=r3("drop-shadow"),y=r3("blur"),A=r3("perspective"),O=r3("aspect"),T=r3("ease"),N=r3("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...b(),S2,A2],S=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],F=()=>[S2,A2,d],Y=()=>[D5,"full","auto",...F()],Q=()=>[e0,"none","subgrid",S2,A2],U=()=>["auto",{span:["full",e0,S2,A2]},e0,S2,A2],J=()=>[e0,"auto",S2,A2],L2=()=>["auto","min","max","fr",S2,A2],O2=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],l2=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...F()],t2=()=>[D5,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],$=()=>[s,S2,A2],x2=()=>[...b(),fc,dc,{position:[S2,A2]}],b2=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",Yw,Gw,{size:[S2,A2]}],e2=()=>[rs,r6,V0],o2=()=>["","none","full",f,S2,A2],d2=()=>["",Q2,r6,V0],p2=()=>["solid","dashed","dotted","double"],F2=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I2=()=>[Q2,rs,fc,dc],p1=()=>["","none",y,S2,A2],h1=()=>["none",Q2,S2,A2],l3=()=>["none",Q2,S2,A2],L4=()=>[Q2,S2,A2],c4=()=>[D5,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[x9],breakpoint:[x9],color:[Fw],container:[x9],"drop-shadow":[x9],ease:["in","out","in-out"],font:[Pw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[x9],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[x9],shadow:[x9],spacing:["px",Q2],text:[x9],"text-shadow":[x9],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",D5,A2,S2,O]}],container:["container"],columns:[{columns:[Q2,A2,S2,u]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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:R()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[e0,"auto",S2,A2]}],basis:[{basis:[D5,"full","auto",u,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q2,D5,"auto","initial","none",A2]}],grow:[{grow:["",Q2,S2,A2]}],shrink:[{shrink:["",Q2,S2,A2]}],order:[{order:[e0,"first","last","none",S2,A2]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L2()}],"auto-rows":[{"auto-rows":L2()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...O2(),"normal"]}],"justify-items":[{"justify-items":[...l2(),"normal"]}],"justify-self":[{"justify-self":["auto",...l2()]}],"align-content":[{content:["normal",...O2()]}],"align-items":[{items:[...l2(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...l2(),{baseline:["","last"]}]}],"place-content":[{"place-content":O2()}],"place-items":[{"place-items":[...l2(),"baseline"]}],"place-self":[{"place-self":["auto",...l2()]}],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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:t2()}],w:[{w:[u,"screen",...t2()]}],"min-w":[{"min-w":[u,"screen","none",...t2()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...t2()]}],h:[{h:["screen","lh",...t2()]}],"min-h":[{"min-h":["screen","lh","none",...t2()]}],"max-h":[{"max-h":["screen","lh",...t2()]}],"font-size":[{text:["base",n,r6,V0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,S2,ls]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rs,A2]}],"font-family":[{font:[Vw,A2,e]}],"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:[l,S2,A2]}],"line-clamp":[{"line-clamp":[Q2,"none",S2,ls]}],leading:[{leading:[L,...F()]}],"list-image":[{"list-image":["none",S2,A2]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",S2,A2]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...p2(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q2,"from-font","auto",S2,V0]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[Q2,"auto",S2,A2]}],"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",S2,A2]}],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",S2,A2]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:x2()}],"bg-repeat":[{bg:b2()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},e0,S2,A2],radial:["",S2,A2],conic:[e0,S2,A2]},Xw,jw]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:e2()}],"gradient-via-pos":[{via:e2()}],"gradient-to-pos":[{to:e2()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:o2()}],"rounded-s":[{"rounded-s":o2()}],"rounded-e":[{"rounded-e":o2()}],"rounded-t":[{"rounded-t":o2()}],"rounded-r":[{"rounded-r":o2()}],"rounded-b":[{"rounded-b":o2()}],"rounded-l":[{"rounded-l":o2()}],"rounded-ss":[{"rounded-ss":o2()}],"rounded-se":[{"rounded-se":o2()}],"rounded-ee":[{"rounded-ee":o2()}],"rounded-es":[{"rounded-es":o2()}],"rounded-tl":[{"rounded-tl":o2()}],"rounded-tr":[{"rounded-tr":o2()}],"rounded-br":[{"rounded-br":o2()}],"rounded-bl":[{"rounded-bl":o2()}],"border-w":[{border:d2()}],"border-w-x":[{"border-x":d2()}],"border-w-y":[{"border-y":d2()}],"border-w-s":[{"border-s":d2()}],"border-w-e":[{"border-e":d2()}],"border-w-t":[{"border-t":d2()}],"border-w-r":[{"border-r":d2()}],"border-w-b":[{"border-b":d2()}],"border-w-l":[{"border-l":d2()}],"divide-x":[{"divide-x":d2()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":d2()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...p2(),"hidden","none"]}],"divide-style":[{divide:[...p2(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...p2(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q2,S2,A2]}],"outline-w":[{outline:["",Q2,r6,V0]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",p,ae,le]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",m,ae,le]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:d2()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[Q2,V0]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":d2()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",w,ae,le]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[Q2,S2,A2]}],"mix-blend":[{"mix-blend":[...F2(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":F2()}],"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":[Q2]}],"mask-image-linear-from-pos":[{"mask-linear-from":I2()}],"mask-image-linear-to-pos":[{"mask-linear-to":I2()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":I2()}],"mask-image-t-to-pos":[{"mask-t-to":I2()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":I2()}],"mask-image-r-to-pos":[{"mask-r-to":I2()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":I2()}],"mask-image-b-to-pos":[{"mask-b-to":I2()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":I2()}],"mask-image-l-to-pos":[{"mask-l-to":I2()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":I2()}],"mask-image-x-to-pos":[{"mask-x-to":I2()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":I2()}],"mask-image-y-to-pos":[{"mask-y-to":I2()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[S2,A2]}],"mask-image-radial-from-pos":[{"mask-radial-from":I2()}],"mask-image-radial-to-pos":[{"mask-radial-to":I2()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[Q2]}],"mask-image-conic-from-pos":[{"mask-conic-from":I2()}],"mask-image-conic-to-pos":[{"mask-conic-to":I2()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:x2()}],"mask-repeat":[{mask:b2()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",S2,A2]}],filter:[{filter:["","none",S2,A2]}],blur:[{blur:p1()}],brightness:[{brightness:[Q2,S2,A2]}],contrast:[{contrast:[Q2,S2,A2]}],"drop-shadow":[{"drop-shadow":["","none",v,ae,le]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",Q2,S2,A2]}],"hue-rotate":[{"hue-rotate":[Q2,S2,A2]}],invert:[{invert:["",Q2,S2,A2]}],saturate:[{saturate:[Q2,S2,A2]}],sepia:[{sepia:["",Q2,S2,A2]}],"backdrop-filter":[{"backdrop-filter":["","none",S2,A2]}],"backdrop-blur":[{"backdrop-blur":p1()}],"backdrop-brightness":[{"backdrop-brightness":[Q2,S2,A2]}],"backdrop-contrast":[{"backdrop-contrast":[Q2,S2,A2]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q2,S2,A2]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q2,S2,A2]}],"backdrop-invert":[{"backdrop-invert":["",Q2,S2,A2]}],"backdrop-opacity":[{"backdrop-opacity":[Q2,S2,A2]}],"backdrop-saturate":[{"backdrop-saturate":[Q2,S2,A2]}],"backdrop-sepia":[{"backdrop-sepia":["",Q2,S2,A2]}],"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",S2,A2]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q2,"initial",S2,A2]}],ease:[{ease:["linear","initial",T,S2,A2]}],delay:[{delay:[Q2,S2,A2]}],animate:[{animate:["none",N,S2,A2]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,S2,A2]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:h1()}],"rotate-x":[{"rotate-x":h1()}],"rotate-y":[{"rotate-y":h1()}],"rotate-z":[{"rotate-z":h1()}],scale:[{scale:l3()}],"scale-x":[{"scale-x":l3()}],"scale-y":[{"scale-y":l3()}],"scale-z":[{"scale-z":l3()}],"scale-3d":["scale-3d"],skew:[{skew:L4()}],"skew-x":[{"skew-x":L4()}],"skew-y":[{"skew-y":L4()}],transform:[{transform:[S2,A2,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:c4()}],"translate-x":[{"translate-x":c4()}],"translate-y":[{"translate-y":c4()}],"translate-z":[{"translate-z":c4()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"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",S2,A2]}],"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",S2,A2]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[Q2,r6,V0,ls]}],stroke:[{stroke:["none",...$()]}],"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 W2(...s){return qw(cw(s))}const Qw={"collapse-expanded":s=>E.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"miter",...s},E.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:0}),E.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("g",{id:"SVGRepo_iconCarrier"},E.createElement("line",{x1:14,y1:10,x2:21,y2:3}),E.createElement("polyline",{points:"20 10 14 10 14 4"}),E.createElement("line",{x1:3,y1:21,x2:10,y2:14}),E.createElement("polyline",{points:"4 14 10 14 10 20"}))),"collapse-unexpanded":s=>E.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...s},E.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:0}),E.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("g",{id:"SVGRepo_iconCarrier"},E.createElement("title",null),E.createElement("g",{id:"Complete"},E.createElement("g",{id:"expand"},E.createElement("g",null,E.createElement("polyline",{"data-name":"Right",fill:"none",id:"Right-2",points:"3 17.3 3 21 6.7 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1}),E.createElement("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,x1:10,x2:3.8,y1:14,y2:20.2}),E.createElement("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,x1:14,x2:20.2,y1:10,y2:3.8}),E.createElement("polyline",{"data-name":"Right",fill:"none",id:"Right-3",points:"21 6.7 21 3 17.3 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1})))))),debug:s=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...s},E.createElement("line",{x1:6,y1:3,x2:6,y2:15}),E.createElement("circle",{cx:18,cy:6,r:3}),E.createElement("circle",{cx:6,cy:18,r:3}),E.createElement("path",{d:"M18 9a9 9 0 0 1-9 9"})),privacy:s=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 214.27 214.27",...s},E.createElement("path",{d:"M196.926 55.171c-.11-5.785-.215-11.25-.215-16.537a7.5 7.5 0 0 0-7.5-7.5c-32.075 0-56.496-9.218-76.852-29.01a7.498 7.498 0 0 0-10.457 0c-20.354 19.792-44.771 29.01-76.844 29.01a7.5 7.5 0 0 0-7.5 7.5c0 5.288-.104 10.755-.215 16.541-1.028 53.836-2.436 127.567 87.331 158.682a7.495 7.495 0 0 0 4.912 0c89.774-31.116 88.368-104.849 87.34-158.686zm-89.795 143.641c-76.987-27.967-75.823-89.232-74.79-143.351.062-3.248.122-6.396.164-9.482 30.04-1.268 54.062-10.371 74.626-28.285 20.566 17.914 44.592 27.018 74.634 28.285.042 3.085.102 6.231.164 9.477 1.032 54.121 2.195 115.388-74.798 143.356z"}),E.createElement("path",{d:"m132.958 81.082-36.199 36.197-15.447-15.447a7.501 7.501 0 0 0-10.606 10.607l20.75 20.75a7.477 7.477 0 0 0 5.303 2.196 7.477 7.477 0 0 0 5.303-2.196l41.501-41.5a7.498 7.498 0 0 0 .001-10.606 7.5 7.5 0 0 0-10.606-.001z"})),"alt-fragment":s=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{d:"M12 8L20 12L12 16L4 12L12 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"critical-fragment":s=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{d:"M12 5L19 12L12 19L5 12L12 5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M12 9V13",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M12 15V15.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"loop-fragment":s=>E.createElement("svg",{fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{d:"M960 101.84l-896.002.002c-35.344 0-64 28.656-64 64v576c0 35.36 28.656 64 64 64h160c20.496 0 32-26.32 32-31.984v-.016c0-5.824-10.88-32.416-32-32.416h-120.96c-21.376 0-38.72-17.344-38.72-38.72V206.002c0-21.391 17.328-38.72 38.72-38.72l818.272-1.007c21.376 0 38.72 17.328 38.72 38.72V702.69c0 21.376-17.344 38.72-38.72 38.72H518.142l75.984-68.912c9.344-8.944 12.369-23.408 3.025-32.336l-5.472-8.064c-9.376-8.945-24.496-8.945-33.84 0L428.111 750.53c-.192.16-.368.224-.528.368l-8.48 8.096c-4.672 4.431-7.008 10.335-6.976 16.223-.032 5.904 2.288 11.777 6.977 16.288l8.48 8.096c.16.16.368.192.528.336L555.84 915.44c9.344 8.944 24.464 8.944 33.84 0l5.472-8.065c9.344-8.944 6.32-23.44-3.025-32.368l-77.135-69.168H960c35.343 0 64-28.64 64-64v-576c0-35.344-28.657-64-64-64z"})),"opt-fragment":s=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("circle",{cx:12,cy:12,r:7,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"3 2",strokeLinecap:"round"})),"ref-fragment":s=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{d:"M10 6H18C19.1046 6 20 6.89543 20 8V16C20 17.1046 19.1046 18 18 18H10",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M10 6L6 12L10 18",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"par-fragment":s=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{d:"M5 10H19",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M5 14H19",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),"section-fragment":s=>E.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 1.5C2 1.77614 1.77614 2 1.5 2C1.22386 2 1 1.77614 1 1.5C1 1.22386 1.22386 1 1.5 1C1.77614 1 2 1.22386 2 1.5ZM2 5L2 10H13V5H2ZM2 4C1.44772 4 1 4.44772 1 5V10C1 10.5523 1.44772 11 2 11H13C13.5523 11 14 10.5523 14 10V5C14 4.44772 13.5523 4 13 4H2ZM1.5 14C1.77614 14 2 13.7761 2 13.5C2 13.2239 1.77614 13 1.5 13C1.22386 13 1 13.2239 1 13.5C1 13.7761 1.22386 14 1.5 14ZM4 1.5C4 1.77614 3.77614 2 3.5 2C3.22386 2 3 1.77614 3 1.5C3 1.22386 3.22386 1 3.5 1C3.77614 1 4 1.22386 4 1.5ZM3.5 14C3.77614 14 4 13.7761 4 13.5C4 13.2239 3.77614 13 3.5 13C3.22386 13 3 13.2239 3 13.5C3 13.7761 3.22386 14 3.5 14ZM6 1.5C6 1.77614 5.77614 2 5.5 2C5.22386 2 5 1.77614 5 1.5C5 1.22386 5.22386 1 5.5 1C5.77614 1 6 1.22386 6 1.5ZM5.5 14C5.77614 14 6 13.7761 6 13.5C6 13.2239 5.77614 13 5.5 13C5.22386 13 5 13.2239 5 13.5C5 13.7761 5.22386 14 5.5 14ZM8 1.5C8 1.77614 7.77614 2 7.5 2C7.22386 2 7 1.77614 7 1.5C7 1.22386 7.22386 1 7.5 1C7.77614 1 8 1.22386 8 1.5ZM7.5 14C7.77614 14 8 13.7761 8 13.5C8 13.2239 7.77614 13 7.5 13C7.22386 13 7 13.2239 7 13.5C7 13.7761 7.22386 14 7.5 14ZM10 1.5C10 1.77614 9.77614 2 9.5 2C9.22386 2 9 1.77614 9 1.5C9 1.22386 9.22386 1 9.5 1C9.77614 1 10 1.22386 10 1.5ZM9.5 14C9.77614 14 10 13.7761 10 13.5C10 13.2239 9.77614 13 9.5 13C9.22386 13 9 13.2239 9 13.5C9 13.7761 9.22386 14 9.5 14ZM12 1.5C12 1.77614 11.7761 2 11.5 2C11.2239 2 11 1.77614 11 1.5C11 1.22386 11.2239 1 11.5 1C11.7761 1 12 1.22386 12 1.5ZM11.5 14C11.7761 14 12 13.7761 12 13.5C12 13.2239 11.7761 13 11.5 13C11.2239 13 11 13.2239 11 13.5C11 13.7761 11.2239 14 11.5 14ZM14 1.5C14 1.77614 13.7761 2 13.5 2C13.2239 2 13 1.77614 13 1.5C13 1.22386 13.2239 1 13.5 1C13.7761 1 14 1.22386 14 1.5ZM13.5 14C13.7761 14 14 13.7761 14 13.5C14 13.2239 13.7761 13 13.5 13C13.2239 13 13 13.2239 13 13.5C13 13.7761 13.2239 14 13.5 14Z",fill:"currentColor"})),"try-catch-fragment":s=>E.createElement("svg",{width:"24px",height:"24px",viewBox:"0 3 76 76",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",baseProfile:"full",enableBackground:"new 0 0 76.00 76.00",xmlSpace:"preserve",...s},E.createElement("path",{fill:"currentColor",fillOpacity:1,strokeWidth:.2,strokeLinejoin:"round",d:"M 26,22.0001L 27,21.9998L 27,27L 26.0001,27.0003C 23.2386,27.0003 21.0001,29.2389 21.0001,32.0003L 21,46.0002C 21,48.7616 23.2386,51.0002 25.9999,51.0002L 27,51.0002L 27,47L 33.75,53.5L 27,60L 27,56L 26,56C 20.4771,56 16,51.5229 16,46L 16,32.0001C 16,26.4773 20.4771,22.0001 26,22.0001 Z M 33,27L 59,27L 59,32L 33,32L 33,27 Z M 36,35L 59,35L 59,40L 36,40L 36,35 Z M 33,43L 59,43L 59,48L 33,48L 33,43 Z "}))},F5=s=>{const e=Qw[s.name];return e?_.jsx("span",{className:W2("flex items-center justify-center w-5 h-4",s.className),onClick:s.onClick,children:_.jsx(e,{})}):null},Jw=()=>{const[s,e]=E.useState(!1);return E.useEffect(()=>{const n=i=>{i.key==="F1"&&(i.preventDefault(),e(l=>!l))};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[]),s?_.jsxs("div",{className:"text-xs inline-flex items-center font-mono font-medium leading-sm mx-1 px-3 py-1 bg-slate-100 text-slate-500 rounded-sm",children:[_.jsx(F5,{name:"debug",className:"h-3 w-3"}),_.jsxs("span",{className:"inline-block px-2",children:["main",":","9fb7d922"]})]}):null},Le=({text:s,isEditable:e=!0,className:n="",onSave:i,title:l="Click to edit",autoEditToken:L,selectAllOnEdit:c=!1})=>{const[u,d]=E.useState(!1),[f,p]=E.useState(!1),m=E.useRef(""),w=E.useRef(null),v=E.useRef(!1),y=E.useRef(null),A=Y=>{const Q=w.current;if(!Q)return;Q.focus();const U=window.getSelection();if(!U)return;if(!Y){const L2=document.createRange();L2.selectNodeContents(Q),U.removeAllRanges(),U.addRange(L2);return}let J=document.caretRangeFromPoint?.(Y.x,Y.y);if(!J&&document.caretPositionFromPoint){const L2=document.caretPositionFromPoint(Y.x,Y.y);L2&&(J=document.createRange(),J.setStart(L2.offsetNode,L2.offset))}J&&(J.collapse(!0),U.removeAllRanges(),U.addRange(J))};E.useLayoutEffect(()=>{u&&A(y.current)},[u]);const O=Y=>{if(!e)return;Y.preventDefault(),Y.stopPropagation(),v.current=!1;const Q=Y.target;y.current=c||!("clientX"in Y)?null:{x:Y.clientX,y:Y.clientY},Q&&(m.current=Q.innerText??""),d(!0)},T=Y=>{if(u||!e)return;const Q=Y.currentTarget.closest(".message");Q&&Q.getAttribute("data-selected")!=="true"||O(Y)},N=()=>{!u&&e&&p(!0)},H=()=>{p(!1)},b=()=>{const Y=w.current?.innerText?.trim()??"";i(Y)},R=()=>{u&&(v.current||(d(!1),p(!1),b()))},S=Y=>{if(e){if(!u){(Y.key==="Enter"||Y.key===" ")&&O(Y);return}if(Y.stopPropagation(),Y.key==="Escape"){Y.preventDefault(),Y.stopPropagation(),v.current=!0;const Q=Y.target;Q&&(Q.innerText=m.current),d(!1),p(!1);return}Y.key==="Enter"&&(Y.preventDefault(),Y.stopPropagation())}},W=Y=>{e&&u&&(Y.key==="Enter"||Y.key==="Tab")&&(v.current=!0,d(!1),p(!1),b())},F=()=>{const Y=[n,"editable-span-base"];return u?Y.push("editable-span-editing"):f?Y.push("editable-span-hover"):e&&Y.push("cursor-pointer"),Y.filter(Boolean).join(" ")};return E.useEffect(()=>{!L||!e||(m.current=w.current?.innerText??s,v.current=!1,y.current=null,d(!0))},[L,e,s]),_.jsx("span",{ref:w,title:e?l:void 0,className:F(),contentEditable:u&&e,suppressContentEditableWarning:!0,tabIndex:e&&!u?0:void 0,role:e&&!u?"button":void 0,onClick:T,onMouseEnter:N,onMouseLeave:H,onBlur:R,onKeyUp:W,onKeyDown:S,children:s})},ev=s=>{const e=f2(c3),[n,i]=Q1(j3),l=f2(M4),L="Click to add title",c=s.context?.content(),u=c?R3(c):"",d=e!==B1.Static,f=!!u,p=m=>{const v=(m===L?"":m.replace(/[\r\n]+/g," ")).trim();if(!(v===u||!v))if(s.context){const y=s.context.TITLE_CONTENT()?.symbol,A=s.context.TITLE().symbol.stop+1,O=y?.text??"",T=O.length-O.trimStart().length,N=y?y.start+T:A,H=y?y.stop+1:A,b=(T>0?"":" ")+v,R=n.slice(0,N)+b+n.slice(H);i(R),l(R)}else{const y=`title ${v}
|
|
81
81
|
${n}`;i(y),l(y)}};return _.jsx("div",{className:`title text-skin-title text-sm font-normal${!f&&d?" group min-w-[8rem]":""}`,children:d?_.jsx(Le,{text:f?u:L,isEditable:!0,onSave:p,title:f?"Click to edit title":"Click to add title",className:f?"!p-0":"!p-0 text-gray-400 italic font-normal text-sm opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity",selectAllOnEdit:!f}):_.jsx("span",{children:u})})};function as(s,e){if(!s.children||s.children.length===0)return 1;let n=0;for(const i of s.children)e==="LEFT"&&i.left!==s.left||e==="RIGHT"&&i.right!==s.right||(n=Math.max(n,as(i,e)));return n+1}const vc="top-level-fragments";function tv(s){return s.length===0?null:s.length===1?s[0]:{type:vc,left:"",right:"",children:s}}function w9(s){if(!s)return{left:0,right:0};if(s.type===vc){const e=(s.children??[]).map(w9);return{left:Math.max(0,...e.map(n=>n.left)),right:Math.max(0,...e.map(n=>n.right))}}return{left:$8*as(s,"LEFT"),right:$8*as(s,"RIGHT")}}const nv=G.tree.ParseTreeWalker.DEFAULT;class t0 extends j{_orderedParticipants;topLevelFrames=[];parents=[];constructor(e){super(),this._orderedParticipants=e}getLeft(e){const n=p9(e);return this._orderedParticipants.find(i=>n.includes(i))||""}getRight(e){return this._orderedParticipants.slice().reverse().find(n=>p9(e).includes(n))||""}enterFragment(e,n){const i={type:n,left:this.getLeft(e),right:this.getRight(e),children:[]};this.parents.length>0?this.parents[this.parents.length-1].children?.push(i):this.topLevelFrames.push(i),this.parents.push(i)}exitFragment(){this.parents.pop()}enterTcf(e){this.enterFragment(e,"tcf")}enterOpt(e){this.enterFragment(e,"opt")}enterPar(e){this.enterFragment(e,"par")}enterAlt(e){this.enterFragment(e,"alt")}enterLoop(e){this.enterFragment(e,"loop")}enterSection(e){this.enterFragment(e,"section")}enterCritical(e){this.enterFragment(e,"critical")}enterRef(e){this.enterFragment(e,"ref")}exitTcf(){this.exitFragment()}exitOpt(){this.exitFragment()}exitPar(){this.exitFragment()}exitAlt(){this.exitFragment()}exitLoop(){this.exitFragment()}exitSection(){this.exitFragment()}exitCritical(){this.exitFragment()}exitRef(){this.exitFragment()}getFrame(e){return e?(e.children.map(n=>{nv.walk(this,n)}),tv(this.topLevelFrames)):null}}function Ls(s){const e=s?.block?.();return e?t9(e,u1,new Map,"",0,null,0):[]}function l6(s){return s.trim()}function t9(s,e,n,i,l,L,c){const u=s?.stat?.()||[],d=[];let f=0;for(const p of u){const m=Z5(p);if(!m)continue;f++;const w=c+f,v=i?`${i}.${w}`:String(w),y=p.getComment?.()||"",A=p.message?.();if(A){const R=A.From?.()||e,S=A.Owner?.()||u1,W=l6(A.SignatureText?.()||""),F=A.braceBlock?.()?.block?.();if(d.push({key:m,kind:"sync",from:R,to:S,label:W,isSelf:R===S,hasBlock:!!F,comment:y,statNode:p,senderOccurrenceDepth:n.get(R)||0,targetHasOccurrence:n.has(S),targetOccurrenceDepth:n.get(S)||0,number:v,depth:l,parentBlockKind:L}),F){const Y=new Map(n);Y.set(S,(Y.get(S)||0)+1),d.push(...t9(F,S,Y,v,l+1,"sync",0))}continue}const O=p.asyncMessage?.();if(O){const R=O.From?.()||O.ProvidedFrom?.()||O.Origin?.()||e,S=O.Owner?.()||O.to?.()?.getFormattedText?.()||R,W=l6(O.content?.()?.getText?.()||O.SignatureText?.()||"");d.push({key:m,kind:"async",from:R,to:S,label:W,isSelf:R===S,hasBlock:!1,comment:y,senderOccurrenceDepth:n.get(R)||0,targetHasOccurrence:n.has(S),number:v,depth:l});continue}const T=p.creation?.();if(T){const R=T.From?.()||e,S=T.Owner?.()||"",W=l6(T.SignatureText?.()||"«create»"),F=T.braceBlock?.()?.block?.();if(d.push({key:m,kind:"creation",from:R,to:S,label:W,isSelf:!1,hasBlock:!!F,comment:y,statNode:p,senderOccurrenceDepth:n.get(R)||0,targetHasOccurrence:n.has(S),number:v,depth:l,parentBlockKind:L}),F){const Y=new Map(n);Y.set(S,(Y.get(S)||0)+1),d.push(...t9(F,S||e,Y,v,l+1,"creation",0))}continue}const N=p.ret?.();if(N){const R=l6(N.SignatureText?.()||""),S=N?.asyncMessage?.(),W=S?.From?.()||N?.From?.()||e,F=S?.to?.()?.getFormattedText?.()||N?.ReturnTo?.()||u1;d.push({key:m,kind:"return",from:W,to:F,label:R,isSelf:W===F,hasBlock:!1,comment:y,senderOccurrenceDepth:n.get(W)||0,targetOccurrenceDepth:n.get(F)||0,number:v,depth:l,parentBlockKind:L});continue}const H=p.divider?.();if(H){const R=l6(H.getFormattedText?.()||H.getText?.()||"");d.push({key:m,kind:"divider",from:"",to:"",label:R,isSelf:!1,hasBlock:!1,senderOccurrenceDepth:0,number:v,depth:l});continue}const b=iv(p);b&&(d.push({key:m,kind:"fragment",from:e,to:"",label:b.label,isSelf:!1,hasBlock:!1,fragmentKind:b.fragmentKind,fragmentLabel:b.label,fragmentHeaderLabel:b.headerLabel,guardKeyword:b.guardKeyword,fragmentSections:b.sections,comment:y,statNode:p,senderOccurrenceDepth:n.get(e)||0,number:v,depth:l}),sv(p,e,d,n,v,l))}return d}function iv(s){for(const l of n6){const L=s[l]?.();if(L){const u=L.parExpr?.()?.condition?.()?.getFormattedText?.()||"";return{fragmentKind:l,headerLabel:L.atom?.()?.getFormattedText?.(),label:u,guardKeyword:l==="loop"?L.WHILE?.()?.getText?.():void 0,sections:[{label:u,blockNode:L.braceBlock?.()?.block?.()}]}}}const e=s.alt?.();if(e){const l=[],L=e.ifBlock?.();L&&l.push({label:"Alt",guardKeyword:"if",condition:L.parExpr?.()?.condition?.()?.getFormattedText?.()||"",blockNode:L.braceBlock?.()?.block?.()});for(const f of e.elseIfBlock?.()||[]){const m=f.parExpr?.()?.condition?.()?.getFormattedText?.()||"";l.push({label:`else if ${m}`,guardKeyword:"else if",condition:m,blockNode:f.braceBlock?.()?.block?.()})}const c=e.elseBlock?.();return c&&l.push({label:"else",guardKeyword:"else",blockNode:c.braceBlock?.()?.block?.()}),{fragmentKind:"alt",label:e.ifBlock?.()?.parExpr?.()?.condition?.()?.getFormattedText?.()||"",sections:l}}const n=s.tcf?.();if(n){const l=[],L=n.tryBlock?.();L&&l.push({label:"Try",blockNode:L.braceBlock?.()?.block?.()});for(const u of n.catchBlock?.()||[]){const d=u.invocation?.()?.parameters?.()?.getFormattedText?.()||"";l.push({label:`catch ${d}`,blockNode:u.braceBlock?.()?.block?.()})}const c=n.finallyBlock?.();return c&&l.push({label:"finally",blockNode:c.braceBlock?.()?.block?.()}),{fragmentKind:"tcf",label:"",sections:l}}const i=s.ref?.();return i?{fragmentKind:"ref",label:i.getFormattedText?.()||"",sections:[]}:null}function ce(s){return(s?.stat?.()||[]).filter(e=>!!Z5(e)).length}function sv(s,e,n,i,l,L){for(const d of n6){const f=s[d]?.();if(f){const p=f.braceBlock?.()?.block?.();p&&n.push(...t9(p,e,i,l,L+1,null,0));return}}const c=s.alt?.();if(c){const d=c.ifBlock?.();let f=0;if(d){const m=d.braceBlock?.()?.block?.();m&&(n.push(...t9(m,e,i,l,L+1,null,f)),f+=ce(m))}for(const m of c.elseIfBlock?.()||[]){const w=m.braceBlock?.()?.block?.();if(w){const v=t9(w,e,i,l,L+1,null,f);v.length>0&&(v[0].sectionReset=!0),n.push(...v),f+=ce(w)}}const p=c.elseBlock?.();if(p){const m=p.braceBlock?.()?.block?.();if(m){const w=t9(m,e,i,l,L+1,null,f);w.length>0&&(w[0].sectionReset=!0),n.push(...w)}}return}const u=s.tcf?.();if(u){const d=u.tryBlock?.();let f=0;if(d){const m=d.braceBlock?.()?.block?.();m&&(n.push(...t9(m,e,i,l,L+1,null,f)),f+=ce(m))}for(const m of u.catchBlock?.()||[]){const w=m.braceBlock?.()?.block?.();if(w){const v=t9(w,e,i,l,L+1,null,f);v.length>0&&(v[0].sectionReset=!0),n.push(...v),f+=ce(w)}}const p=u.finallyBlock?.();if(p){const m=p.braceBlock?.()?.block?.();if(m){const w=t9(m,e,i,l,L+1,null,f);w.length>0&&(w[0].sectionReset=!0),n.push(...w)}}return}}const cs=(s,e)=>s==="alt"||s==="opt"?"if":s==="loop"?e??"loop":void 0,Ce=(s,e)=>Math.ceil(10+O4(R3(s),"14px")+(e?O4(e,"12px","all-small-caps")+(s?4:0):0)),ue=s=>({alt:"Alt",loop:"Loop",opt:"Opt",par:"Par",critical:"Critical",section:"Section",tcf:"Try",ref:"Ref"})[s]??s.charAt(0).toUpperCase()+s.slice(1),he=(s,e)=>Math.ceil(32+O4(s,"14px","all-small-caps")*1.1+(e?O4(e,"12px")+15:0)),Mc=(s,e,n,i,l=s.fragmentHeaderLabel??ue(s.fragmentKind),L=s.number)=>{const c=n.orderedParticipantNames(),u=new t0(c),d=m=>{const w=p9(m.statNode),v=c.find(A=>w.includes(A));if(!v)return 0;const y=w9(u.getFrame(m.statNode));return n.getPosition(v)-n.half(v)-y.left},f=d(s);let p=K8;for(const m of e){if(m.kind!=="fragment"||m!==s&&!m.number?.startsWith(`${s.number}.`))continue;const w=L?L+m.number.slice(s.number.length):void 0,v=m===s?0:d(m)-f+(m.depth-s.depth)*$8;p=Math.max(p,he(m===s?l:m.fragmentHeaderLabel??ue(m.fragmentKind),i?w:void 0)+v),m.fragmentLabel&&(p=Math.max(p,Ce(m.fragmentLabel,cs(m.fragmentKind,m.guardKeyword))+v));for(const y of m.fragmentSections??[])y.guardKeyword&&(p=Math.max(p,Ce(y.condition??"",y.guardKeyword)+v))}return p};function de(s,e){const n=e.orderedParticipantNames();if(!s||n.length===0)return 0;const i=p9(s),l=n.find(m=>i.includes(m))||"",L=n.slice().reverse().find(m=>i.includes(m))||"",u=new t0(n).getFrame(s),d=w9(u),f=ov(s,L,e),p=e.distance(l,L)+e.half(l)+e.half(L);return Math.max(p,K8)+d.left+d.right+f}function ov(s,e,n){const l=e6(s).filter(L=>L.from===L.to).map(L=>n.getMessageWidth(L)-n.distance(L.from||u1,e)-n.half(e));return Math.max.apply(null,[0,...l])}function rv(){const[s,e]=E.useState(0),[n,i]=E.useState(0),l=()=>{e(document.documentElement.scrollTop),i(document.documentElement.scrollLeft)};return E.useEffect(()=>{l();const L=new AbortController;return document.addEventListener("scroll",l,{signal:L.signal}),()=>{L.abort()}},[]),[s,n]}const Cs=10,lv=1,_c=20;function av(){let s=document.getElementById("zenuml-intersection-detector-container"),e=Array.from(document.getElementsByClassName("zenuml-intersection-detector"));return s&&e.length===Cs?{detectorContainer:s,detectors:e}:(s=document.createElement("div"),s.id="zenuml-intersection-detector-container",Object.assign(s.style,{position:"absolute",top:"0",left:"0",opacity:"0",pointerEvents:"none"}),e=new Array(Cs).fill(0).map(()=>{const n=document.createElement("div");return n.className="zenuml-intersection-detector",Object.assign(n.style,{position:"absolute",top:"0",left:"0",width:"100%"}),s?.appendChild(n),n}),document.body.appendChild(s),{detectorContainer:s,detectors:e})}function Lv(){const[s,e]=E.useState(0),n=E.useRef(null);return E.useEffect(()=>{const{detectorContainer:i,detectors:l}=av(),L=document.documentElement.scrollHeight-_c,c=document.documentElement.scrollWidth-_c;i.style.height=L+"px",i.style.width=c+"px";const u=Math.ceil(document.documentElement.scrollHeight/Cs),d=[...Array(u+1).keys()].map(f=>f/u).filter(f=>f>=0&&f<=1);return l.forEach((f,p)=>{f.style.top=p*u+"px",f.style.height=u+"px"}),n.current=new IntersectionObserver(([f])=>{(f.intersectionRect.top-f.boundingClientRect.top>lv||f.target===l[0])&&e(f.intersectionRect.top)},{threshold:d}),l.forEach(f=>{n.current&&n.current.observe(f)}),()=>{n.current?.disconnect()}},[]),s}const a6={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},yc=Object.create(null);for(const s in a6)Object.hasOwn(a6,s)&&(yc[a6[s]]=s);const B3={to:{},get:{}};B3.get=function(s){const e=s.slice(0,3).toLowerCase();let n,i;switch(e){case"hsl":{n=B3.get.hsl(s),i="hsl";break}case"hwb":{n=B3.get.hwb(s),i="hwb";break}default:{n=B3.get.rgb(s),i="rgb";break}}return n?{model:i,value:n}:null},B3.get.rgb=function(s){if(!s)return null;const e=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,i=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,l=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,L=/^(\w+)$/;let c=[0,0,0,1],u,d,f;if(u=s.match(n)){for(f=u[2],u=u[1],d=0;d<3;d++){const p=d*2;c[d]=Number.parseInt(u.slice(p,p+2),16)}f&&(c[3]=Number.parseInt(f,16)/255)}else if(u=s.match(e)){for(u=u[1],f=u[3],d=0;d<3;d++)c[d]=Number.parseInt(u[d]+u[d],16);f&&(c[3]=Number.parseInt(f+f,16)/255)}else if(u=s.match(i)){for(d=0;d<3;d++)c[d]=Number.parseFloat(u[d+1]);u[4]&&(c[3]=u[5]?Number.parseFloat(u[4])*.01:Number.parseFloat(u[4]))}else if(u=s.match(l)){for(d=0;d<3;d++)c[d]=Math.round(Number.parseFloat(u[d+1])*2.55);u[4]&&(c[3]=u[5]?Number.parseFloat(u[4])*.01:Number.parseFloat(u[4]))}else return(u=s.toLowerCase().match(L))?u[1]==="transparent"?[0,0,0,0]:Object.hasOwn(a6,u[1])?(c=a6[u[1]].slice(),c[3]=1,c):null:null;for(d=0;d<3;d++)c[d]=n0(c[d],0,255);return c[3]=n0(c[3],0,1),c},B3.get.hsl=function(s){if(!s)return null;const e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=s.match(e);if(n){const i=Number.parseFloat(n[4]),l=(Number.parseFloat(n[1])%360+360)%360,L=n0(Number.parseFloat(n[2]),0,100),c=n0(Number.parseFloat(n[3]),0,100),u=n0(Number.isNaN(i)?1:i,0,1);return[l,L,c,u]}return null},B3.get.hwb=function(s){if(!s)return null;const e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=s.match(e);if(n){const i=Number.parseFloat(n[4]),l=(Number.parseFloat(n[1])%360+360)%360,L=n0(Number.parseFloat(n[2]),0,100),c=n0(Number.parseFloat(n[3]),0,100),u=n0(Number.isNaN(i)?1:i,0,1);return[l,L,c,u]}return null},B3.to.hex=function(...s){return"#"+fe(s[0])+fe(s[1])+fe(s[2])+(s[3]<1?fe(Math.round(s[3]*255)):"")},B3.to.rgb=function(...s){return s.length<4||s[3]===1?"rgb("+Math.round(s[0])+", "+Math.round(s[1])+", "+Math.round(s[2])+")":"rgba("+Math.round(s[0])+", "+Math.round(s[1])+", "+Math.round(s[2])+", "+s[3]+")"},B3.to.rgb.percent=function(...s){const e=Math.round(s[0]/255*100),n=Math.round(s[1]/255*100),i=Math.round(s[2]/255*100);return s.length<4||s[3]===1?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+s[3]+")"},B3.to.hsl=function(...s){return s.length<4||s[3]===1?"hsl("+s[0]+", "+s[1]+"%, "+s[2]+"%)":"hsla("+s[0]+", "+s[1]+"%, "+s[2]+"%, "+s[3]+")"},B3.to.hwb=function(...s){let e="";return s.length>=4&&s[3]!==1&&(e=", "+s[3]),"hwb("+s[0]+", "+s[1]+"%, "+s[2]+"%"+e+")"},B3.to.keyword=function(...s){return yc[s.slice(0,3)]};function n0(s,e,n){return Math.min(Math.max(e,s),n)}function fe(s){const e=Math.round(s).toString(16).toUpperCase();return e.length<2?"0"+e:e}function cv(s){const e=B3.get.rgb(s)||[0,0,0],[n,i,l]=e;return(n*299+i*587+l*114)/1e3}function Cv(s){const e=B3.get.rgb(s)||[0,0,0],[n,i,l]=e;return`rgb(${n}, ${i}, ${l})`}function uv(s){let e=0,n=s;for(;n;)e+=n.offsetTop,n=n.offsetParent;return e}const Y0=/[!@#$%^&*()+-,.?''":{}|<>/\s]/,U5=s=>{let e=s.replace(/\s+/g," ");return Y0.test(e)&&(e=e.replace(/"/g,""),e=`"${e}"`,Y0.lastIndex=0),e},Rc=s=>s.replace(/\s+/g," "),hv=["Missing Constructor","ZenUML"],dv=s=>{const e=f2(c3),[n,i]=Q1(j3),l=f2(M4),L=e===B1.Dynamic&&hv.indexOf(s.labelText)===-1,c=e===B1.Dynamic,u=s.assignee?`${s.assignee}:${s.labelText}`:s.labelText,d=w=>{let v=w;return v.includes(" ")&&(v=v.replace(/\s+/g," ")),Y0.test(v)&&(v=v.replace(/"/g,""),v=`"${v}"`,Y0.lastIndex=0),v},f=w=>{const v=w.flatMap(({positions:A,text:O})=>A.map(T=>({position:T,text:d(O)}))).sort((A,O)=>O.position[0]-A.position[0]);if(v.length===0)return;let y=n;for(const{position:A,text:O}of v){const[T,N]=A;y=y.slice(0,T)+O+y.slice(N)}i(y),l(y)},p=(w,v)=>y=>{y===""||y===v||f([{positions:w,text:y}])},m=w=>v=>{if(v===""||v===w)return;let y=s.assignee??"",A=v;const O=v.indexOf(":");if(O>=0){const T=v.slice(0,O).trim(),N=v.slice(O+1).trim();T&&(y=T),N?A=N:A=s.labelText}f([{positions:s.assigneePositions??[],text:y},{positions:s.labelPositions??[],text:A}])};return _.jsx("div",{className:"flex items-center justify-center",children:_.jsx(Le,{text:u,isEditable:s.assignee?c:L,className:W2("name leading-4 right px-1"),onSave:s.assignee?m(u):p(s.labelPositions??[],s.labelText),title:"Double-click to edit"})})},Ac={actor:()=>Promise.resolve().then(()=>oR),boundary:()=>Promise.resolve().then(()=>rR),control:()=>Promise.resolve().then(()=>lR),database:()=>Promise.resolve().then(()=>aR),entity:()=>Promise.resolve().then(()=>LR),cognito:()=>Promise.resolve().then(()=>YR),elasticbeantalk:()=>Promise.resolve().then(()=>XR),kinesis:()=>Promise.resolve().then(()=>$R),lightsail:()=>Promise.resolve().then(()=>KR),sagemaker:()=>Promise.resolve().then(()=>qR)},fv=async s=>{const{cloudIcons:e}=await Promise.resolve().then(()=>eI);return e[s]??null},gv=async s=>{if(!s)return null;const e=s.toLowerCase(),n=Ac[s]??Ac[e];return n?(await n()).default:fv(e)},pv=({iconKey:s,className:e,alt:n})=>{const[i,l]=E.useState(null);return E.useEffect(()=>{(async()=>{try{l(await gv(s))}catch(c){console.error(`Failed to load icon: ${s}`,c)}})()},[s]),i?_.jsx("div",{className:e,"aria-description":n,dangerouslySetInnerHTML:{__html:i}}):_.jsx("div",{className:e})},mv=10;let ge;const xv=()=>{if(ge===void 0)try{ge=!!localStorage.getItem("zenumlDebug")}catch{ge=!1}return ge},wv=s=>{const e=E.useRef(null),n=f2(c3),i=f2(te),l=f2(G0),L=f2(BL),c=f2(e9),u=P1(ux),d=Lv(),[f]=rv(),p=s.entity.name===u1,m=Array.from(i.GetPositions(s.entity.name)??[]).sort((N,H)=>H[0]-N[0]),w=Array.from(i.GetAssigneePositions(s.entity.name)??[]).sort((N,H)=>H[0]-N[0]),v=()=>{const N=s.offsetTop2||0;let H=d+f;d>mv&&L!==!1&&(H+=L);const b=l?.clientHeight||0,R=l?uv(l):0;return H<N+R?0:Math.min(H-R,b-cm-50)-N},y=n===B1.Static||L===!1?0:v(),A=s.entity.color?Cv(s.entity.color):void 0,O=E.useMemo(()=>{if(!s.entity.color)return;const N=e.current&&window.getComputedStyle(e.current).getPropertyValue("background-color");if(N)return cv(N)>128?"#000":"#fff"},[s.entity.color]),T=p?"actor":s.entity.type?.toLowerCase();return _.jsxs("div",{className:W2("participant bg-skin-participant shadow-participant border-skin-participant text-skin-participant rounded text-sm font-normal leading-4 flex flex-col justify-center z-10 h-10 top-8",{selected:c.includes(s.entity.name),"ring-2 ring-sky-400":c.includes(s.entity.name),"cursor-pointer":n===B1.Dynamic&&!p}),ref:e,style:{backgroundColor:p?void 0:A,color:p?void 0:O,transform:`translateY(${y}px)`,pointerEvents:"auto"},onClick:()=>u(s.entity.name),onKeyDown:N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),u(s.entity.name))},tabIndex:n===B1.Dynamic&&!p?0:void 0,role:n===B1.Dynamic&&!p?"button":void 0,title:n===B1.Dynamic&&!p?"Click to style participant":void 0,"data-participant-id":s.entity.name,children:[xv()&&_.jsx("div",{className:"absolute left-[-12px] top-1/2 -translate-y-1/2 w-8 h-[2px] bg-amber-700",children:_.jsx("div",{className:"w-full h-full bg-black"})}),_.jsxs("div",{className:"flex items-center justify-center",children:[T&&_.jsx(pv,{iconKey:T,className:"h-6 w-6 mr-1 flex-shrink-0 [&>svg]:w-full [&>svg]:h-full",alt:`icon for ${s.entity.name}`}),!p&&_.jsxs("div",{className:"h-5 group flex flex-col justify-center",children:[s.entity.stereotype&&_.jsxs("label",{className:"interface leading-4",children:["«",s.entity.stereotype,"»"]}),_.jsxs("div",{className:"flex items-center",children:[s.entity.emoji&&_.jsx("span",{className:"mr-1 flex-shrink-0","data-testid":"participant-emoji",children:I5(s.entity.emoji)}),_.jsx(dv,{labelText:s.entity.assignee?s.entity.name.split(":")[1]:s.entity.label||s.entity.name,labelPositions:m,assignee:s.entity.assignee,assigneePositions:w})]})]})]})]})},X3=(s,e)=>{if(!e)return console.warn("[@zenuml/core] centerOf: entity is undefined"),0;try{return s.getPosition(e)||0}catch(n){return console.error(n),0}},vv=(s,e,n)=>!e||!n?0:X3(s,n)-X3(s,e),pe=s=>{const e=E.useRef(null),n=f2(V3),i=f2(Lx),l=P1(qi),L=20,[c,u]=E.useState(L),d=X3(n,s.entity.name)-(s.groupLeft||0);return E.useEffect(()=>{if(i){const f=i.getCreationTop(s.entity.name);u(f!=null?Math.max(L,f):L)}s.entity.name!==u1&&setTimeout(()=>{l(f=>f.includes(s.entity.name)?f:[...f,s.entity.name])},0)},[s.entity.name,i,l]),_.jsxs("div",{id:s.entity.name,"entity-type":s.entity.type?.toLowerCase(),className:W2("lifeline absolute flex flex-col h-full",{"transform -translate-x-1/2":s.renderParticipants},s.className),style:{paddingTop:c+"px",left:d+"px",translate:0},ref:e,children:[s.renderParticipants&&_.jsx(wv,{entity:s.entity,offsetTop2:c}),s.renderLifeLine&&_.jsx("div",{className:"line w0 mx-auto flex-grow w-px bg-[linear-gradient(to_bottom,transparent_50%,var(--color-border-base)_50%)] bg-[length:1px_10px]"})]})},Sc=2,us=1,hs=us/2,Mv="#666",_v="4 3",bc=2,yv=s=>_.jsx("svg",{"data-group-overlay":"",width:s.width,height:s.height,viewBox:`0 0 ${s.width} ${s.height}`,style:{position:"absolute",top:s.top,left:s.left,pointerEvents:"none",overflow:"visible"},children:_.jsx("rect",{x:"0",y:"0",width:s.width,height:s.height,fill:"none",stroke:Mv,strokeWidth:us,strokeDasharray:_v})}),Rv=s=>{const e=f2(V3),n=f2(G0),i=F0(s.context).Array(),l=E.useRef(null),[L,c]=E.useState(null),u=i.map(w=>w.name),d=E.useCallback(()=>{const w=l.current;if(!w||!n||u.length===0)return;let v=1/0,y=-1/0;for(const S of u){const W=S.replace(/[^A-Za-z0-9_-]/g,"\\$&"),F=n.querySelector(`#${W} .participant`);if(!F)continue;const Y=F.getBoundingClientRect();Y.left<v&&(v=Y.left),Y.right>y&&(y=Y.right)}if(!isFinite(v)||!isFinite(y))return;const A=w.getBoundingClientRect(),O=v-A.left,T=y-A.left,N=O-bc-hs,H=T+bc+hs,b=-hs,R=A.height+us;c(S=>{const W={left:N,top:b,width:H-N,height:R};return S&&S.left===W.left&&S.top===W.top&&S.width===W.width&&S.height===W.height?S:W})},[n,u.join(",")]);if(E.useLayoutEffect(()=>{const w=requestAnimationFrame(d);return()=>cancelAnimationFrame(w)},[d]),i.length<=0)return null;const f=e.left(i[0].name)+Sc,p=e.right(i[i.length-1].name)-Sc,m=s.context?.name()?.getFormattedText();return _.jsxs("div",{ref:l,className:"lifeline-group-container absolute flex flex-col flex-grow h-full",style:{left:`${f}px`,width:`${p-f}px`},children:[s.renderLifeLine&&L&&_.jsx(yv,{left:L.left,top:L.top,width:L.width,height:L.height}),s.renderParticipants&&m&&_.jsx("div",{className:"z-10 absolute left-1/2 -translate-x-1/2 bg-skin-frame px-1",children:_.jsx("span",{className:"text-skin-lifeline-group-name",style:{fontSize:"13px",fontWeight:400},children:m})}),_.jsx("div",{className:"lifeline-group relative flex-grow",children:i.map(w=>_.jsx(pe,{entity:w,groupLeft:f,renderLifeLine:s.renderLifeLine,renderParticipants:s.renderParticipants},w.name))})]})},Tc=(s,e)=>{const n=s.indexOf(`
|
|
82
82
|
`,e);return n===-1?s.length:n+1},kc=s=>s.includes(" ")?`"${s}"`:s,Av=({code:s,from:e,to:n,signature:i="newMessage()",blockContext:l,hostContext:L,insertIndex:c})=>{const u=kc(e),d=kc(n),f=`${u}->${d}.${i}`,p=l??L?.braceBlock?.()?.block?.(),m=p?.stat?.()||[];if(!p&&L){const b=f9(s,L.start.start),R=Tc(s,L.stop.stop),S=s.slice(b,R).replace(/\n$/,""),W=S.match(/^\s*/)?.[0]??"",F=S.trimStart(),Y=`${W} `,Q=R>0&&s[R-1]===`
|
|
83
83
|
`?`
|
|
@@ -139,7 +139,7 @@ ${O}`:L;return s.slice(0,v)+T+s.slice(y)}const f=u?u.start.start:d?d.stop.stop+1
|
|
|
139
139
|
`)?`
|
|
140
140
|
`:"";return`${p}${w}${L}
|
|
141
141
|
${m}`},YC=q8/2,Ry=(s,e,n)=>(s.boxRight(e)+s.boxLeft(n))/2,Ay=(s,e)=>{if(e.length===0)return null;const n=e[e.length-1];return s.boxRight(n)+YC},Sy=(s,e)=>{if(e.length===0)return null;const n=e[0];return s.boxLeft(n)-YC},by=40,Gs=16,o0=36,js=by-o0/2,XC=(o0-Gs)/2,Ty=s=>{for(let e=1;;e++){const n=String.fromCharCode(64+e);if(n.length===1&&e<=26&&!s.has(n))return n;if(e>26){const i=`P${e-26}`;if(!s.has(i))return i}}},ky=()=>{const s=f2(c3),e=f2(IL),n=f2(V3),i=f2(D4),l=f2(M4),[L,c]=Q1(j3),u=E.useMemo(()=>g9(i).filter(b=>b.name!==u1),[i]),d=E.useMemo(()=>new Set(u.map(b=>b.name)),[u]),f=E.useMemo(()=>u.map(b=>b.name),[u]),p=E.useRef(null),[m,w]=E.useState({});E.useLayoutEffect(()=>{if(!p.current||f.length===0)return;const b=p.current.getBoundingClientRect().left,R={};for(const S of f){const W=document.querySelector(`[data-participant-id="${CSS.escape(S)}"]`);if(!W)continue;const F=W.getBoundingClientRect();R[S]={boxLeft:F.left-b,boxRight:F.right-b}}w(R)},[f,n]);const v=E.useMemo(()=>({boxLeft:b=>m[b]?.boxLeft??n.left(b)+q8/2,boxRight:b=>m[b]?.boxRight??n.right(b)-q8/2}),[n,m]),y=E.useMemo(()=>{if(u.length<2)return[];const b=[];for(let R=0;R<u.length-1;R++)b.push(Ry(v,u[R].name,u[R+1].name));return b},[v,u]),A=E.useMemo(()=>Sy(v,f),[v,f]),O=E.useMemo(()=>Ay(v,f),[v,f]),T=b=>{if(!i)return;const R=Ty(d),S=VC({code:L,rootContext:i,insertIndex:b,name:R,type:"default"});c(S),l(S)};if(!e||s!==B1.Dynamic||u.length===0)return null;const N="absolute flex items-center justify-center rounded-full border border-slate-300 bg-white text-slate-400 text-xs leading-none opacity-0 transition-all group-hover:opacity-80 hover:!opacity-100 hover:border-sky-400 hover:text-sky-500 hover:shadow-sm focus-visible:opacity-100 focus-visible:border-sky-400 focus-visible:text-sky-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sky-300",H={top:XC,left:XC,width:Gs,height:Gs};return _.jsxs(_.Fragment,{children:[_.jsx("div",{ref:p,"aria-hidden":!0,style:{position:"absolute",left:0,top:0,width:0,height:0,pointerEvents:"none"}}),A!==null&&_.jsx("div",{className:"group absolute -translate-x-1/2",style:{left:A,top:js,width:o0,height:o0,pointerEvents:"auto"},children:_.jsx("button",{type:"button","data-testid":"participant-prepend-button",title:"Add participant","aria-label":"Add participant at the start",className:N,style:H,onClick:()=>T(0),children:"+"})}),y.map((b,R)=>_.jsx("div",{className:"group absolute -translate-x-1/2",style:{left:b,top:js,width:o0,height:o0,pointerEvents:"auto"},children:_.jsx("button",{type:"button","data-testid":`participant-insert-button-${R}`,title:`Insert participant between ${u[R].name} and ${u[R+1].name}`,"aria-label":`Insert participant between ${u[R].name} and ${u[R+1].name}`,className:N,style:H,onClick:()=>T(R+1),children:"+"})},R)),O!==null&&_.jsx("div",{className:"group absolute -translate-x-1/2",style:{left:O,top:js,width:o0,height:o0,pointerEvents:"auto"},children:_.jsx("button",{type:"button","data-testid":"participant-append-button",title:"Add participant","aria-label":"Add participant",className:N,style:H,onClick:()=>T(u.length),children:"+"})})]})},Zy=s=>{const e=[];return s.type&&e.push(`@${s.type}`),s.stereotype&&e.push(`<<${s.stereotype}>>`),s.emoji&&e.push(`[${s.emoji}]`),e.push(s.name),s.label&&s.label!==s.name&&e.push(`as ${s.label}`),s.color&&e.push(s.color),e.join(" ")},Ey=(s,e)=>(s?.head?.()?.participant?.()??[]).find(i=>{const l=i?.name()?.getFormattedText();return l===e||l===e.split(":")[1]}),$C=(s,e,n,i)=>{const l=Ey(e,n);if(!l)return s;const L=l?.participantType()?.getFormattedText()?.replace("@","")??void 0,c=l?.COLOR?.()?.getText()??void 0,u=l.label?.()?.name()?.getFormattedText(),d=l.stereotype?.()?.name()?.getFormattedText(),f=l.emoji?.()?.name?.()?.getFormattedText(),p="type"in i?i.type??void 0:L,m="color"in i?i.color??void 0:c,w=Zy({name:l?.name()?.getFormattedText(),label:u,type:p,stereotype:d,color:m,emoji:f}),v=l.start.start,y=l.stop.stop+1;return s.slice(0,v)+w+s.slice(y)},Iy=[{hex:"#ef4444",name:"Red"},{hex:"#f97316",name:"Orange"},{hex:"#eab308",name:"Yellow"},{hex:"#22c55e",name:"Green"},{hex:"#14b8a6",name:"Teal"},{hex:"#3b82f6",name:"Blue"},{hex:"#8b5cf6",name:"Purple"},{hex:"#ec4899",name:"Pink"},{hex:"#94a3b8",name:"Gray"},{hex:"#ffffff",name:"White"}],Ny=[{key:"Actor",label:"Actor",icon:"👤"},{key:"Boundary",label:"Boundary",icon:"⬡"},{key:"Control",label:"Control",icon:"⟳"},{key:"Entity",label:"Entity",icon:"□"},{key:"Database",label:"Database",icon:"🗄"},{key:"Queue",label:"Queue",icon:"≡"}],Oy=()=>{const s=f2(c3),e=f2(OL),[n,i]=Q1(j3),l=f2(M4),L=f2(D4),[c,u]=Q1(e9),d=f2(G0),f=f2(o6),[p,m]=E.useState(!1),[w,v]=E.useState(null),y=E.useRef(null),A=c[0]??null,O=A?g9(L).find(b=>b.name===A):null,T=O?.color?.toLowerCase()??null,N=O?.type??null;if(E.useEffect(()=>{if(c.length===1&&d&&!f){const b=d.querySelector(`[data-participant-id="${c[0]}"]`);if(b){const R=b.getBoundingClientRect();v({top:R.bottom+6,left:R.left})}m(!0)}else m(!1),v(null)},[c,d,f]),E.useEffect(()=>{if(!p||!y.current||!w)return;const b=y.current.getBoundingClientRect();let{top:R,left:S}=w;const W=8;S+b.width>window.innerWidth-W&&(S=window.innerWidth-b.width-W),S<W&&(S=W),R+b.height>window.innerHeight-W&&(R=w.top-b.height-12),(R!==w.top||S!==w.left)&&v({top:R,left:S})},[p,w]),E.useEffect(()=>{if(!p)return;const b=S=>{y.current&&!y.current.contains(S.target)&&(m(!1),u([]))},R=S=>{S.key==="Escape"&&(m(!1),u([]))};return document.addEventListener("pointerdown",b),document.addEventListener("keydown",R),()=>{document.removeEventListener("pointerdown",b),document.removeEventListener("keydown",R)}},[p,u]),!e||s!==B1.Dynamic||!p||!A||!w)return null;const H=b=>{let R=n;const S=L,W=g9(L).filter(Q=>Q.name!==u1);if(!(L?.head?.()?.participant?.()??[]).some(Q=>Q?.name()?.getFormattedText()===A)){const Q=W.findIndex(L2=>L2.name===A);R=VC({code:R,rootContext:S,insertIndex:Q,name:A,type:"default"});const U=$C(R,S,A,b),J=U!==R?U:R;i(J),l(J),m(!1),u([]);return}const Y=$C(R,S,A,b);Y!==R&&(i(Y),l(Y),m(!1),u([]))};return _.jsx(PC,{children:_.jsxs("div",{ref:y,className:"bg-white rounded-lg shadow-lg border border-gray-200 p-2 flex flex-col gap-2",style:{position:"fixed",zIndex:50,minWidth:180,top:w.top,left:w.left},"data-testid":"participant-style-panel",children:[_.jsx("div",{className:"text-[10px] uppercase tracking-wide text-gray-400 font-semibold px-1",children:"Color"}),_.jsxs("div",{className:"flex flex-wrap gap-1 px-1",children:[Iy.map(({hex:b,name:R})=>{const S=T===b.toLowerCase();return _.jsx("button",{type:"button",className:`w-5 h-5 rounded-full border hover:scale-110 transition-transform focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sky-300 ${S?"border-sky-500 ring-2 ring-sky-400 ring-offset-1":"border-gray-300"}`,style:{backgroundColor:b},title:S?`${R} (current)`:R,"aria-label":`Set color to ${R}`,"aria-pressed":S,onClick:()=>H({color:b})},b)}),_.jsx("button",{type:"button",className:"w-5 h-5 rounded-full border border-dashed border-gray-400 text-gray-400 text-[9px] hover:scale-110 transition-transform flex items-center justify-center",title:"Remove color","aria-label":"Remove color",onClick:()=>H({color:null}),children:"✕"})]}),_.jsx("div",{className:"w-full h-px bg-gray-100"}),_.jsx("div",{className:"text-[10px] uppercase tracking-wide text-gray-400 font-semibold px-1",children:"Type"}),_.jsxs("div",{className:"flex flex-wrap gap-1 px-1",children:[Ny.map(({key:b,label:R,icon:S})=>{const W=N?.toLowerCase()===b.toLowerCase();return _.jsxs("button",{type:"button",className:`flex flex-col items-center gap-0.5 px-1.5 py-1 rounded border text-[10px] min-w-[36px] hover:bg-gray-100 ${W?"border-sky-400 bg-sky-50 text-sky-700":"border-gray-200 text-gray-700"}`,title:W?`${R} (current)`:`Set type to ${R}`,"aria-label":`Set type to ${R}`,"aria-pressed":W,onClick:()=>H({type:b}),children:[_.jsx("span",{className:"text-sm leading-none",children:S}),_.jsx("span",{children:R})]},b)}),_.jsxs("button",{type:"button",className:"flex flex-col items-center gap-0.5 px-1.5 py-1 rounded border border-dashed border-gray-300 text-gray-400 hover:bg-gray-100 text-[10px] min-w-[36px]",title:"Remove type","aria-label":"Remove type",onClick:()=>H({type:null}),children:[_.jsx("span",{className:"text-sm leading-none",children:"□"}),_.jsx("span",{children:"None"})]})]})]})})},Dy=()=>{const s=f2(c3),[e,n]=Q1(j3),i=f2(M4);if(s!==B1.Dynamic)return null;const l=()=>{const L=e.trim()?`${e.trim()}
|
|
142
|
-
A`:"A";n(L),i(L)};return _.jsx("div",{className:"flex items-center justify-center",style:{minHeight:120},children:_.jsxs("button",{type:"button","data-testid":"empty-diagram-prompt",onClick:l,className:"flex flex-col items-center gap-2 rounded-xl border-2 border-dashed border-slate-300 px-8 py-6 text-slate-400 transition-colors hover:border-sky-400 hover:text-sky-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sky-300",children:[_.jsx("span",{className:"text-2xl leading-none",children:"+"}),_.jsx("span",{className:"text-sm",children:"Click to add your first participant"})]})})},KC=s=>{const e=f2(i6),n=f2(c3),i=f2(D4),l=f2(V3),L=f2(s6),c=E.useMemo(()=>l.orderedParticipantNames().length===0,[l]),u=P1(G0),d=P1(e9),f=P1(m9),p=E.useRef(null);E.useEffect(()=>{u(p.current)}),E.useImperativeHandle(s.ref,()=>p.current);const m=E.useMemo(()=>{const v=l.orderedParticipantNames(),A=new t0(v).getFrame(i);return A?w9(A).left:0},[l,i]),w=E.useMemo(()=>{const v=de(i,l),y=Ls(i),A=l.orderedParticipantNames(),O=new t0(A);let T=v-m;for(const N of y){if(N.kind!=="fragment")continue;const H=p9(N.statNode),b=A.find(W=>H.includes(W));if(!b)continue;const R=w9(O.getFrame(N.statNode)),S=l.getPosition(b)-l.half(b)-R.left;T=Math.max(T,S+Mc(N,y,l,L))}return T},[i,l,m,L]);return _.jsx("div",{className:W2("zenuml sequence-diagram relative box-border text-left overflow-visible px-2.5",e,s.className),style:s.style,ref:p,onClick:v=>{const y=v.target;y?.closest(".interaction")||y?.closest(".participant")||y?.closest("#style-panel")||(d([]),f(null))},children:_.jsx("div",{style:{paddingLeft:`${m}px`},className:"relative z-container",children:n===B1.Dynamic?_.jsxs(_.Fragment,{children:[c&&_.jsx(Dy,{}),_.jsx(ds,{leftGap:m,context:i?.head(),renderLifeLine:!0}),_.jsx(GC,{context:i?.block(),style:{width:`${w}px`}}),_.jsx(ds,{leftGap:m,context:i?.head(),renderParticipants:!0}),_.jsx("div",{className:"absolute h-full top-0 pt-2",style:{width:`calc(100% - ${m}px)`,pointerEvents:"none",zIndex:40},children:_.jsx("div",{className:"relative grow h-full",children:_.jsx(ky,{})})}),_.jsx(Oy,{})]}):_.jsxs(_.Fragment,{children:[_.jsx(ds,{leftGap:m,context:i?.head(),renderParticipants:!0,renderLifeLine:!0}),_.jsx(GC,{context:i?.block(),style:{width:`${w}px`}})]})})})},ze={backgroundColor:"white",filter:s=>!s?.classList?.contains("hide-export")},By=({ref:s,children:e})=>{const n=E.useRef(null),i=f2(D4),[l,L]=Q1(Cx),[c,u]=Q1(i6),d=i?.title(),f=async()=>{if(n.current)return nc(n.current,ze)},p=async()=>{if(n.current)return ns(n.current,ze)},m=async()=>{if(n.current)return Lw(n.current,ze)},w=async()=>{if(n.current)return aw(n.current,ze)},v=()=>{const T=Math.min(1,l+.1);L(T)},y=()=>{L(l-.1)},A=T=>{const N="zenuml-style",H=document.createElement("style");H.id=N,document.head.append(H),H.textContent=T},O=T=>{const N=new URL(T).hostname;if(N==="https://github.com"||N==="https://githubusercontent.com"){fetch(T.replace("github.com","raw.githubusercontent.com").replace("blob/","")).then(R=>R.text()).then(R=>{A(R)});return}const H="zenuml-remote-css",b=document.createElement("link");b.id=H,b.rel="stylesheet",document.head.append(b),b.href=T};return E.useImperativeHandle(s,()=>({toPng:f,toSvg:p,toBlob:m,toJpeg:w,zoomIn:v,zoomOut:y,setTheme:u,setRemoteCss:O})),_.jsxs("div",{ref:n,className:W2("p-1 bg-skin-canvas inline-block",c),children:[_.jsx(Jw,{}),_.jsx("div",{className:"frame text-skin-base bg-skin-frame border-skin-frame relative m-1 origin-top-left whitespace-nowrap border rounded",children:_.jsxs("div",{children:[_.jsxs("div",{className:"header text-skin-title bg-skin-title border-skin-frame border-b p-1 flex items-center justify-between rounded-t",style:{minHeight:oL},children:[_.jsx("div",{className:"left hide-export",children:e}),_.jsx("div",{className:"right flex-grow flex justify-between",children:_.jsx(ev,{context:d})})]}),_.jsx(KC,{className:"origin-top-left",style:{transform:`scale(${l})`}})]})})]})};class zy extends E.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,n){console.error("[ZenUML] Rendering error:",e,n.componentStack)}render(){return this.state.hasError?_.jsxs("div",{style:{padding:16,color:"#c00",fontFamily:"monospace",fontSize:13},children:[_.jsx("strong",{children:"ZenUML rendering error"}),_.jsx("pre",{style:{whiteSpace:"pre-wrap",marginTop:8},children:this.state.error?.message})]}):this.props.children}}const Fy="4.4.
|
|
142
|
+
A`:"A";n(L),i(L)};return _.jsx("div",{className:"flex items-center justify-center",style:{minHeight:120},children:_.jsxs("button",{type:"button","data-testid":"empty-diagram-prompt",onClick:l,className:"flex flex-col items-center gap-2 rounded-xl border-2 border-dashed border-slate-300 px-8 py-6 text-slate-400 transition-colors hover:border-sky-400 hover:text-sky-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sky-300",children:[_.jsx("span",{className:"text-2xl leading-none",children:"+"}),_.jsx("span",{className:"text-sm",children:"Click to add your first participant"})]})})},KC=s=>{const e=f2(i6),n=f2(c3),i=f2(D4),l=f2(V3),L=f2(s6),c=E.useMemo(()=>l.orderedParticipantNames().length===0,[l]),u=P1(G0),d=P1(e9),f=P1(m9),p=E.useRef(null);E.useEffect(()=>{u(p.current)}),E.useImperativeHandle(s.ref,()=>p.current);const m=E.useMemo(()=>{const v=l.orderedParticipantNames(),A=new t0(v).getFrame(i);return A?w9(A).left:0},[l,i]),w=E.useMemo(()=>{const v=de(i,l),y=Ls(i),A=l.orderedParticipantNames(),O=new t0(A);let T=v-m;for(const N of y){if(N.kind!=="fragment")continue;const H=p9(N.statNode),b=A.find(W=>H.includes(W));if(!b)continue;const R=w9(O.getFrame(N.statNode)),S=l.getPosition(b)-l.half(b)-R.left;T=Math.max(T,S+Mc(N,y,l,L))}return T},[i,l,m,L]);return _.jsx("div",{className:W2("zenuml sequence-diagram relative box-border text-left overflow-visible px-2.5",e,s.className),style:s.style,ref:p,onClick:v=>{const y=v.target;y?.closest(".interaction")||y?.closest(".participant")||y?.closest("#style-panel")||(d([]),f(null))},children:_.jsx("div",{style:{paddingLeft:`${m}px`},className:"relative z-container",children:n===B1.Dynamic?_.jsxs(_.Fragment,{children:[c&&_.jsx(Dy,{}),_.jsx(ds,{leftGap:m,context:i?.head(),renderLifeLine:!0}),_.jsx(GC,{context:i?.block(),style:{width:`${w}px`}}),_.jsx(ds,{leftGap:m,context:i?.head(),renderParticipants:!0}),_.jsx("div",{className:"absolute h-full top-0 pt-2",style:{width:`calc(100% - ${m}px)`,pointerEvents:"none",zIndex:40},children:_.jsx("div",{className:"relative grow h-full",children:_.jsx(ky,{})})}),_.jsx(Oy,{})]}):_.jsxs(_.Fragment,{children:[_.jsx(ds,{leftGap:m,context:i?.head(),renderParticipants:!0,renderLifeLine:!0}),_.jsx(GC,{context:i?.block(),style:{width:`${w}px`}})]})})})},ze={backgroundColor:"white",filter:s=>!s?.classList?.contains("hide-export")},By=({ref:s,children:e})=>{const n=E.useRef(null),i=f2(D4),[l,L]=Q1(Cx),[c,u]=Q1(i6),d=i?.title(),f=async()=>{if(n.current)return nc(n.current,ze)},p=async()=>{if(n.current)return ns(n.current,ze)},m=async()=>{if(n.current)return Lw(n.current,ze)},w=async()=>{if(n.current)return aw(n.current,ze)},v=()=>{const T=Math.min(1,l+.1);L(T)},y=()=>{L(l-.1)},A=T=>{const N="zenuml-style",H=document.createElement("style");H.id=N,document.head.append(H),H.textContent=T},O=T=>{const N=new URL(T).hostname;if(N==="https://github.com"||N==="https://githubusercontent.com"){fetch(T.replace("github.com","raw.githubusercontent.com").replace("blob/","")).then(R=>R.text()).then(R=>{A(R)});return}const H="zenuml-remote-css",b=document.createElement("link");b.id=H,b.rel="stylesheet",document.head.append(b),b.href=T};return E.useImperativeHandle(s,()=>({toPng:f,toSvg:p,toBlob:m,toJpeg:w,zoomIn:v,zoomOut:y,setTheme:u,setRemoteCss:O})),_.jsxs("div",{ref:n,className:W2("p-1 bg-skin-canvas inline-block",c),children:[_.jsx(Jw,{}),_.jsx("div",{className:"frame text-skin-base bg-skin-frame border-skin-frame relative m-1 origin-top-left whitespace-nowrap border rounded",children:_.jsxs("div",{children:[_.jsxs("div",{className:"header text-skin-title bg-skin-title border-skin-frame border-b p-1 flex items-center justify-between rounded-t",style:{minHeight:oL},children:[_.jsx("div",{className:"left hide-export",children:e}),_.jsx("div",{className:"right flex-grow flex justify-between",children:_.jsx(ev,{context:d})})]}),_.jsx(KC,{className:"origin-top-left",style:{transform:`scale(${l})`}})]})})]})};class zy extends E.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,n){console.error("[ZenUML] Rendering error:",e,n.componentStack)}render(){return this.state.hasError?_.jsxs("div",{style:{padding:16,color:"#c00",fontFamily:"monospace",fontSize:13},children:[_.jsx("strong",{children:"ZenUML rendering error"}),_.jsx("pre",{style:{whiteSpace:"pre-wrap",marginTop:8},children:this.state.error?.message})]}):this.props.children}}const Fy="4.4.1",Uy=s=>qC()-s,qC=()=>performance.now();function Hy(s,e){return new Promise(n=>{const i={},l=()=>{s.get(FL)&&(i.off?.(),n())};i.off=s.sub(FL,l),e(),l()})}var Vs={exports:{}},v6={},Ys={exports:{}},Xs={};/**
|
|
143
143
|
* @license React
|
|
144
144
|
* scheduler.production.js
|
|
145
145
|
*
|
|
@@ -362,7 +362,7 @@ ${d.join(`
|
|
|
362
362
|
${N}
|
|
363
363
|
${H}`;return{svg:`<svg xmlns="http://www.w3.org/2000/svg" width="${c}" height="${u}" viewBox="${O}">
|
|
364
364
|
${b}
|
|
365
|
-
</svg>`,innerSvg:b,width:c,height:u,viewBox:O}}let lo=null;function gu(){return typeof document>"u"||typeof FontFace>"u"?Promise.resolve():(lo||(lo=new FontFace(Oi,`url(${eL})`,{weight:"400",style:"normal"}).load().then(e=>{document.fonts.add(e),im()})),lo)}class ao{static version=Fy;static default=ao;el;_code;_theme;store;_currentTimeout;_lastRenderingCostMilliseconds=0;initialRender=!0;constructor(e,n=!1){this.el=typeof e=="string"?document.querySelector(e):e,this.store=on(),this.store.sub(i6,()=>{this.store.get(zL)({theme:this.store.get(i6),scoped:this.store.get(EL)})}),Vy.createRoot(this.el).render(_.jsx(E.StrictMode,{children:_.jsx(Zg,{store:this.store,children:_.jsx("div",{className:"zenuml",children:_.jsx(zy,{children:n?_.jsx(KC,{}):_.jsx(By,{})})})})})),this.addPortalRootElement()}addPortalRootElement(){const e=document.createElement("div");e.id="headlessui-portal-root",e.className="zenuml",e.append(document.createElement("div")),document.body.append(e)}async render(e,n){return this._currentTimeout&&clearTimeout(this._currentTimeout),this._code=e===void 0?this._code:e,this._theme=n?.theme||this._theme,this.store.set(BL,n?.stickyOffset??0),this.store.set(i6,this._theme||"default"),this.store.set(EL,n?.enableScopedTheming||!1),this.store.set(c3,n?.mode||B1.Dynamic),this.initialRender?(this.initialRender=!1,await this.doRender(n)):this._currentTimeout=setTimeout(async()=>await this.doRender(n),this.calculateDebounceMilliseconds()),this}async doRender(e){await gu();const n=qC();if(nm(),this.store.set(M4,e?.onContentChange||(()=>{})),this.store.set(zL,e?.onThemeChange||(()=>{})),this.store.set(hx,e?.onEventEmit||(()=>{})),e?.enableMultiTheme!==void 0&&this.store.set(cx,e?.enableMultiTheme),e?.enableNumbering!==void 0&&this.store.set(s6,e.enableNumbering),e?.enableParticipantInsertion!==void 0&&this.store.set(IL,e.enableParticipantInsertion),e?.enableMessageInsertion!==void 0&&this.store.set(ne,e.enableMessageInsertion),e?.enableDividerInsertion!==void 0&&this.store.set(NL,e.enableDividerInsertion),e?.enableParticipantStyleEditing!==void 0&&this.store.set(OL,e.enableParticipantStyleEditing),e?.enableMessageReorder!==void 0&&this.store.set(DL,e.enableMessageReorder),this._code===this.store.get(j3))return!0;this.store.set(qi,[]),await Hy(this.store,()=>{this.store.set(j3,this._code||"")}),setTimeout(()=>{this._lastRenderingCostMilliseconds=Uy(n)},0)}calculateDebounceMilliseconds(){let e=this._lastRenderingCostMilliseconds;return e>2e3&&(e=2e3),e}get code(){return this._code}get theme(){return this._theme}parse(e){return new Promise(n=>{try{X7.ErrorDetails.length=0;const i=X7.RootContext(e),l=[...X7.ErrorDetails];if(X7.ErrorDetails.length=0,l.length>0||i===null){n({pass:!1,errorDetails:l});return}n({pass:!0,errorDetails:[]})}catch{n({pass:!1,errorDetails:[]})}})}async getPng(){return nc(this.el,{backgroundColor:"white",filter:e=>!e?.classList?.contains("hide-export")})}async getSvg(){return ns(this.el,{filter:e=>!e?.classList?.contains("hide-export")})}}const YR=Object.freeze(Object.defineProperty({__proto__:null,default:`<?xml version="1.0" encoding="UTF-8"?>
|
|
365
|
+
</svg>`,innerSvg:b,width:c,height:u,viewBox:O}}let lo=null;function gu(){return typeof document>"u"||typeof FontFace>"u"?Promise.resolve():(lo||(lo=new FontFace(Oi,`url(${eL})`,{weight:"400",style:"normal"}).load().then(e=>{document.fonts.add(e),im()},()=>{})),lo)}class ao{static version=Fy;static default=ao;el;_code;_theme;store;_currentTimeout;_lastRenderingCostMilliseconds=0;initialRender=!0;constructor(e,n=!1){this.el=typeof e=="string"?document.querySelector(e):e,this.store=on(),this.store.sub(i6,()=>{this.store.get(zL)({theme:this.store.get(i6),scoped:this.store.get(EL)})}),Vy.createRoot(this.el).render(_.jsx(E.StrictMode,{children:_.jsx(Zg,{store:this.store,children:_.jsx("div",{className:"zenuml",children:_.jsx(zy,{children:n?_.jsx(KC,{}):_.jsx(By,{})})})})})),this.addPortalRootElement()}addPortalRootElement(){const e=document.createElement("div");e.id="headlessui-portal-root",e.className="zenuml",e.append(document.createElement("div")),document.body.append(e)}async render(e,n){return this._currentTimeout&&clearTimeout(this._currentTimeout),this._code=e===void 0?this._code:e,this._theme=n?.theme||this._theme,this.store.set(BL,n?.stickyOffset??0),this.store.set(i6,this._theme||"default"),this.store.set(EL,n?.enableScopedTheming||!1),this.store.set(c3,n?.mode||B1.Dynamic),this.initialRender?(this.initialRender=!1,await this.doRender(n)):this._currentTimeout=setTimeout(async()=>await this.doRender(n),this.calculateDebounceMilliseconds()),this}async doRender(e){await gu();const n=qC();if(nm(),this.store.set(M4,e?.onContentChange||(()=>{})),this.store.set(zL,e?.onThemeChange||(()=>{})),this.store.set(hx,e?.onEventEmit||(()=>{})),e?.enableMultiTheme!==void 0&&this.store.set(cx,e?.enableMultiTheme),e?.enableNumbering!==void 0&&this.store.set(s6,e.enableNumbering),e?.enableParticipantInsertion!==void 0&&this.store.set(IL,e.enableParticipantInsertion),e?.enableMessageInsertion!==void 0&&this.store.set(ne,e.enableMessageInsertion),e?.enableDividerInsertion!==void 0&&this.store.set(NL,e.enableDividerInsertion),e?.enableParticipantStyleEditing!==void 0&&this.store.set(OL,e.enableParticipantStyleEditing),e?.enableMessageReorder!==void 0&&this.store.set(DL,e.enableMessageReorder),this._code===this.store.get(j3))return!0;this.store.set(qi,[]),await Hy(this.store,()=>{this.store.set(j3,this._code||"")}),setTimeout(()=>{this._lastRenderingCostMilliseconds=Uy(n)},0)}calculateDebounceMilliseconds(){let e=this._lastRenderingCostMilliseconds;return e>2e3&&(e=2e3),e}get code(){return this._code}get theme(){return this._theme}parse(e){return new Promise(n=>{try{X7.ErrorDetails.length=0;const i=X7.RootContext(e),l=[...X7.ErrorDetails];if(X7.ErrorDetails.length=0,l.length>0||i===null){n({pass:!1,errorDetails:l});return}n({pass:!0,errorDetails:[]})}catch{n({pass:!1,errorDetails:[]})}})}async getPng(){return nc(this.el,{backgroundColor:"white",filter:e=>!e?.classList?.contains("hide-export")})}async getSvg(){return ns(this.el,{filter:e=>!e?.classList?.contains("hide-export")})}}const YR=Object.freeze(Object.defineProperty({__proto__:null,default:`<?xml version="1.0" encoding="UTF-8"?>
|
|
366
366
|
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
367
367
|
<!-- Generator: Sketch 64 (93537) - https://sketch.com -->
|
|
368
368
|
<title>Icon-Architecture/16/Arch_Amazon-Cognito_16</title>
|