var Gn=Object.defineProperty,Kn=(he,ut,o)=>ut in he?Gn(he,ut,{enumerable:!0,configurable:!0,writable:!0,value:o}):he[ut]=o,ur=(he,ut,o)=>(Kn(he,"symbol"!=typeof ut?ut+"":ut,o),o);(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[8545],{32857:(he,ut)=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0}),ut.BLANK_URL=ut.relativeFirstCharacters=ut.whitespaceEscapeCharsRegex=ut.urlSchemeRegex=ut.ctrlCharactersRegex=ut.htmlCtrlEntityRegex=ut.htmlEntitiesRegex=ut.invalidProtocolRegex=void 0,ut.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,ut.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,ut.htmlCtrlEntityRegex=/&(newline|tab);/gi,ut.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,ut.urlSchemeRegex=/^.+(:|:)/gim,ut.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,ut.relativeFirstCharacters=[".","/"],ut.BLANK_URL="about:blank"},51336:(he,ut,o)=>{"use strict";ut.N=void 0;var X=o(32857);function rt(G){return G.replace(X.ctrlCharactersRegex,"").replace(X.htmlEntitiesRegex,function($,L){return String.fromCharCode(L)})}function r(G){try{return decodeURIComponent(G)}catch{return G}}ut.N=function j(G){if(!G)return X.BLANK_URL;var A,$=r(G.trim());do{A=($=r($=rt($).replace(X.htmlCtrlEntityRegex,"").replace(X.ctrlCharactersRegex,"").replace(X.whitespaceEscapeCharsRegex,"").trim())).match(X.ctrlCharactersRegex)||$.match(X.htmlEntitiesRegex)||$.match(X.htmlCtrlEntityRegex)||$.match(X.whitespaceEscapeCharsRegex)}while(A&&A.length>0);var L=$;if(!L)return X.BLANK_URL;if(function U(G){return X.relativeFirstCharacters.indexOf(G[0])>-1}(L))return L;var Y=L.trimStart(),m=Y.match(X.urlSchemeRegex);if(!m)return L;var lt=m[0].toLowerCase().trim();if(X.invalidProtocolRegex.test(lt))return X.BLANK_URL;var Lt=Y.replace(/\\/g,"/");if("mailto:"===lt||lt.includes("://"))return Lt;if("http:"===lt||"https:"===lt){if(!function J(G){return URL.canParse(G)}(Lt))return X.BLANK_URL;var Wt=new URL(Lt);return Wt.protocol=Wt.protocol.toLowerCase(),Wt.hostname=Wt.hostname.toLowerCase(),Wt.toString()}return Lt}},45214:function(he){he.exports=function(){"use strict";var ut=1e3,o=6e4,s=36e5,X="millisecond",U="second",rt="minute",J="hour",r="day",j="week",G="month",A="quarter",$="year",L="date",Y="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,lt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Lt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Zt){var mt=["th","st","nd","rd"],yt=Zt%100;return"["+Zt+(mt[(yt-20)%10]||mt[yt]||mt[0])+"]"}},Wt=function(Zt,mt,yt){var le=String(Zt);return!le||le.length>=mt?Zt:""+Array(mt+1-le.length).join(yt)+Zt},q={s:Wt,z:function(Zt){var mt=-Zt.utcOffset(),yt=Math.abs(mt),le=Math.floor(yt/60),ie=yt%60;return(mt<=0?"+":"-")+Wt(le,2,"0")+":"+Wt(ie,2,"0")},m:function Zt(mt,yt){if(mt.date()1)return Zt(ce[0])}else{var Be=mt.name;It[Be]=mt,ie=Be}return!le&&ie&&(Vt=ie),ie||!le&&Vt},re=function(Zt,mt){if(we(Zt))return Zt.clone();var yt="object"==typeof mt?mt:{};return yt.date=Zt,yt.args=arguments,new Me(yt)},fe=q;fe.l=ve,fe.i=we,fe.w=function(Zt,mt){return re(Zt,{locale:mt.$L,utc:mt.$u,x:mt.$x,$offset:mt.$offset})};var Me=function(){function Zt(yt){this.$L=ve(yt.locale,null,!0),this.parse(yt),this.$x=this.$x||yt.x||{},this[$t]=!0}var mt=Zt.prototype;return mt.parse=function(yt){this.$d=function(le){var ie=le.date,xe=le.utc;if(null===ie)return new Date(NaN);if(fe.u(ie))return new Date;if(ie instanceof Date)return new Date(ie);if("string"==typeof ie&&!/Z$/i.test(ie)){var ce=ie.match(m);if(ce){var Be=ce[2]-1||0,De=(ce[7]||"0").substring(0,3);return xe?new Date(Date.UTC(ce[1],Be,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,De)):new Date(ce[1],Be,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,De)}}return new Date(ie)}(yt),this.init()},mt.init=function(){var yt=this.$d;this.$y=yt.getFullYear(),this.$M=yt.getMonth(),this.$D=yt.getDate(),this.$W=yt.getDay(),this.$H=yt.getHours(),this.$m=yt.getMinutes(),this.$s=yt.getSeconds(),this.$ms=yt.getMilliseconds()},mt.$utils=function(){return fe},mt.isValid=function(){return this.$d.toString()!==Y},mt.isSame=function(yt,le){var ie=re(yt);return this.startOf(le)<=ie&&ie<=this.endOf(le)},mt.isAfter=function(yt,le){return re(yt){"use strict";function s(F,u,x){if(F&&F.length){const[f,T]=u,R=Math.PI/180*x,K=Math.cos(R),N=Math.sin(R);for(const xt of F){const[ft,_t]=xt;xt[0]=(ft-f)*K-(_t-T)*N+f,xt[1]=(ft-f)*N+(_t-T)*K+T}}}function X(F,u){return F[0]===u[0]&&F[1]===u[1]}function rt(F,u){var x;const f=u.hachureAngle+90;let T=u.hachureGap;T<0&&(T=4*u.strokeWidth),T=Math.round(Math.max(T,.1));let R=1;return u.roughness>=1&&((null===(x=u.randomizer)||void 0===x?void 0:x.next())||Math.random())>.7&&(R=T),function U(F,u,x,f=1){const T=x,R=Math.max(u,.1),K=F[0]&&F[0][0]&&"number"==typeof F[0][0]?[F]:F,N=[0,0];if(T)for(const ft of K)s(ft,N,T);const xt=function(ft,_t,ae){const Ft=[];for(const oe of ft){const Se=[...oe];X(Se[0],Se[Se.length-1])||Se.push([Se[0][0],Se[0][1]]),Se.length>2&&Ft.push(Se)}const Pt=[];_t=Math.max(_t,.1);const Xt=[];for(const oe of Ft)for(let Se=0;Seoe.yminSe.ymin?1:oe.xSe.x?1:oe.ymax===Se.ymax?0:(oe.ymax-Se.ymax)/Math.abs(oe.ymax-Se.ymax)),!Xt.length)return Pt;let ye=[],be=Xt[0].ymin,me=0;for(;ye.length||Xt.length;){if(Xt.length){let oe=-1;for(let Se=0;Sebe);Se++)oe=Se;Xt.splice(0,oe+1).forEach(Se=>{ye.push({s:be,edge:Se})})}if(ye=ye.filter(oe=>!(oe.edge.ymax<=be)),ye.sort((oe,Se)=>oe.edge.x===Se.edge.x?0:(oe.edge.x-Se.edge.x)/Math.abs(oe.edge.x-Se.edge.x)),(1!==ae||me%_t==0)&&ye.length>1)for(let oe=0;oe=ye.length)break;const je=ye[oe].edge,qe=ye[Se].edge;Pt.push([[Math.round(je.x),be],[Math.round(qe.x),be]])}be+=ae,ye.forEach(oe=>{oe.edge.x=oe.edge.x+ae*oe.edge.islope}),me++}return Pt}(K,R,f);if(T){for(const ft of K)s(ft,N,-T);!function(ft,_t,ae){const Ft=[];ft.forEach(Pt=>Ft.push(...Pt)),s(Ft,_t,ae)}(xt,N,-T)}return xt}(F,T,f,R||1)}o.d(ut,{Z:()=>de});class J{constructor(u){this.helper=u}fillPolygons(u,x){return this._fillPolygons(u,x)}_fillPolygons(u,x){const f=rt(u,x);return{type:"fillSketch",ops:this.renderLines(f,x)}}renderLines(u,x){const f=[];for(const T of u)f.push(...this.helper.doubleLineOps(T[0][0],T[0][1],T[1][0],T[1][1],x));return f}}function r(F){const u=F[0],x=F[1];return Math.sqrt(Math.pow(u[0]-x[0],2)+Math.pow(u[1]-x[1],2))}class j extends J{fillPolygons(u,x){let f=x.hachureGap;f<0&&(f=4*x.strokeWidth),f=Math.max(f,.1);const T=rt(u,Object.assign({},x,{hachureGap:f})),R=Math.PI/180*x.hachureAngle,K=[],N=.5*f*Math.cos(R),xt=.5*f*Math.sin(R);for(const[ft,_t]of T)r([ft,_t])&&K.push([[ft[0]-N,ft[1]+xt],[..._t]],[[ft[0]+N,ft[1]-xt],[..._t]]);return{type:"fillSketch",ops:this.renderLines(K,x)}}}class G extends J{fillPolygons(u,x){const f=this._fillPolygons(u,x),T=Object.assign({},x,{hachureAngle:x.hachureAngle+90}),R=this._fillPolygons(u,T);return f.ops=f.ops.concat(R.ops),f}}class A{constructor(u){this.helper=u}fillPolygons(u,x){const f=rt(u,x=Object.assign({},x,{hachureAngle:0}));return this.dotsOnLines(f,x)}dotsOnLines(u,x){const f=[];let T=x.hachureGap;T<0&&(T=4*x.strokeWidth),T=Math.max(T,.1);let R=x.fillWeight;R<0&&(R=x.strokeWidth/2);const K=T/4;for(const N of u){const xt=r(N),ft=xt/T,_t=Math.ceil(ft)-1,ae=xt-_t*T,Ft=(N[0][0]+N[1][0])/2-T/4,Pt=Math.min(N[0][1],N[1][1]);for(let Xt=0;Xt<_t;Xt++){const ye=Pt+ae+Xt*T,be=Ft-K+2*Math.random()*K,me=ye-K+2*Math.random()*K,oe=this.helper.ellipse(be,me,R,R,x);f.push(...oe.ops)}}return{type:"fillSketch",ops:f}}}class ${constructor(u){this.helper=u}fillPolygons(u,x){const f=rt(u,x);return{type:"fillSketch",ops:this.dashedLine(f,x)}}dashedLine(u,x){const f=x.dashOffset<0?x.hachureGap<0?4*x.strokeWidth:x.hachureGap:x.dashOffset,T=x.dashGap<0?x.hachureGap<0?4*x.strokeWidth:x.hachureGap:x.dashGap,R=[];return u.forEach(K=>{const N=r(K),xt=Math.floor(N/(f+T)),ft=(N+T-xt*(f+T))/2;let _t=K[0],ae=K[1];_t[0]>ae[0]&&(_t=K[1],ae=K[0]);const Ft=Math.atan((ae[1]-_t[1])/(ae[0]-_t[0]));for(let Pt=0;Pt{const K=r(R),N=Math.round(K/(2*x));let xt=R[0],ft=R[1];xt[0]>ft[0]&&(xt=R[1],ft=R[0]);const _t=Math.atan((ft[1]-xt[1])/(ft[0]-xt[0]));for(let ae=0;ae_t%2?ft+x:ft+u);R.push({key:"C",data:xt}),u=xt[4],x=xt[5];break}case"Q":R.push({key:"Q",data:[...N]}),u=N[2],x=N[3];break;case"q":{const xt=N.map((ft,_t)=>_t%2?ft+x:ft+u);R.push({key:"Q",data:xt}),u=xt[2],x=xt[3];break}case"A":R.push({key:"A",data:[...N]}),u=N[5],x=N[6];break;case"a":u+=N[5],x+=N[6],R.push({key:"A",data:[N[0],N[1],N[2],N[3],N[4],u,x]});break;case"H":R.push({key:"H",data:[...N]}),u=N[0];break;case"h":u+=N[0],R.push({key:"H",data:[u]});break;case"V":R.push({key:"V",data:[...N]}),x=N[0];break;case"v":x+=N[0],R.push({key:"V",data:[x]});break;case"S":R.push({key:"S",data:[...N]}),u=N[2],x=N[3];break;case"s":{const xt=N.map((ft,_t)=>_t%2?ft+x:ft+u);R.push({key:"S",data:xt}),u=xt[2],x=xt[3];break}case"T":R.push({key:"T",data:[...N]}),u=N[0],x=N[1];break;case"t":u+=N[0],x+=N[1],R.push({key:"T",data:[u,x]});break;case"Z":case"z":R.push({key:"Z",data:[]}),u=f,x=T}return R}function we(F){const u=[];let x="",f=0,T=0,R=0,K=0,N=0,xt=0;for(const{key:ft,data:_t}of F){switch(ft){case"M":u.push({key:"M",data:[..._t]}),[f,T]=_t,[R,K]=_t;break;case"C":u.push({key:"C",data:[..._t]}),f=_t[4],T=_t[5],N=_t[2],xt=_t[3];break;case"L":u.push({key:"L",data:[..._t]}),[f,T]=_t;break;case"H":f=_t[0],u.push({key:"L",data:[f,T]});break;case"V":T=_t[0],u.push({key:"L",data:[f,T]});break;case"S":{let ae=0,Ft=0;"C"===x||"S"===x?(ae=f+(f-N),Ft=T+(T-xt)):(ae=f,Ft=T),u.push({key:"C",data:[ae,Ft,..._t]}),N=_t[0],xt=_t[1],f=_t[2],T=_t[3];break}case"T":{const[ae,Ft]=_t;let Pt=0,Xt=0;"Q"===x||"T"===x?(Pt=f+(f-N),Xt=T+(T-xt)):(Pt=f,Xt=T);const ye=f+2*(Pt-f)/3,be=T+2*(Xt-T)/3,me=ae+2*(Pt-ae)/3,oe=Ft+2*(Xt-Ft)/3;u.push({key:"C",data:[ye,be,me,oe,ae,Ft]}),N=Pt,xt=Xt,f=ae,T=Ft;break}case"Q":{const[ae,Ft,Pt,Xt]=_t,ye=f+2*(ae-f)/3,be=T+2*(Ft-T)/3,me=Pt+2*(ae-Pt)/3,oe=Xt+2*(Ft-Xt)/3;u.push({key:"C",data:[ye,be,me,oe,Pt,Xt]}),N=ae,xt=Ft,f=Pt,T=Xt;break}case"A":{const ae=Math.abs(_t[0]),Ft=Math.abs(_t[1]),Pt=_t[2],Xt=_t[3],ye=_t[4],be=_t[5],me=_t[6];0===ae||0===Ft?(u.push({key:"C",data:[f,T,be,me,be,me]}),f=be,T=me):(f!==be||T!==me)&&(re(f,T,be,me,ae,Ft,Pt,Xt,ye).forEach(function(oe){u.push({key:"C",data:oe})}),f=be,T=me);break}case"Z":u.push({key:"Z",data:[]}),f=R,T=K}x=ft}return u}function ve(F,u,x){return[F*Math.cos(x)-u*Math.sin(x),F*Math.sin(x)+u*Math.cos(x)]}function re(F,u,x,f,T,R,K,N,xt,ft){const _t=(ae=K,Math.PI*ae/180);var ae;let Ft=[],Pt=0,Xt=0,ye=0,be=0;if(ft)[Pt,Xt,ye,be]=ft;else{[F,u]=ve(F,u,-_t),[x,f]=ve(x,f,-_t);const xr=(F-x)/2,Ke=(u-f)/2;let gr=xr*xr/(T*T)+Ke*Ke/(R*R);gr>1&&(gr=Math.sqrt(gr),T*=gr,R*=gr);const Ir=T*T,Sr=R*R,Yr=Ir*Sr-Ir*Ke*Ke-Sr*xr*xr,Xe=Ir*Ke*Ke+Sr*xr*xr,Xr=(N===xt?-1:1)*Math.sqrt(Math.abs(Yr/Xe));ye=Xr*T*Ke/R+(F+x)/2,be=Xr*-R*xr/T+(u+f)/2,Pt=Math.asin(parseFloat(((u-be)/R).toFixed(9))),Xt=Math.asin(parseFloat(((f-be)/R).toFixed(9))),FXt&&(Pt-=2*Math.PI),!xt&&Xt>Pt&&(Xt-=2*Math.PI)}let me=Xt-Pt;if(Math.abs(me)>120*Math.PI/180){const xr=Xt,Ke=x,gr=f;Xt=xt&&Xt>Pt?Pt+120*Math.PI/180*1:Pt+120*Math.PI/180*-1,Ft=re(x=ye+T*Math.cos(Xt),f=be+R*Math.sin(Xt),Ke,gr,T,R,K,0,xt,[Xt,xr,ye,be])}me=Xt-Pt;const oe=Math.cos(Pt),Se=Math.sin(Pt),je=Math.cos(Xt),qe=Math.sin(Xt),He=Math.tan(me/4),rr=4/3*T*He,Oe=4/3*R*He,tr=[F,u],er=[F+rr*Se,u-Oe*oe],yr=[x+rr*qe,f-Oe*je],Ur=[x,f];if(er[0]=2*tr[0]-er[0],er[1]=2*tr[1]-er[1],ft)return[er,yr,Ur].concat(Ft);{Ft=[er,yr,Ur].concat(Ft);const xr=[];for(let Ke=0;Ke2){const T=[];for(let R=0;R2*Math.PI&&(Pt=0,Xt=2*Math.PI);const ye=2*Math.PI/xt.curveStepCount,be=Math.min(ye/2,(Xt-Pt)/2),me=ke(be,ft,_t,ae,Ft,Pt,Xt,1,xt);if(!xt.disableMultiStroke){const oe=ke(be,ft,_t,ae,Ft,Pt,Xt,1.5,xt);me.push(...oe)}return K&&(N?me.push(...Qt(ft,_t,ft+ae*Math.cos(Pt),_t+Ft*Math.sin(Pt),xt),...Qt(ft,_t,ft+ae*Math.cos(Xt),_t+Ft*Math.sin(Xt),xt)):me.push({op:"lineTo",data:[ft,_t]},{op:"lineTo",data:[ft+ae*Math.cos(Pt),_t+Ft*Math.sin(Pt)]})),{type:"path",ops:me}}function xe(F,u){const x=we($t(It(F))),f=[];let T=[0,0],R=[0,0];for(const{key:K,data:N}of x)switch(K){case"M":R=[N[0],N[1]],T=[N[0],N[1]];break;case"L":f.push(...Qt(R[0],R[1],N[0],N[1],u)),R=[N[0],N[1]];break;case"C":{const[xt,ft,_t,ae,Ft,Pt]=N;f.push(...vt(xt,ft,_t,ae,Ft,Pt,R,u)),R=[Ft,Pt];break}case"Z":f.push(...Qt(R[0],R[1],T[0],T[1],u)),R=[T[0],T[1]]}return{type:"path",ops:f}}function ce(F,u){const x=[];for(const f of F)if(f.length){const T=u.maxRandomnessOffset||0,R=f.length;if(R>2){x.push({op:"move",data:[f[0][0]+Et(T,u),f[0][1]+Et(T,u)]});for(let K=1;K500?.4:-.0016668*xt+1.233334;let _t=T.maxRandomnessOffset||0;_t*_t*100>N&&(_t=xt/10);const ae=_t/2,Ft=.2+.2*Mt(T);let Pt=T.bowing*T.maxRandomnessOffset*(f-u)/200,Xt=T.bowing*T.maxRandomnessOffset*(F-x)/200;Pt=Et(Pt,T,ft),Xt=Et(Xt,T,ft);const ye=[],be=()=>Et(ae,T,ft),me=()=>Et(_t,T,ft),oe=T.preserveVertices;return R&&(K?ye.push({op:"move",data:[F+(oe?0:be()),u+(oe?0:be())]}):ye.push({op:"move",data:[F+(oe?0:Et(_t,T,ft)),u+(oe?0:Et(_t,T,ft))]})),K?ye.push({op:"bcurveTo",data:[Pt+F+(x-F)*Ft+be(),Xt+u+(f-u)*Ft+be(),Pt+F+2*(x-F)*Ft+be(),Xt+u+2*(f-u)*Ft+be(),x+(oe?0:be()),f+(oe?0:be())]}):ye.push({op:"bcurveTo",data:[Pt+F+(x-F)*Ft+me(),Xt+u+(f-u)*Ft+me(),Pt+F+2*(x-F)*Ft+me(),Xt+u+2*(f-u)*Ft+me(),x+(oe?0:me()),f+(oe?0:me())]}),ye}function qt(F,u,x){if(!F.length)return[];const f=[];f.push([F[0][0]+Et(u,x),F[0][1]+Et(u,x)]),f.push([F[0][0]+Et(u,x),F[0][1]+Et(u,x)]);for(let T=1;T3){const R=[],K=1-x.curveTightness;T.push({op:"move",data:[F[1][0],F[1][1]]});for(let N=1;N+21&&T.push(N)):T.push(N),T.push(F[u+3])}else{const xt=F[u+0],ft=F[u+1],_t=F[u+2],ae=F[u+3],Ft=bt(xt,ft,.5),Pt=bt(ft,_t,.5),Xt=bt(_t,ae,.5),ye=bt(Ft,Pt,.5),be=bt(Pt,Xt,.5),me=bt(ye,be,.5);V([xt,Ft,ye,me],0,x,T),V([me,be,Xt,ae],0,x,T)}var R,K;return T}function kt(F,u){return Bt(F,0,F.length,u)}function Bt(F,u,x,f,T){const R=T||[],K=F[u],N=F[x-1];let xt=0,ft=1;for(let _t=u+1;_txt&&(xt=ae,ft=_t)}return Math.sqrt(xt)>f?(Bt(F,u,ft+1,f,R),Bt(F,ft,x,f,R)):(R.length||R.push(K),R.push(N)),R}function Yt(F,u=.15,x){const f=[],T=(F.length-1)/3;for(let R=0;R0?Bt(f,0,f.length,x):f}const Gt="none";class Dt{constructor(u){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=u||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(u){return u?Object.assign({},this.defaultOptions,u):this.defaultOptions}_d(u,x,f){return{shape:u,sets:x||[],options:f||this.defaultOptions}}line(u,x,f,T,R){const K=this._o(R);return this._d("line",[Me(u,x,f,T,K)],K)}rectangle(u,x,f,T,R){const K=this._o(R),N=[],xt=function Zt(F,u,x,f,T){return Re([[F,u],[F+x,u],[F+x,u+f],[F,u+f]],!0,T)}(u,x,f,T,K);if(K.fill){const ft=[[u,x],[u+f,x],[u+f,x+T],[u,x+T]];"solid"===K.fillStyle?N.push(ce([ft],K)):N.push(Be([ft],K))}return K.stroke!==Gt&&N.push(xt),this._d("rectangle",N,K)}ellipse(u,x,f,T,R){const K=this._o(R),N=[],xt=yt(f,T,K),ft=le(u,x,K,xt);if(K.fill)if("solid"===K.fillStyle){const _t=le(u,x,K,xt).opset;_t.type="fillPath",N.push(_t)}else N.push(Be([ft.estimatedPoints],K));return K.stroke!==Gt&&N.push(ft.opset),this._d("ellipse",N,K)}circle(u,x,f,T){const R=this.ellipse(u,x,f,f,T);return R.shape="circle",R}linearPath(u,x){const f=this._o(x);return this._d("linearPath",[Re(u,!1,f)],f)}arc(u,x,f,T,R,K,N=!1,xt){const ft=this._o(xt),_t=[],ae=ie(u,x,f,T,R,K,N,!0,ft);if(N&&ft.fill)if("solid"===ft.fillStyle){const Ft=Object.assign({},ft);Ft.disableMultiStroke=!0;const Pt=ie(u,x,f,T,R,K,!0,!1,Ft);Pt.type="fillPath",_t.push(Pt)}else _t.push(function(Ft,Pt,Xt,ye,be,me,oe){const Se=Ft,je=Pt;let qe=Math.abs(Xt/2),He=Math.abs(ye/2);qe+=Et(.01*qe,oe),He+=Et(.01*He,oe);let rr=be,Oe=me;for(;rr<0;)rr+=2*Math.PI,Oe+=2*Math.PI;Oe-rr>2*Math.PI&&(rr=0,Oe=2*Math.PI);const tr=(Oe-rr)/oe.curveStepCount,er=[];for(let yr=rr;yr<=Oe;yr+=tr)er.push([Se+qe*Math.cos(yr),je+He*Math.sin(yr)]);return er.push([Se+qe*Math.cos(Oe),je+He*Math.sin(Oe)]),er.push([Se,je]),Be([er],oe)}(u,x,f,T,R,K,ft));return ft.stroke!==Gt&&_t.push(ae),this._d("arc",_t,ft)}curve(u,x){const f=this._o(x),T=[],R=mt(u,f);if(f.fill&&f.fill!==Gt)if("solid"===f.fillStyle){const K=mt(u,Object.assign(Object.assign({},f),{disableMultiStroke:!0,roughness:f.roughness?f.roughness+f.fillShapeRoughnessGain:0}));T.push({type:"fillPath",ops:this._mergedShape(K.ops)})}else{const K=[],N=u;if(N.length){const xt="number"==typeof N[0][0]?[N]:N;for(const ft of xt)ft.length<3?K.push(...ft):3===ft.length?K.push(...Yt(dt([ft[0],ft[0],ft[1],ft[2]]),10,(1+f.roughness)/2)):K.push(...Yt(dt(ft),10,(1+f.roughness)/2))}K.length&&T.push(Be([K],f))}return f.stroke!==Gt&&T.push(R),this._d("curve",T,f)}polygon(u,x){const f=this._o(x),T=[],R=Re(u,!0,f);return f.fill&&("solid"===f.fillStyle?T.push(ce([u],f)):T.push(Be([u],f))),f.stroke!==Gt&&T.push(R),this._d("polygon",T,f)}path(u,x){const f=this._o(x),T=[];if(!u)return this._d("path",T,f);u=(u||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const R=f.fill&&"transparent"!==f.fill&&f.fill!==Gt,K=f.stroke!==Gt,N=!!(f.simplification&&f.simplification<1),xt=function(_t,ae,Ft){const Pt=we($t(It(_t))),Xt=[];let ye=[],be=[0,0],me=[];const oe=()=>{me.length>=4&&ye.push(...Yt(me,1)),me=[]},Se=()=>{oe(),ye.length&&(Xt.push(ye),ye=[])};for(const{key:qe,data:He}of Pt)switch(qe){case"M":Se(),be=[He[0],He[1]],ye.push(be);break;case"L":oe(),ye.push([He[0],He[1]]);break;case"C":if(!me.length){const rr=ye.length?ye[ye.length-1]:be;me.push([rr[0],rr[1]])}me.push([He[0],He[1]]),me.push([He[2],He[3]]),me.push([He[4],He[5]]);break;case"Z":oe(),ye.push([be[0],be[1]])}if(Se(),!Ft)return Xt;const je=[];for(const qe of Xt){const He=kt(qe,Ft);He.length&&je.push(He)}return je}(u,0,N?4-4*(f.simplification||1):(1+f.roughness)/2),ft=xe(u,f);if(R)if("solid"===f.fillStyle)if(1===xt.length){const _t=xe(u,Object.assign(Object.assign({},f),{disableMultiStroke:!0,roughness:f.roughness?f.roughness+f.fillShapeRoughnessGain:0}));T.push({type:"fillPath",ops:this._mergedShape(_t.ops)})}else T.push(ce(xt,f));else T.push(Be(xt,f));return K&&(N?xt.forEach(_t=>{T.push(Re(_t,!1,f))}):T.push(ft)),this._d("path",T,f)}opsToPath(u,x){let f="";for(const T of u.ops){const R="number"==typeof x&&x>=0?T.data.map(K=>+K.toFixed(x)):T.data;switch(T.op){case"move":f+=`M${R[0]} ${R[1]} `;break;case"bcurveTo":f+=`C${R[0]} ${R[1]}, ${R[2]} ${R[3]}, ${R[4]} ${R[5]} `;break;case"lineTo":f+=`L${R[0]} ${R[1]} `}}return f.trim()}toPaths(u){const x=u.sets||[],f=u.options||this.defaultOptions,T=[];for(const R of x){let K=null;switch(R.type){case"path":K={d:this.opsToPath(R),stroke:f.stroke,strokeWidth:f.strokeWidth,fill:Gt};break;case"fillPath":K={d:this.opsToPath(R),stroke:Gt,strokeWidth:0,fill:f.fill||Gt};break;case"fillSketch":K=this.fillSketch(R,f)}K&&T.push(K)}return T}fillSketch(u,x){let f=x.fillWeight;return f<0&&(f=x.strokeWidth/2),{d:this.opsToPath(u),stroke:x.fill||Gt,strokeWidth:f,fill:Gt}}_mergedShape(u){return u.filter((x,f)=>0===f||"move"!==x.op)}}class ue{constructor(u,x){this.canvas=u,this.ctx=this.canvas.getContext("2d"),this.gen=new Dt(x)}draw(u){const x=u.sets||[],f=u.options||this.getDefaultOptions(),T=this.ctx,R=u.options.fixedDecimalPlaceDigits;for(const K of x)switch(K.type){case"path":T.save(),T.strokeStyle="none"===f.stroke?"transparent":f.stroke,T.lineWidth=f.strokeWidth,f.strokeLineDash&&T.setLineDash(f.strokeLineDash),f.strokeLineDashOffset&&(T.lineDashOffset=f.strokeLineDashOffset),this._drawToContext(T,K,R),T.restore();break;case"fillPath":{T.save(),T.fillStyle=f.fill||"";const N="curve"===u.shape||"polygon"===u.shape||"path"===u.shape?"evenodd":"nonzero";this._drawToContext(T,K,R,N),T.restore();break}case"fillSketch":this.fillSketch(T,K,f)}}fillSketch(u,x,f){let T=f.fillWeight;T<0&&(T=f.strokeWidth/2),u.save(),f.fillLineDash&&u.setLineDash(f.fillLineDash),f.fillLineDashOffset&&(u.lineDashOffset=f.fillLineDashOffset),u.strokeStyle=f.fill||"",u.lineWidth=T,this._drawToContext(u,x,f.fixedDecimalPlaceDigits),u.restore()}_drawToContext(u,x,f,T="nonzero"){u.beginPath();for(const R of x.ops){const K="number"==typeof f&&f>=0?R.data.map(N=>+N.toFixed(f)):R.data;switch(R.op){case"move":u.moveTo(K[0],K[1]);break;case"bcurveTo":u.bezierCurveTo(K[0],K[1],K[2],K[3],K[4],K[5]);break;case"lineTo":u.lineTo(K[0],K[1])}}"fillPath"===x.type?u.fill(T):u.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(u,x,f,T,R){const K=this.gen.line(u,x,f,T,R);return this.draw(K),K}rectangle(u,x,f,T,R){const K=this.gen.rectangle(u,x,f,T,R);return this.draw(K),K}ellipse(u,x,f,T,R){const K=this.gen.ellipse(u,x,f,T,R);return this.draw(K),K}circle(u,x,f,T){const R=this.gen.circle(u,x,f,T);return this.draw(R),R}linearPath(u,x){const f=this.gen.linearPath(u,x);return this.draw(f),f}polygon(u,x){const f=this.gen.polygon(u,x);return this.draw(f),f}arc(u,x,f,T,R,K,N=!1,xt){const ft=this.gen.arc(u,x,f,T,R,K,N,xt);return this.draw(ft),ft}curve(u,x){const f=this.gen.curve(u,x);return this.draw(f),f}path(u,x){const f=this.gen.path(u,x);return this.draw(f),f}}const Ie="http://www.w3.org/2000/svg";class pe{constructor(u,x){this.svg=u,this.gen=new Dt(x)}draw(u){const x=u.sets||[],f=u.options||this.getDefaultOptions(),T=this.svg.ownerDocument||window.document,R=T.createElementNS(Ie,"g"),K=u.options.fixedDecimalPlaceDigits;for(const N of x){let xt=null;switch(N.type){case"path":xt=T.createElementNS(Ie,"path"),xt.setAttribute("d",this.opsToPath(N,K)),xt.setAttribute("stroke",f.stroke),xt.setAttribute("stroke-width",f.strokeWidth+""),xt.setAttribute("fill","none"),f.strokeLineDash&&xt.setAttribute("stroke-dasharray",f.strokeLineDash.join(" ").trim()),f.strokeLineDashOffset&&xt.setAttribute("stroke-dashoffset",`${f.strokeLineDashOffset}`);break;case"fillPath":xt=T.createElementNS(Ie,"path"),xt.setAttribute("d",this.opsToPath(N,K)),xt.setAttribute("stroke","none"),xt.setAttribute("stroke-width","0"),xt.setAttribute("fill",f.fill||""),"curve"!==u.shape&&"polygon"!==u.shape||xt.setAttribute("fill-rule","evenodd");break;case"fillSketch":xt=this.fillSketch(T,N,f)}xt&&R.appendChild(xt)}return R}fillSketch(u,x,f){let T=f.fillWeight;T<0&&(T=f.strokeWidth/2);const R=u.createElementNS(Ie,"path");return R.setAttribute("d",this.opsToPath(x,f.fixedDecimalPlaceDigits)),R.setAttribute("stroke",f.fill||""),R.setAttribute("stroke-width",T+""),R.setAttribute("fill","none"),f.fillLineDash&&R.setAttribute("stroke-dasharray",f.fillLineDash.join(" ").trim()),f.fillLineDashOffset&&R.setAttribute("stroke-dashoffset",`${f.fillLineDashOffset}`),R}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(u,x){return this.gen.opsToPath(u,x)}line(u,x,f,T,R){const K=this.gen.line(u,x,f,T,R);return this.draw(K)}rectangle(u,x,f,T,R){const K=this.gen.rectangle(u,x,f,T,R);return this.draw(K)}ellipse(u,x,f,T,R){const K=this.gen.ellipse(u,x,f,T,R);return this.draw(K)}circle(u,x,f,T){const R=this.gen.circle(u,x,f,T);return this.draw(R)}linearPath(u,x){const f=this.gen.linearPath(u,x);return this.draw(f)}polygon(u,x){const f=this.gen.polygon(u,x);return this.draw(f)}arc(u,x,f,T,R,K,N=!1,xt){const ft=this.gen.arc(u,x,f,T,R,K,N,xt);return this.draw(ft)}curve(u,x){const f=this.gen.curve(u,x);return this.draw(f)}path(u,x){const f=this.gen.path(u,x);return this.draw(f)}}var de={canvas:(F,u)=>new ue(F,u),svg:(F,u)=>new pe(F,u),generator:F=>new Dt(F),newSeed:()=>Dt.newSeed()}},13153:(he,ut,o)=>{"use strict";function s(U){for(var rt=[],J=1;Js})},31235:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>Ie});const{entries:s,setPrototypeOf:X,isFrozen:U,getPrototypeOf:rt,getOwnPropertyDescriptor:J}=Object;let{freeze:r,seal:j,create:G}=Object,{apply:A,construct:$}=typeof Reflect<"u"&&Reflect;r||(r=function(de){return de}),j||(j=function(de){return de}),A||(A=function(de,F,u){return de.apply(F,u)}),$||($=function(de,F){return new de(...F)});const L=Me(Array.prototype.forEach),Y=Me(Array.prototype.lastIndexOf),m=Me(Array.prototype.pop),lt=Me(Array.prototype.push),Lt=Me(Array.prototype.splice),Wt=Me(String.prototype.toLowerCase),q=Me(String.prototype.toString),Vt=Me(String.prototype.match),It=Me(String.prototype.replace),$t=Me(String.prototype.indexOf),we=Me(String.prototype.trim),ve=Me(Object.prototype.hasOwnProperty),re=Me(RegExp.prototype.test),fe=function Re(pe){return function(){for(var de=arguments.length,F=new Array(de),u=0;u1?F-1:0),x=1;x2&&void 0!==arguments[2]?arguments[2]:Wt;X&&X(pe,null);let u=de.length;for(;u--;){let x=de[u];if("string"==typeof x){const f=F(x);f!==x&&(U(de)||(de[u]=f),x=f)}pe[x]=!0}return pe}function mt(pe){for(let de=0;de/gm),ke=j(/\$\{[\w\W]*/gm),vt=j(/^data-[\-\w.\u00B7-\uFFFF]+$/),et=j(/^aria-[\-\w]+$/),dt=j(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nt=j(/^(?:\w+script|data):/i),ht=j(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bt=j(/^html$/i),V=j(/^[a-z][.\w]*(-[.\w]+)+$/i);var kt=Object.freeze({__proto__:null,ARIA_ATTR:et,ATTR_WHITESPACE:ht,CUSTOM_ELEMENT:V,DATA_ATTR:vt,DOCTYPE_NAME:bt,ERB_EXPR:ne,IS_ALLOWED_URI:dt,IS_SCRIPT_OR_DATA:nt,MUSTACHE_EXPR:Ht,TMPLIT_EXPR:ke});const Bt_element=1,Bt_text=3,Bt_progressingInstruction=7,Bt_comment=8,Bt_document=9,Yt=function(){return typeof window>"u"?null:window},Gt=function(de,F){if("object"!=typeof de||"function"!=typeof de.createPolicy)return null;let u=null;const x="data-tt-policy-suffix";F&&F.hasAttribute(x)&&(u=F.getAttribute(x));const f="dompurify"+(u?"#"+u:"");try{return de.createPolicy(f,{createHTML:T=>T,createScriptURL:T=>T})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}};var Ie=function ue(){let pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yt();const de=Le=>ue(Le);if(de.version="3.2.6",de.removed=[],!pe||!pe.document||pe.document.nodeType!==Bt_document||!pe.Element)return de.isSupported=!1,de;let{document:F}=pe;const u=F,x=u.currentScript,{DocumentFragment:f,HTMLTemplateElement:T,Node:R,Element:K,NodeFilter:N,NamedNodeMap:xt=pe.NamedNodeMap||pe.MozNamedAttrMap,HTMLFormElement:ft,DOMParser:_t,trustedTypes:ae}=pe,Ft=K.prototype,Pt=le(Ft,"cloneNode"),Xt=le(Ft,"remove"),ye=le(Ft,"nextSibling"),be=le(Ft,"childNodes"),me=le(Ft,"parentNode");if("function"==typeof T){const Le=F.createElement("template");Le.content&&Le.content.ownerDocument&&(F=Le.content.ownerDocument)}let oe,Se="";const{implementation:je,createNodeIterator:qe,createDocumentFragment:He,getElementsByTagName:rr}=F,{importNode:Oe}=u;let tr={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};de.isSupported="function"==typeof s&&"function"==typeof me&&je&&void 0!==je.createHTMLDocument;const{MUSTACHE_EXPR:er,ERB_EXPR:yr,TMPLIT_EXPR:Ur,DATA_ATTR:xr,ARIA_ATTR:Ke,IS_SCRIPT_OR_DATA:gr,ATTR_WHITESPACE:Ir,CUSTOM_ELEMENT:Sr}=kt;let{IS_ALLOWED_URI:Yr}=kt,Xe=null;const Xr=Zt({},[...ie,...xe,...ce,...De,...jt]);let ir=null;const ri=Zt({},[...Et,...Qt,...wt,...qt]);let Ge=Object.seal(G(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}})),or=null,dr=null,sr=!0,mr=!0,Qr=!1,$r=!0,_r=!1,Mr=!0,Tr=!1,Ar=!1,Wr=!1,fr=!1,Zr=!1,O=!1,l=!0,B=!1;const z="user-content-";let M=!0,st=!1,ct={},St=null;const zt=Zt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ut=null;const _e=Zt({},["audio","video","img","source","image","track"]);let ze=null;const Ae=Zt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Fr=Qe,Gr=!1,Pr=null;const Nr=Zt({},[Ye,$e,Qe],q);let wr=Zt({},["mi","mo","mn","ms","mtext"]),pr=Zt({},["annotation-xml"]);const zr=Zt({},["title","style","font","a","script"]);let lr=null;const ii=["application/xhtml+xml","text/html"],I="text/html";let v=null,Ct=null;const Rt=F.createElement("form"),Ze=function(at){return at instanceof RegExp||at instanceof Function},We=function(){let at=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ct||Ct!==at){if((!at||"object"!=typeof at)&&(at={}),at=yt(at),lr=-1===ii.indexOf(at.PARSER_MEDIA_TYPE)?I:at.PARSER_MEDIA_TYPE,v="application/xhtml+xml"===lr?q:Wt,Xe=ve(at,"ALLOWED_TAGS")?Zt({},at.ALLOWED_TAGS,v):Xr,ir=ve(at,"ALLOWED_ATTR")?Zt({},at.ALLOWED_ATTR,v):ri,Pr=ve(at,"ALLOWED_NAMESPACES")?Zt({},at.ALLOWED_NAMESPACES,q):Nr,ze=ve(at,"ADD_URI_SAFE_ATTR")?Zt(yt(Ae),at.ADD_URI_SAFE_ATTR,v):Ae,Ut=ve(at,"ADD_DATA_URI_TAGS")?Zt(yt(_e),at.ADD_DATA_URI_TAGS,v):_e,St=ve(at,"FORBID_CONTENTS")?Zt({},at.FORBID_CONTENTS,v):zt,or=ve(at,"FORBID_TAGS")?Zt({},at.FORBID_TAGS,v):yt({}),dr=ve(at,"FORBID_ATTR")?Zt({},at.FORBID_ATTR,v):yt({}),ct=!!ve(at,"USE_PROFILES")&&at.USE_PROFILES,sr=!1!==at.ALLOW_ARIA_ATTR,mr=!1!==at.ALLOW_DATA_ATTR,Qr=at.ALLOW_UNKNOWN_PROTOCOLS||!1,$r=!1!==at.ALLOW_SELF_CLOSE_IN_ATTR,_r=at.SAFE_FOR_TEMPLATES||!1,Mr=!1!==at.SAFE_FOR_XML,Tr=at.WHOLE_DOCUMENT||!1,fr=at.RETURN_DOM||!1,Zr=at.RETURN_DOM_FRAGMENT||!1,O=at.RETURN_TRUSTED_TYPE||!1,Wr=at.FORCE_BODY||!1,l=!1!==at.SANITIZE_DOM,B=at.SANITIZE_NAMED_PROPS||!1,M=!1!==at.KEEP_CONTENT,st=at.IN_PLACE||!1,Yr=at.ALLOWED_URI_REGEXP||dt,Fr=at.NAMESPACE||Qe,wr=at.MATHML_TEXT_INTEGRATION_POINTS||wr,pr=at.HTML_INTEGRATION_POINTS||pr,Ge=at.CUSTOM_ELEMENT_HANDLING||{},at.CUSTOM_ELEMENT_HANDLING&&Ze(at.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ge.tagNameCheck=at.CUSTOM_ELEMENT_HANDLING.tagNameCheck),at.CUSTOM_ELEMENT_HANDLING&&Ze(at.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ge.attributeNameCheck=at.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),at.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof at.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ge.allowCustomizedBuiltInElements=at.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_r&&(mr=!1),Zr&&(fr=!0),ct&&(Xe=Zt({},jt),ir=[],!0===ct.html&&(Zt(Xe,ie),Zt(ir,Et)),!0===ct.svg&&(Zt(Xe,xe),Zt(ir,Qt),Zt(ir,qt)),!0===ct.svgFilters&&(Zt(Xe,ce),Zt(ir,Qt),Zt(ir,qt)),!0===ct.mathMl&&(Zt(Xe,De),Zt(ir,wt),Zt(ir,qt))),at.ADD_TAGS&&(Xe===Xr&&(Xe=yt(Xe)),Zt(Xe,at.ADD_TAGS,v)),at.ADD_ATTR&&(ir===ri&&(ir=yt(ir)),Zt(ir,at.ADD_ATTR,v)),at.ADD_URI_SAFE_ATTR&&Zt(ze,at.ADD_URI_SAFE_ATTR,v),at.FORBID_CONTENTS&&(St===zt&&(St=yt(St)),Zt(St,at.FORBID_CONTENTS,v)),M&&(Xe["#text"]=!0),Tr&&Zt(Xe,["html","head","body"]),Xe.table&&(Zt(Xe,["tbody"]),delete or.tbody),at.TRUSTED_TYPES_POLICY){if("function"!=typeof at.TRUSTED_TYPES_POLICY.createHTML)throw fe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof at.TRUSTED_TYPES_POLICY.createScriptURL)throw fe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');oe=at.TRUSTED_TYPES_POLICY,Se=oe.createHTML("")}else void 0===oe&&(oe=Gt(ae,x)),null!==oe&&"string"==typeof Se&&(Se=oe.createHTML(""));r&&r(at),Ct=at}},Cr=Zt({},[...xe,...ce,...Be]),Jr=Zt({},[...De,...Mt]),Rr=function(at){let te=me(at);(!te||!te.tagName)&&(te={namespaceURI:Fr,tagName:"template"});const Ee=Wt(at.tagName),Je=Wt(te.tagName);return!!Pr[at.namespaceURI]&&(at.namespaceURI===$e?te.namespaceURI===Qe?"svg"===Ee:te.namespaceURI===Ye?"svg"===Ee&&("annotation-xml"===Je||wr[Je]):Boolean(Cr[Ee]):at.namespaceURI===Ye?te.namespaceURI===Qe?"math"===Ee:te.namespaceURI===$e?"math"===Ee&&pr[Je]:Boolean(Jr[Ee]):at.namespaceURI===Qe?!(te.namespaceURI===$e&&!pr[Je]||te.namespaceURI===Ye&&!wr[Je])&&(!Jr[Ee]&&(zr[Ee]||!Cr[Ee])):!("application/xhtml+xml"!==lr||!Pr[at.namespaceURI]))},Or=function(at){lt(de.removed,{element:at});try{me(at).removeChild(at)}catch{Xt(at)}},Vr=function(at,te){try{lt(de.removed,{attribute:te.getAttributeNode(at),from:te})}catch{lt(de.removed,{attribute:null,from:te})}if(te.removeAttribute(at),"is"===at)if(fr||Zr)try{Or(te)}catch{}else try{te.setAttribute(at,"")}catch{}},ci=function(at){let te=null,Ee=null;if(Wr)at=""+at;else{const cr=Vt(at,/^[\r\n\t ]+/);Ee=cr&&cr[0]}"application/xhtml+xml"===lr&&Fr===Qe&&(at=''+at+"");const Je=oe?oe.createHTML(at):at;if(Fr===Qe)try{te=(new _t).parseFromString(Je,lr)}catch{}if(!te||!te.documentElement){te=je.createDocument(Fr,"template",null);try{te.documentElement.innerHTML=Gr?Se:Je}catch{}}const br=te.body||te.documentElement;return at&&Ee&&br.insertBefore(F.createTextNode(Ee),br.childNodes[0]||null),Fr===Qe?rr.call(te,Tr?"html":"body")[0]:Tr?te.documentElement:br},ni=function(at){return qe.call(at.ownerDocument||at,at,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT|N.SHOW_PROCESSING_INSTRUCTION|N.SHOW_CDATA_SECTION,null)},ti=function(at){return at instanceof ft&&("string"!=typeof at.nodeName||"string"!=typeof at.textContent||"function"!=typeof at.removeChild||!(at.attributes instanceof xt)||"function"!=typeof at.removeAttribute||"function"!=typeof at.setAttribute||"string"!=typeof at.namespaceURI||"function"!=typeof at.insertBefore||"function"!=typeof at.hasChildNodes)},Ci=function(at){return"function"==typeof R&&at instanceof R};function Er(Le,at,te){L(Le,Ee=>{Ee.call(de,at,te,Ct)})}const si=function(at){let te=null;if(Er(tr.beforeSanitizeElements,at,null),ti(at))return Or(at),!0;const Ee=v(at.nodeName);if(Er(tr.uponSanitizeElement,at,{tagName:Ee,allowedTags:Xe}),Mr&&at.hasChildNodes()&&!Ci(at.firstElementChild)&&re(/<[/\w!]/g,at.innerHTML)&&re(/<[/\w!]/g,at.textContent)||at.nodeType===Bt_progressingInstruction||Mr&&at.nodeType===Bt_comment&&re(/<[/\w]/g,at.data))return Or(at),!0;if(!Xe[Ee]||or[Ee]){if(!or[Ee]&&hi(Ee)&&(Ge.tagNameCheck instanceof RegExp&&re(Ge.tagNameCheck,Ee)||Ge.tagNameCheck instanceof Function&&Ge.tagNameCheck(Ee)))return!1;if(M&&!St[Ee]){const Je=me(at)||at.parentNode,br=be(at)||at.childNodes;if(br&&Je){for(let Br=br.length-1;Br>=0;--Br){const qr=Pt(br[Br],!0);qr.__removalCount=(at.__removalCount||0)+1,Je.insertBefore(qr,ye(at))}}}return Or(at),!0}return at instanceof K&&!Rr(at)||("noscript"===Ee||"noembed"===Ee||"noframes"===Ee)&&re(/<\/no(script|embed|frames)/i,at.innerHTML)?(Or(at),!0):(_r&&at.nodeType===Bt_text&&(te=at.textContent,L([er,yr,Ur],Je=>{te=It(te,Je," ")}),at.textContent!==te&&(lt(de.removed,{element:at.cloneNode()}),at.textContent=te)),Er(tr.afterSanitizeElements,at,null),!1)},vi=function(at,te,Ee){if(l&&("id"===te||"name"===te)&&(Ee in F||Ee in Rt))return!1;if((!mr||dr[te]||!re(xr,te))&&(!sr||!re(Ke,te)))if(!ir[te]||dr[te]){if(!(hi(at)&&(Ge.tagNameCheck instanceof RegExp&&re(Ge.tagNameCheck,at)||Ge.tagNameCheck instanceof Function&&Ge.tagNameCheck(at))&&(Ge.attributeNameCheck instanceof RegExp&&re(Ge.attributeNameCheck,te)||Ge.attributeNameCheck instanceof Function&&Ge.attributeNameCheck(te))||"is"===te&&Ge.allowCustomizedBuiltInElements&&(Ge.tagNameCheck instanceof RegExp&&re(Ge.tagNameCheck,Ee)||Ge.tagNameCheck instanceof Function&&Ge.tagNameCheck(Ee))))return!1}else if(!ze[te]&&!re(Yr,It(Ee,Ir,""))&&("src"!==te&&"xlink:href"!==te&&"href"!==te||"script"===at||0!==$t(Ee,"data:")||!Ut[at])&&(!Qr||re(gr,It(Ee,Ir,"")))&&Ee)return!1;return!0},hi=function(at){return"annotation-xml"!==at&&Vt(at,Sr)},Ti=function(at){Er(tr.beforeSanitizeAttributes,at,null);const{attributes:te}=at;if(!te||ti(at))return;const Ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ir,forceKeepAttr:void 0};let Je=te.length;for(;Je--;){const br=te[Je],{name:cr,namespaceURI:Br,value:qr}=br,di=v(cr),hr=qr;let vr="value"===cr?hr:we(hr);if(Ee.attrName=di,Ee.attrValue=vr,Ee.keepAttr=!0,Ee.forceKeepAttr=void 0,Er(tr.uponSanitizeAttribute,at,Ee),vr=Ee.attrValue,B&&("id"===di||"name"===di)&&(Vr(cr,at),vr=z+vr),Mr&&re(/((--!?|])>)|<\/(style|title)/i,vr)){Vr(cr,at);continue}if(Ee.forceKeepAttr)continue;if(!Ee.keepAttr){Vr(cr,at);continue}if(!$r&&re(/\/>/i,vr)){Vr(cr,at);continue}_r&&L([er,yr,Ur],Ei=>{vr=It(vr,Ei," ")});const wi=v(at.nodeName);if(vi(wi,di,vr)){if(oe&&"object"==typeof ae&&"function"==typeof ae.getAttributeType&&!Br)switch(ae.getAttributeType(wi,di)){case"TrustedHTML":vr=oe.createHTML(vr);break;case"TrustedScriptURL":vr=oe.createScriptURL(vr)}if(vr!==hr)try{Br?at.setAttributeNS(Br,cr,vr):at.setAttribute(cr,vr),ti(at)?Or(at):m(de.removed)}catch{Vr(cr,at)}}else Vr(cr,at)}Er(tr.afterSanitizeAttributes,at,null)},ui=function Le(at){let te=null;const Ee=ni(at);for(Er(tr.beforeSanitizeShadowDOM,at,null);te=Ee.nextNode();)Er(tr.uponSanitizeShadowNode,te,null),si(te),Ti(te),te.content instanceof f&&Le(te.content);Er(tr.afterSanitizeShadowDOM,at,null)};return de.sanitize=function(Le){let at=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},te=null,Ee=null,Je=null,br=null;if(Gr=!Le,Gr&&(Le="\x3c!--\x3e"),"string"!=typeof Le&&!Ci(Le)){if("function"!=typeof Le.toString)throw fe("toString is not a function");if("string"!=typeof(Le=Le.toString()))throw fe("dirty is not a string, aborting")}if(!de.isSupported)return Le;if(Ar||We(at),de.removed=[],"string"==typeof Le&&(st=!1),st){if(Le.nodeName){const qr=v(Le.nodeName);if(!Xe[qr]||or[qr])throw fe("root node is forbidden and cannot be sanitized in-place")}}else if(Le instanceof R)te=ci("\x3c!----\x3e"),Ee=te.ownerDocument.importNode(Le,!0),Ee.nodeType===Bt_element&&"BODY"===Ee.nodeName||"HTML"===Ee.nodeName?te=Ee:te.appendChild(Ee);else{if(!fr&&!_r&&!Tr&&-1===Le.indexOf("<"))return oe&&O?oe.createHTML(Le):Le;if(te=ci(Le),!te)return fr?null:O?Se:""}te&&Wr&&Or(te.firstChild);const cr=ni(st?Le:te);for(;Je=cr.nextNode();)si(Je),Ti(Je),Je.content instanceof f&&ui(Je.content);if(st)return Le;if(fr){if(Zr)for(br=He.call(te.ownerDocument);te.firstChild;)br.appendChild(te.firstChild);else br=te;return(ir.shadowroot||ir.shadowrootmode)&&(br=Oe.call(u,br,!0)),br}let Br=Tr?te.outerHTML:te.innerHTML;return Tr&&Xe["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&re(bt,te.ownerDocument.doctype.name)&&(Br="\n"+Br),_r&&L([er,yr,Ur],qr=>{Br=It(Br,qr," ")}),oe&&O?oe.createHTML(Br):Br},de.setConfig=function(){let Le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};We(Le),Ar=!0},de.clearConfig=function(){Ct=null,Ar=!1},de.isValidAttribute=function(Le,at,te){Ct||We({});const Ee=v(Le),Je=v(at);return vi(Ee,Je,te)},de.addHook=function(Le,at){"function"==typeof at&<(tr[Le],at)},de.removeHook=function(Le,at){if(void 0!==at){const te=Y(tr[Le],at);return-1===te?void 0:Lt(tr[Le],te,1)[0]}return m(tr[Le])},de.removeHooks=function(Le){tr[Le]=[]},de.removeAllHooks=function(){tr={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},de}()},71001:(he,ut,o)=>{"use strict";o.d(ut,{X:()=>s});var s={name:"mermaid",version:"11.6.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.4",katex:"^0.16.9",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^15.0.7",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",chokidar:"^4.0.3",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.0.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}},26692:(he,ut,o)=>{"use strict";o.d(ut,{A:()=>_,z:()=>W});var s=o(3685);function X(e){return typeof e>"u"||null===e}function U(e){return"object"==typeof e&&null!==e}function rt(e){return Array.isArray(e)?e:X(e)?[]:[e]}function J(e,i){var g,C,k,H;if(i)for(g=0,C=(H=Object.keys(i)).length;gQ&&(i=C-Q+(H=" ... ").length),g-C>Q&&(g=C+Q-(D=" ...").length),{str:H+e.slice(i,g).replace(/\t/g,"\u2192")+D,pos:C-i+H.length}}function It(e,i){return lt.repeat(" ",i-e.length)+e}function $t(e,i){if(i=Object.create(i||null),!e.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);for(var H,g=/\r?\n|\r|\0/g,C=[0],k=[],D=-1;H=g.exec(e.buffer);)k.push(H.index),C.push(H.index+H[0].length),e.position<=H.index&&D<0&&(D=C.length-2);D<0&&(D=C.length-1);var ot,Tt,Q="",Nt=Math.min(e.line+i.linesAfter,k.length).toString().length,At=i.maxLength-(i.indent+Nt+3);for(ot=1;ot<=i.linesBefore&&!(D-ot<0);ot++)Tt=Vt(e.buffer,C[D-ot],k[D-ot],e.position-(C[D]-C[D-ot]),At),Q=lt.repeat(" ",i.indent)+It((e.line-ot+1).toString(),Nt)+" | "+Tt.str+"\n"+Q;for(Tt=Vt(e.buffer,C[D],k[D],e.position,At),Q+=lt.repeat(" ",i.indent)+It((e.line+1).toString(),Nt)+" | "+Tt.str+"\n",Q+=lt.repeat("-",i.indent+Nt+3+Tt.pos)+"^\n",ot=1;ot<=i.linesAfter&&!(D+ot>=k.length);ot++)Tt=Vt(e.buffer,C[D+ot],k[D+ot],e.position-(C[D]-C[D+ot]),At),Q+=lt.repeat(" ",i.indent)+It((e.line+ot+1).toString(),Nt)+" | "+Tt.str+"\n";return Q.replace(/\n$/,"")}(0,s.eW)(Vt,"getLine"),(0,s.eW)(It,"padStart"),(0,s.eW)($t,"makeSnippet");var we=$t,ve=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],re=["scalar","sequence","mapping"];function fe(e){var i={};return null!==e&&Object.keys(e).forEach(function(g){e[g].forEach(function(C){i[String(C)]=g})}),i}function Me(e,i){if(i=i||{},Object.keys(i).forEach(function(g){if(-1===ve.indexOf(g))throw new q('Unknown option "'+g+'" is met in definition of "'+e+'" YAML type.')}),this.options=i,this.tag=e,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(g){return g},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=fe(i.styleAliases||null),-1===re.indexOf(this.kind))throw new q('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}(0,s.eW)(fe,"compileStyleAliases"),(0,s.eW)(Me,"Type$1");var Re=Me;function Zt(e,i){var g=[];return e[i].forEach(function(C){var k=g.length;g.forEach(function(H,D){H.tag===C.tag&&H.kind===C.kind&&H.multi===C.multi&&(k=D)}),g[k]=C}),g}function mt(){var i,g,e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function C(k){k.multi?(e.multi[k.kind].push(k),e.multi.fallback.push(k)):e[k.kind][k.tag]=e.fallback[k.tag]=k}for((0,s.eW)(C,"collectType"),i=0,g=arguments.length;i=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:(0,s.eW)(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:(0,s.eW)(function(e){return e.toString(10)},"decimal"),hexadecimal:(0,s.eW)(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),bt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function V(e){return!(null===e||!bt.test(e)||"_"===e[e.length-1])}function kt(e){var i,g;return g="-"===(i=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(i[0])>=0&&(i=i.slice(1)),".inf"===i?1===g?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===i?NaN:g*parseFloat(i,10)}(0,s.eW)(V,"resolveYamlFloat"),(0,s.eW)(kt,"constructYamlFloat");var Bt=/^[-+]?[0-9]+e/;function Yt(e,i){var g;if(isNaN(e))switch(i){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(i){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(i){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(lt.isNegativeZero(e))return"-0.0";return g=e.toString(10),Bt.test(g)?g.replace("e",".e"):g}function Gt(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||lt.isNegativeZero(e))}(0,s.eW)(Yt,"representYamlFloat"),(0,s.eW)(Gt,"isFloat");var Dt=new Re("tag:yaml.org,2002:float",{kind:"scalar",resolve:V,construct:kt,predicate:Gt,represent:Yt,defaultStyle:"lowercase"}),ue=Be.extend({implicit:[Et,Ht,ht,Dt]}),Ie=ue,pe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),de=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 F(e){return null!==e&&(null!==pe.exec(e)||null!==de.exec(e))}function u(e){var i,g,C,k,H,D,Q,se,ot=0,Tt=null;if(null===(i=pe.exec(e))&&(i=de.exec(e)),null===i)throw new Error("Date resolve error");if(g=+i[1],C=+i[2]-1,k=+i[3],!i[4])return new Date(Date.UTC(g,C,k));if(H=+i[4],D=+i[5],Q=+i[6],i[7]){for(ot=i[7].slice(0,3);ot.length<3;)ot+="0";ot=+ot}return i[9]&&(Tt=6e4*(60*+i[10]+ +(i[11]||0)),"-"===i[9]&&(Tt=-Tt)),se=new Date(Date.UTC(g,C,k,H,D,Q,ot)),Tt&&se.setTime(se.getTime()-Tt),se}function x(e){return e.toISOString()}(0,s.eW)(F,"resolveYamlTimestamp"),(0,s.eW)(u,"constructYamlTimestamp"),(0,s.eW)(x,"representYamlTimestamp");var f=new Re("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:F,construct:u,instanceOf:Date,represent:x});function T(e){return"<<"===e||null===e}(0,s.eW)(T,"resolveYamlMerge");var R=new Re("tag:yaml.org,2002:merge",{kind:"scalar",resolve:T}),K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function N(e){if(null===e)return!1;var i,g,C=0,k=e.length,H=K;for(g=0;g64)){if(i<0)return!1;C+=6}return C%8==0}function xt(e){var i,g,C=e.replace(/[\r\n=]/g,""),k=C.length,H=K,D=0,Q=[];for(i=0;i>16&255),Q.push(D>>8&255),Q.push(255&D)),D=D<<6|H.indexOf(C.charAt(i));return 0===(g=k%4*6)?(Q.push(D>>16&255),Q.push(D>>8&255),Q.push(255&D)):18===g?(Q.push(D>>10&255),Q.push(D>>2&255)):12===g&&Q.push(D>>4&255),new Uint8Array(Q)}function ft(e){var C,k,i="",g=0,H=e.length,D=K;for(C=0;C>18&63],i+=D[g>>12&63],i+=D[g>>6&63],i+=D[63&g]),g=(g<<8)+e[C];return 0===(k=H%3)?(i+=D[g>>18&63],i+=D[g>>12&63],i+=D[g>>6&63],i+=D[63&g]):2===k?(i+=D[g>>10&63],i+=D[g>>4&63],i+=D[g<<2&63],i+=D[64]):1===k&&(i+=D[g>>2&63],i+=D[g<<4&63],i+=D[64],i+=D[64]),i}function _t(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}(0,s.eW)(N,"resolveYamlBinary"),(0,s.eW)(xt,"constructYamlBinary"),(0,s.eW)(ft,"representYamlBinary"),(0,s.eW)(_t,"isBinary");var ae=new Re("tag:yaml.org,2002:binary",{kind:"scalar",resolve:N,construct:xt,predicate:_t,represent:ft}),Ft=Object.prototype.hasOwnProperty,Pt=Object.prototype.toString;function Xt(e){if(null===e)return!0;var g,C,k,H,D,i=[],Q=e;for(g=0,C=Q.length;g>10),56320+(e-65536&1023))}(0,s.eW)(Ge,"_class"),(0,s.eW)(or,"is_EOL"),(0,s.eW)(dr,"is_WHITE_SPACE"),(0,s.eW)(sr,"is_WS_OR_EOL"),(0,s.eW)(mr,"is_FLOW_INDICATOR"),(0,s.eW)(Qr,"fromHexCode"),(0,s.eW)($r,"escapedHexLen"),(0,s.eW)(_r,"fromDecimalCode"),(0,s.eW)(Mr,"simpleEscapeSequence"),(0,s.eW)(Tr,"charFromCodepoint");var fr,Ar=new Array(256),Wr=new Array(256);for(fr=0;fr<256;fr++)Ar[fr]=Mr(fr)?1:0,Wr[fr]=Mr(fr);function Zr(e,i){this.input=e,this.filename=i.filename||null,this.schema=i.schema||tr,this.onWarning=i.onWarning||null,this.legacy=i.legacy||!1,this.json=i.json||!1,this.listener=i.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function O(e,i){var g={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return g.snippet=we(g),new q(i,g)}function l(e,i){throw O(e,i)}function B(e,i){e.onWarning&&e.onWarning.call(null,O(e,i))}(0,s.eW)(Zr,"State$1"),(0,s.eW)(O,"generateError"),(0,s.eW)(l,"throwError"),(0,s.eW)(B,"throwWarning");var z={YAML:(0,s.eW)(function(i,g,C){var k,H,D;null!==i.version&&l(i,"duplication of %YAML directive"),1!==C.length&&l(i,"YAML directive accepts exactly one argument"),null===(k=/^([0-9]+)\.([0-9]+)$/.exec(C[0]))&&l(i,"ill-formed argument of the YAML directive"),H=parseInt(k[1],10),D=parseInt(k[2],10),1!==H&&l(i,"unacceptable YAML version of the document"),i.version=C[0],i.checkLineBreaks=D<2,1!==D&&2!==D&&B(i,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,s.eW)(function(i,g,C){var k,H;2!==C.length&&l(i,"TAG directive accepts exactly two arguments"),k=C[0],H=C[1],ir.test(k)||l(i,"ill-formed tag handle (first argument) of the TAG directive"),er.call(i.tagMap,k)&&l(i,'there is a previously declared suffix for "'+k+'" tag handle'),ri.test(H)||l(i,"ill-formed tag prefix (second argument) of the TAG directive");try{H=decodeURIComponent(H)}catch{l(i,"tag prefix is malformed: "+H)}i.tagMap[k]=H},"handleTagDirective")};function M(e,i,g,C){var k,H,D,Q;if(i1&&(e.result+=lt.repeat("\n",i-1))}function ze(e,i,g){var k,H,D,Q,ot,Tt,Nt,Jt,At=e.kind,se=e.result;if(sr(Jt=e.input.charCodeAt(e.position))||mr(Jt)||35===Jt||38===Jt||42===Jt||33===Jt||124===Jt||62===Jt||39===Jt||34===Jt||37===Jt||64===Jt||96===Jt||(63===Jt||45===Jt)&&(sr(k=e.input.charCodeAt(e.position+1))||g&&mr(k)))return!1;for(e.kind="scalar",e.result="",H=D=e.position,Q=!1;0!==Jt;){if(58===Jt){if(sr(k=e.input.charCodeAt(e.position+1))||g&&mr(k))break}else if(35===Jt){if(sr(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ut(e)||g&&mr(Jt))break;if(or(Jt)){if(ot=e.line,Tt=e.lineStart,Nt=e.lineIndent,zt(e,!1,-1),e.lineIndent>=i){Q=!0,Jt=e.input.charCodeAt(e.position);continue}e.position=D,e.line=ot,e.lineStart=Tt,e.lineIndent=Nt;break}}Q&&(M(e,H,D,!1),_e(e,e.line-ot),H=D=e.position,Q=!1),dr(Jt)||(D=e.position+1),Jt=e.input.charCodeAt(++e.position)}return M(e,H,D,!1),!!e.result||(e.kind=At,e.result=se,!1)}function Ae(e,i){var g,C,k;if(39!==(g=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,C=k=e.position;0!==(g=e.input.charCodeAt(e.position));)if(39===g){if(M(e,C,e.position,!0),39!==(g=e.input.charCodeAt(++e.position)))return!0;C=e.position,e.position++,k=e.position}else or(g)?(M(e,C,k,!0),_e(e,zt(e,!1,i)),C=k=e.position):e.position===e.lineStart&&Ut(e)?l(e,"unexpected end of the document within a single quoted scalar"):(e.position++,k=e.position);l(e,"unexpected end of the stream within a single quoted scalar")}function Ye(e,i){var g,C,k,H,D,Q;if(34!==(Q=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,g=C=e.position;0!==(Q=e.input.charCodeAt(e.position));){if(34===Q)return M(e,g,e.position,!0),e.position++,!0;if(92===Q){if(M(e,g,e.position,!0),or(Q=e.input.charCodeAt(++e.position)))zt(e,!1,i);else if(Q<256&&Ar[Q])e.result+=Wr[Q],e.position++;else if((D=$r(Q))>0){for(k=D,H=0;k>0;k--)(D=Qr(Q=e.input.charCodeAt(++e.position)))>=0?H=(H<<4)+D:l(e,"expected hexadecimal character");e.result+=Tr(H),e.position++}else l(e,"unknown escape sequence");g=C=e.position}else or(Q)?(M(e,g,C,!0),_e(e,zt(e,!1,i)),g=C=e.position):e.position===e.lineStart&&Ut(e)?l(e,"unexpected end of the document within a double quoted scalar"):(e.position++,C=e.position)}l(e,"unexpected end of the stream within a double quoted scalar")}function $e(e,i){var C,k,H,Q,Nt,At,se,Jt,Ce,ge,Fe,Pe,g=!0,D=e.tag,ot=e.anchor,ee=Object.create(null);if(91===(Pe=e.input.charCodeAt(e.position)))Nt=93,Jt=!1,Q=[];else{if(123!==Pe)return!1;Nt=125,Jt=!0,Q={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=Q),Pe=e.input.charCodeAt(++e.position);0!==Pe;){if(zt(e,!0,i),(Pe=e.input.charCodeAt(e.position))===Nt)return e.position++,e.tag=D,e.anchor=ot,e.kind=Jt?"mapping":"sequence",e.result=Q,!0;g?44===Pe&&l(e,"expected the node content, but found ','"):l(e,"missed comma between flow collection entries"),Fe=null,At=se=!1,63===Pe&&(sr(e.input.charCodeAt(e.position+1))&&(At=se=!0,e.position++,zt(e,!0,i))),C=e.line,k=e.lineStart,H=e.position,pr(e,i,1,!1,!0),ge=e.tag,Ce=e.result,zt(e,!0,i),Pe=e.input.charCodeAt(e.position),(se||e.line===C)&&58===Pe&&(At=!0,Pe=e.input.charCodeAt(++e.position),zt(e,!0,i),pr(e,i,1,!1,!0),Fe=e.result),Jt?ct(e,Q,ee,ge,Ce,Fe,C,k,H):At?Q.push(ct(e,null,ee,ge,Ce,Fe,C,k,H)):Q.push(Ce),zt(e,!0,i),44===(Pe=e.input.charCodeAt(e.position))?(g=!0,Pe=e.input.charCodeAt(++e.position)):g=!1}l(e,"unexpected end of the stream within a flow collection")}function Qe(e,i){var g,C,Nt,At,k=1,H=!1,D=!1,Q=i,ot=0,Tt=!1;if(124===(At=e.input.charCodeAt(e.position)))C=!1;else{if(62!==At)return!1;C=!0}for(e.kind="scalar",e.result="";0!==At;)if(43===(At=e.input.charCodeAt(++e.position))||45===At)1===k?k=43===At?3:2:l(e,"repeat of a chomping mode identifier");else{if(!((Nt=_r(At))>=0))break;0===Nt?l(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):D?l(e,"repeat of an indentation width identifier"):(Q=i+Nt-1,D=!0)}if(dr(At)){do{At=e.input.charCodeAt(++e.position)}while(dr(At));if(35===At)do{At=e.input.charCodeAt(++e.position)}while(!or(At)&&0!==At)}for(;0!==At;){for(St(e),e.lineIndent=0,At=e.input.charCodeAt(e.position);(!D||e.lineIndentQ&&(Q=e.lineIndent),or(At))ot++;else{if(e.lineIndenti)&&0!==ot)l(e,"bad indentation of a sequence entry");else if(e.lineIndenti)&&(ge&&(D=e.line,Q=e.lineStart,ot=e.position),pr(e,i,4,!0,k)&&(ge?ee=e.result:Ce=e.result),ge||(ct(e,At,se,Jt,ee,Ce,D,Q,ot),Jt=ee=Ce=null),zt(e,!0,-1),Pe=e.input.charCodeAt(e.position)),(e.line===H||e.lineIndent>i)&&0!==Pe)l(e,"bad indentation of a mapping entry");else if(e.lineIndenti?ot=1:e.lineIndent===i?ot=0:e.lineIndenti?ot=1:e.lineIndent===i?ot=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),At=0,se=e.implicitTypes.length;At"),null!==e.result&&ee.kind!==e.kind&&l(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+ee.kind+'", not "'+e.kind+'"'),ee.resolve(e.result,e.tag)?(e.result=ee.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):l(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||Nt}function zr(e){var g,C,k,D,i=e.position,H=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(D=e.input.charCodeAt(e.position))&&(zt(e,!0,-1),D=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==D));){for(H=!0,D=e.input.charCodeAt(++e.position),g=e.position;0!==D&&!sr(D);)D=e.input.charCodeAt(++e.position);for(k=[],(C=e.input.slice(g,e.position)).length<1&&l(e,"directive name must not be less than one character in length");0!==D;){for(;dr(D);)D=e.input.charCodeAt(++e.position);if(35===D){do{D=e.input.charCodeAt(++e.position)}while(0!==D&&!or(D));break}if(or(D))break;for(g=e.position;0!==D&&!sr(D);)D=e.input.charCodeAt(++e.position);k.push(e.input.slice(g,e.position))}0!==D&&St(e),er.call(z,C)?z[C](e,C,k):B(e,'unknown document directive "'+C+'"')}zt(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,zt(e,!0,-1)):H&&l(e,"directives end mark is expected"),pr(e,e.lineIndent-1,4,!1,!0),zt(e,!0,-1),e.checkLineBreaks&&Xe.test(e.input.slice(i,e.position))&&B(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ut(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,zt(e,!0,-1)):e.position"u"&&(g=i,i=null);var C=lr(e,g);if("function"!=typeof i)return C;for(var k=0,H=C.length;k=55296&&g<=56319&&i+1=56320&&C<=57343)?1024*(g-55296)+C-56320+65536:g}function Pi(e){return/^\n* /.test(e)}(0,s.eW)(Si,"State"),(0,s.eW)(Fi,"indentString"),(0,s.eW)(Bi,"generateNextLine"),(0,s.eW)(Ii,"testImplicitResolving"),(0,s.eW)(fi,"isWhitespace"),(0,s.eW)(mi,"isPrintable"),(0,s.eW)($i,"isNsCharOrWhitespace"),(0,s.eW)(Li,"isPlainSafe"),(0,s.eW)(Ki,"isPlainSafeFirst"),(0,s.eW)(Zi,"isPlainSafeLast"),(0,s.eW)(jr,"codePointAt"),(0,s.eW)(Pi,"needIndentIndicator");function ji(e,i,g,C,k,H,D,Q){var ot,Tt=0,Nt=null,At=!1,se=!1,Jt=-1!==C,ee=-1,Ce=Ki(jr(e,0))&&Zi(jr(e,e.length-1));if(i||D)for(ot=0;ot=65536?ot+=2:ot++){if(!mi(Tt=jr(e,ot)))return 5;Ce=Ce&&Li(Tt,Nt,Q),Nt=Tt}else{for(ot=0;ot=65536?ot+=2:ot++){if(10===(Tt=jr(e,ot)))At=!0,Jt&&(se=se||ot-ee-1>C&&" "!==e[ee+1],ee=ot);else if(!mi(Tt))return 5;Ce=Ce&&Li(Tt,Nt,Q),Nt=Tt}se=se||Jt&&ot-ee-1>C&&" "!==e[ee+1]}return At||se?g>9&&Pi(e)?5:D?2===H?5:2:se?4:3:!Ce||D||k(e)?2===H?5:2:1}function Vi(e,i,g,C,k){e.dump=function(){if(0===i.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==vr.indexOf(i)||wi.test(i)))return 2===e.quotingType?'"'+i+'"':"'"+i+"'";var H=e.indent*Math.max(1,g),D=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-H),Q=C||e.flowLevel>-1&&g>=e.flowLevel;function ot(Tt){return Ii(e,Tt)}switch((0,s.eW)(ot,"testAmbiguity"),ji(i,Q,e.indent,D,ot,e.quotingType,e.forceQuotes&&!C,k)){case 1:return i;case 2:return"'"+i.replace(/'/g,"''")+"'";case 3:return"|"+Ai(i,e.indent)+Hi(Fi(i,H));case 4:return">"+Ai(i,e.indent)+Hi(Fi(Ui(i,D),H));case 5:return'"'+rn(i)+'"';default:throw new q("impossible error: invalid scalar style")}}()}function Ai(e,i){var g=Pi(e)?String(i):"",C="\n"===e[e.length-1];return g+(C&&("\n"===e[e.length-2]||"\n"===e)?"+":C?"":"-")+"\n"}function Hi(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Ui(e,i){for(var H,D,g=/(\n+)([^\n]*)/g,C=(Tt=void 0,Tt=-1!==(Tt=e.indexOf("\n"))?Tt:e.length,g.lastIndex=Tt,Yi(e.slice(0,Tt),i)),k="\n"===e[0]||" "===e[0];D=g.exec(e);){var Q=D[1],ot=D[2];H=" "===ot[0],C+=Q+(k||H||""===ot?"":"\n")+Yi(ot,i),k=H}var Tt;return C}function Yi(e,i){if(""===e||" "===e[0])return e;for(var C,H,g=/ [^ ]/g,k=0,D=0,Q=0,ot="";C=g.exec(e);)(Q=C.index)-k>i&&(H=D>k?D:Q,ot+="\n"+e.slice(k,H),k=H+1),D=Q;return ot+="\n",e.length-k>i&&D>k?ot+=e.slice(k,D)+"\n"+e.slice(D+1):ot+=e.slice(k),ot.slice(1)}function rn(e){for(var C,i="",g=0,k=0;k=65536?k+=2:k++)g=jr(e,k),!(C=hr[g])&&mi(g)?(i+=e[k],g>=65536&&(i+=e[k+1])):i+=C||Wi(g);return i}function nn(e,i,g){var H,D,Q,C="",k=e.tag;for(H=0,D=g.length;H"u"&&p(e,i,null,!1,!1))&&(""!==C&&(C+=","+(e.condenseFlow?"":" ")),C+=e.dump);e.tag=k,e.dump="["+C+"]"}function y(e,i,g,C){var D,Q,ot,k="",H=e.tag;for(D=0,Q=g.length;D"u"&&p(e,i+1,null,!0,!0,!1,!0))&&((!C||""!==k)&&(k+=Bi(e,i)),e.dump&&10===e.dump.charCodeAt(0)?k+="-":k+="- ",k+=e.dump);e.tag=H,e.dump=k||"[]"}function t(e,i,g){var D,Q,ot,Tt,Nt,C="",k=e.tag,H=Object.keys(g);for(D=0,Q=H.length;D1024&&(Nt+="? "),Nt+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),p(e,i,Tt,!1,!1)&&(C+=Nt+=e.dump));e.tag=k,e.dump="{"+C+"}"}function h(e,i,g,C){var Q,ot,Tt,Nt,At,se,k="",H=e.tag,D=Object.keys(g);if(!0===e.sortKeys)D.sort();else if("function"==typeof e.sortKeys)D.sort(e.sortKeys);else if(e.sortKeys)throw new q("sortKeys must be a boolean or a function");for(Q=0,ot=D.length;Q1024)&&(e.dump&&10===e.dump.charCodeAt(0)?se+="?":se+="? "),se+=e.dump,At&&(se+=Bi(e,i)),p(e,i+1,Nt,!0,At)&&(e.dump&&10===e.dump.charCodeAt(0)?se+=":":se+=": ",k+=se+=e.dump));e.tag=H,e.dump=k||"{}"}function S(e,i,g){var C,k,H,D,Q,ot;for(H=0,D=(k=g?e.explicitTypes:e.implicitTypes).length;H tag resolver accepts not "'+ot+'" style');C=Q.represent[ot](i,ot)}e.dump=C}return!0}return!1}function p(e,i,g,C,k,H,D){e.tag=null,e.dump=g,S(e,g,!1)||S(e,g,!0);var Tt,Q=Ze.call(e.dump),ot=C;C&&(C=e.flowLevel<0||e.flowLevel>i);var At,se,Nt="[object Object]"===Q||"[object Array]"===Q;if(Nt&&(se=-1!==(At=e.duplicates.indexOf(g))),(null!==e.tag&&"?"!==e.tag||se||2!==e.indent&&i>0)&&(k=!1),se&&e.usedDuplicates[At])e.dump="*ref_"+At;else{if(Nt&&se&&!e.usedDuplicates[At]&&(e.usedDuplicates[At]=!0),"[object Object]"===Q)C&&0!==Object.keys(e.dump).length?(h(e,i,e.dump,k),se&&(e.dump="&ref_"+At+e.dump)):(t(e,i,e.dump),se&&(e.dump="&ref_"+At+" "+e.dump));else if("[object Array]"===Q)C&&0!==e.dump.length?(e.noArrayIndent&&!D&&i>0?y(e,i-1,e.dump,k):y(e,i,e.dump,k),se&&(e.dump="&ref_"+At+e.dump)):(nn(e,i,e.dump),se&&(e.dump="&ref_"+At+" "+e.dump));else{if("[object String]"!==Q){if("[object Undefined]"===Q)return!1;if(e.skipInvalid)return!1;throw new q("unacceptable kind of an object to dump "+Q)}"?"!==e.tag&&Vi(e,e.dump,i,H,ot)}null!==e.tag&&"?"!==e.tag&&(Tt=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),Tt="!"===e.tag[0]?"!"+Tt:"tag:yaml.org,2002:"===Tt.slice(0,18)?"!!"+Tt.slice(18):"!<"+Tt+">",e.dump=Tt+" "+e.dump)}return!0}function d(e,i){var k,H,g=[],C=[];for(E(e,g,C),k=0,H=C.length;k{"use strict";o.d(ut,{P:()=>U});var s=o(3685),X=o(31083),U=(0,s.eW)(rt=>{const{securityLevel:J}=(0,s.nV)();let r=(0,X.Ys)("body");if("sandbox"===J){const A=(0,X.Ys)(`#i${rt}`).node()?.contentDocument??document;r=(0,X.Ys)(A.body)}return r.select(`#${rt}`)},"selectSvgElement")},50027:(he,ut,o)=>{var Zr;o.d(ut,{QA:()=>Mr,rw:()=>fr,EY:()=>Wr});var s=o(53420),X=o(62477),U=o(3685),rt=o(31083);function J(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var r={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function j(O){r=O}var G={exec:()=>null};function A(O,l=""){let B="string"==typeof O?O:O.source;const z={replace:(M,st)=>{let ct="string"==typeof st?st:st.source;return ct=ct.replace($.caret,"$1"),B=B.replace(M,ct),z},getRegex:()=>new RegExp(B,l)};return z}var $={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:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,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+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:O=>new RegExp(`^( {0,3}${O})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:O=>new RegExp(`^ {0,${Math.min(3,O-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:O=>new RegExp(`^ {0,${Math.min(3,O-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:O=>new RegExp(`^ {0,${Math.min(3,O-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:O=>new RegExp(`^ {0,${Math.min(3,O-1)}}#`),htmlBeginRegex:O=>new RegExp(`^ {0,${Math.min(3,O-1)}}<(?:[a-z].*>|!--)`,"i")},lt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Wt=/(?:[*+-]|\d{1,9}[.)])/,q=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vt=A(q).replace(/bull/g,Wt).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(),It=A(q).replace(/bull/g,Wt).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(),$t=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ve=/(?!\s*\])(?:\\.|[^\[\]\\])+/,re=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ve).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),fe=A(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Wt).getRegex(),Me="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",Re=/|$))/,Zt=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Re).replace("tag",Me).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mt=A($t).replace("hr",lt).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",")|<(?:script|pre|style|textarea|!--)").replace("tag",Me).getRegex(),le={blockquote:A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mt).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:re,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:lt,html:Zt,lheading:Vt,list:fe,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:mt,table:G,text:/^[^\n]+/},ie=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Me).getRegex(),xe={...le,lheading:It,table:ie,paragraph:A($t).replace("hr",lt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ie).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Me).getRegex()},ce={...le,html:A("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Re).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:G,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A($t).replace("hr",lt).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Vt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Mt=/^( {2,}|\\)\n(?!\s*$)/,Et=/[\p{P}\p{S}]/u,Qt=/[\s\p{P}\p{S}]/u,wt=/[^\s\p{P}\p{S}]/u,qt=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Qt).getRegex(),Ht=/(?!~)[\p{P}\p{S}]/u,et=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,dt=A(et,"u").replace(/punct/g,Et).getRegex(),nt=A(et,"u").replace(/punct/g,Ht).getRegex(),ht="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bt=A(ht,"gu").replace(/notPunctSpace/g,wt).replace(/punctSpace/g,Qt).replace(/punct/g,Et).getRegex(),V=A(ht,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Ht).getRegex(),kt=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,wt).replace(/punctSpace/g,Qt).replace(/punct/g,Et).getRegex(),Bt=A(/\\(punct)/,"gu").replace(/punct/g,Et).getRegex(),Yt=A(/^<(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(),Gt=A(Re).replace("(?:--\x3e|$)","--\x3e").getRegex(),Dt=A("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Gt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ue=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ie=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ue).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pe=A(/^!?\[(label)\]\[(ref)\]/).replace("label",ue).replace("ref",ve).getRegex(),de=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",ve).getRegex(),u={_backpedal:G,anyPunctuation:Bt,autolink:Yt,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:Mt,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:G,emStrongLDelim:dt,emStrongRDelimAst:bt,emStrongRDelimUnd:kt,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Ie,nolink:de,punctuation:qt,reflink:pe,reflinkSearch:A("reflink|nolink(?!\\()","g").replace("reflink",pe).replace("nolink",de).getRegex(),tag:Dt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},xt=O=>N[O];function ft(O,l){if(l){if($.escapeTest.test(O))return O.replace($.escapeReplace,xt)}else if($.escapeTestNoEncode.test(O))return O.replace($.escapeReplaceNoEncode,xt);return O}function _t(O){try{O=encodeURI(O).replace($.percentDecode,"%")}catch{return null}return O}function ae(O,l){const z=O.replace($.findPipe,(st,ct,St)=>{let zt=!1,Ut=ct;for(;--Ut>=0&&"\\"===St[Ut];)zt=!zt;return zt?"|":" |"}).split($.splitPipe);let M=0;if(z[0].trim()||z.shift(),z.length>0&&!z.at(-1)?.trim()&&z.pop(),l)if(z.length>l)z.splice(l);else for(;z.length0)return{type:"space",raw:l[0]}}code(O){const l=this.rules.block.code.exec(O);if(l){const B=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?B:Ft(B,"\n")}}}fences(O){const l=this.rules.block.fences.exec(O);if(l){const B=l[0],z=function ye(O,l,B){const z=O.match(B.other.indentCodeCompensation);if(null===z)return l;const M=z[1];return l.split("\n").map(st=>{const ct=st.match(B.other.beginningSpace);if(null===ct)return st;const[St]=ct;return St.length>=M.length?st.slice(M.length):st}).join("\n")}(B,l[3]||"",this.rules);return{type:"code",raw:B,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:z}}}heading(O){const l=this.rules.block.heading.exec(O);if(l){let B=l[2].trim();if(this.rules.other.endingHash.test(B)){const z=Ft(B,"#");(this.options.pedantic||!z||this.rules.other.endingSpaceChar.test(z))&&(B=z.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:B,tokens:this.lexer.inline(B)}}}hr(O){const l=this.rules.block.hr.exec(O);if(l)return{type:"hr",raw:Ft(l[0],"\n")}}blockquote(O){const l=this.rules.block.blockquote.exec(O);if(l){let B=Ft(l[0],"\n").split("\n"),z="",M="";const st=[];for(;B.length>0;){let ct=!1;const St=[];let zt;for(zt=0;zt1,M={type:"list",raw:"",ordered:z,start:z?+B.slice(0,-1):"",loose:!1,items:[]};B=z?`\\d{1,9}\\${B.slice(-1)}`:`\\${B}`,this.options.pedantic&&(B=z?B:"[*+-]");const st=this.rules.other.listItemRegex(B);let ct=!1;for(;O;){let zt=!1,Ut="",_e="";if(!(l=st.exec(O))||this.rules.block.hr.test(O))break;Ut=l[0],O=O.substring(Ut.length);let ze=l[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,Gr=>" ".repeat(3*Gr.length)),Ae=O.split("\n",1)[0],Ye=!ze.trim(),$e=0;if(this.options.pedantic?($e=2,_e=ze.trimStart()):Ye?$e=l[1].length+1:($e=l[2].search(this.rules.other.nonSpaceChar),$e=$e>4?1:$e,_e=ze.slice($e),$e+=l[1].length),Ye&&this.rules.other.blankLine.test(Ae)&&(Ut+=Ae+"\n",O=O.substring(Ae.length+1),zt=!0),!zt){const Gr=this.rules.other.nextBulletRegex($e),Pr=this.rules.other.hrRegex($e),Nr=this.rules.other.fencesBeginRegex($e),wr=this.rules.other.headingBeginRegex($e),pr=this.rules.other.htmlBeginRegex($e);for(;O;){const zr=O.split("\n",1)[0];let lr;if(Ae=zr,this.options.pedantic?(Ae=Ae.replace(this.rules.other.listReplaceNesting," "),lr=Ae):lr=Ae.replace(this.rules.other.tabCharGlobal," "),Nr.test(Ae)||wr.test(Ae)||pr.test(Ae)||Gr.test(Ae)||Pr.test(Ae))break;if(lr.search(this.rules.other.nonSpaceChar)>=$e||!Ae.trim())_e+="\n"+lr.slice($e);else{if(Ye||ze.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Nr.test(ze)||wr.test(ze)||Pr.test(ze))break;_e+="\n"+Ae}!Ye&&!Ae.trim()&&(Ye=!0),Ut+=zr+"\n",O=O.substring(zr.length+1),ze=lr.slice($e)}}M.loose||(ct?M.loose=!0:this.rules.other.doubleBlankLine.test(Ut)&&(ct=!0));let Fr,Qe=null;this.options.gfm&&(Qe=this.rules.other.listIsTask.exec(_e),Qe&&(Fr="[ ] "!==Qe[0],_e=_e.replace(this.rules.other.listReplaceTask,""))),M.items.push({type:"list_item",raw:Ut,task:!!Qe,checked:Fr,loose:!1,text:_e,tokens:[]}),M.raw+=Ut}const St=M.items.at(-1);if(!St)return;St.raw=St.raw.trimEnd(),St.text=St.text.trimEnd(),M.raw=M.raw.trimEnd();for(let zt=0;zt"space"===ze.type),_e=Ut.length>0&&Ut.some(ze=>this.rules.other.anyLine.test(ze.raw));M.loose=_e}if(M.loose)for(let zt=0;zt({text:St,tokens:this.lexer.inline(St),header:!1,align:st.align[zt]})));return st}}lheading(O){const l=this.rules.block.lheading.exec(O);if(l)return{type:"heading",raw:l[0],depth:"="===l[2].charAt(0)?1:2,text:l[1],tokens:this.lexer.inline(l[1])}}paragraph(O){const l=this.rules.block.paragraph.exec(O);if(l){const B="\n"===l[1].charAt(l[1].length-1)?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:B,tokens:this.lexer.inline(B)}}}text(O){const l=this.rules.block.text.exec(O);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(O){const l=this.rules.inline.escape.exec(O);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(O){const l=this.rules.inline.tag.exec(O);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(O){const l=this.rules.inline.link.exec(O);if(l){const B=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(B)){if(!this.rules.other.endAngleBracket.test(B))return;const st=Ft(B.slice(0,-1),"\\");if((B.length-st.length)%2==0)return}else{const st=function Pt(O,l){if(-1===O.indexOf(l[1]))return-1;let B=0;for(let z=0;z0?-2:-1}(l[2],"()");if(-2===st)return;if(st>-1){const St=(0===l[0].indexOf("!")?5:4)+l[1].length+st;l[2]=l[2].substring(0,st),l[0]=l[0].substring(0,St).trim(),l[3]=""}}let z=l[2],M="";if(this.options.pedantic){const st=this.rules.other.pedanticHrefTitle.exec(z);st&&(z=st[1],M=st[3])}else M=l[3]?l[3].slice(1,-1):"";return z=z.trim(),this.rules.other.startAngleBracket.test(z)&&(z=this.options.pedantic&&!this.rules.other.endAngleBracket.test(B)?z.slice(1):z.slice(1,-1)),Xt(l,{href:z&&z.replace(this.rules.inline.anyPunctuation,"$1"),title:M&&M.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(O,l){let B;if((B=this.rules.inline.reflink.exec(O))||(B=this.rules.inline.nolink.exec(O))){const M=l[(B[2]||B[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!M){const st=B[0].charAt(0);return{type:"text",raw:st,text:st}}return Xt(B,M,B[0],this.lexer,this.rules)}}emStrong(O,l,B=""){let z=this.rules.inline.emStrongLDelim.exec(O);if(!(!z||z[3]&&B.match(this.rules.other.unicodeAlphaNumeric))&&(!z[1]&&!z[2]||!B||this.rules.inline.punctuation.exec(B))){const st=[...z[0]].length-1;let ct,St,zt=st,Ut=0;const _e="*"===z[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_e.lastIndex=0,l=l.slice(-1*O.length+st);null!=(z=_e.exec(l));){if(ct=z[1]||z[2]||z[3]||z[4]||z[5]||z[6],!ct)continue;if(St=[...ct].length,z[3]||z[4]){zt+=St;continue}if((z[5]||z[6])&&st%3&&!((st+St)%3)){Ut+=St;continue}if(zt-=St,zt>0)continue;St=Math.min(St,St+zt+Ut);const ze=[...z[0]][0].length,Ae=O.slice(0,st+z.index+ze+St);if(Math.min(st,St)%2){const $e=Ae.slice(1,-1);return{type:"em",raw:Ae,text:$e,tokens:this.lexer.inlineTokens($e)}}const Ye=Ae.slice(2,-2);return{type:"strong",raw:Ae,text:Ye,tokens:this.lexer.inlineTokens(Ye)}}}}codespan(O){const l=this.rules.inline.code.exec(O);if(l){let B=l[2].replace(this.rules.other.newLineCharGlobal," ");const z=this.rules.other.nonSpaceChar.test(B),M=this.rules.other.startingSpaceChar.test(B)&&this.rules.other.endingSpaceChar.test(B);return z&&M&&(B=B.substring(1,B.length-1)),{type:"codespan",raw:l[0],text:B}}}br(O){const l=this.rules.inline.br.exec(O);if(l)return{type:"br",raw:l[0]}}del(O){const l=this.rules.inline.del.exec(O);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(O){const l=this.rules.inline.autolink.exec(O);if(l){let B,z;return"@"===l[2]?(B=l[1],z="mailto:"+B):(B=l[1],z=B),{type:"link",raw:l[0],text:B,href:z,tokens:[{type:"text",raw:B,text:B}]}}}url(O){let l;if(l=this.rules.inline.url.exec(O)){let B,z;if("@"===l[2])B=l[0],z="mailto:"+B;else{let M;do{M=l[0],l[0]=this.rules.inline._backpedal.exec(l[0])?.[0]??""}while(M!==l[0]);B=l[0],z="www."===l[1]?"http://"+l[0]:l[0]}return{type:"link",raw:l[0],text:B,href:z,tokens:[{type:"text",raw:B,text:B}]}}}inlineText(O){const l=this.rules.inline.text.exec(O);if(l){const B=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:B}}}},me=class pn{constructor(l){ur(this,"tokens"),ur(this,"options"),ur(this,"state"),ur(this,"tokenizer"),ur(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=l||r,this.options.tokenizer=this.options.tokenizer||new be,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const B={other:$,block:R.normal,inline:K.normal};this.options.pedantic?(B.block=R.pedantic,B.inline=K.pedantic):this.options.gfm&&(B.block=R.gfm,this.options.breaks?B.inline=K.breaks:B.inline=K.gfm),this.tokenizer.rules=B}static get rules(){return{block:R,inline:K}}static lex(l,B){return new pn(B).lex(l)}static lexInline(l,B){return new pn(B).inlineTokens(l)}lex(l){l=l.replace($.carriageReturn,"\n"),this.blockTokens(l,this.tokens);for(let B=0;B!!(M=ct.call({lexer:this},l,B))&&(l=l.substring(M.raw.length),B.push(M),!0)))continue;if(M=this.tokenizer.space(l)){l=l.substring(M.raw.length);const ct=B.at(-1);1===M.raw.length&&void 0!==ct?ct.raw+="\n":B.push(M);continue}if(M=this.tokenizer.code(l)){l=l.substring(M.raw.length);const ct=B.at(-1);"paragraph"===ct?.type||"text"===ct?.type?(ct.raw+="\n"+M.raw,ct.text+="\n"+M.text,this.inlineQueue.at(-1).src=ct.text):B.push(M);continue}if(M=this.tokenizer.fences(l)){l=l.substring(M.raw.length),B.push(M);continue}if(M=this.tokenizer.heading(l)){l=l.substring(M.raw.length),B.push(M);continue}if(M=this.tokenizer.hr(l)){l=l.substring(M.raw.length),B.push(M);continue}if(M=this.tokenizer.blockquote(l)){l=l.substring(M.raw.length),B.push(M);continue}if(M=this.tokenizer.list(l)){l=l.substring(M.raw.length),B.push(M);continue}if(M=this.tokenizer.html(l)){l=l.substring(M.raw.length),B.push(M);continue}if(M=this.tokenizer.def(l)){l=l.substring(M.raw.length);const ct=B.at(-1);"paragraph"===ct?.type||"text"===ct?.type?(ct.raw+="\n"+M.raw,ct.text+="\n"+M.raw,this.inlineQueue.at(-1).src=ct.text):this.tokens.links[M.tag]||(this.tokens.links[M.tag]={href:M.href,title:M.title});continue}if(M=this.tokenizer.table(l)){l=l.substring(M.raw.length),B.push(M);continue}if(M=this.tokenizer.lheading(l)){l=l.substring(M.raw.length),B.push(M);continue}let st=l;if(this.options.extensions?.startBlock){let ct=1/0;const St=l.slice(1);let zt;this.options.extensions.startBlock.forEach(Ut=>{zt=Ut.call({lexer:this},St),"number"==typeof zt&&zt>=0&&(ct=Math.min(ct,zt))}),ct<1/0&&ct>=0&&(st=l.substring(0,ct+1))}if(this.state.top&&(M=this.tokenizer.paragraph(st))){const ct=B.at(-1);z&&"paragraph"===ct?.type?(ct.raw+="\n"+M.raw,ct.text+="\n"+M.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=ct.text):B.push(M),z=st.length!==l.length,l=l.substring(M.raw.length)}else if(M=this.tokenizer.text(l)){l=l.substring(M.raw.length);const ct=B.at(-1);"text"===ct?.type?(ct.raw+="\n"+M.raw,ct.text+="\n"+M.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=ct.text):B.push(M)}else if(l){const ct="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(ct);break}throw new Error(ct)}}return this.state.top=!0,B}inline(l,B=[]){return this.inlineQueue.push({src:l,tokens:B}),B}inlineTokens(l,B=[]){let z=l,M=null;if(this.tokens.links){const St=Object.keys(this.tokens.links);if(St.length>0)for(;null!=(M=this.tokenizer.rules.inline.reflinkSearch.exec(z));)St.includes(M[0].slice(M[0].lastIndexOf("[")+1,-1))&&(z=z.slice(0,M.index)+"["+"a".repeat(M[0].length-2)+"]"+z.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(M=this.tokenizer.rules.inline.anyPunctuation.exec(z));)z=z.slice(0,M.index)+"++"+z.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(M=this.tokenizer.rules.inline.blockSkip.exec(z));)z=z.slice(0,M.index)+"["+"a".repeat(M[0].length-2)+"]"+z.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let st=!1,ct="";for(;l;){let St;if(st||(ct=""),st=!1,this.options.extensions?.inline?.some(Ut=>!!(St=Ut.call({lexer:this},l,B))&&(l=l.substring(St.raw.length),B.push(St),!0)))continue;if(St=this.tokenizer.escape(l)){l=l.substring(St.raw.length),B.push(St);continue}if(St=this.tokenizer.tag(l)){l=l.substring(St.raw.length),B.push(St);continue}if(St=this.tokenizer.link(l)){l=l.substring(St.raw.length),B.push(St);continue}if(St=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(St.raw.length);const Ut=B.at(-1);"text"===St.type&&"text"===Ut?.type?(Ut.raw+=St.raw,Ut.text+=St.text):B.push(St);continue}if(St=this.tokenizer.emStrong(l,z,ct)){l=l.substring(St.raw.length),B.push(St);continue}if(St=this.tokenizer.codespan(l)){l=l.substring(St.raw.length),B.push(St);continue}if(St=this.tokenizer.br(l)){l=l.substring(St.raw.length),B.push(St);continue}if(St=this.tokenizer.del(l)){l=l.substring(St.raw.length),B.push(St);continue}if(St=this.tokenizer.autolink(l)){l=l.substring(St.raw.length),B.push(St);continue}if(!this.state.inLink&&(St=this.tokenizer.url(l))){l=l.substring(St.raw.length),B.push(St);continue}let zt=l;if(this.options.extensions?.startInline){let Ut=1/0;const _e=l.slice(1);let ze;this.options.extensions.startInline.forEach(Ae=>{ze=Ae.call({lexer:this},_e),"number"==typeof ze&&ze>=0&&(Ut=Math.min(Ut,ze))}),Ut<1/0&&Ut>=0&&(zt=l.substring(0,Ut+1))}if(St=this.tokenizer.inlineText(zt)){l=l.substring(St.raw.length),"_"!==St.raw.slice(-1)&&(ct=St.raw.slice(-1)),st=!0;const Ut=B.at(-1);"text"===Ut?.type?(Ut.raw+=St.raw,Ut.text+=St.text):B.push(St)}else if(l){const Ut="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(Ut);break}throw new Error(Ut)}}return B}},oe=class{constructor(O){ur(this,"options"),ur(this,"parser"),this.options=O||r}space(O){return""}code({text:O,lang:l,escaped:B}){const z=(l||"").match($.notSpaceStart)?.[0],M=O.replace($.endingNewline,"")+"\n";return z?'
'+(B?M:ft(M,!0))+"
\n":"
"+(B?M:ft(M,!0))+"
\n"}blockquote({tokens:O}){return`
\n${this.parser.parse(O)}
\n`}html({text:O}){return O}heading({tokens:O,depth:l}){return`${this.parser.parseInline(O)}\n`}hr(O){return"
\n"}list(O){const l=O.ordered,B=O.start;let z="";for(let ct=0;ct\n"+z+"\n"}listitem(O){let l="";if(O.task){const B=this.checkbox({checked:!!O.checked});O.loose?"paragraph"===O.tokens[0]?.type?(O.tokens[0].text=B+" "+O.tokens[0].text,O.tokens[0].tokens&&O.tokens[0].tokens.length>0&&"text"===O.tokens[0].tokens[0].type&&(O.tokens[0].tokens[0].text=B+" "+ft(O.tokens[0].tokens[0].text),O.tokens[0].tokens[0].escaped=!0)):O.tokens.unshift({type:"text",raw:B+" ",text:B+" ",escaped:!0}):l+=B+" "}return l+=this.parser.parse(O.tokens,!!O.loose),`
  • ${l}
  • \n`}checkbox({checked:O}){return"'}paragraph({tokens:O}){return`

    ${this.parser.parseInline(O)}

    \n`}table(O){let l="",B="";for(let M=0;M${z}`),"\n\n"+l+"\n"+z+"
    \n"}tablerow({text:O}){return`\n${O}\n`}tablecell(O){const l=this.parser.parseInline(O.tokens),B=O.header?"th":"td";return(O.align?`<${B} align="${O.align}">`:`<${B}>`)+l+`\n`}strong({tokens:O}){return`${this.parser.parseInline(O)}`}em({tokens:O}){return`${this.parser.parseInline(O)}`}codespan({text:O}){return`${ft(O,!0)}`}br(O){return"
    "}del({tokens:O}){return`${this.parser.parseInline(O)}`}link({href:O,title:l,tokens:B}){const z=this.parser.parseInline(B),M=_t(O);if(null===M)return z;let st='
    ",st}image({href:O,title:l,text:B,tokens:z}){z&&(B=this.parser.parseInline(z,this.parser.textRenderer));const M=_t(O);if(null===M)return ft(B);let st=`${B}{const ct=M[st].flat(1/0);B=B.concat(this.walkTokens(ct,l))}):M.tokens&&(B=B.concat(this.walkTokens(M.tokens,l)))}}return B}use(...O){const l=this.defaults.extensions||{renderers:{},childTokens:{}};return O.forEach(B=>{const z={...B};if(z.async=this.defaults.async||z.async||!1,B.extensions&&(B.extensions.forEach(M=>{if(!M.name)throw new Error("extension name required");if("renderer"in M){const st=l.renderers[M.name];l.renderers[M.name]=st?function(...ct){let St=M.renderer.apply(this,ct);return!1===St&&(St=st.apply(this,ct)),St}:M.renderer}if("tokenizer"in M){if(!M.level||"block"!==M.level&&"inline"!==M.level)throw new Error("extension level must be 'block' or 'inline'");const st=l[M.level];st?st.unshift(M.tokenizer):l[M.level]=[M.tokenizer],M.start&&("block"===M.level?l.startBlock?l.startBlock.push(M.start):l.startBlock=[M.start]:"inline"===M.level&&(l.startInline?l.startInline.push(M.start):l.startInline=[M.start]))}"childTokens"in M&&M.childTokens&&(l.childTokens[M.name]=M.childTokens)}),z.extensions=l),B.renderer){const M=this.defaults.renderer||new oe(this.defaults);for(const st in B.renderer){if(!(st in M))throw new Error(`renderer '${st}' does not exist`);if(["options","parser"].includes(st))continue;const ct=st,St=B.renderer[ct],zt=M[ct];M[ct]=(...Ut)=>{let _e=St.apply(M,Ut);return!1===_e&&(_e=zt.apply(M,Ut)),_e||""}}z.renderer=M}if(B.tokenizer){const M=this.defaults.tokenizer||new be(this.defaults);for(const st in B.tokenizer){if(!(st in M))throw new Error(`tokenizer '${st}' does not exist`);if(["options","rules","lexer"].includes(st))continue;const ct=st,St=B.tokenizer[ct],zt=M[ct];M[ct]=(...Ut)=>{let _e=St.apply(M,Ut);return!1===_e&&(_e=zt.apply(M,Ut)),_e}}z.tokenizer=M}if(B.hooks){const M=this.defaults.hooks||new qe;for(const st in B.hooks){if(!(st in M))throw new Error(`hook '${st}' does not exist`);if(["options","block"].includes(st))continue;const ct=st,St=B.hooks[ct],zt=M[ct];qe.passThroughHooks.has(st)?M[ct]=Ut=>{if(this.defaults.async)return Promise.resolve(St.call(M,Ut)).then(ze=>zt.call(M,ze));const _e=St.call(M,Ut);return zt.call(M,_e)}:M[ct]=(...Ut)=>{let _e=St.apply(M,Ut);return!1===_e&&(_e=zt.apply(M,Ut)),_e}}z.hooks=M}if(B.walkTokens){const M=this.defaults.walkTokens,st=B.walkTokens;z.walkTokens=function(ct){let St=[];return St.push(st.call(this,ct)),M&&(St=St.concat(M.call(this,ct))),St}}this.defaults={...this.defaults,...z}}),this}setOptions(O){return this.defaults={...this.defaults,...O},this}lexer(O,l){return me.lex(O,l??this.defaults)}parser(O,l){return je.parse(O,l??this.defaults)}parseMarkdown(O){return(B,z)=>{const M={...z},st={...this.defaults,...M},ct=this.onError(!!st.silent,!!st.async);if(!0===this.defaults.async&&!1===M.async)return ct(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 B>"u"||null===B)return ct(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof B)return ct(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(B)+", string expected"));st.hooks&&(st.hooks.options=st,st.hooks.block=O);const St=st.hooks?st.hooks.provideLexer():O?me.lex:me.lexInline,zt=st.hooks?st.hooks.provideParser():O?je.parse:je.parseInline;if(st.async)return Promise.resolve(st.hooks?st.hooks.preprocess(B):B).then(Ut=>St(Ut,st)).then(Ut=>st.hooks?st.hooks.processAllTokens(Ut):Ut).then(Ut=>st.walkTokens?Promise.all(this.walkTokens(Ut,st.walkTokens)).then(()=>Ut):Ut).then(Ut=>zt(Ut,st)).then(Ut=>st.hooks?st.hooks.postprocess(Ut):Ut).catch(ct);try{st.hooks&&(B=st.hooks.preprocess(B));let Ut=St(B,st);st.hooks&&(Ut=st.hooks.processAllTokens(Ut)),st.walkTokens&&this.walkTokens(Ut,st.walkTokens);let _e=zt(Ut,st);return st.hooks&&(_e=st.hooks.postprocess(_e)),_e}catch(Ut){return ct(Ut)}}}onError(O,l){return B=>{if(B.message+="\nPlease report this to https://github.com/markedjs/marked.",O){const z="

    An error occurred:

    "+ft(B.message+"",!0)+"
    ";return l?Promise.resolve(z):z}if(l)return Promise.reject(B);throw B}}};function Oe(O,l){return rr.parse(O,l)}Oe.options=Oe.setOptions=function(O){return rr.setOptions(O),Oe.defaults=rr.defaults,j(Oe.defaults),Oe},Oe.getDefaults=J,Oe.defaults=r,Oe.use=function(...O){return rr.use(...O),Oe.defaults=rr.defaults,j(Oe.defaults),Oe},Oe.walkTokens=function(O,l){return rr.walkTokens(O,l)},Oe.parseInline=rr.parseInline,Oe.Parser=je,Oe.parser=je.parse,Oe.Renderer=oe,Oe.TextRenderer=Se,Oe.Lexer=me,Oe.lexer=me.lex,Oe.Tokenizer=be,Oe.Hooks=qe,Oe.parse=Oe;Oe.options,Oe.setOptions,Oe.use,Oe.walkTokens,Oe.parseInline,je.parse,me.lex;var Sr=o(13153);function Yr(O,{markdownAutoWrap:l}){const z=O.replace(//g,"\n").replace(/\n{2,}/g,"\n"),M=(0,Sr.Z)(z);return!1===l?M.replace(/ /g," "):M}function Xe(O,l={}){const B=Yr(O,l),z=Oe.lexer(B),M=[[]];let st=0;function ct(St,zt="normal"){"text"===St.type?St.text.split("\n").forEach((_e,ze)=>{0!==ze&&(st++,M.push([])),_e.split(" ").forEach(Ae=>{(Ae=Ae.replace(/'/g,"'"))&&M[st].push({content:Ae,type:zt})})}):"strong"===St.type||"em"===St.type?St.tokens.forEach(Ut=>{ct(Ut,St.type)}):"html"===St.type&&M[st].push({content:St.text,type:"normal"})}return(0,U.eW)(ct,"processNode"),z.forEach(St=>{"paragraph"===St.type?St.tokens?.forEach(zt=>{ct(zt)}):"html"===St.type&&M[st].push({content:St.text,type:"normal"})}),M}function Xr(O,{markdownAutoWrap:l}={}){const B=Oe.lexer(O);function z(M){return"text"===M.type?!1===l?M.text.replace(/\n */g,"
    ").replace(/ /g," "):M.text.replace(/\n */g,"
    "):"strong"===M.type?`${M.tokens?.map(z).join("")}`:"em"===M.type?`${M.tokens?.map(z).join("")}`:"paragraph"===M.type?`

    ${M.tokens?.map(z).join("")}

    `:"space"===M.type?"":"html"===M.type?`${M.text}`:"escape"===M.type?M.text:`Unsupported markdown: ${M.type}`}return(0,U.eW)(z,"output"),B.map(z).join("")}function ir(O){return Intl.Segmenter?[...(new Intl.Segmenter).segment(O)].map(l=>l.segment):[...O]}function ri(O,l){return Ge(O,[],ir(l.content),l.type)}function Ge(O,l,B,z){if(0===B.length)return[{content:l.join(""),type:z},{content:"",type:z}];const[M,...st]=B,ct=[...l,M];return O([{content:ct.join(""),type:z}])?Ge(O,ct,st,z):(0===l.length&&M&&(l.push(M),B.shift()),[{content:l.join(""),type:z},{content:B.join(""),type:z}])}function or(O,l){if(O.some(({content:B})=>B.includes("\n")))throw new Error("splitLineToFitWidth does not support newlines in the line");return dr(O,l)}function dr(O,l,B=[],z=[]){if(0===O.length)return z.length>0&&B.push(z),B.length>0?B:[];let M="";" "===O[0].content&&(M=" ",O.shift());const st=O.shift()??{content:" ",type:"normal"},ct=[...z];if(""!==M&&ct.push({content:M,type:"normal"}),ct.push(st),l(ct))return dr(O,l,B,ct);if(z.length>0)B.push(z),O.unshift(st);else if(st.content){const[St,zt]=ri(l,st);B.push([St]),zt.content&&O.unshift(zt)}return dr(O,l,B)}function sr(O,l){l&&O.attr("style",l)}function mr(O,l,B,z){return Qr.apply(this,arguments)}function Qr(){return(Qr=(0,s.Z)(function*(O,l,B,z,M=!1){const st=O.append("foreignObject");st.attr("width",10*B+"px"),st.attr("height",10*B+"px");const ct=st.append("xhtml:div");let St=l.label;l.label&&(0,U.l0)(l.label)&&(St=yield(0,U.uT)(l.label.replace(U.SY.lineBreakRegex,"\n"),(0,U.nV)()));const zt=l.isNode?"nodeLabel":"edgeLabel",Ut=ct.append("span");Ut.html(St),sr(Ut,l.labelStyle),Ut.attr("class",`${zt} ${z}`),sr(ct,l.labelStyle),ct.style("display","table-cell"),ct.style("white-space","nowrap"),ct.style("line-height","1.5"),ct.style("max-width",B+"px"),ct.style("text-align","center"),ct.attr("xmlns","http://www.w3.org/1999/xhtml"),M&&ct.attr("class","labelBkg");let _e=ct.node().getBoundingClientRect();return _e.width===B&&(ct.style("display","table"),ct.style("white-space","break-spaces"),ct.style("width",B+"px"),_e=ct.node().getBoundingClientRect()),st.node()})).apply(this,arguments)}function $r(O,l,B){return O.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",l*B-.1+"em").attr("dy",B+"em")}function _r(O,l,B){const z=O.append("text"),M=$r(z,1,l);Ar(M,B);const st=M.node().getComputedTextLength();return z.remove(),st}function Mr(O,l,B){const z=O.append("text"),M=$r(z,1,l);Ar(M,[{content:B,type:"normal"}]);const st=M.node()?.getBoundingClientRect();return st&&z.remove(),st}function Tr(O,l,B,z=!1){const st=l.append("g"),ct=st.insert("rect").attr("class","background").attr("style","stroke: none"),St=st.append("text").attr("y","-10.1");let zt=0;for(const Ut of B){const _e=(0,U.eW)(Ae=>_r(st,1.1,Ae)<=O,"checkWidth"),ze=_e(Ut)?[Ut]:or(Ut,_e);for(const Ae of ze){Ar($r(St,zt,1.1),Ae),zt++}}if(z){const Ut=St.node().getBBox(),_e=2;return ct.attr("x",Ut.x-_e).attr("y",Ut.y-_e).attr("width",Ut.width+2*_e).attr("height",Ut.height+2*_e),st.node()}return St.node()}function Ar(O,l){O.text(""),l.forEach((B,z)=>{const M=O.append("tspan").attr("font-style","em"===B.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===B.type?"bold":"normal");0===z?M.text(B.content):M.text(" "+B.content)})}function Wr(O){return O.replace(/fa[bklrs]?:fa-[\w-]+/g,l=>``)}(0,U.eW)(Yr,"preprocessMarkdown"),(0,U.eW)(Xe,"markdownToLines"),(0,U.eW)(Xr,"markdownToHTML"),(0,U.eW)(ir,"splitTextToChars"),(0,U.eW)(ri,"splitWordToFitWidth"),(0,U.eW)(Ge,"splitWordToFitWidthRecursion"),(0,U.eW)(or,"splitLineToFitWidth"),(0,U.eW)(dr,"splitLineToFitWidthRecursion"),(0,U.eW)(sr,"applyStyle"),(0,U.eW)(mr,"addHtmlSpan"),(0,U.eW)($r,"createTspan"),(0,U.eW)(_r,"computeWidthOfText"),(0,U.eW)(Mr,"computeDimensionOfText"),(0,U.eW)(Tr,"createFormattedText"),(0,U.eW)(Ar,"updateTextContentAndStyles"),(0,U.eW)(Wr,"replaceIconSubstring");var fr=(0,U.eW)(function(){var O=(0,s.Z)(function*(l,B="",{style:z="",isTitle:M=!1,classes:st="",useHtmlLabels:ct=!0,isNode:St=!0,width:zt=200,addSvgBackground:Ut=!1}={},_e){if(U.cM.debug("XYZ createText",B,z,M,st,ct,St,"addSvgBackground: ",Ut),ct){const ze=Xr(B,_e),Ae=Wr((0,X.SH)(ze)),Ye=B.replace(/\\\\/g,"\\"),$e={isNode:St,label:(0,U.l0)(B)?Ye:Ae,labelStyle:z.replace("fill:","color:")};return yield mr(l,$e,zt,st,Ut)}{const Ye=Tr(zt,l,Xe(B.replace(//g,"
    ").replace("
    ","
    "),_e),!!B&&Ut);if(St){/stroke:/.exec(z)&&(z=z.replace("stroke:","lineColor:"));const $e=z.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,rt.Ys)(Ye).attr("style",$e)}else{const $e=z.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,rt.Ys)(Ye).select("rect").attr("style",$e.replace(/background:/g,"fill:"));const Qe=z.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,rt.Ys)(Ye).select("text").attr("style",Qe)}return Ye}});return function(l){return O.apply(this,arguments)}}(),"createText")},77437:(he,ut,o)=>{"use strict";o.d(ut,{s4:()=>De,ef:()=>ce,cN:()=>le});var s=o(53420),X=o(3685);const J=(Mt,jt)=>!!Mt&&!(!(jt&&""===Mt.prefix||Mt.prefix)||!Mt.name),r=Object.freeze({left:0,top:0,width:16,height:16}),j=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),G=Object.freeze({...r,...j}),A=Object.freeze({...G,body:"",hidden:!1});function L(Mt,jt){const Et=function $(Mt,jt){const Et={};!Mt.hFlip!=!jt.hFlip&&(Et.hFlip=!0),!Mt.vFlip!=!jt.vFlip&&(Et.vFlip=!0);const Qt=((Mt.rotate||0)+(jt.rotate||0))%4;return Qt&&(Et.rotate=Qt),Et}(Mt,jt);for(const Qt in A)Qt in j?Qt in Mt&&!(Qt in Et)&&(Et[Qt]=j[Qt]):Qt in jt?Et[Qt]=jt[Qt]:Qt in Mt&&(Et[Qt]=Mt[Qt]);return Et}function m(Mt,jt,Et){const Qt=Mt.icons,wt=Mt.aliases||Object.create(null);let qt={};function Ht(ne){qt=L(Qt[ne]||wt[ne],qt)}return Ht(jt),Et.forEach(Ht),L(Mt,qt)}function lt(Mt,jt){if(Mt.icons[jt])return m(Mt,jt,[]);const Et=function Y(Mt,jt){const Et=Mt.icons,Qt=Mt.aliases||Object.create(null),wt=Object.create(null);return(jt||Object.keys(Et).concat(Object.keys(Qt))).forEach(function qt(Ht){if(Et[Ht])return wt[Ht]=[];if(!(Ht in wt)){wt[Ht]=null;const ne=Qt[Ht]&&Qt[Ht].parent,ke=ne&&qt(ne);ke&&(wt[Ht]=[ne].concat(ke))}return wt[Ht]}),wt}(Mt,[jt])[jt];return Et?m(Mt,jt,Et):null}const Lt=Object.freeze({width:null,height:null}),Wt=Object.freeze({...Lt,...j}),q=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function It(Mt,jt,Et){if(1===jt)return Mt;if(Et=Et||100,"number"==typeof Mt)return Math.ceil(Mt*jt*Et)/Et;if("string"!=typeof Mt)return Mt;const Qt=Mt.split(q);if(null===Qt||!Qt.length)return Mt;const wt=[];let qt=Qt.shift(),Ht=Vt.test(qt);for(;;){if(Ht){const ne=parseFloat(qt);isNaN(ne)?wt.push(qt):wt.push(Math.ceil(ne*jt*Et)/Et)}else wt.push(qt);if(qt=Qt.shift(),void 0===qt)return wt.join("");Ht=!Ht}}const Re=/\sid="(\S+)"/g,Zt="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let mt=0;var le={body:'?',height:80,width:80},ie=new Map,xe=new Map,ce=(0,X.eW)(Mt=>{for(const jt of Mt){if(!jt.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(X.cM.debug("Registering icon pack:",jt.name),"loader"in jt)xe.set(jt.name,jt.loader);else{if(!("icons"in jt))throw X.cM.error("Invalid icon loader:",jt),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');ie.set(jt.name,jt.icons)}}},"registerIconPacks"),Be=(0,X.eW)(function(){var Mt=(0,s.Z)(function*(jt,Et){const Qt=((Mt,jt,Et,Qt="")=>{const wt=Mt.split(":");if("@"===Mt.slice(0,1)){if(wt.length<2||wt.length>3)return null;Qt=wt.shift().slice(1)}if(wt.length>3||!wt.length)return null;if(wt.length>1){const ne=wt.pop(),ke=wt.pop(),vt={provider:wt.length>0?wt[0]:Qt,prefix:ke,name:ne};return jt&&!J(vt)?null:vt}const qt=wt[0],Ht=qt.split("-");if(Ht.length>1){const ne={provider:Qt,prefix:Ht.shift(),name:Ht.join("-")};return jt&&!J(ne)?null:ne}if(Et&&""===Qt){const ne={provider:Qt,prefix:"",name:qt};return jt&&!J(ne,Et)?null:ne}return null})(jt,!0,void 0!==Et);if(!Qt)throw new Error(`Invalid icon name: ${jt}`);const wt=Qt.prefix||Et;if(!wt)throw new Error(`Icon name must contain a prefix: ${jt}`);let qt=ie.get(wt);if(!qt){const ne=xe.get(wt);if(!ne)throw new Error(`Icon set not found: ${Qt.prefix}`);try{qt={...yield ne(),prefix:wt},ie.set(wt,qt)}catch(ke){throw X.cM.error(ke),new Error(`Failed to load icon set: ${Qt.prefix}`)}}const Ht=lt(qt,Qt.name);if(!Ht)throw new Error(`Icon not found: ${jt}`);return Ht});return function(jt,Et){return Mt.apply(this,arguments)}}(),"getRegisteredIconData"),De=(0,X.eW)(function(){var Mt=(0,s.Z)(function*(jt,Et){let Qt;try{Qt=yield Be(jt,Et?.fallbackPrefix)}catch(Ht){X.cM.error(Ht),Qt=le}const wt=function fe(Mt,jt){const Et={...G,...Mt},Qt={...Wt,...jt},wt={left:Et.left,top:Et.top,width:Et.width,height:Et.height};let qt=Et.body;[Et,Qt].forEach(V=>{const kt=[],Bt=V.hFlip,Yt=V.vFlip;let Dt,Gt=V.rotate;switch(Bt?Yt?Gt+=2:(kt.push("translate("+(wt.width+wt.left).toString()+" "+(0-wt.top).toString()+")"),kt.push("scale(-1 1)"),wt.top=wt.left=0):Yt&&(kt.push("translate("+(0-wt.left).toString()+" "+(wt.height+wt.top).toString()+")"),kt.push("scale(1 -1)"),wt.top=wt.left=0),Gt<0&&(Gt-=4*Math.floor(Gt/4)),Gt%=4,Gt){case 1:Dt=wt.height/2+wt.top,kt.unshift("rotate(90 "+Dt.toString()+" "+Dt.toString()+")");break;case 2:kt.unshift("rotate(180 "+(wt.width/2+wt.left).toString()+" "+(wt.height/2+wt.top).toString()+")");break;case 3:Dt=wt.width/2+wt.left,kt.unshift("rotate(-90 "+Dt.toString()+" "+Dt.toString()+")")}Gt%2==1&&(wt.left!==wt.top&&(Dt=wt.left,wt.left=wt.top,wt.top=Dt),wt.width!==wt.height&&(Dt=wt.width,wt.width=wt.height,wt.height=Dt)),kt.length&&(qt=function ve(Mt,jt,Et){const Qt=function $t(Mt,jt="defs"){let Et="";const Qt=Mt.indexOf("<"+jt);for(;Qt>=0;){const wt=Mt.indexOf(">",Qt),qt=Mt.indexOf("",qt);if(-1===Ht)break;Et+=Mt.slice(wt+1,qt).trim(),Mt=Mt.slice(0,Qt).trim()+Mt.slice(Ht+1)}return{defs:Et,content:Mt}}(Mt);return function we(Mt,jt){return Mt?""+Mt+""+jt:jt}(Qt.defs,jt+Qt.content+Et)}(qt,'',""))});const Ht=Qt.width,ne=Qt.height,ke=wt.width,vt=wt.height;let et,dt;null===Ht?(dt=null===ne?"1em":"auto"===ne?vt:ne,et=It(dt,ke/vt)):(et="auto"===Ht?ke:Ht,dt=null===ne?It(et,vt/ke):"auto"===ne?vt:ne);const nt={},ht=(V,kt)=>{(Mt=>"unset"===Mt||"undefined"===Mt||"none"===Mt)(kt)||(nt[V]=kt.toString())};ht("width",et),ht("height",dt);const bt=[wt.left,wt.top,ke,vt];return nt.viewBox=bt.join(" "),{attributes:nt,viewBox:bt,body:qt}}(Qt,Et);return function Me(Mt,jt){let Et=-1===Mt.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const Qt in jt)Et+=" "+Qt+'="'+jt[Qt]+'"';return'"+Mt+""}(function yt(Mt,jt=Zt){const Et=[];let Qt;for(;Qt=Re.exec(Mt);)Et.push(Qt[1]);if(!Et.length)return Mt;const wt="suffix"+(16777216*Math.random()|Date.now()).toString(16);return Et.forEach(qt=>{const Ht="function"==typeof jt?jt(qt):jt+(mt++).toString(),ne=qt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");Mt=Mt.replace(new RegExp('([#;"])('+ne+')([")]|\\.[a-z])',"g"),"$1"+Ht+wt+"$3")}),Mt=Mt.replace(new RegExp(wt,"g"),"")}(wt.body),wt.attributes)});return function(jt,Et){return Mt.apply(this,arguments)}}(),"getIconSVG")},9681:(he,ut,o)=>{"use strict";o.d(ut,{C1:()=>A,Fh:()=>Zt,Lf:()=>Hi,XO:()=>ve,Yn:()=>Yi,ZH:()=>Qt,aH:()=>nn,dW:()=>Vi,gU:()=>rn,jr:()=>L,us:()=>Et});var s=o(53420),X=o(25333),U=o(77437),rt=o(50027),J=o(62477),r=o(3685),j=o(31083),G=o(97886),A=(0,r.eW)(function(){var y=(0,s.Z)(function*(t,h,S){let p;const d=h.useHtmlLabels||(0,r.ku)((0,r.nV)()?.htmlLabels);p=S||"node default";const E=t.insert("g").attr("class",p).attr("id",h.domId||h.id),a=E.insert("g").attr("class","label").attr("style",(0,J.R7)(h.labelStyle));let b;b=void 0===h.label?"":"string"==typeof h.label?h.label:h.label[0];const n=yield(0,rt.rw)(a,(0,r.oO)((0,J.SH)(b),(0,r.nV)()),{useHtmlLabels:d,width:h.width||(0,r.nV)().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:h.labelStyle,addSvgBackground:!!h.icon||!!h.img});let c=n.getBBox();const _=(h?.padding??0)/2;if(d){const W=n.children[0],P=(0,j.Ys)(n),Z=W.getElementsByTagName("img");if(Z){const tt=""===b.replace(/]*>/g,"").trim();yield Promise.all([...Z].map(it=>new Promise(pt=>{function e(){if(it.style.display="flex",it.style.flexDirection="column",tt){const i=(0,r.nV)().fontSize?(0,r.nV)().fontSize:window.getComputedStyle(document.body).fontSize,g=5,[C=r.vZ.fontSize]=(0,J.VG)(i),k=C*g+"px";it.style.minWidth=k,it.style.maxWidth=k}else it.style.width="100%";pt(it)}(0,r.eW)(e,"setupImage"),setTimeout(()=>{it.complete&&e()}),it.addEventListener("error",e),it.addEventListener("load",e)})))}c=W.getBoundingClientRect(),P.attr("width",c.width),P.attr("height",c.height)}return d?a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):a.attr("transform","translate(0, "+-c.height/2+")"),h.centerLabel&&a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:E,bbox:c,halfPadding:_,label:a}});return function(t,h,S){return y.apply(this,arguments)}}(),"labelHelper"),$=(0,r.eW)(function(){var y=(0,s.Z)(function*(t,h,S){const p=S.useHtmlLabels||(0,r.ku)((0,r.nV)()?.flowchart?.htmlLabels),d=t.insert("g").attr("class","label").attr("style",S.labelStyle||""),E=yield(0,rt.rw)(d,(0,r.oO)((0,J.SH)(h),(0,r.nV)()),{useHtmlLabels:p,width:S.width||(0,r.nV)()?.flowchart?.wrappingWidth,style:S.labelStyle,addSvgBackground:!!S.icon||!!S.img});let a=E.getBBox();const b=S.padding/2;if((0,r.ku)((0,r.nV)()?.flowchart?.htmlLabels)){const n=E.children[0],c=(0,j.Ys)(E);a=n.getBoundingClientRect(),c.attr("width",a.width),c.attr("height",a.height)}return p?d.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"):d.attr("transform","translate(0, "+-a.height/2+")"),S.centerLabel&&d.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),d.insert("rect",":first-child"),{shapeSvg:t,bbox:a,halfPadding:b,label:d}});return function(t,h,S){return y.apply(this,arguments)}}(),"insertLabel"),L=(0,r.eW)((y,t)=>{const h=t.node().getBBox();y.width=h.width,y.height=h.height},"updateNodeBounds"),Y=(0,r.eW)((y,t)=>("handDrawn"===y.look?"rough-node":"node")+" "+y.cssClasses+" "+(t||""),"getNodeClasses");function m(y){const t=y.map((h,S)=>`${0===S?"M":"L"}${h.x},${h.y}`);return t.push("Z"),t.join(" ")}function lt(y,t,h,S,p,d){const E=[],b=h-y,n=S-t,c=b/d,_=2*Math.PI/c,W=t+n/2;for(let P=0;P<=50;P++){const tt=y+P/50*b,it=W+p*Math.sin(_*(tt-y));E.push({x:tt,y:it})}return E}function Lt(y,t,h,S,p,d){const E=[],a=p*Math.PI/180,c=(d*Math.PI/180-a)/(S-1);for(let _=0;_{var b,n,h=y.x,S=y.y,p=t.x-h,d=t.y-S,E=y.width/2,a=y.height/2;return Math.abs(d)*E>Math.abs(p)*a?(d<0&&(a=-a),b=0===d?0:a*p/d,n=a):(p<0&&(E=-E),b=E,n=0===p?0:E*d/p),{x:h+b,y:S+n}},"intersectRect");function Vt(y,t){t&&y.attr("style",t)}function It(y){return $t.apply(this,arguments)}function $t(){return($t=(0,s.Z)(function*(y){const t=(0,j.Ys)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),h=t.append("xhtml:div");let S=y.label;y.label&&(0,r.l0)(y.label)&&(S=yield(0,r.uT)(y.label.replace(r.SY.lineBreakRegex,"\n"),(0,r.nV)()));const p=y.isNode?"nodeLabel":"edgeLabel";return h.html('"+S+""),Vt(h,y.labelStyle),h.style("display","inline-block"),h.style("padding-right","1px"),h.style("white-space","nowrap"),h.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()})).apply(this,arguments)}(0,r.eW)(Vt,"applyStyle"),(0,r.eW)(It,"addHtmlLabel");var ve=(0,r.eW)(function(){var y=(0,s.Z)(function*(t,h,S,p){let d=t||"";if("object"==typeof d&&(d=d[0]),(0,r.ku)((0,r.nV)().flowchart.htmlLabels)){d=d.replace(/\\n|\n/g,"
    "),r.cM.info("vertexText"+d);const E={isNode:p,label:(0,J.SH)(d).replace(/fa[blrs]?:fa-[\w-]+/g,b=>``),labelStyle:h&&h.replace("fill:","color:")};return yield It(E)}{const E=document.createElementNS("http://www.w3.org/2000/svg","text");E.setAttribute("style",h.replace("color:","fill:"));let a=[];a="string"==typeof d?d.split(/\\n|\n|/gi):Array.isArray(d)?d:[];for(const b of a){const n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),S?n.setAttribute("class","title-row"):n.setAttribute("class","row"),n.textContent=b.trim(),E.appendChild(n)}return E}});return function(t,h,S,p){return y.apply(this,arguments)}}(),"createLabel"),re=(0,r.eW)((y,t,h,S,p)=>["M",y+p,t,"H",y+h-p,"A",p,p,0,0,1,y+h,t+p,"V",t+S-p,"A",p,p,0,0,1,y+h-p,t+S,"H",y+p,"A",p,p,0,0,1,y,t+S-p,"V",t+p,"A",p,p,0,0,1,y+p,t,"Z"].join(" "),"createRoundedRectPathD"),fe=(0,r.eW)(y=>{const{handDrawnSeed:t}=(0,r.nV)();return{fill:y,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:y,seed:t}},"solidStateFill"),Me=(0,r.eW)(y=>{const t=Re([...y.cssCompiledStyles||[],...y.cssStyles||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Re=(0,r.eW)(y=>{const t=new Map;return y.forEach(h=>{const[S,p]=h.split(":");t.set(S.trim(),p?.trim())}),t},"styles2Map"),Zt=(0,r.eW)(y=>"color"===y||"font-size"===y||"font-family"===y||"font-weight"===y||"font-style"===y||"text-decoration"===y||"text-align"===y||"text-transform"===y||"line-height"===y||"letter-spacing"===y||"word-spacing"===y||"text-shadow"===y||"text-overflow"===y||"white-space"===y||"word-wrap"===y||"word-break"===y||"overflow-wrap"===y||"hyphens"===y,"isLabelStyle"),mt=(0,r.eW)(y=>{const{stylesArray:t}=Me(y),h=[],S=[],p=[],d=[];return t.forEach(E=>{const a=E[0];Zt(a)?h.push(E.join(":")+" !important"):(S.push(E.join(":")+" !important"),a.includes("stroke")&&p.push(E.join(":")+" !important"),"fill"===a&&d.push(E.join(":")+" !important"))}),{labelStyles:h.join(";"),nodeStyles:S.join(";"),stylesArray:t,borderStyles:p,backgroundStyles:d}},"styles2String"),yt=(0,r.eW)((y,t)=>{const{themeVariables:h,handDrawnSeed:S}=(0,r.nV)(),{nodeBorder:p,mainBkg:d}=h,{stylesMap:E}=Me(y);return Object.assign({roughness:.7,fill:E.get("fill")||d,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:E.get("stroke")||p,seed:S,strokeWidth:E.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},t)},"userNodeOverrides"),le=(0,r.eW)(function(){var y=(0,s.Z)(function*(t,h){r.cM.info("Creating subgraph rect for ",h.id,h);const S=(0,r.nV)(),{themeVariables:p,handDrawnSeed:d}=S,{clusterBkg:E,clusterBorder:a}=p,{labelStyles:b,nodeStyles:n,borderStyles:c,backgroundStyles:_}=mt(h),W=t.insert("g").attr("class","cluster "+h.cssClasses).attr("id",h.id).attr("data-look",h.look),P=(0,r.ku)(S.flowchart.htmlLabels),Z=W.insert("g").attr("class","cluster-label "),tt=yield(0,rt.rw)(Z,h.label,{style:h.labelStyle,useHtmlLabels:P,isNode:!0});let it=tt.getBBox();if((0,r.ku)(S.flowchart.htmlLabels)){const D=tt.children[0],Q=(0,j.Ys)(tt);it=D.getBoundingClientRect(),Q.attr("width",it.width),Q.attr("height",it.height)}const pt=h.width<=it.width+h.padding?it.width+h.padding:h.width;h.width<=it.width+h.padding?h.diff=(pt-h.width)/2-h.padding:h.diff=-h.padding;const e=h.height,i=h.x-pt/2,g=h.y-e/2;let C;if(r.cM.trace("Data ",h,JSON.stringify(h)),"handDrawn"===h.look){const D=G.Z.svg(W),Q=yt(h,{roughness:.7,fill:E,stroke:a,fillWeight:3,seed:d}),ot=D.path(re(i,g,pt,e,0),Q);C=W.insert(()=>(r.cM.debug("Rough node insert CXC",ot),ot),":first-child"),C.select("path:nth-child(2)").attr("style",c.join(";")),C.select("path").attr("style",_.join(";").replace("fill","stroke"))}else C=W.insert("rect",":first-child"),C.attr("style",n).attr("rx",h.rx).attr("ry",h.ry).attr("x",i).attr("y",g).attr("width",pt).attr("height",e);const{subGraphTitleTopMargin:k}=(0,X.L)(S);if(Z.attr("transform",`translate(${h.x-it.width/2}, ${h.y-h.height/2+k})`),b){const D=Z.select("span");D&&D.attr("style",b)}const H=C.node().getBBox();return h.offsetX=0,h.width=H.width,h.height=H.height,h.offsetY=it.height-h.padding/2,h.intersect=function(D){return q(h,D)},{cluster:W,labelBBox:it}});return function(t,h){return y.apply(this,arguments)}}(),"rect"),ie=(0,r.eW)((y,t)=>{const h=y.insert("g").attr("class","note-cluster").attr("id",t.id),S=h.insert("rect",":first-child"),p=0*t.padding,d=p/2;S.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-d).attr("y",t.y-t.height/2-d).attr("width",t.width+p).attr("height",t.height+p).attr("fill","none");const E=S.node().getBBox();return t.width=E.width,t.height=E.height,t.intersect=function(a){return q(t,a)},{cluster:h,labelBBox:{width:0,height:0}}},"noteGroup"),xe=(0,r.eW)(function(){var y=(0,s.Z)(function*(t,h){const S=(0,r.nV)(),{themeVariables:p,handDrawnSeed:d}=S,{altBackground:E,compositeBackground:a,compositeTitleBackground:b,nodeBorder:n}=p,c=t.insert("g").attr("class",h.cssClasses).attr("id",h.id).attr("data-id",h.id).attr("data-look",h.look),_=c.insert("g",":first-child"),W=c.insert("g").attr("class","cluster-label");let P=c.append("rect");const Z=W.node().appendChild(yield ve(h.label,h.labelStyle,void 0,!0));let tt=Z.getBBox();if((0,r.ku)(S.flowchart.htmlLabels)){const ot=Z.children[0],Tt=(0,j.Ys)(Z);tt=ot.getBoundingClientRect(),Tt.attr("width",tt.width),Tt.attr("height",tt.height)}const it=0*h.padding,pt=it/2,e=(h.width<=tt.width+h.padding?tt.width+h.padding:h.width)+it;h.width<=tt.width+h.padding?h.diff=(e-h.width)/2-h.padding:h.diff=-h.padding;const i=h.height+it,g=h.height+it-tt.height-6,C=h.x-e/2,k=h.y-i/2;h.width=e;const H=h.y-h.height/2-pt+tt.height+2;let D;if("handDrawn"===h.look){const ot=h.cssClasses.includes("statediagram-cluster-alt"),Tt=G.Z.svg(c),Nt=h.rx||h.ry?Tt.path(re(C,k,e,i,10),{roughness:.7,fill:b,fillStyle:"solid",stroke:n,seed:d}):Tt.rectangle(C,k,e,i,{seed:d});D=c.insert(()=>Nt,":first-child");const At=Tt.rectangle(C,H,e,g,{fill:ot?E:a,fillStyle:ot?"hachure":"solid",stroke:n,seed:d});D=c.insert(()=>Nt,":first-child"),P=c.insert(()=>At)}else{D=_.insert("rect",":first-child");const ot="outer";D.attr("class",ot).attr("x",C).attr("y",k).attr("width",e).attr("height",i).attr("data-look",h.look),P.attr("class","inner").attr("x",C).attr("y",H).attr("width",e).attr("height",g)}W.attr("transform",`translate(${h.x-tt.width/2}, ${k+1-((0,r.ku)(S.flowchart.htmlLabels)?0:3)})`);const Q=D.node().getBBox();return h.height=Q.height,h.offsetX=0,h.offsetY=tt.height-h.padding/2,h.labelBBox=tt,h.intersect=function(ot){return q(h,ot)},{cluster:c,labelBBox:tt}});return function(t,h){return y.apply(this,arguments)}}(),"roundedWithTitle"),ce=(0,r.eW)(function(){var y=(0,s.Z)(function*(t,h){r.cM.info("Creating subgraph rect for ",h.id,h);const S=(0,r.nV)(),{themeVariables:p,handDrawnSeed:d}=S,{clusterBkg:E,clusterBorder:a}=p,{labelStyles:b,nodeStyles:n,borderStyles:c,backgroundStyles:_}=mt(h),W=t.insert("g").attr("class","cluster "+h.cssClasses).attr("id",h.id).attr("data-look",h.look),P=(0,r.ku)(S.flowchart.htmlLabels),Z=W.insert("g").attr("class","cluster-label "),tt=yield(0,rt.rw)(Z,h.label,{style:h.labelStyle,useHtmlLabels:P,isNode:!0,width:h.width});let it=tt.getBBox();if((0,r.ku)(S.flowchart.htmlLabels)){const D=tt.children[0],Q=(0,j.Ys)(tt);it=D.getBoundingClientRect(),Q.attr("width",it.width),Q.attr("height",it.height)}const pt=h.width<=it.width+h.padding?it.width+h.padding:h.width;h.width<=it.width+h.padding?h.diff=(pt-h.width)/2-h.padding:h.diff=-h.padding;const e=h.height,i=h.x-pt/2,g=h.y-e/2;let C;if(r.cM.trace("Data ",h,JSON.stringify(h)),"handDrawn"===h.look){const D=G.Z.svg(W),Q=yt(h,{roughness:.7,fill:E,stroke:a,fillWeight:4,seed:d}),ot=D.path(re(i,g,pt,e,h.rx),Q);C=W.insert(()=>(r.cM.debug("Rough node insert CXC",ot),ot),":first-child"),C.select("path:nth-child(2)").attr("style",c.join(";")),C.select("path").attr("style",_.join(";").replace("fill","stroke"))}else C=W.insert("rect",":first-child"),C.attr("style",n).attr("rx",h.rx).attr("ry",h.ry).attr("x",i).attr("y",g).attr("width",pt).attr("height",e);const{subGraphTitleTopMargin:k}=(0,X.L)(S);if(Z.attr("transform",`translate(${h.x-it.width/2}, ${h.y-h.height/2+k})`),b){const D=Z.select("span");D&&D.attr("style",b)}const H=C.node().getBBox();return h.offsetX=0,h.width=H.width,h.height=H.height,h.offsetY=it.height-h.padding/2,h.intersect=function(D){return q(h,D)},{cluster:W,labelBBox:it}});return function(t,h){return y.apply(this,arguments)}}(),"kanbanSection"),Mt={rect:le,squareRect:le,roundedWithTitle:xe,noteGroup:ie,divider:(0,r.eW)((y,t)=>{const h=(0,r.nV)(),{themeVariables:S,handDrawnSeed:p}=h,{nodeBorder:d}=S,E=y.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),a=E.insert("g",":first-child"),b=0*t.padding,n=t.width+b;t.diff=-t.padding;const c=t.height+b,_=t.x-n/2,W=t.y-c/2;let P;if(t.width=n,"handDrawn"===t.look){const it=G.Z.svg(E).rectangle(_,W,n,c,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:d,seed:p});P=E.insert(()=>it,":first-child")}else{P=a.insert("rect",":first-child");const tt="divider";P.attr("class",tt).attr("x",_).attr("y",W).attr("width",n).attr("height",c).attr("data-look",t.look)}const Z=P.node().getBBox();return t.height=Z.height,t.offsetX=0,t.offsetY=0,t.intersect=function(tt){return q(t,tt)},{cluster:E,labelBBox:{}}},"divider"),kanbanSection:ce},jt=new Map,Et=(0,r.eW)(function(){var y=(0,s.Z)(function*(t,h){const S=h.shape||"rect",p=yield Mt[S](t,h);return jt.set(h.id,p),p});return function(t,h){return y.apply(this,arguments)}}(),"insertCluster"),Qt=(0,r.eW)(()=>{jt=new Map},"clear");function wt(y,t){return y.intersect(t)}(0,r.eW)(wt,"intersectNode");var qt=wt;function Ht(y,t,h,S){var p=y.x,d=y.y,E=p-S.x,a=d-S.y,b=Math.sqrt(t*t*a*a+h*h*E*E),n=Math.abs(t*h*E/b);S.x0}(0,r.eW)(et,"intersectLine"),(0,r.eW)(dt,"sameSign");var nt=et;function ht(y,t,h){let S=y.x,p=y.y,d=[],E=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach(function(c){E=Math.min(E,c.x),a=Math.min(a,c.y)}):(E=Math.min(E,t.x),a=Math.min(a,t.y));let b=S-y.width/2-E,n=p-y.height/2-a;for(let c=0;c1&&d.sort(function(c,_){let W=c.x-h.x,P=c.y-h.y,Z=Math.sqrt(W*W+P*P),tt=_.x-h.x,it=_.y-h.y,pt=Math.sqrt(tt*tt+it*it);return Zc,":first-child");return _.attr("class","anchor").attr("style",(0,J.R7)(a)),L(t,_),t.intersect=function(W){return r.cM.info("Circle intersect",t,1,W),V.circle(t,1,W)},d}function Bt(y,t,h,S,p,d,E){const b=(y+h)/2,n=(t+S)/2,c=Math.atan2(S-t,h-y),P=(h-y)/2/p,Z=(S-t)/2/d,tt=Math.sqrt(P**2+Z**2);if(tt>1)throw new Error("The given radii are too small to create an arc between the points.");const it=Math.sqrt(1-tt**2),pt=b+it*d*Math.sin(c)*(E?-1:1),e=n-it*p*Math.cos(c)*(E?-1:1),i=Math.atan2((t-e)/d,(y-pt)/p);let C=Math.atan2((S-e)/d,(h-pt)/p)-i;E&&C<0&&(C+=2*Math.PI),!E&&C>0&&(C-=2*Math.PI);const k=[];for(let H=0;H<20;H++){const Q=i+H/19*C,ot=pt+p*Math.cos(Q),Tt=e+d*Math.sin(Q);k.push({x:ot,y:Tt})}return k}function Yt(y,t){return Gt.apply(this,arguments)}function Gt(){return(Gt=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),E=d.width+t.padding+20,a=d.height+t.padding,b=a/2,n=b/(2.5+a/50),{cssStyles:c}=t,_=[{x:E/2,y:-a/2},{x:-E/2,y:-a/2},...Bt(-E/2,-a/2,-E/2,a/2,n,b,!1),{x:E/2,y:a/2},...Bt(E/2,a/2,E/2,-a/2,n,b,!0)],W=G.Z.svg(p),P=yt(t,{});"handDrawn"!==t.look&&(P.roughness=0,P.fillStyle="solid");const Z=m(_),tt=W.path(Z,P),it=p.insert(()=>tt,":first-child");return it.attr("class","basic label-container"),c&&"handDrawn"!==t.look&&it.selectAll("path").attr("style",c),S&&"handDrawn"!==t.look&&it.selectAll("path").attr("style",S),it.attr("transform",`translate(${n/2}, 0)`),L(t,it),t.intersect=function(pt){return V.polygon(t,_,pt)},p})).apply(this,arguments)}function Dt(y,t,h,S){return y.insert("polygon",":first-child").attr("points",S.map(function(p){return p.x+","+p.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+h/2+")")}function ue(y,t){return Ie.apply(this,arguments)}function Ie(){return(Ie=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),E=d.height+t.padding,b=d.width+t.padding+12,_=-E,P=[{x:12,y:_},{x:b,y:_},{x:b,y:0},{x:0,y:0},{x:0,y:_+12},{x:12,y:_}];let Z;const{cssStyles:tt}=t;if("handDrawn"===t.look){const it=G.Z.svg(p),pt=yt(t,{}),e=m(P),i=it.path(e,pt);Z=p.insert(()=>i,":first-child").attr("transform",`translate(${-b/2}, ${E/2})`),tt&&Z.attr("style",tt)}else Z=Dt(p,b,E,P);return S&&Z.attr("style",S),L(t,Z),t.intersect=function(it){return V.polygon(t,P,it)},p})).apply(this,arguments)}function pe(y,t){const{nodeStyles:h}=mt(t);t.label="";const S=y.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),{cssStyles:p}=t,d=Math.max(28,t.width??0),E=[{x:0,y:d/2},{x:d/2,y:0},{x:0,y:-d/2},{x:-d/2,y:0}],a=G.Z.svg(S),b=yt(t,{});"handDrawn"!==t.look&&(b.roughness=0,b.fillStyle="solid");const n=m(E),c=a.path(n,b),_=S.insert(()=>c,":first-child");return p&&"handDrawn"!==t.look&&_.selectAll("path").attr("style",p),h&&"handDrawn"!==t.look&&_.selectAll("path").attr("style",h),t.width=28,t.height=28,t.intersect=function(W){return V.polygon(t,E,W)},S}function de(y,t){return F.apply(this,arguments)}function F(){return(F=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,halfPadding:E}=yield A(y,t,Y(t)),a=d.width/2+E;let b;const{cssStyles:n}=t;if("handDrawn"===t.look){const c=G.Z.svg(p),_=yt(t,{}),W=c.circle(0,0,2*a,_);b=p.insert(()=>W,":first-child"),b.attr("class","basic label-container").attr("style",(0,J.R7)(n))}else b=p.insert("circle",":first-child").attr("class","basic label-container").attr("style",S).attr("r",a).attr("cx",0).attr("cy",0);return L(t,b),t.intersect=function(c){return r.cM.info("Circle intersect",t,a,c),V.circle(t,a,c)},p})).apply(this,arguments)}function u(y){const t=Math.cos(Math.PI/4),h=Math.sin(Math.PI/4),S=2*y;return`M ${-S/2*t},${S/2*h} L ${S/2*t},${-S/2*h}\n M ${S/2*t},${S/2*h} L ${-S/2*t},${-S/2*h}`}function x(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h,t.label="";const p=y.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),d=Math.max(30,t?.width??0),{cssStyles:E}=t,a=G.Z.svg(p),b=yt(t,{});"handDrawn"!==t.look&&(b.roughness=0,b.fillStyle="solid");const n=a.circle(0,0,2*d,b),c=u(d),_=a.path(c,b),W=p.insert(()=>n,":first-child");return W.insert(()=>_),E&&"handDrawn"!==t.look&&W.selectAll("path").attr("style",E),S&&"handDrawn"!==t.look&&W.selectAll("path").attr("style",S),L(t,W),t.intersect=function(P){return r.cM.info("crossedCircle intersect",t,{radius:d,point:P}),V.circle(t,d,P)},p}function f(y,t,h,S=100,p=0,d=180){const E=[],a=p*Math.PI/180,c=(d*Math.PI/180-a)/(S-1);for(let _=0;_i,":first-child").attr("stroke-opacity",0),g.insert(()=>pt,":first-child"),g.attr("class","text"),c&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",c),S&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",S),g.attr("transform",`translate(${n}, 0)`),E.attr("transform",`translate(${-a/2+n-(d.x-(d.left??0))},${-b/2+(t.padding??0)/2-(d.y-(d.top??0))})`),L(t,g),t.intersect=function(C){return V.polygon(t,W,C)},p})).apply(this,arguments)}function K(y,t,h,S=100,p=0,d=180){const E=[],a=p*Math.PI/180,c=(d*Math.PI/180-a)/(S-1);for(let _=0;_i,":first-child").attr("stroke-opacity",0),g.insert(()=>pt,":first-child"),g.attr("class","text"),c&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",c),S&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",S),g.attr("transform",`translate(${-n}, 0)`),E.attr("transform",`translate(${-a/2+(t.padding??0)/2-(d.x-(d.left??0))},${-b/2+(t.padding??0)/2-(d.y-(d.top??0))})`),L(t,g),t.intersect=function(C){return V.polygon(t,W,C)},p})).apply(this,arguments)}function ft(y,t,h,S=100,p=0,d=180){const E=[],a=p*Math.PI/180,c=(d*Math.PI/180-a)/(S-1);for(let _=0;_H,":first-child").attr("stroke-opacity",0),D.insert(()=>e,":first-child"),D.insert(()=>C,":first-child"),D.attr("class","text"),c&&"handDrawn"!==t.look&&D.selectAll("path").attr("style",c),S&&"handDrawn"!==t.look&&D.selectAll("path").attr("style",S),D.attr("transform",`translate(${n-n/4}, 0)`),E.attr("transform",`translate(${-a/2+(t.padding??0)/2-(d.x-(d.left??0))},${-b/2+(t.padding??0)/2-(d.y-(d.top??0))})`),L(t,D),t.intersect=function(Q){return V.polygon(t,P,Q)},p})).apply(this,arguments)}function Ft(y,t){return Pt.apply(this,arguments)}function Pt(){return(Pt=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),b=Math.max(80,1.25*(d.width+2*(t.padding??0)),t?.width??0),n=Math.max(20,d.height+2*(t.padding??0),t?.height??0),c=n/2,{cssStyles:_}=t,W=G.Z.svg(p),P=yt(t,{});"handDrawn"!==t.look&&(P.roughness=0,P.fillStyle="solid");const it=b-c,pt=n/4,e=[{x:it,y:0},{x:pt,y:0},{x:0,y:n/2},{x:pt,y:n},{x:it,y:n},...Lt(-it,-n/2,c,50,270,90)],i=m(e),g=W.path(i,P),C=p.insert(()=>g,":first-child");return C.attr("class","basic label-container"),_&&"handDrawn"!==t.look&&C.selectChildren("path").attr("style",_),S&&"handDrawn"!==t.look&&C.selectChildren("path").attr("style",S),C.attr("transform",`translate(${-b/2}, ${-n/2})`),L(t,C),t.intersect=function(k){return V.polygon(t,e,k)},p})).apply(this,arguments)}(0,r.eW)(kt,"anchor"),(0,r.eW)(Bt,"generateArcPoints"),(0,r.eW)(Yt,"bowTieRect"),(0,r.eW)(Dt,"insertPolygonShape"),(0,r.eW)(ue,"card"),(0,r.eW)(pe,"choice"),(0,r.eW)(de,"circle"),(0,r.eW)(u,"createLine"),(0,r.eW)(x,"crossedCircle"),(0,r.eW)(f,"generateCirclePoints"),(0,r.eW)(T,"curlyBraceLeft"),(0,r.eW)(K,"generateCirclePoints"),(0,r.eW)(N,"curlyBraceRight"),(0,r.eW)(ft,"generateCirclePoints"),(0,r.eW)(_t,"curlyBraces"),(0,r.eW)(Ft,"curvedTrapezoid");var Xt=(0,r.eW)((y,t,h,S,p,d)=>[`M${y},${t+d}`,`a${p},${d} 0,0,0 ${h},0`,`a${p},${d} 0,0,0 ${-h},0`,`l0,${S}`,`a${p},${d} 0,0,0 ${h},0`,"l0,"+-S].join(" "),"createCylinderPathD"),ye=(0,r.eW)((y,t,h,S,p,d)=>[`M${y},${t+d}`,`M${y+h},${t+d}`,`a${p},${d} 0,0,0 ${-h},0`,`l0,${S}`,`a${p},${d} 0,0,0 ${h},0`,"l0,"+-S].join(" "),"createOuterCylinderPathD"),be=(0,r.eW)((y,t,h,S,p,d)=>[`M${y-h/2},${-S/2}`,`a${p},${d} 0,0,0 ${h},0`].join(" "),"createInnerCylinderPathD");function me(y,t){return oe.apply(this,arguments)}function oe(){return(oe=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=Math.max(d.width+t.padding,t.width??0),b=a/2,n=b/(2.5+a/50),c=Math.max(d.height+n+t.padding,t.height??0);let _;const{cssStyles:W}=t;if("handDrawn"===t.look){const P=G.Z.svg(p),Z=ye(0,0,a,c,b,n),tt=be(0,n,a,c,b,n),it=P.path(Z,yt(t,{})),pt=P.path(tt,yt(t,{fill:"none"}));_=p.insert(()=>pt,":first-child"),_=p.insert(()=>it,":first-child"),_.attr("class","basic label-container"),W&&_.attr("style",W)}else{const P=Xt(0,0,a,c,b,n);_=p.insert("path",":first-child").attr("d",P).attr("class","basic label-container").attr("style",(0,J.R7)(W)).attr("style",S)}return _.attr("label-offset-y",n),_.attr("transform",`translate(${-a/2}, ${-(c/2+n)})`),L(t,_),E.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-d.height/2+(t.padding??0)/1.5-(d.y-(d.top??0))})`),t.intersect=function(P){const Z=V.rect(t,P),tt=Z.x-(t.x??0);if(0!=b&&(Math.abs(tt)<(t.width??0)/2||Math.abs(tt)==(t.width??0)/2&&Math.abs(Z.y-(t.y??0))>(t.height??0)/2-n)){let it=n*n*(1-tt*tt/(b*b));it>0&&(it=Math.sqrt(it)),it=n-it,P.y-(t.y??0)>0&&(it=-it),Z.y+=it}return Z},p})).apply(this,arguments)}function Se(y,t){return je.apply(this,arguments)}function je(){return(je=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=d.width+t.padding,b=d.height+t.padding,n=.2*b,c=-a/2,_=-b/2-n/2,{cssStyles:W}=t,P=G.Z.svg(p),Z=yt(t,{});"handDrawn"!==t.look&&(Z.roughness=0,Z.fillStyle="solid");const tt=[{x:c,y:_+n},{x:-c,y:_+n},{x:-c,y:-_},{x:c,y:-_},{x:c,y:_},{x:-c,y:_},{x:-c,y:_+n}],it=P.polygon(tt.map(e=>[e.x,e.y]),Z),pt=p.insert(()=>it,":first-child");return pt.attr("class","basic label-container"),W&&"handDrawn"!==t.look&&pt.selectAll("path").attr("style",W),S&&"handDrawn"!==t.look&&pt.selectAll("path").attr("style",S),E.attr("transform",`translate(${c+(t.padding??0)/2-(d.x-(d.left??0))}, ${_+n+(t.padding??0)/2-(d.y-(d.top??0))})`),L(t,pt),t.intersect=function(e){return V.rect(t,e)},p})).apply(this,arguments)}function qe(y,t){return He.apply(this,arguments)}function He(){return(He=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,halfPadding:E}=yield A(y,t,Y(t)),b=d.width/2+E+5,n=d.width/2+E;let c;const{cssStyles:_}=t;if("handDrawn"===t.look){const W=G.Z.svg(p),P=yt(t,{roughness:.2,strokeWidth:2.5}),Z=yt(t,{roughness:.2,strokeWidth:1.5}),tt=W.circle(0,0,2*b,P),it=W.circle(0,0,2*n,Z);c=p.insert("g",":first-child"),c.attr("class",(0,J.R7)(t.cssClasses)).attr("style",(0,J.R7)(_)),c.node()?.appendChild(tt),c.node()?.appendChild(it)}else{c=p.insert("g",":first-child");const W=c.insert("circle",":first-child"),P=c.insert("circle");c.attr("class","basic label-container").attr("style",S),W.attr("class","outer-circle").attr("style",S).attr("r",b).attr("cx",0).attr("cy",0),P.attr("class","inner-circle").attr("style",S).attr("r",n).attr("cx",0).attr("cy",0)}return L(t,c),t.intersect=function(W){return r.cM.info("DoubleCircle intersect",t,b,W),V.circle(t,b,W)},p})).apply(this,arguments)}function rr(y,t,{config:{themeVariables:h}}){const{labelStyles:S,nodeStyles:p}=mt(t);t.label="",t.labelStyle=S;const d=y.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,b=G.Z.svg(d),{nodeBorder:n}=h,c=yt(t,{fillStyle:"solid"});"handDrawn"!==t.look&&(c.roughness=0);const _=b.circle(0,0,14,c),W=d.insert(()=>_,":first-child");return W.selectAll("path").attr("style",`fill: ${n} !important;`),a&&a.length>0&&"handDrawn"!==t.look&&W.selectAll("path").attr("style",a),p&&"handDrawn"!==t.look&&W.selectAll("path").attr("style",p),L(t,W),t.intersect=function(P){return r.cM.info("filledCircle intersect",t,{radius:7,point:P}),V.circle(t,7,P)},d}function Oe(y,t){return tr.apply(this,arguments)}function tr(){return(tr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=d.width+(t.padding??0),b=a+d.height,n=a+d.height,c=[{x:0,y:-b},{x:n,y:-b},{x:n/2,y:0}],{cssStyles:_}=t,W=G.Z.svg(p),P=yt(t,{});"handDrawn"!==t.look&&(P.roughness=0,P.fillStyle="solid");const Z=m(c),tt=W.path(Z,P),it=p.insert(()=>tt,":first-child").attr("transform",`translate(${-b/2}, ${b/2})`);return _&&"handDrawn"!==t.look&&it.selectChildren("path").attr("style",_),S&&"handDrawn"!==t.look&&it.selectChildren("path").attr("style",S),t.width=a,t.height=b,L(t,it),E.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-b/2+(t.padding??0)/2+(d.y-(d.top??0))})`),t.intersect=function(pt){return r.cM.info("Triangle intersect",t,c,pt),V.polygon(t,c,pt)},p})).apply(this,arguments)}function er(y,t,{dir:h,config:{state:S,themeVariables:p}}){const{nodeStyles:d}=mt(t);t.label="";const E=y.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),{cssStyles:a}=t;let b=Math.max(70,t?.width??0),n=Math.max(10,t?.height??0);"LR"===h&&(b=Math.max(10,t?.width??0),n=Math.max(70,t?.height??0));const c=-1*b/2,_=-1*n/2,W=G.Z.svg(E),P=yt(t,{stroke:p.lineColor,fill:p.lineColor});"handDrawn"!==t.look&&(P.roughness=0,P.fillStyle="solid");const Z=W.rectangle(c,_,b,n,P),tt=E.insert(()=>Z,":first-child");a&&"handDrawn"!==t.look&&tt.selectAll("path").attr("style",a),d&&"handDrawn"!==t.look&&tt.selectAll("path").attr("style",d),L(t,tt);const it=S?.padding??0;return t.width&&t.height&&(t.width+=it/2||0,t.height+=it/2||0),t.intersect=function(pt){return V.rect(t,pt)},E}function yr(y,t){return Ur.apply(this,arguments)}function Ur(){return(Ur=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:E,bbox:a}=yield A(y,t,Y(t)),b=Math.max(80,a.width+2*(t.padding??0),t?.width??0),n=Math.max(50,a.height+2*(t.padding??0),t?.height??0),c=n/2,{cssStyles:_}=t,W=G.Z.svg(E),P=yt(t,{});"handDrawn"!==t.look&&(P.roughness=0,P.fillStyle="solid");const Z=[{x:-b/2,y:-n/2},{x:b/2-c,y:-n/2},...Lt(-b/2+c,0,c,50,90,270),{x:b/2-c,y:n/2},{x:-b/2,y:n/2}],tt=m(Z),it=W.path(tt,P),pt=E.insert(()=>it,":first-child");return pt.attr("class","basic label-container"),_&&"handDrawn"!==t.look&&pt.selectChildren("path").attr("style",_),S&&"handDrawn"!==t.look&&pt.selectChildren("path").attr("style",S),L(t,pt),t.intersect=function(e){return r.cM.info("Pill intersect",t,{radius:c,point:e}),V.polygon(t,Z,e)},E})).apply(this,arguments)}(0,r.eW)(me,"cylinder"),(0,r.eW)(Se,"dividedRectangle"),(0,r.eW)(qe,"doublecircle"),(0,r.eW)(rr,"filledCircle"),(0,r.eW)(Oe,"flippedTriangle"),(0,r.eW)(er,"forkJoin"),(0,r.eW)(yr,"halfRoundedRectangle");var xr=(0,r.eW)((y,t,h,S,p)=>[`M${y+p},${t}`,`L${y+h-p},${t}`,`L${y+h},${t-S/2}`,`L${y+h-p},${t-S}`,`L${y+p},${t-S}`,`L${y},${t-S/2}`,"Z"].join(" "),"createHexagonPathD");function Ke(y,t){return gr.apply(this,arguments)}function gr(){return(gr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),a=d.height+t.padding,b=a/4,n=d.width+2*b+t.padding,c=[{x:b,y:0},{x:n-b,y:0},{x:n,y:-a/2},{x:n-b,y:-a},{x:b,y:-a},{x:0,y:-a/2}];let _;const{cssStyles:W}=t;if("handDrawn"===t.look){const P=G.Z.svg(p),Z=yt(t,{}),tt=xr(0,0,n,a,b),it=P.path(tt,Z);_=p.insert(()=>it,":first-child").attr("transform",`translate(${-n/2}, ${a/2})`),W&&_.attr("style",W)}else _=Dt(p,n,a,c);return S&&_.attr("style",S),t.width=n,t.height=a,L(t,_),t.intersect=function(P){return V.polygon(t,c,P)},p})).apply(this,arguments)}function Ir(y,t){return Sr.apply(this,arguments)}function Sr(){return(Sr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.label="",t.labelStyle=h;const{shapeSvg:p}=yield A(y,t,Y(t)),d=Math.max(30,t?.width??0),E=Math.max(30,t?.height??0),{cssStyles:a}=t,b=G.Z.svg(p),n=yt(t,{});"handDrawn"!==t.look&&(n.roughness=0,n.fillStyle="solid");const c=[{x:0,y:0},{x:d,y:0},{x:0,y:E},{x:d,y:E}],_=m(c),W=b.path(_,n),P=p.insert(()=>W,":first-child");return P.attr("class","basic label-container"),a&&"handDrawn"!==t.look&&P.selectChildren("path").attr("style",a),S&&"handDrawn"!==t.look&&P.selectChildren("path").attr("style",S),P.attr("transform",`translate(${-d/2}, ${-E/2})`),L(t,P),t.intersect=function(Z){return r.cM.info("Pill intersect",t,{points:c}),V.polygon(t,c,Z)},p})).apply(this,arguments)}function Yr(y,t,h){return Xe.apply(this,arguments)}function Xe(){return(Xe=(0,s.Z)(function*(y,t,{config:{themeVariables:h,flowchart:S}}){const{labelStyles:p}=mt(t);t.labelStyle=p;const d=t.assetHeight??48,E=t.assetWidth??48,a=Math.max(d,E),b=S?.wrappingWidth;t.width=Math.max(a,b??0);const{shapeSvg:n,bbox:c,label:_}=yield A(y,t,"icon-shape default"),W="t"===t.pos,P=a,Z=a,{nodeBorder:tt}=h,{stylesMap:it}=Me(t),pt=-Z/2,e=-P/2,i=t.label?8:0,g=G.Z.svg(n),C=yt(t,{stroke:"none",fill:"none"});"handDrawn"!==t.look&&(C.roughness=0,C.fillStyle="solid");const k=g.rectangle(pt,e,Z,P,C),H=Math.max(Z,c.width),D=P+c.height+i,Q=g.rectangle(-H/2,-D/2,H,D,{...C,fill:"transparent",stroke:"none"}),ot=n.insert(()=>k,":first-child"),Tt=n.insert(()=>Q);if(t.icon){const Nt=n.append("g");Nt.html(`${yield(0,U.s4)(t.icon,{height:a,width:a,fallbackPrefix:""})}`);const At=Nt.node().getBBox(),se=At.width,Jt=At.height,ee=At.x,Ce=At.y;Nt.attr("transform",`translate(${-se/2-ee},${W?c.height/2+i/2-Jt/2-Ce:-c.height/2-i/2-Jt/2-Ce})`),Nt.attr("style",`color: ${it.get("stroke")??tt};`)}return _.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${W?-D/2:D/2-c.height})`),ot.attr("transform",`translate(0,${W?c.height/2+i/2:-c.height/2-i/2})`),L(t,Tt),t.intersect=function(Nt){if(r.cM.info("iconSquare intersect",t,Nt),!t.label)return V.rect(t,Nt);const At=t.x??0,se=t.y??0,Jt=t.height??0;let ee=[];return ee=W?[{x:At-c.width/2,y:se-Jt/2},{x:At+c.width/2,y:se-Jt/2},{x:At+c.width/2,y:se-Jt/2+c.height+i},{x:At+Z/2,y:se-Jt/2+c.height+i},{x:At+Z/2,y:se+Jt/2},{x:At-Z/2,y:se+Jt/2},{x:At-Z/2,y:se-Jt/2+c.height+i},{x:At-c.width/2,y:se-Jt/2+c.height+i}]:[{x:At-Z/2,y:se-Jt/2},{x:At+Z/2,y:se-Jt/2},{x:At+Z/2,y:se-Jt/2+P},{x:At+c.width/2,y:se-Jt/2+P},{x:At+c.width/2/2,y:se+Jt/2},{x:At-c.width/2,y:se+Jt/2},{x:At-c.width/2,y:se-Jt/2+P},{x:At-Z/2,y:se-Jt/2+P}],V.polygon(t,ee,Nt)},n})).apply(this,arguments)}function Xr(y,t,h){return ir.apply(this,arguments)}function ir(){return(ir=(0,s.Z)(function*(y,t,{config:{themeVariables:h,flowchart:S}}){const{labelStyles:p}=mt(t);t.labelStyle=p;const d=t.assetHeight??48,E=t.assetWidth??48,a=Math.max(d,E),b=S?.wrappingWidth;t.width=Math.max(a,b??0);const{shapeSvg:n,bbox:c,label:_}=yield A(y,t,"icon-shape default"),P=t.label?8:0,Z="t"===t.pos,{nodeBorder:tt,mainBkg:it}=h,{stylesMap:pt}=Me(t),e=G.Z.svg(n),i=yt(t,{});"handDrawn"!==t.look&&(i.roughness=0,i.fillStyle="solid");const g=pt.get("fill");i.stroke=g??it;const C=n.append("g");t.icon&&C.html(`${yield(0,U.s4)(t.icon,{height:a,width:a,fallbackPrefix:""})}`);const k=C.node().getBBox(),H=k.width,D=k.height,Q=k.x,ot=k.y,Tt=Math.max(H,D)*Math.SQRT2+40,Nt=e.circle(0,0,Tt,i),At=Math.max(Tt,c.width),se=Tt+c.height+P,Jt=e.rectangle(-At/2,-se/2,At,se,{...i,fill:"transparent",stroke:"none"}),ee=n.insert(()=>Nt,":first-child"),Ce=n.insert(()=>Jt);return C.attr("transform",`translate(${-H/2-Q},${Z?c.height/2+P/2-D/2-ot:-c.height/2-P/2-D/2-ot})`),C.attr("style",`color: ${pt.get("stroke")??tt};`),_.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${Z?-se/2:se/2-c.height})`),ee.attr("transform",`translate(0,${Z?c.height/2+P/2:-c.height/2-P/2})`),L(t,Ce),t.intersect=function(ge){return r.cM.info("iconSquare intersect",t,ge),V.rect(t,ge)},n})).apply(this,arguments)}function ri(y,t,h){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,s.Z)(function*(y,t,{config:{themeVariables:h,flowchart:S}}){const{labelStyles:p}=mt(t);t.labelStyle=p;const d=t.assetHeight??48,E=t.assetWidth??48,a=Math.max(d,E),b=S?.wrappingWidth;t.width=Math.max(a,b??0);const{shapeSvg:n,bbox:c,halfPadding:_,label:W}=yield A(y,t,"icon-shape default"),P="t"===t.pos,Z=a+2*_,tt=a+2*_,{nodeBorder:it,mainBkg:pt}=h,{stylesMap:e}=Me(t),i=-tt/2,g=-Z/2,C=t.label?8:0,k=G.Z.svg(n),H=yt(t,{});"handDrawn"!==t.look&&(H.roughness=0,H.fillStyle="solid");const D=e.get("fill");H.stroke=D??pt;const Q=k.path(re(i,g,tt,Z,5),H),ot=Math.max(tt,c.width),Tt=Z+c.height+C,Nt=k.rectangle(-ot/2,-Tt/2,ot,Tt,{...H,fill:"transparent",stroke:"none"}),At=n.insert(()=>Q,":first-child").attr("class","icon-shape2"),se=n.insert(()=>Nt);if(t.icon){const Jt=n.append("g");Jt.html(`${yield(0,U.s4)(t.icon,{height:a,width:a,fallbackPrefix:""})}`);const ee=Jt.node().getBBox(),Ce=ee.width,ge=ee.height,Fe=ee.x,Pe=ee.y;Jt.attr("transform",`translate(${-Ce/2-Fe},${P?c.height/2+C/2-ge/2-Pe:-c.height/2-C/2-ge/2-Pe})`),Jt.attr("style",`color: ${e.get("stroke")??it};`)}return W.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${P?-Tt/2:Tt/2-c.height})`),At.attr("transform",`translate(0,${P?c.height/2+C/2:-c.height/2-C/2})`),L(t,se),t.intersect=function(Jt){if(r.cM.info("iconSquare intersect",t,Jt),!t.label)return V.rect(t,Jt);const ee=t.x??0,Ce=t.y??0,ge=t.height??0;let Fe=[];return Fe=P?[{x:ee-c.width/2,y:Ce-ge/2},{x:ee+c.width/2,y:Ce-ge/2},{x:ee+c.width/2,y:Ce-ge/2+c.height+C},{x:ee+tt/2,y:Ce-ge/2+c.height+C},{x:ee+tt/2,y:Ce+ge/2},{x:ee-tt/2,y:Ce+ge/2},{x:ee-tt/2,y:Ce-ge/2+c.height+C},{x:ee-c.width/2,y:Ce-ge/2+c.height+C}]:[{x:ee-tt/2,y:Ce-ge/2},{x:ee+tt/2,y:Ce-ge/2},{x:ee+tt/2,y:Ce-ge/2+Z},{x:ee+c.width/2,y:Ce-ge/2+Z},{x:ee+c.width/2/2,y:Ce+ge/2},{x:ee-c.width/2,y:Ce+ge/2},{x:ee-c.width/2,y:Ce-ge/2+Z},{x:ee-tt/2,y:Ce-ge/2+Z}],V.polygon(t,Fe,Jt)},n})).apply(this,arguments)}function or(y,t,h){return dr.apply(this,arguments)}function dr(){return(dr=(0,s.Z)(function*(y,t,{config:{themeVariables:h,flowchart:S}}){const{labelStyles:p}=mt(t);t.labelStyle=p;const d=t.assetHeight??48,E=t.assetWidth??48,a=Math.max(d,E),b=S?.wrappingWidth;t.width=Math.max(a,b??0);const{shapeSvg:n,bbox:c,halfPadding:_,label:W}=yield A(y,t,"icon-shape default"),P="t"===t.pos,Z=a+2*_,tt=a+2*_,{nodeBorder:it,mainBkg:pt}=h,{stylesMap:e}=Me(t),i=-tt/2,g=-Z/2,C=t.label?8:0,k=G.Z.svg(n),H=yt(t,{});"handDrawn"!==t.look&&(H.roughness=0,H.fillStyle="solid");const D=e.get("fill");H.stroke=D??pt;const Q=k.path(re(i,g,tt,Z,.1),H),ot=Math.max(tt,c.width),Tt=Z+c.height+C,Nt=k.rectangle(-ot/2,-Tt/2,ot,Tt,{...H,fill:"transparent",stroke:"none"}),At=n.insert(()=>Q,":first-child"),se=n.insert(()=>Nt);if(t.icon){const Jt=n.append("g");Jt.html(`${yield(0,U.s4)(t.icon,{height:a,width:a,fallbackPrefix:""})}`);const ee=Jt.node().getBBox(),Ce=ee.width,ge=ee.height,Fe=ee.x,Pe=ee.y;Jt.attr("transform",`translate(${-Ce/2-Fe},${P?c.height/2+C/2-ge/2-Pe:-c.height/2-C/2-ge/2-Pe})`),Jt.attr("style",`color: ${e.get("stroke")??it};`)}return W.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${P?-Tt/2:Tt/2-c.height})`),At.attr("transform",`translate(0,${P?c.height/2+C/2:-c.height/2-C/2})`),L(t,se),t.intersect=function(Jt){if(r.cM.info("iconSquare intersect",t,Jt),!t.label)return V.rect(t,Jt);const ee=t.x??0,Ce=t.y??0,ge=t.height??0;let Fe=[];return Fe=P?[{x:ee-c.width/2,y:Ce-ge/2},{x:ee+c.width/2,y:Ce-ge/2},{x:ee+c.width/2,y:Ce-ge/2+c.height+C},{x:ee+tt/2,y:Ce-ge/2+c.height+C},{x:ee+tt/2,y:Ce+ge/2},{x:ee-tt/2,y:Ce+ge/2},{x:ee-tt/2,y:Ce-ge/2+c.height+C},{x:ee-c.width/2,y:Ce-ge/2+c.height+C}]:[{x:ee-tt/2,y:Ce-ge/2},{x:ee+tt/2,y:Ce-ge/2},{x:ee+tt/2,y:Ce-ge/2+Z},{x:ee+c.width/2,y:Ce-ge/2+Z},{x:ee+c.width/2/2,y:Ce+ge/2},{x:ee-c.width/2,y:Ce+ge/2},{x:ee-c.width/2,y:Ce-ge/2+Z},{x:ee-tt/2,y:Ce-ge/2+Z}],V.polygon(t,Fe,Jt)},n})).apply(this,arguments)}function sr(y,t,h){return mr.apply(this,arguments)}function mr(){return(mr=(0,s.Z)(function*(y,t,{config:{flowchart:h}}){const S=new Image;S.src=t?.img??"",yield S.decode();const p=Number(S.naturalWidth.toString().replace("px","")),d=Number(S.naturalHeight.toString().replace("px",""));t.imageAspectRatio=p/d;const{labelStyles:E}=mt(t);t.labelStyle=E;const a=h?.wrappingWidth;t.defaultWidth=h?.wrappingWidth;const b=Math.max(t.label?a??0:0,t?.assetWidth??p),n="on"===t.constraint&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:b,c="on"===t.constraint?n/t.imageAspectRatio:t?.assetHeight??d;t.width=Math.max(n,a??0);const{shapeSvg:_,bbox:W,label:P}=yield A(y,t,"image-shape default"),Z="t"===t.pos,tt=-n/2,it=-c/2,pt=t.label?8:0,e=G.Z.svg(_),i=yt(t,{});"handDrawn"!==t.look&&(i.roughness=0,i.fillStyle="solid");const g=e.rectangle(tt,it,n,c,i),C=Math.max(n,W.width),k=c+W.height+pt,H=e.rectangle(-C/2,-k/2,C,k,{...i,fill:"none",stroke:"none"}),D=_.insert(()=>g,":first-child"),Q=_.insert(()=>H);if(t.img){const ot=_.append("image");ot.attr("href",t.img),ot.attr("width",n),ot.attr("height",c),ot.attr("preserveAspectRatio","none"),ot.attr("transform",`translate(${-n/2},${Z?k/2-c:-k/2})`)}return P.attr("transform",`translate(${-W.width/2-(W.x-(W.left??0))},${Z?-c/2-W.height/2-pt/2:c/2-W.height/2+pt/2})`),D.attr("transform",`translate(0,${Z?W.height/2+pt/2:-W.height/2-pt/2})`),L(t,Q),t.intersect=function(ot){if(r.cM.info("iconSquare intersect",t,ot),!t.label)return V.rect(t,ot);const Tt=t.x??0,Nt=t.y??0,At=t.height??0;let se=[];return se=Z?[{x:Tt-W.width/2,y:Nt-At/2},{x:Tt+W.width/2,y:Nt-At/2},{x:Tt+W.width/2,y:Nt-At/2+W.height+pt},{x:Tt+n/2,y:Nt-At/2+W.height+pt},{x:Tt+n/2,y:Nt+At/2},{x:Tt-n/2,y:Nt+At/2},{x:Tt-n/2,y:Nt-At/2+W.height+pt},{x:Tt-W.width/2,y:Nt-At/2+W.height+pt}]:[{x:Tt-n/2,y:Nt-At/2},{x:Tt+n/2,y:Nt-At/2},{x:Tt+n/2,y:Nt-At/2+c},{x:Tt+W.width/2,y:Nt-At/2+c},{x:Tt+W.width/2/2,y:Nt+At/2},{x:Tt-W.width/2,y:Nt+At/2},{x:Tt-W.width/2,y:Nt-At/2+c},{x:Tt-n/2,y:Nt-At/2+c}],V.polygon(t,se,ot)},_})).apply(this,arguments)}function Qr(y,t){return $r.apply(this,arguments)}function $r(){return($r=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),E=Math.max(d.width+2*(t.padding??0),t?.width??0),a=Math.max(d.height+2*(t.padding??0),t?.height??0),b=[{x:0,y:0},{x:E,y:0},{x:E+3*a/6,y:-a},{x:-3*a/6,y:-a}];let n;const{cssStyles:c}=t;if("handDrawn"===t.look){const _=G.Z.svg(p),W=yt(t,{}),P=m(b),Z=_.path(P,W);n=p.insert(()=>Z,":first-child").attr("transform",`translate(${-E/2}, ${a/2})`),c&&n.attr("style",c)}else n=Dt(p,E,a,b);return S&&n.attr("style",S),t.width=E,t.height=a,L(t,n),t.intersect=function(_){return V.polygon(t,b,_)},p})).apply(this,arguments)}function _r(y,t,h){return Mr.apply(this,arguments)}function Mr(){return(Mr=(0,s.Z)(function*(y,t,h){const{labelStyles:S,nodeStyles:p}=mt(t);t.labelStyle=S;const{shapeSvg:d,bbox:E}=yield A(y,t,Y(t)),a=Math.max(E.width+2*h.labelPaddingX,t?.width||0),b=Math.max(E.height+2*h.labelPaddingY,t?.height||0),n=-a/2,c=-b/2;let _,{rx:W,ry:P}=t;const{cssStyles:Z}=t;if(h?.rx&&h.ry&&(W=h.rx,P=h.ry),"handDrawn"===t.look){const tt=G.Z.svg(d),it=yt(t,{}),pt=W||P?tt.path(re(n,c,a,b,W||0),it):tt.rectangle(n,c,a,b,it);_=d.insert(()=>pt,":first-child"),_.attr("class","basic label-container").attr("style",(0,J.R7)(Z))}else _=d.insert("rect",":first-child"),_.attr("class","basic label-container").attr("style",p).attr("rx",(0,J.R7)(W)).attr("ry",(0,J.R7)(P)).attr("x",n).attr("y",c).attr("width",a).attr("height",b);return L(t,_),t.intersect=function(tt){return V.rect(t,tt)},d})).apply(this,arguments)}function Tr(y,t){return Ar.apply(this,arguments)}function Ar(){return(Ar=(0,s.Z)(function*(y,t){const{shapeSvg:h,bbox:S,label:p}=yield A(y,t,"label"),d=h.insert("rect",":first-child");return d.attr("width",.1).attr("height",.1),h.attr("class","label edgeLabel"),p.attr("transform",`translate(${-S.width/2-(S.x-(S.left??0))}, ${-S.height/2-(S.y-(S.top??0))})`),L(t,d),t.intersect=function(b){return V.rect(t,b)},h})).apply(this,arguments)}function Wr(y,t){return fr.apply(this,arguments)}function fr(){return(fr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),E=Math.max(d.width+(t.padding??0),t?.width??0),a=Math.max(d.height+(t.padding??0),t?.height??0),b=[{x:0,y:0},{x:E+3*a/6,y:0},{x:E,y:-a},{x:-3*a/6,y:-a}];let n;const{cssStyles:c}=t;if("handDrawn"===t.look){const _=G.Z.svg(p),W=yt(t,{}),P=m(b),Z=_.path(P,W);n=p.insert(()=>Z,":first-child").attr("transform",`translate(${-E/2}, ${a/2})`),c&&n.attr("style",c)}else n=Dt(p,E,a,b);return S&&n.attr("style",S),t.width=E,t.height=a,L(t,n),t.intersect=function(_){return V.polygon(t,b,_)},p})).apply(this,arguments)}function Zr(y,t){return O.apply(this,arguments)}function O(){return(O=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),E=Math.max(d.width+(t.padding??0),t?.width??0),a=Math.max(d.height+(t.padding??0),t?.height??0),b=[{x:-3*a/6,y:0},{x:E,y:0},{x:E+3*a/6,y:-a},{x:0,y:-a}];let n;const{cssStyles:c}=t;if("handDrawn"===t.look){const _=G.Z.svg(p),W=yt(t,{}),P=m(b),Z=_.path(P,W);n=p.insert(()=>Z,":first-child").attr("transform",`translate(${-E/2}, ${a/2})`),c&&n.attr("style",c)}else n=Dt(p,E,a,b);return S&&n.attr("style",S),t.width=E,t.height=a,L(t,n),t.intersect=function(_){return V.polygon(t,b,_)},p})).apply(this,arguments)}function l(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.label="",t.labelStyle=h;const p=y.insert("g").attr("class",Y(t)).attr("id",t.domId??t.id),{cssStyles:d}=t,E=Math.max(35,t?.width??0),a=Math.max(35,t?.height??0),n=[{x:E,y:0},{x:0,y:a+3.5},{x:E-14,y:a+3.5},{x:0,y:2*a},{x:E,y:a-3.5},{x:14,y:a-3.5}],c=G.Z.svg(p),_=yt(t,{});"handDrawn"!==t.look&&(_.roughness=0,_.fillStyle="solid");const W=m(n),P=c.path(W,_),Z=p.insert(()=>P,":first-child");return d&&"handDrawn"!==t.look&&Z.selectAll("path").attr("style",d),S&&"handDrawn"!==t.look&&Z.selectAll("path").attr("style",S),Z.attr("transform",`translate(-${E/2},${-a})`),L(t,Z),t.intersect=function(tt){return r.cM.info("lightningBolt intersect",t,tt),V.polygon(t,n,tt)},p}(0,r.eW)(Ke,"hexagon"),(0,r.eW)(Ir,"hourglass"),(0,r.eW)(Yr,"icon"),(0,r.eW)(Xr,"iconCircle"),(0,r.eW)(ri,"iconRounded"),(0,r.eW)(or,"iconSquare"),(0,r.eW)(sr,"imageSquare"),(0,r.eW)(Qr,"inv_trapezoid"),(0,r.eW)(_r,"drawRect"),(0,r.eW)(Tr,"labelRect"),(0,r.eW)(Wr,"lean_left"),(0,r.eW)(Zr,"lean_right"),(0,r.eW)(l,"lightningBolt");var B=(0,r.eW)((y,t,h,S,p,d,E)=>[`M${y},${t+d}`,`a${p},${d} 0,0,0 ${h},0`,`a${p},${d} 0,0,0 ${-h},0`,`l0,${S}`,`a${p},${d} 0,0,0 ${h},0`,"l0,"+-S,`M${y},${t+d+E}`,`a${p},${d} 0,0,0 ${h},0`].join(" "),"createCylinderPathD"),z=(0,r.eW)((y,t,h,S,p,d,E)=>[`M${y},${t+d}`,`M${y+h},${t+d}`,`a${p},${d} 0,0,0 ${-h},0`,`l0,${S}`,`a${p},${d} 0,0,0 ${h},0`,"l0,"+-S,`M${y},${t+d+E}`,`a${p},${d} 0,0,0 ${h},0`].join(" "),"createOuterCylinderPathD"),M=(0,r.eW)((y,t,h,S,p,d)=>[`M${y-h/2},${-S/2}`,`a${p},${d} 0,0,0 ${h},0`].join(" "),"createInnerCylinderPathD");function st(y,t){return ct.apply(this,arguments)}function ct(){return(ct=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=Math.max(d.width+(t.padding??0),t.width??0),b=a/2,n=b/(2.5+a/50),c=Math.max(d.height+n+(t.padding??0),t.height??0),_=.1*c;let W;const{cssStyles:P}=t;if("handDrawn"===t.look){const Z=G.Z.svg(p),tt=z(0,0,a,c,b,n,_),it=M(0,n,a,c,b,n),pt=yt(t,{}),e=Z.path(tt,pt),i=Z.path(it,pt);p.insert(()=>i,":first-child").attr("class","line"),W=p.insert(()=>e,":first-child"),W.attr("class","basic label-container"),P&&W.attr("style",P)}else{const Z=B(0,0,a,c,b,n,_);W=p.insert("path",":first-child").attr("d",Z).attr("class","basic label-container").attr("style",(0,J.R7)(P)).attr("style",S)}return W.attr("label-offset-y",n),W.attr("transform",`translate(${-a/2}, ${-(c/2+n)})`),L(t,W),E.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-d.height/2+n-(d.y-(d.top??0))})`),t.intersect=function(Z){const tt=V.rect(t,Z),it=tt.x-(t.x??0);if(0!=b&&(Math.abs(it)<(t.width??0)/2||Math.abs(it)==(t.width??0)/2&&Math.abs(tt.y-(t.y??0))>(t.height??0)/2-n)){let pt=n*n*(1-it*it/(b*b));pt>0&&(pt=Math.sqrt(pt)),pt=n-pt,Z.y-(t.y??0)>0&&(pt=-pt),tt.y+=pt}return tt},p})).apply(this,arguments)}function St(y,t){return zt.apply(this,arguments)}function zt(){return(zt=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=Math.max(d.width+2*(t.padding??0),t?.width??0),b=Math.max(d.height+2*(t.padding??0),t?.height??0),n=b/4,c=b+n,{cssStyles:_}=t,W=G.Z.svg(p),P=yt(t,{});"handDrawn"!==t.look&&(P.roughness=0,P.fillStyle="solid");const Z=[{x:-a/2-a/2*.1,y:-c/2},{x:-a/2-a/2*.1,y:c/2},...lt(-a/2-a/2*.1,c/2,a/2+a/2*.1,c/2,n,.8),{x:a/2+a/2*.1,y:-c/2},{x:-a/2-a/2*.1,y:-c/2},{x:-a/2,y:-c/2},{x:-a/2,y:c/2*1.1},{x:-a/2,y:-c/2}],tt=W.polygon(Z.map(pt=>[pt.x,pt.y]),P),it=p.insert(()=>tt,":first-child");return it.attr("class","basic label-container"),_&&"handDrawn"!==t.look&&it.selectAll("path").attr("style",_),S&&"handDrawn"!==t.look&&it.selectAll("path").attr("style",S),it.attr("transform",`translate(0,${-n/2})`),E.attr("transform",`translate(${-a/2+(t.padding??0)+a/2*.1/2-(d.x-(d.left??0))},${-b/2+(t.padding??0)-n/2-(d.y-(d.top??0))})`),L(t,it),t.intersect=function(pt){return V.polygon(t,Z,pt)},p})).apply(this,arguments)}function Ut(y,t){return _e.apply(this,arguments)}function _e(){return(_e=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=Math.max(d.width+2*(t.padding??0),t?.width??0),b=Math.max(d.height+2*(t.padding??0),t?.height??0),c=-a/2,_=-b/2,{cssStyles:W}=t,P=G.Z.svg(p),Z=yt(t,{}),tt=[{x:c-5,y:_+5},{x:c-5,y:_+b+5},{x:c+a-5,y:_+b+5},{x:c+a-5,y:_+b},{x:c+a,y:_+b},{x:c+a,y:_+b-5},{x:c+a+5,y:_+b-5},{x:c+a+5,y:_-5},{x:c+5,y:_-5},{x:c+5,y:_},{x:c,y:_},{x:c,y:_+5}],it=[{x:c,y:_+5},{x:c+a-5,y:_+5},{x:c+a-5,y:_+b},{x:c+a,y:_+b},{x:c+a,y:_},{x:c,y:_}];"handDrawn"!==t.look&&(Z.roughness=0,Z.fillStyle="solid");const pt=m(tt),e=P.path(pt,Z),i=m(it),g=P.path(i,{...Z,fill:"none"}),C=p.insert(()=>g,":first-child");return C.insert(()=>e,":first-child"),C.attr("class","basic label-container"),W&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",W),S&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",S),E.attr("transform",`translate(${-d.width/2-5-(d.x-(d.left??0))}, ${-d.height/2+5-(d.y-(d.top??0))})`),L(t,C),t.intersect=function(k){return V.polygon(t,tt,k)},p})).apply(this,arguments)}function ze(y,t){return Ae.apply(this,arguments)}function Ae(){return(Ae=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=Math.max(d.width+2*(t.padding??0),t?.width??0),b=Math.max(d.height+2*(t.padding??0),t?.height??0),n=b/4,c=b+n,_=-a/2,W=-c/2,{cssStyles:Z}=t,tt=lt(_-5,W+c+5,_+a-5,W+c+5,n,.8),it=tt?.[tt.length-1],pt=[{x:_-5,y:W+5},{x:_-5,y:W+c+5},...tt,{x:_+a-5,y:it.y-5},{x:_+a,y:it.y-5},{x:_+a,y:it.y-10},{x:_+a+5,y:it.y-10},{x:_+a+5,y:W-5},{x:_+5,y:W-5},{x:_+5,y:W},{x:_,y:W},{x:_,y:W+5}],e=[{x:_,y:W+5},{x:_+a-5,y:W+5},{x:_+a-5,y:it.y-5},{x:_+a,y:it.y-5},{x:_+a,y:W},{x:_,y:W}],i=G.Z.svg(p),g=yt(t,{});"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const C=m(pt),k=i.path(C,g),H=m(e),D=i.path(H,g),Q=p.insert(()=>k,":first-child");return Q.insert(()=>D),Q.attr("class","basic label-container"),Z&&"handDrawn"!==t.look&&Q.selectAll("path").attr("style",Z),S&&"handDrawn"!==t.look&&Q.selectAll("path").attr("style",S),Q.attr("transform",`translate(0,${-n/2})`),E.attr("transform",`translate(${-d.width/2-5-(d.x-(d.left??0))}, ${-d.height/2+5-n/2-(d.y-(d.top??0))})`),L(t,Q),t.intersect=function(ot){return V.polygon(t,pt,ot)},p})).apply(this,arguments)}function Ye(y,t,h){return $e.apply(this,arguments)}function $e(){return($e=(0,s.Z)(function*(y,t,{config:{themeVariables:h}}){const{labelStyles:S,nodeStyles:p}=mt(t);t.labelStyle=S,t.useHtmlLabels||!1!==(0,r.iE)().flowchart?.htmlLabels||(t.centerLabel=!0);const{shapeSvg:E,bbox:a}=yield A(y,t,Y(t)),b=Math.max(a.width+2*(t.padding??0),t?.width??0),n=Math.max(a.height+2*(t.padding??0),t?.height??0),c=-b/2,_=-n/2,{cssStyles:W}=t,P=G.Z.svg(E),Z=yt(t,{fill:h.noteBkgColor,stroke:h.noteBorderColor});"handDrawn"!==t.look&&(Z.roughness=0,Z.fillStyle="solid");const tt=P.rectangle(c,_,b,n,Z),it=E.insert(()=>tt,":first-child");return it.attr("class","basic label-container"),W&&"handDrawn"!==t.look&&it.selectAll("path").attr("style",W),p&&"handDrawn"!==t.look&&it.selectAll("path").attr("style",p),L(t,it),t.intersect=function(pt){return V.rect(t,pt)},E})).apply(this,arguments)}(0,r.eW)(st,"linedCylinder"),(0,r.eW)(St,"linedWaveEdgedRect"),(0,r.eW)(Ut,"multiRect"),(0,r.eW)(ze,"multiWaveEdgedRectangle"),(0,r.eW)(Ye,"note");var Qe=(0,r.eW)((y,t,h)=>[`M${y+h/2},${t}`,`L${y+h},${t-h/2}`,`L${y+h/2},${t-h}`,`L${y},${t-h/2}`,"Z"].join(" "),"createDecisionBoxPathD");function Fr(y,t){return Gr.apply(this,arguments)}function Gr(){return(Gr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),b=d.width+t.padding+(d.height+t.padding),n=[{x:b/2,y:0},{x:b,y:-b/2},{x:b/2,y:-b},{x:0,y:-b/2}];let c;const{cssStyles:_}=t;if("handDrawn"===t.look){const W=G.Z.svg(p),P=yt(t,{}),Z=Qe(0,0,b),tt=W.path(Z,P);c=p.insert(()=>tt,":first-child").attr("transform",`translate(${-b/2}, ${b/2})`),_&&c.attr("style",_)}else c=Dt(p,b,b,n);return S&&c.attr("style",S),L(t,c),t.intersect=function(W){return r.cM.debug("APA12 Intersect called SPLIT\npoint:",W,"\nnode:\n",t,"\nres:",V.polygon(t,n,W)),V.polygon(t,n,W)},p})).apply(this,arguments)}function Pr(y,t){return Nr.apply(this,arguments)}function Nr(){return(Nr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),n=-Math.max(d.width+(t.padding??0),t?.width??0)/2,c=-Math.max(d.height+(t.padding??0),t?.height??0)/2,_=c/2,W=[{x:n+_,y:c},{x:n,y:0},{x:n+_,y:-c},{x:-n,y:-c},{x:-n,y:c}],{cssStyles:P}=t,Z=G.Z.svg(p),tt=yt(t,{});"handDrawn"!==t.look&&(tt.roughness=0,tt.fillStyle="solid");const it=m(W),pt=Z.path(it,tt),e=p.insert(()=>pt,":first-child");return e.attr("class","basic label-container"),P&&"handDrawn"!==t.look&&e.selectAll("path").attr("style",P),S&&"handDrawn"!==t.look&&e.selectAll("path").attr("style",S),e.attr("transform",`translate(${-_/2},0)`),E.attr("transform",`translate(${-_/2-d.width/2-(d.x-(d.left??0))}, ${-d.height/2-(d.y-(d.top??0))})`),L(t,e),t.intersect=function(i){return V.polygon(t,W,i)},p})).apply(this,arguments)}function wr(y,t){return pr.apply(this,arguments)}function pr(){return(pr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);let p;t.labelStyle=h,p=t.cssClasses?"node "+t.cssClasses:"node default";const d=y.insert("g").attr("class",p).attr("id",t.domId||t.id),E=d.insert("g"),a=d.insert("g").attr("class","label").attr("style",S),b=t.description,n=t.label,c=a.node().appendChild(yield ve(n,t.labelStyle,!0,!0));let _={width:0,height:0};if((0,r.ku)((0,r.nV)()?.flowchart?.htmlLabels)){const D=c.children[0],Q=(0,j.Ys)(c);_=D.getBoundingClientRect(),Q.attr("width",_.width),Q.attr("height",_.height)}r.cM.info("Text 2",b);const W=b||[],P=c.getBBox(),Z=a.node().appendChild(yield ve(W.join?W.join("
    "):W,t.labelStyle,!0,!0)),tt=Z.children[0],it=(0,j.Ys)(Z);_=tt.getBoundingClientRect(),it.attr("width",_.width),it.attr("height",_.height);const pt=(t.padding||0)/2;(0,j.Ys)(Z).attr("transform","translate( "+(_.width>P.width?0:(P.width-_.width)/2)+", "+(P.height+pt+5)+")"),(0,j.Ys)(c).attr("transform","translate( "+(_.width(r.cM.debug("Rough node insert CXC",ot),Tt),":first-child"),k=d.insert(()=>(r.cM.debug("Rough node insert CXC",ot),ot),":first-child")}else k=E.insert("rect",":first-child"),H=E.insert("line"),k.attr("class","outer title-state").attr("style",S).attr("x",-_.width/2-pt).attr("y",-_.height/2-pt).attr("width",_.width+(t.padding||0)).attr("height",_.height+(t.padding||0)),H.attr("class","divider").attr("x1",-_.width/2-pt).attr("x2",_.width/2+pt).attr("y1",-_.height/2-pt+P.height+pt).attr("y2",-_.height/2-pt+P.height+pt);return L(t,k),t.intersect=function(D){return V.rect(t,D)},d})).apply(this,arguments)}function zr(y,t){return lr.apply(this,arguments)}function lr(){return(lr=(0,s.Z)(function*(y,t){return _r(y,t,{rx:5,ry:5,classes:"",labelPaddingX:1*(t?.padding||0),labelPaddingY:1*(t?.padding||0)})})).apply(this,arguments)}function ii(y,t){return I.apply(this,arguments)}function I(){return(I=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=t?.padding??0,b=Math.max(d.width+2*(t.padding??0),t?.width??0),n=Math.max(d.height+2*(t.padding??0),t?.height??0),c=-d.width/2-a,_=-d.height/2-a,{cssStyles:W}=t,P=G.Z.svg(p),Z=yt(t,{});"handDrawn"!==t.look&&(Z.roughness=0,Z.fillStyle="solid");const tt=[{x:c,y:_},{x:c+b+8,y:_},{x:c+b+8,y:_+n},{x:c-8,y:_+n},{x:c-8,y:_},{x:c,y:_},{x:c,y:_+n}],it=P.polygon(tt.map(e=>[e.x,e.y]),Z),pt=p.insert(()=>it,":first-child");return pt.attr("class","basic label-container").attr("style",(0,J.R7)(W)),S&&"handDrawn"!==t.look&&pt.selectAll("path").attr("style",S),W&&"handDrawn"!==t.look&&pt.selectAll("path").attr("style",S),E.attr("transform",`translate(${-b/2+4+(t.padding??0)-(d.x-(d.left??0))},${-n/2+(t.padding??0)-(d.y-(d.top??0))})`),L(t,pt),t.intersect=function(e){return V.rect(t,e)},p})).apply(this,arguments)}function v(y,t){return Ct.apply(this,arguments)}function Ct(){return(Ct=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=Math.max(d.width+2*(t.padding??0),t?.width??0),b=Math.max(d.height+2*(t.padding??0),t?.height??0),n=-a/2,c=-b/2,{cssStyles:_}=t,W=G.Z.svg(p),P=yt(t,{});"handDrawn"!==t.look&&(P.roughness=0,P.fillStyle="solid");const Z=[{x:n,y:c},{x:n,y:c+b},{x:n+a,y:c+b},{x:n+a,y:c-b/2}],tt=m(Z),it=W.path(tt,P),pt=p.insert(()=>it,":first-child");return pt.attr("class","basic label-container"),_&&"handDrawn"!==t.look&&pt.selectChildren("path").attr("style",_),S&&"handDrawn"!==t.look&&pt.selectChildren("path").attr("style",S),pt.attr("transform",`translate(0, ${b/4})`),E.attr("transform",`translate(${-a/2+(t.padding??0)-(d.x-(d.left??0))}, ${-b/4+(t.padding??0)-(d.y-(d.top??0))})`),L(t,pt),t.intersect=function(e){return V.polygon(t,Z,e)},p})).apply(this,arguments)}function Rt(y,t){return Ze.apply(this,arguments)}function Ze(){return(Ze=(0,s.Z)(function*(y,t){return _r(y,t,{rx:0,ry:0,classes:"",labelPaddingX:2*(t?.padding||0),labelPaddingY:1*(t?.padding||0)})})).apply(this,arguments)}function We(y,t){return Cr.apply(this,arguments)}function Cr(){return(Cr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),E=d.height+t.padding,a=d.width+E/4+t.padding;let b;const{cssStyles:n}=t;if("handDrawn"===t.look){const c=G.Z.svg(p),_=yt(t,{}),W=re(-a/2,-E/2,a,E,E/2),P=c.path(W,_);b=p.insert(()=>P,":first-child"),b.attr("class","basic label-container").attr("style",(0,J.R7)(n))}else b=p.insert("rect",":first-child"),b.attr("class","basic label-container").attr("style",S).attr("rx",E/2).attr("ry",E/2).attr("x",-a/2).attr("y",-E/2).attr("width",a).attr("height",E);return L(t,b),t.intersect=function(c){return V.rect(t,c)},p})).apply(this,arguments)}function Jr(y,t){return Rr.apply(this,arguments)}function Rr(){return(Rr=(0,s.Z)(function*(y,t){return _r(y,t,{rx:5,ry:5,classes:"flowchart-node"})})).apply(this,arguments)}function Or(y,t,{config:{themeVariables:h}}){const{labelStyles:S,nodeStyles:p}=mt(t);t.labelStyle=S;const{cssStyles:d}=t,{lineColor:E,stateBorder:a,nodeBorder:b}=h,n=y.insert("g").attr("class","node default").attr("id",t.domId||t.id),c=G.Z.svg(n),_=yt(t,{});"handDrawn"!==t.look&&(_.roughness=0,_.fillStyle="solid");const W=c.circle(0,0,14,{..._,stroke:E,strokeWidth:2}),P=a??b,Z=c.circle(0,0,5,{..._,fill:P,stroke:P,strokeWidth:2,fillStyle:"solid"}),tt=n.insert(()=>W,":first-child");return tt.insert(()=>Z),d&&tt.selectAll("path").attr("style",d),p&&tt.selectAll("path").attr("style",p),L(t,tt),t.intersect=function(it){return V.circle(t,7,it)},n}function Vr(y,t,{config:{themeVariables:h}}){const{lineColor:S}=h,p=y.insert("g").attr("class","node default").attr("id",t.domId||t.id);let d;if("handDrawn"===t.look){const a=G.Z.svg(p).circle(0,0,14,fe(S));d=p.insert(()=>a),d.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else d=p.insert("circle",":first-child"),d.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return L(t,d),t.intersect=function(E){return V.circle(t,7,E)},p}function ci(y,t){return ni.apply(this,arguments)}function ni(){return(ni=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),E=(t?.padding||0)/2,a=d.width+t.padding,b=d.height+t.padding,n=-d.width/2-E,c=-d.height/2-E,_=[{x:0,y:0},{x:a,y:0},{x:a,y:-b},{x:0,y:-b},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-b},{x:-8,y:-b},{x:-8,y:0}];if("handDrawn"===t.look){const W=G.Z.svg(p),P=yt(t,{}),Z=W.rectangle(n-8,c,a+16,b,P),tt=W.line(n,c,n,c+b,P),it=W.line(n+a,c,n+a,c+b,P);p.insert(()=>tt,":first-child"),p.insert(()=>it,":first-child");const pt=p.insert(()=>Z,":first-child"),{cssStyles:e}=t;pt.attr("class","basic label-container").attr("style",(0,J.R7)(e)),L(t,pt)}else{const W=Dt(p,a,b,_);S&&W.attr("style",S),L(t,W)}return t.intersect=function(W){return V.polygon(t,_,W)},p})).apply(this,arguments)}function ti(y,t){return Ci.apply(this,arguments)}function Ci(){return(Ci=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),E=Math.max(d.width+2*(t.padding??0),t?.width??0),a=Math.max(d.height+2*(t.padding??0),t?.height??0),b=-E/2,n=-a/2,c=.2*a,_=.2*a,{cssStyles:W}=t,P=G.Z.svg(p),Z=yt(t,{}),tt=[{x:b-c/2,y:n},{x:b+E+c/2,y:n},{x:b+E+c/2,y:n+a},{x:b-c/2,y:n+a}],it=[{x:b+E-c/2,y:n+a},{x:b+E+c/2,y:n+a},{x:b+E+c/2,y:n+a-_}];"handDrawn"!==t.look&&(Z.roughness=0,Z.fillStyle="solid");const pt=m(tt),e=P.path(pt,Z),i=m(it),g=P.path(i,{...Z,fillStyle:"solid"}),C=p.insert(()=>g,":first-child");return C.insert(()=>e,":first-child"),C.attr("class","basic label-container"),W&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",W),S&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",S),L(t,C),t.intersect=function(k){return V.polygon(t,tt,k)},p})).apply(this,arguments)}function Er(y,t){return si.apply(this,arguments)}function si(){return(si=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=Math.max(d.width+2*(t.padding??0),t?.width??0),b=Math.max(d.height+2*(t.padding??0),t?.height??0),n=b/4,c=.2*a,_=.2*b,W=b+n,{cssStyles:P}=t,Z=G.Z.svg(p),tt=yt(t,{});"handDrawn"!==t.look&&(tt.roughness=0,tt.fillStyle="solid");const it=[{x:-a/2-a/2*.1,y:W/2},...lt(-a/2-a/2*.1,W/2,a/2+a/2*.1,W/2,n,.8),{x:a/2+a/2*.1,y:-W/2},{x:-a/2-a/2*.1,y:-W/2}],pt=-a/2+a/2*.1,e=-W/2-.4*_,i=[{x:pt+a-c,y:1.4*(e+b)},{x:pt+a,y:e+b-_},{x:pt+a,y:.9*(e+b)},...lt(pt+a,1.3*(e+b),pt+a-c,1.5*(e+b),.03*-b,.5)],g=m(it),C=Z.path(g,tt),k=m(i),H=Z.path(k,{...tt,fillStyle:"solid"}),D=p.insert(()=>H,":first-child");return D.insert(()=>C,":first-child"),D.attr("class","basic label-container"),P&&"handDrawn"!==t.look&&D.selectAll("path").attr("style",P),S&&"handDrawn"!==t.look&&D.selectAll("path").attr("style",S),D.attr("transform",`translate(0,${-n/2})`),E.attr("transform",`translate(${-a/2+(t.padding??0)-(d.x-(d.left??0))},${-b/2+(t.padding??0)-n/2-(d.y-(d.top??0))})`),L(t,D),t.intersect=function(Q){return V.polygon(t,it,Q)},p})).apply(this,arguments)}function vi(y,t){return hi.apply(this,arguments)}function hi(){return(hi=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),E=Math.max(d.width+t.padding,t?.width||0),a=Math.max(d.height+t.padding,t?.height||0),b=-E/2,n=-a/2,c=p.insert("rect",":first-child");return c.attr("class","text").attr("style",S).attr("rx",0).attr("ry",0).attr("x",b).attr("y",n).attr("width",E).attr("height",a),L(t,c),t.intersect=function(_){return V.rect(t,_)},p})).apply(this,arguments)}(0,r.eW)(Fr,"question"),(0,r.eW)(Pr,"rect_left_inv_arrow"),(0,r.eW)(wr,"rectWithTitle"),(0,r.eW)(zr,"roundedRect"),(0,r.eW)(ii,"shadedProcess"),(0,r.eW)(v,"slopedRect"),(0,r.eW)(Rt,"squareRect"),(0,r.eW)(We,"stadium"),(0,r.eW)(Jr,"state"),(0,r.eW)(Or,"stateEnd"),(0,r.eW)(Vr,"stateStart"),(0,r.eW)(ci,"subroutine"),(0,r.eW)(ti,"taggedRect"),(0,r.eW)(Er,"taggedWaveEdgedRectangle"),(0,r.eW)(vi,"text");var Ti=(0,r.eW)((y,t,h,S,p,d)=>`M${y},${t}\n a${p},${d} 0,0,1 0,${-S}\n l${h},0\n a${p},${d} 0,0,1 0,${S}\n M${h},${-S}\n a${p},${d} 0,0,0 0,${S}\n l${-h},0`,"createCylinderPathD"),ui=(0,r.eW)((y,t,h,S,p,d)=>[`M${y},${t}`,`M${y+h},${t}`,`a${p},${d} 0,0,0 0,${-S}`,`l${-h},0`,`a${p},${d} 0,0,0 0,${S}`,`l${h},0`].join(" "),"createOuterCylinderPathD"),Le=(0,r.eW)((y,t,h,S,p,d)=>[`M${y+h/2},${-S/2}`,`a${p},${d} 0,0,0 0,${S}`].join(" "),"createInnerCylinderPathD");function at(y,t){return te.apply(this,arguments)}function te(){return(te=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E,halfPadding:a}=yield A(y,t,Y(t)),b="neo"===t.look?2*a:a,n=d.height+b,c=n/2,_=c/(2.5+n/50),W=d.width+_+b,{cssStyles:P}=t;let Z;if("handDrawn"===t.look){const tt=G.Z.svg(p),it=ui(0,0,W,n,_,c),pt=Le(0,0,W,n,_,c),e=tt.path(it,yt(t,{})),i=tt.path(pt,yt(t,{fill:"none"}));Z=p.insert(()=>i,":first-child"),Z=p.insert(()=>e,":first-child"),Z.attr("class","basic label-container"),P&&Z.attr("style",P)}else{const tt=Ti(0,0,W,n,_,c);Z=p.insert("path",":first-child").attr("d",tt).attr("class","basic label-container").attr("style",(0,J.R7)(P)).attr("style",S),Z.attr("class","basic label-container"),P&&Z.selectAll("path").attr("style",P),S&&Z.selectAll("path").attr("style",S)}return Z.attr("label-offset-x",_),Z.attr("transform",`translate(${-W/2}, ${n/2} )`),E.attr("transform",`translate(${-d.width/2-_-(d.x-(d.left??0))}, ${-d.height/2-(d.y-(d.top??0))})`),L(t,Z),t.intersect=function(tt){const it=V.rect(t,tt),pt=it.y-(t.y??0);if(0!=c&&(Math.abs(pt)<(t.height??0)/2||Math.abs(pt)==(t.height??0)/2&&Math.abs(it.x-(t.x??0))>(t.width??0)/2-_)){let e=_*_*(1-pt*pt/(c*c));0!=e&&(e=Math.sqrt(Math.abs(e))),e=_-e,tt.x-(t.x??0)>0&&(e=-e),it.x+=e}return it},p})).apply(this,arguments)}function Ee(y,t){return Je.apply(this,arguments)}function Je(){return(Je=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),E=d.width+t.padding,a=d.height+t.padding,b=[{x:-3*a/6,y:0},{x:E+3*a/6,y:0},{x:E,y:-a},{x:0,y:-a}];let n;const{cssStyles:c}=t;if("handDrawn"===t.look){const _=G.Z.svg(p),W=yt(t,{}),P=m(b),Z=_.path(P,W);n=p.insert(()=>Z,":first-child").attr("transform",`translate(${-E/2}, ${a/2})`),c&&n.attr("style",c)}else n=Dt(p,E,a,b);return S&&n.attr("style",S),t.width=E,t.height=a,L(t,n),t.intersect=function(_){return V.polygon(t,b,_)},p})).apply(this,arguments)}function br(y,t){return cr.apply(this,arguments)}function cr(){return(cr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),b=Math.max(60,d.width+2*(t.padding??0),t?.width??0),n=Math.max(20,d.height+2*(t.padding??0),t?.height??0),{cssStyles:c}=t,_=G.Z.svg(p),W=yt(t,{});"handDrawn"!==t.look&&(W.roughness=0,W.fillStyle="solid");const P=[{x:-b/2*.8,y:-n/2},{x:b/2*.8,y:-n/2},{x:b/2,y:-n/2*.6},{x:b/2,y:n/2},{x:-b/2,y:n/2},{x:-b/2,y:-n/2*.6}],Z=m(P),tt=_.path(Z,W),it=p.insert(()=>tt,":first-child");return it.attr("class","basic label-container"),c&&"handDrawn"!==t.look&&it.selectChildren("path").attr("style",c),S&&"handDrawn"!==t.look&&it.selectChildren("path").attr("style",S),L(t,it),t.intersect=function(pt){return V.polygon(t,P,pt)},p})).apply(this,arguments)}function Br(y,t){return qr.apply(this,arguments)}function qr(){return(qr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=(0,r.ku)((0,r.nV)().flowchart?.htmlLabels),b=d.width+(t.padding??0),n=b+d.height,c=b+d.height,_=[{x:0,y:0},{x:c,y:0},{x:c/2,y:-n}],{cssStyles:W}=t,P=G.Z.svg(p),Z=yt(t,{});"handDrawn"!==t.look&&(Z.roughness=0,Z.fillStyle="solid");const tt=m(_),it=P.path(tt,Z),pt=p.insert(()=>it,":first-child").attr("transform",`translate(${-n/2}, ${n/2})`);return W&&"handDrawn"!==t.look&&pt.selectChildren("path").attr("style",W),S&&"handDrawn"!==t.look&&pt.selectChildren("path").attr("style",S),t.width=b,t.height=n,L(t,pt),E.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${n/2-(d.height+(t.padding??0)/(a?2:1)-(d.y-(d.top??0)))})`),t.intersect=function(e){return r.cM.info("Triangle intersect",t,_,e),V.polygon(t,_,e)},p})).apply(this,arguments)}function di(y,t){return hr.apply(this,arguments)}function hr(){return(hr=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=Math.max(d.width+2*(t.padding??0),t?.width??0),b=Math.max(d.height+2*(t.padding??0),t?.height??0),n=b/8,c=b+n,{cssStyles:_}=t,P=70-a,Z=P>0?P/2:0,tt=G.Z.svg(p),it=yt(t,{});"handDrawn"!==t.look&&(it.roughness=0,it.fillStyle="solid");const pt=[{x:-a/2-Z,y:c/2},...lt(-a/2-Z,c/2,a/2+Z,c/2,n,.8),{x:a/2+Z,y:-c/2},{x:-a/2-Z,y:-c/2}],e=m(pt),i=tt.path(e,it),g=p.insert(()=>i,":first-child");return g.attr("class","basic label-container"),_&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",_),S&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",S),g.attr("transform",`translate(0,${-n/2})`),E.attr("transform",`translate(${-a/2+(t.padding??0)-(d.x-(d.left??0))},${-b/2+(t.padding??0)-n-(d.y-(d.top??0))})`),L(t,g),t.intersect=function(C){return V.polygon(t,pt,C)},p})).apply(this,arguments)}function vr(y,t){return wi.apply(this,arguments)}function wi(){return(wi=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d}=yield A(y,t,Y(t)),b=Math.max(d.width+2*(t.padding??0),t?.width??0),n=Math.max(d.height+2*(t.padding??0),t?.height??0),c=b/n;let _=b,W=n;_>W*c?W=_/c:_=W*c,_=Math.max(_,100),W=Math.max(W,50);const P=Math.min(.2*W,W/4),Z=W+2*P,{cssStyles:tt}=t,it=G.Z.svg(p),pt=yt(t,{});"handDrawn"!==t.look&&(pt.roughness=0,pt.fillStyle="solid");const e=[{x:-_/2,y:Z/2},...lt(-_/2,Z/2,_/2,Z/2,P,1),{x:_/2,y:-Z/2},...lt(_/2,-Z/2,-_/2,-Z/2,P,-1)],i=m(e),g=it.path(i,pt),C=p.insert(()=>g,":first-child");return C.attr("class","basic label-container"),tt&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",tt),S&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",S),L(t,C),t.intersect=function(k){return V.polygon(t,e,k)},p})).apply(this,arguments)}function Ei(y,t){return Wi.apply(this,arguments)}function Wi(){return(Wi=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const{shapeSvg:p,bbox:d,label:E}=yield A(y,t,Y(t)),a=Math.max(d.width+2*(t.padding??0),t?.width??0),b=Math.max(d.height+2*(t.padding??0),t?.height??0),c=-a/2,_=-b/2,{cssStyles:W}=t,P=G.Z.svg(p),Z=yt(t,{}),tt=[{x:c-5,y:_-5},{x:c-5,y:_+b},{x:c+a,y:_+b},{x:c+a,y:_-5}],it=`M${c-5},${_-5} L${c+a},${_-5} L${c+a},${_+b} L${c-5},${_+b} L${c-5},${_-5}\n M${c-5},${_} L${c+a},${_}\n M${c},${_-5} L${c},${_+b}`;"handDrawn"!==t.look&&(Z.roughness=0,Z.fillStyle="solid");const pt=P.path(it,Z),e=p.insert(()=>pt,":first-child");return e.attr("transform","translate(2.5, 2.5)"),e.attr("class","basic label-container"),W&&"handDrawn"!==t.look&&e.selectAll("path").attr("style",W),S&&"handDrawn"!==t.look&&e.selectAll("path").attr("style",S),E.attr("transform",`translate(${-d.width/2+2.5-(d.x-(d.left??0))}, ${-d.height/2+2.5-(d.y-(d.top??0))})`),L(t,e),t.intersect=function(i){return V.polygon(t,tt,i)},p})).apply(this,arguments)}function Gi(y,t){return ki.apply(this,arguments)}function ki(){return(ki=(0,s.Z)(function*(y,t){const h=t;if(h.alias&&(t.label=h.alias),"handDrawn"===t.look){const{themeVariables:Fe}=(0,r.iE)(),{background:Pe}=Fe,pi={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Pe}`]};yield Gi(y,pi)}const S=(0,r.iE)();t.useHtmlLabels=S.htmlLabels;let p=S.er?.diagramPadding??10,d=S.er?.entityPadding??6;const{cssStyles:E}=t,{labelStyles:a}=mt(t);if(0===h.attributes.length&&t.label){const Fe={rx:0,ry:0,labelPaddingX:p,labelPaddingY:1.5*p,classes:""};(0,J.Cq)(t.label,S)+2*Fe.labelPaddingX0){const Fe=c.width+2*p-(P+Z+tt+it);P+=Fe/i,Z+=Fe/i,tt>0&&(tt+=Fe/i),it>0&&(it+=Fe/i)}const C=P+Z+tt+it,k=G.Z.svg(n),H=yt(t,{});"handDrawn"!==t.look&&(H.roughness=0,H.fillStyle="solid");const D=Math.max(g.width+2*p,t?.width||0,C),Q=Math.max(g.height+(W[0]||_)+d,t?.height||0),ot=-D/2,Tt=-Q/2;n.selectAll("g:not(:first-child)").each((Fe,Pe,pi)=>{const oi=(0,j.Ys)(pi[Pe]),qi=oi.attr("transform");let Qi=0,on=0;if(qi){const sn=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(qi);sn&&(Qi=parseFloat(sn[1]),on=parseFloat(sn[2]),oi.attr("class").includes("attribute-name")?Qi+=P:oi.attr("class").includes("attribute-keys")?Qi+=P+Z:oi.attr("class").includes("attribute-comment")&&(Qi+=P+Z+tt))}oi.attr("transform",`translate(${ot+p/2+Qi}, ${on+Tt+c.height+d/2})`)}),n.select(".name").attr("transform","translate("+-c.width/2+", "+(Tt+d/2)+")");const Nt=k.rectangle(ot,Tt,D,Q,H),At=n.insert(()=>Nt,":first-child").attr("style",E.join("")),{themeVariables:se}=(0,r.iE)(),{rowEven:Jt,rowOdd:ee,nodeBorder:Ce}=se;W.push(0);for(const[Fe,Pe]of W.entries()){if(0===Fe&&W.length>1)continue;const pi=Fe%2==0&&0!==Pe,oi=k.rectangle(ot,c.height+Tt+Pe,D,c.height,{...H,fill:pi?Jt:ee,stroke:Ce});n.insert(()=>oi,"g.label").attr("style",E.join("")).attr("class","row-rect-"+(Fe%2==0?"even":"odd"))}let ge=k.line(ot,c.height+Tt,D+ot,c.height+Tt,H);n.insert(()=>ge).attr("class","divider"),ge=k.line(P+ot,c.height+Tt,P+ot,Q+Tt,H),n.insert(()=>ge).attr("class","divider"),pt&&(ge=k.line(P+Z+ot,c.height+Tt,P+Z+ot,Q+Tt,H),n.insert(()=>ge).attr("class","divider")),e&&(ge=k.line(P+Z+tt+ot,c.height+Tt,P+Z+tt+ot,Q+Tt,H),n.insert(()=>ge).attr("class","divider"));for(const Fe of W)ge=k.line(ot,c.height+Tt+Fe,D+ot,c.height+Tt+Fe,H),n.insert(()=>ge).attr("class","divider");return L(t,At),t.intersect=function(Fe){return V.rect(t,Fe)},n})).apply(this,arguments)}function Si(y,t,h){return Fi.apply(this,arguments)}function Fi(){return(Fi=(0,s.Z)(function*(y,t,h,S=0,p=0,d=[],E=""){const a=y.insert("g").attr("class",`label ${d.join(" ")}`).attr("transform",`translate(${S}, ${p})`).attr("style",E);t!==(0,r.UO)(t)&&(t=(t=(0,r.UO)(t)).replaceAll("<","<").replaceAll(">",">"));const b=a.node().appendChild(yield(0,rt.rw)(a,t,{width:(0,J.Cq)(t,h)+100,style:E,useHtmlLabels:h.htmlLabels},h));if(t.includes("<")||t.includes(">")){let c=b.children[0];for(c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">");c.childNodes[0];)c=c.childNodes[0],c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">")}let n=b.getBBox();if((0,r.ku)(h.htmlLabels)){const c=b.children[0];c.style.textAlign="start";const _=(0,j.Ys)(b);n=c.getBoundingClientRect(),_.attr("width",n.width),_.attr("height",n.height)}return n})).apply(this,arguments)}function Bi(y,t,h,S){return Ii.apply(this,arguments)}function Ii(){return(Ii=(0,s.Z)(function*(y,t,h,S,p=h.class.padding??12){const d=S?0:3,E=y.insert("g").attr("class",Y(t)).attr("id",t.domId||t.id);let a=null,b=null,n=null,c=null,_=0,W=0,P=0;if(a=E.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const e=t.annotations[0];yield fi(a,{text:`\xab${e}\xbb`},0),_=a.node().getBBox().height}b=E.insert("g").attr("class","label-group text"),yield fi(b,t,0,["font-weight: bolder"]);const Z=b.node().getBBox();W=Z.height,n=E.insert("g").attr("class","members-group text");let tt=0;for(const e of t.members)tt+=(yield fi(n,e,tt,[e.parseClassifier()]))+d;P=n.node().getBBox().height,P<=0&&(P=p/2),c=E.insert("g").attr("class","methods-group text");let it=0;for(const e of t.methods)it+=(yield fi(c,e,it,[e.parseClassifier()]))+d;let pt=E.node().getBBox();if(null!==a){const e=a.node().getBBox();a.attr("transform",`translate(${-e.width/2})`)}return b.attr("transform",`translate(${-Z.width/2}, ${_})`),pt=E.node().getBBox(),n.attr("transform",`translate(0, ${_+W+2*p})`),pt=E.node().getBBox(),c.attr("transform",`translate(0, ${_+W+(P?P+4*p:2*p)})`),pt=E.node().getBBox(),{shapeSvg:E,bbox:pt}})).apply(this,arguments)}function fi(y,t,h){return mi.apply(this,arguments)}function mi(){return(mi=(0,s.Z)(function*(y,t,h,S=[]){const p=y.insert("g").attr("class","label").attr("style",S.join("; ")),d=(0,r.iE)();let E="useHtmlLabels"in t?t.useHtmlLabels:(0,r.ku)(d.htmlLabels)??!0,a="";a="text"in t?t.text:t.label,!E&&a.startsWith("\\")&&(a=a.substring(1)),(0,r.l0)(a)&&(E=!0);const b=yield(0,rt.rw)(p,(0,r.uX)((0,J.SH)(a)),{width:(0,J.Cq)(a,d)+50,classes:"markdown-node-label",useHtmlLabels:E},d);let n,c=1;if(E){const _=b.children[0],W=(0,j.Ys)(b);c=_.innerHTML.split("
    ").length,_.innerHTML.includes("")&&(c+=_.innerHTML.split("").length-1);const P=_.getElementsByTagName("img");if(P){const Z=""===a.replace(/]*>/g,"").trim();yield Promise.all([...P].map(tt=>new Promise(it=>{function pt(){if(tt.style.display="flex",tt.style.flexDirection="column",Z){const e=d.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,i=5,g=parseInt(e,10)*i+"px";tt.style.minWidth=g,tt.style.maxWidth=g}else tt.style.width="100%";it(tt)}(0,r.eW)(pt,"setupImage"),setTimeout(()=>{tt.complete&&pt()}),tt.addEventListener("error",pt),tt.addEventListener("load",pt)})))}n=_.getBoundingClientRect(),W.attr("width",n.width),W.attr("height",n.height)}else{S.includes("font-weight: bolder")&&(0,j.Ys)(b).selectAll("tspan").attr("font-weight",""),c=b.children.length;const _=b.children[0];(""===b.textContent||b.textContent.includes(">"))&&(_.textContent=a[0]+a.substring(1).replaceAll(">",">").replaceAll("<","<").trim()," "===a[1]&&(_.textContent=_.textContent[0]+" "+_.textContent.substring(1))),"undefined"===_.textContent&&(_.textContent=""),n=b.getBBox()}return p.attr("transform","translate(0,"+(-n.height/(2*c)+h)+")"),n.height})).apply(this,arguments)}function $i(y,t){return Li.apply(this,arguments)}function Li(){return(Li=(0,s.Z)(function*(y,t){const h=(0,r.nV)(),S=h.class.padding??12,p=S,d=t.useHtmlLabels??(0,r.ku)(h.htmlLabels)??!0,E=t;E.annotations=E.annotations??[],E.members=E.members??[],E.methods=E.methods??[];const{shapeSvg:a,bbox:b}=yield Bi(y,t,h,d,p),{labelStyles:n,nodeStyles:c}=mt(t);t.labelStyle=n,t.cssStyles=E.styles||"";const _=E.styles?.join(";")||c||"";t.cssStyles||(t.cssStyles=_.replaceAll("!important","").split(";"));const W=0===E.members.length&&0===E.methods.length&&!h.class?.hideEmptyMembersBox,P=G.Z.svg(a),Z=yt(t,{});"handDrawn"!==t.look&&(Z.roughness=0,Z.fillStyle="solid");const tt=b.width;let it=b.height;0===E.members.length&&0===E.methods.length?it+=p:E.members.length>0&&0===E.methods.length&&(it+=2*p);const pt=-tt/2,e=-it/2,i=P.rectangle(pt-S,e-S-(W?S:0===E.members.length&&0===E.methods.length?-S/2:0),tt+2*S,it+2*S+(W?2*S:0===E.members.length&&0===E.methods.length?-S:0),Z),g=a.insert(()=>i,":first-child");g.attr("class","basic label-container");const C=g.node().getBBox();a.selectAll(".text").each((Q,ot,Tt)=>{const Nt=(0,j.Ys)(Tt[ot]),At=Nt.attr("transform");let se=0;if(At){const ge=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(At);ge&&(se=parseFloat(ge[2]))}let Jt=se+e+S-(W?S:0===E.members.length&&0===E.methods.length?-S/2:0);d||(Jt-=4);let ee=pt;(Nt.attr("class").includes("label-group")||Nt.attr("class").includes("annotation-group"))&&(ee=-Nt.node()?.getBBox().width/2||0,a.selectAll("text").each(function(Ce,ge,Fe){"middle"===window.getComputedStyle(Fe[ge]).textAnchor&&(ee=0)})),Nt.attr("transform",`translate(${ee}, ${Jt})`)});const k=a.select(".annotation-group").node().getBBox().height-(W?S/2:0)||0,H=a.select(".label-group").node().getBBox().height-(W?S/2:0)||0,D=a.select(".members-group").node().getBBox().height-(W?S/2:0)||0;if(E.members.length>0||E.methods.length>0||W){const Q=P.line(C.x,k+H+e+S,C.x+C.width,k+H+e+S,Z);a.insert(()=>Q).attr("class","divider").attr("style",_)}if(W||E.members.length>0||E.methods.length>0){const Q=P.line(C.x,k+H+D+e+2*p+S,C.x+C.width,k+H+D+e+S+2*p,Z);a.insert(()=>Q).attr("class","divider").attr("style",_)}if("handDrawn"!==E.look&&a.selectAll("path").attr("style",_),g.select(":nth-child(2)").attr("style",_),a.selectAll(".divider").select("path").attr("style",_),t.labelStyle?a.selectAll("span").attr("style",t.labelStyle):a.selectAll("span").attr("style",_),!d){const Q=RegExp(/color\s*:\s*([^;]*)/),ot=Q.exec(_);if(ot){const Tt=ot[0].replace("color","fill");a.selectAll("tspan").attr("style",Tt)}else if(n){const Tt=Q.exec(n);if(Tt){const Nt=Tt[0].replace("color","fill");a.selectAll("tspan").attr("style",Nt)}}}return L(t,g),t.intersect=function(Q){return V.rect(t,Q)},a})).apply(this,arguments)}function Ki(y,t){return Zi.apply(this,arguments)}function Zi(){return(Zi=(0,s.Z)(function*(y,t){const{labelStyles:h,nodeStyles:S}=mt(t);t.labelStyle=h;const p=t,d=t,b="verifyMethod"in t,n=Y(t),c=y.insert("g").attr("class",n).attr("id",t.domId??t.id);let _;_=b?yield jr(c,`<<${p.type}>>`,0,t.labelStyle):yield jr(c,"<<Element>>",0,t.labelStyle);let W=_;const P=yield jr(c,p.name,W,t.labelStyle+"; font-weight: bold;");W+=P+20,b?(W+=(yield jr(c,""+(p.requirementId?`Id: ${p.requirementId}`:""),W,t.labelStyle)),W+=(yield jr(c,""+(p.text?`Text: ${p.text}`:""),W,t.labelStyle)),W+=(yield jr(c,""+(p.risk?`Risk: ${p.risk}`:""),W,t.labelStyle)),yield jr(c,""+(p.verifyMethod?`Verification: ${p.verifyMethod}`:""),W,t.labelStyle)):(W+=(yield jr(c,""+(d.type?`Type: ${d.type}`:""),W,t.labelStyle)),yield jr(c,""+(d.docRef?`Doc Ref: ${d.docRef}`:""),W,t.labelStyle));const Z=(c.node()?.getBBox().width??200)+20,tt=(c.node()?.getBBox().height??200)+20,it=-Z/2,pt=-tt/2,e=G.Z.svg(c),i=yt(t,{});"handDrawn"!==t.look&&(i.roughness=0,i.fillStyle="solid");const g=e.rectangle(it,pt,Z,tt,i),C=c.insert(()=>g,":first-child");if(C.attr("class","basic label-container").attr("style",S),c.selectAll(".label").each((k,H,D)=>{const Q=(0,j.Ys)(D[H]),ot=Q.attr("transform");let Tt=0,Nt=0;if(ot){const ee=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ot);ee&&(Tt=parseFloat(ee[1]),Nt=parseFloat(ee[2]))}const At=Nt-tt/2;let se=it+10;(0===H||1===H)&&(se=Tt),Q.attr("transform",`translate(${se}, ${At+20})`)}),W>_+P+20){const k=e.line(it,pt+_+P+20,it+Z,pt+_+P+20,i);c.insert(()=>k).attr("style",S)}return L(t,C),t.intersect=function(k){return V.rect(t,k)},c})).apply(this,arguments)}function jr(y,t,h){return Pi.apply(this,arguments)}function Pi(){return(Pi=(0,s.Z)(function*(y,t,h,S=""){if(""===t)return 0;const p=y.insert("g").attr("class","label").attr("style",S),d=(0,r.nV)(),E=d.htmlLabels??!0,a=yield(0,rt.rw)(p,(0,r.uX)((0,J.SH)(t)),{width:(0,J.Cq)(t,d)+50,classes:"markdown-node-label",useHtmlLabels:E,style:S},d);let b;if(E){const n=a.children[0],c=(0,j.Ys)(a);b=n.getBoundingClientRect(),c.attr("width",b.width),c.attr("height",b.height)}else{const n=a.children[0];for(const c of n.children)c.textContent=c.textContent.replaceAll(">",">").replaceAll("<","<"),S&&c.setAttribute("style",S);b=a.getBBox(),b.height+=6}return p.attr("transform",`translate(${-b.width/2},${-b.height/2+h})`),b.height})).apply(this,arguments)}(0,r.eW)(at,"tiltedCylinder"),(0,r.eW)(Ee,"trapezoid"),(0,r.eW)(br,"trapezoidalPentagon"),(0,r.eW)(Br,"triangle"),(0,r.eW)(di,"waveEdgedRectangle"),(0,r.eW)(vr,"waveRectangle"),(0,r.eW)(Ei,"windowPane"),(0,r.eW)(Gi,"erBox"),(0,r.eW)(Si,"addText"),(0,r.eW)(Bi,"textHelper"),(0,r.eW)(fi,"addText"),(0,r.eW)($i,"classBox"),(0,r.eW)(Ki,"requirementBox"),(0,r.eW)(jr,"addText");var Xi=(0,r.eW)(y=>{switch(y){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");function Ni(y,t,h){return zi.apply(this,arguments)}function zi(){return(zi=(0,s.Z)(function*(y,t,{config:h}){const{labelStyles:S,nodeStyles:p}=mt(t);t.labelStyle=S||"";const E=t.width;t.width=(t.width??200)-10;const{shapeSvg:a,bbox:b,label:n}=yield A(y,t,Y(t)),c=t.padding||10;let W,_="";"ticket"in t&&t.ticket&&h?.kanban?.ticketBaseUrl&&(_=h?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),W=a.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",_).attr("target","_blank"));const P={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let Z,tt;({label:Z,bbox:tt}=W?yield $(W,"ticket"in t&&t.ticket||"",P):yield $(a,"ticket"in t&&t.ticket||"",P));const{label:it,bbox:pt}=yield $(a,"assigned"in t&&t.assigned||"",P);t.width=E;const i=t?.width||0,g=Math.max(tt.height,pt.height)/2,C=Math.max(b.height+20,t?.height||0)+g,k=-i/2,H=-C/2;let D;n.attr("transform","translate("+(c-i/2)+", "+(-g-b.height/2)+")"),Z.attr("transform","translate("+(c-i/2)+", "+(-g+b.height/2)+")"),it.attr("transform","translate("+(c+i/2-pt.width-20)+", "+(-g+b.height/2)+")");const{rx:Q,ry:ot}=t,{cssStyles:Tt}=t;if("handDrawn"===t.look){const Nt=G.Z.svg(a),At=yt(t,{}),se=Q||ot?Nt.path(re(k,H,i,C,Q||0),At):Nt.rectangle(k,H,i,C,At);D=a.insert(()=>se,":first-child"),D.attr("class","basic label-container").attr("style",Tt||null)}else{D=a.insert("rect",":first-child"),D.attr("class","basic label-container __APA__").attr("style",p).attr("rx",Q??5).attr("ry",ot??5).attr("x",k).attr("y",H).attr("width",i).attr("height",C);const Nt="priority"in t&&t.priority;if(Nt){const At=a.append("line"),se=k+2,Jt=H+Math.floor((Q??0)/2),ee=H+C-Math.floor((Q??0)/2);At.attr("x1",se).attr("y1",Jt).attr("x2",se).attr("y2",ee).attr("stroke-width","4").attr("stroke",Xi(Nt))}}return L(t,D),t.height=C,t.intersect=function(Nt){return V.rect(t,Nt)},a})).apply(this,arguments)}(0,r.eW)(Ni,"kanbanItem");var en=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Rt},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:zr},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:We},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:ci},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:me},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:de},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Fr},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Ke},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Zr},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Wr},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Ee},{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:Qr},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:qe},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:vi},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:ue},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:ii},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Vr},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Or},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:er},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Ir},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:T},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:N},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:_t},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:l},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:di},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:yr},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:at},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:st},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Ft},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Se},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Br},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Ei},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:rr},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:br},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Oe},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:v},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:ze},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Ut},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Yt},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:x},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Er},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:ti},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:vr},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Pr},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:St}],ji=(0,r.eW)(()=>{const t=[...Object.entries({state:Jr,choice:pe,note:Ye,rectWithTitle:wr,labelRect:Tr,iconSquare:or,iconCircle:Xr,icon:Yr,iconRounded:ri,imageSquare:sr,anchor:kt,kanbanItem:Ni,classBox:$i,erBox:Gi,requirementBox:Ki}),...en.flatMap(h=>[h.shortName,..."aliases"in h?h.aliases:[],..."internalAliases"in h?h.internalAliases:[]].map(p=>[p,h.handler]))];return Object.fromEntries(t)},"generateShapeMap")();function Vi(y){return y in ji}(0,r.eW)(Vi,"isValidShape");var Ai=new Map;function Hi(y,t,h){return Ui.apply(this,arguments)}function Ui(){return(Ui=(0,s.Z)(function*(y,t,h){let S,p;"rect"===t.shape&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const d=t.shape?ji[t.shape]:void 0;if(!d)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let E;"sandbox"===h.config.securityLevel?E="_top":t.linkTarget&&(E=t.linkTarget||"_blank"),S=y.insert("svg:a").attr("xlink:href",t.link).attr("target",E??null),p=yield d(S,t,h)}else p=yield d(y,t,h),S=p;return t.tooltip&&p.attr("title",t.tooltip),Ai.set(t.id,S),t.haveCallback&&S.attr("class",S.attr("class")+" clickable"),S})).apply(this,arguments)}(0,r.eW)(Hi,"insertNode");var Yi=(0,r.eW)((y,t)=>{Ai.set(t.id,y)},"setNodeElem"),rn=(0,r.eW)(()=>{Ai.clear()},"clear"),nn=(0,r.eW)(y=>{const t=Ai.get(y.id);r.cM.trace("Transforming node",y.diff,y,"translate("+(y.x-y.width/2-5)+", "+y.width/2+")");const S=y.diff||0;return y.clusterNode?t.attr("transform","translate("+(y.x+S-y.width/2)+", "+(y.y-y.height/2-8)+")"):t.attr("transform","translate("+y.x+", "+y.y+")"),S},"positionNode")},79487:(he,ut,o)=>{"use strict";o.d(ut,{DQ:()=>ke,I_:()=>q,Jj:()=>It,QP:()=>Re,ZH:()=>Lt});var s=o(53420),X=o(11930),U=o(9681),rt=o(25333),J=o(50027),r=o(62477),j=o(3685),G=o(31083),A=o(97886),$=(0,j.eW)((vt,et,dt,nt,ht,bt)=>{et.arrowTypeStart&&Y(vt,"start",et.arrowTypeStart,dt,nt,ht,bt),et.arrowTypeEnd&&Y(vt,"end",et.arrowTypeEnd,dt,nt,ht,bt)},"addEdgeMarkers"),L={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{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}},Y=(0,j.eW)((vt,et,dt,nt,ht,bt,V)=>{const kt=L[dt];if(!kt)return void j.cM.warn(`Unknown arrow type: ${dt}`);const Gt=`${ht}_${bt}-${kt.type}${"start"===et?"Start":"End"}`;if(V&&""!==V.trim()){const ue=`${Gt}_${V.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(ue)){const Ie=document.getElementById(Gt);if(Ie){const pe=Ie.cloneNode(!0);pe.id=ue,pe.querySelectorAll("path, circle, line").forEach(F=>{F.setAttribute("stroke",V),kt.fill&&F.setAttribute("fill",V)}),Ie.parentNode?.appendChild(pe)}}vt.attr(`marker-${et}`,`url(${nt}#${ue})`)}else vt.attr(`marker-${et}`,`url(${nt}#${Gt})`)},"addEdgeMarker"),m=new Map,lt=new Map,Lt=(0,j.eW)(()=>{m.clear(),lt.clear()},"clear"),Wt=(0,j.eW)(vt=>vt?vt.reduce((dt,nt)=>dt+";"+nt,""):"","getLabelStyles"),q=(0,j.eW)(function(){var vt=(0,s.Z)(function*(et,dt){let nt=(0,j.ku)((0,j.nV)().flowchart.htmlLabels);const ht=yield(0,J.rw)(et,dt.label,{style:Wt(dt.labelStyle),useHtmlLabels:nt,addSvgBackground:!0,isNode:!1});j.cM.info("abc82",dt,dt.labelType);const bt=et.insert("g").attr("class","edgeLabel"),V=bt.insert("g").attr("class","label");V.node().appendChild(ht);let Bt,kt=ht.getBBox();if(nt){const Yt=ht.children[0],Gt=(0,G.Ys)(ht);kt=Yt.getBoundingClientRect(),Gt.attr("width",kt.width),Gt.attr("height",kt.height)}if(V.attr("transform","translate("+-kt.width/2+", "+-kt.height/2+")"),m.set(dt.id,bt),dt.width=kt.width,dt.height=kt.height,dt.startLabelLeft){const Yt=yield(0,U.XO)(dt.startLabelLeft,Wt(dt.labelStyle)),Gt=et.insert("g").attr("class","edgeTerminals"),Dt=Gt.insert("g").attr("class","inner");Bt=Dt.node().appendChild(Yt);const ue=Yt.getBBox();Dt.attr("transform","translate("+-ue.width/2+", "+-ue.height/2+")"),lt.get(dt.id)||lt.set(dt.id,{}),lt.get(dt.id).startLeft=Gt,Vt(Bt,dt.startLabelLeft)}if(dt.startLabelRight){const Yt=yield(0,U.XO)(dt.startLabelRight,Wt(dt.labelStyle)),Gt=et.insert("g").attr("class","edgeTerminals"),Dt=Gt.insert("g").attr("class","inner");Bt=Gt.node().appendChild(Yt),Dt.node().appendChild(Yt);const ue=Yt.getBBox();Dt.attr("transform","translate("+-ue.width/2+", "+-ue.height/2+")"),lt.get(dt.id)||lt.set(dt.id,{}),lt.get(dt.id).startRight=Gt,Vt(Bt,dt.startLabelRight)}if(dt.endLabelLeft){const Yt=yield(0,U.XO)(dt.endLabelLeft,Wt(dt.labelStyle)),Gt=et.insert("g").attr("class","edgeTerminals"),Dt=Gt.insert("g").attr("class","inner");Bt=Dt.node().appendChild(Yt);const ue=Yt.getBBox();Dt.attr("transform","translate("+-ue.width/2+", "+-ue.height/2+")"),Gt.node().appendChild(Yt),lt.get(dt.id)||lt.set(dt.id,{}),lt.get(dt.id).endLeft=Gt,Vt(Bt,dt.endLabelLeft)}if(dt.endLabelRight){const Yt=yield(0,U.XO)(dt.endLabelRight,Wt(dt.labelStyle)),Gt=et.insert("g").attr("class","edgeTerminals"),Dt=Gt.insert("g").attr("class","inner");Bt=Dt.node().appendChild(Yt);const ue=Yt.getBBox();Dt.attr("transform","translate("+-ue.width/2+", "+-ue.height/2+")"),Gt.node().appendChild(Yt),lt.get(dt.id)||lt.set(dt.id,{}),lt.get(dt.id).endRight=Gt,Vt(Bt,dt.endLabelRight)}return ht});return function(et,dt){return vt.apply(this,arguments)}}(),"insertEdgeLabel");function Vt(vt,et){(0,j.nV)().flowchart.htmlLabels&&vt&&(vt.style.width=9*et.length+"px",vt.style.height="12px")}(0,j.eW)(Vt,"setTerminalWidth");var It=(0,j.eW)((vt,et)=>{j.cM.debug("Moving label abc88 ",vt.id,vt.label,m.get(vt.id),et);let dt=et.updatedPath?et.updatedPath:et.originalPath;const nt=(0,j.nV)(),{subGraphTitleTotalMargin:ht}=(0,rt.L)(nt);if(vt.label){const bt=m.get(vt.id);let V=vt.x,kt=vt.y;if(dt){const Bt=r.w8.calcLabelPosition(dt);j.cM.debug("Moving label "+vt.label+" from (",V,",",kt,") to (",Bt.x,",",Bt.y,") abc88"),et.updatedPath&&(V=Bt.x,kt=Bt.y)}bt.attr("transform",`translate(${V}, ${kt+ht/2})`)}if(vt.startLabelLeft){const bt=lt.get(vt.id).startLeft;let V=vt.x,kt=vt.y;if(dt){const Bt=r.w8.calcTerminalLabelPosition(vt.arrowTypeStart?10:0,"start_left",dt);V=Bt.x,kt=Bt.y}bt.attr("transform",`translate(${V}, ${kt})`)}if(vt.startLabelRight){const bt=lt.get(vt.id).startRight;let V=vt.x,kt=vt.y;if(dt){const Bt=r.w8.calcTerminalLabelPosition(vt.arrowTypeStart?10:0,"start_right",dt);V=Bt.x,kt=Bt.y}bt.attr("transform",`translate(${V}, ${kt})`)}if(vt.endLabelLeft){const bt=lt.get(vt.id).endLeft;let V=vt.x,kt=vt.y;if(dt){const Bt=r.w8.calcTerminalLabelPosition(vt.arrowTypeEnd?10:0,"end_left",dt);V=Bt.x,kt=Bt.y}bt.attr("transform",`translate(${V}, ${kt})`)}if(vt.endLabelRight){const bt=lt.get(vt.id).endRight;let V=vt.x,kt=vt.y;if(dt){const Bt=r.w8.calcTerminalLabelPosition(vt.arrowTypeEnd?10:0,"end_right",dt);V=Bt.x,kt=Bt.y}bt.attr("transform",`translate(${V}, ${kt})`)}},"positionEdgeLabel"),$t=(0,j.eW)((vt,et)=>{const dt=vt.x,nt=vt.y,ht=Math.abs(et.x-dt),bt=Math.abs(et.y-nt),V=vt.width/2,kt=vt.height/2;return ht>=V||bt>=kt},"outsideNode"),we=(0,j.eW)((vt,et,dt)=>{j.cM.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(et)}\n insidePoint : ${JSON.stringify(dt)}\n node : x:${vt.x} y:${vt.y} w:${vt.width} h:${vt.height}`);const nt=vt.x,ht=vt.y,bt=Math.abs(nt-dt.x),V=vt.width/2;let kt=dt.xMath.abs(nt-et.x)*Bt){let Dt=dt.y{j.cM.warn("abc88 cutPathAtIntersect",vt,et);let dt=[],nt=vt[0],ht=!1;return vt.forEach(bt=>{if(j.cM.info("abc88 checking point",bt,et),$t(et,bt)||ht)j.cM.warn("abc88 outside",bt,nt),nt=bt,ht||dt.push(bt);else{const V=we(et,nt,bt);j.cM.debug("abc88 inside",bt,nt,V),j.cM.debug("abc88 intersection",V,et);let kt=!1;dt.forEach(Bt=>{kt=kt||Bt.x===V.x&&Bt.y===V.y}),dt.some(Bt=>Bt.x===V.x&&Bt.y===V.y)?j.cM.warn("abc88 no intersect",V,dt):dt.push(V),ht=!0}}),j.cM.debug("returning points",dt),dt},"cutPathAtIntersect");function re(vt){const et=[],dt=[];for(let nt=1;nt5&&Math.abs(bt.y-ht.y)>5||ht.y===bt.y&&bt.x===V.x&&Math.abs(bt.x-ht.x)>5&&Math.abs(bt.y-V.y)>5)&&(et.push(bt),dt.push(nt))}return{cornerPoints:et,cornerPointPositions:dt}}(0,j.eW)(re,"extractCornerPoints");var fe=(0,j.eW)(function(vt,et,dt){const nt=et.x-vt.x,ht=et.y-vt.y,V=dt/Math.sqrt(nt*nt+ht*ht);return{x:et.x-V*nt,y:et.y-V*ht}},"findAdjacentPoint"),Me=(0,j.eW)(function(vt){const{cornerPointPositions:et}=re(vt),dt=[];for(let nt=0;nt10&&Math.abs(bt.y-ht.y)>=10){j.cM.debug("Corner point fixing",Math.abs(bt.x-ht.x),Math.abs(bt.y-ht.y));const Ie=5;ue=V.x===kt.x?{x:Yt<0?kt.x-Ie+Dt:kt.x+Ie-Dt,y:Gt<0?kt.y-Dt:kt.y+Dt}:{x:Yt<0?kt.x-Dt:kt.x+Dt,y:Gt<0?kt.y-Ie+Dt:kt.y+Ie-Dt}}else j.cM.debug("Corner point skipping fixing",Math.abs(bt.x-ht.x),Math.abs(bt.y-ht.y));dt.push(ue,Bt)}else dt.push(vt[nt]);return dt},"fixCorners"),Re=(0,j.eW)(function(vt,et,dt,nt,ht,bt,V){const{handDrawnSeed:kt}=(0,j.nV)();let Bt=et.points,Yt=!1;const Gt=ht;var Dt=bt;const ue=[];for(const ft in et.cssCompiledStyles)(0,U.Fh)(ft)||ue.push(et.cssCompiledStyles[ft]);Dt.intersect&&Gt.intersect&&(Bt=Bt.slice(1,et.points.length-1),Bt.unshift(Gt.intersect(Bt[0])),j.cM.debug("Last point APA12",et.start,"--\x3e",et.end,Bt[Bt.length-1],Dt,Dt.intersect(Bt[Bt.length-1])),Bt.push(Dt.intersect(Bt[Bt.length-1]))),et.toCluster&&(j.cM.info("to cluster abc88",dt.get(et.toCluster)),Bt=ve(et.points,dt.get(et.toCluster).node),Yt=!0),et.fromCluster&&(j.cM.debug("from cluster abc88",dt.get(et.fromCluster),JSON.stringify(Bt,null,2)),Bt=ve(Bt.reverse(),dt.get(et.fromCluster).node).reverse(),Yt=!0);let Ie=Bt.filter(ft=>!Number.isNaN(ft.y));Ie=Me(Ie);let pe=G.$0Z;switch(pe=G.c_6,et.curve){case"linear":pe=G.c_6;break;case"basis":default:pe=G.$0Z;break;case"cardinal":pe=G.YY7;break;case"bumpX":pe=G.qpX;break;case"bumpY":pe=G.u93;break;case"catmullRom":pe=G.zgE;break;case"monotoneX":pe=G.FdL;break;case"monotoneY":pe=G.ak_;break;case"natural":pe=G.SxZ;break;case"step":pe=G.eA_;break;case"stepAfter":pe=G.jsv;break;case"stepBefore":pe=G.iJ}const{x:de,y:F}=(0,X.o)(et),u=(0,G.jvg)().x(de).y(F).curve(pe);let x;switch(et.thickness){case"normal":default:x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-invisible"}switch(et.pattern){case"solid":default:x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed"}let f,T=u(Ie);const R=Array.isArray(et.style)?et.style:[et.style];let K=R.find(ft=>ft?.startsWith("stroke:"));if("handDrawn"===et.look){const ft=A.Z.svg(vt);Object.assign([],Ie);const _t=ft.path(T,{roughness:.3,seed:kt});x+=" transition",f=(0,G.Ys)(_t).select("path").attr("id",et.id).attr("class"," "+x+(et.classes?" "+et.classes:"")).attr("style",R?R.reduce((Ft,Pt)=>Ft+";"+Pt,""):"");let ae=f.attr("d");f.attr("d",ae),vt.node().appendChild(f.node())}else{const ft=ue.join(";"),_t=R?R.reduce((Pt,Xt)=>Pt+Xt+";",""):"";let ae="";et.animate&&(ae=" edge-animation-fast"),et.animation&&(ae=" edge-animation-"+et.animation);const Ft=ft?ft+";"+_t+";":_t;f=vt.append("path").attr("d",T).attr("id",et.id).attr("class"," "+x+(et.classes?" "+et.classes:"")+(ae??"")).attr("style",Ft),K=Ft.match(/stroke:([^;]+)/)?.[1]}let N="";((0,j.nV)().flowchart.arrowMarkerAbsolute||(0,j.nV)().state.arrowMarkerAbsolute)&&(N=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,N=N.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),j.cM.info("arrowTypeStart",et.arrowTypeStart),j.cM.info("arrowTypeEnd",et.arrowTypeEnd),$(f,et,N,V,nt,K);let xt={};return Yt&&(xt.updatedPath=Bt),xt.originalPath=et.points,xt},"insertEdge"),Zt=(0,j.eW)((vt,et,dt,nt)=>{et.forEach(ht=>{ne[ht](vt,dt,nt)})},"insertMarkers"),ne={extension:(0,j.eW)((vt,et,dt)=>{j.cM.trace("Making markers for ",dt),vt.append("defs").append("marker").attr("id",dt+"_"+et+"-extensionStart").attr("class","marker extension "+et).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),vt.append("defs").append("marker").attr("id",dt+"_"+et+"-extensionEnd").attr("class","marker extension "+et).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),composition:(0,j.eW)((vt,et,dt)=>{vt.append("defs").append("marker").attr("id",dt+"_"+et+"-compositionStart").attr("class","marker composition "+et).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),vt.append("defs").append("marker").attr("id",dt+"_"+et+"-compositionEnd").attr("class","marker composition "+et).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),aggregation:(0,j.eW)((vt,et,dt)=>{vt.append("defs").append("marker").attr("id",dt+"_"+et+"-aggregationStart").attr("class","marker aggregation "+et).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),vt.append("defs").append("marker").attr("id",dt+"_"+et+"-aggregationEnd").attr("class","marker aggregation "+et).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dependency:(0,j.eW)((vt,et,dt)=>{vt.append("defs").append("marker").attr("id",dt+"_"+et+"-dependencyStart").attr("class","marker dependency "+et).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),vt.append("defs").append("marker").attr("id",dt+"_"+et+"-dependencyEnd").attr("class","marker dependency "+et).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),lollipop:(0,j.eW)((vt,et,dt)=>{vt.append("defs").append("marker").attr("id",dt+"_"+et+"-lollipopStart").attr("class","marker lollipop "+et).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),vt.append("defs").append("marker").attr("id",dt+"_"+et+"-lollipopEnd").attr("class","marker lollipop "+et).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),point:(0,j.eW)((vt,et,dt)=>{vt.append("marker").attr("id",dt+"_"+et+"-pointEnd").attr("class","marker "+et).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"),vt.append("marker").attr("id",dt+"_"+et+"-pointStart").attr("class","marker "+et).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),circle:(0,j.eW)((vt,et,dt)=>{vt.append("marker").attr("id",dt+"_"+et+"-circleEnd").attr("class","marker "+et).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"),vt.append("marker").attr("id",dt+"_"+et+"-circleStart").attr("class","marker "+et).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),cross:(0,j.eW)((vt,et,dt)=>{vt.append("marker").attr("id",dt+"_"+et+"-crossEnd").attr("class","marker cross "+et).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"),vt.append("marker").attr("id",dt+"_"+et+"-crossStart").attr("class","marker cross "+et).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb:(0,j.eW)((vt,et,dt)=>{vt.append("defs").append("marker").attr("id",dt+"_"+et+"-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"),only_one:(0,j.eW)((vt,et,dt)=>{vt.append("defs").append("marker").attr("id",dt+"_"+et+"-onlyOneStart").attr("class","marker onlyOne "+et).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"),vt.append("defs").append("marker").attr("id",dt+"_"+et+"-onlyOneEnd").attr("class","marker onlyOne "+et).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"),zero_or_one:(0,j.eW)((vt,et,dt)=>{const nt=vt.append("defs").append("marker").attr("id",dt+"_"+et+"-zeroOrOneStart").attr("class","marker zeroOrOne "+et).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");nt.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),nt.append("path").attr("d","M9,0 L9,18");const ht=vt.append("defs").append("marker").attr("id",dt+"_"+et+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+et).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");ht.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),ht.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),one_or_more:(0,j.eW)((vt,et,dt)=>{vt.append("defs").append("marker").attr("id",dt+"_"+et+"-oneOrMoreStart").attr("class","marker oneOrMore "+et).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"),vt.append("defs").append("marker").attr("id",dt+"_"+et+"-oneOrMoreEnd").attr("class","marker oneOrMore "+et).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"),zero_or_more:(0,j.eW)((vt,et,dt)=>{const nt=vt.append("defs").append("marker").attr("id",dt+"_"+et+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+et).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");nt.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),nt.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const ht=vt.append("defs").append("marker").attr("id",dt+"_"+et+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+et).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");ht.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),ht.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),requirement_arrow:(0,j.eW)((vt,et,dt)=>{vt.append("defs").append("marker").attr("id",dt+"_"+et+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20")},"requirement_arrow"),requirement_contains:(0,j.eW)((vt,et,dt)=>{const nt=vt.append("defs").append("marker").attr("id",dt+"_"+et+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");nt.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),nt.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),nt.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains")},ke=Zt},25333:(he,ut,o)=>{"use strict";o.d(ut,{L:()=>X});var X=(0,o(3685).eW)(({flowchart:U})=>{const rt=U?.subGraphTitleMargin?.top??0,J=U?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:rt,subGraphTitleBottomMargin:J,subGraphTitleTotalMargin:rt+J}},"getSubGraphTitleMargins")},62477:(he,ut,o)=>{var dt;o.d(ut,{$m:()=>r,Cq:()=>ce,Ln:()=>vt,MX:()=>Zt,Ox:()=>Me,R7:()=>et,Rb:()=>qt,SH:()=>ke,VG:()=>wt,Vy:()=>ne,X4:()=>le,XD:()=>xe,bZ:()=>Et,be:()=>re,le:()=>m,tf:()=>L,w8:()=>Ht});var s=o(3685),X=o(51336),U=o(31083),rt=o(85168),J=o(81232),r="\u200b",j={curveBasis:U.$0Z,curveBasisClosed:U.Dts,curveBasisOpen:U.WQY,curveBumpX:U.qpX,curveBumpY:U.u93,curveBundle:U.tFB,curveCardinalClosed:U.OvA,curveCardinalOpen:U.dCK,curveCardinal:U.YY7,curveCatmullRomClosed:U.fGX,curveCatmullRomOpen:U.$m7,curveCatmullRom:U.zgE,curveLinear:U.c_6,curveLinearClosed:U.fxm,curveMonotoneX:U.FdL,curveMonotoneY:U.ak_,curveNatural:U.SxZ,curveStep:U.eA_,curveStepAfter:U.jsv,curveStepBefore:U.iJ},G=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,A=(0,s.eW)(function(nt,ht){const bt=$(nt,/(?:init\b)|(?:initialize\b)/);let V={};if(Array.isArray(bt)){const Yt=bt.map(Gt=>Gt.args);(0,s.NM)(Yt),V=(0,s.Yc)(V,[...Yt])}else V=bt.args;if(!V)return;let kt=(0,s.Vg)(nt,ht);const Bt="config";return void 0!==V[Bt]&&("flowchart-v2"===kt&&(kt="flowchart"),V[kt]=V[Bt],delete V[Bt]),V},"detectInit"),$=(0,s.eW)(function(nt,ht=null){try{const bt=new RegExp(`[%]{2}(?![{]${G.source})(?=[}][%]{2}).*\n`,"ig");let V;nt=nt.trim().replace(bt,"").replace(/'/gm,'"'),s.cM.debug(`Detecting diagram directive${null!==ht?" type:"+ht:""} based on the text:${nt}`);const kt=[];for(;null!==(V=s.Zn.exec(nt));)if(V.index===s.Zn.lastIndex&&s.Zn.lastIndex++,V&&!ht||ht&&V[1]?.match(ht)||ht&&V[2]?.match(ht)){const Bt=V[1]?V[1]:V[2],Yt=V[3]?V[3].trim():V[4]?JSON.parse(V[4].trim()):null;kt.push({type:Bt,args:Yt})}return 0===kt.length?{type:nt,args:null}:1===kt.length?kt[0]:kt}catch(bt){return s.cM.error(`ERROR: ${bt.message} - Unable to parse directive type: '${ht}' based on the text: '${nt}'`),{type:void 0,args:null}}},"detectDirective"),L=(0,s.eW)(function(nt){return nt.replace(s.Zn,"")},"removeDirectives"),Y=(0,s.eW)(function(nt,ht){for(const[bt,V]of ht.entries())if(V.match(nt))return bt;return-1},"isSubstringInArray");function m(nt,ht){if(!nt)return ht;const bt=`curve${nt.charAt(0).toUpperCase()+nt.slice(1)}`;return j[bt]??ht}function lt(nt,ht){const bt=nt.trim();if(bt)return"loose"!==ht.securityLevel?(0,X.N)(bt):bt}(0,s.eW)(m,"interpolateToCurve"),(0,s.eW)(lt,"formatUrl");var Lt=(0,s.eW)((nt,...ht)=>{const bt=nt.split("."),V=bt.length-1,kt=bt[V];let Bt=window;for(let Yt=0;Yt{bt+=Wt(kt,ht),ht=kt});return $t(nt,bt/2)}function Vt(nt){return 1===nt.length?nt[0]:q(nt)}(0,s.eW)(Wt,"distance"),(0,s.eW)(q,"traverseEdge"),(0,s.eW)(Vt,"calcLabelPosition");var It=(0,s.eW)((nt,ht=2)=>{const bt=Math.pow(10,ht);return Math.round(nt*bt)/bt},"roundNumber"),$t=(0,s.eW)((nt,ht)=>{let bt,V=ht;for(const kt of nt){if(bt){const Bt=Wt(kt,bt);if(0===Bt)return bt;if(Bt=1)return{x:kt.x,y:kt.y};if(Yt>0&&Yt<1)return{x:It((1-Yt)*bt.x+Yt*kt.x,5),y:It((1-Yt)*bt.y+Yt*kt.y,5)}}}bt=kt}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),we=(0,s.eW)((nt,ht,bt)=>{s.cM.info(`our points ${JSON.stringify(ht)}`),ht[0]!==bt&&(ht=ht.reverse());const kt=$t(ht,25),Bt=nt?10:5,Yt=Math.atan2(ht[0].y-kt.y,ht[0].x-kt.x),Gt={x:0,y:0};return Gt.x=Math.sin(Yt)*Bt+(ht[0].x+kt.x)/2,Gt.y=-Math.cos(Yt)*Bt+(ht[0].y+kt.y)/2,Gt},"calcCardinalityPosition");function ve(nt,ht,bt){const V=structuredClone(bt);s.cM.info("our points",V),"start_left"!==ht&&"start_right"!==ht&&V.reverse();const Bt=$t(V,25+nt),Yt=10+.5*nt,Gt=Math.atan2(V[0].y-Bt.y,V[0].x-Bt.x),Dt={x:0,y:0};return"start_left"===ht?(Dt.x=Math.sin(Gt+Math.PI)*Yt+(V[0].x+Bt.x)/2,Dt.y=-Math.cos(Gt+Math.PI)*Yt+(V[0].y+Bt.y)/2):"end_right"===ht?(Dt.x=Math.sin(Gt-Math.PI)*Yt+(V[0].x+Bt.x)/2-5,Dt.y=-Math.cos(Gt-Math.PI)*Yt+(V[0].y+Bt.y)/2-5):"end_left"===ht?(Dt.x=Math.sin(Gt)*Yt+(V[0].x+Bt.x)/2-5,Dt.y=-Math.cos(Gt)*Yt+(V[0].y+Bt.y)/2-5):(Dt.x=Math.sin(Gt)*Yt+(V[0].x+Bt.x)/2,Dt.y=-Math.cos(Gt)*Yt+(V[0].y+Bt.y)/2),Dt}function re(nt){let ht="",bt="";for(const V of nt)void 0!==V&&(V.startsWith("color:")||V.startsWith("text-align:")?bt=bt+V+";":ht=ht+V+";");return{style:ht,labelStyle:bt}}(0,s.eW)(ve,"calcTerminalLabelPosition"),(0,s.eW)(re,"getStylesFromArray");var fe=0,Me=(0,s.eW)(()=>(fe++,"id-"+Math.random().toString(36).substr(2,12)+"-"+fe),"generateId");function Re(nt){let ht="";const bt="0123456789abcdef",V=bt.length;for(let kt=0;ktRe(nt.length),"random"),mt=(0,s.eW)(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:""}},"getTextObj"),yt=(0,s.eW)(function(nt,ht){const bt=ht.text.replace(s.SY.lineBreakRegex," "),[,V]=wt(ht.fontSize),kt=nt.append("text");kt.attr("x",ht.x),kt.attr("y",ht.y),kt.style("text-anchor",ht.anchor),kt.style("font-family",ht.fontFamily),kt.style("font-size",V),kt.style("font-weight",ht.fontWeight),kt.attr("fill",ht.fill),void 0!==ht.class&&kt.attr("class",ht.class);const Bt=kt.append("tspan");return Bt.attr("x",ht.x+2*ht.textMargin),Bt.attr("fill",ht.fill),Bt.text(bt),kt},"drawSimpleText"),le=(0,rt.Z)((nt,ht,bt)=>{if(!nt||(bt=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
    "},bt),s.SY.lineBreakRegex.test(nt)))return nt;const V=nt.split(" ").filter(Boolean),kt=[];let Bt="";return V.forEach((Yt,Gt)=>{const Dt=ce(`${Yt} `,bt),ue=ce(Bt,bt);if(Dt>ht){const{hyphenatedStrings:de,remainingWord:F}=ie(Yt,ht,"-",bt);kt.push(Bt,...de),Bt=F}else ue+Dt>=ht?(kt.push(Bt),Bt=Yt):Bt=[Bt,Yt].filter(Boolean).join(" ");Gt+1===V.length&&kt.push(Bt)}),kt.filter(Yt=>""!==Yt).join(bt.joinWith)},(nt,ht,bt)=>`${nt}${ht}${bt.fontSize}${bt.fontWeight}${bt.fontFamily}${bt.joinWith}`),ie=(0,rt.Z)((nt,ht,bt="-",V)=>{V=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},V);const kt=[...nt],Bt=[];let Yt="";return kt.forEach((Gt,Dt)=>{const ue=`${Yt}${Gt}`;if(ce(ue,V)>=ht){const pe=Dt+1,de=kt.length===pe,F=`${ue}${bt}`;Bt.push(de?ue:F),Yt=""}else Yt=ue}),{hyphenatedStrings:Bt,remainingWord:Yt}},(nt,ht,bt="-",V)=>`${nt}${ht}${bt}${V.fontSize}${V.fontWeight}${V.fontFamily}`);function xe(nt,ht){return Be(nt,ht).height}function ce(nt,ht){return Be(nt,ht).width}(0,s.eW)(xe,"calculateTextHeight"),(0,s.eW)(ce,"calculateTextWidth");var Mt,Be=(0,rt.Z)((nt,ht)=>{const{fontSize:bt=12,fontFamily:V="Arial",fontWeight:kt=400}=ht;if(!nt)return{width:0,height:0};const[,Bt]=wt(bt),Yt=["sans-serif",V],Gt=nt.split(s.SY.lineBreakRegex),Dt=[],ue=(0,U.Ys)("body");if(!ue.remove)return{width:0,height:0,lineHeight:0};const Ie=ue.append("svg");for(const de of Yt){let F=0;const u={width:0,height:0,lineHeight:0};for(const x of Gt){const f=mt();f.text=x||r;const T=yt(Ie,f).style("font-size",Bt).style("font-weight",kt).style("font-family",de),R=(T._groups||T)[0][0].getBBox();if(0===R.width&&0===R.height)throw new Error("svg element not in render tree");u.width=Math.round(Math.max(u.width,R.width)),F=Math.round(R.height),u.height+=F,u.lineHeight=Math.round(Math.max(u.lineHeight,F))}Dt.push(u)}Ie.remove();return Dt[isNaN(Dt[1].height)||isNaN(Dt[1].width)||isNaN(Dt[1].lineHeight)||Dt[0].height>Dt[1].height&&Dt[0].width>Dt[1].width&&Dt[0].lineHeight>Dt[1].lineHeight?0:1]},(nt,ht)=>`${nt}${ht.fontSize}${ht.fontWeight}${ht.fontFamily}`),De=(dt=class{constructor(ht=!1,bt){this.count=0,this.count=bt?bt.length:0,this.next=ht?()=>this.count++:()=>Date.now()}},__name(dt,"InitIDGenerator"),dt),jt=(0,s.eW)(function(nt){return Mt=Mt||document.createElement("div"),nt=escape(nt).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Mt.innerHTML=nt,unescape(Mt.textContent)},"entityDecode");function Et(nt){return"str"in nt}(0,s.eW)(Et,"isDetailedError");var Qt=(0,s.eW)((nt,ht,bt,V)=>{if(!V)return;const kt=nt.node()?.getBBox();!kt||nt.append("text").text(V).attr("text-anchor","middle").attr("x",kt.x+kt.width/2).attr("y",-bt).attr("class",ht)},"insertTitle"),wt=(0,s.eW)(nt=>{if("number"==typeof nt)return[nt,nt+"px"];const ht=parseInt(nt??"",10);return Number.isNaN(ht)?[void 0,void 0]:nt===String(ht)?[ht,nt+"px"]:[ht,nt]},"parseFontSize");function qt(nt,ht){return(0,J.Z)({},nt,ht)}(0,s.eW)(qt,"cleanAndMerge");var Ht={assignWithDepth:s.Yc,wrapLabel:le,calculateTextHeight:xe,calculateTextWidth:ce,calculateTextDimensions:Be,cleanAndMerge:qt,detectInit:A,detectDirective:$,isSubstringInArray:Y,interpolateToCurve:m,calcLabelPosition:Vt,calcCardinalityPosition:we,calcTerminalLabelPosition:ve,formatUrl:lt,getStylesFromArray:re,generateId:Me,random:Zt,runFunc:Lt,entityDecode:jt,insertTitle:Qt,parseFontSize:wt,InitIDGenerator:De},ne=(0,s.eW)(function(nt){let ht=nt;return ht=ht.replace(/style.*:\S*#.*;/g,function(bt){return bt.substring(0,bt.length-1)}),ht=ht.replace(/classDef.*:\S*#.*;/g,function(bt){return bt.substring(0,bt.length-1)}),ht=ht.replace(/#\w+;/g,function(bt){const V=bt.substring(1,bt.length-1);return/^\+?\d+$/.test(V)?"\ufb02\xb0\xb0"+V+"\xb6\xdf":"\ufb02\xb0"+V+"\xb6\xdf"}),ht},"encodeEntities"),ke=(0,s.eW)(function(nt){return nt.replace(/\ufb02\xb0\xb0/g,"&#").replace(/\ufb02\xb0/g,"&").replace(/\xb6\xdf/g,";")},"decodeEntities"),vt=(0,s.eW)((nt,ht,{counter:bt=0,prefix:V,suffix:kt},Bt)=>Bt||`${V?`${V}_`:""}${nt}_${ht}_${bt}${kt?`_${kt}`:""}`,"getEdgeId");function et(nt){return nt??null}(0,s.eW)(et,"handleUndefinedAttr")},76794:(he,ut,o)=>{"use strict";o.d(ut,{_b:()=>L,jM:()=>G,sY:()=>$});var s=o(53420),X=o(79487),U=o(9681),rt=o(62477),J=o(3685),r={common:J.SY,getConfig:J.iE,insertCluster:U.us,insertEdge:X.QP,insertEdgeLabel:X.I_,insertMarkers:X.DQ,insertNode:U.Lf,interpolateToCurve:rt.le,labelHelper:U.C1,log:J.cM,positionEdgeLabel:X.Jj},j={},G=(0,J.eW)(Y=>{for(const m of Y)j[m.name]=m},"registerLayoutLoaders");(0,J.eW)(()=>{G([{name:"dagre",loader:(0,J.eW)((0,s.Z)(function*(){return yield Promise.all([o.e(6453),o.e(222),o.e(4644)]).then(o.bind(o,34644))}),"loader")}])},"registerDefaultLayoutLoaders")();var $=(0,J.eW)(function(){var Y=(0,s.Z)(function*(m,lt){if(!(m.layoutAlgorithm in j))throw new Error(`Unknown layout algorithm: ${m.layoutAlgorithm}`);const Lt=j[m.layoutAlgorithm];return(yield Lt.loader()).render(m,lt,r,{algorithm:Lt.algorithm})});return function(m,lt){return Y.apply(this,arguments)}}(),"render"),L=(0,J.eW)((Y="",{fallback:m="dagre"}={})=>{if(Y in j)return Y;if(m in j)return J.cM.warn(`Layout algorithm ${Y} is not registered. Using ${m} as fallback.`),m;throw new Error(`Both layout algorithms ${Y} and ${m} are not registered.`)},"getRegisteredLayoutAlgorithm")},11930:(he,ut,o)=>{"use strict";o.d(ut,{o:()=>J});var s=o(3685),X={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function U(r,j){if(void 0===r||void 0===j)return{angle:0,deltaX:0,deltaY:0};r=rt(r),j=rt(j);const[G,A]=[r.x,r.y],[$,L]=[j.x,j.y],Y=$-G,m=L-A;return{angle:Math.atan(m/Y),deltaX:Y,deltaY:m}}(0,s.eW)(U,"calculateDeltaAndAngle");var rt=(0,s.eW)(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),J=(0,s.eW)(r=>({x:(0,s.eW)(function(j,G,A){let $=0;const L=rt(A[0]).x=0?1:-1)}else if(G===A.length-1&&Object.hasOwn(X,r.arrowTypeEnd)){const{angle:It,deltaX:$t}=U(A[A.length-1],A[A.length-2]);$=X[r.arrowTypeEnd]*Math.cos(It)*($t>=0?1:-1)}const Y=Math.abs(rt(j).x-rt(A[A.length-1]).x),m=Math.abs(rt(j).y-rt(A[A.length-1]).y),lt=Math.abs(rt(j).x-rt(A[0]).x),Lt=Math.abs(rt(j).y-rt(A[0]).y),Wt=X[r.arrowTypeStart],q=X[r.arrowTypeEnd];if(Y0&&m0&&Lt=0?1:-1)}else if(G===A.length-1&&Object.hasOwn(X,r.arrowTypeEnd)){const{angle:It,deltaY:$t}=U(A[A.length-1],A[A.length-2]);$=X[r.arrowTypeEnd]*Math.abs(Math.sin(It))*($t>=0?1:-1)}const Y=Math.abs(rt(j).y-rt(A[A.length-1]).y),m=Math.abs(rt(j).x-rt(A[A.length-1]).x),lt=Math.abs(rt(j).y-rt(A[0]).y),Lt=Math.abs(rt(j).x-rt(A[0]).x),Wt=X[r.arrowTypeStart],q=X[r.arrowTypeEnd];if(Y0&&m0&&Lt{var Pr,Nr,wr,pr,zr,lr,ii;o.d(ut,{cj:()=>Re,r2:()=>Vt,eW:()=>q,XV:()=>N,Yc:()=>ce,nH:()=>Xr,ZH:()=>Zr,LJ:()=>Mr,SY:()=>ri,v2:()=>dr,u_:()=>Gt,Fy:()=>_e,vZ:()=>kt,Vg:()=>mt,Bf:()=>Zt,Zn:()=>fe,ku:()=>er,M6:()=>re,Mx:()=>z,eu:()=>l,iE:()=>R,nV:()=>zt,_7:()=>Fr,cq:()=>ie,Kr:()=>st,ZD:()=>f,xN:()=>Ht,l0:()=>Xe,Vw:()=>Pt,cM:()=>$t,UO:()=>xr,Cq:()=>Qe,KO:()=>yt,uT:()=>ir,mc:()=>xt,NM:()=>Bt,oO:()=>Se,uX:()=>ze,dY:()=>u,U$:()=>B,GN:()=>O,v6:()=>T,Y4:()=>Ut,g2:()=>M,Ub:()=>we,Yn:()=>F,j7:()=>sr,Rw:()=>Ae,Ee:()=>_r,_j:()=>dt,Tb:()=>x});var s=o(53420),X=o(45214),U=o(83989),rt=o(73823);const r=(I,v)=>{const Ct=U.Z.parse(I),Rt={};for(const Ze in v)!v[Ze]||(Rt[Ze]=Ct[Ze]+v[Ze]);return(0,rt.Z)(I,Rt)};var j=o(29016);const L=(I,v=100)=>{const Ct=U.Z.parse(I);return Ct.r=255-Ct.r,Ct.g=255-Ct.g,Ct.b=255-Ct.b,((I,v,Ct=50)=>{const{r:Rt,g:Ze,b:We,a:Cr}=U.Z.parse(I),{r:Jr,g:Rr,b:Or,a:Vr}=U.Z.parse(v),ci=Ct/100,ni=2*ci-1,ti=Cr-Vr,Er=((ni*ti==-1?ni:(ni+ti)/(1+ni*ti))+1)/2,si=1-Er,vi=Rt*Er+Jr*si,hi=Ze*Er+Rr*si,Ti=We*Er+Or*si,ui=Cr*ci+Vr*(1-ci);return(0,j.Z)(vi,hi,Ti,ui)})(Ct,I,v)};var ue,Y=o(69965),m=o(46803),lt=o(39603),Lt=o(31235),Wt=Object.defineProperty,q=(I,v)=>Wt(I,"name",{value:v,configurable:!0}),Vt=(I,v)=>{for(var Ct in v)Wt(I,Ct,{get:v[Ct],enumerable:!0})},It={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},$t={trace:q((...I)=>{},"trace"),debug:q((...I)=>{},"debug"),info:q((...I)=>{},"info"),warn:q((...I)=>{},"warn"),error:q((...I)=>{},"error"),fatal:q((...I)=>{},"fatal")},we=q(function(I="fatal"){let v=It.fatal;"string"==typeof I?I.toLowerCase()in It&&(v=It[I]):"number"==typeof I&&(v=I),$t.trace=()=>{},$t.debug=()=>{},$t.info=()=>{},$t.warn=()=>{},$t.error=()=>{},$t.fatal=()=>{},v<=It.fatal&&($t.fatal=console.error?console.error.bind(console,ve("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",ve("FATAL"))),v<=It.error&&($t.error=console.error?console.error.bind(console,ve("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",ve("ERROR"))),v<=It.warn&&($t.warn=console.warn?console.warn.bind(console,ve("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",ve("WARN"))),v<=It.info&&($t.info=console.info?console.info.bind(console,ve("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",ve("INFO"))),v<=It.debug&&($t.debug=console.debug?console.debug.bind(console,ve("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",ve("DEBUG"))),v<=It.trace&&($t.trace=console.debug?console.debug.bind(console,ve("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",ve("TRACE")))},"setLogLevel"),ve=q(I=>`%c${X().format("ss.SSS")} : ${I} : `,"format"),re=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,fe=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Me=/\s*%%.*\n/gm,Re=(Pr=class extends Error{constructor(v){super(v),this.name="UnknownDiagramError"}},q(Pr,"UnknownDiagramError"),Pr),Zt={},mt=q(function(I,v){I=I.replace(re,"").replace(fe,"").replace(Me,"\n");for(const[Ct,{detector:Rt}]of Object.entries(Zt))if(Rt(I,v))return Ct;throw new Re(`No diagram type detected matching given configuration for text: ${I}`)},"detectType"),yt=q((...I)=>{for(const{id:v,detector:Ct,loader:Rt}of I)le(v,Ct,Rt)},"registerLazyLoadedDiagrams"),le=q((I,v,Ct)=>{Zt[I]&&$t.warn(`Detector with key ${I} already exists. Overwriting.`),Zt[I]={detector:v,loader:Ct},$t.debug(`Detector with key ${I} added${Ct?" with loader":""}`)},"addDetector"),ie=q(I=>Zt[I].loader,"getDiagramLoader"),xe=q((I,v,{depth:Ct=2,clobber:Rt=!1}={})=>{const Ze={depth:Ct,clobber:Rt};return Array.isArray(v)&&!Array.isArray(I)?(v.forEach(We=>xe(I,We,Ze)),I):Array.isArray(v)&&Array.isArray(I)?(v.forEach(We=>{I.includes(We)||I.push(We)}),I):void 0===I||Ct<=0?null!=I&&"object"==typeof I&&"object"==typeof v?Object.assign(I,v):v:(void 0!==v&&"object"==typeof I&&"object"==typeof v&&Object.keys(v).forEach(We=>{"object"!=typeof v[We]||void 0!==I[We]&&"object"!=typeof I[We]?(Rt||"object"!=typeof I[We]&&"object"!=typeof v[We])&&(I[We]=v[We]):(void 0===I[We]&&(I[We]=Array.isArray(v[We])?[]:{}),I[We]=xe(I[We],v[We],{depth:Ct-1,clobber:Rt}))}),I)},"assignWithDepth"),ce=xe,Be="#ffffff",De="#f2f2f2",Mt=q((I,v)=>r(I,v?{s:-40,l:10}:{s:-40,l:-10}),"mkBorder"),jt=(q(Nr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||r(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||r(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Mt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Mt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(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?(0,Y.Z)(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||(0,Y.Z)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,m.Z)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||(0,Y.Z)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,Y.Z)(this.mainBkg,10)):(this.rowOdd=this.rowOdd||(0,m.Z)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,m.Z)(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||r(this.primaryColor,{h:30}),this.cScale4=this.cScale4||r(this.primaryColor,{h:60}),this.cScale5=this.cScale5||r(this.primaryColor,{h:90}),this.cScale6=this.cScale6||r(this.primaryColor,{h:120}),this.cScale7=this.cScale7||r(this.primaryColor,{h:150}),this.cScale8=this.cScale8||r(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||r(this.primaryColor,{h:270}),this.cScale10=this.cScale10||r(this.primaryColor,{h:300}),this.cScale11=this.cScale11||r(this.primaryColor,{h:330}),this.darkMode)for(let Ct=0;Ct{this[Rt]=v[Rt]}),this.updateColors(),Ct.forEach(Rt=>{this[Rt]=v[Rt]})}},"Theme"),Nr),Et=q(I=>{const v=new jt;return v.calculate(I),v},"getThemeVariables"),Qt=(q(wr=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,m.Z)(this.primaryColor,16),this.tertiaryColor=r(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.background),this.secondaryBorderColor=Mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,m.Z)(L("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,j.Z)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,Y.Z)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,Y.Z)(this.sectionBkgColor,10),this.taskBorderColor=(0,j.Z)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,j.Z)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,m.Z)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,Y.Z)(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,m.Z)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,m.Z)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,m.Z)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=r(this.primaryColor,{h:64}),this.fillType3=r(this.secondaryColor,{h:64}),this.fillType4=r(this.primaryColor,{h:-64}),this.fillType5=r(this.secondaryColor,{h:-64}),this.fillType6=r(this.primaryColor,{h:128}),this.fillType7=r(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||r(this.primaryColor,{h:30}),this.cScale4=this.cScale4||r(this.primaryColor,{h:60}),this.cScale5=this.cScale5||r(this.primaryColor,{h:90}),this.cScale6=this.cScale6||r(this.primaryColor,{h:120}),this.cScale7=this.cScale7||r(this.primaryColor,{h:150}),this.cScale8=this.cScale8||r(this.primaryColor,{h:210}),this.cScale9=this.cScale9||r(this.primaryColor,{h:270}),this.cScale10=this.cScale10||r(this.primaryColor,{h:300}),this.cScale11=this.cScale11||r(this.primaryColor,{h:330});for(let v=0;v{this[Rt]=v[Rt]}),this.updateColors(),Ct.forEach(Rt=>{this[Rt]=v[Rt]})}},"Theme"),wr),wt=q(I=>{const v=new Qt;return v.calculate(I),v},"getThemeVariables"),qt=(q(pr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=r(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=r(this.primaryColor,{h:-160}),this.primaryBorderColor=Mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,j.Z)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",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||r(this.primaryColor,{h:30}),this.cScale4=this.cScale4||r(this.primaryColor,{h:60}),this.cScale5=this.cScale5||r(this.primaryColor,{h:90}),this.cScale6=this.cScale6||r(this.primaryColor,{h:120}),this.cScale7=this.cScale7||r(this.primaryColor,{h:150}),this.cScale8=this.cScale8||r(this.primaryColor,{h:210}),this.cScale9=this.cScale9||r(this.primaryColor,{h:270}),this.cScale10=this.cScale10||r(this.primaryColor,{h:300}),this.cScale11=this.cScale11||r(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,Y.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,Y.Z)(this.tertiaryColor,40);for(let v=0;v{"calculated"===this[Rt]&&(this[Rt]=void 0)}),"object"!=typeof v)return void this.updateColors();const Ct=Object.keys(v);Ct.forEach(Rt=>{this[Rt]=v[Rt]}),this.updateColors(),Ct.forEach(Rt=>{this[Rt]=v[Rt]})}},"Theme"),pr),Ht=q(I=>{const v=new qt;return v.calculate(I),v},"getThemeVariables"),ne=(q(zr=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=(0,m.Z)("#cde498",10),this.primaryBorderColor=Mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.primaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,Y.Z)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||r(this.primaryColor,{h:30}),this.cScale4=this.cScale4||r(this.primaryColor,{h:60}),this.cScale5=this.cScale5||r(this.primaryColor,{h:90}),this.cScale6=this.cScale6||r(this.primaryColor,{h:120}),this.cScale7=this.cScale7||r(this.primaryColor,{h:150}),this.cScale8=this.cScale8||r(this.primaryColor,{h:210}),this.cScale9=this.cScale9||r(this.primaryColor,{h:270}),this.cScale10=this.cScale10||r(this.primaryColor,{h:300}),this.cScale11=this.cScale11||r(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,Y.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,Y.Z)(this.tertiaryColor,40);for(let v=0;v{this[Rt]=v[Rt]}),this.updateColors(),Ct.forEach(Rt=>{this[Rt]=v[Rt]})}},"Theme"),zr),ke=q(I=>{const v=new ne;return v.calculate(I),v},"getThemeVariables"),vt=(q(lr=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,m.Z)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=r(this.primaryColor,{h:-160}),this.primaryBorderColor=Mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,m.Z)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,m.Z)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,m.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let v=0;v{this[Rt]=v[Rt]}),this.updateColors(),Ct.forEach(Rt=>{this[Rt]=v[Rt]})}},"Theme"),lr),dt={base:{getThemeVariables:Et},dark:{getThemeVariables:wt},default:{getThemeVariables:Ht},forest:{getThemeVariables:ke},neutral:{getThemeVariables:q(I=>{const v=new vt;return v.calculate(I),v},"getThemeVariables")}},nt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},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},ht={...nt,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:dt.default.getThemeVariables(),sequence:{...nt.sequence,messageFont:q(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:q(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:q(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...nt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...nt.c4,useWidth:void 0,personFont:q(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:q(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:q(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:q(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:q(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:q(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:q(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:q(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:q(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:q(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:q(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:q(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:q(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:q(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:q(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:q(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:q(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:q(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:q(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:q(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:q(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:q(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...nt.pie,useWidth:984},xyChart:{...nt.xyChart,useWidth:void 0},requirement:{...nt.requirement,useWidth:void 0},packet:{...nt.packet},radar:{...nt.radar}},bt=q((I,v="")=>Object.keys(I).reduce((Ct,Rt)=>Array.isArray(I[Rt])?Ct:"object"==typeof I[Rt]&&null!==I[Rt]?[...Ct,v+Rt,...bt(I[Rt],"")]:[...Ct,v+Rt],[]),"keyify"),V=new Set(bt(ht,"")),kt=ht,Bt=q(I=>{if($t.debug("sanitizeDirective called with",I),"object"==typeof I&&null!=I){if(Array.isArray(I))return void I.forEach(v=>Bt(v));for(const v of Object.keys(I)){if($t.debug("Checking key",v),v.startsWith("__")||v.includes("proto")||v.includes("constr")||!V.has(v)||null==I[v]){$t.debug("sanitize deleting key: ",v),delete I[v];continue}if("object"==typeof I[v]){$t.debug("sanitizing object",v),Bt(I[v]);continue}const Ct=["themeCSS","fontFamily","altFontFamily"];for(const Rt of Ct)v.includes(Rt)&&($t.debug("sanitizing css option",v),I[v]=Yt(I[v]))}if(I.themeVariables)for(const v of Object.keys(I.themeVariables)){const Ct=I.themeVariables[v];Ct?.match&&!Ct.match(/^[\d "#%(),.;A-Za-z]+$/)&&(I.themeVariables[v]="")}$t.debug("After sanitization",I)}},"sanitizeDirective"),Yt=q(I=>{let v=0,Ct=0;for(const Rt of I){if(v{let Ct=ce({},I),Rt={};for(const Ze of v)K(Ze),Rt=ce(Rt,Ze);if(Ct=ce(Ct,Rt),Rt.theme&&Rt.theme in dt){const Ze=ce({},ue),We=ce(Ze.themeVariables||{},Rt.themeVariables);Ct.theme&&Ct.theme in dt&&(Ct.themeVariables=dt[Ct.theme].getThemeVariables(We))}return Ft(pe=Ct),pe},"updateCurrentConfig"),F=q(I=>(Dt=ce({},Gt),Dt=ce(Dt,I),I.theme&&dt[I.theme]&&(Dt.themeVariables=dt[I.theme].getThemeVariables(I.themeVariables)),de(Dt,Ie),Dt),"setSiteConfig"),u=q(I=>{ue=ce({},I)},"saveConfigFromInitialize"),x=q(I=>(Dt=ce(Dt,I),de(Dt,Ie),Dt),"updateSiteConfig"),f=q(()=>ce({},Dt),"getSiteConfig"),T=q(I=>(Ft(I),ce(pe,I),R()),"setConfig"),R=q(()=>ce({},pe),"getConfig"),K=q(I=>{!I||(["secure",...Dt.secure??[]].forEach(v=>{Object.hasOwn(I,v)&&($t.debug(`Denied attempt to modify a secure key ${v}`,I[v]),delete I[v])}),Object.keys(I).forEach(v=>{v.startsWith("__")&&delete I[v]}),Object.keys(I).forEach(v=>{"string"==typeof I[v]&&(I[v].includes("<")||I[v].includes(">")||I[v].includes("url(data:"))&&delete I[v],"object"==typeof I[v]&&K(I[v])}))},"sanitize"),N=q(I=>{Bt(I),I.fontFamily&&!I.themeVariables?.fontFamily&&(I.themeVariables={...I.themeVariables,fontFamily:I.fontFamily}),Ie.push(I),de(Dt,Ie)},"addDirective"),xt=q((I=Dt)=>{de(I,Ie=[])},"reset"),ft={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},_t={},ae=q(I=>{_t[I]||($t.warn(ft[I]),_t[I]=!0)},"issueWarning"),Ft=q(I=>{!I||(I.lazyLoadedDiagrams||I.loadExternalDiagramsAtStartup)&&ae("LAZY_LOAD_DEPRECATED")},"checkConfig"),Pt=//gi,Xt=q(I=>I?Oe(I).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),ye=(()=>{let I=!1;return()=>{I||(be(),I=!0)}})();function be(){const I="data-temp-href-target";Lt.Z.addHook("beforeSanitizeAttributes",v=>{v instanceof Element&&"A"===v.tagName&&v.hasAttribute("target")&&v.setAttribute(I,v.getAttribute("target")??"")}),Lt.Z.addHook("afterSanitizeAttributes",v=>{v instanceof Element&&"A"===v.tagName&&v.hasAttribute(I)&&(v.setAttribute("target",v.getAttribute(I)??""),v.removeAttribute(I),"_blank"===v.getAttribute("target")&&v.setAttribute("rel","noopener"))})}q(be,"setupDompurifyHooks");var me=q(I=>(ye(),Lt.Z.sanitize(I)),"removeScript"),oe=q((I,v)=>{if(!1!==v.flowchart?.htmlLabels){const Ct=v.securityLevel;"antiscript"===Ct||"strict"===Ct?I=me(I):"loose"!==Ct&&(I=(I=(I=Oe(I)).replace(//g,">")).replace(/=/g,"="),I=rr(I))}return I},"sanitizeMore"),Se=q((I,v)=>I&&(I=v.dompurifyConfig?Lt.Z.sanitize(oe(I,v),v.dompurifyConfig).toString():Lt.Z.sanitize(oe(I,v),{FORBID_TAGS:["style"]}).toString()),"sanitizeText"),je=q((I,v)=>"string"==typeof I?Se(I,v):I.flat().map(Ct=>Se(Ct,v)),"sanitizeTextOrArray"),qe=q(I=>Pt.test(I),"hasBreaks"),He=q(I=>I.split(Pt),"splitBreaks"),rr=q(I=>I.replace(/#br#/g,"
    "),"placeholderToBreak"),Oe=q(I=>I.replace(Pt,"#br#"),"breakToPlaceholder"),tr=q(I=>{let v="";return I&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replaceAll(/\(/g,"\\("),v=v.replaceAll(/\)/g,"\\)")),v},"getUrl"),er=q(I=>!(!1===I||["false","null","0"].includes(String(I).trim().toLowerCase())),"evaluate"),yr=q(function(...I){const v=I.filter(Ct=>!isNaN(Ct));return Math.max(...v)},"getMax"),Ur=q(function(...I){const v=I.filter(Ct=>!isNaN(Ct));return Math.min(...v)},"getMin"),xr=q(function(I){const v=I.split(/(,)/),Ct=[];for(let Rt=0;Rt0&&Rt+1Math.max(0,I.split(v).length-1),"countOccurrence"),gr=q((I,v)=>{const Ct=Ke(I,"~"),Rt=Ke(v,"~");return 1===Ct&&1===Rt},"shouldCombineSets"),Ir=q(I=>{const v=Ke(I,"~");let Ct=!1;if(v<=1)return I;v%2!=0&&I.startsWith("~")&&(I=I.substring(1),Ct=!0);const Rt=[...I];let Ze=Rt.indexOf("~"),We=Rt.lastIndexOf("~");for(;-1!==Ze&&-1!==We&&Ze!==We;)Rt[Ze]="<",Rt[We]=">",Ze=Rt.indexOf("~"),We=Rt.lastIndexOf("~");return Ct&&Rt.unshift("~"),Rt.join("")},"processSet"),Sr=q(()=>void 0!==window.MathMLElement,"isMathMLSupported"),Yr=/\$\$(.*)\$\$/g,Xe=q(I=>(I.match(Yr)?.length??0)>0,"hasKatex"),Xr=q(function(){var I=(0,s.Z)(function*(v,Ct){v=yield ir(v,Ct);const Rt=document.createElement("div");Rt.innerHTML=v,Rt.id="katex-temp",Rt.style.visibility="hidden",Rt.style.position="absolute",Rt.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",Rt);const We={width:Rt.clientWidth,height:Rt.clientHeight};return Rt.remove(),We});return function(v,Ct){return I.apply(this,arguments)}}(),"calculateMathMLDimensions"),ir=q(function(){var I=(0,s.Z)(function*(v,Ct){if(!Xe(v))return v;if(!(Sr()||Ct.legacyMathML||Ct.forceLegacyMathML))return v.replace(Yr,"MathML is unsupported in this environment.");const{default:Rt}=yield o.e(7224).then(o.bind(o,57224)),Ze=Ct.forceLegacyMathML||!Sr()&&Ct.legacyMathML?"htmlAndMathml":"mathml";return v.split(Pt).map(We=>Xe(We)?`
    ${We}
    `:`
    ${We}
    `).join("").replace(Yr,(We,Cr)=>Rt.renderToString(Cr,{throwOnError:!0,displayMode:!0,output:Ze}).replace(/\n/g," ").replace(//g,""))});return function(v,Ct){return I.apply(this,arguments)}}(),"renderKatex"),ri={getRows:Xt,sanitizeText:Se,sanitizeTextOrArray:je,hasBreaks:qe,splitBreaks:He,lineBreakRegex:Pt,removeScript:me,getUrl:tr,evaluate:er,getMax:yr,getMin:Ur},Ge=q(function(I,v){for(let Ct of v)I.attr(Ct[0],Ct[1])},"d3Attrs"),or=q(function(I,v,Ct){let Rt=new Map;return Ct?(Rt.set("width","100%"),Rt.set("style",`max-width: ${v}px;`)):(Rt.set("height",I),Rt.set("width",v)),Rt},"calculateSvgSizeAttrs"),dr=q(function(I,v,Ct,Rt){const Ze=or(v,Ct,Rt);Ge(I,Ze)},"configureSvgSize"),sr=q(function(I,v,Ct,Rt){const Ze=v.node().getBBox(),We=Ze.width,Cr=Ze.height;$t.info(`SVG bounds: ${We}x${Cr}`,Ze);let Jr=0,Rr=0;$t.info(`Graph bounds: ${Jr}x${Rr}`,I),Jr=We+2*Ct,Rr=Cr+2*Ct,$t.info(`Calculated bounds: ${Jr}x${Rr}`),dr(v,Rr,Jr,Rt);const Or=`${Ze.x-Ct} ${Ze.y-Ct} ${Ze.width+2*Ct} ${Ze.height+2*Ct}`;v.attr("viewBox",Or)},"setupGraphViewbox"),mr={},Qr=q((I,v,Ct)=>{let Rt="";return I in mr&&mr[I]?Rt=mr[I](Ct):$t.warn(`No theme found for ${I}`),` & {\n font-family: ${Ct.fontFamily};\n font-size: ${Ct.fontSize};\n fill: ${Ct.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${Ct.errorBkgColor};\n }\n & .error-text {\n fill: ${Ct.errorTextColor};\n stroke: ${Ct.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 1px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${Ct.lineColor};\n stroke: ${Ct.lineColor};\n }\n & .marker.cross {\n stroke: ${Ct.lineColor};\n }\n\n & svg {\n font-family: ${Ct.fontFamily};\n font-size: ${Ct.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${Rt}\n\n ${v}\n`},"getStyles"),$r=q((I,v)=>{void 0!==v&&(mr[I]=v)},"addStylesForDiagram"),_r=Qr,Mr={};Vt(Mr,{clear:()=>Zr,getAccDescription:()=>z,getAccTitle:()=>l,getDiagramTitle:()=>st,setAccDescription:()=>B,setAccTitle:()=>O,setDiagramTitle:()=>M});var Tr="",Ar="",Wr="",fr=q(I=>Se(I,R()),"sanitizeText"),Zr=q(()=>{Tr="",Wr="",Ar=""},"clear"),O=q(I=>{Tr=fr(I).replace(/^\s+/g,"")},"setAccTitle"),l=q(()=>Tr,"getAccTitle"),B=q(I=>{Wr=fr(I).replace(/\n\s+/g,"\n")},"setAccDescription"),z=q(()=>Wr,"getAccDescription"),M=q(I=>{Ar=fr(I)},"setDiagramTitle"),st=q(()=>Ar,"getDiagramTitle"),ct=$t,St=we,zt=R,Ut=T,_e=Gt,ze=q(I=>Se(I,zt()),"sanitizeText"),Ae=sr,Ye=q(()=>Mr,"getCommonDb"),$e={},Qe=q((I,v,Ct)=>{$e[I]&&ct.warn(`Diagram with id ${I} already registered. Overwriting.`),$e[I]=v,Ct&&le(I,Ct),$r(I,v.styles),v.injectUtils?.(ct,St,zt,ze,Ae,Ye(),()=>{})},"registerDiagram"),Fr=q(I=>{if(I in $e)return $e[I];throw new Gr(I)},"getDiagram"),Gr=(ii=class extends Error{constructor(v){super(`Diagram ${v} not found.`)}},q(ii,"DiagramNotFoundError"),ii)},18545:(he,ut,o)=>{var an;o.r(ut),o.d(ut,{default:()=>jn});var s=o(53420),X=o(26692),U=o(76794),G=(o(79487),o(11930),o(9681),o(25333),o(77437)),$=(o(50027),o(62477)),L=o(71001),Y=o(39624),m=o(3685),lt=o(13153),Lt=o(31083),Mt=Math.abs,jt=String.fromCharCode;Object.assign;function wt(w){return w.trim()}function Ht(w,gt,Ot){return w.replace(gt,Ot)}function ne(w,gt,Ot){return w.indexOf(gt,Ot)}function ke(w,gt){return 0|w.charCodeAt(gt)}function vt(w,gt,Ot){return w.slice(gt,Ot)}function et(w){return w.length}function nt(w,gt){return gt.push(w),w}function V(w,gt){for(var Ot="",Kt=0;Kt2||N(ue)>3?"":" "}function Xt(w,gt){for(;--gt&&f()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return K(w,R()+(gt<6&&32==T()&&32==f()))}function ye(w){for(;f();)switch(ue){case w:return Dt;case 34:case 39:34!==w&&39!==w&&ye(ue);break;case 40:41===w&&ye(w);break;case 92:f()}return Dt}function be(w,gt){for(;f()&&w+ue!==57&&(w+ue!==84||47!==T()););return"/*"+K(gt,Dt-1)+"*"+jt(47===w?w:f())}function me(w){for(;!N(T());)f();return K(w,Dt)}function oe(w){return ft(Se("",null,null,null,[""],w=xt(w),0,[0],w))}function Se(w,gt,Ot,Kt,Te,Ne,nr,Ve,Ue){for(var Hr=0,Dr=0,kr=nr,Lr=0,li=0,_i=0,ai=1,ei=1,gi=1,Kr=0,yi="",Oi=Te,Di=Ne,xi=Kt,ar=yi;ei;)switch(_i=Kr,Kr=f()){case 40:if(108!=_i&&58==ke(ar,kr-1)){-1!=ne(ar+=Ht(_t(Kr),"&","&\f"),"&\f",Mt(Hr?Ve[Hr-1]:0))&&(gi=-1);break}case 34:case 39:case 91:ar+=_t(Kr);break;case 9:case 10:case 13:case 32:ar+=Ft(_i);break;case 92:ar+=Xt(R()-1,7);continue;case 47:switch(T()){case 42:case 47:nt(qe(be(f(),R()),gt,Ot,Ue),Ue),(5==N(_i||1)||5==N(T()||1))&&et(ar)&&" "!==vt(ar,-1,void 0)&&(ar+=" ");break;default:ar+="/"}break;case 123*ai:Ve[Hr++]=et(ar)*gi;case 125*ai:case 59:case 0:switch(Kr){case 0:case 125:ei=0;case 59+Dr:-1==gi&&(ar=Ht(ar,/\f/g,"")),li>0&&(et(ar)-kr||0===ai&&47===_i)&&nt(li>32?He(ar+";",Kt,Ot,kr-1,Ue):He(Ht(ar," ","")+";",Kt,Ot,kr-2,Ue),Ue);break;case 59:ar+=";";default:if(nt(xi=je(ar,gt,Ot,Hr,Dr,Te,Ve,yi,Oi=[],Di=[],kr,Ne),Ne),123===Kr)if(0===Dr)Se(ar,gt,xi,xi,Oi,Ne,kr,Ve,Di);else{switch(Lr){case 99:if(110===ke(ar,3))break;case 108:if(97===ke(ar,2))break;default:Dr=0;case 100:case 109:case 115:}Dr?Se(w,xi,xi,Kt&&nt(je(w,xi,xi,0,0,Te,Ve,yi,Te,Oi=[],kr,Di),Di),Te,Di,kr,Ve,Kt?Oi:Di):Se(ar,xi,xi,xi,[""],Di,0,Ve,Di)}}Hr=Dr=li=0,ai=gi=1,yi=ar="",kr=nr;break;case 58:kr=1+et(ar),li=_i;default:if(ai<1)if(123==Kr)--ai;else if(125==Kr&&0==ai++&&125==(ue=Dt>0?ke(Ie,--Dt):0,Yt--,10===ue&&(Yt=1,Bt--),ue))continue;switch(ar+=jt(Kr),Kr*ai){case 38:gi=Dr>0?1:(ar+="\f",-1);break;case 44:Ve[Hr++]=(et(ar)-1)*gi,gi=1;break;case 64:45===T()&&(ar+=_t(f())),Lr=T(),Dr=kr=et(yi=ar+=me(R())),Kr++;break;case 45:45===_i&&2==et(ar)&&(ai=0)}}return Ne}function je(w,gt,Ot,Kt,Te,Ne,nr,Ve,Ue,Hr,Dr,kr){for(var Lr=Te-1,li=0===Te?Ne:[""],_i=function dt(w){return w.length}(li),ai=0,ei=0,gi=0;ai0?li[Kr]+" "+yi:Ht(yi,/&\f/g,li[Kr])))&&(Ue[gi++]=Oi);return pe(w,gt,Ot,0===Te?"rule":Ve,Ue,Hr,Dr,kr)}function qe(w,gt,Ot,Kt){return pe(w,gt,Ot,"comm",jt(function u(){return ue}()),vt(w,2,-2),0,Kt)}function He(w,gt,Ot,Kt,Te){return pe(w,gt,Ot,"decl",vt(w,0,Kt),vt(w,Kt+1,-1),Kt,Te)}var rr=o(31235),Oe=o(80256),xr={id:"c4",detector:(0,m.eW)(w=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(8592),o.e(4379)]).then(o.bind(o,4379));return{id:"c4",diagram:w}}),"loader")},Ke="flowchart",Yr={id:Ke,detector:(0,m.eW)((w,gt)=>"dagre-wrapper"!==gt?.flowchart?.defaultRenderer&&"elk"!==gt?.flowchart?.defaultRenderer&&/^\s*graph/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(8592),o.e(6486)]).then(o.bind(o,56486));return{id:Ke,diagram:w}}),"loader")},Xe="flowchart-v2",Ge={id:Xe,detector:(0,m.eW)((w,gt)=>"dagre-d3"!==gt?.flowchart?.defaultRenderer&&("elk"===gt?.flowchart?.defaultRenderer&&(gt.layout="elk"),!(!/^\s*graph/.test(w)||"dagre-wrapper"!==gt?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(w)),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(8592),o.e(6486)]).then(o.bind(o,56486));return{id:Xe,diagram:w}}),"loader")},Qr={id:"er",detector:(0,m.eW)(w=>/^\s*erDiagram/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(8592),o.e(9784)]).then(o.bind(o,49784));return{id:"er",diagram:w}}),"loader")},$r="gitGraph",Ar={id:$r,detector:(0,m.eW)(w=>/^\s*gitGraph/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(6453),o.e(2928),o.e(8592),o.e(5970)]).then(o.bind(o,55970));return{id:$r,diagram:w}}),"loader")},l={id:"gantt",detector:(0,m.eW)(w=>/^\s*gantt/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield o.e(5239).then(o.bind(o,15239));return{id:"gantt",diagram:w}}),"loader")},B="info",st={id:B,detector:(0,m.eW)(w=>/^\s*info/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(6453),o.e(2928),o.e(9104)]).then(o.bind(o,89104));return{id:B,diagram:w}}),"loader")},Ut={id:"pie",detector:(0,m.eW)(w=>/^\s*pie/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(6453),o.e(2928),o.e(8592),o.e(4698)]).then(o.bind(o,34698));return{id:"pie",diagram:w}}),"loader")},_e="quadrantChart",$e={id:_e,detector:(0,m.eW)(w=>/^\s*quadrantChart/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield o.e(9414).then(o.bind(o,69414));return{id:_e,diagram:w}}),"loader")},Qe="xychart",Nr={id:Qe,detector:(0,m.eW)(w=>/^\s*xychart-beta/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield o.e(7499).then(o.bind(o,67499));return{id:Qe,diagram:w}}),"loader")},wr="requirement",ii={id:wr,detector:(0,m.eW)(w=>/^\s*requirement(Diagram)?/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield o.e(8338).then(o.bind(o,38338));return{id:wr,diagram:w}}),"loader")},I="sequence",Ze={id:I,detector:(0,m.eW)(w=>/^\s*sequenceDiagram/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(8592),o.e(2152)]).then(o.bind(o,2152));return{id:I,diagram:w}}),"loader")},Or={id:"class",detector:(0,m.eW)((w,gt)=>"dagre-wrapper"!==gt?.class?.defaultRenderer&&/^\s*classDiagram/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(1902),o.e(8561)]).then(o.bind(o,58561));return{id:"class",diagram:w}}),"loader")},Vr="classDiagram",Ci={id:Vr,detector:(0,m.eW)((w,gt)=>!(!/^\s*classDiagram/.test(w)||"dagre-wrapper"!==gt?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(1902),o.e(4401)]).then(o.bind(o,74401));return{id:Vr,diagram:w}}),"loader")},Ti={id:"state",detector:(0,m.eW)((w,gt)=>"dagre-wrapper"!==gt?.state?.defaultRenderer&&/^\s*stateDiagram/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(6453),o.e(222),o.e(7989),o.e(1553)]).then(o.bind(o,21553));return{id:"state",diagram:w}}),"loader")},ui="stateDiagram",Ee={id:ui,detector:(0,m.eW)((w,gt)=>!!(/^\s*stateDiagram-v2/.test(w)||/^\s*stateDiagram/.test(w)&&"dagre-wrapper"===gt?.state?.defaultRenderer),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(7989),o.e(2897)]).then(o.bind(o,62897));return{id:ui,diagram:w}}),"loader")},Je="journey",qr={id:Je,detector:(0,m.eW)(w=>/^\s*journey/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(8592),o.e(7806)]).then(o.bind(o,87806));return{id:Je,diagram:w}}),"loader")},hr={draw:(0,m.eW)((w,gt,Ot)=>{m.cM.debug("rendering svg for syntax error\n");const Kt=(0,Y.P)(gt),Te=Kt.append("g");Kt.attr("viewBox","0 0 2412 512"),(0,m.v2)(Kt,100,512,!0),Te.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"),Te.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"),Te.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"),Te.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),Te.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"),Te.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"),Te.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"),Te.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${Ot}`)},"draw")},vr=hr,Ei={db:{},renderer:hr,parser:{parse:(0,m.eW)(()=>{},"parse")}},Wi="flowchart-elk",Fi={id:Wi,detector:(0,m.eW)((w,gt={})=>!!(/^\s*flowchart-elk/.test(w)||/^\s*flowchart|graph/.test(w)&&"elk"===gt?.flowchart?.defaultRenderer)&&(gt.layout="elk",!0),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(8592),o.e(6486)]).then(o.bind(o,56486));return{id:Wi,diagram:w}}),"loader")},Bi="timeline",$i={id:Bi,detector:(0,m.eW)(w=>/^\s*timeline/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield o.e(5886).then(o.bind(o,55886));return{id:Bi,diagram:w}}),"loader")},Li="mindmap",Pi={id:Li,detector:(0,m.eW)(w=>/^\s*mindmap/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(574),o.e(6201)]).then(o.bind(o,66201));return{id:Li,diagram:w}}),"loader")},Mi={id:"kanban",detector:(0,m.eW)(w=>/^\s*kanban/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield o.e(5313).then(o.bind(o,31329));return{id:"kanban",diagram:w}}),"loader")},Ui={id:"sankey",detector:(0,m.eW)(w=>/^\s*sankey-beta/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield o.e(1733).then(o.bind(o,11733));return{id:"sankey",diagram:w}}),"loader")},y={id:"packet",detector:(0,m.eW)(w=>/^\s*packet-beta/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(6453),o.e(2928),o.e(8592),o.e(6669)]).then(o.bind(o,76669));return{id:"packet",diagram:w}}),"loader")},t="radar",p={id:t,detector:(0,m.eW)(w=>/^\s*radar-beta/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(6453),o.e(2928),o.e(8592),o.e(6866)]).then(o.bind(o,6866));return{id:t,diagram:w}}),"loader")},d="block",n={id:d,detector:(0,m.eW)(w=>/^\s*block-beta/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(6453),o.e(8592),o.e(7468)]).then(o.bind(o,77468));return{id:d,diagram:w}}),"loader")},c="architecture",Z={id:c,detector:(0,m.eW)(w=>/^\s*architecture/.test(w),"detector"),loader:(0,m.eW)((0,s.Z)(function*(){const{diagram:w}=yield Promise.all([o.e(6453),o.e(2928),o.e(574),o.e(8592),o.e(8257)]).then(o.bind(o,58257));return{id:c,diagram:w}}),"loader")},tt=!1,it=(0,m.eW)(()=>{tt||(tt=!0,(0,m.Cq)("error",Ei,w=>"error"===w.toLowerCase().trim()),(0,m.Cq)("---",{db:{clear:(0,m.eW)(()=>{},"clear")},styles:{},renderer:{draw:(0,m.eW)(()=>{},"draw")},parser:{parse:(0,m.eW)(()=>{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:(0,m.eW)(()=>null,"init")},w=>w.toLowerCase().trimStart().startsWith("---")),(0,m.KO)(xr,Mi,Ci,Or,Qr,l,st,Ut,ii,Ze,Fi,Ge,Yr,Pi,$i,Ar,Ee,Ti,qr,$e,Ui,y,Nr,n,Z,p))},"addDiagrams"),pt=(0,m.eW)((0,s.Z)(function*(){m.cM.debug("Loading registered diagrams");const gt=(yield Promise.allSettled(Object.entries(m.Bf).map(function(){var Ot=(0,s.Z)(function*([Kt,{detector:Te,loader:Ne}]){if(Ne)try{(0,m._7)(Kt)}catch{try{const{diagram:nr,id:Ve}=yield Ne();(0,m.Cq)(Ve,nr,Te)}catch(nr){throw m.cM.error(`Failed to load external diagram with key ${Kt}. Removing from detectors.`),delete m.Bf[Kt],nr}}});return function(Kt){return Ot.apply(this,arguments)}}()))).filter(Ot=>"rejected"===Ot.status);if(gt.length>0){m.cM.error(`Failed to load ${gt.length} external diagrams`);for(const Ot of gt)m.cM.error(Ot);throw new Error(`Failed to load ${gt.length} external diagrams`)}}),"loadRegisteredDiagrams");function i(w,gt){w.attr("role","graphics-document document"),""!==gt&&w.attr("aria-roledescription",gt)}function g(w,gt,Ot,Kt){if(void 0!==w.insert){if(Ot){const Te=`chart-desc-${Kt}`;w.attr("aria-describedby",Te),w.insert("desc",":first-child").attr("id",Te).text(Ot)}if(gt){const Te=`chart-title-${Kt}`;w.attr("aria-labelledby",Te),w.insert("title",":first-child").attr("id",Te).text(gt)}}}(0,m.eW)(i,"setA11yDiagramInfo"),(0,m.eW)(g,"addSVGa11yTitleDescription");var C=(an=class{constructor(gt,Ot,Kt,Te,Ne){this.type=gt,this.text=Ot,this.db=Kt,this.parser=Te,this.renderer=Ne}static fromText(gt,Ot={}){return(0,s.Z)(function*(){const Kt=(0,m.iE)(),Te=(0,m.Vg)(gt,Kt);gt=(0,$.Vy)(gt)+"\n";try{(0,m._7)(Te)}catch{const Hr=(0,m.cq)(Te);if(!Hr)throw new m.cj(`Diagram ${Te} not found.`);const{id:Dr,diagram:kr}=yield Hr();(0,m.Cq)(Dr,kr)}const{db:Ne,parser:nr,renderer:Ve,init:Ue}=(0,m._7)(Te);return nr.parser&&(nr.parser.yy=Ne),Ne.clear?.(),Ue?.(Kt),Ot.title&&Ne.setDiagramTitle?.(Ot.title),yield nr.parse(gt),new an(Te,gt,Ne,nr,Ve)})()}render(gt,Ot){var Kt=this;return(0,s.Z)(function*(){yield Kt.renderer.draw(Kt.text,gt,Ot,Kt)})()}getParser(){return this.parser}getType(){return this.type}},__name(an,"Diagram"),an),k=[],H=(0,m.eW)(()=>{k.forEach(w=>{w()}),k=[]},"attachFunctions"),D=(0,m.eW)(w=>w.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Q(w){const gt=w.match(m.M6);if(!gt)return{text:w,metadata:{}};let Ot=(0,X.z)(gt[1],{schema:X.A})??{};Ot="object"!=typeof Ot||Array.isArray(Ot)?{}:Ot;const Kt={};return Ot.displayMode&&(Kt.displayMode=Ot.displayMode.toString()),Ot.title&&(Kt.title=Ot.title.toString()),Ot.config&&(Kt.config=Ot.config),{text:w.slice(gt[0].length),metadata:Kt}}(0,m.eW)(Q,"extractFrontMatter");var ot=(0,m.eW)(w=>w.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(gt,Ot,Kt)=>"<"+Ot+Kt.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Tt=(0,m.eW)(w=>{const{text:gt,metadata:Ot}=Q(w),{displayMode:Kt,title:Te,config:Ne={}}=Ot;return Kt&&(Ne.gantt||(Ne.gantt={}),Ne.gantt.displayMode=Kt),{title:Te,config:Ne,text:gt}},"processFrontmatter"),Nt=(0,m.eW)(w=>{const gt=$.w8.detectInit(w)??{},Ot=$.w8.detectDirective(w,"wrap");return Array.isArray(Ot)?gt.wrap=Ot.some(({type:Kt})=>"wrap"===Kt):"wrap"===Ot?.type&&(gt.wrap=!0),{text:(0,$.tf)(w),directive:gt}},"processDirectives");function At(w){const gt=ot(w),Ot=Tt(gt),Kt=Nt(Ot.text),Te=(0,$.Rb)(Ot.config,Kt.directive);return{code:w=D(Kt.text),title:Ot.title,config:Te}}function se(w){const gt=(new TextEncoder).encode(w),Ot=Array.from(gt,Kt=>String.fromCodePoint(Kt)).join("");return btoa(Ot)}(0,m.eW)(At,"preprocessDiagram"),(0,m.eW)(se,"toBase64");var Ln=["foreignobject"],Mn=["dominant-baseline"];function cn(w){const gt=At(w);return(0,m.mc)(),(0,m.XV)(gt.config??{}),gt}function yn(w,gt){return hn.apply(this,arguments)}function hn(){return(hn=(0,s.Z)(function*(w,gt){it();try{const{code:Ot,config:Kt}=cn(w);return{diagramType:(yield vn(Ot)).type,config:Kt}}catch(Ot){if(gt?.suppressErrors)return!1;throw Ot}})).apply(this,arguments)}(0,m.eW)(cn,"processAndSetConfigs"),(0,m.eW)(yn,"parse");var xn=(0,m.eW)((w,gt,Ot=[])=>`\n.${w} ${gt} { ${Ot.join(" !important; ")} !important; }`,"cssImportantStyles"),An=(0,m.eW)((w,gt=new Map)=>{let Ot="";if(void 0!==w.themeCSS&&(Ot+=`\n${w.themeCSS}`),void 0!==w.fontFamily&&(Ot+=`\n:root { --mermaid-font-family: ${w.fontFamily}}`),void 0!==w.altFontFamily&&(Ot+=`\n:root { --mermaid-alt-font-family: ${w.altFontFamily}}`),gt instanceof Map){const nr=w.htmlLabels??w.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];gt.forEach(Ve=>{(0,Oe.Z)(Ve.styles)||nr.forEach(Ue=>{Ot+=xn(Ve.id,Ue,Ve.styles)}),(0,Oe.Z)(Ve.textStyles)||(Ot+=xn(Ve.id,"tspan",(Ve?.textStyles||[]).map(Ue=>Ue.replace("color","fill"))))})}return Ot},"createCssStyles"),On=(0,m.eW)((w,gt,Ot,Kt)=>{const Te=An(w,Ot);return V(oe(`${Kt}{${(0,m.Ee)(gt,Te,w.themeVariables)}}`),kt)},"createUserStyles"),Dn=(0,m.eW)((w="",gt,Ot)=>{let Kt=w;return!Ot&&!gt&&(Kt=Kt.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),Kt=(0,$.SH)(Kt),Kt=Kt.replace(/
    /g,"
    "),Kt},"cleanUpSvgCode"),Wn=(0,m.eW)((w="",gt)=>``,"putIntoIFrame"),bn=(0,m.eW)((w,gt,Ot,Kt,Te)=>{const Ne=w.append("div");Ne.attr("id",Ot),Kt&&Ne.attr("style",Kt);const nr=Ne.append("svg").attr("id",gt).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return Te&&nr.attr("xmlns:xlink",Te),nr.append("g"),w},"appendDivSvgG");function un(w,gt){return w.append("iframe").attr("id",gt).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,m.eW)(un,"sandboxedIframe");var Fn=(0,m.eW)((w,gt,Ot,Kt)=>{w.getElementById(gt)?.remove(),w.getElementById(Ot)?.remove(),w.getElementById(Kt)?.remove()},"removeExistingElements"),Pn=(0,m.eW)(function(){var w=(0,s.Z)(function*(gt,Ot,Kt){it();const Te=cn(Ot);Ot=Te.code;const Ne=(0,m.iE)();m.cM.debug(Ne),Ot.length>(Ne?.maxTextSize??5e4)&&(Ot="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const nr="#"+gt,Ve="i"+gt,Ue="#"+Ve,Hr="d"+gt,Dr="#"+Hr,kr=(0,m.eW)(()=>{const bi=li?Ue:Dr,fn=(0,Lt.Ys)(bi).node();fn&&"remove"in fn&&fn.remove()},"removeTempElements");let Lr=(0,Lt.Ys)("body");const li="sandbox"===Ne.securityLevel,_i="loose"===Ne.securityLevel,ai=Ne.fontFamily;if(void 0!==Kt){if(Kt&&(Kt.innerHTML=""),li){const bi=un((0,Lt.Ys)(Kt),Ve);Lr=(0,Lt.Ys)(bi.nodes()[0].contentDocument.body),Lr.node().style.margin=0}else Lr=(0,Lt.Ys)(Kt);bn(Lr,gt,Hr,`font-family: ${ai}`,"http://www.w3.org/1999/xlink")}else{if(Fn(document,gt,Hr,Ve),li){const bi=un((0,Lt.Ys)("body"),Ve);Lr=(0,Lt.Ys)(bi.nodes()[0].contentDocument.body),Lr.node().style.margin=0}else Lr=(0,Lt.Ys)("body");bn(Lr,gt,Hr)}let ei,gi;try{ei=yield C.fromText(Ot,{title:Te.title})}catch(bi){if(Ne.suppressErrorRendering)throw kr(),bi;ei=yield C.fromText("error"),gi=bi}const Kr=Lr.select(Dr).node(),yi=ei.type,Oi=Kr.firstChild,Di=Oi.firstChild,xi=ei.renderer.getClasses?.(Ot,ei),ar=On(Ne,yi,xi,nr),Bn=document.createElement("style");Bn.innerHTML=ar,Oi.insertBefore(Bn,Di);try{yield ei.renderer.draw(Ot,gt,L.X.version,ei)}catch(bi){throw Ne.suppressErrorRendering?kr():vr.draw(Ot,gt,L.X.version),bi}const Hn=Lr.select(`${Dr} svg`),Un=ei.db.getAccTitle?.(),Yn=ei.db.getAccDescription?.();kn(yi,Hn,Un,Yn),Lr.select(`[id="${gt}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let tn=Lr.select(Dr).node().innerHTML;if(m.cM.debug("config.arrowMarkerAbsolute",Ne.arrowMarkerAbsolute),tn=Dn(tn,li,(0,m.ku)(Ne.arrowMarkerAbsolute)),li){const bi=Lr.select(Dr+" svg").node();tn=Wn(tn,bi)}else _i||(tn=rr.Z.sanitize(tn,{ADD_TAGS:Ln,ADD_ATTR:Mn,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(H(),gi)throw gi;return kr(),{diagramType:yi,svg:tn,bindFunctions:ei.db.bindFunctions}});return function(gt,Ot,Kt){return w.apply(this,arguments)}}(),"render");function Cn(w={}){const gt=(0,m.Yc)({},w);gt?.fontFamily&&!gt.themeVariables?.fontFamily&&(gt.themeVariables||(gt.themeVariables={}),gt.themeVariables.fontFamily=gt.fontFamily),(0,m.dY)(gt),gt?.theme&>.theme in m._j?gt.themeVariables=m._j[gt.theme].getThemeVariables(gt.themeVariables):gt&&(gt.themeVariables=m._j.default.getThemeVariables(gt.themeVariables));const Ot="object"==typeof gt?(0,m.Yn)(gt):(0,m.ZD)();(0,m.Ub)(Ot.logLevel),it()}(0,m.eW)(Cn,"initialize");var vn=(0,m.eW)((w,gt={})=>{const{code:Ot}=At(w);return C.fromText(Ot,gt)},"getDiagramFromText");function kn(w,gt,Ot,Kt){i(gt,w),g(gt,Ot,Kt,gt.attr("id"))}(0,m.eW)(kn,"addA11yInfo");var Ji=Object.freeze({render:Pn,parse:yn,getDiagramFromText:vn,initialize:Cn,getConfig:m.iE,setConfig:m.v6,getSiteConfig:m.ZD,updateSiteConfig:m.Tb,reset:(0,m.eW)(()=>{(0,m.mc)()},"reset"),globalReset:(0,m.eW)(()=>{(0,m.mc)(m.u_)},"globalReset"),defaultConfig:m.u_});(0,m.Ub)((0,m.iE)().logLevel),(0,m.mc)((0,m.iE)());var Rn=(0,m.eW)((w,gt,Ot)=>{m.cM.warn(w),(0,$.bZ)(w)?(Ot&&Ot(w.str,w.hash),gt.push({...w,message:w.str,error:w})):(Ot&&Ot(w),w instanceof Error&>.push({str:w.message,message:w.message,hash:w.name,error:w}))},"handleError"),Sn=(0,m.eW)((0,s.Z)(function*(w={querySelector:".mermaid"}){try{yield In(w)}catch(gt){if((0,$.bZ)(gt)&&m.cM.error(gt.str),Ri.parseError&&Ri.parseError(gt),!w.suppressErrors)throw m.cM.error("Use the suppressErrors option to suppress these errors"),gt}}),"run"),In=(0,m.eW)((0,s.Z)(function*({postRenderCallback:w,querySelector:gt,nodes:Ot}={querySelector:".mermaid"}){const Kt=Ji.getConfig();let Te;if(m.cM.debug((w?"":"No ")+"Callback function found"),Ot)Te=Ot;else{if(!gt)throw new Error("Nodes and querySelector are both undefined");Te=document.querySelectorAll(gt)}m.cM.debug(`Found ${Te.length} diagrams`),void 0!==Kt?.startOnLoad&&(m.cM.debug("Start On Load: "+Kt?.startOnLoad),Ji.updateSiteConfig({startOnLoad:Kt?.startOnLoad}));const Ne=new $.w8.InitIDGenerator(Kt.deterministicIds,Kt.deterministicIDSeed);let nr;const Ve=[];for(const Ue of Array.from(Te)){if(m.cM.info("Rendering diagram: "+Ue.id),Ue.getAttribute("data-processed"))continue;Ue.setAttribute("data-processed","true");const Hr=`mermaid-${Ne.next()}`;nr=Ue.innerHTML,nr=(0,lt.Z)($.w8.entityDecode(nr)).trim().replace(//gi,"
    ");const Dr=$.w8.detectInit(nr);Dr&&m.cM.debug("Detected early reinit: ",Dr);try{const{svg:kr,bindFunctions:Lr}=yield En(Hr,nr,Ue);Ue.innerHTML=kr,w&&(yield w(Hr)),Lr&&Lr(Ue)}catch(kr){Rn(kr,Ve,Ri.parseError)}}if(Ve.length>0)throw Ve[0]}),"runThrowsErrors"),_n=(0,m.eW)(function(w){Ji.initialize(w)},"initialize"),$n=(0,m.eW)(function(){var w=(0,s.Z)(function*(gt,Ot,Kt){m.cM.warn("mermaid.init is deprecated. Please use run instead."),gt&&_n(gt);const Te={postRenderCallback:Kt,querySelector:".mermaid"};"string"==typeof Ot?Te.querySelector=Ot:Ot&&(Ot instanceof HTMLElement?Te.nodes=[Ot]:Te.nodes=Ot),yield Sn(Te)});return function(gt,Ot,Kt){return w.apply(this,arguments)}}(),"init"),Zn=(0,m.eW)(function(){var w=(0,s.Z)(function*(gt,{lazyLoad:Ot=!0}={}){it(),(0,m.KO)(...gt),!1===Ot&&(yield pt())});return function(gt){return w.apply(this,arguments)}}(),"registerExternalDiagrams"),Tn=(0,m.eW)(function(){if(Ri.startOnLoad){const{startOnLoad:w}=Ji.getConfig();w&&Ri.run().catch(gt=>m.cM.error("Mermaid failed to initialize",gt))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Tn,!1);var Nn=(0,m.eW)(function(w){Ri.parseError=w},"setParseErrorHandler"),ln=[],dn=!1,wn=(0,m.eW)((0,s.Z)(function*(){if(!dn){for(dn=!0;ln.length>0;){const w=ln.shift();if(w)try{yield w()}catch(gt){m.cM.error("Error executing queue",gt)}}dn=!1}}),"executeQueue"),zn=(0,m.eW)(function(){var w=(0,s.Z)(function*(gt,Ot){return new Promise((Kt,Te)=>{const Ne=(0,m.eW)(()=>new Promise((nr,Ve)=>{Ji.parse(gt,Ot).then(Ue=>{nr(Ue),Kt(Ue)},Ue=>{m.cM.error("Error parsing",Ue),Ri.parseError?.(Ue),Ve(Ue),Te(Ue)})}),"performCall");ln.push(Ne),wn().catch(Te)})});return function(gt,Ot){return w.apply(this,arguments)}}(),"parse"),En=(0,m.eW)((w,gt,Ot)=>new Promise((Kt,Te)=>{const Ne=(0,m.eW)(()=>new Promise((nr,Ve)=>{Ji.render(w,gt,Ot).then(Ue=>{nr(Ue),Kt(Ue)},Ue=>{m.cM.error("Error parsing",Ue),Ri.parseError?.(Ue),Ve(Ue),Te(Ue)})}),"performCall");ln.push(Ne),wn().catch(Te)}),"render"),Ri={startOnLoad:!0,mermaidAPI:Ji,parse:zn,render:En,init:$n,run:Sn,registerExternalDiagrams:Zn,registerLayoutLoaders:U.jM,initialize:_n,parseError:void 0,contentLoaded:Tn,setParseErrorHandler:Nn,detectType:m.Vg,registerIconPacks:G.ef},jn=Ri},61447:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>G});var s=o(13340),X=o(28150);const rt=class U{constructor(){this.type=X.w.ALL}get(){return this.type}set($){if(this.type&&this.type!==$)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=$}reset(){this.type=X.w.ALL}is($){return this.type===$}};const G=new class J{constructor($,L){this.color=L,this.changed=!1,this.data=$,this.type=new rt}set($,L){return this.color=L,this.changed=!1,this.data=$,this.type.type=X.w.ALL,this}_ensureHSL(){const $=this.data,{h:L,s:Y,l:m}=$;void 0===L&&($.h=s.Z.channel.rgb2hsl($,"h")),void 0===Y&&($.s=s.Z.channel.rgb2hsl($,"s")),void 0===m&&($.l=s.Z.channel.rgb2hsl($,"l"))}_ensureRGB(){const $=this.data,{r:L,g:Y,b:m}=$;void 0===L&&($.r=s.Z.channel.hsl2rgb($,"r")),void 0===Y&&($.g=s.Z.channel.hsl2rgb($,"g")),void 0===m&&($.b=s.Z.channel.hsl2rgb($,"b"))}get r(){const $=this.data,L=$.r;return this.type.is(X.w.HSL)||void 0===L?(this._ensureHSL(),s.Z.channel.hsl2rgb($,"r")):L}get g(){const $=this.data,L=$.g;return this.type.is(X.w.HSL)||void 0===L?(this._ensureHSL(),s.Z.channel.hsl2rgb($,"g")):L}get b(){const $=this.data,L=$.b;return this.type.is(X.w.HSL)||void 0===L?(this._ensureHSL(),s.Z.channel.hsl2rgb($,"b")):L}get h(){const $=this.data,L=$.h;return this.type.is(X.w.RGB)||void 0===L?(this._ensureRGB(),s.Z.channel.rgb2hsl($,"h")):L}get s(){const $=this.data,L=$.s;return this.type.is(X.w.RGB)||void 0===L?(this._ensureRGB(),s.Z.channel.rgb2hsl($,"s")):L}get l(){const $=this.data,L=$.l;return this.type.is(X.w.RGB)||void 0===L?(this._ensureRGB(),s.Z.channel.rgb2hsl($,"l")):L}get a(){return this.data.a}set r($){this.type.set(X.w.RGB),this.changed=!0,this.data.r=$}set g($){this.type.set(X.w.RGB),this.changed=!0,this.data.g=$}set b($){this.type.set(X.w.RGB),this.changed=!0,this.data.b=$}set h($){this.type.set(X.w.HSL),this.changed=!0,this.data.h=$}set s($){this.type.set(X.w.HSL),this.changed=!0,this.data.s=$}set l($){this.type.set(X.w.HSL),this.changed=!0,this.data.l=$}set a($){this.changed=!0,this.data.a=$}}({r:0,g:0,b:0,a:0},"transparent")},83989:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>m});var s=o(61447),X=o(28150);const U={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:lt=>{if(35!==lt.charCodeAt(0))return;const Lt=lt.match(U.re);if(!Lt)return;const Wt=Lt[1],q=parseInt(Wt,16),Vt=Wt.length,It=Vt%4==0,$t=Vt>4,we=$t?1:17,ve=$t?8:4,re=It?0:-1,fe=$t?255:15;return s.Z.set({r:(q>>ve*(re+3)&fe)*we,g:(q>>ve*(re+2)&fe)*we,b:(q>>ve*(re+1)&fe)*we,a:It?(q&fe)*we/255:1},lt)},stringify:lt=>{const{r:Lt,g:Wt,b:q,a:Vt}=lt;return Vt<1?`#${X.Q[Math.round(Lt)]}${X.Q[Math.round(Wt)]}${X.Q[Math.round(q)]}${X.Q[Math.round(255*Vt)]}`:`#${X.Q[Math.round(Lt)]}${X.Q[Math.round(Wt)]}${X.Q[Math.round(q)]}`}},rt=U;var J=o(13340);const r={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:lt=>{const Lt=lt.match(r.hueRe);if(Lt){const[,Wt,q]=Lt;switch(q){case"grad":return J.Z.channel.clamp.h(.9*parseFloat(Wt));case"rad":return J.Z.channel.clamp.h(180*parseFloat(Wt)/Math.PI);case"turn":return J.Z.channel.clamp.h(360*parseFloat(Wt))}}return J.Z.channel.clamp.h(parseFloat(lt))},parse:lt=>{const Lt=lt.charCodeAt(0);if(104!==Lt&&72!==Lt)return;const Wt=lt.match(r.re);if(!Wt)return;const[,q,Vt,It,$t,we]=Wt;return s.Z.set({h:r._hue2deg(q),s:J.Z.channel.clamp.s(parseFloat(Vt)),l:J.Z.channel.clamp.l(parseFloat(It)),a:$t?J.Z.channel.clamp.a(we?parseFloat($t)/100:parseFloat($t)):1},lt)},stringify:lt=>{const{h:Lt,s:Wt,l:q,a:Vt}=lt;return Vt<1?`hsla(${J.Z.lang.round(Lt)}, ${J.Z.lang.round(Wt)}%, ${J.Z.lang.round(q)}%, ${Vt})`:`hsl(${J.Z.lang.round(Lt)}, ${J.Z.lang.round(Wt)}%, ${J.Z.lang.round(q)}%)`}},j=r,G={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:lt=>{lt=lt.toLowerCase();const Lt=G.colors[lt];if(Lt)return rt.parse(Lt)},stringify:lt=>{const Lt=rt.stringify(lt);for(const Wt in G.colors)if(G.colors[Wt]===Lt)return Wt}},A=G,$={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:lt=>{const Lt=lt.charCodeAt(0);if(114!==Lt&&82!==Lt)return;const Wt=lt.match($.re);if(!Wt)return;const[,q,Vt,It,$t,we,ve,re,fe]=Wt;return s.Z.set({r:J.Z.channel.clamp.r(Vt?2.55*parseFloat(q):parseFloat(q)),g:J.Z.channel.clamp.g($t?2.55*parseFloat(It):parseFloat(It)),b:J.Z.channel.clamp.b(ve?2.55*parseFloat(we):parseFloat(we)),a:re?J.Z.channel.clamp.a(fe?parseFloat(re)/100:parseFloat(re)):1},lt)},stringify:lt=>{const{r:Lt,g:Wt,b:q,a:Vt}=lt;return Vt<1?`rgba(${J.Z.lang.round(Lt)}, ${J.Z.lang.round(Wt)}, ${J.Z.lang.round(q)}, ${J.Z.lang.round(Vt)})`:`rgb(${J.Z.lang.round(Lt)}, ${J.Z.lang.round(Wt)}, ${J.Z.lang.round(q)})`}},L=$,m={format:{keyword:G,hex:rt,rgb:$,rgba:$,hsl:r,hsla:r},parse:lt=>{if("string"!=typeof lt)return lt;const Lt=rt.parse(lt)||L.parse(lt)||j.parse(lt)||A.parse(lt);if(Lt)return Lt;throw new Error(`Unsupported color format: "${lt}"`)},stringify:lt=>!lt.changed&<.color?lt.color:lt.type.is(X.w.HSL)||void 0===lt.data.r?j.stringify(lt):lt.a<1||!Number.isInteger(lt.r)||!Number.isInteger(lt.g)||!Number.isInteger(lt.b)?L.stringify(lt):rt.stringify(lt)}},28150:(he,ut,o)=>{"use strict";o.d(ut,{Q:()=>X,w:()=>U});var s=o(13340);const X={};for(let rt=0;rt<=255;rt++)X[rt]=s.Z.unit.dec2hex(rt);const U={ALL:0,RGB:1,HSL:2}},40931:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>rt});var s=o(13340),X=o(83989);const rt=(J,r,j)=>{const G=X.Z.parse(J),A=G[r],$=s.Z.channel.clamp[r](A+j);return A!==$&&(G[r]=$),X.Z.stringify(G)}},73823:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>rt});var s=o(13340),X=o(83989);const rt=(J,r)=>{const j=X.Z.parse(J);for(const G in r)j[G]=s.Z.channel.clamp[G](r[G]);return X.Z.stringify(j)}},69965:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>U});var s=o(40931);const U=(rt,J)=>(0,s.Z)(rt,"l",-J)},39603:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>G});var s=o(13340),X=o(83989);const r=A=>(A=>{const{r:$,g:L,b:Y}=X.Z.parse(A),m=.2126*s.Z.channel.toLinear($)+.7152*s.Z.channel.toLinear(L)+.0722*s.Z.channel.toLinear(Y);return s.Z.lang.round(m)})(A)>=.5,G=A=>!r(A)},46803:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>U});var s=o(40931);const U=(rt,J)=>(0,s.Z)(rt,"l",J)},29016:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>r});var s=o(13340),X=o(61447),U=o(83989),rt=o(73823);const r=(j,G,A=0,$=1)=>{if("number"!=typeof j)return(0,rt.Z)(j,{a:G});const L=X.Z.set({r:s.Z.channel.clamp.r(j),g:s.Z.channel.clamp.g(G),b:s.Z.channel.clamp.b(A),a:s.Z.channel.clamp.a($)});return U.Z.stringify(L)}},13340:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>G});const s={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:A=>A>=255?255:A<0?0:A,g:A=>A>=255?255:A<0?0:A,b:A=>A>=255?255:A<0?0:A,h:A=>A%360,s:A=>A>=100?100:A<0?0:A,l:A=>A>=100?100:A<0?0:A,a:A=>A>=1?1:A<0?0:A},toLinear:A=>{const $=A/255;return A>.03928?Math.pow(($+.055)/1.055,2.4):$/12.92},hue2rgb:(A,$,L)=>(L<0&&(L+=1),L>1&&(L-=1),L<1/6?A+6*($-A)*L:L<.5?$:L<2/3?A+($-A)*(2/3-L)*6:A),hsl2rgb:({h:A,s:$,l:L},Y)=>{if(!$)return 2.55*L;A/=360,$/=100;const m=(L/=100)<.5?L*(1+$):L+$-L*$,lt=2*L-m;switch(Y){case"r":return 255*s.hue2rgb(lt,m,A+1/3);case"g":return 255*s.hue2rgb(lt,m,A);case"b":return 255*s.hue2rgb(lt,m,A-1/3)}},rgb2hsl:({r:A,g:$,b:L},Y)=>{A/=255,$/=255,L/=255;const m=Math.max(A,$,L),lt=Math.min(A,$,L),Lt=(m+lt)/2;if("l"===Y)return 100*Lt;if(m===lt)return 0;const Wt=m-lt;if("s"===Y)return 100*(Lt>.5?Wt/(2-m-lt):Wt/(m+lt));switch(m){case A:return 60*(($-L)/Wt+($$>L?Math.min($,Math.max(L,A)):Math.min(L,Math.max($,A)),round:A=>Math.round(1e10*A)/1e10},unit:{dec2hex:A=>{const $=Math.round(A).toString(16);return $.length>1?$:`0${$}`}}}},23923:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>q});const X=function s(){this.__data__=[],this.size=0};var U=o(66267);const J=function rt(Vt,It){for(var $t=Vt.length;$t--;)if((0,U.Z)(Vt[$t][0],It))return $t;return-1};var j=Array.prototype.splice;const A=function G(Vt){var It=this.__data__,$t=J(It,Vt);return!($t<0)&&($t==It.length-1?It.pop():j.call(It,$t,1),--this.size,!0)};const L=function $(Vt){var It=this.__data__,$t=J(It,Vt);return $t<0?void 0:It[$t][1]};const m=function Y(Vt){return J(this.__data__,Vt)>-1};const Lt=function lt(Vt,It){var $t=this.__data__,we=J($t,Vt);return we<0?(++this.size,$t.push([Vt,It])):$t[we][1]=It,this};function Wt(Vt){var It=-1,$t=null==Vt?0:Vt.length;for(this.clear();++It<$t;){var we=Vt[It];this.set(we[0],we[1])}}Wt.prototype.clear=X,Wt.prototype.delete=A,Wt.prototype.get=L,Wt.prototype.has=m,Wt.prototype.set=Lt;const q=Wt},30884:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>rt});var s=o(44278),X=o(39200);const rt=(0,s.Z)(X.Z,"Map")},88536:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>Qt});const U=(0,o(44278).Z)(Object,"create");const J=function rt(){this.__data__=U?U(null):{},this.size=0};const j=function r(wt){var qt=this.has(wt)&&delete this.__data__[wt];return this.size-=qt?1:0,qt};var $=Object.prototype.hasOwnProperty;const Y=function L(wt){var qt=this.__data__;if(U){var Ht=qt[wt];return"__lodash_hash_undefined__"===Ht?void 0:Ht}return $.call(qt,wt)?qt[wt]:void 0};var lt=Object.prototype.hasOwnProperty;const Wt=function Lt(wt){var qt=this.__data__;return U?void 0!==qt[wt]:lt.call(qt,wt)};const It=function Vt(wt,qt){var Ht=this.__data__;return this.size+=this.has(wt)?0:1,Ht[wt]=U&&void 0===qt?"__lodash_hash_undefined__":qt,this};function $t(wt){var qt=-1,Ht=null==wt?0:wt.length;for(this.clear();++qt{"use strict";o.d(ut,{Z:()=>rt});var s=o(44278),X=o(39200);const rt=(0,s.Z)(X.Z,"Set")},16975:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>Wt});var s=o(23923);const U=function X(){this.__data__=new s.Z,this.size=0};const J=function rt(q){var Vt=this.__data__,It=Vt.delete(q);return this.size=Vt.size,It};const j=function r(q){return this.__data__.get(q)};const A=function G(q){return this.__data__.has(q)};var $=o(30884),L=o(88536);const lt=function m(q,Vt){var It=this.__data__;if(It instanceof s.Z){var $t=It.__data__;if(!$.Z||$t.length<199)return $t.push([q,Vt]),this.size=++It.size,this;It=this.__data__=new L.Z($t)}return It.set(q,Vt),this.size=It.size,this};function Lt(q){var Vt=this.__data__=new s.Z(q);this.size=Vt.size}Lt.prototype.clear=U,Lt.prototype.delete=J,Lt.prototype.get=j,Lt.prototype.has=A,Lt.prototype.set=lt;const Wt=Lt},25715:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>U});const U=o(39200).Z.Symbol},31027:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>U});const U=o(39200).Z.Uint8Array},51269:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>L});const X=function s(Y,m){for(var lt=-1,Lt=Array(Y);++lt{"use strict";o.d(ut,{Z:()=>r});var s=o(40355),X=o(66267),rt=Object.prototype.hasOwnProperty;const r=function J(j,G,A){var $=j[G];(!rt.call(j,G)||!(0,X.Z)($,A)||void 0===A&&!(G in j))&&(0,s.Z)(j,G,A)}},40355:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>U});var s=o(19516);const U=function X(rt,J,r){"__proto__"==J&&s.Z?(0,s.Z)(rt,J,{configurable:!0,enumerable:!0,value:r,writable:!0}):rt[J]=r}},54690:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>rt});const rt=function s(J){return function(r,j,G){for(var A=-1,$=Object(r),L=G(r),Y=L.length;Y--;){var m=L[J?Y:++A];if(!1===j($[m],m,$))break}return r}}()},45004:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>Wt});var s=o(25715),X=Object.prototype,U=X.hasOwnProperty,rt=X.toString,J=s.Z?s.Z.toStringTag:void 0;const j=function r(q){var Vt=U.call(q,J),It=q[J];try{q[J]=void 0;var $t=!0}catch{}var we=rt.call(q);return $t&&(Vt?q[J]=It:delete q[J]),we};var A=Object.prototype.toString;const L=function $(q){return A.call(q)};var lt=s.Z?s.Z.toStringTag:void 0;const Wt=function Lt(q){return null==q?void 0===q?"[object Undefined]":"[object Null]":lt&< in Object(q)?j(q):L(q)}},85166:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>G});var s=o(98939);const rt=(0,o(58487).Z)(Object.keys,Object);var r=Object.prototype.hasOwnProperty;const G=function j(A){if(!(0,s.Z)(A))return rt(A);var $=[];for(var L in Object(A))r.call(A,L)&&"constructor"!=L&&$.push(L);return $}},55663:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>J});var s=o(15278),X=o(29780),U=o(51976);const J=function rt(r,j){return(0,U.Z)((0,X.Z)(r,j,s.Z),r+"")}},33774:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>X});const X=function s(U){return function(rt){return U(rt)}}},13975:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>U});var s=o(31027);const U=function X(rt){var J=new rt.constructor(rt.byteLength);return new s.Z(J).set(new s.Z(rt)),J}},863:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>G});var s=o(39200),X="object"==typeof exports&&exports&&!exports.nodeType&&exports,U=X&&"object"==typeof module&&module&&!module.nodeType&&module,J=U&&U.exports===X?s.Z.Buffer:void 0,r=J?J.allocUnsafe:void 0;const G=function j(A,$){if($)return A.slice();var L=A.length,Y=r?r(L):new A.constructor(L);return A.copy(Y),Y}},21859:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>U});var s=o(13975);const U=function X(rt,J){var r=J?(0,s.Z)(rt.buffer):rt.buffer;return new rt.constructor(r,rt.byteOffset,rt.length)}},84936:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>X});const X=function s(U,rt){var J=-1,r=U.length;for(rt||(rt=Array(r));++J{"use strict";o.d(ut,{Z:()=>rt});var s=o(61551),X=o(40355);const rt=function U(J,r,j,G){var A=!j;j||(j={});for(var $=-1,L=r.length;++${"use strict";o.d(ut,{Z:()=>rt});var s=o(55663),X=o(15980);const rt=function U(J){return(0,s.Z)(function(r,j){var G=-1,A=j.length,$=A>1?j[A-1]:void 0,L=A>2?j[2]:void 0;for($=J.length>3&&"function"==typeof $?(A--,$):void 0,L&&(0,X.Z)(j[0],j[1],L)&&($=A<3?void 0:$,A=1),r=Object(r);++G{"use strict";o.d(ut,{Z:()=>U});var s=o(44278);const U=function(){try{var rt=(0,s.Z)(Object,"defineProperty");return rt({},"",{}),rt}catch{}}()},74730:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>X});const X="object"==typeof global&&global&&global.Object===Object&&global},44278:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>ve});var s=o(20801);const rt=o(39200).Z["__core-js_shared__"];var re,J=(re=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||""))?"Symbol(src)_1."+re:"";const j=function r(re){return!!J&&J in re};var G=o(82293),A=o(98993),L=/^\[object .+?Constructor\]$/,Y=Function.prototype,m=Object.prototype,lt=Y.toString,Lt=m.hasOwnProperty,Wt=RegExp("^"+lt.call(Lt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Vt=function q(re){return!(!(0,G.Z)(re)||j(re))&&((0,s.Z)(re)?Wt:L).test((0,A.Z)(re))};const $t=function It(re,fe){return null==re?void 0:re[fe]};const ve=function we(re,fe){var Me=$t(re,fe);return Vt(Me)?Me:void 0}},44461:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>U});const U=(0,o(58487).Z)(Object.getPrototypeOf,Object)},22439:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>Me});var s=o(44278),X=o(39200);const rt=(0,s.Z)(X.Z,"DataView");var J=o(30884);const j=(0,s.Z)(X.Z,"Promise");var G=o(6997);const $=(0,s.Z)(X.Z,"WeakMap");var L=o(45004),Y=o(98993),m="[object Map]",Lt="[object Promise]",Wt="[object Set]",q="[object WeakMap]",Vt="[object DataView]",It=(0,Y.Z)(rt),$t=(0,Y.Z)(J.Z),we=(0,Y.Z)(j),ve=(0,Y.Z)(G.Z),re=(0,Y.Z)($),fe=L.Z;(rt&&fe(new rt(new ArrayBuffer(1)))!=Vt||J.Z&&fe(new J.Z)!=m||j&&fe(j.resolve())!=Lt||G.Z&&fe(new G.Z)!=Wt||$&&fe(new $)!=q)&&(fe=function(Re){var Zt=(0,L.Z)(Re),mt="[object Object]"==Zt?Re.constructor:void 0,yt=mt?(0,Y.Z)(mt):"";if(yt)switch(yt){case It:return Vt;case $t:return m;case we:return Lt;case ve:return Wt;case re:return q}return Zt});const Me=fe},17442:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>G});var s=o(82293),X=Object.create;const rt=function(){function A(){}return function($){if(!(0,s.Z)($))return{};if(X)return X($);A.prototype=$;var L=new A;return A.prototype=void 0,L}}();var J=o(44461),r=o(98939);const G=function j(A){return"function"!=typeof A.constructor||(0,r.Z)(A)?{}:rt((0,J.Z)(A))}},57538:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>rt});var X=/^(?:0|[1-9]\d*)$/;const rt=function U(J,r){var j=typeof J;return!!(r=r??9007199254740991)&&("number"==j||"symbol"!=j&&X.test(J))&&J>-1&&J%1==0&&J{"use strict";o.d(ut,{Z:()=>r});var s=o(66267),X=o(84929),U=o(57538),rt=o(82293);const r=function J(j,G,A){if(!(0,rt.Z)(A))return!1;var $=typeof G;return!!("number"==$?(0,X.Z)(A)&&(0,U.Z)(G,A.length):"string"==$&&G in A)&&(0,s.Z)(A[G],j)}},98939:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>U});var s=Object.prototype;const U=function X(rt){var J=rt&&rt.constructor;return rt===("function"==typeof J&&J.prototype||s)}},1680:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>j});var s=o(74730),X="object"==typeof exports&&exports&&!exports.nodeType&&exports,U=X&&"object"==typeof module&&module&&!module.nodeType&&module,J=U&&U.exports===X&&s.Z.process;const j=function(){try{return U&&U.require&&U.require("util").types||J&&J.binding&&J.binding("util")}catch{}}()},58487:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>X});const X=function s(U,rt){return function(J){return U(rt(J))}}},29780:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>J});const X=function s(r,j,G){switch(G.length){case 0:return r.call(j);case 1:return r.call(j,G[0]);case 2:return r.call(j,G[0],G[1]);case 3:return r.call(j,G[0],G[1],G[2])}return r.apply(j,G)};var U=Math.max;const J=function rt(r,j,G){return j=U(void 0===j?r.length-1:j,0),function(){for(var A=arguments,$=-1,L=U(A.length-j,0),Y=Array(L);++${"use strict";o.d(ut,{Z:()=>rt});var s=o(74730),X="object"==typeof self&&self&&self.Object===Object&&self;const rt=s.Z||X||Function("return this")()},51976:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>Y});var s=o(55677),X=o(19516),U=o(15278);const J=X.Z?function(m,lt){return(0,X.Z)(m,"toString",{configurable:!0,enumerable:!1,value:(0,s.Z)(lt),writable:!0})}:U.Z;var G=Date.now;const Y=function A(m){var lt=0,Lt=0;return function(){var Wt=G(),q=16-(Wt-Lt);if(Lt=Wt,q>0){if(++lt>=800)return arguments[0]}else lt=0;return m.apply(void 0,arguments)}}(J)},98993:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>rt});var X=Function.prototype.toString;const rt=function U(J){if(null!=J){try{return X.call(J)}catch{}try{return J+""}catch{}}return""}},55677:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>X});const X=function s(U){return function(){return U}}},66267:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>X});const X=function s(U,rt){return U===rt||U!=U&&rt!=rt}},15278:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>X});const X=function s(U){return U}},3823:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>$});var s=o(45004),X=o(13343);const J=function rt(L){return(0,X.Z)(L)&&"[object Arguments]"==(0,s.Z)(L)};var r=Object.prototype,j=r.hasOwnProperty,G=r.propertyIsEnumerable;const $=J(function(){return arguments}())?J:function(L){return(0,X.Z)(L)&&j.call(L,"callee")&&!G.call(L,"callee")}},43390:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>X});const X=Array.isArray},84929:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>rt});var s=o(20801),X=o(97358);const rt=function U(J){return null!=J&&(0,X.Z)(J.length)&&!(0,s.Z)(J)}},20995:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>rt});var s=o(84929),X=o(13343);const rt=function U(J){return(0,X.Z)(J)&&(0,s.Z)(J)}},72226:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>$});var s=o(39200);const U=function X(){return!1};var rt="object"==typeof exports&&exports&&!exports.nodeType&&exports,J=rt&&"object"==typeof module&&module&&!module.nodeType&&module,j=J&&J.exports===rt?s.Z.Buffer:void 0;const $=(j?j.isBuffer:void 0)||U},80256:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>lt});var s=o(85166),X=o(22439),U=o(3823),rt=o(43390),J=o(84929),r=o(72226),j=o(98939),G=o(2921),Y=Object.prototype.hasOwnProperty;const lt=function m(Lt){if(null==Lt)return!0;if((0,J.Z)(Lt)&&((0,rt.Z)(Lt)||"string"==typeof Lt||"function"==typeof Lt.splice||(0,r.Z)(Lt)||(0,G.Z)(Lt)||(0,U.Z)(Lt)))return!Lt.length;var Wt=(0,X.Z)(Lt);if("[object Map]"==Wt||"[object Set]"==Wt)return!Lt.size;if((0,j.Z)(Lt))return!(0,s.Z)(Lt).length;for(var q in Lt)if(Y.call(Lt,q))return!1;return!0}},20801:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>G});var s=o(45004),X=o(82293);const G=function j(A){if(!(0,X.Z)(A))return!1;var $=(0,s.Z)(A);return"[object Function]"==$||"[object GeneratorFunction]"==$||"[object AsyncFunction]"==$||"[object Proxy]"==$}},97358:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>U});const U=function X(rt){return"number"==typeof rt&&rt>-1&&rt%1==0&&rt<=9007199254740991}},82293:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>X});const X=function s(U){var rt=typeof U;return null!=U&&("object"==rt||"function"==rt)}},13343:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>X});const X=function s(U){return null!=U&&"object"==typeof U}},2921:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>De});var s=o(45004),X=o(97358),U=o(13343),mt={};mt["[object Float32Array]"]=mt["[object Float64Array]"]=mt["[object Int8Array]"]=mt["[object Int16Array]"]=mt["[object Int32Array]"]=mt["[object Uint8Array]"]=mt["[object Uint8ClampedArray]"]=mt["[object Uint16Array]"]=mt["[object Uint32Array]"]=!0,mt["[object Arguments]"]=mt["[object Array]"]=mt["[object ArrayBuffer]"]=mt["[object Boolean]"]=mt["[object DataView]"]=mt["[object Date]"]=mt["[object Error]"]=mt["[object Function]"]=mt["[object Map]"]=mt["[object Number]"]=mt["[object Object]"]=mt["[object RegExp]"]=mt["[object Set]"]=mt["[object String]"]=mt["[object WeakMap]"]=!1;const le=function yt(Mt){return(0,U.Z)(Mt)&&(0,X.Z)(Mt.length)&&!!mt[(0,s.Z)(Mt)]};var ie=o(33774),xe=o(1680),ce=xe.Z&&xe.Z.isTypedArray;const De=ce?(0,ie.Z)(ce):le},32888:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>Y});var s=o(51269),X=o(82293),U=o(98939);const J=function rt(m){var lt=[];if(null!=m)for(var Lt in Object(m))lt.push(Lt);return lt};var j=Object.prototype.hasOwnProperty;const A=function G(m){if(!(0,X.Z)(m))return J(m);var lt=(0,U.Z)(m),Lt=[];for(var Wt in m)"constructor"==Wt&&(lt||!j.call(m,Wt))||Lt.push(Wt);return Lt};var $=o(84929);const Y=function L(m){return(0,$.Z)(m)?(0,s.Z)(m,!0):A(m)}},85168:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>rt});var s=o(88536);function U(J,r){if("function"!=typeof J||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var j=function(){var G=arguments,A=r?r.apply(this,G):G[0],$=j.cache;if($.has(A))return $.get(A);var L=J.apply(this,G);return j.cache=$.set(A,L)||$,L};return j.cache=new(U.Cache||s.Z),j}U.Cache=s.Z;const rt=U},81232:(he,ut,o)=>{"use strict";o.d(ut,{Z:()=>qt});var s=o(16975),X=o(40355),U=o(66267);const J=function rt(Ht,ne,ke){(void 0!==ke&&!(0,U.Z)(Ht[ne],ke)||void 0===ke&&!(ne in Ht))&&(0,X.Z)(Ht,ne,ke)};var r=o(54690),j=o(863),G=o(21859),A=o(84936),$=o(17442),L=o(3823),Y=o(43390),m=o(20995),lt=o(72226),Lt=o(20801),Wt=o(82293),q=o(45004),Vt=o(44461),It=o(13343),we=Function.prototype,ve=Object.prototype,re=we.toString,fe=ve.hasOwnProperty,Me=re.call(Object);const Zt=function Re(Ht){if(!(0,It.Z)(Ht)||"[object Object]"!=(0,q.Z)(Ht))return!1;var ne=(0,Vt.Z)(Ht);if(null===ne)return!0;var ke=fe.call(ne,"constructor")&&ne.constructor;return"function"==typeof ke&&ke instanceof ke&&re.call(ke)==Me};var mt=o(2921);const le=function yt(Ht,ne){if(("constructor"!==ne||"function"!=typeof Ht[ne])&&"__proto__"!=ne)return Ht[ne]};var ie=o(14839),xe=o(32888);const Be=function ce(Ht){return(0,ie.Z)(Ht,(0,xe.Z)(Ht))};const Mt=function De(Ht,ne,ke,vt,et,dt,nt){var ht=le(Ht,ke),bt=le(ne,ke),V=nt.get(bt);if(V)J(Ht,ke,V);else{var kt=dt?dt(ht,bt,ke+"",Ht,ne,nt):void 0,Bt=void 0===kt;if(Bt){var Yt=(0,Y.Z)(bt),Gt=!Yt&&(0,lt.Z)(bt),Dt=!Yt&&!Gt&&(0,mt.Z)(bt);kt=bt,Yt||Gt||Dt?(0,Y.Z)(ht)?kt=ht:(0,m.Z)(ht)?kt=(0,A.Z)(ht):Gt?(Bt=!1,kt=(0,j.Z)(bt,!0)):Dt?(Bt=!1,kt=(0,G.Z)(bt,!0)):kt=[]:Zt(bt)||(0,L.Z)(bt)?(kt=ht,(0,L.Z)(ht)?kt=Be(ht):(!(0,Wt.Z)(ht)||(0,Lt.Z)(ht))&&(kt=(0,$.Z)(bt))):Bt=!1}Bt&&(nt.set(bt,kt),et(kt,bt,vt,dt,nt),nt.delete(bt)),J(Ht,ke,kt)}};const Et=function jt(Ht,ne,ke,vt,et){Ht!==ne&&(0,r.Z)(ne,function(dt,nt){if(et||(et=new s.Z),(0,Wt.Z)(dt))Mt(Ht,ne,nt,ke,jt,vt,et);else{var ht=vt?vt(le(Ht,nt),dt,nt+"",Ht,ne,et):void 0;void 0===ht&&(ht=dt),J(Ht,nt,ht)}},xe.Z)};const qt=(0,o(24540).Z)(function(Ht,ne,ke){Et(Ht,ne,ke)})}}]);