const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/c4Diagram-ae766693.5zq8lNRz.js","assets/chunks/svgDrawCommon-5e1cfd1d.DXs4f8DI.js","assets/chunks/framework.DuA-ZlS8.js","assets/chunks/theme.B-IrzYt-.js","assets/chunks/flowDiagram-b222e15a.u5AVV-hs.js","assets/chunks/flowDb-c1833063.DvoUJcPW.js","assets/chunks/graph.kiq1lfdl.js","assets/chunks/layout.CGyoqY46.js","assets/chunks/styles-483fbfea.B1aiHS7-.js","assets/chunks/index-01f381cb.C7DEWKJL.js","assets/chunks/clone.DbtYtBgG.js","assets/chunks/edges-066a5561.ShgFzVAi.js","assets/chunks/createText-ca0c5216.CfRbav5E.js","assets/chunks/line.DlbMY8Uz.js","assets/chunks/array.BKyUJesY.js","assets/chunks/path.CbwjOpE9.js","assets/chunks/channel.hie1L93G.js","assets/chunks/flowDiagram-v2-13329dc7.MzkKFBua.js","assets/chunks/erDiagram-09d1c15f.nt4RMebt.js","assets/chunks/gitGraphDiagram-942e62fe.GaTrgGNF.js","assets/chunks/ganttDiagram-b62c793e.BQh2Y5Mm.js","assets/chunks/linear.BTr81f4m.js","assets/chunks/init.Gi6I4Gst.js","assets/chunks/infoDiagram-94cd232f.Byd6bx68.js","assets/chunks/pieDiagram-bb1d19e5.9eN9eF6r.js","assets/chunks/arc.BiEVnM6A.js","assets/chunks/ordinal.BYWQX77i.js","assets/chunks/quadrantDiagram-c759a472.BFrW3TVd.js","assets/chunks/xychartDiagram-f11f50a6.BQRBy1gR.js","assets/chunks/requirementDiagram-87253d64.B_dpYInn.js","assets/chunks/sequenceDiagram-6894f283.BDxPgqzG.js","assets/chunks/classDiagram-fb54d2a0.CGyvIBWD.js","assets/chunks/styles-b83b31c9.BgHlo92g.js","assets/chunks/classDiagram-v2-a2b738ad.DvyIbOUG.js","assets/chunks/stateDiagram-5dee940d.pJ0bb-t8.js","assets/chunks/styles-0784dbeb.DdBtIV0i.js","assets/chunks/stateDiagram-v2-1992cada.D30HA3w4.js","assets/chunks/journeyDiagram-6625b456.Cvg1HNyV.js","assets/chunks/flowchart-elk-definition-ae0efee6.DUjLe62V.js","assets/chunks/timeline-definition-bf702344.DWbs1z0u.js","assets/chunks/mindmap-definition-307c710a.MlW9Txbw.js","assets/chunks/sankeyDiagram-707fac0f.DFwNRdvL.js","assets/chunks/Tableau10.B-NsZVaP.js","assets/chunks/blockDiagram-9f4a6865.BtyFvzAC.js"])))=>i.map(i=>d[i]); import{X as K,s as Lo,u as Ua,a6 as kc,y as Ya,z as Sc,o as wc,c as Bc,n as Ac,U as nn,a7 as Lc,a8 as Fc,a9 as Ec,aa as Oc,ab as Mc,ac as Ic,ad as $c,ae as Dc,af as Nc,ag as Rc,d as Pc,x as qc,ah as zc,ai as Wc,aj as Hc,ak as jc}from"./chunks/framework.DuA-ZlS8.js";import{R as Uc}from"./chunks/theme.B-IrzYt-.js";function Yc(t){for(var e=[],i=1;i=T?M:""+Array(T+1-w.length).join(y)+M},N={s:U,z:function(M){var T=-M.utcOffset(),y=Math.abs(T),w=Math.floor(y/60),x=y%60;return(T<=0?"+":"-")+U(w,2,"0")+":"+U(x,2,"0")},m:function M(T,y){if(T.date()1)return M(D[0])}else{var $=T.name;G[$]=T,x=$}return!w&&x&&(j=x),x||!w&&j},Z=function(M,T){if(Jt(M))return M.clone();var y=typeof T=="object"?T:{};return y.date=M,y.args=arguments,new wt(y)},R=N;R.l=Qt,R.i=Jt,R.w=function(M,T){return Z(M,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var wt=function(){function M(y){this.$L=Qt(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[H]=!0}var T=M.prototype;return T.parse=function(y){this.$d=function(w){var x=w.date,F=w.utc;if(x===null)return new Date(NaN);if(R.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var D=x.match(k);if(D){var $=D[2]-1||0,X=(D[7]||"0").substring(0,3);return F?new Date(Date.UTC(D[1],$,D[3]||1,D[4]||0,D[5]||0,D[6]||0,X)):new Date(D[1],$,D[3]||1,D[4]||0,D[5]||0,D[6]||0,X)}}return new Date(x)}(y),this.init()},T.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},T.$utils=function(){return R},T.isValid=function(){return this.$d.toString()!==b},T.isSame=function(y,w){var x=Z(y);return this.startOf(w)<=x&&x<=this.endOf(w)},T.isAfter=function(y,w){return Z(y)-1}function l(u){var f=u.replace(n,"");return f.replace(i,function(h,p){return String.fromCharCode(p)})}function c(u){if(!u)return t.BLANK_URL;var f=l(u).replace(r,"").replace(n,"").trim();if(!f)return t.BLANK_URL;if(s(f))return f;var h=f.match(o);if(!h)return f;var p=h[0];return e.test(p)?t.BLANK_URL:f}t.sanitizeUrl=c})(Ga);var Zc={value:()=>{}};function Xa(){for(var t=0,e=arguments.length,i={},r;t=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}Pi.prototype=Xa.prototype={constructor:Pi,on:function(t,e){var i=this._,r=Jc(t+"",i),n,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var i=new Array(n),r=0,n,o;r=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Eo.hasOwnProperty(e)?{space:Eo[e],local:t}:t}function th(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===on&&e.documentElement.namespaceURI===on?e.createElement(t):e.createElementNS(i,t)}}function eh(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ka(t){var e=mr(t);return(e.local?eh:th)(e)}function ih(){}function Bn(t){return t==null?ih:function(){return this.querySelector(t)}}function rh(t){typeof t!="function"&&(t=Bn(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n=U&&(U=v+1);!(j=k[U])&&++U=0;)(a=r[n])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Ah(t){t||(t=Lh);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var i=this._groups,r=i.length,n=new Array(r),o=0;oe?1:t>=e?0:NaN}function Fh(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Eh(){return Array.from(this)}function Oh(){for(var t=this._groups,e=0,i=t.length;e1?this.each((e==null?Hh:typeof e=="function"?Uh:jh)(t,e,i??"")):Ie(this.node(),t)}function Ie(t,e){return t.style.getPropertyValue(e)||es(t).getComputedStyle(t,null).getPropertyValue(e)}function Vh(t){return function(){delete this[t]}}function Gh(t,e){return function(){this[t]=e}}function Xh(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Kh(t,e){return arguments.length>1?this.each((e==null?Vh:typeof e=="function"?Xh:Gh)(t,e)):this.node()[t]}function is(t){return t.trim().split(/^|\s+/)}function An(t){return t.classList||new rs(t)}function rs(t){this._node=t,this._names=is(t.getAttribute("class")||"")}rs.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ns(t,e){for(var i=An(t),r=-1,n=e.length;++r=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function ku(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Oi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Oi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Mu.exec(t))?new gt(e[1],e[2],e[3],1):(e=Iu.exec(t))?new gt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=$u.exec(t))?Oi(e[1],e[2],e[3],e[4]):(e=Du.exec(t))?Oi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Nu.exec(t))?Ro(e[1],e[2]/100,e[3]/100,1):(e=Ru.exec(t))?Ro(e[1],e[2]/100,e[3]/100,e[4]):Oo.hasOwnProperty(t)?$o(Oo[t]):t==="transparent"?new gt(NaN,NaN,NaN,0):null}function $o(t){return new gt(t>>16&255,t>>8&255,t&255,1)}function Oi(t,e,i,r){return r<=0&&(t=e=i=NaN),new gt(t,e,i,r)}function zu(t){return t instanceof Ti||(t=di(t)),t?(t=t.rgb(),new gt(t.r,t.g,t.b,t.opacity)):new gt}function an(t,e,i,r){return arguments.length===1?zu(t):new gt(t,e,i,r??1)}function gt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Ln(gt,an,ls(Ti,{brighter(t){return t=t==null?Xi:Math.pow(Xi,t),new gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ui:Math.pow(ui,t),new gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new gt(pe(this.r),pe(this.g),pe(this.b),Ki(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Do,formatHex:Do,formatHex8:Wu,formatRgb:No,toString:No}));function Do(){return`#${fe(this.r)}${fe(this.g)}${fe(this.b)}`}function Wu(){return`#${fe(this.r)}${fe(this.g)}${fe(this.b)}${fe((isNaN(this.opacity)?1:this.opacity)*255)}`}function No(){const t=Ki(this.opacity);return`${t===1?"rgb(":"rgba("}${pe(this.r)}, ${pe(this.g)}, ${pe(this.b)}${t===1?")":`, ${t})`}`}function Ki(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function pe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function fe(t){return t=pe(t),(t<16?"0":"")+t.toString(16)}function Ro(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Et(t,e,i,r)}function cs(t){if(t instanceof Et)return new Et(t.h,t.s,t.l,t.opacity);if(t instanceof Ti||(t=di(t)),!t)return new Et;if(t instanceof Et)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),a=NaN,s=o-n,l=(o+n)/2;return s?(e===o?a=(i-r)/s+(i0&&l<1?0:a,new Et(a,s,l,t.opacity)}function Hu(t,e,i,r){return arguments.length===1?cs(t):new Et(t,e,i,r??1)}function Et(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Ln(Et,Hu,ls(Ti,{brighter(t){return t=t==null?Xi:Math.pow(Xi,t),new Et(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ui:Math.pow(ui,t),new Et(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new gt(zr(t>=240?t-240:t+120,n,r),zr(t,n,r),zr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new Et(Po(this.h),Mi(this.s),Mi(this.l),Ki(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ki(this.opacity);return`${t===1?"hsl(":"hsla("}${Po(this.h)}, ${Mi(this.s)*100}%, ${Mi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Po(t){return t=(t||0)%360,t<0?t+360:t}function Mi(t){return Math.max(0,Math.min(1,t||0))}function zr(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Fn=t=>()=>t;function hs(t,e){return function(i){return t+i*e}}function ju(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function n1(t,e){var i=e-t;return i?hs(t,i>180||i<-180?i-360*Math.round(i/360):i):Fn(isNaN(t)?e:t)}function Uu(t){return(t=+t)==1?us:function(e,i){return i-e?ju(e,i,t):Fn(isNaN(e)?i:e)}}function us(t,e){var i=e-t;return i?hs(t,i):Fn(isNaN(t)?e:t)}const qo=function t(e){var i=Uu(e);function r(n,o){var a=i((n=an(n)).r,(o=an(o)).r),s=i(n.g,o.g),l=i(n.b,o.b),c=us(n.opacity,o.opacity);return function(u){return n.r=a(u),n.g=s(u),n.b=l(u),n.opacity=c(u),n+""}}return r.gamma=t,r}(1);function ne(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var sn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wr=new RegExp(sn.source,"g");function Yu(t){return function(){return t}}function Vu(t){return function(e){return t(e)+""}}function Gu(t,e){var i=sn.lastIndex=Wr.lastIndex=0,r,n,o,a=-1,s=[],l=[];for(t=t+"",e=e+"";(r=sn.exec(t))&&(n=Wr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,l.push({i:a,x:ne(r,n)})),i=Wr.lastIndex;return i180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(n(f)+"rotate(",null,r)-2,x:ne(c,u)})):u&&f.push(n(f)+"rotate("+u+r)}function s(c,u,f,h){c!==u?h.push({i:f.push(n(f)+"skewX(",null,r)-2,x:ne(c,u)}):u&&f.push(n(f)+"skewX("+u+r)}function l(c,u,f,h,p,m){if(c!==f||u!==h){var b=p.push(n(p)+"scale(",null,",",null,")");m.push({i:b-4,x:ne(c,f)},{i:b-2,x:ne(u,h)})}else(f!==1||h!==1)&&p.push(n(p)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=t(c),u=t(u),o(c.translateX,c.translateY,u.translateX,u.translateY,f,h),a(c.rotate,u.rotate,f,h),s(c.skewX,u.skewX,f,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(p){for(var m=-1,b=h.length,k;++m=0&&t._call.call(void 0,e),t=t._next;--$e}function Wo(){_e=(Ji=pi.now())+_r,$e=ei=0;try{tf()}finally{$e=0,rf(),_e=0}}function ef(){var t=pi.now(),e=t-Ji;e>ps&&(_r-=e,Ji=t)}function rf(){for(var t,e=Zi,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:Zi=i);ii=t,cn(r)}function cn(t){if(!$e){ei&&(ei=clearTimeout(ei));var e=t-_e;e>24?(t<1/0&&(ei=setTimeout(Wo,t-pi.now()-_r)),Ge&&(Ge=clearInterval(Ge))):(Ge||(Ji=pi.now(),Ge=setInterval(ef,ps)),$e=1,gs(Wo))}}function Ho(t,e,i){var r=new Qi;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var nf=Xa("start","end","cancel","interrupt"),of=[],_s=0,jo=1,hn=2,qi=3,Uo=4,un=5,zi=6;function yr(t,e,i,r,n,o){var a=t.__transition;if(!a)t.__transition={};else if(i in a)return;af(t,i,{name:e,index:r,group:n,on:nf,tween:of,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:_s})}function On(t,e){var i=Mt(t,e);if(i.state>_s)throw new Error("too late; already scheduled");return i}function qt(t,e){var i=Mt(t,e);if(i.state>qi)throw new Error("too late; already running");return i}function Mt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function af(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=ms(o,0,i.time);function o(c){i.state=jo,i.timer.restart(a,i.delay,i.time),i.delay<=c&&a(c-i.delay)}function a(c){var u,f,h,p;if(i.state!==jo)return l();for(u in r)if(p=r[u],p.name===i.name){if(p.state===qi)return Ho(a);p.state===Uo?(p.state=zi,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[u]):+uhn&&r.state=0&&(e=e.slice(0,i)),!e||e==="start"})}function Nf(t,e,i){var r,n,o=Df(e)?On:qt;return function(){var a=o(this,t),s=a.on;s!==r&&(n=(r=s).copy()).on(e,i),a.on=n}}function Rf(t,e){var i=this._id;return arguments.length<2?Mt(this.node(),i).on.on(t):this.each(Nf(i,t,e))}function Pf(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function qf(){return this.on("end.remove",Pf(this._id))}function zf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Bn(t));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a1?0:t<-1?In:Math.acos(t)}function p1(t){return t>=1?Vo:t<=-1?-Vo:Math.asin(t)}function bs(t){this._context=t}bs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function fd(t){return new bs(t)}class Ts{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function dd(t){return new Ts(t,!0)}function pd(t){return new Ts(t,!1)}function ae(){}function tr(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Cr(t){this._context=t}Cr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:tr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function gd(t){return new Cr(t)}function vs(t){this._context=t}vs.prototype={areaStart:ae,areaEnd:ae,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:tr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function md(t){return new vs(t)}function ks(t){this._context=t}ks.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:tr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function _d(t){return new ks(t)}function Ss(t,e){this._basis=new Cr(t),this._beta=e}Ss.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,a=e[i]-n,s=-1,l;++s<=i;)l=s/i,this._basis.point(this._beta*t[s]+(1-this._beta)*(r+l*o),this._beta*e[s]+(1-this._beta)*(n+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const yd=function t(e){function i(r){return e===1?new Cr(r):new Ss(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function er(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function $n(t,e){this._context=t,this._k=(1-e)/6}$n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:er(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:er(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Cd=function t(e){function i(r){return new $n(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Dn(t,e){this._context=t,this._k=(1-e)/6}Dn.prototype={areaStart:ae,areaEnd:ae,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:er(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const xd=function t(e){function i(r){return new Dn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Nn(t,e){this._context=t,this._k=(1-e)/6}Nn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:er(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const bd=function t(e){function i(r){return new Nn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Rn(t,e,i){var r=t._x1,n=t._y1,o=t._x2,a=t._y2;if(t._l01_a>Yo){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Yo){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*c+t._y1*t._l23_2a-i*t._l12_2a)/u}t._context.bezierCurveTo(r,n,o,a,t._x2,t._y2)}function ws(t,e){this._context=t,this._alpha=e}ws.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Rn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Td=function t(e){function i(r){return e?new ws(r,e):new $n(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Bs(t,e){this._context=t,this._alpha=e}Bs.prototype={areaStart:ae,areaEnd:ae,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Rn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const vd=function t(e){function i(r){return e?new Bs(r,e):new Dn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function As(t,e){this._context=t,this._alpha=e}As.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const kd=function t(e){function i(r){return e?new As(r,e):new Nn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Ls(t){this._context=t}Ls.prototype={areaStart:ae,areaEnd:ae,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Sd(t){return new Ls(t)}function Go(t){return t<0?-1:1}function Xo(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),a=(i-t._y1)/(n||r<0&&-0),s=(o*n+a*r)/(r+n);return(Go(o)+Go(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Ko(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Hr(t,e,i){var r=t._x0,n=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,n+s*e,o-s,a-s*i,o,a)}function ir(t){this._context=t}ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Hr(this,this._t0,Ko(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Hr(this,Ko(this,i=Xo(this,t,e)),i);break;default:Hr(this,this._t0,i=Xo(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function Fs(t){this._context=new Es(t)}(Fs.prototype=Object.create(ir.prototype)).point=function(t,e){ir.prototype.point.call(this,e,t)};function Es(t){this._context=t}Es.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function wd(t){return new ir(t)}function Bd(t){return new Fs(t)}function Os(t){this._context=t}Os.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=Zo(t),n=Zo(e),o=0,a=1;a=0;--e)n[e]=(a[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function Ld(t){return new xr(t,.5)}function Fd(t){return new xr(t,0)}function Ed(t){return new xr(t,1)}function ri(t,e,i){this.k=t,this.x=e,this.y=i}ri.prototype={constructor:ri,scale:function(t){return t===1?this:new ri(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ri(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ri.prototype;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Ms,setPrototypeOf:Jo,isFrozen:Od,getPrototypeOf:Md,getOwnPropertyDescriptor:Id}=Object;let{freeze:ft,seal:kt,create:Is}=Object,{apply:fn,construct:dn}=typeof Reflect<"u"&&Reflect;ft||(ft=function(e){return e});kt||(kt=function(e){return e});fn||(fn=function(e,i,r){return e.apply(i,r)});dn||(dn=function(e,i){return new e(...i)});const $i=Ct(Array.prototype.forEach),Qo=Ct(Array.prototype.pop),Xe=Ct(Array.prototype.push),Wi=Ct(String.prototype.toLowerCase),jr=Ct(String.prototype.toString),ta=Ct(String.prototype.match),Ke=Ct(String.prototype.replace),$d=Ct(String.prototype.indexOf),Dd=Ct(String.prototype.trim),Ft=Ct(Object.prototype.hasOwnProperty),ct=Ct(RegExp.prototype.test),Ze=Nd(TypeError);function Ct(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:Wi;Jo&&Jo(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(Od(e)||(e[r]=o),n=o)}t[n]=!0}return t}function Rd(t){for(let e=0;e/gm),Hd=kt(/\${[\w\W]*}/gm),jd=kt(/^data-[\-\w.\u00B7-\uFFFF]/),Ud=kt(/^aria-[\-\w]+$/),$s=kt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yd=kt(/^(?:\w+script|data):/i),Vd=kt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ds=kt(/^html$/i),Gd=kt(/^[a-z][.\w]*(-[.\w]+)+$/i);var oa=Object.freeze({__proto__:null,MUSTACHE_EXPR:zd,ERB_EXPR:Wd,TMPLIT_EXPR:Hd,DATA_ATTR:jd,ARIA_ATTR:Ud,IS_ALLOWED_URI:$s,IS_SCRIPT_OR_DATA:Yd,ATTR_WHITESPACE:Vd,DOCTYPE_NAME:Ds,CUSTOM_ELEMENT:Gd});const Qe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Xd=function(){return typeof window>"u"?null:window},Kd=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Ns(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xd();const e=B=>Ns(B);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==Qe.document)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:p}=t,m=l.prototype,b=Je(m,"cloneNode"),k=Je(m,"remove"),P=Je(m,"nextSibling"),v=Je(m,"childNodes"),U=Je(m,"parentNode");if(typeof a=="function"){const B=i.createElement("template");B.content&&B.content.ownerDocument&&(i=B.content.ownerDocument)}let N,j="";const{implementation:G,createNodeIterator:H,createDocumentFragment:Jt,getElementsByTagName:Qt}=i,{importNode:Z}=r;let R={};e.isSupported=typeof Ms=="function"&&typeof U=="function"&&G&&G.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:wt,ERB_EXPR:te,TMPLIT_EXPR:M,DATA_ATTR:T,ARIA_ATTR:y,IS_SCRIPT_OR_DATA:w,ATTR_WHITESPACE:x,CUSTOM_ELEMENT:F}=oa;let{IS_ALLOWED_URI:D}=oa,$=null;const X=z({},[...ea,...Ur,...Yr,...Vr,...ia]);let q=null;const tt=z({},[...ra,...Gr,...na,...Di]);let W=Object.seal(Is(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}})),xt=null,Bt=null,ee=!0,At=!0,it=!1,Lt=!0,bt=!1,ie=!0,ce=!1,Ir=!1,$r=!1,ve=!1,Bi=!1,Ai=!1,so=!0,lo=!1;const mc="user-content-";let Dr=!0,Ue=!1,ke={},Se=null;const co=z({},["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 ho=null;const uo=z({},["audio","video","img","source","image","track"]);let Nr=null;const fo=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Li="http://www.w3.org/1998/Math/MathML",Fi="http://www.w3.org/2000/svg",Wt="http://www.w3.org/1999/xhtml";let we=Wt,Rr=!1,Pr=null;const _c=z({},[Li,Fi,Wt],jr);let Ye=null;const yc=["application/xhtml+xml","text/html"],Cc="text/html";let et=null,Be=null;const xc=i.createElement("form"),po=function(d){return d instanceof RegExp||d instanceof Function},qr=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Be&&Be===d)){if((!d||typeof d!="object")&&(d={}),d=he(d),Ye=yc.indexOf(d.PARSER_MEDIA_TYPE)===-1?Cc:d.PARSER_MEDIA_TYPE,et=Ye==="application/xhtml+xml"?jr:Wi,$=Ft(d,"ALLOWED_TAGS")?z({},d.ALLOWED_TAGS,et):X,q=Ft(d,"ALLOWED_ATTR")?z({},d.ALLOWED_ATTR,et):tt,Pr=Ft(d,"ALLOWED_NAMESPACES")?z({},d.ALLOWED_NAMESPACES,jr):_c,Nr=Ft(d,"ADD_URI_SAFE_ATTR")?z(he(fo),d.ADD_URI_SAFE_ATTR,et):fo,ho=Ft(d,"ADD_DATA_URI_TAGS")?z(he(uo),d.ADD_DATA_URI_TAGS,et):uo,Se=Ft(d,"FORBID_CONTENTS")?z({},d.FORBID_CONTENTS,et):co,xt=Ft(d,"FORBID_TAGS")?z({},d.FORBID_TAGS,et):{},Bt=Ft(d,"FORBID_ATTR")?z({},d.FORBID_ATTR,et):{},ke=Ft(d,"USE_PROFILES")?d.USE_PROFILES:!1,ee=d.ALLOW_ARIA_ATTR!==!1,At=d.ALLOW_DATA_ATTR!==!1,it=d.ALLOW_UNKNOWN_PROTOCOLS||!1,Lt=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,bt=d.SAFE_FOR_TEMPLATES||!1,ie=d.SAFE_FOR_XML!==!1,ce=d.WHOLE_DOCUMENT||!1,ve=d.RETURN_DOM||!1,Bi=d.RETURN_DOM_FRAGMENT||!1,Ai=d.RETURN_TRUSTED_TYPE||!1,$r=d.FORCE_BODY||!1,so=d.SANITIZE_DOM!==!1,lo=d.SANITIZE_NAMED_PROPS||!1,Dr=d.KEEP_CONTENT!==!1,Ue=d.IN_PLACE||!1,D=d.ALLOWED_URI_REGEXP||$s,we=d.NAMESPACE||Wt,W=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&po(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&po(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),bt&&(At=!1),Bi&&(ve=!0),ke&&($=z({},ia),q=[],ke.html===!0&&(z($,ea),z(q,ra)),ke.svg===!0&&(z($,Ur),z(q,Gr),z(q,Di)),ke.svgFilters===!0&&(z($,Yr),z(q,Gr),z(q,Di)),ke.mathMl===!0&&(z($,Vr),z(q,na),z(q,Di))),d.ADD_TAGS&&($===X&&($=he($)),z($,d.ADD_TAGS,et)),d.ADD_ATTR&&(q===tt&&(q=he(q)),z(q,d.ADD_ATTR,et)),d.ADD_URI_SAFE_ATTR&&z(Nr,d.ADD_URI_SAFE_ATTR,et),d.FORBID_CONTENTS&&(Se===co&&(Se=he(Se)),z(Se,d.FORBID_CONTENTS,et)),Dr&&($["#text"]=!0),ce&&z($,["html","head","body"]),$.table&&(z($,["tbody"]),delete xt.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ze('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ze('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=d.TRUSTED_TYPES_POLICY,j=N.createHTML("")}else N===void 0&&(N=Kd(p,n)),N!==null&&typeof j=="string"&&(j=N.createHTML(""));ft&&ft(d),Be=d}},go=z({},["mi","mo","mn","ms","mtext"]),mo=z({},["foreignobject","annotation-xml"]),bc=z({},["title","style","font","a","script"]),_o=z({},[...Ur,...Yr,...Pd]),yo=z({},[...Vr,...qd]),Tc=function(d){let _=U(d);(!_||!_.tagName)&&(_={namespaceURI:we,tagName:"template"});const S=Wi(d.tagName),Y=Wi(_.tagName);return Pr[d.namespaceURI]?d.namespaceURI===Fi?_.namespaceURI===Wt?S==="svg":_.namespaceURI===Li?S==="svg"&&(Y==="annotation-xml"||go[Y]):!!_o[S]:d.namespaceURI===Li?_.namespaceURI===Wt?S==="math":_.namespaceURI===Fi?S==="math"&&mo[Y]:!!yo[S]:d.namespaceURI===Wt?_.namespaceURI===Fi&&!mo[Y]||_.namespaceURI===Li&&!go[Y]?!1:!yo[S]&&(bc[S]||!_o[S]):!!(Ye==="application/xhtml+xml"&&Pr[d.namespaceURI]):!1},It=function(d){Xe(e.removed,{element:d});try{U(d).removeChild(d)}catch{k(d)}},Ei=function(d,_){try{Xe(e.removed,{attribute:_.getAttributeNode(d),from:_})}catch{Xe(e.removed,{attribute:null,from:_})}if(_.removeAttribute(d),d==="is"&&!q[d])if(ve||Bi)try{It(_)}catch{}else try{_.setAttribute(d,"")}catch{}},Co=function(d){let _=null,S=null;if($r)d=""+d;else{const rt=ta(d,/^[\r\n\t ]+/);S=rt&&rt[0]}Ye==="application/xhtml+xml"&&we===Wt&&(d=''+d+"");const Y=N?N.createHTML(d):d;if(we===Wt)try{_=new h().parseFromString(Y,Ye)}catch{}if(!_||!_.documentElement){_=G.createDocument(we,"template",null);try{_.documentElement.innerHTML=Rr?j:Y}catch{}}const nt=_.body||_.documentElement;return d&&S&&nt.insertBefore(i.createTextNode(S),nt.childNodes[0]||null),we===Wt?Qt.call(_,ce?"html":"body")[0]:ce?_.documentElement:nt},xo=function(d){return H.call(d.ownerDocument||d,d,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},bo=function(d){return d instanceof f&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof u)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},To=function(d){return typeof s=="function"&&d instanceof s},Ht=function(d,_,S){R[d]&&$i(R[d],Y=>{Y.call(e,_,S,Be)})},vo=function(d){let _=null;if(Ht("beforeSanitizeElements",d,null),bo(d))return It(d),!0;const S=et(d.nodeName);if(Ht("uponSanitizeElement",d,{tagName:S,allowedTags:$}),d.hasChildNodes()&&!To(d.firstElementChild)&&ct(/<[/\w]/g,d.innerHTML)&&ct(/<[/\w]/g,d.textContent)||d.nodeType===Qe.progressingInstruction||ie&&d.nodeType===Qe.comment&&ct(/<[/\w]/g,d.data))return It(d),!0;if(!$[S]||xt[S]){if(!xt[S]&&So(S)&&(W.tagNameCheck instanceof RegExp&&ct(W.tagNameCheck,S)||W.tagNameCheck instanceof Function&&W.tagNameCheck(S)))return!1;if(Dr&&!Se[S]){const Y=U(d)||d.parentNode,nt=v(d)||d.childNodes;if(nt&&Y){const rt=nt.length;for(let dt=rt-1;dt>=0;--dt){const $t=b(nt[dt],!0);$t.__removalCount=(d.__removalCount||0)+1,Y.insertBefore($t,P(d))}}}return It(d),!0}return d instanceof l&&!Tc(d)||(S==="noscript"||S==="noembed"||S==="noframes")&&ct(/<\/no(script|embed|frames)/i,d.innerHTML)?(It(d),!0):(bt&&d.nodeType===Qe.text&&(_=d.textContent,$i([wt,te,M],Y=>{_=Ke(_,Y," ")}),d.textContent!==_&&(Xe(e.removed,{element:d.cloneNode()}),d.textContent=_)),Ht("afterSanitizeElements",d,null),!1)},ko=function(d,_,S){if(so&&(_==="id"||_==="name")&&(S in i||S in xc))return!1;if(!(At&&!Bt[_]&&ct(T,_))){if(!(ee&&ct(y,_))){if(!q[_]||Bt[_]){if(!(So(d)&&(W.tagNameCheck instanceof RegExp&&ct(W.tagNameCheck,d)||W.tagNameCheck instanceof Function&&W.tagNameCheck(d))&&(W.attributeNameCheck instanceof RegExp&&ct(W.attributeNameCheck,_)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(_))||_==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&ct(W.tagNameCheck,S)||W.tagNameCheck instanceof Function&&W.tagNameCheck(S))))return!1}else if(!Nr[_]){if(!ct(D,Ke(S,x,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&d!=="script"&&$d(S,"data:")===0&&ho[d])){if(!(it&&!ct(w,Ke(S,x,"")))){if(S)return!1}}}}}}return!0},So=function(d){return d!=="annotation-xml"&&ta(d,F)},wo=function(d){Ht("beforeSanitizeAttributes",d,null);const{attributes:_}=d;if(!_)return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};let Y=_.length;for(;Y--;){const nt=_[Y],{name:rt,namespaceURI:dt,value:$t}=nt,Ve=et(rt);let lt=rt==="value"?$t:Dd($t);if(S.attrName=Ve,S.attrValue=lt,S.keepAttr=!0,S.forceKeepAttr=void 0,Ht("uponSanitizeAttribute",d,S),lt=S.attrValue,ie&&ct(/((--!?|])>)|<\/(style|title)/i,lt)){Ei(rt,d);continue}if(S.forceKeepAttr||(Ei(rt,d),!S.keepAttr))continue;if(!Lt&&ct(/\/>/i,lt)){Ei(rt,d);continue}bt&&$i([wt,te,M],Ao=>{lt=Ke(lt,Ao," ")});const Bo=et(d.nodeName);if(ko(Bo,Ve,lt)){if(lo&&(Ve==="id"||Ve==="name")&&(Ei(rt,d),lt=mc+lt),N&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!dt)switch(p.getAttributeType(Bo,Ve)){case"TrustedHTML":{lt=N.createHTML(lt);break}case"TrustedScriptURL":{lt=N.createScriptURL(lt);break}}try{dt?d.setAttributeNS(dt,rt,lt):d.setAttribute(rt,lt),bo(d)?It(d):Qo(e.removed)}catch{}}}Ht("afterSanitizeAttributes",d,null)},vc=function B(d){let _=null;const S=xo(d);for(Ht("beforeSanitizeShadowDOM",d,null);_=S.nextNode();)Ht("uponSanitizeShadowNode",_,null),!vo(_)&&(_.content instanceof o&&B(_.content),wo(_));Ht("afterSanitizeShadowDOM",d,null)};return e.sanitize=function(B){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,S=null,Y=null,nt=null;if(Rr=!B,Rr&&(B=""),typeof B!="string"&&!To(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw Ze("dirty is not a string, aborting")}else throw Ze("toString is not a function");if(!e.isSupported)return B;if(Ir||qr(d),e.removed=[],typeof B=="string"&&(Ue=!1),Ue){if(B.nodeName){const $t=et(B.nodeName);if(!$[$t]||xt[$t])throw Ze("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof s)_=Co(""),S=_.ownerDocument.importNode(B,!0),S.nodeType===Qe.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?_=S:_.appendChild(S);else{if(!ve&&!bt&&!ce&&B.indexOf("<")===-1)return N&&Ai?N.createHTML(B):B;if(_=Co(B),!_)return ve?null:Ai?j:""}_&&$r&&It(_.firstChild);const rt=xo(Ue?B:_);for(;Y=rt.nextNode();)vo(Y)||(Y.content instanceof o&&vc(Y.content),wo(Y));if(Ue)return B;if(ve){if(Bi)for(nt=Jt.call(_.ownerDocument);_.firstChild;)nt.appendChild(_.firstChild);else nt=_;return(q.shadowroot||q.shadowrootmode)&&(nt=Z.call(r,nt,!0)),nt}let dt=ce?_.outerHTML:_.innerHTML;return ce&&$["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&ct(Ds,_.ownerDocument.doctype.name)&&(dt=" `+dt),bt&&$i([wt,te,M],$t=>{dt=Ke(dt,$t," ")}),N&&Ai?N.createHTML(dt):dt},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qr(B),Ir=!0},e.clearConfig=function(){Be=null,Ir=!1},e.isValidAttribute=function(B,d,_){Be||qr({});const S=et(B),Y=et(d);return ko(S,Y,_)},e.addHook=function(B,d){typeof d=="function"&&(R[B]=R[B]||[],Xe(R[B],d))},e.removeHook=function(B){if(R[B])return Qo(R[B])},e.removeHooks=function(B){R[B]&&(R[B]=[])},e.removeAllHooks=function(){R={}},e}var De=Ns();const Hi={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return Hi.hue2rgb(o,n,t+1/3)*255;case"g":return Hi.hue2rgb(o,n,t)*255;case"b":return Hi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),a=(n+o)/2;if(r==="l")return a*100;if(n===o)return 0;const s=n-o,l=a>.5?s/(2-n-o):s/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/s+(ee>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Jd={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},I={channel:Hi,lang:Zd,unit:Jd},re={};for(let t=0;t<=255;t++)re[t]=I.unit.dec2hex(t);const ot={ALL:0,RGB:1,HSL:2};class Qd{constructor(){this.type=ot.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ot.ALL}is(e){return this.type===e}}class tp{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new Qd}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=ot.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=I.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=I.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=I.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=I.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=I.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=I.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ot.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ot.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ot.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ot.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ot.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ot.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const br=new tp({r:0,g:0,b:0,a:0},"transparent"),Oe={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Oe.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,a=n>4,s=a?1:17,l=a?8:4,c=o?0:-1,u=a?255:15;return br.set({r:(r>>l*(c+3)&u)*s,g:(r>>l*(c+2)&u)*s,b:(r>>l*(c+1)&u)*s,a:o?(r&u)*s/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${re[Math.round(e)]}${re[Math.round(i)]}${re[Math.round(r)]}${re[Math.round(n*255)]}`:`#${re[Math.round(e)]}${re[Math.round(i)]}${re[Math.round(r)]}`}},de={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:t=>{const e=t.match(de.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return I.channel.clamp.h(parseFloat(i)*.9);case"rad":return I.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return I.channel.clamp.h(parseFloat(i)*360)}}return I.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(de.re);if(!i)return;const[,r,n,o,a,s]=i;return br.set({h:de._hue2deg(r),s:I.channel.clamp.s(parseFloat(n)),l:I.channel.clamp.l(parseFloat(o)),a:a?I.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${I.lang.round(e)}, ${I.lang.round(i)}%, ${I.lang.round(r)}%, ${n})`:`hsl(${I.lang.round(e)}, ${I.lang.round(i)}%, ${I.lang.round(r)}%)`}},oi={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:t=>{t=t.toLowerCase();const e=oi.colors[t];if(e)return Oe.parse(e)},stringify:t=>{const e=Oe.stringify(t);for(const i in oi.colors)if(oi.colors[i]===e)return i}},ni={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:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(ni.re);if(!i)return;const[,r,n,o,a,s,l,c,u]=i;return br.set({r:I.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:I.channel.clamp.g(a?parseFloat(o)*2.55:parseFloat(o)),b:I.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?I.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${I.lang.round(e)}, ${I.lang.round(i)}, ${I.lang.round(r)}, ${I.lang.round(n)})`:`rgb(${I.lang.round(e)}, ${I.lang.round(i)}, ${I.lang.round(r)})`}},Rt={format:{keyword:oi,hex:Oe,rgb:ni,rgba:ni,hsl:de,hsla:de},parse:t=>{if(typeof t!="string")return t;const e=Oe.parse(t)||ni.parse(t)||de.parse(t)||oi.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ot.HSL)||t.data.r===void 0?de.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?ni.stringify(t):Oe.stringify(t)},Rs=(t,e)=>{const i=Rt.parse(t);for(const r in e)i[r]=I.channel.clamp[r](e[r]);return Rt.stringify(i)},ai=(t,e,i=0,r=1)=>{if(typeof t!="number")return Rs(t,{a:e});const n=br.set({r:I.channel.clamp.r(t),g:I.channel.clamp.g(e),b:I.channel.clamp.b(i),a:I.channel.clamp.a(r)});return Rt.stringify(n)},ep=t=>{const{r:e,g:i,b:r}=Rt.parse(t),n=.2126*I.channel.toLinear(e)+.7152*I.channel.toLinear(i)+.0722*I.channel.toLinear(r);return I.lang.round(n)},ip=t=>ep(t)>=.5,vi=t=>!ip(t),Ps=(t,e,i)=>{const r=Rt.parse(t),n=r[e],o=I.channel.clamp[e](n+i);return n!==o&&(r[e]=o),Rt.stringify(r)},A=(t,e)=>Ps(t,"l",e),O=(t,e)=>Ps(t,"l",-e),g=(t,e)=>{const i=Rt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return Rs(t,r)},rp=(t,e,i=50)=>{const{r,g:n,b:o,a}=Rt.parse(t),{r:s,g:l,b:c,a:u}=Rt.parse(e),f=i/100,h=f*2-1,p=a-u,b=((h*p===-1?h:(h+p)/(1+h*p))+1)/2,k=1-b,P=r*b+s*k,v=n*b+l*k,U=o*b+c*k,N=a*f+u*(1-f);return ai(P,v,U,N)},C=(t,e=100)=>{const i=Rt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,rp(i,t,e)};var qs=typeof global=="object"&&global&&global.Object===Object&&global,np=typeof self=="object"&&self&&self.Object===Object&&self,zt=qs||np||Function("return this")(),rr=zt.Symbol,zs=Object.prototype,op=zs.hasOwnProperty,ap=zs.toString,ti=rr?rr.toStringTag:void 0;function sp(t){var e=op.call(t,ti),i=t[ti];try{t[ti]=void 0;var r=!0}catch{}var n=ap.call(t);return r&&(e?t[ti]=i:delete t[ti]),n}var lp=Object.prototype,cp=lp.toString;function hp(t){return cp.call(t)}var up="[object Null]",fp="[object Undefined]",aa=rr?rr.toStringTag:void 0;function We(t){return t==null?t===void 0?fp:up:aa&&aa in Object(t)?sp(t):hp(t)}function xe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var dp="[object AsyncFunction]",pp="[object Function]",gp="[object GeneratorFunction]",mp="[object Proxy]";function Pn(t){if(!xe(t))return!1;var e=We(t);return e==pp||e==gp||e==dp||e==mp}var Xr=zt["__core-js_shared__"],sa=function(){var t=/[^.]+$/.exec(Xr&&Xr.keys&&Xr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function _p(t){return!!sa&&sa in t}var yp=Function.prototype,Cp=yp.toString;function be(t){if(t!=null){try{return Cp.call(t)}catch{}try{return t+""}catch{}}return""}var xp=/[\\^$.*+?()[\]{}|]/g,bp=/^\[object .+?Constructor\]$/,Tp=Function.prototype,vp=Object.prototype,kp=Tp.toString,Sp=vp.hasOwnProperty,wp=RegExp("^"+kp.call(Sp).replace(xp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bp(t){if(!xe(t)||_p(t))return!1;var e=Pn(t)?wp:bp;return e.test(be(t))}function Ap(t,e){return t==null?void 0:t[e]}function Te(t,e){var i=Ap(t,e);return Bp(i)?i:void 0}var gi=Te(Object,"create");function Lp(){this.__data__=gi?gi(null):{},this.size=0}function Fp(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ep="__lodash_hash_undefined__",Op=Object.prototype,Mp=Op.hasOwnProperty;function Ip(t){var e=this.__data__;if(gi){var i=e[t];return i===Ep?void 0:i}return Mp.call(e,t)?e[t]:void 0}var $p=Object.prototype,Dp=$p.hasOwnProperty;function Np(t){var e=this.__data__;return gi?e[t]!==void 0:Dp.call(e,t)}var Rp="__lodash_hash_undefined__";function Pp(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=gi&&e===void 0?Rp:e,this}function ye(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1}function Yp(t,e){var i=this.__data__,r=vr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Zt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=Cg}function wr(t){return t!=null&&Ys(t.length)&&!Pn(t)}function xg(t){return Si(t)&&wr(t)}function bg(){return!1}var Vs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pa=Vs&&typeof module=="object"&&module&&!module.nodeType&&module,Tg=pa&&pa.exports===Vs,ga=Tg?zt.Buffer:void 0,vg=ga?ga.isBuffer:void 0,zn=vg||bg,kg="[object Object]",Sg=Function.prototype,wg=Object.prototype,Gs=Sg.toString,Bg=wg.hasOwnProperty,Ag=Gs.call(Object);function Lg(t){if(!Si(t)||We(t)!=kg)return!1;var e=js(t);if(e===null)return!0;var i=Bg.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Gs.call(i)==Ag}var Fg="[object Arguments]",Eg="[object Array]",Og="[object Boolean]",Mg="[object Date]",Ig="[object Error]",$g="[object Function]",Dg="[object Map]",Ng="[object Number]",Rg="[object Object]",Pg="[object RegExp]",qg="[object Set]",zg="[object String]",Wg="[object WeakMap]",Hg="[object ArrayBuffer]",jg="[object DataView]",Ug="[object Float32Array]",Yg="[object Float64Array]",Vg="[object Int8Array]",Gg="[object Int16Array]",Xg="[object Int32Array]",Kg="[object Uint8Array]",Zg="[object Uint8ClampedArray]",Jg="[object Uint16Array]",Qg="[object Uint32Array]",V={};V[Ug]=V[Yg]=V[Vg]=V[Gg]=V[Xg]=V[Kg]=V[Zg]=V[Jg]=V[Qg]=!0;V[Fg]=V[Eg]=V[Hg]=V[Og]=V[jg]=V[Mg]=V[Ig]=V[$g]=V[Dg]=V[Ng]=V[Rg]=V[Pg]=V[qg]=V[zg]=V[Wg]=!1;function tm(t){return Si(t)&&Ys(t.length)&&!!V[We(t)]}function em(t){return function(e){return t(e)}}var Xs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,si=Xs&&typeof module=="object"&&module&&!module.nodeType&&module,im=si&&si.exports===Xs,Kr=im&&qs.process,ma=function(){try{var t=si&&si.require&&si.require("util").types;return t||Kr&&Kr.binding&&Kr.binding("util")}catch{}}(),_a=ma&&ma.isTypedArray,Wn=_a?em(_a):tm;function gn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var rm=Object.prototype,nm=rm.hasOwnProperty;function om(t,e,i){var r=t[e];(!(nm.call(t,e)&&Tr(r,i))||i===void 0&&!(e in t))&&qn(t,e,i)}function am(t,e,i,r){var n=!i;i||(i={});for(var o=-1,a=e.length;++o-1&&t%1==0&&t0){if(++e>=vm)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Bm=wm(Tm);function Am(t,e){return Bm(xm(t,e,Qs),t+"")}function Lm(t,e,i){if(!xe(i))return!1;var r=typeof e;return(r=="number"?wr(i)&&Ks(e,i.length):r=="string"&&e in i)?Tr(i[e],t):!1}function Fm(t){return Am(function(e,i){var r=-1,n=i.length,o=n>1?i[n-1]:void 0,a=n>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,a&&Lm(i[0],i[1],a)&&(o=n<3?void 0:o,n=1),e=Object(e);++r0?_i(je,--St):0,Ne--,J===10&&(Ne=1,Br--),J}function Ot(){return J=St2||mn(J)>3?"":" "}function Wm(t,e){for(;--e&&Ot()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return Ar(t,Ui()+(e<6&&ge()==32&&Ot()==32))}function _n(t){for(;Ot();)switch(J){case t:return St;case 34:case 39:t!==34&&t!==39&&_n(J);break;case 40:t===41&&_n(t);break;case 92:Ot();break}return St}function Hm(t,e){for(;Ot()&&t+J!==57;)if(t+J===84&&ge()===47)break;return"/*"+Ar(e,St-1)+"*"+Hn(t===47?t:Ot())}function jm(t){for(;!mn(ge());)Ot();return Ar(t,St)}function Um(t){return qm(Yi("",null,null,null,[""],t=Pm(t),0,[0],t))}function Yi(t,e,i,r,n,o,a,s,l){for(var c=0,u=0,f=a,h=0,p=0,m=0,b=1,k=1,P=1,v=0,U="",N=n,j=o,G=r,H=U;k;)switch(m=v,v=Ot()){case 40:if(m!=108&&_i(H,f-1)==58){$m(H+=ji(Zr(v),"&","&\f"),"&\f",rl(c?s[c-1]:0))!=-1&&(P=-1);break}case 34:case 39:case 91:H+=Zr(v);break;case 9:case 10:case 13:case 32:H+=zm(m);break;case 92:H+=Wm(Ui()-1,7);continue;case 47:switch(ge()){case 42:case 47:Ni(Ym(Hm(Ot(),Ui()),e,i,l),l);break;default:H+="/"}break;case 123*b:s[c++]=Vt(H)*P;case 125*b:case 59:case 0:switch(v){case 0:case 125:k=0;case 59+u:P==-1&&(H=ji(H,/\f/g,"")),p>0&&Vt(H)-f&&Ni(p>32?xa(H+";",r,i,f-1,l):xa(ji(H," ","")+";",r,i,f-2,l),l);break;case 59:H+=";";default:if(Ni(G=Ca(H,e,i,c,u,n,s,U,N=[],j=[],f,o),o),v===123)if(u===0)Yi(H,e,G,G,N,o,f,s,j);else switch(h===99&&_i(H,3)===110?100:h){case 100:case 108:case 109:case 115:Yi(t,G,G,r&&Ni(Ca(t,G,G,0,0,n,s,U,n,N=[],f,j),j),n,j,f,s,r?N:j);break;default:Yi(H,G,G,G,[""],j,0,s,j)}}c=u=p=0,b=P=1,U=H="",f=a;break;case 58:f=1+Vt(H),p=m;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&Rm()==125)continue}switch(H+=Hn(v),v*b){case 38:P=u>0?1:(H+="\f",-1);break;case 44:s[c++]=(Vt(H)-1)*P,P=1;break;case 64:ge()===45&&(H+=Zr(Ot())),h=ge(),u=f=Vt(U=H+=jm(Ui())),v++;break;case 45:m===45&&Vt(H)==2&&(b=0)}}return o}function Ca(t,e,i,r,n,o,a,s,l,c,u,f){for(var h=n-1,p=n===0?o:[""],m=Dm(p),b=0,k=0,P=0;b0?p[v]+" "+U:ji(U,/&\f/g,p[v])))&&(l[P++]=N);return jn(t,e,i,n===0?el:s,l,c,u,f)}function Ym(t,e,i,r){return jn(t,e,i,tl,Hn(Nm()),yi(t,2,-2),0,r)}function xa(t,e,i,r,n){return jn(t,e,i,il,yi(t,0,r),yi(t,r+1,-1),r,n)}function yn(t,e){for(var i="",r=0;r{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Un=function(t="fatal"){let e=Ut.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Ut&&(e=Ut[t])):typeof t=="number"&&(e=t),E.trace=()=>{},E.debug=()=>{},E.info=()=>{},E.warn=()=>{},E.error=()=>{},E.fatal=()=>{},e<=Ut.fatal&&(E.fatal=console.error?console.error.bind(console,Tt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Tt("FATAL"))),e<=Ut.error&&(E.error=console.error?console.error.bind(console,Tt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Tt("ERROR"))),e<=Ut.warn&&(E.warn=console.warn?console.warn.bind(console,Tt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Tt("WARN"))),e<=Ut.info&&(E.info=console.info?console.info.bind(console,Tt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Tt("INFO"))),e<=Ut.debug&&(E.debug=console.debug?console.debug.bind(console,Tt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Tt("DEBUG"))),e<=Ut.trace&&(E.trace=console.debug?console.debug.bind(console,Tt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Tt("TRACE")))},Tt=t=>`%c${Kc().format("ss.SSS")} : ${t} : `,wi=//gi,l0=t=>t?sl(t).replace(/\\n/g,"#br#").split("#br#"):[""],c0=(()=>{let t=!1;return()=>{t||(h0(),t=!0)}})();function h0(){const t="data-temp-href-target";De.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),De.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const al=t=>(c0(),De.sanitize(t)),wa=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=al(t):r!=="loose"&&(t=sl(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=p0(t))}return t},Ci=(t,e)=>t&&(e.dompurifyConfig?t=De.sanitize(wa(t,e),e.dompurifyConfig).toString():t=De.sanitize(wa(t,e),{FORBID_TAGS:["style"]}).toString(),t),u0=(t,e)=>typeof t=="string"?Ci(t,e):t.flat().map(i=>Ci(i,e)),f0=t=>wi.test(t),d0=t=>t.split(wi),p0=t=>t.replace(/#br#/g,"
"),sl=t=>t.replace(wi,"#br#"),g0=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},ll=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),m0=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},_0=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},g1=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r0&&r+1Math.max(0,t.split(e).length-1),y0=(t,e)=>{const i=vn(t,"~"),r=vn(e,"~");return i===1&&r===1},C0=t=>{const e=vn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},Ba=()=>window.MathMLElement!==void 0,kn=/\$\$(.*)\$\$/g,Aa=t=>{var e;return(((e=t.match(kn))==null?void 0:e.length)??0)>0},m1=async(t,e)=>{t=await x0(t,e);const i=document.createElement("div");i.innerHTML=t,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},x0=async(t,e)=>{if(!Aa(t))return t;if(!Ba()&&!e.legacyMathML)return t.replace(kn,"MathML is unsupported in this environment.");const{default:i}=await K(async()=>{const{default:r}=await import("./chunks/katex.CvgdMzdh.js");return{default:r}},[]);return t.split(wi).map(r=>Aa(r)?`
${r}
`:`
${r}
`).join("").replace(kn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:Ba()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))},Yn={getRows:l0,sanitizeText:Ci,sanitizeTextOrArray:u0,hasBreaks:f0,splitBreaks:d0,lineBreakRegex:wi,removeScript:al,getUrl:g0,evaluate:ll,getMax:m0,getMin:_0},ut=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),Lr="#ffffff",Fr="#f2f2f2";let b0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,a,s,l,c,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||C(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||C(this.tertiaryColor),this.lineColor=this.lineColor||C(this.background),this.arrowheadColor=this.arrowheadColor||C(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?O(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||"grey",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||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||C(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||A(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const T0=t=>{const e=new b0;return e.calculate(t),e};let v0=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=A(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=C(this.background),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=A(C("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ai(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=O("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=O(this.sectionBkgColor,10),this.taskBorderColor=ai(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ai(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.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,a,s,l,c,u,f;this.secondBkg=A(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=A(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,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=A(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.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=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(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||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const k0=t=>{const e=new v0;return e.calculate(t),e};let S0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(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="#e8e8e8",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="grey",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=ai(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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,a,s,l,c,u,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const w0=t=>{const e=new S0;return e.calculate(t),e};let B0=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=A("#cde498",10),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.primaryColor),this.lineColor=C(this.background),this.textColor=C(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="grey",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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,a,s,l,c,u,f;this.actorBorder=O(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const A0=t=>{const e=new B0;return e.calculate(t),e};class L0{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=A(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(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="calculated",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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,a,s,l,c,u,f;this.secondBkg=A(this.contrast,55),this.border2=this.contrast,this.actorBorder=A(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,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 h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const F0=t=>{const e=new L0;return e.calculate(t),e},Xt={base:{getThemeVariables:T0},dark:{getThemeVariables:k0},default:{getThemeVariables:w0},forest:{getThemeVariables:A0},neutral:{getThemeVariables:F0}},Yt={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},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},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},theme:"default",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","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},cl={...Yt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Xt.default.getThemeVariables(),sequence:{...Yt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Yt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Yt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Yt.pie,useWidth:984},xyChart:{...Yt.xyChart,useWidth:void 0},requirement:{...Yt.requirement,useWidth:void 0},gitGraph:{...Yt.gitGraph,useMaxWidth:!1},sankey:{...Yt.sankey,useMaxWidth:!1}},hl=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...hl(t[r],"")]:[...i,e+r],[]),E0=new Set(hl(cl,"")),O0=cl,sr=t=>{if(E.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>sr(e));return}for(const e of Object.keys(t)){if(E.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!E0.has(e)||t[e]==null){E.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){E.debug("sanitizing object",e),sr(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(E.debug("sanitizing css option",e),t[e]=M0(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}E.debug("After sanitization",t)}},M0=t=>{let e=0,i=0;for(const r of t){if(e{for(const{id:e,detector:i,loader:r}of t)pl(e,i,r)},pl=(t,e,i)=>{Re[t]?E.error(`Detector with key ${t} already exists`):Re[t]={detector:e,loader:i},E.debug(`Detector with key ${t} added${i?" with loader":""}`)},$0=t=>Re[t].loader,Sn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>Sn(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=Sn(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},at=Sn,D0="​",N0={curveBasis:gd,curveBasisClosed:md,curveBasisOpen:_d,curveBumpX:dd,curveBumpY:pd,curveBundle:yd,curveCardinalClosed:xd,curveCardinalOpen:bd,curveCardinal:Cd,curveCatmullRomClosed:vd,curveCatmullRomOpen:kd,curveCatmullRom:Td,curveLinear:fd,curveLinearClosed:Sd,curveMonotoneX:wd,curveMonotoneY:Bd,curveNatural:Ad,curveStep:Ld,curveStepAfter:Ed,curveStepBefore:Fd},R0=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,P0=function(t,e){const i=gl(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const a=i.map(s=>s.args);sr(a),r=at(r,[...a])}else r=i.args;if(!r)return;let n=Er(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},gl=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${R0.source})(?=[}][%]{2}).* `,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),E.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=li.exec(t))!==null;)if(r.index===li.lastIndex&&li.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],a=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:a})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return E.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},q0=function(t){return t.replace(li,"")},z0=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function W0(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return N0[i]??e}function H0(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Ga.sanitizeUrl(i):i}const j0=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let a=0;a{i+=ml(n,e),e=n});const r=i/2;return Vn(t,r)}function Y0(t){return t.length===1?t[0]:U0(t)}const La=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Vn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=ml(n,i);if(o=1)return{x:n.x,y:n.y};if(a>0&&a<1)return{x:La((1-a)*i.x+a*n.x,5),y:La((1-a)*i.y+a*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},V0=(t,e,i)=>{E.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Vn(e,25),o=t?10:5,a=Math.atan2(e[0].y-n.y,e[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(a)*o+(e[0].x+n.x)/2,s.y=-Math.cos(a)*o+(e[0].y+n.y)/2,s};function G0(t,e,i){const r=structuredClone(i);E.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Vn(r,n),a=10+t*.5,s=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(r[0].x+o.x)/2,l.y=-Math.cos(s+Math.PI)*a+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(r[0].x+o.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(s)*a+(r[0].x+o.x)/2-5,l.y=-Math.cos(s)*a+(r[0].y+o.y)/2-5):(l.x=Math.sin(s)*a+(r[0].x+o.x)/2,l.y=-Math.cos(s)*a+(r[0].y+o.y)/2),l}function X0(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let Fa=0;const K0=()=>(Fa++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Fa);function Z0(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nZ0(t.length),Q0=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:""}},t_=function(t,e){const i=e.text.replace(Yn.lineBreakRegex," "),[,r]=Xn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},e_=ki((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),Yn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((a,s)=>{const l=lr(`${a} `,i),c=lr(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:p}=i_(a,e,"-",i);n.push(o,...h),o=p}else c+l>=e?(n.push(o),o=a):o=[o,a].filter(Boolean).join(" ");s+1===r.length&&n.push(o)}),n.filter(a=>a!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),i_=ki((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let a="";return n.forEach((s,l)=>{const c=`${a}${s}`;if(lr(c,r)>=e){const f=l+1,h=n.length===f,p=`${c}${i}`;o.push(h?c:p),a=""}else a=c}),{hyphenatedStrings:o,remainingWord:a}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function r_(t,e){return Gn(t,e).height}function lr(t,e){return Gn(t,e).width}const Gn=ki((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Xn(i),a=["sans-serif",r],s=t.split(Yn.lineBreakRegex),l=[],c=vt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of a){let p=0;const m={width:0,height:0,lineHeight:0};for(const b of s){const k=Q0();k.text=b||D0;const P=t_(u,k).style("font-size",o).style("font-weight",n).style("font-family",h),v=(P._groups||P)[0][0].getBBox();if(v.width===0&&v.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,v.width)),p=Math.round(v.height),m.height+=p,m.lineHeight=Math.round(Math.max(m.lineHeight,p))}l.push(m)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class n_{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Ri;const o_=function(t){return Ri=Ri||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ri.innerHTML=t,unescape(Ri.textContent)};function _l(t){return"str"in t}const a_=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Xn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function yl(t,e){return Em({},t,e)}const ci={assignWithDepth:at,wrapLabel:e_,calculateTextHeight:r_,calculateTextWidth:lr,calculateTextDimensions:Gn,cleanAndMerge:yl,detectInit:P0,detectDirective:gl,isSubstringInArray:z0,interpolateToCurve:W0,calcLabelPosition:Y0,calcCardinalityPosition:V0,calcTerminalLabelPosition:G0,formatUrl:H0,getStylesFromArray:X0,generateId:K0,random:J0,runFunc:j0,entityDecode:o_,insertTitle:a_,parseFontSize:Xn,InitIDGenerator:n_},s_=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},l_=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Ea="10.9.1",Pe=Object.freeze(O0);let pt=at({},Pe),Cl,qe=[],hi=at({},Pe);const Or=(t,e)=>{let i=at({},t),r={};for(const n of e)Tl(n),r=at(r,n);if(i=at(i,r),r.theme&&r.theme in Xt){const n=at({},Cl),o=at(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Xt&&(i.themeVariables=Xt[i.theme].getThemeVariables(o))}return hi=i,vl(hi),hi},c_=t=>(pt=at({},Pe),pt=at(pt,t),t.theme&&Xt[t.theme]&&(pt.themeVariables=Xt[t.theme].getThemeVariables(t.themeVariables)),Or(pt,qe),pt),h_=t=>{Cl=at({},t)},u_=t=>(pt=at(pt,t),Or(pt,qe),pt),xl=()=>at({},pt),bl=t=>(vl(t),at(hi,t),Pt()),Pt=()=>at({},hi),Tl=t=>{t&&(["secure",...pt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(E.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Tl(t[e])}))},f_=t=>{sr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),qe.push(t),Or(pt,qe)},cr=(t=pt)=>{qe=[],Or(t,qe)},d_={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Oa={},p_=t=>{Oa[t]||(E.warn(d_[t]),Oa[t]=!0)},vl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&p_("LAZY_LOAD_DEPRECATED")},kl="c4",g_=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),m_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/c4Diagram-ae766693.5zq8lNRz.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:kl,diagram:t}},__={id:kl,detector:g_,loader:m_},y_=__,Sl="flowchart",C_=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},x_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/flowDiagram-b222e15a.u5AVV-hs.js");return{diagram:e}},__vite__mapDeps([4,5,6,7,8,9,10,11,12,13,14,15,16,2,3]));return{id:Sl,diagram:t}},b_={id:Sl,detector:C_,loader:x_},T_=b_,wl="flowchart-v2",v_=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},k_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/flowDiagram-v2-13329dc7.MzkKFBua.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,9,7,10,11,12,13,14,15,16,2,3]));return{id:wl,diagram:t}},S_={id:wl,detector:v_,loader:k_},w_=S_,Bl="er",B_=t=>/^\s*erDiagram/.test(t),A_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/erDiagram-09d1c15f.nt4RMebt.js");return{diagram:e}},__vite__mapDeps([18,6,7,13,14,15,2,3]));return{id:Bl,diagram:t}},L_={id:Bl,detector:B_,loader:A_},F_=L_,Al="gitGraph",E_=t=>/^\s*gitGraph/.test(t),O_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/gitGraphDiagram-942e62fe.GaTrgGNF.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Al,diagram:t}},M_={id:Al,detector:E_,loader:O_},I_=M_,Ll="gantt",$_=t=>/^\s*gantt/.test(t),D_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/ganttDiagram-b62c793e.BQh2Y5Mm.js");return{diagram:e}},__vite__mapDeps([20,21,22,2,3]));return{id:Ll,diagram:t}},N_={id:Ll,detector:$_,loader:D_},R_=N_,Fl="info",P_=t=>/^\s*info/.test(t),q_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/infoDiagram-94cd232f.Byd6bx68.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Fl,diagram:t}},z_={id:Fl,detector:P_,loader:q_},El="pie",W_=t=>/^\s*pie/.test(t),H_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/pieDiagram-bb1d19e5.9eN9eF6r.js");return{diagram:e}},__vite__mapDeps([24,25,15,26,22,14,2,3]));return{id:El,diagram:t}},j_={id:El,detector:W_,loader:H_},Ol="quadrantChart",U_=t=>/^\s*quadrantChart/.test(t),Y_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/quadrantDiagram-c759a472.BFrW3TVd.js");return{diagram:e}},__vite__mapDeps([27,21,22,2,3]));return{id:Ol,diagram:t}},V_={id:Ol,detector:U_,loader:Y_},G_=V_,Ml="xychart",X_=t=>/^\s*xychart-beta/.test(t),K_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/xychartDiagram-f11f50a6.BQRBy1gR.js");return{diagram:e}},__vite__mapDeps([28,12,22,26,21,13,14,15,2,3]));return{id:Ml,diagram:t}},Z_={id:Ml,detector:X_,loader:K_},J_=Z_,Il="requirement",Q_=t=>/^\s*requirement(Diagram)?/.test(t),ty=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/requirementDiagram-87253d64.B_dpYInn.js");return{diagram:e}},__vite__mapDeps([29,6,7,13,14,15,2,3]));return{id:Il,diagram:t}},ey={id:Il,detector:Q_,loader:ty},iy=ey,$l="sequence",ry=t=>/^\s*sequenceDiagram/.test(t),ny=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/sequenceDiagram-6894f283.BDxPgqzG.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:$l,diagram:t}},oy={id:$l,detector:ry,loader:ny},ay=oy,Dl="class",sy=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},ly=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/classDiagram-fb54d2a0.CGyvIBWD.js");return{diagram:e}},__vite__mapDeps([31,32,6,7,13,14,15,2,3]));return{id:Dl,diagram:t}},cy={id:Dl,detector:sy,loader:ly},hy=cy,Nl="classDiagram",uy=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},fy=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/classDiagram-v2-a2b738ad.DvyIbOUG.js");return{diagram:e}},__vite__mapDeps([33,32,6,9,7,10,11,12,13,14,15,2,3]));return{id:Nl,diagram:t}},dy={id:Nl,detector:uy,loader:fy},py=dy,Rl="state",gy=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},my=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/stateDiagram-5dee940d.pJ0bb-t8.js");return{diagram:e}},__vite__mapDeps([34,35,6,7,13,14,15,2,3]));return{id:Rl,diagram:t}},_y={id:Rl,detector:gy,loader:my},yy=_y,Pl="stateDiagram",Cy=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},xy=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/stateDiagram-v2-1992cada.D30HA3w4.js");return{diagram:e}},__vite__mapDeps([36,35,6,9,7,10,11,12,13,14,15,2,3]));return{id:Pl,diagram:t}},by={id:Pl,detector:Cy,loader:xy},Ty=by,ql="journey",vy=t=>/^\s*journey/.test(t),ky=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/journeyDiagram-6625b456.Cvg1HNyV.js");return{diagram:e}},__vite__mapDeps([37,1,25,15,2,3]));return{id:ql,diagram:t}},Sy={id:ql,detector:vy,loader:ky},wy=Sy,By=function(t,e){for(let i of e)t.attr(i[0],i[1])},Ay=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},zl=function(t,e,i,r){const n=Ay(e,i,r);By(t,n)},Ly=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,a=n.height;E.info(`SVG bounds: ${o}x${a}`,n);let s=0,l=0;E.info(`Graph bounds: ${s}x${l}`,t),s=o+i*2,l=a+i*2,E.info(`Calculated bounds: ${s}x${l}`),zl(e,l,s,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Vi={},Fy=(t,e,i)=>{let r="";return t in Vi&&Vi[t]?r=Vi[t](i):E.warn(`No theme found for ${t}`),` & { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; fill: ${i.textColor} } /* Classes common for multiple diagrams */ & .error-icon { fill: ${i.errorBkgColor}; } & .error-text { fill: ${i.errorTextColor}; stroke: ${i.errorTextColor}; } & .edge-thickness-normal { stroke-width: 2px; } & .edge-thickness-thick { stroke-width: 3.5px } & .edge-pattern-solid { stroke-dasharray: 0; } & .edge-pattern-dashed{ stroke-dasharray: 3; } .edge-pattern-dotted { stroke-dasharray: 2; } & .marker { fill: ${i.lineColor}; stroke: ${i.lineColor}; } & .marker.cross { stroke: ${i.lineColor}; } & svg { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; } ${r} ${e} `},Ey=(t,e)=>{e!==void 0&&(Vi[t]=e)},Oy=Fy;let Kn="",Zn="",Jn="";const Qn=t=>Ci(t,Pt()),My=()=>{Kn="",Jn="",Zn=""},Iy=t=>{Kn=Qn(t).replace(/^\s+/g,"")},$y=()=>Kn,Dy=t=>{Jn=Qn(t).replace(/\n\s+/g,` `)},Ny=()=>Jn,Ry=t=>{Zn=Qn(t)},Py=()=>Zn,qy=Object.freeze(Object.defineProperty({__proto__:null,clear:My,getAccDescription:Ny,getAccTitle:$y,getDiagramTitle:Py,setAccDescription:Dy,setAccTitle:Iy,setDiagramTitle:Ry},Symbol.toStringTag,{value:"Module"})),zy=E,Wy=Un,to=Pt,b1=bl,T1=Pe,Hy=t=>Ci(t,to()),jy=Ly,Uy=()=>qy,hr={},ur=(t,e,i)=>{var r;if(hr[t])throw new Error(`Diagram ${t} already registered.`);hr[t]=e,i&&pl(t,i),Ey(t,e.styles),(r=e.injectUtils)==null||r.call(e,zy,Wy,to,Hy,jy,Uy(),()=>{})},eo=t=>{if(t in hr)return hr[t];throw new Yy(t)};class Yy extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const Vy=t=>{var e;const{securityLevel:i}=to();let r=vt("body");if(i==="sandbox"){const a=((e=vt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=vt(a.body)}return r.select(`#${t}`)},Gy=(t,e,i)=>{E.debug(`rendering svg for syntax error `);const r=Vy(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),zl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Wl={draw:Gy},Xy=Wl,Ky={db:{},renderer:Wl,parser:{parser:{yy:{}},parse:()=>{}}},Zy=Ky,Hl="flowchart-elk",Jy=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},Qy=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/flowchart-elk-definition-ae0efee6.DUjLe62V.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,13,14,15,2,3]));return{id:Hl,diagram:t}},tC={id:Hl,detector:Jy,loader:Qy},eC=tC,jl="timeline",iC=t=>/^\s*timeline/.test(t),rC=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/timeline-definition-bf702344.DWbs1z0u.js");return{diagram:e}},__vite__mapDeps([39,25,15,2,3]));return{id:jl,diagram:t}},nC={id:jl,detector:iC,loader:rC},oC=nC,Ul="mindmap",aC=t=>/^\s*mindmap/.test(t),sC=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/mindmap-definition-307c710a.MlW9Txbw.js");return{diagram:e}},__vite__mapDeps([40,12,2,3]));return{id:Ul,diagram:t}},lC={id:Ul,detector:aC,loader:sC},cC=lC,Yl="sankey",hC=t=>/^\s*sankey-beta/.test(t),uC=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/sankeyDiagram-707fac0f.DFwNRdvL.js");return{diagram:e}},__vite__mapDeps([41,26,22,42,2,3]));return{id:Yl,diagram:t}},fC={id:Yl,detector:hC,loader:uC},dC=fC,Vl="block",pC=t=>/^\s*block-beta/.test(t),gC=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/blockDiagram-9f4a6865.BtyFvzAC.js");return{diagram:e}},__vite__mapDeps([43,10,6,11,12,13,14,15,26,22,16,42,2,3]));return{id:Vl,diagram:t}},mC={id:Vl,detector:pC,loader:gC},_C=mC;let Ma=!1;const io=()=>{Ma||(Ma=!0,ur("error",Zy,t=>t.toLowerCase().trim()==="error"),ur("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{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")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),dl(y_,py,hy,F_,R_,z_,j_,iy,ay,eC,w_,T_,cC,oC,I_,Ty,yy,wy,G_,dC,J_,_C))};class Gl{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=s_(e),this.text+=` `;const r=Pt();try{this.type=Er(e,r)}catch(o){this.type="error",this.detectError=o}const n=eo(this.type);E.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const a=Pt();(r=this.init)==null||r.call(this,a),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const yC=async(t,e={})=>{const i=Er(t,Pt());try{eo(i)}catch{const n=$0(i);if(!n)throw new fl(`Diagram ${i} not found.`);const{id:o,diagram:a}=await n();ur(o,a)}return new Gl(t,e)};let Ia=[];const CC=()=>{Ia.forEach(t=>{t()}),Ia=[]},xC="graphics-document document";function bC(t,e){t.attr("role",xC),e!==""&&t.attr("aria-roledescription",e)}function TC(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const vC=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Xl(t){return typeof t>"u"||t===null}function kC(t){return typeof t=="object"&&t!==null}function SC(t){return Array.isArray(t)?t:Xl(t)?[]:[t]}function wC(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;is&&(o=" ... ",e=r-s+o.length),i-r>s&&(a=" ...",i=r+s-a.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+a,pos:r-e+o.length}}function tn(t,e){return ht.repeat(" ",e-t.length)+t}function $C(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,a=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)c=Qr(t.buffer,r[a-l],n[a-l],t.position-(r[a]-r[a-l]),f),s=ht.repeat(" ",e.indent)+tn((t.line-l+1).toString(),u)+" | "+c.str+` `+s;for(c=Qr(t.buffer,r[a],n[a],t.position,f),s+=ht.repeat(" ",e.indent)+tn((t.line+1).toString(),u)+" | "+c.str+` `,s+=ht.repeat("-",e.indent+u+3+c.pos)+`^ `,l=1;l<=e.linesAfter&&!(a+l>=n.length);l++)c=Qr(t.buffer,r[a+l],n[a+l],t.position-(r[a]-r[a+l]),f),s+=ht.repeat(" ",e.indent)+tn((t.line+l+1).toString(),u)+" | "+c.str+` `;return s.replace(/\n$/,"")}var DC=$C,NC=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],RC=["scalar","sequence","mapping"];function PC(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function qC(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(NC.indexOf(i)===-1)throw new Gt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=PC(e.styleAliases||null),RC.indexOf(this.kind)===-1)throw new Gt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var st=qC;function $a(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(o,a){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(n=a)}),i[n]=r}),i}function zC(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),lx=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function cx(t){return!(t===null||!lx.test(t)||t[t.length-1]==="_")}function hx(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var ux=/^[-+]?[0-9]+e/;function fx(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ht.isNegativeZero(t))return"-0.0";return i=t.toString(10),ux.test(i)?i.replace("e",".e"):i}function dx(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ht.isNegativeZero(t))}var px=new st("tag:yaml.org,2002:float",{kind:"scalar",resolve:cx,construct:hx,predicate:dx,represent:fx,defaultStyle:"lowercase"}),Zl=YC.extend({implicit:[KC,tx,sx,px]}),gx=Zl,Jl=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ql=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 mx(t){return t===null?!1:Jl.exec(t)!==null||Ql.exec(t)!==null}function _x(t){var e,i,r,n,o,a,s,l=0,c=null,u,f,h;if(e=Jl.exec(t),e===null&&(e=Ql.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],f=+(e[11]||0),c=(u*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(i,r,n,o,a,s,l)),c&&h.setTime(h.getTime()-c),h}function yx(t){return t.toISOString()}var Cx=new st("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:mx,construct:_x,instanceOf:Date,represent:yx});function xx(t){return t==="<<"||t===null}var bx=new st("tag:yaml.org,2002:merge",{kind:"scalar",resolve:xx}),ro=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function Tx(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=ro;for(i=0;i64)){if(e<0)return!1;r+=6}return r%8===0}function vx(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=ro,a=0,s=[];for(e=0;e>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|o.indexOf(r.charAt(e));return i=n%4*6,i===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):i===18?(s.push(a>>10&255),s.push(a>>2&255)):i===12&&s.push(a>>4&255),new Uint8Array(s)}function kx(t){var e="",i=0,r,n,o=t.length,a=ro;for(r=0;r>18&63],e+=a[i>>12&63],e+=a[i>>6&63],e+=a[i&63]),i=(i<<8)+t[r];return n=o%3,n===0?(e+=a[i>>18&63],e+=a[i>>12&63],e+=a[i>>6&63],e+=a[i&63]):n===2?(e+=a[i>>10&63],e+=a[i>>4&63],e+=a[i<<2&63],e+=a[64]):n===1&&(e+=a[i>>2&63],e+=a[i<<4&63],e+=a[64],e+=a[64]),e}function Sx(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var wx=new st("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Tx,construct:vx,predicate:Sx,represent:kx}),Bx=Object.prototype.hasOwnProperty,Ax=Object.prototype.toString;function Lx(t){if(t===null)return!0;var e=[],i,r,n,o,a,s=t;for(i=0,r=s.length;i>10)+55296,(t-65536&1023)+56320)}var nc=new Array(256),oc=new Array(256);for(var Ae=0;Ae<256;Ae++)nc[Ae]=Ra(Ae)?1:0,oc[Ae]=Ra(Ae);function Xx(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||qx,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ac(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=DC(i),new Gt(e,i)}function L(t,e){throw ac(t,e)}function pr(t,e){t.onWarning&&t.onWarning.call(null,ac(t,e))}var Pa={YAML:function(e,i,r){var n,o,a;e.version!==null&&L(e,"duplication of %YAML directive"),r.length!==1&&L(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&L(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),a=parseInt(n[2],10),o!==1&&L(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&pr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&L(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],ic.test(n)||L(e,"ill-formed tag handle (first argument) of the TAG directive"),se.call(e.tagMap,n)&&L(e,'there is a previously declared suffix for "'+n+'" tag handle'),rc.test(o)||L(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{L(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function oe(t,e,i,r){var n,o,a,s;if(e1&&(t.result+=ht.repeat(` `,e-1))}function Kx(t,e,i){var r,n,o,a,s,l,c,u,f=t.kind,h=t.result,p;if(p=t.input.charCodeAt(t.position),mt(p)||Le(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),mt(n)||i&&Le(n)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,s=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),mt(n)||i&&Le(n))break}else if(p===35){if(r=t.input.charCodeAt(t.position-1),mt(r))break}else{if(t.position===t.lineStart&&Mr(t)||i&&Le(p))break;if(Nt(p))if(l=t.line,c=t.lineStart,u=t.lineIndent,Q(t,!1,-1),t.lineIndent>=e){s=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=c,t.lineIndent=u;break}}s&&(oe(t,o,a,!1),oo(t,t.line-l),o=a=t.position,s=!1),me(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return oe(t,o,a,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function Zx(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(oe(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else Nt(i)?(oe(t,r,n,!0),oo(t,Q(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Mr(t)?L(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);L(t,"unexpected end of the stream within a single quoted scalar")}function Jx(t,e){var i,r,n,o,a,s;if(s=t.input.charCodeAt(t.position),s!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(s=t.input.charCodeAt(t.position))!==0;){if(s===34)return oe(t,i,t.position,!0),t.position++,!0;if(s===92){if(oe(t,i,t.position,!0),s=t.input.charCodeAt(++t.position),Nt(s))Q(t,!1,e);else if(s<256&&nc[s])t.result+=oc[s],t.position++;else if((a=Yx(s))>0){for(n=a,o=0;n>0;n--)s=t.input.charCodeAt(++t.position),(a=Ux(s))>=0?o=(o<<4)+a:L(t,"expected hexadecimal character");t.result+=Gx(o),t.position++}else L(t,"unknown escape sequence");i=r=t.position}else Nt(s)?(oe(t,i,r,!0),oo(t,Q(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Mr(t)?L(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}L(t,"unexpected end of the stream within a double quoted scalar")}function Qx(t,e){var i=!0,r,n,o,a=t.tag,s,l=t.anchor,c,u,f,h,p,m=Object.create(null),b,k,P,v;if(v=t.input.charCodeAt(t.position),v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),v=t.input.charCodeAt(++t.position);v!==0;){if(Q(t,!0,e),v=t.input.charCodeAt(t.position),v===u)return t.position++,t.tag=a,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=s,!0;i?v===44&&L(t,"expected the node content, but found ','"):L(t,"missed comma between flow collection entries"),k=b=P=null,f=h=!1,v===63&&(c=t.input.charCodeAt(t.position+1),mt(c)&&(f=h=!0,t.position++,Q(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,ze(t,e,fr,!1,!0),k=t.tag,b=t.result,Q(t,!0,e),v=t.input.charCodeAt(t.position),(h||t.line===r)&&v===58&&(f=!0,v=t.input.charCodeAt(++t.position),Q(t,!0,e),ze(t,e,fr,!1,!0),P=t.result),p?Fe(t,s,m,k,b,P,r,n,o):f?s.push(Fe(t,null,m,k,b,P,r,n,o)):s.push(b),Q(t,!0,e),v=t.input.charCodeAt(t.position),v===44?(i=!0,v=t.input.charCodeAt(++t.position)):i=!1}L(t,"unexpected end of the stream within a flow collection")}function tb(t,e){var i,r,n=en,o=!1,a=!1,s=e,l=0,c=!1,u,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)en===n?n=f===43?Da:zx:L(t,"repeat of a chomping mode identifier");else if((u=Vx(f))>=0)u===0?L(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?L(t,"repeat of an indentation width identifier"):(s=e+u-1,a=!0);else break;if(me(f)){do f=t.input.charCodeAt(++t.position);while(me(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Nt(f)&&f!==0)}for(;f!==0;){for(no(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!a||t.lineIndents&&(s=t.lineIndent),Nt(f)){l++;continue}if(t.lineIndente)&&l!==0)L(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(k&&(a=t.line,s=t.lineStart,l=t.position),ze(t,e,dr,!0,n)&&(k?m=t.result:b=t.result),k||(Fe(t,f,h,p,m,b,a,s,l),p=m=b=null),Q(t,!0,-1),v=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&v!==0)L(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f"),t.result!==null&&m.kind!==t.kind&&L(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):L(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function ob(t){var e=t.position,i,r,n,o=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(a=t.input.charCodeAt(t.position))!==0&&(Q(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(o=!0,a=t.input.charCodeAt(++t.position),i=t.position;a!==0&&!mt(a);)a=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&L(t,"directive name must not be less than one character in length");a!==0;){for(;me(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!Nt(a));break}if(Nt(a))break;for(i=t.position;a!==0&&!mt(a);)a=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}a!==0&&no(t),se.call(Pa,r)?Pa[r](t,r,n):pr(t,'unknown document directive "'+r+'"')}if(Q(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Q(t,!0,-1)):o&&L(t,"directives end mark is expected"),ze(t,t.lineIndent-1,dr,!1,!0),Q(t,!0,-1),t.checkLineBreaks&&Hx.test(t.input.slice(e,t.position))&&pr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Mr(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Q(t,!0,-1));return}if(t.position"u"&&(i=e,e=null);var r=sc(t,i);if(typeof e!="function")return r;for(var n=0,o=r.length;nt.replace(/\r\n?/g,` `).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),gb=t=>{const{text:e,metadata:i}=db(t),{displayMode:r,title:n,config:o={}}=i;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:n,config:o,text:e}},mb=t=>{const e=ci.detectInit(t)??{},i=ci.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:q0(t),directive:e}};function lc(t){const e=pb(t),i=gb(e),r=mb(i.text),n=yl(i.config,r.directive);return t=vC(r.text),{code:t,title:i.title,config:n}}const _b=5e4,yb="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Cb="sandbox",xb="loose",bb="http://www.w3.org/2000/svg",Tb="http://www.w3.org/1999/xlink",vb="http://www.w3.org/1999/xhtml",kb="100%",Sb="100%",wb="border:0;margin:0;",Bb="margin:0",Ab="allow-top-navigation-by-user-activation allow-popups",Lb='The "iframe" tag is not supported by your browser.',Fb=["foreignobject"],Eb=["dominant-baseline"];function cc(t){const e=lc(t);return cr(),f_(e.config??{}),e}async function Ob(t,e){io(),t=cc(t).code;try{await ao(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const Wa=(t,e,i=[])=>` .${t} ${e} { ${i.join(" !important; ")} !important; }`,Mb=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=` ${t.themeCSS}`),t.fontFamily!==void 0&&(r+=` :root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=` :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Jr(e)){const s=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];Jr(c.styles)||s.forEach(u=>{r+=Wa(c.id,u,c.styles)}),Jr(c.textStyles)||(r+=Wa(c.id,"tspan",c.textStyles))}}return r},Ib=(t,e,i,r)=>{const n=Mb(t,i),o=Oy(e,n,t.themeVariables);return yn(Um(`${r}{${o}}`),Vm)},$b=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=l_(r),r=r.replace(/
/g,"
"),r},Db=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":Sb,o=btoa(''+t+"");return``},Ha=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const a=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",bb);return n&&a.attr("xmlns:xlink",n),a.append("g"),t};function ja(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Nb=(t,e,i,r)=>{var n,o,a;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(a=t.getElementById(r))==null||a.remove()},Rb=async function(t,e,i){var r,n,o,a,s,l;io();const c=cc(e);e=c.code;const u=Pt();E.debug(u),e.length>((u==null?void 0:u.maxTextSize)??_b)&&(e=yb);const f="#"+t,h="i"+t,p="#"+h,m="d"+t,b="#"+m;let k=vt("body");const P=u.securityLevel===Cb,v=u.securityLevel===xb,U=u.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),P){const F=ja(vt(i),h);k=vt(F.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=vt(i);Ha(k,t,m,`font-family: ${U}`,Tb)}else{if(Nb(document,t,m,h),P){const F=ja(vt("body"),h);k=vt(F.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=vt("body");Ha(k,t,m)}let N,j;try{N=await ao(e,{title:c.title})}catch(F){N=new Gl("error"),j=F}const G=k.select(b).node(),H=N.type,Jt=G.firstChild,Qt=Jt.firstChild,Z=(n=(r=N.renderer).getClasses)==null?void 0:n.call(r,e,N),R=Ib(u,H,Z,f),wt=document.createElement("style");wt.innerHTML=R,Jt.insertBefore(wt,Qt);try{await N.renderer.draw(e,t,Ea,N)}catch(F){throw Xy.draw(e,t,Ea),F}const te=k.select(`${b} svg`),M=(a=(o=N.db).getAccTitle)==null?void 0:a.call(o),T=(l=(s=N.db).getAccDescription)==null?void 0:l.call(s);qb(H,te,M,T),k.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",vb);let y=k.select(b).node().innerHTML;if(E.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),y=$b(y,P,ll(u.arrowMarkerAbsolute)),P){const F=k.select(b+" svg").node();y=Db(y,F)}else v||(y=De.sanitize(y,{ADD_TAGS:Fb,ADD_ATTR:Eb}));if(CC(),j)throw j;const x=vt(P?p:b).node();return x&&"remove"in x&&x.remove(),{svg:y,bindFunctions:N.db.bindFunctions}};function Pb(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),h_(t),t!=null&&t.theme&&t.theme in Xt?t.themeVariables=Xt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Xt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?c_(t):xl();Un(i.logLevel),io()}const ao=(t,e={})=>{const{code:i}=lc(t);return yC(i,e)};function qb(t,e,i,r){bC(e,t),TC(e,i,r,e.attr("id"))}const Ce=Object.freeze({render:Rb,parse:Ob,getDiagramFromText:ao,initialize:Pb,getConfig:Pt,setConfig:bl,getSiteConfig:xl,updateSiteConfig:u_,reset:()=>{cr()},globalReset:()=>{cr(Pe)},defaultConfig:Pe});Un(Pt().logLevel);cr(Pt());const zb=async()=>{E.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Re).map(async([i,{detector:r,loader:n}])=>{if(n)try{eo(i)}catch{try{const{diagram:a,id:s}=await n();ur(s,a,r)}catch(a){throw E.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Re[i],a}}}))).filter(i=>i.status==="rejected");if(e.length>0){E.error(`Failed to load ${e.length} external diagrams`);for(const i of e)E.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},Wb=(t,e,i)=>{E.warn(t),_l(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},hc=async function(t={querySelector:".mermaid"}){try{await Hb(t)}catch(e){if(_l(e)&&E.error(e.str),_t.parseError&&_t.parseError(e),!t.suppressErrors)throw E.error("Use the suppressErrors option to suppress these errors"),e}},Hb=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Ce.getConfig();E.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");E.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(E.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),Ce.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new ci.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let a;const s=[];for(const l of Array.from(n)){E.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;a=l.innerHTML,a=Yc(ci.entityDecode(a)).trim().replace(//gi,"
");const u=ci.detectInit(a);u&&E.debug("Detected early reinit: ",u);try{const{svg:f,bindFunctions:h}=await pc(c,a,l);l.innerHTML=f,t&&await t(c),h&&h(l)}catch(f){Wb(f,s,_t.parseError)}}if(s.length>0)throw s[0]},uc=function(t){Ce.initialize(t)},jb=async function(t,e,i){E.warn("mermaid.init is deprecated. Please use run instead."),t&&uc(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await hc(r)},Ub=async(t,{lazyLoad:e=!0}={})=>{dl(...t),e===!1&&await zb()},fc=function(){if(_t.startOnLoad){const{startOnLoad:t}=Ce.getConfig();t&&_t.run().catch(e=>E.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*! * Wait for document loaded before starting the execution */window.addEventListener("load",fc,!1)}const Yb=function(t){_t.parseError=t},gr=[];let rn=!1;const dc=async()=>{if(!rn){for(rn=!0;gr.length>0;){const t=gr.shift();if(t)try{await t()}catch(e){E.error("Error executing queue",e)}}rn=!1}},Vb=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,a)=>{Ce.parse(t,e).then(s=>{o(s),i(s)},s=>{var l;E.error("Error parsing",s),(l=_t.parseError)==null||l.call(_t,s),a(s),r(s)})});gr.push(n),dc().catch(r)}),pc=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((a,s)=>{Ce.render(t,e,i).then(l=>{a(l),r(l)},l=>{var c;E.error("Error parsing",l),(c=_t.parseError)==null||c.call(_t,l),s(l),n(l)})});gr.push(o),dc().catch(n)}),_t={startOnLoad:!0,mermaidAPI:Ce,parse:Vb,render:pc,init:jb,run:hc,registerExternalDiagrams:Ub,initialize:uc,parseError:void 0,contentLoaded:fc,setParseErrorHandler:Yb,detectType:Er},Gb=async t=>{try{_t.registerExternalDiagrams&&await _t.registerExternalDiagrams(t)}catch(e){console.error(e)}},Xb=async(t,e,i)=>{_t.initialize(i);const{svg:r}=await _t.render(t,e);return r},Kb=["innerHTML"],Zb={__name:"Mermaid",props:{graph:{type:String,required:!0},id:{type:String,required:!0},class:{type:String,required:!1,default:"mermaid"}},setup(t){const e=Lo({securityLevel:"loose",startOnLoad:!1,externalDiagrams:[]}),{page:i}=Ua(),{frontmatter:r}=kc(i.value),n=r.mermaidTheme||"",o=t,a=Lo(null);let s=null;Ya(async()=>{var f;await Gb(e.value.externalDiagrams);let c=await K(()=>import("./chunks/virtual_mermaid-config.DDnGl6nM.js"),[]);c!=null&&c.default&&(e.value=c.default),s=new MutationObserver(async()=>await l()),s.observe(document.documentElement,{attributes:!0}),await l(),((f=//.exec(decodeURIComponent(o.graph)))==null?void 0:f.length)>0&&setTimeout(()=>{let h=document.getElementsByTagName("img"),p=Array.from(h);p.length&&Promise.all(p.filter(m=>!m.complete).map(m=>new Promise(b=>{m.onload=m.onerror=b}))).then(async()=>{await l()})},100)}),Sc(()=>s.disconnect());const l=async()=>{const c=document.documentElement.classList.contains("dark");let u={...e.value};n&&(u.theme=n),c&&(u.theme="dark");let f=await Xb(o.id,decodeURIComponent(o.graph),u);const h=Math.random().toString(36).substring(7);a.value=`${f} ${h}`};return(c,u)=>(wc(),Bc("div",{innerHTML:a.value,class:Ac(o.class)},null,10,Kb))}};function gc(t){if(t.extends){const e=gc(t.extends);return{...e,...t,async enhanceApp(i){e.enhanceApp&&await e.enhanceApp(i),t.enhanceApp&&await t.enhanceApp(i)}}}return t}const Me=gc(Uc),Jb=Pc({name:"VitePressApp",setup(){const{site:t,lang:e,dir:i}=Ua();return Ya(()=>{qc(()=>{document.documentElement.lang=e.value,document.documentElement.dir=i.value})}),t.value.router.prefetchLinks&&zc(),Wc(),Hc(),Me.setup&&Me.setup(),()=>jc(Me.Layout)}});async function Qb(){globalThis.__VITEPRESS__=!0;const t=e1(),e=t1();e.provide(Fc,t);const i=Ec(t.route);return e.provide(Oc,i),e.component("Mermaid",Zb),e.component("Content",Mc),e.component("ClientOnly",Ic),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}}),Me.enhanceApp&&await Me.enhanceApp({app:e,router:t,siteData:$c}),{app:e,router:t,data:i}}function t1(){return Dc(Jb)}function e1(){let t=nn,e;return Nc(i=>{let r=Rc(i),n=null;return r&&(t&&(e=r),(t||e===r)&&(r=r.replace(/\.js$/,".lean.js")),n=import(r)),nn&&(t=!1),n},Me.NotFound)}nn&&Qb().then(({app:t,router:e,data:i})=>{e.go().then(()=>{Lc(e.route,i.site),t.mount("#app")})});export{ua as $,My as A,Si as B,We as C,ar as D,wr as E,fm as F,Zm as G,ki as H,or as I,am as J,Zs as K,js as L,hg as M,ug as N,ue as O,ma as P,em as Q,xe as R,rr as S,fg as T,zn as U,cg as V,gg as W,He as X,om as Y,le as Z,Tr as _,Ny as a,m1 as a$,Wn as a0,Ys as a1,Ks as a2,Qs as a3,sg as a4,bn as a5,Am as a6,xg as a7,bm as a8,Pn as a9,n1 as aA,Kc as aB,Fn as aC,ne as aD,di as aE,qo as aF,Gu as aG,Vy as aH,f1 as aI,O0 as aJ,yl as aK,Xn as aL,In as aM,s1 as aN,h1 as aO,Vo as aP,Yo as aQ,u1 as aR,c1 as aS,o1 as aT,a1 as aU,p1 as aV,d1 as aW,l1 as aX,w0 as aY,Pt as aZ,Aa as a_,Jr as aa,yt as ab,ss as ac,nh as ad,Lg as ae,ai as af,Bm as ag,xm as ah,Lm as ai,qn as aj,Em as ak,I as al,Rt as am,l_ as an,gd as ao,Yc as ap,b1 as aq,g1 as ar,jy as as,J0 as at,Ln as au,ls as av,gt as aw,Ti as ax,zu as ay,us as az,Dy as b,D0 as b0,K0 as b1,Vc as b2,Gc as b3,qy as b4,vi as b5,A as b6,O as b7,to as c,Qb as createApp,Ci as d,at as e,lr as f,$y as g,vt as h,zl as i,Yn as j,r_ as k,E as l,Ga as m,wi as n,fd as o,X0 as p,ll as q,x0 as r,Iy as s,W0 as t,Ly as u,T1 as v,e_ as w,Ry as x,Py as y,ci as z};