blob: e297ae9e336f81e7f83bb896719dbdff432c3b4a [file] [log] [blame]
import{i as Qa,a as tl,b as el,c as il,d as rl,g as nl,e as ol,f as sl,h as al,m as qr,_ as $}from"./app-cbe6e1e7.js";var ll="[object Map]",cl="[object Set]",hl=Object.prototype,ul=hl.hasOwnProperty;function ei(t){if(t==null)return!0;if(Qa(t)&&(tl(t)||typeof t=="string"||typeof t.splice=="function"||el(t)||il(t)||rl(t)))return!t.length;var e=nl(t);if(e==ll||e==cl)return!t.size;if(ol(t))return!sl(t).length;for(var i in t)if(ul.call(t,i))return!1;return!0}function fl(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(h){var f,g;return(g=(f=h.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&g!==void 0?g:0})):a},[]);if(n.length){var o=new RegExp(`
[ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(o,`
`)})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(a,l){var c=s.match(/(?:^|\n)( *)$/),h=c?c[1]:"",f=a;typeof a=="string"&&a.includes(`
`)&&(f=String(a).split(`
`).map(function(g,p){return p===0?g:""+h+g}).join(`
`)),s+=f+r[l+1]}),s}/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */function Nt(t){return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function wr(t,e){return wr=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},wr(t,e)}function dl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ii(t,e,i){return dl()?ii=Reflect.construct:ii=function(n,o,s){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(n,a),c=new l;return s&&wr(c,s.prototype),c},ii.apply(null,arguments)}function ft(t){return pl(t)||gl(t)||ml(t)||_l()}function pl(t){if(Array.isArray(t))return Br(t)}function gl(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ml(t,e){if(t){if(typeof t=="string")return Br(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Br(t,e)}}function Br(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}function _l(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yl=Object.hasOwnProperty,Pn=Object.setPrototypeOf,Cl=Object.isFrozen,bl=Object.getPrototypeOf,xl=Object.getOwnPropertyDescriptor,Q=Object.freeze,gt=Object.seal,vl=Object.create,Oo=typeof Reflect<"u"&&Reflect,mi=Oo.apply,Lr=Oo.construct;mi||(mi=function(e,i,r){return e.apply(i,r)});Q||(Q=function(e){return e});gt||(gt=function(e){return e});Lr||(Lr=function(e,i){return ii(e,ft(i))});var Tl=at(Array.prototype.forEach),Wn=at(Array.prototype.pop),ye=at(Array.prototype.push),ri=at(String.prototype.toLowerCase),ur=at(String.prototype.toString),kl=at(String.prototype.match),ut=at(String.prototype.replace),Sl=at(String.prototype.indexOf),wl=at(String.prototype.trim),K=at(RegExp.prototype.test),fr=Bl(TypeError);function at(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return mi(t,e,r)}}function Bl(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Lr(t,i)}}function A(t,e,i){i=i||ri,Pn&&Pn(t,null);for(var r=e.length;r--;){var n=e[r];if(typeof n=="string"){var o=i(n);o!==n&&(Cl(e)||(e[r]=o),n=o)}t[n]=!0}return t}function Ht(t){var e=vl(null),i;for(i in t)mi(yl,t,[i])===!0&&(e[i]=t[i]);return e}function Ge(t,e){for(;t!==null;){var i=xl(t,e);if(i){if(i.get)return at(i.get);if(typeof i.value=="function")return at(i.value)}t=bl(t)}function r(n){return console.warn("fallback value for",n),null}return r}var qn=Q(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),dr=Q(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pr=Q(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ll=Q(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gr=Q(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Al=Q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hn=Q(["#text"]),Un=Q(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),mr=Q(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vn=Q(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ye=Q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),El=gt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Fl=gt(/<%[\w\W]*|[\w\W]*%>/gm),Ml=gt(/\${[\w\W]*}/gm),Il=gt(/^data-[\-\w.\u00B7-\uFFFF]/),Ol=gt(/^aria-[\-\w]+$/),Nl=gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dl=gt(/^(?:\w+script|data):/i),Rl=gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$l=gt(/^html$/i),zl=function(){return typeof window>"u"?null:window},Pl=function(e,i){if(Nt(e)!=="object"||typeof e.createPolicy!="function")return null;var r=null,n="data-tt-policy-suffix";i.currentScript&&i.currentScript.hasAttribute(n)&&(r=i.currentScript.getAttribute(n));var o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:function(a){return a},createScriptURL:function(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function No(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zl(),e=function(u){return No(u)};if(e.version="2.4.3",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var i=t.document,r=t.document,n=t.DocumentFragment,o=t.HTMLTemplateElement,s=t.Node,a=t.Element,l=t.NodeFilter,c=t.NamedNodeMap,h=c===void 0?t.NamedNodeMap||t.MozNamedAttrMap:c,f=t.HTMLFormElement,g=t.DOMParser,p=t.trustedTypes,_=a.prototype,v=Ge(_,"cloneNode"),B=Ge(_,"nextSibling"),E=Ge(_,"childNodes"),b=Ge(_,"parentNode");if(typeof o=="function"){var I=r.createElement("template");I.content&&I.content.ownerDocument&&(r=I.content.ownerDocument)}var O=Pl(p,i),z=O?O.createHTML(""):"",P=r,F=P.implementation,Xi=P.createNodeIterator,Ki=P.createDocumentFragment,Re=P.getElementsByTagName,Zi=i.importNode,$e={};try{$e=Ht(r).documentMode?r.documentMode:{}}catch{}var ot={};e.isSupported=typeof b=="function"&&F&&typeof F.createHTMLDocument<"u"&&$e!==9;var ct=El,ze=Fl,Pt=Ml,ht=Il,qa=Ol,Ha=Dl,Cn=Rl,Ji=Nl,W=null,bn=A({},[].concat(ft(qn),ft(dr),ft(pr),ft(gr),ft(Hn))),U=null,xn=A({},[].concat(ft(Un),ft(mr),ft(Vn),ft(Ye))),N=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ge=null,Qi=null,vn=!0,tr=!0,Tn=!1,Zt=!1,Wt=!1,er=!1,ir=!1,Jt=!1,Pe=!1,We=!1,kn=!0,Sn=!1,Ua="user-content-",rr=!0,me=!1,Qt={},te=null,wn=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Bn=null,Ln=A({},["audio","video","img","source","image","track"]),nr=null,An=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",vt="http://www.w3.org/1999/xhtml",ee=vt,or=!1,sr=null,Va=A({},[qe,He,vt],ur),qt,Ga=["application/xhtml+xml","text/html"],Ya="text/html",q,ie=null,ja=r.createElement("form"),En=function(u){return u instanceof RegExp||u instanceof Function},ar=function(u){ie&&ie===u||((!u||Nt(u)!=="object")&&(u={}),u=Ht(u),qt=Ga.indexOf(u.PARSER_MEDIA_TYPE)===-1?qt=Ya:qt=u.PARSER_MEDIA_TYPE,q=qt==="application/xhtml+xml"?ur:ri,W="ALLOWED_TAGS"in u?A({},u.ALLOWED_TAGS,q):bn,U="ALLOWED_ATTR"in u?A({},u.ALLOWED_ATTR,q):xn,sr="ALLOWED_NAMESPACES"in u?A({},u.ALLOWED_NAMESPACES,ur):Va,nr="ADD_URI_SAFE_ATTR"in u?A(Ht(An),u.ADD_URI_SAFE_ATTR,q):An,Bn="ADD_DATA_URI_TAGS"in u?A(Ht(Ln),u.ADD_DATA_URI_TAGS,q):Ln,te="FORBID_CONTENTS"in u?A({},u.FORBID_CONTENTS,q):wn,ge="FORBID_TAGS"in u?A({},u.FORBID_TAGS,q):{},Qi="FORBID_ATTR"in u?A({},u.FORBID_ATTR,q):{},Qt="USE_PROFILES"in u?u.USE_PROFILES:!1,vn=u.ALLOW_ARIA_ATTR!==!1,tr=u.ALLOW_DATA_ATTR!==!1,Tn=u.ALLOW_UNKNOWN_PROTOCOLS||!1,Zt=u.SAFE_FOR_TEMPLATES||!1,Wt=u.WHOLE_DOCUMENT||!1,Jt=u.RETURN_DOM||!1,Pe=u.RETURN_DOM_FRAGMENT||!1,We=u.RETURN_TRUSTED_TYPE||!1,ir=u.FORCE_BODY||!1,kn=u.SANITIZE_DOM!==!1,Sn=u.SANITIZE_NAMED_PROPS||!1,rr=u.KEEP_CONTENT!==!1,me=u.IN_PLACE||!1,Ji=u.ALLOWED_URI_REGEXP||Ji,ee=u.NAMESPACE||vt,u.CUSTOM_ELEMENT_HANDLING&&En(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(N.tagNameCheck=u.CUSTOM_ELEMENT_HANDLING.tagNameCheck),u.CUSTOM_ELEMENT_HANDLING&&En(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(N.attributeNameCheck=u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),u.CUSTOM_ELEMENT_HANDLING&&typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(N.allowCustomizedBuiltInElements=u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Zt&&(tr=!1),Pe&&(Jt=!0),Qt&&(W=A({},ft(Hn)),U=[],Qt.html===!0&&(A(W,qn),A(U,Un)),Qt.svg===!0&&(A(W,dr),A(U,mr),A(U,Ye)),Qt.svgFilters===!0&&(A(W,pr),A(U,mr),A(U,Ye)),Qt.mathMl===!0&&(A(W,gr),A(U,Vn),A(U,Ye))),u.ADD_TAGS&&(W===bn&&(W=Ht(W)),A(W,u.ADD_TAGS,q)),u.ADD_ATTR&&(U===xn&&(U=Ht(U)),A(U,u.ADD_ATTR,q)),u.ADD_URI_SAFE_ATTR&&A(nr,u.ADD_URI_SAFE_ATTR,q),u.FORBID_CONTENTS&&(te===wn&&(te=Ht(te)),A(te,u.FORBID_CONTENTS,q)),rr&&(W["#text"]=!0),Wt&&A(W,["html","head","body"]),W.table&&(A(W,["tbody"]),delete ge.tbody),Q&&Q(u),ie=u)},Fn=A({},["mi","mo","mn","ms","mtext"]),Mn=A({},["foreignobject","desc","title","annotation-xml"]),Xa=A({},["title","style","font","a","script"]),Ue=A({},dr);A(Ue,pr),A(Ue,Ll);var lr=A({},gr);A(lr,Al);var Ka=function(u){var m=b(u);(!m||!m.tagName)&&(m={namespaceURI:ee,tagName:"template"});var C=ri(u.tagName),M=ri(m.tagName);return sr[u.namespaceURI]?u.namespaceURI===He?m.namespaceURI===vt?C==="svg":m.namespaceURI===qe?C==="svg"&&(M==="annotation-xml"||Fn[M]):Boolean(Ue[C]):u.namespaceURI===qe?m.namespaceURI===vt?C==="math":m.namespaceURI===He?C==="math"&&Mn[M]:Boolean(lr[C]):u.namespaceURI===vt?m.namespaceURI===He&&!Mn[M]||m.namespaceURI===qe&&!Fn[M]?!1:!lr[C]&&(Xa[C]||!Ue[C]):!!(qt==="application/xhtml+xml"&&sr[u.namespaceURI]):!1},Tt=function(u){ye(e.removed,{element:u});try{u.parentNode.removeChild(u)}catch{try{u.outerHTML=z}catch{u.remove()}}},cr=function(u,m){try{ye(e.removed,{attribute:m.getAttributeNode(u),from:m})}catch{ye(e.removed,{attribute:null,from:m})}if(m.removeAttribute(u),u==="is"&&!U[u])if(Jt||Pe)try{Tt(m)}catch{}else try{m.setAttribute(u,"")}catch{}},In=function(u){var m,C;if(ir)u="<remove></remove>"+u;else{var M=kl(u,/^[\r\n\t ]+/);C=M&&M[0]}qt==="application/xhtml+xml"&&ee===vt&&(u='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+u+"</body></html>");var tt=O?O.createHTML(u):u;if(ee===vt)try{m=new g().parseFromString(tt,qt)}catch{}if(!m||!m.documentElement){m=F.createDocument(ee,"template",null);try{m.documentElement.innerHTML=or?z:tt}catch{}}var G=m.body||m.documentElement;return u&&C&&G.insertBefore(r.createTextNode(C),G.childNodes[0]||null),ee===vt?Re.call(m,Wt?"html":"body")[0]:Wt?m.documentElement:G},On=function(u){return Xi.call(u.ownerDocument||u,u,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Za=function(u){return u instanceof f&&(typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||!(u.attributes instanceof h)||typeof u.removeAttribute!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function")},_e=function(u){return Nt(s)==="object"?u instanceof s:u&&Nt(u)==="object"&&typeof u.nodeType=="number"&&typeof u.nodeName=="string"},kt=function(u,m,C){ot[u]&&Tl(ot[u],function(M){M.call(e,m,C,ie)})},Nn=function(u){var m;if(kt("beforeSanitizeElements",u,null),Za(u)||K(/[\u0080-\uFFFF]/,u.nodeName))return Tt(u),!0;var C=q(u.nodeName);if(kt("uponSanitizeElement",u,{tagName:C,allowedTags:W}),u.hasChildNodes()&&!_e(u.firstElementChild)&&(!_e(u.content)||!_e(u.content.firstElementChild))&&K(/<[/\w]/g,u.innerHTML)&&K(/<[/\w]/g,u.textContent)||C==="select"&&K(/<template/i,u.innerHTML))return Tt(u),!0;if(!W[C]||ge[C]){if(!ge[C]&&Rn(C)&&(N.tagNameCheck instanceof RegExp&&K(N.tagNameCheck,C)||N.tagNameCheck instanceof Function&&N.tagNameCheck(C)))return!1;if(rr&&!te[C]){var M=b(u)||u.parentNode,tt=E(u)||u.childNodes;if(tt&&M)for(var G=tt.length,V=G-1;V>=0;--V)M.insertBefore(v(tt[V],!0),B(u))}return Tt(u),!0}return u instanceof a&&!Ka(u)||(C==="noscript"||C==="noembed")&&K(/<\/no(script|embed)/i,u.innerHTML)?(Tt(u),!0):(Zt&&u.nodeType===3&&(m=u.textContent,m=ut(m,ct," "),m=ut(m,ze," "),m=ut(m,Pt," "),u.textContent!==m&&(ye(e.removed,{element:u.cloneNode()}),u.textContent=m)),kt("afterSanitizeElements",u,null),!1)},Dn=function(u,m,C){if(kn&&(m==="id"||m==="name")&&(C in r||C in ja))return!1;if(!(tr&&!Qi[m]&&K(ht,m))){if(!(vn&&K(qa,m))){if(!U[m]||Qi[m]){if(!(Rn(u)&&(N.tagNameCheck instanceof RegExp&&K(N.tagNameCheck,u)||N.tagNameCheck instanceof Function&&N.tagNameCheck(u))&&(N.attributeNameCheck instanceof RegExp&&K(N.attributeNameCheck,m)||N.attributeNameCheck instanceof Function&&N.attributeNameCheck(m))||m==="is"&&N.allowCustomizedBuiltInElements&&(N.tagNameCheck instanceof RegExp&&K(N.tagNameCheck,C)||N.tagNameCheck instanceof Function&&N.tagNameCheck(C))))return!1}else if(!nr[m]){if(!K(Ji,ut(C,Cn,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&u!=="script"&&Sl(C,"data:")===0&&Bn[u])){if(!(Tn&&!K(Ha,ut(C,Cn,"")))){if(C)return!1}}}}}}return!0},Rn=function(u){return u.indexOf("-")>0},$n=function(u){var m,C,M,tt;kt("beforeSanitizeAttributes",u,null);var G=u.attributes;if(G){var V={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U};for(tt=G.length;tt--;){m=G[tt];var Ve=m,H=Ve.name,hr=Ve.namespaceURI;if(C=H==="value"?m.value:wl(m.value),M=q(H),V.attrName=M,V.attrValue=C,V.keepAttr=!0,V.forceKeepAttr=void 0,kt("uponSanitizeAttribute",u,V),C=V.attrValue,!V.forceKeepAttr&&(cr(H,u),!!V.keepAttr)){if(K(/\/>/i,C)){cr(H,u);continue}Zt&&(C=ut(C,ct," "),C=ut(C,ze," "),C=ut(C,Pt," "));var zn=q(u.nodeName);if(Dn(zn,M,C)){if(Sn&&(M==="id"||M==="name")&&(cr(H,u),C=Ua+C),O&&Nt(p)==="object"&&typeof p.getAttributeType=="function"&&!hr)switch(p.getAttributeType(zn,M)){case"TrustedHTML":C=O.createHTML(C);break;case"TrustedScriptURL":C=O.createScriptURL(C);break}try{hr?u.setAttributeNS(hr,H,C):u.setAttribute(H,C),Wn(e.removed)}catch{}}}}kt("afterSanitizeAttributes",u,null)}},Ja=function T(u){var m,C=On(u);for(kt("beforeSanitizeShadowDOM",u,null);m=C.nextNode();)kt("uponSanitizeShadowNode",m,null),!Nn(m)&&(m.content instanceof n&&T(m.content),$n(m));kt("afterSanitizeShadowDOM",u,null)};return e.sanitize=function(T){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m,C,M,tt,G;if(or=!T,or&&(T="<!-->"),typeof T!="string"&&!_e(T)){if(typeof T.toString!="function")throw fr("toString is not a function");if(T=T.toString(),typeof T!="string")throw fr("dirty is not a string, aborting")}if(!e.isSupported){if(Nt(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof T=="string")return t.toStaticHTML(T);if(_e(T))return t.toStaticHTML(T.outerHTML)}return T}if(er||ar(u),e.removed=[],typeof T=="string"&&(me=!1),me){if(T.nodeName){var V=q(T.nodeName);if(!W[V]||ge[V])throw fr("root node is forbidden and cannot be sanitized in-place")}}else if(T instanceof s)m=In("<!---->"),C=m.ownerDocument.importNode(T,!0),C.nodeType===1&&C.nodeName==="BODY"||C.nodeName==="HTML"?m=C:m.appendChild(C);else{if(!Jt&&!Zt&&!Wt&&T.indexOf("<")===-1)return O&&We?O.createHTML(T):T;if(m=In(T),!m)return Jt?null:We?z:""}m&&ir&&Tt(m.firstChild);for(var Ve=On(me?T:m);M=Ve.nextNode();)M.nodeType===3&&M===tt||Nn(M)||(M.content instanceof n&&Ja(M.content),$n(M),tt=M);if(tt=null,me)return T;if(Jt){if(Pe)for(G=Ki.call(m.ownerDocument);m.firstChild;)G.appendChild(m.firstChild);else G=m;return U.shadowroot&&(G=Zi.call(i,G,!0)),G}var H=Wt?m.outerHTML:m.innerHTML;return Wt&&W["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&K($l,m.ownerDocument.doctype.name)&&(H="<!DOCTYPE "+m.ownerDocument.doctype.name+`>
`+H),Zt&&(H=ut(H,ct," "),H=ut(H,ze," "),H=ut(H,Pt," ")),O&&We?O.createHTML(H):H},e.setConfig=function(T){ar(T),er=!0},e.clearConfig=function(){ie=null,er=!1},e.isValidAttribute=function(T,u,m){ie||ar({});var C=q(T),M=q(u);return Dn(C,M,m)},e.addHook=function(T,u){typeof u=="function"&&(ot[T]=ot[T]||[],ye(ot[T],u))},e.removeHook=function(T){if(ot[T])return Wn(ot[T])},e.removeHooks=function(T){ot[T]&&(ot[T]=[])},e.removeAllHooks=function(){ot={}},e}var _i=No();const ni={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return ni.hue2rgb(o,n,t+1/3)*255;case"g":return ni.hue2rgb(o,n,t)*255;case"b":return ni.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},Wl=ni,ql={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Hl=ql,Ul={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Vl=Ul,Gl={channel:Wl,lang:Hl,unit:Vl},L=Gl,Mt={};for(let t=0;t<=255;t++)Mt[t]=L.unit.dec2hex(t);const Y={ALL:0,RGB:1,HSL:2};class Yl{constructor(){this.type=Y.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Y.ALL}is(e){return this.type===e}}const jl=Yl;class Xl{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new jl}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=Y.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=L.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=L.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=L.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=L.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=L.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=L.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(Y.HSL)&&i!==void 0?i:(this._ensureHSL(),L.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(Y.HSL)&&i!==void 0?i:(this._ensureHSL(),L.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(Y.HSL)&&i!==void 0?i:(this._ensureHSL(),L.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(Y.RGB)&&i!==void 0?i:(this._ensureRGB(),L.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(Y.RGB)&&i!==void 0?i:(this._ensureRGB(),L.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(Y.RGB)&&i!==void 0?i:(this._ensureRGB(),L.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Y.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Y.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Y.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Y.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Y.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Y.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Kl=Xl,Zl=new Kl({r:0,g:0,b:0,a:0},"transparent"),Ni=Zl,Do={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Do.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,c=o?0:-1,h=s?255:15;return Ni.set({r:(r>>l*(c+3)&h)*a,g:(r>>l*(c+2)&h)*a,b:(r>>l*(c+1)&h)*a,a:o?(r&h)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${Mt[Math.round(e)]}${Mt[Math.round(i)]}${Mt[Math.round(r)]}${Mt[Math.round(n*255)]}`:`#${Mt[Math.round(e)]}${Mt[Math.round(i)]}${Mt[Math.round(r)]}`}},Te=Do,oi={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(oi.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return L.channel.clamp.h(parseFloat(i)*.9);case"rad":return L.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return L.channel.clamp.h(parseFloat(i)*360)}}return L.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(oi.re);if(!i)return;const[,r,n,o,s,a]=i;return Ni.set({h:oi._hue2deg(r),s:L.channel.clamp.s(parseFloat(n)),l:L.channel.clamp.l(parseFloat(o)),a:s?L.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${L.lang.round(e)}, ${L.lang.round(i)}%, ${L.lang.round(r)}%, ${n})`:`hsl(${L.lang.round(e)}, ${L.lang.round(i)}%, ${L.lang.round(r)}%)`}},je=oi,si={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=si.colors[t];if(e)return Te.parse(e)},stringify:t=>{const e=Te.stringify(t);for(const i in si.colors)if(si.colors[i]===e)return i}},Gn=si,Ro={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Ro.re);if(!i)return;const[,r,n,o,s,a,l,c,h]=i;return Ni.set({r:L.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:L.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:L.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?L.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${L.lang.round(e)}, ${L.lang.round(i)}, ${L.lang.round(r)}, ${L.lang.round(n)})`:`rgb(${L.lang.round(e)}, ${L.lang.round(i)}, ${L.lang.round(r)})`}},Xe=Ro,Jl={format:{keyword:Gn,hex:Te,rgb:Xe,rgba:Xe,hsl:je,hsla:je},parse:t=>{if(typeof t!="string")return t;const e=Te.parse(t)||Xe.parse(t)||je.parse(t)||Gn.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Y.HSL)||t.data.r===void 0?je.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Xe.stringify(t):Te.stringify(t)},At=Jl,Ql=(t,e)=>{const i=At.parse(t);for(const r in e)i[r]=L.channel.clamp[r](e[r]);return At.stringify(i)},$o=Ql,tc=(t,e,i=0,r=1)=>{if(typeof t!="number")return $o(t,{a:e});const n=Ni.set({r:L.channel.clamp.r(t),g:L.channel.clamp.g(e),b:L.channel.clamp.b(i),a:L.channel.clamp.a(r)});return At.stringify(n)},ke=tc,ec=(t,e,i)=>{const r=At.parse(t),n=r[e],o=L.channel.clamp[e](n+i);return n!==o&&(r[e]=o),At.stringify(r)},zo=ec,ic=(t,e)=>zo(t,"l",e),S=ic,rc=(t,e)=>zo(t,"l",-e),w=rc,nc=(t,e)=>{const i=At.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return $o(t,r)},d=nc,oc=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=At.parse(t),{r:a,g:l,b:c,a:h}=At.parse(e),f=i/100,g=f*2-1,p=s-h,v=((g*p===-1?g:(g+p)/(1+g*p))+1)/2,B=1-v,E=r*v+a*B,b=n*v+l*B,I=o*v+c*B,O=s*f+h*(1-f);return ke(E,b,I,O)},sc=oc,ac=(t,e=100)=>{const i=At.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,sc(i,t,e)},y=ac,St={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},x={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Hr=function(t="fatal"){let e=St.fatal;typeof t=="string"?(t=t.toLowerCase(),t in St&&(e=St[t])):typeof t=="number"&&(e=t),x.trace=()=>{},x.debug=()=>{},x.info=()=>{},x.warn=()=>{},x.error=()=>{},x.fatal=()=>{},e<=St.fatal&&(x.fatal=console.error?console.error.bind(console,st("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",st("FATAL"))),e<=St.error&&(x.error=console.error?console.error.bind(console,st("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",st("ERROR"))),e<=St.warn&&(x.warn=console.warn?console.warn.bind(console,st("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",st("WARN"))),e<=St.info&&(x.info=console.info?console.info.bind(console,st("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",st("INFO"))),e<=St.debug&&(x.debug=console.debug?console.debug.bind(console,st("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",st("DEBUG"))),e<=St.trace&&(x.trace=console.debug?console.debug.bind(console,st("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",st("TRACE")))},st=t=>`%c${al().format("ss.SSS")} : ${t} : `,lc=t=>t?Wo(t).replace(/\\n/g,"#br#").split("#br#"):[""],Po=t=>_i.sanitize(t),Yn=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Po(t):r!=="loose"&&(t=Wo(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=fc(t))}return t},we=(t,e)=>t&&(e.dompurifyConfig?t=_i.sanitize(Yn(t,e),e.dompurifyConfig).toString():t=_i.sanitize(Yn(t,e),{FORBID_TAGS:["style"]}).toString(),t),cc=(t,e)=>typeof t=="string"?we(t,e):t.flat().map(i=>we(i,e)),Di=/<br\s*\/?>/gi,hc=t=>Di.test(t),uc=t=>t.split(Di),fc=t=>t.replace(/#br#/g,"<br/>"),Wo=t=>t.replace(Di,"#br#"),dc=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},qo=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),pc=function(t){let e=t;if(t.split("~").length-1>=2){let i=e;do e=i,i=e.replace(/~([^\s,:;]+)~/,"<$1>");while(i!=e);return pc(i)}else return e},Ur={getRows:lc,sanitizeText:we,sanitizeTextOrArray:cc,hasBreaks:hc,splitBreaks:uc,lineBreakRegex:Di,removeScript:Po,getUrl:dc,evaluate:qo},J=(t,e)=>e?d(t,{s:-40,l:10}):d(t,{s:-40,l:-10}),Ri="#ffffff",$i="#f2f2f2";let gc=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||d(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||d(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||J(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||J(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||J(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||y(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||y(this.tertiaryColor),this.lineColor=this.lineColor||y(this.background),this.textColor=this.textColor||this.primaryTextColor,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?w(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||w(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||y(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||S(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||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.darkMode)for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScale"+i]=w(this["cScale"+i],75);else for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScale"+i]=w(this["cScale"+i],25);for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleInv"+i]=this["cScaleInv"+i]||y(this["cScale"+i]);for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this.darkMode?this["cScalePeer"+i]=this["cScalePeer"+i]||S(this["cScale"+i],10):this["cScalePeer"+i]=this["cScalePeer"+i]||w(this["cScale"+i],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleLabel"+i]=this["cScaleLabel"+i]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let i=0;i<5;i++)this["surface"+i]=this["surface"+i]||d(this.mainBkg,{h:180,s:-15,l:e*(5+i*3)}),this["surfacePeer"+i]=this["surfacePeer"+i]||d(this.mainBkg,{h:180,s:-15,l:e*(8+i*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||d(this.primaryColor,{h:64}),this.fillType3=this.fillType3||d(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||d(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||d(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||d(this.primaryColor,{h:128}),this.fillType7=this.fillType7||d(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||d(this.primaryColor,{l:-10}),this.pie5=this.pie5||d(this.secondaryColor,{l:-10}),this.pie6=this.pie6||d(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||d(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||d(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||d(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||d(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||d(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||d(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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?w(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||d(this.primaryColor,{h:-30}),this.git4=this.git4||d(this.primaryColor,{h:-60}),this.git5=this.git5||d(this.primaryColor,{h:-90}),this.git6=this.git6||d(this.primaryColor,{h:60}),this.git7=this.git7||d(this.primaryColor,{h:120}),this.darkMode?(this.git0=S(this.git0,25),this.git1=S(this.git1,25),this.git2=S(this.git2,25),this.git3=S(this.git3,25),this.git4=S(this.git4,25),this.git5=S(this.git5,25),this.git6=S(this.git6,25),this.git7=S(this.git7,25)):(this.git0=w(this.git0,25),this.git1=w(this.git1,25),this.git2=w(this.git2,25),this.git3=w(this.git3,25),this.git4=w(this.git4,25),this.git5=w(this.git5,25),this.git6=w(this.git6,25),this.git7=w(this.git7,25)),this.gitInv0=this.gitInv0||y(this.git0),this.gitInv1=this.gitInv1||y(this.git1),this.gitInv2=this.gitInv2||y(this.git2),this.gitInv3=this.gitInv3||y(this.git3),this.gitInv4=this.gitInv4||y(this.git4),this.gitInv5=this.gitInv5||y(this.git5),this.gitInv6=this.gitInv6||y(this.git6),this.gitInv7=this.gitInv7||y(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||Ri,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$i}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const mc=t=>{const e=new gc;return e.calculate(t),e};let _c=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=S(this.primaryColor,16),this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=y(this.background),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=y(this.primaryColor),this.secondaryTextColor=y(this.secondaryColor),this.tertiaryTextColor=y(this.tertiaryColor),this.lineColor=y(this.background),this.textColor=y(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=S(y("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ke(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=w("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=ke(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ke(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="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=S(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=S(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=S(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=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(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||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||y(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||S(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||d(this.mainBkg,{h:30,s:-30,l:-(-10+e*4)}),this["surfacePeer"+e]=this["surfacePeer"+e]||d(this.mainBkg,{h:30,s:-30,l:-(-7+e*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];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.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?w(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=S(this.secondaryColor,20),this.git1=S(this.pie2||this.secondaryColor,20),this.git2=S(this.pie3||this.tertiaryColor,20),this.git3=S(this.pie4||d(this.primaryColor,{h:-30}),20),this.git4=S(this.pie5||d(this.primaryColor,{h:-60}),20),this.git5=S(this.pie6||d(this.primaryColor,{h:-90}),10),this.git6=S(this.pie7||d(this.primaryColor,{h:60}),10),this.git7=S(this.pie8||d(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||y(this.git0),this.gitInv1=this.gitInv1||y(this.git1),this.gitInv2=this.gitInv2||y(this.git2),this.gitInv3=this.gitInv3||y(this.git3),this.gitInv4=this.gitInv4||y(this.git4),this.gitInv5=this.gitInv5||y(this.git5),this.gitInv6=this.gitInv6||y(this.git6),this.gitInv7=this.gitInv7||y(this.git7),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||S(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||S(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const yc=t=>{const e=new _c;return e.calculate(t),e};let Cc=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=d(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=J(this.primaryColor,this.darkMode),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=y(this.primaryColor),this.secondaryTextColor=y(this.secondaryColor),this.tertiaryTextColor=y(this.tertiaryColor),this.lineColor=y(this.background),this.textColor=y(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=ke(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="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this["cScalePeer"+1]=this["cScalePeer"+1]||w(this.secondaryColor,45),this["cScalePeer"+2]=this["cScalePeer"+2]||w(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=w(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||w(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||d(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||d(this.mainBkg,{h:30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||d(this.mainBkg,{h:30,l:-(7+e*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||y(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||y(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||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=S(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=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||d(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||d(this.primaryColor,{l:-10}),this.pie5=this.pie5||d(this.secondaryColor,{l:-30}),this.pie6=this.pie6||d(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||d(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||d(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||d(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||d(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||d(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||d(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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,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||d(this.primaryColor,{h:-30}),this.git4=this.git4||d(this.primaryColor,{h:-60}),this.git5=this.git5||d(this.primaryColor,{h:-90}),this.git6=this.git6||d(this.primaryColor,{h:60}),this.git7=this.git7||d(this.primaryColor,{h:120}),this.darkMode?(this.git0=S(this.git0,25),this.git1=S(this.git1,25),this.git2=S(this.git2,25),this.git3=S(this.git3,25),this.git4=S(this.git4,25),this.git5=S(this.git5,25),this.git6=S(this.git6,25),this.git7=S(this.git7,25)):(this.git0=w(this.git0,25),this.git1=w(this.git1,25),this.git2=w(this.git2,25),this.git3=w(this.git3,25),this.git4=w(this.git4,25),this.git5=w(this.git5,25),this.git6=w(this.git6,25),this.git7=w(this.git7,25)),this.gitInv0=this.gitInv0||w(y(this.git0),25),this.gitInv1=this.gitInv1||y(this.git1),this.gitInv2=this.gitInv2||y(this.git2),this.gitInv3=this.gitInv3||y(this.git3),this.gitInv4=this.gitInv4||y(this.git4),this.gitInv5=this.gitInv5||y(this.git5),this.gitInv6=this.gitInv6||y(this.git6),this.gitInv7=this.gitInv7||y(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||y(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||y(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||Ri,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$i}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const bc=t=>{const e=new Cc;return e.calculate(t),e};let xc=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=S("#cde498",10),this.primaryBorderColor=J(this.primaryColor,this.darkMode),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=y(this.primaryColor),this.secondaryTextColor=y(this.secondaryColor),this.tertiaryTextColor=y(this.primaryColor),this.lineColor=y(this.background),this.textColor=y(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="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this["cScalePeer"+1]=this["cScalePeer"+1]||w(this.secondaryColor,45),this["cScalePeer"+2]=this["cScalePeer"+2]||w(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=w(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||w(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||d(this["cScale"+e],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||d(this.mainBkg,{h:30,s:-30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||d(this.mainBkg,{h:30,s:-30,l:-(8+e*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=w(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.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=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(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||d(this.primaryColor,{l:-30}),this.pie5=this.pie5||d(this.secondaryColor,{l:-30}),this.pie6=this.pie6||d(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||d(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||d(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||d(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||d(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||d(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||d(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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,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||d(this.primaryColor,{h:-30}),this.git4=this.git4||d(this.primaryColor,{h:-60}),this.git5=this.git5||d(this.primaryColor,{h:-90}),this.git6=this.git6||d(this.primaryColor,{h:60}),this.git7=this.git7||d(this.primaryColor,{h:120}),this.darkMode?(this.git0=S(this.git0,25),this.git1=S(this.git1,25),this.git2=S(this.git2,25),this.git3=S(this.git3,25),this.git4=S(this.git4,25),this.git5=S(this.git5,25),this.git6=S(this.git6,25),this.git7=S(this.git7,25)):(this.git0=w(this.git0,25),this.git1=w(this.git1,25),this.git2=w(this.git2,25),this.git3=w(this.git3,25),this.git4=w(this.git4,25),this.git5=w(this.git5,25),this.git6=w(this.git6,25),this.git7=w(this.git7,25)),this.gitInv0=this.gitInv0||y(this.git0),this.gitInv1=this.gitInv1||y(this.git1),this.gitInv2=this.gitInv2||y(this.git2),this.gitInv3=this.gitInv3||y(this.git3),this.gitInv4=this.gitInv4||y(this.git4),this.gitInv5=this.gitInv5||y(this.git5),this.gitInv6=this.gitInv6||y(this.git6),this.gitInv7=this.gitInv7||y(this.git7),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||Ri,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$i}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const vc=t=>{const e=new xc;return e.calculate(t),e};class Tc{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=S(this.contrast,55),this.background="#ffffff",this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=J(this.primaryColor,this.darkMode),this.secondaryBorderColor=J(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=J(this.tertiaryColor,this.darkMode),this.primaryTextColor=y(this.primaryColor),this.secondaryTextColor=y(this.secondaryColor),this.tertiaryTextColor=y(this.tertiaryColor),this.lineColor=y(this.background),this.textColor=y(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="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=S(this.contrast,55),this.border2=this.contrast,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 e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||y(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||S(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||w(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||d(this.mainBkg,{l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||d(this.mainBkg,{l:-(8+e*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=S(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.sectionBkgColor=S(this.contrast,30),this.sectionBkgColor2=S(this.contrast,30),this.taskBorderColor=w(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=S(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=w(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=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(this.secondaryColor,{h:128});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,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=w(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||d(this.primaryColor,{h:-30}),this.git4=this.pie5||d(this.primaryColor,{h:-60}),this.git5=this.pie6||d(this.primaryColor,{h:-90}),this.git6=this.pie7||d(this.primaryColor,{h:60}),this.git7=this.pie8||d(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||y(this.git0),this.gitInv1=this.gitInv1||y(this.git1),this.gitInv2=this.gitInv2||y(this.git2),this.gitInv3=this.gitInv3||y(this.git3),this.gitInv4=this.gitInv4||y(this.git4),this.gitInv5=this.gitInv5||y(this.git5),this.gitInv6=this.gitInv6||y(this.git6),this.gitInv7=this.gitInv7||y(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||Ri,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$i}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const kc=t=>{const e=new Tc;return e.calculate(t),e},Lt={base:{getThemeVariables:mc},dark:{getThemeVariables:yc},default:{getThemeVariables:bc},forest:{getThemeVariables:vc},neutral:{getThemeVariables:kc}},Dt={theme:"default",themeVariables:Lt.default.getThemeVariables(),themeCSS:void 0,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,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},sequence:{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,useMaxWidth:!0,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,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:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,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"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,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},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{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,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,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},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,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,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}},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"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};Dt.class&&(Dt.class.arrowMarkerAbsolute=Dt.arrowMarkerAbsolute);Dt.gitGraph&&(Dt.gitGraph.arrowMarkerAbsolute=Dt.arrowMarkerAbsolute);const Ho=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Ho(t[r],"")]:[...i,e+r],[]),Sc=Ho(Dt,""),wc=Dt,Ar=function(t,e,i){const{depth:r,clobber:n}=Object.assign({depth:2,clobber:!1},i);return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>Ar(t,o,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=Ar(t[o],e[o],{depth:r-1,clobber:n})):(n||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},j=Ar,Be=Object.freeze(wc);let et=j({},Be),Uo,ae=[],Se=j({},Be);const zi=(t,e)=>{let i=j({},t),r={};for(const n of e)Go(n),r=j(r,n);if(i=j(i,r),r.theme&&r.theme in Lt){const n=j({},Uo),o=j(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Lt&&(i.themeVariables=Lt[i.theme].getThemeVariables(o))}return Se=i,Xo(Se),Se},Bc=t=>(et=j({},Be),et=j(et,t),t.theme&&Lt[t.theme]&&(et.themeVariables=Lt[t.theme].getThemeVariables(t.themeVariables)),zi(et,ae),et),Lc=t=>{Uo=j({},t)},Ac=t=>(et=j(et,t),zi(et,ae),et),Vo=()=>j({},et),Ec=t=>(Xo(t),j(Se,t),Ft()),Ft=()=>j({},Se),Go=t=>{["secure",...et.secure??[]].forEach(e=>{t[e]!==void 0&&(x.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.indexOf("__")===0&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Go(t[e])})},Yo=t=>{t.fontFamily&&(t.themeVariables?t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily}):t.themeVariables={fontFamily:t.fontFamily}),ae.push(t),zi(et,ae)},yi=(t=et)=>{ae=[],zi(t,ae)};var jo=(t=>(t.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",t))(jo||{});const jn={},Fc=t=>{jn[t]||(x.warn(jo[t]),jn[t]=!0)},Xo=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Fc("LAZY_LOAD_DEPRECATED")};var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});var Ko=Vr.sanitizeUrl=void 0,Mc=/^([^\w]*)(javascript|data|vbscript)/im,Ic=/&#(\w+)(^\w|;)?/g,Oc=/&(newline|tab);/gi,Nc=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Dc=/^.+(:|&colon;)/gim,Rc=[".","/"];function $c(t){return Rc.indexOf(t[0])>-1}function zc(t){return t.replace(Ic,function(e,i){return String.fromCharCode(i)})}function Pc(t){var e=zc(t||"").replace(Oc,"").replace(Nc,"").trim();if(!e)return"about:blank";if($c(e))return e;var i=e.match(Dc);if(!i)return e;var r=i[0];return Mc.test(r)?"about:blank":e}Ko=Vr.sanitizeUrl=Pc;var Wc={value:()=>{}};function Zo(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new ai(i)}function ai(t){this._=t}function qc(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}ai.prototype=Zo.prototype={constructor:ai,on:function(t,e){var i=this._,r=qc(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((n=(t=r[o]).type)&&(n=Hc(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=r[o]).type)i[n]=Xn(i[n],t.name,e);else if(e==null)for(n in i)i[n]=Xn(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new ai(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,o;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,n=o.length;r<n;++r)o[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,o=r.length;n<o;++n)r[n].value.apply(e,i)}};function Hc(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function Xn(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=Wc,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var Er="http://www.w3.org/1999/xhtml";const Kn={svg:"http://www.w3.org/2000/svg",xhtml:Er,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Pi(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Kn.hasOwnProperty(e)?{space:Kn[e],local:t}:t}function Uc(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Er&&e.documentElement.namespaceURI===Er?e.createElement(t):e.createElementNS(i,t)}}function Vc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Jo(t){var e=Pi(t);return(e.local?Vc:Uc)(e)}function Gc(){}function Gr(t){return t==null?Gc:function(){return this.querySelector(t)}}function Yc(t){typeof t!="function"&&(t=Gr(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=new Array(s),l,c,h=0;h<s;++h)(l=o[h])&&(c=t.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new nt(r,this._parents)}function jc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Xc(){return[]}function Qo(t){return t==null?Xc:function(){return this.querySelectorAll(t)}}function Kc(t){return function(){return jc(t.apply(this,arguments))}}function Zc(t){typeof t=="function"?t=Kc(t):t=Qo(t);for(var e=this._groups,i=e.length,r=[],n=[],o=0;o<i;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),n.push(l));return new nt(r,n)}function ts(t){return function(){return this.matches(t)}}function es(t){return function(e){return e.matches(t)}}var Jc=Array.prototype.find;function Qc(t){return function(){return Jc.call(this.children,t)}}function th(){return this.firstElementChild}function eh(t){return this.select(t==null?th:Qc(typeof t=="function"?t:es(t)))}var ih=Array.prototype.filter;function rh(){return Array.from(this.children)}function nh(t){return function(){return ih.call(this.children,t)}}function oh(t){return this.selectAll(t==null?rh:nh(typeof t=="function"?t:es(t)))}function sh(t){typeof t!="function"&&(t=ts(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new nt(r,this._parents)}function is(t){return new Array(t.length)}function ah(){return new nt(this._enter||this._groups.map(is),this._parents)}function Ci(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Ci.prototype={constructor:Ci,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function lh(t){return function(){return t}}function ch(t,e,i,r,n,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new Ci(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function hh(t,e,i,r,n,o,s){var a,l,c=new Map,h=e.length,f=o.length,g=new Array(h),p;for(a=0;a<h;++a)(l=e[a])&&(g[a]=p=s.call(l,l.__data__,a,e)+"",c.has(p)?n[a]=l:c.set(p,l));for(a=0;a<f;++a)p=s.call(t,o[a],a,o)+"",(l=c.get(p))?(r[a]=l,l.__data__=o[a],c.delete(p)):i[a]=new Ci(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(g[a])===l&&(n[a]=l)}function uh(t){return t.__data__}function fh(t,e){if(!arguments.length)return Array.from(this,uh);var i=e?hh:ch,r=this._parents,n=this._groups;typeof t!="function"&&(t=lh(t));for(var o=n.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=r[c],f=n[c],g=f.length,p=dh(t.call(h,h&&h.__data__,c,r)),_=p.length,v=a[c]=new Array(_),B=s[c]=new Array(_),E=l[c]=new Array(g);i(h,f,v,B,E,p,e);for(var b=0,I=0,O,z;b<_;++b)if(O=v[b]){for(b>=I&&(I=b+1);!(z=B[I])&&++I<_;);O._next=z||null}}return s=new nt(s,r),s._enter=a,s._exit=l,s}function dh(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ph(){return new nt(this._exit||this._groups.map(is),this._parents)}function gh(t,e,i){var r=this.enter(),n=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?o.remove():i(o),r&&n?r.merge(n).order():n}function mh(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,s=Math.min(n,o),a=new Array(n),l=0;l<s;++l)for(var c=i[l],h=r[l],f=c.length,g=a[l]=new Array(f),p,_=0;_<f;++_)(p=c[_]||h[_])&&(g[_]=p);for(;l<n;++l)a[l]=i[l];return new nt(a,this._parents)}function _h(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,o=r[n],s;--n>=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function yh(t){t||(t=Ch);function e(f,g){return f&&g?t(f.__data__,g.__data__):!f-!g}for(var i=this._groups,r=i.length,n=new Array(r),o=0;o<r;++o){for(var s=i[o],a=s.length,l=n[o]=new Array(a),c,h=0;h<a;++h)(c=s[h])&&(l[h]=c);l.sort(e)}return new nt(n,this._parents).order()}function Ch(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function bh(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function xh(){return Array.from(this)}function vh(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length;n<o;++n){var s=r[n];if(s)return s}return null}function Th(){let t=0;for(const e of this)++t;return t}function kh(){return!this.node()}function Sh(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],o=0,s=n.length,a;o<s;++o)(a=n[o])&&t.call(a,a.__data__,o,n);return this}function wh(t){return function(){this.removeAttribute(t)}}function Bh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Lh(t,e){return function(){this.setAttribute(t,e)}}function Ah(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Eh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function Fh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Mh(t,e){var i=Pi(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?Bh:wh:typeof e=="function"?i.local?Fh:Eh:i.local?Ah:Lh)(i,e))}function rs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ih(t){return function(){this.style.removeProperty(t)}}function Oh(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Nh(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function Dh(t,e,i){return arguments.length>1?this.each((e==null?Ih:typeof e=="function"?Nh:Oh)(t,e,i??"")):le(this.node(),t)}function le(t,e){return t.style.getPropertyValue(e)||rs(t).getComputedStyle(t,null).getPropertyValue(e)}function Rh(t){return function(){delete this[t]}}function $h(t,e){return function(){this[t]=e}}function zh(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Ph(t,e){return arguments.length>1?this.each((e==null?Rh:typeof e=="function"?zh:$h)(t,e)):this.node()[t]}function ns(t){return t.trim().split(/^|\s+/)}function Yr(t){return t.classList||new os(t)}function os(t){this._node=t,this._names=ns(t.getAttribute("class")||"")}os.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ss(t,e){for(var i=Yr(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function as(t,e){for(var i=Yr(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function Wh(t){return function(){ss(this,t)}}function qh(t){return function(){as(this,t)}}function Hh(t,e){return function(){(e.apply(this,arguments)?ss:as)(this,t)}}function Uh(t,e){var i=ns(t+"");if(arguments.length<2){for(var r=Yr(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Hh:e?Wh:qh)(i,e))}function Vh(){this.textContent=""}function Gh(t){return function(){this.textContent=t}}function Yh(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function jh(t){return arguments.length?this.each(t==null?Vh:(typeof t=="function"?Yh:Gh)(t)):this.node().textContent}function Xh(){this.innerHTML=""}function Kh(t){return function(){this.innerHTML=t}}function Zh(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Jh(t){return arguments.length?this.each(t==null?Xh:(typeof t=="function"?Zh:Kh)(t)):this.node().innerHTML}function Qh(){this.nextSibling&&this.parentNode.appendChild(this)}function tu(){return this.each(Qh)}function eu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function iu(){return this.each(eu)}function ru(t){var e=typeof t=="function"?t:Jo(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function nu(){return null}function ou(t,e){var i=typeof t=="function"?t:Jo(t),r=e==null?nu:typeof e=="function"?e:Gr(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function su(){var t=this.parentNode;t&&t.removeChild(this)}function au(){return this.each(su)}function lu(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function hu(t){return this.select(t?cu:lu)}function uu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function fu(t){return function(e){t.call(this,e,this.__data__)}}function du(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function pu(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i<n;++i)o=e[i],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function gu(t,e,i){return function(){var r=this.__on,n,o=fu(e);if(r){for(var s=0,a=r.length;s<a;++s)if((n=r[s]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=i),n.value=e;return}}this.addEventListener(t.type,o,i),n={type:t.type,name:t.name,value:e,listener:o,options:i},r?r.push(n):this.__on=[n]}}function mu(t,e,i){var r=du(t+""),n,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(n=0,h=a[l];n<o;++n)if((s=r[n]).type===h.type&&s.name===h.name)return h.value}return}for(a=e?gu:pu,n=0;n<o;++n)this.each(a(r[n],e,i));return this}function ls(t,e,i){var r=rs(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function _u(t,e){return function(){return ls(this,t,e)}}function yu(t,e){return function(){return ls(this,t,e.apply(this,arguments))}}function Cu(t,e){return this.each((typeof e=="function"?yu:_u)(t,e))}function*bu(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length,s;n<o;++n)(s=r[n])&&(yield s)}var cs=[null];function nt(t,e){this._groups=t,this._parents=e}function Ne(){return new nt([[document.documentElement]],cs)}function xu(){return this}nt.prototype=Ne.prototype={constructor:nt,select:Yc,selectAll:Zc,selectChild:eh,selectChildren:oh,filter:sh,data:fh,enter:ah,exit:ph,join:gh,merge:mh,selection:xu,order:_h,sort:yh,call:bh,nodes:xh,node:vh,size:Th,empty:kh,each:Sh,attr:Mh,style:Dh,property:Ph,classed:Uh,text:jh,html:Jh,raise:tu,lower:iu,append:ru,insert:ou,remove:au,clone:hu,datum:uu,on:mu,dispatch:Cu,[Symbol.iterator]:bu};function yt(t){return typeof t=="string"?new nt([[document.querySelector(t)]],[document.documentElement]):new nt([[t]],cs)}function jr(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function hs(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function De(){}var Le=.7,bi=1/Le,se="\\s*([+-]?\\d+)\\s*",Ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ct="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vu=/^#([0-9a-f]{3,8})$/,Tu=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),ku=new RegExp(`^rgb\\(${Ct},${Ct},${Ct}\\)$`),Su=new RegExp(`^rgba\\(${se},${se},${se},${Ae}\\)$`),wu=new RegExp(`^rgba\\(${Ct},${Ct},${Ct},${Ae}\\)$`),Bu=new RegExp(`^hsl\\(${Ae},${Ct},${Ct}\\)$`),Lu=new RegExp(`^hsla\\(${Ae},${Ct},${Ct},${Ae}\\)$`),Zn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};jr(De,Ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jn,formatHex:Jn,formatHex8:Au,formatHsl:Eu,formatRgb:Qn,toString:Qn});function Jn(){return this.rgb().formatHex()}function Au(){return this.rgb().formatHex8()}function Eu(){return us(this).formatHsl()}function Qn(){return this.rgb().formatRgb()}function Ee(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=vu.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?to(e):i===3?new it(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Ke(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Ke(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Tu.exec(t))?new it(e[1],e[2],e[3],1):(e=ku.exec(t))?new it(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Su.exec(t))?Ke(e[1],e[2],e[3],e[4]):(e=wu.exec(t))?Ke(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Bu.exec(t))?ro(e[1],e[2]/100,e[3]/100,1):(e=Lu.exec(t))?ro(e[1],e[2]/100,e[3]/100,e[4]):Zn.hasOwnProperty(t)?to(Zn[t]):t==="transparent"?new it(NaN,NaN,NaN,0):null}function to(t){return new it(t>>16&255,t>>8&255,t&255,1)}function Ke(t,e,i,r){return r<=0&&(t=e=i=NaN),new it(t,e,i,r)}function Fu(t){return t instanceof De||(t=Ee(t)),t?(t=t.rgb(),new it(t.r,t.g,t.b,t.opacity)):new it}function Fr(t,e,i,r){return arguments.length===1?Fu(t):new it(t,e,i,r??1)}function it(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}jr(it,Fr,hs(De,{brighter(t){return t=t==null?bi:Math.pow(bi,t),new it(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new it(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new it(Gt(this.r),Gt(this.g),Gt(this.b),xi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:eo,formatHex:eo,formatHex8:Mu,formatRgb:io,toString:io}));function eo(){return`#${Vt(this.r)}${Vt(this.g)}${Vt(this.b)}`}function Mu(){return`#${Vt(this.r)}${Vt(this.g)}${Vt(this.b)}${Vt((isNaN(this.opacity)?1:this.opacity)*255)}`}function io(){const t=xi(this.opacity);return`${t===1?"rgb(":"rgba("}${Gt(this.r)}, ${Gt(this.g)}, ${Gt(this.b)}${t===1?")":`, ${t})`}`}function xi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Gt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Vt(t){return t=Gt(t),(t<16?"0":"")+t.toString(16)}function ro(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new dt(t,e,i,r)}function us(t){if(t instanceof dt)return new dt(t.h,t.s,t.l,t.opacity);if(t instanceof De||(t=Ee(t)),!t)return new dt;if(t instanceof dt)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i<r)*6:i===o?s=(r-e)/a+2:s=(e-i)/a+4,a/=l<.5?o+n:2-o-n,s*=60):a=l>0&&l<1?0:s,new dt(s,a,l,t.opacity)}function Iu(t,e,i,r){return arguments.length===1?us(t):new dt(t,e,i,r??1)}function dt(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}jr(dt,Iu,hs(De,{brighter(t){return t=t==null?bi:Math.pow(bi,t),new dt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new dt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new it(_r(t>=240?t-240:t+120,n,r),_r(t,n,r),_r(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new dt(no(this.h),Ze(this.s),Ze(this.l),xi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=xi(this.opacity);return`${t===1?"hsl(":"hsla("}${no(this.h)}, ${Ze(this.s)*100}%, ${Ze(this.l)*100}%${t===1?")":`, ${t})`}`}}));function no(t){return t=(t||0)%360,t<0?t+360:t}function Ze(t){return Math.max(0,Math.min(1,t||0))}function _r(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Xr=t=>()=>t;function fs(t,e){return function(i){return t+i*e}}function Ou(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function F_(t,e){var i=e-t;return i?fs(t,i>180||i<-180?i-360*Math.round(i/360):i):Xr(isNaN(t)?e:t)}function Nu(t){return(t=+t)==1?ds:function(e,i){return i-e?Ou(e,i,t):Xr(isNaN(e)?i:e)}}function ds(t,e){var i=e-t;return i?fs(t,i):Xr(isNaN(t)?e:t)}const oo=function t(e){var i=Nu(e);function r(n,o){var s=i((n=Fr(n)).r,(o=Fr(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),c=ds(n.opacity,o.opacity);return function(h){return n.r=s(h),n.g=a(h),n.b=l(h),n.opacity=c(h),n+""}}return r.gamma=t,r}(1);function It(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Mr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yr=new RegExp(Mr.source,"g");function Du(t){return function(){return t}}function Ru(t){return function(e){return t(e)+""}}function $u(t,e){var i=Mr.lastIndex=yr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Mr.exec(t))&&(n=yr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:It(r,n)})),i=yr.lastIndex;return i<e.length&&(o=e.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Ru(l[0].x):Du(e):(e=l.length,function(c){for(var h=0,f;h<e;++h)a[(f=l[h]).i]=f.x(c);return a.join("")})}var so=180/Math.PI,Ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ps(t,e,i,r,n,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,s=-s),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*so,skewX:Math.atan(l)*so,scaleX:s,scaleY:a}}var Je;function zu(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ir:ps(e.a,e.b,e.c,e.d,e.e,e.f)}function Pu(t){return t==null||(Je||(Je=document.createElementNS("http://www.w3.org/2000/svg","g")),Je.setAttribute("transform",t),!(t=Je.transform.baseVal.consolidate()))?Ir:(t=t.matrix,ps(t.a,t.b,t.c,t.d,t.e,t.f))}function gs(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function o(c,h,f,g,p,_){if(c!==f||h!==g){var v=p.push("translate(",null,e,null,i);_.push({i:v-4,x:It(c,f)},{i:v-2,x:It(h,g)})}else(f||g)&&p.push("translate("+f+e+g+i)}function s(c,h,f,g){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),g.push({i:f.push(n(f)+"rotate(",null,r)-2,x:It(c,h)})):h&&f.push(n(f)+"rotate("+h+r)}function a(c,h,f,g){c!==h?g.push({i:f.push(n(f)+"skewX(",null,r)-2,x:It(c,h)}):h&&f.push(n(f)+"skewX("+h+r)}function l(c,h,f,g,p,_){if(c!==f||h!==g){var v=p.push(n(p)+"scale(",null,",",null,")");_.push({i:v-4,x:It(c,f)},{i:v-2,x:It(h,g)})}else(f!==1||g!==1)&&p.push(n(p)+"scale("+f+","+g+")")}return function(c,h){var f=[],g=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,f,g),s(c.rotate,h.rotate,f,g),a(c.skewX,h.skewX,f,g),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,f,g),c=h=null,function(p){for(var _=-1,v=g.length,B;++_<v;)f[(B=g[_]).i]=B.x(p);return f.join("")}}}var Wu=gs(zu,"px, ","px)","deg)"),qu=gs(Pu,", ",")",")"),ce=0,be=0,Ce=0,ms=1e3,vi,xe,Ti=0,Xt=0,Wi=0,Fe=typeof performance=="object"&&performance.now?performance:Date,_s=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Kr(){return Xt||(_s(Hu),Xt=Fe.now()+Wi)}function Hu(){Xt=0}function ki(){this._call=this._time=this._next=null}ki.prototype=ys.prototype={constructor:ki,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?Kr():+i)+(e==null?0:+e),!this._next&&xe!==this&&(xe?xe._next=this:vi=this,xe=this),this._call=t,this._time=i,Or()},stop:function(){this._call&&(this._call=null,this._time=1/0,Or())}};function ys(t,e,i){var r=new ki;return r.restart(t,e,i),r}function Uu(){Kr(),++ce;for(var t=vi,e;t;)(e=Xt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ce}function ao(){Xt=(Ti=Fe.now())+Wi,ce=be=0;try{Uu()}finally{ce=0,Gu(),Xt=0}}function Vu(){var t=Fe.now(),e=t-Ti;e>ms&&(Wi-=e,Ti=t)}function Gu(){for(var t,e=vi,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:vi=i);xe=t,Or(r)}function Or(t){if(!ce){be&&(be=clearTimeout(be));var e=t-Xt;e>24?(t<1/0&&(be=setTimeout(ao,t-Fe.now()-Wi)),Ce&&(Ce=clearInterval(Ce))):(Ce||(Ti=Fe.now(),Ce=setInterval(Vu,ms)),ce=1,_s(ao))}}function lo(t,e,i){var r=new ki;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var Yu=Zo("start","end","cancel","interrupt"),ju=[],Cs=0,co=1,Nr=2,li=3,ho=4,Dr=5,ci=6;function qi(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;Xu(t,i,{name:e,index:r,group:n,on:Yu,tween:ju,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Cs})}function Zr(t,e){var i=_t(t,e);if(i.state>Cs)throw new Error("too late; already scheduled");return i}function xt(t,e){var i=_t(t,e);if(i.state>li)throw new Error("too late; already running");return i}function _t(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Xu(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=ys(o,0,i.time);function o(c){i.state=co,i.timer.restart(s,i.delay,i.time),i.delay<=c&&s(c-i.delay)}function s(c){var h,f,g,p;if(i.state!==co)return l();for(h in r)if(p=r[h],p.name===i.name){if(p.state===li)return lo(s);p.state===ho?(p.state=ci,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[h]):+h<e&&(p.state=ci,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[h])}if(lo(function(){i.state===li&&(i.state=ho,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=Nr,i.on.call("start",t,t.__data__,i.index,i.group),i.state===Nr){for(i.state=li,n=new Array(g=i.tween.length),h=0,f=-1;h<g;++h)(p=i.tween[h].value.call(t,t.__data__,i.index,i.group))&&(n[++f]=p);n.length=f+1}}function a(c){for(var h=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=Dr,1),f=-1,g=n.length;++f<g;)n[f].call(t,h);i.state===Dr&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=ci,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function Ku(t,e){var i=t.__transition,r,n,o=!0,s;if(i){e=e==null?null:e+"";for(s in i){if((r=i[s]).name!==e){o=!1;continue}n=r.state>Nr&&r.state<Dr,r.state=ci,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[s]}o&&delete t.__transition}}function Zu(t){return this.each(function(){Ku(this,t)})}function Ju(t,e){var i,r;return function(){var n=xt(this,t),o=n.tween;if(o!==i){r=i=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}n.tween=r}}function Qu(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var o=xt(this,t),s=o.tween;if(s!==r){n=(r=s).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}o.tween=n}}function tf(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=_t(this.node(),i).tween,n=0,o=r.length,s;n<o;++n)if((s=r[n]).name===t)return s.value;return null}return this.each((e==null?Ju:Qu)(i,t,e))}function Jr(t,e,i){var r=t._id;return t.each(function(){var n=xt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return _t(n,r).value[e]}}function bs(t,e){var i;return(typeof e=="number"?It:e instanceof Ee?oo:(i=Ee(e))?(e=i,oo):$u)(t,e)}function ef(t){return function(){this.removeAttribute(t)}}function rf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function nf(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttribute(t);return s===n?null:s===r?o:o=e(r=s,i)}}function of(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===n?null:s===r?o:o=e(r=s,i)}}function sf(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function af(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function lf(t,e){var i=Pi(t),r=i==="transform"?qu:bs;return this.attrTween(t,typeof e=="function"?(i.local?af:sf)(i,r,Jr(this,"attr."+t,e)):e==null?(i.local?rf:ef)(i):(i.local?of:nf)(i,r,e))}function cf(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function hf(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function uf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&hf(t,o)),i}return n._value=e,n}function ff(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&cf(t,o)),i}return n._value=e,n}function df(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=Pi(t);return this.tween(i,(r.local?uf:ff)(r,e))}function pf(t,e){return function(){Zr(this,t).delay=+e.apply(this,arguments)}}function gf(t,e){return e=+e,function(){Zr(this,t).delay=e}}function mf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?pf:gf)(e,t)):_t(this.node(),e).delay}function _f(t,e){return function(){xt(this,t).duration=+e.apply(this,arguments)}}function yf(t,e){return e=+e,function(){xt(this,t).duration=e}}function Cf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?_f:yf)(e,t)):_t(this.node(),e).duration}function bf(t,e){if(typeof e!="function")throw new Error;return function(){xt(this,t).ease=e}}function xf(t){var e=this._id;return arguments.length?this.each(bf(e,t)):_t(this.node(),e).ease}function vf(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;xt(this,t).ease=i}}function Tf(t){if(typeof t!="function")throw new Error;return this.each(vf(this._id,t))}function kf(t){typeof t!="function"&&(t=ts(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Et(r,this._parents,this._name,this._id)}function Sf(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,o=Math.min(r,n),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=i[a],h=l.length,f=s[a]=new Array(h),g,p=0;p<h;++p)(g=l[p]||c[p])&&(f[p]=g);for(;a<r;++a)s[a]=e[a];return new Et(s,this._parents,this._name,this._id)}function wf(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function Bf(t,e,i){var r,n,o=wf(e)?Zr:xt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function Lf(t,e){var i=this._id;return arguments.length<2?_t(this.node(),i).on.on(t):this.each(Bf(i,t,e))}function Af(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function Ef(){return this.on("end.remove",Af(this._id))}function Ff(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Gr(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s<n;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),h,f,g=0;g<l;++g)(h=a[g])&&(f=t.call(h,h.__data__,g,a))&&("__data__"in h&&(f.__data__=h.__data__),c[g]=f,qi(c[g],e,i,g,c,_t(h,i)));return new Et(o,this._parents,e,i)}function Mf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Qo(t));for(var r=this._groups,n=r.length,o=[],s=[],a=0;a<n;++a)for(var l=r[a],c=l.length,h,f=0;f<c;++f)if(h=l[f]){for(var g=t.call(h,h.__data__,f,l),p,_=_t(h,i),v=0,B=g.length;v<B;++v)(p=g[v])&&qi(p,e,i,v,g,_);o.push(g),s.push(h)}return new Et(o,s,e,i)}var If=Ne.prototype.constructor;function Of(){return new If(this._groups,this._parents)}function Nf(t,e){var i,r,n;return function(){var o=le(this,t),s=(this.style.removeProperty(t),le(this,t));return o===s?null:o===i&&s===r?n:n=e(i=o,r=s)}}function xs(t){return function(){this.style.removeProperty(t)}}function Df(t,e,i){var r,n=i+"",o;return function(){var s=le(this,t);return s===n?null:s===r?o:o=e(r=s,i)}}function Rf(t,e,i){var r,n,o;return function(){var s=le(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),le(this,t))),s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a))}}function $f(t,e){var i,r,n,o="style."+e,s="end."+o,a;return function(){var l=xt(this,t),c=l.on,h=l.value[o]==null?a||(a=xs(e)):void 0;(c!==i||n!==h)&&(r=(i=c).copy()).on(s,n=h),l.on=r}}function zf(t,e,i){var r=(t+="")=="transform"?Wu:bs;return e==null?this.styleTween(t,Nf(t,r)).on("end.style."+t,xs(t)):typeof e=="function"?this.styleTween(t,Rf(t,r,Jr(this,"style."+t,e))).each($f(this._id,t)):this.styleTween(t,Df(t,r,e),i).on("end.style."+t,null)}function Pf(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function Wf(t,e,i){var r,n;function o(){var s=e.apply(this,arguments);return s!==n&&(r=(n=s)&&Pf(t,s,i)),r}return o._value=e,o}function qf(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Wf(t,e,i??""))}function Hf(t){return function(){this.textContent=t}}function Uf(t){return function(){var e=t(this);this.textContent=e??""}}function Vf(t){return this.tween("text",typeof t=="function"?Uf(Jr(this,"text",t)):Hf(t==null?"":t+""))}function Gf(t){return function(e){this.textContent=t.call(this,e)}}function Yf(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&Gf(n)),e}return r._value=t,r}function jf(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Yf(t))}function Xf(){for(var t=this._name,e=this._id,i=vs(),r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var h=_t(l,e);qi(l,t,i,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Et(r,this._parents,t,i)}function Kf(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--n===0&&o()}};i.each(function(){var c=xt(this,r),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&o()})}var Zf=0;function Et(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function vs(){return++Zf}var wt=Ne.prototype;Et.prototype={constructor:Et,select:Ff,selectAll:Mf,selectChild:wt.selectChild,selectChildren:wt.selectChildren,filter:kf,merge:Sf,selection:Of,transition:Xf,call:wt.call,nodes:wt.nodes,node:wt.node,size:wt.size,empty:wt.empty,each:wt.each,on:Lf,attr:lf,attrTween:df,style:zf,styleTween:qf,text:Vf,textTween:jf,remove:Ef,tween:tf,delay:mf,duration:Cf,ease:xf,easeVarying:Tf,end:Kf,[Symbol.iterator]:wt[Symbol.iterator]};function Jf(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Qf={time:null,delay:0,duration:250,ease:Jf};function td(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function ed(t){var e,i;t instanceof Et?(e=t._id,t=t._name):(e=vs(),(i=Qf).time=Kr(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&qi(l,t,e,c,s,i||td(l,e));return new Et(r,this._parents,t,e)}Ne.prototype.interrupt=Zu;Ne.prototype.transition=ed;const M_=Math.abs,I_=Math.atan2,O_=Math.cos,N_=Math.max,D_=Math.min,R_=Math.sin,$_=Math.sqrt,uo=1e-12,Qr=Math.PI,fo=Qr/2,z_=2*Qr;function P_(t){return t>1?0:t<-1?Qr:Math.acos(t)}function W_(t){return t>=1?fo:t<=-1?-fo:Math.asin(t)}function Ts(t){this._context=t}Ts.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function id(t){return new Ts(t)}class ks{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function rd(t){return new ks(t,!0)}function nd(t){return new ks(t,!1)}function $t(){}function Si(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Hi(t){this._context=t}Hi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Si(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Si(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function od(t){return new Hi(t)}function Ss(t){this._context=t}Ss.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Si(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function sd(t){return new Ss(t)}function ws(t){this._context=t}ws.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:Si(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ad(t){return new ws(t)}function Bs(t,e){this._basis=new Hi(t),this._beta=e}Bs.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const ld=function t(e){function i(r){return e===1?new Hi(r):new Bs(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function wi(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function tn(t,e){this._context=t,this._k=(1-e)/6}tn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:wi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:wi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const cd=function t(e){function i(r){return new tn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function en(t,e){this._context=t,this._k=(1-e)/6}en.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const hd=function t(e){function i(r){return new en(r,e)}return i.tension=function(r){return t(+r)},i}(0);function rn(t,e){this._context=t,this._k=(1-e)/6}rn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ud=function t(e){function i(r){return new rn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function nn(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>uo){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>uo){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*c+t._y1*t._l23_2a-i*t._l12_2a)/h}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function Ls(t,e){this._context=t,this._alpha=e}Ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const fd=function t(e){function i(r){return e?new Ls(r,e):new tn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function As(t,e){this._context=t,this._alpha=e}As.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const dd=function t(e){function i(r){return e?new As(r,e):new en(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Es(t,e){this._context=t,this._alpha=e}Es.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const pd=function t(e){function i(r){return e?new Es(r,e):new rn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Fs(t){this._context=t}Fs.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function gd(t){return new Fs(t)}function po(t){return t<0?-1:1}function go(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(po(o)+po(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function mo(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Cr(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function Bi(t){this._context=t}Bi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Cr(this,this._t0,mo(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Cr(this,mo(this,i=go(this,t,e)),i);break;default:Cr(this,this._t0,i=go(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function Ms(t){this._context=new Is(t)}(Ms.prototype=Object.create(Bi.prototype)).point=function(t,e){Bi.prototype.point.call(this,e,t)};function Is(t){this._context=t}Is.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function md(t){return new Bi(t)}function _d(t){return new Ms(t)}function Os(t){this._context=t}Os.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=_o(t),n=_o(e),o=0,s=1;s<i;++o,++s)this._context.bezierCurveTo(r[0][o],n[0][o],r[1][o],n[1][o],t[s],e[s]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function _o(t){var e,i=t.length-1,r,n=new Array(i),o=new Array(i),s=new Array(i);for(n[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,o[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(n[i-1]=s[i-1]/o[i-1],e=i-2;e>=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function yd(t){return new Os(t)}function Ui(t,e){this._context=t,this._t=e}Ui.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function Cd(t){return new Ui(t,.5)}function bd(t){return new Ui(t,0)}function xd(t){return new Ui(t,1)}function ve(t,e,i){this.k=t,this.x=e,this.y=i}ve.prototype={constructor:ve,scale:function(t){return t===1?this:new ve(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ve(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ve.prototype;const vd=function(t,e){for(let i of e)t.attr(i[0],i[1])},Td=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},kd=function(t,e,i,r){const n=Td(e,i,r);vd(t,n)},Sd=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;x.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;x.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,x.info(`Calculated bounds: ${a}x${l}`),kd(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)};let on="",Vi="",sn="";const an=t=>we(t,Ft()),Ns=function(){on="",sn="",Vi=""},Ds=function(t){on=an(t).replace(/^\s+/g,"")},Rs=function(){return on||Vi},$s=function(t){sn=an(t).replace(/\n\s+/g,`
`)},zs=function(){return sn},Ps=function(t){Vi=an(t)},Ws=function(){return Vi},wd={setAccTitle:Ds,getAccTitle:Rs,setDiagramTitle:Ps,getDiagramTitle:Ws,getAccDescription:zs,setAccDescription:$s,clear:Ns},Bd=Object.freeze(Object.defineProperty({__proto__:null,clear:Ns,default:wd,getAccDescription:zs,getAccTitle:Rs,getDiagramTitle:Ws,setAccDescription:$s,setAccTitle:Ds,setDiagramTitle:Ps},Symbol.toStringTag,{value:"Module"}));/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function qs(t){return typeof t>"u"||t===null}function Ld(t){return typeof t=="object"&&t!==null}function Ad(t){return Array.isArray(t)?t:qs(t)?[]:[t]}function Ed(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;i<r;i+=1)n=o[i],t[n]=e[n];return t}function Fd(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function Md(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Id=qs,Od=Ld,Nd=Ad,Dd=Fd,Rd=Md,$d=Ed,Z={isNothing:Id,isObject:Od,toArray:Nd,repeat:Dd,isNegativeZero:Rd,extend:$d};function Hs(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
`+t.mark.snippet),r+" "+i):r}function Me(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Hs(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Me.prototype=Object.create(Error.prototype);Me.prototype.constructor=Me;Me.prototype.toString=function(e){return this.name+": "+Hs(this,e)};var Bt=Me;function br(t,e,i,r,n){var o="",s="",a=Math.floor(n/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function xr(t,e){return Z.repeat(" ",e-t.length)+t}function zd(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,h=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=br(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),f),a=Z.repeat(" ",e.indent)+xr((t.line-l+1).toString(),h)+" | "+c.str+`
`+a;for(c=br(t.buffer,r[s],n[s],t.position,f),a+=Z.repeat(" ",e.indent)+xr((t.line+1).toString(),h)+" | "+c.str+`
`,a+=Z.repeat("-",e.indent+h+3+c.pos)+`^
`,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)c=br(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),f),a+=Z.repeat(" ",e.indent)+xr((t.line+l+1).toString(),h)+" | "+c.str+`
`;return a.replace(/\n$/,"")}var Pd=zd,Wd=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],qd=["scalar","sequence","mapping"];function Hd(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function Ud(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(Wd.indexOf(i)===-1)throw new Bt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Hd(e.styleAliases||null),qd.indexOf(this.kind)===-1)throw new Bt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var X=Ud;function yo(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(n=s)}),i[n]=r}),i}function Vd(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function Rr(t){return this.extend(t)}Rr.prototype.extend=function(e){var i=[],r=[];if(e instanceof X)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Bt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof X))throw new Bt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Bt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Bt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof X))throw new Bt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Rr.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=yo(n,"implicit"),n.compiledExplicit=yo(n,"explicit"),n.compiledTypeMap=Vd(n.compiledImplicit,n.compiledExplicit),n};var Gd=Rr,Yd=new X("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),jd=new X("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Xd=new X("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Us=new Gd({explicit:[Yd,jd,Xd]});function Kd(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Zd(){return null}function Jd(t){return t===null}var Qd=new X("tag:yaml.org,2002:null",{kind:"scalar",resolve:Kd,construct:Zd,predicate:Jd,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function tp(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function ep(t){return t==="true"||t==="True"||t==="TRUE"}function ip(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var rp=new X("tag:yaml.org,2002:bool",{kind:"scalar",resolve:tp,construct:ep,predicate:ip,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function np(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function op(t){return 48<=t&&t<=55}function sp(t){return 48<=t&&t<=57}function ap(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!np(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!op(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!sp(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function lp(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function cp(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Z.isNegativeZero(t)}var hp=new X("tag:yaml.org,2002:int",{kind:"scalar",resolve:ap,construct:lp,predicate:cp,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"]}}),up=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function fp(t){return!(t===null||!up.test(t)||t[t.length-1]==="_")}function dp(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var pp=/^[-+]?[0-9]+e/;function gp(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Z.isNegativeZero(t))return"-0.0";return i=t.toString(10),pp.test(i)?i.replace("e",".e"):i}function mp(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Z.isNegativeZero(t))}var _p=new X("tag:yaml.org,2002:float",{kind:"scalar",resolve:fp,construct:dp,predicate:mp,represent:gp,defaultStyle:"lowercase"}),yp=Us.extend({implicit:[Qd,rp,hp,_p]}),Cp=yp,Vs=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Gs=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function bp(t){return t===null?!1:Vs.exec(t)!==null||Gs.exec(t)!==null}function xp(t){var e,i,r,n,o,s,a,l=0,c=null,h,f,g;if(e=Vs.exec(t),e===null&&(e=Gs.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(h=+e[10],f=+(e[11]||0),c=(h*60+f)*6e4,e[9]==="-"&&(c=-c)),g=new Date(Date.UTC(i,r,n,o,s,a,l)),c&&g.setTime(g.getTime()-c),g}function vp(t){return t.toISOString()}var Tp=new X("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:bp,construct:xp,instanceOf:Date,represent:vp});function kp(t){return t==="<<"||t===null}var Sp=new X("tag:yaml.org,2002:merge",{kind:"scalar",resolve:kp}),ln=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function wp(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=ln;for(i=0;i<n;i++)if(e=o.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function Bp(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=ln,s=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):i===18?(a.push(s>>10&255),a.push(s>>2&255)):i===12&&a.push(s>>4&255),new Uint8Array(a)}function Lp(t){var e="",i=0,r,n,o=t.length,s=ln;for(r=0;r<o;r++)r%3===0&&r&&(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]),i=(i<<8)+t[r];return n=o%3,n===0?(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]):n===2?(e+=s[i>>10&63],e+=s[i>>4&63],e+=s[i<<2&63],e+=s[64]):n===1&&(e+=s[i>>2&63],e+=s[i<<4&63],e+=s[64],e+=s[64]),e}function Ap(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Ep=new X("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wp,construct:Bp,predicate:Ap,represent:Lp}),Fp=Object.prototype.hasOwnProperty,Mp=Object.prototype.toString;function Ip(t){if(t===null)return!0;var e=[],i,r,n,o,s,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],s=!1,Mp.call(n)!=="[object Object]")return!1;for(o in n)if(Fp.call(n,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function Op(t){return t!==null?t:[]}var Np=new X("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ip,construct:Op}),Dp=Object.prototype.toString;function Rp(t){if(t===null)return!0;var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1){if(r=s[e],Dp.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;o[e]=[n[0],r[n[0]]]}return!0}function $p(t){if(t===null)return[];var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1)r=s[e],n=Object.keys(r),o[e]=[n[0],r[n[0]]];return o}var zp=new X("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Rp,construct:$p}),Pp=Object.prototype.hasOwnProperty;function Wp(t){if(t===null)return!0;var e,i=t;for(e in i)if(Pp.call(i,e)&&i[e]!==null)return!1;return!0}function qp(t){return t!==null?t:{}}var Hp=new X("tag:yaml.org,2002:set",{kind:"mapping",resolve:Wp,construct:qp}),Up=Cp.extend({implicit:[Tp,Sp],explicit:[Ep,Np,zp,Hp]}),zt=Object.prototype.hasOwnProperty,Li=1,Ys=2,js=3,Ai=4,vr=1,Vp=2,Co=3,Gp=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Yp=/[\x85\u2028\u2029]/,jp=/[,\[\]\{\}]/,Xs=/^(?:!|!!|![a-z\-]+!)$/i,Ks=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function bo(t){return Object.prototype.toString.call(t)}function bt(t){return t===10||t===13}function Yt(t){return t===9||t===32}function rt(t){return t===9||t===32||t===10||t===13}function ne(t){return t===44||t===91||t===93||t===123||t===125}function Xp(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Kp(t){return t===120?2:t===117?4:t===85?8:0}function Zp(t){return 48<=t&&t<=57?t-48:-1}function xo(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Jp(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Zs=new Array(256),Js=new Array(256);for(var re=0;re<256;re++)Zs[re]=xo(re)?1:0,Js[re]=xo(re);function Qp(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Up,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Qs(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=Pd(i),new Bt(e,i)}function k(t,e){throw Qs(t,e)}function Ei(t,e){t.onWarning&&t.onWarning.call(null,Qs(t,e))}var vo={YAML:function(e,i,r){var n,o,s;e.version!==null&&k(e,"duplication of %YAML directive"),r.length!==1&&k(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&k(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&k(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&Ei(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&k(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],Xs.test(n)||k(e,"ill-formed tag handle (first argument) of the TAG directive"),zt.call(e.tagMap,n)&&k(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ks.test(o)||k(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{k(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function Rt(t,e,i,r){var n,o,s,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,o=a.length;n<o;n+=1)s=a.charCodeAt(n),s===9||32<=s&&s<=1114111||k(t,"expected valid JSON character");else Gp.test(a)&&k(t,"the stream contains non-printable characters");t.result+=a}}function To(t,e,i,r){var n,o,s,a;for(Z.isObject(i)||k(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),s=0,a=n.length;s<a;s+=1)o=n[s],zt.call(e,o)||(e[o]=i[o],r[o]=!0)}function oe(t,e,i,r,n,o,s,a,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&k(t,"nested arrays are not supported inside keys"),typeof n=="object"&&bo(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&bo(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,h=o.length;c<h;c+=1)To(t,e,o[c],i);else To(t,e,o,i);else!t.json&&!zt.call(i,n)&&zt.call(e,n)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,k(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete i[n];return e}function cn(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):k(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function R(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Yt(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(bt(n))for(cn(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&Ei(t,"deficient indentation"),r}function Gi(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||rt(i)))}function hn(t,e){e===1?t.result+=" ":e>1&&(t.result+=Z.repeat(`
`,e-1))}function tg(t,e,i){var r,n,o,s,a,l,c,h,f=t.kind,g=t.result,p;if(p=t.input.charCodeAt(t.position),rt(p)||ne(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),rt(n)||i&&ne(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),rt(n)||i&&ne(n))break}else if(p===35){if(r=t.input.charCodeAt(t.position-1),rt(r))break}else{if(t.position===t.lineStart&&Gi(t)||i&&ne(p))break;if(bt(p))if(l=t.line,c=t.lineStart,h=t.lineIndent,R(t,!1,-1),t.lineIndent>=e){a=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=h;break}}a&&(Rt(t,o,s,!1),hn(t,t.line-l),o=s=t.position,a=!1),Yt(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return Rt(t,o,s,!1),t.result?!0:(t.kind=f,t.result=g,!1)}function eg(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(Rt(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else bt(i)?(Rt(t,r,n,!0),hn(t,R(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Gi(t)?k(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);k(t,"unexpected end of the stream within a single quoted scalar")}function ig(t,e){var i,r,n,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Rt(t,i,t.position,!0),t.position++,!0;if(a===92){if(Rt(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),bt(a))R(t,!1,e);else if(a<256&&Zs[a])t.result+=Js[a],t.position++;else if((s=Kp(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=Xp(a))>=0?o=(o<<4)+s:k(t,"expected hexadecimal character");t.result+=Jp(o),t.position++}else k(t,"unknown escape sequence");i=r=t.position}else bt(a)?(Rt(t,i,r,!0),hn(t,R(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Gi(t)?k(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}k(t,"unexpected end of the stream within a double quoted scalar")}function rg(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,c,h,f,g,p,_=Object.create(null),v,B,E,b;if(b=t.input.charCodeAt(t.position),b===91)h=93,p=!1,a=[];else if(b===123)h=125,p=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),b=t.input.charCodeAt(++t.position);b!==0;){if(R(t,!0,e),b=t.input.charCodeAt(t.position),b===h)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=a,!0;i?b===44&&k(t,"expected the node content, but found ','"):k(t,"missed comma between flow collection entries"),B=v=E=null,f=g=!1,b===63&&(c=t.input.charCodeAt(t.position+1),rt(c)&&(f=g=!0,t.position++,R(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,he(t,e,Li,!1,!0),B=t.tag,v=t.result,R(t,!0,e),b=t.input.charCodeAt(t.position),(g||t.line===r)&&b===58&&(f=!0,b=t.input.charCodeAt(++t.position),R(t,!0,e),he(t,e,Li,!1,!0),E=t.result),p?oe(t,a,_,B,v,E,r,n,o):f?a.push(oe(t,null,_,B,v,E,r,n,o)):a.push(v),R(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(i=!0,b=t.input.charCodeAt(++t.position)):i=!1}k(t,"unexpected end of the stream within a flow collection")}function ng(t,e){var i,r,n=vr,o=!1,s=!1,a=e,l=0,c=!1,h,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)vr===n?n=f===43?Co:Vp:k(t,"repeat of a chomping mode identifier");else if((h=Zp(f))>=0)h===0?k(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?k(t,"repeat of an indentation width identifier"):(a=e+h-1,s=!0);else break;if(Yt(f)){do f=t.input.charCodeAt(++t.position);while(Yt(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!bt(f)&&f!==0)}for(;f!==0;){for(cn(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),bt(f)){l++;continue}if(t.lineIndent<a){n===Co?t.result+=Z.repeat(`
`,o?1+l:l):n===vr&&o&&(t.result+=`
`);break}for(r?Yt(f)?(c=!0,t.result+=Z.repeat(`
`,o?1+l:l)):c?(c=!1,t.result+=Z.repeat(`
`,l+1)):l===0?o&&(t.result+=" "):t.result+=Z.repeat(`
`,l):t.result+=Z.repeat(`
`,o?1+l:l),o=!0,s=!0,l=0,i=t.position;!bt(f)&&f!==0;)f=t.input.charCodeAt(++t.position);Rt(t,i,t.position,!1)}return!0}function ko(t,e){var i,r=t.tag,n=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,k(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!rt(s))));){if(a=!0,t.position++,R(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,he(t,e,js,!1,!0),o.push(t.result),R(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)k(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=o,!0):!1}function og(t,e,i){var r,n,o,s,a,l,c=t.tag,h=t.anchor,f={},g=Object.create(null),p=null,_=null,v=null,B=!1,E=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),b=t.input.charCodeAt(t.position);b!==0;){if(!B&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,k(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(b===63||b===58)&&rt(r))b===63?(B&&(oe(t,f,g,p,_,null,s,a,l),p=_=v=null),E=!0,B=!0,n=!0):B?(B=!1,n=!0):k(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=r;else{if(s=t.line,a=t.lineStart,l=t.position,!he(t,i,Ys,!1,!0))break;if(t.line===o){for(b=t.input.charCodeAt(t.position);Yt(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),rt(b)||k(t,"a whitespace character is expected after the key-value separator within a block mapping"),B&&(oe(t,f,g,p,_,null,s,a,l),p=_=v=null),E=!0,B=!1,n=!1,p=t.tag,_=t.result;else if(E)k(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=h,!0}else if(E)k(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=h,!0}if((t.line===o||t.lineIndent>e)&&(B&&(s=t.line,a=t.lineStart,l=t.position),he(t,e,Ai,!0,n)&&(B?_=t.result:v=t.result),B||(oe(t,f,g,p,_,v,s,a,l),p=_=v=null),R(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&b!==0)k(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return B&&oe(t,f,g,p,_,null,s,a,l),E&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=f),E}function sg(t){var e,i=!1,r=!1,n,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&k(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(i=!0,s=t.input.charCodeAt(++t.position)):s===33?(r=!0,n="!!",s=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):k(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!rt(s);)s===33&&(r?k(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Xs.test(n)||k(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),jp.test(o)&&k(t,"tag suffix cannot contain flow indicator characters")}o&&!Ks.test(o)&&k(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{k(t,"tag name is malformed: "+o)}return i?t.tag=o:zt.call(t.tagMap,n)?t.tag=t.tagMap[n]+o:n==="!"?t.tag="!"+o:n==="!!"?t.tag="tag:yaml.org,2002:"+o:k(t,'undeclared tag handle "'+n+'"'),!0}function ag(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&k(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!rt(i)&&!ne(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&k(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function lg(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!rt(r)&&!ne(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&k(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),zt.call(t.anchorMap,i)||k(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],R(t,!0,-1),!0}function he(t,e,i,r,n){var o,s,a,l=1,c=!1,h=!1,f,g,p,_,v,B;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=Ai===i||js===i,r&&R(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;sg(t)||ag(t);)R(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||Ai===i)&&(Li===i||Ys===i?v=e:v=e+1,B=t.position-t.lineStart,l===1?a&&(ko(t,B)||og(t,B,v))||rg(t,v)?h=!0:(s&&ng(t,v)||eg(t,v)||ig(t,v)?h=!0:lg(t)?(h=!0,(t.tag!==null||t.anchor!==null)&&k(t,"alias node should not have any properties")):tg(t,v,Li===i)&&(h=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(h=a&&ko(t,B))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&k(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,g=t.implicitTypes.length;f<g;f+=1)if(_=t.implicitTypes[f],_.resolve(t.result)){t.result=_.construct(t.result),t.tag=_.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(zt.call(t.typeMap[t.kind||"fallback"],t.tag))_=t.typeMap[t.kind||"fallback"][t.tag];else for(_=null,p=t.typeMap.multi[t.kind||"fallback"],f=0,g=p.length;f<g;f+=1)if(t.tag.slice(0,p[f].tag.length)===p[f].tag){_=p[f];break}_||k(t,"unknown tag !<"+t.tag+">"),t.result!==null&&_.kind!==t.kind&&k(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+_.kind+'", not "'+t.kind+'"'),_.resolve(t.result,t.tag)?(t.result=_.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):k(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}function cg(t){var e=t.position,i,r,n,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(R(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),i=t.position;s!==0&&!rt(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&k(t,"directive name must not be less than one character in length");s!==0;){for(;Yt(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!bt(s));break}if(bt(s))break;for(i=t.position;s!==0&&!rt(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&cn(t),zt.call(vo,r)?vo[r](t,r,n):Ei(t,'unknown document directive "'+r+'"')}if(R(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,R(t,!0,-1)):o&&k(t,"directives end mark is expected"),he(t,t.lineIndent-1,Ai,!1,!0),R(t,!0,-1),t.checkLineBreaks&&Yp.test(t.input.slice(e,t.position))&&Ei(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Gi(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,R(t,!0,-1));return}if(t.position<t.length-1)k(t,"end of the stream or a document separator is expected");else return}function ta(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new Qp(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,k(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)cg(i);return i.documents}function hg(t,e,i){e!==null&&typeof e=="object"&&typeof i>"u"&&(i=e,e=null);var r=ta(t,i);if(typeof e!="function")return r;for(var n=0,o=r.length;n<o;n+=1)e(r[n])}function ug(t,e){var i=ta(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Bt("expected a single document in the stream, but found more")}}var fg=hg,dg=ug,pg={loadAll:fg,load:dg},gg=Us,mg=pg.load;const ea=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function _g(t,e){var i;const r=t.match(ea);if(r){const n=mg(r[1],{schema:gg});return n!=null&&n.title&&((i=e.setDiagramTitle)==null||i.call(e,n.title)),t.slice(r[0].length)}else return t}const hi={},yg=(t,e,i)=>{let r="";return t in hi&&hi[t]?r=hi[t](i):x.warn(`No theme found for ${t}`),` & {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
fill: ${i.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${i.errorBkgColor};
}
& .error-text {
fill: ${i.errorTextColor};
stroke: ${i.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${i.lineColor};
stroke: ${i.lineColor};
}
& .marker.cross {
stroke: ${i.lineColor};
}
& svg {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
}
${r}
${e}
`},Cg=(t,e)=>{hi[t]=e},bg=yg;let Ut={};const ia=function(t,e,i,r){x.debug("parseDirective is being called",e,i,r);try{if(e!==void 0)switch(e=e.trim(),i){case"open_directive":Ut={};break;case"type_directive":if(!Ut)throw new Error("currentDirective is undefined");Ut.type=e.toLowerCase();break;case"arg_directive":if(!Ut)throw new Error("currentDirective is undefined");Ut.args=JSON.parse(e);break;case"close_directive":xg(t,Ut,r),Ut=void 0;break}}catch(n){x.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${i}`),x.error(n.message)}},xg=function(t,e,i){switch(x.info(`Directive type=${e.type} with args:`,e.args),e.type){case"init":case"initialize":{["config"].forEach(r=>{e.args[r]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),e.args[i]=e.args[r],delete e.args[r])}),x.info("sanitize in handleDirective",e.args),fe(e.args),x.info("sanitize in handleDirective (done)",e.args),Yo(e.args);break}case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap(e.type==="wrap");break;case"themeCss":x.warn("themeCss encountered");break;default:x.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e);break}},vg=x,Tg=Hr,ra=Ft,kg=t=>we(t,ra()),Sg=Sd,wg=()=>Bd,Bg=(t,e,i,r)=>ia(t,e,i,r),Fi={},un=(t,e,i)=>{if(Fi[t])throw new Error(`Diagram ${t} already registered.`);Fi[t]=e,i&&sa(t,i),Cg(t,e.styles),e.injectUtils&&e.injectUtils(vg,Tg,ra,kg,Sg,wg(),Bg)},fn=t=>{if(t in Fi)return Fi[t];throw new Error(`Diagram ${t} not found.`)};class na extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Lg=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ag=/\s*%%.*\n/gm,ue={},dn=function(t,e){t=t.replace(ea,"").replace(Lg,"").replace(Ag,`
`);for(const[i,{detector:r}]of Object.entries(ue))if(r(t,e))return i;throw new na(`No diagram type detected matching given configuration for text: ${t}`)},oa=(...t)=>{for(const{id:e,detector:i,loader:r}of t)sa(e,i,r)},Eg=async()=>{x.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(ue).map(async([i,{detector:r,loader:n}])=>{if(n)try{fn(i)}catch{try{const{diagram:s,id:a}=await n();un(a,s,r)}catch(s){throw x.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete ue[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){x.error(`Failed to load ${e.length} external diagrams`);for(const i of e)x.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},sa=(t,e,i)=>{ue[t]?x.error(`Detector with key ${t} already exists`):ue[t]={detector:e,loader:i},x.debug(`Detector with key ${t} added${i?" with loader":""}`)},Fg=t=>ue[t].loader,Mg={curveBasis:od,curveBasisClosed:sd,curveBasisOpen:ad,curveBumpX:rd,curveBumpY:nd,curveBundle:ld,curveCardinalClosed:hd,curveCardinalOpen:ud,curveCardinal:cd,curveCatmullRomClosed:dd,curveCatmullRomOpen:pd,curveCatmullRom:fd,curveLinear:id,curveLinearClosed:gd,curveMonotoneX:md,curveMonotoneY:_d,curveNatural:yd,curveStep:Cd,curveStepAfter:xd,curveStepBefore:bd},Tr=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ig=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Og=function(t,e){const i=aa(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const n=i.map(o=>o.args);fe(n),r=j(r,[...n])}else r=i.args;if(r){let n=dn(t,e);["config"].forEach(o=>{r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o])})}return r},aa=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Ig.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),x.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Tr.exec(t))!==null;)if(r.index===Tr.lastIndex&&Tr.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0&&n.push({type:t,args:null}),n.length===1?n[0]:n}catch(i){return x.error(`ERROR: ${i.message} - Unable to parse directive
${e!==null?" type:"+e:""} based on the text:${t}`),{type:null,args:null}}},Ng=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function Dg(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Mg[i]||e}function Rg(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Ko(i):i}const $g=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o)return;o[n](...e)};function Mi(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function zg(t){let e,i=0;t.forEach(o=>{i+=Mi(o,e),e=o});let r=i/2,n;return e=void 0,t.forEach(o=>{if(e&&!n){const s=Mi(o,e);if(s<r)r-=s;else{const a=r/s;a<=0&&(n=e),a>=1&&(n={x:o.x,y:o.y}),a>0&&a<1&&(n={x:(1-a)*e.x+a*o.x,y:(1-a)*e.y+a*o.y})}}e=o}),n}function Pg(t){return t.length===1?t[0]:zg(t)}const Wg=(t,e,i)=>{let r;x.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());let o=25,s;r=void 0,e.forEach(h=>{if(r&&!s){const f=Mi(h,r);if(f<o)o-=f;else{const g=o/f;g<=0&&(s=r),g>=1&&(s={x:h.x,y:h.y}),g>0&&g<1&&(s={x:(1-g)*r.x+g*h.x,y:(1-g)*r.y+g*h.y})}}r=h});const a=t?10:5,l=Math.atan2(e[0].y-s.y,e[0].x-s.x),c={x:0,y:0};return c.x=Math.sin(l)*a+(e[0].x+s.x)/2,c.y=-Math.cos(l)*a+(e[0].y+s.y)/2,c};function qg(t,e,i){let r=JSON.parse(JSON.stringify(i)),n;x.info("our points",r),e!=="start_left"&&e!=="start_right"&&(r=r.reverse()),r.forEach(f=>{n=f});let s=25+t,a;n=void 0,r.forEach(f=>{if(n&&!a){const g=Mi(f,n);if(g<s)s-=g;else{const p=s/g;p<=0&&(a=n),p>=1&&(a={x:f.x,y:f.y}),p>0&&p<1&&(a={x:(1-p)*n.x+p*f.x,y:(1-p)*n.y+p*f.y})}}n=f});const l=10+t*.5,c=Math.atan2(r[0].y-a.y,r[0].x-a.x),h={x:0,y:0};return h.x=Math.sin(c)*l+(r[0].x+a.x)/2,h.y=-Math.cos(c)*l+(r[0].y+a.y)/2,e==="start_left"&&(h.x=Math.sin(c+Math.PI)*l+(r[0].x+a.x)/2,h.y=-Math.cos(c+Math.PI)*l+(r[0].y+a.y)/2),e==="end_right"&&(h.x=Math.sin(c-Math.PI)*l+(r[0].x+a.x)/2-5,h.y=-Math.cos(c-Math.PI)*l+(r[0].y+a.y)/2-5),e==="end_left"&&(h.x=Math.sin(c)*l+(r[0].x+a.x)/2-5,h.y=-Math.cos(c)*l+(r[0].y+a.y)/2-5),h}function Hg(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let So=0;const Ug=()=>(So++,"id-"+Math.random().toString(36).substr(2,12)+"-"+So);function Vg(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const Gg=t=>Vg(t.length),Yg=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},jg=function(t,e){const i=e.text.replace(Ur.lineBreakRegex," "),[,r]=gn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},Xg=qr((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Ur.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=Ii(`${s} `,i),c=Ii(o,i);if(l>e){const{hyphenatedStrings:g,remainingWord:p}=Kg(s,e,"-",i);n.push(o,...g),o=p}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Kg=qr((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(Ii(c,r)>=e){const f=l+1,g=n.length===f,p=`${c}${i}`;o.push(g?c:p),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Zg(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),pn(t,e).height}function Ii(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),pn(t,e).width}const pn=qr((t,e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e);const{fontSize:i,fontFamily:r,fontWeight:n}=e;if(!t)return{width:0,height:0};const[,o]=gn(i),s=["sans-serif",r],a=t.split(Ur.lineBreakRegex),l=[],c=yt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const g of s){let p=0;const _={width:0,height:0,lineHeight:0};for(const v of a){const B=Yg();B.text=v;const E=jg(h,B).style("font-size",o).style("font-weight",n).style("font-family",g),b=(E._groups||E)[0][0].getBBox();_.width=Math.round(Math.max(_.width,b.width)),p=Math.round(b.height),_.height+=p,_.lineHeight=Math.round(Math.max(_.lineHeight,p))}l.push(_)}h.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),Jg=class{constructor(e,i){this.deterministic=e,this.seed=i,this.count=i?i.length:0}next(){return this.deterministic?this.count++:Date.now()}};let Qe;const Qg=function(t){return Qe=Qe||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Qe.innerHTML=t,unescape(Qe.textContent)},fe=t=>{if(x.debug("directiveSanitizer called with",t),typeof t=="object"&&(t.length?t.forEach(e=>fe(e)):Object.keys(t).forEach(e=>{x.debug("Checking key",e),e.startsWith("__")&&(x.debug("sanitize deleting __ option",e),delete t[e]),e.includes("proto")&&(x.debug("sanitize deleting proto option",e),delete t[e]),e.includes("constr")&&(x.debug("sanitize deleting constr option",e),delete t[e]),e.includes("themeCSS")&&(x.debug("sanitizing themeCss option"),t[e]=ui(t[e])),e.includes("fontFamily")&&(x.debug("sanitizing fontFamily option"),t[e]=ui(t[e])),e.includes("altFontFamily")&&(x.debug("sanitizing altFontFamily option"),t[e]=ui(t[e])),Sc.includes(e)?typeof t[e]=="object"&&(x.debug("sanitize deleting object",e),fe(t[e])):(x.debug("sanitize deleting option",e),delete t[e])})),t.themeVariables){const e=Object.keys(t.themeVariables);for(const i of e){const r=t.themeVariables[i];r&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[i]="")}}x.debug("After sanitization",t)},ui=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t};function la(t){return"str"in t}function tm(t){return t instanceof Error?t.message:String(t)}const em=(t,e,i,r)=>{if(!r)return;const n=t.node().getBBox();t.append("text").text(r).attr("x",n.x+n.width/2).attr("y",-i).attr("class",e)},gn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t,10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},fi={assignWithDepth:j,wrapLabel:Xg,calculateTextHeight:Zg,calculateTextWidth:Ii,calculateTextDimensions:pn,detectInit:Og,detectDirective:aa,isSubstringInArray:Ng,interpolateToCurve:Dg,calcLabelPosition:Pg,calcCardinalityPosition:Wg,calcTerminalLabelPosition:qg,formatUrl:Rg,getStylesFromArray:Hg,generateId:Ug,random:Gg,runFunc:$g,entityDecode:Qg,initIdGenerator:Jg,directiveSanitizer:fe,sanitizeCss:ui,insertTitle:em,parseFontSize:gn};var ca="comm",ha="rule",ua="decl",im="@import",rm="@keyframes",nm="@layer",om=Math.abs,mn=String.fromCharCode;function fa(t){return t.trim()}function di(t,e,i){return t.replace(e,i)}function sm(t,e){return t.indexOf(e)}function Ie(t,e){return t.charCodeAt(e)|0}function Oe(t,e,i){return t.slice(e,i)}function Ot(t){return t.length}function da(t){return t.length}function ti(t,e){return e.push(t),t}var Yi=1,de=1,pa=0,lt=0,D=0,pe="";function _n(t,e,i,r,n,o,s){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Yi,column:de,length:s,return:""}}function am(){return D}function lm(){return D=lt>0?Ie(pe,--lt):0,de--,D===10&&(de=1,Yi--),D}function pt(){return D=lt<pa?Ie(pe,lt++):0,de++,D===10&&(de=1,Yi++),D}function jt(){return Ie(pe,lt)}function pi(){return lt}function ji(t,e){return Oe(pe,t,e)}function $r(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function cm(t){return Yi=de=1,pa=Ot(pe=t),lt=0,[]}function hm(t){return pe="",t}function kr(t){return fa(ji(lt-1,zr(t===91?t+2:t===40?t+1:t)))}function um(t){for(;(D=jt())&&D<33;)pt();return $r(t)>2||$r(D)>3?"":" "}function fm(t,e){for(;--e&&pt()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return ji(t,pi()+(e<6&&jt()==32&&pt()==32))}function zr(t){for(;pt();)switch(D){case t:return lt;case 34:case 39:t!==34&&t!==39&&zr(D);break;case 40:t===41&&zr(t);break;case 92:pt();break}return lt}function dm(t,e){for(;pt()&&t+D!==47+10;)if(t+D===42+42&&jt()===47)break;return"/*"+ji(e,lt-1)+"*"+mn(t===47?t:pt())}function pm(t){for(;!$r(jt());)pt();return ji(t,lt)}function gm(t){return hm(gi("",null,null,null,[""],t=cm(t),0,[0],t))}function gi(t,e,i,r,n,o,s,a,l){for(var c=0,h=0,f=s,g=0,p=0,_=0,v=1,B=1,E=1,b=0,I="",O=n,z=o,P=r,F=I;B;)switch(_=b,b=pt()){case 40:if(_!=108&&Ie(F,f-1)==58){sm(F+=di(kr(b),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:F+=kr(b);break;case 9:case 10:case 13:case 32:F+=um(_);break;case 92:F+=fm(pi()-1,7);continue;case 47:switch(jt()){case 42:case 47:ti(mm(dm(pt(),pi()),e,i),l);break;default:F+="/"}break;case 123*v:a[c++]=Ot(F)*E;case 125*v:case 59:case 0:switch(b){case 0:case 125:B=0;case 59+h:E==-1&&(F=di(F,/\f/g,"")),p>0&&Ot(F)-f&&ti(p>32?Bo(F+";",r,i,f-1):Bo(di(F," ","")+";",r,i,f-2),l);break;case 59:F+=";";default:if(ti(P=wo(F,e,i,c,h,n,a,I,O=[],z=[],f),o),b===123)if(h===0)gi(F,e,P,P,O,o,f,a,z);else switch(g===99&&Ie(F,3)===110?100:g){case 100:case 108:case 109:case 115:gi(t,P,P,r&&ti(wo(t,P,P,0,0,n,a,I,n,O=[],f),z),n,z,f,a,r?O:z);break;default:gi(F,P,P,P,[""],z,0,a,z)}}c=h=p=0,v=E=1,I=F="",f=s;break;case 58:f=1+Ot(F),p=_;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&lm()==125)continue}switch(F+=mn(b),b*v){case 38:E=h>0?1:(F+="\f",-1);break;case 44:a[c++]=(Ot(F)-1)*E,E=1;break;case 64:jt()===45&&(F+=kr(pt())),g=jt(),h=f=Ot(I=F+=pm(pi())),b++;break;case 45:_===45&&Ot(F)==2&&(v=0)}}return o}function wo(t,e,i,r,n,o,s,a,l,c,h){for(var f=n-1,g=n===0?o:[""],p=da(g),_=0,v=0,B=0;_<r;++_)for(var E=0,b=Oe(t,f+1,f=om(v=s[_])),I=t;E<p;++E)(I=fa(v>0?g[E]+" "+b:di(b,/&\f/g,g[E])))&&(l[B++]=I);return _n(t,e,i,n===0?ha:a,l,c,h)}function mm(t,e,i){return _n(t,e,i,ca,mn(am()),Oe(t,2,-2),0)}function Bo(t,e,i,r){return _n(t,e,i,ua,Oe(t,0,r),Oe(t,r+1,-1),r)}function Pr(t,e){for(var i="",r=da(t),n=0;n<r;n++)i+=e(t[n],n,t,e)||"";return i}function _m(t,e,i,r){switch(t.type){case nm:if(t.children.length)break;case im:case ua:return t.return=t.return||t.value;case ca:return"";case rm:return t.return=t.value+"{"+Pr(t.children,r)+"}";case ha:t.value=t.props.join(",")}return Ot(i=Pr(t.children,r))?t.return=t.value+"{"+i+"}":""}let Lo={};const ym=function(t){Lo={...Lo,...t}},Cm=(t,e,i)=>{try{x.debug(`Renering svg for syntax error
`);const r=yt("#"+e),n=r.append("g");n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+i),r.attr("height",100),r.attr("width",500),r.attr("viewBox","768 0 912 512")}catch(r){x.error("Error while rendering info diagram"),x.error(tm(r))}},bm={setConf:ym,draw:Cm},Ao="10.0.2",ga="c4",xm=t=>t.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)!==null,vm=async()=>{const{diagram:t}=await $(()=>import("./c4Diagram-f9e67060-9a50c233.js"),["assets/c4Diagram-f9e67060-9a50c233.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js"]);return{id:ga,diagram:t}},Tm={id:ga,detector:xm,loader:vm},km=Tm,ma="flowchart",Sm=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:t.match(/^\s*graph/)!==null},wm=async()=>{const{diagram:t}=await $(()=>import("./flowDiagram-42bb1e4d-9d5102cc.js"),["assets/flowDiagram-42bb1e4d-9d5102cc.js","assets/add-html-label-75a701d7.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/layout-f2c14d1e.js","assets/line-9f2393b9.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/styles-4fe3d1fc-5b33f6d7.js","assets/index-f9d09cc9-79ebc366.js","assets/edges-65da65dc-02341734.js","assets/svgDraw-6a237a99-180f226f.js","assets/selectAll-d04eb7e1.js"]);return{id:ma,diagram:t}},Bm={id:ma,detector:Sm,loader:wm},Lm=Bm,_a="flowchart-v2",Am=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:t.match(/^\s*graph/)!==null&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:t.match(/^\s*flowchart/)!==null},Em=async()=>{const{diagram:t}=await $(()=>import("./flowDiagram-v2-4c9a7611-3a68cbd6.js"),["assets/flowDiagram-v2-4c9a7611-3a68cbd6.js","assets/add-html-label-75a701d7.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/styles-4fe3d1fc-5b33f6d7.js","assets/layout-f2c14d1e.js","assets/index-f9d09cc9-79ebc366.js","assets/edges-65da65dc-02341734.js","assets/svgDraw-6a237a99-180f226f.js","assets/line-9f2393b9.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/selectAll-d04eb7e1.js"]);return{id:_a,diagram:t}},Fm={id:_a,detector:Am,loader:Em},Mm=Fm,ya="er",Im=t=>t.match(/^\s*erDiagram/)!==null,Om=async()=>{const{diagram:t}=await $(()=>import("./erDiagram-25977acd-bdf80c36.js"),["assets/erDiagram-25977acd-bdf80c36.js","assets/layout-f2c14d1e.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/line-9f2393b9.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:ya,diagram:t}},Nm={id:ya,detector:Im,loader:Om},Dm=Nm,Ca="gitGraph",Rm=t=>t.match(/^\s*gitGraph/)!==null,$m=async()=>{const{diagram:t}=await $(()=>import("./gitGraphDiagram-30dcca6d-917eeec9.js"),["assets/gitGraphDiagram-30dcca6d-917eeec9.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js"]);return{id:Ca,diagram:t}},zm={id:Ca,detector:Rm,loader:$m},Pm=zm,ba="gantt",Wm=t=>t.match(/^\s*gantt/)!==null,qm=async()=>{const{diagram:t}=await $(()=>import("./ganttDiagram-41439120-be348213.js"),["assets/ganttDiagram-41439120-be348213.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/init-77b53fdd.js"]);return{id:ba,diagram:t}},Hm={id:ba,detector:Wm,loader:qm},Um=Hm,xa="info",Vm=t=>t.match(/^\s*info/)!==null,Gm=async()=>{const{diagram:t}=await $(()=>import("./infoDiagram-1b335302-adcc1995.js"),["assets/infoDiagram-1b335302-adcc1995.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js"]);return{id:xa,diagram:t}},Ym={id:xa,detector:Vm,loader:Gm},jm=Ym,va="pie",Xm=t=>t.match(/^\s*pie/)!==null,Km=async()=>{const{diagram:t}=await $(()=>import("./pieDiagram-905ac727-7b13aee1.js"),["assets/pieDiagram-905ac727-7b13aee1.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/init-77b53fdd.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/arc-adf2c682.js"]);return{id:va,diagram:t}},Zm={id:va,detector:Xm,loader:Km},Jm=Zm,Ta="requirement",Qm=t=>t.match(/^\s*requirement(Diagram)?/)!==null,t0=async()=>{const{diagram:t}=await $(()=>import("./requirementDiagram-84e9ae78-896806b6.js"),["assets/requirementDiagram-84e9ae78-896806b6.js","assets/layout-f2c14d1e.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/line-9f2393b9.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:Ta,diagram:t}},e0={id:Ta,detector:Qm,loader:t0},i0=e0,ka="sequence",r0=t=>t.match(/^\s*sequenceDiagram/)!==null,n0=async()=>{const{diagram:t}=await $(()=>import("./sequenceDiagram-2c95880e-5c0b7556.js"),["assets/sequenceDiagram-2c95880e-5c0b7556.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/selectAll-d04eb7e1.js"]);return{id:ka,diagram:t}},o0={id:ka,detector:r0,loader:n0},s0=o0,Sa="class",a0=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:t.match(/^\s*classDiagram/)!==null},l0=async()=>{const{diagram:t}=await $(()=>import("./classDiagram-4456d403-d5b3393c.js"),["assets/classDiagram-4456d403-d5b3393c.js","assets/styles-0dd3ba1e-30d81569.js","assets/layout-f2c14d1e.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/svgDraw-6a237a99-180f226f.js","assets/line-9f2393b9.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:Sa,diagram:t}},c0={id:Sa,detector:a0,loader:l0},h0=c0,wa="classDiagram",u0=(t,e)=>{var i;return t.match(/^\s*classDiagram/)!==null&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:t.match(/^\s*classDiagram-v2/)!==null},f0=async()=>{const{diagram:t}=await $(()=>import("./classDiagram-v2-539b00ca-508345cd.js"),["assets/classDiagram-v2-539b00ca-508345cd.js","assets/styles-0dd3ba1e-30d81569.js","assets/layout-f2c14d1e.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/index-f9d09cc9-79ebc366.js","assets/edges-65da65dc-02341734.js","assets/svgDraw-6a237a99-180f226f.js","assets/line-9f2393b9.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:wa,diagram:t}},d0={id:wa,detector:u0,loader:f0},p0=d0,Ba="state",g0=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:t.match(/^\s*stateDiagram/)!==null},m0=async()=>{const{diagram:t}=await $(()=>import("./stateDiagram-95825141-0c21dd75.js"),["assets/stateDiagram-95825141-0c21dd75.js","assets/styles-d6bd7a5e-866bbf33.js","assets/layout-f2c14d1e.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/line-9f2393b9.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:Ba,diagram:t}},_0={id:Ba,detector:g0,loader:m0},y0=_0,La="stateDiagram",C0=(t,e)=>{var i,r;return!!(t.match(/^\s*stateDiagram-v2/)!==null||t.match(/^\s*stateDiagram/)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||t.match(/^\s*stateDiagram/)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},b0=async()=>{const{diagram:t}=await $(()=>import("./stateDiagram-v2-1cc5d8ed-cd2f7b09.js"),["assets/stateDiagram-v2-1cc5d8ed-cd2f7b09.js","assets/styles-d6bd7a5e-866bbf33.js","assets/layout-f2c14d1e.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/index-f9d09cc9-79ebc366.js","assets/edges-65da65dc-02341734.js","assets/svgDraw-6a237a99-180f226f.js","assets/line-9f2393b9.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:La,diagram:t}},x0={id:La,detector:C0,loader:b0},v0=x0,Aa="journey",T0=t=>t.match(/^\s*journey/)!==null,k0=async()=>{const{diagram:t}=await $(()=>import("./journeyDiagram-ded66ec9-459c92b6.js"),["assets/journeyDiagram-ded66ec9-459c92b6.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/arc-adf2c682.js","assets/path-53f90ab3.js"]);return{id:Aa,diagram:t}},S0={id:Aa,detector:T0,loader:k0},w0=S0,Ea="error",B0=t=>t.toLowerCase().trim()==="error",L0=async()=>{const{diagram:t}=await $(()=>import("./errorDiagram-bb949655-9fcf9b2f.js"),["assets/errorDiagram-bb949655-9fcf9b2f.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js"]);return{id:Ea,diagram:t}},A0={id:Ea,detector:B0,loader:L0},E0=A0,Fa="flowchart-elk",F0=(t,e)=>{var i;return!!(t.match(/^\s*flowchart-elk/)||t.match(/^\s*flowchart|graph/)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},M0=async()=>{const{diagram:t}=await $(()=>import("./flowchart-elk-definition-c9fc5e04-885ee437.js"),["assets/flowchart-elk-definition-c9fc5e04-885ee437.js","assets/add-html-label-75a701d7.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/edges-65da65dc-02341734.js","assets/svgDraw-6a237a99-180f226f.js","assets/line-9f2393b9.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:Fa,diagram:t}},I0={id:Fa,detector:F0,loader:M0},O0=I0,Ma="timeline",N0=t=>t.match(/^\s*timeline/)!==null,D0=async()=>{const{diagram:t}=await $(()=>import("./timeline-definition-24ebf147-94bc52f1.js"),["assets/timeline-definition-24ebf147-94bc52f1.js","assets/app-cbe6e1e7.js","assets/framework-44b8a372.js","assets/is_dark-0d264c89.js","assets/arc-adf2c682.js","assets/path-53f90ab3.js"]);return{id:Ma,diagram:t}},R0={id:Ma,detector:N0,loader:D0},$0=R0,Ia="mindmap",z0=t=>t.match(/^\s*mindmap/)!==null,P0=async()=>{const{diagram:t}=await $(()=>import("./mindmap-definition-c8a05b8a-c0f47d47.js"),["assets/mindmap-definition-c8a05b8a-c0f47d47.js","assets/framework-44b8a372.js","assets/app-cbe6e1e7.js","assets/is_dark-0d264c89.js"]);return{id:Ia,diagram:t}},W0={id:Ia,detector:z0,loader:P0},q0=W0;let Eo=!1;const yn=()=>{Eo||(Eo=!0,un("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),oa(E0,km,p0,h0,Dm,Um,jm,Jm,i0,s0,O0,Mm,Lm,q0,$0,Pm,v0,y0,w0))};class Oa{constructor(e){var i,r;this.text=e,this.type="graph",this.text+=`
`;const n=Ft();try{this.type=dn(e,n)}catch(a){this.type="error",this.detectError=a}const o=fn(this.type);x.debug("Type "+this.type),this.db=o.db,(r=(i=this.db).clear)==null||r.call(i),this.renderer=o.renderer,this.parser=o.parser;const s=this.parser.parse.bind(this.parser);this.parser.parse=a=>s(_g(a,this.db)),this.parser.parser.yy=this.db,o.init&&(o.init(n),x.info("Initialized diagram "+this.type,n)),this.parse()}parse(){var e,i;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const Na=async t=>{const e=dn(t,Ft());try{fn(e)}catch{const r=Fg(e);if(!r)throw new na(`Diagram ${e} not found.`);const{id:n,diagram:o}=await r();un(n,o)}return new Oa(t)};let Wr=[];const H_=t=>{Wr.push(t)},H0=()=>{Wr.forEach(t=>{t()}),Wr=[]},U0="graphics-document document";function V0(t,e){t.attr("role",U0),ei(e)||t.attr("aria-roledescription",e)}function G0(t,e,i,r){if(t.insert!==void 0)if(e||i){if(i){const n="chart-desc-"+r;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n="chart-title-"+r;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}else return}const Da=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],Y0=5e4,j0="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",X0="sandbox",K0="loose",Z0="http://www.w3.org/2000/svg",J0="http://www.w3.org/1999/xlink",Q0="http://www.w3.org/1999/xhtml",t_="100%",e_="100%",i_="border:0;margin:0;",r_="margin:0",n_="allow-top-navigation-by-user-activation allow-popups",o_='The "iframe" tag is not supported by your browser.',s_=["foreignobject"],a_=["dominant-baseline"];async function l_(t,e){yn();let i;try{(await Na(t)).parse()}catch(r){i=r}if(e!=null&&e.suppressErrors)return i===void 0;if(i)throw i}const c_=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},h_=function(t){let e=t;return e=e.replace(/fl°°/g,"&#"),e=e.replace(/fl°/g,"&"),e=e.replace(/¶ß/g,";"),e},Fo=(t,e,i=[])=>`
.${t} ${e} { ${i.join(" !important; ")} !important; }`,u_=(t,e,i={})=>{var r;let n="";if(t.themeCSS!==void 0&&(n+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(n+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(n+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!ei(i)&&Da.includes(e)){const l=t.htmlLabels||((r=t.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const c in i){const h=i[c];ei(h.styles)||l.forEach(f=>{n+=Fo(h.id,f,h.styles)}),ei(h.textStyles)||(n+=Fo(h.id,"tspan",h.textStyles))}}return n},f_=(t,e,i,r)=>{const n=u_(t,e,i),o=bg(e,n,t.themeVariables);return Pr(gm(`${r}{${o}}`),_m)},d_=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),r=h_(r),r=r.replace(/<br>/g,"<br/>"),r},p_=(t="",e)=>{const i=e?e.viewBox.baseVal.height+"px":e_,r=btoa('<body style="'+r_+'">'+t+"</body>");return`<iframe style="width:${t_};height:${i};${i_}" src="data:text/html;base64,${r}" sandbox="${n_}">
${o_}
</iframe>`},Mo=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Z0);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function Io(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const g_=(t,e,i,r)=>{var n,o,s;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(s=t.getElementById(r))==null||s.remove()},m_=async function(t,e,i){var r,n,o,s;yn(),yi();const a=fi.detectInit(e);a&&(fe(a),Yo(a));const l=Ft();x.debug(l),e.length>((l==null?void 0:l.maxTextSize)??Y0)&&(e=j0),e=e.replace(/\r\n?/g,`
`);const c="#"+t,h="i"+t,f="#"+h,g="d"+t,p="#"+g;let _=yt("body");const v=l.securityLevel===X0,B=l.securityLevel===K0,E=l.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),v){const ht=Io(yt(i),h);_=yt(ht.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=yt(i);Mo(_,t,g,`font-family: ${E}`,J0)}else{if(g_(document,t,g,h),v){const ht=Io(yt("body"),h);_=yt(ht.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=yt("body");Mo(_,t,g)}e=c_(e);let b,I;try{b=await Na(e)}catch(ht){b=new Oa("error"),I=ht}const O=_.select(p).node(),z=b.type,P=O.firstChild,F=P.firstChild,Xi=Da.includes(z)?b.renderer.getClasses(e,b):{},Ki=f_(l,z,Xi,c),Re=document.createElement("style");Re.innerHTML=Ki,P.insertBefore(Re,F);try{await b.renderer.draw(e,t,Ao,b)}catch(ht){throw bm.draw(e,t,Ao),ht}const Zi=_.select(`${p} svg`),$e=(n=(r=b.db).getAccTitle)==null?void 0:n.call(r),ot=(s=(o=b.db).getAccDescription)==null?void 0:s.call(o);y_(z,Zi,$e,ot),_.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Q0);let ct=_.select(p).node().innerHTML;if(x.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),ct=d_(ct,v,qo(l.arrowMarkerAbsolute)),v){const ht=_.select(p+" svg").node();ct=p_(ct,ht)}else B||(ct=_i.sanitize(ct,{ADD_TAGS:s_,ADD_ATTR:a_}));H0();const Pt=yt(v?f:p).node();if(Pt&&"remove"in Pt&&Pt.remove(),I)throw I;return{svg:ct,bindFunctions:b.db.bindFunctions}};function __(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Lc(t),t!=null&&t.theme&&t.theme in Lt?t.themeVariables=Lt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Lt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?Bc(t):Vo();Hr(i.logLevel),yn()}function y_(t,e,i,r){V0(e,t),G0(e,i,r,e.attr("id"))}const Kt=Object.freeze({render:m_,parse:l_,parseDirective:ia,initialize:__,getConfig:Ft,setConfig:Ec,getSiteConfig:Vo,updateSiteConfig:Ac,reset:()=>{yi()},globalReset:()=>{yi(Be)},defaultConfig:Be});Hr(Ft().logLevel);yi(Ft());const C_=(t,e,i)=>{x.warn(t),la(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},Ra=async function(t={querySelector:".mermaid"}){try{await b_(t)}catch(e){if(la(e)&&x.error(e.str),mt.parseError&&mt.parseError(e),!t.suppressErrors)throw x.error("Use the suppressErrors option to suppress these errors"),e}},b_=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Kt.getConfig();x.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");x.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(x.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),Kt.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new fi.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){x.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;s=l.innerHTML,s=fl(fi.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=fi.detectInit(s);h&&x.debug("Detected early reinit: ",h);try{const{svg:f,bindFunctions:g}=await Wa(c,s,l);l.innerHTML=f,t&&await t(c),g&&g(l)}catch(f){C_(f,a,mt.parseError)}}if(a.length>0)throw a[0]},$a=function(t){Kt.initialize(t)},x_=async function(t,e,i){x.warn("mermaid.init is deprecated. Please use run instead."),t&&$a(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Ra(r)},v_=async(t,{lazyLoad:e=!0}={})=>{oa(...t),e===!1&&await Eg()},za=function(){if(mt.startOnLoad){const{startOnLoad:t}=Kt.getConfig();t&&mt.run().catch(e=>x.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
* Wait for document loaded before starting the execution
*/window.addEventListener("load",za,!1)}const T_=function(t){mt.parseError=t},Oi=[];let Sr=!1;const Pa=async()=>{if(!Sr){for(Sr=!0;Oi.length>0;){const t=Oi.shift();if(t)try{await t()}catch(e){x.error("Error executing queue",e)}}Sr=!1}},k_=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{Kt.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;x.error("Error parsing",a),(l=mt.parseError)==null||l.call(mt,a),s(a),r(a)})});Oi.push(n),Pa().catch(r)}),Wa=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{Kt.render(t,e,i).then(l=>{s(l),r(l)},l=>{var c;x.error("Error parsing",l),(c=mt.parseError)==null||c.call(mt,l),a(l),n(l)})});Oi.push(o),Pa().catch(n)}),mt={startOnLoad:!0,mermaidAPI:Kt,parse:k_,render:Wa,init:x_,run:Ra,registerExternalDiagrams:v_,initialize:$a,parseError:void 0,contentLoaded:za,setParseErrorHandler:T_},U_=Object.freeze(Object.defineProperty({__proto__:null,default:mt},Symbol.toStringTag,{value:"Module"}));export{fo as $,ei as A,cs as B,jc as C,od as D,h_ as E,pc as F,Ec as G,ra as H,Sg as I,Gg as J,jr as K,hs as L,De as M,Fu as N,Xr as O,It as P,Ee as Q,it as R,nt as S,oo as T,$u as U,ds as V,F_ as W,z_ as X,Qr as Y,O_ as Z,R_ as _,zs as a,uo as a0,$_ as a1,D_ as a2,M_ as a3,I_ as a4,W_ as a5,P_ as a6,N_ as a7,gn as a8,H_ as a9,Ug as aa,bm as ab,Bd as ac,ia as ad,S as ae,w as af,At as ag,L as ah,U_ as ai,$s as b,Ft as c,we as d,j as e,Ii as f,Rs as g,yt as h,kd as i,Ko as j,Ur as k,x as l,Kt as m,Zg as n,id as o,Hg as p,qo as q,Dg as r,Ds as s,Sd as t,Be as u,Ps as v,Xg as w,Ws as x,fi as y,Ns as z};