1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DyBqOSsE.js","./D8VVhd3u.js","./entry.DQgjrMs2.css","./DmLVasCz.js","./CCardBox.D0OK41kk.css","./DMyvFBzS.js","./CgIgNcB1.js","./DpGxo2Of.js","./CK2bjkNy.js","./Chytjyyd.js","./Ci2l0ByU.js","./DzXGHCpK.js","./CxbF5jfj.js","./DXTTfs9a.js","./DmoXE1BT.js","./_VVDe00Y.js","./D5oVr8WQ.js","./BB4DxJjf.js","./CEvzu5iL.js","./CZ2nL_xS.js","./Cx-Kln3J.js","./8xR3_Lyb.js","./P2m3f8R0.js","./BQM4tx7l.js","./BFnNJEla.js","./CMcKQLyf.js","./S-8-XGwY.js","./CBsLXHuP.js","./eW9G2Tbz.js","./Drr9BiAH.js","./yfdeTBsX.js","./pi3ApuCN.js","./CMB-hBLy.js","./Gi6I4Gst.js","./DX6XiGOO.js","./lfqL0ECe.js","./BTjZHEhU.js","./C_fiImob.js","./CmKTTxBW.js","./BB9JAKZd.js","./DyOjEn6R.js","./CoYauHdn.js","./BqbWGP9B.js","./aAWSgU4k.js","./D-CXjqe8.js","./CAuk9aeO.js","./DPa2VZZS.js","./CrnoqQbL.js","./BTgguJNe.js","./BRpigbpm.js","./fdrgtvx5.js","./D9qyZ84O.js","./CyqUwFyw.js","./t5ydGhva.js","./CDRzTrDK.js","./CD_viz5U.js","./BCJBT5bN.js","./BRQgtCY0.js","./D8gkPHyz.js","./qvBzx4Iz.js","./DAUImQui.js","./38q_6FCM.js","./DA8LdVwV.js","./BJvWy2zW.js","./aHbPmCTH.js","./W3EWZqjm.js","./BWMrIwRb.js","./DOBrF_EJ.js","./D2xrdDec.js","./C42mp4OP.js"])))=>i.map(i=>d[i]); 2import{hf as a0,N as dl,ho as ul,h7 as pu,hp as n0,h9 as l0,h8 as Zr,d as to,az as Ne,aA as Xe,aB as lt,aI as ee,b6 as h0,aV as ft,ax as L,a$ as or,bp as jh,aG as Yh,a_ as c0,D as d0,b5 as Ft,dL as fu,hn as os,hq as Uh,o as u0,a8 as p0,f as Rr,aw as f0,aC as g0,aD as m0,b0 as Er,c8 as Mr,cs as y0,aH as x0}from"./D8VVhd3u.js";import{C as gu}from"./DmLVasCz.js";import{C as wi}from"./DMyvFBzS.js";import{_ as C0}from"./CgIgNcB1.js";import{a as b0}from"./DpGxo2Of.js";import{u as k0}from"./CK2bjkNy.js";import{i as Gh}from"./Chytjyyd.js";function w0(e,t,r,i){var o=-1,s=e==null?0:e.length;for(i&&s&&(r=e[++o]);++o<s;)r=t(r,e[o],o,e);return r}function _0(e){return typeof e=="function"?e:a0}function Gr(e,t){var r=dl(e)?b0:ul;return r(e,_0(t))}function S0(e,t){var r=[];return ul(e,function(i,o,s){t(i,o,s)&&r.push(i)}),r}function ss(e,t){var r=dl(e)?n0:S0;return r(e,pu(t))}function T0(e,t){return l0(t,function(r){return e[r]})}function Ea(e){return e==null?[]:T0(e,Zr(e))}function _i(e){return e===void 0}function v0(e,t,r,i,o){return o(e,function(s,a,n){r=i?(i=!1,s):t(r,s,a,n)}),r}function B0(e,t,r){var i=dl(e)?w0:v0,o=arguments.length<3;return i(e,pu(t),r,o,ul)}const L0={class:"activity-item rounded-lg border-l-4 border-primary-910 bg-white dark:bg-gray-800 p-4 shadow-sm transition-all hover:shadow-md"},F0={class:"mb-2 flex items-center gap-2"},A0={class:"text-xl"},E0={class:"font-semibold text-primary-910 dark:text-primary-400"},M0={class:"text-sm text-gray-700 dark:text-gray-300"},O0=to({__name:"ActivityItem",props:{icon:{},title:{},description:{}},setup(e){return(t,r)=>(Ne(),Xe("div",L0,[lt("div",F0,[lt("span",A0,ee(e.icon),1),lt("h4",E0,ee(e.title),1)]),lt("p",M0,ee(e.description),1)]))}}),$0=Object.assign(O0,{__name:"ActivityItem"}),D0={class:"highlight-box mt-4 rounded-lg border-l-4 border-green-500 bg-green-100 p-4"},P0={class:"mb-2 flex items-center gap-2"},I0={class:"text-xl"},R0={class:"font-semibold text-green-900"},N0=["innerHTML"],z0=to({__name:"HighlightBox",props:{icon:{},title:{},description:{}},setup(e){return(t,r)=>(Ne(),Xe("div",D0,[lt("div",P0,[lt("span",I0,ee(e.icon),1),lt("h4",R0,ee(e.title),1)]),lt("p",{class:"text-sm text-green-900",innerHTML:e.description},null,8,N0)]))}}),q0=Object.assign(z0,{__name:"HighlightBox"}),W0={class:"phase-number absolute -left-4 -top-4 flex size-12 items-center justify-center rounded-full bg-primary-910 text-xl font-bold text-white shadow-lg sm:-left-6 sm:-top-6 sm:size-16 sm:text-2xl"},H0={class:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between"},j0={class:"inline-block rounded-full bg-green-500 px-4 py-1 text-sm font-semibold text-white"},Y0={class:"mb-4 text-gray-700"},U0={key:0,class:"activities-grid mb-4"},G0={key:1},V0=to({__name:"PhaseCard",props:{phaseNumber:{},title:{},duration:{},description:{}},setup(e){return(t,r)=>(Ne(),h0(gu,{class:"phase-card relative"},{default:ft(()=>[lt("div",W0,ee(e.phaseNumber),1),lt("div",H0,[L(wi,{variant:3,class:"!mb-0 text-primary-950"},{default:ft(()=>
2[or(ee(e.title),1)]),_:1}),lt("span",j0,ee(e.duration),1)]),lt("p",Y0,ee(e.description),1),t.$slots.activities?(Ne(),Xe("div",U0,[jh(t.$slots,"activities")])):Yh("",!0),t.$slots.extras?(Ne(),Xe("div",G0,[jh(t.$slots,"extras")])):Yh("",!0)]),_:3}))}}),X0=Object.assign(V0,{__name:"PhaseCard"}),Z0={},K0={class:"phase-arrow flex justify-center py-4"};function Q0(e,t){return Ne(),Xe("div",K0,[...t[0]||(t[0]=[lt("div",{class:"text-4xl text-primary-910"},"â",-1)])])}const J0=Object.assign(c0(Z0,[["render",Q0]]),{__name:"PhaseArrow"}),tx={class:"decision-box mt-4 rounded-lg border-2 border-secondary-500 bg-secondary-50 dark:bg-secondary-900 p-4 sm:p-6"},ex={class:"mb-4 text-lg font-bold text-gray-900 dark:text-white"},rx={class:"grid gap-4 sm:grid-cols-2"},ix={class:"rounded-lg border-2 border-secondary-500 bg-white dark:bg-gray-800 p-4"},ox={class:"mb-2 font-semibold text-gray-900 dark:text-white"},sx={class:"text-sm text-gray-700 dark:text-gray-300"},ax={class:"rounded-lg border-2 border-secondary-500 bg-white dark:bg-gray-800 p-4"},nx={class:"mb-2 font-semibold text-gray-900 dark:text-white"},lx={class:"text-sm text-gray-700 dark:text-gray-300"},hx=to({__name:"DecisionBox",props:{title:{},option1Label:{},option1Description:{},option2Label:{},option2Description:{}},setup(e){return(t,r)=>(Ne(),Xe("div",tx,[lt("h4",ex,ee(e.title),1),lt("div",rx,[lt("div",ix,[lt("div",ox,ee(e.option1Label),1),lt("p",sx,ee(e.option1Description),1)]),lt("div",ax,[lt("div",nx,ee(e.option2Label),1),lt("p",lx,ee(e.option2Description),1)])])]))}}),cx=Object.assign(hx,{__name:"DecisionBox"});var mu=Object.defineProperty,f=(e,t)=>mu(e,"name",{value:t,configurable:!0}),dx=(e,t)=>{for(var r in t)mu(e,r,{get:t[r],enumerable:!0})},br={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},$={trace:f((...e)=>{},"trace"),debug:f((...e)=>{},"debug"),info:f((...e)=>{},"info"),warn:f((...e)=>{},"warn"),error:f((...e)=>{},"error"),fatal:f((...e)=>{},"fatal")},pl=f(function(e="fatal"){let t=br.fatal;typeof e=="string"?e.toLowerCase()in br&&(t=br[e]):typeof e=="number"&&(t=e),$.trace=()=>{},$.debug=()=>{},$.info=()=>{},$.warn=()=>{},$.error=()=>{},$.fatal=()=>{},t<=br.fatal&&($.fatal=console.error?console.error.bind(console,Ie("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ie("FATAL"))),t<=br.error&&($.error=console.error?console.error.bind(console,Ie("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ie("ERROR"))),t<=br.warn&&($.warn=console.warn?console.warn.bind(console,Ie("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ie("WARN"))),t<=br.info&&($.info=console.info?console.info.bind(console,Ie("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ie("INFO"))),t<=br.debug&&($.debug=console.debug?console.debug.bind(console,Ie("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ie("DEBUG"))),t<=br.trace&&($.trace=console.debug?console.debug.bind(console,Ie("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ie("TRACE")))},"setLogLevel"),Ie=f(e=>`%c${d0().format("ss.SSS")} : ${e} : `,"format");const bs={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 o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;switch(i){case"r":return bs.hue2rgb(s,o,e+1/3)*255;case"g":return bs.hue2rgb(s,o,e)*255;case"b":return bs.hue2rgb(s,o,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const o=Math.max(e,t,r),s=Math.min(e,t,r),a=(o+s)/2;if(i==="l")return a*100;if(o===s)return 0;const n=o-s,h=a>.5?n/(2-o-s):n/(o+s);if(i==="s")return h*100;switch(o){case e:return((t-r)/n+(t<r?6:0))*60;case t:return((r-e)/n+2)*60;case r:return((e-t)/n+4)*60;default:return-1}}},ux={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},px={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},vt={channel:bs,lang:ux,unit:px},Pr={};for(let e=0;e<=255;e++)Pr[e]=vt.unit.dec2hex(e);const ge={ALL:0,RGB:1,HSL:2};let fx=class{constructor(){this.type=ge.ALL}get(){return this.type}
vendor: 6,040 bytes, line 2
2set(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=ge.ALL}is(t){return this.type===t}};class gx{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new fx}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=ge.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:o}=t;r===void 0&&(t.h=vt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=vt.channel.rgb2hsl(t,"s")),o===void 0&&(t.l=vt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:o}=t;r===void 0&&(t.r=vt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=vt.channel.hsl2rgb(t,"g")),o===void 0&&(t.b=vt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(ge.HSL)&&r!==void 0?r:(this._ensureHSL(),vt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(ge.HSL)&&r!==void 0?r:(this._ensureHSL(),vt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(ge.HSL)&&r!==void 0?r:(this._ensureHSL(),vt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(ge.RGB)&&r!==void 0?r:(this._ensureRGB(),vt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(ge.RGB)&&r!==void 0?r:(this._ensureRGB(),vt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(ge.RGB)&&r!==void 0?r:(this._ensureRGB(),vt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(ge.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(ge.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(ge.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(ge.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(ge.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(ge.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const oa=new gx({r:0,g:0,b:0,a:0},"transparent"),Li={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Li.re);if(!t)return;const r=t[1],i=parseInt(r,16),o=r.length,s=o%4===0,a=o>4,n=a?1:17,h=a?8:4,c=s?0:-1,l=a?255:15;return oa.set({r:(i>>h*(c+3)&l)*n,g:(i>>h*(c+2)&l)*n,b:(i>>h*(c+1)&l)*n,a:s?(i&l)*n/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:o}=e;return o<1?`#${Pr[Math.round(t)]}${Pr[Math.round(r)]}${Pr[Math.round(i)]}${Pr[Math.round(o*255)]}`:`#${Pr[Math.round(t)]}${Pr[Math.round(r)]}${Pr[Math.round(i)]}`}},ti={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(ti.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return vt.channel.clamp.h(parseFloat(r)*.9);case"rad":return vt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return vt.channel.clamp.h(parseFloat(r)*360)}}return vt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(ti.re);if(!r)return;const[,i,o,s,a,n]=r;return oa.set({h:ti._hue2deg(i),s:vt.channel.clamp.s(parseFloat(o)),l:vt.channel.clamp.l(parseFloat(s)),a:a?vt.channel.clamp.a(n?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:o}=e;return o<1?`hsla(${vt.lang.round(t)}, ${vt.lang.round(r)}%, ${vt.lang.round(i)}%, ${o})`:`hsl(${vt.lang.round(t)}, ${vt.lang.round(r)}%, ${vt.lang.round(i)}%)`}},Ao={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",s
2almon:"#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=Ao.colors[e];if(t)return Li.parse(t)},stringify:e=>{const t=Li.stringify(e);for(const r in Ao.colors)if(Ao.colors[r]===t)return r}},bo={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(bo.re);if(!r)return;const[,i,o,s,a,n,h,c,l]=r;return oa.set({r:vt.channel.clamp.r(o?parseFloat(i)*2.55:parseFloat(i)),g:vt.channel.clamp.g(a?parseFloat(s)*2.55:parseFloat(s)),b:vt.channel.clamp.b(h?parseFloat(n)*2.55:parseFloat(n)),a:c?vt.channel.clamp.a(l?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:o}=e;return o<1?`rgba(${vt.lang.round(t)}, ${vt.lang.round(r)}, ${vt.lang.round(i)}, ${vt.lang.round(o)})`:`rgb(${vt.lang.round(t)}, ${vt.lang.round(r)}, ${vt.lang.round(i)})`}},cr={format:{keyword:Ao,hex:Li,rgb:bo,rgba:bo,hsl:ti,hsla:ti},parse:e=>{if(typeof e!="string")return e;const t=Li.parse(e)||bo.parse(e)||ti.parse(e)||Ao.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ge.HSL)||e.data.r===void 0?ti.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?bo.stringify(e):Li.stringify(e)},yu=(e,t)=>{const r=cr.parse(e);for(const i in t)r[i]=vt.channel.clamp[i](t[i]);return cr.stringify(r)},qr=(e,t,r=0,i=1)=>{if(typeof e!="number")return yu(e,{a:t});const o=oa.set({r:vt.channel.clamp.r(e),g:vt.channel.clamp.g(t),b:vt.channel.clamp.b(r),a:vt.channel.clamp.a(i)});return cr.stringify(o)},mx=e=>{const{r:t,g:r,b:i}=cr.parse(e),o=.2126*vt.channel.toLinear(t)+.7152*vt.channel.toLinear(r)+.0722*vt.channel.toLinear(i);return vt.lang.round(o)},yx=e=>mx(e)>=.5,Ke=e=>!yx(e),xu=(e,t,r)=>{const i=cr.parse(e),o=i[t],s=vt.channel.clamp[t](o+r);return o!==s&&(i[t]=s),cr.stringify(i)},I=(e,t)=>xu(e,"l",t),R=(e,t)=>xu(e,"l",-t),b=(e,t)=>{const r=cr.parse(e),i={};for(const o in t)t[o]&&(i[o]=r[o]+t[o]);return yu(e,i)},xx=(e,t,r=50)=>{const{r:i,g:o,b:s,a}=cr.parse(e),{r:n,g:h,b:c,a:l}=cr.parse(t),d=r/100,u=d*2-1,p=a-l,m=((u*p===-1?u:(u+p)/(1+u*p))+1)/2,x=1-m,C=i*m+n*x,k=o*m+h*x,_=s*m+c*x,T=a*d+l*(1-d);return qr(C,k,_,T)},F=(e,t=100)=>{const r=cr.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,xx(r,e,t)};function Vh(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 Cx(e){if(Array.isArray(e))return e}function bx(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,s,a,n=[],h=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(h=(i=s.call(r)).done)&&(n.push(i.value),n.length!==t);h=!0);}catch(l){c=!0,o=l}finally{try{if(!h&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return n}}function kx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wx(e,t){return Cx(e)||bx(e,t)||_x(e,t)||kx()}function _x(e,t){if(e){if(typeof e=="string")return Vh(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)?Vh(e,t):void 0}}const Cu=Object.entries,Xh=Object.setPrototypeOf,Sx=Object.isFrozen,Tx=Object.getPrototypeOf,vx=Object.getOwnPropertyDescriptor;let ae=Object.freeze,he=Object.seal,Si=Object.create,bu=typeof Reflect<"u"&&Reflect,Tn=bu.apply,vn=bu.construct;ae||(ae=function(t){return t});he||(he=function(t){return t});Tn||(Tn=function(t,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];return t.apply(r,o)});vn||(vn=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return new t(...i)});const Kr=oe(Array.prototype.forEach),Bx=oe(Array.prototype.lastIndexOf),Zh=oe(Array.prototype.pop),ho=oe(Array.prototype.push),Lx=oe(Array.prototype.splice),Fi=Array.isArray,ko=oe(String.prototype.toLowerCase),Ma=oe(String.prototype.toString),Kh=oe(String.prototype.match),co=oe(String.prototype.replace),Qh=oe(String.prototype.indexOf),Fx=oe(String.prototype.trim),Ax=oe(Number.prototype.toString),Ex=oe(Boolean.prototype.toString),Jh=typeof BigInt>"u"?null:oe(BigInt.prototype.toString),tc=typeof Symbol>"u"?null:oe(Symbol.prototype.toString),Be=oe(Object.prototype.hasOwnProperty),uo=oe(Object.prototype.toString),fe=oe(RegExp.prototype.test),Or=Mx(TypeError);function oe(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return Tn(e,t,i)}}function Mx(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return vn(e,r)}}function zt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ko;if(Xh&&Xh(e,null),!Fi(t))return e;let i=t.length;for(;i--;){let o=t[i];
vendor: 4,406 bytes, line 3
3if(typeof o=="string"){const s=r(o);s!==o&&(Sx(t)||(t[i]=s),o=s)}e[o]=!0}return e}function Ox(e){for(let t=0;t<e.length;t++)Be(e,t)||(e[t]=null);return e}function $e(e){const t=Si(null);for(const i of Cu(e)){var r=wx(i,2);const o=r[0],s=r[1];Be(e,o)&&(Fi(s)?t[o]=Ox(s):s&&typeof s=="object"&&s.constructor===Object?t[o]=$e(s):t[o]=s)}return t}function $x(e){switch(typeof e){case"string":return e;case"number":return Ax(e);case"boolean":return Ex(e);case"bigint":return Jh?Jh(e):"0";case"symbol":return tc?tc(e):"Symbol()";case"undefined":return uo(e);case"function":case"object":{if(e===null)return uo(e);const t=e,r=Re(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:uo(i)}return uo(e)}default:return uo(e)}}function Re(e,t){for(;e!==null;){const i=vx(e,t);if(i){if(i.get)return oe(i.get);if(typeof i.value=="function")return oe(i.value)}e=Tx(e)}function r(){return null}return r}function Dx(e){try{return fe(e,""),!0}catch{return!1}}const ec=ae(["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"]),Oa=ae(["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"]),$a=ae(["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"]),Px=ae(["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"]),Da=ae(["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"]),Ix=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rc=ae(["#text"]),ic=ae(["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","
3spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Pa=ae(["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"]),oc=ae(["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"]),as=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Rx=he(/{{[\w\W]*|^[\w\W]*}}/g),Nx=he(/<%[\w\W]*|^[\w\W]*%>/g),zx=he(/\${[\w\W]*/g),qx=he(/^data-[\-\w.\u00B7-\uFFFF]+$/),Wx=he(/^aria-[\-\w]+$/),sc=he(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hx=he(/^(?:\w+script|data):/i),jx=he(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yx=he(/^html$/i),Ux=he(/^[a-z][.\w]*(-[.\w]+)+$/i),ac=he(/<[/\w!]/g),nc=he(/<[/\w]/g),Gx=he(/<\/no(script|embed|frames)/i),Vx=he(/\/>/i),Me={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ku=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Xx=ae(zt({},ku)),Zx=(function(){const e={};return Kr(ku,t=>{e[t]=he(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),ae(e)})(),Kx=function(){return typeof window>"u"?null:window},Qx=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;
vendor: 4,352 bytes, line 3
3const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(i=r.getAttribute(o));const s="dompurify"+(i?"#"+i:"");try{return t.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},lc=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},$r=function(t,r,i,o){return Be(t,r)&&Fi(t[r])?zt(o.base?$e(o.base):{},t[r],o.transform):i},Ia=function(t,r,i){const o=Be(t,r)?t[r]:void 0;return o&&typeof o=="object"?$e(o):i()};function wu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kx();const t=rt=>wu(rt);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==Me.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const i=r,o=i.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,a=e.Node,n=e.Element,h=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,l=e.trustedTypes,d=n.prototype,u=Re(d,"cloneNode"),p=Re(d,"remove"),y=Re(d,"removeAttributeNode"),m=Re(d,"nextSibling"),x=Re(d,"childNodes"),C=Re(d,"parentNode"),k=Re(d,"shadowRoot"),_=Re(d,"attributes"),T=a&&a.prototype?Re(a.prototype,"nodeType"):null,v=a&&a.prototype?Re(a.prototype,"nodeName"):null,A=a&&a.prototype?Re(a.prototype,"ownerDocument"):null,B=function(S){return T?T(S):S.nodeType},D=function(S){return v?v(S):S.nodeName};if(typeof s=="function"){const rt=r.createElement("template");rt.content&&rt.content.ownerDocument&&(r=rt.content.ownerDocument)}let j,U="",H,ot=!1,z=0;const W=function(){if(z>0)throw Or('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.')},J=function(S){W(),z++;try{return j.createHTML(S)}finally{z--}},P=function(S){W(),z++;try{return j.createScriptURL(S)}finally{z--}},it=function(){return ot||(H=Qx(l,o),ot=!0),H},et=r,bt=et.implementation,gt=et.createNodeIterator,Nt=et.createDocumentFragment,Gt=et.getElementsByTagName,Ht=i.importNode;let _t=lc();t.isSupported=typeof Cu=="function"&&typeof C=="function"&&bt&&bt.createHTMLDocument!==void 0;const It=Rx,Ct=Nx,Lt=zx,qt=qx,At=Wx,ne=Hx,Zt=jx,He=Ux;let mr=sc,$t=null;const yr=zt({},[...ec,...Oa,...$a,...Da,...rc]);let jt=null;const Te=zt({},[...ic,...Pa,...oc,...as]);let ce=Object.seal(Si(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}})),je=null,xr=null;const be=Object.seal(Si(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Lr=!0,ke=!0,Fr=!1,Cr=!0,we=!1,Ae=!0,g=!1,E=!1,q=null,G=null,N=!1,Q=!1,w=!1,O=!1,Z=!0,Y=!1;const V="user-content-";let K=!0,X=!1,ht={},nt=null;const mt=zt({},["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 kt=null;const Et=zt({},["audio","video","img","source","image","track"]);let Ut=null;const ao=zt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tr="http://www.w3.org/1998/Math/MathML",er="http://www.w3.org/2000/svg",rr="http://www.w3.org/1999/xhtml";let pi=rr,_a=!1,Sa=null;const jy=zt({},[tr,er,rr],Ma),Fh=ae(["mi","mo","mn","ms","mtext"]);let Ta=zt({},Fh);const Ah=ae(["annotation-xml"]);let va=zt({},Ah);const Yy=zt({},["title","style","font","a","script"]);let no=null;const Uy=["application/xhtml+xml","text/html"],Gy="text/html";let Jt=null,fi=null;const Vy=r.createElement("form"),Eh=function(S){return S instanceof RegExp||S instanceof Function},Ba=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(fi&&fi===S)return;(!S||typeof S!="object")&&(S={}
vendor: 16,776 bytes, lines 3-4
3),S=$e(S),no=Uy.indexOf(S.PARSER_MEDIA_TYPE)===-1?Gy:S.PARSER_MEDIA_TYPE,Jt=no==="application/xhtml+xml"?Ma:ko,$t=$r(S,"ALLOWED_TAGS",yr,{transform:Jt}),jt=$r(S,"ALLOWED_ATTR",Te,{transform:Jt}),Sa=$r(S,"ALLOWED_NAMESPACES",jy,{transform:Ma}),Ut=$r(S,"ADD_URI_SAFE_ATTR",ao,{transform:Jt,base:ao}),kt=$r(S,"ADD_DATA_URI_TAGS",Et,{transform:Jt,base:Et}),nt=$r(S,"FORBID_CONTENTS",mt,{transform:Jt}),je=$r(S,"FORBID_TAGS",$e({}),{transform:Jt}),xr=$r(S,"FORBID_ATTR",$e({}),{transform:Jt}),ht=Be(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?$e(S.USE_PROFILES):S.USE_PROFILES:!1,Lr=S.ALLOW_ARIA_ATTR!==!1,ke=S.ALLOW_DATA_ATTR!==!1,Fr=S.ALLOW_UNKNOWN_PROTOCOLS||!1,Cr=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=S.SAFE_FOR_TEMPLATES||!1,Ae=S.SAFE_FOR_XML!==!1,g=S.WHOLE_DOCUMENT||!1,Q=S.RETURN_DOM||!1,w=S.RETURN_DOM_FRAGMENT||!1,O=S.RETURN_TRUSTED_TYPE||!1,N=S.FORCE_BODY||!1,Z=S.SANITIZE_DOM!==!1,Y=S.SANITIZE_NAMED_PROPS||!1,K=S.KEEP_CONTENT!==!1,X=S.IN_PLACE||!1,mr=Dx(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:sc,pi=typeof S.NAMESPACE=="string"?S.NAMESPACE:rr,Ta=Ia(S,"MATHML_TEXT_INTEGRATION_POINTS",()=>zt({},Fh)),va=Ia(S,"HTML_INTEGRATION_POINTS",()=>zt({},Ah));const M=Ia(S,"CUSTOM_ELEMENT_HANDLING",()=>Si(null));if(ce=Si(null),Be(M,"tagNameCheck")&&Eh(M.tagNameCheck)&&(ce.tagNameCheck=M.tagNameCheck),Be(M,"attributeNameCheck")&&Eh(M.attributeNameCheck)&&(ce.attributeNameCheck=M.attributeNameCheck),Be(M,"allowCustomizedBuiltInElements")&&typeof M.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=M.allowCustomizedBuiltInElements),he(ce),we&&(ke=!1),w&&(Q=!0),ht&&($t=zt({},rc),jt=Si(null),ht.html===!0&&(zt($t,ec),zt(jt,ic)),ht.svg===!0&&(zt($t,Oa),zt(jt,Pa),zt(jt,as)),ht.svgFilters===!0&&(zt($t,$a),zt(jt,Pa),zt(jt,as)),ht.mathMl===!0&&(zt($t,Da),zt(jt,oc),zt(jt,as))),be.tagCheck=null,be.attributeCheck=null,Be(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?be.tagCheck=S.ADD_TAGS:Fi(S.ADD_TAGS)&&($t===yr&&($t=$e($t)),zt($t,S.ADD_TAGS,Jt))),Be(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?be.attributeCheck=S.ADD_ATTR:Fi(S.ADD_ATTR)&&(jt===Te&&(jt=$e(jt)),zt(jt,S.ADD_ATTR,Jt))),Be(S,"ADD_FORBID_CONTENTS")&&Fi(S.ADD_FORBID_CONTENTS)&&(nt===mt&&(nt=$e(nt)),zt(nt,S.ADD_FORBID_CONTENTS,Jt)),K&&($t["#text"]=!0),g&&zt($t,["html","head","body"]),$t.table&&(zt($t,["tbody"]),delete je.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw Or('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Or('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const tt=j;j=S.TRUSTED_TYPES_POLICY;try{U=J("")}catch(st){throw j=tt,st}}else S.TRUSTED_TYPES_POLICY===null?(j=void 0,U=""):(j===void 0&&(j=it()),j&&typeof U=="string"&&(U=J("")));ae&&ae(S),fi=S},Mh=zt({},[...Oa,...$a,...Px]),Oh=zt({},[...Da,...Ix]),Xy=function(S,M,tt){return M.namespaceURI===rr?S==="svg":M.namespaceURI===tr?S==="svg"&&(tt==="annotation-xml"||Ta[tt]):!!Mh[S]},Zy=function(S,M,tt){return M.namespaceURI===rr?S==="math":M.namespaceURI===er?S==="math"&&va[tt]:!!Oh[S]},Ky=function(S,M,tt){return M.namespaceURI===er&&!va[tt]||M.namespaceURI===tr&&!Ta[tt]?!1:!Oh[S]&&(Yy[S]||!Mh[S])},Qy=function(S){let M=C(S);(!M||!M.tagName)&&(M={namespaceURI:pi,tagName:"template"});const tt=ko(S.tagName),st=ko(M.tagName);return Sa[S.namespaceURI]?S.namespaceURI===er?Xy(tt,M,st):S.namespaceURI===tr?Zy(tt,M,st):S.namespaceURI===rr?Ky(tt,M,st):!!(no==="application/xhtml+xml"&&Sa[S.namespaceURI]):!1},Ar=function(S){ho(t.removed,{element:S});try{C(S).removeChild(S)}catch{if(p(S),!C(S))throw Or("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},$h=function(S,M,tt){try{y(S,M)}catch{try{S.removeAttribute(tt)}catch{}}},Qo=function(S){Jo(S);const M=x(S);if(M){const st=[];Kr(M,wt=>{ho(st,wt)}),Kr(st,wt=>{try{p(wt)}catch{}})}const tt=_(S);if(tt)for(let st=tt.length-1;st>=0;--st){const wt=tt[st],Ot=wt&&wt.name;typeof Ot=="string"&&$h(S,wt,Ot)}},Ur=function(S,M,tt){if(!tt)try{tt=M.getAttributeNode(S)}catch{tt=null}ho(t.removed,{attribute:tt||null,from:M});try{tt?y(M,tt):M.removeAttribute(S)}catch{try{M.removeAttribute(S)}catch{}}if(S==="is")if(Q||w)try{Ar(M)}catch{}else try{M.setAttribute(S,"")}catch{}},Jy=function(S){const M=_(S);if(M)for(let tt=M.length-1;tt>=0;--tt){const st=M[tt],wt=st&&st.name;typeof wt!="string"||jt[Jt(wt)]||$h(S,st,wt)}},Jo=function(S){const M=[S];for(;M.length>0;){const tt=M.pop();B(tt)===Me.element&&Jy(tt);const st=x(tt);if(st)for(let wt=st.length-1;wt>=0;--wt)M.push(st[wt])}},Dh=function(S,M){return Ae?S==="patchsrc"?!0:S==="for"&&M!=="label"&&M!=="output":!1},t0=function(S){if(!Ae)return;const M=[S];for(;M.length>0;){const tt=M.pop(),st=B(tt);if(st===Me.processingInstruction||st===Me.comment&&fe(nc,tt.data)){try{p(tt)}catch{}continue}if(st===Me.element){const Ot=tt,Rt=Jt(D(tt));try{Ot.hasAttribute&&Ot.hasAttribute("patchsrc")&&Ot.removeAttribute("patchsrc"),Ot.hasAttribute&&Ot.hasAttribute("for")&&Dh("for",Rt)&&Ot.removeAttribute("for")}catch{}}const wt=x(tt);if(wt)for(let Ot=wt.length-1;Ot>=0;--Ot)M.push(wt[Ot])}},Ph=function(S){let M=null,tt=null;if(N)S="<remove></remove>"+S;else{const Ot=Kh(S,/^[\r\n\t ]+/);tt=Ot&&Ot[0]}no==="application/xhtml+xml"&&pi===rr&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const st=j?J(S):S;if(pi===rr)try{M=new c().parseFromString(st,no)}catch{}if(!M||!M.documentElement){M=bt.createDocument(pi,"template",null);try{M.documentElement.innerHTML=_a?U:st}catch{}}const wt=M.body||M.documentElement;return S&&tt&&wt.insertBefore(r.createTextNode(tt),wt.childNodes[0]||null),pi===rr?Gt.call(M,g?"html":"body")[0]:g?M.documentElement:wt},Ih=function(S){const M=A?A(S):S.ownerDocument;return gt.call(M||S,S,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ts=function(S){return S=co(S,It," "),S=co(S,Ct," "),S=co(S,Lt," "),S},La=function(S){var M;S.normalize();const tt=A?A(S):S.ownerDocument,st=gt.call(tt||S,S,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null);let wt=st.nextNode();for(;wt;)wt.data=ts(wt.data),wt=st.nextNode();const Ot=(M=S.querySelectorAll)===null||M===void 0?void 0:M.call(S,"template");Ot&&Kr(Ot,Rt=>{gi(Rt.content)&&La(Rt.content)})},es=function(S){const M=v?v(S):null;return typeof M!="string"||Jt(M)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==_(S)||typeof S.removeAttribute!="function"||typeof S.removeAttributeNode!="function"||typeof S.getAttributeNode!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==T(S)||S.childNodes!==x(S)},gi=function(S){if(!T||typeof S!="object"||S===null)return!1;try{return T(S)===Me.documentFragment}catch{return!1}},lo=function(S){if(!T||typeof S!="object"||S===null)return!1;try{return typeof T(S)=="number"}catch{return!1}};function ir(rt,S,M){rt.length!==0&&Kr(rt,tt=>{tt.call(t,S,M,fi)})}const e0=function(S,M){return!!(Ae&&S.hasChildNodes()&&!lo(S.firstElementChild)&&fe(ac,S.textContent)&&fe(ac,S.innerHTML)||Ae&&S.namespaceURI===rr&&Xx[M]&&(lo(S.firstElementChild)||typeof S.textContent=="string"&&fe(Zx[M],S.textContent))||S.nodeType===Me.processingInstruction||Ae&&S.nodeType===Me.comment&&fe(nc,S.data))},rs=function(S,M){if(S instanceof RegExp)return fe(S,M);if(S instanceof Function){for(var tt=arguments.length,st=new Array(tt>2?tt-2:0),wt=2;wt<tt;wt++)st[wt-2]=arguments[wt];return!!S(M,...st)}return!1},r0=function(S,M,tt){if(!je[M]&&qh(M)&&rs(ce.tagNameCheck,M))return!1;if(K&&!nt[M]){const st=C(S),wt=x(S);if(wt&&st){const Ot=wt.length;for(let Rt=Ot-1;Rt>=0;--Rt){const Kt=S===tt?u(wt[Rt],!0):wt[Rt];st.insertBefore(Kt,m(S))}}}return Ar(S),!0},Rh=function(S,M,tt,st){return S.length===0?M:M===tt||M===st?$e(M):M},mi=function(S,M){return S===M||C(S)!==null?!1:(X&&Jo(S),!0)},Nh=function(S,M){if(ir(_t.beforeSanitizeElements,S,null),mi(S,M))return!0;if(es(S))return Ar(S),!0;const tt=Jt(D(S));if($t=Rh(_t.uponSanitizeElement,$t,yr,q),ir(_t.uponSanitizeElement,S,{tagName:tt,allowedTags:$t}),mi(S,M))return!0;if(e0(S,tt))return Ar(S),!0;if(je[tt]||!(be.tagCheck instanceof Function&&be.tagCheck(tt))&&!$t[tt]){const st=r0(S,tt,M);return st===!1&&(ir(_t.afterSanitizeElements,S,null),mi(S,M))?!0:st}if(B(S)===Me.element&&!Qy(S)||(tt==="noscript"||tt==="noembed"||tt==="noframes")&&fe(Gx,S.innerHTML))return Ar(S),!0;if(we&&S.nodeType===Me.text){const st=ts(S.textContent);S.textContent!==st&&(ho(t.removed,{element:S.cloneNode()}),S.textContent=st)}return ir(_t.afterSanitizeElements,S,null),mi(S,M)},zh=function(S,M,tt){if(xr[M]||Dh(M,S)||Z&&(M==="id"||M==="name")&&(tt in r||tt in Vy))return!1;const st=jt[M]||be.attributeCheck instanceof Function&&be.attributeCheck(M,S);return ke&&fe(qt,M)||Lr&&fe(At,M)?!0:st?Ut[M]||fe(mr,co(tt,Zt,""))||(M==="src"||M==="xlink:href"||M==="href")&&S!=="script"&&Qh(tt,"data:")===0&&kt[S]||Fr&&!fe(ne,co(tt,Zt,""))?!0:!tt:qh(S)&&rs(ce.tagNameCheck,S)&&rs(ce.attributeNameCheck,M,S)||M==="is"&&ce.allowCustomizedBuiltInElements&&rs(ce.tagNameCheck,tt)},i0=zt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),qh=function(S){return!i0[ko(S)]&&fe(He,S)},o0=function(S,M,tt,st){if(j&&typeof l=="object"&&typeof l.getAttributeType=="function"&&!tt)switch(l.getAttributeType(S,M)){case"TrustedHTML":return J(st);case"TrustedScriptURL":return P(st)}return st},s0=function(S,M,tt,st){try{return tt?S.setAttributeNS(tt,M,st):S.setAttribute(M,st),es(S)?(Ar(S),!1):!0}catch{return Ur(M,S),!1}},Wh=function(S,M){if(ir(_t.beforeSanitizeAttributes,S,null),mi(S,M))return;const tt=S.attributes;if(!tt||es(S))return;jt=Rh(_t.uponSanitizeAttribute,jt,Te,G);const st={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:jt,forceKeepAttr:void 0};let wt=tt.length;const Ot=Jt(S.nodeName);for(;wt--;){const Rt=tt[wt],Kt=Rt.name,Pe=Rt.namespaceURI,Ee=Rt.value,yi=Jt(Kt),Aa=Ee;let _e=Kt==="value"?Aa:Fx(Aa),Hh=!1;if(st.attrName=yi,st.attrValue=_e,st.keepAttr=!0,st.forceKeepAttr=void 0,ir(_t.uponSanitizeAttribute,S,st),_e=st.attrValue,Y&&(yi==="id"||yi==="name")&&Qh(_e,V)!==0&&(Ur(Kt,S,Rt),_e=V+_e,Hh=!0),Ae&&fe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,_e)){Ur(Kt,S,Rt);continue}if(yi==="attributename"&&Kh(_e,"href")){Ur(Kt,S,Rt);continue}if(!st.forceKeepAttr){if(!st.keepAttr){Ur(Kt,S,Rt);continue}if(!Cr&&fe(Vx,_e)){Ur(Kt,S,Rt);continue}if(we&&(_e=ts(_e)),!zh(Ot,yi,_e)){Ur(Kt,S,Rt);continue}_e=o0(Ot,yi,Pe,_e),_e!==Aa&&s0(S,Kt,Pe,_e)&&Hh&&Zh(t.removed)}}ir(_t.afterSanitizeAttributes,S,null),mi(S,M)},is=function(S){let M=null;const tt=Ih(S);for(ir(_t.beforeSanitizeShadowDOM,S,null);M=tt.nextNode();)if(ir(_t.uponSanitizeShadowNode,M,null),Nh(M,S),Wh(M,S),gi(M.content)&&is(M.content),B(M)===Me.element){const st=k(M);gi(st)&&(Fa(st),is(st))}ir(_t.afterSanitizeShadowDOM,S,null)},Fa=function(S){const M=[{node:S,shadow:null}];for(;M.length>0;){const tt=M.pop();if(tt.shadow){is(tt.shadow);continue}const st=tt.node,wt=B(st)===Me.element,Ot=x(st);if(Ot)for(let Rt=Ot.length-1;Rt>=0;--Rt)M.push({node:Ot[Rt],shadow:null});if(wt){const Rt=v?v(st):null;if(typeof Rt=="string"&&Jt(Rt)==="template"){const Kt=st.content;gi(Kt)&&M.push({node:Kt,shadow:null})}}if(wt){const Rt=k(st);gi(Rt)&&M.push({node:null,shadow:Rt},{node:Rt,shadow:null})}}};return t.sanitize=function(rt){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,tt=null,st=null,wt=null;if(_a=!rt,_a&&(rt="<!-->"),typeof rt!="string"&&!lo(rt)&&(rt=$x(rt),typeof rt!="string"))throw Or("dirty is not a string, aborting");if(!t.isSupported)return rt;E?($t=q,jt=G):Ba(S),(_t.uponSanitizeElement.length>0||_t.uponSanitizeAttribute.length>0)&&($t=$e($t)),_t.uponSanitizeAttribute.length>0&&(jt=$e(jt)),t.removed=[];const Ot=X&&typeof rt!="string"&&lo(rt);if(Ot){t0(rt);const Pe=D(rt);if(typeof Pe=="string"){const Ee=Jt(Pe);if(!$t[Ee]||je[Ee])throw Qo(rt),Or("root node is forbidden and cannot be sanitized in-place")}if(es(rt))throw Qo(rt),Or("root node is clobbered and cannot be sanitized in-place");try{Fa(rt)}catch(Ee){throw Qo(rt),Ee}}else if(lo(rt))M=Ph("<!---->"),tt=M.ownerDocument.importNode(rt,!0),tt.nodeType===Me.element&&tt.nodeName==="BODY"||tt.nodeName==="HTML"?M=tt:M.appendChild(tt),Fa(M);else{if(!Q&&!we&&!g&&rt.indexOf("<")===-1)return j&&O?J(rt):rt;if(M=Ph(rt),!M)return Q?null:O?U:""}M&&N&&Ar(M.firstChild);const Rt=Ot?rt:M;try{const Pe=Ih(Rt);for(;st=Pe.nextNode();)Nh(st,Rt),Wh(st,Rt),gi(st.content)&&is(st.content)}catch(Pe){throw Ot&&(Qo(rt),Kr(t.removed,Ee=>{Ee.element&&Jo(Ee.element)})),Pe}if(Ot){let Pe=!1;if(Kr(t.removed,Ee=>{Ee.element&&(Ee.element===rt&&(Pe=!0),Jo(Ee.element))}),Pe)throw Or("a node selected for removal could not be safely returned; refusing to sanitize in place");return we&&La(rt),rt}if(Q){if(we&&La(M),w)for(wt=Nt.call(M.ownerDocument);M.firstChild;)wt.appendChild(M.firstChild);else wt=M;return(jt.shadowroot||jt.shadowrootmode)&&(wt=Ht.call(i,wt,!0)),wt}let Kt=g?M.outerHTML:M.innerHTML;return g&&$t["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&fe(Yx,M.ownerDocument.doctype.name)&&(Kt="<!DOCTYPE "+M.ownerDocument.doctype.name+`> 4`+Kt),we&&(Kt=ts(Kt)),j&&O?J(Kt):Kt},t.setConfig=function(){let rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ba(rt),E=!0,q=$t,G=jt},t.clearConfig=function(){fi=null,E=!1,q=null,G=null,j=H,U=""},t.isValidAttribute=function(rt,S,M){fi||Ba({});const tt=Jt(rt),st=Jt(S);return zh(tt,st,M)},t.addHook=function(rt,S){typeof S=="function"&&Be(_t,rt)&&ho(_t[rt],S)},t.removeHook=function(rt,S){if(Be(_t,rt)){if(S!==void 0){const M=Bx(_t[rt],S);return M===-1?void 0:Lx(_t[rt],M,1)[0]}return Zh(_t[rt])}},t.removeHooks=function(rt){Be(_t,rt)&&(_t[rt]=[])},t.removeAllHooks=function(){_t=lc()},t}var Gi=wu(),Bn=f((e,t,{depth:r=2}={})=>{const i={depth:r};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(o=>Bn(e,o,i)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(o=>{e.includes(o)||e.push(o)}),e;if(e==null||r<=0)return e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t;if(t!=null&&typeof e=="object"&&typeof t=="object"){const o=e;Object.entries(t).forEach(([s,a])=>{if(typeof a=="object"){if(a===null)return;Object.hasOwn(e,s)||Object.defineProperty(e,s,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),o[s]===void 0&&(o[s]=Array.isArray(a)?[]:{}),typeof o[s]=="object"&&(o[s]=Bn(o[s],a,{depth:r-1}))}else typeof o[s]!="object"&&(Object.hasOwn(e,s)?o[s]=a:Object.defineProperty(e,s,{value:a,writable:!0,enumerable:!0,configurable:!0}))})}return e},"assignWithDepth"),le=Bn,dr="#ffffff",ur="#f2f2f2",Tt=f((e,t)=>t?b(e,{s:-40,l:10}):b(e,{s:-40,l:-10}),"mkBorder"),Mi,Jx=(Mi=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Tt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Tt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Tt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.edgeLabelBackgroun
vendor: 15,124 bytes, line 4
4d=this.edgeLabelBackground||(this.darkMode?R(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||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||I(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.vertLineColor=this.vertLineColor||"navy",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.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||R(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||R(this.mainBkg,10)):(this.rowOdd=this.rowOdd||I(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||I(this.mainBkg,5)),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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=R(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=R(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||F(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||I(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||R(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},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||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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?R(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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroun
vendor: 4,179 bytes, line 4
4dOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}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]})}},f(Mi,"Theme"),Mi),tC=f(e=>{const t=new Jx;return t.calculate(e),t},"getThemeVariables"),Oi,eC=(Oi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=I(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Tt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=I(F("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=qr(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.radius=5,this.strokeWidth=1,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.clusterBkg="#302F3D",this.sectionBkgColor=R("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=R(this.sectionBkgColor,10),this.taskBorderColor=qr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=qr(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.vertLineColor="#00BFFF",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.rowOdd=this.rowOdd||I(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||R(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=I(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.edgeLabelBackgroun
vendor: 5,404 bytes, line 4
4d=I(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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=I(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=F(this.doneTaskBkgColor),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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||F(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||I(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,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";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??I(this["cScale"+t],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148
4C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},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.relationLabelBackgroun
vendor: 4,358 bytes, line 4
4d=this.relationLabelBackground||(this.darkMode?R(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=I(this.secondaryColor,20),this.git1=I(this.pie2||this.secondaryColor,20),this.git2=I(this.pie3||this.tertiaryColor,20),this.git3=I(this.pie4||b(this.primaryColor,{h:-30}),20),this.git4=I(this.pie5||b(this.primaryColor,{h:-60}),20),this.git5=I(this.pie6||b(this.primaryColor,{h:-90}),10),this.git6=I(this.pie7||b(this.primaryColor,{h:60}),10),this.git7=I(this.pie8||b(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||F(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||F(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.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||I("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||I("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||I("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||I("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||I(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||I(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||I(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||I(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]})}},f(Oi,"Theme"),Oi),rC=f(e=>{const t=new eC;return t.calculate(e),t},"getThemeVariables"),$i,iC=($i=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=b(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=Tt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Tt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Tt(this.primaryColor,this.darkMode),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.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackgroun
vendor: 14,592 bytes, line 4
4d="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.clusterBkg="#FBFBFF",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.vertLineColor="calculated",this.sectionBkgColor=qr(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.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",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.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||R(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||R(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=R(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||R(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||b(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||F(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||F(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||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=this.border1,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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||I(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||I(this.primaryColor,1),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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||b(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||b(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||b(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.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)),this.gitInv0=this.gitInv0||R(F(this.git0),25),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||F(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||F(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.tagLabelBackgroun
vendor: 6,942 bytes, line 4
4d=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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),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]})}},f($i,"Theme"),$i),oC=f(e=>{const t=new iC;return t.calculate(e),t},"getThemeVariables"),Di,sC=(Di=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=I("#cde498",10),this.primaryBorderColor=Tt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Tt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.primaryColor),this.lineColor=F(this.background),this.textColor=F(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,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.vertLineColor="#00BFFF",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.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=R(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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||R(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||R(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=R(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||R(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||b(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:30,s:-30,l:-(8+t*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.rowOdd=this.rowOdd||I(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||I(this.mainBkg,20),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.labelBackgroun
vendor: 9,454 bytes, line 4
4dColor=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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(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||b(this.primaryColor,{l:-30}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||b(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.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||F(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||F(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.tagLabelBackgroun
vendor: 7,363 bytes, line 4
4d=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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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]})}},f(Di,"Theme"),Di),aC=f(e=>{const t=new sC;return t.calculate(e),t},"getThemeVariables"),Pi,nC=(Pi=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=I(this.contrast,55),this.background="#ffffff",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=Tt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Tt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(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.radius=5,this.strokeWidth=1,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.vertLineColor="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.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||I(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=I(this.contrast,55),this.border2=this.contrast,this.actorBorder=I(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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 t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||F(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||I(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||R(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{l:-(8+t*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=I(this.contrast,30),this.sectionBkgColor2=I(this.contrast,30),this.taskBorderColor=R(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=I(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=R(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=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.labelBackgroun
vendor: 6,039 bytes, line 4
4dColor=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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];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";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this["cScale"+t];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background}
vendor: 5,394 bytes, line 4
4,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=R(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||b(this.primaryColor,{h:-30}),this.git4=this.pie5||b(this.primaryColor,{h:-60}),this.git5=this.pie6||b(this.primaryColor,{h:-90}),this.git6=this.pie7||b(this.primaryColor,{h:60}),this.git7=this.pie8||b(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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]})}},f(Pi,"Theme"),Pi),lC=f(e=>{const t=new nC;return t.calculate(e),t},"getThemeVariables"),Ii,hC=(Ii=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=Tt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Tt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Tt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Tt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.edgeLabelBackgroun
vendor: 7,150 bytes, line 4
4d=this.edgeLabelBackground||(this.darkMode?R(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||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||I(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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||"#f0f0f0",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||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||b(t,{h:30}),this.cScale4=this.cScale4||b(t,{h:60}),this.cScale5=this.cScale5||b(t,{h:90}),this.cScale6=this.cScale6||b(t,{h:120}),this.cScale7=this.cScale7||b(t,{h:150}),this.cScale8=this.cScale8||b(t,{h:210,l:150}),this.cScale9=this.cScale9||b(t,{h:270}),this.cScale10=this.cScale10||b(t,{h:300}),this.cScale11=this.cScale11||b(t,{h:330}),this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=R(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=R(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||F(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this.darkMode?this["cScalePeer"+s]=this["cScalePeer"+s]||I(this["cScale"+s],10):this["cScalePeer"+s]=this["cScalePeer"+s]||R(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;const o=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||b(this.mainBkg,{h:180,s:-15,l:o*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||b(this.mainBkg,{h:180,s:-15,l:o*(8+s*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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.quadrantExter
vendor: 4,758 bytes, line 4
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?R(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||dr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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]})}},f(Ii,"Theme"),Ii),cC=f(e=>{const t=new hC;return t.calculate(e),t},"getThemeVariables"),Ri,dC=(Ri=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=I(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Tt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=I(F("#323D47"),10),this.border1="#ccc",this.border2=qr(255,255,255,.25),this.arrowheadColor=F(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackgroun
vendor: 4,774 bytes, line 4
4d="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Tt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Tt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Tt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.border1,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?R(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||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||I(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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.labelBackgroun
vendor: 5,036 bytes, line 4
4dColor=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.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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=R(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=R(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||F(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||I(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||R(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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.quadrantExter
vendor: 6,353 bytes, line 4
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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?R(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||dr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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]})}},f(Ri,"Theme"),Ri),uC=f(e=>{const t=new dC;return t.calculate(e),t},"getThemeVariables"),Ni,pC=(Ni=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Tt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Tt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Tt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Tt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.edgeLabelBackgroun
vendor: 6,920 bytes, line 4
4d=this.edgeLabelBackground||(this.darkMode?R(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,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||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||I(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,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.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=this.mainBkg;if(this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=R(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=R(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||F(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this.darkMode?this["cScalePeer"+s]=this["cScalePeer"+s]||I(this["cScale"+s],10):this["cScalePeer"+s]=this["cScalePeer"+s]||R(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;const o=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||b(this.mainBkg,{h:180,s:-15,l:o*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||b(this.mainBkg,{h:180,s:-15,l:o*(8+s*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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.quadrantExter
vendor: 4,916 bytes, line 4
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?R(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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]})}},f(Ni,"Theme"),Ni),fC=f(e=>{const t=new pC;return t.calculate(e),t},"getThemeVariables"),zi,gC=(zi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=I(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Tt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=I(F("#323D47"),10),this.border1="#ccc",this.border2=qr(255,255,255,.25),this.arrowheadColor=F(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackgroun
vendor: 5,021 bytes, line 4
4d="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Tt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Tt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Tt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.border1,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?R(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",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||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||I(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackgroun
vendor: 5,238 bytes, line 4
4d="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,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.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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=R(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=R(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||F(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||I(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||R(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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.quadrantExter
vendor: 4,116 bytes, line 4
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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?R(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>
vendor: 5,438 bytes, line 4
4{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(zi,"Theme"),zi),mC=f(e=>{const t=new gC;return t.calculate(e),t},"getThemeVariables"),qi,yC=(qi=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Tt(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Tt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Tt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Tt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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?R(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||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||I(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.labelBackgroun
vendor: 9,146 bytes, line 4
4dColor=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.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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||F(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this.darkMode?this["cScalePeer"+s]=this["cScalePeer"+s]||I(this["cScale"+s],10):this["cScalePeer"+s]=this["cScalePeer"+s]||R(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;const o=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||b(this.mainBkg,{h:180,s:-15,l:o*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||b(this.mainBkg,{h:180,s:-15,l:o*(8+s*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?R(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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]})}},f(qi,"Theme"),qi),xC=f(e=>{const t=new yC;return t.calculate(e),t},"getThemeVariables"),Wi,CC=(Wi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=I(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Tt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=I(F("#323D47"),10),this.border1="#ccc",this.border2=qr(255,255,255,.25),this.arrowheadColor=F(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackgroun
vendor: 5,253 bytes, line 4
4d="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Tt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Tt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Tt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Tt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.border1,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?R(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",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||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",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||I(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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.labelBackgroun
vendor: 8,772 bytes, line 4
4dColor=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.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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||F(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||I(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||R(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=R(this["cScale"+r],75);const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?I(this.quadrant1Fill):R(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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?R(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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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=>
4{this[i]=t[i]})}},f(Wi,"Theme"),Wi),bC=f(e=>{const t=new CC;return t.calculate(e),t},"getThemeVariables"),Sr={base:{getThemeVariables:tC},dark:{getThemeVariables:rC},default:{getThemeVariables:oC},forest:{getThemeVariables:aC},neutral:{getThemeVariables:lC},neo:{getThemeVariables:cC},"neo-dark":{getThemeVariables:uC},redux:{getThemeVariables:fC},"redux-dark":{getThemeVariables:mC},"redux-color":{getThemeVariables:xC},"redux-dark-color":{getThemeVariables:bC}},de={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},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,maxLabelWidth:360,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"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},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,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},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,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:1
vendor: 7,245 bytes, line 4
40,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,labelRotation:0},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,labelRotation:0},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,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},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:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},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}
vendor: 4,996 bytes, line 4
4,_u={...de,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",nodePlacementAlignment:"NONE",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:Sr.default.getThemeVariables(),sequence:{...de.sequence,messageFont:f(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:f(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:f(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{defaultRenderer:"dagre-wrapper",hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...de.gantt,tickInterval:void 0,useWidth:void 0},c4:{...de.c4,useWidth:void 0,personFont:f(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...de.flowchart,inheritDir:!1},external_personFont:f(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:f(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:f(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:f(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:f(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:f(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:f(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:f(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:f(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:f(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:f(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:f(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:f(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:f(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:f(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:f(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:f(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:f(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:f(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:f(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:f(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...de.pie,useWidth:984}
4,xyChart:{...de.xyChart,useWidth:void 0},requirement:{...de.requirement,useWidth:void 0},packet:{...de.packet},eventmodeling:{...de.eventmodeling},treeView:{...de.treeView,useWidth:void 0},radar:{...de.radar},railroad:{...de.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...de.ishikawa},sankey:{...de.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...de.venn},cynefin:{...de.cynefin}},Su=f((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...Su(e[i],"")]:[...r,t+i],[]),"keyify"),kC=new Set(Su(_u,"")),Tu=_u,wC={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},_C=f((e,t)=>{for(const r of Object.keys(e)){const i=e[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||typeof i!="string"||!t.test(i))&&($.debug("sanitize deleting dictionary entry:",r,i),delete e[r])}},"sanitizeDictionaryConfig"),Os=f(e=>{if($.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Os(t));return}for(const t of Object.keys(e)){if($.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!kC.has(t)||e[t]==null){$.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){const i=wC[t];i?_C(e[t],i):($.debug("sanitizing object",t),Os(e[t]));continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&($.debug("sanitizing css option",t),e[t]=vu(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}$.debug("After sanitization",e)}},"sanitizeDirective"),vu=f(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"),Vi=Object.freeze(Tu),pr=f(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Le=le({},Vi),$s,si=[],Eo=le({},Vi),Ho=f((e,t)=>{let r=le({},e),i={};for(const o of t)Fu(o),i=le(i,o);if(r=le(r,i),i.theme&&i.theme in Sr){const o=le({},$s),s=le(o.themeVariables||{},i.themeVariables);r.theme&&r.theme in Sr&&(r.themeVariables=Sr[r.theme].getThemeVariables(s))}return Eo=r,FC(Eo),Eo},"updateCurrentConfig"),SC=f(e=>(Le=le({},Vi),Le=le(Le,e),e.theme&&Sr[e.theme]&&(Le.themeVariables=Sr[e.theme].getThemeVariables(e.themeVariables)),Ho(Le,si),Le),"setSiteConfig"),TC=f(e=>{$s=le({},e)},"saveConfigFromInitialize"),vC=f(e=>(Le=le(Le,e),Ho(Le,si),Le),"updateSiteConfig"),Bu=f(()=>le({},Le),"getSiteConfig"),Lu=f(e=>(Ho(Eo,[e]),Xt()),"setConfig"),Xt=f(()=>le({},Eo),"getConfig"),Fu=f(e=>{e&&(["secure",...Le.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&($.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"&&Fu(e[t])}))},"sanitize"),BC=f(e=>{Os(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),si.push(e),Ho(Le,si)},"addDirective"),Ds=f((e=Le)=>{si=[],Ho(e,si)},"reset"),LC={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},hc={},Au=f(e=>{hc[e]||($.warn(LC[e]),hc[e]=!0)},"issueWarning"),FC=f(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Au("LAZY_LOAD_DEPRECATED")},"checkConfig"),fA=f(()=>{let e={};
4$s&&(e=le(e,$s));for(const t of si)e=le(e,t);return e},"getUserDefinedConfig"),xe=f(e=>(e.flowchart?.htmlLabels!=null&&Au("FLOWCHART_HTML_LABELS_DEPRECATED"),pr(e.htmlLabels??e.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),Eu=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,Mo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,AC=/\s*%%.*\n/gm,Hi,Mu=(Hi=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},f(Hi,"UnknownDiagramError"),Hi),ai={},fl=f(function(e,t){e=e.replace(Eu,"").replace(Mo,"").replace(AC,` 5`);for(const[r,{detector:i}]of Object.entries(ai))if(i(e,t))return r;throw new Mu(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Ln=f((...e)=>{for(const{id:t,detector:r,loader:i}of e)Ou(t,r,i)},"registerLazyLoadedDiagrams"),Ou=f((e,t,r)=>{ai[e]&&$.warn(`Detector with key ${e} already exists. Overwriting.`),ai[e]={detector:t,loader:r},$.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),EC=f(e=>ai[e].loader,"getDiagramLoader"),jo=/<br\s*\/?>/gi,MC=f(e=>
vendor: 5,824 bytes, lines 5-79
5e?Pu(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),OC=(()=>{let e=!1;return()=>{e||($u(),e=!0)}})();function $u(){const e="data-temp-href-target";Gi.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Gi.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}f($u,"setupDompurifyHooks");var Du=f(e=>(OC(),Gi.sanitize(e)),"removeScript"),cc=f((e,t)=>{if(xe(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=Du(e):r!=="loose"&&(e=Pu(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=IC(e))}return e},"sanitizeMore"),ze=f((e,t)=>e&&(t.dompurifyConfig?e=Gi.sanitize(cc(e,t),t.dompurifyConfig).toString():e=Gi.sanitize(cc(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),$C=f((e,t)=>typeof e=="string"?ze(e,t):e.flat().map(r=>ze(r,t)),"sanitizeTextOrArray"),DC=f(e=>jo.test(e),"hasBreaks"),PC=f(e=>e.split(jo),"splitBreaks"),IC=f(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Pu=f(e=>e.replace(jo,"#br#"),"breakToPlaceholder"),RC=f(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),NC=f(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),zC=f(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),dc=f(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let o=t[i];if(o===","&&i>0&&i+1<t.length){const s=t[i-1],a=t[i+1];qC(s,a)&&(o=s+","+a,i++,r.pop())}r.push(WC(o))}return r.join("")},"parseGenericTypes"),Fn=f((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),qC=f((e,t)=>{const r=Fn(e,"~"),i=Fn(t,"~");return r===1&&i===1},"shouldCombineSets"),WC=f(e=>{const t=Fn(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let o=i.indexOf("~"),s=i.lastIndexOf("~");for(;o!==-1&&s!==-1&&o!==s;)i[o]="<",i[s]=">",o=i.indexOf("~"),s=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),uc=f(()=>window.MathMLElement!==void 0,"isMathMLSupported"),An=/\$\$(.*?)\$\$/g,Do=f(e=>(e.match(An)?.length??0)>0,"hasKatex"),gA=f(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await Iu(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);const o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o},"calculateMathMLDimensions"),HC=f(async(e,t)=>{if(!Do(e))return e;if(!(uc()||t.legacyMathML||t.forceLegacyMathML))return e.replace(An,"MathML is unsupported in this environment.");{const{default:r}=await Ft(async()=>{const{default:o}=await import("./HP8lGamR.js");return{default:o}},[],import.meta.url),i=t.forceLegacyMathML||!uc()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(jo).map(o=>Do(o)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${o}</div>`:`<div>${o}</div>`).join("").replace(An,(o,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Iu=f(async(e,t)=>ze(await HC(e,t),t),"renderKatexSanitized"),Yo={getRows:MC,sanitizeText:ze,sanitizeTextOrArray:$C,hasBreaks:DC,splitBreaks:PC,lineBreakRegex:jo,removeScript:Du,getUrl:RC,evaluate:pr,getMax:NC,getMin:zC},jC=f(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),YC=f(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"),Ru=f(function(e,t,r,i){const o=YC(t,r,i);jC(e,o)},"configureSvgSize"),UC=f(function(e,t,r,i){const o=t.node().getBBox(),s=o.width,a=o.height;$.info(`SVG bounds: ${s}x${a}`,o);let n=0,h=0;$.info(`Graph bounds: ${n}x${h}`,e),n=s+r*2,h=a+r*2,$.info(`Calculated bounds: ${n}x${h}`),Ru(t,h,n,i);const c=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),ks={};function En(e){return[...e.cssRules].map(t=>t.cssText).join(` 6`)}f(En,"cssStyleSheetToString");var GC=f((e,t,r,i)=>{let o="";return e in ks&&ks[e]?o=ks[e]({...r,svgId:i}):$.warn(`No theme found for ${e}`),`& { 7 font-family: ${r.fontFamily}; 8 font-size: ${r.fontSize}; 9 fill: ${r.textColor} 10 } 11 @keyframes edge-animation-frame { 12 from { 13 stroke-dashoffset: 0; 14 } 15 } 16 @keyframes dash { 17 to { 18 stroke-dashoffset: 0; 19 } 20 } 21 & .edge-animation-slow { 22 stroke-dasharray: 9,5 !important; 23 stroke-dashoffset: 900; 24 animation: dash 50s linear infinite; 25 stroke-linecap: round; 26 } 27 & .edge-animation-fast { 28 stroke-dasharray: 9,5 !important; 29 stroke-dashoffset: 900; 30 animation: dash 20s linear infinite; 31 stroke-linecap: round; 32 } 33 /* Classes common for multiple diagrams */ 34 35 & .error-icon { 36 fill: ${r.errorBkgColor}; 37 } 38 & .error-text { 39 fill: ${r.errorTextColor}; 40 stroke: ${r.errorTextColor}; 41 } 42 43 & .edge-thickness-normal { 44 stroke-width: ${r.strokeWidth??1}px; 45 } 46 & .edge-thickness-thick { 47 stroke-width: 3.5px 48 } 49 & .edge-pattern-solid { 50 stroke-dasharray: 0; 51 } 52 & .edge-thickness-invisible { 53 stroke-width: 0; 54 fill: none; 55 } 56 & .edge-pattern-dashed{ 57 stroke-dasharray: 3; 58 } 59 .edge-pattern-dotted { 60 stroke-dasharray: 2; 61 } 62 63 & .marker { 64 fill: ${r.lineColor}; 65 stroke: ${r.lineColor}; 66 } 67 & .marker.cross { 68 stroke: ${r.lineColor}; 69 } 70 71 & svg { 72 font-family: ${r.fontFamily}; 73 font-size: ${r.fontSize}; 74 } 75 & p { 76 margin: 0 77 } 78 79 ${o}
80 .node .neo-node { 81 stroke: ${r.nodeBorder}; 82 } 83 84 [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { 85 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 86 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 87 } 88 [data-look="neo"].swimlane.cluster rect { 89 filter: none; 90 } 91 92 93 [data-look="neo"].node path { 94 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 95 stroke-width: ${r.strokeWidth??1}px; 96 } 97 98 [data-look="neo"].node .outer-path { 99 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 100 } 101 102 [data-look="neo"].node .neo-line path { 103 stroke: ${r.nodeBorder}; 104 filter: none; 105 } 106 107 [data-look="neo"].node circle{ 108 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 109 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 110 } 111 112 [data-look="neo"].node circle .state-start{ 113 fill: #000000; 114 } 115 116 [data-look="neo"].icon-shape .icon { 117 fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 118 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 119 } 120 121 [data-look="neo"].icon-shape .icon-neo path { 122 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 123 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 124 } 125 126 ${t} 127`},"getStyles"),VC=f((e,t)=>{t!==void 0&&(ks[e]=t)},"addStylesForDiagram"),XC=GC,Nu={};dx(Nu,{clear:()=>ZC,getAccDescription:()=>tb,getAccTitle:()=>QC,getDiagramTitle:()=>rb,setAccDescription:()=>JC,setAccTitle:()=>KC,setDiagramTitle:()=>eb});var gl="",ml="",yl="",xl=f(e=>ze(e,Xt()),"sanitizeText"),ZC=f(()=>{gl="",yl="",ml=""},"clear"),KC=f(e=>{gl=xl(e).replace(/^\s+/g,"")},"setAccTitle"),QC=f(()=>gl,"getAccTitle"),JC=f(e=>{yl=xl(e).replace(/\n\s+/g,` 128`)},"setAccDescription"),tb=f(()=>yl,"getAccDescription"),eb=f(e=>{ml=xl(e)},"setDiagramTitle"),rb=f(()=>ml,"getDiagramTitle"),pc=$,ib=pl,Mt=Xt,mA=Lu,yA=Vi,Cl=f(e=>ze(e,Mt()),"sanitizeText"),ob=UC,sb=f(()=>Nu,"getCommonDb"),Ps={},Is=f((e,t,r)=>{Ps[e]&&pc.warn(`Diagram with id ${e} already registered. Overwriting.`),Ps[e]=t,r&&Ou(e,r),VC(e,t.styles),t.injectUtils?.(pc,ib,Mt,Cl,ob,sb(),()=>{})},"registerDiagram"),Mn=f(e=>{if(e in Ps)return Ps[e];throw new ab(e)},"getDiagram"),ji,ab=(ji=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},f(ji,"DiagramNotFoundError"),ji),nb={value:()=>{}};function zu(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new ws(r)}function ws(e){this._=e}function lb(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",o=r.indexOf(".");if(o>=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}ws.prototype=zu.prototype={constructor:ws,on:function(e,t){var r=this._,i=lb(e+"",r),o,s=-1,a=i.length;if(arguments.length<2){for(;++s<a;)if((o=(e=i[s]).type)&&(o=hb(r[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<a;)if(o=(e=i[s]).type)r[o]=fc(r[o],e.name,t);else if(t==null)for(o in r)r[o]=fc(r[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new ws(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var r=new Array(o),i=0,o,s;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],i=0,o=s.length;i<o;++i)s[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,s=i.length;o<s;++o)i[o].value.apply(t,r)}};function hb(e,t){for(var r=0,i=e.length,o;r<i;++r)if((o=e[r]).name===t)return o.value}function fc(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=nb,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var On="http://www.w3.org/1999/xhtml";const gc={svg:"http://www.w3.org/2000/svg",xhtml:On,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function sa(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),gc.hasOwnProperty(t)?{space:gc[t],local:e}:e}function cb(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===On&&t.documentElement.namespaceURI===On?t.createElement(e):t.createElementNS(r,e)}}function db(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function qu(e){var t=sa(e);return(t.local?db:cb)(t)}function ub(){}function bl(e){return e==null?ub:function(){return this.querySelector(e)}}function pb(e){typeof e!="function"&&(e=bl(e));for(var t=this._groups,r=t.length,i=new Array(r),o=0;o<r;++o)for(var s=t[o],a=s.length,n=i[o]=new Array(a),h,c,l=0;l<a;++l)(h=s[l])&&(c=e.call(h,h.__data__,l,s))&&("__data__"in h&&(c.__data__=h.__data__),n[l]=c);return new De(i,this._parents)}function fb(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function gb(){return[]}function Wu(e){return e==null?gb:function(){return this.querySelectorAll(e)}}function mb(e){return function(){return fb(e.apply(this,arguments))}}function yb(e){typeof e=="function"?e=mb(e):e=Wu(e);for(var t=this._groups,r=t.length,i=[],o=[],s=0;s<r;++s)for(var a=t[s],n=a.length,h,c=0;c<n;++c)(h=a[c])&&(i.push(e.call(h,h.__data__,c,a)),o.push(h));return new De(i,o)}function Hu(e){return function(){return this.matches(e)}}function ju(e){return function(t){return t.matches(e)}}var xb=Array.prototype.find;function Cb(e){return function(){return xb.call(this.children,e)}}function bb(){return this.firstElementChild}function kb(e){return this.select(e==null?bb:Cb(typeof e=="function"?e:ju(e)))}var wb=Array.prototype.filter;function _b(){return Array.from(this.children)}function Sb(e){return function(){return wb.call(this.children,e)}}function Tb(e){return this.selectAll(e==null?_b:Sb(typeof e=="function"?e:ju(e)))}function vb(e){typeof e!="function"&&(e=Hu(e));for(var t=this._groups,r=t.length,i=new Array(r),o=0;o<r;++o)for(var s=t[o],a=s.length,n=i[o]=[],h,c=0;c<a;++c)(h=s[c])&&e.call(h,h.__data__,c,s)&&n.push(h);return new De(i,this._parents)}function Yu(e){return new Array(e.length)}function Bb(){return new De(this._enter||this._groups.map(Yu),this._parents)}function Rs(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Rs.prototype={constructor:Rs,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};
vendor: 27,047 bytes, line 128
128function Lb(e){return function(){return e}}function Fb(e,t,r,i,o,s){for(var a=0,n,h=t.length,c=s.length;a<c;++a)(n=t[a])?(n.__data__=s[a],i[a]=n):r[a]=new Rs(e,s[a]);for(;a<h;++a)(n=t[a])&&(o[a]=n)}function Ab(e,t,r,i,o,s,a){var n,h,c=new Map,l=t.length,d=s.length,u=new Array(l),p;for(n=0;n<l;++n)(h=t[n])&&(u[n]=p=a.call(h,h.__data__,n,t)+"",c.has(p)?o[n]=h:c.set(p,h));for(n=0;n<d;++n)p=a.call(e,s[n],n,s)+"",(h=c.get(p))?(i[n]=h,h.__data__=s[n],c.delete(p)):r[n]=new Rs(e,s[n]);for(n=0;n<l;++n)(h=t[n])&&c.get(u[n])===h&&(o[n]=h)}function Eb(e){return e.__data__}function Mb(e,t){if(!arguments.length)return Array.from(this,Eb);var r=t?Ab:Fb,i=this._parents,o=this._groups;typeof e!="function"&&(e=Lb(e));for(var s=o.length,a=new Array(s),n=new Array(s),h=new Array(s),c=0;c<s;++c){var l=i[c],d=o[c],u=d.length,p=Ob(e.call(l,l&&l.__data__,c,i)),y=p.length,m=n[c]=new Array(y),x=a[c]=new Array(y),C=h[c]=new Array(u);r(l,d,m,x,C,p,t);for(var k=0,_=0,T,v;k<y;++k)if(T=m[k]){for(k>=_&&(_=k+1);!(v=x[_])&&++_<y;);T._next=v||null}}return a=new De(a,i),a._enter=n,a._exit=h,a}function Ob(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $b(){return new De(this._exit||this._groups.map(Yu),this._parents)}function Db(e,t,r){var i=this.enter(),o=this,s=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),r==null?s.remove():r(s),i&&o?i.merge(o).order():o}function Pb(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,o=r.length,s=i.length,a=Math.min(o,s),n=new Array(o),h=0;h<a;++h)for(var c=r[h],l=i[h],d=c.length,u=n[h]=new Array(d),p,y=0;y<d;++y)(p=c[y]||l[y])&&(u[y]=p);for(;h<o;++h)n[h]=r[h];return new De(n,this._parents)}function Ib(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],o=i.length-1,s=i[o],a;--o>=0;)(a=i[o])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function Rb(e){e||(e=Nb);function t(d,u){return d&&u?e(d.__data__,u.__data__):!d-!u}for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s){for(var a=r[s],n=a.length,h=o[s]=new Array(n),c,l=0;l<n;++l)(c=a[l])&&(h[l]=c);h.sort(t)}return new De(o,this._parents).order()}function Nb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function zb(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function qb(){return Array.from(this)}function Wb(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],o=0,s=i.length;o<s;++o){var a=i[o];if(a)return a}return null}function Hb(){let e=0;for(const t of this)++e;return e}function jb(){return!this.node()}function Yb(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var o=t[r],s=0,a=o.length,n;s<a;++s)(n=o[s])&&e.call(n,n.__data__,s,o);return this}function Ub(e){return function(){this.removeAttribute(e)}}function Gb(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Vb(e,t){return function(){this.setAttribute(e,t)}}function Xb(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zb(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Kb(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Qb(e,t){var r=sa(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?Gb:Ub:typeof t=="function"?r.local?Kb:Zb:r.local?Xb:Vb)(r,t))}function Uu(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Jb(e){return function(){this.style.removeProperty(e)}}function tk(e,t,r){return function(){this.style.setProperty(e,t,r)}}function ek(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function rk(e,t,r){return arguments.length>1?this.each((t==null?Jb:typeof t=="function"?ek:tk)(e,t,r??"")):Xi(this.node(),e)}function Xi(e,t){return e.style.getPropertyValue(t)||Uu(e).getComputedStyle(e,null).getPropertyValue(t)}function ik(e){return function(){delete this[e]}}function ok(e,t){return function(){this[e]=t}}function sk(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function ak(e,t){return arguments.length>1?this.each((t==null?ik:typeof t=="function"?sk:ok)(e,t)):this.node()[e]}function Gu(e){return e.trim().split(/^|\s+/)}function kl(e){return e.classList||new Vu(e)}function Vu(e){this._node=e,this._names=Gu(e.getAttribute("class")||"")}Vu.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Xu(e,t){for(var r=kl(e),i=-1,o=t.length;++i<o;)r.add(t[i])}function Zu(e,t){for(var r=kl(e),i=-1,o=t.length;++i<o;)r.remove(t[i])}function nk(e){return function(){Xu(this,e)}}function lk(e){return function(){Zu(this,e)}}function hk(e,t){return function(){(t.apply(this,arguments)?Xu:Zu)(this,e)}}function ck(e,t){var r=Gu(e+"");if(arguments.length<2){for(var i=kl(this.node()),o=-1,s=r.length;++o<s;)if(!i.contains(r[o]))return!1;return!0}return this.each((typeof t=="function"?hk:t?nk:lk)(r,t))}function dk(){this.textContent=""}function uk(e){return function(){this.textContent=e}}function pk(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function fk(e){return arguments.length?this.each(e==null?dk:(typeof e=="function"?pk:uk)(e)):this.node().textContent}function gk(){this.innerHTML=""}function mk(e){return function(){this.innerHTML=e}}function yk(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function xk(e){return arguments.length?this.each(e==null?gk:(typeof e=="function"?yk:mk)(e)):this.node().innerHTML}function Ck(){this.nextSibling&&this.parentNode.appendChild(this)}function bk(){return this.each(Ck)}function kk(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wk(){return this.each(kk)}function _k(e){var t=typeof e=="function"?e:qu(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Sk(){return null}function Tk(e,t){var r=typeof e=="function"?e:qu(e),i=t==null?Sk:typeof t=="function"?t:bl(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function vk(){var e=this.parentNode;e&&e.removeChild(this)}function Bk(){return this.each(vk)}function Lk(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Fk(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ak(e){return this.select(e?Fk:Lk)}function Ek(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Mk(e){return function(t){e.call(this,t,this.__data__)}}function Ok(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function $k(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,o=t.length,s;r<o;++r)s=t[r],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++i]=s;++i?t.length=i:delete this.__on}}}function Dk(e,t,r){return function(){var i=this.__on,o,s=Mk(t);if(i){for(var a=0,n=i.length;a<n;++a)if((o=i[a]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=s,o.options=r),o.value=t;return}}this.addEventListener(e.type,s,r),o={type:e.type,name:e.name,value:t,listener:s,options:r},i?i.push(o):this.__on=[o]}}function Pk(e,t,r){var i=Ok(e+""),o,s=i.length,a;if(arguments.length<2){var n=this.node().__on;if(n){for(var h=0,c=n.length,l;h<c;++h)for(o=0,l=n[h];o<s;++o)if((a=i[o]).type===l.type&&a.name===l.name)return l.value}return}for(n=t?Dk:$k,o=0;o<s;++o)this.each(n(i[o],t,r));return this}function Ku(e,t,r){var i=Uu(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,r):(o=i.document.createEvent("Event"),r?(o.initEvent(t,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Ik(e,t){return function(){return Ku(this,e,t)}}function Rk(e,t){return function(){return Ku(this,e,t.apply(this,arguments))}}function Nk(e,t){return this.each((typeof t=="function"?Rk:Ik)(e,t))}function*zk(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],o=0,s=i.length,a;o<s;++o)(a=i[o])&&(yield a)}var Qu=[null];function De(e,t){this._groups=e,this._parents=t}function Uo(){return new De([[document.documentElement]],Qu)}function qk(){return this}De.prototype=Uo.prototype={constructor:De,select:pb,selectAll:yb,selectChild:kb,selectChildren:Tb,filter:vb,data:Mb,enter:Bb,exit:$b,join:Db,merge:Pb,selection:qk,order:Ib,sort:Rb,call:zb,nodes:qb,node:Wb,size:Hb,empty:jb,each:Yb,attr:Qb,style:rk,property:ak,classed:ck,text:fk,html:xk,raise:bk,lower:wk,append:_k,insert:Tk,remove:Bk,clone:Ak,datum:Ek,on:Pk,dispatch:Nk,[Symbol.iterator]:zk};function Bt(e){return typeof e=="string"?new De([[document.querySelector(e)]],[document.documentElement]):new De([[e]],Qu)}function wl(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ju(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Go(){}var Po=.7,Ns=1/Po,Ai="\\s*([+-]?\\d+)\\s*",Io="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wk=/^#([0-9a-f]{3,8})$/,Hk=new RegExp(`^rgb\\(${Ai},${Ai},${Ai}\\)$`),jk=new RegExp(`^rgb\\(${hr},${hr},${hr}\\)$`),Yk=new RegExp(`^rgba\\(${Ai},${Ai},${Ai},${Io}\\)$`),Uk=new RegExp(`^rgba\\(${hr},${hr},${hr},${Io}\\)$`),Gk=new RegExp(`^hsl\\(${Io},${hr},${hr}\\)$`),Vk=new RegExp(`^hsla\\(${Io},${hr},${hr},${Io}\\)$`),mc={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};wl(Go,Ro,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:yc,formatHex:yc,formatHex8:Xk,formatHsl:Zk,formatRgb:xc,toString:xc});function yc(){return this.rgb().formatHex()}function Xk(){return this.rgb().formatHex8()}function Zk(){return tp(this).formatHsl()}function xc(){return this.rgb().formatRgb()}function Ro(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Wk.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Cc(t):r===3?new Fe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ns(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ns(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Hk.exec(e))?new Fe(t[1],t[2],t[3],1):(t=jk.exec(e))?new Fe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Yk.exec(e))?ns(t[1],t[2],t[3],t[4]):(t=Uk.exec(e))?ns(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gk.exec(e))?wc(t[1],t[2]/100,t[3]/100,1):(t=Vk.exec(e))?wc(t[1],t[2]/100,t[3]/100,t[4]):mc.hasOwnProperty(e)?Cc(mc[e]):e==="transparent"?new Fe(NaN,NaN,NaN,0):null}function Cc(e){return new Fe(e>>16&255,e>>8&255,e&255,1)}function ns(e,t,r,i){return i<=0&&(e=t=r=NaN),new Fe(e,t,r,i)}function Kk(e){return e instanceof Go||(e=Ro(e)),e?(e=e.rgb(),new Fe(e.r,e.g,e.b,e.opacity)):new Fe}function $n(e,t,r,i){return arguments.length===1?Kk(e):new Fe(e,t,r,i??1)}function Fe(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}wl(Fe,$n,Ju(Go,{brighter(e){return e=e==null?Ns:Math.pow(Ns,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Po:Math.pow(Po,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fe(ii(this.r),ii(this.g),ii(this.b),zs(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bc,formatHex:bc,formatHex8:Qk,formatRgb:kc,toString:kc}));function bc(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}`}function Qk(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}${ei((isNaN(this.opacity)?1:this.opacity)*255)}`}function kc(){const e=zs(this.opacity);return`${e===1?"rgb(":"rgba("}${ii(this.r)}, ${ii(this.g)}, ${ii(this.b)}${e===1?")":`, ${e})`}`}function zs(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ii(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ei(e){return e=ii(e),(e<16?"0":"")+e.toString(16)}function wc(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ve(e,t,r,i)}function tp(e){if(e instanceof Ve)return new Ve(e.h,e.s,e.l,e.opacity);if(e instanceof Go||(e=Ro(e)),!e)return new Ve;if(e instanceof Ve)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,o=Math.min(t,r,i),s=Math.max(t,r,i),a=NaN,n=s-o,h=(s+o)/2;return n?(t===s?a=(r-i)/n+(r<i)*6:r===s?a=(i-t)/n+2:a=(t-r)/n+4,n/=h<.5?s+o:2-s-o,a*=60):n=h>0&&h<1?0:a,new Ve(a,n,h,e.opacity)}function Jk(e,t,r,i){return arguments.length===1?tp(e):new Ve(e,t,r,i??1)}function Ve(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}wl(Ve,Jk,Ju(Go,{brighter(e){return e=e==null?Ns:Math.pow(Ns,e),new Ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Po:Math.pow(Po,e),new Ve(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,o=2*r-i;return new Fe(Ra(e>=240?e-240:e+120,o,i),Ra(e,o,i),Ra(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Ve(_c(this.h),ls(this.s),ls(this.l),zs(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=zs(this.opacity);return`${e===1?"hsl(":"hsla("}${_c(this.h)}, ${ls(this.s)*100}%, ${ls(this.l)*100}%${e===1?")":`, ${e})`}`}}));function _c(e){return e=(e||0)%360,e<0?e+360:e}function ls(e){return Math.max(0,Math.min(1,e||0))}function Ra(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const _l=e=>()=>e;function ep(e,t){return function(r){return e+r*t}}function t1(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function xA(e,t){var r=t-e;return r?ep(e,r>180||r<-180?r-360*Math.round(r/360):r):_l(isNaN(e)?t:e)}function e1(e){return(e=+e)==1?rp:function(t,r){return r-t?t1(t,r,e):_l(isNaN(t)?r:t)}}function rp(e,t){var r=t-e;return r?ep(e,r):_l(isNaN(e)?t:e)}const Sc=(function e(t){var r=e1(t);function i(o,s){var a=r((o=$n(o)).r,(s=$n(s)).r),n=r(o.g,s.g),h=r(o.b,s.b),c=rp(o.opacity,s.opacity);return function(l){return o.r=a(l),o.g=n(l),o.b=h(l),o.opacity=c(l),o+""}}return i.gamma=e,i})(1);function Ir(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Dn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Na=new RegExp(Dn.source,"g");function r1(e){return function(){return e}}function i1(e){return function(t){return e(t)+""}}function o1(e,t){var r=Dn.lastIndex=Na.lastIndex=0,i,o,s,a=-1,n=[],h=[];for(e=e+"",t=t+"";(i=Dn.exec(e))&&(o=Na.exec(t));)(s=o.index)>r&&(s=t.slice(r,s),n[a]?n[a]+=s:n[++a]=s),(i=i[0])===(o=o[0])?n[a]?n[a]+=o:n[++a]=o:(n[++a]=null,h.push({i:a,x:Ir(i,o)})),r=Na.lastIndex;return r<t.length&&(s=t.slice(r),n[a]?n[a]+=s:n[++a]=s),n.length<2?h[0]?i1(h[0].x):r1(t):(t=h.length,function(c){for(var l=0,d;l<t;++l)n[(d=h[l]).i]=d.x(c);return n.join("")})}var Tc=180/Math.PI,Pn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ip(e,t,r,i,o,s){var a,n,h;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(h=e*r+t*i)&&(r-=e*h,i-=t*h),(n=Math.sqrt(r*r+i*i))&&(r/=n,i/=n,h/=n),e*i<t*r&&(e=-e,t=-t,h=-h,a=-a),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*Tc,skewX:Math.atan(h)*Tc,scaleX:a,scaleY:n}}var hs;function s1(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Pn:ip(t.a,t.b,t.c,t.d,t.e,t.f)}function a1(e){return e==null||(hs||(hs=document.createElementNS("http://www.w3.org/2000/svg","g")),hs.setAttribute("transform",e),!(e=hs.transform.baseVal.consolidate()))?Pn:(e=e.matrix,ip(e.a,e.b,e.c,e.d,e.e,e.f))}function op(e,t,r,i){function o(c){return c.length?c.pop()+" ":""}function s(c,l,d,u,p,y){if(c!==d||l!==u){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:Ir(c,d)},{i:m-2,x:Ir(l,u)})}else(d||u)&&p.push("translate("+d+t+u+r)}function a(c,l,d,u){c!==l?(c-l>180?l+=360:l-c>180&&(c+=360),u.push({i:d.push(o(d)+"rotate(",null,i)-2,x:Ir(c,l)})):l&&d.push(o(d)+"rotate("+l+i)}function n(c,l,d,u){c!==l?u.push({i:d.push(o(d)+"skewX(",null,i)-2,x:Ir(c,l)}):l&&d.push(o(d)+"skewX("+l+i)}function h(c,l,d,u,p,y){if(c!==d||l!==u){var m=p.push(o(p)+"scale(",null,",",null,")");y.push({i:m-4,x:Ir(c,d)},{i:m-2,x:Ir(l,u)})}else(d!==1||u!==1)&&p.push(o(p)+"scale("+d+","+u+")")}return function(c,l){var d=[],u=[];return c=e(c),l=e(l),s(c.translateX,c.translateY,l.translateX,l.translateY,d,u),a(c.rotate,l.rotate,d,u),n(c.skewX,l.skewX,d,u),h(c.scaleX,c.scaleY,l.scaleX,l.scaleY,d,u),c=l=null,function(p){for(var y=-1,m=u.length,x;++y<m;)d[(x=u[y]).i]=x.x(p);return d.join("")}}}var n1=op(s1,"px, ","px)","deg)"),l1=op(a1,", ",")",")"),Zi=0,wo=0,po=0,sp=1e3,qs,_o,Ws=0,ni=0,aa=0,No=typeof performance=="object"&&performance.now?performance:Date,ap=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Sl(){return ni||(ap(h1),ni=No.now()+aa)}function h1(){ni=0}function Hs(){this._call=this._time=this._next=null}Hs.prototype=np.prototype={constructor:Hs,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Sl():+r)+(t==null?0:+t),!this._next&&_o!==this&&(_o?_o._next=this:qs=this,_o=this),this._call=e,this._time=r,In()},stop:function(){this._call&&(this._call=null,this._time=1/0,In())}};function np(e,t,r){var i=new Hs;return i.restart(e,t,r),i}function c1(){Sl(),++Zi;for(var e=qs,t;e;)(t=ni-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Zi}function vc(){ni=(Ws=No.now())+aa,Zi=wo=0;try{c1()}finally{Zi=0,u1(),ni=0}}function d1(){var e=No.now(),t=e-Ws;t>sp&&(aa-=t,Ws=e)}function u1(){for(var e,t=qs,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:qs=r);_o=e,In(i)}function In(e){if(!Zi){wo&&(wo=clearTimeout(wo));var t=e-ni;t>24?(e<1/0&&(wo=setTimeout(vc,e-No.now()-aa)),po&&(po=clearInterval(po))):(po||(Ws=No.now(),po=setInterval(d1,sp)),Zi=1,ap(vc))}}function Bc(e,t,r){var i=new Hs;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,r),i}var p1=zu("start","end","cancel","interrupt"),f1=[],lp=0,Lc=1,Rn=2,_s=3,Fc=4,Nn=5,Ss=6;function na(e,t,r,i,o,s){var a=e.__transition;if(!a)e.__transition={};else if(r in a)return;g1(e,r,{name:t,index:i,group:o,on:p1,tween:f1,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:lp})}function Tl(e,t){var r=Qe(e,t);if(r.state>lp)throw new Error("too late; already scheduled");return r}function fr(e,t){var r=Qe(e,t);if(r.state>_s)throw new Error("too late; already running");return r}function Qe(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function g1(e,t,r){var i=e.__transition,o;i[t]=r,r.timer=np(s,0,r.time);function s(c){r.state=Lc,r.timer.restart(a,r.delay,r.time),r.delay<=c&&a(c-r.delay)}function a(c){var l,d,u,p;if(r.state!==Lc)return h();for(l in i)if(p=i[l],p.name===r.name){if(p.state===_s)return Bc(a);p.state===Fc?(p.state=Ss,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[l]):+l<t&&(p.state=Ss,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete i[l])}if(Bc(function(){r.state===_s&&(r.state=Fc,r.timer.restart(n,r.delay,r.time),n(c))}),r.state=Rn,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Rn){for(r.state=_s,o=new Array(u=r.tween.length),l=0,d=-1;l<u;++l)(p=r.tween[l].value.call(e,e.__data__,r.index,r.group))&&(o[++d]=p);o.length=d+1}}function n(c){for(var l=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(h),r.state=Nn,1),d=-1,u=o.length;++d<u;)o[d].call(e,l);r.state===Nn&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Ss,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function m1(e,t){var r=e.__transition,i,o,s=!0,a;if(r){t=t==null?null:t+"";for(a in r){if((i=r[a]).name!==t){s=!1;continue}o=i.state>Rn&&i.state<Nn,i.state=Ss,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[a]}s&&delete e.__transition}}function y1(e){return this.each(function(){m1(this,e)})}function x1(e,t){var r,i;return function(){var o=fr(this,e),s=o.tween;if(s!==r){i=r=s;for(var a=0,n=i.length;a<n;++a)if(i[a].name===t){i=i.slice(),i.splice(a,1);break}}o.tween=i}}function C1(e,t,r){var i,o;if(typeof r!="function")throw new Error;return function(){var s=fr(this,e),a=s.tween;if(a!==i){o=(i=a).slice();for(var n={name:t,value:r},h=0,c=o.length;h<c;++h)if(o[h].name===t){o[h]=n;break}h===c&&o.push(n)}s.tween=o}}function b1(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Qe(this.node(),r).tween,o=0,s=i.length,a;o<s;++o)if((a=i[o]).name===e)return a.value;return null}return this.each((t==null?x1:C1)(r,e,t))}function vl(e,t,r){var i=e._id;return e.each(function(){var o=fr(this,i);(o.value||(o.value={}))[t]=r.apply(this,arguments)}),function(o){return Qe(o,i).value[t]}}function hp(e,t){var r;return(typeof t=="number"?Ir:t instanceof Ro?Sc:(r=Ro(t))?(t=r,Sc):o1)(e,t)}function k1(e){return function(){this.removeAttribute(e)}}function w1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _1(e,t,r){var i,o=r+"",s;return function(){var a=this.getAttribute(e);return a===o?null:a===i?s:s=t(i=a,r)}}function S1(e,t,r){var i,o=r+"",s;return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===i?s:s=t(i=a,r)}}function T1(e,t,r){var i,o,s;return function(){var a,n=r(this),h;return n==null?void this.removeAttribute(e):(a=this.getAttribute(e),h=n+"",a===h?null:a===i&&h===o?s:(o=h,s=t(i=a,n)))}}function v1(e,t,r){var i,o,s;return function(){var a,n=r(this),h;return n==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),h=n+"",a===h?null:a===i&&h===o?s:(o=h,s=t(i=a,n)))}}function B1(e,t){var r=sa(e),i=r==="transform"?l1:hp;return this.attrTween(e,typeof t=="function"?(r.local?v1:T1)(r,i,vl(this,"attr."+e,t)):t==null?(r.local?w1:k1)(r):(r.local?S1:_1)(r,i,t))}function L1(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function F1(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function A1(e,t){var r,i;function o(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&F1(e,s)),r}return o._value=t,o}function E1(e,t){var r,i;function o(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&L1(e,s)),r}return o._value=t,o}function M1(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=sa(e);return this.tween(r,(i.local?A1:E1)(i,t))}function O1(e,t){return function(){Tl(this,e).delay=+t.apply(this,arguments)}}function $1(e,t){return t=+t,function(){Tl(this,e).delay=t}}function D1(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?O1:$1)(t,e)):Qe(this.node(),t).delay}function P1(e,t){return function(){fr(this,e).duration=+t.apply(this,arguments)}}function I1(e,t){return t=+t,function(){fr(this,e).duration=t}}function R1(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?P1:I1)(t,e)):Qe(this.node(),t).duration}function N1(e,t){if(typeof t!="function")throw new Error;return function(){fr(this,e).ease=t}}function z1(e){var t=this._id;return arguments.length?this.each(N1(t,e)):Qe(this.node(),t).ease}function q1(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;fr(this,e).ease=r}}function W1(e){if(typeof e!="function")throw new Error;return this.each(q1(this._id,e))}function H1(e){typeof e!="function"&&(e=Hu(e));for(var t=this._groups,r=t.length,i=new Array(r),o=0;o<r;++o)for(var s=t[o],a=s.length,n=i[o]=[],h,c=0;c<a;++c)(h=s[c])&&e.call(h,h.__data__,c,s)&&n.push(h);return new Tr(i,this._parents,this._name,this._id)}function j1(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,o=r.length,s=Math.min(i,o),a=new Array(i),n=0;n<s;++n)for(var h=t[n],c=r[n],l=h.length,d=a[n]=new Array(l),u,p=0;p<l;
vendor: 3,390 bytes, line 128
128++p)(u=h[p]||c[p])&&(d[p]=u);for(;n<i;++n)a[n]=t[n];return new Tr(a,this._parents,this._name,this._id)}function Y1(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function U1(e,t,r){var i,o,s=Y1(t)?Tl:fr;return function(){var a=s(this,e),n=a.on;n!==i&&(o=(i=n).copy()).on(t,r),a.on=o}}function G1(e,t){var r=this._id;return arguments.length<2?Qe(this.node(),r).on.on(e):this.each(U1(r,e,t))}function V1(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function X1(){return this.on("end.remove",V1(this._id))}function Z1(e){var t=this._name,r=this._id;typeof e!="function"&&(e=bl(e));for(var i=this._groups,o=i.length,s=new Array(o),a=0;a<o;++a)for(var n=i[a],h=n.length,c=s[a]=new Array(h),l,d,u=0;u<h;++u)(l=n[u])&&(d=e.call(l,l.__data__,u,n))&&("__data__"in l&&(d.__data__=l.__data__),c[u]=d,na(c[u],t,r,u,c,Qe(l,r)));return new Tr(s,this._parents,t,r)}function K1(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Wu(e));for(var i=this._groups,o=i.length,s=[],a=[],n=0;n<o;++n)for(var h=i[n],c=h.length,l,d=0;d<c;++d)if(l=h[d]){for(var u=e.call(l,l.__data__,d,h),p,y=Qe(l,r),m=0,x=u.length;m<x;++m)(p=u[m])&&na(p,t,r,m,u,y);s.push(u),a.push(l)}return new Tr(s,a,t,r)}var Q1=Uo.prototype.constructor;function J1(){return new Q1(this._groups,this._parents)}function t2(e,t){var r,i,o;return function(){var s=Xi(this,e),a=(this.style.removeProperty(e),Xi(this,e));return s===a?null:s===r&&a===i?o:o=t(r=s,i=a)}}function cp(e){return function(){this.style.removeProperty(e)}}function e2(e,t,r){var i,o=r+"",s;return function(){var a=Xi(this,e);return a===o?null:a===i?s:s=t(i=a,r)}}function r2(e,t,r){var i,o,s;return function(){var a=Xi(this,e),n=r(this),h=n+"";return n==null&&(h=n=(this.style.removeProperty(e),Xi(this,e))),a===h?null:a===i&&h===o?s:(o=h,s=t(i=a,n))}}function i2(e,t){var r,i,o,s="style."+t,a="end."+s,n;return function(){var h=fr(this,e),c=h.on,l=h.value[s]==null?n||(n=cp(t)):void 0;(c!==r||o!==l)&&(i=(r=c).copy()).on(a,o=l),h.on=i}}function o2(e,t,r){var i=(e+="")=="transform"?n1:hp;return t==null?this.styleTween(e,t2(e,i)).on("end.style."+e,cp(e)):typeof t=="function"?this.styleTween(e,r2(e,i,vl(this,"style."+e,t))).each(i2(this._id,e)):this.styleTween(e,e2(e,i,t),r).on("end.style."+e,null)}function s2(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function a2(e,t,r){var i,o;function s(){var a=t.apply(this,arguments);return a!==o&&(i=(o=a)&&s2(e,a,r)),i}return s._value=t,s}function n2(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,a2(e,t,r??""))}function l2(e){return function(){this.textContent=e}}function h2(e){return function(){var t=e(this);this.textContent=t??""}}function c2(e){return this.tween("text",typeof e=="function"?h2(vl(this,"text",e)):l2(e==null?"":e+""))}function d2(e){return function(t){this.textContent=e.call(this,t)}}function u2(e){var t,r;function i(){var o=e.apply(this,arguments);return o!==r&&(t=(r=o)&&d2(o)),t}return i._value=e,i}function p2(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,u2(e))}
vendor: 29,053 bytes, line 128
128function f2(){for(var e=this._name,t=this._id,r=dp(),i=this._groups,o=i.length,s=0;s<o;++s)for(var a=i[s],n=a.length,h,c=0;c<n;++c)if(h=a[c]){var l=Qe(h,t);na(h,e,r,c,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Tr(i,this._parents,e,r)}function g2(){var e,t,r=this,i=r._id,o=r.size();return new Promise(function(s,a){var n={value:a},h={value:function(){--o===0&&s()}};r.each(function(){var c=fr(this,i),l=c.on;l!==e&&(t=(e=l).copy(),t._.cancel.push(n),t._.interrupt.push(n),t._.end.push(h)),c.on=t}),o===0&&s()})}var m2=0;function Tr(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function dp(){return++m2}var kr=Uo.prototype;Tr.prototype={constructor:Tr,select:Z1,selectAll:K1,selectChild:kr.selectChild,selectChildren:kr.selectChildren,filter:H1,merge:j1,selection:J1,transition:f2,call:kr.call,nodes:kr.nodes,node:kr.node,size:kr.size,empty:kr.empty,each:kr.each,on:G1,attr:B1,attrTween:M1,style:o2,styleTween:n2,text:c2,textTween:p2,remove:X1,tween:b1,delay:D1,duration:R1,ease:z1,easeVarying:W1,end:g2,[Symbol.iterator]:kr[Symbol.iterator]};function y2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var x2={time:null,delay:0,duration:250,ease:y2};function C2(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function b2(e){var t,r;e instanceof Tr?(t=e._id,e=e._name):(t=dp(),(r=x2).time=Sl(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,s=0;s<o;++s)for(var a=i[s],n=a.length,h,c=0;c<n;++c)(h=a[c])&&na(h,e,t,c,a,r||C2(h,t));return new Tr(i,this._parents,e,t)}Uo.prototype.interrupt=y1;Uo.prototype.transition=b2;const zn=Math.PI,qn=2*zn,Qr=1e-6,k2=qn-Qr;function up(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function w2(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return up;const r=10**t;return function(i){this._+=i[0];for(let o=1,s=i.length;o<s;++o)this._+=Math.round(arguments[o]*r)/r+i[o]}}class _2{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?up:w2(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,o){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(t,r,i,o,s,a){this._append`C${+t},${+r},${+i},${+o},${this._x1=+s},${this._y1=+a}`}arcTo(t,r,i,o,s){if(t=+t,r=+r,i=+i,o=+o,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,n=this._y1,h=i-t,c=o-r,l=a-t,d=n-r,u=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(u>Qr)if(!(Math.abs(d*h-c*l)>Qr)||!s)this._append`L${this._x1=t},${this._y1=r}`;else{let p=i-a,y=o-n,m=h*h+c*c,x=p*p+y*y,C=Math.sqrt(m),k=Math.sqrt(u),_=s*Math.tan((zn-Math.acos((m+u-x)/(2*C*k)))/2),T=_/k,v=_/C;Math.abs(T-1)>Qr&&this._append`L${t+T*l},${r+T*d}`,this._append`A${s},${s},0,0,${+(d*p>l*y)},${this._x1=t+v*h},${this._y1=r+v*c}`}}arc(t,r,i,o,s,a){if(t=+t,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let n=i*Math.cos(o),h=i*Math.sin(o),c=t+n,l=r+h,d=1^a,u=a?o-s:s-o;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Qr||Math.abs(this._y1-l)>Qr)&&this._append`L${c},${l}`,i&&(u<0&&(u=u%qn+qn),u>k2?this._append`A${i},${i},0,1,${d},${t-n},${r-h}A${i},${i},0,1,${d},${this._x1=c},${this._y1=l}`:u>Qr&&this._append`A${i},${i},0,${+(u>=zn)},${d},${this._x1=t+i*Math.cos(s)},${this._y1=r+i*Math.sin(s)}`)}rect(t,r,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function xi(e){return function(){return e}}const CA=Math.abs,bA=Math.atan2,kA=Math.cos,wA=Math.max,_A=Math.min,SA=Math.sin,TA=Math.sqrt,Ac=1e-12,Bl=Math.PI,Ec=Bl/2,vA=2*Bl;function BA(e){return e>1?0:e<-1?Bl:Math.acos(e)}function LA(e){return e>=1?Ec:e<=-1?-Ec:Math.asin(e)}function S2(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new _2(t)}function T2(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function pp(e){this._context=e}pp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Oo(e){return new pp(e)}function v2(e){return e[0]}function B2(e){return e[1]}function L2(e,t){var r=xi(!0),i=null,o=Oo,s=null,a=S2(n);e=typeof e=="function"?e:e===void 0?v2:xi(e),t=typeof t=="function"?t:t===void 0?B2:xi(t);function n(h){var c,l=(h=T2(h)).length,d,u=!1,p;for(i==null&&(s=o(p=a())),c=0;c<=l;++c)!(c<l&&r(d=h[c],c,h))===u&&((u=!u)?s.lineStart():s.lineEnd()),u&&s.point(+e(d,c,h),+t(d,c,h));if(p)return s=null,p+""||null}return n.x=function(h){return arguments.length?(e=typeof h=="function"?h:xi(+h),n):e},n.y=function(h){return arguments.length?(t=typeof h=="function"?h:xi(+h),n):t},n.defined=function(h){return arguments.length?(r=typeof h=="function"?h:xi(!!h),n):r},n.curve=function(h){return arguments.length?(o=h,i!=null&&(s=o(i)),n):o},n.context=function(h){return arguments.length?(h==null?i=s=null:s=o(i=h),n):i},n}class fp{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function gp(e){return new fp(e,!0)}function mp(e){return new fp(e,!1)}function Wr(){}function js(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function la(e){this._context=e}la.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:js(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:js(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Wn(e){return new la(e)}function yp(e){this._context=e}yp.prototype={areaStart:Wr,areaEnd:Wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:js(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function F2(e){return new yp(e)}function xp(e){this._context=e}xp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:js(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function A2(e){return new xp(e)}function Cp(e,t){this._basis=new la(e),this._beta=t}Cp.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],o=t[0],s=e[r]-i,a=t[r]-o,n=-1,h;++n<=r;)h=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+h*s),this._beta*t[n]+(1-this._beta)*(o+h*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const E2=(function e(t){function r(i){return t===1?new la(i):new Cp(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function Ys(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Ll(e,t){this._context=e,this._k=(1-t)/6}Ll.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ys(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ys(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const bp=(function e(t){function r(i){return new Ll(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Fl(e,t){this._context=e,this._k=(1-t)/6}Fl.prototype={areaStart:Wr,areaEnd:Wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ys(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const M2=(function e(t){function r(i){return new Fl(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Al(e,t){this._context=e,this._k=(1-t)/6}Al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ys(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const O2=(function e(t){function r(i){return new Al(i,t)}return r.tension=function(i){return e(+i)},r})(0);function El(e,t,r){var i=e._x1,o=e._y1,s=e._x2,a=e._y2;if(e._l01_a>Ac){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,h=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/h,o=(o*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/h}if(e._l23_a>Ac){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*c+e._x1*e._l23_2a-t*e._l12_2a)/l,a=(a*c+e._y1*e._l23_2a-r*e._l12_2a)/l}e._context.bezierCurveTo(i,o,s,a,e._x2,e._y2)}function kp(e,t){this._context=e,this._alpha=t}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:El(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const wp=(function e(t){function r(i){return t?new kp(i,t):new Ll(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function _p(e,t){this._context=e,this._alpha=t}_p.prototype={areaStart:Wr,areaEnd:Wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:El(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $2=(function e(t){function r(i){return t?new _p(i,t):new Fl(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Sp(e,t){this._context=e,this._alpha=t}Sp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:El(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const D2=(function e(t){function r(i){return t?new Sp(i,t):new Al(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Tp(e){this._context=e}Tp.prototype={areaStart:Wr,areaEnd:Wr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function P2(e){return new Tp(e)}function Mc(e){return e<0?-1:1}function Oc(e,t,r){var i=e._x1-e._x0,o=t-e._x1,s=(e._y1-e._y0)/(i||o<0&&-0),a=(r-e._y1)/(o||i<0&&-0),n=(s*o+a*i)/(i+o);return(Mc(s)+Mc(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(n))||0}function $c(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function za(e,t,r){var i=e._x0,o=e._y0,s=e._x1,a=e._y1,n=(s-i)/3;e._context.bezierCurveTo(i+n,o+n*t,s-n,a-n*r,s,a)}function Us(e){this._context=e}Us.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:za(this,this._t0,$c(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,za(this,$c(this,r=Oc(this,e,t)),r);break;default:za(this,this._t0,r=Oc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function vp(e){this._context=new Bp(e)}(vp.prototype=Object.create(Us.prototype)).point=function(e,t){Us.prototype.point.call(this,t,e)};function Bp(e){this._context=e}Bp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,o,s){this._context.bezierCurveTo(t,e,i,r,s,o)}};function Lp(e){return new Us(e)}function Fp(e){return new vp(e)}function Ap(e){this._context=e}Ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=Dc(e),o=Dc(t),s=0,a=1;a<r;++s,++a)this._context.bezierCurveTo(i[0][s],o[0][s],i[1][s],o[1][s],e[a],t[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Dc(e){var t,r=e.length-1,i,o=new Array(r),s=new Array(r),a=new Array(r);for(o[0]=0,s[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,s[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=o[t]/s[t-1],s[t]-=i,a[t]-=i*a[t-1];for(o[r-1]=a[r-1]/s[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/s[t];for(s[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)s[t]=2*e[t+1]-o[t+1];return[o,s]}function Ep(e){return new Ap(e)}function ha(e,t){this._context=e,this._t=t}ha.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Mp(e){return new ha(e,.5)}function Op(e){return new ha(e,0)}function $p(e){return new ha(e,1)}function So(e,t,r){this.k=e,this.x=t,this.y=r}So.prototype={constructor:So,scale:function(e){return e===1?this:new So(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new So(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};So.prototype;var I2=f(e=>{const{securityLevel:t}=Mt();let r=Bt("body");if(t==="sandbox"){const s=Bt(`#i${e}`).node()?.contentDocument??document;r=Bt(s.body)}return r.select(`#${e}`)},"selectSvgElement"),R2=f(e=>{const{handDrawnSeed:t}=Mt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),N2=f(e=>Array.isArray(e)?e:e?e.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),eo=f(e=>{const t=z2([...e.cssCompiledStyles||[],...e.cssStyles||[],...N2(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),z2=f(e=>{const t=new Map;return e.forEach(r=>{const[i,o]=r.split(":");t.set(i.trim(),o?.trim())}),t},"styles2Map"),Dp=f(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),pt=f(e=>{const{stylesArray:t}=eo(e),r=[],i=[],o=[],s=[];return t.forEach(a=>{const n=a[0];Dp(n)?r.push(a.join(":")+" !important"):(i.push(a.join(":")+" !important"),n.includes("stroke")&&o.push(a.join(":")+" !important"),n==="fill"&&s.push(a.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:o,backgroundStyles:s}},"styles2String"),ct=f((e,t)=>{const{themeVariables:r,handDrawnSeed:i}=Mt(),{nodeBorder:o,mainBkg:s}=r,{stylesMap:a}=eo(e);return Object.assign({roughness:.7,fill:a.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:a.get("stroke")||o,seed:i,strokeWidth:a.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:q2(a.get("stroke-dasharray"))},t)},"userNodeOverrides"),q2=f(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const o=isNaN(t[0])?0:t[0];return[o,o]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray");const W2=Object.freeze({left:0,top:0,width:16,height:16}),Gs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Pp=Object.freeze({...W2,...Gs}),H2=Object.freeze({...Pp,body:"",hidden:!1}),j2=Object.freeze({width:null,height:null}),Y2=Object.freeze({...j2,...Gs}),U2=(e,t,r,i="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const n=o.pop(),h=o.pop(),c={provider:o.length>0?o[0]:i,prefix:h,name:n};return qa(c)?c:null}const s=o[0],a=s.split("-");if(a.length>1){const n={provider:i,prefix:a.shift(),name:a.join("-")};return qa(n)?n:null}if(r&&i===""){const n={provider:i,prefix:"",name:s};return qa(n,r)?n:null}return null},qa=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function G2(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function Pc(e,t){const r=G2(e,t);for(const i in H2)i in Gs?i in e&&!(i in r)&&(r[i]=Gs[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function V2(e,t){const r=e.icons,i=e.aliases||Object.create(null),o=Object.create(null);function s(a){if(r[a])return o[a]=[];if(!(a in o)){o[a]=null;const n=i[a]&&i[a].parent,h=n&&s(n);h&&(o[a]=[n].concat(h))}return o[a]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(s),o}function Ic(e,t,r){const i=e.icons,o=e.aliases||Object.create(null);let s={};function a(n){s=Pc(i[n]||o[n],s)}return a(t),r.forEach(a),Pc(e,s)}function X2(e,t){if(e.icons[t])return Ic(e,t,[]);const r=V2(e,[t])[t];return r?Ic(e,t,r):null}const Z2=/(-?[0-9.]*[0-9]+[0-9.]*)/g,K2=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Rc(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(Z2);if(i===null||!i.length)return e;const o=[];let s=i.shift(),a=K2.test(s);for(;;){if(a){const n=parseFloat(s);isNaN(n)?o.push(s):o.push(Math.ceil(n*t*r)/r)}else o.push(s);if(s=i.shift(),s===void 0)return o.join("");a=!a}}function Q2(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const o=e.indexOf(">",i),s=e.indexOf("</"+t);if(o===-1||s===-1)break;const a=e.indexOf(">",s);if(a===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,i).trim()+e.slice(a+1)}return{defs:r,content:e}}function J2(e,t){return e?"<defs>"+e+"</defs>"+t:t}function tw(e,t,r){const i=Q2(e);return J2(i.defs,t+i.content+r)}const ew=e=>e==="unset"||e==="undefined"||e==="none";function rw(e,t){const r={...Pp,...e},i={...Y2,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,i].forEach(m=>{const x=[],C=m.hFlip,k=m.vFlip;let _=m.rotate;C?k?_+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):k&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let T;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:T=o.height/2+o.top,x.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:T=o.width/2+o.left,x.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}_%2===1&&(o.left!==o.top&&(T=o.left,o.left=o.top,o.top=T),o.width!==o.height&&(T=o.width,o.width=o.height,o.height=T)),x.length&&(s=tw(s,'<g transform="'+x.join(" ")+'">',"</g>"))});const a=i.width,n=i.height,h=o.width,c=o.height;let l,d;a===null?(d=n===null?"1em":n==="auto"?c:n,l=Rc(d,h/c)):(l=a==="auto"?h:a,d=n===null?Rc(l,c/h):n==="auto"?c:n);const u={},p=(m,x)=>{ew(x)||(u[m]=x.toString())};p("width",l),p("height",d);const y=[o.left,o.top,h,c];return u.viewBox=y.join(" "),{attributes:u,viewBox:y,body:s}}const iw=/\sid="(\S+)"/g,Nc=new Map;function ow(e){e=e.replace(/[0-9]+$/,"")||"a";const t=Nc.get(e)||0;return Nc.set(e,t+1),t?`${e}${t}`:e}function sw(e){const t=[];let r;for(;r=iw.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(o=>{const s=ow(o),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function aw(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}var nw={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Hn=new Map,Ip=new Map,lw=f(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if($.debug("Registering icon pack:",t.name),"loader"in t)Ip.set(t.name,t.loader);else if("icons"in t)Hn.set(t.name,t.icons);else throw $.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Rp=f(async(e,t)=>{const r=U2(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let o=Hn.get(i);if(!o){const a=Ip.get(i);if(!a)throw new Error(`Icon set not found: ${r.prefix}`);try{o={...await a(),prefix:i},Hn.set(i,o)}catch(n){throw $.error(n),new Error(`Failed to load icon set: ${r.prefix}`)}}const s=X2(o,r.name);if(!s)throw new Error(`Icon not found: ${e}`);return s},"getRegisteredIconData"),hw=f(async e=>{try{return await Rp(e),!0}catch{return!1}},"isIconAvailable"),Vo=f(async(e,t,r)=>{let i;try{i=await Rp(e,t?.fallbackPrefix)}catch(a){$.error(a),i=nw}const o=rw(i,t),s=aw(sw(o.body),{...o.attributes,...r});return ze(s,Xt())},"getIconSVG"),cs={},se={},zc;
128function cw(){return zc||(zc=1,Object.defineProperty(se,"__esModule",{value:!0}),se.BLANK_URL=se.relativeFirstCharacters=se.whitespaceEscapeCharsRegex=se.urlSchemeRegex=se.ctrlCharactersRegex=se.htmlCtrlEntityRegex=se.htmlEntitiesRegex=se.invalidProtocolRegex=void 0,se.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,se.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,se.htmlCtrlEntityRegex=/&(newline|tab);/gi,se.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,se.urlSchemeRegex=/^.+(:|:)/gim,se.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,se.relativeFirstCharacters=[".","/"],se.BLANK_URL="about:blank"),se}var qc;function dw(){if(qc)return cs;qc=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.sanitizeUrl=s;var e=cw();function t(a){return e.relativeFirstCharacters.indexOf(a[0])>-1}function r(a){var n=a.replace(e.ctrlCharactersRegex,"");return n.replace(e.htmlEntitiesRegex,function(h,c){return String.fromCharCode(c)})}function i(a){return URL.canParse(a)}function o(a){try{return decodeURIComponent(a)}catch{return a}}function s(a){if(!a)return e.BLANK_URL;var n,h=o(a.trim());do h=r(h).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),h=o(h),n=h.match(e.ctrlCharactersRegex)||h.match(e.htmlEntitiesRegex)||h.match(e.htmlCtrlEntityRegex)||h.match(e.whitespaceEscapeCharsRegex);while(n&&n.length>0);var c=h;if(!c)return e.BLANK_URL;if(t(c))return c;var l=c.trimStart(),d=l.match(e.urlSchemeRegex);if(!d)return c;var u=d[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(u))return e.BLANK_URL;var p=l.replace(/\\/g,"/");if(u==="mailto:"||u.includes("://"))return p;if(u==="http:"||u==="https:"){if(!i(p))return e.BLANK_URL;var y=new URL(p);return y.protocol=y.protocol.toLowerCase(),y.hostname=y.hostname.toLowerCase(),y.toString()}return p}return cs}var uw=dw();function Wa(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){const r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pw(){}function Np(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ml(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const fw="[object RegExp]",zp="[object String]",qp="[object Number]",Wp="[object Boolean]",Hp="[object Arguments]",gw="[object Symbol]",mw="[object Date]",yw="[object Map]",xw="[object Set]",Cw="[object Array]",bw="[object ArrayBuffer]",kw="[object Object]",ww="[object DataView]",_w="[object Uint8Array]",Sw="[object Uint8ClampedArray]",Tw="[object Uint16Array]",vw="[object Uint32Array]",Bw="[object Int8Array]",Lw="[object Int16Array]",Fw="[object Int32Array]",Aw="[object Float32Array]",Ew="[object Float64Array]",Wc=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function Ol(e){return typeof Wc.Buffer<"u"&&Wc.Buffer.isBuffer(e)}function Mw(e){return Number.isSafeInteger(e)&&e>=0}function jp(e){return e!=null&&typeof e!="function"&&Mw(e.length)}function Ow(e){return e==="__proto__"}function $l(e){return e==null||typeof e!="object"&&typeof e!="function"}function Dl(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function $w(e,t){return Bi(e,void 0,e,new Map,t)}function Bi(e,t,r,i=new Map,o=void 0){const s=o?.(e,t,r,i);if(s!==void 0)return s;if($l(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){const a=new Array(e.length);i.set(e,a);for(let n=0;n<e.length;n++)a[n]=Bi(e[n],n,r,i,o);return Object.hasOwn(e,"index")&&(a.index=e.index),Object.hasOwn(e,"input")&&(a.input=e.input),a}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const a=new RegExp(e.source,e.flags);return a.lastIndex=e.lastIndex,a}if(e instanceof Map){const a=new Map;i.set(e,a);for(const[n,h]of e)a.set(n,Bi(h,n,r,i,o));return a}if(e instanceof Set){const a=new Set;i.set(e,a);for(const n of e)a.add(Bi(n,void 0,r,i,o));return a}if(Ol(e))return e.subarray();if(Dl(e)){const a=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,a);for(let n=0;n<e.length;n++)a[n]=Bi(e[n],n,r,i,o);return a}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const a=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,a),Ye(a,e,r,i,o),a}if(typeof File<"u"&&e instanceof File){const a=new File([e],e.name,{type:e.type});return i.set(e,a),Ye(a,e,r,i,o),a}if(typeof Blob<"u"&&e instanceof Blob){const a=new Blob([e],{type:e.type});return i.set(e,a),Ye(a,e,r,i,o),a}if(e instanceof Error){const a=structuredClone(e);return i.set(e,a),a.message=e.message,a.name=e.name,a.stack=e.stack,a.cause=e.cause,a.constructor=e.constructor,Ye(a,e,r,i,o),a}if(e instanceof Boolean){const a=new Boolean(e.valueOf());return i.set(e,a),Ye(a,e,r,i,o),a}if(e instanceof Number){const a=new Number(e.valueOf());return i.set(e,a),Ye(a,e,r,i,o),a}if(e instanceof String){const a=new String(e.valueOf());return i.set(e,a),Ye(a,e,r,i,o),a}if(typeof e=="object"&&Dw(e)){const a=Object.create(Object.getPrototypeOf(e));return i.set(e,a),Ye(a,e,r,i,o),a}return e}function Ye(e,t,r=e,i,o){const s=[...Object.keys(t),...Np(t)];for(let a=0;a<s.length;a++){const n=s[a],h=Object.getOwnPropertyDescriptor(e,n);(h==null||h.writable)&&(e[n]=Bi(t[n],n,r,i,o))}}function Dw(e){switch(Ml(e)){case Hp:case Cw:case bw:case ww:case Wp:case mw:case Aw:case Ew:case Bw:case Lw:case Fw:case yw:case qp:case kw:case fw:case xw:case zp:case gw:case _w:case Sw:case Tw:case vw:return!0;default:return!1}}function Pw(e,t){return $w(e,(r,i,o,s)=>{if(typeof e=="object"){if(Ml(e)==="[object Object]"&&typeof e.constructor!="function"){const a={};return s.set(e,a),Ye(a,e,o,s),a}switch(Object.prototype.toString.call(e)){case qp:case zp:case Wp:{const a=new e.constructor(e?.valueOf());return Ye(a,e),a}case Hp:{const a={};return Ye(a,e),a.length=e.length,a[Symbol.iterator]=e[Symbol.iterator],a}default:return}}})}function Hc(e){return Pw(e)}function jn(e){return e!==null&&typeof e=="object"&&Ml(e)==="[object Arguments]"}function Yn(e){return typeof e=="object"&&e!==null}function Iw(e){return Yn(e)&&jp(e)}function Ts(e){return Dl(e)}function Rw(e){const t=e?.constructor;return e===(typeof t=="function"?t.prototype:Object.prototype)}function Xo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");const r=function(...i){const o=t?t.apply(this,i):i[0],s=r.cache;if(s.has(o))return s.get(o);const a=e.apply(this,i);return r.cache=s.set(o,a)||s,a};return r.cache=new(Xo.Cache||Map),r}Xo.Cache=Map;function Nw(e){if($l(e))return e;if(Array.isArray(e)||Dl(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);const r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){const i=new r(e);return i.lastIndex=e.lastIndex,i}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let i;return e instanceof AggregateError?i=new r(e.errors,e.message,{cause:e.cause}):i=new r(e.message,{cause:e.cause}),i.stack=e.stack,Object.assign(i,e),i}return typeof File<"u"&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e=="object"?Object.assign(Object.create(t),e):e}function zw(e,...t){const r=t.slice(0,-1),i=t[t.length-1];let o=e;for(let s=0;s<r.length;s++){const a=r[s];o=vs(o,a,i,new Map)}return o}function vs(e,t,r,i){if($l(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return Nw(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let s=0;s<t.length;s++)s in t||(t[s]=void 0)}const o=[...Object.keys(t),...Np(t)];for(let s=0;s<o.length;s++){const a=o[s];if(Ow(a))continue;let n=t[a],h=e[a];if(jn(n)&&(n={...n}),jn(h)&&(h={...h}),Ol(n)&&(n=Hc(n)),Array.isArray(n))if(Array.isArray(h)){const l=[],d=Reflect.ownKeys(h);for(let u=0;u<d.length;u++){const p=d[u];l[p]=h[p]}h=l}else if(Iw(h)){const l=[];for(let d=0;d<h.length;d++)l[d]=h[d];h=l}else h=[];const c=r(h,n,a,e,t,i);c!==void 0?e[a]=c:Array.isArray(n)||Yn(h)&&Yn(n)&&(Wa(h)||Wa(n)||Ts(h)||Ts(n))?e[a]=vs(h,n,r,i):h==null&&Wa(n)?e[a]=vs({},n,r,i):h==null&&Ts(n)?e[a]=Hc(n):(h===void 0||n!==void 0)&&(e[a]=n)}return e}function qw(e,...t){return zw(e,...t,pw)}function jc(e){if(e==null)return!0;
vendor: 4,491 bytes, lines 128-129
128if(jp(e))return typeof e.splice!="function"&&typeof e!="string"&&!Ol(e)&&!Ts(e)&&!jn(e)?!1:e.length===0;if(typeof e=="object"||typeof e=="function"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return Rw(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var Ww="â",Hw={curveBasis:Wn,curveBasisClosed:F2,curveBasisOpen:A2,curveBumpX:gp,curveBumpY:mp,curveBundle:E2,curveCardinalClosed:M2,curveCardinalOpen:O2,curveCardinal:bp,curveCatmullRomClosed:$2,curveCatmullRomOpen:D2,curveCatmullRom:wp,curveLinear:Oo,curveLinearClosed:P2,curveMonotoneX:Lp,curveMonotoneY:Fp,curveNatural:Ep,curveStep:Mp,curveStepAfter:$p,curveStepBefore:Op},jw=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Yw=f(function(e,t){const r=Yp(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const a=r.map(n=>n.args);Os(a),i=le(i,[...a])}else i=r.args;if(!i)return;let o=fl(e,t);const s="config";return i[s]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),i[o]=i[s],delete i[s]),i},"detectInit"),Yp=f(function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${jw.source})(?=[}][%]{2}).* 129`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),$.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i;const o=[];for(;(i=Mo.exec(e))!==null;)if(i.index===Mo.lastIndex&&Mo.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){const s=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:s,args:a})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(r){return $.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),Uw=f(function(e){return e.replace(Mo,"")},"removeDirectives"),Gw=f(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Pl(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Hw[r]??t}f(Pl,"interpolateToCurve");function Up(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?uw.sanitizeUrl(r):r}f(Up,"formatUrl");var Vw=f((e,...t)=>{const r=e.split("."),i=r.length-1,o=r[i];let s=window;for(let a=0;a<i;a++)if(s=s[r[a]],!s){$.error(`Function name: ${e} not found in window`);return}s[o](...t)},"runFunc");function Il(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}f(Il,"distance");function Gp(e){let t,r=0;e.forEach(o=>{r+=Il(o,t),t=o});const i=r/2;return Rl(e,i)}f(Gp,"traverseEdge");function Vp(e){return e.length===1?e[0]:Gp(e)}f(Vp,"calcLabelPosition");var Yc=f((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Rl=f((e,t)=>{let r,i=t;for(const o of e){if(r){const s=Il(o,r);if(s===0)return r;if(s<i)i-=s;else{const a=i/s;if(a<=0)return r;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:Yc((1-a)*r.x+a*o.x,5),y:Yc((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Xw=f((e,t,r)=>{$.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const o=Rl(t,25),s=e?10:5,a=Math.atan2(t[0].y-o.y,t[0].x-o.x),n={x:0,y:0};return n.x=Math.sin(a)*s+(t[0].x+o.x)/2,n.y=-Math.cos(a)*s+(t[0].y+o.y)/2,n},"calcCardinalityPosition");function Xp(e,t,r){const i=structuredClone(r);$.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const o=25+e,s=Rl(i,o),a=10+e*.5,n=Math.atan2(i[0].y-s.y,i[0].x-s.x),h={x:0,y:0};return t==="start_left"?(h.x=Math.sin(n+Math.PI)*a+(i[0].x+s.x)/2,h.y=-Math.cos(n+Math.PI)*a+(i[0].y+s.y)/2):t==="end_right"?(h.x=Math.sin(n-Math.PI)*a+(i[0].x+s.x)/2-5,h.y=-Math.cos(n-Math.PI)*a+(i[0].y+s.y)/2-5):t==="end_left"?(h.x=Math.sin(n)*a+(i[0].x+s.x)/2-5,h.y=-Math.cos(n)*a+(i[0].y+s.y)/2-5):(h.x=Math.sin(n)*a+(i[0].x+s.x)/2,h.y=-Math.cos(n)*a+(i[0].y+s.y)/2),h}f(Xp,"calcTerminalLabelPosition");function Zp(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}f(Zp,"getStylesFromArray");var Uc=0,Zw=f(()=>(Uc++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Uc),"generateId");function Kp(e){let t="";const r="0123456789abcdef",i=r.length;for(let o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*i));return t}f(Kp,"makeRandomHex");var Kw=f(e=>Kp(e.length),"random"),Qw=f(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}
129,"getTextObj"),Jw=f(function(e,t){const r=t.text.replace(Yo.lineBreakRegex," "),[,i]=ca(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",i),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const s=o.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.attr("fill",t.fill),s.text(r),o},"drawSimpleText"),t_=Xo((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Yo.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),o=[];let s="";return i.forEach((a,n)=>{const h=vr(`${a} `,r),c=vr(s,r);if(h>t){const{hyphenatedStrings:u,remainingWord:p}=e_(a,t,"-",r);o.push(s,...u),s=p}else c+h>=t?(o.push(s),s=a):s=[s,a].filter(Boolean).join(" ");n+1===i.length&&o.push(s)}),o.filter(a=>a!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),e_=Xo((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const o=[...e],s=[];let a="";return o.forEach((n,h)=>{const c=`${a}${n}`;if(vr(c,i)>=t){const d=h+1,u=o.length===d,p=`${c}${r}`;s.push(u?c:p),a=""}else a=c}),{hyphenatedStrings:s,remainingWord:a}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Qp(e,t){return Nl(e,t).height}f(Qp,"calculateTextHeight");function vr(e,t){return Nl(e,t).width}f(vr,"calculateTextWidth");var Nl=Xo((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:o=400}=t;if(!e)return{width:0,height:0};const[,s]=ca(r),a=["sans-serif",i],n=e.split(Yo.lineBreakRegex),h=[],c=Bt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const l=c.append("svg");for(const u of a){let p=0;const y={width:0,height:0,lineHeight:0};for(const m of n){const x=Qw();x.text=m||Ww;const C=Jw(l,x).style("font-size",s).style("font-weight",o).style("font-family",u),k=(C._groups||C)[0][0].getBBox();if(k.width===0&&k.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,k.width)),p=Math.round(k.height),y.height+=p,y.lineHeight=Math.round(Math.max(y.lineHeight,p))}h.push(y)}l.remove();const d=isNaN(h[1].height)||isNaN(h[1].width)||isNaN(h[1].lineHeight)||h[0].height>h[1].height&&h[0].width>h[1].width&&h[0].lineHeight>h[1].lineHeight?0:1;return h[d]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Yi,r_=(Yi=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},f(Yi,"InitIDGenerator"),Yi),ds,i_=f(function(e){return ds=ds||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ds.innerHTML=e,unescape(ds.textContent)},"entityDecode");function zl(e){return"str"in e}f(zl,"isDetailedError");var o_=f((e,t,r,i)=>{if(!i)return;const o=e.node()?.getBBox();o&&e.append("text").text(i).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-r).attr("class",t)},"insertTitle"),ca=f(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function ql(e,t){return qw({},e,t)}f(ql,"cleanAndMerge");var ye={assignWithDepth:le,wrapLabel:t_,calculateTextHeight:Qp,calculateTextWidth:vr,calculateTextDimensions:Nl,cleanAndMerge:ql,detectInit:Yw,detectDirective:Yp,isSubstringInArray:Gw,interpolateToCurve:Pl,calcLabelPosition:Vp,calcCardinalityPosition:Xw,calcTerminalLabelPosition:Xp,formatUrl:Up,getStylesFromArray:Zp,generateId:Zw,random:Kw,runFunc:Vw,entityDecode:i_,insertTitle:o_,isLabelCoordinateInPath:Jp,parseFontSize:ca,InitIDGenerator:r_},s_=f(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"ï¬Â°Â°"+i+"¶Ã":"ï¬Â°"+i+"¶Ã"}),t},"encodeEntities"),Hr=f(function(e){return e.replace(/ï¬Â°Â°/g,"&#").replace(/ï¬Â°/g,"&").replace(/¶Ã/g,";")},"decodeEntities"),FA=f((e,t,{counter:r=0,prefix:i,suffix:o},s)=>s||`${i?`${i}_`:""}${e}_${t}_${r}${o?`_${o}`:""}`,"getEdgeId");function ie(e){return e??null}f(ie,"handleUndefinedAttr");function Jp(e,t){const r=Math.round(e.x),i=Math.round(e.y),o=t.replace(/(\d+\.\d+)/g,s=>Math.round(parseFloat(s)).toString());return o.includes(r.toString())||o.includes(i.toString())}f(Jp,"isLabelCoordinateInPath");var Bs={exports:{}},Gc=Bs.exports,Vc;function a_(){return Vc||(Vc=1,(function(e){(function(t){var r=function(){},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(l){return setTimeout(l,16)};function o(){var l=this;l.reads=[],l.writes=[],l.raf=i.bind(t)}o.prototype={constructor:o,runTasks:function(l){for(var d;d=l.shift();)d()},measure:function(l,d){var u=d?l.bind(d):l;return this.reads.push(u),s(this),u},mutate:function(l,d){var u=d?l.bind(d):l;return this.writes.push(u),s(this),u},clear:function(l){return n(this.reads,l)||n(this.writes,l)},extend:function(l){if(typeof l!="object")throw new Error("expected object");var d=Object.create(this);return h(d,l),d.fastdom=this,d.initialize&&d.initialize(),d},catch:null};function s(l){l.scheduled||(l.scheduled=!0,l.raf(a.bind(null,l)))}function a(l){var d=l.writes,u=l.reads,p;try{r("flushing reads",u.length),l.runTasks(u),r("flushing writes",d.length),l.runTasks(d)}catch(y){p=y}if(l.scheduled=!1,(u.length||d.length)&&s(l),p)if(r("task errored",p.message),l.catch)l.catch(p);else throw p}function n(l,d){var u=l.indexOf(d);return!!~u&&!!l.splice(u,1)}function h(l,d){for(var u in d)d.hasOwnProperty(u)&&(l[u]=d[u])}var c=t.fastdom=t.fastdom||new o;e.exports=c})(typeof window<"u"?window:typeof Gc<"u"?Gc:globalThis)})(Bs)),Bs.exports}var n_=a_();const l_=fu(n_);
129var Ha={exports:{}},Xc;function h_(){return Xc||(Xc=1,(function(e){(function(){var t={initialize:function(){this._tasks=new Map},mutate:function(i,o){return r(this,"mutate",i,o)},measure:function(i,o){return r(this,"measure",i,o)},clear:function(i){var o=this._tasks,s=o.get(i);this.fastdom.clear(s),o.delete(i)}};function r(i,o,s,a){var n=i._tasks,h=i.fastdom,c,l=new Promise(function(d,u){c=h[o](function(){n.delete(l);try{d(a?s.call(a):s())}catch(p){u(p)}},a)});return n.set(l,c),l}e.exports=t})()})(Ha)),Ha.exports}var c_=h_();const d_=fu(c_);function Wl(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var di=Wl();function tf(e){di=e}var $o={exec:()=>null};function Wt(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(o,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(Se.caret,"$1"),r=r.replace(o,a),i},getRegex:()=>new RegExp(r,t)};return i}var u_=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Se={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},p_=/^(?:[ \t]*(?:\n|$))+/,f_=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,g_=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Zo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,m_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Hl=/(?:[*+-]|\d{1,9}[.)])/,ef=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,rf=Wt(ef).replace(/bull/g,Hl).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),y_=Wt(ef).replace(/bull/g,Hl).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),jl=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,x_=/^[^\n]+/,Yl=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,C_=Wt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Yl).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b_=Wt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Hl).getRegex(),da="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ul=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,k_=Wt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
129)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ul).replace("tag",da).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),of=Wt(jl).replace("hr",Zo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",da).getRegex(),w_=Wt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",of).getRegex(),Gl={blockquote:w_,code:f_,def:C_,fences:g_,heading:m_,hr:Zo,html:k_,lheading:rf,list:b_,newline:p_,paragraph:of,table:$o,text:x_},Zc=Wt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Zo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",da).getRegex(),__={...Gl,lheading:y_,table:Zc,paragraph:Wt(jl).replace("hr",Zo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Zc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",da).getRegex()},S_={...Gl,html:Wt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ul).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:$o,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Wt(jl).replace("hr",Zo).replace("heading",` *#{1,6} *[^ 130]`).replace("lheading",rf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},T_=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,v_=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,sf=/^( {2,}|\\)\n(?!\s*$)/,B_=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ua=/[\p{P}\p{S}]/u,Vl=/[\s\p{P}\p{S}]/u,af=/[^\s\p{P}\p{S}]/u,L_=Wt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Vl).getRegex(),nf=/(?!~)[\p{P}\p{S}]/u,F_=/(?!~)[\s\p{P}\p{S}]/u,A_=/(?:[^\s\p{P}\p{S}]|~)/u,E_=Wt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",u_?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),lf=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,M_=Wt(lf,"u").replace(/punct/g,ua).getRegex(),O_=Wt(lf,"u").replace(/punct/g,nf).getRegex(),hf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$_=Wt(hf,"gu").replace(/notPunctSpace/g,af).replace(/punctSpace/g,Vl).replace(/punct/g,ua).getRegex(),D_=Wt(hf,"gu").replace(/notPunctSpace/g,A_).replace(/punctSpace/g,F_).replace(/punct/g,nf).getRegex(),P_=Wt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,af).replace(/punctSpace/g,Vl).replace(/punct/g,ua).getRegex(),I_=Wt(/\\(punct)/,"gu").replace(/punct/g,ua).getRegex(),R_=Wt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),N_=Wt(Ul).replace("(?:-->|$)","-->").getRegex(),z_=Wt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",N_).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Vs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,q_=Wt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Vs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cf=Wt(/^!?\[(label)\]\[(ref)\]/).replace("label",Vs).replace("ref",Yl).getRegex(),df=Wt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Yl).getRegex(),W_=Wt("reflink|nolink(?!\\()","g").replace("reflink",cf).replace("nolink",df).getRegex(),Kc=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Xl={_backpedal:$o,anyPunctuation:I_,autolink:R_,blockSkip:E_,br:sf,code:v_,del:$o,emStrongLDelim:M_,emStrongRDelimAst:$_,emStrongRDelimUnd:P_,escape:T_,link:q_,nolink:df,punctuation:L_,reflink:cf,reflinkSearch:W_,tag:z_,text:B_,url:$o},H_={...Xl,link:Wt(/^!?\[(label)\]\((.*?)\)/).replace("label",Vs).getRegex(),reflink:Wt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Vs).getRegex()},Un={...Xl,emStrongRDelimAst:D_,emStrongLDelim:O_,url:Wt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Kc).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Wt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Kc).getRegex()},j_={...Un,br:Wt(sf).replace("{2,}","*").getRegex(),text:Wt(Un.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},us={normal:Gl,gfm:__,pedantic:S_},fo={normal:Xl,gfm:Un,breaks:j_,pedantic:H_},Y_={"&":"&","<":"<",">":">",'"':""","'":"'"},Qc=e=>Y_[e];function sr(e,t){if(t){if(Se.escapeTest.test(e))return e.replace(Se.escapeReplace,Qc)}else if(Se.escapeTestNoEncode.test(e))return e.replace(Se.escapeReplaceNoEncode,Qc);return e}
vendor: 6,690 bytes, lines 130-153
130function Jc(e){try{e=encodeURI(e).replace(Se.percentDecode,"%")}catch{return null}return e}function td(e,t){let r=e.replace(Se.findPipe,(s,a,n)=>{let h=!1,c=a;for(;--c>=0&&n[c]==="\\";)h=!h;return h?"|":" |"}),i=r.split(Se.splitPipe),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(Se.slashPipe,"|");return i}function go(e,t,r){let i=e.length;if(i===0)return"";let o=0;for(;o<i&&e.charAt(i-o-1)===t;)o++;return e.slice(0,i-o)}function U_(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function ed(e,t,r,i,o){let s=t.href,a=t.title||null,n=e[1].replace(o.other.outputLinkReplace,"$1");i.state.inLink=!0;let h={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:a,text:n,tokens:i.inlineTokens(n)};return i.state.inLink=!1,h}function G_(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let o=i[1];return t.split(` 131`).map(s=>{let a=s.match(r.other.beginningSpace);if(a===null)return s;let[n]=a;return n.length>=o.length?s.slice(o.length):s}).join(` 132`)}var Xs=class{options;rules;lexer;constructor(t){this.options=t||di}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:go(i,` 133`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],o=G_(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:o}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let o=go(i,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(i=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:go(r[0],` 134`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=go(r[0],` 135`).split(` 136`),o="",s="",a=[];for(;i.length>0;){let n=!1,h=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))h.push(i[c]),n=!0;else if(!n)h.push(i[c]);else break;i=i.slice(c);let l=h.join(` 137`),d=l.replace(this.rules.other.blockquoteSetextReplace,` 138 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o} 139${l}`:l,s=s?`${s} 140${d}`:d;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,a,!0),this.lexer.state.top=u,i.length===0)break;let p=a.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let y=p,m=y.raw+` 141`+i.join(` 142`),x=this.blockquote(m);a[a.length-1]=x,o=o.substring(0,o.length-y.raw.length)+x.raw,s=s.substring(0,s.length-y.text.length)+x.text;break}else if(p?.type==="list"){let y=p,m=y.raw+` 143`+i.join(` 144`),x=this.list(m);a[a.length-1]=x,o=o.substring(0,o.length-p.raw.length)+x.raw,s=s.substring(0,s.length-y.raw.length)+x.raw,i=m.substring(a.at(-1).raw.length).split(` 145`);continue}}return{type:"blockquote",raw:o,tokens:a,text:s}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),o=i.length>1,s={type:"list",raw:"",ordered:o,start:o?+i.slice(0,-1):"",loose:!1,items:[]};i=o?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=o?i:"[*+-]");let a=this.rules.other.listItemRegex(i),n=!1;for(;t;){let c=!1,l="",d="";if(!(r=a.exec(t))||this.rules.block.hr.test(t))break;l=r[0],t=t.substring(l.length);let u=r[2].split(` 146`,1)[0].replace(this.rules.other.listReplaceTabs,k=>" ".repeat(3*k.length)),p=t.split(` 147`,1)[0],y=!u.trim(),m=0;if(this.options.pedantic?(m=2,d=u.trimStart()):y?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,d=u.slice(m),m+=r[1].length),y&&this.rules.other.blankLine.test(p)&&(l+=p+` 148`,t=t.substring(p.length+1),c=!0),!c){let k=this.rules.other.nextBulletRegex(m),_=this.rules.other.hrRegex(m),T=this.rules.other.fencesBeginRegex(m),v=this.rules.other.headingBeginRegex(m),A=this.rules.other.htmlBeginRegex(m);for(;t;){let B=t.split(` 149`,1)[0],D;if(p=B,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),D=p):D=p.replace(this.rules.other.tabCharGlobal," "),T.test(p)||v.test(p)||A.test(p)||k.test(p)||_.test(p))break;if(D.search(this.rules.other.nonSpaceChar)>=m||!p.trim())d+=` 150`+D.slice(m);else{if(y||u.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(u)||v.test(u)||_.test(u))break;d+=` 151`+p}!y&&!p.trim()&&(y=!0),l+=B+` 152`,t=t.substring(B.length+1),u=D.slice(m)}}s.loose||(n?s.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(n=!0));let x=null,C;this.options.gfm&&(x=this.rules.other.listIsTask.exec(d),x&&(C=x[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:l,task:!!x,checked:C,loose:!1,text:d,tokens:[]}),s.raw+=l}let h=s.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let c=0;c<s.items.length;c++)if(this.lexer.state.top=!1,s.items[c].tokens=this.lexer.blockTokens(s.items[c].text,[]),!s.loose){let l=s.items[c].tokens.filter(u=>u.type==="space"),d=l.length>0&&l.some(u=>this.rules.other.anyLine.test(u.raw));s.loose=d}if(s.loose)for(let c=0;c<s.items.length;c++)s.items[c].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:o,title:s}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=td(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(` 153`):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===o.length){for(let n of o)this.rules.other.tableAlignRight.test(n)?a.align.push("right"):this.rules.other.tableAlignCenter.test(n)?a.align.push("center"):this.rules.other.tableAlignLeft.test(n)?a.align.push("left"):a.align.push(null);for(let n=0;n<i.length;n++)a.header.push({text:i[n],tokens:this.lexer.inline(i[n]),header:!0,align:a.align[n]});
vendor: 5,227 bytes, lines 153-155
153for(let n of s)a.rows.push(td(n,a.header.length).map((h,c)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:a.align[c]})));return a}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===` 154`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=go(i.slice(0,-1),"\\");if((i.length-a.length)%2===0)return}else{let a=U_(r[2],"()");if(a===-2)return;if(a>-1){let n=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,n).trim(),r[3]=""}}let o=r[2],s="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(o);a&&(o=a[1],s=a[3])}else s=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?o=o.slice(1):o=o.slice(1,-1)),ed(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let o=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[o.toLowerCase()];if(!s){let a=i[0].charAt(0);return{type:"text",raw:a,text:a}}return ed(i,s,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!(!o||o[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...o[0]].length-1,a,n,h=s,c=0,l=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,r=r.slice(-1*t.length+s);(o=l.exec(r))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(n=[...a].length,o[3]||o[4]){h+=n;continue}else if((o[5]||o[6])&&s%3&&!((s+n)%3)){c+=n;continue}if(h-=n,h>0)continue;n=Math.min(n,n+h+c);let d=[...o[0]][0].length,u=t.slice(0,s+o.index+d+n);if(Math.min(s,n)%2){let y=u.slice(1,-1);return{type:"em",raw:u,text:y,tokens:this.lexer.inlineTokens(y)}}let p=u.slice(2,-2);return{type:"strong",raw:u,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return o&&s&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,o;return r[2]==="@"?(i=r[1],o="mailto:"+i):(i=r[1],o=i),{type:"link",raw:r[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let i,o;if(r[2]==="@")i=r[0],o="mailto:"+i;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(s!==r[0]);i=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},Ue=class Gn{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||di,this.options.tokenizer=this.options.tokenizer||new Xs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Se,block:us.normal,inline:fo.normal};this.options.pedantic?(r.block=us.pedantic,r.inline=fo.pedantic):this.options.gfm&&(r.block=us.gfm,this.options.breaks?r.inline=fo.breaks:r.inline=fo.gfm),this.tokenizer.rules=r}static get rules(){return{block:us,inline:fo}}static lex(t,r){return new Gn(r).lex(t)}static lexInline(t,r){return new Gn(r).inlineTokens(t)}lex(t){t=t.replace(Se.carriageReturn,` 155`),this.blockTokens(t,this.tokens);for(let r=0;
vendor: 12,732 bytes, lines 155-187
155r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){for(this.options.pedantic&&(t=t.replace(Se.tabCharGlobal," ").replace(Se.spaceLine,""));t;){let o;if(this.options.extensions?.block?.some(a=>(o=a.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let a=r.at(-1);o.raw.length===1&&a!==void 0?a.raw+=` 156`:r.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(` 157`)?"":` 158`)+o.raw,a.text+=` 159`+o.text,this.inlineQueue.at(-1).src=a.text):r.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(` 160`)?"":` 161`)+o.raw,a.text+=` 162`+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),r.push(o);continue}let s=t;if(this.options.extensions?.startBlock){let a=1/0,n=t.slice(1),h;this.options.extensions.startBlock.forEach(c=>{h=c.call({lexer:this},n),typeof h=="number"&&h>=0&&(a=Math.min(a,h))}),a<1/0&&a>=0&&(s=t.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let a=r.at(-1);i&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(` 163`)?"":` 164`)+o.raw,a.text+=` 165`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(o),i=s.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let a=r.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(` 166`)?"":` 167`)+o.raw,a.text+=` 168`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(o);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let i=t,o=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)h.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)s=o[2]?o[2].length:0,i=i.slice(0,o.index+s)+"["+"a".repeat(o[0].length-s-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let a=!1,n="";for(;t;){a||(n=""),a=!1;let h;if(this.options.extensions?.inline?.some(l=>(h=l.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let l=r.at(-1);h.type==="text"&&l?.type==="text"?(l.raw+=h.raw,l.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,i,n)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let c=t;if(this.options.extensions?.startInline){let l=1/0,d=t.slice(1),u;this.options.extensions.startInline.forEach(p=>{u=p.call({lexer:this},d),typeof u=="number"&&u>=0&&(l=Math.min(l,u))}),l<1/0&&l>=0&&(c=t.substring(0,l+1))}if(h=this.tokenizer.inlineText(c)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(n=h.raw.slice(-1)),a=!0;let l=r.at(-1);l?.type==="text"?(l.raw+=h.raw,l.text+=h.text):r.push(h);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return r}},Zs=class{options;parser;constructor(t){this.options=t||di}space(t){return""}code({text:t,lang:r,escaped:i}){let o=(r||"").match(Se.notSpaceStart)?.[0],s=t.replace(Se.endingNewline,"")+` 169`;return o?'<pre><code class="language-'+sr(o)+'">'+(i?s:sr(s,!0))+`</code></pre> 170`:"<pre><code>"+(i?s:sr(s,!0))+`</code></pre> 171`}blockquote({tokens:t}){return`<blockquote> 172${this.parser.parse(t)}</blockquote> 173`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}> 174`}hr(t){return`<hr> 175`}list(t){let r=t.ordered,i=t.start,o="";for(let n=0;n<t.items.length;n++){let h=t.items[n];o+=this.listitem(h)}let s=r?"ol":"ul",a=r&&i!==1?' start="'+i+'"':"";return"<"+s+a+`> 176`+o+"</"+s+`> 177`}listitem(t){let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+sr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li> 178`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p> 179`}table(t){let r="",i="";for(let s=0;s<t.header.length;s++)i+=this.tablecell(t.header[s]);r+=this.tablerow({text:i});let o="";for(let s=0;s<t.rows.length;s++){let a=t.rows[s];i="";for(let n=0;n<a.length;n++)i+=this.tablecell(a[n]);o+=this.tablerow({text:i})}return o&&(o=`<tbody>${o}</tbody>`),`<table> 180<thead> 181`+r+`</thead> 182`+o+`</table> 183`}tablerow({text:t}){return`<tr> 184${t}</tr> 185`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}> 186`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${sr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let o=this.parser.parseInline(i),s=Jc(t);if(s===null)return o;t=s;let a='<a href="'+t+'"';return r&&(a+=' title="'+sr(r)+'"'),a+=">"+o+"</a>",a}image({href:t,title:r,text:i,tokens:o}){o&&(i=this.parser.parseInline(o,this.parser.textRenderer));let s=Jc(t);if(s===null)return sr(i);t=s;let a=`<img src="${t}" alt="${i}"`;return r&&(a+=` title="${sr(r)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:sr(t.text)}},Zl=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Ge=class Vn{options;renderer;textRenderer;constructor(t){this.options=t||di,this.options.renderer=this.options.renderer||new Zs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zl}static parse(t,r){return new Vn(r).parse(t)}static parseInline(t,r){return new Vn(r).parseInline(t)}parse(t,r=!0){let i="";for(let o=0;o<t.length;o++){let s=t[o];if(this.options.extensions?.renderers?.[s.type]){let n=s,h=this.options.extensions.renderers[n.type].call({parser:this},n);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(n.type)){i+=h||"";continue}}let a=s;switch(a.type){case"space":{i+=this.renderer.space(a);continue}case"hr":{i+=this.renderer.hr(a);continue}case"heading":{i+=this.renderer.heading(a);continue}case"code":{i+=this.renderer.code(a);continue}case"table":{i+=this.renderer.table(a);continue}case"blockquote":{i+=this.renderer.blockquote(a);continue}case"list":{i+=this.renderer.list(a);continue}case"html":{i+=this.renderer.html(a);continue}case"def":{i+=this.renderer.def(a);continue}case"paragraph":{i+=this.renderer.paragraph(a);continue}case"text":{let n=a,h=this.renderer.text(n);for(;o+1<t.length&&t[o+1].type==="text";)n=t[++o],h+=` 187`+this.renderer.text(n);r?i+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):i+=h;continue}default:{let n='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(n),"";throw new Error(n)}}}return i}parseInline(t,r=this.renderer){let i="";for(let o=0;o<t.length;o++){let s=t[o];if(this.options.extensions?.renderers?.[s.type]){let n=this.options.extensions.renderers[s.type].call({parser:this},s);if(n!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=n||"";continue}}let a=s;switch(a.type){case"escape":{i+=r.text(a);break}case"html":{i+=r.html(a);break}case"link":{i+=r.link(a);break}case"image":{i+=r.image(a);break}case"strong":{i+=r.strong(a);break}case"em":{i+=r.em(a);break}case"codespan":{i+=r.codespan(a);break}case"br":{i+=r.br(a);break}case"del":{i+=r.del(a);break}case"text":{i+=r.text(a);break}default:{let n='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(n),"";throw new Error(n)}}}return i}},To=class{options;block;constructor(t){this.options=t||di}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Ue.lex:Ue.lexInline}provideParser(){return this.block?Ge.parse:Ge.parseInline}},V_=class{defaults=Wl();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ge;Renderer=Zs;TextRenderer=Zl;Lexer=Ue;Tokenizer=Xs;Hooks=To;constructor(...t){this.use(...t)}walkTokens(t,r){let i=[];for(let o of t)switch(i=i.concat(r.call(this,o)),o.type){case"table":{let s=o;for(let a of s.header)i=i.concat(this.walkTokens(a.tokens,r));for(let a of s.rows)for(let n of a)i=i.concat(this.walkTokens(n.tokens,r));break}case"list":{let s=o;i=i.concat(this.walkTokens(s.items,r));break}default:{let s=o;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let n=s[a].flat(1/0);i=i.concat(this.walkTokens(n,r))}):s.tokens&&(i=i.concat(this.walkTokens(s.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let o={...i};if(o.async=this.defaults.async||o.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=r.renderers[s.name];a?r.renderers[s.name]=function(...n){let h=s.renderer.apply(this,n);return h===!1&&(h=a.apply(this,n)),h}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[s.level];a?a.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),o.extensions=r),i.renderer){let s=this.defaults.renderer||new Zs(this.defaults);for(let a in i.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let n=a,h=i.renderer[n],c=s[n];s[n]=(...l)=>{let d=h.apply(s,l);return d===!1&&(d=c.apply(s,l)),d||""}}o.renderer=s}
187if(i.tokenizer){let s=this.defaults.tokenizer||new Xs(this.defaults);for(let a in i.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let n=a,h=i.tokenizer[n],c=s[n];s[n]=(...l)=>{let d=h.apply(s,l);return d===!1&&(d=c.apply(s,l)),d}}o.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new To;for(let a in i.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let n=a,h=i.hooks[n],c=s[n];To.passThroughHooks.has(a)?s[n]=l=>{if(this.defaults.async&&To.passThroughHooksRespectAsync.has(a))return(async()=>{let u=await h.call(s,l);return c.call(s,u)})();let d=h.call(s,l);return c.call(s,d)}:s[n]=(...l)=>{if(this.defaults.async)return(async()=>{let u=await h.apply(s,l);return u===!1&&(u=await c.apply(s,l)),u})();let d=h.apply(s,l);return d===!1&&(d=c.apply(s,l)),d}}o.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,a=i.walkTokens;o.walkTokens=function(n){let h=[];return h.push(a.call(this,n)),s&&(h=h.concat(s.call(this,n))),h}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Ue.lex(t,r??this.defaults)}parser(t,r){return Ge.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let o={...i},s={...this.defaults,...o},a=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&o.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let n=s.hooks?await s.hooks.preprocess(r):r,h=await(s.hooks?await s.hooks.provideLexer():t?Ue.lex:Ue.lexInline)(n,s),c=s.hooks?await s.hooks.processAllTokens(h):h;s.walkTokens&&await Promise.all(this.walkTokens(c,s.walkTokens));let l=await(s.hooks?await s.hooks.provideParser():t?Ge.parse:Ge.parseInline)(c,s);return s.hooks?await s.hooks.postprocess(l):l})().catch(a);try{s.hooks&&(r=s.hooks.preprocess(r));let n=(s.hooks?s.hooks.provideLexer():t?Ue.lex:Ue.lexInline)(r,s);s.hooks&&(n=s.hooks.processAllTokens(n)),s.walkTokens&&this.walkTokens(n,s.walkTokens);let h=(s.hooks?s.hooks.provideParser():t?Ge.parse:Ge.parseInline)(n,s);return s.hooks&&(h=s.hooks.postprocess(h)),h}catch(n){return a(n)}}}onError(t,r){return i=>{if(i.message+=` 188Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+sr(i.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(i);throw i}}},li=new V_;function Yt(e,t){return li.parse(e,t)}Yt.options=Yt.setOptions=function(e){return li.setOptions(e),Yt.defaults=li.defaults,tf(Yt.defaults),Yt};Yt.getDefaults=Wl;Yt.defaults=di;Yt.use=function(...e){return li.use(...e),Yt.defaults=li.defaults,tf(Yt.defaults),Yt};Yt.walkTokens=function(e,t){return li.walkTokens(e,t)};Yt.parseInline=li.parseInline;Yt.Parser=Ge;Yt.parser=Ge.parse;Yt.Renderer=Zs;Yt.TextRenderer=Zl;Yt.Lexer=Ue;Yt.lexer=Ue.lex;Yt.Tokenizer=Xs;Yt.Hooks=To;Yt.parse=Yt;Yt.options;Yt.setOptions;Yt.use;Yt.walkTokens;Yt.parseInline;Ge.parse;Ue.lex;function uf(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var o=i.reduce(function(n,h){var c=h.match(/\n([\t ]+|(?!\s).)/g);return c?n.concat(c.map(function(l){var d,u;return(u=(d=l.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&u!==void 0?u:0})):n},[]);if(o.length){var s=new RegExp(` 189[ ]{`+Math.min.apply(Math,o)+"}","g");i=i.map(function(n){return n.replace(s,` 190`)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return t.forEach(function(n,h){var c=a.match(/(?:^|\n)( *)$/),l=c?c[1]:"",d=n;typeof n=="string"&&n.includes(` 191`)&&(d=String(n).split(` 192`).map(function(u,p){return p===0?u:""+l+u}).join(` 193`)),a+=d+i[h+1]}),a}var Xn=typeof performance<"u"&&typeof performance.now=="function",Ci=f(()=>Xn?performance.now():0,"now"),ja="ð§ ",X_="Mermaid render",Z_="Mermaid",K_={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},Ui;Ui=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,r){if(!this.enabled)return r();const i=Ci();try{return r()}finally{this.buckets[t]=(this.buckets[t]??0)+(Ci()-i)}}async tick(t,r){if(!this.enabled)return r();const i=Ci();try{return await r()}finally{this.buckets[t]=(this.buckets[t]??0)+(Ci()-i)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();const t=this.roots.at(-1),r=this.runLabel??t?.name;return t&&(this.records.push({label:r??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,r)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;const r={name:t,start:Ci(),duration:-1,children:[]},i=this.stack.at(-1);if(i?i.children.push(r):this.roots.push(r),this.stack.push(r),Xn&&typeof performance.mark=="function")try{performance.mark(`${ja}${t} â¶`)}catch{}}end(){if(!this.enabled)return;const t=this.stack.pop();if(!t)return;const r=Ci();if(t.duration=r-t.start,Xn&&typeof performance.measure=="function")try{performance.measure(`${ja}${t.name}
193`,{start:t.start,end:r,detail:{devtools:{dataType:"track-entry",track:X_,trackGroup:Z_,color:K_[t.name]??"primary",tooltipText:`${t.name} â ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,r){if(!this.enabled)return r();this.begin(t);try{return await r()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),r){if(!t)return;const i=t.duration,o=r&&r!==t.name?`${t.name} [${r}]`:t.name,s=["ms % phase"],a=f((h,c)=>{const l=" ".repeat(c),d=h.duration.toFixed(1).padStart(8),u=i>0?`${(h.duration/i*100).toFixed(0).padStart(3)}%`:" -";s.push(`${d} ${u} ${l}${h.name}`);for(const p of h.children)a(p,c+1);if(h.children.length>0){const p=h.children.reduce((m,x)=>m+x.duration,0),y=h.duration-p;if(y>.5){const m=y.toFixed(1).padStart(8);s.push(`${m} ${l} (self)`)}}},"walk");a(t,0);const n=Object.keys(this.buckets);if(n.length>0){s.push("ââ buckets (summed) ââ");for(const h of n)s.push(`${this.buckets[h].toFixed(1).padStart(8)} ${h}`)}console.log(`${ja}mermaid render profile · ${o} 194${s.join(` 195`)}`)}},f(Ui,"Profiler");globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};var Q_=l_.extend({raf(e){typeof queueMicrotask=="function"?queueMicrotask(e):setTimeout(e,0)}}).extend(d_),hi=Q_;function pf(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,` 196`).replace(/\n{2,}/g,` 197`);return uf(i)}f(pf,"preprocessMarkdown");function ff(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}f(ff,"nonMarkdownToLines");function gf(e,t={}){const r=pf(e,t),i=Yt.lexer(r),o=[[]];let s=0;function a(n,h="normal"){n.type==="text"?n.text.split(` 198`).forEach((l,d)=>{d!==0&&(s++,o.push([])),l.split(" ").forEach(u=>{u=u.replace(/'/g,"'"),u&&o[s].push({content:u,type:h})})}):n.type==="strong"||n.type==="em"?n.tokens.forEach(c=>{a(c,n.type)}):n.type==="html"&&o[s].push({content:n.text,type:"normal"})}return f(a,"processNode"),i.forEach(n=>{n.type==="paragraph"?n.tokens?.forEach(h=>{a(h)}):n.type==="html"?o[s].push({content:n.text,type:"normal"}):o[s].push({content:n.raw,type:"normal"})}),o}f(gf,"markdownToLines");function mf(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}f(mf,"nonMarkdownToHTML");function yf(e,{markdownAutoWrap:t}={}){const r=Yt.lexer(e);function i(o){return o.type==="text"?t===!1?o.text.replace(/\n */g,"<br/>").replace(/ /g," "):o.text.replace(/\n */g,"<br/>"):o.type==="strong"?`<strong>${o.tokens?.map(i).join("")}</strong>`:o.type==="em"?`<em>${o.tokens?.map(i).join("")}</em>`:o.type==="paragraph"?`<p>${o.tokens?.map(i).join("")}</p>`:o.type==="space"?"":o.type==="html"?`${o.text}`:o.type==="escape"?o.text:($.warn(`Unsupported markdown: ${o.type}`),o.raw)}return f(i,"output"),r.map(i).join("")}f(yf,"markdownToHTML");function xf(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}f(xf,"splitTextToChars");function Cf(e,t){const r=xf(t.content);return Kl(e,[],r,t.type)}f(Cf,"splitWordToFitWidth");function Kl(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[o,...s]=r,a=[...t,o];return e([{content:a.join(""),type:i}])?Kl(e,a,s,i):(t.length===0&&o&&(t.push(o),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}f(Kl,"splitWordToFitWidthRecursion");function bf(e,t){if(e.some(({content:r})=>r.includes(` 199`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Ks(e,t)}f(bf,"splitLineToFitWidth");function Ks(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let o="";e[0].content===" "&&(o=" ",e.shift());const s=e.shift()??{content:" ",type:"normal"},a=[...i];if(o!==""&&a.push({content:o,type:"normal"}),a.push(s),t(a))return Ks(e,t,r,a);if(i.length>0)r.push(i),e.unshift(s);else if(s.content){const[n,h]=Cf(t,s);r.push([n]),h.content&&e.unshift(h)}return Ks(e,t,r)}f(Ks,"splitLineToFitWidthRecursion");function Zn(e,t){t&&e.attr("style",t)}f(Zn,"applyStyle");var rd=16384;async function kf(e,t,r,i,o=!1,s=Xt()){const a=e.append("foreignObject");a.attr("width",`${Math.min(10*r,rd)}px`),a.attr("height",`${Math.min(10*r,rd)}px`);const n=a.append("xhtml:div"),h=Do(t.label)?await Iu(t.label.replace(Yo.lineBreakRegex,` 200`),s):ze(t.label,s),c=t.isNode?"nodeLabel":"edgeLabel",l=n.append("span");return l.html(h),Zn(l,t.labelStyle),l.attr("class",`${c} ${i}`),Zn(n,t.labelStyle),n.style("display","table-cell"),n.style("white-space","nowrap"),n.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(n.style("max-width",r+"px"),n.style("text-align","center")),n.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&n.attr("class","labelBkg"),(await hi.measure(()=>n.node().getBoundingClientRect())).width===r&&(n.style("display","table"),n.style("white-space","break-spaces"),n.style("width",r+"px")),a.node()}f(kf,"addHtmlSpan");function pa(e,t,r,i=!1){const o=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&o.attr("text-anchor","middle"),o}f(pa,"createTspan");function wf(e,t,r){const i=e.append("text"),o=pa(i,1,t);fa(o,r);const s=o.node().getComputedTextLength();return i.remove(),s}f(wf,"computeWidthOfText");function J_(e,t,r){const i=e.append("text"),o=pa(i,1,t);fa(o,[{content:r,type:"normal"}]);const s=o.node()?.getBoundingClientRect();return s&&i.remove(),s}f(J_,"computeDimensionOfText");function _f(e,t,r,i=!1,o=!1){const a=t.append("g"),n=a.insert("rect").attr("class","background").attr("style","stroke: none"),h=a.append("text").attr("y","-10.1");o&&h.attr("text-anchor","middle");let c=0;for(const l of r){const d=f(p=>wf(a,1.1,p)<=e,"checkWidth"),u=d(l)?[l]:bf(l,d);for(const p of u){const y=pa(h,c,1.1,o);fa(y,p),c++}}if(i){const l=h.node().getBBox(),d=2;return n.attr("x",l.x-d).attr("y",l.y-d).attr("width",l.width+2*d).attr("height",l.height+2*d),a.node()}else return h.node()}f(_f,"createFormattedText");function Kn(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}f(Kn,"decodeHTMLEntities");function fa(e,t){e.text(""),t.forEach((r,i)=>{const o=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?o.text(Kn(r.content)):o.text(" "+Kn(r.content))})}f(fa,"updateTextContentAndStyles");async function Sf(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(o,s,a)=>(r.push((async()=>{const n=`${s}:${a}`;return await hw(n)?await Vo(n,void 0,{class:"label-icon"}):`<i class='${ze(o,t).replace(":"," ")}'></i>`})()),o));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}f(Sf,"replaceIconSubstring");var Je=f(async(e,t="",{style:r="",isTitle:i=!1,classes:o="",useHtmlLabels:s=!0,markdown:a=!0,isNode:n=!0,width:h=200,addSvgBackgroun
vendor: 29,534 bytes, line 200
200d:c=!1}={},l)=>{if($.debug("XYZ createText",t,r,i,o,s,n,"addSvgBackground: ",c),s){const d=a?yf(t,l):mf(t),u=await Sf(Hr(d),l),p=t.replace(/\\\\/g,"\\"),y={isNode:n,label:Do(t)?p:u,labelStyle:r.replace("fill:","color:")};return await kf(e,y,h,o,c,l)}else{const d=Hr(t.replace(/<br\s*\/?>/g,"<br/>")),u=a?gf(d.replace("<br>","<br/>"),l):ff(d),p=_f(h,e,u,t?c:!1,!n);if(n){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Bt(p).attr("style",y)}else{const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Bt(p).select("rect").attr("style",y.replace(/background:/g,"fill:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Bt(p).select("text").attr("style",m)}return i?Bt(p).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Bt(p).selectAll("tspan.text-outer-tspan").classed("row",!0),p}},"createText");function Ya(e,t,r){if(e&&e.length){const[i,o]=t,s=Math.PI/180*r,a=Math.cos(s),n=Math.sin(s);for(const h of e){const[c,l]=h;h[0]=(c-i)*a-(l-o)*n+i,h[1]=(c-i)*n+(l-o)*a+o}}}function tS(e,t){return e[0]===t[0]&&e[1]===t[1]}function eS(e,t,r,i=1){const o=r,s=Math.max(t,.1),a=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,n=[0,0];if(o)for(const c of a)Ya(c,n,o);const h=(function(c,l,d){const u=[];for(const k of c){const _=[...k];tS(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&u.push(_)}const p=[];l=Math.max(l,.1);const y=[];for(const k of u)for(let _=0;_<k.length-1;_++){const T=k[_],v=k[_+1];if(T[1]!==v[1]){const A=Math.min(T[1],v[1]);y.push({ymin:A,ymax:Math.max(T[1],v[1]),x:A===T[1]?T[0]:v[0],islope:(v[0]-T[0])/(v[1]-T[1])})}}if(y.sort(((k,_)=>k.ymin<_.ymin?-1:k.ymin>_.ymin?1:k.x<_.x?-1:k.x>_.x?1:k.ymax===_.ymax?0:(k.ymax-_.ymax)/Math.abs(k.ymax-_.ymax))),!y.length)return p;let m=[],x=y[0].ymin,C=0;for(;m.length||y.length;){if(y.length){let k=-1;for(let _=0;_<y.length&&!(y[_].ymin>x);_++)k=_;y.splice(0,k+1).forEach((_=>{m.push({s:x,edge:_})}))}if(m=m.filter((k=>!(k.edge.ymax<=x))),m.sort(((k,_)=>k.edge.x===_.edge.x?0:(k.edge.x-_.edge.x)/Math.abs(k.edge.x-_.edge.x))),(d!==1||C%l==0)&&m.length>1)for(let k=0;k<m.length;k+=2){const _=k+1;if(_>=m.length)break;const T=m[k].edge,v=m[_].edge;p.push([[Math.round(T.x),x],[Math.round(v.x),x]])}x+=d,m.forEach((k=>{k.edge.x=k.edge.x+d*k.edge.islope})),C++}return p})(a,s,i);if(o){for(const c of a)Ya(c,n,-o);(function(c,l,d){const u=[];c.forEach((p=>u.push(...p))),Ya(u,l,d)})(h,n,-o)}return h}function Ko(e,t){var r;const i=t.hachureAngle+90;let o=t.hachureGap;o<0&&(o=4*t.strokeWidth),o=Math.round(Math.max(o,.1));let s=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(s=o),eS(e,o,i,s||1)}class Ql{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=Ko(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const o of t)i.push(...this.helper.doubleLineOps(o[0][0],o[0][1],o[1][0],o[1][1],r));return i}}function ga(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class rS extends Ql{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const o=Ko(t,Object.assign({},r,{hachureGap:i})),s=Math.PI/180*r.hachureAngle,a=[],n=.5*i*Math.cos(s),h=.5*i*Math.sin(s);for(const[c,l]of o)ga([c,l])&&a.push([[c[0]-n,c[1]+h],[...l]],[[c[0]+n,c[1]-h],[...l]]);return{type:"fillSketch",ops:this.renderLines(a,r)}}}class iS extends Ql{fillPolygons(t,r){const i=this._fillPolygons(t,r),o=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),s=this._fillPolygons(t,o);return i.ops=i.ops.concat(s.ops),i}}class oS{constructor(t){this.helper=t}fillPolygons(t,r){const i=Ko(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let o=r.hachureGap;o<0&&(o=4*r.strokeWidth),o=Math.max(o,.1);let s=r.fillWeight;s<0&&(s=r.strokeWidth/2);const a=o/4;for(const n of t){const h=ga(n),c=h/o,l=Math.ceil(c)-1,d=h-l*o,u=(n[0][0]+n[1][0])/2-o/4,p=Math.min(n[0][1],n[1][1]);for(let y=0;y<l;y++){const m=p+d+y*o,x=u-a+2*Math.random()*a,C=m-a+2*Math.random()*a,k=this.helper.ellipse(x,C,s,s,r);i.push(...k.ops)}}return{type:"fillSketch",ops:i}}}class sS{constructor(t){this.helper=t}fillPolygons(t,r){const i=Ko(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,o=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,s=[];return t.forEach((a=>{const n=ga(a),h=Math.floor(n/(i+o)),c=(n+o-h*(i+o))/2;let l=a[0],d=a[1];l[0]>d[0]&&(l=a[1],d=a[0]);const u=Math.atan((d[1]-l[1])/(d[0]-l[0]));for(let p=0;p<h;p++){const y=p*(i+o),m=y+i,x=[l[0]+y*Math.cos(u)+c*Math.cos(u),l[1]+y*Math.sin(u)+c*Math.sin(u)],C=[l[0]+m*Math.cos(u)+c*Math.cos(u),l[1]+m*Math.sin(u)+c*Math.sin(u)];s.push(...this.helper.doubleLineOps(x[0],x[1],C[0],C[1],r))}})),s}}class aS{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,o=r.zigzagOffset<0?i:r.zigzagOffset,s=Ko(t,r=Object.assign({},r,{hachureGap:i+o}));return{type:"fillSketch",ops:this.zigzagLines(s,o,r)}}zigzagLines(t,r,i){const o=[];return t.forEach((s=>{const a=ga(s),n=Math.round(a/(2*r));let h=s[0],c=s[1];h[0]>c[0]&&(h=s[1],c=s[0]);const l=Math.atan((c[1]-h[1])/(c[0]-h[0]));for(let d=0;d<n;d++){const u=2*d*r,p=2*(d+1)*r,y=Math.sqrt(2*Math.pow(r,2)),m=[h[0]+u*Math.cos(l),h[1]+u*Math.sin(l)],x=[h[0]+p*Math.cos(l),h[1]+p*Math.sin(l)],C=[m[0]+y*Math.cos(l+Math.PI/4),m[1]+y*Math.sin(l+Math.PI/4)];o.push(...this.helper.doubleLineOps(m[0],m[1],C[0],C[1],i),...this.helper.doubleLineOps(C[0],C[1],x[0],x[1],i))}})),o}}const ve={};class nS{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const lS=0,Ua=1,id=2,ps={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Ga(e,t){return e.type===t}function Jl(e){const t=[],r=(function(a){const n=new Array;for(;a!=="";)if(a.match(/^([ \t\r\n,]+)/))a=a.substr(RegExp.$1.length);else if(a.match(/^([aAcChHlLmMqQsStTvVzZ])/))n[n.length]={type:lS,text:RegExp.$1},a=a.substr(RegExp.$1.length);else{if(!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];n[n.length]={type:Ua,text:`${parseFloat(RegExp.$1)}`},a=a.substr(RegExp.$1.length)}return n[n.length]={type:id,text:""},n})(e);let i="BOD",o=0,s=r[o];for(;!Ga(s,id);){let a=0;const n=[];if(i==="BOD"){if(s.text!=="M"&&s.text!=="m")return Jl("M0,0"+e);o++,a=ps[s.text],i=s.text}else Ga(s,Ua)?a=ps[i]:(o++,a=ps[s.text],i=s.text);if(!(o+a<r.length))throw new Error("Path data ended short");for(let h=o;h<o+a;h++){const c=r[h];if(!Ga(c,Ua))throw new Error("Param not a number: "+i+","+c.text);n[n.length]=+c.text}if(typeof ps[i]!="number")throw new Error("Bad segment: "+i);{const h={key:i,data:n};t.push(h),o+=a,s=r[o],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function Tf(e){let t=0,r=0,i=0,o=0;const s=[];for(const{key:a,data:n}of e)switch(a){case"M":s.push({key:"M",data:[...n]}),[t,r]=n,[i,o]=n;break;case"m":t+=n[0],r+=n[1],s.push({key:"M",data:[t,r]}),i=t,o=r;break;case"L":s.push({key:"L",data:[...n]}),[t,r]=n;break;case"l":t+=n[0],r+=n[1],s.push({key:"L",data:[t,r]});break;case"C":s.push({key:"C",data:[...n]}),t=n[4],r=n[5];break;case"c":{const h=n.map(((c,l)=>l%2?c+r:c+t));s.push({key:"C",data:h}),t=h[4],r=h[5];break}case"Q":s.push({key:"Q",data:[...n]}),t=n[2],r=n[3];break;case"q":{const h=n.map(((c,l)=>l%2?c+r:c+t));s.push({key:"Q",data:h}),t=h[2],r=h[3];break}case"A":s.push({key:"A",data:[...n]}),t=n[5],r=n[6];break;case"a":t+=n[5],r+=n[6],s.push({key:"A",data:[n[0],n[1],n[2],n[3],n[4],t,r]});break;case"H":s.push({key:"H",data:[...n]}),t=n[0];break;case"h":t+=n[0],s.push({key:"H",data:[t]});break;case"V":s.push({key:"V",data:[...n]}),r=n[0];break;case"v":r+=n[0],s.push({key:"V",data:[r]});break;case"S":s.push({key:"S",data:[...n]}),t=n[2],r=n[3];break;case"s":{const h=n.map(((c,l)=>l%2?c+r:c+t));s.push({key:"S",data:h}),t=h[2],r=h[3];break}case"T":s.push({key:"T",data:[...n]}),t=n[0],r=n[1];break;case"t":t+=n[0],r+=n[1],s.push({key:"T",data:[t,r]});break;case"Z":case"z":s.push({key:"Z",data:[]}),t=i,r=o}return s}function vf(e){const t=[];let r="",i=0,o=0,s=0,a=0,n=0,h=0;for(const{key:c,data:l}of e){switch(c){case"M":t.push({key:"M",data:[...l]}),[i,o]=l,[s,a]=l;break;case"C":t.push({key:"C",data:[...l]}),i=l[4],o=l[5],n=l[2],h=l[3];break;case"L":t.push({key:"L",data:[...l]}),[i,o]=l;break;case"H":i=l[0],t.push({key:"L",data:[i,o]});break;case"V":o=l[0],t.push({key:"L",data:[i,o]});break;case"S":{let d=0,u=0;r==="C"||r==="S"?(d=i+(i-n),u=o+(o-h)):(d=i,u=o),t.push({key:"C",data:[d,u,...l]}),n=l[0],h=l[1],i=l[2],o=l[3];break}case"T":{const[d,u]=l;let p=0,y=0;r==="Q"||r==="T"?(p=i+(i-n),y=o+(o-h)):(p=i,y=o);const m=i+2*(p-i)/3,x=o+2*(y-o)/3,C=d+2*(p-d)/3,k=u+2*(y-u)/3;t.push({key:"C",data:[m,x,C,k,d,u]}),n=p,h=y,i=d,o=u;break}case"Q":{const[d,u,p,y]=l,m=i+2*(d-i)/3,x=o+2*(u-o)/3,C=p+2*(d-p)/3,k=y+2*(u-y)/3;t.push({key:"C",data:[m,x,C,k,p,y]}),n=d,h=u,i=p,o=y;break}case"A":{const d=Math.abs(l[0]),u=Math.abs(l[1]),p=l[2],y=l[3],m=l[4],x=l[5],C=l[6];d===0||u===0?(t.push({key:"C",data:[i,o,x,C,x,C]}),i=x,o=C):(i!==x||o!==C)&&(Bf(i,o,x,C,d,u,p,y,m).forEach((function(k){t.push({key:"C",data:k})})),i=x,o=C);break}case"Z":t.push({key:"Z",data:[]}),i=s,o=a}r=c}return t}function mo(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function Bf(e,t,r,i,o,s,a,n,h,c){const l=(d=a,Math.PI*d/180);var d;let u=[],p=0,y=0,m=0,x=0;if(c)[p,y,m,x]=c;else{[e,t]=mo(e,t,-l),[r,i]=mo(r,i,-l);const z=(e-r)/2,W=(t-i)/2;let J=z*z/(o*o)+W*W/(s*s);J>1&&(J=Math.sqrt(J),o*=J,s*=J);const P=o*o,it=s*s,et=P*it-P*W*W-it*z*z,bt=P*W*W+it*z*z,gt=(n===h?-1:1)*Math.sqrt(Math.abs(et/bt));m=gt*o*W/s+(e+r)/2,x=gt*-s*z/o+(t+i)/2,p=Math.asin(parseFloat(((t-x)/s).toFixed(9))),y=Math.asin(parseFloat(((i-x)/s).toFixed(9))),e<m&&(p=Math.PI-p),r<m&&(y=Math.PI-y),p<0&&(p=2*Math.PI+p),y<0&&(y=2*Math.PI+y),h&&p>y&&(p-=2*Math.PI),!h&&y>p&&(y-=2*Math.PI)}let C=y-p;if(Math.abs(C)>120*Math.PI/180){const z=y,W=r,J=i;y=h&&y>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,u=Bf(r=m+o*Math.cos(y),i=x+s*Math.sin(y),W,J,o,s,a,0,h,[y,z,m,x])}C=y-p;const k=Math.cos(p),_=Math.sin(p),T=Math.cos(y),v=Math.sin(y),A=Math.tan(C/4),B=4/3*o*A,D=4/3*s*A,j=[e,t],U=[e+B*_,t-D*k],H=[r+B*v,i-D*T],ot=[r,i];if(U[0]=2*j[0]-U[0],U[1]=2*j[1]-U[1],c)return[U,H,ot].concat(u);{u=[U,H,ot].concat(u);const z=[];for(let W=0;W<u.length;W+=3){const J=mo(u[W][0],u[W][1],l),P=mo(u[W+1][0],u[W+1][1],l),it=mo(u[W+2][0],u[W+2][1],l);z.push([J[0],J[1],P[0],P[1],it[0],it[1]])}return z}}const hS={randOffset:function(e,t){return St(e,t)},randOffsetWithRange:function(e,t,r){return Qs(e,t,r)},ellipse:function(e,t,r,i,o){const s=Ff(r,i,o);return Qn(e,t,o,s).opset},doubleLineOps:function(e,t,r,i,o){return jr(e,t,r,i,o,!0)}};function Lf(e,t,r,i,o){return{type:"path",ops:jr(e,t,r,i,o)}}function Ls(e,t,r){const i=(e||[]).length;if(i>2){const o=[];for(let s=0;s<i-1;s++)o.push(...jr(e[s][0],e[s][1],e[s+1][0],e[s+1][1],r));return t&&o.push(...jr(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:o}}return i===2?Lf(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function cS(e,t,r,i,o){return(function(s,a){return Ls(s,!0,a)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],o)}function od(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=fs(r[0],1*(1+.2*t.roughness),t),o=t.disableMultiStroke?[]:fs(r[0],1.5*(1+.22*t.roughness),nd(t));for(let s=1;s<r.length;s++){const a=r[s];if(a.length){const n=fs(a,1*(1+.2*t.roughness),t),h=t.disableMultiStroke?[]:fs(a,1.5*(1+.22*t.roughness),nd(t));for(const c of n)c.op!=="move"&&i.push(c);for(const c of h)c.op!=="move"&&o.push(c)}}return{type:"path",ops:i.concat(o)}}return{type:"path",ops:[]}}function Ff(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),o=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),s=2*Math.PI/o;let a=Math.abs(e/2),n=Math.abs(t/2);const h=1-r.curveFitting;return a+=St(a*h,r),n+=St(n*h,r),{increment:s,rx:a,ry:n}}function Qn(e,t,r,i){const[o,s]=ld(i.increment,e,t,i.rx,i.ry,1,i.increment*Qs(.1,Qs(.4,1,r),r),r);let a=Js(o,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[n]=ld(i.increment,e,t,i.rx,i.ry,1.5,0,r),h=Js(n,null,r);a=a.concat(h)}return{estimatedPoints:s,opset:{type:"path",ops:a}}}function sd(e,t,r,i,o,s,a,n,h){const c=e,l=t;let d=Math.abs(r/2),u=Math.abs(i/2);d+=St(.01*d,h),u+=St(.01*u,h);let p=o,y=s;for(;p<0;)p+=2*Math.PI,y+=2*Math.PI;y-p>2*Math.PI&&(p=0,y=2*Math.PI);const m=2*Math.PI/h.curveStepCount,x=Math.min(m/2,(y-p)/2),C=hd(x,c,l,d,u,p,y,1,h);if(!h.disableMultiStroke){const k=hd(x,c,l,d,u,p,y,1.5,h);C.push(...k)}return a&&(n?C.push(...jr(c,l,c+d*Math.cos(p),l+u*Math.sin(p),h),...jr(c,l,c+d*Math.cos(y),l+u*Math.sin(y),h)):C.push({op:"lineTo",data:[c,l]},{op:"lineTo",data:[c+d*Math.cos(p),l+u*Math.sin(p)]})),{type:"path",ops:C}}function ad(e,t){const r=vf(Tf(Jl(e))),i=[];let o=[0,0],s=[0,0];for(const{key:a,data:n}of r)switch(a){case"M":s=[n[0],n[1]],o=[n[0],n[1]];break;case"L":i.push(...jr(s[0],s[1],n[0],n[1],t)),s=[n[0],n[1]];break;case"C":{const[h,c,l,d,u,p]=n;i.push(...dS(h,c,l,d,u,p,s,t)),s=[u,p];break}case"Z":i.push(...jr(s[0],s[1],o[0],o[1],t)),s=[o[0],o[1]]}return{type:"path",ops:i}}function Va(e,t){const r=[];for(const i of e)if(i.length){const o=t.maxRandomnessOffset||0,s=i.length;if(s>2){r.push({op:"move",data:[i[0][0]+St(o,t),i[0][1]+St(o,t)]});for(let a=1;a<s;a++)r.push({op:"lineTo",data:[i[a][0]+St(o,t),i[a][1]+St(o,t)]})}}return{type:"fillPath",ops:r}}function bi(e,t){return(function(r,i){let o=r.fillStyle||"hachure";if(!ve[o])switch(o){case"zigzag":ve[o]||(ve[o]=new rS(i));break;case"cross-hatch":ve[o]||(ve[o]=new iS(i));break;case"dots":ve[o]||(ve[o]=new oS(i));break;case"dashed":ve[o]||(ve[o]=new sS(i));break;case"zigzag-line":ve[o]||(ve[o]=new aS(i));break;default:o="hachure",ve[o]||(ve[o]=new Ql(i))}return ve[o]})(t,hS).fillPolygons(e,t)}function nd(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Af(e){return e.randomizer||(e.randomizer=new nS(e.seed||0)),e.randomizer.next()}function Qs(e,t,r,i=1){return r.roughness*i*(Af(r)*(t-e)+e)}function St(e,t,r=1){return Qs(-e,e,t,r)}function jr(e,t,r,i,o,s=!1){const a=s?o.disableMultiStrokeFill:o.disableMultiStroke,n=Jn(e,t,r,i,o,!0,!1);if(a)return n;const h=Jn(e,t,r,i,o,!0,!0);return n.concat(h)}function Jn(e,t,r,i,o,s,a){const n=Math.pow(e-r,2)+Math.pow(t-i,2),h=Math.sqrt(n);let c=1;c=h<200?1:h>500?.4:-.0016668*h+1.233334;let l=o.maxRandomnessOffset||0;l*l*100>n&&(l=h/10);const d=l/2,u=.2+.2*Af(o);let p=o.bowing*o.maxRandomnessOffset*(i-t)/200,y=o.bowing*o.maxRandomnessOffset*(e-r)/200;p=St(p,o,c),y=St(y,o,c);const m=[],x=()=>St(d,o,c),C=()=>St(l,o,c),k=o.preserveVertices;return a?m.push({op:"move",data:[e+(k?0:x()),t+(k?0:x())]}):m.push({op:"move",data:[e+(k?0:St(l,o,c)),t+(k?0:St(l,o,c))]}),a?m.push({op:"bcurveTo",data:[p+e+(r-e)*u+x(),y+t+(i-t)*u+x(),p+e+2*(r-e)*u+x(),y+t+2*(i-t)*u+x(),r+(k?0:x()),i+(k?0:x())]}):m.push({op:"bcurveTo",data:[p+e+(r-e)*u+C(),y+t+(i-t)*u+C(),p+e+2*(r-e)*u+C(),y+t+2*(i-t)*u+C(),r+(k?0:C()),i+(k?0:C())]}),m}function fs(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+St(t,r),e[0][1]+St(t,r)]),i.push([e[0][0]+St(t,r),e[0][1]+St(t,r)]);for(let o=1;o<e.length;o++)i.push([e[o][0]+St(t,r),e[o][1]+St(t,r)]),o===e.length-1&&i.push([e[o][0]+St(t,r),e[o][1]+St(t,r)]);return Js(i,null,r)}function Js(e,t,r){const i=e.length,o=[];if(i>3){const s=[],a=1-r.curveTightness;o.push({op:"move",data:[e[1][0],e[1][1]]});for(let n=1;n+2<i;n++){const h=e[n];s[0]=[h[0],h[1]],s[1]=[h[0]+(a*e[n+1][0]-a*e[n-1][0])/6,h[1]+(a*e[n+1][1]-a*e[n-1][1])/6],s[2]=[e[n+1][0]+(a*e[n][0]-a*e[n+2][0])/6,e[n+1][1]+(a*e[n][1]-a*e[n+2][1])/6],s[3]=[e[n+1][0],e[n+1][1]],o.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[3][1]]})}}else i===3?(o.push({op:"move",data:[e[1][0],e[1][1]]}),o.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&o.push(...Jn(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return o}function ld(e,t,r,i,o,s,a,n){const h=[],c=[];if(n.roughness===0){e/=4,c.push([t+i*Math.cos(-e),r+o*Math.sin(-e)]);for(let l=0;l<=2*Math.PI;l+=e){const d=[t+i*Math.cos(l),r+o*Math.sin(l)];h.push(d),c.push(d)}c.push([t+i*Math.cos(0),r+o*Math.sin(0)]),c.push([t+i*Math.cos(e),r+o*Math.sin(e)])}else{const l=St(.5,n)-Math.PI/2;c.push([St(s,n)+t+.9*i*Math.cos(l-e),St(s,n)+r+.9*o*Math.sin(l-e)]);const d=2*Math.PI+l-.01;for(let u=l;u<d;u+=e){const p=[St(s,n)+t+i*Math.cos(u),St(s,n)+r+o*Math.sin(u)];h.push(p),c.push(p)}c.push([St(s,n)+t+i*Math.cos(l+2*Math.PI+.5*a),St(s,n)+r+o*Math.sin(l+2*Math.PI+.5*a)]),c.push([St(s,n)+t+.98*i*Math.cos(l+a),St(s,n)+r+.98*o*Math.sin(l+a)]),c.push([St(s,n)+t+.9*i*Math.cos(l+.5*a),St(s,n)+r+.9*o*Math.sin(l+.5*a)])}return[c,h]}function hd(e,t,r,i,o,s,a,n,h){const c=s+St(.1,h),l=[];l.push([St(n,h)+t+.9*i*Math.cos(c-e),St(n,h)+r+.9*o*Math.sin(c-e)]);for(let d=c;d<=a;d+=e)l.push([St(n,h)+t+i*Math.cos(d),St(n,h)+r+o*Math.sin(d)]);return l.push([t+i*Math.cos(a),r+o*Math.sin(a)]),l.push([t+i*Math.cos(a),r+o*Math.sin(a)]),Js(l,null,h)}function dS(e,t,r,i,o,s,a,n){const h=[],c=[n.maxRandomnessOffset||1,(n.maxRandomnessOffset||1)+.3];let l=[0,0];const d=n.disableMultiStroke?1:2,u=n.preserveVertices;for(let p=0;p<d;p++)p===0?h.push({op:"move",data:[a[0],a[1]]}):h.push({op:"move",data:[a[0]+(u?0:St(c[0],n)),a[1]+(u?0:St(c[0],n))]}),l=u?[o,s]:[o+St(c[p],n),s+St(c[p],n)],h.push({op:"bcurveTo",data:[e+St(c[p],n),t+St(c[p],n),r+St(c[p],n),i+St(c[p],n),l[0],l[1]]});return h}function yo(e){return[...e]}function cd(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(yo(e[0]),yo(e[1]),yo(e[2]),yo(e[2]));else{const o=[];o.push(e[0],e[0]);for(let n=1;n<e.length;n++)o.push(e[n]),n===e.length-1&&o.push(e[n]);const s=[],a=1-t;i.push(yo(o[0]));for(let n=1;n+2<o.length;n++){const h=o[n];s[0]=[h[0],h[1]],s[1]=[h[0]+(a*o[n+1][0]-a*o[n-1][0])/6,h[1]+(a*o[n+1][1]-a*o[n-1][1])/6],s[2]=[o[n+1][0]+(a*o[n][0]-a*o[n+2][0])/6,o[n+1][1]+(a*o[n][1]-a*o[n+2][1])/6],s[3]=[o[n+1][0],o[n+1][1]],i.push(s[1],s[2],s[3])}}return i}function Fs(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function uS(e,t,r){const i=Fs(t,r);if(i===0)return Fs(e,t);let o=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return o=Math.max(0,Math.min(1,o)),Fs(e,Jr(t,r,o))}function Jr(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function tl(e,t,r,i){const o=i||[];if((function(n,h){const c=n[h+0],l=n[h+1],d=n[h+2],u=n[h+3];let p=3*l[0]-2*c[0]-u[0];p*=p;let y=3*l[1]-2*c[1]-u[1];y*=y;let m=3*d[0]-2*u[0]-c[0];m*=m;let x=3*d[1]-2*u[1]-c[1];return x*=x,p<m&&(p=m),y<x&&(y=x),p+y})(e,t)<r){const n=e[t+0];o.length?(s=o[o.length-1],a=n,Math.sqrt(Fs(s,a))>1&&o.push(n)):o.push(n),o.push(e[t+3])}else{const h=e[t+0],c=e[t+1],l=e[t+2],d=e[t+3],u=Jr(h,c,.5),p=Jr(c,l,.5),y=Jr(l,d,.5),m=Jr(u,p,.5),x=Jr(p,y,.5),C=Jr(m,x,.5);tl([h,u,m,C],0,r,o),tl([C,x,y,d],0,r,o)}var s,a;return o}function pS(e,t){return ta(e,0,e.length,t)}function ta(e,t,r,i,o){const s=o||[],a=e[t],n=e[r-1];let h=0,c=1;for(let l=t+1;l<r-1;++l){const d=uS(e[l],a,n);d>h&&(h=d,c=l)}return Math.sqrt(h)>i?(ta(e,t,c+1,i,s),ta(e,c,r,i,s)):(s.length||s.push(a),s.push(n)),s}function Xa(e,t=.15,r){const i=[],o=(e.length-1)/3;for(let s=0;s<o;s++)tl(e,3*s,t,i);return r&&r>0?ta(i,0,i.length,r):i}const Oe="none";class ea{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,o,s){const a=this._o(s);return this._d("line",[Lf(t,r,i,o,a)],a)}rectangle(t,r,i,o,s){const a=this._o(s),n=[],h=cS(t,r,i,o,a);if(a.fill){const c=[[t,r],[t+i,r],[t+i,r+o],[t,r+o]];a.fillStyle==="solid"?n.push(Va([c],a)):n.push(bi([c],a))}return a.stroke!==Oe&&n.push(h),this._d("rectangle",n,a)}ellipse(t,r,i,o,s){const a=this._o(s),n=[],h=Ff(i,o,a),c=Qn(t,r,a,h);if(a.fill)if(a.fillStyle==="solid"){const l=Qn(t,r,a,h).opset;l.type="fillPath",n.push(l)}else n.push(bi([c.estimatedPoints],a));return a.stroke!==Oe&&n.push(c.opset),this._d("ellipse",n,a)}circle(t,r,i,o){const s=this.ellipse(t,r,i,i,o);return s.shape="circle",s}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[Ls(t,!1,i)],i)}arc(t,r,i,o,s,a,n=!1,h){const c=this._o(h),l=[],d=sd(t,r,i,o,s,a,n,!0,c);if(n&&c.fill)if(c.fillStyle==="solid"){const u=Object.assign({},c);u.disableMultiStroke=!0;const p=sd(t,r,i,o,s,a,!0,!1,u);p.type="fillPath",l.push(p)}else l.push((function(u,p,y,m,x,C,k){const _=u,T=p;let v=Math.abs(y/2),A=Math.abs(m/2);v+=St(.01*v,k),A+=St(.01*A,k);let B=x,D=C;for(;B<0;)B+=2*Math.PI,D+=2*Math.PI;D-B>2*Math.PI&&(B=0,D=2*Math.PI);const j=(D-B)/k.curveStepCount,U=[];for(let H=B;H<=D;H+=j)U.push([_+v*Math.cos(H),T+A*Math.sin(H)]);return U.push([_+v*Math.cos(D),T+A*Math.sin(D)]),U.push([_,T]),bi([U],k)})(t,r,i,o,s,a,c));return c.stroke!==Oe&&l.push(d),this._d("arc",l,c)}curve(t,r){const i=this._o(r),o=[],s=od(t,i);if(i.fill&&i.fill!==Oe)if(i.fillStyle==="solid"){const a=od(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(a.ops)})}else{const a=[],n=t;if(n.length){const h=typeof n[0][0]=="number"?[n]:n;for(const c of h)c.length<3?a.push(...c):c.length===3?a.push(...Xa(cd([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):a.push(...Xa(cd(c),10,(1+i.roughness)/2))}a.length&&o.push(bi([a],i))}return i.stroke!==Oe&&o.push(s),this._d("curve",o,i)}polygon(t,r){const i=this._o(r),o=[],s=Ls(t,!0,i);return i.fill&&(i.fillStyle==="solid"?o.push(Va([t],i)):o.push(bi([t],i))),i.stroke!==Oe&&o.push(s),this._d("polygon",o,i)}path(t,r){const i=this._o(r),o=[];if(!t)return this._d("path",o,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const s=i.fill&&i.fill!=="transparent"&&i.fill!==Oe,a=i.stroke!==Oe,n=!!(i.simplification&&i.simplification<1),h=(function(l,d,u){const p=vf(Tf(Jl(l))),y=[];let m=[],x=[0,0],C=[];const k=()=>{C.length>=4&&m.push(...Xa(C,d)),C=[]},_=()=>{k(),m.length&&(y.push(m),m=[])};for(const{key:v,data:A}of p)switch(v){case"M":_(),x=[A[0],A[1]],m.push(x);break;case"L":k(),m.push([A[0],A[1]]);break;case"C":if(!C.length){const B=m.length?m[m.length-1]:x;C.push([B[0],B[1]])}C.push([A[0],A[1]]),C.push([A[2],A[3]]),C.push([A[4],A[5]]);break;case"Z":k(),m.push([x[0],x[1]])}if(_(),!u)return y;const T=[];for(const v of y){const A=pS(v,u);A.length&&T.push(A)}return T})(t,1,n?4-4*(i.simplification||1):(1+i.roughness)/2),c=ad(t,i);if(s)if(i.fillStyle==="solid")if(h.length===1){const l=ad(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(l.ops)})}else o.push(Va(h,i));else o.push(bi(h,i));return a&&(n?h.forEach((l=>{o.push(Ls(l,!1,i))})):o.push(c)),this._d("path",o,i)}opsToPath(t,r){let i="";for(const o of t.ops){const s=typeof r=="number"&&r>=0?o.data.map((a=>+a.toFixed(r))):o.data;switch(o.op){case"move":i+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":i+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":i+=`L${s[0]} ${s[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,o=[];for(const s of r){let a=null;switch(s.type){case"path":a={d:this.opsToPath(s),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Oe};break;case"fillPath":a={d:this.opsToPath(s),stroke:Oe,strokeWidth:0,fill:i.fill||Oe};break;case"fillSketch":a=this.fillSketch(s,i)}a&&o.push(a)}return o}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Oe,strokeWidth:i,fill:Oe}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}}class fS{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new ea(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),o=this.ctx,s=t.options.fixedDecimalPlaceDigits;for(const a of r)switch(a.type){case"path":o.save(),o.strokeStyle=i.stroke==="none"?"transparent":i.stroke,o.lineWidth=i.strokeWidth,i.strokeLineDash&&o.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(o.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(o,a,s),o.restore();break;case"fillPath":{o.save(),o.fillStyle=i.fill||"";const n=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(o,a,s,n),o.restore();break}case"fillSketch":this.fillSketch(o,a,i)}}fillSketch(t,r,i){let o=i.fillWeight;o<0&&(o=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=o,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,o="nonzero"){t.beginPath();for(const s of r.ops){const a=typeof i=="number"&&i>=0?s.data.map((n=>+n.toFixed(i))):s.data;switch(s.op){case"move":t.moveTo(a[0],a[1]);break;case"bcurveTo":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"lineTo":t.lineTo(a[0],a[1])}}r.type==="fillPath"?t.fill(o):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,o,s){const a=this.gen.line(t,r,i,o,s);return this.draw(a),a}rectangle(t,r,i,o,s){const a=this.gen.rectangle(t,r,i,o,s);return this.draw(a),a}ellipse(t,r,i,o,s){const a=this.gen.ellipse(t,r,i,o,s);return this.draw(a),a}circle(t,r,i,o){const s=this.gen.circle(t,r,i,o);return this.draw(s),s}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,o,s,a,n=!1,h){const c=this.gen.arc(t,r,i,o,s,a,n,h);return this.draw(c),c}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const gs="http://www.w3.org/2000/svg";class gS{constructor(t,r){this.svg=t,this.gen=new ea(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),o=this.svg.ownerDocument||window.document,s=o.createElementNS(gs,"g"),a=t.options.fixedDecimalPlaceDigits;for(const n of r){let h=null;switch(n.type){case"path":h=o.createElementNS(gs,"path"),h.setAttribute("d",this.opsToPath(n,a)),h.setAttribute("stroke",i.stroke),h.setAttribute("stroke-width",i.strokeWidth+""),h.setAttribute("fill","none"),i.strokeLineDash&&h.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&h.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":h=o.createElementNS(gs,"path"),h.setAttribute("d",this.opsToPath(n,a)),h.setAttribute("stroke","none"),h.setAttribute("stroke-width","0"),h.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||h.setAttribute("fill-rule","evenodd");break;case"fillSketch":h=this.fillSketch(o,n,i)}h&&s.appendChild(h)}return s}fillSketch(t,r,i){let o=i.fillWeight;o<0&&(o=i.strokeWidth/2);const s=t.createElementNS(gs,"path");return s.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),s.setAttribute("stroke",i.fill||""),s.setAttribute("stroke-width",o+""),s.setAttribute("fill","none"),i.fillLineDash&&s.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,o,s){const a=this.gen.line(t,r,i,o,s);return this.draw(a)}rectangle(t,r,i,o,s){const a=this.gen.rectangle(t,r,i,o,s);return this.draw(a)}ellipse(t,r,i,o,s){const a=this.gen.ellipse(t,r,i,o,s);return this.draw(a)}circle(t,r,i,o){const s=this.gen.circle(t,r,i,o);return this.draw(s)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,o,s,a,n=!1,h){const c=this.gen.arc(t,r,i,o,s,a,n,h);return this.draw(c)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var dt={canvas:(e,t)=>new fS(e,t),svg:(e,t)=>new gS(e,t),generator:e=>new ea(e),newSeed:()=>ea.newSeed()},mS=1,yS=3;async function th(e){const t=e.getElementsByTagName("img");if(!t||t.length===0)return;const r=!eh(e);await Promise.all([...t].map(i=>new Promise(o=>{function s(){if(i.style.display="flex",i.style.flexDirection="column",r){const a=Mt().fontSize?Mt().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[h=Tu.fontSize]=ca(a),c=h*n+"px";i.style.minWidth=c,i.style.maxWidth=c}else i.style.width="100%";o(i)}f(s,"setupImage"),setTimeout(()=>{i.complete&&s()}),i.addEventListener("error",s),i.addEventListener("load",s)}
200)))}f(th,"configureLabelImages");function eh(e){return e.nodeType===yS?e.textContent?.trim()!=="":e.nodeType!==mS||e.tagName.toLowerCase()==="img"?!1:[...e.childNodes].some(eh)}f(eh,"hasTextBesidesImages");var dd=3,xS=32,CS=f(async(e,t,r)=>{const i=Mt(),o=e.insert("g").attr("class",r??"node default").attr("id",t.domId||t.id),s=o.insert("g").attr("class","label").attr("style",ie(t.labelStyle)),n=[{text:typeof t.label=="string"?t.label:t.label?.[0]??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(C=>({text:C,cssClass:"c4-descr"}))].filter(C=>C.text),h=t.width?Math.max(t.width-2*(t.padding??0),xS):Mt().flowchart?.wrappingWidth??200,l=i.c4?.wrap??!0?h:Number.POSITIVE_INFINITY,d=await Promise.all(n.map(async C=>{const k=s.append("g").attr("class",C.cssClass),_=await Je(k,ze(Hr(C.text??""),i),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:l,style:t.labelStyle},i);return Bt(_).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),Bt(_).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:k,box:k.node().getBBox()}})),u=Math.max(...d.map(({box:C})=>C.width),0);let p=0;for(const{el:C,box:k}of d)C.attr("transform",`translate(${u/2-k.x-k.width/2}, ${p-k.y})`),p+=k.height+dd;const y=d.length>0?p-dd:0;s.insert("rect",":first-child"),s.attr("transform",`translate(${-u/2}, ${-y/2})`);const m=s.node().getBBox(),x=(t.padding??0)/2;return{shapeSvg:o,bbox:m,halfPadding:x,label:s}},"c4LabelHelper"),yt=f(async(e,t,r)=>{if(t.stereotype!==void 0)return CS(e,t,r);let i;const o=t.useHtmlLabels||pr(Mt()?.htmlLabels);r?i=r:i="node default";const s=e.insert("g").attr("class",i).attr("id",t.domId||t.id),a=s.insert("g").attr("class","label").attr("style",ie(t.labelStyle));let n;t.label===void 0?n="":n=typeof t.label=="string"?t.label:t.label[0];const h=!!t.icon||!!t.img,c=t.labelType==="markdown",l=await Je(a,ze(Hr(n),Mt()),{useHtmlLabels:o,width:t.width||t.wrappingWidth||Mt().flowchart?.wrappingWidth,classes:c?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:h,markdown:c},Mt()),d=(t?.padding??0)/2;let u;if(o){const p=l.children[0],y=Bt(l);await th(p),u=await hi.measure(()=>p.getBoundingClientRect()),y.attr("width",u.width),y.attr("height",u.height)}else u=await hi.measure(()=>l.getBBox());return o?a.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):a.attr("transform","translate(0, "+-u.height/2+")"),t.centerLabel&&a.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:s,bbox:u,halfPadding:d,label:a}},"labelHelper"),Za=f(async(e,t,r)=>{const i=r.useHtmlLabels??xe(Mt()),o=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await Je(o,ze(Hr(t),Mt()),{useHtmlLabels:i,width:r.width||Mt()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),a=r.padding/2;let n;if(xe(Mt())){const h=s.children[0],c=Bt(s);n=await hi.measure(()=>h.getBoundingClientRect()),c.attr("width",n.width),c.attr("height",n.height)}else n=await hi.measure(()=>s.getBBox());return i?o.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):o.attr("transform","translate(0, "+-n.height/2+")"),r.centerLabel&&o.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:e,bbox:n,halfPadding:a,label:o}},"insertLabel"),ut=f((e,t,r)=>{if(r){e.width=r.width,e.height=r.height;return}const i=t.node().getBBox();e.width=i.width,e.height=i.height},"updateNodeBounds"),xt=f((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Pt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}f(Pt,"createPathFromPoints");function Yr(e,t,r,i,o,s){const a=[],h=r-e,c=i-t,l=h/s,d=2*Math.PI/l,u=t+c/2;for(let p=0;p<=50;p++){const y=p/50,m=e+y*h,x=u+o*Math.sin(d*(m-e));a.push({x:m,y:x})}return a}f(Yr,"generateFullSineWavePoints");function lr(e,t,r,i,o,s){const a=[],n=o*Math.PI/180,l=(s*Math.PI/180-n)/(i-1);for(let d=0;d<i;d++){const u=n+d*l,p=e+r*Math.cos(u),y=t+r*Math.sin(u);a.push({x:-p,y:-y})}return a}f(lr,"generateCirclePoints");function el(e){const t=Array.from(e.childNodes).filter(h=>h.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(h=>h.getAttribute("d")).filter(h=>h!==null).join(" ");r.setAttribute("d",i);const o=t.find(h=>h.getAttribute("fill")!=="none"),s=t.find(h=>h.getAttribute("stroke")!=="none"),a=f((h,c)=>h?.getAttribute(c)??void 0,"getAttr");if(o){const h={fill:a(o,"fill"),"fill-opacity":a(o,"fill-opacity")??"1"};
200Object.entries(h).forEach(([c,l])=>{l&&r.setAttribute(c,l)})}if(s){const h={stroke:a(s,"stroke"),"stroke-width":a(s,"stroke-width")??"1","stroke-opacity":a(s,"stroke-opacity")??"1"};Object.entries(h).forEach(([c,l])=>{l&&r.setAttribute(c,l)})}const n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.appendChild(r),n}f(el,"mergePaths");var bS=f((e,t)=>{var r=e.x,i=e.y,o=t.x-r,s=t.y-i,a=e.width/2,n=e.height/2,h,c;return Math.abs(s)*a>Math.abs(o)*n?(s<0&&(n=-n),h=s===0?0:n*o/s,c=n):(o<0&&(a=-a),h=a,c=o===0?0:a*s/o),{x:r+h,y:i+c}},"intersectRect"),ui=bS,We=f((e,t,r,i,o)=>["M",e+o,t,"H",e+r-o,"A",o,o,0,0,1,e+r,t+o,"V",t+i-o,"A",o,o,0,0,1,e+r-o,t+i,"H",e+o,"A",o,o,0,0,1,e,t+i-o,"V",t+o,"A",o,o,0,0,1,e+o,t,"Z"].join(" "),"createRoundedRectPathD"),kS=f(async(e,t,r,i=!1,o=!1)=>{let s=t||"";typeof s=="object"&&(s=s[0]);const a=Mt(),n=xe(a);return await Je(e,s,{style:r,isTitle:i,useHtmlLabels:n,markdown:!1,isNode:o,width:Number.POSITIVE_INFINITY},a)},"createLabel"),Nr=kS;function Ef(e,t){return e.intersect(t)}f(Ef,"intersectNode");var wS=Ef;function Mf(e,t,r,i){var o=e.x,s=e.y,a=o-i.x,n=s-i.y,h=Math.sqrt(t*t*n*n+r*r*a*a),c=Math.abs(t*r*a/h);i.x<o&&(c=-c);var l=Math.abs(t*r*n/h);return i.y<s&&(l=-l),{x:o+c,y:s+l}}f(Mf,"intersectEllipse");var Of=Mf;function $f(e,t,r){return Of(e,t,t,r)}f($f,"intersectCircle");var _S=$f;function Df(e,t,r,i){{const o=t.y-e.y,s=e.x-t.x,a=t.x*e.y-e.x*t.y,n=o*r.x+s*r.y+a,h=o*i.x+s*i.y+a,c=1e-6;if(n!==0&&h!==0&&rl(n,h))return;const l=i.y-r.y,d=r.x-i.x,u=i.x*r.y-r.x*i.y,p=l*e.x+d*e.y+u,y=l*t.x+d*t.y+u;if(Math.abs(p)<c&&Math.abs(y)<c&&rl(p,y))return;const m=o*d-l*s;if(m===0)return;const x=Math.abs(m/2);let C=s*u-d*a;const k=C<0?(C-x)/m:(C+x)/m;C=l*a-o*u;const _=C<0?(C-x)/m:(C+x)/m;return{x:k,y:_}}}f(Df,"intersectLine");function rl(e,t){return e*t>0}f(rl,"sameSign");var SS=Df;function Pf(e,t,r){let i=e.x,o=e.y,s=[],a=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(l){a=Math.min(a,l.x),n=Math.min(n,l.y)}):(a=Math.min(a,t.x),n=Math.min(n,t.y));let h=i-e.width/2-a,c=o-e.height/2-n;for(let l=0;l<t.length;l++){let d=t[l],u=t[l<t.length-1?l+1:0],p=SS(e,r,{x:h+d.x,y:c+d.y},{x:h+u.x,y:c+u.y});p&&s.push(p)}return s.length?(s.length>1&&s.sort(function(l,d){let u=l.x-r.x,p=l.y-r.y,y=Math.sqrt(u*u+p*p),m=d.x-r.x,x=d.y-r.y,C=Math.sqrt(m*m+x*x);return y<C?-1:y===C?0:1}),s[0]):e}f(Pf,"intersectPolygon");var TS=Pf,at={node:wS,circle:_S,ellipse:Of,polygon:TS,rect:ui};function If(e,t){const{labelStyles:r}=pt(t);t.labelStyle=r;const i=xt(t);let o=i;i||(o="anchor");const s=e.insert("g").attr("class",o).attr("id",t.domId||t.id),a=1,{cssStyles:n}=t,h=dt.svg(s),c=ct(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const l=h.circle(0,0,a*2,c),d=s.insert(()=>l,":first-child");return d.attr("class","anchor").attr("style",ie(n)),ut(t,d),t.intersect=function(u){return $.info("Circle intersect",t,a,u),at.circle(t,a,u)},s}f(If,"anchor");function il(e,t,r,i,o,s,a){const h=(e+r)/2,c=(t+i)/2,l=Math.atan2(i-t,r-e),d=(r-e)/2,u=(i-t)/2,p=d/o,y=u/s,m=Math.sqrt(p**2+y**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const x=Math.sqrt(1-m**2),C=h+x*s*Math.sin(l)*(a?-1:1),k=c-x*o*Math.cos(l)*(a?-1:1),_=Math.atan2((t-k)/s,(e-C)/o);let v=Math.atan2((i-k)/s,(r-C)/o)-_;a&&v<0&&(v+=2*Math.PI),!a&&v>0&&(v-=2*Math.PI);const A=[];for(let B=0;B<20;B++){const D=B/19,j=_+D*v,U=C+o*Math.cos(j),H=k+s*Math.sin(j);A.push({x:U,y:H})}return A}f(il,"generateArcPoints");function Rf(e,t,r){const[i,o]=[t,r].sort((s,a)=>a-s);return o*(1-Math.sqrt(1-(e/i/2)**2))}f(Rf,"calculateArcSagitta");async function Nf(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?12:o,n=f(j=>j+a,"calcTotalHeight"),h=f(j=>{const U=j/2;return[U/(2.5+j/50),U]},"calcEllipseRadius"),{shapeSvg:c,bbox:l}=await yt(e,t,xt(t)),d=n(t?.height?t?.height:l.height),[u,p]=h(d),y=Rf(d,u,p),x=(t?.width?t?.width:l.width)+s*2+y-y,C=d,{cssStyles:k}=t,_=[{x:x/2,y:-C/2},{x:-x/2,y:-C/2},...il(-x/2,-C/2,-x/2,C/2,u,p,!1),{x:x/2,y:C/2},...il(x/2,C/2,x/2,-C/2,u,p,!0)],T=dt.svg(c),v=ct(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const A=Pt(_),B=T.path(A,v),D=c.insert(()=>B,":first-child");return D.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",i),D.attr("transform",`translate(${u/2}, 0)`),ut(t,D),t.intersect=function(j){return at.polygon(t,_,j)},c}f(Nf,"bowTieRect");async function zf(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=pt(t);t.labelStyle=i;const{shapeSvg:s,bbox:a,label:n}=await yt(e,t,xt(t)),h=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,l=Math.max(a.width+c*2,t.width??0,80),d=Math.max(Math.min(l*.08,12),5),u=Math.max(a.height+c*2+d,t.height??0),p=-u/2+d,y=u/2,m=l*.72,x=[`M${-l/2},${p}`,`L${-m/2},${y}`,`A${m/2},${d} 0 0 0 ${m/2},${y}`,`L${l/2},${p}`,`A${l/2},${d} 0 0 0 ${-l/2},${p}`,"Z"].join(" "),{cssStyles:C}=t,k=s.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const D=dt.svg(s).path(x,ct(t,{}));k.node()?.appendChild(D),C&&k.attr("style",C)}else k.append("path").attr("d",x).attr("style",o);k.append("ellipse").attr("cx",0).attr("cy",p).attr("rx",l/2).attr("ry",d).attr("style",`fill:none;stroke:${h};stroke-width:1px`),ut(t,k);const _=p+(y-p)/2;n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${_-a.height/2-(a.y-(a.top??0))})`);const T=12,v=f((B,D,j)=>Array.from({length:T+1},(U,H)=>{const ot=Math.PI-H*Math.PI/T;return{x:B*Math.cos(ot),y:D+j*d*Math.sin(ot)}}),"arc"),A=[...v(l/2,p,-1),...v(m/2,y,1).reverse()];return t.intersect=function(B){return at.polygon(t,A,B)},s}f(zf,"bucket");var ud=20,pd=8,vS=80,Ka=8;async function qf(e,t){const{themeVariables:r}=Mt(),i=r.clusterBkg,o=r.clusterBorder,{nodeStyles:s}=pt(t),{shapeSvg:a,bbox:n}=await yt(e,t,xt(t)),h=t.padding??8,c=n.height,l=Math.max(n.width+h*2,vS,t?.width??0),d=Math.max(c+pd+ud+h*2,t?.height??0),u=-l/2,p=-d/2,y=-28/2,m=a.select(".label");m&&(t.useHtmlLabels??xe(Mt())?m.attr("transform",`translate(${-n.width/2}, ${-n.height/2+y})`):m.attr("transform",`translate(0, ${-n.height/2+y})`));let x;if(t.look==="handDrawn"){const v=dt.svg(a),A=ct(t,{fill:i,stroke:o,fillStyle:"solid"}),B=v.path(We(u,p,l,d,Ka),A);x=a.insert(()=>B,":first-child"),x.attr("class","basic label-container collapsed-group").attr("style",ie(t.cssStyles))}else x=a.insert("rect",":first-child"),x.attr("class","basic label-container collapsed-group").attr("style",s).attr("rx",Ka).attr("ry",Ka).attr("x",u).attr("y",p).attr("width",l).attr("height",d).attr("fill",i).attr("stroke",o);const C=p+h+c+pd;a.append("line").attr("class","collapsed-separator").attr("x1",u+8).attr("y1",C).attr("x2",u+l-8).attr("y2",C).attr("stroke",o).attr("stroke-dasharray","3, 3");const k=C+ud/2,_=2.5,T=10;for(let v=-1;v<=1;v++)a.append("circle").attr("class","collapsed-indicator").attr("cx",v*T).attr("cy",k).attr("r",_).attr("fill",o);return ut(t,x),t.calcIntersect=function(v,A){return at.rect(v,A)},t.intersect=function(v){return at.rect(t,v)},a}f(qf,"collapsedGroup");
vendor: 5,482 bytes, line 200
200function gr(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}f(gr,"insertPolygonShape");var BS=["right","left","up","down"],rh="point",LS=f(e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),FS=f(e=>BS.filter(t=>e.has(t)).join("|")||rh,"getDirectionKey"),fd={"right|left|up|down":f(({height:e,midpoint:t,padding:r,width:i})=>[{x:0,y:0},{x:t,y:0},{x:i/2,y:2*r},{x:i-t,y:0},{x:i,y:0},{x:i,y:-e/3},{x:i+2*r,y:-e/2},{x:i,y:-2*e/3},{x:i,y:-e},{x:i-t,y:-e},{x:i/2,y:-e-2*r},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*r,y:-e/2},{x:0,y:-e/3}],"right|left|up|down"),"right|left|up":f(({height:e,midpoint:t,width:r})=>[{x:t,y:0},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],"right|left|up"),"right|left|down":f(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:t,y:-e},{x:r-t,y:-e},{x:r,y:0}],"right|left|down"),"right|up|down":f(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:r,y:-e+t},{x:0,y:-e}],"right|up|down"),"left|up|down":f(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:r,y:-e}],"left|up|down"),"right|left":f(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"right|left"),"up|down":f(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"up|down"),"right|up":f(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:0,y:-e}],"right|up"),"right|down":f(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],"right|down"),"left|up":f(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:r,y:-e}],"left|up"),"left|down":f(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],"left|down"),right:f(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e+r}],"right"),left:f(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"left"),up:f(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r}],"up"),down:f(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"down"),[rh]:()=>[{x:0,y:0}]},AS=f((e,t,r,i)=>{const o=LS(e),s=(r.padding??0)/2,a=t.height+4*s,n=a/2,h=i??t.width+2*n+2*s,c=FS(o);return(fd[c]??fd[rh])({height:a,midpoint:n,padding:s,width:h})},"getArrowPoints");async function Wf(e,t){const r=t,{shapeSvg:i,bbox:o}=await yt(e,r,xt(r)),s=r.padding??0,a=o.height+2*s,n=a/2,h=o.width+2*n+s,c=r.width??0,d=r.positioned&&(r.widthInColumns??1)>1&&c>h?c:h,u=AS(r.directions??[],o,r,d),p=gr(i,d,a,u);return p.attr("style",r.style??null),ut(r,p),r.intersect=function(y){return at.polygon(r,u,y)},i}f(Wf,"block_arrow");async function Hf(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=pt(t);t.labelStyle=i;const{shapeSvg:s,bbox:a,label:n}=await yt(e,t,xt(t)),h=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,l=18,d=12,u=Math.max(a.width+c*2,t.width??0,90),p=Math.max(a.height+c*2+l,t.height??0),y=-p/2,{cssStyles:m}=t,x=s.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const _=dt.svg(s).path(We(-u/2,y,u,p,d),ct(t,{}));x.node()?.appendChild(_),m&&x.attr("style",m)}else x.append("rect").attr("x",-u/2).attr("y",y).attr("width",u).attr("height",p).attr("rx",d).attr("ry",d).attr("style",o);x.append("line").attr("x1",-u/2).attr("y1",y+l).attr("x2",u/2).attr("y2",y+l).attr("style",`stroke:${h};stroke-width:1px`);for(let k=0;k<3;k++)x.append("circle").attr("cx",-u/2+12+k*9).attr("cy",y+l/2).attr("r",2.5).attr("style",`fill:${h};stroke:none`);x.append("rect").attr("class","browser-address-bar").attr("x",-u/2+44).attr("y",y+4).attr("width",Math.max(u-56,10)).attr("height",l-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${h};stroke-width:1px;opacity:0.6`),ut(t,x);const C=y+l+(p-l)/2;return n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${C-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(k){return at.rect(t,k)},s}f(Hf,"browser");var ms=12;async function jf(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?28:o,a=t.look==="neo"?24:o,{shapeSvg:n,bbox:h}=await yt(e,t,xt(t)),c=(t?.width??h.width)+(t.look==="neo"?s*2:s+ms),l=(t?.height??h.height)+(t.look==="neo"?a*2:a),d=0,u=c,p=-l,y=0,m=[{x:d+ms,y:p},{x:u,y:p},{x:u,y},{x:d,y},{x:d,y:p+ms},{x:d+ms,y:p}];let x;const{cssStyles:C}=t;if(t.look==="handDrawn"){const k=dt.svg(n),_=ct(t,{}),T=Pt(m),v=k.path(T,_);x=n.insert(()=>v,":first-child").attr("transform",`translate(${-c/2}, ${l/2})`),C&&x.attr("style",C)}else x=gr(n,c,l,m);return i&&x.attr("style",i),ut(t,x),t.intersect=function(k){return at.polygon(t,m,k)},n}f(jf,"card");function Yf(e,t){const{nodeStyles:r}=pt(t);t.label="";const i=e.insert("g").attr("class",xt(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,s=Math.max(28,t.width??0),a=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}
vendor: 4,305 bytes, lines 200-201
200],n=dt.svg(i),h=ct(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const c=Pt(a),l=n.path(c,h),d=i.insert(()=>l,":first-child");return o&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",o),r&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(u){return at.polygon(t,a,u)},i}f(Yf,"choice");async function ih(e,t,r){const{labelStyles:i,nodeStyles:o}=pt(t);t.labelStyle=i;const{shapeSvg:s,bbox:a,halfPadding:n}=await yt(e,t,xt(t)),h=16,c=r?.padding??n,l=t.look==="neo"?a.width/2+h*2:a.width/2+c;let d;const{cssStyles:u}=t;if(t.look==="handDrawn"){const p=dt.svg(s),y=ct(t,{}),m=p.circle(0,0,l*2,y);d=s.insert(()=>m,":first-child"),d.attr("class","basic label-container").attr("style",ie(u))}else d=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",l).attr("cx",0).attr("cy",0);return ut(t,d),t.calcIntersect=function(p,y){const m=p.width/2;return at.circle(p,m,y)},t.intersect=function(p){return $.info("Circle intersect",t,l,p),at.circle(t,l,p)},s}f(ih,"circle");async function Uf(e,t){const r=t,i=["node",r.cssClasses,r.class].filter(Boolean).join(" "),{shapeSvg:o,bbox:s,halfPadding:a}=await yt(e,r,i),n=o.insert("rect",":first-child"),h=r.padding??0,c=r.positioned?r.width??0:s.width+h,l=r.positioned?r.height??0:s.height+h,d=r.positioned?-c/2:-s.width/2-a,u=r.positioned?-l/2:-s.height/2-a;return n.attr("class","basic cluster composite label-container").attr("style",r.style??null).attr("rx",r.rx??null).attr("ry",r.ry??null).attr("x",d).attr("y",u).attr("width",c).attr("height",l),ut(r,n),r.intersect=function(p){return at.rect(r,p)},o}f(Uf,"composite");async function Gf(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=pt(t);t.labelStyle=i;const{shapeSvg:s,bbox:a,label:n}=await yt(e,t,xt(t)),h=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,l=20,d=12,u=Math.max(a.width+c*2,t.width??0,90),p=Math.max(a.height+c*2+l,t.height??0),y=-p/2,{cssStyles:m}=t,x=s.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const _=dt.svg(s).path(We(-u/2,y,u,p,d),ct(t,{}));x.node()?.appendChild(_),m&&x.attr("style",m)}else x.append("rect").attr("x",-u/2).attr("y",y).attr("width",u).attr("height",p).attr("rx",d).attr("ry",d).attr("style",o);x.append("text").attr("x",-u/2+12).attr("y",y+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${h}`).text(">_"),ut(t,x);const C=y+l+(p-l)/2;return n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${C-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(k){return at.rect(t,k)},s}f(Gf,"consoleWindow");function Vf(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,o={x:i/2*t,y:i/2*r},s={x:-(i/2)*t,y:i/2*r},a={x:-(i/2)*t,y:-(i/2)*r},n={x:i/2*t,y:-(i/2)*r};return`M ${s.x},${s.y} L ${n.x},${n.y} 201 M ${o.x},${o.y} L ${a.x},${a.y}`}f(Vf,"createLine");function Xf(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r,t.label="";const o=e.insert("g").attr("class",xt(t)).attr("id",t.domId??t.id),s=Math.max(30,t?.width??0),{cssStyles:a}=t,n=dt.svg(o),h=ct(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const c=n.circle(0,0,s*2,h),l=Vf(s),d=n.path(l,h),u=o.insert(()=>c,":first-child");return u.insert(()=>d),u.attr("class","outer-path"),a&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",i),ut(t,u),t.intersect=function(p){return $.info("crossedCircle intersect",t,{radius:s,point:p}),at.circle(t,s,p)},o}f(Xf,"crossedCircle");function wr(e,t,r,i=100,o=0,s=180){const a=[],n=o*Math.PI/180,l=(s*Math.PI/180-n)/(i-1);for(let d=0;d<i;d++){const u=n+d*l,p=e+r*Math.cos(u),y=t+r*Math.sin(u);a.push({x:-p,y:-y})}return a}f(wr,"generateCirclePoints");async function Zf(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,label:a}=await yt(e,t,xt(t)),n=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,c=s.width+n,l=s.height+h,d=Math.max(5,l*.1),{cssStyles:u}=t,p=[...wr(c/2,-l/2,d,30,-90,0),{x:-c/2-d,y:d},...wr(c/2+d*2,-d,d,20,-180,-270),...wr(c/2+d*2,d,d,20,-90,-180),{x:-c/2-d,y:-l/2},...wr(c/2,l/2,d,20,0,90)],y=[{x:c/2,y:-l/2-d},{x:-c/2,y:-l/2-d}
vendor: 3,129 bytes, line 201
201,...wr(c/2,-l/2,d,20,-90,0),{x:-c/2-d,y:-d},...wr(c/2+c*.1,-d,d,20,-180,-270),...wr(c/2+c*.1,d,d,20,-90,-180),{x:-c/2-d,y:l/2},...wr(c/2,l/2,d,20,0,90),{x:-c/2,y:l/2+d},{x:c/2,y:l/2+d}],m=dt.svg(o),x=ct(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=Pt(p).replace("Z",""),_=m.path(k,x),T=Pt(y),v=m.path(T,{...x}),A=o.insert("g",":first-child");return A.insert(()=>v,":first-child").attr("stroke-opacity",0),A.insert(()=>_,":first-child"),A.attr("class","text"),u&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${d}, 0)`),a.attr("transform",`translate(${-c/2+d-(s.x-(s.left??0))},${-l/2+(t.padding??0)/2-(s.y-(s.top??0))})`),ut(t,A),t.intersect=function(B){return at.polygon(t,y,B)},o}f(Zf,"curlyBraceLeft");function _r(e,t,r,i=100,o=0,s=180){const a=[],n=o*Math.PI/180,l=(s*Math.PI/180-n)/(i-1);for(let d=0;d<i;d++){const u=n+d*l,p=e+r*Math.cos(u),y=t+r*Math.sin(u);a.push({x:p,y})}return a}f(_r,"generateCirclePoints");async function Kf(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,label:a}=await yt(e,t,xt(t)),n=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,c=s.width+(t.look==="neo"?n*2:n),l=s.height+(t.look==="neo"?h*2:h),d=Math.max(5,l*.1),{cssStyles:u}=t,p=[..._r(c/2,-l/2,d,20,-90,0),{x:c/2+d,y:-d},..._r(c/2+d*2,-d,d,20,-180,-270),..._r(c/2+d*2,d,d,20,-90,-180),{x:c/2+d,y:l/2},..._r(c/2,l/2,d,20,0,90)],y=[{x:-c/2,y:-l/2-d},{x:c/2,y:-l/2-d},..._r(c/2,-l/2,d,20,-90,0),{x:c/2+d,y:-d},..._r(c/2+d*2,-d,d,20,-180,-270),..._r(c/2+d*2,d,d,20,-90,-180),{x:c/2+d,y:l/2},..._r(c/2,l/2,d,20,0,90),{x:c/2,y:l/2+d},{x:-c/2,y:l/2+d}],m=dt.svg(o),x=ct(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=Pt(p).replace("Z",""),_=m.path(k,x),T=Pt(y),v=m.path(T,{...x}),A=o.insert("g",":first-child");return A.insert(()=>v,":first-child").attr("stroke-opacity",0),A.insert(()=>_,":first-child"),A.attr("class","text"),u&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${-d}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(s.x-(s.left??0))},${-l/2+(t.padding??0)/2-(s.y-(s.top??0))})`),ut(t,A),t.intersect=function(B){return at.polygon(t,y,B)},o}f(Kf,"curlyBraceRight");function ue(e,t,r,i=100,o=0,s=180){const a=[],n=o*Math.PI/180,l=(s*Math.PI/180-n)/(i-1);for(let d=0;d<i;d++){const u=n+d*l,p=e+r*Math.cos(u),y=t+r*Math.sin(u);a.push({x:-p,y:-y})}return a}f(ue,"generateCirclePoints");async function Qf(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,label:a}=await yt(e,t,xt(t)),n=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,c=s.width+(t.look==="neo"?n*2:n),l=s.height+(t.look==="neo"?h*2:h),d=Math.max(5,l*.1),{cssStyles:u}=t,p=[...ue(c/2,-l/2,d,30,-90,0),{x:-c/2-d,y:d},...ue(c/2+d*2,-d,d,20,-180,-270),...ue(c/2+d*2,d,d,20,-90,-180),{x:-c/2-d,y:-l/2},...ue(c/2,l/2,d,20,0,90)],y=[...ue(-c/2+d+d/2,-l/2,d,20,-90,-180),{x:c/2-d/2,y:d}
vendor: 4,862 bytes, line 201
201,...ue(-c/2-d/2,-d,d,20,0,90),...ue(-c/2-d/2,d,d,20,-90,0),{x:c/2-d/2,y:-d},...ue(-c/2+d+d/2,l/2,d,30,-180,-270)],m=[{x:c/2,y:-l/2-d},{x:-c/2,y:-l/2-d},...ue(c/2,-l/2,d,20,-90,0),{x:-c/2-d,y:-d},...ue(c/2+d*2,-d,d,20,-180,-270),...ue(c/2+d*2,d,d,20,-90,-180),{x:-c/2-d,y:l/2},...ue(c/2,l/2,d,20,0,90),{x:-c/2,y:l/2+d},{x:c/2-d-d/2,y:l/2+d},...ue(-c/2+d+d/2,-l/2,d,20,-90,-180),{x:c/2-d/2,y:d},...ue(-c/2-d/2,-d,d,20,0,90),...ue(-c/2-d/2,d,d,20,-90,0),{x:c/2-d/2,y:-d},...ue(-c/2+d+d/2,l/2,d,30,-180,-270)],x=dt.svg(o),C=ct(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const _=Pt(p).replace("Z",""),T=x.path(_,C),A=Pt(y).replace("Z",""),B=x.path(A,C),D=Pt(m),j=x.path(D,{...C}),U=o.insert("g",":first-child");return U.insert(()=>j,":first-child").attr("stroke-opacity",0),U.insert(()=>T,":first-child"),U.insert(()=>B,":first-child"),U.attr("class","text"),u&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",i),U.attr("transform",`translate(${d-d/4}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(s.x-(s.left??0))},${-l/2+(t.padding??0)/2-(s.y-(s.top??0))})`),ut(t,U),t.intersect=function(H){return at.polygon(t,m,H)},o}f(Qf,"curlyBraces");async function Jf(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?12:o,n=20,h=5,{shapeSvg:c,bbox:l}=await yt(e,t,xt(t)),d=Math.max(n,(l.width+s*2)*1.25,t?.width??0),u=Math.max(h,l.height+a*2,t?.height??0),p=u/2,{cssStyles:y}=t,m=dt.svg(c),x=ct(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=d,k=u,_=C-p,T=k/4,v=[{x:_,y:0},{x:T,y:0},{x:0,y:k/2},{x:T,y:k},{x:_,y:k},...lr(-_,-k/2,p,50,270,90)],A=Pt(v),B=m.path(A,x),D=c.insert(()=>B,":first-child");return D.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&D.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&D.selectChildren("path").attr("style",i),D.attr("transform",`translate(${-d/2}, ${-u/2})`),ut(t,D),t.intersect=function(j){return at.polygon(t,v,j)},c}f(Jf,"curvedTrapezoid");async function tg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,label:a}=await yt(e,t,xt(t)),n=t.padding??20,h=Math.max(s.width+n*2,t.width??0,100),c=Math.min(Math.max(h*.23,16),56),l=c*.27,d=Math.max(s.height+n*2,t.height?t.height-(2*c-l):0),u=Math.min(h*.177,d*.45),p=d+2*c-l,y=-p/2,m=y+2*c-l,x=o.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:C}=t;if(t.look==="handDrawn"){const D=dt.svg(o),j=ct(t,{}),U=D.path(We(-h/2,m,h,d,u),j),H=D.circle(0,y+c,c*2,j);x.insert(()=>H,":first-child"),x.insert(()=>U,":first-child"),C&&x.attr("style",C)}else x.append("rect").attr("x",-h/2).attr("y",m).attr("width",h).attr("height",d).attr("rx",u).attr("ry",u).attr("style",i),x.append("circle").attr("cx",0).attr("cy",y+c).attr("r",c).attr("style",i);ut(t,x);const k=m+d/2;a.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${k-s.height/2-(s.y-(s.top??0))})`);const _=y+c,T=Math.asin(Math.min(1,(m-_)/c))*180/Math.PI,B=[...lr(0,-_,c,24,180+T,-T),...lr(-(-h/2+u),-(m+u),u,12,90,0),...lr(-(-h/2+u),-(p/2-u),u,12,360,270),...lr(-(h/2-u),-(p/2-u),u,12,270,180),...lr(-(h/2-u),-(m+u),u,12,180,90)];return t.intersect=function(D){return at.polygon(t,B,D)},o}f(tg,"person");var ES=f((e,t,r,i,o,s)=>[`M${e},${t+s}`,`a${o},${s} 0,0,0 ${r},0`,`a${o},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),MS=f((e,t,r,i,o,s)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${o},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),OS=f((e,t,r,i,o,s)=>[`M${e-r/2},${-i/2}`,`a${o},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),gd=8,md=8;async function eg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?24:o,a=t.look==="neo"?24:o,n=t.width??0;if(t.width&&(t.width=t.width-a,t.width<md&&(t.width=md)),t.height){const k=n/2/(2.5+n/50);t.height=t.height-s-k*3,t.height<gd&&(t.height=gd)}const{shapeSvg:h,bbox:c,label:l}=await yt(e,t,xt(t)),d=Math.max(t.width??0,c.width)+a,u=d/2,p=u/(2.5+d/50),y=Math.max(t.height??0,c.height)+s+p;let m;const{cssStyles:x}=t;if(t.look==="handDrawn"){const C=dt.svg(h),k=MS(0,0,d,y,u,p),_=OS(0,p,d,y,u,p),T=ct(t,{}),v=C.path(k,T),A=C.path(_,ct(t,{fill:"none"}));m=h.insert(()=>A,":first-child"),m=h.insert(()=>v,":first-child"),m.attr("class","basic label-container"),x&&m.attr("style",x)}else{const C=ES(0,0,d,y,u,p);m=h.insert("path",":first-child").attr("d",C).attr("class","basic label-container outer-path").attr("style",ie(x)).attr("style",i)}return m.attr("label-offset-y",p),m.attr("transform",`translate(${-d/2}, ${-(y/2+p)})`),ut(t,m),l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}
201, ${-(c.height/2)+(t.padding??0)/1.5-(c.y-(c.top??0))})`),t.intersect=function(C){const k=at.rect(t,C),_=k.x-(t.x??0);if(u!=0&&(Math.abs(_)<(t.width??0)/2||Math.abs(_)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-p)){let T=p*p*(1-_*_/(u*u));T>0&&(T=Math.sqrt(T)),T=p-T,C.y-(t.y??0)>0&&(T=-T),k.y+=T}return k},h}f(eg,"cylinder");async function ro(e,t,r){const{labelStyles:i,nodeStyles:o}=pt(t);t.labelStyle=i;const{shapeSvg:s,bbox:a}=await yt(e,t,xt(t)),n=Math.max(a.width+r.labelPaddingX*2,t?.width||0),h=Math.max(a.height+r.labelPaddingY*2,t?.height||0),c=-n/2,l=-h/2;let d,{rx:u,ry:p}=t;const{cssStyles:y}=t;if(r?.rx&&r.ry&&(u=r.rx,p=r.ry),t.look==="handDrawn"){const m=dt.svg(s),x=ct(t,{}),C=u||p?m.path(We(c,l,n,h,u||0),x):m.rectangle(c,l,n,h,x);d=s.insert(()=>C,":first-child"),d.attr("class","basic label-container").attr("style",ie(y))}else d=s.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",o).attr("rx",ie(u)).attr("ry",ie(p)).attr("x",c).attr("y",l).attr("width",n).attr("height",h);return ut(t,d,t.look==="handDrawn"?void 0:{width:n,height:h}),t.calcIntersect=function(m,x){return at.rect(m,x)},t.intersect=function(m){return at.rect(t,m)},s}f(ro,"drawRect");async function rg(e,t){const{cssClasses:r,labelPaddingX:i,labelPaddingY:o,padding:s,width:a,height:n}=t,h={rx:0,ry:0,labelPaddingX:i??(s??0)*2,labelPaddingY:o??s??0},c=await ro(e,t,h);if(t.look==="handDrawn"){const p=dt.svg(c),y=ct(t,{}),m=c.select(".basic.label-container > path:nth-child(2)"),x=m.node();if(!x)return c;let C=null;if(x instanceof SVGGraphicsElement)C=x.getBBox();else return c;return c.insert(()=>p.line(C.x,C.y,C.x+C.width,C.y,y),".basic.label-container g.label"),c.insert(()=>p.line(C.x,C.y+C.height,C.x+C.width,C.y+C.height,y),".basic.label-container g.label"),m.remove(),c}const l=c.select(".basic.label-container"),d=(Number(l.attr("width"))||a)??0,u=(Number(l.attr("height"))||n)??0;return d>0&&u>0&&l.attr("stroke-dasharray",`${d} ${u}`),c}f(rg,"datastore");async function ig(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?16:t.padding??0,{shapeSvg:a,bbox:n,label:h}=await yt(e,t,xt(t)),c=n.width+o,l=n.height+s,d=l*.2,u=-c/2,p=-l/2-d/2,{cssStyles:y}=t,m=dt.svg(a),x=ct(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=[{x:u,y:p+d},{x:-u,y:p+d},{x:-u,y:-p},{x:u,y:-p},{x:u,y:p},{x:-u,y:p},{x:-u,y:p+d}],k=m.polygon(C.map(T=>[T.x,T.y]),x),_=a.insert(()=>k,":first-child");return _.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),h.attr("transform",`translate(${u+(t.padding??0)/2-(n.x-(n.left??0))}, ${p+d+(t.padding??0)/2-(n.y-(n.top??0))})`),ut(t,_),t.intersect=function(T){return at.rect(t,T)},a}f(ig,"dividedRectangle");async function og(e,t){const{labelStyles:r,nodeStyles:i}=pt(t),o=t.look==="neo"?12:5;t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,{shapeSvg:n,bbox:h}=await yt(e,t,xt(t)),c=(t?.width?t?.width/2:h.width/2)+(a??0),l=c-o;let d;const{cssStyles:u}=t;if(t.look==="handDrawn"){const p=dt.svg(n),y=ct(t,{roughness:.2,strokeWidth:2.5}),m=ct(t,{roughness:.2,strokeWidth:1.5}),x=p.circle(0,0,c*2,y),C=p.circle(0,0,l*2,m);d=n.insert("g",":first-child"),d.attr("class",ie(t.cssClasses)).attr("style",ie(u)),d.node()?.appendChild(x),d.node()?.appendChild(C)}else{d=n.insert("g",":first-child");const p=d.insert("circle",":first-child"),y=d.insert("circle");d.attr("class","basic label-container").attr("style",i),p.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),y.attr("class","inner-circle").attr("style",i).attr("r",l).attr("cx",0).attr("cy",0)}return ut(t,d),t.intersect=function(p){return $.info("DoubleCircle intersect",t,c,p),at.circle(t,c,p)},n}f(og,"doublecircle");function sg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=pt(t);t.label="",t.labelStyle=i;const s=e.insert("g").attr("class",xt(t)).attr("id",t.domId??t.id),a=7,{cssStyles:n}=t,h=dt.svg(s),{nodeBorder:c}=r,l=ct(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(l.roughness=0);const d=h.circle(0,0,a*2,l),u=s.insert(()=>d,":first-child");return u.selectAll("path").attr("style",`fill: ${c} !important;`),n&&n.length>0&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",n),o&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",o),ut(t,u),t.intersect=function(p){return $.info("filledCircle intersect",t,{radius:a,point:p}),at.circle(t,a,p)},s}f(sg,"filledCircle");var yd=10,xd=10;async function ag(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?o*2:o;(t.width||t.height)&&(t.height=t?.height??0,t.height<yd&&(t.height=yd),t.width=(t?.
201width??0)-s-s/2,t.width<xd&&(t.width=xd));const{shapeSvg:a,bbox:n,label:h}=await yt(e,t,xt(t)),c=(t?.width?t?.width:n.width)+(s??0),l=t?.height?t?.height:c+n.height,d=l,u=[{x:0,y:-l},{x:d,y:-l},{x:d/2,y:0}],{cssStyles:p}=t,y=dt.svg(a),m=ct(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=Pt(u),C=y.path(x,m),k=a.insert(()=>C,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`).attr("class","outer-path");return p&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=c,t.height=l,ut(t,k),h.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-l/2+(t.padding??0)/2+(n.y-(n.top??0))})`),t.intersect=function(_){return $.info("Triangle intersect",t,u,_),at.polygon(t,u,_)},a}f(ag,"flippedTriangle");async function ng(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,label:a}=await yt(e,t,xt(t)),n=t.padding??12,h=Math.max(s.width+n*2,t.width??0,90),c=s.height+n*2,l=Math.max(Math.min(c*.16,14),8),d=Math.max(c+l,t.height??0),u=d-l,p=Math.max(h*.38,28),y=-d/2,m=[{x:-h/2,y},{x:-h/2+p,y},{x:-h/2+p,y:y+l},{x:h/2,y:y+l},{x:h/2,y:d/2},{x:-h/2,y:d/2}],x=[`M${m[0].x},${m[0].y}`,...m.slice(1).map(T=>`L${T.x},${T.y}`),"Z"].join(" "),{cssStyles:C}=t;let k;if(t.look==="handDrawn"){const v=dt.svg(o).path(x,ct(t,{}));k=o.insert(()=>v,":first-child").attr("class","basic label-container"),C&&k.attr("style",C)}else k=o.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",i);t.look==="handDrawn"?ut(t,k):ut(t,k,{width:h,height:d});const _=y+l+u/2;return a.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${_-s.height/2-(s.y-(s.top??0))})`),t.intersect=function(T){return at.polygon(t,m,T)},o}f(ng,"folder");function lg(e,t,{dir:r,config:{state:i,themeVariables:o}}){const{nodeStyles:s}=pt(t);t.label="";const a=e.insert("g").attr("class",xt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t;let h=Math.max(70,t?.width??0),c=Math.max(10,t?.height??0);r==="LR"&&(h=Math.max(10,t?.width??0),c=Math.max(70,t?.height??0));const l=-1*h/2,d=-1*c/2,u=dt.svg(a),p=ct(t,{stroke:o.lineColor,fill:o.lineColor});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=u.rectangle(l,d,h,c,p),m=a.insert(()=>y,":first-child");n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),s&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",s),ut(t,m);const x=i?.padding??0;return t.width&&t.height&&(t.width+=x/2||0,t.height+=x/2||0),t.intersect=function(C){return at.rect(t,C)},a}f(lg,"forkJoin");async function hg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=15,s=10,a=t.look==="neo"?16:t.padding??0,n=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-n*2,t.height<s&&(t.height=s),t.width=(t?.width??0)-a*2,t.width<o&&(t.width=o));const{shapeSvg:h,bbox:c}=await yt(e,t,xt(t)),l=(t?.width?t?.width:Math.max(o,c.width))+a*2,d=(t?.height?t?.height:Math.max(s,c.height))+n*2,u=d/2,{cssStyles:p}=t,y=dt.svg(h),m=ct(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-l/2,y:-d/2},{x:l/2-u,y:-d/2},...lr(-l/2+u,0,u,50,90,270),{x:l/2-u,y:d/2},{x:-l/2,y:d/2}],C=Pt(x),k=y.path(C,m),_=h.insert(()=>k,":first-child");return _.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),ut(t,_),t.intersect=function(T){return $.info("Pill intersect",t,{radius:u,point:T}),at.polygon(t,x,T)},h}f(hg,"halfRoundedRectangle");var $S=f((e,t,r,i,o)=>[`M${e+o},${t}`,`L${e+r-o},${t}`,`L${e+r},${t-i/2}`,`L${e+r-o},${t-i}`,`L${e+o},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function cg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t),o=t.look==="neo"?3.5:4;t.labelStyle=r;const s=t.padding??0,a=70,n=32,h=t.look==="neo"?a:s,c=t.look==="neo"?n:s;if(t.width||t.height){const _=(t.height??0)/o;t.width=(t?.width??0)-2*_-c,t.height=(t.height??0)-h}const{shapeSvg:l,bbox:d}=await yt(e,t,xt(t)),u=(t?.height?t?.height:d.height)+h,p=u/o,y=(t?.width?t?.width:d.width)+2*p+c,m=[{x:p,y:0},{x:y-p,y:0},{x:y,y:-u/2},{x:y-p,y:-u},{x:p,y:-u},{x:0,y:-u/2}];let x;const{cssStyles:C}=t;if(t.look==="handDrawn"){const k=dt.svg(l),_=ct(t,{}),T=$S(0,0,y,u,p),v=k.path(T,_);x=l.insert(()=>v,":first-child").attr("transform",`translate(${-y/2}, ${u/2})`),C&&x.attr("style",C)}else x=gr(l,y,u,m);return i&&x.attr("style",i),t.width=y,t.height=u,ut(t,x),t.intersect=function(k){return at.polygon(t,m,k)},l}f(cg,"hexagon");async function dg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.label="",t.labelStyle=r;const{shapeSvg:o}=await yt(e,t,xt(t)),s=Math.max(30,t?.width??0),a=Math.max(30,t?.height??0),{cssStyles:n}=t,h=dt.svg(o),c=ct(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const l=[{x:0,y:0},{x:s,y:0},{x:0,y:a},{x:s,y:a}],d=Pt(l),u=h.path(d,c),p=o.insert(()=>u,":first-child");return p.attr("class","basic label-container outer-path"),n&&t.look!=="handDrawn"&&p.selectChildren("path").attr("style",n),i&&t.look!=="handDrawn"&&p.selectChildren("path").attr("style",i),p.attr("transform",`translate(${-s/2}, ${-a/2})`),ut(t,p),t.intersect=function(y){return $.info("Pill intersect",t,{points:l}),at.polygon(t,l,y)},o}f(dg,"hourglass");async function ug(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=pt(t);t.labelStyle=o;const s=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(s,a),h=i?.wrappingWidth;t.width=Math.max(n,h??0);const{shapeSvg:c,bbox:l,label:d}=await yt(e,t,"icon-shape default"),u=t.pos==="t",p=n,y=n,{nodeBorder:m}=r,{stylesMap:x}=eo(t),C=-y/2,k=-p/2,_=t.label?8:0,T=dt.svg(c),v=ct(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const A=T.rectangle(C,k,y,p,v),B=Math.max(y,l.width),D=p+l.height+_,j=T.rectangle(-B/2,-D/2,B,D,{...v,fill:"transparent",stroke:"none"}),U=c.insert(()=>A,":first-child"),H=c.insert(()=>j);if(t.icon){const ot=c.append("g");ot.html(`<g>${await Vo(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);
vendor: 5,994 bytes, line 201
201const z=ot.node().getBBox(),W=z.width,J=z.height,P=z.x,it=z.y;ot.attr("transform",`translate(${-W/2-P},${u?l.height/2+_/2-J/2-it:-l.height/2-_/2-J/2-it})`),ot.attr("style",`color: ${x.get("stroke")??m};`)}return d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${u?-D/2:D/2-l.height})`),U.attr("transform",`translate(0,${u?l.height/2+_/2:-l.height/2-_/2})`),ut(t,H),t.intersect=function(ot){if($.info("iconSquare intersect",t,ot),!t.label)return at.rect(t,ot);const z=t.x??0,W=t.y??0,J=t.height??0;let P=[];return u?P=[{x:z-l.width/2,y:W-J/2},{x:z+l.width/2,y:W-J/2},{x:z+l.width/2,y:W-J/2+l.height+_},{x:z+y/2,y:W-J/2+l.height+_},{x:z+y/2,y:W+J/2},{x:z-y/2,y:W+J/2},{x:z-y/2,y:W-J/2+l.height+_},{x:z-l.width/2,y:W-J/2+l.height+_}]:P=[{x:z-y/2,y:W-J/2},{x:z+y/2,y:W-J/2},{x:z+y/2,y:W-J/2+p},{x:z+l.width/2,y:W-J/2+p},{x:z+l.width/2/2,y:W+J/2},{x:z-l.width/2,y:W+J/2},{x:z-l.width/2,y:W-J/2+p},{x:z-y/2,y:W-J/2+p}],at.polygon(t,P,ot)},c}f(ug,"icon");async function pg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=pt(t);t.labelStyle=o;const s=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(s,a),h=i?.wrappingWidth;t.width=Math.max(n,h??0);const{shapeSvg:c,bbox:l,label:d}=await yt(e,t,"icon-shape default"),u=20,p=t.label?8:0,y=t.pos==="t",{nodeBorder:m,mainBkg:x}=r,{stylesMap:C}=eo(t),k=dt.svg(c),_=ct(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const T=C.get("fill");_.stroke=T??x;const v=c.append("g");t.icon&&v.html(`<g>${await Vo(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const A=v.node().getBBox(),B=A.width,D=A.height,j=A.x,U=A.y,H=Math.max(B,D)*Math.SQRT2+u*2,ot=k.circle(0,0,H,_),z=Math.max(H,l.width),W=H+l.height+p,J=k.rectangle(-z/2,-W/2,z,W,{..._,fill:"transparent",stroke:"none"}),P=c.insert(()=>ot,":first-child"),it=c.insert(()=>J);return v.attr("transform",`translate(${-B/2-j},${y?l.height/2+p/2-D/2-U:-l.height/2-p/2-D/2-U})`),v.attr("style",`color: ${C.get("stroke")??m};`),d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${y?-W/2:W/2-l.height})`),P.attr("transform",`translate(0,${y?l.height/2+p/2:-l.height/2-p/2})`),ut(t,it),t.intersect=function(et){return $.info("iconSquare intersect",t,et),at.rect(t,et)},c}f(pg,"iconCircle");async function fg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=pt(t);t.labelStyle=o;const s=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(s,a),h=i?.wrappingWidth;t.width=Math.max(n,h??0);const{shapeSvg:c,bbox:l,halfPadding:d,label:u}=await yt(e,t,"icon-shape default"),p=t.pos==="t",y=n+d*2,m=n+d*2,{nodeBorder:x,mainBkg:C}=r,{stylesMap:k}=eo(t),_=-m/2,T=-y/2,v=t.label?8:0,A=dt.svg(c),B=ct(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");const D=k.get("fill");B.stroke=D??C;const j=A.path(We(_,T,m,y,5),B),U=Math.max(m,l.width),H=y+l.height+v,ot=A.rectangle(-U/2,-H/2,U,H,{...B,fill:"transparent",stroke:"none"}),z=c.insert(()=>j,":first-child").attr("class","icon-shape2"),W=c.insert(()=>ot);if(t.icon){const J=c.append("g");J.html(`<g>${await Vo(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const P=J.node().getBBox(),it=P.width,et=P.height,bt=P.x,gt=P.y;J.attr("transform",`translate(${-it/2-bt},${p?l.height/2+v/2-et/2-gt:-l.height/2-v/2-et/2-gt})`),J.attr("style",`color: ${k.get("stroke")??x};`)}return u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${p?-H/2:H/2-l.height})`),z.attr("transform",`translate(0,${p?l.height/2+v/2:-l.height/2-v/2})`),ut(t,W),t.intersect=function(J){if($.info("iconSquare intersect",t,J),!t.label)return at.rect(t,J);const P=t.x??0,it=t.y??0,et=t.height??0;let bt=[];return p?bt=[{x:P-l.width/2,y:it-et/2},{x:P+l.width/2,y:it-et/2},{x:P+l.width/2,y:it-et/2+l.height+v},{x:P+m/2,y:it-et/2+l.height+v},{x:P+m/2,y:it+et/2},{x:P-m/2,y:it+et/2},{x:P-m/2,y:it-et/2+l.height+v},{x:P-l.width/2,y:it-et/2+l.height+v}]:bt=[{x:P-m/2,y:it-et/2},{x:P+m/2,y:it-et/2},{x:P+m/2,y:it-et/2+y},{x:P+l.width/2,y:it-et/2+y},{x:P+l.width/2/2,y:it+et/2},{x:P-l.width/2,y:it+et/2},{x:P-l.width/2,y:it-et/2+y},{x:P-m/2,y:it-et/2+y}],at.polygon(t,bt,J)},c}f(fg,"iconRounded");async function gg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=pt(t);t.labelStyle=o;const s=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(s,a),h=i?.wrappingWidth;t.width=Math.max(n,h??0);const{shapeSvg:c,bbox:l,halfPadding:d,label:u}=await yt(e,t,"icon-shape default"),p=t.pos==="t",y=n+d*2,m=n+d*2,{nodeBorder:x,mainBkg:C}=r,{stylesMap:k}=eo(t),_=-m/2,T=-y/2,v=t.label?8:0,A=dt.svg(c),B=ct(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");const D=k.get("fill");B.stroke=D??C;const j=A.path(We(_,T,m,y,.1),B),U=Math.max(m,l.width),H=y+l.height+v,ot=A.rectangle(-U/2,-H/2,U,H,{...B,fill:"transparent",stroke:"none"}),z=c.insert(()=>j,":first-child"),W=c.insert(()=>ot);if(t.icon){const J=c.append("g");J.html(`<g>${await Vo(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const P=J.node().getBBox(),it=P.width,et=P.height,bt=P.x,gt=P.y;J.attr("transform",`translate(${-it/2-bt},${p?l.height/2+v/2-et/2-gt:-l.height/2-v/2-et/2-gt})`),J.attr("style",`color: ${k.get("stroke")??x};`)}return u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${p?-H/2:H/2-l.height})`),z.attr("transform",`translate(0,${p?l.height/2+v/2:-l.height/2-v/2})`),ut(t,W),t.intersect=function(J){if($.info("iconSquare intersect",t,J),!t.label)return at.rect(t,J);const P=t.x??0,it=t.y??0,et=t.height??0;let bt=[];return p?bt=[{x:P-l.width/2,y:it-et/2},{x:P+l.width/2,y:it-et/2},{x:P+l.width/2,y:it-et/2+l.height+v},{x:P+m/2,y:it-et/2+l.height+v},{x:P+m/2,y:it+et/2},{x:P-m/2,y:it+et/2},{x:P-m/2,y:it-et/2+l.height+v},{x:P-l.width/2,y:it-et/2+l.height+v}]:bt=[{x:P-m/2,y:it-et/2},{x:P+m/2,y:it-et/2},{x:P+m/2,y:it-et/2+y},{x:P+l.width/2,y:it-et/2+y},{x:P+l.width/2/2,y:it+et/2},{x:P-l.width/2,y:it+et/2},{x:P-l.width/2,y:it-et/2+y},{x:P-m/2,y:it-et/2+y}],at.polygon(t,bt,J)},c}f(gg,"iconSquare");async function mg(e,t,{config:{flowchart:r}}){const i=new Image;i.src=t?.img??"",await i.decode();
vendor: 5,934 bytes, line 201
201const o=Number(i.naturalWidth.toString().replace("px","")),s=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=o/s;const{labelStyles:a}=pt(t);t.labelStyle=a;const n=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;const h=Math.max(t.label?n??0:0,t?.assetWidth??o),c=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:h,l=t.constraint==="on"?c/t.imageAspectRatio:t?.assetHeight??s;t.width=Math.max(c,n??0);const{shapeSvg:d,bbox:u,label:p}=await yt(e,t,"image-shape default"),y=t.pos==="t",m=-c/2,x=-l/2,C=t.label?8:0,k=dt.svg(d),_=ct(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const T=k.rectangle(m,x,c,l,_),v=Math.max(c,u.width),A=l+u.height+C,B=k.rectangle(-v/2,-A/2,v,A,{..._,fill:"none",stroke:"none"}),D=d.insert(()=>T,":first-child"),j=d.insert(()=>B);if(t.img){const U=d.append("image");U.attr("href",t.img),U.attr("width",c),U.attr("height",l),U.attr("preserveAspectRatio","none"),U.attr("transform",`translate(${-c/2},${y?A/2-l:-A/2})`)}return p.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${y?-l/2-u.height/2-C/2:l/2-u.height/2+C/2})`),D.attr("transform",`translate(0,${y?u.height/2+C/2:-u.height/2-C/2})`),ut(t,j),t.intersect=function(U){if($.info("iconSquare intersect",t,U),!t.label)return at.rect(t,U);const H=t.x??0,ot=t.y??0,z=t.height??0;let W=[];return y?W=[{x:H-u.width/2,y:ot-z/2},{x:H+u.width/2,y:ot-z/2},{x:H+u.width/2,y:ot-z/2+u.height+C},{x:H+c/2,y:ot-z/2+u.height+C},{x:H+c/2,y:ot+z/2},{x:H-c/2,y:ot+z/2},{x:H-c/2,y:ot-z/2+u.height+C},{x:H-u.width/2,y:ot-z/2+u.height+C}]:W=[{x:H-c/2,y:ot-z/2},{x:H+c/2,y:ot-z/2},{x:H+c/2,y:ot-z/2+l},{x:H+u.width/2,y:ot-z/2+l},{x:H+u.width/2/2,y:ot+z/2},{x:H-u.width/2,y:ot+z/2},{x:H-u.width/2,y:ot-z/2+l},{x:H-c/2,y:ot-z/2+l}],at.polygon(t,W,U)},d}f(mg,"imageSquare");async function yg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=o,a=t.look==="neo"?o*2:o,{shapeSvg:n,bbox:h}=await yt(e,t,xt(t)),c=Math.max(h.height+s*2,t.height??0),l=Math.max(h.width+a*2,(t.width??0)-c),d=[{x:0,y:0},{x:l,y:0},{x:l+3*c/6,y:-c},{x:-3*c/6,y:-c}];let u;const{cssStyles:p}=t;if(t.look==="handDrawn"){const y=dt.svg(n),m=ct(t,{}),x=Pt(d),C=y.path(x,m);u=n.insert(()=>C,":first-child").attr("transform",`translate(${-l/2}, ${c/2})`),p&&u.attr("style",p)}else u=gr(n,l,c,d);return i&&u.attr("style",i),t.width=l,t.height=c,ut(t,u),t.intersect=function(y){return at.polygon(t,d,y)},n}f(yg,"inv_trapezoid");async function xg(e,t){const{shapeSvg:r,bbox:i,label:o}=await yt(e,t,"label"),s=r.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),ut(t,s),t.intersect=function(h){return at.rect(t,h)},r}f(xg,"labelRect");async function Cg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=o,a=t.look==="neo"?o*2:o,{shapeSvg:n,bbox:h}=await yt(e,t,xt(t)),c=Math.max(h.height+s,t.height??0),l=Math.max(h.width+a,(t.width??0)-c),d=[{x:0,y:0},{x:l+3*c/6,y:0},{x:l,y:-c},{x:-(3*c)/6,y:-c}];let u;const{cssStyles:p}=t;if(t.look==="handDrawn"){const y=dt.svg(n),m=ct(t,{}),x=Pt(d),C=y.path(x,m);u=n.insert(()=>C,":first-child").attr("transform",`translate(${-l/2}, ${c/2})`),p&&u.attr("style",p)}else u=gr(n,l,c,d);return i&&u.attr("style",i),t.width=l,t.height=c,ut(t,u),t.intersect=function(y){return at.polygon(t,d,y)},n}f(Cg,"lean_left");async function bg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=o,a=t.look==="neo"?o*2:o,{shapeSvg:n,bbox:h}=await yt(e,t,xt(t)),c=Math.max(h.height+s,t.height??0),l=Math.max(h.width+a,(t.width??0)-c),d=[{x:-3*c/6,y:0},{x:l,y:0},{x:l+3*c/6,y:-c},{x:0,y:-c}];let u;const{cssStyles:p}=t;if(t.look==="handDrawn"){const y=dt.svg(n),m=ct(t,{}),x=Pt(d),C=y.path(x,m);u=n.insert(()=>C,":first-child").attr("transform",`translate(${-l/2}, ${c/2})`),p&&u.attr("style",p)}else u=gr(n,l,c,d);return i&&u.attr("style",i),t.width=l,t.height=c,ut(t,u),t.intersect=function(y){return at.polygon(t,d,y)},n}f(bg,"lean_right");function kg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.label="",t.labelStyle=r;const o=e.insert("g").attr("class",xt(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,a=Math.max(35,t?.width??0),n=Math.max(35,t?.height??0),h=7,c=[{x:a,y:0},{x:0,y:n+h/2},{x:a-2*h,y:n+h/2},{x:0,y:2*n},{x:a,y:n-h/2},{x:2*h,y:n-h/2}],l=dt.svg(o),d=ct(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const u=Pt(c),p=l.path(u,d),y=o.insert(()=>p,":first-child");return y.attr("class","outer-path"),s&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(-${a/2},${-n})`),ut(t,y),t.intersect=function(m){return $.info("lightningBolt intersect",t,m),at.polygon(t,c,m)},o}f(kg,"lightningBolt");var DS=f((e,t,r,i,o,s,a)=>[`M${e},${t+s}`,`a${o},${s} 0,0,0 ${r},0`,`a${o},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+s+a}`,`a${o},${s} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),PS=f((e,t,r,i,o,s,a)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${o},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+s+a}`,`a${o},${s} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),IS=f((e,t,r,i,o,s)=>[`M${e-r/2},${-i/2}`,`a${o},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Cd=10,bd=10;async function wg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?24:o;if(t.width||t.height){const C=t.width??0;t.width=(t.width??0)-s,t.width<bd&&(t.width=bd);const _=C/2/(2.5+C/50);t.height=(t.height??0)-a-_*3,t.height<Cd&&(t.height=Cd)}const{shapeSvg:n,bbox:h,label:c}=await yt(e,t,xt(t)),l=(t?.width?t?.width:h.width)+s*2,d=l/2,u=d/(2.5+l/50),p=(t?.height?t?.height:h.height)+u+a*2,y=p*.1;let m;const{cssStyles:x}=t;
vendor: 4,330 bytes, line 201
201if(t.look==="handDrawn"){const C=dt.svg(n),k=PS(0,0,l,p,d,u,y),_=IS(0,u,l,p,d,u),T=ct(t,{}),v=C.path(k,T),A=C.path(_,T);n.insert(()=>A,":first-child").attr("class","line"),m=n.insert(()=>v,":first-child"),m.attr("class","basic label-container"),x&&m.attr("style",x)}else{const C=DS(0,0,l,p,d,u,y);m=n.insert("path",":first-child").attr("d",C).attr("class","basic label-container outer-path").attr("style",ie(x)).attr("style",i)}return m.attr("label-offset-y",u),m.attr("transform",`translate(${-l/2}, ${-(p/2+u)})`),ut(t,m),c.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${-(h.height/2)+u-(h.y-(h.top??0))})`),t.intersect=function(C){const k=at.rect(t,C),_=k.x-(t.x??0);if(d!=0&&(Math.abs(_)<(t.width??0)/2||Math.abs(_)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-u)){let T=u*u*(1-_*_/(d*d));T>0&&(T=Math.sqrt(T)),T=u-T,C.y-(t.y??0)>0&&(T=-T),k.y+=T}return k},n}f(wg,"linedCylinder");async function _g(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?12:o;if(t.width||t.height){const T=t.width;t.width=(T??0)*10/11-s*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-a*2,t.height<10&&(t.height=10)}const{shapeSvg:n,bbox:h,label:c}=await yt(e,t,xt(t)),l=(t?.width?t?.width:h.width)+(s??0)*2,d=(t?.height?t?.height:h.height)+(a??0)*2,u=t.look==="neo"?d/4:d/8,p=d+u,{cssStyles:y}=t,m=dt.svg(n),x=ct(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=[{x:-l/2-l/2*.1,y:-p/2},{x:-l/2-l/2*.1,y:p/2},...Yr(-l/2-l/2*.1,p/2,l/2+l/2*.1,p/2,u,.8),{x:l/2+l/2*.1,y:-p/2},{x:-l/2-l/2*.1,y:-p/2},{x:-l/2,y:-p/2},{x:-l/2,y:p/2*1.1},{x:-l/2,y:-p/2}],k=m.polygon(C.map(T=>[T.x,T.y]),x),_=n.insert(()=>k,":first-child");return _.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(0,${-u/2})`),c.attr("transform",`translate(${-l/2+(t.padding??0)+l/2*.1/2-(h.x-(h.left??0))},${-d/2+(t.padding??0)-u/2-(h.y-(h.top??0))})`),ut(t,_),t.intersect=function(T){return at.polygon(t,C,T)},n}f(_g,"linedWaveEdgedRect");async function Sg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?12:o,n=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-s*2-2*n,10),t.height=Math.max((t?.height??0)-a*2-2*n,10));const{shapeSvg:h,bbox:c,label:l}=await yt(e,t,xt(t)),d=(t?.width?t?.width:c.width)+s*2+2*n,u=(t?.height?t?.height:c.height)+a*2+2*n,p=d-2*n,y=u-2*n,m=-p/2,x=-y/2,{cssStyles:C}=t,k=dt.svg(h),_=ct(t,{}),T=[{x:m-n,y:x+n},{x:m-n,y:x+y+n},{x:m+p-n,y:x+y+n},{x:m+p-n,y:x+y},{x:m+p,y:x+y},{x:m+p,y:x+y-n},{x:m+p+n,y:x+y-n},{x:m+p+n,y:x-n},{x:m+n,y:x-n},{x:m+n,y:x},{x:m,y:x},{x:m,y:x+n}],v=[{x:m,y:x+n},{x:m+p-n,y:x+n},{x:m+p-n,y:x+y},{x:m+p,y:x+y},{x:m+p,y:x},{x:m,y:x}];t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const A=Pt(T);let B=k.path(A,_);const D=Pt(v);let j=k.path(D,_);t.look!=="handDrawn"&&(B=el(B),j=el(j));const U=h.insert("g",":first-child");return U.insert(()=>B),U.insert(()=>j),U.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(c.width/2)-n-(c.x-(c.left??0))}, ${-(c.height/2)+n-(c.y-(c.top??0))})`),ut(t,U),t.intersect=function(H){return at.polygon(t,T,H)},h}f(Sg,"multiRect");async function Tg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,label:a}=await yt(e,t,xt(t)),n=t.padding??0,h=t.look==="neo"?16:n,c=t.look==="neo"?12:n;let l=!0;(t.width||t.height)&&(l=!1,t.width=(t?.width??0)-h*2,t.height=(t?.height??0)-c*3);const d=Math.max(s.width,t?.width??0)+h*2,u=Math.max(s.height,t?.height??0)+c*3,p=t.look==="neo"?u/4:u/8,y=u+(l?p/2:-p/2),m=-d/2,x=-y/2,C=10,{cssStyles:k}=t,_=Yr(m-C,x+y+C,m+d-C,x+y+C,p,.8),T=_?.[_.length-1],v=[{x:m-C,y:x+C},{x:m-C,y:x+y+C},..._,{x:m+d-C,y:T.y-C},{x:m+d,y:T.y-C},{x:m+d,y:T.y-2*C},{x:m+d+C,y:T.y-2*C},{x:m+d+C,y:x-C},{x:m+C,y:x-C},{x:m+C,y:x},{x:m,y:x},{x:m,y:x+C}],A=[{x:m,y:x+C},{x:m+d-C,y:x+C},{x:m+d-C,y:T.y-C},{x:m+d,y:T.y-C},{x:m+d,y:x},{x:m,y:x}],B=dt.svg(o),D=ct(t,{});t.look!=="handDrawn"&&(D.roughness=0,D.fillStyle="solid");
vendor: 5,163 bytes, line 201
201const j=Pt(v),U=B.path(j,D),H=Pt(A),ot=B.path(H,D),z=o.insert(()=>U,":first-child");return z.insert(()=>ot),z.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",i),z.attr("transform",`translate(0,${-p/2})`),a.attr("transform",`translate(${-(s.width/2)-C-(s.x-(s.left??0))}, ${-(s.height/2)+C-p/2-(s.y-(s.top??0))})`),ut(t,z),t.intersect=function(W){return at.polygon(t,v,W)},o}f(Tg,"multiWaveEdgedRectangle");async function vg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=pt(t);t.labelStyle=i,t.useHtmlLabels||xe(Xt())||(t.centerLabel=!0);const{shapeSvg:a,bbox:n,label:h}=await yt(e,t,xt(t)),c=Math.max(n.width+(t.padding??0)*2,t?.width??0),l=Math.max(n.height+(t.padding??0)*2,t?.height??0),d=-c/2,u=-l/2,{cssStyles:p}=t,y=dt.svg(a),m=ct(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=y.rectangle(d,u,c,l,m),C=a.insert(()=>x,":first-child");return C.attr("class","basic label-container outer-path"),h.attr("class","label noteLabel"),p&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",p),o&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",o),h.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),ut(t,C),t.intersect=function(k){return at.rect(t,k)},a}f(vg,"note");var RS=f((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Bg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s}=await yt(e,t,xt(t)),a=s.width+(t.padding??0),n=s.height+(t.padding??0),h=a+n,c=.5,l=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}];let d;const{cssStyles:u}=t;if(t.look==="handDrawn"){const p=dt.svg(o),y=ct(t,{}),m=RS(0,0,h),x=p.path(m,y);d=o.insert(()=>x,":first-child").attr("transform",`translate(${-h/2+c}, ${h/2})`),u&&d.attr("style",u)}else d=gr(o,h,h,l),d.attr("transform",`translate(${-h/2+c}, ${h/2})`);return i&&d.attr("style",i),ut(t,d),t.calcIntersect=function(p,y){const m=p.width,x=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],C=at.polygon(p,x,y);return{x:C.x-.5,y:C.y-.5}},t.intersect=function(p){return this.calcIntersect(t,p)},o}f(Bg,"question");async function Lg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?21:o??0,a=t.look==="neo"?12:o??0,{shapeSvg:n,bbox:h,label:c}=await yt(e,t,xt(t)),l=h.width+(t.look==="neo"?s*2:s),d=Math.max(h.height+(t.look==="neo"?a*2:a),t.height??0),u=d/4,y=-Math.max(l,(t.width??0)-u)/2,m=-d/2,x=m/2,C=[{x:y+x,y:m},{x:y,y:0},{x:y+x,y:-m},{x:-y,y:-m},{x:-y,y:m}],{cssStyles:k}=t,_=dt.svg(n),T=ct(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const v=Pt(C),A=_.path(v,T),B=n.insert(()=>A,":first-child");return B.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${-x/2},0)`),c.attr("transform",`translate(${-x/2-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),ut(t,B),t.intersect=function(D){return at.polygon(t,C,D)},n}f(Lg,"rect_left_inv_arrow");async function Fg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;let o;t.cssClasses?o="node "+t.cssClasses:o="node default";const s=e.insert("g").attr("class",o).attr("id",t.domId||t.id),a=s.insert("g"),n=s.insert("g").attr("class","label").attr("style",i),h=t.description,c=t.label,l=await Nr(n,c,t.labelStyle,!0,!0);let d={width:0,height:0};if(xe(Mt())){const D=l.children[0],j=Bt(l);d=D.getBoundingClientRect(),j.attr("width",d.width),j.attr("height",d.height)}$.info("Text 2",h);const u=h||[],p=l.getBBox(),y=await Nr(n,Array.isArray(u)?u.join("<br/>"):u,t.labelStyle,!0,!0),m=y.children[0],x=Bt(y);d=m.getBoundingClientRect(),x.attr("width",d.width),x.attr("height",d.height);const C=(t.padding||0)/2;Bt(y).attr("transform","translate( "+(d.width>p.width?0:(p.width-d.width)/2)+", "+(p.height+C+5)+")"),Bt(l).attr("transform","translate( "+(d.width<p.width?0:-(p.width-d.width)/2)+", 0)"),d=n.node().getBBox(),n.attr("transform","translate("+-d.width/2+", "+(-d.height/2-C+3)+")");const k=d.width+(t.padding||0),_=d.height+(t.padding||0),T=-d.width/2-C,v=-d.height/2-C;let A,B;if(t.look==="handDrawn"){const D=dt.svg(s),j=ct(t,{}),U=D.path(We(T,v,k,_,t.rx||0),j),H=D.line(-d.width/2-C,-d.height/2-C+p.height+C,d.width/2+C,-d.height/2-C+p.height+C,j);B=s.insert(()=>($.debug("Rough node insert CXC",U),H),":first-child"),A=s.insert(()=>($.debug("Rough node insert CXC",U),U),":first-child")}else A=a.insert("rect",":first-child"),B=a.insert("line"),A.attr("class","outer title-state").attr("style",i).attr("x",-d.width/2-C).attr("y",-d.height/2-C).attr("width",d.width+(t.padding||0)).attr("height",d.height+(t.padding||0)),B.attr("class","divider").attr("x1",-d.width/2-C).attr("x2",d.width/2+C).attr("y1",-d.height/2-C+p.height+C).attr("y2",-d.height/2-C+p.height+C);return ut(t,A),t.intersect=function(D){return at.rect(t,D)},s}
201f(Fg,"rectWithTitle");async function Ag(e,t,{config:{themeVariables:r}}){const i=r?.radius??5,o={rx:i,ry:i,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1};return ro(e,t,o)}f(Ag,"roundedRect");var Vr=8;async function Eg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0,{shapeSvg:a,bbox:n,label:h}=await yt(e,t,xt(t)),c=(t?.width??n.width)+o*2+(t.look==="neo"?Vr:Vr*2),l=(t?.height??n.height)+s*2,d=c-Vr,u=l,p=Vr-c/2,y=-l/2,{cssStyles:m}=t,x=dt.svg(a),C=ct(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:p,y},{x:p+d,y},{x:p+d,y:y+u},{x:p-Vr,y:y+u},{x:p-Vr,y},{x:p,y},{x:p,y:y+u}],_=x.polygon(k.map(v=>[v.x,v.y]),C),T=a.insert(()=>_,":first-child");return T.attr("class","basic label-container outer-path").attr("style",ie(m)),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),m&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),h.attr("transform",`translate(${Vr/2-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),ut(t,T),t.intersect=function(v){return at.rect(t,v)},a}f(Eg,"shadedProcess");async function Mg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?12:o;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-s*2,10),t.height=Math.max((t?.height??0)/1.5-a*2,10));const{shapeSvg:n,bbox:h,label:c}=await yt(e,t,xt(t)),l=(t?.width?t?.width:h.width)+s*2,d=((t?.height?t?.height:h.height)+a*2)*1.5,u=l,p=d/1.5,y=-u/2,m=-p/2,{cssStyles:x}=t,C=dt.svg(n),k=ct(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const _=[{x:y,y:m},{x:y,y:m+p},{x:y+u,y:m+p},{x:y+u,y:m-p/2}],T=Pt(_),v=C.path(T,k),A=n.insert(()=>v,":first-child");return A.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",x),i&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",i),A.attr("transform",`translate(0, ${p/4})`),c.attr("transform",`translate(${-u/2+(t.padding??0)-(h.x-(h.left??0))}, ${-p/4+(t.padding??0)-(h.y-(h.top??0))})`),ut(t,A),t.intersect=function(B){return at.polygon(t,_,B)},n}f(Mg,"slopedRect");async function Og(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,o=t.look==="neo"?12:r,s={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:o};return ro(e,t,s)}f(Og,"squareRect");async function $g(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?20:o,a=t.look==="neo"?12:o,{shapeSvg:n,bbox:h}=await yt(e,t,xt(t)),c=h.height+(t.look==="neo"?a*2:a),l=h.width+c/4+(t.look==="neo"?s*2:s),d=c/2,{cssStyles:u}=t,p=dt.svg(n),y=ct(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const m=[{x:-l/2+d,y:-c/2},{x:l/2-d,y:-c/2},...lr(-l/2+d,0,d,50,90,270),{x:l/2-d,y:c/2},...lr(l/2-d,0,d,50,270,450)],x=Pt(m),C=p.path(x,y),k=n.insert(()=>C,":first-child");return k.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),ut(t,k),t.intersect=function(_){return at.polygon(t,m,_)},n}f($g,"stadium");async function Dg(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return ro(e,t,r)}f(Dg,"state");function Pg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=pt(t);t.labelStyle=i;const{cssStyles:s}=t,{lineColor:a,stateBorder:n,nodeBorder:h,nodeShadow:c}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const l=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),d=dt.svg(l),u=ct(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const p=d.circle(0,0,t.width,{...u,stroke:a,strokeWidth:2}),y=n??h,m=(t.width??0)*5/14,x=d.circle(0,0,m,{...u,fill:y,stroke:y,strokeWidth:2,fillStyle:"solid"}),C=l.insert(()=>p,":first-child");if(C.insert(()=>x),t.look!=="handDrawn"&&C.attr("class","outer-path"),s&&C.selectAll("path").attr("style",s),o&&C.selectAll("path").attr("style",o),t.width<25&&c&&t.look!=="handDrawn"){const k=e.node()?.ownerSVGElement?.id??"",_=k?`${k}-drop-shadow-small`:"drop-shadow-small";C.attr("style",`filter:url(#${_})`)}return ut(t,C),t.intersect=function(k){return at.circle(t,(t.width??0)/2,k)},l}f(Pg,"stateEnd");
vendor: 5,057 bytes, lines 201-207
201function Ig(e,t,{config:{themeVariables:r}}){const{lineColor:i,nodeShadow:o}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a;if(t.look==="handDrawn"){const h=dt.svg(s).circle(0,0,t.width,R2(i));a=s.insert(()=>h),a.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else a=s.insert("circle",":first-child"),a.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&o&&t.look!=="handDrawn"){const n=e.node()?.ownerSVGElement?.id??"",h=n?`${n}-drop-shadow-small`:"drop-shadow-small";a.attr("style",`filter:url(#${h})`)}return ut(t,a),t.intersect=function(n){return at.circle(t,(t.width??7)/2,n)},s}f(Ig,"stateStart");var ki=8;async function Rg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t?.padding??8,s=t.look==="neo"?28:o,a=t.look==="neo"?12:o,{shapeSvg:n,bbox:h}=await yt(e,t,xt(t)),c=Math.max(h.width+2*ki+s,t.width??0),l=Math.max(h.height+a,t.height??0),d=c-2*ki,u=l,p=-c/2,y=-l/2,m=[{x:0,y:0},{x:d,y:0},{x:d,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:d+8,y:0},{x:d+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if(t.look==="handDrawn"){const x=dt.svg(n),C=ct(t,{}),k=x.rectangle(p,y,d+16,u,C),_=x.line(p+ki,y,p+ki,y+u,C),T=x.line(p+ki+d,y,p+ki+d,y+u,C);n.insert(()=>_,":first-child"),n.insert(()=>T,":first-child");const v=n.insert(()=>k,":first-child"),{cssStyles:A}=t;v.attr("class","basic label-container").attr("style",ie(A)),ut(t,v)}else{const x=gr(n,d,u,m);i&&x.attr("style",i),ut(t,x)}return t.intersect=function(x){return at.polygon(t,m,x)},n}f(Rg,"subroutine");var Qa=.2;async function Ng(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?12:o;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-a*2,10),t.width=Math.max((t?.width??0)-s*2-Qa*(t.height+a*2),10));const{shapeSvg:n,bbox:h}=await yt(e,t,xt(t)),c=(t?.height?t?.height:h.height)+a*2,l=Qa*c,d=Qa*c,p=(t?.width?t?.width:h.width)+s*2+l-l,y=c,m=-p/2,x=-y/2,{cssStyles:C}=t,k=dt.svg(n),_=ct(t,{}),T=[{x:m-l/2,y:x},{x:m+p+l/2,y:x},{x:m+p+l/2,y:x+y},{x:m-l/2,y:x+y}],v=[{x:m+p-l/2,y:x+y},{x:m+p+l/2,y:x+y},{x:m+p+l/2,y:x+y-d}];t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const A=Pt(T),B=k.path(A,_),D=Pt(v),j=k.path(D,{..._,fillStyle:"solid"}),U=n.insert(()=>j,":first-child");return U.insert(()=>B,":first-child"),U.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",i),ut(t,U),t.intersect=function(H){return at.polygon(t,T,H)},n}f(Ng,"taggedRect");async function zg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,label:a}=await yt(e,t,xt(t)),n=Math.max(s.width+(t.padding??0)*2,t?.width??0),h=Math.max(s.height+(t.padding??0)*2,t?.height??0),c=h/8,l=.2*n,d=.2*h,u=h+c,{cssStyles:p}=t,y=dt.svg(o),m=ct(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-n/2-n/2*.1,y:u/2},...Yr(-n/2-n/2*.1,u/2,n/2+n/2*.1,u/2,c,.8),{x:n/2+n/2*.1,y:-u/2},{x:-n/2-n/2*.1,y:-u/2}],C=-n/2+n/2*.1,k=-u/2-d*.4,_=[{x:C+n-l,y:(k+h)*1.3},{x:C+n,y:k+h-d},{x:C+n,y:(k+h)*.9},...Yr(C+n,(k+h)*1.25,C+n-l,(k+h)*1.3,-h*.02,.5)],T=Pt(x),v=y.path(T,m),A=Pt(_),B=y.path(A,{...m,fillStyle:"solid"}),D=o.insert(()=>B,":first-child");return D.insert(()=>v,":first-child"),D.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",i),D.attr("transform",`translate(0,${-c/2})`),a.attr("transform",`translate(${-n/2+(t.padding??0)-(s.x-(s.left??0))},${-h/2+(t.padding??0)-c/2-(s.y-(s.top??0))})`),ut(t,D),t.intersect=function(j){return at.polygon(t,x,j)},o}f(zg,"taggedWaveEdgedRectangle");async function qg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s}=await yt(e,t,xt(t)),a=Math.max(s.width+(t.padding??0),t?.width||0),n=Math.max(s.height+(t.padding??0),t?.height||0),h=-a/2,c=-n/2,l=o.insert("rect",":first-child");return l.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",h).attr("y",c).attr("width",a).attr("height",n),ut(t,l),t.intersect=function(d){return at.rect(t,d)},o}f(qg,"text");var NS=f((e,t,r,i,o,s)=>`M${e},${t} 202 a${o},${s} 0,0,1 0,${-i} 203 l${r},0 204 a${o},${s} 0,0,1 0,${i} 205 M${r},${-i} 206 a${o},${s} 0,0,0 0,${i} 207 l${-r},0`,"createCylinderPathD"),zS=f((e,t,r,i,o,s)=>[`M${e},${t}`,`M${e+r},${t}`,`a${o},${s} 0,0,0 0,${-i}`,`l${-r},0`,`a${o},${s} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),qS=f((e,t,r,i,o,s)=>[`M${e+r/2},${-i/2}`,`a${o},${s} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),kd=5,wd=10;async function Wg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?12:o/2,a=t.height??0;
vendor: 4,170 bytes, line 207
207if(t.height&&(t.height=t.height-s,t.height<kd&&(t.height=kd)),t.width){const C=a/2/(2.5+a/50);t.width=t.width-s-C*3,t.width<wd&&(t.width=wd)}const{shapeSvg:n,bbox:h,label:c}=await yt(e,t,xt(t)),l=Math.max(t.height??0,h.height)+s,d=l/2,u=d/(2.5+l/50),p=Math.max(t.width??0,h.width)+u+s,{cssStyles:y}=t;let m;if(t.look==="handDrawn"){const x=dt.svg(n),C=zS(0,0,p,l,u,d),k=qS(0,0,p,l,u,d),_=x.path(C,ct(t,{})),T=x.path(k,ct(t,{fill:"none"}));m=n.insert(()=>T,":first-child"),m=n.insert(()=>_,":first-child"),m.attr("class","basic label-container"),y&&m.attr("style",y)}else{const x=NS(0,0,p,l,u,d);m=n.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",ie(y)).attr("style",i),m.attr("class","basic label-container outer-path"),y&&m.selectAll("path").attr("style",y),i&&m.selectAll("path").attr("style",i)}return m.attr("label-offset-x",u),m.attr("transform",`translate(${-p/2}, ${l/2} )`),c.attr("transform",`translate(${-(h.width/2)-u-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),ut(t,m),t.intersect=function(x){const C=at.rect(t,x),k=C.y-(t.y??0);if(d!=0&&(Math.abs(k)<(t.height??0)/2||Math.abs(k)==(t.height??0)/2&&Math.abs(C.x-(t.x??0))>(t.width??0)/2-u)){let _=u*u*(1-k*k/(d*d));_!=0&&(_=Math.sqrt(Math.abs(_))),_=u-_,x.x-(t.x??0)>0&&(_=-_),C.x+=_}return C},n}f(Wg,"tiltedCylinder");async function Hg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=(t.look==="neo",o),a=t.look==="neo"?o*2:o,{shapeSvg:n,bbox:h}=await yt(e,t,xt(t)),c=Math.max(h.height+s,t.height??0),l=Math.max(h.width+a,(t.width??0)-c),d=[{x:-3*c/6,y:0},{x:l+3*c/6,y:0},{x:l,y:-c},{x:0,y:-c}];let u;const{cssStyles:p}=t;if(t.look==="handDrawn"){const y=dt.svg(n),m=ct(t,{}),x=Pt(d),C=y.path(x,m);u=n.insert(()=>C,":first-child").attr("transform",`translate(${-l/2}, ${c/2})`),p&&u.attr("style",p)}else u=gr(n,l,c,d);return i&&u.attr("style",i),t.width=l,t.height=c,ut(t,u),t.intersect=function(y){return at.polygon(t,d,y)},n}f(Hg,"trapezoid");async function jg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?12:o,n=15,h=5;(t.width||t.height)&&(t.height=(t.height??0)-a*2,t.height<h&&(t.height=h),t.width=(t.width??0)-s*2,t.width<n&&(t.width=n));const{shapeSvg:c,bbox:l}=await yt(e,t,xt(t)),d=(t?.width?t?.width:l.width)+s*2,u=(t?.height?t?.height:l.height)+a*2,{cssStyles:p}=t,y=dt.svg(c),m=ct(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-d/2*.8,y:-u/2},{x:d/2*.8,y:-u/2},{x:d/2,y:-u/2*.6},{x:d/2,y:u/2},{x:-d/2,y:u/2},{x:-d/2,y:-u/2*.6}],C=Pt(x),k=y.path(C,m),_=c.insert(()=>k,":first-child");return _.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),ut(t,_),t.intersect=function(T){return at.polygon(t,x,T)},c}f(jg,"trapezoidalPentagon");var _d=10,Sd=10;async function Yg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?o*2:o;(t.width||t.height)&&(t.width=((t?.width??0)-s)/2,t.width<Sd&&(t.width=Sd),t.height=t?.height??0,t.height<_d&&(t.height=_d));const{shapeSvg:a,bbox:n,label:h}=await yt(e,t,xt(t)),c=pr(Mt().flowchart?.htmlLabels),l=(t?.width?t?.width:n.width)+s,d=t?.height?t?.height:l+n.height,u=d,p=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-d}],{cssStyles:y}=t,m=dt.svg(a),x=ct(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=Pt(p),k=m.path(C,x),_=a.insert(()=>k,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return y&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),t.width=l,t.height=d,ut(t,_),h.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${d/2-(n.height+(t.padding??0)/(c?2:1)-(n.y-(n.top??0)))})`),t.intersect=function(T){return $.info("Triangle intersect",t,p,T),at.polygon(t,p,T)},a}f(Yg,"triangle");async function Ug(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?12:o;let n=!0;
207(t.width||t.height)&&(n=!1,t.width=(t?.width??0)-s*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-a*2,t.height<10&&(t.height=10));const{shapeSvg:h,bbox:c,label:l}=await yt(e,t,xt(t)),d=(t?.width?t?.width:c.width)+(s??0)*2,u=(t?.height?t?.height:c.height)+(a??0)*2,p=t.look==="neo"?u/4:u/8,y=u+(n?p:-p),{cssStyles:m}=t,C=14-d,k=C>0?C/2:0,_=dt.svg(h),T=ct(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const v=[{x:-d/2-k,y:y/2},...Yr(-d/2-k,y/2,d/2+k,y/2,p,.8),{x:d/2+k,y:-y/2},{x:-d/2-k,y:-y/2}],A=Pt(v),B=_.path(A,T),D=h.insert(()=>B,":first-child");return D.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",i),D.attr("transform",`translate(0,${-p/2})`),l.attr("transform",`translate(${-d/2+(t.padding??0)-(c.x-(c.left??0))},${-u/2+(t.padding??0)-p-(c.y-(c.top??0))})`),ut(t,D),t.intersect=function(j){return at.polygon(t,v,j)},h}f(Ug,"waveEdgedRectangle");async function Gg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?20:o;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);const T=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-a-T*(20/9)),t.width=t.width-s*2}const{shapeSvg:n,bbox:h}=await yt(e,t,xt(t)),c=(t?.width?t?.width:h.width)+s*2,l=(t?.height?t?.height:h.height)+a,d=l/8,u=l+d*2,{cssStyles:p}=t,y=dt.svg(n),m=ct(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-c/2,y:u/2},...Yr(-c/2,u/2,c/2,u/2,d,1),{x:c/2,y:-u/2},...Yr(c/2,-u/2,-c/2,-u/2,d,-1)],C=Pt(x),k=y.path(C,m),_=n.insert(()=>k,":first-child");return _.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),ut(t,_),t.intersect=function(T){return at.polygon(t,x,T)},n}f(Gg,"waveRectangle");var Qt=10;async function Vg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-o*2-Qt,10),t.height=Math.max((t?.height??0)-s*2-Qt,10));const{shapeSvg:a,bbox:n,label:h}=await yt(e,t,xt(t)),c=(t?.width?t?.width:n.width)+o*2+Qt,l=(t?.height?t?.height:n.height)+s*2+Qt,d=c-Qt,u=l-Qt,p=-d/2,y=-u/2,{cssStyles:m}=t,x=dt.svg(a),C=ct(t,{}),k=[{x:p-Qt,y:y-Qt},{x:p-Qt,y:y+u},{x:p+d,y:y+u},{x:p+d,y:y-Qt}],_=`M${p-Qt},${y-Qt} L${p+d},${y-Qt} L${p+d},${y+u} L${p-Qt},${y+u} L${p-Qt},${y-Qt} 208 M${p-Qt},${y} L${p+d},${y} 209 M${p},${y-Qt} L${p},${y+u}`;t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const T=x.path(_,C),v=a.insert(()=>T,":first-child");return v.attr("transform",`translate(${Qt/2}, ${Qt/2})`),v.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(n.width/2)+Qt/2-(n.x-(n.left??0))}, ${-(n.height/2)+Qt/2-(n.y-(n.top??0))})`),ut(t,v),t.intersect=function(A){return at.polygon(t,k,A)},a}f(Vg,"windowPane");var Td=new Set(["redux-color","redux-dark-color"]),WS=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function oh(e,t){const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:o}=Xt(),{rowEven:s,rowOdd:a,nodeBorder:n,borderColorArray:h}=o;if(t.look==="handDrawn"){const{themeVariables:Ct}=Xt(),{background:Lt}=Ct,qt={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Lt}`]};await oh(e,qt)}const c=Xt();t.useHtmlLabels=c.htmlLabels;let l=c.er?.diagramPadding??10,d=c.er?.entityPadding??6;const{cssStyles:u}=t,{labelStyles:p,nodeStyles:y}=pt(t);if(r.attributes.length===0&&t.label){const Ct={rx:0,ry:0,labelPaddingX:l,labelPaddingY:l*1.5};vr(t.label,c)+Ct.labelPaddingX*2<c.er.minEntityWidth&&(t.width=c.er.minEntityWidth);const Lt=await ro(e,t,Ct);if(i!=null&&Td.has(i)){const qt=r.colorIndex??0;Lt.attr("data-color-id",`color-${qt%h.length}`)}
209if(!pr(c.htmlLabels)){const qt=Lt.select("text"),At=qt.node()?.getBBox();qt.attr("transform",`translate(${-At.width/2}, 0)`)}return Lt}c.htmlLabels||(l*=1.25,d*=1.25);let m=xt(t);m||(m="node default");const x=e.insert("g").attr("class",m).attr("id",t.domId||t.id),C=await Ti(x,t.label??"",c,0,0,["name"],p);C.height+=d;let k=0;const _=[],T=[];let v=0,A=0,B=0,D=0,j=!0,U=!0;for(const Ct of r.attributes){const Lt=await Ti(x,Ct.type,c,0,k,["attribute-type"],p);v=Math.max(v,Lt.width+l);const qt=await Ti(x,Ct.name,c,0,k,["attribute-name"],p);A=Math.max(A,qt.width+l);const At=await Ti(x,Ct.keys.join(),c,0,k,["attribute-keys"],p);B=Math.max(B,At.width+l);const ne=await Ti(x,Ct.comment,c,0,k,["attribute-comment"],p);D=Math.max(D,ne.width+l);const Zt=Math.max(Lt.height,qt.height,At.height,ne.height)+d;T.push({yOffset:k,rowHeight:Zt}),k+=Zt}let H=4;B<=l&&(j=!1,B=0,H--),D<=l&&(U=!1,D=0,H--);const ot=x.node().getBBox();if(C.width+l*2-(v+A+B+D)>0){const Ct=C.width+l*2-(v+A+B+D);v+=Ct/H,A+=Ct/H,B>0&&(B+=Ct/H),D>0&&(D+=Ct/H)}const z=v+A+B+D,W=dt.svg(x),J=ct(t,{});t.look!=="handDrawn"&&(J.roughness=0,J.fillStyle="solid");let P=0;T.length>0&&(P=T.reduce((Ct,Lt)=>Ct+(Lt?.rowHeight??0),0));const it=Math.max(ot.width+l*2,t?.width||0,z),et=Math.max((P??0)+C.height,t?.height||0),bt=-it/2,gt=-et/2;if(x.selectAll("g:not(:first-child)").each((Ct,Lt,qt)=>{const At=Bt(qt[Lt]),ne=At.attr("transform");let Zt=0,He=0;if(ne){const $t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ne);$t&&(Zt=parseFloat($t[1]),He=parseFloat($t[2]),At.attr("class").includes("attribute-name")?Zt+=v:At.attr("class").includes("attribute-keys")?Zt+=v+A:At.attr("class").includes("attribute-comment")&&(Zt+=v+A+B))}At.attr("transform",`translate(${bt+l/2+Zt}, ${He+gt+C.height+d/2})`)}),x.select(".name").attr("transform","translate("+-C.width/2+", "+(gt+d/2)+")"),i!=null&&Td.has(i)){const Ct=r.colorIndex??0;x.attr("data-color-id",`color-${Ct%h.length}`)}const Nt=W.rectangle(bt,gt,it,et,J),Gt=x.insert(()=>Nt,":first-child").attr("class","outer-path").attr("style",u.join(""));_.push(0);for(const[Ct,Lt]of T.entries()){const At=(Ct+1)%2===0&&Lt.yOffset!==0,ne=W.rectangle(bt,C.height+gt+Lt?.yOffset,it,Lt?.rowHeight,{...J,fill:At?s:a,stroke:n});x.insert(()=>ne,"g.label").attr("style",u.join("")).attr("class",`row-rect-${At?"even":"odd"}`)}const Ht=1e-4;let _t=vi(bt,C.height+gt,it+bt,C.height+gt,Ht),It=W.polygon(_t.map(Ct=>[Ct.x,Ct.y]),J);if(x.insert(()=>It).attr("class","divider"),_t=vi(v+bt,C.height+gt,v+bt,et+gt,Ht),It=W.polygon(_t.map(Ct=>[Ct.x,Ct.y]),J),x.insert(()=>It).attr("class","divider"),j){const Ct=v+A+bt;_t=vi(Ct,C.height+gt,Ct,et+gt,Ht),It=W.polygon(_t.map(Lt=>[Lt.x,Lt.y]),J),x.insert(()=>It).attr("class","divider")}if(U){const Ct=v+A+B+bt;_t=vi(Ct,C.height+gt,Ct,et+gt,Ht),It=W.polygon(_t.map(Lt=>[Lt.x,Lt.y]),J),x.insert(()=>It).attr("class","divider")}for(const Ct of _){const Lt=C.height+gt+Ct;_t=vi(bt,Lt,it+bt,Lt,Ht),It=W.polygon(_t.map(qt=>[qt.x,qt.y]),J),x.insert(()=>It).attr("class","divider")}if(ut(t,Gt),y&&t.look!=="handDrawn")if(i!=null&&WS.has(i))x.selectAll("path").attr("style",y);else{const Lt=y.split(";")?.filter(qt=>qt.includes("stroke"))?.map(qt=>`${qt}`).join("; ");x.selectAll("path").attr("style",Lt??""),x.selectAll(".row-rect-even path").attr("style",y)}return t.intersect=function(Ct){return at.rect(t,Ct)},x}f(oh,"erBox");async function Ti(e,t,r,i=0,o=0,s=[],a=""){const n=e.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${i}, ${o})`).attr("style",a);t!==dc(t)&&(t=dc(t),t=t.replaceAll("<","<").replaceAll(">",">"));const h=n.node().appendChild(await Je(n,t,{width:vr(t,r)+100,style:a,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let l=h.children[0];for(l.textContent=l.textContent.replaceAll("<","<").replaceAll(">",">");l.childNodes[0];)l=l.childNodes[0],l.textContent=l.textContent.replaceAll("<","<").replaceAll(">",">")}let c=h.getBBox();if(pr(r.htmlLabels)){const l=h.children[0];l.style.textAlign="start";const d=Bt(h);c=l.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}return c}f(Ti,"addText");function vi(e,t,r,i,o){return e===r?[{x:e-o/2,y:t},{x:e+o/2,y:t},{x:r+o/2,y:i},{x:r-o/2,y:i}]:[{x:e,y:t-o/2},{x:e,y:t+o/2},{x:r,y:i+o/2},{x:r,y:i-o/2}]}f(vi,"lineToPolygon");async function Xg(e,t,r,i,o=r.class.padding??12){const s=i?0:3,a=e.insert("g").attr("class",xt(t)).attr("id",t.domId||t.id);let n=null,h=null,c=null,l=null,d=0,u=0,p=0;if(n=a.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const k=t.annotations[0];await vo(n,{text:`«${k}»`},0),d=n.node().getBBox().height}h=a.insert("g").attr("class","label-group text"),await vo(h,t,0,["font-weight: bolder"]);const y=h.node().getBBox();u=y.height,c=a.insert("g").attr("class","members-group text");let m=0;for(const k of t.members){const _=await vo(c,k,m,[k.parseClassifier()]);m+=_+s}p=c.node().getBBox().height,p<=0&&(p=o/2),l=a.insert("g").attr("class","methods-group text");let x=0;for(const k of t.methods){const _=await vo(l,k,x,[k.parseClassifier()]);x+=_+s}let C=a.node().getBBox();if(n!==null){const k=n.node().getBBox();n.attr("transform",`translate(${-k.width/2})`)}return h.attr("transform",`translate(${-y.width/2}, ${d})`),C=a.node().getBBox(),c.attr("transform",`translate(0, ${d+u+o*2})`),C=a.node().getBBox(),l.attr("transform",`translate(0, ${d+u+(p?p+o*4:o*2)})`),C=a.node().getBBox(),{shapeSvg:a,bbox:C}}f(Xg,"textHelper");async function vo(e,t,r,i=[]){const o=e.insert("g").attr("class","label").attr("style",i.join("; ")),s=Xt();let a="useHtmlLabels"in t?t.useHtmlLabels:pr(s.htmlLabels)??!0,n="";"text"in t?n=t.text:n=t.label,!a&&n.startsWith("\\")&&(n=n.substring(1)),Do(n)&&(a=!0);const h=await Je(o,Cl(Hr(n)),{width:vr(n,s)+50,classes:"markdown-node-label",useHtmlLabels:a},s);let c,l=1;if(a){const d=h.children[0],u=Bt(h);l=d.innerHTML.split("<br>").length,d.innerHTML.includes("</math>")&&(l+=d.innerHTML.split("<mrow>").length-1),await th(d),c=d.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}else{i.includes("font-weight: bolder")&&Bt(h).selectAll("tspan").attr("font-weight",""),l=h.children.length;const d=h.children[0];(h.textContent===""||h.textContent.includes(">"))&&(d.textContent=n[0]+n.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),n[1]===" "&&(d.textContent=d.textContent[0]+" "+d.textContent.substring(1))),d.textContent==="undefined"&&(d.textContent=""),c=h.getBBox()}return o.attr("transform","translate(0,"+(-c.height/(2*l)+r)+")"),
209c.height}f(vo,"addText");async function Zg(e,t){const r=Mt(),{themeVariables:i}=r,{useGradient:o}=i,s=r.class.padding??12,a=s,n=t.useHtmlLabels??pr(r.htmlLabels)??!0,h=t;h.annotations=h.annotations??[],h.members=h.members??[],h.methods=h.methods??[];const{shapeSvg:c,bbox:l}=await Xg(e,t,r,n,a),{labelStyles:d,nodeStyles:u}=pt(t);t.labelStyle=d,t.cssStyles=h.styles||"";const p=h.styles?.join(";")||u||"";t.cssStyles||(t.cssStyles=p.replaceAll("!important","").split(";"));const y=h.members.length===0&&h.methods.length===0&&!r.class?.hideEmptyMembersBox,m=dt.svg(c),x=ct(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=Math.max(t.width??0,l.width);let k=Math.max(t.height??0,l.height);const _=(t.height??0)>l.height;h.members.length===0&&h.methods.length===0?k+=a:h.members.length>0&&h.methods.length===0&&(k+=a*2);const T=-C/2,v=-k/2;let A=y?s*2:h.members.length===0&&h.methods.length===0?-s:0;_&&(A=s*2);const B=m.rectangle(T-s,v-s-(y?s:h.members.length===0&&h.methods.length===0?-s/2:0),C+2*s,k+2*s+A,x),D=c.insert(()=>B,":first-child");D.attr("class","basic label-container outer-path");const j=D.node().getBBox(),U=c.select(".annotation-group").node().getBBox().height-(y?s/2:0)||0,H=c.select(".label-group").node().getBBox().height-(y?s/2:0)||0,ot=c.select(".members-group").node().getBBox().height-(y?s/2:0)||0,z=(U+H+v+s-(v-s-(y?s:h.members.length===0&&h.methods.length===0?-s/2:0)))/2;if(c.selectAll(".text").each((W,J,P)=>{const it=Bt(P[J]),et=it.attr("transform");let bt=0;if(et){const Ht=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(et);Ht&&(bt=parseFloat(Ht[2]))}let gt=bt+v+s-(y?s:h.members.length===0&&h.methods.length===0?-s/2:0);if(it.attr("class").includes("methods-group")){const Gt=Math.max(ot,a/2);_?gt=Math.max(z,U+H+Gt+v+a*2+s)+a*2:gt=U+H+Gt+v+a*4+s}h.members.length===0&&h.methods.length===0&&r.class?.hideEmptyMembersBox&&(h.annotations.length>0?gt=bt-a:gt=bt),n||(gt-=4);let Nt=T;(it.attr("class").includes("label-group")||it.attr("class").includes("annotation-group"))&&(Nt=-it.node()?.getBBox().width/2||0,c.selectAll("text").each(function(Gt,Ht,_t){window.getComputedStyle(_t[Ht]).textAnchor==="middle"&&(Nt=0)})),it.attr("transform",`translate(${Nt}, ${gt})`)}),h.members.length>0||h.methods.length>0||y){const W=U+H+v+s,J=m.line(j.x,W,j.x+j.width,W+.001,x);c.insert(()=>J).attr("class",`divider${t.look==="neo"&&!o?" neo-line":""}`).attr("style",p)}if(y||h.members.length>0||h.methods.length>0){const W=U+H+ot+v+a*2+s,J=m.line(j.x,_?Math.max(z,W):W,j.x+j.width,(_?Math.max(z,W):W)+.001,x);c.insert(()=>J).attr("class",`divider${t.look==="neo"&&!o?" neo-line":""}`).attr("style",p)}if(h.look!=="handDrawn"&&c.selectAll("path").attr("style",p),D.select(":nth-child(2)").attr("style",p),c.selectAll(".divider").select("path").attr("style",p),t.labelStyle?c.selectAll("span").attr("style",t.labelStyle):c.selectAll("span").attr("style",p),!n){const W=RegExp(/color\s*:\s*([^;]*)/),J=W.exec(p);if(J){const P=J[0].replace("color","fill");c.selectAll("tspan").attr("style",P)}else if(d){const P=W.exec(d);if(P){const it=P[0].replace("color","fill");c.selectAll("tspan").attr("style",it)}}}return ut(t,D),t.intersect=function(W){return at.rect(t,W)},c}f(Zg,"classBox");async function Kg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const o=t,s=t,a=20,n=20,h="verifyMethod"in t,c=xt(t),l=Mt(),{themeVariables:d}=l,{borderColorArray:u,requirementEdgeLabelBackground:p}=d,y=l.layout==="elk"?"start":"center",m=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let x;h?x=await ar(m,`<<${o.type}>>`,0,t.labelStyle):x=await ar(m,"<<Element>>",0,t.labelStyle);let C=x;const k=await ar(m,o.name,C,t.labelStyle+"; font-weight: bold;");if(C+=k+n,h){const H=await ar(m,`${o.requirementId?`ID: ${o.requirementId}`:""}`,C,t.labelStyle,y);C+=H;const ot=await ar(m,`${o.text?`Text: ${o.text}`:""}`,C,t.labelStyle,y);C+=ot;const z=await ar(m,`${o.risk?`Risk: ${o.risk}`:""}`,C,t.labelStyle,y);C+=z,await ar(m,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:""}`,C,t.labelStyle,y)}else{const H=await ar(m,`${s.type?`Type: ${s.type}`:""}`,C,t.labelStyle,y);C+=H,await ar(m,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,C,t.labelStyle,y)}const _=(m.node()?.getBBox().width??200)+a,T=(m.node()?.getBBox().height??200)+a,v=-_/2,A=-T/2,B=dt.svg(m),D=ct(t,{});t.look!=="handDrawn"&&(D.roughness=0,D.fillStyle="solid");const j=B.rectangle(v,A,_,T,D),U=m.insert(()=>j,":first-child");if(U.attr("class","basic label-container outer-path").attr("style",i),u?.length){const H=t.colorIndex??0;m.attr("data-color-id",`color-${H%u.length}`)}if(m.selectAll(".label").each((H,ot,z)=>{const W=Bt(z[ot]),J=W.attr("transform");let P=0,it=0;if(J){const Nt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(J);Nt&&(P=parseFloat(Nt[1]),it=parseFloat(Nt[2]))}const et=it-T/2;let bt=v+a/2;(ot===0||ot===1)&&(bt=P),W.attr("transform",`translate(${bt}, ${et+a})`)}),C>x+k+n){const H=A+x+k+n;let ot;if(t.look==="neo"){const J=[[v,H],[v+_,H],[v+_,H+.001],[v,H+.001]];ot=B.polygon(J,D)}else ot=B.line(v,H,v+_,H,D);m.insert(()=>ot).attr("class","divider")}return ut(t,U),t.intersect=function(H){return at.rect(t,H)},i&&t.look!=="handDrawn"&&(p||u?.length)&&m.selectAll("path").attr("style",i),m}f(Kg,"requirementBox");async function ar(e,t,r,i="",o="center"){if(t==="")return 0;const s=e.insert("g").attr("class","label").attr("style",i),a=Mt(),n=a.htmlLabels??!0,h=await Je(s,Cl(Hr(t)),{width:vr(t,a)+50,classes:"markdown-node-label",useHtmlLabels:n,style:i},a);let c;if(n){const l=h.children[0],d=Bt(h);o==="start"&&Bt(l).style("text-align","left"),c=l.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}else{const l=h.children[0];for(const d of l.children)i&&d.setAttribute("style",i);if(o==="start"){l.setAttribute("text-anchor","start");for(const d of l.children)d.setAttribute("text-anchor","start")}c=h.getBBox(),c.height+=6}return s.attr("transform",`translate(${-c.width/2},${-c.height/2+r})`),c.height}f(ar,"addText");var HS=f(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");
vendor: 6,210 bytes, lines 209-261
209async function Qg(e,t,{config:r}){const{labelStyles:i,nodeStyles:o}=pt(t);t.labelStyle=i||"";const s=10,a=t.width;t.width=(t.width??200)-10;const{shapeSvg:n,bbox:h,label:c}=await yt(e,t,xt(t)),l=t.padding||10;let d="",u;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(d=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),u=n.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",d).attr("target","_blank"));const p={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let y,m;u?{label:y,bbox:m}=await Za(u,"ticket"in t&&t.ticket||"",p):{label:y,bbox:m}=await Za(n,"ticket"in t&&t.ticket||"",p);const{label:x,bbox:C}=await Za(n,"assigned"in t&&t.assigned||"",p);t.width=a;const k=10,_=t?.width||0,T=Math.max(m.height,C.height)/2,v=Math.max(h.height+k*2,t?.height||0)+T,A=-_/2,B=-v/2;c.attr("transform","translate("+(l-_/2)+", "+(-T-h.height/2)+")"),y.attr("transform","translate("+(l-_/2)+", "+(-T+h.height/2)+")"),x.attr("transform","translate("+(l+_/2-C.width-2*s)+", "+(-T+h.height/2)+")");let D;const{rx:j,ry:U}=t,{cssStyles:H}=t;if(t.look==="handDrawn"){const ot=dt.svg(n),z=ct(t,{}),W=j||U?ot.path(We(A,B,_,v,j||0),z):ot.rectangle(A,B,_,v,z);D=n.insert(()=>W,":first-child"),D.attr("class","basic label-container").attr("style",H||null)}else{D=n.insert("rect",":first-child"),D.attr("class","basic label-container __APA__").attr("style",o).attr("rx",j??5).attr("ry",U??5).attr("x",A).attr("y",B).attr("width",_).attr("height",v);const ot="priority"in t&&t.priority;if(ot){const z=n.append("line"),W=A+2,J=B+Math.floor((j??0)/2),P=B+v-Math.floor((j??0)/2);z.attr("x1",W).attr("y1",J).attr("x2",W).attr("y2",P).attr("stroke-width","4").attr("stroke",HS(ot))}}return ut(t,D),t.height=v,t.intersect=function(ot){return at.rect(t,ot)},n}f(Qg,"kanbanItem");async function Jg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,halfPadding:a,label:n}=await yt(e,t,xt(t)),h=s.width+10*a,c=s.height+8*a,l=.15*h,{cssStyles:d}=t,u=s.width+20,p=s.height+20,y=Math.max(h,u),m=Math.max(c,p);n.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let x;const C=`M0 0 210 a${l},${l} 1 0,0 ${y*.25},${-1*m*.1} 211 a${l},${l} 1 0,0 ${y*.25},0 212 a${l},${l} 1 0,0 ${y*.25},0 213 a${l},${l} 1 0,0 ${y*.25},${m*.1} 214 215 a${l},${l} 1 0,0 ${y*.15},${m*.33} 216 a${l*.8},${l*.8} 1 0,0 0,${m*.34} 217 a${l},${l} 1 0,0 ${-1*y*.15},${m*.33} 218 219 a${l},${l} 1 0,0 ${-1*y*.25},${m*.15} 220 a${l},${l} 1 0,0 ${-1*y*.25},0 221 a${l},${l} 1 0,0 ${-1*y*.25},0 222 a${l},${l} 1 0,0 ${-1*y*.25},${-1*m*.15} 223 224 a${l},${l} 1 0,0 ${-1*y*.1},${-1*m*.33} 225 a${l*.8},${l*.8} 1 0,0 0,${-1*m*.34} 226 a${l},${l} 1 0,0 ${y*.1},${-1*m*.33} 227 H0 V0 Z`;if(t.look==="handDrawn"){const k=dt.svg(o),_=ct(t,{}),T=k.path(C,_);x=o.insert(()=>T,":first-child"),x.attr("class","basic label-container").attr("style",ie(d))}else x=o.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return x.attr("transform",`translate(${-y/2}, ${-m/2})`),ut(t,x),t.calcIntersect=function(k,_){return at.rect(k,_)},t.intersect=function(k){return $.info("Bang intersect",t,k),at.rect(t,k)},o}f(Jg,"bang");async function tm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,halfPadding:a,label:n}=await yt(e,t,xt(t)),h=s.width+2*a,c=s.height+2*a,l=.15*h,d=.25*h,u=.35*h,p=.2*h,{cssStyles:y}=t;let m;const x=`M0 0 228 a${l},${l} 0 0,1 ${h*.25},${-1*h*.1} 229 a${u},${u} 1 0,1 ${h*.4},${-1*h*.1} 230 a${d},${d} 1 0,1 ${h*.35},${h*.2} 231 232 a${l},${l} 1 0,1 ${h*.15},${c*.35} 233 a${p},${p} 1 0,1 ${-1*h*.15},${c*.65} 234 235 a${d},${l} 1 0,1 ${-1*h*.25},${h*.15} 236 a${u},${u} 1 0,1 ${-1*h*.5},0 237 a${l},${l} 1 0,1 ${-1*h*.25},${-1*h*.15} 238 239 a${l},${l} 1 0,1 ${-1*h*.1},${-1*c*.35} 240 a${p},${p} 1 0,1 ${h*.1},${-1*c*.65} 241 H0 V0 Z`;if(t.look==="handDrawn"){const C=dt.svg(o),k=ct(t,{}),_=C.path(x,k);m=o.insert(()=>_,":first-child"),m.attr("class","basic label-container").attr("style",ie(y))}else m=o.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return n.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),m.attr("transform",`translate(${-h/2}, ${-c/2})`),ut(t,m),t.calcIntersect=function(C,k){return at.rect(C,k)},t.intersect=function(C){return $.info("Cloud intersect",t,C),at.rect(t,C)},o}f(tm,"cloud");async function em(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,halfPadding:a,label:n}=await yt(e,t,xt(t)),h=s.width+8*a,c=s.height+2*a,l=5,d=t.look==="neo"?` 242 M${-h/2} ${c/2-l} 243 v${-c+2*l} 244 q0,-${l} ${l},-${l} 245 h${h-2*l} 246 q${l},0 ${l},${l} 247 v${c-l} 248 H${-h/2} 249 Z 250 `:` 251 M${-h/2} ${c/2-l} 252 v${-c+2*l} 253 q0,-${l} ${l},-${l} 254 h${h-2*l} 255 q${l},0 ${l},${l} 256 v${c-2*l} 257 q0,${l} ${-l},${l} 258 h${-(h-2*l)} 259 q${-l},0 ${-l},${-l} 260 Z 261 `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId â was render.ts domId prefixing skipped?`);const u=o.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",d);return o.append("line").attr("class","node-line-").attr("x1",-h/2).attr("y1",c/2).attr("x2",h/2).attr("y2",c/2),n.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),o.append(()=>n.node()),ut(t,u),t.calcIntersect=function(p,y){return at.rect(p,y)},t.intersect=function(p){return at.rect(t,p)},o}f(em,"defaultMindmapNode");async function rm(e,t){const r={padding:t.padding??0};return ih(e,t,r)}f(rm,"mindmapCircle");var jS=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Og},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Ag},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:$g},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","
261subproc","framed-rectangle","subroutine"],handler:Rg},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:eg},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:rg},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:ng},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:zf},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Gf},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:Hf},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:tg},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:ih},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Jg},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:tm}
261,{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Bg},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:cg},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:bg},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Cg},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Hg},{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:yg},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:og},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:qg}
261,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:jf},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Eg},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Ig},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Pg},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:lg},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:dg},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Zf},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Kf},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Qf},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:kg}
vendor: 4,574 bytes, line 261
261,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Ug},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:hg},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Wg},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:wg},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Jf},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ig},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Yg},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Vg},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:sg},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:jg},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ag},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Mg},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Tg},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Sg},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Nf},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Xf},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:zg},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Ng},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Gg},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Lg},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:_g}],YS=f(()=>{const t=[...Object.entries({state:Dg,choice:Yf,note:vg,composite:Uf,rectWithTitle:Fg,labelRect:xg,block_arrow:Wf,collapsedGroup:qf,iconSquare:gg,iconCircle:pg,icon:ug,iconRounded:fg,imageSquare:mg,anchor:If,kanbanItem:Qg,mindmapCircle:rm,defaultMindmapNode:em,classBox:Zg,erBox:oh,requirementBox:Kg}),...jS.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(o=>[o,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),im=YS();function US(e){return e in im}f(US,"isValidShape");var ma=f(({flowchart:e})=>{const t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),ya=new Map;async function sh(e,t,r){let i,o;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const s=t.shape?im[t.shape]:void 0;if(!s)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let a;r.config.securityLevel==="sandbox"?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a??null),o=await s(i,t,r)}else o=await s(e,t,r),i=o;return i.attr("data-look",ie(t.look)),t.tooltip&&o.attr("title",t.tooltip),ya.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}
261f(sh,"insertNode");var DA=f((e,t)=>{ya.set(t.id,e)},"setNodeElem"),GS=f(()=>{ya.clear()},"clear"),vd=f(e=>{const t=ya.get(e.id);$.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"),VS=f(async(e,t)=>{const r=Mt(),{themeVariables:i,handDrawnSeed:o}=r,{clusterBkg:s,clusterBorder:a}=i,n=a,{labelStyles:h,nodeStyles:c,borderStyles:l,backgroundStyles:d}=pt(t),u=e.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),p=pr(r.flowchart.htmlLabels),y=t.direction==="LR",m=u.insert("g").attr("class","cluster-label swimlane-label"),x=await Je(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width});let C=x.getBBox();if(p){const z=x.children[0],W=Bt(x);C=z.getBoundingClientRect(),W.attr("width",C.width),W.attr("height",C.height)}const k=t.padding??0,_=t.width<=C.width+k?C.width+k:t.width;t.width<=C.width+k?t.diff=(_-t.width)/2-k:t.diff=-k;const T=t.height,v=t.y-T/2,A=t.y+T/2,B=t.x-_/2,D=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:v+T/3,j=y?4:0,U=C.height+2*j;let H,ot;if(y){const z=Math.max(U,C.height+2*j),W=B+z,J=Math.max(0,_-z);if(t.look==="handDrawn"){const et=dt.svg(u),bt=ct(t,{roughness:.7,fill:s,stroke:n,fillWeight:3,seed:o}),gt=ct(t,{roughness:.7,fill:"none",stroke:n,seed:o}),Nt=et.rectangle(B,v,z,T,bt);H=u.insert(()=>Nt,":first-child");const Gt=et.rectangle(W,v,J,T,gt);ot=u.insert(()=>Gt,":first-child"),H.select("path:nth-child(2)").attr("style",l.join(";")),H.select("path").attr("style",d.join(";").replace("fill","stroke"))}else H=u.insert("rect",":first-child"),ot=u.insert("rect",":first-child"),H.attr("class","swimlane-title").attr("style",c).attr("x",B).attr("y",v).attr("width",z).attr("height",T).attr("fill",s).attr("stroke",n),ot.attr("class","swimlane-body").attr("style",c).attr("x",W).attr("y",v).attr("width",J).attr("height",T).attr("fill","none").attr("stroke",n);const P=B+z/2,it=t.y;m.attr("transform",`translate(${P}, ${it}) rotate(-90) translate(${-C.width/2}, ${-C.height/2})`)}else{const z=Math.max(0,D-v),W=Math.min(U,z),J=v+W,P=Math.max(0,A-J),it=t.x-_/2;if(t.look==="handDrawn"){const gt=dt.svg(u),Nt=ct(t,{roughness:.7,fill:s,stroke:n,fillWeight:3,seed:o}),Gt=ct(t,{roughness:.7,fill:"none",stroke:n,seed:o}),Ht=gt.rectangle(it,v,_,W,Nt);H=u.insert(()=>Ht,":first-child");const _t=gt.rectangle(it,J,_,P,Gt);ot=u.insert(()=>_t,":first-child"),H.select("path:nth-child(2)").attr("style",l.join(";")),H.select("path").attr("style",d.join(";").replace("fill","stroke"))}else H=u.insert("rect",":first-child"),ot=u.insert("rect",":first-child"),H.attr("class","swimlane-title").attr("style",c).attr("x",it).attr("y",v).attr("width",_).attr("height",W).attr("fill",s).attr("stroke",n),ot.attr("class","swimlane-body").attr("style",c).attr("x",it).attr("y",J).attr("width",_).attr("height",P).attr("fill","none").attr("stroke",n);const et=t.x-C.width/2,bt=v+(W-C.height)/2;m.attr("transform",`translate(${et}, ${bt})`)}if($.trace("Swimlane data ",t,JSON.stringify(t)),h){const z=m.select("span");z&&z.attr("style",h)}return t.offsetX=0,t.width=_,t.height=T,t.offsetY=C.height-k/2,t.intersect=function(z){return ui(t,z)},{cluster:u,labelBBox:C}},"swimlane"),om=f(async(e,t)=>{$.info("Creating subgraph rect for ",t.id,t);const r=Mt(),{themeVariables:i,handDrawnSeed:o}=r,{clusterBkg:s,clusterBorder:a}=i,{labelStyles:n,nodeStyles:h,borderStyles:c,backgroundStyles:l}=pt(t),d=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),u=xe(r),p=d.insert("g").attr("class","cluster-label ");let y;t.labelType==="markdown"?y=await Je(p,t.label,{style:t.labelStyle,useHtmlLabels:u,isNode:!0,width:t.width}):y=await Nr(p,t.label,t.labelStyle||"",!1,!0);let m=y.getBBox();if(xe(r)){const B=y.children[0],D=Bt(y);m=B.getBoundingClientRect(),D.attr("width",m.width),D.attr("height",m.height)}const x=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const C=t.height,k=t.x-x/2,_=t.y-C/2;$.trace("Data ",t,JSON.stringify(t));let T;if(t.look==="handDrawn"){const B=dt.svg(d),D=ct(t,{roughness:.7,fill:s,stroke:a,fillWeight:3,seed:o}),j=B.path(We(k,_,x,C,0),D);T=d.insert(()=>($.debug("Rough node insert CXC",j),j),":first-child"),T.select("path:nth-child(2)").attr("style",c.join(";")),T.select("path").attr("style",l.join(";").replace("fill","stroke"))}else T=d.insert("rect",":first-child"),T.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",_).attr("width",x).attr("height",C);const{subGraphTitleTopMargin:v}=ma(r);if(p.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+v})`),n){const B=p.select("span");B&&B.attr("style",n)}const A=T.node().getBBox();return t.offsetX=0,t.width=A.width,t.height=A.height,t.offsetY=m.height-t.padding/2,t.intersect=function(B){return ui(t,B)},{cluster:d,labelBBox:m}},"rect"),XS=f((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),o=0*t.padding,s=o/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2-s).attr("width",t.width+o).attr("height",t.height+o).attr("fill","none");const a=i.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(n){return ui(t,n)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),ZS=f(async(e,t)=>
vendor: 4,086 bytes, line 261
261{const r=Mt(),{themeVariables:i,handDrawnSeed:o}=r,{altBackground:s,compositeBackground:a,compositeTitleBackground:n,nodeBorder:h}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),l=c.insert("g",":first-child"),d=c.insert("g").attr("class","cluster-label");let u=c.append("rect");const p=await Nr(d,t.label,t.labelStyle,void 0,!0);let y=p.getBBox();if(xe(r)){const j=p.children[0],U=Bt(p);y=j.getBoundingClientRect(),U.attr("width",y.width),U.attr("height",y.height)}const m=0*t.padding,x=m/2,C=(t.width<=y.width+t.padding?y.width+t.padding:t.width)+m;t.width<=y.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const k=t.height+m,_=t.height+m-y.height-6,T=t.x-C/2,v=t.y-k/2;t.width=C;const A=t.y-t.height/2-x+y.height+2;let B;if(t.look==="handDrawn"){const j=t.cssClasses.includes("statediagram-cluster-alt"),U=dt.svg(c),H=t.rx||t.ry?U.path(We(T,v,C,k,10),{roughness:.7,fill:n,fillStyle:"solid",stroke:h,seed:o}):U.rectangle(T,v,C,k,{seed:o});B=c.insert(()=>H,":first-child");const ot=U.rectangle(T,A,C,_,{fill:j?s:a,fillStyle:j?"hachure":"solid",stroke:h,seed:o});B=c.insert(()=>H,":first-child"),u=c.insert(()=>ot)}else B=l.insert("rect",":first-child"),B.attr("class","outer").attr("x",T).attr("y",v).attr("width",C).attr("height",k).attr("data-look",t.look),u.attr("class","inner").attr("x",T).attr("y",A).attr("width",C).attr("height",_);d.attr("transform",`translate(${t.x-y.width/2}, ${v+1-(xe(r)?0:3)})`);const D=B.node().getBBox();return t.height=D.height,t.offsetX=0,t.offsetY=y.height-t.padding/2,t.labelBBox=y,t.intersect=function(j){return ui(t,j)},{cluster:c,labelBBox:y}},"roundedWithTitle"),KS=f(async(e,t)=>{$.info("Creating subgraph rect for ",t.id,t);const r=Mt(),{themeVariables:i,handDrawnSeed:o}=r,{clusterBkg:s,clusterBorder:a}=i,{labelStyles:n,nodeStyles:h,borderStyles:c,backgroundStyles:l}=pt(t),d=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),u=xe(r),p=d.insert("g").attr("class","cluster-label "),y=await Je(p,t.label,{style:t.labelStyle,useHtmlLabels:u,isNode:!0,width:t.width});let m=y.getBBox();if(xe(r)){const B=y.children[0],D=Bt(y);m=B.getBoundingClientRect(),D.attr("width",m.width),D.attr("height",m.height)}const x=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const C=t.height,k=t.x-x/2,_=t.y-C/2;$.trace("Data ",t,JSON.stringify(t));let T;if(t.look==="handDrawn"){const B=dt.svg(d),D=ct(t,{roughness:.7,fill:s,stroke:a,fillWeight:4,seed:o}),j=B.path(We(k,_,x,C,t.rx),D);T=d.insert(()=>($.debug("Rough node insert CXC",j),j),":first-child"),T.select("path:nth-child(2)").attr("style",c.join(";")),T.select("path").attr("style",l.join(";").replace("fill","stroke"))}else T=d.insert("rect",":first-child"),T.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",_).attr("width",x).attr("height",C);const{subGraphTitleTopMargin:v}=ma(r);if(p.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+v})`),n){const B=p.select("span");B&&B.attr("style",n)}const A=T.node().getBBox();return t.offsetX=0,t.width=A.width,t.height=A.height,t.offsetY=m.height-t.padding/2,t.intersect=function(B){return ui(t,B)},{cluster:d,labelBBox:m}},"kanbanSection"),QS=f((e,t)=>{const r=Mt(),{themeVariables:i,handDrawnSeed:o}=r,{nodeBorder:s}=i,a=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),n=a.insert("g",":first-child"),h=0*t.padding,c=t.width+h;t.diff=-t.padding;const l=t.height+h,d=t.x-c/2,u=t.y-l/2;t.width=c;let p;if(t.look==="handDrawn"){const x=dt.svg(a).rectangle(d,u,c,l,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:o});p=a.insert(()=>x,":first-child")}else{p=n.insert("rect",":first-child");let m="outer";t.look,m="divider",p.attr("class",m).attr("x",d).attr("y",u).attr("width",c).attr("height",l).attr("data-look",t.look)}const y=p.node().getBBox();return t.height=y.height,t.offsetX=0,t.offsetY=0,t.intersect=function(m){return ui(t,m)},{cluster:a,labelBBox:{}}}
261,"divider"),JS=om,tT={rect:om,squareRect:JS,roundedWithTitle:ZS,noteGroup:XS,divider:QS,kanbanSection:KS,swimlane:VS},sm=new Map,am=f(async(e,t)=>{const r=t.shape||"rect",i=await tT[r](e,t);return sm.set(t.id,i),i},"insertCluster"),eT=f(()=>{sm=new Map},"clear"),xo=f((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),me={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Bd={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Bo(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Vt(e),t=Vt(t);const[r,i]=[e.x,e.y],[o,s]=[t.x,t.y],a=o-r,n=s-i;return{angle:Math.atan(n/a),deltaX:a,deltaY:n}}f(Bo,"calculateDeltaAndAngle");var Vt=f(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),rT=f(e=>({x:f(function(t,r,i){let o=0;const s=Vt(i[0]).x<Vt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(me,e.arrowTypeStart)){const{angle:p,deltaX:y}=Bo(i[0],i[1]);o=me[e.arrowTypeStart]*Math.cos(p)*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(me,e.arrowTypeEnd)){const{angle:p,deltaX:y}=Bo(i[i.length-1],i[i.length-2]);o=me[e.arrowTypeEnd]*Math.cos(p)*(y>=0?1:-1)}const a=Math.abs(Vt(t).x-Vt(i[i.length-1]).x),n=Math.abs(Vt(t).y-Vt(i[i.length-1]).y),h=Math.abs(Vt(t).x-Vt(i[0]).x),c=Math.abs(Vt(t).y-Vt(i[0]).y),l=me[e.arrowTypeStart],d=me[e.arrowTypeEnd],u=1;if(a<d&&a>0&&n<d){let p=d+u-a;p*=s==="right"?-1:1,o-=p}if(h<l&&h>0&&c<l){let p=l+u-h;p*=s==="right"?-1:1,o+=p}return Vt(t).x+o},"x"),y:f(function(t,r,i){let o=0;const s=Vt(i[0]).y<Vt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(me,e.arrowTypeStart)){const{angle:p,deltaY:y}=Bo(i[0],i[1]);o=me[e.arrowTypeStart]*Math.abs(Math.sin(p))*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(me,e.arrowTypeEnd)){const{angle:p,deltaY:y}=Bo(i[i.length-1],i[i.length-2]);o=me[e.arrowTypeEnd]*Math.abs(Math.sin(p))*(y>=0?1:-1)}const a=Math.abs(Vt(t).y-Vt(i[i.length-1]).y),n=Math.abs(Vt(t).x-Vt(i[i.length-1]).x),h=Math.abs(Vt(t).y-Vt(i[0]).y),c=Math.abs(Vt(t).x-Vt(i[0]).x),l=me[e.arrowTypeStart],d=me[e.arrowTypeEnd],u=1;if(a<d&&a>0&&n<d){let p=d+u-a;p*=s==="up"?-1:1,o-=p}if(h<l&&h>0&&c<l){let p=l+u-h;p*=s==="up"?-1:1,o+=p}return Vt(t).y+o},"y")}),"getLineFunctionsWithOffset"),iT=f((e,t,r,i,o,s=!1,a)=>{t.arrowTypeStart&&Ld(e,"start",t.arrowTypeStart,r,i,o,s,a),t.arrowTypeEnd&&Ld(e,"end",t.arrowTypeEnd,r,i,o,s,a)},"addEdgeMarkers"),oT={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},sT=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Ld=f((e,t,r,i,o,s,a=!1,n)=>{if(!r||r==="none")return;const h=oT[r],c=h&&sT.includes(h.type);if(!h){$.warn(`Unknown arrow type: ${r}`);return}const l=h.type,p=`${o}_${s}-${l}${t==="start"?"Start":"End"}${a&&c?"-margin":""}`;if(n&&n.trim()!==""){const y=n.replace(/[^\dA-Za-z]/g,"_"),m=`${p}_${y}`;if(!document.getElementById(m)){const x=document.getElementById(p);if(x){const C=x.cloneNode(!0);C.id=m,C.querySelectorAll("path, circle, line").forEach(_=>{_.setAttribute("stroke",n),h.fill&&_.setAttribute("fill",n)}),x.parentNode?.appendChild(C)}}e.attr(`marker-${t}`,`url(${i}#${m})`)}else e.attr(`marker-${t}`,`url(${i}#${p})`)},"addEdgeMarker"),aT=f(e=>typeof e=="string"?e:Mt()?.flowchart?.curve,"resolveEdgeCurveType"),Ki=new Map,te=new Map,nT=f(()=>{Ki.clear(),te.clear()},"clear"),nm=f(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),"hasEdgeLabel"),Co=f(e=>
261e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),ah=f(async(e,t)=>{const r=Mt();let i=xe(r);const{labelStyles:o}=pt(t);t.labelStyle=o;const s=e.insert("g").attr("class","edgeLabel"),a=s.insert("g").attr("class","label").attr("data-id",t.id),n=t.labelType==="markdown",c=await Je(e,t.label,{style:Co(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:n,width:n?void 0:void 0},r);a.node().appendChild(c),$.info("abc82",t,t.labelType);let l,d;if(i){const p=c.children[0],y=Bt(c);l=await hi.measure(()=>p.getBoundingClientRect()),d=l,y.attr("width",l.width),y.attr("height",l.height)}else{const p=Bt(c).select("text").node();await hi.measure(()=>{l=c.getBBox(),p&&typeof p.getBBox=="function"?d=p.getBBox():d=l})}a.attr("transform",xo(d,i)),Ki.set(t.id,s),t.width=l.width,t.height=l.height;let u;if(t.startLabelLeft){const p=e.insert("g").attr("class","edgeTerminals"),y=p.insert("g").attr("class","inner"),m=await Nr(y,t.startLabelLeft,Co(t.labelStyle)||"",!1,!1);u=m;let x=m.getBBox();if(i){const C=m.children[0],k=Bt(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",xo(x,i)),te.get(t.id)||te.set(t.id,{}),te.get(t.id).startLeft=p,Lo(u,t.startLabelLeft)}if(t.startLabelRight){const p=e.insert("g").attr("class","edgeTerminals"),y=p.insert("g").attr("class","inner"),m=await Nr(y,t.startLabelRight,Co(t.labelStyle)||"",!1,!1);u=m;let x=m.getBBox();if(i){const C=m.children[0],k=Bt(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",xo(x,i)),te.get(t.id)||te.set(t.id,{}),te.get(t.id).startRight=p,Lo(u,t.startLabelRight)}if(t.endLabelLeft){const p=e.insert("g").attr("class","edgeTerminals"),y=p.insert("g").attr("class","inner"),m=await Nr(p,t.endLabelLeft,Co(t.labelStyle)||"",!1,!1);u=m;let x=m.getBBox();if(i){const C=m.children[0],k=Bt(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",xo(x,i)),te.get(t.id)||te.set(t.id,{}),te.get(t.id).endLeft=p,Lo(u,t.endLabelLeft)}if(t.endLabelRight){const p=e.insert("g").attr("class","edgeTerminals"),y=p.insert("g").attr("class","inner"),m=await Nr(p,t.endLabelRight,Co(t.labelStyle)||"",!1,!1);u=m;let x=m.getBBox();if(i){const C=m.children[0],k=Bt(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",xo(x,i)),te.get(t.id)||te.set(t.id,{}),te.get(t.id).endRight=p,Lo(u,t.endLabelRight)}return c},"insertEdgeLabel");function Lo(e,t){xe(Mt())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}f(Lo,"setTerminalWidth");var lT=f((e,t)=>{$.debug("Moving label abc88 ",e.id,e.label,Ki.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=Mt(),{subGraphTitleTotalMargin:o}=ma(i);if(e.label){const s=Ki.get(e.id);let a=e.x,n=e.y;if(r){const h=ye.calcLabelPosition(r);$.debug("Moving label "+e.label+" from (",a,",",n,") to (",h.x,",",h.y,") abc88"),t.updatedPath&&(a=h.x,n=h.y)}s.attr("transform",`translate(${a}, ${n+o/2})`)}if(e.startLabelLeft){const s=te.get(e.id).startLeft;let a=e.x,n=e.y;if(r){const h=ye.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);a=h.x,n=h.y}s.attr("transform",`translate(${a}, ${n})`)}if(e.startLabelRight){const s=te.get(e.id).startRight;let a=e.x,n=e.y;if(r){const h=ye.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);a=h.x,n=h.y}s.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelLeft){const s=te.get(e.id).endLeft;let a=e.x,n=e.y;if(r){const h=ye.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);a=h.x,n=h.y}s.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelRight){const s=te.get(e.id).endRight;let a=e.x,n=e.y;if(r){const h=ye.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=h.x,n=h.y}s.attr("transform",`translate(${a}, ${n})`)}},"positionEdgeLabel"),hT=f((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;const[r,i]=t,o=Math.abs(i.x-r.x),s=Math.abs(i.y-r.y);return o<.001||s<.001?t:s>=o?[r,{x:r.x,y:i.y},i]:[r,{x:i.x,y:r.y},i]},"orthogonalizeToLabelClippedPoints"),cT=f((e,t)=>{const r=e.x,i=e.y,o=Math.abs(t.x-r),s=Math.abs(t.y-i),a=e.width/2,n=e.height/2;return o>=a||s>=n},"outsideNode"),dT=f((e,t,r)=>{$.debug(`intersection calc abc89: 262 outsidePoint: ${JSON.stringify(t)} 263 insidePoint : ${JSON.stringify(r)} 264 node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,o=e.y,s=Math.abs(i-r.x),a=e.width/2;let n=r.x<t.x?a-s:a+s;
264const h=e.height/2,c=Math.abs(t.y-r.y),l=Math.abs(t.x-r.x);if(Math.abs(o-t.y)*a>Math.abs(i-t.x)*h){let d=r.y<t.y?t.y-h-o:o-h-t.y;n=l*d/c;const u={x:r.x<t.x?r.x+n:r.x-l+n,y:r.y<t.y?r.y+c-d:r.y-c+d};return n===0&&(u.x=t.x,u.y=t.y),l===0&&(u.x=t.x),c===0&&(u.y=t.y),$.debug(`abc89 top/bottom calc, Q ${c}, q ${d}, R ${l}, r ${n}`,u),u}else{r.x<t.x?n=t.x-a-i:n=i-a-t.x;let d=c*n/l,u=r.x<t.x?r.x+l-n:r.x-l+n,p=r.y<t.y?r.y+d:r.y-d;return $.debug(`sides calc abc89, Q ${c}, q ${d}, R ${l}, r ${n}`,{_x:u,_y:p}),n===0&&(u=t.x,p=t.y),l===0&&(u=t.x),c===0&&(p=t.y),{x:u,y:p}}},"intersection"),Fd=f((e,t)=>{$.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],o=!1;return e.forEach(s=>{if($.info("abc88 checking point",s,t),!cT(t,s)&&!o){const a=dT(t,i,s);$.debug("abc88 inside",s,i,a),$.debug("abc88 intersection",a,t);let n=!1;r.forEach(h=>{n=n||h.x===a.x&&h.y===a.y}),r.some(h=>h.x===a.x&&h.y===a.y)?$.warn("abc88 no intersect",a,r):r.push(a),o=!0}else $.warn("abc88 outside",s,i),i=s,o||r.push(s)}),$.debug("returning points",r),r},"cutPathAtIntersect");function lm(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const o=e[i-1],s=e[i],a=e[i+1];(o.x===s.x&&s.y===a.y&&Math.abs(s.x-a.x)>5&&Math.abs(s.y-o.y)>5||o.y===s.y&&s.x===a.x&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-a.y)>5)&&(t.push(s),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}f(lm,"extractCornerPoints");var Ad=f(function(e,t,r){const i=t.x-e.x,o=t.y-e.y,s=Math.sqrt(i*i+o*o),a=r/s;return{x:t.x-a*i,y:t.y-a*o}},"findAdjacentPoint"),uT=f(function(e){const{cornerPointPositions:t}=lm(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const o=e[i-1],s=e[i+1],a=e[i],n=Ad(o,a,5),h=Ad(s,a,5),c=h.x-n.x,l=h.y-n.y;r.push(n);const d=Math.sqrt(2)*2;let u={x:a.x,y:a.y};if(Math.abs(s.x-o.x)>10&&Math.abs(s.y-o.y)>=10){$.debug("Corner point fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));const p=5;a.x===n.x?u={x:c<0?n.x-p+d:n.x+p-d,y:l<0?n.y-d:n.y+d}:u={x:c<0?n.x-d:n.x+d,y:l<0?n.y-p+d:n.y+p-d}}else $.debug("Corner point skipping fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));r.push(u,h)}else r.push(e[i]);return r},"fixCorners"),pT=f((e,t,r)=>{const i=e-t-r,o=2,s=2,a=o+s,n=Math.floor(i/a),h=Number.isFinite(n)?Math.max(0,n):0,c=Array(h).fill(`${o} ${s}`).join(" ");return`0 ${t} ${c} ${r}`},"generateDashArray"),hm=f(function(e,t,r,i,o,s,a,n=!1){if(!a)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" â edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:h,layout:c}=Mt();let l=t.points,d=!1;const u=o;var p=s;const y=[];for(const et in t.cssCompiledStyles)Dp(et)||y.push(t.cssCompiledStyles[et]);if(c==="swimlane"){if(p.intersect&&u.intersect&&Array.isArray(l)&&l.length>=2)if(l.length===2)l=[u.intersect(l[0]),p.intersect(l[1])];else{const et=l.slice(1,-1),bt=et[0],gt=et[et.length-1],Nt=.5,Gt=Math.abs(l[l.length-1].x-gt.x)<Nt&&Math.abs(l[l.length-1].y-gt.y)<Nt,Ht=u.intersect(bt),_t=Gt?gt:p.intersect(gt),It=Math.abs(_t.x-gt.x)<Nt&&Math.abs(_t.y-gt.y)<Nt,Lt=Math.abs(Ht.x-bt.x)<Nt&&Math.abs(Ht.y-bt.y)<Nt?[]:[Ht],qt=It?[]:[_t];l=[...Lt,...et,...qt]}l=hT(t,l)}else p.intersect&&u.intersect&&!n&&(l=l.slice(1,t.points.length-1),l.unshift(u.intersect(l[0])),l.push(p.intersect(l[l.length-1])));const m=btoa(JSON.stringify(l));t.toCluster&&($.info("to cluster abc88",r.get(t.toCluster)),l=Fd(t.points,r.get(t.toCluster).node),d=!0),t.fromCluster&&($.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(l,null,2)),l=Fd(l.reverse(),r.get(t.fromCluster).node).reverse(),d=!0);let x=l.filter(et=>!Number.isNaN(et.y));const C=aT(t.curve);C!=="rounded"&&(x=uT(x));let k=Oo;switch(C){case"linear":k=Oo;break;case"basis":k=Wn;break;case"cardinal":k=bp;break;case"bumpX":k=gp;break;case"bumpY":k=mp;break;case"catmullRom":k=wp;break;case"monotoneX":k=Lp;break;case"monotoneY":k=Fp;break;case"natural":k=Ep;break;case"step":k=Mp;break;case"stepAfter":k=$p;break;case"stepBefore":k=Op;break;case"rounded":k=Oo;break;default:k=Wn}const{x:_,y:T}=rT(t),v=L2().x(_).y(T).curve(k);let A;switch(t.thickness){case"normal":A="edge-thickness-normal";break;case"thick":A="edge-thickness-thick";break;case"invisible":A="edge-thickness-invisible";break;default:A="edge-thickness-normal"}switch(t.pattern){case"solid":A+=" edge-pattern-solid";break;case"dotted":A+=" edge-pattern-dotted";break;case"dashed":A+=" edge-pattern-dashed";break;default:A+=" edge-pattern-solid"}let B,D=C==="rounded"?cm(dm(x,t),5):v(x);const j=Array.isArray(t.style)?t.style:[t.style];let U=j.find(et=>et?.startsWith("stroke:")),H="";t.animate&&(H="edge-animation-fast"),t.animation&&(H="edge-animation-"+t.animation);let ot=!1;if(t.look==="handDrawn"){const et=dt.svg(e);Object.assign([],x);const bt=et.path(D,{roughness:.3,seed:h});A+=" transition",B=Bt(bt).select("path").attr("id",`${a}-${t.id}`).attr("class"," "+A+(t.classes?" "+t.classes:"")+(H?" "+H:"")).attr("style",j?j.reduce((Nt,Gt)=>Nt+";"+Gt,""):"");let gt=B.attr("d");B.attr("d",gt),e.node().appendChild(B.node())}else{const et=y.join(";"),bt=j?j.reduce((It,Ct)=>It+Ct+";",""):"",gt=(et?et+";"+bt+";":bt)+";"+(j?j.reduce((It,Ct)=>It+";"+Ct,""):"");B=e.append("path").attr("d",D).attr("id",`${a}-${t.id}`).attr("class"," "+A+(t.classes?" "+t.classes:"")+(H?" "+H:"")).attr("style",gt),U=gt.match(/stroke:([^;
vendor: 10,563 bytes, line 264
264]+)/)?.[1],ot=t.animate===!0||!!t.animation||et.includes("animation");const Nt=B.node(),Gt=typeof Nt.getTotalLength=="function"?Nt.getTotalLength():0,Ht=Bd[t.arrowTypeStart]||0,_t=Bd[t.arrowTypeEnd]||0;if(t.look==="neo"&&!ot){const Ct=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?pT(Gt,Ht,_t):`0 ${Ht} ${Gt-Ht-_t} ${_t}`}; stroke-dashoffset: 0;`;B.attr("style",Ct+B.attr("style"))}}B.attr("data-edge",!0),B.attr("data-et","edge"),B.attr("data-id",t.id),B.attr("data-points",m),B.attr("data-look",ie(t.look)),t.showPoints&&x.forEach(et=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",et.x).attr("cy",et.y)});let z="";(Mt().flowchart.arrowMarkerAbsolute||Mt().state.arrowMarkerAbsolute)&&(z=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,z=z.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),$.info("arrowTypeStart",t.arrowTypeStart),$.info("arrowTypeEnd",t.arrowTypeEnd);const W=!ot&&t?.look==="neo";iT(B,t,z,a,i,W,U);const J=Math.floor(l.length/2),P=l[J];ye.isLabelCoordinateInPath(P,B.attr("d"))||(d=!0);let it={};return d&&(it.updatedPath=l),it.originalPath=t.points,it},"insertEdge");function cm(e,t){if(e.length<2)return"";let r="";const i=e.length,o=1e-5;for(let s=0;s<i;s++){const a=e[s],n=e[s-1],h=e[s+1];if(s===0)r+=`M${a.x},${a.y}`;else if(s===i-1)r+=`L${a.x},${a.y}`;else{const c=a.x-n.x,l=a.y-n.y,d=h.x-a.x,u=h.y-a.y,p=Math.hypot(c,l),y=Math.hypot(d,u);if(p<o||y<o){r+=`L${a.x},${a.y}`;continue}const m=c/p,x=l/p,C=d/y,k=u/y,_=m*C+x*k,T=Math.max(-1,Math.min(1,_)),v=Math.acos(T);if(v<o||Math.abs(Math.PI-v)<o){r+=`L${a.x},${a.y}`;continue}const A=Math.min(t/Math.sin(v/2),p/2,y/2),B=a.x-m*A,D=a.y-x*A,j=a.x+C*A,U=a.y+k*A;r+=`L${B},${D}`,r+=`Q${a.x},${a.y} ${j},${U}`}}return r}f(cm,"generateRoundedPath");function ol(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}f(ol,"calculateDeltaAndAngle");function dm(e,t){const r=e.map(o=>({...o}));if(e.length>=2&&me[t.arrowTypeStart]){const o=me[t.arrowTypeStart],s=e[0],a=e[1],{angle:n}=ol(s,a),h=o*Math.cos(n),c=o*Math.sin(n);r[0].x=s.x+h,r[0].y=s.y+c}const i=e.length;if(i>=2&&me[t.arrowTypeEnd]){const o=me[t.arrowTypeEnd],s=e[i-1],a=e[i-2],{angle:n}=ol(a,s),h=o*Math.cos(n),c=o*Math.sin(n);r[i-1].x=s.x-h,r[i-1].y=s.y-c}return r}f(dm,"applyMarkerOffsetsToPoints");var fT=f((e,t,r,i)=>{t.forEach(o=>{IT[o](e,r,i)})},"insertMarkers"),gT=f((e,t,r)=>{$.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",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),mT=f((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),yT=f((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),xT=f((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),CT=f((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").attr("markerUnits","userSpaceOnUse").append("circle").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").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),bT=f((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"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
264ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),kT=f((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"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),wT=f((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"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),_T=f((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"),ST=f((e,t,r)=>{const i=Xt(),{themeVariables:o}=i,{transitionColor:s}=o;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${s}`)},"barbNeo"),TT=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),vT=f((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const o=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),BT=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),LT=f((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const o=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),FT=f((e,t,r)=>{const i=Xt(),{themeVariables:o}=i,{strokeWidth:s}=o;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${s}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${s}`)},"only_one_neo"),AT=f((e,t,r)=>{const i=Xt(),{themeVariables:o}=i,{strokeWidth:s,mainBkg:a}=o,n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");n.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),n.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);const h=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");h.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),h.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),ET=f((e,t,r)=>{const i=Xt(),{themeVariables:o}=i,{strokeWidth:s}=o;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${s}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${s}`)},"one_or_more_neo"),MT=f((e,t,r)=>{const i=Xt(),{themeVariables:o}=i,{strokeWidth:s,mainBkg:a}=o,n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");n.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);const h=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");h.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),h.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),OT=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 265 L20,10 266 M20,10 267 L0,20`)},"requirement_arrow"),$T=f((e,t,r)=>{const i=Xt(),{themeVariables:o}=i,{strokeWidth:s}=o;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 268 L20,10 269 M20,10 270 L0,20`).attr("stroke-linejoin","miter")}
270,"requirement_arrow_neo"),DT=f((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),PT=f((e,t,r)=>{const i=Xt(),{themeVariables:o}=i,{strokeWidth:s}=o,a=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),IT={extension:gT,composition:mT,aggregation:yT,dependency:xT,lollipop:CT,point:bT,circle:kT,cross:wT,barb:_T,barbNeo:ST,only_one:TT,zero_or_one:vT,one_or_more:BT,zero_or_more:LT,only_one_neo:FT,zero_or_one_neo:AT,one_or_more_neo:ET,zero_or_more_neo:MT,requirement_arrow:OT,requirement_contains:DT,requirement_arrow_neo:$T,requirement_contains_neo:PT},um=fT,RT="\0",Xr="\0",Ed="�";class xa{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=os(void 0),this._defaultEdgeLabelFn=os(void 0),this._nodes={}
vendor: 1,328 bytes, line 270
270,this._isCompound&&(this._parent={},this._children={},this._children[Xr]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return Uh(t)||(t=os(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return Zr(this._nodes)}sources(){var t=this;return ss(this.nodes(),function(r){return Gh(t._in[r])})}sinks(){var t=this;return ss(this.nodes(),function(r){return Gh(t._out[r])})}setNodes(t,r){var i=arguments,o=this;return Gr(t,function(s){i.length>1?o.setNode(s,r):o.setNode(s)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=Xr,this._children[t]={},this._children[Xr][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=i=>this.removeEdge(this._edgeObjs[i]);
vendor: 4,879 bytes, line 270
270delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],Gr(this.children(t),i=>{this.setParent(i)}),delete this._children[t]),Gr(Zr(this._in[t]),r),delete this._in[t],delete this._preds[t],Gr(Zr(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(_i(r))r=Xr;else{r+="";for(var i=r;!_i(i);i=this.parent(i))if(i===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==Xr)return r}}children(t){if(_i(t)&&(t=Xr),this._isCompound){var r=this._children[t];if(r)return Zr(r)}else{if(t===Xr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return Zr(r)}successors(t){var r=this._sucs[t];if(r)return Zr(r)}neighbors(t){var r=this.predecessors(t);if(r)return k0(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;Gr(this._nodes,function(a,n){t(n)&&r.setNode(n,a)}),Gr(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,i.edge(a))});var o={};function s(a){var n=i.parent(a);return n===void 0||r.hasNode(n)?(o[a]=n,n):n in o?o[n]:s(n)}return this._isCompound&&Gr(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(t){return Uh(t)||(t=os(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Ea(this._edgeObjs)}setPath(t,r){var i=this,o=arguments;return B0(t,function(s,a){return o.length>1?i.setEdge(s,a,r):i.setEdge(s,a),a}),this}setEdge(){var t,r,i,o,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(t=a.v,r=a.w,i=a.name,arguments.length===2&&(o=arguments[1],s=!0)):(t=a,r=arguments[1],i=arguments[3],arguments.length>2&&(o=arguments[2],s=!0)),t=""+t,r=""+r,_i(i)||(i=""+i);var n=Fo(this._isDirected,t,r,i);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,n))return s&&(this._edgeLabels[n]=o),this;if(!_i(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[n]=s?o:this._defaultEdgeLabelFn(t,r,i);var h=NT(this._isDirected,t,r,i);return t=h.v,r=h.w,Object.freeze(h),this._edgeObjs[n]=h,Md(this._preds[r],t),Md(this._sucs[t],r),this._in[r][n]=h,this._out[t][n]=h,this._edgeCount++,this}edge(t,r,i){var o=arguments.length===1?Ja(this._isDirected,arguments[0]):Fo(this._isDirected,t,r,i);return this._edgeLabels[o]}hasEdge(t,r,i){var o=arguments.length===1?Ja(this._isDirected,arguments[0]):Fo(this._isDirected,t,r,i);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(t,r,i){var o=arguments.length===1?Ja(this._isDirected,arguments[0]):Fo(this._isDirected,t,r,i),s=this._edgeObjs[o];return s&&(t=s.v,r=s.w,delete this._edgeLabels[o],delete this._edgeObjs[o],Od(this._preds[r],t),Od(this._sucs[t],r),delete this._in[r][o],delete this._out[t][o],this._edgeCount--),this}inEdges(t,r){var i=this._in[t];if(i){var o=Ea(i);return r?ss(o,function(s){return s.v===r}):o}}outEdges(t,r){var i=this._out[t];if(i){var o=Ea(i);return r?ss(o,function(s){return s.w===r}):o}}nodeEdges(t,r){var i=this.inEdges(t,r);if(i)return i.concat(this.outEdges(t,r))}}xa.prototype._nodeCount=0;xa.prototype._edgeCount=0;function Md(e,t){e[t]?e[t]++:e[t]=1}function Od(e,t){--e[t]||delete e[t]}function Fo(e,t,r,i){var o=""+t,s=""+r;if(!e&&o>s){var a=o;o=s,s=a}return o+Ed+s+Ed+(_i(i)?RT:i)}function NT(e,t,r,i){var o=""+t,s=""+r;if(!e&&o>s){var a=o;o=s,s=a}var n={v:o,w:s};return i&&(n.name=i),n}function Ja(e,t){return Fo(e,t.v,t.w,t.name)}function pm(e,{edgePathsClass:t="edges edgePaths"}={}){const r=e.insert("g").attr("class","root"),i=r.insert("g").attr("class","clusters"),o=r.insert("g").attr("class",t),s=r.insert("g").attr("class","edgeLabels"),a=r.insert("g").attr("class","nodes");return{clusters:i,edgePaths:o,edgeLabels:s,nodes:a,rootGroups:r}}f(pm,"createLayoutElementGroups");async function fm(e,t){if(t.label){const{shapeSvg:r,bbox:i}=await yt(e,t);t.labelBBox={width:i.width,height:i.height},r.remove()}else t.labelBBox={width:0,height:0}}f(fm,"measureGroupLabel");async function gm(e,t,r){const i=await sh(e,t,r),o=i.node()?.getBBox()??{width:0,height:0};return t.width=o.width,t.height=o.height,i}f(gm,"insertMeasuredNode");async function mm(e,t){const r=new xa({multigraph:!0,compound:!0}),i=[...t.edges],o=Mt(),s=pm(e),{edgeLabels:a,nodes:n}=s,h=new Map,c=e.node()!=null;
270await Promise.all(t.nodes.map(async l=>{if(l.isGroup)c&&await fm(n,l),r.setNode(l.id,{...l});else{if(c){const d=await gm(n,l,{config:o,dir:l.dir});h.set(l.id,d)}r.setNode(l.id,{...l})}}));for(const l of i)c&&nm(l)&&await ah(a,l),r.setEdge(l.start,l.end,{...l},l.id),t.edges.some(u=>u.id===l.id)||t.edges.push(l);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:l}=await Ft(async()=>{const{captureNodeSizes:d}=await import("./DyBqOSsE.js");return{captureNodeSizes:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url);l(e,t)}return{graph:r,groups:s,nodeElements:h}}f(mm,"createGraphWithElements");var Dt=new Map,ri=new Map,ym=new Map,zT=f(()=>{ri.clear(),ym.clear(),Dt.clear()},"clear"),zo=f((e,t)=>{const r=ri.get(t)||[];return $.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),qT=f((e,t)=>{const r=ri.get(t)||[];return $.info("Descendants of ",t," is ",r),$.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||zo(e.v,t)||zo(e.w,t)||r.includes(e.w):($.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),xm=f((e,t,r,i)=>{$.debug("Copying children of ",e,"root",i,"data",t.node(e),i);const o=t.children(e)||[];e!==i&&o.push(e),$.debug("Copying (nodes) clusterId",e,"nodes",o),o.forEach(s=>{if(t.children(s).length>0)xm(s,t,r,i);else{const a=t.node(s);$.info("cp ",s," to ",i," with parent ",e),r.setNode(s,a),i!==t.parent(s)&&($.debug("Setting parent",s,t.parent(s)),r.setParent(s,t.parent(s))),e!==i&&s!==e?($.debug("Setting parent",s,e),r.setParent(s,e)):($.info("In copy ",e,"root",i,"data",t.node(e),i),$.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==i,"node!==clusterId",s!==e));const n=t.edges(s);$.debug("Copying Edges",n),n.forEach(h=>{$.info("Edge",h);const c=t.edge(h.v,h.w,h.name);$.info("Edge data",c,i);try{qT(h,i)?($.info("Copying as ",h.v,h.w,c,h.name),r.setEdge(h.v,h.w,c,h.name),$.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):$.info("Skipping copy of edge ",h.v,"-->",h.w," rootId: ",i," clusterId:",e)}catch(l){$.error(l)}})}$.debug("Removing node",s),t.removeNode(s)})},"copy"),Cm=f((e,t)=>{const r=t.children(e);let i=[...r];for(const o of r)ym.set(o,e),i=[...i,...Cm(o,t)];return i},"extractDescendants"),WT=f((e,t,r)=>{const i=e.edges().filter(h=>h.v===t||h.w===t),o=e.edges().filter(h=>h.v===r||h.w===r),s=i.map(h=>({v:h.v===t?r:h.v,w:h.w===t?t:h.w})),a=o.map(h=>({v:h.v,w:h.w}));return s.filter(h=>a.some(c=>h.v===c.v&&h.w===c.w))},"findCommonEdges"),ra=f((e,t,r)=>{const i=t.children(e);if($.trace("Searching children of id ",e,i),i.length<1)return e;let o;for(const s of i){const a=ra(s,t,r),n=WT(t,r,a);if(a)if(n.length>0)o=a;else return a}return o},"findNonClusterChild"),$d=f(e=>!Dt.has(e)||!Dt.get(e).externalConnections?e:Dt.has(e)?Dt.get(e).id:e,"getAnchorId"),PA=f((e,t)=>{if(!e||t>10){$.debug("Opting out, no graph ");return}else $.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&($.debug("Cluster identified",r," Replacement id in edges: ",ra(r,e,r)),ri.set(r,Cm(r,e)),Dt.set(r,{id:ra(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){const i=e.children(r),o=e.edges();i.length>0?($.debug("Cluster identified",r,ri),o.forEach(s=>{const a=zo(s.v,r),n=zo(s.w,r);a^n&&($.debug("Edge: ",s," leaves cluster ",r),$.debug("Descendants of XXX ",r,": ",ri.get(r)),Dt.get(r).externalConnections=!0)})):$.debug("Not a cluster ",r,ri)});for(let r of Dt.keys()){const i=Dt.get(r).id,o=e.parent(i);o!==r&&Dt.has(o)&&!Dt.get(o).externalConnections&&(Dt.get(r).id=o);const s=e.edges().some(a=>a.v===r);if(i&&Dt.get(r)?.externalConnections&&s&&wm(e,i,r)){const a=HT(e,r,e.parent(i));a&&(Dt.get(r).id=a)}}
270e.edges().forEach(function(r){const i=e.edge(r);$.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),$.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let o=r.v,s=r.w;if($.debug("Fix XXX",Dt,"ids:",r.v,r.w,"Translating: ",Dt.get(r.v)," --- ",Dt.get(r.w)),Dt.get(r.v)||Dt.get(r.w)){if($.debug("Fixing and trying - removing XXX",r.v,r.w,r.name),o=$d(r.v),s=$d(r.w),e.removeEdge(r.v,r.w,r.name),o!==r.v){const a=e.parent(o);Dt.get(a).externalConnections=!0,i.fromCluster=r.v}if(s!==r.w){const a=e.parent(s);Dt.get(a).externalConnections=!0,i.toCluster=r.w}$.debug("Fix Replacing with XXX",o,s,r.name),e.setEdge(o,s,i,r.name)}}),bm(e,0),$.trace(Dt)},"adjustClustersAndEdges"),bm=f((e,t)=>{if(t>10){$.error("Bailing out");return}let r=e.nodes(),i=!1;for(const o of r){const s=e.children(o);i=i||s.length>0}if(!i){$.debug("Done, no node has children",e.nodes());return}$.debug("Nodes = ",r,t);for(const o of r)if($.debug("Extracting node",o,Dt,Dt.has(o)&&!Dt.get(o).externalConnections,!e.parent(o),e.node(o),e.children("D")," Depth ",t),!Dt.has(o))$.debug("Not a cluster",o,t);else if(!Dt.get(o).externalConnections&&e.children(o)&&e.children(o).length>0){$.debug("Cluster without external connections, without a parent and with children",o,t);let a=e.graph().rankdir==="TB"?"LR":"TB";Dt.get(o)?.clusterData?.dir&&(a=Dt.get(o).clusterData.dir,$.debug("Fixing dir",Dt.get(o).clusterData.dir,a));const n=new xa({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});xm(o,e,n,o),e.setNode(o,{clusterNode:!0,id:o,clusterData:Dt.get(o).clusterData,label:Dt.get(o).label,graph:n})}else $.debug("Cluster ** ",o," **not meeting the criteria !externalConnections:",!Dt.get(o).externalConnections," no parent: ",!e.parent(o)," children ",e.children(o)&&e.children(o).length>0,e.children("D"),t),$.debug(Dt);r=e.nodes(),$.debug("New list of nodes",r);for(const o of r){const s=e.node(o);$.debug(" Now next level",o,s),s?.clusterNode&&bm(s.graph,t+1)}},"extractor"),km=f((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(i=>{const o=e.children(i),s=km(e,o);r=[...r,...s]}),r},"sorter"),IA=f(e=>km(e,e.children()),"sortNodesByHierarchy"),wm=f((e,t,r)=>{let i=e.parent(t);for(;i&&i!==r;){const o=Dt.get(i);if(o&&!o.externalConnections)return!0;i=e.parent(i)}return!1},"isNodeInExtractableCluster"),HT=f((e,t,r)=>{const i=e.children(t)??[];for(const o of i){if(o===r||zo(o,r))continue;const s=ra(o,e,t);if(s&&!wm(e,s,t))return s}return null},"findSafeAnchorNode");function jT({prepareLayout:e,measureLayout:t,runLayoutCore:r,paintLayout:i,afterPaint:o,paintOptions:s}){const a=t??Sm;return f(async function(h,c,l,d){const u=c.select("g");(l?.insertMarkers??um)(u,h.markers,h.type,h.diagramId),_m();const p={element:u,helpers:l,options:d};p.preparedLayout=await e?.(h,p);const y=await a(h,p),m=await r(h,p),x={...p,measure:y};i?await i(h,x,m):await Tm(h,x,s),await o?.(h,x,m)},"render")}f(jT,"createCommonLayoutRenderer");function _m(){GS(),nT(),eT(),zT()}f(_m,"clearLayoutRenderState");async function Sm(e,{element:t}){return await mm(t,e)}f(Sm,"defaultMeasureLayout");async function Tm(e,t,r={}){const{measure:i}=t,{groups:o}=i;for(const a of r.getNodes?.(e,t)??e.nodes)r.skipNode?.(a,t)||await vm(o,a,t,r);const s=Lm(e.nodes);for(const a of e.edges)Fm(a,r)||await Am(o,a,s,e,r,t)}f(Tm,"paintLayoutData");async function vm(e,t,r,i){t.clusterNode?vd(t):Bm(t,r,i)?await am(e.clusters,t):vd(t)}f(vm,"paintLayoutNode");function Bm(e,t,r){return e.isGroup===!0&&(r.isCluster?.(e,t)??!0)}f(Bm,"shouldPaintAsCluster");function Lm(e){const t=new Map;for(const r of e)r?.id&&t.set(r.id,r);return t}f(Lm,"buildNodeLookup");function Fm(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}f(Fm,"shouldSkipPaintEdge");async function Am(e,t,r,i,o,s){const a=hm(e.edgePaths,{...t},o.clusterDb??new Map,i.type,sl(t.start,t,r,s,o),sl(t.end,t,r,s,o),i.diagramId,Em(t,o));nm(t)&&(Ki.has(t.id)||await ah(e.edgeLabels,t),Mm(t,a))}f(Am,"paintLayoutEdge");function sl(e,t,r,i,o){return o.getEdgeNode?.(e,t,i)??(e?r.get(e)??{}:{})}f(sl,"getRenderedNode");function Em(e,t){return typeof t.skipIntersect=="function"?t.skipIntersect(e):t.skipIntersect??!1}f(Em,"shouldSkipIntersect");function Mm(e,t){const r=t?.updatedPath??t?.originalPath,i=Xt(),{subGraphTitleTotalMargin:o}=ma({flowchart:i.flowchart??{}});if(e.label){const s=Ki.get(e.id);let a=e.x,n=e.y;if(r){const h=ye.calcLabelPosition(r);$.debug("Moving label "+e.label+" from (",a,",",n,") to (",h.x,",",h.y,") abc88"),t?.updatedPath&&(a=h.x,n=h.y)}s.attr("transform",`translate(${a}, ${n+o/2})`)}if(e?.startLabelLeft){const s=te.get(e.id).startLeft;let a=e?.x,n=e?.y;if(r){const h=ye.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);a=h.x,n=h.y}s.attr("transform",`translate(${a}, ${n})`)}if(e.startLabelRight){const s=te.get(e.id).startRight;let a=e.x,n=e.y;if(r){const h=ye.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);a=h.x,n=h.y}s.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelLeft){const s=te.get(e.id).endLeft;let a=e.x,n=e.y;if(r){const h=ye.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);a=h.x,n=h.y}s.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelRight){const s=te.get(e.id).endRight;let a=e.x,n=e.y;if(r){const h=ye.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=h.x,n=h.y}s.attr("transform",`translate(${a}, ${n})`)}}f(Mm,"positionRenderedEdgeLabel");
270function Om(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}f(Om,"getDefaultExportFromCjs");var pe={},ys={},Dr={},Dd;function io(){if(Dd)return Dr;Dd=1;function e(a){return typeof a>"u"||a===null}f(e,"isNothing");function t(a){return typeof a=="object"&&a!==null}f(t,"isObject");function r(a){return Array.isArray(a)?a:e(a)?[]:[a]}f(r,"toArray");function i(a,n){if(n){const h=Object.keys(n);for(let c=0,l=h.length;c<l;c+=1){const d=h[c];a[d]=n[d]}}return a}f(i,"extend");function o(a,n){let h="";for(let c=0;c<n;c+=1)h+=a;return h}f(o,"repeat");function s(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return f(s,"isNegativeZero"),Dr.isNothing=e,Dr.isObject=t,Dr.toArray=r,Dr.repeat=o,Dr.isNegativeZero=s,Dr.extend=i,Dr}f(io,"requireCommon");var tn,Pd;function oo(){if(Pd)return tn;Pd=1;function e(r,i){let o="";const s=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(o+='in "'+r.mark.name+'" '),o+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(o+=` 271 272`+r.mark.snippet),s+" "+o):s}f(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return f(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=f(function(i){return this.name+": "+e(this,i)},"toString"),tn=t,tn}f(oo,"requireException");var en,Id;function $m(){if(Id)return en;Id=1;const e=io();function t(o,s,a,n,h){let c="",l="";const d=Math.floor(h/2)-1;return n-s>d&&(c=" ... ",s=n-d+c.length),a-n>d&&(l=" ...",a=n+d-l.length),{str:c+o.slice(s,a).replace(/\t/g,"â")+l,pos:n-s+c.length}}f(t,"getLine");function r(o,s){return e.repeat(" ",s-o.length)+o}f(r,"padStart");function i(o,s){if(s=Object.create(s||null),!o.buffer)return null;s.maxLength||(s.maxLength=79),typeof s.indent!="number"&&(s.indent=1),typeof s.linesBefore!="number"&&(s.linesBefore=3),typeof s.linesAfter!="number"&&(s.linesAfter=2);const a=/\r?\n|\r|\0/g,n=[0],h=[];let c,l=-1;for(;c=a.exec(o.buffer);)h.push(c.index),n.push(c.index+c[0].length),o.position<=c.index&&l<0&&(l=n.length-2);l<0&&(l=n.length-1);let d="";const u=Math.min(o.line+s.linesAfter,h.length).toString().length,p=s.maxLength-(s.indent+u+3);for(let m=1;m<=s.linesBefore&&!(l-m<0);m++){const x=t(o.buffer,n[l-m],h[l-m],o.position-(n[l]-n[l-m]),p);d=e.repeat(" ",s.indent)+r((o.line-m+1).toString(),u)+" | "+x.str+` 273`+d}const y=t(o.buffer,n[l],h[l],o.position,p);d+=e.repeat(" ",s.indent)+r((o.line+1).toString(),u)+" | "+y.str+` 274`,d+=e.repeat("-",s.indent+u+3+y.pos)+`^ 275`;for(let m=1;m<=s.linesAfter&&!(l+m>=h.length);m++){const x=t(o.buffer,n[l+m],h[l+m],o.position-(n[l]-n[l+m]),p);d+=e.repeat(" ",s.indent)+r((o.line+m+1).toString(),u)+" | "+x.str+` 276`}return d.replace(/\n$/,"")}return f(i,"makeSnippet"),en=i,en}f($m,"requireSnippet");var rn,Rd;function Ce(){if(Rd)return rn;Rd=1;const e=oo(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(s){const a={};return s!==null&&Object.keys(s).forEach(function(n){s[n].forEach(function(h){a[String(h)]=n})}),a}f(i,"compileStyleAliases");function o(s,a){if(a=a||{},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e('Unknown option "'+n+'" is met in definition of "'+s+'" YAML type.')}),this.options=a,this.tag=s,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(n){return n},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}return f(o,"Type2"),rn=o,rn}f(Ce,"requireType");var on,Nd;function nh(){if(Nd)return on;Nd=1;const e=oo(),t=Ce();function r(s,a){const n=[];
vendor: 5,521 bytes, line 276
276return s[a].forEach(function(h){let c=n.length;n.forEach(function(l,d){l.tag===h.tag&&l.kind===h.kind&&l.multi===h.multi&&(c=d)}),n[c]=h}),n}f(r,"compileList");function i(){const s={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function a(n){n.multi?(s.multi[n.kind].push(n),s.multi.fallback.push(n)):s[n.kind][n.tag]=s.fallback[n.tag]=n}f(a,"collectType");for(let n=0,h=arguments.length;n<h;n+=1)arguments[n].forEach(a);return s}f(i,"compileMap");function o(s){return this.extend(s)}return f(o,"Schema2"),o.prototype.extend=f(function(a){let n=[],h=[];if(a instanceof t)h.push(a);else if(Array.isArray(a))h=h.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(n=n.concat(a.implicit)),a.explicit&&(h=h.concat(a.explicit));else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(l){if(!(l instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),h.forEach(function(l){if(!(l instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const c=Object.create(o.prototype);return c.implicit=(this.implicit||[]).concat(n),c.explicit=(this.explicit||[]).concat(h),c.compiledImplicit=r(c,"implicit"),c.compiledExplicit=r(c,"explicit"),c.compiledTypeMap=i(c.compiledImplicit,c.compiledExplicit),c},"extend"),on=o,on}f(nh,"requireSchema");var sn,zd;function lh(){if(zd)return sn;zd=1;const e=Ce();return sn=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:f(function(t){return t!==null?t:""},"construct")}),sn}f(lh,"requireStr");var an,qd;function hh(){if(qd)return an;qd=1;const e=Ce();return an=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:f(function(t){return t!==null?t:[]},"construct")}),an}f(hh,"requireSeq");var nn,Wd;function ch(){if(Wd)return nn;Wd=1;const e=Ce();return nn=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:f(function(t){return t!==null?t:{}},"construct")}),nn}f(ch,"requireMap");var ln,Hd;function dh(){if(Hd)return ln;Hd=1;const e=nh();return ln=new e({explicit:[lh(),hh(),ch()]}),ln}f(dh,"requireFailsafe");var hn,jd;function uh(){if(jd)return hn;jd=1;const e=Ce();function t(o){if(o===null)return!0;const s=o.length;return s===1&&o==="~"||s===4&&(o==="null"||o==="Null"||o==="NULL")}f(t,"resolveYamlNull");function r(){return null}f(r,"constructYamlNull");function i(o){return o===null}return f(i,"isNull"),hn=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{canonical:f(function(){return"~"},"canonical"),lowercase:f(function(){return"null"},"lowercase"),uppercase:f(function(){return"NULL"},"uppercase"),camelcase:f(function(){return"Null"},"camelcase"),empty:f(function(){return""},"empty")},defaultStyle:"lowercase"}),hn}f(uh,"require_null");var cn,Yd;function ph(){if(Yd)return cn;Yd=1;const e=Ce();function t(o){if(o===null)return!1;const s=o.length;return s===4&&(o==="true"||o==="True"||o==="TRUE")||s===5&&(o==="false"||o==="False"||o==="FALSE")}f(t,"resolveYamlBoolean");function r(o){return o==="true"||o==="True"||o==="TRUE"}f(r,"constructYamlBoolean");function i(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return f(i,"isBoolean"),cn=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{lowercase:f(function(o){return o?"true":"false"},"lowercase"),uppercase:f(function(o){return o?"TRUE":"FALSE"},"uppercase"),camelcase:f(function(o){return o?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),cn}f(ph,"requireBool");var dn,Ud;function fh(){if(Ud)return dn;Ud=1;const e=io(),t=Ce();function r(c){return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}f(r,"isHexCode");function i(c){return c>=48&&c<=55}f(i,"isOctCode");function o(c){return c>=48&&c<=57}f(o,"isDecCode");function s(c){if(c===null)return!1;const l=c.length;let d=0,u=!1;if(!l)return!1;let p=c[d];if((p==="-"||p==="+")&&(p=c[++d]),p==="0"){if(d+1===l)return!0;if(p=c[++d],p==="b"){for(d++;d<l;d++){if(p=c[d],p!=="0"&&p!=="1")return!1;u=!0}return u&&isFinite(a(c))}if(p==="x"){for(d++;d<l;d++){if(!r(c.charCodeAt(d)))return!1;u=!0}return u&&isFinite(a(c))}if(p==="o"){for(d++;d<l;d++){if(!i(c.charCodeAt(d)))return!1;u=!0}return u&&isFinite(a(c))}}for(;d<l;d++){if(!o(c.charCodeAt(d)))return!1;u=!0}return u?isFinite(a(c)):!1}f(s,"resolveYamlInteger");function a(c){let l=c,d=1,u=l[0];if((u==="-"||u==="+")&&(u==="-"&&(d=-1),l=l.slice(1),u=l[0]),l==="0")return 0;if(u==="0"){if(l[1]==="b")return d*parseInt(l.slice(2),2);if(l[1]==="x")return d*parseInt(l.slice(2),16);if(l[1]==="o")return d*parseInt(l.slice(2),8)}return d*parseInt(l,10)}f(a,"parseYamlInteger");function n(c){return a(c)}f(n,"constructYamlInteger");function h(c){return Object.prototype.toString.call(c)==="[object Number]"&&c%1===0&&!e.isNegativeZero(c)}return f(h,"isInteger"),dn=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:s,construct:n,predicate:h,represent:{binary:f(function(c){return c>=0?"0b"+c.toString(2):"-0b"+c.toString(2).slice(1)},"binary"),octal:f(function(c){return c>=0?"0o"+c.toString(8):"-0o"+c.toString(8).slice(1)}
276,"octal"),decimal:f(function(c){return c.toString(10)},"decimal"),hexadecimal:f(function(c){return c>=0?"0x"+c.toString(16).toUpperCase():"-0x"+c.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),dn}f(fh,"requireInt");var un,Gd;function gh(){if(Gd)return un;Gd=1;const e=io(),t=Ce(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(c){return c===null||!r.test(c)?!1:isFinite(parseFloat(c,10))?!0:i.test(c)}f(o,"resolveYamlFloat");function s(c){let l=c.toLowerCase();const d=l[0]==="-"?-1:1;return"+-".indexOf(l[0])>=0&&(l=l.slice(1)),l===".inf"?d===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:l===".nan"?NaN:d*parseFloat(l,10)}f(s,"constructYamlFloat");const a=/^[-+]?[0-9]+e/;function n(c,l){if(isNaN(c))switch(l){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===c)switch(l){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===c)switch(l){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(c))return"-0.0";const d=c.toString(10);return a.test(d)?d.replace("e",".e"):d}f(n,"representYamlFloat");function h(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return f(h,"isFloat"),un=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:s,predicate:h,represent:n,defaultStyle:"lowercase"}),un}f(gh,"requireFloat");var pn,Vd;function mh(){return Vd||(Vd=1,pn=dh().extend({implicit:[uh(),ph(),fh(),gh()]})),pn}f(mh,"requireJson");var fn,Xd;function yh(){return Xd||(Xd=1,fn=mh()),fn}f(yh,"requireCore");var gn,Zd;
276function xh(){if(Zd)return gn;Zd=1;const e=Ce(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function i(a){return a===null?!1:t.exec(a)!==null||r.exec(a)!==null}f(i,"resolveYamlTimestamp");function o(a){let n=0,h=null,c=t.exec(a);if(c===null&&(c=r.exec(a)),c===null)throw new Error("Date resolve error");const l=+c[1],d=+c[2]-1,u=+c[3];if(!c[4])return new Date(Date.UTC(l,d,u));const p=+c[4],y=+c[5],m=+c[6];if(c[7]){for(n=c[7].slice(0,3);n.length<3;)n+="0";n=+n}if(c[9]){const C=+c[10],k=+(c[11]||0);h=(C*60+k)*6e4,c[9]==="-"&&(h=-h)}const x=new Date(Date.UTC(l,d,u,p,y,m,n));return h&&x.setTime(x.getTime()-h),x}f(o,"constructYamlTimestamp");function s(a){return a.toISOString()}return f(s,"representYamlTimestamp"),gn=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:o,instanceOf:Date,represent:s}),gn}f(xh,"requireTimestamp");var mn,Kd;function Ch(){if(Kd)return mn;Kd=1;const e=Ce();function t(r){return r==="<<"||r===null}return f(t,"resolveYamlMerge"),mn=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),mn}f(Ch,"requireMerge");var yn,Qd;function bh(){if(Qd)return yn;Qd=1;const e=Ce(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 277\r`;function r(a){if(a===null)return!1;let n=0;const h=a.length,c=t;for(let l=0;l<h;l++){const d=c.indexOf(a.charAt(l));if(!(d>64)){if(d<0)return!1;n+=6}}return n%8===0}f(r,"resolveYamlBinary");function i(a){const n=a.replace(/[\r\n=]/g,""),h=n.length,c=t;let l=0;const d=[];for(let p=0;p<h;p++)p%4===0&&p&&(d.push(l>>16&255),d.push(l>>8&255),d.push(l&255)),l=l<<6|c.indexOf(n.charAt(p));const u=h%4*6;return u===0?(d.push(l>>16&255),d.push(l>>8&255),d.push(l&255)):u===18?(d.push(l>>10&255),d.push(l>>2&255)):u===12&&d.push(l>>4&255),new Uint8Array(d)}f(i,"constructYamlBinary");function o(a){let n="",h=0;const c=a.length,l=t;for(let u=0;u<c;u++)u%3===0&&u&&(n+=l[h>>18&63],n+=l[h>>12&63],n+=l[h>>6&63],n+=l[h&63]),h=(h<<8)+a[u];const d=c%3;return d===0?(n+=l[h>>18&63],n+=l[h>>12&63],n+=l[h>>6&63],n+=l[h&63]):d===2?(n+=l[h>>10&63],n+=l[h>>4&63],n+=l[h<<2&63],n+=l[64]):d===1&&(n+=l[h>>2&63],n+=l[h<<4&63],n+=l[64],n+=l[64]),n}f(o,"representYamlBinary");function s(a){return Object.prototype.toString.call(a)==="[object Uint8Array]"}return f(s,"isBinary"),yn=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:s,represent:o}),yn}f(bh,"requireBinary");var xn,Jd;function kh(){if(Jd)return xn;Jd=1;const e=Ce(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(s){if(s===null)return!0;const a=[],n=s;for(let h=0,c=n.length;h<c;h+=1){const l=n[h];let d=!1;if(r.call(l)!=="[object Object]")return!1;let u;for(u in l)if(t.call(l,u))if(!d)d=!0;else return!1;if(!d)return!1;if(a.indexOf(u)===-1)a.push(u);else return!1}return!0}f(i,"resolveYamlOmap");function o(s){return s!==null?s:[]}return f(o,"constructYamlOmap"),xn=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:o}),xn}f(kh,"requireOmap");var Cn,tu;function wh(){if(tu)return Cn;tu=1;const e=Ce(),t=Object.prototype.toString;function r(o){if(o===null)return!0;const s=o,a=new Array(s.length);for(let n=0,h=s.length;n<h;n+=1){const c=s[n];if(t.call(c)!=="[object Object]")return!1;const l=Object.keys(c);if(l.length!==1)return!1;a[n]=[l[0],c[l[0]]]}return!0}f(r,"resolveYamlPairs");function i(o){if(o===null)return[];const s=o,a=new Array(s.length);for(let n=0,h=s.length;n<h;n+=1){const c=s[n],l=Object.keys(c);a[n]=[l[0],c[l[0]]]}return a}return f(i,"constructYamlPairs"),Cn=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i}),Cn}f(wh,"requirePairs");var bn,eu;function _h(){if(eu)return bn;eu=1;const e=Ce(),t=Object.prototype.hasOwnProperty;function r(o){if(o===null)return!0;const s=o;for(const a in s)if(t.call(s,a)&&s[a]!==null)return!1;return!0}f(r,"resolveYamlSet");function i(o){return o!==null?o:{}}return f(i,"constructYamlSet"),bn=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i}),bn}f(_h,"requireSet");var kn,ru;function Ca(){return ru||(ru=1,kn=yh().extend({implicit:[xh(),Ch()],explicit:[bh(),kh(),wh(),_h()]})),kn}f(Ca,"require_default");var iu;function Dm(){if(iu)return ys;iu=1;const e=io(),t=oo(),r=$m(),i=Ca(),o=Object.prototype.hasOwnProperty,s=1,a=2,n=3,h=4,c=1,l=2,d=3,u=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/[\x85\u2028\u2029]/,y=/[,\[\]{}]/,m=/^(?:!|!!|![0-9A-Za-z-]+!)$/,x=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function C(g){return Object.prototype.toString.call(g)}f(C,"_class");function k(g){return g===10||g===13}f(k,"isEol");function _(g){return g===9||g===32}f(_,"isWhiteSpace");function T(g){return g===9||g===32||g===10||g===13}f(T,"isWsOrEol");function v(g){return g===44||g===91||g===93||g===123||g===125}f(v,"isFlowIndicator");function A(g){if(g>=48&&g<=57)return g-48;const E=g|32;return E>=97&&E<=102?E-97+10:-1}f(A,"fromHexCode");function B(g){return g===120?2:g===117?4:g===85?8:0}f(B,"escapedHexLen");function D(g){return g>=48&&g<=57?g-48:-1}f(D,"fromDecimalCode");function j(g){switch(g){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return` 278`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"Â ";case 95:return"Â ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}f(j,"simpleEscapeSequence");function U(g){return g<=65535?String.fromCharCode(g):String.fromCharCode((g-65536>>10)+55296,(g-65536&1023)+56320)}f(U,"charFromCodepoint");function H(g,E,q){E==="__proto__"?Object.defineProperty(g,E,{configurable:!0,enumerable:!0,writable:!0,value:q}):g[E]=q}f(H,"setProperty");const ot=new Array(256),z=new Array(256);for(let g=0;g<256;g++)ot[g]=j(g)?1:0,z[g]=j(g);function W(g,E){this.input=g,this.filename=E.filename||null,this.schema=E.schema||i,this.onWarning=E.onWarning||null,this.legacy=E.legacy||!1,this.json=E.json||!1,this.listener=E.listener||null,this.maxDepth=typeof E.maxDepth=="number"?E.maxDepth:100,this.maxTotalMergeKeys=typeof E.maxTotalMergeKeys=="number"?E.maxTotalMergeKeys:1e4,this.impl
278icitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=g.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}f(W,"State");function J(g,E){const q={name:g.filename,buffer:g.input.slice(0,-1),position:g.position,line:g.line,column:g.position-g.lineStart};return q.snippet=r(q),new t(E,q)}f(J,"generateError");function P(g,E){throw J(g,E)}f(P,"throwError");function it(g,E){g.onWarning&&g.onWarning.call(null,J(g,E))}f(it,"throwWarning");function et(g,E,q){const G=g.anchorMapTransactions;if(G.length!==0){const N=G[G.length-1];o.call(N,E)||(N[E]={existed:o.call(g.anchorMap,E),value:g.anchorMap[E]})}g.anchorMap[E]=q}f(et,"storeAnchor");function bt(g){g.anchorMapTransactions.push(Object.create(null))}f(bt,"beginAnchorTransaction");function gt(g){const E=g.anchorMapTransactions.pop(),q=g.anchorMapTransactions;if(q.length===0)return;const G=q[q.length-1],N=Object.keys(E);for(let Q=0,w=N.length;Q<w;Q+=1){const O=N[Q];o.call(G,O)||(G[O]=E[O])}}f(gt,"commitAnchorTransaction");function Nt(g){const E=g.anchorMapTransactions.pop(),q=Object.keys(E);for(let G=q.length-1;G>=0;G-=1){const N=E[q[G]];N.existed?g.anchorMap[q[G]]=N.value:delete g.anchorMap[q[G]]}}f(Nt,"rollbackAnchorTransaction");function Gt(g){return{position:g.position,line:g.line,lineStart:g.lineStart,lineIndent:g.lineIndent,firstTabInLine:g.firstTabInLine,tag:g.tag,anchor:g.anchor,kind:g.kind,result:g.result}}f(Gt,"snapshotState");function Ht(g,E){g.position=E.position,g.line=E.line,g.lineStart=E.lineStart,g.lineIndent=E.lineIndent,g.firstTabInLine=E.firstTabInLine,g.tag=E.tag,g.anchor=E.anchor,g.kind=E.kind,g.result=E.result}f(Ht,"restoreState");const _t={YAML:f(function(E,q,G){E.version!==null&&P(E,"duplication of %YAML directive"),G.length!==1&&P(E,"YAML directive accepts exactly one argument");const N=/^([0-9]+)\.([0-9]+)$/.exec(G[0]);N===null&&P(E,"ill-formed argument of the YAML directive");const Q=parseInt(N[1],10),w=parseInt(N[2],10);Q!==1&&P(E,"unacceptable YAML version of the document"),E.version=G[0],E.checkLineBreaks=w<2,w!==1&&w!==2&&it(E,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:f(function(E,q,G){let N;G.length!==2&&P(E,"TAG directive accepts exactly two arguments");const Q=G[0];N=G[1],m.test(Q)||P(E,"ill-formed tag handle (first argument) of the TAG directive"),o.call(E.tagMap,Q)&&P(E,'there is a previously declared suffix for "'+Q+'" tag handle'),x.test(N)||P(E,"ill-formed tag prefix (second argument) of the TAG directive");try{N=decodeURIComponent(N)}catch{P(E,"tag prefix is malformed: "+N)}E.tagMap[Q]=N},"handleTagDirective")};function It(g,E,q,G){if(E<q){const N=g.input.slice(E,q);if(G)for(let Q=0,w=N.length;Q<w;Q+=1){const O=N.charCodeAt(Q);O===9||O>=32&&O<=1114111||P(g,"expected valid JSON character")}else u.test(N)&&P(g,"the stream contains non-printable characters");g.result+=N}}f(It,"captureSegment");function Ct(g,E,q,G){e.isObject(q)||P(g,"cannot merge mappings; the provided source object is unacceptable");const N=Object.keys(q);for(let Q=0,w=N.length;Q<w;Q+=1){const O=N[Q];g.maxTotalMergeKeys!==-1&&++g.totalMergeKeys>g.maxTotalMergeKeys&&P(g,"merge keys exceeded maxTotalMergeKeys ("+g.maxTotalMergeKeys+")"),o.call(E,O)||(H(E,O,q[O]),G[O]=!0)}}f(Ct,"mergeMappings");function Lt(g,E,q,G,N,Q,w,O,Z){if(Array.isArray(N)){N=Array.prototype.slice.call(N);for(let Y=0,V=N.length;Y<V;Y+=1)Array.isArray(N[Y])&&P(g,"nested arrays are not supported inside keys"),typeof N=="object"&&C(N[Y])==="[object Object]"&&(N[Y]="[object Object]")}if(typeof N=="object"&&C(N)==="[object Object]"&&(N="[object Object]"),N=String(N),E===null&&(E={}),G==="tag:yaml.org,2002:merge")if(Array.isArray(Q))for(let Y=0,V=Q.length;Y<V;Y+=1)Ct(g,E,Q[Y],q);else Ct(g,E,Q,q);else!g.json&&!o.call(q,N)&&o.call(E,N)&&(g.line=w||g.line,g.lineStart=O||g.lineStart,g.position=Z||g.position,P(g,"duplicated mapping key")),H(E,N,Q),delete q[N];return E}f(Lt,"storeMappingPair");function qt(g){const E=g.input.charCodeAt(g.position);E===10?g.position++:E===13?(g.position++,g.input.charCodeAt(g.position)===10&&g.position++):P(g,"a line break is expected"),g.line+=1,g.lineStart=g.position,g.firstTabInLine=-1}
vendor: 20,776 bytes, lines 278-300
278f(qt,"readLineBreak");function At(g,E,q){let G=0,N=g.input.charCodeAt(g.position);for(;N!==0;){for(;_(N);)N===9&&g.firstTabInLine===-1&&(g.firstTabInLine=g.position),N=g.input.charCodeAt(++g.position);if(E&&N===35)do N=g.input.charCodeAt(++g.position);while(N!==10&&N!==13&&N!==0);if(k(N))for(qt(g),N=g.input.charCodeAt(g.position),G++,g.lineIndent=0;N===32;)g.lineIndent++,N=g.input.charCodeAt(++g.position);else break}return q!==-1&&G!==0&&g.lineIndent<q&&it(g,"deficient indentation"),G}f(At,"skipSeparationSpace");function ne(g){let E=g.position,q=g.input.charCodeAt(E);return!!((q===45||q===46)&&q===g.input.charCodeAt(E+1)&&q===g.input.charCodeAt(E+2)&&(E+=3,q=g.input.charCodeAt(E),q===0||T(q)))}f(ne,"testDocumentSeparator");function Zt(g,E){E===1?g.result+=" ":E>1&&(g.result+=e.repeat(` 279`,E-1))}f(Zt,"writeFoldedLines");function He(g,E,q){let G,N,Q,w,O,Z;const Y=g.kind,V=g.result;let K=g.input.charCodeAt(g.position);if(T(K)||v(K)||K===35||K===38||K===42||K===33||K===124||K===62||K===39||K===34||K===37||K===64||K===96)return!1;if(K===63||K===45){const X=g.input.charCodeAt(g.position+1);if(T(X)||q&&v(X))return!1}for(g.kind="scalar",g.result="",G=N=g.position,Q=!1;K!==0;){if(K===58){const X=g.input.charCodeAt(g.position+1);if(T(X)||q&&v(X))break}else if(K===35){const X=g.input.charCodeAt(g.position-1);if(T(X))break}else{if(g.position===g.lineStart&&ne(g)||q&&v(K))break;if(k(K))if(w=g.line,O=g.lineStart,Z=g.lineIndent,At(g,!1,-1),g.lineIndent>=E){Q=!0,K=g.input.charCodeAt(g.position);continue}else{g.position=N,g.line=w,g.lineStart=O,g.lineIndent=Z;break}}Q&&(It(g,G,N,!1),Zt(g,g.line-w),G=N=g.position,Q=!1),_(K)||(N=g.position+1),K=g.input.charCodeAt(++g.position)}return It(g,G,N,!1),g.result?!0:(g.kind=Y,g.result=V,!1)}f(He,"readPlainScalar");function mr(g,E){let q,G,N=g.input.charCodeAt(g.position);if(N!==39)return!1;for(g.kind="scalar",g.result="",g.position++,q=G=g.position;(N=g.input.charCodeAt(g.position))!==0;)if(N===39)if(It(g,q,g.position,!0),N=g.input.charCodeAt(++g.position),N===39)q=g.position,g.position++,G=g.position;else return!0;else k(N)?(It(g,q,G,!0),Zt(g,At(g,!1,E)),q=G=g.position):g.position===g.lineStart&&ne(g)?P(g,"unexpected end of the document within a single quoted scalar"):(g.position++,_(N)||(G=g.position));P(g,"unexpected end of the stream within a single quoted scalar")}f(mr,"readSingleQuotedScalar");function $t(g,E){let q,G,N,Q=g.input.charCodeAt(g.position);if(Q!==34)return!1;for(g.kind="scalar",g.result="",g.position++,q=G=g.position;(Q=g.input.charCodeAt(g.position))!==0;){if(Q===34)return It(g,q,g.position,!0),g.position++,!0;if(Q===92){if(It(g,q,g.position,!0),Q=g.input.charCodeAt(++g.position),k(Q))At(g,!1,E);else if(Q<256&&ot[Q])g.result+=z[Q],g.position++;else if((N=B(Q))>0){let w=N,O=0;for(;w>0;w--)Q=g.input.charCodeAt(++g.position),(N=A(Q))>=0?O=(O<<4)+N:P(g,"expected hexadecimal character");g.result+=U(O),g.position++}else P(g,"unknown escape sequence");q=G=g.position}else k(Q)?(It(g,q,G,!0),Zt(g,At(g,!1,E)),q=G=g.position):g.position===g.lineStart&&ne(g)?P(g,"unexpected end of the document within a double quoted scalar"):(g.position++,_(Q)||(G=g.position))}P(g,"unexpected end of the stream within a double quoted scalar")}f($t,"readDoubleQuotedScalar");function yr(g,E){let q=!0,G,N,Q;const w=g.tag;let O;const Z=g.anchor;let Y,V,K,X;const ht=Object.create(null);let nt,mt,kt,Et=g.input.charCodeAt(g.position);if(Et===91)Y=93,X=!1,O=[];else if(Et===123)Y=125,X=!0,O={};else return!1;for(g.anchor!==null&&et(g,g.anchor,O),Et=g.input.charCodeAt(++g.position);Et!==0;){if(At(g,!0,E),Et=g.input.charCodeAt(g.position),Et===Y)return g.position++,g.tag=w,g.anchor=Z,g.kind=X?"mapping":"sequence",g.result=O,!0;if(q?Et===44&&P(g,"expected the node content, but found ','"):P(g,"missed comma between flow collection entries"),mt=nt=kt=null,V=K=!1,Et===63){const Ut=g.input.charCodeAt(g.position+1);T(Ut)&&(V=K=!0,g.position++,At(g,!0,E))}G=g.line,N=g.lineStart,Q=g.position,ke(g,E,s,!1,!0),mt=g.tag,nt=g.result,At(g,!0,E),Et=g.input.charCodeAt(g.position),(K||g.line===G)&&Et===58&&(V=!0,Et=g.input.charCodeAt(++g.position),At(g,!0,E),ke(g,E,s,!1,!0),kt=g.result),X?Lt(g,O,ht,mt,nt,kt,G,N,Q):V?O.push(Lt(g,null,ht,mt,nt,kt,G,N,Q)):O.push(nt),At(g,!0,E),Et=g.input.charCodeAt(g.position),Et===44?(q=!0,Et=g.input.charCodeAt(++g.position)):q=!1}P(g,"unexpected end of the stream within a flow collection")}f(yr,"readFlowCollection");function jt(g,E){let q,G=c,N=!1,Q=!1,w=E,O=0,Z=!1,Y,V=g.input.charCodeAt(g.position);if(V===124)q=!1;else if(V===62)q=!0;else return!1;for(g.kind="scalar",g.result="";V!==0;)if(V=g.input.charCodeAt(++g.position),V===43||V===45)c===G?G=V===43?d:l:P(g,"repeat of a chomping mode identifier");else if((Y=D(V))>=0)Y===0?P(g,"bad explicit indentation width of a block scalar; it cannot be less than one"):Q?P(g,"repeat of an indentation width identifier"):(w=E+Y-1,Q=!0);else break;if(_(V)){do V=g.input.charCodeAt(++g.position);while(_(V));if(V===35)do V=g.input.charCodeAt(++g.position);while(!k(V)&&V!==0)}for(;V!==0;){for(qt(g),g.lineIndent=0,V=g.input.charCodeAt(g.position);(!Q||g.lineIndent<w)&&V===32;)g.lineIndent++,V=g.input.charCodeAt(++g.position);if(!Q&&g.lineIndent>w&&(w=g.lineIndent),k(V)){O++;continue}if(!Q&&w===0&&P(g,"missing indentation for block scalar"),g.lineIndent<w){G===d?g.result+=e.repeat(` 280`,N?1+O:O):G===c&&N&&(g.result+=` 281`);break}q?_(V)?(Z=!0,g.result+=e.repeat(` 282`,N?1+O:O)):Z?(Z=!1,g.result+=e.repeat(` 283`,O+1)):O===0?N&&(g.result+=" "):g.result+=e.repeat(` 284`,O):g.result+=e.repeat(` 285`,N?1+O:O),N=!0,Q=!0,O=0;const K=g.position;for(;!k(V)&&V!==0;)V=g.input.charCodeAt(++g.position);It(g,K,g.position,!1)}return!0}f(jt,"readBlockScalar");function Te(g,E){const q=g.tag,G=g.anchor,N=[];let Q=!1;if(g.firstTabInLine!==-1)return!1;g.anchor!==null&&et(g,g.anchor,N);let w=g.input.charCodeAt(g.position);for(;w!==0&&(g.firstTabInLine!==-1&&(g.position=g.firstTabInLine,P(g,"tab characters must not be used in indentation")),w===45);){const O=g.input.charCodeAt(g.position+1);if(!T(O))break;if(Q=!0,g.position++,At(g,!0,-1)&&g.lineIndent<=E){N.push(null),w=g.input.charCodeAt(g.position);continue}const Z=g.line;if(ke(g,E,n,!1,!0),N.push(g.result),At(g,!0,-1),w=g.input.charCodeAt(g.position),(g.line===Z||g.lineIndent>E)&&w!==0)P(g,"bad indentation of a sequence entry");else if(g.lineIndent<E)break}return Q?(g.tag=q,g.anchor=G,g.kind="sequence",g.result=N,!0):!1}f(Te,"readBlockSequence");function ce(g,E,q){let G,N,Q,w;const O=g.tag,Z=g.anchor,Y={},V=Object.create(null);let K=null,X=null,ht=null,nt=!1,mt=!1;if(g.firstTabInLine!==-1)return!1;g.anchor!==null&&et(g,g.anchor,Y);let kt=g.input.charCodeAt(g.position);for(;kt!==0;){!nt&&g.firstTabInLine!==-1&&(g.position=g.firstTabInLine,P(g,"tab characters must not be used in indentation"));const Et=g.input.charCodeAt(g.position+1),Ut=g.line;if((kt===63||kt===58)&&T(Et))kt===63?(nt&&(Lt(g,Y,V,K,X,null,N,Q,w),K=X=ht=null),mt=!0,nt=!0,G=!0):nt?(nt=!1,G=!0):P(g,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),g.position+=1,kt=Et;else{if(N=g.line,Q=g.lineStart,w=g.position,!ke(g,q,a,!1,!0))break;if(g.line===Ut){for(kt=g.input.charCodeAt(g.position);_(kt);)kt=g.input.charCodeAt(++g.position);if(kt===58)kt=g.input.charCodeAt(++g.position),T(kt)||P(g,"a whitespace character is expected after the key-value separator within a block mapping"),nt&&(Lt(g,Y,V,K,X,null,N,Q,w),K=X=ht=null),mt=!0,nt=!1,G=!1,K=g.tag,X=g.result;else if(mt)P(g,"can not read an implicit mapping pair; a colon is missed");else return g.tag=O,g.anchor=Z,!0}else if(mt)P(g,"can not read a block mapping entry; a multiline key may not be an implicit key");else return g.tag=O,g.anchor=Z,!0}if((g.line===Ut||g.lineIndent>E)&&(nt&&(N=g.line,Q=g.lineStart,w=g.position),ke(g,E,h,!0,G)&&(nt?X=g.result:ht=g.result),nt||(Lt(g,Y,V,K,X,ht,N,Q,w),K=X=ht=null),At(g,!0,-1),kt=g.input.charCodeAt(g.position)),(g.line===Ut||g.lineIndent>E)&&kt!==0)P(g,"bad indentation of a mapping entry");else if(g.lineIndent<E)break}return nt&&Lt(g,Y,V,K,X,null,N,Q,w),mt&&(g.tag=O,g.anchor=Z,g.kind="mapping",g.result=Y),mt}f(ce,"readBlockMapping");function je(g){let E=!1,q=!1,G,N,Q=g.input.charCodeAt(g.position);if(Q!==33)return!1;g.tag!==null&&P(g,"duplication of a tag property"),Q=g.input.charCodeAt(++g.position),Q===60?(E=!0,Q=g.input.charCodeAt(++g.position)):Q===33?(q=!0,G="!!",Q=g.input.charCodeAt(++g.position)):G="!";let w=g.position;if(E){do Q=g.input.charCodeAt(++g.position);while(Q!==0&&Q!==62);g.position<g.length?(N=g.input.slice(w,g.position),Q=g.input.charCodeAt(++g.position)):P(g,"unexpected end of the stream within a verbatim tag")}else{for(;Q!==0&&!T(Q);)Q===33&&(q?P(g,"tag suffix cannot contain exclamation marks"):(G=g.input.slice(w-1,g.position+1),m.test(G)||P(g,"named tag handle cannot contain such characters"),q=!0,w=g.position+1)),Q=g.input.charCodeAt(++g.position);N=g.input.slice(w,g.position),y.test(N)&&P(g,"tag suffix cannot contain flow indicator characters")}N&&!x.test(N)&&P(g,"tag name cannot contain such characters: "+N);try{N=decodeURIComponent(N)}catch{P(g,"tag name is malformed: "+N)}return E?g.tag=N:o.call(g.tagMap,G)?g.tag=g.tagMap[G]+N:G==="!"?g.tag="!"+N:G==="!!"?g.tag="tag:yaml.org,2002:"+N:P(g,'undeclared tag handle "'+G+'"'),!0}f(je,"readTagProperty");function xr(g){let E=g.input.charCodeAt(g.position);if(E!==38)return!1;g.anchor!==null&&P(g,"duplication of an anchor property"),E=g.input.charCodeAt(++g.position);const q=g.position;for(;E!==0&&!T(E)&&!v(E);)E=g.input.charCodeAt(++g.position);return g.position===q&&P(g,"name of an anchor node must contain at least one character"),g.anchor=g.input.slice(q,g.position),!0}f(xr,"readAnchorProperty");function be(g){let E=g.input.charCodeAt(g.position);if(E!==42)return!1;E=g.input.charCodeAt(++g.position);const q=g.position;for(;E!==0&&!T(E)&&!v(E);)E=g.input.charCodeAt(++g.position);g.position===q&&P(g,"name of an alias node must contain at least one character");const G=g.input.slice(q,g.position);return o.call(g.anchorMap,G)||P(g,'unidentified alias "'+G+'"'),g.result=g.anchorMap[G],At(g,!0,-1),!0}f(be,"readAlias");function Lr(g,E,q,G){const N=Gt(g);return bt(g),Ht(g,E),g.tag=null,g.anchor=null,g.kind=null,g.result=null,ce(g,q,G)&&g.kind==="mapping"?(gt(g),!0):(Nt(g),Ht(g,N),!1)}f(Lr,"tryReadBlockMappingFromProperty");function ke(g,E,q,G,N){let Q,w,O=1,Z=!1,Y=!1,V=null,K,X,ht;g.depth>=g.maxDepth&&P(g,"nesting exceeded maxDepth ("+g.maxDepth+")"),g.depth+=1,g.listener!==null&&g.listener("open",g),g.tag=null,g.anchor=null,g.kind=null,g.result=null;const nt=Q=w=h===q||n===q;if(G&&At(g,!0,-1)&&(Z=!0,g.lineIndent>E?O=1:g.lineIndent===E?O=0:g.lineIndent<E&&(O=-1)),O===1)for(;;){const mt=g.input.charCodeAt(g.position),kt=Gt(g);if(Z&&(mt===33&&g.tag!==null||mt===38&&g.anchor!==null)||!je(g)&&!xr(g))break;V===null&&(V=kt),At(g,!0,-1)?(Z=!0,w=nt,g.lineIndent>E?O=1:g.lineIndent===E?O=0:g.lineIndent<E&&(O=-1)):w=!1}if(w&&(w=Z||N),O===1||h===q)if(s===q||a===q?X=E:X=E+1,ht=g.position-g.lineStart,O===1)if(w&&(Te(g,ht)||ce(g,ht,X))||yr(g,X))Y=!0;else{const mt=g.input.charCodeAt(g.position);V!==null&&nt&&!w&&mt!==124&&mt!==62&&Lr(g,V,V.position-V.lineStart,X)||Q&&jt(g,X)||mr(g,X)||$t(g,X)?Y=!0:be(g)?(Y=!0,(g.tag!==null||g.anchor!==null)&&P(g,"alias node should not have any properties")):He(g,X,s===q)&&(Y=!0,g.tag===null&&(g.tag="?")),g.anchor!==null&&et(g,g.anchor,g.result)}else O===0&&(Y=w&&Te(g,ht));if(g.tag===null)g.anchor!==null&&et(g,g.anchor,g.result);else if(g.tag==="?"){g.result!==null&&g.kind!=="scalar"&&P(g,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+g.kind+'"');for(let mt=0,kt=g.implicitTypes.length;mt<kt;mt+=1)if(K=g.implicitTypes[mt],K.resolve(g.result)){g.result=K.construct(g.result),g.tag=K.tag,g.anchor!==null&&et(g,g.anchor,g.result);break}}else if(g.tag!=="!"){if(o.call(g.typeMap[g.kind||"fallback"],g.tag))K=g.typeMap[g.kind||"fallback"][g.tag];else{K=null;const mt=g.typeMap.multi[g.kind||"fallback"];for(let kt=0,Et=mt.length;kt<Et;kt+=1)if(g.tag.slice(0,mt[kt].tag.length)===mt[kt].tag){K=mt[kt];break}}K||P(g,"unknown tag !<"+g.tag+">"),g.result!==null&&K.kind!==g.kind&&P(g,"unacceptable node kind for !<"+g.tag+'> tag; it should be "'+K.kind+'", not "'+g.kind+'"'),K.resolve(g.result,g.tag)?(g.result=K.construct(g.result,g.tag),g.anchor!==null&&et(g,g.anchor,g.result)):P(g,"cannot resolve a node with !<"+g.tag+"> explicit tag")}return g.listener!==null&&g.listener("close",g),g.depth-=1,g.tag!==null||g.anchor!==null||Y}f(ke,"composeNode");function Fr(g){const E=g.position;let q=!1,G;for(g.version=null,g.checkLineBreaks=g.legacy,g.tagMap=Object.create(null),g.anchorMap=Object.create(null);(G=g.input.charCodeAt(g.position))!==0&&(At(g,!0,-1),G=g.input.charCodeAt(g.position),!(g.lineIndent>0||G!==37));){q=!0,G=g.input.charCodeAt(++g.position);let N=g.position;for(;G!==0&&!T(G);)G=g.input.charCodeAt(++g.position);const Q=g.input.slice(N,g.position),w=[];for(Q.length<1&&P(g,"directive name must not be less than one character in length");G!==0;){for(;_(G);)G=g.input.charCodeAt(++g.position);if(G===35){do G=g.input.charCodeAt(++g.position);while(G!==0&&!k(G));break}if(k(G))break;for(N=g.position;G!==0&&!T(G);)G=g.input.charCodeAt(++g.position);w.push(g.input.slice(N,g.position))}G!==0&&qt(g),o.call(_t,Q)?_t[Q](g,Q,w):it(g,'unknown document directive "'+Q+'"')}if(At(g,!0,-1),g.lineIndent===0&&g.input.charCodeAt(g.position)===45&&g.input.charCodeAt(g.position+1)===45&&g.input.charCodeAt(g.position+2)===45?(g.position+=3,At(g,!0,-1)):q&&P(g,"directives end mark is expected"),ke(g,g.lineIndent-1,h,!1,!0),At(g,!0,-1),g.checkLineBreaks&&p.test(g.input.slice(E,g.position))&&it(g,"non-ASCII line breaks are interpreted as content"),g.documents.push(g.result),g.position===g.lineStart&&ne(g)){g.input.charCodeAt(g.position)===46&&(g.position+=3,At(g,!0,-1));return}g.position<g.length-1&&P(g,"end of the stream or a document separator is expected")}f(Fr,"readDocument");function Cr(g,E){g=String(g),E=E||{},g.length!==0&&(g.charCodeAt(g.length-1)!==10&&g.charCodeAt(g.length-1)!==13&&(g+=` 286`),g.charCodeAt(0)===65279&&(g=g.slice(1)));const q=new W(g,E),G=g.indexOf("\0");for(G!==-1&&(q.position=G,P(q,"null byte is not allowed in input")),q.input+="\0";q.input.charCodeAt(q.position)===32;)q.lineIndent+=1,q.position+=1;for(;q.position<q.length-1;)Fr(q);return q.documents}f(Cr,"loadDocuments");function we(g,E,q){E!==null&&typeof E=="object"&&typeof q>"u"&&(q=E,E=null);const G=Cr(g,q);if(typeof E!="function")return G;for(let N=0,Q=G.length;N<Q;N+=1)E(G[N])}f(we,"loadAll2");function Ae(g,E){const q=Cr(g,E);if(q.length!==0){if(q.length===1)return q[0];throw new t("expected a single document in the stream, but found more")}}return f(Ae,"load2"),ys.loadAll=we,ys.load=Ae,ys}f(Dm,"requireLoader");var wn={},ou;function Pm(){if(ou)return wn;ou=1;const e=io(),t=oo(),r=Ca(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=65279,a=9,n=10,h=13,c=32,l=33,d=34,u=35,p=37,y=38,m=39,x=42,C=44,k=45,_=58,T=61,v=62,A=63,B=64,D=91,j=93,U=96,H=123,ot=124,z=125,W={};W[0]="\\0",W[7]="\\a",W[8]="\\b",W[9]="\\t",W[10]="\\n",W[11]="\\v",W[12]="\\f",W[13]="\\r",W[27]="\\e",W[34]='\\"',W[92]="\\\\",W[133]="\\N",W[160]="\\_",W[8232]="\\L",W[8233]="\\P";const J=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],P=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function it(w,O){if(O===null)return{};const Z={},Y=Object.keys(O);for(let V=0,K=Y.length;V<K;V+=1){let X=Y[V],ht=String(O[X]);X.slice(0,2)==="!!"&&(X="tag:yaml.org,2002:"+X.slice(2));const nt=w.compiledTypeMap.fallback[X];nt&&o.call(nt.styleAliases,ht)&&(ht=nt.styleAliases[ht]),Z[X]=ht}return Z}f(it,"compileStyleMap");function et(w){let O,Z;const Y=w.toString(16).toUpperCase();if(w<=255)O="x",Z=2;else if(w<=65535)O="u",Z=4;else if(w<=4294967295)O="U",Z=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+O+e.repeat("0",Z-Y.length)+Y}f(et,"encodeHex");const bt=1,gt=2;function Nt(w){this.schema=w.schema||r,this.indent=Math.max(1,w.indent||2),this.noArrayIndent=w.noArrayIndent||!1,this.skipInvalid=w.skipInvalid||!1,this.flowLevel=e.isNothing(w.flowLevel)?-1:w.flowLevel,this.styleMap=it(this.schema,w.styles||null),this.sortKeys=w.sortKeys||!1,this.lineWidth=w.lineWidth||80,this.noRefs=w.noRefs||!1,this.noCompatMode=w.noCompatMode||!1,this.condenseFlow=w.condenseFlow||!1,this.quotingType=w.quotingType==='"'?gt:bt,this.forceQuotes=w.forceQuotes||!1,this.replacer=typeof w.replacer=="function"?w.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}f(Nt,"State");function Gt(w,O){const Z=e.repeat(" ",O);let Y=0,V="";const K=w.length;for(;Y<K;){let X;const ht=w.indexOf(` 287`,Y);ht===-1?(X=w.slice(Y),Y=K):(X=w.slice(Y,ht+1),Y=ht+1),X.length&&X!==` 288`&&(V+=Z),V+=X}return V}f(Gt,"indentString");function Ht(w,O){return` 289`+e.repeat(" ",w.indent*O)}f(Ht,"generateNextLine");function _t(w,O){for(let Z=0,Y=w.implicitTypes.length;Z<Y;Z+=1)if(w.implicitTypes[Z].resolve(O))return!0;return!1}f(_t,"testImplicitResolving");function It(w){return w===c||w===a}f(It,"isWhitespace");function Ct(w){return w>=32&&w<=126||w>=161&&w<=55295&&w!==8232&&w!==8233||w>=57344&&w<=65533&&w!==s||w>=65536&&w<=1114111}f(Ct,"isPrintable");function Lt(w){return Ct(w)&&w!==s&&w!==h&&w!==n}f(Lt,"isNsCharOrWhitespace");function qt(w,O,Z){const Y=Lt(w),V=Y&&!It(w);return(Z?Y:Y&&w!==C&&w!==D&&w!==j&&w!==H&&w!==z)&&w!==u&&!(O===_&&!V)||Lt(O)&&!It(O)&&w===u||O===_&&V}f(qt,"isPlainSafe");function At(w){return Ct(w)&&w!==s&&!It(w)&&w!==k&&w!==A&&w!==_&&w!==C&&w!==D&&w!==j&&w!==H&&w!==z&&w!==u&&w!==y&&w!==x&&w!==l&&w!==ot&&w!==T&&w!==v&&w!==m&&w!==d&&w!==p&&w!==B&&w!==U}f(At,"isPlainSafeFirst");function ne(w){return!It(w)&&w!==_}f(ne,"isPlainSafeLast");function Zt(w,O){const Z=w.charCodeAt(O);let Y;return Z>=55296&&Z<=56319&&O+1<w.length&&(Y=w.charCodeAt(O+1),Y>=56320&&Y<=57343)?(Z-55296)*1024+Y-56320+65536:Z}f(Zt,"codePointAt");function He(w){return/^\n* /.test(w)}f(He,"needIndentIndicator");const mr=1,$t=2,yr=3,jt=4,Te=5;function ce(w,O,Z,Y,V,K,X,ht){let nt,mt=0,kt=null,Et=!1,Ut=!1;const ao=Y!==-1;let tr=-1,er=At(Zt(w,0))&&ne(Zt(w,w.length-1));if(O||X)for(nt=0;nt<w.length;mt>=65536?nt+=2:nt++){if(mt=Zt(w,nt),!Ct(mt))return Te;er=er&&qt(mt,kt,ht),kt=mt}else{for(nt=0;nt<w.length;mt>=65536?nt+=2:nt++){if(mt=Zt(w,nt),mt===n)Et=!0,ao&&(Ut=Ut||nt-tr-1>Y&&w[tr+1]!==" ",tr=nt);else if(!Ct(mt))return Te;er=er&&qt(mt,kt,ht),kt=mt}Ut=Ut||ao&&nt-tr-1>Y&&w[tr+1]!==" "}return!Et&&!Ut?er&&!X&&!V(w)?mr:K===gt?Te:$t:Z>9&&He(w)?Te:X?K===gt?Te:$t:Ut?jt:yr}f(ce,"chooseScalarStyle");function je(w,O,Z,Y,V){w.dump=(function(){if(O.length===0)return w.quotingType===gt?'""':"''";if(!w.noCompatMode&&(J.indexOf(O)!==-1||P.test(O)))return w.quotingType===gt?'"'+O+'"':"'"+O+"'";const K=w.indent*Math.max(1,Z),X=w.lineWidth===-1?-1:Math.max(Math.min(w.lineWidth,40),w.lineWidth-K),ht=Y||w.flowLevel>-1&&Z>=w.flowLevel;function nt(mt){return _t(w,mt)}switch(f(nt,"testAmbiguity"),ce(O,ht,w.indent,X,nt,w.quotingType,w.forceQuotes&&!Y,V)){case mr:return O;case $t:return"'"+O.replace(/'/g,"''")+"'";case yr:return"|"+xr(O,w.indent)+be(Gt(O,K));case jt:return">"+xr(O,w.indent)+be(Gt(Lr(O,X),K));case Te:return'"'+Fr(O)+'"';default:throw new t("impossible error: invalid scalar style")}})()}f(je,"writeScalar");function xr(w,O){const Z=He(w)?String(O):"",Y=w[w.length-1]===` 290`,K=Y&&(w[w.length-2]===` 291`||w===` 292`)?"+":Y?"":"-";return Z+K+` 293`}f(xr,"blockHeader");function be(w){return w[w.length-1]===` 294`?w.slice(0,-1):w}f(be,"dropEndingNewline");function Lr(w,O){const Z=/(\n+)([^\n]*)/g;let Y=(function(){let ht=w.indexOf(` 295`);return ht=ht!==-1?ht:w.length,Z.lastIndex=ht,ke(w.slice(0,ht),O)})(),V=w[0]===` 296`||w[0]===" ",K,X;for(;X=Z.exec(w);){const ht=X[1],nt=X[2];K=nt[0]===" ",Y+=ht+(!V&&!K&&nt!==""?` 297`:"")+ke(nt,O),V=K}return Y}f(Lr,"foldString");function ke(w,O){if(w===""||w[0]===" ")return w;const Z=/ [^ ]/g;let Y,V=0,K,X=0,ht=0,nt="";for(;Y=Z.exec(w);)ht=Y.index,ht-V>O&&(K=X>V?X:ht,nt+=` 298`+w.slice(V,K),V=K+1),X=ht;return nt+=` 299`,w.length-V>O&&X>V?nt+=w.slice(V,X)+` 300`+w.slice(X+1):nt+=w.slice(V),nt.slice(1)}f(ke,"foldLine");function Fr(w){let O="",Z=0;for(let Y=0;Y<w.length;Z>=65536?Y+=2:Y++){Z=Zt(w,Y);const V=W[Z];!V&&Ct(Z)?(O+=w[Y],Z>=65536&&(O+=w[Y+1])):O+=V||et(Z)}return O}f(Fr,"escapeString");function Cr(w,O,Z){let Y="";const V=w.tag;for(let K=0,X=Z.length;K<X;K+=1){let ht=Z[K];w.replacer&&(ht=w.replacer.call(Z,String(K),ht)),(q(w,O,ht,!1,!1)||typeof ht>"u"&&q(w,O,null,!1,!1))&&(Y!==""&&(Y+=","+(w.condenseFlow?"":" ")),Y+=w.dump)}w.tag=V,w.dump="["+Y+"]"}f(Cr,"writeFlowSequence");function we(w,O,Z,Y){let V="";const K=w.tag;
300for(let X=0,ht=Z.length;X<ht;X+=1){let nt=Z[X];w.replacer&&(nt=w.replacer.call(Z,String(X),nt)),(q(w,O+1,nt,!0,!0,!1,!0)||typeof nt>"u"&&q(w,O+1,null,!0,!0,!1,!0))&&((!Y||V!=="")&&(V+=Ht(w,O)),w.dump&&n===w.dump.charCodeAt(0)?V+="-":V+="- ",V+=w.dump)}w.tag=K,w.dump=V||"[]"}f(we,"writeBlockSequence");function Ae(w,O,Z){let Y="";const V=w.tag,K=Object.keys(Z);for(let X=0,ht=K.length;X<ht;X+=1){let nt="";Y!==""&&(nt+=", "),w.condenseFlow&&(nt+='"');const mt=K[X];let kt=Z[mt];w.replacer&&(kt=w.replacer.call(Z,mt,kt)),q(w,O,mt,!1,!1)&&(w.dump.length>1024&&(nt+="? "),nt+=w.dump+(w.condenseFlow?'"':"")+":"+(w.condenseFlow?"":" "),q(w,O,kt,!1,!1)&&(nt+=w.dump,Y+=nt))}w.tag=V,w.dump="{"+Y+"}"}f(Ae,"writeFlowMapping");function g(w,O,Z,Y){let V="";const K=w.tag,X=Object.keys(Z);if(w.sortKeys===!0)X.sort();else if(typeof w.sortKeys=="function")X.sort(w.sortKeys);else if(w.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let ht=0,nt=X.length;ht<nt;ht+=1){let mt="";(!Y||V!=="")&&(mt+=Ht(w,O));const kt=X[ht];let Et=Z[kt];if(w.replacer&&(Et=w.replacer.call(Z,kt,Et)),!q(w,O+1,kt,!0,!0,!0))continue;const Ut=w.tag!==null&&w.tag!=="?"||w.dump&&w.dump.length>1024;Ut&&(w.dump&&n===w.dump.charCodeAt(0)?mt+="?":mt+="? "),mt+=w.dump,Ut&&(mt+=Ht(w,O)),q(w,O+1,Et,!0,Ut)&&(w.dump&&n===w.dump.charCodeAt(0)?mt+=":":mt+=": ",mt+=w.dump,V+=mt)}w.tag=K,w.dump=V||"{}"}f(g,"writeBlockMapping");function E(w,O,Z){const Y=Z?w.explicitTypes:w.implicitTypes;for(let V=0,K=Y.length;V<K;V+=1){const X=Y[V];if((X.instanceOf||X.predicate)&&(!X.instanceOf||typeof O=="object"&&O instanceof X.instanceOf)&&(!X.predicate||X.predicate(O))){if(Z?X.multi&&X.representName?w.tag=X.representName(O):w.tag=X.tag:w.tag="?",X.represent){const ht=w.styleMap[X.tag]||X.defaultStyle;let nt;if(i.call(X.represent)==="[object Function]")nt=X.represent(O,ht);else if(o.call(X.represent,ht))nt=X.represent[ht](O,ht);else throw new t("!<"+X.tag+'> tag resolver accepts not "'+ht+'" style');w.dump=nt}return!0}}return!1}f(E,"detectType");function q(w,O,Z,Y,V,K,X){w.tag=null,w.dump=Z,E(w,Z,!1)||E(w,Z,!0);const ht=i.call(w.dump),nt=Y;Y&&(Y=w.flowLevel<0||w.flowLevel>O);const mt=ht==="[object Object]"||ht==="[object Array]";let kt,Et;if(mt&&(kt=w.duplicates.indexOf(Z),Et=kt!==-1),(w.tag!==null&&w.tag!=="?"||Et||w.indent!==2&&O>0)&&(V=!1),Et&&w.usedDuplicates[kt])w.dump="*ref_"+kt;else{if(mt&&Et&&!w.usedDuplicates[kt]&&(w.usedDuplicates[kt]=!0),ht==="[object Object]")Y&&Object.keys(w.dump).length!==0?(g(w,O,w.dump,V),Et&&(w.dump="&ref_"+kt+w.dump)):(Ae(w,O,w.dump),Et&&(w.dump="&ref_"+kt+" "+w.dump));else if(ht==="[object Array]")Y&&w.dump.length!==0?(w.noArrayIndent&&!X&&O>0?we(w,O-1,w.dump,V):we(w,O,w.dump,V),Et&&(w.dump="&ref_"+kt+w.dump)):(Cr(w,O,w.dump),Et&&(w.dump="&ref_"+kt+" "+w.dump));else if(ht==="[object String]")w.tag!=="?"&&je(w,w.dump,O,K,nt);else{if(ht==="[object Undefined]")return!1;if(w.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+ht)}if(w.tag!==null&&w.tag!=="?"){let Ut=encodeURI(w.tag[0]==="!"?w.tag.slice(1):w.tag).replace(/!/g,"%21");w.tag[0]==="!"?Ut="!"+Ut:Ut.slice(0,18)==="tag:yaml.org,2002:"?Ut="!!"+Ut.slice(18):Ut="!<"+Ut+">",w.dump=Ut+" "+w.dump}}return!0}f(q,"writeNode");function G(w,O){const Z=[],Y=[];N(w,Z,Y);const V=Y.length;for(let K=0;K<V;K+=1)O.duplicates.push(Z[Y[K]]);O.usedDuplicates=new Array(V)}f(G,"getDuplicateReferences");function N(w,O,Z){if(w!==null&&typeof w=="object"){const Y=O.indexOf(w);if(Y!==-1)Z.indexOf(Y)===-1&&Z.push(Y);else if(O.push(w),Array.isArray(w))for(let V=0,K=w.length;V<K;V+=1)N(w[V],O,Z);else{const V=Object.keys(w);for(let K=0,X=V.length;K<X;K+=1)N(w[V[K]],O,Z)}}}f(N,"inspectNode");function Q(w,O){O=O||{};const Z=new Nt(O);Z.noRefs||G(w,Z);let Y=w;return Z.replacer&&(Y=Z.replacer.call({"":Y},"",Y)),q(Z,0,Y,!0,!0)?Z.dump+` 301`:""}return f(Q,"dump2"),wn.dump=Q,wn}f(Pm,"requireDumper");var su;function Im(){if(su)return pe;su=1;const e=Dm(),t=Pm();function r(i,o){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}
301return f(r,"renamed"),pe.Type=Ce(),pe.Schema=nh(),pe.FAILSAFE_SCHEMA=dh(),pe.JSON_SCHEMA=mh(),pe.CORE_SCHEMA=yh(),pe.DEFAULT_SCHEMA=Ca(),pe.load=e.load,pe.loadAll=e.loadAll,pe.dump=t.dump,pe.YAMLException=oo(),pe.types={binary:bh(),float:gh(),map:ch(),null:uh(),pairs:wh(),set:_h(),timestamp:xh(),bool:ph(),int:fh(),merge:Ch(),omap:kh(),seq:hh(),str:lh()},pe.safeLoad=r("safeLoad","load"),pe.safeLoadAll=r("safeLoadAll","loadAll"),pe.safeDump=r("safeDump","dump"),pe}f(Im,"requireJsYaml");var YT=Im(),UT=Om(YT),{Type:RA,Schema:NA,FAILSAFE_SCHEMA:zA,JSON_SCHEMA:GT,CORE_SCHEMA:qA,DEFAULT_SCHEMA:WA,load:VT,loadAll:HA,dump:jA,YAMLException:YA,types:UA,safeLoad:GA,safeLoadAll:VA,safeDump:XA}=UT,XT={common:Yo,getConfig:Xt,insertCluster:am,insertEdge:hm,insertEdgeLabel:ah,insertMarkers:um,insertNode:sh,interpolateToCurve:Pl,labelHelper:yt,log:$,positionEdgeLabel:lT},qo={},Rm=f(e=>{for(const t of e)qo[t.name]=t},"registerLayoutLoaders"),ZT=f(()=>{Rm([{name:"dagre",loader:f(async()=>await Ft(()=>import("./Ci2l0ByU.js"),__vite__mapDeps([10,11,1,2,8,12,13,14,7,3,4,5,6,9]),import.meta.url),"loader")},{name:"swimlane",loader:f(async()=>await Ft(()=>import("./_VVDe00Y.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,8,9]),import.meta.url),"loader")},{name:"cose-bilkent",loader:f(async()=>await Ft(()=>import("./D5oVr8WQ.js"),__vite__mapDeps([16,17,1,2,3,4,5,6,7,8,9]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");ZT();var ZA=f(async(e,t)=>{if(!(e.layoutAlgorithm in qo))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const l of e.nodes){const d=l.domId||l.id;l.domId=`${e.diagramId}-${d}`}const r=qo[e.layoutAlgorithm],i=await r.loader(),{theme:o,themeVariables:s}=e.config,{useGradient:a,gradientStart:n,gradientStop:h}=s,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${o?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${o?.includes("dark")?"#FFFFFF":"#000000"}`),a){const l=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");l.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),l.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return i.render(e,t,XT,{algorithm:r.algorithm})},"render"),KA=f((e="",{fallback:t="dagre"}={})=>{if(e in qo)return e;if(t in qo)return $.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"),Sh="comm",Nm="rule",zm="decl",KT="@media",QT="@import",JT="@supports",tv="@namespace",al="@keyframes",qm="@layer",ev="@scope",Wm=Math.abs,Th=String.fromCharCode;function Hm(e){return e.trim()}function As(e,t,r){return e.replace(t,r)}function rv(e,t,r){return e.indexOf(t,r)}function Ei(e,t){return e.charCodeAt(t)|0}function Qi(e,t,r){return e.slice(t,r)}function nr(e){return e.length}function jm(e){return e.length}function xs(e,t){return t.push(e),e}var ba=1,Ji=1,Ym=0,qe=0,re=0,so="";function vh(e,t,r,i,o,s,a,n){return{value:e,root:t,parent:r,type:i,props:o,children:s,line:ba,column:Ji,length:a,return:"",siblings:n}}function iv(){return re}function ov(){return re=qe>0?Ei(so,--qe):0,Ji--,re===10&&(Ji=1,ba--),re}function Ze(){return re=qe<Ym?Ei(so,qe++):0,Ji++,re===10&&(Ji=1,ba++),re}function zr(){return Ei(so,qe)}function Es(){return qe}function ka(e,t){return Qi(so,e,t)}function Wo(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 sv(e){return ba=Ji=1,Ym=nr(so=e),qe=0,[]}function av(e){return so="",e}function _n(e){return Hm(ka(qe-1,nl(e===91?e+2:e===40?e+1:e)))}function nv(e){for(;(re=zr())&&re<33;)Ze();return Wo(e)>
vendor: 10,470 bytes, lines 301-302
3012||Wo(re)>3?"":" "}function lv(e,t){for(;--t&&Ze()&&!(re<48||re>102||re>57&&re<65||re>70&&re<97););return ka(e,Es()+(t<6&&zr()==32&&Ze()==32))}function nl(e){for(;Ze();)switch(re){case e:return qe;case 34:case 39:e!==34&&e!==39&&nl(re);break;case 40:e===41&&nl(e);break;case 92:Ze();break}return qe}function hv(e,t){for(;Ze()&&e+re!==57;)if(e+re===84&&zr()===47)break;return"/*"+ka(t,qe-1)+"*"+Th(e===47?e:Ze())}function cv(e){for(;!Wo(zr());)Ze();return ka(e,qe)}function dv(e){return av(Ms("",null,null,null,[""],e=sv(e),0,[0],e))}function Ms(e,t,r,i,o,s,a,n,h){for(var c=0,l=0,d=a,u=0,p=0,y=0,m=1,x=1,C=1,k=0,_="",T=o,v=s,A=i,B=_;x;)switch(y=k,k=Ze()){case 40:if(y!=108&&Ei(B,d-1)==58){rv(B+=As(_n(k),"&","&\f"),"&\f",Wm(c?n[c-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:B+=_n(k);break;case 9:case 10:case 13:case 32:B+=nv(y);break;case 92:B+=lv(Es()-1,7);continue;case 47:switch(zr()){case 42:case 47:xs(uv(hv(Ze(),Es()),t,r,h),h),(Wo(y||1)==5||Wo(zr()||1)==5)&&nr(B)&&Qi(B,-1,void 0)!==" "&&(B+=" ");break;default:B+="/"}break;case 123*m:n[c++]=nr(B)*C;case 125*m:case 59:case 0:switch(k){case 0:case 125:x=0;case 59+l:C==-1&&(B=As(B,/\f/g,"")),p>0&&(nr(B)-d||m===0&&y===47)&&xs(p>32?nu(B+";",i,r,d-1,h):nu(As(B," ","")+";",i,r,d-2,h),h);break;case 59:B+=";";default:if(xs(A=au(B,t,r,c,l,o,n,_,T=[],v=[],d,s),s),k===123)if(l===0)Ms(B,t,A,A,T,s,d,n,v);else{switch(u){case 99:if(Ei(B,3)===110)break;case 108:if(Ei(B,2)===97)break;default:l=0;case 100:case 109:case 115:}l?Ms(e,A,A,i&&xs(au(e,A,A,0,0,o,n,_,o,T=[],d,v),v),o,v,d,n,i?T:v):Ms(B,A,A,A,[""],v,0,n,v)}}c=l=p=0,m=C=1,_=B="",d=a;break;case 58:d=1+nr(B),p=y;default:if(m<1){if(k==123)--m;else if(k==125&&m++==0&&ov()==125)continue}switch(B+=Th(k),k*m){case 38:C=l>0?1:(B+="\f",-1);break;case 44:n[c++]=(nr(B)-1)*C,C=1;break;case 64:zr()===45&&(B+=_n(Ze())),u=zr(),l=d=nr(_=B+=cv(Es())),k++;break;case 45:y===45&&nr(B)==2&&(m=0)}}return s}function au(e,t,r,i,o,s,a,n,h,c,l,d){for(var u=o-1,p=o===0?s:[""],y=jm(p),m=0,x=0,C=0;m<i;++m)for(var k=0,_=Qi(e,u+1,u=Wm(x=a[m])),T=e;k<y;++k)(T=Hm(x>0?p[k]+" "+_:As(_,/&\f/g,p[k])))&&(h[C++]=T);return vh(e,t,r,o===0?Nm:n,h,c,l,d)}function uv(e,t,r,i){return vh(e,t,r,Sh,Th(iv()),Qi(e,2,-2),0,i)}function nu(e,t,r,i,o){return vh(e,t,r,zm,Qi(e,0,i),Qi(e,i+1,-1),i,o)}function ll(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function pv(e,t,r,i){switch(e.type){case qm:if(e.children.length)break;case QT:case tv:case zm:return e.return=e.return||e.value;case Sh:return"";case al:return e.return=e.value+"{"+ll(e.children,i)+"}";case Nm:if(!nr(e.value=e.props.join(",")))return""}return nr(r=ll(e.children,i))?e.return=e.value+"{"+r+"}":""}function fv(e){var t=jm(e);return function(r,i,o,s){for(var a="",n=0;n<t;n++)a+=e[n](r,i,o,s)||"";return a}}var Um="c4",gv=f(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),mv=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./CEvzu5iL.js");return{diagram:t}},__vite__mapDeps([18,19,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:Um,diagram:e}},"loader"),yv={id:Um,detector:gv,loader:mv},xv=yv,Gm="flowchart",Cv=f((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),bv=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./Cx-Kln3J.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([20,21,22,23,19,24,1,2]),import.meta.url);return{id:Gm,diagram:e}},"loader"),kv={id:Gm,detector:Cv,loader:bv},wv=kv,Vm="flowchart-v2",_v=f((e,t)=>t?.flowchart?.defaultRenderer==="dagre-d3"?!1:(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)),"detector"),Sv=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./Cx-Kln3J.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([20,21,22,23,19,24,1,2]),import.meta.url);return{id:Vm,diagram:e}},"loader"),Tv={id:Vm,detector:_v,loader:Sv},vv=Tv,Xm="swimlane",Bv=f(e=>/^\s*swimlane-beta\b/.test(e),"detector"),Lv=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./CMcKQLyf.js");return{diagram:t}},__vite__mapDeps([25,20,21,22,23,19,24,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:Xm,diagram:e}},"loader"),Fv={id:Xm,detector:Bv,loader:Lv},Av=Fv,Zm="er",Ev=f(e=>/^\s*erDiagram/.test(e),"detector"),Mv=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./S-8-XGwY.js");return{diagram:t}},__vite__mapDeps([26,22,23,24,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:Zm,diagram:e}},"loader"),Ov={id:Zm,detector:Ev,loader:Mv},$v=Ov,Km="gitGraph",Dv=f(e=>/^\s*gitGraph/.test(e),"detector"),Pv=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./CBsLXHuP.js");return{diagram:t}},__vite__mapDeps([27,28,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:Km,diagram:e}},"loader"),Iv={id:Km,detector:Dv,loader:Pv},Rv=Iv,Qm="gantt",Nv=f(e=>/^\s*gantt/.test(e),"detector"),zv=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./pi3ApuCN.js");return{diagram:t}},__vite__mapDeps([31,1,2,32,33,34,3,4,5,6,7,8,9]),import.meta.url);return{id:Qm,diagram:e}},"loader"),qv={id:Qm,detector:Nv,loader:zv},Wv=qv,Jm="info",Hv=f(e=>/^\s*info/.test(e),"detector"),jv=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./lfqL0ECe.js");return{diagram:t}},__vite__mapDeps([35,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:Jm,diagram:e}},"loader"),Yv={id:Jm,detector:Hv,loader:jv},ty="pie",Uv=f(e=>/^\s*pie/.test(e),"detector"),Gv=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./BTjZHEhU.js");return{diagram:t}},__vite__mapDeps([36,29,30,1,2,37,38,33,3,4,5,6,7,8,9]),import.meta.url);return{id:ty,diagram:e}},"loader"),Vv={id:ty,detector:Uv,loader:Gv},ey="quadrantChart",Xv=f(e=>/^\s*quadrantChart/.test(e),"detector"),Zv=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./BB9JAKZd.js");return{diagram:t}},__vite__mapDeps([39,32,33,34,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:ey,diagram:e}},"loader"),Kv={id:ey,detector:Xv,loader:Zv},Qv=Kv,ry="xychart",Jv=f(e=>/^\s*xychart(-beta)?/.test(e),"detector"),tB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./DyOjEn6R.js");return{diagram:t}},__vite__mapDeps([40,33,38,32,34,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:ry,diagram:e}},"loader"),eB={id:ry,detector:Jv,loader:tB},rB=eB,iy="requirement",iB=f(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),oB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./CoYauHdn.js");return{diagram:t}},__vite__mapDeps([41,22,23,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:iy,diagram:e}},"loader"),sB={id:iy,detector:iB,loader:oB},aB=sB,oy="sequence",nB=f(e=>/^\s*sequenceDiagram/.test(e),"detector"),lB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./BqbWGP9B.js");return{diagram:t}},__vite__mapDeps([42,28,19,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:oy,diagram:e}},"loader"),hB={id:oy,detector:nB,loader:lB},cB=hB,sy="class",dB=f((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),uB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./aAWSgU4k.js");return{diagram:t}},__vite__mapDeps([43,44,21,22,23,19,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:sy,diagram:e}},"loader"),pB={id:sy,detector:dB,loader:uB},fB=pB,ay="classDiagram",gB=f((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),mB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./CAuk9aeO.js");return{diagram:t}},__vite__mapDeps([45,44,21,22,23,19,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:ay,diagram:e}},"loader"),yB={id:ay,detector:gB,loader:mB},xB=yB,ny="state",CB=f((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),bB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./DPa2VZZS.js");return{diagram:t}},__vite__mapDeps([46,47,22,23,19,11,1,2,8,12,13,14,7,3,4,5,6,9]),import.meta.url);return{id:ny,diagram:e}},"loader"),kB={id:ny,detector:CB,loader:bB},wB=kB,ly="stateDiagram",_B=f((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),SB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./BTgguJNe.js");return{diagram:t}},__vite__mapDeps([48,47,22,23,19,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:ly,diagram:e}},"loader"),TB={id:ly,detector:_B,loader:SB},vB=TB,hy="journey",BB=f(e=>/^\s*journey/.test(e),"detector"),LB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./BRpigbpm.js");return{diagram:t}},__vite__mapDeps([49,21,19,1,2,37,3,4,5,6,7,8,9]),import.meta.url);return{id:hy,diagram:e}},"loader"),FB={id:hy,detector:BB,loader:LB},AB=FB,EB=f((e,t,r)=>{$.debug(`rendering svg for syntax error 302`);const i=I2(t),o=i.append("g");i.attr("viewBox","0 0 2412 512"),Ru(i,100,512,!0),o.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"),o.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"),o.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"),o.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.
302164-16,16v32c0,8.836 7.156,16 16,16z"),o.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"),o.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"),o.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"),o.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"),cy={draw:EB},MB=cy,OB={db:{},renderer:cy,parser:{parse:f(()=>{},"parse")}},$B=OB,dy="flowchart-elk",DB=f((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),PB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./Cx-Kln3J.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([20,21,22,23,19,24,1,2]),import.meta.url);return{id:dy,diagram:e}},"loader"),IB={id:dy,detector:DB,loader:PB},RB=IB,uy="timeline",NB=f(e=>/^\s*timeline/.test(e),"detector"),zB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./fdrgtvx5.js");return{diagram:t}},__vite__mapDeps([50,37,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:uy,diagram:e}},"loader"),qB={id:uy,detector:NB,loader:zB},WB=qB,py="mindmap",HB=f(e=>/^\s*mindmap/.test(e),"detector"),jB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./D9qyZ84O.js");return{diagram:t}},__vite__mapDeps([51,22,23,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:py,diagram:e}},"loader"),YB={id:py,detector:HB,loader:jB},UB=YB,fy="kanban",GB=f(e=>/^\s*kanban/.test(e),"detector"),VB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./CyqUwFyw.js");return{diagram:t}},__vite__mapDeps([52,21,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:fy,diagram:e}},"loader"),XB={id:fy,detector:GB,loader:VB},ZB=XB,gy="sankey",KB=f(e=>/^\s*sankey(-beta)?/.test(e),"detector"),QB=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./t5ydGhva.js");return{diagram:t}},__vite__mapDeps([53,1,2,38,33,3,4,5,6,7,8,9]),import.meta.url);return{id:gy,diagram:e}},"loader"),JB={id:gy,detector:KB,loader:QB},tL=JB,my="packet",eL=f(e=>/^\s*packet(-beta)?/.test(e),"detector"),rL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./CDRzTrDK.js");return{diagram:t}},__vite__mapDeps([54,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:my,diagram:e}},"loader"),iL={id:my,detector:eL,loader:rL},yy="radar",oL=f(e=>/^\s*radar-beta/.test(e),"detector"),sL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./CD_viz5U.js");return{diagram:t}},__vite__mapDeps([55,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:yy,diagram:e}},"loader"),aL={id:yy,detector:oL,loader:sL},xy="block",nL=f(e=>/^\s*block(-beta)?/.test(e),"detector"),lL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./BCJBT5bN.js");return{diagram:t}},__vite__mapDeps([56,21,24,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:xy,diagram:e}},"loader"),hL={id:xy,detector:nL,loader:lL},cL=hL,Cy="treeView",dL=f(e=>/^\s*treeView-beta/.test(e),"detector"),uL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./BRQgtCY0.js");return{diagram:t}},__vite__mapDeps([57,28,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:Cy,diagram:e}},"loader"),pL={id:Cy,detector:dL,loader:uL},fL=pL,by="architecture",gL=f(e=>/^\s*architecture/.test(e),"detector"),mL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./D8gkPHyz.js");return{diagram:t}},__vite__mapDeps([58,29,30,1,2,17,3,4,5,6,7,8,9]),import.meta.url);return{id:by,diagram:e}},"loader"),yL={id:by,detector:gL,loader:mL},xL=yL,ky="eventmodeling",CL=f(e=>/^\s*eventmodeling/.test(e),"detector"),bL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./qvBzx4Iz.js");return{diagram:t}},__vite__mapDeps([59,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:ky,diagram:e}},"loader"),kL={id:ky,detector:CL,loader:bL},wL=kL,wy="ishikawa",_L=f(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),SL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./DAUImQui.js");return{diagram:t}},__vite__mapDeps([60,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:wy,diagram:e}},"loader"),TL={id:wy,detector:_L,loader:SL},_y="venn",vL=f(e=>/^\s*venn-beta/.test(e),"detector"),BL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./38q_6FCM.js");return{diagram:t}},__vite__mapDeps([61,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:_y,diagram:e}},"loader"),LL={id:_y,detector:vL,loader:BL},FL=LL,Sy="treemap",AL=f(e=>/^\s*treemap/.test(e),"detector"),EL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./DA8LdVwV.js");return{diagram:t}},__vite__mapDeps([62,29,23,30,1,2,34,38,33,3,4,5,6,7,8,9]),import.meta.url);return{id:Sy,diagram:e}},"loader"),ML={id:Sy,detector:AL,loader:EL},Ty="wardley",OL=f(e=>/^\s*wardley-beta/i.test(e),"detector"),$L=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./BJvWy2zW.js");return{diagram:t}},__vite__mapDeps([63,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:Ty,diagram:e}},"loader"),DL={id:Ty,detector:OL,loader:$L},PL=DL,vy="cynefin",IL=f(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),RL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./aHbPmCTH.js");return{diagram:t}},__vite__mapDeps([64,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:vy,diagram:e}},"loader"),NL={id:vy,detector:IL,loader:RL},By="railroad",zL=f(e=>/^\s*railroad-beta/i.test(e),"detector"),qL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./W3EWZqjm.js");return{diagram:t}},__vite__mapDeps([65,66,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:By,diagram:e}},"loader"),WL={id:By,detector:zL,loader:qL},Ly="railroadEbnf",HL=f(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),jL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./DOBrF_EJ.js");return{diagram:t}},__vite__mapDeps([67,66,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:Ly,diagram:e}},"loader"),YL={id:Ly,detector:HL,loader:jL},Fy="railroadAbnf",UL=f(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),GL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./D2xrdDec.js");return{diagram:t}},__vite__mapDeps([68,66,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:Fy,diagram:e}},"loader"),VL={id:Fy,detector:UL,loader:GL},Ay="railroadPeg",XL=f(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),ZL=f(async()=>{const{diagram:e}=await Ft(async()=>{const{diagram:t}=await import("./C42mp4OP.js");return{diagram:t}},__vite__mapDeps([69,66,29,30,1,2,3,4,5,6,7,8,9]),import.meta.url);return{id:Ay,diagram:e}},"loader"),KL={id:Ay,detector:XL,loader:ZL},lu=!1,wa=f(()=>{lu||(lu=!0,Is("error",$B,e=>e.toLowerCase().trim()==="error"),Is("---",{db:{clear:f(()=>{},"clear")},styles:{},renderer:{draw:f(()=>{},"draw")},parser:{parse:f(()=>{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:f(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Ln(RB,UB,xL),Ln(xv,ZB,xB,fB,$v,Wv,Yv,Vv,aB,cB,Av,vv,wv,WB,Rv,vB,wB,AB,Qv,tL,iL,rB,cL,wL,fL,aL,TL,ML,WL,YL,VL,KL,FL,PL,NL))},"addDiagrams"),QL=f(async()=>{$.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(ai).map(async([r,{detector:i,loader:o}])=>{if(o)try{Mn(r)}catch{try{const{diagram:s,id:a}=await o();Is(a,s,i)}catch(s){throw $.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete ai[r],s}}}))).filter(r=>r.status==="rejected");if(t.length>0){$.error(`Failed to load ${t.length} external diagrams`);for(const r of t)$.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),JL="graphics-document document";function Ey(e,t){e.attr("role",JL),t!==""&&e.attr("aria-roledescription",t)}f(Ey,"setA11yDiagramInfo");function My(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}f(My,"addSVGa11yTitleDescription");var oi,hl=(oi=class{constructor(t,r,i,o,s){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=s}
302static async fromText(t,r={}){const i=Xt(),o=fl(t,i);t=s_(t)+` 303`;try{Mn(o)}catch{const c=EC(o);if(!c)throw new Mu(`Diagram ${o} not found.`);const{id:l,diagram:d}=await c();Is(l,d)}const{db:s,parser:a,renderer:n,init:h}=Mn(o);return a.parser&&(a.parser.yy=s),s.clear?.(),h?.(i),r.title&&s.setDiagramTitle?.(r.title),await a.parse(t),new oi(o,t,s,a,n)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},f(oi,"Diagram"),oi),hu=[],tF=f(()=>{hu.forEach(e=>{e()}),hu=[]},"attachFunctions"),eF=f(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Oy(e){const t=e.match(Eu);if(!t)return{text:e,metadata:{}};const r=t[1],i=r?t[2].split(` 304`).map(a=>a.startsWith(r)?a.slice(r.length):a).join(` 305`):t[2];let o=VT(i,{schema:GT})??{};o=typeof o=="object"&&!Array.isArray(o)?o:{};const s={};return o.displayMode&&(s.displayMode=o.displayMode.toString()),o.title&&(s.title=o.title.toString()),o.config&&(s.config=o.config),{text:e.slice(t[0].length),metadata:s}}f(Oy,"extractFrontMatter");var rF=f(e=>e.replace(/\r\n?/g,` 306`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),iF=f(e=>{const{text:t,metadata:r}=Oy(e),{displayMode:i,title:o,config:s={}}=r;return i&&(s.gantt||(s.gantt={}),s.gantt.displayMode=i),{title:o,config:s,text:t}},"processFrontmatter"),oF=f(e=>{const t=ye.detectInit(e)??{},r=ye.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:Uw(e),directive:t}},"processDirectives");function Bh(e){const t=rF(e),r=iF(t),i=oF(r.text),o=ql(r.config,i.directive);return e=eF(i.text),{code:e,title:r.title,config:o}}f(Bh,"preprocessDiagram");function $y(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}f($y,"toBase64");var sF=5e4,aF="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",nF="sandbox",lF="loose",hF="http://www.w3.org/2000/svg",cF="http://www.w3.org/1999/xlink",dF="http://www.w3.org/1999/xhtml",uF="100%",pF="100%",fF="border:0;margin:0;",gF="margin:0",mF="allow-top-navigation-by-user-activation allow-popups",yF='The "iframe" tag is not supported by your browser.',xF=["foreignobject"],CF=["dominant-baseline"];function Lh(e){const t=Bh(e);return Ds(),BC(t.config??{}),t}f(Lh,"processAndSetConfigs");async function Dy(e,t){wa();try{const{code:r,config:i}=Lh(e);return{diagramType:(await Iy(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}f(Dy,"parse");var cu=f((e,t,r=[])=>{const i=vu(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),bF=f((e,t=new Map)=>{const r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){const n=xe(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(h=>{jc(h.styles)||n.forEach(c=>{r.insertRule(cu(h.id,c,h.styles),r.cssRules.length)}),jc(h.textStyles)||r.insertRule(cu(h.id,"tspan",(h?.textStyles||[]).map(c=>c.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const o=new CSSStyleSheet;o.replaceSync(e.themeCSS),i=En(o)+` 307`}else i+=`${e.themeCSS} 308`;return i+En(r)},"createCssStyles"),kF=f((e,t)=>ll(dv(`${e}{${t}}`),fv([f(function(i,o,s,a){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===al)return;i.props=i.props.map(n=>n===e&&Array.isArray(i.children)&&i.children.every(c=>c.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(c.props))||(n.startsWith(`${e} `)||n.startsWith(`${e}>`))&&!n.startsWith(`${e} ||`)?n:`${e} ${n}`)}else i.type.startsWith("@")&&([...[KT,JT,qm,ev,"@container","@starting-style"],al].includes(i.type)||($.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=Sh))},"addNamespace"),pv])),"compileCSS"),wF=f((e,t,r,i)=>{const o=bF(e,r),s=XC(t,o,{...e.themeVariables,theme:e.theme,look:e.look},i);return kF(i,s)},"createUserStyles"),_F=f((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Hr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),SF=f((e="",t)=>{const r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":pF,i=$y(`<body style="${gF}">${e}</body>`);return`<CookieIframe style="width:${uF};height:${r};${fF}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${mF}"> 309 ${yF} 310</CookieIframe>`},"putIntoIFrame"),du=f((e,t,r,i,o)=>{const s=e.append("div");
vendor: 5,121 bytes, line 310
310s.attr("id",r),i&&s.attr("style",i);const a=s.append("svg").attr("id",t).attr("width","100%").attr("xmlns",hF);return o&&a.attr("xmlns:xlink",o),a.append("g"),e},"appendDivSvgG");function cl(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}f(cl,"sandboxedIframe");var TF=f((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),vF=f(async function(e,t,r){wa();const i=Lh(t);t=i.code;const o=Xt();$.debug(o),t.length>(o?.maxTextSize??sF)&&(t=aF);const s=`#${e}`,a="i"+e,n="#"+a,h="d"+e,c="#"+h,l=f(()=>{const W=Bt(u?n:c).node();W&&"remove"in W&&W.remove()},"removeTempElements");let d=Bt(document.body);const u=o.securityLevel===nF,p=o.securityLevel===lF,y=o.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),u){const z=cl(Bt(r),a);d=Bt(z.nodes()[0].contentDocument.body),d.node().style.margin="0"}else d=Bt(r);du(d,e,h,`font-family: ${y}`,cF)}else{if(TF(document,e,h,a),u){const z=cl(Bt(document.body),a);d=Bt(z.nodes()[0].contentDocument.body),d.node().style.margin="0"}else d=Bt("body");du(d,e,h)}let m,x;try{m=await hl.fromText(t,{title:i.title})}catch(z){if(o.suppressErrorRendering)throw l(),z;m=await hl.fromText("error"),x=z}const C=d.select(c).node(),k=m.type,_=C.firstChild,T=_.firstChild,v=m.renderer.getClasses?.(t,m),A=wF(o,k,v,s),B=document.createElement("style");B.innerHTML=A,_.insertBefore(B,T);try{await m.renderer.draw(t,e,"11.17.2",m)}catch(z){throw o.suppressErrorRendering?l():MB.draw(t,e,"11.17.2"),z}const D=d.select(`${c} svg`),j=m.db.getAccTitle?.(),U=m.db.getAccDescription?.();Ry(k,D,j,U);const ot=f(()=>{d.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",dF);let z=d.select(c).node().innerHTML;if($.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),z=_F(z,u,pr(o.arrowMarkerAbsolute)),u){const W=d.select(c+" svg").node();z=SF(z,W)}else p||(z=Gi.sanitize(z,{ADD_TAGS:xF,ADD_ATTR:CF,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return tF(),z},"serializeSvg")();if(x)throw x;return l(),{diagramType:k,svg:ot,bindFunctions:m.db.bindFunctions}},"render");function Py(e={}){const t=le({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),TC(t),t?.theme&&t.theme in Sr?t.themeVariables=Sr[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Sr.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?SC(t):Bu();pl(r.logLevel),wa()}f(Py,"initialize");var Iy=f((e,t={})=>{const{code:r}=Bh(e);return hl.fromText(r,t)},"getDiagramFromText");function Ry(e,t,r,i){Ey(t,e),My(t,r,i,t.attr("id"))}f(Ry,"addA11yInfo");var ci=Object.freeze({render:vF,parse:Dy,getDiagramFromText:Iy,initialize:Py,getConfig:Xt,setConfig:Lu,getSiteConfig:Bu,updateSiteConfig:vC,reset:f(()=>{Ds()},"reset"),globalReset:f(()=>{Ds(Vi)},"globalReset"),defaultConfig:Vi});pl(Xt().logLevel);Ds(Xt());var BF=f((e,t,r)=>{$.warn(e),zl(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),Ny=f(async function(e={querySelector:".mermaid"}){try{await LF(e)}catch(t){if(zl(t)&&$.error(t.str),Br.parseError&&Br.parseError(t),!e.suppressErrors)throw $.error("Use the suppressErrors option to suppress these errors"),t}},"run"),LF=f(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=ci.getConfig();$.debug(`${e?"":"No "}Callback function found`);let o;if(r)o=r;else if(t)o=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");$.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&($.debug("Start On Load: "+i?.startOnLoad),ci.updateSiteConfig({startOnLoad:i?.startOnLoad}));const s=new ye.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let a;const n=[];for(const h of Array.from(o)){if($.info("Rendering diagram: "+h.id),h.getAttribute("data-processed"))continue;h.setAttribute("data-processed","true");const c=`mermaid-${s.next()}`;a=h.innerHTML,a=uf(ye.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const l=ye.detectInit(a);l&&$.debug("Detected early reinit: ",l);try{const{svg:d,bindFunctions:u}=await Hy(c,a,h);h.innerHTML=d,e&&await e(c),u&&u(h)}catch(d){BF(d,n,Br.parseError)}}if(n.length>0)throw n[0]},"runThrowsErrors"),zy=f(function(e){ci.initialize(e)},"initialize"),FF=f(async function(e,t,r){$.warn("mermaid.init is deprecated. Please use run instead."),e&&zy(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Ny(i)},"init"),AF=f(async(e,{lazyLoad:t=!0}={})=>{wa(),Ln(...e),t===!1&&await QL()},"registerExternalDiagrams"),qy=f(function(){if(Br.startOnLoad){const{startOnLoad:e}=ci.getConfig();e&&Br.run().catch(t=>$.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",qy,!1);var EF=f(function(e){Br.parseError=e},"setParseErrorHandler"),ia=[],Sn=!1,Wy=f(async()=>
310{if(!Sn){for(Sn=!0;ia.length>0;){const e=ia.shift();if(e)try{await e()}catch(t){$.error("Error executing queue",t)}}Sn=!1}},"executeQueue"),MF=f(async(e,t)=>new Promise((r,i)=>{const o=f(()=>new Promise((s,a)=>{ci.parse(e,t).then(n=>{s(n),r(n)},n=>{$.error("Error parsing",n),Br.parseError?.(n),a(n),i(n)})}),"performCall");ia.push(o),Wy().catch(i)}),"parse"),Hy=f((e,t,r)=>new Promise((i,o)=>{const s=f(()=>new Promise((a,n)=>{ci.render(e,t,r).then(h=>{a(h),i(h)},h=>{$.error("Error parsing",h),Br.parseError?.(h),n(h),o(h)})}),"performCall");ia.push(s),Wy().catch(o)}),"render"),OF=f(()=>Object.keys(ai).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Br={startOnLoad:!0,mermaidAPI:ci,parse:MF,render:Hy,init:FF,run:Ny,registerExternalDiagrams:AF,registerLayoutLoaders:Rm,initialize:zy,parseError:void 0,contentLoaded:qy,setParseErrorHandler:EF,detectType:fl,registerIconPacks:lw,getRegisteredDiagramsMetadata:OF},uu=Br;const $F={key:0,class:"flex items-center justify-center py-12"},DF=["innerHTML"],PF=to({__name:"MermaidDiagram",props:{diagram:{},config:{}},setup(e){const t=e,r=Rr(null),i=Rr(""),o=Rr(!0),s={startOnLoad:!1,theme:"base",themeVariables:{primaryColor:"#1DC8CC",primaryTextColor:"#0D0E2D",primaryBorderColor:"#05989B",lineColor:"#05989B",secondaryColor:"#F9CB0D",tertiaryColor:"#E8FAFA",fontSize:"28px",fontFamily:"Graphik, sans-serif"},flowchart:{htmlLabels:!0,curve:"basis",padding:25,nodeSpacing:50,rankSpacing:70},sequence:{actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35}},a=async()=>{if(t.diagram){o.value=!0;try{uu.initialize({...s,...t.config});const n=`mermaid-${Math.random().toString(36).substr(2,9)}`,{svg:h}=await uu.render(n,t.diagram);i.value=h}catch(n){console.error("Mermaid rendering error:",n),i.value='<p class="text-red-500">Error rendering diagram</p>'}finally{o.value=!1}}};return u0(()=>{a()}),p0(()=>t.diagram,()=>{a()}),(n,h)=>{const c=C0;return Ne(),Xe("div",{ref_key:"mermaidContainer",ref:r,class:"mermaid-container my-8"},[o.value?(Ne(),Xe("div",$F,[L(c)])):(Ne(),Xe("div",{key:1,innerHTML:i.value,class:"mermaid-content"},null,8,DF))],512)}}}),Cs=Object.assign(PF,{__name:"MermaidDiagram"}),IF={class:"mentoring-process-page"},RF={class:"bg-white shadow-md"},NF={class:"container"},zF={class:"flex flex-wrap gap-2 py-4 sm:gap-4"},qF=["onClick"],WF={class:"mx-auto w-full px-4 py-8 sm:py-12 lg:py-16",style:{"max-width":"95vw"}},HF={class:"tab-content"},jF={class:"mb-8 text-center"},YF={class:"journey-container"},UF={class:"tab-content"},GF={class:"mb-8 text-center"},VF={class:"journey-container"},XF={class:"tab-content"},ZF={class:"mb-8 text-center"},KF={class:"journey-container"},QF={class:"tab-content"},JF={class:"mb-8 text-center"},tA={class:"journey-container"},eA=` 311graph LR 312 A[ð Aplikácia<br/>Prejavenie záujmu] --> B[âï¸ Hodnotenie<br/>& Výber] 313 B --> C[ð¥ï¸ Objavenie &<br/>Onboarding] 314 C --> D[ð VylepÅ¡enie<br/>profilu] 315 D --> E[ð¯ Match Room<br/>Živé matching] 316 E --> F[ð Welcome Event<br/>Bratislava] 317 F --> G[ð¬ Fáza 1<br/>Mentoring<br/>4 mesiace] 318 G --> H[ð Vyhodnotenie<br/>Fázy 1] 319 H --> I[ð¬ Fáza 2<br/>Mentoring<br/>4 mesiace] 320 I --> J[ð Final Event<br/>& UkonÄenie] 321 322 style A fill:#E8FAFA,stroke:#05989B,stroke-width:3px 323 style B fill:#FFF9E0,stroke:#F9CB0D,stroke-width:3px 324 style C fill:#E8FAFA,stroke:#05989B,stroke-width:2px 325 style D fill:#E8FAFA,stroke:#05989B,stroke-width:2px 326 style E fill:#FFF9E0,stroke:#F9CB0D,stroke-width:3px 327 style F fill:#E8FAFA,stroke:#05989B,stroke-width:3px 328 style G fill:#D1FAE5,stroke:#0DA947,stroke-width:3px 329 style H fill:#E8FAFA,stroke:#05989B,stroke-width:2px 330 style I fill:#D1FAE5,stroke:#0DA947,stroke-width:3px 331 style J fill:#FFF9E0,stroke:#F9CB0D,stroke-width:3px 332`,rA=` 333graph LR 334 A[ð Aplikácia<br/>Prejavenie záujmu] --> B[âï¸ Hodnotenie<br/>& Výber] 335 B --> C[ð¥ï¸ Objavenie &<br/>Motivácia] 336 C --> D[ð VylepÅ¡enie<br/>profilu] 337 D --> E[ð Mentorský<br/>balÃÄek] 338 E --> F[ð¯ Match Room<br/>Živé matching] 339 F --> G[ð Welcome Event<br/>Bratislava] 340 G --> H[ð¬ Fáza 1<br/>Mentoring<br/>4 mesiace] 341 H --> I[ð Vyhodnotenie<br/>Fázy 1] 342 I --> J{PokraÄovanie?} 343 J -->|Ãno| K[ð¬ Fáza 2<br/>Mentoring<br/>4 mesiace] 344 J -->|Zmena mentee| F 345 K --> L[ð Final Event<br/>& Testimonials] 346 347 style A fill:#E8FAFA,stroke:#05989B,stroke-width:3px 348 style B fill:#FFF9E0,stroke:#F9CB0D,stroke-width:3px
349 style C fill:#E8FAFA,stroke:#05989B,stroke-width:2px 350 style D fill:#E8FAFA,stroke:#05989B,stroke-width:2px 351 style E fill:#E8FAFA,stroke:#05989B,stroke-width:2px 352 style F fill:#FFF9E0,stroke:#F9CB0D,stroke-width:3px 353 style G fill:#E8FAFA,stroke:#05989B,stroke-width:3px 354 style H fill:#D1FAE5,stroke:#0DA947,stroke-width:3px 355 style I fill:#E8FAFA,stroke:#05989B,stroke-width:2px 356 style J fill:#FFF9E0,stroke:#F9CB0D,stroke-width:2px 357 style K fill:#D1FAE5,stroke:#0DA947,stroke-width:3px 358 style L fill:#FFF9E0,stroke:#F9CB0D,stroke-width:3px 359`,iA=` 360graph LR 361 A[ð¢ Objavenie &<br/>Acquisition] --> B[ð Onboarding &<br/>Commitment] 362 B --> C[ð° FinanÄný<br/>prÃspevok] 363 B --> D[ð¥ Nominácia<br/>mentorov/mentees] 364 C --> E[ð¤ AktÃvna úÄasÅ¥<br/>v programe] 365 D --> E 366 E --> F[ð Input sessions<br/>& Eventy] 367 F --> G[ð Impact & Reporting] 368 G --> H[ð Obnovenie<br/>spolupráce] 369 370 style A fill:#E8FAFA,stroke:#05989B,stroke-width:3px 371 style B fill:#E8FAFA,stroke:#05989B,stroke-width:3px 372 style C fill:#D1FAE5,stroke:#0DA947,stroke-width:2px 373 style D fill:#D1FAE5,stroke:#0DA947,stroke-width:2px 374 style E fill:#E8FAFA,stroke:#05989B,stroke-width:3px 375 style F fill:#FFF9E0,stroke:#F9CB0D,stroke-width:2px 376 style G fill:#E8FAFA,stroke:#05989B,stroke-width:3px 377 style H fill:#D1FAE5,stroke:#0DA947,stroke-width:3px 378`,oA=` 379graph LR 380 A[ð Objavenie &<br/>Motivácia] --> B[ð Skills Mapping &<br/>Výber role] 381 B --> C[ð¯ AktÃvny<br/>prÃspevok] 382 C --> D[ð¥ Recruitment] 383 C --> E[ð Å kolenia] 384 C --> F[ð Content] 385 C --> G[ð¤ Eventy] 386 D --> H[ð¤ Komunita &<br/>Rast] 387 E --> H 388 F --> H 389 G --> H 390 H --> I[ðï¸ Governance<br/>SteerCo/Advisory] 391 I --> J[ð Dlhodobé<br/>partnerstvo] 392 393 style A fill:#E8FAFA,stroke:#05989B,stroke-width:3px 394 style B fill:#E8FAFA,stroke:#05989B,stroke-width:3px 395 style C fill:#FFF9E0,stroke:#F9CB0D,stroke-width:3px 396 style D fill:#D1FAE5,stroke:#0DA947,stroke-width:2px 397 style E fill:#D1FAE5,stroke:#0DA947,stroke-width:2px 398 style F fill:#D1FAE5,stroke:#0DA947,stroke-width:2px 399 style G fill:#D1FAE5,stroke:#0DA947,stroke-width:2px 400 style H fill:#E8FAFA,stroke:#05989B,stroke-width:3px 401 style I fill:#FFF9E0,stroke:#F9CB0D,stroke-width:3px 402 style J fill:#D1FAE5,stroke:#0DA947,stroke-width:3px 403`,sA=to({__name:"process",setup(e){f0({title:"GROWNi Mentoring Process - Stakeholder Journeys",meta:[{name:"description",content:"InteraktÃvne diagramy stakeholder journeys pre GROWNi mentoring program"}]});const t=[{id:"mentee",label:"Mentee Journey",icon:"ð¤"},{id:"mentor",label:"Mentor Journey",icon:"ð"},{id:"company",label:"Company/Sponsor Journey",icon:"ð¢"},{id:"ambassador",label:"Ambassador Journey",icon:"â"}],r=Rr("mentee"),i=Rr(!1),o=Rr(!1),s=Rr(!1),a=Rr(!1);return(n,h)=>{const c=y0,l=$0,d=q0,u=X0,p=J0,y=cx;return Ne(),Xe("div",IF,[h[13]||(h[13]=lt("div",{class:"bg-linear-to-br from-primary-910 to-primary-950"},[lt("div",{class:"container py-12 text-white sm:py-16 lg:py-20"},[lt("h1",{class:"mb-4 text-3xl font-black uppercase sm:text-4xl lg:text-5xl"},"ð± MENTORING NETWORK"),lt("p",{class:"text-lg opacity-90 sm:text-xl"}," Pre Svetové Slovensko ⢠8-mesaÄný Leadership Development Program ")])],-1)),lt("div",RF,[lt("div",NF,[lt("div",zF,[(Ne(),Xe(g0,null,m0(t,m=>lt("button",{key:m.id,class:x0(["tab-button rounded-lg border-2 px-4 py-3 text-sm font-semibold transition-all sm:px-6 sm:text-base",r.value===m.id?"active-tab":"inactive-tab"]),onClick:x=>r.value=m.id},ee(m.icon)+" "+ee(m.label),11,qF)),64))])])]),lt("div",WF,[Er(lt("div",HF,[L(wi,{variant:1,class:"mb-8 text-center text-primary-950"},{default:ft(()=>[...h[4]||(h[4]=[or(" Proces z pohľadu Mentee ",-1)])]),_:1}),L(c,null,{default:ft(()=>[L(Cs,{diagram:eA})]),_:1}),lt("div",jF,[lt("button",{class:"rounded-lg bg-primary-910 px-6 py-3 text-white transition hover:bg-primary-950",onClick:h[0]||(h[0]=m=>i.value=!i.value)},ee(i.value?"ð¼ SkryÅ¥ detaily":"ð½ ZobraziÅ¥ detailný popis fáz"),1)]),Er(lt("div",YF,[L(u,{"phase-number":"0",title:"Aplikácia / Prejavenie záujmu",duration:"Prvý krok",description:"Záujemca o mentoring vyplnà aplikáciu cez platformu GROWNi. Proces sa lÃÅ¡i podľa toho, Äi už má alebo nemá úÄet."},{activities:ft(()=>[L(l,{icon:"â ",title:"Aplikácia z pohľadu prihláseného usera",description:"Vyplnenie základného profilu a motivácie (rýchly proces pre existujúcich použÃvateľov)"}),L(l,{icon:"ð",title:"Aplikácia z pohľadu nového (neprihláseného) usera",description:"1. Registrácia na GROWNi, 2. Vyplnenie základného profilu a motivácie"})]),extras:ft(()=>[L(d,{icon:"ð¡",title:"Tip",description:"Ak už máte úÄet na GROWNi, proces aplikácie je rýchlejÅ¡Ã. StaÄà sa prihlásiÅ¥ a doplniÅ¥ motiváciu pre mentoring program."})]),_:1}),L(p),L(u,{"phase-number":"1",title:"Hodnotenie / Výber",duration:"Vyhodnotenie",description:"LEAF tÃm vyhodnocuje aplikácie a rozhoduje o prijatà do TOP programu alebo presmerovanà do Å¡tandardného GROWNi mentoringu."},{activities:ft(()=>[L(l,{icon:"ð",title:"Vyhodnotenie aplikácie",description:"LEAF tÃm kontroluje profil, motiváciu a zhodu s programom"}),L(l,{icon:"âï¸",title:"Rozhodnutie o prijatÃ",description:"Výber kandidátov pre TOP program (Mentoring Network Pre Svetové Slovensko)"})]),extras:ft(()=>
403[L(y,{title:"Rozhodnutie o forme mentoringu","option1-label":"â
TOP Program","option1-description":"Prijatie do 8-mesaÄného programu Mentoring Network Pre Svetové Slovensko","option2-label":"ð± Å tandardný GROWNi Mentoring","option2-description":"Presmerovanie do Å¡tandardného GROWNi mentoring programu (stále zmysluplná prÃležitosÅ¥)"})]),_:1}),L(p),L(u,{"phase-number":"2",title:"Objavenie & Onboarding",duration:"Pred profilom",description:"Mentee sa zoznamuje s programom, jeho významom a oÄakávaniami."},{activities:ft(()=>[L(l,{icon:"ð¥ï¸",title:"Landing page",description:"Äo je mentoring, ako funguje, prÃbehy úspechov"}),L(l,{icon:"ð¥",title:"Video",description:"Vizuálne vysvetlenie procesu a prÃnosov"}),L(l,{icon:"ð¬",title:"AI Chatbot",description:"InteraktÃvna pomoc v rámci prÃprav na mentoring"})]),extras:ft(()=>[L(d,{icon:"ð¯",title:"Cieľ fázy",description:"MotivovaÅ¥, vysvetliÅ¥ význam, nastaviÅ¥ oÄakávania"})]),_:1}),L(p),L(u,{"phase-number":"3",title:"VylepÅ¡enie profilu",duration:"VylepÅ¡enie",description:"Mentee vylepÅ¡uje profil s podporou AI a pripravuje 'plán zmeny'."},{activities:ft(()=>[L(l,{icon:"ð",title:"Profil mentee",description:"Základné info, oblasÅ¥ rastu, motivácia (AI pomáha dopĺÅaÅ¥)"}),L(l,{icon:"ð¯",title:"Plán zmeny (4E + 4C)",description:"Stanovenie cieľov pre osobný rozvoj"}),L(l,{icon:"ð",title:"DotaznÃky",description:"Sebapoznanie, Kohlberg Assessment (úroveÅ morálneho vývoja)"}),L(l,{icon:"ð",title:"Commitment",description:"PrÃsľub prÃspevku (Äas a/alebo financie)"})]),_:1}),L(p),L(u,{"phase-number":"4",title:"Match Room - Matching naživo",duration:"30-60 min",description:"Malé, kurátorované skupinové stretnutia (3-5 mentorov + 3-5 mentees) pre živú interakciu a vzájomný výber. Prirodzené a silné spojenia na základe skutoÄnej ľudskej chémie."},{activities:ft(()=>[L(l,{icon:"ð¥",title:"PrÃprava skupÃn",description:"LEAF vytvorà vyvážené skupiny 3-5 mentorov a 3-5 mentees so spoloÄným tematickým zameranÃm"}),L(l,{icon:"ð¤",title:"Mentee pitche (2 min každý)",description:"Rýchle kolo - každý mentee sa predstavà vÅ¡etkým mentorom"}),L(l,{icon:"ð¬",title:"Kontrolné otázky (10-15 min)",description:"Otvorená konverzácia, mentori môžu klásÅ¥ mentees krátke otázky"}),L(l,{icon:"â",title:"Výber (súkromné hodnotenie)",description:"Každý mentor/mentee hodnotà partnera (1-5), páry vytvorené na základe vzájomných top preferenciÃ"})]),extras:ft(()=>[L(d,{icon:"â
",title:"Výsledok: â Žiadny mentor neostane bez mentee"})]),_:1}),L(p),L(u,{"phase-number":"5",title:"Welcome Event",duration:"Bratislava",description:"Ãvodné stretnutie - spoznajte mentorov, mentees a celý program. Oficiálny Å¡tart 8-mesaÄného mentoring programu."},{activities:ft(()=>[L(l,{icon:"ð",title:"Welcome Event",description:"Spoznajte sa navzájom, mentors/mentees, oslava zaÄiatku"}),L(l,{icon:"ð¤",title:"Mentoring best practices + Networking",description:"Budovanie komunity, výmena skúsenostÃ"})]),_:1}),L(p),L(u,{"phase-number":"6",title:"Fáza 1 - AktÃvny Mentoring",duration:"4 mesiace",description:"Prvá fáza intenzÃvneho mentoringu vo vybranom segmente. Pravidelné 1-on-1 stretnutia, networking a komunitné aktivity."},{activities:ft(()=>[L(l,{icon:"ð¬",title:"1:1 Stretnutia (16+ hodÃn)",description:"Pravidelné rozhovory mentor-mentee, individuálny rozvoj"}),L(l,{icon:"ð",title:"Zdieľanie learningu",description:"2-3 min video alebo 2 odseky textu - univerzálne uÄenie"}),L(l,{icon:"ð¥",title:"Segment networking",description:"Stretnutia s inými mentormi a mentees v segmente"}),L(l,{icon:"ð",title:"Priebežné mÃľniky",description:"Vyhodnocovanie pokroku, úspechy"})]),extras:ft(()=>[L(d,{icon:"ð¯",title:"Å pecializácie",description:"Sales, Marketing, AI, Data Analysis, Banking, Telekom, E-commerce, Reality a ÄalÅ¡ie segmenty"})]),_:1}),L(p),L(u,{"phase-number":"7",title:"Vyhodnotenie Fázy 1",duration:"Po 4 mesiacoch",description:"Reflexia prvej fázy, spätná väzba a rozhodnutie o pokraÄovanÃ."},{activities:ft(()=>[L(l,{icon:"ð",title:"Feedback mentorovi",description:"Spätná väzba na kvalitu mentoringu"}),L(l,{icon:"ð¯",title:"Zhodnotenie pokroku",description:"Aký pokrok sa podarilo dosiahnuÅ¥ v prvej fáze?"}),L(l,{icon:"ð¤",title:"Rozhodnutie o pokraÄovanÃ",description:"PokraÄovaÅ¥ s rovnakým mentorom alebo zmena?"})]),_:1}),L(p),L(u,{"phase-number":"8",title:"Fáza 2 - PokraÄovanie Mentoringu",duration:"4 mesiace",description:"Druhá fáza mentoringu s možnosÅ¥ou zmeny mentorskej dvojice. Prehĺbenie rozvoja a dlhodobá transformácia."},{activities:ft(()=>[L(l,{icon:"ð¬",title:"1:1 Stretnutia",description:"PokraÄovanie pravidelných rozhovorov"}),L(l,{icon:"ð",title:"MožnosÅ¥ zmeny mentora",description:"Na základe vyhodnotenia Fázy 1"}),L(l,{icon:"ð",title:"Advanced learning",description:"Prehĺbenie tém a komplexnejÅ¡ie výzvy"}),L(l,{icon:"ð",title:"Nové segmenty",description:"MožnosÅ¥ zapojiÅ¥ sa do ÄalÅ¡Ãch otvárajúcich sa segmentov"})]),extras:ft(()=>[L(d,{icon:"ð±",title:"Komunita = 20% mentoringu",description:"Komunitné aktivity tvoria dôležitú ÄasÅ¥ programu - networking, Å¡kolenia, výmena skúsenostÃ"})]),_:1}),L(p),L(u,{"phase-number":"9",title:"Final Event & UkonÄenie",duration:"Po 8 mesiacoch",description:"Reflexia celého programu, oslava dosiahnutého pokroku a možnosti ÄalÅ¡ej spolupráce."},{activities:ft(()=>[L(l,{icon:"ð",title:"Feedback",description:"Spätná väzba na mentora + NPS dotaznÃk"}),L(l,{icon:"ð¯",title:"Zhodnotenie cieľov",description:"Aký pokrok sa podarilo dosiahnuÅ¥?"}),L(l,{icon:"ð",title:"Final Event",description:"Oslava, LinkedIn správa, blahoželania"}),L(l,{icon:"ð",title:"ÄalÅ¡ie kroky",description:"MožnosÅ¥ ÄalÅ¡ieho mentoringu, Krúžok, iné prÃležitosti na GROWNi"})]),extras:ft(()=>[L(d,{icon:"ð",title:"Podpora",description:"Pred mentoringom: podpora myÅ¡lienky a vÃzie."})]),_:1})],512),[[Mr,i.value]])],512),[[Mr,r.value==="mentee"]]),Er(lt("div",UF,[L(wi,{variant:1,class:"mb-8 text-center text-primary-950"},{default:ft(()=>[...h[5]||(h[5]=[or(" ð Mentor Journey ",-1)])]),_:1}),L(c,null,{default:ft(()=>[L(Cs,{diagram:rA})]),_:1}),lt("div",GF,[lt("button",{class:"rounded-lg bg-primary-910 px-6 py-3 text-white transition hover:bg-primary-950",onClick:h[1]||(h[1]=m=>o.value=!o.value)},ee(o.value?"ð¼ SkryÅ¥ detaily":"ð½ ZobraziÅ¥ detailný popis fáz"),1)]),Er(lt("div",VF,[L(u,{"phase-number":"0",title:"Aplikácia / Prejavenie záujmu",duration:"Prvý krok",description:"Záujemca o rolu mentora vyplnà aplikáciu cez platformu GROWNi. Proces sa lÃÅ¡i podľa toho, Äi už má alebo nemá úÄet."},{activities:ft(()=>[L(l,{icon:"â
",title:"Aplikácia z pohľadu prihláseného usera",description:"Vyplnenie profilu mentora - skúsenosti, oblasti mentoringu, motivácia (rýchly proces pre existujúcich použÃvateľov)"}),L(l,{icon:"ð",title:"Aplikácia z pohľadu nového (neprihláseného) usera",description:"1. Registrácia na GROWNi, 2. Vyplnenie profilu mentora - skúsenosti, oblasti mentoringu, motivácia"}),L(l,{icon:"ð§",title:"NominaÄný proces",description:"MožnosÅ¥ odporúÄania od peer z komunity, kampane, alebo priamy organický nábor"})]),extras:ft(()=>[L(d,{icon:"ð¡",title:"Tip",description:"Ak už máte úÄet na GROWNi a vyplnený profil, aplikácia ako mentor je rýchlejÅ¡ia. StaÄà doplniÅ¥ oblasti mentoringu a motiváciu."})]),_:1}),L(p),L(u,{"phase-number":"1",title:"Hodnotenie / Výber",duration:"Vyhodnotenie",description:"LEAF tÃm vyhodnocuje aplikácie mentorov a rozhoduje o prijatà do TOP programu alebo presmerovanà do Å¡tandardného GROWNi mentoringu."},{activities:ft(()=>[L(l,{icon:"ð",title:"Vyhodnotenie aplikácie",description:"LEAF tÃm kontroluje skúsenosti, oblasti mentoringu a zhodu s programom"}),L(l,{icon:"âï¸",title:"Rozhodnutie o prijatÃ",description:"Výber mentorov pre TOP program (Mentoring Network Pre Svetové Slovensko)"})]),extras:ft(()=>
403[L(y,{title:"Rozhodnutie o forme mentoringu","option1-label":"â
TOP Program","option1-description":"Prijatie do 8-mesaÄného programu Mentoring Network Pre Svetové Slovensko ako mentor","option2-label":"ð± Å tandardný GROWNi Mentoring","option2-description":"Presmerovanie do Å¡tandardného GROWNi mentoring programu (stále zmysluplná prÃležitosÅ¥)"})]),_:1}),L(p),L(u,{"phase-number":"2",title:"Objavenie & Motivácia",duration:"Pred profilom",description:"Mentor sa zoznamuje s prÃležitosÅ¥ou, hodnotou mentoringu a tým, Äo znamená byÅ¥ mentorom."},{activities:ft(()=>[L(l,{icon:"ð¥ï¸",title:"Onboarding obrazovky",description:"5 obrazoviek: Vitaj, Äo je mentoring, Ako funguje, Äo zÃskaÅ¡, Pripravený zaÄaÅ¥"}),L(l,{icon:"ð¥",title:"Video",description:"PrÃbehy mentorstva, dopad na Slovensko"}),L(l,{icon:"ð¡",title:"Value proposition",description:"Prispej k budúcnosti Slovenska, uÄ sa cez dávanie, rozÅ¡iruj sieÅ¥"})]),extras:ft(()=>[L(d,{icon:"ð",title:"PreÄo mentorovaÅ¥?",description:"Zmysluplný dopad ⢠Vlastný rast ⢠Rozvoj schopnostà poÄúvaÅ¥ a viesÅ¥ ⢠InÅ¡pirácia od mladej generácie"})]),_:1}),L(p),L(u,{"phase-number":"3",title:"VylepÅ¡enie profilu",duration:"VylepÅ¡enie",description:"Mentor vylepÅ¡uje profil s podporou AI, definuje oblasti mentoringu a preferenÄné nastavenia."},{activities:ft(()=>[L(l,{icon:"ð",title:"Profil mentora",description:"Skúsenosti, oblasti mentoringu, tagy, cieľovka (AI dopĺÅa z dostupných zdrojov)"}),L(l,{icon:"ð",title:"DotaznÃky",description:"Sebapoznanie, Kohlberg Assessment, doplnenie chýbajúcich ÄastÃ"}),L(l,{icon:"âï¸",title:"Nastavenia",description:"PreferenÄné nastavenia, dostupnosÅ¥"}),L(l,{icon:"ð",title:"Commitment",description:"PrÃsľub prÃspevku (Äas a/alebo financie)"})]),extras:ft(()=>[...h[6]||(h[6]=[lt("div",{class:"mt-4 flex flex-wrap gap-2"},[lt("span",{class:"tool-tag"},"AI asistent"),lt("span",{class:"tool-tag"},"DotaznÃky"),lt("span",{class:"tool-tag"},"Profil builder")],-1)])]),_:1}),L(p),L(u,{"phase-number":"4",title:"Po vytvorenà profilu",duration:"Aktivácia",description:"Mentor dostáva materiály, odsúhlasuje hodnoty a pripravuje sa na žiadosti."},{activities:ft(()=>[L(l,{icon:"ð",title:"Mentorský balÃÄek",description:"PrÃruÄka, 5 krokov mentoringu, checklist prvého stretnutia (PDF)"}),L(l,{icon:"â
",title:"Hodnoty a záväzky",description:"NestranÃckosÅ¥, reÅ¡pekt, odpovedanie na requesty, spolutvorca platformy"}),L(l,{icon:"ð§",title:"Welcome email",description:"'Tvoj profil je aktÃvny' + info Äo bude Äalej"}),L(l,{icon:"ð",title:"Dashboard",description:"PrÃstup k vÅ¡etkým správam, úprava profilu, notifikácie"})]),extras:ft(()=>[L(d,{icon:"â³",title:"Äakanie na matching",description:"Mentor Äaká na matching proces. Dostane info: 'stay tuned do 22.12.2025'"})]),_:1}),L(p),L(u,{"phase-number":"5",title:"Matching & ŽiadosÅ¥",duration:"Do 22.12.2025",description:"LEAF odporuÄà mentora menteeovi na základe AI zhody. Mentor dostáva žiadosÅ¥ a rozhoduje sa."},{activities:ft(()=>[L(l,{icon:"ð¤",title:"LEAF odporúÄanie",description:"LEAF odporuÄà mentorovi menteeho na základe zhody (preferenÄné nastavenie si môže mentor definovaÅ¥ sám)"}),L(l,{icon:"ð§",title:"Notifikácia",description:"'Máš novú žiadosÅ¥ o mentoring' + profil menteeho"}),L(l,{icon:"â",title:"Ãvodný rozhovor",description:"30-45 min nezáväzné stretnutie, potvrdenie preference"}),L(l,{icon:"â
",title:"Prijatie/Odmietnutie",description:"Rozhodnutie na základe zhody a kapacity"})]),extras:ft(()=>[L(d,{icon:"ð§",title:"Email s tipmi",description:"Tipy pre prvé stretnutie, ako nastaviÅ¥ cieľ mentoringu, frekvenciu a formu stretnutÃ, odkaz na materiály (5 krokov mentoringu, Ako viesÅ¥ prvé stretnutie, Äo robiÅ¥ a Äo nie)"})]),_:1}),L(p),L(u,{"phase-number":"6",title:"Kick-off Event",duration:"22.12.2025",description:"Oficiálny oslavný event, networking a Å¡kolenie komunity mentorov."},{activities:ft(()=>[L(l,{icon:"ð",title:"Welcome Event",description:"Hlavný osobný event - oslava zaÄiatku"}),L(l,{icon:"ð",title:"Organizované Å¡kolenie",description:"Å kolenie na stanovenie cieľov a priebeh mentoringu"}),L(l,{icon:"ð¤",title:"Networking",description:"Spoznanie potential mentors/mentees v komunite"})]),_:1}),L(p),L(u,{"phase-number":"7",title:"AktÃvny Mentoring",duration:"4 mesiace (vopred definované)",description:"Pravidelné 1:1 stretnutia,
403komunitné aktivity a zdieľanie skúsenostÃ."},{activities:ft(()=>[L(l,{icon:"ð¬",title:"1:1 Stretnutia",description:"Pravidelné rozhovory s menteeom podľa mentorskej dohody"}),L(l,{icon:"ð",title:"Zdieľanie learningu",description:"Mentor môže zdieľaÅ¥ univerzálne uÄenie (2-3 min video alebo text)"}),L(l,{icon:"ð¨âð«",title:"Vedenie skupiny",description:"MožnosÅ¥ uÄiÅ¥ malú skupinu, vytvoriÅ¥ krátku lekciu"}),L(l,{icon:"ð",title:"MONTHLY INPUT SESSIONS",description:"1-2 prÃležitosti za 4 mesiace na segment networking (primárne online)"})]),extras:ft(()=>[L(d,{icon:"ð±",title:"Komunita = 20% mentoringu",description:"Komunitné aktivity tvoria dôležitú ÄasÅ¥ programu - treningy dostupné pre celú komunitu, networking, výmena skúsenostÃ"}),L(d,{icon:"ð§",title:"Sprievodca v platforme",description:"4 kroky: (1) Prvé stretnutie + mentorská dohoda, (2) Stanovenie cieľov, (3) Spolupráca s reflexiou, (4) UkonÄenie a oslava"})]),_:1}),L(p),L(u,{"phase-number":"8",title:"Vyhodnotenie & ÄalÅ¡ie kroky",duration:"Koniec programu",description:"Reflexia, spätná väzba, testimonials a ponuka ÄalÅ¡Ãch prÃležitostÃ."},{activities:ft(()=>
403[L(l,{icon:"ð",title:"Spätná väzba",description:"Feedback na menteeho + AI zbiera poÄet 'dobrých rozhovorov'"}),L(l,{icon:"ð¬",title:"Call s TOP Contributors",description:"Zistenie spokojnosti + zÃskaÅ¥ testimonials"}),L(l,{icon:"ð",title:"Final Event",description:"Oslava, LinkedIn správa, blahoželania, ocenenia v profile"}),L(l,{icon:"ð",title:"Äalšà mentoring",description:"MožnosÅ¥ ÄalÅ¡ieho mentoringu, cross-sell na iné prÃležitosti na GROWNi"})]),_:1})],512),[[Mr,o.value]])],512),[[Mr,r.value==="mentor"]]),Er(lt("div",XF,[L(wi,{variant:1,class:"mb-8 text-center text-primary-950"},{default:ft(()=>[...h[7]||(h[7]=[or(" ð¢ Company/Sponsor Journey ",-1)])]),_:1}),L(c,null,{default:ft(()=>[L(Cs,{diagram:iA})]),_:1}),lt("div",ZF,[lt("button",{class:"rounded-lg bg-primary-910 px-6 py-3 text-white transition hover:bg-primary-950",onClick:h[2]||(h[2]=m=>s.value=!s.value)},ee(s.value?"ð¼ SkryÅ¥ detaily":"ð½ ZobraziÅ¥ detailný popis fáz"),1)]),Er(lt("div",KF,[L(u,{"phase-number":"1",title:"Objavenie & Acquisition",duration:"Prvý kontakt",description:"SpoloÄnosÅ¥ sa dozvedá o GROWNi mentoring programe a jeho prÃnosoch pre firmy."},{activities:ft(()=>[L(l,{icon:"ð¢",title:"Kampane",description:"Oslovenie CEOs, HR manažérov"}),L(l,{icon:"ð¤",title:"Peer odporúÄanie",description:"NominaÄný proces od existujúcich partnerov"}),L(l,{icon:"ð¯",title:"Value proposition",description:"Posilnenie leadership pipeline, employer branding, viditeľný dopad, prepojenie s top talentom"})]),extras:ft(()=>[L(d,{icon:"ð¼",title:"PreÄo podporiÅ¥?",description:"⢠Rozvoj leadership pipeline pre Slovensko<br>⢠Employer branding a prepojenie s top talentmi<br>⢠Viditeľný spoloÄenský dopad<br>⢠Podpora rastu budúcich lÃder"})]),_:1}),L(p),L(u,{"phase-number":"2",title:"Onboarding & Commitment",duration:"Zahájenie spolupráce",description:"SpoloÄnosÅ¥ sa zaväzuje podporiÅ¥ program finanÄne alebo nominovanÃm mentorov/mentees."},{activities:ft(()=>[L(l,{icon:"ð",title:"Prieskum potrieb",description:"Zistenie formy spolupráce (financie, mentori, mentees, sponsoring)"}),L(l,{icon:"ð°",title:"FinanÄný prÃspevok",description:"Podpora myÅ¡lienky a vÃzie, vystavenie FA alebo link na PODPOR NÃS"}),L(l,{icon:"ð¥",title:"Nominácia",description:"OdporuÄenie svojich zamestnancov ako mentorov alebo mentees"}),L(l,{icon:"ð",title:"Dohoda o partnerstve",description:"Forma spolupráce, benefity, viditeľnosÅ¥"})]),extras:ft(()=>[...h[8]||(h[8]=[lt("div",{class:"mt-4 flex flex-wrap gap-2"},[lt("span",{class:"tool-tag"},"Survey"),lt("span",{class:"tool-tag"},"Partnership dohoda"),lt("span",{class:"tool-tag"},"Invoice/FA")],-1)])]),_:1}),L(p),L(u,{"phase-number":"3",title:"AktÃvna úÄasÅ¥",duration:"PoÄas programu",description:"SpoloÄnosÅ¥ sa aktÃvne zapája do programu a komunity."},{activities:ft(()=>[L(l,{icon:"ð¤",title:"ÃÄasÅ¥ na eventoch",description:"Kick-off event, segment stretnutia, final event"}),L(l,{icon:"ð",title:"Input sessions",description:"Poskytnutie Å¡kolenà alebo workshopov pre komunitu"}),L(l,{icon:"ð",title:"ViditeľnosÅ¥",description:"Logo na stránke, PR, sociálne siete, case studies"}),L(l,{icon:"ð¤",title:"Networking",description:"Prepojenie s mentormi, menteami, inými spoloÄnosÅ¥ami"})]),extras:ft(()=>[L(d,{icon:"ð",title:"Reporting",description:"Priebežné updates o dopade programu, poÄte mentoring párov, úspechoch"})]),_:1}),L(p),L(u,{"phase-number":"4",title:"Dopad & Obnovenie",duration:"Koniec programu",description:"Vyhodnotenie dopadu a diskusia o ÄalÅ¡ej spolupráci."},{activities:ft(()=>[L(l,{icon:"ð",title:"Impact report",description:"Detailné zhodnotenie výsledkov programu"}),L(l,{icon:"ð¬",title:"Testimonials",description:"Zbieranie prÃbehov od mentors/mentees zo spoloÄnosti"}),L(l,{icon:"ð",title:"Oslava úspechov",description:"ÃÄasÅ¥ na final event, ocenenie prÃspevku"}),L(l,{icon:"ð",title:"Obnovenie spolupráce",description:"Diskusia o ÄalÅ¡om roÄnÃku, rozÅ¡Ãrenie spolupráce"})]),extras:ft(()=>[L(d,{icon:"ð¼",title:"Benefity pre spoloÄnosÅ¥",description:"⢠Rozvinutie leadership skills zamestnancov<br>⢠Zviditeľnenie ako spoloÄnosÅ¥ podporujúca rozvoj<br>⢠PrÃstup k talentom z komunity<br>⢠Merateľný spoloÄenský dopad"})]),_:1})],512),[[Mr,s.value]])],512),[[Mr,r.value==="company"]]),Er(lt("div",QF,[L(wi,{variant:1,class:"mb-8 text-center text-primary-950"},{default:ft(()=>[...h[9]||(h[9]=[or(" â Ambassador Journey ",-1)])]),_:1}),L(c,null,{default:ft(()=>[L(Cs,{diagram:oA})]),_:1}),lt("div",JF,[lt("button",{class:"rounded-lg bg-primary-910 px-6 py-3 text-white transition hover:bg-primary-950",onClick:h[3]||(h[3]=m=>a.value=!a.value)},ee(a.value?"ð¼ SkryÅ¥ detaily":"ð½ ZobraziÅ¥ detailný popis fáz"),1)]),Er(lt("div",tA,[L(u,{"phase-number":"1",title:"Objavenie & Motivácia",duration:"Prvý kontakt",description:"Potenciálny ambasádor sa dozvedá o možnosti prispieÅ¥ k rozvoju Slovenska cez GROWNi."},{activities:ft(()=>[L(l,{icon:"ð",title:"VÃzia",description:"PrispieÅ¥ k lepÅ¡iemu Slovensku cez mentoring a rozvoj talentov"}),L(l,{icon:"ð¤",title:"PrÃležitosÅ¥",description:"VyužiÅ¥ svoje skills a Äas na zmysluplný projekt"}),L(l,{icon:"ð¼",title:"Value proposition",description:"CÃtiÅ¥ sa prepojený so Slovenskom, budovaÅ¥ sieÅ¥ kontaktov, prispievaÅ¥ know-how"})]),extras:ft(()=>[L(d,{icon:"â",title:"PreÄo ambasádor?",description:"⢠PrispieÅ¥ skills a Äasom k rozvoju Slovenska<br>⢠CÃtiÅ¥ sa prepojený s komunitou<br>⢠BudovaÅ¥ profesionálnu sieÅ¥<br>⢠ByÅ¥ súÄasÅ¥ou hnutia za lepÅ¡ie Slovensko"})]),_:1}),L(p),L(u,{"phase-number":"2",title:"Onboarding & Výber role",duration:"ZaÄatie spolupráce",description:"Ambasádor sa zoznamuje s možnosÅ¥ami zapojenia a vyberá si formu prÃspevku."},{activities:ft(()=>[L(l,{icon:"ð",title:"Skills mapping",description:"Zistenie skills, záujmov, Äasovej dostupnosti"}),L(l,{icon:"ð¯",title:"Výber role",description:"Segment koordinátor, recruiter mentorov/mentees, trainer, event organizer, content creator"}),L(l,{icon:"ð",title:"Onboarding materiály",description:"PrÃruÄka ambasádora, proces, nástroje, kontakty"}),L(l,{icon:"ð¤",title:"Stretnutie s tÃmom",description:"Spoznanie LEAF tÃmu a ostatných ambasádorov"})]),extras:ft(()=>[...h[10]||(h[10]=[lt("div",{class:"mt-4 flex flex-wrap gap-2"},[lt("span",{class:"tool-tag"},"Skills assessment"),lt("span",{class:"tool-tag"},"Onboarding call"),lt("span",{class:"tool-tag"},"PrÃruÄka")],-1)])]),_:1}),L(p),L(u,{"phase-number":"3",title:"AktÃvny prÃspevok",duration:"PoÄas programu",description:"Ambasádor aktÃvne prispieva podľa zvolenej role a zapája sa do komunity."},{activities:ft(()=>[L(l,{icon:"ð¥",title:"Recruitment",description:"ZÃskavanie TOP mentorov, mentees, sponzorov (referrals/nominations)"}),L(l,{icon:"ð",title:"Å kolenia",description:"Vedenie tréningov pre mentors/mentees"}),L(l,{icon:"ð",title:"Content",description:"Tvorba obsahu (Älánky, videá, social media)"}),L(l,{icon:"ð¤",title:"Eventy",description:"Organizácia alebo úÄasÅ¥ na kick-off, segment meetingoch, final event"})]),extras:ft(()=>[L(d,{icon:"ðï¸",title:"Governance",description:"Early Ambassadors môžu byÅ¥ súÄasÅ¥ou SteerCo/Advisory Board - nie len input, ale aj vyhrnúť rukávy alebo financie"})]),_:1}),L(p),L(u,{"phase-number":"4",title:"Komunita & Rast",duration:"Priebežne",description:"Ambasádor sa stáva súÄasÅ¥ou silnej komunity a rastie spolu s programom."},{activities:ft(()=>[L(l,{icon:"ð¤",title:"Networking",description:"Pravidelné stretnutia ambasádorov, výmena skúsenostÃ"}),L(l,{icon:"ð",title:"Impact tracking",description:"Sledovanie dopadu svojho prÃspevku"}
403),L(l,{icon:"ð",title:"Osobný rozvoj",description:"Rozvoj leadership skills, teaching, organizaÄných schopnostÃ"}),L(l,{icon:"ð",title:"Recognition",description:"Ocenenie prÃspevku, viditeľnosÅ¥, LinkedIn endorsements"})]),extras:ft(()=>[L(d,{icon:"ð",title:"Benefits",description:"⢠Zmysluplný prÃspevok k Slovensku<br>⢠Silná profesionálna sieÅ¥<br>⢠Rozvoj leadership skills<br>⢠ByÅ¥ súÄasÅ¥ou zmeny<br>⢠PrÃstup k exclusive eventom a komunite"})]),_:1}),L(p),L(u,{"phase-number":"5",title:"Dlhodobé partnerstvo",duration:"PokraÄujúce",description:"Ambasádor sa stáva kľúÄovou súÄasÅ¥ou GROWNi ekosystému a mentoring programu."},{activities:ft(()=>[L(l,{icon:"ð¯",title:"Strategický input",description:"ÃÄasÅ¥ v SteerCo/Advisory Board, formovanie budúcnosti programu"}),L(l,{icon:"ð¥",title:"Mentoring ambasádorov",description:"Mentoring nových ambasádorov, zdieľanie best practices"}),L(l,{icon:"ð",title:"Scaling",description:"Pomoc pri rozÅ¡irovanà programu do nových segmentov alebo regiónov"}),L(l,{icon:"ð",title:"Storytelling",description:"Zdieľanie prÃbehu o dopade a budovanie brand ambassadorship"})]),extras:ft(()=>[L(d,{icon:"ð",title:"Long-term Impact",description:"Ambasádori sa stávajú kľúÄovými piliermi GROWNi komunity a prispievajú k systémovej zmene na Slovensku. Ich prÃspevok má merateľný dopad na stovky mentorských vzÅ¥ahov a rozvoj ľudÃ."})]),_:1})],512),[[Mr,a.value]])],512),[[Mr,r.value==="ambassador"]]),L(gu,{class:"mt-12"},{default:ft(()=>[L(wi,{variant:3,class:"mb-4"},{default:ft(()=>[...h[11]||(h[11]=[or("ð Legenda",-1)])]),_:1}),h[12]||(h[12]=lt("div",{class:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4"},[lt("div",{class:"flex items-center gap-3"},[lt("div",{class:"size-8 rounded bg-primary-910"}),lt("span",{class:"text-sm"},[lt("strong",null,"Teal"),or(" - Hlavné fázy procesu")])]),lt("div",{class:"flex items-center gap-3"},[lt("div",{class:"size-8 rounded bg-green-500"}),lt("span",{class:"text-sm"},[lt("strong",null,"Zelená"),or(" - KľúÄové momenty a milestones")])]),lt("div",{class:"flex items-center gap-3"},[lt("div",{class:"size-8 rounded bg-secondary-500"}),lt("span",{class:"text-sm"},[lt("strong",null,"Žltá"),or(" - Rozhodovacie body")])]),lt("div",{class:"flex items-center gap-3"},[lt("div",{class:"size-8 rounded border-2 border-green-500 bg-green-100"}),lt("span",{class:"text-sm"},[lt("strong",null,"Svetlo zelená"),or(" - Dôležité poznámky")])])],-1))]),_:1})])])}}}),QA=Object.freeze(Object.defineProperty({__proto__:null,default:sA},Symbol.toStringTag,{value:"Module"}));export{GT as $,Xt as A,ob as B,cr as C,ql as D,Tu as E,Kw as F,I2 as G,S2 as H,Bl as I,kA as J,SA as K,xi as L,Ec as M,Ac as N,vA as O,TA as P,_A as Q,CA as R,bA as S,wA as T,vt as U,LA as V,BA as W,oC as X,mA as Y,VT as Z,f as _,QC as a,Cw as a$,Do as a0,gA as a1,ca as a2,Ww as a3,RC as a4,Iu as a5,Gi as a6,dc as a7,xa as a8,L2 as a9,hm as aA,lT as aB,me as aC,J_ as aD,$l as aE,Ml as aF,Ts as aG,vw as aH,Tw as aI,Sw as aJ,_w as aK,gw as aL,zp as aM,xw as aN,fw as aO,kw as aP,qp as aQ,yw as aR,Fw as aS,Lw as aT,Bw as aU,Ew as aV,Aw as aW,mw as aX,Wp as aY,ww as aZ,bw as a_,Wn as aa,Zw as ab,Ke as ac,I as ad,R as ae,UC as af,Nu as ag,fA as ah,am as ai,sh as aj,vd as ak,Vo as al,lw as am,Nl as an,dt as ao,IA as ap,PA as aq,jT as ar,Dt as as,pm as at,ut as au,DA as av,ra as aw,gm as ax,ma as ay,ah as az,KC as b,Hp as b0,um as b1,Zp as b2,xu as b3,T2 as b4,Je as b5,nw as b6,yA as b7,_l as b8,Ir as b9,Ro as ba,Sc as bb,o1 as bc,pt as bd,Dp as be,Fe as bf,Kk as bg,wl as bh,Ju as bi,Go as bj,rp as bk,xA as bl,_0 as bm,Gr as bn,_i as bo,ss as bp,Ea as bq,B0 as br,US as bs,QA as bt,Mt as c,Ru as d,le as e,vr as f,tb as g,im as h,ze as i,Bt as j,Yo as k,$ as l,Qp as m,jo as n,uw as o,eb as p,rb as q,ZC as r,JC as s,FA as t,qr as u,dx as v,t_ as w,KA as x,ZA as y,ye as z}; 404//# sourceMappingURL=6lDMWnKv.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.