chatgpt-next-web-oa6.pages.dev Open in urlscan Pro
2606:4700:310c::ac42:2ccd  Public Scan

URL: https://chatgpt-next-web-oa6.pages.dev/_next/static/chunks/0d701aaf.ba3654d07f686fbc.js
Submission: On November 03 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[721],{51893:function(t,i,e){let r,o;e.d(i,{A:function(){return J},B:function(){return tw},C:function(){return tZ},D:function(){return N},E:function(){return tN},F:function(){return ex},G:function(){return tk},H:function(){return S},I:function(){return i1},J:function(){return rA},K:function(){return iK},L:function(){return rK},Z:function(){return td},a:function(){return iX},b:function(){return iG},c:function(){return iQ},d:function(){return _},e:function(){return O},f:function(){return tc},g:function(){return iU},h:function(){return tL},i:function(){return iO},j:function(){return tv},k:function(){return tx},l:function(){return T},m:function(){return w},n:function(){return tC},o:function(){return iz},p:function(){return i0},q:function(){return i$},r:function(){return iJ},s:function(){return iV},t:function(){return iH},u:function(){return tq},v:function(){return q},w:function(){return tF},x:function(){return tT},y:function(){return i5},z:function(){return i7}});var a=e(54525),l=e(89539),s=e(99824),n=e(36783),h=e(68985),c=e(25452),d=e(5528),u=e(59554),g=e(11679),p=e(62985),C=e(5712),m=e(31219),f=e(78987),y=e(95240),x=e(3887),b=e(10307);let k={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},T={trace:function(){for(var t=arguments.length,i=Array(t),e=0;e<t;e++)i[e]=arguments[e]},debug:function(){for(var t=arguments.length,i=Array(t),e=0;e<t;e++)i[e]=arguments[e]},info:function(){for(var t=arguments.length,i=Array(t),e=0;e<t;e++)i[e]=arguments[e]},warn:function(){for(var t=arguments.length,i=Array(t),e=0;e<t;e++)i[e]=arguments[e]},error:function(){for(var t=arguments.length,i=Array(t),e=0;e<t;e++)i[e]=arguments[e]},fatal:function(){for(var t=arguments.length,i=Array(t),e=0;e<t;e++)i[e]=arguments[e]}},B=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal",i=k.fatal;"string"==typeof t?(t=t.toLowerCase())in k&&(i=k[t]):"number"==typeof t&&(i=t),T.trace=()=>{},T.debug=()=>{},T.info=()=>{},T.warn=()=>{},T.error=()=>{},T.fatal=()=>{},i<=k.fatal&&(T.fatal=console.error?console.error.bind(console,F("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",F("FATAL"))),i<=k.error&&(T.error=console.error?console.error.bind(console,F("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",F("ERROR"))),i<=k.warn&&(T.warn=console.warn?console.warn.bind(console,F("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",F("WARN"))),i<=k.info&&(T.info=console.info?console.info.bind(console,F("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",F("INFO"))),i<=k.debug&&(T.debug=console.debug?console.debug.bind(console,F("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",F("DEBUG"))),i<=k.trace&&(T.trace=console.debug?console.debug.bind(console,F("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",F("TRACE")))},F=t=>{let i=l().format("ss.SSS");return"%c".concat(i," : ").concat(t," : ")},S=/<br\s*\/?>/gi,v=t=>h.sanitize(t),L=(t,i)=>{var e;if((null==(e=i.flowchart)?void 0:e.htmlLabels)!==!1){let e=i.securityLevel;"antiscript"===e||"strict"===e?t=v(t):"loose"!==e&&(t=A(t=(t=(t=Z(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;")))}return t},_=(t,i)=>t?t=i.dompurifyConfig?h.sanitize(L(t,i),i.dompurifyConfig).toString():h.sanitize(L(t,i),{FORBID_TAGS:["style"]}).toString():t,A=t=>t.replace(/#br#/g,"<br/>"),Z=t=>t.replace(S,"#br#"),w=t=>!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),q=function(t){let i=t.split(/(,)/),e=[];for(let t=0;t<i.length;t++){let r=i[t];if(","===r&&t>0&&t+1<i.length){let o=i[t-1],a=i[t+1];M(o,a)&&(r=o+","+a,t++,e.pop())}e.push(E(r))}return e.join("")},I=(t,i)=>Math.max(0,t.split(i).length-1),M=(t,i)=>{let e=I(t,"~"),r=I(i,"~");return 1===e&&1===r},E=t=>{let i=I(t,"~"),e=!1;if(i<=1)return t;i%2!=0&&t.startsWith("~")&&(t=t.substring(1),e=!0);let r=[...t],o=r.indexOf("~"),a=r.lastIndexOf("~");for(;-1!==o&&-1!==a&&o!==a;)r[o]="<",r[a]=">",o=r.indexOf("~"),a=r.lastIndexOf("~");return e&&r.unshift("~"),r.join("")},O={getRows:t=>t?Z(t).replace(/\\n/g,"#br#").split("#br#"):[""],sanitizeText:_,sanitizeTextOrArray:(t,i)=>"string"==typeof t?_(t,i):t.flat().map(t=>_(t,i)),hasBreaks:t=>S.test(t),splitBreaks:t=>t.split(S),lineBreakRegex:S,removeScript:v,getUrl:t=>{let i="";return t&&(i=(i=(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replaceAll(/\(/g,"\\(")).replaceAll(/\)/g,"\\)")),i},evaluate:w,getMax:function(){for(var t=arguments.length,i=Array(t),e=0;e<t;e++)i[e]=arguments[e];return Math.max(...i.filter(t=>!isNaN(t)))},getMin:function(){for(var t=arguments.length,i=Array(t),e=0;e<t;e++)i[e]=arguments[e];return Math.min(...i.filter(t=>!isNaN(t)))}},z=(t,i)=>i?(0,c.Z)(t,{s:-40,l:10}):(0,c.Z)(t,{s:-40,l:-10}),W="#ffffff",D="#f2f2f2",P=class{updateColors(){var t,i,e,r,o,a,l,s,n,h,C;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||(0,c.Z)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,c.Z)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||z(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||z(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||z(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||z(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,d.Z)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,d.Z)(this.tertiaryColor),this.lineColor=this.lineColor||(0,d.Z)(this.background),this.arrowheadColor=this.arrowheadColor||(0,d.Z)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,u.Z)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"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||(0,u.Z)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,d.Z)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,g.Z)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.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||(0,c.Z)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,c.Z)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,c.Z)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,c.Z)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,c.Z)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,c.Z)(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||(0,c.Z)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,c.Z)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,c.Z)(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.Z)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.Z)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||(0,d.Z)(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,g.Z)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.Z)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let m=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||(0,c.Z)(this.mainBkg,{h:180,s:-15,l:m*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||(0,c.Z)(this.mainBkg,{h:180,s:-15,l:m*(8+3*t)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,c.Z)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,c.Z)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,c.Z)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,c.Z)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,c.Z)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,c.Z)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,c.Z)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,c.Z)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,c.Z)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,c.Z)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,c.Z)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,c.Z)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,c.Z)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,c.Z)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,c.Z)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,c.Z)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,c.Z)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,c.Z)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,c.Z)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,c.Z)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,c.Z)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.Z)(this.quadrant1Fill)?(0,g.Z)(this.quadrant1Fill):(0,u.Z)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(t=this.xyChart)?void 0:t.backgroundColor)||this.background,titleColor:(null==(i=this.xyChart)?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(e=this.xyChart)?void 0:e.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(r=this.xyChart)?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(l=this.xyChart)?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(n=this.xyChart)?void 0:n.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(h=this.xyChart)?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.Z)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,c.Z)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,c.Z)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,c.Z)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,c.Z)(this.primaryColor,{h:60}),this.git7=this.git7||(0,c.Z)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,g.Z)(this.git0,25),this.git1=(0,g.Z)(this.git1,25),this.git2=(0,g.Z)(this.git2,25),this.git3=(0,g.Z)(this.git3,25),this.git4=(0,g.Z)(this.git4,25),this.git5=(0,g.Z)(this.git5,25),this.git6=(0,g.Z)(this.git6,25),this.git7=(0,g.Z)(this.git7,25)):(this.git0=(0,u.Z)(this.git0,25),this.git1=(0,u.Z)(this.git1,25),this.git2=(0,u.Z)(this.git2,25),this.git3=(0,u.Z)(this.git3,25),this.git4=(0,u.Z)(this.git4,25),this.git5=(0,u.Z)(this.git5,25),this.git6=(0,u.Z)(this.git6,25),this.git7=(0,u.Z)(this.git7,25)),this.gitInv0=this.gitInv0||(0,d.Z)(this.git0),this.gitInv1=this.gitInv1||(0,d.Z)(this.git1),this.gitInv2=this.gitInv2||(0,d.Z)(this.git2),this.gitInv3=this.gitInv3||(0,d.Z)(this.git3),this.gitInv4=this.gitInv4||(0,d.Z)(this.git4),this.gitInv5=this.gitInv5||(0,d.Z)(this.git5),this.gitInv6=this.gitInv6||(0,d.Z)(this.git6),this.gitInv7=this.gitInv7||(0,d.Z)(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||W,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(t){if("object"!=typeof t){this.updateColors();return}let i=Object.keys(t);i.forEach(i=>{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}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"}},j=class{updateColors(){var t,i,e,r,o,a,l,s,n,h,C;this.secondBkg=(0,g.Z)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,g.Z)(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=(0,g.Z)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.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=(0,c.Z)(this.primaryColor,{h:64}),this.fillType3=(0,c.Z)(this.secondaryColor,{h:64}),this.fillType4=(0,c.Z)(this.primaryColor,{h:-64}),this.fillType5=(0,c.Z)(this.secondaryColor,{h:-64}),this.fillType6=(0,c.Z)(this.primaryColor,{h:128}),this.fillType7=(0,c.Z)(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||(0,c.Z)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,c.Z)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,c.Z)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,c.Z)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,c.Z)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,c.Z)(this.primaryColor,{h:210}),this.cScale9=this.cScale9||(0,c.Z)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,c.Z)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,c.Z)(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||(0,d.Z)(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||(0,g.Z)(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||(0,c.Z)(this.mainBkg,{h:30,s:-30,l:-(-10+4*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||(0,c.Z)(this.mainBkg,{h:30,s:-30,l:-(-7+4*t)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,c.Z)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,c.Z)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,c.Z)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,c.Z)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,c.Z)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,c.Z)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.Z)(this.quadrant1Fill)?(0,g.Z)(this.quadrant1Fill):(0,u.Z)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(t=this.xyChart)?void 0:t.backgroundColor)||this.background,titleColor:(null==(i=this.xyChart)?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(e=this.xyChart)?void 0:e.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(r=this.xyChart)?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(l=this.xyChart)?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(n=this.xyChart)?void 0:n.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(h=this.xyChart)?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.Z)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,g.Z)(this.secondaryColor,20),this.git1=(0,g.Z)(this.pie2||this.secondaryColor,20),this.git2=(0,g.Z)(this.pie3||this.tertiaryColor,20),this.git3=(0,g.Z)(this.pie4||(0,c.Z)(this.primaryColor,{h:-30}),20),this.git4=(0,g.Z)(this.pie5||(0,c.Z)(this.primaryColor,{h:-60}),20),this.git5=(0,g.Z)(this.pie6||(0,c.Z)(this.primaryColor,{h:-90}),10),this.git6=(0,g.Z)(this.pie7||(0,c.Z)(this.primaryColor,{h:60}),10),this.git7=(0,g.Z)(this.pie8||(0,c.Z)(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||(0,d.Z)(this.git0),this.gitInv1=this.gitInv1||(0,d.Z)(this.git1),this.gitInv2=this.gitInv2||(0,d.Z)(this.git2),this.gitInv3=this.gitInv3||(0,d.Z)(this.git3),this.gitInv4=this.gitInv4||(0,d.Z)(this.git4),this.gitInv5=this.gitInv5||(0,d.Z)(this.git5),this.gitInv6=this.gitInv6||(0,d.Z)(this.git6),this.gitInv7=this.gitInv7||(0,d.Z)(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||(0,d.Z)(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||(0,d.Z)(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,g.Z)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,g.Z)(this.background,2)}calculate(t){if("object"!=typeof t){this.updateColors();return}let i=Object.keys(t);i.forEach(i=>{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,g.Z)(this.primaryColor,16),this.tertiaryColor=(0,c.Z)(this.primaryColor,{h:-160}),this.primaryBorderColor=(0,d.Z)(this.background),this.secondaryBorderColor=z(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=z(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,d.Z)(this.primaryColor),this.secondaryTextColor=(0,d.Z)(this.secondaryColor),this.tertiaryTextColor=(0,d.Z)(this.tertiaryColor),this.lineColor=(0,d.Z)(this.background),this.textColor=(0,d.Z)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,g.Z)((0,d.Z)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,C.Z)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,u.Z)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,u.Z)(this.sectionBkgColor,10),this.taskBorderColor=(0,C.Z)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,C.Z)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}},R=class{updateColors(){var t,i,e,r,o,a,l,s,n,h,C;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,c.Z)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,c.Z)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,c.Z)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,c.Z)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,c.Z)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,c.Z)(this.primaryColor,{h:210}),this.cScale9=this.cScale9||(0,c.Z)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,c.Z)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,c.Z)(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,u.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,u.Z)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.Z)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.Z)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||(0,c.Z)(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||(0,c.Z)(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||(0,c.Z)(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||(0,d.Z)(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||(0,d.Z)(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,g.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,c.Z)(this.primaryColor,{h:64}),this.fillType3=(0,c.Z)(this.secondaryColor,{h:64}),this.fillType4=(0,c.Z)(this.primaryColor,{h:-64}),this.fillType5=(0,c.Z)(this.secondaryColor,{h:-64}),this.fillType6=(0,c.Z)(this.primaryColor,{h:128}),this.fillType7=(0,c.Z)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,c.Z)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,c.Z)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,c.Z)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,c.Z)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,c.Z)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,c.Z)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,c.Z)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,c.Z)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,c.Z)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,c.Z)(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,c.Z)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,c.Z)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,c.Z)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,c.Z)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,c.Z)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,c.Z)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.Z)(this.quadrant1Fill)?(0,g.Z)(this.quadrant1Fill):(0,u.Z)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(t=this.xyChart)?void 0:t.backgroundColor)||this.background,titleColor:(null==(i=this.xyChart)?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(e=this.xyChart)?void 0:e.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(r=this.xyChart)?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(l=this.xyChart)?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(n=this.xyChart)?void 0:n.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(h=this.xyChart)?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,c.Z)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,c.Z)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,c.Z)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,c.Z)(this.primaryColor,{h:60}),this.git7=this.git7||(0,c.Z)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,g.Z)(this.git0,25),this.git1=(0,g.Z)(this.git1,25),this.git2=(0,g.Z)(this.git2,25),this.git3=(0,g.Z)(this.git3,25),this.git4=(0,g.Z)(this.git4,25),this.git5=(0,g.Z)(this.git5,25),this.git6=(0,g.Z)(this.git6,25),this.git7=(0,g.Z)(this.git7,25)):(this.git0=(0,u.Z)(this.git0,25),this.git1=(0,u.Z)(this.git1,25),this.git2=(0,u.Z)(this.git2,25),this.git3=(0,u.Z)(this.git3,25),this.git4=(0,u.Z)(this.git4,25),this.git5=(0,u.Z)(this.git5,25),this.git6=(0,u.Z)(this.git6,25),this.git7=(0,u.Z)(this.git7,25)),this.gitInv0=this.gitInv0||(0,u.Z)((0,d.Z)(this.git0),25),this.gitInv1=this.gitInv1||(0,d.Z)(this.git1),this.gitInv2=this.gitInv2||(0,d.Z)(this.git2),this.gitInv3=this.gitInv3||(0,d.Z)(this.git3),this.gitInv4=this.gitInv4||(0,d.Z)(this.git4),this.gitInv5=this.gitInv5||(0,d.Z)(this.git5),this.gitInv6=this.gitInv6||(0,d.Z)(this.git6),this.gitInv7=this.gitInv7||(0,d.Z)(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||(0,d.Z)(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||(0,d.Z)(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||W,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(t){if("object"!=typeof t){this.updateColors();return}let i=Object.keys(t);i.forEach(i=>{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,c.Z)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,c.Z)(this.primaryColor,{h:-160}),this.primaryBorderColor=z(this.primaryColor,this.darkMode),this.secondaryBorderColor=z(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=z(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,d.Z)(this.primaryColor),this.secondaryTextColor=(0,d.Z)(this.secondaryColor),this.tertiaryTextColor=(0,d.Z)(this.tertiaryColor),this.lineColor=(0,d.Z)(this.background),this.textColor=(0,d.Z)(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=(0,C.Z)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}},N=t=>{let i=new R;return i.calculate(t),i},Y=class{updateColors(){var t,i,e,r,o,a,l,s,n,h,C;this.actorBorder=(0,u.Z)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,c.Z)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,c.Z)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,c.Z)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,c.Z)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,c.Z)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,c.Z)(this.primaryColor,{h:210}),this.cScale9=this.cScale9||(0,c.Z)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,c.Z)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,c.Z)(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,u.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,u.Z)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.Z)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.Z)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||(0,c.Z)(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||(0,c.Z)(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||(0,c.Z)(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,c.Z)(this.primaryColor,{h:64}),this.fillType3=(0,c.Z)(this.secondaryColor,{h:64}),this.fillType4=(0,c.Z)(this.primaryColor,{h:-64}),this.fillType5=(0,c.Z)(this.secondaryColor,{h:-64}),this.fillType6=(0,c.Z)(this.primaryColor,{h:128}),this.fillType7=(0,c.Z)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,c.Z)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,c.Z)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,c.Z)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,c.Z)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,c.Z)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,c.Z)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,c.Z)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,c.Z)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,c.Z)(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,c.Z)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,c.Z)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,c.Z)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,c.Z)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,c.Z)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,c.Z)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.Z)(this.quadrant1Fill)?(0,g.Z)(this.quadrant1Fill):(0,u.Z)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(t=this.xyChart)?void 0:t.backgroundColor)||this.background,titleColor:(null==(i=this.xyChart)?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(e=this.xyChart)?void 0:e.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(r=this.xyChart)?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(l=this.xyChart)?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(n=this.xyChart)?void 0:n.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(h=this.xyChart)?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,c.Z)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,c.Z)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,c.Z)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,c.Z)(this.primaryColor,{h:60}),this.git7=this.git7||(0,c.Z)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,g.Z)(this.git0,25),this.git1=(0,g.Z)(this.git1,25),this.git2=(0,g.Z)(this.git2,25),this.git3=(0,g.Z)(this.git3,25),this.git4=(0,g.Z)(this.git4,25),this.git5=(0,g.Z)(this.git5,25),this.git6=(0,g.Z)(this.git6,25),this.git7=(0,g.Z)(this.git7,25)):(this.git0=(0,u.Z)(this.git0,25),this.git1=(0,u.Z)(this.git1,25),this.git2=(0,u.Z)(this.git2,25),this.git3=(0,u.Z)(this.git3,25),this.git4=(0,u.Z)(this.git4,25),this.git5=(0,u.Z)(this.git5,25),this.git6=(0,u.Z)(this.git6,25),this.git7=(0,u.Z)(this.git7,25)),this.gitInv0=this.gitInv0||(0,d.Z)(this.git0),this.gitInv1=this.gitInv1||(0,d.Z)(this.git1),this.gitInv2=this.gitInv2||(0,d.Z)(this.git2),this.gitInv3=this.gitInv3||(0,d.Z)(this.git3),this.gitInv4=this.gitInv4||(0,d.Z)(this.git4),this.gitInv5=this.gitInv5||(0,d.Z)(this.git5),this.gitInv6=this.gitInv6||(0,d.Z)(this.git6),this.gitInv7=this.gitInv7||(0,d.Z)(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||(0,d.Z)(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||(0,d.Z)(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||W,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(t){if("object"!=typeof t){this.updateColors();return}let i=Object.keys(t);i.forEach(i=>{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,g.Z)("#cde498",10),this.primaryBorderColor=z(this.primaryColor,this.darkMode),this.secondaryBorderColor=z(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=z(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,d.Z)(this.primaryColor),this.secondaryTextColor=(0,d.Z)(this.secondaryColor),this.tertiaryTextColor=(0,d.Z)(this.primaryColor),this.lineColor=(0,d.Z)(this.background),this.textColor=(0,d.Z)(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"}};class H{updateColors(){var t,i,e,r,o,a,l,s,n,h,C;this.secondBkg=(0,g.Z)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,g.Z)(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 t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||(0,d.Z)(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,g.Z)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.Z)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||(0,c.Z)(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||(0,c.Z)(this.mainBkg,{l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=(0,g.Z)(this.contrast,30),this.sectionBkgColor2=(0,g.Z)(this.contrast,30),this.taskBorderColor=(0,u.Z)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,g.Z)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,u.Z)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,c.Z)(this.primaryColor,{h:64}),this.fillType3=(0,c.Z)(this.secondaryColor,{h:64}),this.fillType4=(0,c.Z)(this.primaryColor,{h:-64}),this.fillType5=(0,c.Z)(this.secondaryColor,{h:-64}),this.fillType6=(0,c.Z)(this.primaryColor,{h:128}),this.fillType7=(0,c.Z)(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,c.Z)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,c.Z)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,c.Z)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,c.Z)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,c.Z)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,c.Z)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.Z)(this.quadrant1Fill)?(0,g.Z)(this.quadrant1Fill):(0,u.Z)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(t=this.xyChart)?void 0:t.backgroundColor)||this.background,titleColor:(null==(i=this.xyChart)?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(e=this.xyChart)?void 0:e.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(r=this.xyChart)?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(o=this.xyChart)?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(l=this.xyChart)?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(n=this.xyChart)?void 0:n.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(h=this.xyChart)?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,u.Z)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||(0,c.Z)(this.primaryColor,{h:-30}),this.git4=this.pie5||(0,c.Z)(this.primaryColor,{h:-60}),this.git5=this.pie6||(0,c.Z)(this.primaryColor,{h:-90}),this.git6=this.pie7||(0,c.Z)(this.primaryColor,{h:60}),this.git7=this.pie8||(0,c.Z)(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||(0,d.Z)(this.git0),this.gitInv1=this.gitInv1||(0,d.Z)(this.git1),this.gitInv2=this.gitInv2||(0,d.Z)(this.git2),this.gitInv3=this.gitInv3||(0,d.Z)(this.git3),this.gitInv4=this.gitInv4||(0,d.Z)(this.git4),this.gitInv5=this.gitInv5||(0,d.Z)(this.git5),this.gitInv6=this.gitInv6||(0,d.Z)(this.git6),this.gitInv7=this.gitInv7||(0,d.Z)(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||W,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(t){if("object"!=typeof t){this.updateColors();return}let i=Object.keys(t);i.forEach(i=>{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,g.Z)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,c.Z)(this.primaryColor,{h:-160}),this.primaryBorderColor=z(this.primaryColor,this.darkMode),this.secondaryBorderColor=z(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=z(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,d.Z)(this.primaryColor),this.secondaryTextColor=(0,d.Z)(this.secondaryColor),this.tertiaryTextColor=(0,d.Z)(this.tertiaryColor),this.lineColor=(0,d.Z)(this.background),this.textColor=(0,d.Z)(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"}}let V={base:{getThemeVariables:t=>{let i=new P;return i.calculate(t),i}},dark:{getThemeVariables:t=>{let i=new j;return i.calculate(t),i}},default:{getThemeVariables:N},forest:{getThemeVariables:t=>{let i=new Y;return i.calculate(t),i}},neutral:{getThemeVariables:t=>{let i=new H;return i.calculate(t),i}}},U={flowchart:{useMaxWidth:!0,titleTopMargin:25,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,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:""},theme:"default",maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,fontSize:16},G={...U,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:V.default.getThemeVariables(),sequence:{...U.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:{...U.gantt,tickInterval:void 0,useWidth:void 0},c4:{...U.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:{...U.pie,useWidth:984},xyChart:{...U.xyChart,useWidth:void 0},requirement:{...U.requirement,useWidth:void 0},gitGraph:{...U.gitGraph,useMaxWidth:!1},sankey:{...U.sankey,useMaxWidth:!1}},X=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((e,r)=>Array.isArray(t[r])?e:"object"==typeof t[r]&&null!==t[r]?[...e,i+r,...X(t[r],"")]:[...e,i+r],[])},$=new Set(X(G,"")),J=G,K=t=>{if(T.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t){if(Array.isArray(t)){t.forEach(t=>K(t));return}for(let i of Object.keys(t)){if(T.debug("Checking key",i),i.startsWith("__")||i.includes("proto")||i.includes("constr")||!$.has(i)||null==t[i]){T.debug("sanitize deleting key: ",i),delete t[i];continue}if("object"==typeof t[i]){T.debug("sanitizing object",i),K(t[i]);continue}for(let e of["themeCSS","fontFamily","altFontFamily"])i.includes(e)&&(T.debug("sanitizing css option",i),t[i]=Q(t[i]))}if(t.themeVariables)for(let i of Object.keys(t.themeVariables)){let e=t.themeVariables[i];(null==e?void 0:e.match)&&!e.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[i]="")}T.debug("After sanitization",t)}},Q=t=>{let i=0,e=0;for(let r of t){if(i<e)return"{ /* ERROR: Unbalanced CSS */ }";"{"===r?i++:"}"===r&&e++}return i!==e?"{ /* ERROR: Unbalanced CSS */ }":t},tt=RegExp("^-{3}\\s*[\\n\\r](.*?)[\\n\\r]-{3}\\s*[\\n\\r]+","s"),ti=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,te=/\s*%%.*\n/gm;class tr extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}let to={},ta=function(t,i){for(let[e,{detector:r}]of(t=t.replace(tt,"").replace(ti,"").replace(te,"\n"),Object.entries(to)))if(r(t,i))return e;throw new tr("No diagram type detected matching given configuration for text: ".concat(t))},tl=function(){for(var t=arguments.length,i=Array(t),e=0;e<t;e++)i[e]=arguments[e];for(let{id:t,detector:e,loader:r}of i)ts(t,e,r)},ts=(t,i,e)=>{to[t]?T.error("Detector with key ".concat(t," already exists")):to[t]={detector:i,loader:e},T.debug("Detector with key ".concat(t," added").concat(e?" with loader":""))},tn=t=>to[t].loader,th=function(t,i){let{depth:e=2,clobber:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={depth:e,clobber:r};return Array.isArray(i)&&!Array.isArray(t)?(i.forEach(i=>th(t,i,o)),t):Array.isArray(i)&&Array.isArray(t)?(i.forEach(i=>{t.includes(i)||t.push(i)}),t):void 0===t||e<=0?null!=t&&"object"==typeof t&&"object"==typeof i?Object.assign(t,i):i:(void 0!==i&&"object"==typeof t&&"object"==typeof i&&Object.keys(i).forEach(o=>{"object"==typeof i[o]&&(void 0===t[o]||"object"==typeof t[o])?(void 0===t[o]&&(t[o]=Array.isArray(i[o])?[]:{}),t[o]=th(t[o],i[o],{depth:e-1,clobber:r})):(r||"object"!=typeof t[o]&&"object"!=typeof i[o])&&(t[o]=i[o])}),t)},tc=th,td="​",tu={curveBasis:n.$0Z,curveBasisClosed:n.Dts,curveBasisOpen:n.WQY,curveBumpX:n.qpX,curveBumpY:n.u93,curveBundle:n.tFB,curveCardinalClosed:n.OvA,curveCardinalOpen:n.dCK,curveCardinal:n.YY7,curveCatmullRomClosed:n.fGX,curveCatmullRomOpen:n.$m7,curveCatmullRom:n.zgE,curveLinear:n.c_6,curveLinearClosed:n.fxm,curveMonotoneX:n.FdL,curveMonotoneY:n.ak_,curveNatural:n.SxZ,curveStep:n.eA_,curveStepAfter:n.jsv,curveStepBefore:n.iJ},tg=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tp=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{let e;let r=RegExp("[%]{2}(?![{]".concat(tg.source,")(?=[}][%]{2}).*\n"),"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),T.debug("Detecting diagram directive".concat(null!==i?" type:"+i:""," based on the text:").concat(t));let o=[];for(;null!==(e=ti.exec(t));)if(e.index===ti.lastIndex&&ti.lastIndex++,e&&!i||i&&e[1]&&e[1].match(i)||i&&e[2]&&e[2].match(i)){let t=e[1]?e[1]:e[2],i=e[3]?e[3].trim():e[4]?JSON.parse(e[4].trim()):null;o.push({type:t,args:i})}if(0===o.length)return{type:t,args:null};return 1===o.length?o[0]:o}catch(e){return T.error("ERROR: ".concat(e.message," - Unable to parse directive type: '").concat(i,"' based on the text: '").concat(t,"'")),{type:void 0,args:null}}};function tC(t,i){var e;return t&&null!==(e=tu["curve".concat(t.charAt(0).toUpperCase()+t.slice(1))])&&void 0!==e?e:i}function tm(t,i){return t&&i?Math.sqrt(Math.pow(i.x-t.x,2)+Math.pow(i.y-t.y,2)):0}let tf=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=Math.pow(10,i);return Math.round(t*e)/e},ty=(t,i)=>{let e;let r=i;for(let i of t){if(e){let t=tm(i,e);if(t<r)r-=t;else{let o=r/t;if(o<=0)return e;if(o>=1)return{x:i.x,y:i.y};if(o>0&&o<1)return{x:tf((1-o)*e.x+o*i.x,5),y:tf((1-o)*e.y+o*i.y,5)}}}e=i}throw Error("Could not find a suitable point for the given distance")};function tx(t){let i="",e="";for(let r of t)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?e=e+r+";":i=i+r+";");return{style:i,labelStyle:e}}let tb=0,tk=()=>(tb++,"id-"+Math.random().toString(36).substr(2,12)+"-"+tb),tT=t=>(function(t){let i="",e="0123456789abcdef",r=e.length;for(let o=0;o<t;o++)i+=e.charAt(Math.floor(Math.random()*r));return i})(t.length),tB=function(t,i){let e=i.text.replace(O.lineBreakRegex," "),[,r]=tZ(i.fontSize),o=t.append("text");o.attr("x",i.x),o.attr("y",i.y),o.style("text-anchor",i.anchor),o.style("font-family",i.fontFamily),o.style("font-size",r),o.style("font-weight",i.fontWeight),o.attr("fill",i.fill),void 0!==i.class&&o.attr("class",i.class);let a=o.append("tspan");return a.attr("x",i.x+2*i.textMargin),a.attr("fill",i.fill),a.text(e),o},tF=(0,m.Z)((t,i,e)=>{if(!t||(e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},e),O.lineBreakRegex.test(t)))return t;let r=t.split(" "),o=[],a="";return r.forEach((t,l)=>{let s=tL("".concat(t," "),e),n=tL(a,e);if(s>i){let{hyphenatedStrings:r,remainingWord:l}=tS(t,i,"-",e);o.push(a,...r),a=l}else n+s>=i?(o.push(a),a=t):a=[a,t].filter(Boolean).join(" ");l+1===r.length&&o.push(a)}),o.filter(t=>""!==t).join(e.joinWith)},(t,i,e)=>"".concat(t).concat(i).concat(e.fontSize).concat(e.fontWeight).concat(e.fontFamily).concat(e.joinWith)),tS=(0,m.Z)(function(t,i){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);let o=[...t],a=[],l="";return o.forEach((t,s)=>{let n="".concat(l).concat(t);if(tL(n,r)>=i){let t=o.length===s+1,i="".concat(n).concat(e);a.push(t?n:i),l=""}else l=n}),{hyphenatedStrings:a,remainingWord:l}},function(t,i){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;return"".concat(t).concat(i).concat(e).concat(r.fontSize).concat(r.fontWeight).concat(r.fontFamily)});function tv(t,i){return t_(t,i).height}function tL(t,i){return t_(t,i).width}let t_=(0,m.Z)((t,i)=>{let{fontSize:e=12,fontFamily:r="Arial",fontWeight:o=400}=i;if(!t)return{width:0,height:0};let[,a]=tZ(e),l=t.split(O.lineBreakRegex),s=[],h=(0,n.Ys)("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let c=h.append("svg");for(let t of["sans-serif",r]){let i=0,e={width:0,height:0,lineHeight:0};for(let r of l){let l={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:""};l.text=r||td;let s=tB(c,l).style("font-size",a).style("font-weight",o).style("font-family",t),n=(s._groups||s)[0][0].getBBox();if(0===n.width&&0===n.height)throw Error("svg element not in render tree");e.width=Math.round(Math.max(e.width,n.width)),i=Math.round(n.height),e.height+=i,e.lineHeight=Math.round(Math.max(e.lineHeight,i))}s.push(e)}c.remove();let d=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[d]},(t,i)=>"".concat(t).concat(i.fontSize).concat(i.fontWeight).concat(i.fontFamily));class tA{constructor(t=!1,i){this.count=0,this.count=i?i.length:0,this.next=t?()=>this.count++:()=>Date.now()}}let tZ=t=>{if("number"==typeof t)return[t,t+"px"];let i=parseInt(null!=t?t:"",10);return Number.isNaN(i)?[void 0,void 0]:t===String(i)?[i,t+"px"]:[i,t]};function tw(t,i){return(0,f.Z)({},t,i)}let tq={assignWithDepth:tc,wrapLabel:tF,calculateTextHeight:tv,calculateTextWidth:tL,calculateTextDimensions:t_,cleanAndMerge:tw,detectInit:function(t,i){let e=tp(t,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(e)){let t=e.map(t=>t.args);K(t),r=tc(r,[...t])}else r=e.args;if(!r)return;let o=ta(t,i),a="config";return void 0!==r[a]&&("flowchart-v2"===o&&(o="flowchart"),r[o]=r[a],delete r[a]),r},detectDirective:tp,isSubstringInArray:function(t,i){for(let[e,r]of i.entries())if(r.match(t))return e;return -1},interpolateToCurve:tC,calcLabelPosition:function(t){let i,e;return 1===t.length?t[0]:(e=0,t.forEach(t=>{e+=tm(t,i),i=t}),ty(t,e/2))},calcCardinalityPosition:(t,i,e)=>{T.info("our points ".concat(JSON.stringify(i))),i[0]!==e&&(i=i.reverse());let r=ty(i,25),o=t?10:5,a=Math.atan2(i[0].y-r.y,i[0].x-r.x),l={x:0,y:0};return l.x=Math.sin(a)*o+(i[0].x+r.x)/2,l.y=-Math.cos(a)*o+(i[0].y+r.y)/2,l},calcTerminalLabelPosition:function(t,i,e){let r=structuredClone(e);T.info("our points",r),"start_left"!==i&&"start_right"!==i&&r.reverse();let o=ty(r,25+t),a=10+.5*t,l=Math.atan2(r[0].y-o.y,r[0].x-o.x),s={x:0,y:0};return"start_left"===i?(s.x=Math.sin(l+Math.PI)*a+(r[0].x+o.x)/2,s.y=-Math.cos(l+Math.PI)*a+(r[0].y+o.y)/2):"end_right"===i?(s.x=Math.sin(l-Math.PI)*a+(r[0].x+o.x)/2-5,s.y=-Math.cos(l-Math.PI)*a+(r[0].y+o.y)/2-5):"end_left"===i?(s.x=Math.sin(l)*a+(r[0].x+o.x)/2-5,s.y=-Math.cos(l)*a+(r[0].y+o.y)/2-5):(s.x=Math.sin(l)*a+(r[0].x+o.x)/2,s.y=-Math.cos(l)*a+(r[0].y+o.y)/2),s},formatUrl:function(t,i){let e=t.trim();return e?"loose"!==i.securityLevel?(0,s.Nm)(e):e:void 0},getStylesFromArray:tx,generateId:tk,random:tT,runFunc:function(t){for(var i=arguments.length,e=Array(i>1?i-1:0),r=1;r<i;r++)e[r-1]=arguments[r];let o=t.split("."),a=o.length-1,l=o[a],s=window;for(let i=0;i<a;i++)if(!(s=s[o[i]])){T.error("Function name: ".concat(t," not found in window"));return}s[l](...e)},entityDecode:function(t){return r=r||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),r.innerHTML=t,unescape(r.textContent)},insertTitle:(t,i,e,r)=>{var o;if(!r)return;let a=null==(o=t.node())?void 0:o.getBBox();a&&t.append("text").text(r).attr("x",a.x+a.width/2).attr("y",-e).attr("class",i)},parseFontSize:tZ,InitIDGenerator:tA},tI="10.6.1",tM=Object.freeze(J),tE=tc({},tM),tO=[],tz=tc({},tM),tW=(t,i)=>{let e=tc({},t),r={};for(let t of i)tY(t),r=tc(r,t);if(e=tc(e,r),r.theme&&r.theme in V){let t=tc({},o),i=tc(t.themeVariables||{},r.themeVariables);e.theme&&e.theme in V&&(e.themeVariables=V[e.theme].getThemeVariables(i))}return t$(tz=e),tz},tD=t=>(tE=tc({},tM),tE=tc(tE,t),t.theme&&V[t.theme]&&(tE.themeVariables=V[t.theme].getThemeVariables(t.themeVariables)),tW(tE,tO),tE),tP=t=>{o=tc({},t)},tj=()=>tc({},tE),tR=t=>(t$(t),tc(tz,t),tN()),tN=()=>tc({},tz),tY=t=>{var i;t&&(["secure",...null!==(i=tE.secure)&&void 0!==i?i:[]].forEach(i=>{Object.hasOwn(t,i)&&(T.debug("Denied attempt to modify a secure key ".concat(i),t[i]),delete t[i])}),Object.keys(t).forEach(i=>{i.startsWith("__")&&delete t[i]}),Object.keys(t).forEach(i=>{"string"==typeof t[i]&&(t[i].includes("<")||t[i].includes(">")||t[i].includes("url(data:"))&&delete t[i],"object"==typeof t[i]&&tY(t[i])}))},tH=t=>{K(t),!t.fontFamily||t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily}),tO.push(t),tW(tE,tO)},tV=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tE;tW(t,tO=[])},tU={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},tG={},tX=t=>{tG[t]||(T.warn(tU[t]),tG[t]=!0)},t$=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&tX("LAZY_LOAD_DEPRECATED")},tJ={id:"c4",detector:t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),loader:async()=>{let{diagram:t}=await Promise.all([e.e(7109),e.e(5440)]).then(e.bind(e,47976));return{id:"c4",diagram:t}}},tK="flowchart",tQ=async()=>{let{diagram:t}=await Promise.all([e.e(6425),e.e(3549),e.e(5883),e.e(9490),e.e(8565)]).then(e.bind(e,48565));return{id:tK,diagram:t}},t0={id:tK,detector:(t,i)=>{var e,r;return(null==(e=null==i?void 0:i.flowchart)?void 0:e.defaultRenderer)!=="dagre-wrapper"&&(null==(r=null==i?void 0:i.flowchart)?void 0:r.defaultRenderer)!=="elk"&&/^\s*graph/.test(t)},loader:tQ},t1="flowchart-v2",t2=async()=>{let{diagram:t}=await Promise.all([e.e(6425),e.e(3549),e.e(5883),e.e(9490),e.e(1360)]).then(e.bind(e,21360));return{id:t1,diagram:t}},t5={id:t1,detector:(t,i)=>{var e,r,o;return(null==(e=null==i?void 0:i.flowchart)?void 0:e.defaultRenderer)!=="dagre-d3"&&(null==(r=null==i?void 0:i.flowchart)?void 0:r.defaultRenderer)!=="elk"&&(!!/^\s*graph/.test(t)&&(null==(o=null==i?void 0:i.flowchart)?void 0:o.defaultRenderer)==="dagre-wrapper"||/^\s*flowchart/.test(t))},loader:t2},t3={id:"er",detector:t=>/^\s*erDiagram/.test(t),loader:async()=>{let{diagram:t}=await Promise.all([e.e(6425),e.e(2167)]).then(e.bind(e,82167));return{id:"er",diagram:t}}},t6="gitGraph",t4=async()=>{let{diagram:t}=await e.e(351).then(e.bind(e,80351));return{id:t6,diagram:t}},t8={id:t6,detector:t=>/^\s*gitGraph/.test(t),loader:t4},t9="gantt",t7=async()=>{let{diagram:t}=await e.e(4300).then(e.bind(e,74300));return{id:t9,diagram:t}},it={id:t9,detector:t=>/^\s*gantt/.test(t),loader:t7},ii="info",ie=async()=>{let{diagram:t}=await e.e(862).then(e.bind(e,70862));return{id:ii,diagram:t}},ir={id:ii,detector:t=>/^\s*info/.test(t),loader:ie},io={id:"pie",detector:t=>/^\s*pie/.test(t),loader:async()=>{let{diagram:t}=await e.e(2974).then(e.bind(e,22974));return{id:"pie",diagram:t}}},ia="quadrantChart",il=async()=>{let{diagram:t}=await e.e(8991).then(e.bind(e,78991));return{id:ia,diagram:t}},is={id:ia,detector:t=>/^\s*quadrantChart/.test(t),loader:il},ih="xychart",ic=async()=>{let{diagram:t}=await e.e(5860).then(e.bind(e,95860));return{id:ih,diagram:t}},id={id:ih,detector:t=>/^\s*xychart-beta/.test(t),loader:ic},iu="requirement",ig=async()=>{let{diagram:t}=await Promise.all([e.e(6425),e.e(8087)]).then(e.bind(e,78087));return{id:iu,diagram:t}},ip={id:iu,detector:t=>/^\s*requirement(Diagram)?/.test(t),loader:ig},iC="sequence",im=async()=>{let{diagram:t}=await Promise.all([e.e(3486),e.e(2659)]).then(e.bind(e,85216));return{id:iC,diagram:t}},iy={id:iC,detector:t=>/^\s*sequenceDiagram/.test(t),loader:im},ix="class",ib=async()=>{let{diagram:t}=await Promise.all([e.e(6425),e.e(3627),e.e(998)]).then(e.bind(e,70998));return{id:ix,diagram:t}},ik={id:ix,detector:(t,i)=>{var e;return(null==(e=null==i?void 0:i.class)?void 0:e.defaultRenderer)!=="dagre-wrapper"&&/^\s*classDiagram/.test(t)},loader:ib},iT="classDiagram",iB=async()=>{let{diagram:t}=await Promise.all([e.e(6425),e.e(3549),e.e(5883),e.e(3627),e.e(1898)]).then(e.bind(e,41898));return{id:iT,diagram:t}},iF={id:iT,detector:(t,i)=>{var e;return!!/^\s*classDiagram/.test(t)&&(null==(e=null==i?void 0:i.class)?void 0:e.defaultRenderer)==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t)},loader:iB},iS="state",iv=async()=>{let{diagram:t}=await Promise.all([e.e(6425),e.e(1421),e.e(2428)]).then(e.bind(e,22428));return{id:iS,diagram:t}},iL={id:iS,detector:(t,i)=>{var e;return(null==(e=null==i?void 0:i.state)?void 0:e.defaultRenderer)!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t)},loader:iv},i_="stateDiagram",iA=async()=>{let{diagram:t}=await Promise.all([e.e(6425),e.e(3549),e.e(5883),e.e(1421),e.e(7491)]).then(e.bind(e,17491));return{id:i_,diagram:t}},iZ={id:i_,detector:(t,i)=>{var e;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&(null==(e=null==i?void 0:i.state)?void 0:e.defaultRenderer)==="dagre-wrapper")},loader:iA},iw="journey",iq=async()=>{let{diagram:t}=await e.e(4298).then(e.bind(e,74298));return{id:iw,diagram:t}},iI={id:iw,detector:t=>/^\s*journey/.test(t),loader:iq},iM=function(t,i){for(let e of i)t.attr(e[0],e[1])},iE=function(t,i,e){let r=new Map;return e?(r.set("width","100%"),r.set("style","max-width: ".concat(i,"px;"))):(r.set("height",t),r.set("width",i)),r},iO=function(t,i,e,r){iM(t,iE(i,e,r))},iz=function(t,i,e,r){let o=i.node().getBBox(),a=o.width,l=o.height;T.info("SVG bounds: ".concat(a,"x").concat(l),o);let s=0,n=0;T.info("Graph bounds: ".concat(s,"x").concat(n),t),s=a+2*e,n=l+2*e,T.info("Calculated bounds: ".concat(s,"x").concat(n)),iO(i,n,s,r);let h="".concat(o.x-e," ").concat(o.y-e," ").concat(o.width+2*e," ").concat(o.height+2*e);i.attr("viewBox",h)},iW={},iD=(t,i)=>{void 0!==i&&(iW[t]=i)},iP=(t,i,e)=>{let r="";return t in iW&&iW[t]?r=iW[t](e):T.warn("No theme found for ".concat(t))," & {\n    font-family: ".concat(e.fontFamily,";\n    font-size: ").concat(e.fontSize,";\n    fill: ").concat(e.textColor,"\n  }\n\n  /* Classes common for multiple diagrams */\n\n  & .error-icon {\n    fill: ").concat(e.errorBkgColor,";\n  }\n  & .error-text {\n    fill: ").concat(e.errorTextColor,";\n    stroke: ").concat(e.errorTextColor,";\n  }\n\n  & .edge-thickness-normal {\n    stroke-width: 2px;\n  }\n  & .edge-thickness-thick {\n    stroke-width: 3.5px\n  }\n  & .edge-pattern-solid {\n    stroke-dasharray: 0;\n  }\n\n  & .edge-pattern-dashed{\n    stroke-dasharray: 3;\n  }\n  .edge-pattern-dotted {\n    stroke-dasharray: 2;\n  }\n\n  & .marker {\n    fill: ").concat(e.lineColor,";\n    stroke: ").concat(e.lineColor,";\n  }\n  & .marker.cross {\n    stroke: ").concat(e.lineColor,";\n  }\n\n  & svg {\n    font-family: ").concat(e.fontFamily,";\n    font-size: ").concat(e.fontSize,";\n  }\n\n  ").concat(r,"\n\n  ").concat(i,"\n")},ij="",iR="",iN="",iY=t=>_(t,tN()),iH=()=>{ij="",iN="",iR=""},iV=t=>{ij=iY(t).replace(/^\s+/g,"")},iU=()=>ij,iG=t=>{iN=iY(t).replace(/\n\s+/g,"\n")},iX=()=>iN,i$=t=>{iR=iY(t)},iJ=()=>iR,iK=Object.freeze(Object.defineProperty({__proto__:null,clear:iH,getAccDescription:iX,getAccTitle:iU,getDiagramTitle:iJ,setAccDescription:iG,setAccTitle:iV,setDiagramTitle:i$},Symbol.toStringTag,{value:"Module"})),iQ=tN,i0=tR,i1=tM,i2=t=>_(t,iQ()),i5=iz,i3=()=>iK,i6={},i4=(t,i,e)=>{var r;if(i6[t])throw Error("Diagram ".concat(t," already registered."));i6[t]=i,e&&ts(t,e),iD(t,i.styles),null==(r=i.injectUtils)||r.call(i,T,B,iQ,i2,i5,i3(),()=>{})},i8=t=>{if(t in i6)return i6[t];throw new i9(t)};class i9 extends Error{constructor(t){super("Diagram ".concat(t," not found."))}}let i7=t=>{var i,e;let{securityLevel:r}=iQ(),o=(0,n.Ys)("body");if("sandbox"===r){let r=null!==(e=null==(i=(0,n.Ys)("#i".concat(t)).node())?void 0:i.contentDocument)&&void 0!==e?e:document;o=(0,n.Ys)(r.body)}return o.select("#".concat(t))},et={draw:(t,i,e)=>{T.debug("renering svg for syntax error\n");let r=i7(i);r.attr("viewBox","0 0 2412 512"),iO(r,100,512,!0);let o=r.append("g");o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version ".concat(e))}},ei={db:{},renderer:et,parser:{parser:{yy:{}},parse:()=>{}}},ee="flowchart-elk",er=async()=>{let{diagram:t}=await Promise.all([e.e(2619),e.e(3549),e.e(9490),e.e(9480)]).then(e.bind(e,79480));return{id:ee,diagram:t}},eo={id:ee,detector:(t,i)=>{var e;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&(null==(e=null==i?void 0:i.flowchart)?void 0:e.defaultRenderer)==="elk")},loader:er},ea="timeline",el=async()=>{let{diagram:t}=await e.e(4517).then(e.bind(e,64517));return{id:ea,diagram:t}},es={id:ea,detector:t=>/^\s*timeline/.test(t),loader:el},en="mindmap",eh=async()=>{let{diagram:t}=await Promise.all([e.e(5703),e.e(7906),e.e(4025)]).then(e.bind(e,74025));return{id:en,diagram:t}},ec={id:en,detector:t=>/^\s*mindmap/.test(t),loader:eh},ed="sankey",eu=async()=>{let{diagram:t}=await e.e(5723).then(e.bind(e,35723));return{id:ed,diagram:t}},eg={id:ed,detector:t=>/^\s*sankey-beta/.test(t),loader:eu},ep=!1,eC=()=>{ep||(ep=!0,i4("error",ei,t=>"error"===t.toLowerCase().trim()),i4("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw 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("---")),tl(tJ,iF,ik,t3,it,ir,io,ip,iy,eo,t5,t0,ec,es,t8,iZ,iL,iI,is,eg,id))};class em{parse(){var t,i,e,r,o;if(this.detectError)throw this.detectError;null==(i=(t=this.db).clear)||i.call(t);let a=tN();null==(e=this.init)||e.call(this,a),this.metadata.title&&(null==(o=(r=this.db).setDiagramTitle)||o.call(r,this.metadata.title)),this.parser.parse(this.text)}async render(t,i){await this.renderer.draw(this.text,t,i,this)}getParser(){return this.parser}getType(){return this.type}constructor(t,i={}){this.text=t,this.metadata=i,this.type="graph",this.text+="\n";let e=tN();try{this.type=ta(t,e)}catch(t){this.type="error",this.detectError=t}let r=i8(this.type);T.debug("Type "+this.type),this.db=r.db,this.renderer=r.renderer,this.parser=r.parser,this.parser.parser.yy=this.db,this.init=r.init,this.parse()}}let ef=async function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=ta(t,tN());try{i8(e)}catch(o){let t=tn(e);if(!t)throw new tr("Diagram ".concat(e," not found."));let{id:i,diagram:r}=await t();i4(i,r)}return new em(t,i)},ey=[],ex=t=>{ey.push(t)},eb=()=>{ey.forEach(t=>{t()}),ey=[]},ek=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function eT(t){return null==t}var eB={isNothing:eT,isObject:function(t){return"object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:eT(t)?[]:[t]},repeat:function(t,i){var e,r="";for(e=0;e<i;e+=1)r+=t;return r},isNegativeZero:function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},extend:function(t,i){var e,r,o,a;if(i)for(e=0,r=(a=Object.keys(i)).length;e<r;e+=1)t[o=a[e]]=i[o];return t}};function eF(t,i){var e="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(e+='in "'+t.mark.name+'" '),e+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!i&&t.mark.snippet&&(e+="\n\n"+t.mark.snippet),r+" "+e):r}function eS(t,i){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=i,this.message=eF(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function ev(t,i,e,r,o){var a="",l="",s=Math.floor(o/2)-1;return r-i>s&&(i=r-s+(a=" ... ").length),e-r>s&&(e=r+s-(l=" ...").length),{str:a+t.slice(i,e).replace(/\t/g,"→")+l,pos:r-i+a.length}}function eL(t,i){return eB.repeat(" ",i-t.length)+t}eS.prototype=Object.create(Error.prototype),eS.prototype.constructor=eS,eS.prototype.toString=function(t){return this.name+": "+eF(this,t)};var e_=function(t,i){if(i=Object.create(i||null),!t.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);for(var e=/\r?\n|\r|\0/g,r=[0],o=[],a=-1;l=e.exec(t.buffer);)o.push(l.index),r.push(l.index+l[0].length),t.position<=l.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var l,s,n,h="",c=Math.min(t.line+i.linesAfter,o.length).toString().length,d=i.maxLength-(i.indent+c+3);for(s=1;s<=i.linesBefore&&!(a-s<0);s++)n=ev(t.buffer,r[a-s],o[a-s],t.position-(r[a]-r[a-s]),d),h=eB.repeat(" ",i.indent)+eL((t.line-s+1).toString(),c)+" | "+n.str+"\n"+h;for(n=ev(t.buffer,r[a],o[a],t.position,d),h+=eB.repeat(" ",i.indent)+eL((t.line+1).toString(),c)+" | "+n.str+"\n"+eB.repeat("-",i.indent+c+3+n.pos)+"^\n",s=1;s<=i.linesAfter&&!(a+s>=o.length);s++)n=ev(t.buffer,r[a+s],o[a+s],t.position-(r[a]-r[a+s]),d),h+=eB.repeat(" ",i.indent)+eL((t.line+s+1).toString(),c)+" | "+n.str+"\n";return h.replace(/\n$/,"")},eA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],eZ=["scalar","sequence","mapping"],ew=function(t,i){var e,r;if(Object.keys(i=i||{}).forEach(function(i){if(-1===eA.indexOf(i))throw new eS('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=i,this.tag=t,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(t){return t},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=(e=i.styleAliases||null,r={},null!==e&&Object.keys(e).forEach(function(t){e[t].forEach(function(i){r[String(i)]=t})}),r),-1===eZ.indexOf(this.kind))throw new eS('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function eq(t,i){var e=[];return t[i].forEach(function(t){var i=e.length;e.forEach(function(e,r){e.tag===t.tag&&e.kind===t.kind&&e.multi===t.multi&&(i=r)}),e[i]=t}),e}function eI(t){return this.extend(t)}eI.prototype.extend=function(t){var i=[],e=[];if(t instanceof ew)e.push(t);else if(Array.isArray(t))e=e.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(i=i.concat(t.implicit)),t.explicit&&(e=e.concat(t.explicit));else throw new eS("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(t){if(!(t instanceof ew))throw new eS("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new eS("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new eS("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),e.forEach(function(t){if(!(t instanceof ew))throw new eS("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(eI.prototype);return r.implicit=(this.implicit||[]).concat(i),r.explicit=(this.explicit||[]).concat(e),r.compiledImplicit=eq(r,"implicit"),r.compiledExplicit=eq(r,"explicit"),r.compiledTypeMap=function(){var t,i,e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,i=arguments.length;t<i;t+=1)arguments[t].forEach(r);return e}(r.compiledImplicit,r.compiledExplicit),r};var eM=new eI({explicit:[new ew("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),new ew("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),new ew("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})]}),eE=new ew("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var i=t.length;return 1===i&&"~"===t||4===i&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),eO=new ew("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var i=t.length;return 4===i&&("true"===t||"True"===t||"TRUE"===t)||5===i&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"}),ez=new ew("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var i,e,r,o,a=t.length,l=0,s=!1;if(!a)return!1;if(("-"===(o=t[l])||"+"===o)&&(o=t[++l]),"0"===o){if(l+1===a)return!0;if("b"===(o=t[++l])){for(l++;l<a;l++)if("_"!==(o=t[l])){if("0"!==o&&"1"!==o)return!1;s=!0}return s&&"_"!==o}if("x"===o){for(l++;l<a;l++)if("_"!==(o=t[l])){if(!(48<=(i=t.charCodeAt(l))&&i<=57||65<=i&&i<=70||97<=i&&i<=102))return!1;s=!0}return s&&"_"!==o}if("o"===o){for(l++;l<a;l++)if("_"!==(o=t[l])){if(!(48<=(e=t.charCodeAt(l))&&e<=55))return!1;s=!0}return s&&"_"!==o}}if("_"===o)return!1;for(;l<a;l++)if("_"!==(o=t[l])){if(!(48<=(r=t.charCodeAt(l))&&r<=57))return!1;s=!0}return!!s&&"_"!==o},construct:function(t){var i,e=t,r=1;if(-1!==e.indexOf("_")&&(e=e.replace(/_/g,"")),("-"===(i=e[0])||"+"===i)&&("-"===i&&(r=-1),i=(e=e.slice(1))[0]),"0"===e)return 0;if("0"===i){if("b"===e[1])return r*parseInt(e.slice(2),2);if("x"===e[1])return r*parseInt(e.slice(2),16);if("o"===e[1])return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!eB.isNegativeZero(t)},represent:{binary:function(t){return t>=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"]}}),eW=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),eD=/^[-+]?[0-9]+e/,eP=new ew("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return!!(null!==t&&eW.test(t)&&"_"!==t[t.length-1])},construct:function(t){var i,e;return(e="-"===(i=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(i[0])>=0&&(i=i.slice(1)),".inf"===i)?1===e?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===i?NaN:e*parseFloat(i,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||eB.isNegativeZero(t))},represent:function(t,i){var e;if(isNaN(t))switch(i){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(i){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(i){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(eB.isNegativeZero(t))return"-0.0";return e=t.toString(10),eD.test(e)?e.replace("e",".e"):e},defaultStyle:"lowercase"}),ej=eM.extend({implicit:[eE,eO,ez,eP]}),eR=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),eN=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]))?))?$"),eY=new ew("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==eR.exec(t)||null!==eN.exec(t))},construct:function(t){var i,e,r,o,a,l,s,n,h=0,c=null;if(null===(i=eR.exec(t))&&(i=eN.exec(t)),null===i)throw Error("Date resolve error");if(e=+i[1],r=+i[2]-1,o=+i[3],!i[4])return new Date(Date.UTC(e,r,o));if(a=+i[4],l=+i[5],s=+i[6],i[7]){for(h=i[7].slice(0,3);h.length<3;)h+="0";h=+h}return i[9]&&(c=(60*+i[10]+ +(i[11]||0))*6e4,"-"===i[9]&&(c=-c)),n=new Date(Date.UTC(e,r,o,a,l,s,h)),c&&n.setTime(n.getTime()-c),n},instanceOf:Date,represent:function(t){return t.toISOString()}}),eH=new ew("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),eV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",eU=new ew("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var i,e,r=0,o=t.length;for(e=0;e<o;e++)if(!((i=eV.indexOf(t.charAt(e)))>64)){if(i<0)return!1;r+=6}return r%8==0},construct:function(t){var i,e,r=t.replace(/[\r\n=]/g,""),o=r.length,a=0,l=[];for(i=0;i<o;i++)i%4==0&&i&&(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)),a=a<<6|eV.indexOf(r.charAt(i));return 0==(e=o%4*6)?(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)):18===e?(l.push(a>>10&255),l.push(a>>2&255)):12===e&&l.push(a>>4&255),new Uint8Array(l)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var i,e,r="",o=0,a=t.length;for(i=0;i<a;i++)i%3==0&&i&&(r+=eV[o>>18&63]+eV[o>>12&63]+eV[o>>6&63]+eV[63&o]),o=(o<<8)+t[i];return 0==(e=a%3)?r+=eV[o>>18&63]+eV[o>>12&63]+eV[o>>6&63]+eV[63&o]:2===e?r+=eV[o>>10&63]+eV[o>>4&63]+eV[o<<2&63]+eV[64]:1===e&&(r+=eV[o>>2&63]+eV[o<<4&63]+eV[64]+eV[64]),r}}),eG=Object.prototype.hasOwnProperty,eX=Object.prototype.toString,e$=new ew("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var i,e,r,o,a,l=[];for(i=0,e=t.length;i<e;i+=1){if(r=t[i],a=!1,"[object Object]"!==eX.call(r))return!1;for(o in r)if(eG.call(r,o)){if(a)return!1;a=!0}if(!a||-1!==l.indexOf(o))return!1;l.push(o)}return!0},construct:function(t){return null!==t?t:[]}}),eJ=Object.prototype.toString,eK=new ew("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){var i,e,r,o,a;if(null===t)return!0;for(i=0,a=Array(t.length),e=t.length;i<e;i+=1){if(r=t[i],"[object Object]"!==eJ.call(r)||1!==(o=Object.keys(r)).length)return!1;a[i]=[o[0],r[o[0]]]}return!0},construct:function(t){var i,e,r,o,a;if(null===t)return[];for(i=0,a=Array(t.length),e=t.length;i<e;i+=1)o=Object.keys(r=t[i]),a[i]=[o[0],r[o[0]]];return a}}),eQ=Object.prototype.hasOwnProperty,e0=new ew("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){var i;if(null===t)return!0;for(i in t)if(eQ.call(t,i)&&null!==t[i])return!1;return!0},construct:function(t){return null!==t?t:{}}}),e1=ej.extend({implicit:[eY,eH],explicit:[eU,e$,eK,e0]}),e2=Object.prototype.hasOwnProperty,e5=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,e3=/[\x85\u2028\u2029]/,e6=/[,\[\]\{\}]/,e4=/^(?:!|!!|![a-z\-]+!)$/i,e8=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function e9(t){return Object.prototype.toString.call(t)}function e7(t){return 10===t||13===t}function rt(t){return 9===t||32===t}function ri(t){return 9===t||32===t||10===t||13===t}function re(t){return 44===t||91===t||93===t||123===t||125===t}function rr(t){return 48===t?"\x00":97===t?"\x07":98===t?"\b":116===t?"	":9===t?"	":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"\x85":95===t?"\xa0":76===t?"\u2028":80===t?"\u2029":""}for(var ro=Array(256),ra=Array(256),rl=0;rl<256;rl++)ro[rl]=rr(rl)?1:0,ra[rl]=rr(rl);function rs(t,i){this.input=t,this.filename=i.filename||null,this.schema=i.schema||e1,this.onWarning=i.onWarning||null,this.legacy=i.legacy||!1,this.json=i.json||!1,this.listener=i.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function rn(t,i){var e={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return e.snippet=e_(e),new eS(i,e)}function rh(t,i){throw rn(t,i)}function rc(t,i){t.onWarning&&t.onWarning.call(null,rn(t,i))}var rd={YAML:function(t,i,e){var r,o,a;null!==t.version&&rh(t,"duplication of %YAML directive"),1!==e.length&&rh(t,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(e[0]))&&rh(t,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),a=parseInt(r[2],10),1!==o&&rh(t,"unacceptable YAML version of the document"),t.version=e[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&rc(t,"unsupported YAML version of the document")},TAG:function(t,i,e){var r,o;2!==e.length&&rh(t,"TAG directive accepts exactly two arguments"),r=e[0],o=e[1],e4.test(r)||rh(t,"ill-formed tag handle (first argument) of the TAG directive"),e2.call(t.tagMap,r)&&rh(t,'there is a previously declared suffix for "'+r+'" tag handle'),e8.test(o)||rh(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(i){rh(t,"tag prefix is malformed: "+o)}t.tagMap[r]=o}};function ru(t,i,e,r){var o,a,l,s;if(i<e){if(s=t.input.slice(i,e),r)for(o=0,a=s.length;o<a;o+=1)9===(l=s.charCodeAt(o))||32<=l&&l<=1114111||rh(t,"expected valid JSON character");else e5.test(s)&&rh(t,"the stream contains non-printable characters");t.result+=s}}function rg(t,i,e,r){var o,a,l,s;for(eB.isObject(e)||rh(t,"cannot merge mappings; the provided source object is unacceptable"),l=0,s=(o=Object.keys(e)).length;l<s;l+=1)a=o[l],e2.call(i,a)||(i[a]=e[a],r[a]=!0)}function rp(t,i,e,r,o,a,l,s,n){var h,c;if(Array.isArray(o))for(h=0,c=(o=Array.prototype.slice.call(o)).length;h<c;h+=1)Array.isArray(o[h])&&rh(t,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===e9(o[h])&&(o[h]="[object Object]");if("object"==typeof o&&"[object Object]"===e9(o)&&(o="[object Object]"),o=String(o),null===i&&(i={}),"tag:yaml.org,2002:merge"===r){if(Array.isArray(a))for(h=0,c=a.length;h<c;h+=1)rg(t,i,a[h],e);else rg(t,i,a,e)}else!t.json&&!e2.call(e,o)&&e2.call(i,o)&&(t.line=l||t.line,t.lineStart=s||t.lineStart,t.position=n||t.position,rh(t,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(i,o,{configurable:!0,enumerable:!0,writable:!0,value:a}):i[o]=a,delete e[o];return i}function rC(t){var i;10===(i=t.input.charCodeAt(t.position))?t.position++:13===i?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):rh(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function rm(t,i,e){for(var r=0,o=t.input.charCodeAt(t.position);0!==o;){for(;rt(o);)9===o&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),o=t.input.charCodeAt(++t.position);if(i&&35===o)do o=t.input.charCodeAt(++t.position);while(10!==o&&13!==o&&0!==o);if(e7(o))for(rC(t),o=t.input.charCodeAt(t.position),r++,t.lineIndent=0;32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position);else break}return -1!==e&&0!==r&&t.lineIndent<e&&rc(t,"deficient indentation"),r}function rf(t){var i,e=t.position;return!!((45===(i=t.input.charCodeAt(e))||46===i)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,0===(i=t.input.charCodeAt(e))||ri(i)))}function ry(t,i){1===i?t.result+=" ":i>1&&(t.result+=eB.repeat("\n",i-1))}function rx(t,i){var e,r,o=t.tag,a=t.anchor,l=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=l),r=t.input.charCodeAt(t.position);0!==r&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,rh(t,"tab characters must not be used in indentation")),45===r&&ri(t.input.charCodeAt(t.position+1)));){if(s=!0,t.position++,rm(t,!0,-1)&&t.lineIndent<=i){l.push(null),r=t.input.charCodeAt(t.position);continue}if(e=t.line,rb(t,i,3,!1,!0),l.push(t.result),rm(t,!0,-1),r=t.input.charCodeAt(t.position),(t.line===e||t.lineIndent>i)&&0!==r)rh(t,"bad indentation of a sequence entry");else if(t.lineIndent<i)break}return!!s&&(t.tag=o,t.anchor=a,t.kind="sequence",t.result=l,!0)}function rb(t,i,e,r,o){var a,l,s,n,h,c,d,u,g,p=1,C=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=l=s=4===e||3===e,r&&rm(t,!0,-1)&&(C=!0,t.lineIndent>i?p=1:t.lineIndent===i?p=0:t.lineIndent<i&&(p=-1)),1===p)for(;function(t){var i,e,r,o,a=!1,l=!1;if(33!==(o=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&rh(t,"duplication of a tag property"),60===(o=t.input.charCodeAt(++t.position))?(a=!0,o=t.input.charCodeAt(++t.position)):33===o?(l=!0,e="!!",o=t.input.charCodeAt(++t.position)):e="!",i=t.position,a){do o=t.input.charCodeAt(++t.position);while(0!==o&&62!==o);t.position<t.length?(r=t.input.slice(i,t.position),o=t.input.charCodeAt(++t.position)):rh(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!ri(o);)33===o&&(l?rh(t,"tag suffix cannot contain exclamation marks"):(e=t.input.slice(i-1,t.position+1),e4.test(e)||rh(t,"named tag handle cannot contain such characters"),l=!0,i=t.position+1)),o=t.input.charCodeAt(++t.position);r=t.input.slice(i,t.position),e6.test(r)&&rh(t,"tag suffix cannot contain flow indicator characters")}r&&!e8.test(r)&&rh(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(i){rh(t,"tag name is malformed: "+r)}return a?t.tag=r:e2.call(t.tagMap,e)?t.tag=t.tagMap[e]+r:"!"===e?t.tag="!"+r:"!!"===e?t.tag="tag:yaml.org,2002:"+r:rh(t,'undeclared tag handle "'+e+'"'),!0}(t)||function(t){var i,e;if(38!==(e=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&rh(t,"duplication of an anchor property"),e=t.input.charCodeAt(++t.position),i=t.position;0!==e&&!ri(e)&&!re(e);)e=t.input.charCodeAt(++t.position);return t.position===i&&rh(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(i,t.position),!0}(t);)rm(t,!0,-1)?(C=!0,s=a,t.lineIndent>i?p=1:t.lineIndent===i?p=0:t.lineIndent<i&&(p=-1)):s=!1;if(s&&(s=C||o),(1===p||4===e)&&(u=1===e||2===e?i:i+1,g=t.position-t.lineStart,1===p?s&&(rx(t,g)||function(t,i,e){var r,o,a,l,s,n,h,c=t.tag,d=t.anchor,u={},g=Object.create(null),p=null,C=null,m=null,f=!1,y=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=u),h=t.input.charCodeAt(t.position);0!==h;){if(f||-1===t.firstTabInLine||(t.position=t.firstTabInLine,rh(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),a=t.line,(63===h||58===h)&&ri(r))63===h?(f&&(rp(t,u,g,p,C,null,l,s,n),p=C=m=null),y=!0,f=!0,o=!0):f?(f=!1,o=!0):rh(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=r;else{if(l=t.line,s=t.lineStart,n=t.position,!rb(t,e,2,!1,!0))break;if(t.line===a){for(h=t.input.charCodeAt(t.position);rt(h);)h=t.input.charCodeAt(++t.position);if(58===h)ri(h=t.input.charCodeAt(++t.position))||rh(t,"a whitespace character is expected after the key-value separator within a block mapping"),f&&(rp(t,u,g,p,C,null,l,s,n),p=C=m=null),y=!0,f=!1,o=!1,p=t.tag,C=t.result;else{if(!y)return t.tag=c,t.anchor=d,!0;rh(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return t.tag=c,t.anchor=d,!0;rh(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===a||t.lineIndent>i)&&(f&&(l=t.line,s=t.lineStart,n=t.position),rb(t,i,4,!0,o)&&(f?C=t.result:m=t.result),f||(rp(t,u,g,p,C,m,l,s,n),p=C=m=null),rm(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>i)&&0!==h)rh(t,"bad indentation of a mapping entry");else if(t.lineIndent<i)break}return f&&rp(t,u,g,p,C,null,l,s,n),y&&(t.tag=c,t.anchor=d,t.kind="mapping",t.result=u),y}(t,g,u))||function(t,i){var e,r,o,a,l,s,n,h,c,d,u,g,p=!0,C=t.tag,m=t.anchor,f=Object.create(null);if(91===(g=t.input.charCodeAt(t.position)))l=93,h=!1,a=[];else{if(123!==g)return!1;l=125,h=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),g=t.input.charCodeAt(++t.position);0!==g;){if(rm(t,!0,i),(g=t.input.charCodeAt(t.position))===l)return t.position++,t.tag=C,t.anchor=m,t.kind=h?"mapping":"sequence",t.result=a,!0;p?44===g&&rh(t,"expected the node content, but found ','"):rh(t,"missed comma between flow collection entries"),d=c=u=null,s=n=!1,63===g&&ri(t.input.charCodeAt(t.position+1))&&(s=n=!0,t.position++,rm(t,!0,i)),e=t.line,r=t.lineStart,o=t.position,rb(t,i,1,!1,!0),d=t.tag,c=t.result,rm(t,!0,i),g=t.input.charCodeAt(t.position),(n||t.line===e)&&58===g&&(s=!0,g=t.input.charCodeAt(++t.position),rm(t,!0,i),rb(t,i,1,!1,!0),u=t.result),h?rp(t,a,f,d,c,u,e,r,o):s?a.push(rp(t,null,f,d,c,u,e,r,o)):a.push(c),rm(t,!0,i),44===(g=t.input.charCodeAt(t.position))?(p=!0,g=t.input.charCodeAt(++t.position)):p=!1}rh(t,"unexpected end of the stream within a flow collection")}(t,u)?m=!0:(l&&function(t,i){var e,r,o,a,l,s=1,n=!1,h=!1,c=i,d=0,u=!1;if(124===(l=t.input.charCodeAt(t.position)))o=!1;else{if(62!==l)return!1;o=!0}for(t.kind="scalar",t.result="";0!==l;)if(43===(l=t.input.charCodeAt(++t.position))||45===l)1===s?s=43===l?3:2:rh(t,"repeat of a chomping mode identifier");else if((a=48<=(e=l)&&e<=57?e-48:-1)>=0)0===a?rh(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?rh(t,"repeat of an indentation width identifier"):(c=i+a-1,h=!0);else break;if(rt(l)){do l=t.input.charCodeAt(++t.position);while(rt(l));if(35===l)do l=t.input.charCodeAt(++t.position);while(!e7(l)&&0!==l)}for(;0!==l;){for(rC(t),t.lineIndent=0,l=t.input.charCodeAt(t.position);(!h||t.lineIndent<c)&&32===l;)t.lineIndent++,l=t.input.charCodeAt(++t.position);if(!h&&t.lineIndent>c&&(c=t.lineIndent),e7(l)){d++;continue}if(t.lineIndent<c){3===s?t.result+=eB.repeat("\n",n?1+d:d):1===s&&n&&(t.result+="\n");break}for(o?rt(l)?(u=!0,t.result+=eB.repeat("\n",n?1+d:d)):u?(u=!1,t.result+=eB.repeat("\n",d+1)):0===d?n&&(t.result+=" "):t.result+=eB.repeat("\n",d):t.result+=eB.repeat("\n",n?1+d:d),n=!0,h=!0,d=0,r=t.position;!e7(l)&&0!==l;)l=t.input.charCodeAt(++t.position);ru(t,r,t.position,!1)}return!0}(t,u)||function(t,i){var e,r,o;if(39!==(e=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=o=t.position;0!==(e=t.input.charCodeAt(t.position));)if(39===e){if(ru(t,r,t.position,!0),39!==(e=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,o=t.position}else e7(e)?(ru(t,r,o,!0),ry(t,rm(t,!1,i)),r=o=t.position):t.position===t.lineStart&&rf(t)?rh(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);rh(t,"unexpected end of the stream within a single quoted scalar")}(t,u)||function(t,i){var e,r,o,a,l,s,n,h;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,e=r=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return ru(t,e,t.position,!0),t.position++,!0;if(92===s){if(ru(t,e,t.position,!0),e7(s=t.input.charCodeAt(++t.position)))rm(t,!1,i);else if(s<256&&ro[s])t.result+=ra[s],t.position++;else if((l=120===(n=s)?2:117===n?4:85===n?8:0)>0){for(o=l,a=0;o>0;o--)(l=function(t){var i;return 48<=t&&t<=57?t-48:97<=(i=32|t)&&i<=102?i-97+10:-1}(s=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+l:rh(t,"expected hexadecimal character");t.result+=(h=a)<=65535?String.fromCharCode(h):String.fromCharCode((h-65536>>10)+55296,(h-65536&1023)+56320),t.position++}else rh(t,"unknown escape sequence");e=r=t.position}else e7(s)?(ru(t,e,r,!0),ry(t,rm(t,!1,i)),e=r=t.position):t.position===t.lineStart&&rf(t)?rh(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}rh(t,"unexpected end of the stream within a double quoted scalar")}(t,u)?m=!0:function(t){var i,e,r;if(42!==(r=t.input.charCodeAt(t.position)))return!1;for(r=t.input.charCodeAt(++t.position),i=t.position;0!==r&&!ri(r)&&!re(r);)r=t.input.charCodeAt(++t.position);return t.position===i&&rh(t,"name of an alias node must contain at least one character"),e=t.input.slice(i,t.position),e2.call(t.anchorMap,e)||rh(t,'unidentified alias "'+e+'"'),t.result=t.anchorMap[e],rm(t,!0,-1),!0}(t)?(m=!0,(null!==t.tag||null!==t.anchor)&&rh(t,"alias node should not have any properties")):function(t,i,e){var r,o,a,l,s,n,h,c,d=t.kind,u=t.result;if(ri(c=t.input.charCodeAt(t.position))||re(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(ri(r=t.input.charCodeAt(t.position+1))||e&&re(r)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,l=!1;0!==c;){if(58===c){if(ri(r=t.input.charCodeAt(t.position+1))||e&&re(r))break}else if(35===c){if(ri(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&rf(t)||e&&re(c))break;else if(e7(c)){if(s=t.line,n=t.lineStart,h=t.lineIndent,rm(t,!1,-1),t.lineIndent>=i){l=!0,c=t.input.charCodeAt(t.position);continue}t.position=a,t.line=s,t.lineStart=n,t.lineIndent=h;break}l&&(ru(t,o,a,!1),ry(t,t.line-s),o=a=t.position,l=!1),rt(c)||(a=t.position+1),c=t.input.charCodeAt(++t.position)}return ru(t,o,a,!1),!!t.result||(t.kind=d,t.result=u,!1)}(t,u,1===e)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===p&&(m=s&&rx(t,g))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&rh(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),n=0,h=t.implicitTypes.length;n<h;n+=1)if((d=t.implicitTypes[n]).resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(e2.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(n=0,d=null,h=(c=t.typeMap.multi[t.kind||"fallback"]).length;n<h;n+=1)if(t.tag.slice(0,c[n].tag.length)===c[n].tag){d=c[n];break}d||rh(t,"unknown tag !<"+t.tag+">"),null!==t.result&&d.kind!==t.kind&&rh(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):rh(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}var rk=function(t,i){var e=function(t,i){t=String(t),i=i||{},0!==t.length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var e=new rs(t,i),r=t.indexOf("\x00");for(-1!==r&&(e.position=r,rh(e,"null byte is not allowed in input")),e.input+="\x00";32===e.input.charCodeAt(e.position);)e.lineIndent+=1,e.position+=1;for(;e.position<e.length-1;)!function(t){var i,e,r,o,a=t.position,l=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(o=t.input.charCodeAt(t.position))&&(rm(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===o);){for(l=!0,o=t.input.charCodeAt(++t.position),i=t.position;0!==o&&!ri(o);)o=t.input.charCodeAt(++t.position);for(e=t.input.slice(i,t.position),r=[],e.length<1&&rh(t,"directive name must not be less than one character in length");0!==o;){for(;rt(o);)o=t.input.charCodeAt(++t.position);if(35===o){do o=t.input.charCodeAt(++t.position);while(0!==o&&!e7(o));break}if(e7(o))break;for(i=t.position;0!==o&&!ri(o);)o=t.input.charCodeAt(++t.position);r.push(t.input.slice(i,t.position))}0!==o&&rC(t),e2.call(rd,e)?rd[e](t,e,r):rc(t,'unknown document directive "'+e+'"')}if(rm(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,rm(t,!0,-1)):l&&rh(t,"directives end mark is expected"),rb(t,t.lineIndent-1,4,!1,!0),rm(t,!0,-1),t.checkLineBreaks&&e3.test(t.input.slice(a,t.position))&&rc(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&rf(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,rm(t,!0,-1));return}t.position<t.length-1&&rh(t,"end of the stream or a document separator is expected")}(e);return e.documents}(t,i);if(0!==e.length){if(1===e.length)return e[0];throw new eS("expected a single document in the stream, but found more")}};let rT=t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,i,e)=>"<"+i+e.replace(/="([^"]*)"/g,"='$1'")+">"),rB=t=>{let{text:i,metadata:e}=function(t){var i;let e=t.match(tt);if(!e)return{text:t,metadata:{}};let r=null!==(i=rk(e[1],{schema:ej}))&&void 0!==i?i:{};r="object"!=typeof r||Array.isArray(r)?{}:r;let o={};return r.displayMode&&(o.displayMode=r.displayMode.toString()),r.title&&(o.title=r.title.toString()),r.config&&(o.config=r.config),{text:t.slice(e[0].length),metadata:o}}(t),{displayMode:r,title:o,config:a={}}=e;return r&&(a.gantt||(a.gantt={}),a.gantt.displayMode=r),{title:o,config:a,text:i}},rF=t=>{var i;let e=null!==(i=tq.detectInit(t))&&void 0!==i?i:{},r=tq.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(t=>{let{type:i}=t}):(null==r?void 0:r.type)==="wrap"&&(e.wrap=!0),{text:t.replace(ti,""),directive:e}},rS=["foreignobject"],rv=["dominant-baseline"];function rL(t){var i;let e=function(t){let i=rB(rT(t)),e=rF(i.text),r=tw(i.config,e.directive);return{code:t=ek(e.text),title:i.title,config:r}}(t);return tV(),tH(null!==(i=e.config)&&void 0!==i?i:{}),e}let r_=function(t){let i=t;return(i=(i=i.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let i=t.substring(1,t.length-1);return/^\+?\d+$/.test(i)?"fl\xb0\xb0"+i+"\xb6\xdf":"fl\xb0"+i+"\xb6\xdf"})},rA=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},rZ=function(t,i){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return"\n.".concat(t," ").concat(i," { ").concat(e.join(" !important; ")," !important; }")},rw=function(t){var i;let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="";if(void 0!==t.themeCSS&&(r+="\n".concat(t.themeCSS)),void 0!==t.fontFamily&&(r+="\n:root { --mermaid-font-family: ".concat(t.fontFamily,"}")),void 0!==t.altFontFamily&&(r+="\n:root { --mermaid-alt-font-family: ".concat(t.altFontFamily,"}")),!(0,b.Z)(e)){let o=t.htmlLabels||(null==(i=t.flowchart)?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(let t in e){let i=e[t];(0,b.Z)(i.styles)||o.forEach(t=>{r+=rZ(i.id,t,i.styles)}),(0,b.Z)(i.textStyles)||(r+=rZ(i.id,"tspan",i.textStyles))}}return r},rq=(t,i,e,r)=>{let o=iP(i,rw(t,e),t.themeVariables);return(0,y.q)((0,x.MY)("".concat(r,"{").concat(o,"}")),y.P)},rI=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,r=t;return e||i||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(r=rA(r)).replace(/<br>/g,"<br/>")},rM=function(){var t,i;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,o=(null==(i=null==(t=null==r?void 0:r.viewBox)?void 0:t.baseVal)?void 0:i.height)?r.viewBox.baseVal.height+"px":"100%",a=btoa('<body style="margin:0">'+e+"</body>");return'<iframe style="width:'.concat("100%",";height:").concat(o,";").concat("border:0;margin:0;",'" src="data:text/html;base64,').concat(a,'" sandbox="').concat("allow-top-navigation-by-user-activation allow-popups",'">\n  ').concat('The "iframe" tag is not supported by your browser.',"\n</iframe>")},rE=(t,i,e,r,o)=>{let a=t.append("div");a.attr("id",e),r&&a.attr("style",r);let l=a.append("svg").attr("id",i).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return o&&l.attr("xmlns:xlink",o),l.append("g"),t};function rO(t,i){return t.append("iframe").attr("id",i).attr("style","width: 100%; height: 100%;").attr("sandbox","")}let rz=(t,i,e,r)=>{var o,a,l;null==(o=t.getElementById(i))||o.remove(),null==(a=t.getElementById(e))||a.remove(),null==(l=t.getElementById(r))||l.remove()},rW=Object.freeze({render:async function(t,i,e){var r,o,a,l,s,c,d,u,g,p,C;let m,f;eC();let y=rL(i);i=y.code;let x=tN();T.debug(x),i.length>(null!==(d=null==x?void 0:x.maxTextSize)&&void 0!==d?d:5e4)&&(i="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let b="#"+t,k="i"+t,B="d"+t,F="#"+B,S=(0,n.Ys)("body"),v="sandbox"===x.securityLevel,L="loose"===x.securityLevel,_=x.fontFamily;if(void 0!==e){if(e&&(e.innerHTML=""),v){let t=rO((0,n.Ys)(e),k);(S=(0,n.Ys)(t.nodes()[0].contentDocument.body)).node().style.margin=0}else S=(0,n.Ys)(e);rE(S,t,B,"font-family: ".concat(_),"http://www.w3.org/1999/xlink")}else{if(rz(document,t,B,k),v){let t=rO((0,n.Ys)("body"),k);(S=(0,n.Ys)(t.nodes()[0].contentDocument.body)).node().style.margin=0}else S=(0,n.Ys)("body");rE(S,t,B)}i=r_(i);try{m=await ef(i,{title:y.title})}catch(t){m=new em("error"),f=t}let A=S.select(F).node(),Z=m.type,q=A.firstChild,I=q.firstChild,M=rq(x,Z,null==(o=(r=m.renderer).getClasses)?void 0:o.call(r,i,m),b),E=document.createElement("style");E.innerHTML=M,q.insertBefore(E,I);try{await m.renderer.draw(i,t,tI,m)}catch(e){throw et.draw(i,t,tI),e}let O=S.select("".concat(F," svg"));u=Z,g=O,p=null==(l=(a=m.db).getAccTitle)?void 0:l.call(a),C=null==(c=(s=m.db).getAccDescription)?void 0:c.call(s),g.attr("role","graphics-document document"),""!==u&&g.attr("aria-roledescription",u),function(t,i,e,r){if(void 0!==t.insert){if(e){let i="chart-desc-".concat(r);t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(e)}if(i){let e="chart-title-".concat(r);t.attr("aria-labelledby",e),t.insert("title",":first-child").attr("id",e).text(i)}}}(g,p,C,g.attr("id")),S.select('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let z=S.select(F).node().innerHTML;if(T.debug("config.arrowMarkerAbsolute",x.arrowMarkerAbsolute),z=rI(z,v,w(x.arrowMarkerAbsolute)),v?z=rM(z,S.select(F+" svg").node()):L||(z=h.sanitize(z,{ADD_TAGS:rS,ADD_ATTR:rv})),eb(),f)throw f;let W=v?"#"+k:F,D=(0,n.Ys)(W).node();return D&&"remove"in D&&D.remove(),{svg:z,bindFunctions:m.db.bindFunctions}},parse:async function(t,i){eC(),t=rL(t).code;try{await ef(t)}catch(t){if(null==i?void 0:i.suppressErrors)return!1;throw t}return!0},getDiagramFromText:ef,initialize:function(){var t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(null==i?void 0:i.fontFamily)&&!(null==(t=i.themeVariables)?void 0:t.fontFamily)&&(i.themeVariables||(i.themeVariables={}),i.themeVariables.fontFamily=i.fontFamily),tP(i),(null==i?void 0:i.theme)&&i.theme in V?i.themeVariables=V[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=V.default.getThemeVariables(i.themeVariables)),B(("object"==typeof i?tD(i):tj()).logLevel),eC()},getConfig:tN,setConfig:tR,getSiteConfig:tj,updateSiteConfig:t=>(tW(tE=tc(tE,t),tO),tE),reset:()=>{tV()},globalReset:()=>{tV(tM)},defaultConfig:tM});B(tN().logLevel),tV(tN());let rD=async()=>{T.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(to).map(async t=>{let[i,{detector:e,loader:r}]=t;if(r)try{i8(i)}catch(t){try{let{diagram:t,id:i}=await r();i4(i,t,e)}catch(t){throw T.error("Failed to load external diagram with key ".concat(i,". Removing from detectors.")),delete to[i],t}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let i of(T.error("Failed to load ".concat(t.length," external diagrams")),t))T.error(i);throw Error("Failed to load ".concat(t.length," external diagrams"))}},rP=(t,i,e)=>{(T.warn(t),"str"in t)?(e&&e(t.str,t.hash),i.push({...t,message:t.str,error:t})):(e&&e(t),t instanceof Error&&i.push({str:t.message,message:t.message,hash:t.name,error:t}))},rj=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{querySelector:".mermaid"};try{await rR(t)}catch(i){if("str"in i&&T.error(i.str),rK.parseError&&rK.parseError(i),!t.suppressErrors)throw T.error("Use the suppressErrors option to suppress these errors"),i}},rR=async function(){let t,i,{postRenderCallback:e,querySelector:r,nodes:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{querySelector:".mermaid"},l=rW.getConfig();if(T.debug("".concat(e?"":"No ","Callback function found")),o)t=o;else if(r)t=document.querySelectorAll(r);else throw Error("Nodes and querySelector are both undefined");T.debug("Found ".concat(t.length," diagrams")),(null==l?void 0:l.startOnLoad)!==void 0&&(T.debug("Start On Load: "+(null==l?void 0:l.startOnLoad)),rW.updateSiteConfig({startOnLoad:null==l?void 0:l.startOnLoad}));let s=new tq.InitIDGenerator(l.deterministicIds,l.deterministicIDSeed),n=[];for(let r of Array.from(t)){/*! Check if previously processed */if(T.info("Rendering diagram: "+r.id),r.getAttribute("data-processed"))continue;r.setAttribute("data-processed","true");let t="mermaid-".concat(s.next());i=r.innerHTML,i=(0,a.Z)(tq.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let o=tq.detectInit(i);o&&T.debug("Detected early reinit: ",o);try{let{svg:o,bindFunctions:a}=await rJ(t,i,r);r.innerHTML=o,e&&await e(t),a&&a(r)}catch(t){rP(t,n,rK.parseError)}}if(n.length>0)throw n[0]},rN=function(t){rW.initialize(t)},rY=async function(t,i,e){T.warn("mermaid.init is deprecated. Please use run instead."),t&&rN(t);let r={postRenderCallback:e,querySelector:".mermaid"};"string"==typeof i?r.querySelector=i:i&&(i instanceof HTMLElement?r.nodes=[i]:r.nodes=i),await rj(r)},rH=async function(t){let{lazyLoad:i=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tl(...t),!1===i&&await rD()},rV=function(){if(rK.startOnLoad){let{startOnLoad:t}=rW.getConfig();t&&rK.run().catch(t=>T.error("Mermaid failed to initialize",t))}};"undefined"!=typeof document&&/*!
   * Wait for document loaded before starting the execution
   */window.addEventListener("load",rV,!1);let rU=[],rG=!1,rX=async()=>{if(!rG){for(rG=!0;rU.length>0;){let t=rU.shift();if(t)try{await t()}catch(t){T.error("Error executing queue",t)}}rG=!1}},r$=async(t,i)=>new Promise((e,r)=>{rU.push(()=>new Promise((o,a)=>{rW.parse(t,i).then(t=>{o(t),e(t)},t=>{var i;T.error("Error parsing",t),null==(i=rK.parseError)||i.call(rK,t),a(t),r(t)})})),rX().catch(r)}),rJ=(t,i,e)=>new Promise((r,o)=>{rU.push(()=>new Promise((a,l)=>{rW.render(t,i,e).then(t=>{a(t),r(t)},t=>{var i;T.error("Error parsing",t),null==(i=rK.parseError)||i.call(rK,t),l(t),o(t)})})),rX().catch(o)}),rK={startOnLoad:!0,mermaidAPI:rW,parse:r$,render:rJ,init:rY,run:rj,registerExternalDiagrams:rH,initialize:rN,parseError:void 0,contentLoaded:rV,setParseErrorHandler:function(t){rK.parseError=t},detectType:ta}}}]);