cognitune 0.3.2 → 0.3.3
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/CHANGELOG.md +7 -0
- package/dist/web/assets/{Map-DS1CSocK.js → Map-BrvreBEy.js} +1 -1
- package/dist/web/assets/{Practice-I2bYp2SG.js → Practice-DISXSHVX.js} +3 -3
- package/dist/web/assets/{_baseUniq-CgG_mifj.js → _baseUniq-COwRl6vV.js} +1 -1
- package/dist/web/assets/{architectureDiagram-UYN6MBPD-QZTspen1.js → architectureDiagram-UYN6MBPD-_9Wfq1su.js} +1 -1
- package/dist/web/assets/{blockDiagram-ZHA2E4KO-CbhjZ2S8.js → blockDiagram-ZHA2E4KO-CufQ8L2_.js} +1 -1
- package/dist/web/assets/{c4Diagram-6F5ED5ID-A3b4lbII.js → c4Diagram-6F5ED5ID-B40qb_UG.js} +1 -1
- package/dist/web/assets/channel-DVVniLQS.js +1 -0
- package/dist/web/assets/{chunk-5HRBRIJM-ChWRBpuq.js → chunk-5HRBRIJM-D6bxTFIE.js} +1 -1
- package/dist/web/assets/{chunk-7U56Z5CX-Cjcjfrgo.js → chunk-7U56Z5CX-BoRg8r5Q.js} +1 -1
- package/dist/web/assets/{chunk-ASOPGD6M-Bhu3AOZc.js → chunk-ASOPGD6M-BtP71aab.js} +1 -1
- package/dist/web/assets/{chunk-KFBOBJHC-BekFNaeo.js → chunk-KFBOBJHC-T-v0Fw19.js} +1 -1
- package/dist/web/assets/{chunk-T2TOU4HS-B9G0vLnI.js → chunk-T2TOU4HS-CV9j5mPR.js} +1 -1
- package/dist/web/assets/{chunk-TMUBEWPD-DSAk9aXZ.js → chunk-TMUBEWPD-C5MuNi5X.js} +1 -1
- package/dist/web/assets/classDiagram-LNE6IOMH-BtGGSWnn.js +1 -0
- package/dist/web/assets/classDiagram-v2-MQ7JQ4JX-BtGGSWnn.js +1 -0
- package/dist/web/assets/clone-CHU5hDkS.js +1 -0
- package/dist/web/assets/{dagre-4EVJKHTY-CJiQ7M56.js → dagre-4EVJKHTY-C88qC3Rn.js} +1 -1
- package/dist/web/assets/{diagram-QW4FP2JN-BtE9T_jx.js → diagram-QW4FP2JN-OyHbrzI4.js} +1 -1
- package/dist/web/assets/{erDiagram-6RL3IURR-BURUFe_9.js → erDiagram-6RL3IURR-CeZWTGfc.js} +1 -1
- package/dist/web/assets/{flowDiagram-7ASYPVHJ-CfE3lrqz.js → flowDiagram-7ASYPVHJ-uZ6FeujK.js} +1 -1
- package/dist/web/assets/{ganttDiagram-NTVNEXSI-D9d9jWBm.js → ganttDiagram-NTVNEXSI-y87xBPPC.js} +1 -1
- package/dist/web/assets/{gitGraph-YCYPL57B-CJ1V9XJf.js → gitGraph-YCYPL57B-JbpUhCOb.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-NRZ2UAAF-CqaSLfzI.js → gitGraphDiagram-NRZ2UAAF-CBflcq4l.js} +1 -1
- package/dist/web/assets/{graph-B64LQEXc.js → graph-BENdOhGY.js} +1 -1
- package/dist/web/assets/{index-Z72XDUwe.js → index-2yyy2zDR.js} +1 -1
- package/dist/web/assets/{index-6_jiQxLN.js → index-4w6BhxJp.js} +1 -1
- package/dist/web/assets/{index-B52f3nVk.js → index-B3zAKIsi.js} +1 -1
- package/dist/web/assets/{index-CtDCXRra.js → index-BW-P1b2P.js} +1 -1
- package/dist/web/assets/{index-CVnYyVgS.js → index-BvN75pDj.js} +1 -1
- package/dist/web/assets/{index-fUwh3MJR.js → index-BwUlLYg9.js} +1 -1
- package/dist/web/assets/{index-BH0BWKEP.js → index-CD0Svk5N.js} +5 -5
- package/dist/web/assets/{index-DGSEVmt_.js → index-CQkpDjjo.js} +1 -1
- package/dist/web/assets/{index-B-ZU5R2V.js → index-CS0KLfR9.js} +1 -1
- package/dist/web/assets/{index-DYV_a5pR.js → index-Ci0OeEKD.js} +1 -1
- package/dist/web/assets/{index-DQIDx0VL.js → index-Cp_uy0cX.js} +1 -1
- package/dist/web/assets/{index-9QHEA9wu.js → index-DA4eOekM.js} +1 -1
- package/dist/web/assets/{index-B2zJKCq3.js → index-DXd86_iZ.js} +1 -1
- package/dist/web/assets/{index-Dhqj7fLA.js → index-DsyF1mt_.js} +1 -1
- package/dist/web/assets/{index-GNn9Y8IP.js → index-NmiWGsYf.js} +1 -1
- package/dist/web/assets/{index-LjQbNYY4.js → index-Phd-KO8I.js} +1 -1
- package/dist/web/assets/{index-CujTkxIF.js → index-VfqaEwv8.js} +1 -1
- package/dist/web/assets/{index-DZX_ApSV.js → index-cw4XuS89.js} +1 -1
- package/dist/web/assets/{index-nRMB7HRL.js → index-ixUgJMrH.js} +1 -1
- package/dist/web/assets/{index-fcWIc_lJ.js → index-l0x6IlG7.js} +1 -1
- package/dist/web/assets/{index-CUD1JdXZ.js → index-oIdJi7Q2.js} +1 -1
- package/dist/web/assets/{index-DeUkCZCv.css → index-oaBcbKx0.css} +1 -1
- package/dist/web/assets/{index-ISt4JlWL.js → index-ts3LSFgg.js} +1 -1
- package/dist/web/assets/{index-BluWHHG-.js → index-yvz8KzFj.js} +1 -1
- package/dist/web/assets/{infoDiagram-A4XQUW5V-DMcs4U8y.js → infoDiagram-A4XQUW5V-CsRrWifr.js} +1 -1
- package/dist/web/assets/{journeyDiagram-G5WM74LC-CEds3uag.js → journeyDiagram-G5WM74LC-DC7Hbsp0.js} +1 -1
- package/dist/web/assets/{kanban-definition-QRCXZQQD-yZwdqxsV.js → kanban-definition-QRCXZQQD-Bo5HNBfS.js} +1 -1
- package/dist/web/assets/{layout-DYrE6rew.js → layout-d7TQ04W7.js} +1 -1
- package/dist/web/assets/{mermaid.core-C4isYGdZ.js → mermaid.core-xu0G1s5D.js} +4 -4
- package/dist/web/assets/{min-D7IE57rG.js → min-DPqoX6mH.js} +1 -1
- package/dist/web/assets/{mindmap-definition-GWI6TPTV-BrA9fZLl.js → mindmap-definition-GWI6TPTV-BkHsjDT1.js} +1 -1
- package/dist/web/assets/{pieDiagram-YF2LJOPJ-DBLJF-B8.js → pieDiagram-YF2LJOPJ-7r8Dzz2j.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-OS5C2QUG-W3e7OODv.js → quadrantDiagram-OS5C2QUG-p6-v0-FD.js} +1 -1
- package/dist/web/assets/{requirementDiagram-MIRIMTAZ-DmouihuU.js → requirementDiagram-MIRIMTAZ-69i-6ive.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-Y46BX6SQ-k_4HmTUK.js → sankeyDiagram-Y46BX6SQ-CT2tON08.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-G6AWOVSC-C4Kq2ABe.js → sequenceDiagram-G6AWOVSC-B6t5TVF5.js} +1 -1
- package/dist/web/assets/{stateDiagram-MAYHULR4-C5a59rCP.js → stateDiagram-MAYHULR4-DdNGwnVQ.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-4JROLMXI-kJAkVKtc.js +1 -0
- package/dist/web/assets/{timeline-definition-U7ZMHBDA-CtkRQwlM.js → timeline-definition-U7ZMHBDA-CgCCWNTr.js} +1 -1
- package/dist/web/assets/{xychartDiagram-6QU3TZC5-KKa8nieo.js → xychartDiagram-6QU3TZC5-_rQykDFm.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/channel-BKUyG-l5.js +0 -1
- package/dist/web/assets/classDiagram-LNE6IOMH-zE4bnqcI.js +0 -1
- package/dist/web/assets/classDiagram-v2-MQ7JQ4JX-zE4bnqcI.js +0 -1
- package/dist/web/assets/clone-BjRjnhL1.js +0 -1
- package/dist/web/assets/stateDiagram-v2-4JROLMXI-CeQk6jDo.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-4EVJKHTY-
|
|
2
|
-
var _m=Object.defineProperty;var $l=e=>{throw TypeError(e)};var Cm=(e,t,r)=>t in e?_m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var yt=(e,t,r)=>Cm(e,typeof t!="symbol"?t+"":t,r),wm=(e,t,r)=>t.has(e)||$l("Cannot "+r);var Dl=(e,t,r)=>t.has(e)?$l("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var _i=(e,t,r)=>(wm(e,t,"access private method"),r);import{o as km,n as vm,_ as mt}from"./index-BH0BWKEP.js";var nh={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(vm,function(){var r=1e3,i=6e4,n=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",h="week",u="month",f="quarter",p="year",g="date",m="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var L=["th","st","nd","rd"],T=A%100;return"["+A+(L[(T-20)%10]||L[T]||L[0])+"]"}},C=function(A,L,T){var D=String(A);return!D||D.length>=L?A:""+Array(L+1-D.length).join(T)+A},k={s:C,z:function(A){var L=-A.utcOffset(),T=Math.abs(L),D=Math.floor(T/60),B=T%60;return(L<=0?"+":"-")+C(D,2,"0")+":"+C(B,2,"0")},m:function A(L,T){if(L.date()<T.date())return-A(T,L);var D=12*(T.year()-L.year())+(T.month()-L.month()),B=L.clone().add(D,u),j=T-B<0,U=L.clone().add(D+(j?-1:1),u);return+(-(D+(T-B)/(j?B-U:U-B))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:u,y:p,w:h,d:c,D:g,h:l,m:s,s:o,ms:a,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},v="en",F={};F[v]=_;var M="$isDayjsObject",$=function(A){return A instanceof q||!(!A||!A[M])},H=function A(L,T,D){var B;if(!L)return v;if(typeof L=="string"){var j=L.toLowerCase();F[j]&&(B=j),T&&(F[j]=T,B=j);var U=L.split("-");if(!B&&U.length>1)return A(U[0])}else{var st=L.name;F[st]=L,B=st}return!D&&B&&(v=B),B||!D&&v},z=function(A,L){if($(A))return A.clone();var T=typeof L=="object"?L:{};return T.date=A,T.args=arguments,new q(T)},E=k;E.l=H,E.i=$,E.w=function(A,L){return z(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var q=function(){function A(T){this.$L=H(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[M]=!0}var L=A.prototype;return L.parse=function(T){this.$d=function(D){var B=D.date,j=D.utc;if(B===null)return new Date(NaN);if(E.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var U=B.match(x);if(U){var st=U[2]-1||0,ut=(U[7]||"0").substring(0,3);return j?new Date(Date.UTC(U[1],st,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ut)):new Date(U[1],st,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ut)}}return new Date(B)}(T),this.init()},L.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},L.$utils=function(){return E},L.isValid=function(){return this.$d.toString()!==m},L.isSame=function(T,D){var B=z(T);return this.startOf(D)<=B&&B<=this.endOf(D)},L.isAfter=function(T,D){return z(T)<this.startOf(D)},L.isBefore=function(T,D){return this.endOf(D)<z(T)},L.$g=function(T,D,B){return E.u(T)?this[D]:this.set(B,T)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(T,D){var B=this,j=!!E.u(D)||D,U=E.p(T),st=function(ae,Et){var se=E.w(B.$u?Date.UTC(B.$y,Et,ae):new Date(B.$y,Et,ae),B);return j?se:se.endOf(c)},ut=function(ae,Et){return E.w(B.toDate()[ae].apply(B.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(Et)),B)},bt=this.$W,St=this.$M,_t=this.$D,lt="set"+(this.$u?"UTC":"");switch(U){case p:return j?st(1,0):st(31,11);case u:return j?st(1,St):st(0,St+1);case h:var ne=this.$locale().weekStart||0,me=(bt<ne?bt+7:bt)-ne;return st(j?_t-me:_t+(6-me),St);case c:case g:return ut(lt+"Hours",0);case l:return ut(lt+"Minutes",1);case s:return ut(lt+"Seconds",2);case o:return ut(lt+"Milliseconds",3);default:return this.clone()}},L.endOf=function(T){return this.startOf(T,!1)},L.$set=function(T,D){var B,j=E.p(T),U="set"+(this.$u?"UTC":""),st=(B={},B[c]=U+"Date",B[g]=U+"Date",B[u]=U+"Month",B[p]=U+"FullYear",B[l]=U+"Hours",B[s]=U+"Minutes",B[o]=U+"Seconds",B[a]=U+"Milliseconds",B)[j],ut=j===c?this.$D+(D-this.$W):D;if(j===u||j===p){var bt=this.clone().set(g,1);bt.$d[st](ut),bt.init(),this.$d=bt.set(g,Math.min(this.$D,bt.daysInMonth())).$d}else st&&this.$d[st](ut);return this.init(),this},L.set=function(T,D){return this.clone().$set(T,D)},L.get=function(T){return this[E.p(T)]()},L.add=function(T,D){var B,j=this;T=Number(T);var U=E.p(D),st=function(St){var _t=z(j);return E.w(_t.date(_t.date()+Math.round(St*T)),j)};if(U===u)return this.set(u,this.$M+T);if(U===p)return this.set(p,this.$y+T);if(U===c)return st(1);if(U===h)return st(7);var ut=(B={},B[s]=i,B[l]=n,B[o]=r,B)[U]||1,bt=this.$d.getTime()+T*ut;return E.w(bt,this)},L.subtract=function(T,D){return this.add(-1*T,D)},L.format=function(T){var D=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var j=T||"YYYY-MM-DDTHH:mm:ssZ",U=E.z(this),st=this.$H,ut=this.$m,bt=this.$M,St=B.weekdays,_t=B.months,lt=B.meridiem,ne=function(Et,se,ir,nr){return Et&&(Et[se]||Et(D,j))||ir[se].slice(0,nr)},me=function(Et){return E.s(st%12||12,Et,"0")},ae=lt||function(Et,se,ir){var nr=Et<12?"AM":"PM";return ir?nr.toLowerCase():nr};return j.replace(y,function(Et,se){return se||function(ir){switch(ir){case"YY":return String(D.$y).slice(-2);case"YYYY":return E.s(D.$y,4,"0");case"M":return bt+1;case"MM":return E.s(bt+1,2,"0");case"MMM":return ne(B.monthsShort,bt,_t,3);case"MMMM":return ne(_t,bt);case"D":return D.$D;case"DD":return E.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ne(B.weekdaysMin,D.$W,St,2);case"ddd":return ne(B.weekdaysShort,D.$W,St,3);case"dddd":return St[D.$W];case"H":return String(st);case"HH":return E.s(st,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ae(st,ut,!0);case"A":return ae(st,ut,!1);case"m":return String(ut);case"mm":return E.s(ut,2,"0");case"s":return String(D.$s);case"ss":return E.s(D.$s,2,"0");case"SSS":return E.s(D.$ms,3,"0");case"Z":return U}return null}(Et)||U.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(T,D,B){var j,U=this,st=E.p(D),ut=z(T),bt=(ut.utcOffset()-this.utcOffset())*i,St=this-ut,_t=function(){return E.m(U,ut)};switch(st){case p:j=_t()/12;break;case u:j=_t();break;case f:j=_t()/3;break;case h:j=(St-bt)/6048e5;break;case c:j=(St-bt)/864e5;break;case l:j=St/n;break;case s:j=St/i;break;case o:j=St/r;break;default:j=St}return B?j:E.a(j)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return F[this.$L]},L.locale=function(T,D){if(!T)return this.$L;var B=this.clone(),j=H(T,D,!0);return j&&(B.$L=j),B},L.clone=function(){return E.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},A}(),O=q.prototype;return z.prototype=O,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",u],["$y",p],["$D",g]].forEach(function(A){O[A[1]]=function(L){return this.$g(L,A[0],A[1])}}),z.extend=function(A,L){return A.$i||(A(L,q,z),A.$i=!0),z},z.locale=H,z.isDayjs=$,z.unix=function(A){return z(1e3*A)},z.en=F[v],z.Ls=F,z.p={},z})})(nh);var Sm=nh.exports;const Tm=km(Sm),Sn={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return Sn.hue2rgb(a,n,e+1/3)*255;case"g":return Sn.hue2rgb(a,n,e)*255;case"b":return Sn.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),o=(n+a)/2;if(i==="l")return o*100;if(n===a)return 0;const s=n-a,l=o>.5?s/(2-n-a):s/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/s+(t<r?6:0))*60;case t:return((r-e)/s+2)*60;case r:return((e-t)/s+4)*60;default:return-1}}},Am={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},Lm={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},it={channel:Sn,lang:Am,unit:Lm},Xe={};for(let e=0;e<=255;e++)Xe[e]=it.unit.dec2hex(e);const Ht={ALL:0,RGB:1,HSL:2};class Bm{constructor(){this.type=Ht.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Ht.ALL}is(t){return this.type===t}}class Mm{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new Bm}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Ht.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=it.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=it.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=it.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=it.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=it.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=it.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Ht.HSL)&&r!==void 0?r:(this._ensureHSL(),it.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Ht.HSL)&&r!==void 0?r:(this._ensureHSL(),it.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Ht.HSL)&&r!==void 0?r:(this._ensureHSL(),it.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Ht.RGB)&&r!==void 0?r:(this._ensureRGB(),it.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Ht.RGB)&&r!==void 0?r:(this._ensureRGB(),it.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Ht.RGB)&&r!==void 0?r:(this._ensureRGB(),it.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Ht.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Ht.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Ht.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Ht.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Ht.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Ht.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const ha=new Mm({r:0,g:0,b:0,a:0},"transparent"),qr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(qr.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,o=n>4,s=o?1:17,l=o?8:4,c=a?0:-1,h=o?255:15;return ha.set({r:(i>>l*(c+3)&h)*s,g:(i>>l*(c+2)&h)*s,b:(i>>l*(c+1)&h)*s,a:a?(i&h)*s/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${Xe[Math.round(t)]}${Xe[Math.round(r)]}${Xe[Math.round(i)]}${Xe[Math.round(n*255)]}`:`#${Xe[Math.round(t)]}${Xe[Math.round(r)]}${Xe[Math.round(i)]}`}},gr={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(gr.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return it.channel.clamp.h(parseFloat(r)*.9);case"rad":return it.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return it.channel.clamp.h(parseFloat(r)*360)}}return it.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(gr.re);if(!r)return;const[,i,n,a,o,s]=r;return ha.set({h:gr._hue2deg(i),s:it.channel.clamp.s(parseFloat(n)),l:it.channel.clamp.l(parseFloat(a)),a:o?it.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${it.lang.round(t)}, ${it.lang.round(r)}%, ${it.lang.round(i)}%, ${n})`:`hsl(${it.lang.round(t)}, ${it.lang.round(r)}%, ${it.lang.round(i)}%)`}},Ri={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Ri.colors[e];if(t)return qr.parse(t)},stringify:e=>{const t=qr.stringify(e);for(const r in Ri.colors)if(Ri.colors[r]===t)return r}},Ei={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Ei.re);if(!r)return;const[,i,n,a,o,s,l,c,h]=r;return ha.set({r:it.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:it.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:it.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?it.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${it.lang.round(t)}, ${it.lang.round(r)}, ${it.lang.round(i)}, ${it.lang.round(n)})`:`rgb(${it.lang.round(t)}, ${it.lang.round(r)}, ${it.lang.round(i)})`}},Be={format:{keyword:Ri,hex:qr,rgb:Ei,rgba:Ei,hsl:gr,hsla:gr},parse:e=>{if(typeof e!="string")return e;const t=qr.parse(e)||Ei.parse(e)||gr.parse(e)||Ri.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ht.HSL)||e.data.r===void 0?gr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Ei.stringify(e):qr.stringify(e)},ah=(e,t)=>{const r=Be.parse(e);for(const i in t)r[i]=it.channel.clamp[i](t[i]);return Be.stringify(r)},Ii=(e,t,r=0,i=1)=>{if(typeof e!="number")return ah(e,{a:t});const n=ha.set({r:it.channel.clamp.r(e),g:it.channel.clamp.g(t),b:it.channel.clamp.b(r),a:it.channel.clamp.a(i)});return Be.stringify(n)},Em=e=>{const{r:t,g:r,b:i}=Be.parse(e),n=.2126*it.channel.toLinear(t)+.7152*it.channel.toLinear(r)+.0722*it.channel.toLinear(i);return it.lang.round(n)},Fm=e=>Em(e)>=.5,Ji=e=>!Fm(e),sh=(e,t,r)=>{const i=Be.parse(e),n=i[t],a=it.channel.clamp[t](n+r);return n!==a&&(i[t]=a),Be.stringify(i)},K=(e,t)=>sh(e,"l",t),tt=(e,t)=>sh(e,"l",-t),S=(e,t)=>{const r=Be.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return ah(e,i)},$m=(e,t,r=50)=>{const{r:i,g:n,b:a,a:o}=Be.parse(e),{r:s,g:l,b:c,a:h}=Be.parse(t),u=r/100,f=u*2-1,p=o-h,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,x=1-m,y=i*m+s*x,_=n*m+l*x,C=a*m+c*x,k=o*u+h*(1-u);return Ii(y,_,C,k)},W=(e,t=100)=>{const r=Be.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,$m(r,e,t)};/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function Ol(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Dm(e){if(Array.isArray(e))return e}function Om(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function Rm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-4EVJKHTY-C88qC3Rn.js","assets/graph-BENdOhGY.js","assets/_baseUniq-COwRl6vV.js","assets/layout-d7TQ04W7.js","assets/min-DPqoX6mH.js","assets/clone-CHU5hDkS.js","assets/index-CD0Svk5N.js","assets/index-oaBcbKx0.css","assets/c4Diagram-6F5ED5ID-B40qb_UG.js","assets/chunk-ASOPGD6M-BtP71aab.js","assets/flowDiagram-7ASYPVHJ-uZ6FeujK.js","assets/chunk-5HRBRIJM-D6bxTFIE.js","assets/channel-DVVniLQS.js","assets/erDiagram-6RL3IURR-CeZWTGfc.js","assets/gitGraphDiagram-NRZ2UAAF-CBflcq4l.js","assets/chunk-TMUBEWPD-C5MuNi5X.js","assets/chunk-KFBOBJHC-T-v0Fw19.js","assets/gitGraph-YCYPL57B-JbpUhCOb.js","assets/ganttDiagram-NTVNEXSI-y87xBPPC.js","assets/d3-scale-35hnzshu.js","assets/infoDiagram-A4XQUW5V-CsRrWifr.js","assets/pieDiagram-YF2LJOPJ-7r8Dzz2j.js","assets/quadrantDiagram-OS5C2QUG-p6-v0-FD.js","assets/xychartDiagram-6QU3TZC5-_rQykDFm.js","assets/requirementDiagram-MIRIMTAZ-69i-6ive.js","assets/sequenceDiagram-G6AWOVSC-B6t5TVF5.js","assets/classDiagram-LNE6IOMH-BtGGSWnn.js","assets/chunk-T2TOU4HS-CV9j5mPR.js","assets/classDiagram-v2-MQ7JQ4JX-BtGGSWnn.js","assets/stateDiagram-MAYHULR4-DdNGwnVQ.js","assets/chunk-7U56Z5CX-BoRg8r5Q.js","assets/stateDiagram-v2-4JROLMXI-kJAkVKtc.js","assets/journeyDiagram-G5WM74LC-DC7Hbsp0.js","assets/timeline-definition-U7ZMHBDA-CgCCWNTr.js","assets/mindmap-definition-GWI6TPTV-BkHsjDT1.js","assets/cytoscape.esm-DgFJg4rT.js","assets/kanban-definition-QRCXZQQD-Bo5HNBfS.js","assets/sankeyDiagram-Y46BX6SQ-CT2tON08.js","assets/diagram-QW4FP2JN-OyHbrzI4.js","assets/blockDiagram-ZHA2E4KO-CufQ8L2_.js","assets/architectureDiagram-UYN6MBPD-_9Wfq1su.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var _m=Object.defineProperty;var $l=e=>{throw TypeError(e)};var Cm=(e,t,r)=>t in e?_m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var yt=(e,t,r)=>Cm(e,typeof t!="symbol"?t+"":t,r),wm=(e,t,r)=>t.has(e)||$l("Cannot "+r);var Dl=(e,t,r)=>t.has(e)?$l("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var _i=(e,t,r)=>(wm(e,t,"access private method"),r);import{o as km,n as vm,_ as mt}from"./index-CD0Svk5N.js";var nh={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(vm,function(){var r=1e3,i=6e4,n=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",h="week",u="month",f="quarter",p="year",g="date",m="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var L=["th","st","nd","rd"],T=A%100;return"["+A+(L[(T-20)%10]||L[T]||L[0])+"]"}},C=function(A,L,T){var D=String(A);return!D||D.length>=L?A:""+Array(L+1-D.length).join(T)+A},k={s:C,z:function(A){var L=-A.utcOffset(),T=Math.abs(L),D=Math.floor(T/60),B=T%60;return(L<=0?"+":"-")+C(D,2,"0")+":"+C(B,2,"0")},m:function A(L,T){if(L.date()<T.date())return-A(T,L);var D=12*(T.year()-L.year())+(T.month()-L.month()),B=L.clone().add(D,u),j=T-B<0,U=L.clone().add(D+(j?-1:1),u);return+(-(D+(T-B)/(j?B-U:U-B))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:u,y:p,w:h,d:c,D:g,h:l,m:s,s:o,ms:a,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},v="en",F={};F[v]=_;var M="$isDayjsObject",$=function(A){return A instanceof q||!(!A||!A[M])},H=function A(L,T,D){var B;if(!L)return v;if(typeof L=="string"){var j=L.toLowerCase();F[j]&&(B=j),T&&(F[j]=T,B=j);var U=L.split("-");if(!B&&U.length>1)return A(U[0])}else{var st=L.name;F[st]=L,B=st}return!D&&B&&(v=B),B||!D&&v},z=function(A,L){if($(A))return A.clone();var T=typeof L=="object"?L:{};return T.date=A,T.args=arguments,new q(T)},E=k;E.l=H,E.i=$,E.w=function(A,L){return z(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var q=function(){function A(T){this.$L=H(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[M]=!0}var L=A.prototype;return L.parse=function(T){this.$d=function(D){var B=D.date,j=D.utc;if(B===null)return new Date(NaN);if(E.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var U=B.match(x);if(U){var st=U[2]-1||0,ut=(U[7]||"0").substring(0,3);return j?new Date(Date.UTC(U[1],st,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ut)):new Date(U[1],st,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ut)}}return new Date(B)}(T),this.init()},L.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},L.$utils=function(){return E},L.isValid=function(){return this.$d.toString()!==m},L.isSame=function(T,D){var B=z(T);return this.startOf(D)<=B&&B<=this.endOf(D)},L.isAfter=function(T,D){return z(T)<this.startOf(D)},L.isBefore=function(T,D){return this.endOf(D)<z(T)},L.$g=function(T,D,B){return E.u(T)?this[D]:this.set(B,T)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(T,D){var B=this,j=!!E.u(D)||D,U=E.p(T),st=function(ae,Et){var se=E.w(B.$u?Date.UTC(B.$y,Et,ae):new Date(B.$y,Et,ae),B);return j?se:se.endOf(c)},ut=function(ae,Et){return E.w(B.toDate()[ae].apply(B.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(Et)),B)},bt=this.$W,St=this.$M,_t=this.$D,lt="set"+(this.$u?"UTC":"");switch(U){case p:return j?st(1,0):st(31,11);case u:return j?st(1,St):st(0,St+1);case h:var ne=this.$locale().weekStart||0,me=(bt<ne?bt+7:bt)-ne;return st(j?_t-me:_t+(6-me),St);case c:case g:return ut(lt+"Hours",0);case l:return ut(lt+"Minutes",1);case s:return ut(lt+"Seconds",2);case o:return ut(lt+"Milliseconds",3);default:return this.clone()}},L.endOf=function(T){return this.startOf(T,!1)},L.$set=function(T,D){var B,j=E.p(T),U="set"+(this.$u?"UTC":""),st=(B={},B[c]=U+"Date",B[g]=U+"Date",B[u]=U+"Month",B[p]=U+"FullYear",B[l]=U+"Hours",B[s]=U+"Minutes",B[o]=U+"Seconds",B[a]=U+"Milliseconds",B)[j],ut=j===c?this.$D+(D-this.$W):D;if(j===u||j===p){var bt=this.clone().set(g,1);bt.$d[st](ut),bt.init(),this.$d=bt.set(g,Math.min(this.$D,bt.daysInMonth())).$d}else st&&this.$d[st](ut);return this.init(),this},L.set=function(T,D){return this.clone().$set(T,D)},L.get=function(T){return this[E.p(T)]()},L.add=function(T,D){var B,j=this;T=Number(T);var U=E.p(D),st=function(St){var _t=z(j);return E.w(_t.date(_t.date()+Math.round(St*T)),j)};if(U===u)return this.set(u,this.$M+T);if(U===p)return this.set(p,this.$y+T);if(U===c)return st(1);if(U===h)return st(7);var ut=(B={},B[s]=i,B[l]=n,B[o]=r,B)[U]||1,bt=this.$d.getTime()+T*ut;return E.w(bt,this)},L.subtract=function(T,D){return this.add(-1*T,D)},L.format=function(T){var D=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var j=T||"YYYY-MM-DDTHH:mm:ssZ",U=E.z(this),st=this.$H,ut=this.$m,bt=this.$M,St=B.weekdays,_t=B.months,lt=B.meridiem,ne=function(Et,se,ir,nr){return Et&&(Et[se]||Et(D,j))||ir[se].slice(0,nr)},me=function(Et){return E.s(st%12||12,Et,"0")},ae=lt||function(Et,se,ir){var nr=Et<12?"AM":"PM";return ir?nr.toLowerCase():nr};return j.replace(y,function(Et,se){return se||function(ir){switch(ir){case"YY":return String(D.$y).slice(-2);case"YYYY":return E.s(D.$y,4,"0");case"M":return bt+1;case"MM":return E.s(bt+1,2,"0");case"MMM":return ne(B.monthsShort,bt,_t,3);case"MMMM":return ne(_t,bt);case"D":return D.$D;case"DD":return E.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ne(B.weekdaysMin,D.$W,St,2);case"ddd":return ne(B.weekdaysShort,D.$W,St,3);case"dddd":return St[D.$W];case"H":return String(st);case"HH":return E.s(st,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ae(st,ut,!0);case"A":return ae(st,ut,!1);case"m":return String(ut);case"mm":return E.s(ut,2,"0");case"s":return String(D.$s);case"ss":return E.s(D.$s,2,"0");case"SSS":return E.s(D.$ms,3,"0");case"Z":return U}return null}(Et)||U.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(T,D,B){var j,U=this,st=E.p(D),ut=z(T),bt=(ut.utcOffset()-this.utcOffset())*i,St=this-ut,_t=function(){return E.m(U,ut)};switch(st){case p:j=_t()/12;break;case u:j=_t();break;case f:j=_t()/3;break;case h:j=(St-bt)/6048e5;break;case c:j=(St-bt)/864e5;break;case l:j=St/n;break;case s:j=St/i;break;case o:j=St/r;break;default:j=St}return B?j:E.a(j)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return F[this.$L]},L.locale=function(T,D){if(!T)return this.$L;var B=this.clone(),j=H(T,D,!0);return j&&(B.$L=j),B},L.clone=function(){return E.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},A}(),O=q.prototype;return z.prototype=O,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",u],["$y",p],["$D",g]].forEach(function(A){O[A[1]]=function(L){return this.$g(L,A[0],A[1])}}),z.extend=function(A,L){return A.$i||(A(L,q,z),A.$i=!0),z},z.locale=H,z.isDayjs=$,z.unix=function(A){return z(1e3*A)},z.en=F[v],z.Ls=F,z.p={},z})})(nh);var Sm=nh.exports;const Tm=km(Sm),Sn={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return Sn.hue2rgb(a,n,e+1/3)*255;case"g":return Sn.hue2rgb(a,n,e)*255;case"b":return Sn.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),o=(n+a)/2;if(i==="l")return o*100;if(n===a)return 0;const s=n-a,l=o>.5?s/(2-n-a):s/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/s+(t<r?6:0))*60;case t:return((r-e)/s+2)*60;case r:return((e-t)/s+4)*60;default:return-1}}},Am={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},Lm={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},it={channel:Sn,lang:Am,unit:Lm},Xe={};for(let e=0;e<=255;e++)Xe[e]=it.unit.dec2hex(e);const Ht={ALL:0,RGB:1,HSL:2};class Bm{constructor(){this.type=Ht.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Ht.ALL}is(t){return this.type===t}}class Mm{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new Bm}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Ht.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=it.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=it.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=it.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=it.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=it.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=it.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Ht.HSL)&&r!==void 0?r:(this._ensureHSL(),it.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Ht.HSL)&&r!==void 0?r:(this._ensureHSL(),it.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Ht.HSL)&&r!==void 0?r:(this._ensureHSL(),it.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Ht.RGB)&&r!==void 0?r:(this._ensureRGB(),it.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Ht.RGB)&&r!==void 0?r:(this._ensureRGB(),it.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Ht.RGB)&&r!==void 0?r:(this._ensureRGB(),it.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Ht.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Ht.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Ht.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Ht.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Ht.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Ht.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const ha=new Mm({r:0,g:0,b:0,a:0},"transparent"),qr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(qr.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,o=n>4,s=o?1:17,l=o?8:4,c=a?0:-1,h=o?255:15;return ha.set({r:(i>>l*(c+3)&h)*s,g:(i>>l*(c+2)&h)*s,b:(i>>l*(c+1)&h)*s,a:a?(i&h)*s/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${Xe[Math.round(t)]}${Xe[Math.round(r)]}${Xe[Math.round(i)]}${Xe[Math.round(n*255)]}`:`#${Xe[Math.round(t)]}${Xe[Math.round(r)]}${Xe[Math.round(i)]}`}},gr={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(gr.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return it.channel.clamp.h(parseFloat(r)*.9);case"rad":return it.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return it.channel.clamp.h(parseFloat(r)*360)}}return it.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(gr.re);if(!r)return;const[,i,n,a,o,s]=r;return ha.set({h:gr._hue2deg(i),s:it.channel.clamp.s(parseFloat(n)),l:it.channel.clamp.l(parseFloat(a)),a:o?it.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${it.lang.round(t)}, ${it.lang.round(r)}%, ${it.lang.round(i)}%, ${n})`:`hsl(${it.lang.round(t)}, ${it.lang.round(r)}%, ${it.lang.round(i)}%)`}},Ri={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Ri.colors[e];if(t)return qr.parse(t)},stringify:e=>{const t=qr.stringify(e);for(const r in Ri.colors)if(Ri.colors[r]===t)return r}},Ei={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Ei.re);if(!r)return;const[,i,n,a,o,s,l,c,h]=r;return ha.set({r:it.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:it.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:it.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?it.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${it.lang.round(t)}, ${it.lang.round(r)}, ${it.lang.round(i)}, ${it.lang.round(n)})`:`rgb(${it.lang.round(t)}, ${it.lang.round(r)}, ${it.lang.round(i)})`}},Be={format:{keyword:Ri,hex:qr,rgb:Ei,rgba:Ei,hsl:gr,hsla:gr},parse:e=>{if(typeof e!="string")return e;const t=qr.parse(e)||Ei.parse(e)||gr.parse(e)||Ri.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ht.HSL)||e.data.r===void 0?gr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Ei.stringify(e):qr.stringify(e)},ah=(e,t)=>{const r=Be.parse(e);for(const i in t)r[i]=it.channel.clamp[i](t[i]);return Be.stringify(r)},Ii=(e,t,r=0,i=1)=>{if(typeof e!="number")return ah(e,{a:t});const n=ha.set({r:it.channel.clamp.r(e),g:it.channel.clamp.g(t),b:it.channel.clamp.b(r),a:it.channel.clamp.a(i)});return Be.stringify(n)},Em=e=>{const{r:t,g:r,b:i}=Be.parse(e),n=.2126*it.channel.toLinear(t)+.7152*it.channel.toLinear(r)+.0722*it.channel.toLinear(i);return it.lang.round(n)},Fm=e=>Em(e)>=.5,Ji=e=>!Fm(e),sh=(e,t,r)=>{const i=Be.parse(e),n=i[t],a=it.channel.clamp[t](n+r);return n!==a&&(i[t]=a),Be.stringify(i)},K=(e,t)=>sh(e,"l",t),tt=(e,t)=>sh(e,"l",-t),S=(e,t)=>{const r=Be.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return ah(e,i)},$m=(e,t,r=50)=>{const{r:i,g:n,b:a,a:o}=Be.parse(e),{r:s,g:l,b:c,a:h}=Be.parse(t),u=r/100,f=u*2-1,p=o-h,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,x=1-m,y=i*m+s*x,_=n*m+l*x,C=a*m+c*x,k=o*u+h*(1-u);return Ii(y,_,C,k)},W=(e,t=100)=>{const r=Be.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,$m(r,e,t)};/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function Ol(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Dm(e){if(Array.isArray(e))return e}function Om(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function Rm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function Im(e,t){return Dm(e)||Om(e,t)||Pm(e,t)||Rm()}function Pm(e,t){if(e){if(typeof e=="string")return Ol(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ol(e,t):void 0}}const oh=Object.entries,Rl=Object.setPrototypeOf,Nm=Object.isFrozen,lh=Object.getPrototypeOf,ch=Object.getOwnPropertyDescriptor;let Ot=Object.freeze,zt=Object.seal,Ir=Object.create,hh=typeof Reflect<"u"&&Reflect,Ss=hh.apply,Ts=hh.construct;Ot||(Ot=function(t){return t});zt||(zt=function(t){return t});Ss||(Ss=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return t.apply(r,n)});Ts||(Ts=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)});const $e=vt(Array.prototype.forEach),zm=vt(Array.prototype.lastIndexOf),Il=vt(Array.prototype.pop),Ci=vt(Array.prototype.push),qm=vt(Array.prototype.slice),Wm=vt(Array.prototype.splice),Wr=Array.isArray,rs=uh(Set),is=vt(Set.prototype.add),wi=vt(Set.prototype.has),ur=vt(String.prototype.toLowerCase),ns=vt(String.prototype.toString),Pl=vt(String.prototype.match),ki=vt(String.prototype.replace),Nl=vt(String.prototype.indexOf),Hm=vt(String.prototype.trim),jm=vt(Number.prototype.toString),Um=vt(Boolean.prototype.toString),zl=typeof BigInt>"u"?null:vt(BigInt.prototype.toString),ql=typeof Symbol>"u"?null:vt(Symbol.prototype.toString),ee=vt(Object.prototype.hasOwnProperty),vi=vt(Object.prototype.toString),Rt=vt(RegExp.prototype.test),De=uh(TypeError);function vt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Ss(e,t,i)}}function uh(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Ts(e,r)}}function ht(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ur;if(Rl&&Rl(e,null),!Wr(t))return e;let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(Nm(t)||(t[i]=a),n=a)}e[n]=!0}return e}function Ym(e){for(let t=0;t<e.length;t++)ee(e,t)||(e[t]=null);return e}function le(e){const t=Ir(null);for(const i of oh(e)){var r=Im(i,2);const n=r[0],a=r[1];ee(e,n)&&(Wr(a)?t[n]=Ym(a):a&&typeof a=="object"&&a.constructor===Object?t[n]=le(a):t[n]=a)}return t}function Gm(e){switch(typeof e){case"string":return e;case"number":return jm(e);case"boolean":return Um(e);case"bigint":return zl?zl(e):"0";case"symbol":return ql?ql(e):"Symbol()";case"undefined":return vi(e);case"function":case"object":{if(e===null)return vi(e);const t=e,r=pe(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:vi(i)}return vi(e)}default:return vi(e)}}function pe(e,t){for(;e!==null;){const i=ch(e,t);if(i){if(i.get)return vt(i.get);if(typeof i.value=="function")return vt(i.value)}e=lh(e)}function r(){return null}return r}function Vm(e,t){for(;e!==null;){const r=ch(e,t);if(r)return r.get?vt(r.get):null;e=lh(e)}return null}function Xm(e){try{return Rt(e,""),!0}catch{return!1}}const Wl=Ot(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),as=Ot(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ss=Ot(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Zm=Ot(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),os=Ot(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Km=Ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hl=Ot(["#text"]),jl=Ot(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ls=Ot(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ul=Ot(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yn=Ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qm=zt(/{{[\w\W]*|^[\w\W]*}}/g),Jm=zt(/<%[\w\W]*|^[\w\W]*%>/g),ty=zt(/\${[\w\W]*/g),ey=zt(/^data-[\-\w.\u00B7-\uFFFF]+$/),ry=zt(/^aria-[\-\w]+$/),Yl=zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),iy=zt(/^(?:\w+script|data):/i),ny=zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ay=zt(/^html$/i),sy=zt(/^[a-z][.\w]*(-[.\w]+)+$/i),cs=zt(/<[/\w!]/g),Gl=zt(/<[/\w]/g),oy=zt(/<\/no(script|embed|frames)/i),Vl=zt(/\/>/i),Bt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ly=Ot(ht({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),cy=function(){return typeof window>"u"?null:window},hy=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Xl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ge=function(t,r,i,n){return ee(t,r)&&Wr(t[r])?ht(n.base?le(n.base):{},t[r],n.transform):i},hs=function(t,r,i){const n=ee(t,r)?t[r]:void 0;return n&&typeof n=="object"?le(n):i()};function fh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cy();const t=N=>fh(N);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==Bt.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const i=r,n=i.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,h=e.trustedTypes,u=s.prototype,f=pe(u,"cloneNode"),p=pe(u,"remove"),g=pe(u,"removeAttributeNode"),m=pe(u,"nextSibling"),x=pe(u,"childNodes"),y=pe(u,"parentNode"),_=pe(u,"shadowRoot"),C=pe(u,"attributes"),k=o&&o.prototype?pe(o.prototype,"nodeType"):null,v=o&&o.prototype?pe(o.prototype,"nodeName"):null,F=o&&o.prototype?pe(o.prototype,"ownerDocument"):null,M=function(b){return k?k(b):b.nodeType},$=function(b){return v?v(b):b.nodeName},H=Vm(u,"namespaceURI"),z=function(b){return H?H(b):b.namespaceURI};if(typeof a=="function"){const N=r.createElement("template");N.content&&N.content.ownerDocument&&(r=N.content.ownerDocument)}let E,q="",O,A=!1,L=0;const T=function(){if(L>0)throw De('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},D=function(b){T(),L++;try{return E.createHTML(b)}finally{L--}},B=function(b){T(),L++;try{return E.createScriptURL(b)}finally{L--}},j=function(){return A||(O=hy(h,n),A=!0),O},U=r,st=U.implementation,ut=U.createNodeIterator,bt=U.createDocumentFragment,St=U.getElementsByTagName,_t=i.importNode;let lt=Xl();t.isSupported=typeof oh=="function"&&typeof y=="function"&&st&&st.createHTMLDocument!==void 0;const ne=Qm,me=Jm,ae=ty,Et=ey,se=ry,ir=iy,nr=ny,Jg=sy;let al=Yl,Ct=null;const Da=ht({},[...Wl,...as,...ss,...os,...Hl]);let wt=null;const Oa=ht({},[...jl,...ls,...Ul,...yn]);let Ce=Object.seal(Ir(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),mi=null,sl=null;const je=Object.seal(Ir(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ol=!0,Ra=!0,ll=!1,Ia=!0,Fe=!1,ar=!0,sr=!1,Pa=!1,ln=null,cn=null,Na=!1,Br=!1,hn=!1,un=!1,cl=!0,hl=!1;const ul="user-content-";let za=!0,qa=!1,or=null,Mr={},lr=null;const fl=ht({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let pl=null;const dl=ht({},["audio","video","img","source","image","track"]);let gl=null;const ml=ht({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fn="http://www.w3.org/1998/Math/MathML",pn="http://www.w3.org/2000/svg",we="http://www.w3.org/1999/xhtml";let Er=we,Wa=!1,Ha=null;const tm=ht({},[fn,pn,we],ns),yl=Ot(["mi","mo","mn","ms","mtext"]);let ja=ht({},yl);const xl=Ot(["annotation-xml"]);let Ua=ht({},xl);const em=ht({},["title","style","font","a","script"]);let yi=null;const rm=["application/xhtml+xml","text/html"],im="text/html";let Tt=null,Fr=null;const nm=r.createElement("form"),bl=function(b){return b instanceof RegExp||b instanceof Function},Ya=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Fr&&Fr===b)return;(!b||typeof b!="object")&&(b={}),b=le(b),yi=rm.indexOf(b.PARSER_MEDIA_TYPE)===-1?im:b.PARSER_MEDIA_TYPE,Tt=yi==="application/xhtml+xml"?ns:ur,Ct=Ge(b,"ALLOWED_TAGS",Da,{transform:Tt}),wt=Ge(b,"ALLOWED_ATTR",Oa,{transform:Tt}),Ha=Ge(b,"ALLOWED_NAMESPACES",tm,{transform:ns}),gl=Ge(b,"ADD_URI_SAFE_ATTR",ml,{transform:Tt,base:ml}),pl=Ge(b,"ADD_DATA_URI_TAGS",dl,{transform:Tt,base:dl}),lr=Ge(b,"FORBID_CONTENTS",fl,{transform:Tt}),mi=Ge(b,"FORBID_TAGS",le({}),{transform:Tt}),sl=Ge(b,"FORBID_ATTR",le({}),{transform:Tt}),Mr=ee(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?le(b.USE_PROFILES):b.USE_PROFILES:!1,ol=b.ALLOW_ARIA_ATTR!==!1,Ra=b.ALLOW_DATA_ATTR!==!1,ll=b.ALLOW_UNKNOWN_PROTOCOLS||!1,Ia=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fe=b.SAFE_FOR_TEMPLATES||!1,ar=b.SAFE_FOR_XML!==!1,sr=b.WHOLE_DOCUMENT||!1,Br=b.RETURN_DOM||!1,hn=b.RETURN_DOM_FRAGMENT||!1,un=b.RETURN_TRUSTED_TYPE||!1,Na=b.FORCE_BODY||!1,cl=b.SANITIZE_DOM!==!1,hl=b.SANITIZE_NAMED_PROPS||!1,za=b.KEEP_CONTENT!==!1,qa=b.IN_PLACE||!1,al=Xm(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:Yl,Er=typeof b.NAMESPACE=="string"?b.NAMESPACE:we,ja=hs(b,"MATHML_TEXT_INTEGRATION_POINTS",()=>ht({},yl)),Ua=hs(b,"HTML_INTEGRATION_POINTS",()=>ht({},xl));const w=hs(b,"CUSTOM_ELEMENT_HANDLING",()=>Ir(null));if(Ce=Ir(null),ee(w,"tagNameCheck")&&bl(w.tagNameCheck)&&(Ce.tagNameCheck=w.tagNameCheck),ee(w,"attributeNameCheck")&&bl(w.attributeNameCheck)&&(Ce.attributeNameCheck=w.attributeNameCheck),ee(w,"allowCustomizedBuiltInElements")&&typeof w.allowCustomizedBuiltInElements=="boolean"&&(Ce.allowCustomizedBuiltInElements=w.allowCustomizedBuiltInElements),zt(Ce),Fe&&(Ra=!1),hn&&(Br=!0),Mr&&(Ct=ht({},Hl),wt=Ir(null),Mr.html===!0&&(ht(Ct,Wl),ht(wt,jl)),Mr.svg===!0&&(ht(Ct,as),ht(wt,ls),ht(wt,yn)),Mr.svgFilters===!0&&(ht(Ct,ss),ht(wt,ls),ht(wt,yn)),Mr.mathMl===!0&&(ht(Ct,os),ht(wt,Ul),ht(wt,yn))),je.tagCheck=null,je.attributeCheck=null,ee(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?je.tagCheck=b.ADD_TAGS:Wr(b.ADD_TAGS)&&(Ct===Da&&(Ct=le(Ct)),ht(Ct,b.ADD_TAGS,Tt))),ee(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?je.attributeCheck=b.ADD_ATTR:Wr(b.ADD_ATTR)&&(wt===Oa&&(wt=le(wt)),ht(wt,b.ADD_ATTR,Tt))),ee(b,"ADD_FORBID_CONTENTS")&&Wr(b.ADD_FORBID_CONTENTS)&&(lr===fl&&(lr=le(lr)),ht(lr,b.ADD_FORBID_CONTENTS,Tt)),za&&(Ct["#text"]=!0),sr&&ht(Ct,["html","head","body"]),Ct.table&&(ht(Ct,["tbody"]),delete mi.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw De('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw De('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const R=E;E=b.TRUSTED_TYPES_POLICY;try{q=D("")}catch(I){throw E=R,I}}else b.TRUSTED_TYPES_POLICY===null?(E=void 0,q=""):(E===void 0&&(E=j()),E&&typeof q=="string"&&(q=D("")));Ot&&Ot(b),Fr=b},_l=ht({},[...as,...ss,...Zm]),Cl=ht({},[...os,...Km]),am=function(b,w,R){return w.namespaceURI===we?b==="svg":w.namespaceURI===fn?b==="svg"&&(R==="annotation-xml"||ja[R]):!!_l[b]},sm=function(b,w,R){return w.namespaceURI===we?b==="math":w.namespaceURI===pn?b==="math"&&Ua[R]:!!Cl[b]},om=function(b,w,R){return w.namespaceURI===pn&&!Ua[R]||w.namespaceURI===fn&&!ja[R]?!1:!Cl[b]&&(em[b]||!_l[b])},lm=function(b){const w=z(b),R=ur($(b)),I=y(b);let Z,rt;return I&&M(I)===Bt.element?(Z={namespaceURI:z(I)},rt=ur($(I))):(Z={namespaceURI:Er},rt="template"),Ha[w]?w===pn?am(R,Z,rt):w===fn?sm(R,Z,rt):w===we?om(R,Z,rt):!!(yi==="application/xhtml+xml"&&Ha[w]):!1},Ue=function(b){Ci(t.removed,{element:b});try{y(b).removeChild(b)}catch{if(p(b),!y(b))throw De("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},wl=function(b,w,R){try{g(b,w)}catch{try{b.removeAttribute(R)}catch{}}},Ga=function(b){Xa(b);const w=x(b);w&&$e(qm(w),I=>{try{p(I)}catch{}});const R=M(b)===Bt.element?C(b):null;if(R)for(let I=R.length-1;I>=0;--I){const Z=R[I],rt=Z&&Z.name;typeof rt=="string"&&wl(b,Z,rt)}},$r=function(b,w,R){if(!R)try{R=w.getAttributeNode(b)}catch{R=null}Ci(t.removed,{attribute:R||null,from:w});try{R?g(w,R):w.removeAttribute(b)}catch{try{w.removeAttribute(b)}catch{}}if(b==="is")if(Br||hn)try{Ue(w)}catch{}else try{w.setAttribute(b,"")}catch{}},kl=function(b){const w=C(b);if(w)for(let R=w.length-1;R>=0;--R){const I=w[R],Z=I&&I.name;typeof Z!="string"||wt[Tt(Z)]||wl(b,I,Z)}},Va=function(b,w){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const I=[b];for(;I.length>0;){const Z=I.pop();if(w(Z)===!1)continue;if(R&&M(Z)===Bt.element){const ot=_(Z);Ye(ot)&&I.push(ot)}const rt=x(Z);if(rt)for(let ot=rt.length-1;ot>=0;--ot)I.push(rt[ot])}},Xa=function(b){Va(b,w=>{M(w)===Bt.element&&kl(w)})},Za=function(b){const w=[];return Va(b,R=>{w.push(R)},!0),w},cm=function(b,w){const R=rs();$e(Za(b),I=>{M(I)===Bt.element&&is(R,I)}),$e(w,I=>{M(I)===Bt.element&&!wi(R,I)&&kl(I)})},vl=function(b,w){let R=!1;return $e(t.removed,I=>{I.element&&(R=R||I.element===b,Xa(I.element))}),cm(b,w),R},hm=8,um=function(b,w){const R=or;let I=null;const Z=()=>(I||(I=rs(),$e(w,rt=>{is(I,rt)})),I);for(let rt=0;;rt++){const ot=Za(b),Ft=[b];let ke=!1;if($e(ot,Vt=>{M(Vt)===Bt.documentFragment?Ci(Ft,Vt):!ke&&!wi(R,Vt)&&(ke=wi(Z(),Vt))}),!ke)return;if(rt>=hm)throw De("the tree kept changing during in-place sanitization; refusing to return it");$e(Ft,(Vt,Qt)=>{fm(Vt,Qt>0,b,Z())})}},fm=function(b,w,R,I){const Z=Ka(b);let rt;for(;rt=Z.nextNode();)!wi(I,rt)||wi(or,rt)||(w&&ye(lt.uponSanitizeShadowNode,rt,null),Ja(rt,R),ts(rt,R),Ye(rt.content)&&bi(rt.content))},pm=function(b){or&&is(or,b)},Sl=function(b,w){return ar?b==="patchsrc"?!0:b==="for"&&w!=="label"&&w!=="output":!1},dm=function(b){ar&&Va(b,w=>{const R=M(w);if(R===Bt.processingInstruction||R===Bt.comment&&Rt(Gl,w.data)){try{p(w)}catch{}return!1}if(R===Bt.element){const I=w,Z=Tt($(w));try{I.hasAttribute&&I.hasAttribute("patchsrc")&&I.removeAttribute("patchsrc"),I.hasAttribute&&I.hasAttribute("for")&&Sl("for",Z)&&I.removeAttribute("for")}catch{}}return!0})},Tl=function(b){let w=null,R=null;if(Na)b="<remove></remove>"+b;else{const rt=Pl(b,/^[\r\n\t ]+/);R=rt&&rt[0]}yi==="application/xhtml+xml"&&Er===we&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const I=E?D(b):b;if(Er===we)try{w=new c().parseFromString(I,yi)}catch{}if(!w||!w.documentElement){w=st.createDocument(Er,"template",null);try{w.documentElement.innerHTML=Wa?q:I}catch{}}const Z=w.body||w.documentElement;return b&&R&&Z.insertBefore(r.createTextNode(R),Z.childNodes[0]||null),Er===we?St.call(w,sr?"html":"body")[0]:sr?w.documentElement:Z},Ka=function(b){const w=F?F(b):b.ownerDocument;return ut.call(w||b,b,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},dn=function(b){return b=ki(b,ne," "),b=ki(b,me," "),b=ki(b,ae," "),b},Qa=function(b){var w;Al(b);const R=(w=b.querySelectorAll)===null||w===void 0?void 0:w.call(b,"template");R&&$e(R,I=>{Ye(I.content)&&Qa(I.content)})},Al=function(b){b.normalize();const w=F?F(b):b.ownerDocument,R=ut.call(w||b,b,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let I=R.nextNode();for(;I;)I.data=dn(I.data),I=R.nextNode()},gn=function(b){const w=v?v(b):null;return typeof w!="string"||Tt(w)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==C(b)||typeof b.removeAttribute!="function"||typeof b.removeAttributeNode!="function"||typeof b.getAttributeNode!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==k(b)||b.childNodes!==x(b)},Ye=function(b){if(!k||typeof b!="object"||b===null)return!1;try{return k(b)===Bt.documentFragment}catch{return!1}},xi=function(b){if(!k||typeof b!="object"||b===null)return!1;try{return typeof k(b)=="number"}catch{return!1}};function ye(N,b,w){N.length!==0&&$e(N,R=>{R.call(t,b,w,Fr)})}const gm=function(b,w){return!!(ar&&b.hasChildNodes()&&!xi(b.firstElementChild)&&Rt(cs,b.textContent)&&Rt(cs,b.innerHTML)||ar&&ly[w]&&M(b)===Bt.element&&z(b)===we&&(xi(b.firstElementChild)||typeof b.textContent=="string"&&Rt(cs,b.textContent))||b.nodeType===Bt.processingInstruction||ar&&b.nodeType===Bt.comment&&Rt(Gl,b.data))},mn=function(b,w){if(b instanceof RegExp)return Rt(b,w);if(b instanceof Function){for(var R=arguments.length,I=new Array(R>2?R-2:0),Z=2;Z<R;Z++)I[Z-2]=arguments[Z];return!!b(w,...I)}return!1},mm=function(b,w,R){if(!mi[w]&&Ml(w)&&mn(Ce.tagNameCheck,w))return!1;if(za&&!lr[w]&&!lr[ur(w)]){const I=y(b),Z=x(b);if(Z&&I){const rt=Z.length;for(let ot=rt-1;ot>=0;--ot){const Ft=b===R?f(Z[ot],!0):Z[ot];I.insertBefore(Ft,m(b))}}}return Ue(b),!0},Ll=function(b,w,R,I){return b.length===0?w:w===R||w===I?le(w):w},Dr=function(b,w){return b===w||y(b)!==null?!1:(qa&&Xa(b),!0)},Ja=function(b,w){if(pm(b),ye(lt.beforeSanitizeElements,b,null),Dr(b,w))return!0;if(gn(b))return Ue(b),!0;const R=Tt($(b));if(Ct=Ll(lt.uponSanitizeElement,Ct,Da,ln),ye(lt.uponSanitizeElement,b,{tagName:R,allowedTags:Ct}),Dr(b,w))return!0;if(gm(b,R))return Ue(b),!0;if(mi[R]||!(je.tagCheck instanceof Function&&je.tagCheck(R))&&!Ct[R]){const I=mm(b,R,w);return I===!1&&(ye(lt.afterSanitizeElements,b,null),Dr(b,w))?!0:I}if(M(b)===Bt.element&&!lm(b)||(R==="noscript"||R==="noembed"||R==="noframes")&&Rt(oy,b.innerHTML))return Ue(b),!0;if(Fe&&b.nodeType===Bt.text){const I=dn(b.textContent);b.textContent!==I&&(Ci(t.removed,{element:b.cloneNode()}),b.textContent=I)}return ye(lt.afterSanitizeElements,b,null),Dr(b,w)},Bl=function(b,w,R){if(sl[w]||Sl(w,b)||cl&&(w==="id"||w==="name")&&(R in r||R in nm))return!1;const I=wt[w]||je.attributeCheck instanceof Function&&je.attributeCheck(w,b);return Ra&&Rt(Et,w)||ol&&Rt(se,w)?!0:I?gl[w]||Rt(al,ki(R,nr,""))||(w==="src"||w==="xlink:href"||w==="href")&&b!=="script"&&Nl(R,"data:")===0&&pl[b]||ll&&!Rt(ir,ki(R,nr,""))?!0:!R:Ml(b)&&mn(Ce.tagNameCheck,b)&&mn(Ce.attributeNameCheck,w,b)||w==="is"&&Ce.allowCustomizedBuiltInElements&&mn(Ce.tagNameCheck,R)},ym=ht({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ml=function(b){return!ym[ur(b)]&&Rt(Jg,b)},xm=function(b,w,R,I){if(E&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!R)switch(h.getAttributeType(b,w)){case"TrustedHTML":return D(I);case"TrustedScriptURL":return B(I)}return I},bm=function(b,w,R,I){try{return R?b.setAttributeNS(R,w,I):b.setAttribute(w,I),gn(b)?(Ue(b),!1):!0}catch{return $r(w,b),!1}},El=function(b,w){return ar&&Rt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,w)?!0:ur(b)==="attributename"&&Pl(w,"href")!==null},ts=function(b,w){if(ye(lt.beforeSanitizeAttributes,b,null),Dr(b,w))return;const R=b.attributes;if(!R||gn(b))return;wt=Ll(lt.uponSanitizeAttribute,wt,Oa,cn);const I={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:wt,forceKeepAttr:void 0};let Z=R.length;const rt=Tt(b.nodeName);for(;Z--;){const ot=R[Z],Ft=ot.name,ke=ot.namespaceURI,Vt=ot.value,Qt=Tt(Ft),Or=Vt;let Jt=Ft==="value"?Or:Hm(Or),Fl=!1;if(I.attrName=Qt,I.attrValue=Jt,I.keepAttr=!0,I.forceKeepAttr=void 0,ye(lt.uponSanitizeAttribute,b,I),Jt=I.attrValue,hl&&(Qt==="id"||Qt==="name")&&Nl(Jt,ul)!==0&&($r(Ft,b,ot),Jt=ul+Jt,Fl=!0),El(Ft,Jt)){$r(Ft,b,ot);continue}if(!I.forceKeepAttr){if(!I.keepAttr){$r(Ft,b,ot);continue}if(!Ia&&Rt(Vl,Jt)){$r(Ft,b,ot);continue}if(Fe&&(Jt=dn(Jt)),!Bl(rt,Qt,Jt)){$r(Ft,b,ot);continue}Jt=xm(rt,Qt,ke,Jt),Jt!==Or&&bm(b,Ft,ke,Jt)&&Fl&&Il(t.removed)}}ye(lt.afterSanitizeAttributes,b,null),Dr(b,w)},bi=function(b){let w=null;const R=Ka(b);for(ye(lt.beforeSanitizeShadowDOM,b,null);w=R.nextNode();)if(ye(lt.uponSanitizeShadowNode,w,null),Ja(w,b),ts(w,b),Ye(w.content)&&bi(w.content),M(w)===Bt.element){const I=_(w);Ye(I)&&(es(I),bi(I))}Fe&&Al(b),ye(lt.afterSanitizeShadowDOM,b,null)},es=function(b){const w=[{node:b,shadow:null}];for(;w.length>0;){const R=w.pop();if(R.shadow){bi(R.shadow);continue}const I=R.node,Z=M(I)===Bt.element,rt=x(I);if(rt)for(let ot=rt.length-1;ot>=0;--ot)w.push({node:rt[ot],shadow:null});if(Z){const ot=v?v(I):null;if(typeof ot=="string"&&Tt(ot)==="template"){const Ft=I.content;Ye(Ft)&&w.push({node:Ft,shadow:null})}}if(Z){const ot=_(I);Ye(ot)&&w.push({node:null,shadow:ot},{node:ot,shadow:null})}}};return t.sanitize=function(N){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=null,R=null,I=null,Z=null;if(Wa=!N,Wa&&(N="<!-->"),typeof N!="string"&&!xi(N)&&(N=Gm(N),typeof N!="string"))throw De("dirty is not a string, aborting");if(!t.isSupported)return N;Pa?(Ct=ln,wt=cn):Ya(b),(lt.uponSanitizeElement.length>0||lt.uponSanitizeAttribute.length>0)&&(Ct=le(Ct)),lt.uponSanitizeAttribute.length>0&&(wt=le(wt)),t.removed=[];const rt=qa&&typeof N!="string"&&xi(N);let ot=[];const Ft=or;if(rt){dm(N);const Qt=$(N);if(typeof Qt=="string"){const Or=Tt(Qt);if(!Ct[Or]||mi[Or])throw Ga(N),De("root node is forbidden and cannot be sanitized in-place")}if(gn(N))throw Ga(N),De("root node is clobbered and cannot be sanitized in-place");ot=Za(N),or=rs()}else if(xi(N))w=Tl("<!---->"),R=w.ownerDocument.importNode(N,!0),R.nodeType===Bt.element&&R.nodeName==="BODY"||R.nodeName==="HTML"?w=R:w.appendChild(R),es(w);else{if(!Br&&!Fe&&!sr&&N.indexOf("<")===-1)return E&&un?D(N):N;if(w=Tl(N),!w)return Br?null:un?q:""}w&&Na&&Ue(w.firstChild);const ke=rt?N:w;try{rt&&es(N);const Qt=Ka(ke);for(;I=Qt.nextNode();)Ja(I,ke),ts(I,ke),Ye(I.content)&&bi(I.content);rt&&um(N,ot)}catch(Qt){throw rt&&(Ga(N),vl(N,ot)),Qt}finally{or=Ft}if(rt){if(vl(N,ot))throw De("a node selected for removal could not be safely returned; refusing to sanitize in place");return Fe&&Qa(N),N}if(Br){if(Fe&&Qa(w),hn)for(Z=bt.call(w.ownerDocument);w.firstChild;)Z.appendChild(w.firstChild);else Z=w;return(wt.shadowroot||wt.shadowrootmode)&&(Z=_t.call(i,Z,!0)),Z}let Vt=sr?w.outerHTML:w.innerHTML;return sr&&Ct["!doctype"]&&w.ownerDocument&&w.ownerDocument.doctype&&w.ownerDocument.doctype.name&&Rt(ay,w.ownerDocument.doctype.name)&&(Vt="<!DOCTYPE "+w.ownerDocument.doctype.name+`>
|
|
4
4
|
`+Vt),Fe&&(Vt=dn(Vt)),E&&un?D(Vt):Vt},t.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ya(N),Pa=!0,ln=Ct,cn=wt},t.clearConfig=function(){Fr=null,Pa=!1,ln=null,cn=null,E=O,q=""},t.isValidAttribute=function(N,b,w){Fr||Ya({});const R=Tt(N),I=Tt(b);return typeof w=="string"&&(El(b,w)||!Ia&&Rt(Vl,w))?!1:Bl(R,I,w)},t.addHook=function(N,b){typeof b=="function"&&ee(lt,N)&&Ci(lt[N],b)},t.removeHook=function(N,b){if(ee(lt,N)){if(b!==void 0){const w=zm(lt[N],b);return w===-1?void 0:Wm(lt[N],w,1)[0]}return Il(lt[N])}},t.removeHooks=function(N){ee(lt,N)&&(lt[N]=[])},t.removeAllHooks=function(){lt=Xl()},t}var Qr=fh(),ph=Object.defineProperty,d=(e,t)=>ph(e,"name",{value:t,configurable:!0}),uy=(e,t)=>{for(var r in t)ph(e,r,{get:t[r],enumerable:!0})},Oe={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},P={trace:d((...e)=>{},"trace"),debug:d((...e)=>{},"debug"),info:d((...e)=>{},"info"),warn:d((...e)=>{},"warn"),error:d((...e)=>{},"error"),fatal:d((...e)=>{},"fatal")},go=d(function(e="fatal"){let t=Oe.fatal;typeof e=="string"?e.toLowerCase()in Oe&&(t=Oe[e]):typeof e=="number"&&(t=e),P.trace=()=>{},P.debug=()=>{},P.info=()=>{},P.warn=()=>{},P.error=()=>{},P.fatal=()=>{},t<=Oe.fatal&&(P.fatal=console.error?console.error.bind(console,ue("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ue("FATAL"))),t<=Oe.error&&(P.error=console.error?console.error.bind(console,ue("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ue("ERROR"))),t<=Oe.warn&&(P.warn=console.warn?console.warn.bind(console,ue("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ue("WARN"))),t<=Oe.info&&(P.info=console.info?console.info.bind(console,ue("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ue("INFO"))),t<=Oe.debug&&(P.debug=console.debug?console.debug.bind(console,ue("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ue("DEBUG"))),t<=Oe.trace&&(P.trace=console.debug?console.debug.bind(console,ue("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ue("TRACE")))},"setLogLevel"),ue=d(e=>`%c${Tm().format("ss.SSS")} : ${e} : `,"format"),dh=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Pi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fy=/\s*%%.*\n/gm,jr,gh=(jr=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},d(jr,"UnknownDiagramError"),jr),Jr={},mo=d(function(e,t){e=e.replace(dh,"").replace(Pi,"").replace(fy,`
|
|
5
5
|
`);for(const[r,{detector:i}]of Object.entries(Jr))if(i(e,t))return r;throw new gh(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),mh=d((...e)=>{for(const{id:t,detector:r,loader:i}of e)yh(t,r,i)},"registerLazyLoadedDiagrams"),yh=d((e,t,r)=>{Jr[e]&&P.warn(`Detector with key ${e} already exists. Overwriting.`),Jr[e]={detector:t,loader:r},P.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),py=d(e=>Jr[e].loader,"getDiagramLoader"),As=d((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>As(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=As(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),Nt=As,ua="#ffffff",fa="#f2f2f2",Xt=d((e,t)=>t?S(e,{s:-40,l:10}):S(e,{s:-40,l:-10}),"mkBorder"),Ur,dy=(Ur=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,i,n,a,o,s,l,c,h,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||S(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||S(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||W(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||W(this.tertiaryColor),this.lineColor=this.lineColor||W(this.background),this.arrowheadColor=this.arrowheadColor||W(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?tt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||tt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||W(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||K(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=tt(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=tt(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||W(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||K(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||tt(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||S(this.mainBkg,{h:180,s:-15,l:t*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||S(this.mainBkg,{h:180,s:-15,l:t*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||S(this.primaryColor,{h:64}),this.fillType3=this.fillType3||S(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||S(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||S(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||S(this.primaryColor,{h:128}),this.fillType7=this.fillType7||S(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||S(this.primaryColor,{l:-10}),this.pie5=this.pie5||S(this.secondaryColor,{l:-10}),this.pie6=this.pie6||S(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||S(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||S(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||S(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||S(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||S(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||S(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||S(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||S(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||S(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||S(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||S(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||S(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ji(this.quadrant1Fill)?K(this.quadrant1Fill):tt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?tt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||S(this.primaryColor,{h:-30}),this.git4=this.git4||S(this.primaryColor,{h:-60}),this.git5=this.git5||S(this.primaryColor,{h:-90}),this.git6=this.git6||S(this.primaryColor,{h:60}),this.git7=this.git7||S(this.primaryColor,{h:120}),this.darkMode?(this.git0=K(this.git0,25),this.git1=K(this.git1,25),this.git2=K(this.git2,25),this.git3=K(this.git3,25),this.git4=K(this.git4,25),this.git5=K(this.git5,25),this.git6=K(this.git6,25),this.git7=K(this.git7,25)):(this.git0=tt(this.git0,25),this.git1=tt(this.git1,25),this.git2=tt(this.git2,25),this.git3=tt(this.git3,25),this.git4=tt(this.git4,25),this.git5=tt(this.git5,25),this.git6=tt(this.git6,25),this.git7=tt(this.git7,25)),this.gitInv0=this.gitInv0||W(this.git0),this.gitInv1=this.gitInv1||W(this.git1),this.gitInv2=this.gitInv2||W(this.git2),this.gitInv3=this.gitInv3||W(this.git3),this.gitInv4=this.gitInv4||W(this.git4),this.gitInv5=this.gitInv5||W(this.git5),this.gitInv6=this.gitInv6||W(this.git6),this.gitInv7=this.gitInv7||W(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ua,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||fa}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},d(Ur,"Theme"),Ur),gy=d(e=>{const t=new dy;return t.calculate(e),t},"getThemeVariables"),Yr,my=(Yr=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=K(this.primaryColor,16),this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=W(this.background),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=W(this.primaryColor),this.secondaryTextColor=W(this.secondaryColor),this.tertiaryTextColor=W(this.tertiaryColor),this.lineColor=W(this.background),this.textColor=W(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=K(W("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Ii(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=tt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=tt(this.sectionBkgColor,10),this.taskBorderColor=Ii(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ii(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u;this.secondBkg=K(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=K(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=K(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=S(this.primaryColor,{h:64}),this.fillType3=S(this.secondaryColor,{h:64}),this.fillType4=S(this.primaryColor,{h:-64}),this.fillType5=S(this.secondaryColor,{h:-64}),this.fillType6=S(this.primaryColor,{h:128}),this.fillType7=S(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330});for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||W(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScalePeer"+f]=this["cScalePeer"+f]||K(this["cScale"+f],10);for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||S(this.mainBkg,{h:30,s:-30,l:-(-10+f*4)}),this["surfacePeer"+f]=this["surfacePeer"+f]||S(this.mainBkg,{h:30,s:-30,l:-(-7+f*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["pie"+f]=this["cScale"+f];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||S(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||S(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||S(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||S(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||S(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||S(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ji(this.quadrant1Fill)?K(this.quadrant1Fill):tt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?tt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=K(this.secondaryColor,20),this.git1=K(this.pie2||this.secondaryColor,20),this.git2=K(this.pie3||this.tertiaryColor,20),this.git3=K(this.pie4||S(this.primaryColor,{h:-30}),20),this.git4=K(this.pie5||S(this.primaryColor,{h:-60}),20),this.git5=K(this.pie6||S(this.primaryColor,{h:-90}),10),this.git6=K(this.pie7||S(this.primaryColor,{h:60}),10),this.git7=K(this.pie8||S(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||W(this.git0),this.gitInv1=this.gitInv1||W(this.git1),this.gitInv2=this.gitInv2||W(this.git2),this.gitInv3=this.gitInv3||W(this.git3),this.gitInv4=this.gitInv4||W(this.git4),this.gitInv5=this.gitInv5||W(this.git5),this.gitInv6=this.gitInv6||W(this.git6),this.gitInv7=this.gitInv7||W(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||W(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||W(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||K(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||K(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},d(Yr,"Theme"),Yr),yy=d(e=>{const t=new my;return t.calculate(e),t},"getThemeVariables"),Gr,xy=(Gr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=S(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=W(this.primaryColor),this.secondaryTextColor=W(this.secondaryColor),this.tertiaryTextColor=W(this.tertiaryColor),this.lineColor=W(this.background),this.textColor=W(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Ii(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,i,n,a,o,s,l,c,h,u;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||tt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||tt(this.tertiaryColor,40);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=tt(this["cScale"+f],10),this["cScalePeer"+f]=this["cScalePeer"+f]||tt(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||S(this["cScale"+f],{h:180});for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||S(this.mainBkg,{h:30,l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||S(this.mainBkg,{h:30,l:-(7+f*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||W(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||W(this.labelTextColor);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=K(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=S(this.primaryColor,{h:64}),this.fillType3=S(this.secondaryColor,{h:64}),this.fillType4=S(this.primaryColor,{h:-64}),this.fillType5=S(this.secondaryColor,{h:-64}),this.fillType6=S(this.primaryColor,{h:128}),this.fillType7=S(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||S(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||S(this.primaryColor,{l:-10}),this.pie5=this.pie5||S(this.secondaryColor,{l:-30}),this.pie6=this.pie6||S(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||S(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||S(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||S(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||S(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||S(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||S(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||S(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||S(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||S(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||S(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||S(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||S(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ji(this.quadrant1Fill)?K(this.quadrant1Fill):tt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||S(this.primaryColor,{h:-30}),this.git4=this.git4||S(this.primaryColor,{h:-60}),this.git5=this.git5||S(this.primaryColor,{h:-90}),this.git6=this.git6||S(this.primaryColor,{h:60}),this.git7=this.git7||S(this.primaryColor,{h:120}),this.darkMode?(this.git0=K(this.git0,25),this.git1=K(this.git1,25),this.git2=K(this.git2,25),this.git3=K(this.git3,25),this.git4=K(this.git4,25),this.git5=K(this.git5,25),this.git6=K(this.git6,25),this.git7=K(this.git7,25)):(this.git0=tt(this.git0,25),this.git1=tt(this.git1,25),this.git2=tt(this.git2,25),this.git3=tt(this.git3,25),this.git4=tt(this.git4,25),this.git5=tt(this.git5,25),this.git6=tt(this.git6,25),this.git7=tt(this.git7,25)),this.gitInv0=this.gitInv0||tt(W(this.git0),25),this.gitInv1=this.gitInv1||W(this.git1),this.gitInv2=this.gitInv2||W(this.git2),this.gitInv3=this.gitInv3||W(this.git3),this.gitInv4=this.gitInv4||W(this.git4),this.gitInv5=this.gitInv5||W(this.git5),this.gitInv6=this.gitInv6||W(this.git6),this.gitInv7=this.gitInv7||W(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||W(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||W(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ua,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||fa}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},d(Gr,"Theme"),Gr),by=d(e=>{const t=new xy;return t.calculate(e),t},"getThemeVariables"),Vr,_y=(Vr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=K("#cde498",10),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=W(this.primaryColor),this.secondaryTextColor=W(this.secondaryColor),this.tertiaryTextColor=W(this.primaryColor),this.lineColor=W(this.background),this.textColor=W(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u;this.actorBorder=tt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||tt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||tt(this.tertiaryColor,40);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=tt(this["cScale"+f],10),this["cScalePeer"+f]=this["cScalePeer"+f]||tt(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||S(this["cScale"+f],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||S(this.mainBkg,{h:30,s:-30,l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||S(this.mainBkg,{h:30,s:-30,l:-(8+f*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=S(this.primaryColor,{h:64}),this.fillType3=S(this.secondaryColor,{h:64}),this.fillType4=S(this.primaryColor,{h:-64}),this.fillType5=S(this.secondaryColor,{h:-64}),this.fillType6=S(this.primaryColor,{h:128}),this.fillType7=S(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||S(this.primaryColor,{l:-30}),this.pie5=this.pie5||S(this.secondaryColor,{l:-30}),this.pie6=this.pie6||S(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||S(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||S(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||S(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||S(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||S(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||S(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||S(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||S(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||S(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||S(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||S(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||S(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ji(this.quadrant1Fill)?K(this.quadrant1Fill):tt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||S(this.primaryColor,{h:-30}),this.git4=this.git4||S(this.primaryColor,{h:-60}),this.git5=this.git5||S(this.primaryColor,{h:-90}),this.git6=this.git6||S(this.primaryColor,{h:60}),this.git7=this.git7||S(this.primaryColor,{h:120}),this.darkMode?(this.git0=K(this.git0,25),this.git1=K(this.git1,25),this.git2=K(this.git2,25),this.git3=K(this.git3,25),this.git4=K(this.git4,25),this.git5=K(this.git5,25),this.git6=K(this.git6,25),this.git7=K(this.git7,25)):(this.git0=tt(this.git0,25),this.git1=tt(this.git1,25),this.git2=tt(this.git2,25),this.git3=tt(this.git3,25),this.git4=tt(this.git4,25),this.git5=tt(this.git5,25),this.git6=tt(this.git6,25),this.git7=tt(this.git7,25)),this.gitInv0=this.gitInv0||W(this.git0),this.gitInv1=this.gitInv1||W(this.git1),this.gitInv2=this.gitInv2||W(this.git2),this.gitInv3=this.gitInv3||W(this.git3),this.gitInv4=this.gitInv4||W(this.git4),this.gitInv5=this.gitInv5||W(this.git5),this.gitInv6=this.gitInv6||W(this.git6),this.gitInv7=this.gitInv7||W(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||W(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||W(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ua,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||fa}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},d(Vr,"Theme"),Vr),Cy=d(e=>{const t=new _y;return t.calculate(e),t},"getThemeVariables"),Xr,wy=(Xr=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=K(this.contrast,55),this.background="#ffffff",this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=W(this.primaryColor),this.secondaryTextColor=W(this.secondaryColor),this.tertiaryTextColor=W(this.tertiaryColor),this.lineColor=W(this.background),this.textColor=W(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u;this.secondBkg=K(this.contrast,55),this.border2=this.contrast,this.actorBorder=K(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||W(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||K(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||tt(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||S(this.mainBkg,{l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||S(this.mainBkg,{l:-(8+f*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=K(this.contrast,30),this.sectionBkgColor2=K(this.contrast,30),this.taskBorderColor=tt(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=K(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=tt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=S(this.primaryColor,{h:64}),this.fillType3=S(this.secondaryColor,{h:64}),this.fillType4=S(this.primaryColor,{h:-64}),this.fillType5=S(this.secondaryColor,{h:-64}),this.fillType6=S(this.primaryColor,{h:128}),this.fillType7=S(this.secondaryColor,{h:128});for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["pie"+f]=this["cScale"+f];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||S(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||S(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||S(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||S(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||S(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||S(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ji(this.quadrant1Fill)?K(this.quadrant1Fill):tt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=tt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||S(this.primaryColor,{h:-30}),this.git4=this.pie5||S(this.primaryColor,{h:-60}),this.git5=this.pie6||S(this.primaryColor,{h:-90}),this.git6=this.pie7||S(this.primaryColor,{h:60}),this.git7=this.pie8||S(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||W(this.git0),this.gitInv1=this.gitInv1||W(this.git1),this.gitInv2=this.gitInv2||W(this.git2),this.gitInv3=this.gitInv3||W(this.git3),this.gitInv4=this.gitInv4||W(this.git4),this.gitInv5=this.gitInv5||W(this.git5),this.gitInv6=this.gitInv6||W(this.git6),this.gitInv7=this.gitInv7||W(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ua,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||fa}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},d(Xr,"Theme"),Xr),ky=d(e=>{const t=new wy;return t.calculate(e),t},"getThemeVariables"),Pe={base:{getThemeVariables:gy},dark:{getThemeVariables:yy},default:{getThemeVariables:by},forest:{getThemeVariables:Cy},neutral:{getThemeVariables:ky}},Ve={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},xh={...Ve,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:Pe.default.getThemeVariables(),sequence:{...Ve.sequence,messageFont:d(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:d(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:d(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Ve.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ve.c4,useWidth:void 0,personFont:d(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:d(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:d(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:d(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:d(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:d(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:d(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:d(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:d(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:d(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:d(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:d(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:d(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:d(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:d(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:d(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:d(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:d(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:d(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:d(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:d(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:d(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Ve.pie,useWidth:984},xyChart:{...Ve.xyChart,useWidth:void 0},requirement:{...Ve.requirement,useWidth:void 0},packet:{...Ve.packet}},bh=d((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...bh(e[i],"")]:[...r,t+i],[]),"keyify"),vy=new Set(bh(xh,"")),_h=xh,Dn=d(e=>{if(P.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Dn(t));return}for(const t of Object.keys(e)){if(P.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!vy.has(t)||e[t]==null){P.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){P.debug("sanitizing object",t),Dn(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(P.debug("sanitizing css option",t),e[t]=Sy(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}P.debug("After sanitization",e)}},"sanitizeDirective"),Sy=d(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),ti=Object.freeze(_h),re=Nt({},ti),Ch,ei=[],Ni=Nt({},ti),pa=d((e,t)=>{let r=Nt({},e),i={};for(const n of t)vh(n),i=Nt(i,n);if(r=Nt(r,i),i.theme&&i.theme in Pe){const n=Nt({},Ch),a=Nt(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in Pe&&(r.themeVariables=Pe[r.theme].getThemeVariables(a))}return Ni=r,Sh(Ni),Ni},"updateCurrentConfig"),Ty=d(e=>(re=Nt({},ti),re=Nt(re,e),e.theme&&Pe[e.theme]&&(re.themeVariables=Pe[e.theme].getThemeVariables(e.themeVariables)),pa(re,ei),re),"setSiteConfig"),Ay=d(e=>{Ch=Nt({},e)},"saveConfigFromInitialize"),Ly=d(e=>(re=Nt(re,e),pa(re,ei),re),"updateSiteConfig"),wh=d(()=>Nt({},re),"getSiteConfig"),kh=d(e=>(Sh(e),Nt(Ni,e),_e()),"setConfig"),_e=d(()=>Nt({},Ni),"getConfig"),vh=d(e=>{e&&(["secure",...re.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(P.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&vh(e[t])}))},"sanitize"),By=d(e=>{var t;Dn(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),ei.push(e),pa(re,ei)},"addDirective"),On=d((e=re)=>{ei=[],pa(e,ei)},"reset"),My={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Zl={},Ey=d(e=>{Zl[e]||(P.warn(My[e]),Zl[e]=!0)},"issueWarning"),Sh=d(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Ey("LAZY_LOAD_DEPRECATED")},"checkConfig"),tn=/<br\s*\/?>/gi,Fy=d(e=>e?Lh(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),$y=(()=>{let e=!1;return()=>{e||(Th(),e=!0)}})();function Th(){const e="data-temp-href-target";Qr.addHook("beforeSanitizeAttributes",t=>{t instanceof Element&&t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Qr.addHook("afterSanitizeAttributes",t=>{t instanceof Element&&t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}d(Th,"setupDompurifyHooks");var Ah=d(e=>($y(),Qr.sanitize(e)),"removeScript"),Kl=d((e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const i=t.securityLevel;i==="antiscript"||i==="strict"?e=Ah(e):i!=="loose"&&(e=Lh(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=Iy(e))}return e},"sanitizeMore"),_r=d((e,t)=>e&&(t.dompurifyConfig?e=Qr.sanitize(Kl(e,t),t.dompurifyConfig).toString():e=Qr.sanitize(Kl(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Dy=d((e,t)=>typeof e=="string"?_r(e,t):e.flat().map(r=>_r(r,t)),"sanitizeTextOrArray"),Oy=d(e=>tn.test(e),"hasBreaks"),Ry=d(e=>e.split(tn),"splitBreaks"),Iy=d(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Lh=d(e=>e.replace(tn,"#br#"),"breakToPlaceholder"),Py=d(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},"getUrl"),qt=d(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Ny=d(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),zy=d(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),rA=d(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){const a=t[i-1],o=t[i+1];qy(a,o)&&(n=a+","+o,i++,r.pop())}r.push(Wy(n))}return r.join("")},"parseGenericTypes"),Ls=d((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),qy=d((e,t)=>{const r=Ls(e,"~"),i=Ls(t,"~");return r===1&&i===1},"shouldCombineSets"),Wy=d(e=>{const t=Ls(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Ql=d(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Bs=/\$\$(.*)\$\$/g,ri=d(e=>{var t;return(((t=e.match(Bs))==null?void 0:t.length)??0)>0},"hasKatex"),iA=d(async(e,t)=>{e=await yo(e,t);const r=document.createElement("div");r.innerHTML=e,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),yo=d(async(e,t)=>{if(!ri(e))return e;if(!(Ql()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Bs,"MathML is unsupported in this environment.");const{default:r}=await mt(async()=>{const{default:n}=await import("./katex-C5jXJg4s.js");return{default:n}},[]),i=t.forceLegacyMathML||!Ql()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(tn).map(n=>ri(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(Bs,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},"renderKatex"),li={getRows:Fy,sanitizeText:_r,sanitizeTextOrArray:Dy,hasBreaks:Oy,splitBreaks:Ry,lineBreakRegex:tn,removeScript:Ah,getUrl:Py,evaluate:qt,getMax:Ny,getMin:zy},Hy=d(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),jy=d(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),Bh=d(function(e,t,r,i){const n=jy(t,r,i);Hy(e,n)},"configureSvgSize"),Uy=d(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,o=n.height;P.info(`SVG bounds: ${a}x${o}`,n);let s=0,l=0;P.info(`Graph bounds: ${s}x${l}`,e),s=a+r*2,l=o+r*2,P.info(`Calculated bounds: ${s}x${l}`),Bh(t,l,s,i);const c=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),Tn={},Yy=d((e,t,r)=>{let i="";return e in Tn&&Tn[e]?i=Tn[e](r):P.warn(`No theme found for ${e}`),` & {
|
|
@@ -176,8 +176,8 @@ res:`,Y.polygon(t,c,f)),Y.polygon(t,c,f)},n}d(Dd,"question");async function Od(e
|
|
|
176
176
|
M${h},${u-c} L${h},${u+l}`;t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=p.path(x,g),_=n.insert(()=>y,":first-child");return _.attr("transform",`translate(${c/2}, ${c/2})`),_.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(a.width/2)+c/2-(a.x-(a.left??0))}, ${-(a.height/2)+c/2-(a.y-(a.top??0))})`),Q(t,_),t.intersect=function(C){return Y.polygon(t,m,C)},n}d(eg,"windowPane");async function rg(e,t,r,i,n=r.class.padding??12){const a=i?0:3,o=e.insert("g").attr("class",at(t)).attr("id",t.domId||t.id);let s=null,l=null,c=null,h=null,u=0,f=0,p=0;if(s=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const _=t.annotations[0];await $i(s,{text:`«${_}»`},0),u=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await $i(l,t,0,["font-weight: bolder"]);const g=l.node().getBBox();f=g.height,c=o.insert("g").attr("class","members-group text");let m=0;for(const _ of t.members){const C=await $i(c,_,m,[_.parseClassifier()]);m+=C+a}p=c.node().getBBox().height,p<=0&&(p=n/2),h=o.insert("g").attr("class","methods-group text");let x=0;for(const _ of t.methods){const C=await $i(h,_,x,[_.parseClassifier()]);x+=C+a}let y=o.node().getBBox();if(s!==null){const _=s.node().getBBox();s.attr("transform",`translate(${-_.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${u})`),y=o.node().getBBox(),c.attr("transform",`translate(0, ${u+f+n*2})`),y=o.node().getBBox(),h.attr("transform",`translate(0, ${u+f+(p?p+n*4:n*2)})`),y=o.node().getBBox(),{shapeSvg:o,bbox:y}}d(rg,"textHelper");async function $i(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=_e();let o="useHtmlLabels"in t?t.useHtmlLabels:qt(a.htmlLabels)??!0,s="";"text"in t?s=t.text:s=t.label,!o&&s.startsWith("\\")&&(s=s.substring(1)),ri(s)&&(o=!0);const l=await fi(n,Eh(ui(s)),{width:ai(s,a)+50,classes:"markdown-node-label",useHtmlLabels:o},a);let c,h=1;if(o){const u=l.children[0],f=ft(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1);const p=u.getElementsByTagName("img");if(p){const g=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...p].map(m=>new Promise(x=>{function y(){var _;if(m.style.display="flex",m.style.flexDirection="column",g){const C=((_=a.fontSize)==null?void 0:_.toString())??window.getComputedStyle(document.body).fontSize,v=parseInt(C,10)*5+"px";m.style.minWidth=v,m.style.maxWidth=v}else m.style.width="100%";x(m)}d(y,"setupImage"),setTimeout(()=>{m.complete&&y()}),m.addEventListener("error",y),m.addEventListener("load",y)})))}c=u.getBoundingClientRect(),f.attr("width",c.width),f.attr("height",c.height)}else{i.includes("font-weight: bolder")&&ft(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(u.textContent=s[0]+s.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),s[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),c=l.getBBox()}return n.attr("transform","translate(0,"+(-c.height/(2*h)+r)+")"),c.height}d($i,"addText");async function ig(e,t){var H,z;const r=pt(),i=r.class.padding??12,n=i,a=t.useHtmlLabels??qt(r.htmlLabels)??!0,o=t;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:s,bbox:l}=await rg(e,t,r,a,n),{labelStyles:c,nodeStyles:h}=J(t);t.labelStyle=c,t.cssStyles=o.styles||"";const u=((H=o.styles)==null?void 0:H.join(";"))||h||"";t.cssStyles||(t.cssStyles=u.replaceAll("!important","").split(";"));const f=o.members.length===0&&o.methods.length===0&&!((z=r.class)!=null&&z.hideEmptyMembersBox),p=G.svg(s),g=V(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=l.width;let x=l.height;o.members.length===0&&o.methods.length===0?x+=n:o.members.length>0&&o.methods.length===0&&(x+=n*2);const y=-m/2,_=-x/2,C=p.rectangle(y-i,_-i-(f?i:o.members.length===0&&o.methods.length===0?-i/2:0),m+2*i,x+2*i+(f?i*2:o.members.length===0&&o.methods.length===0?-i:0),g),k=s.insert(()=>C,":first-child");k.attr("class","basic label-container");const v=k.node().getBBox();s.selectAll(".text").each((E,q,O)=>{var j;const A=ft(O[q]),L=A.attr("transform");let T=0;if(L){const st=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(L);st&&(T=parseFloat(st[2]))}let D=T+_+i-(f?i:o.members.length===0&&o.methods.length===0?-i/2:0);a||(D-=4);let B=y;(A.attr("class").includes("label-group")||A.attr("class").includes("annotation-group"))&&(B=-((j=A.node())==null?void 0:j.getBBox().width)/2||0,s.selectAll("text").each(function(U,st,ut){window.getComputedStyle(ut[st]).textAnchor==="middle"&&(B=0)})),A.attr("transform",`translate(${B}, ${D})`)});const F=s.select(".annotation-group").node().getBBox().height-(f?i/2:0)||0,M=s.select(".label-group").node().getBBox().height-(f?i/2:0)||0,$=s.select(".members-group").node().getBBox().height-(f?i/2:0)||0;if(o.members.length>0||o.methods.length>0||f){const E=p.line(v.x,F+M+_+i,v.x+v.width,F+M+_+i,g);s.insert(()=>E).attr("class","divider").attr("style",u)}if(f||o.members.length>0||o.methods.length>0){const E=p.line(v.x,F+M+$+_+n*2+i,v.x+v.width,F+M+$+_+i+n*2,g);s.insert(()=>E).attr("class","divider").attr("style",u)}if(o.look!=="handDrawn"&&s.selectAll("path").attr("style",u),k.select(":nth-child(2)").attr("style",u),s.selectAll(".divider").select("path").attr("style",u),t.labelStyle?s.selectAll("span").attr("style",t.labelStyle):s.selectAll("span").attr("style",u),!a){const E=RegExp(/color\s*:\s*([^;]*)/),q=E.exec(u);if(q){const O=q[0].replace("color","fill");s.selectAll("tspan").attr("style",O)}else if(c){const O=E.exec(c);if(O){const A=O[0].replace("color","fill");s.selectAll("tspan").attr("style",A)}}}return Q(t,k),t.intersect=function(E){return Y.rect(t,E)},s}d(ig,"classBox");var Ck=d(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function ng(e,t,{config:r}){var q,O;const{labelStyles:i,nodeStyles:n}=J(t);t.labelStyle=i||"";const a=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:s,bbox:l,label:c}=await nt(e,t,at(t)),h=t.padding||10;let u="",f;"ticket"in t&&t.ticket&&((q=r==null?void 0:r.kanban)!=null&&q.ticketBaseUrl)&&(u=(O=r==null?void 0:r.kanban)==null?void 0:O.ticketBaseUrl.replace("#TICKET#",t.ticket),f=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const p={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let g,m;f?{label:g,bbox:m}=await ws(f,"ticket"in t&&t.ticket||"",p):{label:g,bbox:m}=await ws(s,"ticket"in t&&t.ticket||"",p);const{label:x,bbox:y}=await ws(s,"assigned"in t&&t.assigned||"",p);t.width=o;const _=10,C=(t==null?void 0:t.width)||0,k=Math.max(m.height,y.height)/2,v=Math.max(l.height+_*2,(t==null?void 0:t.height)||0)+k,F=-C/2,M=-v/2;c.attr("transform","translate("+(h-C/2)+", "+(-k-l.height/2)+")"),g.attr("transform","translate("+(h-C/2)+", "+(-k+l.height/2)+")"),x.attr("transform","translate("+(h+C/2-y.width-2*a)+", "+(-k+l.height/2)+")");let $;const{rx:H,ry:z}=t,{cssStyles:E}=t;if(t.look==="handDrawn"){const A=G.svg(s),L=V(t,{}),T=H||z?A.path(We(F,M,C,v,H||0),L):A.rectangle(F,M,C,v,L);$=s.insert(()=>T,":first-child"),$.attr("class","basic label-container").attr("style",E||null)}else{$=s.insert("rect",":first-child"),$.attr("class","basic label-container __APA__").attr("style",n).attr("rx",H??5).attr("ry",z??5).attr("x",F).attr("y",M).attr("width",C).attr("height",v);const A="priority"in t&&t.priority;if(A){const L=s.append("line"),T=F+2,D=M+Math.floor((H??0)/2),B=M+v-Math.floor((H??0)/2);L.attr("x1",T).attr("y1",D).attr("x2",T).attr("y2",B).attr("stroke-width","4").attr("stroke",Ck(A))}}return Q(t,$),t.height=v,t.intersect=function(A){return Y.rect(t,A)},s}d(ng,"kanbanItem");var wk=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:zd},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Id},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:qd},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Ud},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:hd},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:id},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Dd},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:yd},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Ad},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Td},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Zd},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:vd},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:fd},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Vd},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:ed},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Pd},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:jd},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Hd},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:gd},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:xd},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:sd},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:od},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ld},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Ld},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Jd},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:md},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Xd},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Bd},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:cd},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ud},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Qd},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:eg},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:pd},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Kd},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:dd},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Nd},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Fd},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Ed},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:td},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:ad},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Gd},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Yd},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:tg},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Od},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Md}],kk=d(()=>{const t=[...Object.entries({state:Wd,choice:rd,note:$d,rectWithTitle:Rd,labelRect:Sd,iconSquare:wd,iconCircle:_d,icon:bd,iconRounded:Cd,imageSquare:kd,anchor:Jp,kanbanItem:ng,classBox:ig}),...wk.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),ag=kk();function vk(e){return e in ag}d(vk,"isValidShape");var Ma=new Map;async function sg(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?ag[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),n=await a(i,t,r)}else n=await a(e,t,r),i=n;return t.tooltip&&n.attr("title",t.tooltip),Ma.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}d(sg,"insertNode");var hA=d((e,t)=>{Ma.set(t.id,e)},"setNodeElem"),uA=d(()=>{Ma.clear()},"clear"),fA=d(e=>{const t=Ma.get(e.id);P.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),fe={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function Di(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=kt(e),t=kt(t);const[r,i]=[e.x,e.y],[n,a]=[t.x,t.y],o=n-r,s=a-i;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}d(Di,"calculateDeltaAndAngle");var kt=d(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),Sk=d(e=>({x:d(function(t,r,i){let n=0;const a=kt(i[0]).x<kt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(fe,e.arrowTypeStart)){const{angle:p,deltaX:g}=Di(i[0],i[1]);n=fe[e.arrowTypeStart]*Math.cos(p)*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(fe,e.arrowTypeEnd)){const{angle:p,deltaX:g}=Di(i[i.length-1],i[i.length-2]);n=fe[e.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}const o=Math.abs(kt(t).x-kt(i[i.length-1]).x),s=Math.abs(kt(t).y-kt(i[i.length-1]).y),l=Math.abs(kt(t).x-kt(i[0]).x),c=Math.abs(kt(t).y-kt(i[0]).y),h=fe[e.arrowTypeStart],u=fe[e.arrowTypeEnd],f=1;if(o<u&&o>0&&s<u){let p=u+f-o;p*=a==="right"?-1:1,n-=p}if(l<h&&l>0&&c<h){let p=h+f-l;p*=a==="right"?-1:1,n+=p}return kt(t).x+n},"x"),y:d(function(t,r,i){let n=0;const a=kt(i[0]).y<kt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(fe,e.arrowTypeStart)){const{angle:p,deltaY:g}=Di(i[0],i[1]);n=fe[e.arrowTypeStart]*Math.abs(Math.sin(p))*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(fe,e.arrowTypeEnd)){const{angle:p,deltaY:g}=Di(i[i.length-1],i[i.length-2]);n=fe[e.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}const o=Math.abs(kt(t).y-kt(i[i.length-1]).y),s=Math.abs(kt(t).x-kt(i[i.length-1]).x),l=Math.abs(kt(t).y-kt(i[0]).y),c=Math.abs(kt(t).x-kt(i[0]).x),h=fe[e.arrowTypeStart],u=fe[e.arrowTypeEnd],f=1;if(o<u&&o>0&&s<u){let p=u+f-o;p*=a==="up"?-1:1,n-=p}if(l<h&&l>0&&c<h){let p=h+f-l;p*=a==="up"?-1:1,n+=p}return kt(t).y+n},"y")}),"getLineFunctionsWithOffset"),Tk=d((e,t,r,i,n)=>{t.arrowTypeStart&&Wc(e,"start",t.arrowTypeStart,r,i,n),t.arrowTypeEnd&&Wc(e,"end",t.arrowTypeEnd,r,i,n)},"addEdgeMarkers"),Ak={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Wc=d((e,t,r,i,n,a)=>{const o=Ak[r];if(!o){P.warn(`Unknown arrow type: ${r}`);return}const s=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${n}_${a}-${o}${s})`)},"addEdgeMarker"),la=new Map,Pt=new Map,pA=d(()=>{la.clear(),Pt.clear()},"clear"),Mi=d(e=>e?e.reduce((r,i)=>r+";"+i,""):"","getLabelStyles"),Lk=d(async(e,t)=>{let r=qt(pt().flowchart.htmlLabels);const i=await fi(e,t.label,{style:Mi(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1});P.info("abc82",t,t.labelType);const n=e.insert("g").attr("class","edgeLabel"),a=n.insert("g").attr("class","label");a.node().appendChild(i);let o=i.getBBox();if(r){const l=i.children[0],c=ft(i);o=l.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),la.set(t.id,n),t.width=o.width,t.height=o.height;let s;if(t.startLabelLeft){const l=await xr(t.startLabelLeft,Mi(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),h=c.insert("g").attr("class","inner");s=h.node().appendChild(l);const u=l.getBBox();h.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),Pt.get(t.id)||Pt.set(t.id,{}),Pt.get(t.id).startLeft=c,Oi(s,t.startLabelLeft)}if(t.startLabelRight){const l=await xr(t.startLabelRight,Mi(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),h=c.insert("g").attr("class","inner");s=c.node().appendChild(l),h.node().appendChild(l);const u=l.getBBox();h.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),Pt.get(t.id)||Pt.set(t.id,{}),Pt.get(t.id).startRight=c,Oi(s,t.startLabelRight)}if(t.endLabelLeft){const l=await xr(t.endLabelLeft,Mi(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),h=c.insert("g").attr("class","inner");s=h.node().appendChild(l);const u=l.getBBox();h.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),c.node().appendChild(l),Pt.get(t.id)||Pt.set(t.id,{}),Pt.get(t.id).endLeft=c,Oi(s,t.endLabelLeft)}if(t.endLabelRight){const l=await xr(t.endLabelRight,Mi(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),h=c.insert("g").attr("class","inner");s=h.node().appendChild(l);const u=l.getBBox();h.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),c.node().appendChild(l),Pt.get(t.id)||Pt.set(t.id,{}),Pt.get(t.id).endRight=c,Oi(s,t.endLabelRight)}return i},"insertEdgeLabel");function Oi(e,t){pt().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}d(Oi,"setTerminalWidth");var Bk=d((e,t)=>{P.debug("Moving label abc88 ",e.id,e.label,la.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=pt(),{subGraphTitleTotalMargin:n}=Bo(i);if(e.label){const a=la.get(e.id);let o=e.x,s=e.y;if(r){const l=Te.calcLabelPosition(r);P.debug("Moving label "+e.label+" from (",o,",",s,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(o=l.x,s=l.y)}a.attr("transform",`translate(${o}, ${s+n/2})`)}if(e.startLabelLeft){const a=Pt.get(e.id).startLeft;let o=e.x,s=e.y;if(r){const l=Te.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.startLabelRight){const a=Pt.get(e.id).startRight;let o=e.x,s=e.y;if(r){const l=Te.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelLeft){const a=Pt.get(e.id).endLeft;let o=e.x,s=e.y;if(r){const l=Te.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelRight){const a=Pt.get(e.id).endRight;let o=e.x,s=e.y;if(r){const l=Te.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}},"positionEdgeLabel"),Mk=d((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),o=e.width/2,s=e.height/2;return n>=o||a>=s},"outsideNode"),Ek=d((e,t,r)=>{P.debug(`intersection calc abc89:
|
|
177
177
|
outsidePoint: ${JSON.stringify(t)}
|
|
178
178
|
insidePoint : ${JSON.stringify(r)}
|
|
179
|
-
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,a=Math.abs(i-r.x),o=e.width/2;let s=r.x<t.x?o-a:o+a;const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-n:n-l-t.y;s=h*u/c;const f={x:r.x<t.x?r.x+s:r.x-h+s,y:r.y<t.y?r.y+c-u:r.y-c+u};return s===0&&(f.x=t.x,f.y=t.y),h===0&&(f.x=t.x),c===0&&(f.y=t.y),P.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${s}`,f),f}else{r.x<t.x?s=t.x-o-i:s=i-o-t.x;let u=c*s/h,f=r.x<t.x?r.x+h-s:r.x-h+s,p=r.y<t.y?r.y+u:r.y-u;return P.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${s}`,{_x:f,_y:p}),s===0&&(f=t.x,p=t.y),h===0&&(f=t.x),c===0&&(p=t.y),{x:f,y:p}}},"intersection"),Hc=d((e,t)=>{P.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(P.info("abc88 checking point",a,t),!Mk(t,a)&&!n){const o=Ek(t,i,a);P.debug("abc88 inside",a,i,o),P.debug("abc88 intersection",o,t);let s=!1;r.forEach(l=>{s=s||l.x===o.x&&l.y===o.y}),r.some(l=>l.x===o.x&&l.y===o.y)?P.warn("abc88 no intersect",o,r):r.push(o),n=!0}else P.warn("abc88 outside",a,i),i=a,n||r.push(a)}),P.debug("returning points",r),r},"cutPathAtIntersect");function og(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],a=e[i],o=e[i+1];(n.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===o.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}d(og,"extractCornerPoints");var jc=d(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),o=r/a;return{x:t.x-o*i,y:t.y-o*n}},"findAdjacentPoint"),Fk=d(function(e){const{cornerPointPositions:t}=og(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],a=e[i+1],o=e[i],s=jc(n,o,5),l=jc(a,o,5),c=l.x-s.x,h=l.y-s.y;r.push(s);const u=Math.sqrt(2)*2;let f={x:o.x,y:o.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){P.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const p=5;o.x===s.x?f={x:c<0?s.x-p+u:s.x+p-u,y:h<0?s.y-u:s.y+u}:f={x:c<0?s.x-u:s.x+u,y:h<0?s.y-p+u:s.y+p-u}}else P.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(f,l)}else r.push(e[i]);return r},"fixCorners"),$k=d(function(e,t,r,i,n,a,o){const{handDrawnSeed:s}=pt();let l=t.points,c=!1;const h=n;var u=a;u.intersect&&h.intersect&&(l=l.slice(1,t.points.length-1),l.unshift(h.intersect(l[0])),P.debug("Last point APA12",t.start,"-->",t.end,l[l.length-1],u,u.intersect(l[l.length-1])),l.push(u.intersect(l[l.length-1]))),t.toCluster&&(P.info("to cluster abc88",r.get(t.toCluster)),l=Hc(t.points,r.get(t.toCluster).node),c=!0),t.fromCluster&&(P.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(l,null,2)),l=Hc(l.reverse(),r.get(t.fromCluster).node).reverse(),c=!0);let f=l.filter(M=>!Number.isNaN(M.y));f=Fk(f);let p=Of;t.curve&&(p=t.curve);const{x:g,y:m}=Sk(t),x=P1().x(g).y(m).curve(p);let y;switch(t.thickness){case"normal":y="edge-thickness-normal";break;case"thick":y="edge-thickness-thick";break;case"invisible":y="edge-thickness-invisible";break;default:y="edge-thickness-normal"}switch(t.pattern){case"solid":y+=" edge-pattern-solid";break;case"dotted":y+=" edge-pattern-dotted";break;case"dashed":y+=" edge-pattern-dashed";break;default:y+=" edge-pattern-solid"}let _,C=x(f);const k=Array.isArray(t.style)?t.style:[t.style];if(t.look==="handDrawn"){const M=G.svg(e);Object.assign([],f);const $=M.path(C,{roughness:.3,seed:s});y+=" transition",_=ft($).select("path").attr("id",t.id).attr("class"," "+y+(t.classes?" "+t.classes:"")).attr("style",k?k.reduce((z,E)=>z+";"+E,""):"");let H=_.attr("d");_.attr("d",H),e.node().appendChild(_.node())}else _=e.append("path").attr("d",C).attr("id",t.id).attr("class"," "+y+(t.classes?" "+t.classes:"")).attr("style",k?k.reduce((M,$)=>M+";"+$,""):"");let v="";(pt().flowchart.arrowMarkerAbsolute||pt().state.arrowMarkerAbsolute)&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),P.info("arrowTypeStart",t.arrowTypeStart),P.info("arrowTypeEnd",t.arrowTypeEnd),Tk(_,t,v,o,i);let F={};return c&&(F.updatedPath=l),F.originalPath=t.points,F},"insertEdge"),Dk=d((e,t,r,i)=>{t.forEach(n=>{jk[n](e,r,i)})},"insertMarkers"),Ok=d((e,t,r)=>{P.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Rk=d((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Ik=d((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Pk=d((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Nk=d((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),zk=d((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),qk=d((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),Wk=d((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),Hk=d((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),jk={extension:Ok,composition:Rk,aggregation:Ik,dependency:Pk,lollipop:Nk,point:zk,circle:qk,cross:Wk,barb:Hk},Uk=Dk,Yk={common:li,getConfig:_e,insertCluster:ak,insertEdge:$k,insertEdgeLabel:Lk,insertMarkers:Uk,insertNode:sg,interpolateToCurve:No,labelHelper:nt,log:P,positionEdgeLabel:Bk},Ki={},lg=d(e=>{for(const t of e)Ki[t.name]=t},"registerLayoutLoaders"),Gk=d(()=>{lg([{name:"dagre",loader:d(async()=>await mt(()=>import("./dagre-4EVJKHTY-CJiQ7M56.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),"loader")}])},"registerDefaultLayoutLoaders");Gk();var dA=d(async(e,t)=>{if(!(e.layoutAlgorithm in Ki))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Ki[e.layoutAlgorithm];return(await r.loader()).render(e,t,Yk,{algorithm:r.algorithm})},"render"),gA=d((e="",{fallback:t="dagre"}={})=>{if(e in Ki)return e;if(t in Ki)return P.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),Uc="11.4.1",Vk=d(e=>{var n;const{securityLevel:t}=pt();let r=ft("body");if(t==="sandbox"){const o=((n=ft(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=ft(o.body)}return r.select(`#${e}`)},"selectSvgElement"),cg="comm",hg="rule",ug="decl",Xk="@import",Zk="@namespace",Kk="@keyframes",Qk="@layer",Jk=Math.abs,Hi=String.fromCharCode;function fg(e){return e.trim()}function ao(e,t,r){return e.replace(t,r)}function Hr(e,t){return e.charCodeAt(t)|0}function si(e,t,r){return e.slice(t,r)}function Se(e){return e.length}function tv(e){return e.length}function vn(e,t){return t.push(e),e}var Ea=1,oi=1,pg=0,ge=0,Mt=0,gi="";function rl(e,t,r,i,n,a,o,s){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Ea,column:oi,length:o,return:"",siblings:s}}function ev(){return Mt}function rv(){return Mt=ge>0?Hr(gi,--ge):0,oi--,Mt===10&&(oi=1,Ea--),Mt}function be(){return Mt=ge<pg?Hr(gi,ge++):0,oi++,Mt===10&&(oi=1,Ea++),Mt}function Ze(){return Hr(gi,ge)}function Fn(){return ge}function Fa(e,t){return si(gi,e,t)}function Qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function iv(e){return Ea=oi=1,pg=Se(gi=e),ge=0,[]}function nv(e){return gi="",e}function ks(e){return fg(Fa(ge-1,so(e===91?e+2:e===40?e+1:e)))}function av(e){for(;(Mt=Ze())&&Mt<33;)be();return Qi(e)>2||Qi(Mt)>3?"":" "}function sv(e,t){for(;--t&&be()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return Fa(e,Fn()+(t<6&&Ze()==32&&be()==32))}function so(e){for(;be();)switch(Mt){case e:return ge;case 34:case 39:e!==34&&e!==39&&so(Mt);break;case 40:e===41&&so(e);break;case 92:be();break}return ge}function ov(e,t){for(;be()&&e+Mt!==57;)if(e+Mt===84&&Ze()===47)break;return"/*"+Fa(t,ge-1)+"*"+Hi(e===47?e:be())}function lv(e){for(;!Qi(Ze());)be();return Fa(e,ge)}function cv(e){return nv($n("",null,null,null,[""],e=iv(e),0,[0],e))}function $n(e,t,r,i,n,a,o,s,l){for(var c=0,h=0,u=o,f=0,p=0,g=0,m=1,x=1,y=1,_=0,C=0,k="",v=n,F=a,M=i,$=k;x;)switch(g=C,C=be()){case 40:g!=108&&Hr($,u-1)==58?(_++,$+="("):$+=ks(C);break;case 41:_--,$+=")";break;case 34:case 39:case 91:$+=ks(C);break;case 9:case 10:case 13:case 32:if(_>0){$+=Hi(C);break}$+=av(g);break;case 92:$+=sv(Fn()-1,7);continue;case 47:switch(Ze()){case 42:case 47:vn(hv(ov(be(),Fn()),t,r,l),l),(Qi(g||1)==5||Qi(Ze()||1)==5)&&Se($)&&si($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*m:s[c++]=Se($)*y;case 125*m:case 59:case 0:if(_>0&&C){$+=Hi(C);break}switch(C){case 0:case 125:x=0;case 59+h:y==-1&&($=ao($,/\f/g,"")),p>0&&(Se($)-u||m===0)&&vn(p>32?Gc($+";",i,r,u-1,l):Gc(ao($," ","")+";",i,r,u-2,l),l);break;case 59:$+=";";default:if(vn(M=Yc($,t,r,c,h,n,s,k,v=[],F=[],u,a),a),C===123)if(h===0)$n($,t,M,M,v,a,u,s,F);else{switch(f){case 99:if(Hr($,3)===110)break;case 108:if(Hr($,2)===97)break;default:h=0;case 100:case 109:case 115:}h?$n(e,M,M,i&&vn(Yc(e,M,M,0,0,n,s,k,n,v=[],u,F),F),n,F,u,s,i?v:F):$n($,M,M,M,[""],F,0,s,F)}}c=h=p=0,m=y=1,k=$="",u=o;break;case 58:u=1+Se($),p=g;default:if(m<1){if(C==123)--m;else if(C==125&&m++==0&&rv()==125)continue}switch($+=Hi(C),C*m){case 38:y=h>0?1:($+="\f",-1);break;case 44:if(_>0)break;s[c++]=(Se($)-1)*y,y=1;break;case 64:Ze()===45&&($+=ks(be())),f=Ze(),h=u=Se(k=$+=lv(Fn())),C++;break;case 45:g===45&&Se($)==2&&(m=0)}}return a}function Yc(e,t,r,i,n,a,o,s,l,c,h,u){for(var f=n-1,p=n===0?a:[""],g=tv(p),m=0,x=0,y=0;m<i;++m)for(var _=0,C=si(e,f+1,f=Jk(x=o[m])),k=e;_<g;++_)(k=fg(x>0?p[_]+" "+C:ao(C,/&\f/g,p[_])))&&(l[y++]=k);return rl(e,t,r,n===0?hg:s,l,c,h,u)}function hv(e,t,r,i){return rl(e,t,r,cg,Hi(ev()),si(e,2,-2),0,i)}function Gc(e,t,r,i,n){return rl(e,t,r,ug,si(e,0,i),si(e,i+1,-1),i,n)}function oo(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function uv(e,t,r,i){switch(e.type){case Qk:if(e.children.length)break;case Xk:case Zk:case ug:return e.return=e.return||e.value;case cg:return"";case Kk:return e.return=e.value+"{"+oo(e.children,i)+"}";case hg:if(!Se(e.value=e.props.join(",")))return""}return Se(r=oo(e.children,i))?e.return=e.value+"{"+r+"}":""}var fv=Xf(Object.keys,Object),pv=Object.prototype,dv=pv.hasOwnProperty;function gv(e){if(!wa(e))return fv(e);var t=[];for(var r in Object(e))dv.call(e,r)&&r!="constructor"&&t.push(r);return t}var lo=Ar(Ee,"DataView"),co=Ar(Ee,"Promise"),ho=Ar(Ee,"Set"),uo=Ar(Ee,"WeakMap"),Vc="[object Map]",mv="[object Object]",Xc="[object Promise]",Zc="[object Set]",Kc="[object WeakMap]",Qc="[object DataView]",yv=Tr(lo),xv=Tr(Zi),bv=Tr(co),_v=Tr(ho),Cv=Tr(uo),dr=ci;(lo&&dr(new lo(new ArrayBuffer(1)))!=Qc||Zi&&dr(new Zi)!=Vc||co&&dr(co.resolve())!=Xc||ho&&dr(new ho)!=Zc||uo&&dr(new uo)!=Kc)&&(dr=function(e){var t=ci(e),r=t==mv?e.constructor:void 0,i=r?Tr(r):"";if(i)switch(i){case yv:return Qc;case xv:return Vc;case bv:return Xc;case _v:return Zc;case Cv:return Kc}return t});var wv="[object Map]",kv="[object Set]",vv=Object.prototype,Sv=vv.hasOwnProperty;function Jc(e){if(e==null)return!0;if(ka(e)&&(Jn(e)||typeof e=="string"||typeof e.splice=="function"||Io(e)||Po(e)||Qn(e)))return!e.length;var t=dr(e);if(t==wv||t==kv)return!e.size;if(wa(e))return!gv(e).length;for(var r in e)if(Sv.call(e,r))return!1;return!0}var dg="c4",Tv=d(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),Av=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./c4Diagram-6F5ED5ID-A3b4lbII.js");return{diagram:t}},__vite__mapDeps([8,9,6,7]));return{id:dg,diagram:e}},"loader"),Lv={id:dg,detector:Tv,loader:Av},Bv=Lv,gg="flowchart",Mv=d((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),Ev=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./flowDiagram-7ASYPVHJ-CfE3lrqz.js");return{diagram:t}},__vite__mapDeps([10,11,12,6,7]));return{id:gg,diagram:e}},"loader"),Fv={id:gg,detector:Mv,loader:Ev},$v=Fv,mg="flowchart-v2",Dv=d((e,t)=>{var r,i,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),Ov=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./flowDiagram-7ASYPVHJ-CfE3lrqz.js");return{diagram:t}},__vite__mapDeps([10,11,12,6,7]));return{id:mg,diagram:e}},"loader"),Rv={id:mg,detector:Dv,loader:Ov},Iv=Rv,yg="er",Pv=d(e=>/^\s*erDiagram/.test(e),"detector"),Nv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./erDiagram-6RL3IURR-BURUFe_9.js");return{diagram:t}},__vite__mapDeps([13,1,2,3,4,6,7]));return{id:yg,diagram:e}},"loader"),zv={id:yg,detector:Pv,loader:Nv},qv=zv,xg="gitGraph",Wv=d(e=>/^\s*gitGraph/.test(e),"detector"),Hv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-NRZ2UAAF-CqaSLfzI.js");return{diagram:t}},__vite__mapDeps([14,15,16,17,6,7,4,2]));return{id:xg,diagram:e}},"loader"),jv={id:xg,detector:Wv,loader:Hv},Uv=jv,bg="gantt",Yv=d(e=>/^\s*gantt/.test(e),"detector"),Gv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./ganttDiagram-NTVNEXSI-D9d9jWBm.js");return{diagram:t}},__vite__mapDeps([18,6,7,19]));return{id:bg,diagram:e}},"loader"),Vv={id:bg,detector:Yv,loader:Gv},Xv=Vv,_g="info",Zv=d(e=>/^\s*info/.test(e),"detector"),Kv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./infoDiagram-A4XQUW5V-DMcs4U8y.js");return{diagram:t}},__vite__mapDeps([20,17,6,7,4,2]));return{id:_g,diagram:e}},"loader"),Qv={id:_g,detector:Zv,loader:Kv},Cg="pie",Jv=d(e=>/^\s*pie/.test(e),"detector"),tS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./pieDiagram-YF2LJOPJ-DBLJF-B8.js");return{diagram:t}},__vite__mapDeps([21,15,17,6,7,4,2,19]));return{id:Cg,diagram:e}},"loader"),eS={id:Cg,detector:Jv,loader:tS},wg="quadrantChart",rS=d(e=>/^\s*quadrantChart/.test(e),"detector"),iS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./quadrantDiagram-OS5C2QUG-W3e7OODv.js");return{diagram:t}},__vite__mapDeps([22,19,6,7]));return{id:wg,diagram:e}},"loader"),nS={id:wg,detector:rS,loader:iS},aS=nS,kg="xychart",sS=d(e=>/^\s*xychart-beta/.test(e),"detector"),oS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./xychartDiagram-6QU3TZC5-KKa8nieo.js");return{diagram:t}},__vite__mapDeps([23,19,6,7]));return{id:kg,diagram:e}},"loader"),lS={id:kg,detector:sS,loader:oS},cS=lS,vg="requirement",hS=d(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),uS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./requirementDiagram-MIRIMTAZ-DmouihuU.js");return{diagram:t}},__vite__mapDeps([24,1,2,3,4,6,7]));return{id:vg,diagram:e}},"loader"),fS={id:vg,detector:hS,loader:uS},pS=fS,Sg="sequence",dS=d(e=>/^\s*sequenceDiagram/.test(e),"detector"),gS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./sequenceDiagram-G6AWOVSC-C4Kq2ABe.js");return{diagram:t}},__vite__mapDeps([25,9,16,6,7]));return{id:Sg,diagram:e}},"loader"),mS={id:Sg,detector:dS,loader:gS},yS=mS,Tg="class",xS=d((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),bS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./classDiagram-LNE6IOMH-zE4bnqcI.js");return{diagram:t}},__vite__mapDeps([26,27,11,6,7]));return{id:Tg,diagram:e}},"loader"),_S={id:Tg,detector:xS,loader:bS},CS=_S,Ag="classDiagram",wS=d((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),kS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./classDiagram-v2-MQ7JQ4JX-zE4bnqcI.js");return{diagram:t}},__vite__mapDeps([28,27,11,6,7]));return{id:Ag,diagram:e}},"loader"),vS={id:Ag,detector:wS,loader:kS},SS=vS,Lg="state",TS=d((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),AS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./stateDiagram-MAYHULR4-C5a59rCP.js");return{diagram:t}},__vite__mapDeps([29,30,11,1,2,3,4,6,7]));return{id:Lg,diagram:e}},"loader"),LS={id:Lg,detector:TS,loader:AS},BS=LS,Bg="stateDiagram",MS=d((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),ES=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4JROLMXI-CeQk6jDo.js");return{diagram:t}},__vite__mapDeps([31,30,11,6,7]));return{id:Bg,diagram:e}},"loader"),FS={id:Bg,detector:MS,loader:ES},$S=FS,Mg="journey",DS=d(e=>/^\s*journey/.test(e),"detector"),OS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./journeyDiagram-G5WM74LC-CEds3uag.js");return{diagram:t}},__vite__mapDeps([32,9,6,7]));return{id:Mg,diagram:e}},"loader"),RS={id:Mg,detector:DS,loader:OS},IS=RS,PS=d((e,t,r)=>{P.debug(`rendering svg for syntax error
|
|
180
|
-
`);const i=Vk(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),Bh(i,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Eg={draw:PS},NS=Eg,zS={db:{},renderer:Eg,parser:{parse:d(()=>{},"parse")}},qS=zS,Fg="flowchart-elk",WS=d((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),HS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./flowDiagram-7ASYPVHJ-
|
|
179
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,a=Math.abs(i-r.x),o=e.width/2;let s=r.x<t.x?o-a:o+a;const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-n:n-l-t.y;s=h*u/c;const f={x:r.x<t.x?r.x+s:r.x-h+s,y:r.y<t.y?r.y+c-u:r.y-c+u};return s===0&&(f.x=t.x,f.y=t.y),h===0&&(f.x=t.x),c===0&&(f.y=t.y),P.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${s}`,f),f}else{r.x<t.x?s=t.x-o-i:s=i-o-t.x;let u=c*s/h,f=r.x<t.x?r.x+h-s:r.x-h+s,p=r.y<t.y?r.y+u:r.y-u;return P.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${s}`,{_x:f,_y:p}),s===0&&(f=t.x,p=t.y),h===0&&(f=t.x),c===0&&(p=t.y),{x:f,y:p}}},"intersection"),Hc=d((e,t)=>{P.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(P.info("abc88 checking point",a,t),!Mk(t,a)&&!n){const o=Ek(t,i,a);P.debug("abc88 inside",a,i,o),P.debug("abc88 intersection",o,t);let s=!1;r.forEach(l=>{s=s||l.x===o.x&&l.y===o.y}),r.some(l=>l.x===o.x&&l.y===o.y)?P.warn("abc88 no intersect",o,r):r.push(o),n=!0}else P.warn("abc88 outside",a,i),i=a,n||r.push(a)}),P.debug("returning points",r),r},"cutPathAtIntersect");function og(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],a=e[i],o=e[i+1];(n.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===o.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}d(og,"extractCornerPoints");var jc=d(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),o=r/a;return{x:t.x-o*i,y:t.y-o*n}},"findAdjacentPoint"),Fk=d(function(e){const{cornerPointPositions:t}=og(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],a=e[i+1],o=e[i],s=jc(n,o,5),l=jc(a,o,5),c=l.x-s.x,h=l.y-s.y;r.push(s);const u=Math.sqrt(2)*2;let f={x:o.x,y:o.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){P.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const p=5;o.x===s.x?f={x:c<0?s.x-p+u:s.x+p-u,y:h<0?s.y-u:s.y+u}:f={x:c<0?s.x-u:s.x+u,y:h<0?s.y-p+u:s.y+p-u}}else P.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(f,l)}else r.push(e[i]);return r},"fixCorners"),$k=d(function(e,t,r,i,n,a,o){const{handDrawnSeed:s}=pt();let l=t.points,c=!1;const h=n;var u=a;u.intersect&&h.intersect&&(l=l.slice(1,t.points.length-1),l.unshift(h.intersect(l[0])),P.debug("Last point APA12",t.start,"-->",t.end,l[l.length-1],u,u.intersect(l[l.length-1])),l.push(u.intersect(l[l.length-1]))),t.toCluster&&(P.info("to cluster abc88",r.get(t.toCluster)),l=Hc(t.points,r.get(t.toCluster).node),c=!0),t.fromCluster&&(P.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(l,null,2)),l=Hc(l.reverse(),r.get(t.fromCluster).node).reverse(),c=!0);let f=l.filter(M=>!Number.isNaN(M.y));f=Fk(f);let p=Of;t.curve&&(p=t.curve);const{x:g,y:m}=Sk(t),x=P1().x(g).y(m).curve(p);let y;switch(t.thickness){case"normal":y="edge-thickness-normal";break;case"thick":y="edge-thickness-thick";break;case"invisible":y="edge-thickness-invisible";break;default:y="edge-thickness-normal"}switch(t.pattern){case"solid":y+=" edge-pattern-solid";break;case"dotted":y+=" edge-pattern-dotted";break;case"dashed":y+=" edge-pattern-dashed";break;default:y+=" edge-pattern-solid"}let _,C=x(f);const k=Array.isArray(t.style)?t.style:[t.style];if(t.look==="handDrawn"){const M=G.svg(e);Object.assign([],f);const $=M.path(C,{roughness:.3,seed:s});y+=" transition",_=ft($).select("path").attr("id",t.id).attr("class"," "+y+(t.classes?" "+t.classes:"")).attr("style",k?k.reduce((z,E)=>z+";"+E,""):"");let H=_.attr("d");_.attr("d",H),e.node().appendChild(_.node())}else _=e.append("path").attr("d",C).attr("id",t.id).attr("class"," "+y+(t.classes?" "+t.classes:"")).attr("style",k?k.reduce((M,$)=>M+";"+$,""):"");let v="";(pt().flowchart.arrowMarkerAbsolute||pt().state.arrowMarkerAbsolute)&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),P.info("arrowTypeStart",t.arrowTypeStart),P.info("arrowTypeEnd",t.arrowTypeEnd),Tk(_,t,v,o,i);let F={};return c&&(F.updatedPath=l),F.originalPath=t.points,F},"insertEdge"),Dk=d((e,t,r,i)=>{t.forEach(n=>{jk[n](e,r,i)})},"insertMarkers"),Ok=d((e,t,r)=>{P.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Rk=d((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Ik=d((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Pk=d((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Nk=d((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),zk=d((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),qk=d((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),Wk=d((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),Hk=d((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),jk={extension:Ok,composition:Rk,aggregation:Ik,dependency:Pk,lollipop:Nk,point:zk,circle:qk,cross:Wk,barb:Hk},Uk=Dk,Yk={common:li,getConfig:_e,insertCluster:ak,insertEdge:$k,insertEdgeLabel:Lk,insertMarkers:Uk,insertNode:sg,interpolateToCurve:No,labelHelper:nt,log:P,positionEdgeLabel:Bk},Ki={},lg=d(e=>{for(const t of e)Ki[t.name]=t},"registerLayoutLoaders"),Gk=d(()=>{lg([{name:"dagre",loader:d(async()=>await mt(()=>import("./dagre-4EVJKHTY-C88qC3Rn.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),"loader")}])},"registerDefaultLayoutLoaders");Gk();var dA=d(async(e,t)=>{if(!(e.layoutAlgorithm in Ki))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Ki[e.layoutAlgorithm];return(await r.loader()).render(e,t,Yk,{algorithm:r.algorithm})},"render"),gA=d((e="",{fallback:t="dagre"}={})=>{if(e in Ki)return e;if(t in Ki)return P.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),Uc="11.4.1",Vk=d(e=>{var n;const{securityLevel:t}=pt();let r=ft("body");if(t==="sandbox"){const o=((n=ft(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=ft(o.body)}return r.select(`#${e}`)},"selectSvgElement"),cg="comm",hg="rule",ug="decl",Xk="@import",Zk="@namespace",Kk="@keyframes",Qk="@layer",Jk=Math.abs,Hi=String.fromCharCode;function fg(e){return e.trim()}function ao(e,t,r){return e.replace(t,r)}function Hr(e,t){return e.charCodeAt(t)|0}function si(e,t,r){return e.slice(t,r)}function Se(e){return e.length}function tv(e){return e.length}function vn(e,t){return t.push(e),e}var Ea=1,oi=1,pg=0,ge=0,Mt=0,gi="";function rl(e,t,r,i,n,a,o,s){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Ea,column:oi,length:o,return:"",siblings:s}}function ev(){return Mt}function rv(){return Mt=ge>0?Hr(gi,--ge):0,oi--,Mt===10&&(oi=1,Ea--),Mt}function be(){return Mt=ge<pg?Hr(gi,ge++):0,oi++,Mt===10&&(oi=1,Ea++),Mt}function Ze(){return Hr(gi,ge)}function Fn(){return ge}function Fa(e,t){return si(gi,e,t)}function Qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function iv(e){return Ea=oi=1,pg=Se(gi=e),ge=0,[]}function nv(e){return gi="",e}function ks(e){return fg(Fa(ge-1,so(e===91?e+2:e===40?e+1:e)))}function av(e){for(;(Mt=Ze())&&Mt<33;)be();return Qi(e)>2||Qi(Mt)>3?"":" "}function sv(e,t){for(;--t&&be()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return Fa(e,Fn()+(t<6&&Ze()==32&&be()==32))}function so(e){for(;be();)switch(Mt){case e:return ge;case 34:case 39:e!==34&&e!==39&&so(Mt);break;case 40:e===41&&so(e);break;case 92:be();break}return ge}function ov(e,t){for(;be()&&e+Mt!==57;)if(e+Mt===84&&Ze()===47)break;return"/*"+Fa(t,ge-1)+"*"+Hi(e===47?e:be())}function lv(e){for(;!Qi(Ze());)be();return Fa(e,ge)}function cv(e){return nv($n("",null,null,null,[""],e=iv(e),0,[0],e))}function $n(e,t,r,i,n,a,o,s,l){for(var c=0,h=0,u=o,f=0,p=0,g=0,m=1,x=1,y=1,_=0,C=0,k="",v=n,F=a,M=i,$=k;x;)switch(g=C,C=be()){case 40:g!=108&&Hr($,u-1)==58?(_++,$+="("):$+=ks(C);break;case 41:_--,$+=")";break;case 34:case 39:case 91:$+=ks(C);break;case 9:case 10:case 13:case 32:if(_>0){$+=Hi(C);break}$+=av(g);break;case 92:$+=sv(Fn()-1,7);continue;case 47:switch(Ze()){case 42:case 47:vn(hv(ov(be(),Fn()),t,r,l),l),(Qi(g||1)==5||Qi(Ze()||1)==5)&&Se($)&&si($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*m:s[c++]=Se($)*y;case 125*m:case 59:case 0:if(_>0&&C){$+=Hi(C);break}switch(C){case 0:case 125:x=0;case 59+h:y==-1&&($=ao($,/\f/g,"")),p>0&&(Se($)-u||m===0)&&vn(p>32?Gc($+";",i,r,u-1,l):Gc(ao($," ","")+";",i,r,u-2,l),l);break;case 59:$+=";";default:if(vn(M=Yc($,t,r,c,h,n,s,k,v=[],F=[],u,a),a),C===123)if(h===0)$n($,t,M,M,v,a,u,s,F);else{switch(f){case 99:if(Hr($,3)===110)break;case 108:if(Hr($,2)===97)break;default:h=0;case 100:case 109:case 115:}h?$n(e,M,M,i&&vn(Yc(e,M,M,0,0,n,s,k,n,v=[],u,F),F),n,F,u,s,i?v:F):$n($,M,M,M,[""],F,0,s,F)}}c=h=p=0,m=y=1,k=$="",u=o;break;case 58:u=1+Se($),p=g;default:if(m<1){if(C==123)--m;else if(C==125&&m++==0&&rv()==125)continue}switch($+=Hi(C),C*m){case 38:y=h>0?1:($+="\f",-1);break;case 44:if(_>0)break;s[c++]=(Se($)-1)*y,y=1;break;case 64:Ze()===45&&($+=ks(be())),f=Ze(),h=u=Se(k=$+=lv(Fn())),C++;break;case 45:g===45&&Se($)==2&&(m=0)}}return a}function Yc(e,t,r,i,n,a,o,s,l,c,h,u){for(var f=n-1,p=n===0?a:[""],g=tv(p),m=0,x=0,y=0;m<i;++m)for(var _=0,C=si(e,f+1,f=Jk(x=o[m])),k=e;_<g;++_)(k=fg(x>0?p[_]+" "+C:ao(C,/&\f/g,p[_])))&&(l[y++]=k);return rl(e,t,r,n===0?hg:s,l,c,h,u)}function hv(e,t,r,i){return rl(e,t,r,cg,Hi(ev()),si(e,2,-2),0,i)}function Gc(e,t,r,i,n){return rl(e,t,r,ug,si(e,0,i),si(e,i+1,-1),i,n)}function oo(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function uv(e,t,r,i){switch(e.type){case Qk:if(e.children.length)break;case Xk:case Zk:case ug:return e.return=e.return||e.value;case cg:return"";case Kk:return e.return=e.value+"{"+oo(e.children,i)+"}";case hg:if(!Se(e.value=e.props.join(",")))return""}return Se(r=oo(e.children,i))?e.return=e.value+"{"+r+"}":""}var fv=Xf(Object.keys,Object),pv=Object.prototype,dv=pv.hasOwnProperty;function gv(e){if(!wa(e))return fv(e);var t=[];for(var r in Object(e))dv.call(e,r)&&r!="constructor"&&t.push(r);return t}var lo=Ar(Ee,"DataView"),co=Ar(Ee,"Promise"),ho=Ar(Ee,"Set"),uo=Ar(Ee,"WeakMap"),Vc="[object Map]",mv="[object Object]",Xc="[object Promise]",Zc="[object Set]",Kc="[object WeakMap]",Qc="[object DataView]",yv=Tr(lo),xv=Tr(Zi),bv=Tr(co),_v=Tr(ho),Cv=Tr(uo),dr=ci;(lo&&dr(new lo(new ArrayBuffer(1)))!=Qc||Zi&&dr(new Zi)!=Vc||co&&dr(co.resolve())!=Xc||ho&&dr(new ho)!=Zc||uo&&dr(new uo)!=Kc)&&(dr=function(e){var t=ci(e),r=t==mv?e.constructor:void 0,i=r?Tr(r):"";if(i)switch(i){case yv:return Qc;case xv:return Vc;case bv:return Xc;case _v:return Zc;case Cv:return Kc}return t});var wv="[object Map]",kv="[object Set]",vv=Object.prototype,Sv=vv.hasOwnProperty;function Jc(e){if(e==null)return!0;if(ka(e)&&(Jn(e)||typeof e=="string"||typeof e.splice=="function"||Io(e)||Po(e)||Qn(e)))return!e.length;var t=dr(e);if(t==wv||t==kv)return!e.size;if(wa(e))return!gv(e).length;for(var r in e)if(Sv.call(e,r))return!1;return!0}var dg="c4",Tv=d(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),Av=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./c4Diagram-6F5ED5ID-B40qb_UG.js");return{diagram:t}},__vite__mapDeps([8,9,6,7]));return{id:dg,diagram:e}},"loader"),Lv={id:dg,detector:Tv,loader:Av},Bv=Lv,gg="flowchart",Mv=d((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),Ev=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./flowDiagram-7ASYPVHJ-uZ6FeujK.js");return{diagram:t}},__vite__mapDeps([10,11,12,6,7]));return{id:gg,diagram:e}},"loader"),Fv={id:gg,detector:Mv,loader:Ev},$v=Fv,mg="flowchart-v2",Dv=d((e,t)=>{var r,i,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),Ov=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./flowDiagram-7ASYPVHJ-uZ6FeujK.js");return{diagram:t}},__vite__mapDeps([10,11,12,6,7]));return{id:mg,diagram:e}},"loader"),Rv={id:mg,detector:Dv,loader:Ov},Iv=Rv,yg="er",Pv=d(e=>/^\s*erDiagram/.test(e),"detector"),Nv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./erDiagram-6RL3IURR-CeZWTGfc.js");return{diagram:t}},__vite__mapDeps([13,1,2,3,4,6,7]));return{id:yg,diagram:e}},"loader"),zv={id:yg,detector:Pv,loader:Nv},qv=zv,xg="gitGraph",Wv=d(e=>/^\s*gitGraph/.test(e),"detector"),Hv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-NRZ2UAAF-CBflcq4l.js");return{diagram:t}},__vite__mapDeps([14,15,16,17,6,7,4,2]));return{id:xg,diagram:e}},"loader"),jv={id:xg,detector:Wv,loader:Hv},Uv=jv,bg="gantt",Yv=d(e=>/^\s*gantt/.test(e),"detector"),Gv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./ganttDiagram-NTVNEXSI-y87xBPPC.js");return{diagram:t}},__vite__mapDeps([18,6,7,19]));return{id:bg,diagram:e}},"loader"),Vv={id:bg,detector:Yv,loader:Gv},Xv=Vv,_g="info",Zv=d(e=>/^\s*info/.test(e),"detector"),Kv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./infoDiagram-A4XQUW5V-CsRrWifr.js");return{diagram:t}},__vite__mapDeps([20,17,6,7,4,2]));return{id:_g,diagram:e}},"loader"),Qv={id:_g,detector:Zv,loader:Kv},Cg="pie",Jv=d(e=>/^\s*pie/.test(e),"detector"),tS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./pieDiagram-YF2LJOPJ-7r8Dzz2j.js");return{diagram:t}},__vite__mapDeps([21,15,17,6,7,4,2,19]));return{id:Cg,diagram:e}},"loader"),eS={id:Cg,detector:Jv,loader:tS},wg="quadrantChart",rS=d(e=>/^\s*quadrantChart/.test(e),"detector"),iS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./quadrantDiagram-OS5C2QUG-p6-v0-FD.js");return{diagram:t}},__vite__mapDeps([22,19,6,7]));return{id:wg,diagram:e}},"loader"),nS={id:wg,detector:rS,loader:iS},aS=nS,kg="xychart",sS=d(e=>/^\s*xychart-beta/.test(e),"detector"),oS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./xychartDiagram-6QU3TZC5-_rQykDFm.js");return{diagram:t}},__vite__mapDeps([23,19,6,7]));return{id:kg,diagram:e}},"loader"),lS={id:kg,detector:sS,loader:oS},cS=lS,vg="requirement",hS=d(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),uS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./requirementDiagram-MIRIMTAZ-69i-6ive.js");return{diagram:t}},__vite__mapDeps([24,1,2,3,4,6,7]));return{id:vg,diagram:e}},"loader"),fS={id:vg,detector:hS,loader:uS},pS=fS,Sg="sequence",dS=d(e=>/^\s*sequenceDiagram/.test(e),"detector"),gS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./sequenceDiagram-G6AWOVSC-B6t5TVF5.js");return{diagram:t}},__vite__mapDeps([25,9,16,6,7]));return{id:Sg,diagram:e}},"loader"),mS={id:Sg,detector:dS,loader:gS},yS=mS,Tg="class",xS=d((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),bS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./classDiagram-LNE6IOMH-BtGGSWnn.js");return{diagram:t}},__vite__mapDeps([26,27,11,6,7]));return{id:Tg,diagram:e}},"loader"),_S={id:Tg,detector:xS,loader:bS},CS=_S,Ag="classDiagram",wS=d((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),kS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./classDiagram-v2-MQ7JQ4JX-BtGGSWnn.js");return{diagram:t}},__vite__mapDeps([28,27,11,6,7]));return{id:Ag,diagram:e}},"loader"),vS={id:Ag,detector:wS,loader:kS},SS=vS,Lg="state",TS=d((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),AS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./stateDiagram-MAYHULR4-DdNGwnVQ.js");return{diagram:t}},__vite__mapDeps([29,30,11,1,2,3,4,6,7]));return{id:Lg,diagram:e}},"loader"),LS={id:Lg,detector:TS,loader:AS},BS=LS,Bg="stateDiagram",MS=d((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),ES=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4JROLMXI-kJAkVKtc.js");return{diagram:t}},__vite__mapDeps([31,30,11,6,7]));return{id:Bg,diagram:e}},"loader"),FS={id:Bg,detector:MS,loader:ES},$S=FS,Mg="journey",DS=d(e=>/^\s*journey/.test(e),"detector"),OS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./journeyDiagram-G5WM74LC-DC7Hbsp0.js");return{diagram:t}},__vite__mapDeps([32,9,6,7]));return{id:Mg,diagram:e}},"loader"),RS={id:Mg,detector:DS,loader:OS},IS=RS,PS=d((e,t,r)=>{P.debug(`rendering svg for syntax error
|
|
180
|
+
`);const i=Vk(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),Bh(i,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Eg={draw:PS},NS=Eg,zS={db:{},renderer:Eg,parser:{parse:d(()=>{},"parse")}},qS=zS,Fg="flowchart-elk",WS=d((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),HS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./flowDiagram-7ASYPVHJ-uZ6FeujK.js");return{diagram:t}},__vite__mapDeps([10,11,12,6,7]));return{id:Fg,diagram:e}},"loader"),jS={id:Fg,detector:WS,loader:HS},US=jS,$g="timeline",YS=d(e=>/^\s*timeline/.test(e),"detector"),GS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./timeline-definition-U7ZMHBDA-CgCCWNTr.js");return{diagram:t}},__vite__mapDeps([33,6,7]));return{id:$g,diagram:e}},"loader"),VS={id:$g,detector:YS,loader:GS},XS=VS,Dg="mindmap",ZS=d(e=>/^\s*mindmap/.test(e),"detector"),KS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./mindmap-definition-GWI6TPTV-BkHsjDT1.js");return{diagram:t}},__vite__mapDeps([34,35,6,7]));return{id:Dg,diagram:e}},"loader"),QS={id:Dg,detector:ZS,loader:KS},JS=QS,Og="kanban",tT=d(e=>/^\s*kanban/.test(e),"detector"),eT=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./kanban-definition-QRCXZQQD-Bo5HNBfS.js");return{diagram:t}},__vite__mapDeps([36,6,7]));return{id:Og,diagram:e}},"loader"),rT={id:Og,detector:tT,loader:eT},iT=rT,Rg="sankey",nT=d(e=>/^\s*sankey-beta/.test(e),"detector"),aT=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./sankeyDiagram-Y46BX6SQ-CT2tON08.js");return{diagram:t}},__vite__mapDeps([37,19,6,7]));return{id:Rg,diagram:e}},"loader"),sT={id:Rg,detector:nT,loader:aT},oT=sT,Ig="packet",lT=d(e=>/^\s*packet-beta/.test(e),"detector"),cT=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./diagram-QW4FP2JN-OyHbrzI4.js");return{diagram:t}},__vite__mapDeps([38,15,17,6,7,4,2]));return{id:Ig,diagram:e}},"loader"),hT={id:Ig,detector:lT,loader:cT},Pg="block",uT=d(e=>/^\s*block-beta/.test(e),"detector"),fT=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./blockDiagram-ZHA2E4KO-CufQ8L2_.js");return{diagram:t}},__vite__mapDeps([39,5,1,2,12,6,7]));return{id:Pg,diagram:e}},"loader"),pT={id:Pg,detector:uT,loader:fT},dT=pT,Ng="architecture",gT=d(e=>/^\s*architecture/.test(e),"detector"),mT=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./architectureDiagram-UYN6MBPD-_9Wfq1su.js");return{diagram:t}},__vite__mapDeps([40,15,16,17,6,7,4,2,35]));return{id:Ng,diagram:e}},"loader"),yT={id:Ng,detector:gT,loader:mT},xT=yT,th=!1,$a=d(()=>{th||(th=!0,In("error",qS,e=>e.toLowerCase().trim()==="error"),In("---",{db:{clear:d(()=>{},"clear")},styles:{},renderer:{draw:d(()=>{},"draw")},parser:{parse:d(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:d(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),mh(Bv,iT,SS,CS,qv,Xv,Qv,eS,pS,yS,US,Iv,$v,JS,XS,Uv,$S,BS,IS,aS,oT,hT,cS,dT,xT))},"addDiagrams"),bT=d(async()=>{P.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Jr).map(async([r,{detector:i,loader:n}])=>{if(n)try{Ms(r)}catch{try{const{diagram:a,id:o}=await n();In(o,a,i)}catch(a){throw P.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Jr[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){P.error(`Failed to load ${t.length} external diagrams`);for(const r of t)P.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),_T="graphics-document document";function zg(e,t){e.attr("role",_T),t!==""&&e.attr("aria-roledescription",t)}d(zg,"setA11yDiagramInfo");function qg(e,t,r,i){if(e.insert!==void 0){if(r){const n=`chart-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){const n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}d(qg,"addSVGa11yTitleDescription");var br,fo=(br=class{constructor(t,r,i,n,a){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(t,r={}){var c,h;const i=_e(),n=mo(t,i);t=ZC(t)+`
|
|
181
181
|
`;try{Ms(n)}catch{const u=py(n);if(!u)throw new gh(`Diagram ${n} not found.`);const{id:f,diagram:p}=await u();In(f,p)}const{db:a,parser:o,renderer:s,init:l}=Ms(n);return o.parser&&(o.parser.yy=a),(c=a.clear)==null||c.call(a),l==null||l(i),r.title&&((h=a.setDiagramTitle)==null||h.call(a,r.title)),await o.parse(t),new br(n,t,a,o,s)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},d(br,"Diagram"),br),eh=[],CT=d(()=>{eh.forEach(e=>{e()}),eh=[]},"attachFunctions"),wT=d(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Wg(e){const t=e.match(dh);if(!t)return{text:e,metadata:{}};let r=fx(t[1],{schema:ux})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}d(Wg,"extractFrontMatter");var kT=d(e=>e.replace(/\r\n?/g,`
|
|
182
182
|
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),vT=d(e=>{const{text:t,metadata:r}=Wg(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),ST=d(e=>{const t=Te.detectInit(e)??{},r=Te.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:IC(e),directive:t}},"processDirectives");function il(e){const t=kT(e),r=vT(t),i=ST(r.text),n=jo(r.config,i.directive);return e=wT(i.text),{code:e,title:r.title,config:n}}d(il,"preprocessDiagram");function Hg(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}d(Hg,"toBase64");var TT=5e4,AT="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",LT="sandbox",BT="loose",MT="http://www.w3.org/2000/svg",ET="http://www.w3.org/1999/xlink",FT="http://www.w3.org/1999/xhtml",$T="100%",DT="100%",OT="border:0;margin:0;",RT="margin:0",IT="allow-top-navigation-by-user-activation allow-popups",PT='The "iframe" tag is not supported by your browser.',NT=["foreignobject"],zT=["dominant-baseline"];function nl(e){const t=il(e);return On(),By(t.config??{}),t}d(nl,"processAndSetConfigs");async function jg(e,t){$a();try{const{code:r,config:i}=nl(e);return{diagramType:(await Yg(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}d(jg,"parse");var rh=d((e,t,r=[])=>`
|
|
183
183
|
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),qT=d((e,t=new Map)=>{var i;let r="";if(e.themeCSS!==void 0&&(r+=`
|