mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
89 lines
231 KiB
JavaScript
89 lines
231 KiB
JavaScript
import{_ as et}from"./app-d0024b1b.js";function jl(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 u,g;return(g=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.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]:"",u=a;typeof a=="string"&&a.includes(`
|
||
`)&&(u=String(a).split(`
|
||
`).map(function(g,d){return d===0?g:""+h+g}).join(`
|
||
`)),s+=u+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 Qt(t){return Qt=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},Qt(t)}function Zr(t,e){return Zr=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Zr(t,e)}function Ul(){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 Bi(t,e,i){return Ul()?Bi=Reflect.construct:Bi=function(n,o,s){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(n,a),c=new l;return s&&Zr(c,s.prototype),c},Bi.apply(null,arguments)}function Bt(t){return Vl(t)||Gl(t)||Yl(t)||Xl()}function Vl(t){if(Array.isArray(t))return Jr(t)}function Gl(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Yl(t,e){if(t){if(typeof t=="string")return Jr(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 Jr(t,e)}}function Jr(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 Xl(){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 Kl=Object.hasOwnProperty,fo=Object.setPrototypeOf,Zl=Object.isFrozen,Jl=Object.getPrototypeOf,Ql=Object.getOwnPropertyDescriptor,dt=Object.freeze,Et=Object.seal,tc=Object.create,ys=typeof Reflect<"u"&&Reflect,Wi=ys.apply,Qr=ys.construct;Wi||(Wi=function(e,i,r){return e.apply(i,r)});dt||(dt=function(e){return e});Et||(Et=function(e){return e});Qr||(Qr=function(e,i){return Bi(e,Bt(i))});var ec=vt(Array.prototype.forEach),po=vt(Array.prototype.pop),He=vt(Array.prototype.push),Li=vt(String.prototype.toLowerCase),$r=vt(String.prototype.toString),ic=vt(String.prototype.match),wt=vt(String.prototype.replace),rc=vt(String.prototype.indexOf),nc=vt(String.prototype.trim),ht=vt(RegExp.prototype.test),Ir=oc(TypeError);function vt(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 Wi(t,e,r)}}function oc(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Qr(t,i)}}function N(t,e,i){i=i||Li,fo&&fo(t,null);for(var r=e.length;r--;){var n=e[r];if(typeof n=="string"){var o=i(n);o!==n&&(Zl(e)||(e[r]=o),n=o)}t[n]=!0}return t}function le(t){var e=tc(null),i;for(i in t)Wi(Kl,t,[i])===!0&&(e[i]=t[i]);return e}function yi(t,e){for(;t!==null;){var i=Ql(t,e);if(i){if(i.get)return vt(i.get);if(typeof i.value=="function")return vt(i.value)}t=Jl(t)}function r(n){return console.warn("fallback value for",n),null}return r}var go=dt(["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=dt(["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"]),Nr=dt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sc=dt(["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"]),Rr=dt(["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"]),ac=dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mo=dt(["#text"]),_o=dt(["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"]),Pr=dt(["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"]),yo=dt(["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"]),Ci=dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lc=Et(/\{\{[\w\W]*|[\w\W]*\}\}/gm),cc=Et(/<%[\w\W]*|[\w\W]*%>/gm),hc=Et(/\${[\w\W]*}/gm),uc=Et(/^data-[\-\w.\u00B7-\uFFFF]/),fc=Et(/^aria-[\-\w]+$/),dc=Et(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pc=Et(/^(?:\w+script|data):/i),gc=Et(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mc=Et(/^html$/i),_c=function(){return typeof window>"u"?null:window},yc=function(e,i){if(Qt(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 Cs(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_c(),e=function(f){return Cs(f)};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,u=t.HTMLFormElement,g=t.DOMParser,d=t.trustedTypes,_=a.prototype,k=yi(_,"cloneNode"),F=yi(_,"nextSibling"),R=yi(_,"childNodes"),x=yi(_,"parentNode");if(typeof o=="function"){var q=r.createElement("template");q.content&&q.content.ownerDocument&&(r=q.content.ownerDocument)}var G=yc(d,i),X=G?G.createHTML(""):"",j=r,P=j.implementation,Yt=j.createNodeIterator,Z=j.createDocumentFragment,z=j.getElementsByTagName,Xt=i.importNode,oe={};try{oe=le(r).documentMode?r.documentMode:{}}catch{}var L={};e.isSupported=typeof x=="function"&&P&&typeof P.createHTMLDocument<"u"&&oe!==9;var C=lc,b=cc,E=hc,y=uc,I=fc,O=pc,W=gc,K=dc,D=null,tt=N({},[].concat(Bt(go),Bt(Dr),Bt(Nr),Bt(Rr),Bt(mo))),U=null,Ct=N({},[].concat(Bt(_o),Bt(Pr),Bt(yo),Bt(Ci))),V=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}})),St=null,Ot=null,nt=!0,bt=!0,be=!1,kt=!1,se=!1,Sr=!1,kr=!1,xe=!1,fi=!1,di=!1,Kn=!0,Zn=!1,Il="user-content-",wr=!0,ze=!1,ve={},Te=null,Jn=N({},["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"]),Qn=null,to=N({},["audio","video","img","source","image","track"]),Br=null,eo=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pi="http://www.w3.org/1998/Math/MathML",gi="http://www.w3.org/2000/svg",Rt="http://www.w3.org/1999/xhtml",Se=Rt,Lr=!1,Ar=null,Dl=N({},[pi,gi,Rt],$r),ae,Nl=["application/xhtml+xml","text/html"],Rl="text/html",it,ke=null,Pl=r.createElement("form"),io=function(f){return f instanceof RegExp||f instanceof Function},Er=function(f){ke&&ke===f||((!f||Qt(f)!=="object")&&(f={}),f=le(f),ae=Nl.indexOf(f.PARSER_MEDIA_TYPE)===-1?ae=Rl:ae=f.PARSER_MEDIA_TYPE,it=ae==="application/xhtml+xml"?$r:Li,D="ALLOWED_TAGS"in f?N({},f.ALLOWED_TAGS,it):tt,U="ALLOWED_ATTR"in f?N({},f.ALLOWED_ATTR,it):Ct,Ar="ALLOWED_NAMESPACES"in f?N({},f.ALLOWED_NAMESPACES,$r):Dl,Br="ADD_URI_SAFE_ATTR"in f?N(le(eo),f.ADD_URI_SAFE_ATTR,it):eo,Qn="ADD_DATA_URI_TAGS"in f?N(le(to),f.ADD_DATA_URI_TAGS,it):to,Te="FORBID_CONTENTS"in f?N({},f.FORBID_CONTENTS,it):Jn,St="FORBID_TAGS"in f?N({},f.FORBID_TAGS,it):{},Ot="FORBID_ATTR"in f?N({},f.FORBID_ATTR,it):{},ve="USE_PROFILES"in f?f.USE_PROFILES:!1,nt=f.ALLOW_ARIA_ATTR!==!1,bt=f.ALLOW_DATA_ATTR!==!1,be=f.ALLOW_UNKNOWN_PROTOCOLS||!1,kt=f.SAFE_FOR_TEMPLATES||!1,se=f.WHOLE_DOCUMENT||!1,xe=f.RETURN_DOM||!1,fi=f.RETURN_DOM_FRAGMENT||!1,di=f.RETURN_TRUSTED_TYPE||!1,kr=f.FORCE_BODY||!1,Kn=f.SANITIZE_DOM!==!1,Zn=f.SANITIZE_NAMED_PROPS||!1,wr=f.KEEP_CONTENT!==!1,ze=f.IN_PLACE||!1,K=f.ALLOWED_URI_REGEXP||K,Se=f.NAMESPACE||Rt,f.CUSTOM_ELEMENT_HANDLING&&io(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&io(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),kt&&(bt=!1),fi&&(xe=!0),ve&&(D=N({},Bt(mo)),U=[],ve.html===!0&&(N(D,go),N(U,_o)),ve.svg===!0&&(N(D,Dr),N(U,Pr),N(U,Ci)),ve.svgFilters===!0&&(N(D,Nr),N(U,Pr),N(U,Ci)),ve.mathMl===!0&&(N(D,Rr),N(U,yo),N(U,Ci))),f.ADD_TAGS&&(D===tt&&(D=le(D)),N(D,f.ADD_TAGS,it)),f.ADD_ATTR&&(U===Ct&&(U=le(U)),N(U,f.ADD_ATTR,it)),f.ADD_URI_SAFE_ATTR&&N(Br,f.ADD_URI_SAFE_ATTR,it),f.FORBID_CONTENTS&&(Te===Jn&&(Te=le(Te)),N(Te,f.FORBID_CONTENTS,it)),wr&&(D["#text"]=!0),se&&N(D,["html","head","body"]),D.table&&(N(D,["tbody"]),delete St.tbody),dt&&dt(f),ke=f)},ro=N({},["mi","mo","mn","ms","mtext"]),no=N({},["foreignobject","desc","title","annotation-xml"]),zl=N({},["title","style","font","a","script"]),mi=N({},Dr);N(mi,Nr),N(mi,sc);var Fr=N({},Rr);N(Fr,ac);var Wl=function(f){var m=x(f);(!m||!m.tagName)&&(m={namespaceURI:Se,tagName:"template"});var T=Li(f.tagName),H=Li(m.tagName);return Ar[f.namespaceURI]?f.namespaceURI===gi?m.namespaceURI===Rt?T==="svg":m.namespaceURI===pi?T==="svg"&&(H==="annotation-xml"||ro[H]):Boolean(mi[T]):f.namespaceURI===pi?m.namespaceURI===Rt?T==="math":m.namespaceURI===gi?T==="math"&&no[H]:Boolean(Fr[T]):f.namespaceURI===Rt?m.namespaceURI===gi&&!no[H]||m.namespaceURI===pi&&!ro[H]?!1:!Fr[T]&&(zl[T]||!mi[T]):!!(ae==="application/xhtml+xml"&&Ar[f.namespaceURI]):!1},Pt=function(f){He(e.removed,{element:f});try{f.parentNode.removeChild(f)}catch{try{f.outerHTML=X}catch{f.remove()}}},Mr=function(f,m){try{He(e.removed,{attribute:m.getAttributeNode(f),from:m})}catch{He(e.removed,{attribute:null,from:m})}if(m.removeAttribute(f),f==="is"&&!U[f])if(xe||fi)try{Pt(m)}catch{}else try{m.setAttribute(f,"")}catch{}},oo=function(f){var m,T;if(kr)f="<remove></remove>"+f;else{var H=ic(f,/^[\r\n\t ]+/);T=H&&H[0]}ae==="application/xhtml+xml"&&Se===Rt&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");var pt=G?G.createHTML(f):f;if(Se===Rt)try{m=new g().parseFromString(pt,ae)}catch{}if(!m||!m.documentElement){m=P.createDocument(Se,"template",null);try{m.documentElement.innerHTML=Lr?X:pt}catch{}}var st=m.body||m.documentElement;return f&&T&&st.insertBefore(r.createTextNode(T),st.childNodes[0]||null),Se===Rt?z.call(m,se?"html":"body")[0]:se?m.documentElement:st},so=function(f){return Yt.call(f.ownerDocument||f,f,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Hl=function(f){return f instanceof u&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof h)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},We=function(f){return Qt(s)==="object"?f instanceof s:f&&Qt(f)==="object"&&typeof f.nodeType=="number"&&typeof f.nodeName=="string"},zt=function(f,m,T){L[f]&&ec(L[f],function(H){H.call(e,m,T,ke)})},ao=function(f){var m;if(zt("beforeSanitizeElements",f,null),Hl(f)||ht(/[\u0080-\uFFFF]/,f.nodeName))return Pt(f),!0;var T=it(f.nodeName);if(zt("uponSanitizeElement",f,{tagName:T,allowedTags:D}),f.hasChildNodes()&&!We(f.firstElementChild)&&(!We(f.content)||!We(f.content.firstElementChild))&&ht(/<[/\w]/g,f.innerHTML)&&ht(/<[/\w]/g,f.textContent)||T==="select"&&ht(/<template/i,f.innerHTML))return Pt(f),!0;if(!D[T]||St[T]){if(!St[T]&&co(T)&&(V.tagNameCheck instanceof RegExp&&ht(V.tagNameCheck,T)||V.tagNameCheck instanceof Function&&V.tagNameCheck(T)))return!1;if(wr&&!Te[T]){var H=x(f)||f.parentNode,pt=R(f)||f.childNodes;if(pt&&H)for(var st=pt.length,ot=st-1;ot>=0;--ot)H.insertBefore(k(pt[ot],!0),F(f))}return Pt(f),!0}return f instanceof a&&!Wl(f)||(T==="noscript"||T==="noembed")&&ht(/<\/no(script|embed)/i,f.innerHTML)?(Pt(f),!0):(kt&&f.nodeType===3&&(m=f.textContent,m=wt(m,C," "),m=wt(m,b," "),m=wt(m,E," "),f.textContent!==m&&(He(e.removed,{element:f.cloneNode()}),f.textContent=m)),zt("afterSanitizeElements",f,null),!1)},lo=function(f,m,T){if(Kn&&(m==="id"||m==="name")&&(T in r||T in Pl))return!1;if(!(bt&&!Ot[m]&&ht(y,m))){if(!(nt&&ht(I,m))){if(!U[m]||Ot[m]){if(!(co(f)&&(V.tagNameCheck instanceof RegExp&&ht(V.tagNameCheck,f)||V.tagNameCheck instanceof Function&&V.tagNameCheck(f))&&(V.attributeNameCheck instanceof RegExp&&ht(V.attributeNameCheck,m)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(m))||m==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&ht(V.tagNameCheck,T)||V.tagNameCheck instanceof Function&&V.tagNameCheck(T))))return!1}else if(!Br[m]){if(!ht(K,wt(T,W,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&f!=="script"&&rc(T,"data:")===0&&Qn[f])){if(!(be&&!ht(O,wt(T,W,"")))){if(T)return!1}}}}}}return!0},co=function(f){return f.indexOf("-")>0},ho=function(f){var m,T,H,pt;zt("beforeSanitizeAttributes",f,null);var st=f.attributes;if(st){var ot={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U};for(pt=st.length;pt--;){m=st[pt];var _i=m,rt=_i.name,Or=_i.namespaceURI;if(T=rt==="value"?m.value:nc(m.value),H=it(rt),ot.attrName=H,ot.attrValue=T,ot.keepAttr=!0,ot.forceKeepAttr=void 0,zt("uponSanitizeAttribute",f,ot),T=ot.attrValue,!ot.forceKeepAttr&&(Mr(rt,f),!!ot.keepAttr)){if(ht(/\/>/i,T)){Mr(rt,f);continue}kt&&(T=wt(T,C," "),T=wt(T,b," "),T=wt(T,E," "));var uo=it(f.nodeName);if(lo(uo,H,T)){if(Zn&&(H==="id"||H==="name")&&(Mr(rt,f),T=Il+T),G&&Qt(d)==="object"&&typeof d.getAttributeType=="function"&&!Or)switch(d.getAttributeType(uo,H)){case"TrustedHTML":T=G.createHTML(T);break;case"TrustedScriptURL":T=G.createScriptURL(T);break}try{Or?f.setAttributeNS(Or,rt,T):f.setAttribute(rt,T),po(e.removed)}catch{}}}}zt("afterSanitizeAttributes",f,null)}},ql=function w(f){var m,T=so(f);for(zt("beforeSanitizeShadowDOM",f,null);m=T.nextNode();)zt("uponSanitizeShadowNode",m,null),!ao(m)&&(m.content instanceof n&&w(m.content),ho(m));zt("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(w){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m,T,H,pt,st;if(Lr=!w,Lr&&(w="<!-->"),typeof w!="string"&&!We(w)){if(typeof w.toString!="function")throw Ir("toString is not a function");if(w=w.toString(),typeof w!="string")throw Ir("dirty is not a string, aborting")}if(!e.isSupported){if(Qt(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof w=="string")return t.toStaticHTML(w);if(We(w))return t.toStaticHTML(w.outerHTML)}return w}if(Sr||Er(f),e.removed=[],typeof w=="string"&&(ze=!1),ze){if(w.nodeName){var ot=it(w.nodeName);if(!D[ot]||St[ot])throw Ir("root node is forbidden and cannot be sanitized in-place")}}else if(w instanceof s)m=oo("<!---->"),T=m.ownerDocument.importNode(w,!0),T.nodeType===1&&T.nodeName==="BODY"||T.nodeName==="HTML"?m=T:m.appendChild(T);else{if(!xe&&!kt&&!se&&w.indexOf("<")===-1)return G&&di?G.createHTML(w):w;if(m=oo(w),!m)return xe?null:di?X:""}m&&kr&&Pt(m.firstChild);for(var _i=so(ze?w:m);H=_i.nextNode();)H.nodeType===3&&H===pt||ao(H)||(H.content instanceof n&&ql(H.content),ho(H),pt=H);if(pt=null,ze)return w;if(xe){if(fi)for(st=Z.call(m.ownerDocument);m.firstChild;)st.appendChild(m.firstChild);else st=m;return U.shadowroot&&(st=Xt.call(i,st,!0)),st}var rt=se?m.outerHTML:m.innerHTML;return se&&D["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&ht(mc,m.ownerDocument.doctype.name)&&(rt="<!DOCTYPE "+m.ownerDocument.doctype.name+`>
|
||
`+rt),kt&&(rt=wt(rt,C," "),rt=wt(rt,b," "),rt=wt(rt,E," ")),G&&di?G.createHTML(rt):rt},e.setConfig=function(w){Er(w),Sr=!0},e.clearConfig=function(){ke=null,Sr=!1},e.isValidAttribute=function(w,f,m){ke||Er({});var T=it(w),H=it(f);return lo(T,H,m)},e.addHook=function(w,f){typeof f=="function"&&(L[w]=L[w]||[],He(L[w],f))},e.removeHook=function(w){if(L[w])return po(L[w])},e.removeHooks=function(w){L[w]&&(L[w]=[])},e.removeAllHooks=function(){L={}},e}var Hi=Cs(),Cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tn={},bc={get exports(){return tn},set exports(t){tn=t}};(function(t,e){(function(i,r){t.exports=r()})(Cc,function(){var i=1e3,r=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",h="week",u="month",g="quarter",d="year",_="date",k="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var C=["th","st","nd","rd"],b=L%100;return"["+L+(C[(b-20)%10]||C[b]||C[0])+"]"}},q=function(L,C,b){var E=String(L);return!E||E.length>=C?L:""+Array(C+1-E.length).join(b)+L},G={s:q,z:function(L){var C=-L.utcOffset(),b=Math.abs(C),E=Math.floor(b/60),y=b%60;return(C<=0?"+":"-")+q(E,2,"0")+":"+q(y,2,"0")},m:function L(C,b){if(C.date()<b.date())return-L(b,C);var E=12*(b.year()-C.year())+(b.month()-C.month()),y=C.clone().add(E,u),I=b-y<0,O=C.clone().add(E+(I?-1:1),u);return+(-(E+(b-y)/(I?y-O:O-y))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:u,y:d,w:h,d:c,D:_,h:l,m:a,s,ms:o,Q:g}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},X="en",j={};j[X]=x;var P=function(L){return L instanceof Xt},Yt=function L(C,b,E){var y;if(!C)return X;if(typeof C=="string"){var I=C.toLowerCase();j[I]&&(y=I),b&&(j[I]=b,y=I);var O=C.split("-");if(!y&&O.length>1)return L(O[0])}else{var W=C.name;j[W]=C,y=W}return!E&&y&&(X=y),y||!E&&X},Z=function(L,C){if(P(L))return L.clone();var b=typeof C=="object"?C:{};return b.date=L,b.args=arguments,new Xt(b)},z=G;z.l=Yt,z.i=P,z.w=function(L,C){return Z(L,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var Xt=function(){function L(b){this.$L=Yt(b.locale,null,!0),this.parse(b)}var C=L.prototype;return C.parse=function(b){this.$d=function(E){var y=E.date,I=E.utc;if(y===null)return new Date(NaN);if(z.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var O=y.match(F);if(O){var W=O[2]-1||0,K=(O[7]||"0").substring(0,3);return I?new Date(Date.UTC(O[1],W,O[3]||1,O[4]||0,O[5]||0,O[6]||0,K)):new Date(O[1],W,O[3]||1,O[4]||0,O[5]||0,O[6]||0,K)}}return new Date(y)}(b),this.$x=b.x||{},this.init()},C.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},C.$utils=function(){return z},C.isValid=function(){return this.$d.toString()!==k},C.isSame=function(b,E){var y=Z(b);return this.startOf(E)<=y&&y<=this.endOf(E)},C.isAfter=function(b,E){return Z(b)<this.startOf(E)},C.isBefore=function(b,E){return this.endOf(E)<Z(b)},C.$g=function(b,E,y){return z.u(b)?this[E]:this.set(y,b)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(b,E){var y=this,I=!!z.u(E)||E,O=z.p(b),W=function(Ot,nt){var bt=z.w(y.$u?Date.UTC(y.$y,nt,Ot):new Date(y.$y,nt,Ot),y);return I?bt:bt.endOf(c)},K=function(Ot,nt){return z.w(y.toDate()[Ot].apply(y.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(nt)),y)},D=this.$W,tt=this.$M,U=this.$D,Ct="set"+(this.$u?"UTC":"");switch(O){case d:return I?W(1,0):W(31,11);case u:return I?W(1,tt):W(0,tt+1);case h:var V=this.$locale().weekStart||0,St=(D<V?D+7:D)-V;return W(I?U-St:U+(6-St),tt);case c:case _:return K(Ct+"Hours",0);case l:return K(Ct+"Minutes",1);case a:return K(Ct+"Seconds",2);case s:return K(Ct+"Milliseconds",3);default:return this.clone()}},C.endOf=function(b){return this.startOf(b,!1)},C.$set=function(b,E){var y,I=z.p(b),O="set"+(this.$u?"UTC":""),W=(y={},y[c]=O+"Date",y[_]=O+"Date",y[u]=O+"Month",y[d]=O+"FullYear",y[l]=O+"Hours",y[a]=O+"Minutes",y[s]=O+"Seconds",y[o]=O+"Milliseconds",y)[I],K=I===c?this.$D+(E-this.$W):E;if(I===u||I===d){var D=this.clone().set(_,1);D.$d[W](K),D.init(),this.$d=D.set(_,Math.min(this.$D,D.daysInMonth())).$d}else W&&this.$d[W](K);return this.init(),this},C.set=function(b,E){return this.clone().$set(b,E)},C.get=function(b){return this[z.p(b)]()},C.add=function(b,E){var y,I=this;b=Number(b);var O=z.p(E),W=function(tt){var U=Z(I);return z.w(U.date(U.date()+Math.round(tt*b)),I)};if(O===u)return this.set(u,this.$M+b);if(O===d)return this.set(d,this.$y+b);if(O===c)return W(1);if(O===h)return W(7);var K=(y={},y[a]=r,y[l]=n,y[s]=i,y)[O]||1,D=this.$d.getTime()+b*K;return z.w(D,this)},C.subtract=function(b,E){return this.add(-1*b,E)},C.format=function(b){var E=this,y=this.$locale();if(!this.isValid())return y.invalidDate||k;var I=b||"YYYY-MM-DDTHH:mm:ssZ",O=z.z(this),W=this.$H,K=this.$m,D=this.$M,tt=y.weekdays,U=y.months,Ct=function(nt,bt,be,kt){return nt&&(nt[bt]||nt(E,I))||be[bt].slice(0,kt)},V=function(nt){return z.s(W%12||12,nt,"0")},St=y.meridiem||function(nt,bt,be){var kt=nt<12?"AM":"PM";return be?kt.toLowerCase():kt},Ot={YY:String(this.$y).slice(-2),YYYY:this.$y,M:D+1,MM:z.s(D+1,2,"0"),MMM:Ct(y.monthsShort,D,U,3),MMMM:Ct(U,D),D:this.$D,DD:z.s(this.$D,2,"0"),d:String(this.$W),dd:Ct(y.weekdaysMin,this.$W,tt,2),ddd:Ct(y.weekdaysShort,this.$W,tt,3),dddd:tt[this.$W],H:String(W),HH:z.s(W,2,"0"),h:V(1),hh:V(2),a:St(W,K,!0),A:St(W,K,!1),m:String(K),mm:z.s(K,2,"0"),s:String(this.$s),ss:z.s(this.$s,2,"0"),SSS:z.s(this.$ms,3,"0"),Z:O};return I.replace(R,function(nt,bt){return bt||Ot[nt]||O.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(b,E,y){var I,O=z.p(E),W=Z(b),K=(W.utcOffset()-this.utcOffset())*r,D=this-W,tt=z.m(this,W);return tt=(I={},I[d]=tt/12,I[u]=tt,I[g]=tt/3,I[h]=(D-K)/6048e5,I[c]=(D-K)/864e5,I[l]=D/n,I[a]=D/r,I[s]=D/i,I)[O]||D,y?tt:z.a(tt)},C.daysInMonth=function(){return this.endOf(u).$D},C.$locale=function(){return j[this.$L]},C.locale=function(b,E){if(!b)return this.$L;var y=this.clone(),I=Yt(b,E,!0);return I&&(y.$L=I),y},C.clone=function(){return z.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},L}(),oe=Xt.prototype;return Z.prototype=oe,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",u],["$y",d],["$D",_]].forEach(function(L){oe[L[1]]=function(C){return this.$g(C,L[0],L[1])}}),Z.extend=function(L,C){return L.$i||(L(C,Xt,Z),L.$i=!0),Z},Z.locale=Yt,Z.isDayjs=P,Z.unix=function(L){return Z(1e3*L)},Z.en=j[X],Z.Ls=j,Z.p={},Z})})(bc);const xc=tn,Ai={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 Ai.hue2rgb(o,n,t+1/3)*255;case"g":return Ai.hue2rgb(o,n,t)*255;case"b":return Ai.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}}},vc=Ai,Tc={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},Sc=Tc,kc={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},wc=kc,Bc={channel:vc,lang:Sc,unit:wc},$=Bc,Kt={};for(let t=0;t<=255;t++)Kt[t]=$.unit.dec2hex(t);const at={ALL:0,RGB:1,HSL:2};class Lc{constructor(){this.type=at.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=at.ALL}is(e){return this.type===e}}const Ac=Lc;class Ec{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new Ac}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=at.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=$.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=$.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=$.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=$.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=$.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=$.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),$.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),$.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),$.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),$.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),$.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),$.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(at.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(at.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(at.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(at.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(at.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(at.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Fc=Ec,Mc=new Fc({r:0,g:0,b:0,a:0},"transparent"),lr=Mc,bs={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(bs.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 lr.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?`#${Kt[Math.round(e)]}${Kt[Math.round(i)]}${Kt[Math.round(r)]}${Kt[Math.round(n*255)]}`:`#${Kt[Math.round(e)]}${Kt[Math.round(i)]}${Kt[Math.round(r)]}`}},Ye=bs,Ei={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(Ei.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return $.channel.clamp.h(parseFloat(i)*.9);case"rad":return $.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return $.channel.clamp.h(parseFloat(i)*360)}}return $.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(Ei.re);if(!i)return;const[,r,n,o,s,a]=i;return lr.set({h:Ei._hue2deg(r),s:$.channel.clamp.s(parseFloat(n)),l:$.channel.clamp.l(parseFloat(o)),a:s?$.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(${$.lang.round(e)}, ${$.lang.round(i)}%, ${$.lang.round(r)}%, ${n})`:`hsl(${$.lang.round(e)}, ${$.lang.round(i)}%, ${$.lang.round(r)}%)`}},bi=Ei,Fi={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=Fi.colors[t];if(e)return Ye.parse(e)},stringify:t=>{const e=Ye.stringify(t);for(const i in Fi.colors)if(Fi.colors[i]===e)return i}},Co=Fi,xs={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(xs.re);if(!i)return;const[,r,n,o,s,a,l,c,h]=i;return lr.set({r:$.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:$.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:$.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?$.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(${$.lang.round(e)}, ${$.lang.round(i)}, ${$.lang.round(r)}, ${$.lang.round(n)})`:`rgb(${$.lang.round(e)}, ${$.lang.round(i)}, ${$.lang.round(r)})`}},xi=xs,Oc={format:{keyword:Co,hex:Ye,rgb:xi,rgba:xi,hsl:bi,hsla:bi},parse:t=>{if(typeof t!="string")return t;const e=Ye.parse(t)||xi.parse(t)||bi.parse(t)||Co.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(at.HSL)||t.data.r===void 0?bi.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?xi.stringify(t):Ye.stringify(t)},Ut=Oc,$c=(t,e)=>{const i=Ut.parse(t);for(const r in e)i[r]=$.channel.clamp[r](e[r]);return Ut.stringify(i)},vs=$c,Ic=(t,e,i=0,r=1)=>{if(typeof t!="number")return vs(t,{a:e});const n=lr.set({r:$.channel.clamp.r(t),g:$.channel.clamp.g(e),b:$.channel.clamp.b(i),a:$.channel.clamp.a(r)});return Ut.stringify(n)},Xe=Ic,Dc=(t,e,i)=>{const r=Ut.parse(t),n=r[e],o=$.channel.clamp[e](n+i);return n!==o&&(r[e]=o),Ut.stringify(r)},Ts=Dc,Nc=(t,e)=>Ts(t,"l",e),A=Nc,Rc=(t,e)=>Ts(t,"l",-e),M=Rc,Pc=(t,e)=>{const i=Ut.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return vs(t,r)},p=Pc,zc=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=Ut.parse(t),{r:a,g:l,b:c,a:h}=Ut.parse(e),u=i/100,g=u*2-1,d=s-h,k=((g*d===-1?g:(g+d)/(1+g*d))+1)/2,F=1-k,R=r*k+a*F,x=n*k+l*F,q=o*k+c*F,G=s*u+h*(1-u);return Xe(R,x,q,G)},Wc=zc,Hc=(t,e=100)=>{const i=Ut.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Wc(i,t,e)},v=Hc,Wt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},S={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},bn=function(t="fatal"){let e=Wt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Wt&&(e=Wt[t])):typeof t=="number"&&(e=t),S.trace=()=>{},S.debug=()=>{},S.info=()=>{},S.warn=()=>{},S.error=()=>{},S.fatal=()=>{},e<=Wt.fatal&&(S.fatal=console.error?console.error.bind(console,xt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",xt("FATAL"))),e<=Wt.error&&(S.error=console.error?console.error.bind(console,xt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",xt("ERROR"))),e<=Wt.warn&&(S.warn=console.warn?console.warn.bind(console,xt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",xt("WARN"))),e<=Wt.info&&(S.info=console.info?console.info.bind(console,xt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",xt("INFO"))),e<=Wt.debug&&(S.debug=console.debug?console.debug.bind(console,xt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",xt("DEBUG"))),e<=Wt.trace&&(S.trace=console.debug?console.debug.bind(console,xt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",xt("TRACE")))},xt=t=>`%c${xc().format("ss.SSS")} : ${t} : `,qc=t=>t?ks(t).replace(/\\n/g,"#br#").split("#br#"):[""],Ss=t=>Hi.sanitize(t),bo=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Ss(t):r!=="loose"&&(t=ks(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=Gc(t))}return t},Je=(t,e)=>t&&(e.dompurifyConfig?t=Hi.sanitize(bo(t,e),e.dompurifyConfig).toString():t=Hi.sanitize(bo(t,e),{FORBID_TAGS:["style"]}).toString(),t),jc=(t,e)=>typeof t=="string"?Je(t,e):t.flat().map(i=>Je(i,e)),cr=/<br\s*\/?>/gi,Uc=t=>cr.test(t),Vc=t=>t.split(cr),Gc=t=>t.replace(/#br#/g,"<br/>"),ks=t=>t.replace(cr,"#br#"),Yc=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},ws=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),Xc=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 Xc(i)}else return e},xn={getRows:qc,sanitizeText:Je,sanitizeTextOrArray:jc,hasBreaks:Uc,splitBreaks:Vc,lineBreakRegex:cr,removeScript:Ss,getUrl:Yc,evaluate:ws},ft=(t,e)=>e?p(t,{s:-40,l:10}):p(t,{s:-40,l:-10}),hr="#ffffff",ur="#f2f2f2";let Kc=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||p(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||p(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ft(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ft(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||v(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||v(this.tertiaryColor),this.lineColor=this.lineColor||v(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?M(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||M(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||v(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||A(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.darkMode)for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScale"+i]=M(this["cScale"+i],75);else for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScale"+i]=M(this["cScale"+i],25);for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleInv"+i]=this["cScaleInv"+i]||v(this["cScale"+i]);for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this.darkMode?this["cScalePeer"+i]=this["cScalePeer"+i]||A(this["cScale"+i],10):this["cScalePeer"+i]=this["cScalePeer"+i]||M(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]||p(this.mainBkg,{h:180,s:-15,l:e*(5+i*3)}),this["surfacePeer"+i]=this["surfacePeer"+i]||p(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||p(this.primaryColor,{h:64}),this.fillType3=this.fillType3||p(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||p(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||p(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||p(this.primaryColor,{h:128}),this.fillType7=this.fillType7||p(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||p(this.primaryColor,{l:-10}),this.pie5=this.pie5||p(this.secondaryColor,{l:-10}),this.pie6=this.pie6||p(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||p(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||p(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?M(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||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=A(this.git0,25),this.git1=A(this.git1,25),this.git2=A(this.git2,25),this.git3=A(this.git3,25),this.git4=A(this.git4,25),this.git5=A(this.git5,25),this.git6=A(this.git6,25),this.git7=A(this.git7,25)):(this.git0=M(this.git0,25),this.git1=M(this.git1,25),this.git2=M(this.git2,25),this.git3=M(this.git3,25),this.git4=M(this.git4,25),this.git5=M(this.git5,25),this.git6=M(this.git6,25),this.git7=M(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(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||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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 Zc=t=>{const e=new Kc;return e.calculate(t),e};let Jc=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=A(this.primaryColor,16),this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.background),this.secondaryBorderColor=ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=A(v("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Xe(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=M("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=Xe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Xe(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=A(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=A(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=A(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(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||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||v(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||A(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||p(this.mainBkg,{h:30,s:-30,l:-(-10+e*4)}),this["surfacePeer"+e]=this["surfacePeer"+e]||p(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?M(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=A(this.secondaryColor,20),this.git1=A(this.pie2||this.secondaryColor,20),this.git2=A(this.pie3||this.tertiaryColor,20),this.git3=A(this.pie4||p(this.primaryColor,{h:-30}),20),this.git4=A(this.pie5||p(this.primaryColor,{h:-60}),20),this.git5=A(this.pie6||p(this.primaryColor,{h:-90}),10),this.git6=A(this.pie7||p(this.primaryColor,{h:60}),10),this.git7=A(this.pie8||p(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(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||A(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||A(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 Qc=t=>{const e=new Jc;return e.calculate(t),e};let th=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=p(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(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=Xe(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||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this["cScalePeer"+1]=this["cScalePeer"+1]||M(this.secondaryColor,45),this["cScalePeer"+2]=this["cScalePeer"+2]||M(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=M(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||M(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||p(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||p(this.mainBkg,{h:30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||p(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||v(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||v(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=A(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=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||p(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||p(this.primaryColor,{l:-10}),this.pie5=this.pie5||p(this.secondaryColor,{l:-30}),this.pie6=this.pie6||p(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||p(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||p(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||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=A(this.git0,25),this.git1=A(this.git1,25),this.git2=A(this.git2,25),this.git3=A(this.git3,25),this.git4=A(this.git4,25),this.git5=A(this.git5,25),this.git6=A(this.git6,25),this.git7=A(this.git7,25)):(this.git0=M(this.git0,25),this.git1=M(this.git1,25),this.git2=M(this.git2,25),this.git3=M(this.git3,25),this.git4=M(this.git4,25),this.git5=M(this.git5,25),this.git6=M(this.git6,25),this.git7=M(this.git7,25)),this.gitInv0=this.gitInv0||M(v(this.git0),25),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(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||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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 eh=t=>{const e=new th;return e.calculate(t),e};let ih=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=A("#cde498",10),this.primaryBorderColor=ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.primaryColor),this.lineColor=v(this.background),this.textColor=v(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||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this["cScalePeer"+1]=this["cScalePeer"+1]||M(this.secondaryColor,45),this["cScalePeer"+2]=this["cScalePeer"+2]||M(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=M(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||M(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||p(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]||p(this.mainBkg,{h:30,s:-30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||p(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=M(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=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(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||p(this.primaryColor,{l:-30}),this.pie5=this.pie5||p(this.secondaryColor,{l:-30}),this.pie6=this.pie6||p(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||p(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||p(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||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=A(this.git0,25),this.git1=A(this.git1,25),this.git2=A(this.git2,25),this.git3=A(this.git3,25),this.git4=A(this.git4,25),this.git5=A(this.git5,25),this.git6=A(this.git6,25),this.git7=A(this.git7,25)):(this.git0=M(this.git0,25),this.git1=M(this.git1,25),this.git2=M(this.git2,25),this.git3=M(this.git3,25),this.git4=M(this.git4,25),this.git5=M(this.git5,25),this.git6=M(this.git6,25),this.git7=M(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(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||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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 rh=t=>{const e=new ih;return e.calculate(t),e};class nh{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=A(this.contrast,55),this.background="#ffffff",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(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=A(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]||v(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||A(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||M(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]||p(this.mainBkg,{l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||p(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=A(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=A(this.contrast,30),this.sectionBkgColor2=A(this.contrast,30),this.taskBorderColor=M(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=A(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=M(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=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(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=M(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||p(this.primaryColor,{h:-30}),this.git4=this.pie5||p(this.primaryColor,{h:-60}),this.git5=this.pie6||p(this.primaryColor,{h:-90}),this.git6=this.pie7||p(this.primaryColor,{h:60}),this.git7=this.pie8||p(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(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||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}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 oh=t=>{const e=new nh;return e.calculate(t),e},jt={base:{getThemeVariables:Zc},dark:{getThemeVariables:Qc},default:{getThemeVariables:eh},forest:{getThemeVariables:rh},neutral:{getThemeVariables:oh}},te={theme:"default",themeVariables:jt.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};te.class&&(te.class.arrowMarkerAbsolute=te.arrowMarkerAbsolute);te.gitGraph&&(te.gitGraph.arrowMarkerAbsolute=te.arrowMarkerAbsolute);const Bs=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Bs(t[r],"")]:[...i,e+r],[]),sh=Bs(te,""),ah=te,en=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=>en(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]=en(t[o],e[o],{depth:r-1,clobber:n})):(n||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},lt=en,Qe=Object.freeze(ah);let gt=lt({},Qe),Ls,Ee=[],Ke=lt({},Qe);const fr=(t,e)=>{let i=lt({},t),r={};for(const n of e)Es(n),r=lt(r,n);if(i=lt(i,r),r.theme&&r.theme in jt){const n=lt({},Ls),o=lt(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in jt&&(i.themeVariables=jt[i.theme].getThemeVariables(o))}return Ke=i,Os(Ke),Ke},lh=t=>(gt=lt({},Qe),gt=lt(gt,t),t.theme&&jt[t.theme]&&(gt.themeVariables=jt[t.theme].getThemeVariables(t.themeVariables)),fr(gt,Ee),gt),ch=t=>{Ls=lt({},t)},hh=t=>(gt=lt(gt,t),fr(gt,Ee),gt),As=()=>lt({},gt),uh=t=>(Os(t),lt(Ke,t),Gt()),Gt=()=>lt({},Ke),Es=t=>{["secure",...gt.secure??[]].forEach(e=>{t[e]!==void 0&&(S.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"&&Es(t[e])})},Fs=t=>{t.fontFamily&&(t.themeVariables?t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily}):t.themeVariables={fontFamily:t.fontFamily}),Ee.push(t),fr(gt,Ee)},qi=(t=gt)=>{Ee=[],fr(t,Ee)};var Ms=(t=>(t.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",t))(Ms||{});const xo={},fh=t=>{xo[t]||(S.warn(Ms[t]),xo[t]=!0)},Os=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&fh("LAZY_LOAD_DEPRECATED")};var vn={};Object.defineProperty(vn,"__esModule",{value:!0});var $s=vn.sanitizeUrl=void 0,dh=/^([^\w]*)(javascript|data|vbscript)/im,ph=/&#(\w+)(^\w|;)?/g,gh=/&(newline|tab);/gi,mh=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,_h=/^.+(:|:)/gim,yh=[".","/"];function Ch(t){return yh.indexOf(t[0])>-1}function bh(t){return t.replace(ph,function(e,i){return String.fromCharCode(i)})}function xh(t){var e=bh(t||"").replace(gh,"").replace(mh,"").trim();if(!e)return"about:blank";if(Ch(e))return e;var i=e.match(_h);if(!i)return e;var r=i[0];return dh.test(r)?"about:blank":e}$s=vn.sanitizeUrl=xh;var vh={value:()=>{}};function Is(){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 Mi(i)}function Mi(t){this._=t}function Th(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}})}Mi.prototype=Is.prototype={constructor:Mi,on:function(t,e){var i=this._,r=Th(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((n=(t=r[o]).type)&&(n=Sh(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]=vo(i[n],t.name,e);else if(e==null)for(n in i)i[n]=vo(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 Mi(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 Sh(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function vo(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=vh,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var rn="http://www.w3.org/1999/xhtml";const To={svg:"http://www.w3.org/2000/svg",xhtml:rn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function dr(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),To.hasOwnProperty(e)?{space:To[e],local:t}:t}function kh(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===rn&&e.documentElement.namespaceURI===rn?e.createElement(t):e.createElementNS(i,t)}}function wh(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ds(t){var e=dr(t);return(e.local?wh:kh)(e)}function Bh(){}function Tn(t){return t==null?Bh:function(){return this.querySelector(t)}}function Lh(t){typeof t!="function"&&(t=Tn(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 yt(r,this._parents)}function Ah(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Eh(){return[]}function Ns(t){return t==null?Eh:function(){return this.querySelectorAll(t)}}function Fh(t){return function(){return Ah(t.apply(this,arguments))}}function Mh(t){typeof t=="function"?t=Fh(t):t=Ns(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 yt(r,n)}function Rs(t){return function(){return this.matches(t)}}function Ps(t){return function(e){return e.matches(t)}}var Oh=Array.prototype.find;function $h(t){return function(){return Oh.call(this.children,t)}}function Ih(){return this.firstElementChild}function Dh(t){return this.select(t==null?Ih:$h(typeof t=="function"?t:Ps(t)))}var Nh=Array.prototype.filter;function Rh(){return Array.from(this.children)}function Ph(t){return function(){return Nh.call(this.children,t)}}function zh(t){return this.selectAll(t==null?Rh:Ph(typeof t=="function"?t:Ps(t)))}function Wh(t){typeof t!="function"&&(t=Rs(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 yt(r,this._parents)}function zs(t){return new Array(t.length)}function Hh(){return new yt(this._enter||this._groups.map(zs),this._parents)}function ji(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ji.prototype={constructor:ji,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 qh(t){return function(){return t}}function jh(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 ji(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function Uh(t,e,i,r,n,o,s){var a,l,c=new Map,h=e.length,u=o.length,g=new Array(h),d;for(a=0;a<h;++a)(l=e[a])&&(g[a]=d=s.call(l,l.__data__,a,e)+"",c.has(d)?n[a]=l:c.set(d,l));for(a=0;a<u;++a)d=s.call(t,o[a],a,o)+"",(l=c.get(d))?(r[a]=l,l.__data__=o[a],c.delete(d)):i[a]=new ji(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(g[a])===l&&(n[a]=l)}function Vh(t){return t.__data__}function Gh(t,e){if(!arguments.length)return Array.from(this,Vh);var i=e?Uh:jh,r=this._parents,n=this._groups;typeof t!="function"&&(t=qh(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],u=n[c],g=u.length,d=Yh(t.call(h,h&&h.__data__,c,r)),_=d.length,k=a[c]=new Array(_),F=s[c]=new Array(_),R=l[c]=new Array(g);i(h,u,k,F,R,d,e);for(var x=0,q=0,G,X;x<_;++x)if(G=k[x]){for(x>=q&&(q=x+1);!(X=F[q])&&++q<_;);G._next=X||null}}return s=new yt(s,r),s._enter=a,s._exit=l,s}function Yh(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Xh(){return new yt(this._exit||this._groups.map(zs),this._parents)}function Kh(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 Zh(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],u=c.length,g=a[l]=new Array(u),d,_=0;_<u;++_)(d=c[_]||h[_])&&(g[_]=d);for(;l<n;++l)a[l]=i[l];return new yt(a,this._parents)}function Jh(){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 Qh(t){t||(t=tu);function e(u,g){return u&&g?t(u.__data__,g.__data__):!u-!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 yt(n,this._parents).order()}function tu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function eu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function iu(){return Array.from(this)}function ru(){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 nu(){let t=0;for(const e of this)++t;return t}function ou(){return!this.node()}function su(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 au(t){return function(){this.removeAttribute(t)}}function lu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cu(t,e){return function(){this.setAttribute(t,e)}}function hu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function uu(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function fu(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 du(t,e){var i=dr(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?lu:au:typeof e=="function"?i.local?fu:uu:i.local?hu:cu)(i,e))}function Ws(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function pu(t){return function(){this.style.removeProperty(t)}}function gu(t,e,i){return function(){this.style.setProperty(t,e,i)}}function mu(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function _u(t,e,i){return arguments.length>1?this.each((e==null?pu:typeof e=="function"?mu:gu)(t,e,i??"")):Fe(this.node(),t)}function Fe(t,e){return t.style.getPropertyValue(e)||Ws(t).getComputedStyle(t,null).getPropertyValue(e)}function yu(t){return function(){delete this[t]}}function Cu(t,e){return function(){this[t]=e}}function bu(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function xu(t,e){return arguments.length>1?this.each((e==null?yu:typeof e=="function"?bu:Cu)(t,e)):this.node()[t]}function Hs(t){return t.trim().split(/^|\s+/)}function Sn(t){return t.classList||new qs(t)}function qs(t){this._node=t,this._names=Hs(t.getAttribute("class")||"")}qs.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 js(t,e){for(var i=Sn(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function Us(t,e){for(var i=Sn(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function vu(t){return function(){js(this,t)}}function Tu(t){return function(){Us(this,t)}}function Su(t,e){return function(){(e.apply(this,arguments)?js:Us)(this,t)}}function ku(t,e){var i=Hs(t+"");if(arguments.length<2){for(var r=Sn(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Su:e?vu:Tu)(i,e))}function wu(){this.textContent=""}function Bu(t){return function(){this.textContent=t}}function Lu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Au(t){return arguments.length?this.each(t==null?wu:(typeof t=="function"?Lu:Bu)(t)):this.node().textContent}function Eu(){this.innerHTML=""}function Fu(t){return function(){this.innerHTML=t}}function Mu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ou(t){return arguments.length?this.each(t==null?Eu:(typeof t=="function"?Mu:Fu)(t)):this.node().innerHTML}function $u(){this.nextSibling&&this.parentNode.appendChild(this)}function Iu(){return this.each($u)}function Du(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Nu(){return this.each(Du)}function Ru(t){var e=typeof t=="function"?t:Ds(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Pu(){return null}function zu(t,e){var i=typeof t=="function"?t:Ds(t),r=e==null?Pu:typeof e=="function"?e:Tn(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function Wu(){var t=this.parentNode;t&&t.removeChild(this)}function Hu(){return this.each(Wu)}function qu(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ju(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Uu(t){return this.select(t?ju:qu)}function Vu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Gu(t){return function(e){t.call(this,e,this.__data__)}}function Yu(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 Xu(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 Ku(t,e,i){return function(){var r=this.__on,n,o=Gu(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 Zu(t,e,i){var r=Yu(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?Ku:Xu,n=0;n<o;++n)this.each(a(r[n],e,i));return this}function Vs(t,e,i){var r=Ws(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 Ju(t,e){return function(){return Vs(this,t,e)}}function Qu(t,e){return function(){return Vs(this,t,e.apply(this,arguments))}}function tf(t,e){return this.each((typeof e=="function"?Qu:Ju)(t,e))}function*ef(){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 Gs=[null];function yt(t,e){this._groups=t,this._parents=e}function li(){return new yt([[document.documentElement]],Gs)}function rf(){return this}yt.prototype=li.prototype={constructor:yt,select:Lh,selectAll:Mh,selectChild:Dh,selectChildren:zh,filter:Wh,data:Gh,enter:Hh,exit:Xh,join:Kh,merge:Zh,selection:rf,order:Jh,sort:Qh,call:eu,nodes:iu,node:ru,size:nu,empty:ou,each:su,attr:du,style:_u,property:xu,classed:ku,text:Au,html:Ou,raise:Iu,lower:Nu,append:Ru,insert:zu,remove:Hu,clone:Uu,datum:Vu,on:Zu,dispatch:tf,[Symbol.iterator]:ef};function $t(t){return typeof t=="string"?new yt([[document.querySelector(t)]],[document.documentElement]):new yt([[t]],Gs)}function kn(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Ys(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function ci(){}var ti=.7,Ui=1/ti,Ae="\\s*([+-]?\\d+)\\s*",ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",It="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nf=/^#([0-9a-f]{3,8})$/,of=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),sf=new RegExp(`^rgb\\(${It},${It},${It}\\)$`),af=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${ei}\\)$`),lf=new RegExp(`^rgba\\(${It},${It},${It},${ei}\\)$`),cf=new RegExp(`^hsl\\(${ei},${It},${It}\\)$`),hf=new RegExp(`^hsla\\(${ei},${It},${It},${ei}\\)$`),So={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};kn(ci,ii,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ko,formatHex:ko,formatHex8:uf,formatHsl:ff,formatRgb:wo,toString:wo});function ko(){return this.rgb().formatHex()}function uf(){return this.rgb().formatHex8()}function ff(){return Xs(this).formatHsl()}function wo(){return this.rgb().formatRgb()}function ii(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=nf.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?Bo(e):i===3?new mt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?vi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?vi(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=of.exec(t))?new mt(e[1],e[2],e[3],1):(e=sf.exec(t))?new mt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=af.exec(t))?vi(e[1],e[2],e[3],e[4]):(e=lf.exec(t))?vi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=cf.exec(t))?Eo(e[1],e[2]/100,e[3]/100,1):(e=hf.exec(t))?Eo(e[1],e[2]/100,e[3]/100,e[4]):So.hasOwnProperty(t)?Bo(So[t]):t==="transparent"?new mt(NaN,NaN,NaN,0):null}function Bo(t){return new mt(t>>16&255,t>>8&255,t&255,1)}function vi(t,e,i,r){return r<=0&&(t=e=i=NaN),new mt(t,e,i,r)}function df(t){return t instanceof ci||(t=ii(t)),t?(t=t.rgb(),new mt(t.r,t.g,t.b,t.opacity)):new mt}function nn(t,e,i,r){return arguments.length===1?df(t):new mt(t,e,i,r??1)}function mt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}kn(mt,nn,Ys(ci,{brighter(t){return t=t==null?Ui:Math.pow(Ui,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ti:Math.pow(ti,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new mt(fe(this.r),fe(this.g),fe(this.b),Vi(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:Lo,formatHex:Lo,formatHex8:pf,formatRgb:Ao,toString:Ao}));function Lo(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}`}function pf(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}${ue((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ao(){const t=Vi(this.opacity);return`${t===1?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${t===1?")":`, ${t})`}`}function Vi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ue(t){return t=fe(t),(t<16?"0":"")+t.toString(16)}function Eo(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Lt(t,e,i,r)}function Xs(t){if(t instanceof Lt)return new Lt(t.h,t.s,t.l,t.opacity);if(t instanceof ci||(t=ii(t)),!t)return new Lt;if(t instanceof Lt)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 Lt(s,a,l,t.opacity)}function gf(t,e,i,r){return arguments.length===1?Xs(t):new Lt(t,e,i,r??1)}function Lt(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}kn(Lt,gf,Ys(ci,{brighter(t){return t=t==null?Ui:Math.pow(Ui,t),new Lt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ti:Math.pow(ti,t),new Lt(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 mt(zr(t>=240?t-240:t+120,n,r),zr(t,n,r),zr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new Lt(Fo(this.h),Ti(this.s),Ti(this.l),Vi(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=Vi(this.opacity);return`${t===1?"hsl(":"hsla("}${Fo(this.h)}, ${Ti(this.s)*100}%, ${Ti(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Fo(t){return t=(t||0)%360,t<0?t+360:t}function Ti(t){return Math.max(0,Math.min(1,t||0))}function zr(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const wn=t=>()=>t;function Ks(t,e){return function(i){return t+i*e}}function mf(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 Bb(t,e){var i=e-t;return i?Ks(t,i>180||i<-180?i-360*Math.round(i/360):i):wn(isNaN(t)?e:t)}function _f(t){return(t=+t)==1?Zs:function(e,i){return i-e?mf(e,i,t):wn(isNaN(e)?i:e)}}function Zs(t,e){var i=e-t;return i?Ks(t,i):wn(isNaN(t)?e:t)}const Mo=function t(e){var i=_f(e);function r(n,o){var s=i((n=nn(n)).r,(o=nn(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),c=Zs(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 Zt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var on=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wr=new RegExp(on.source,"g");function yf(t){return function(){return t}}function Cf(t){return function(e){return t(e)+""}}function bf(t,e){var i=on.lastIndex=Wr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=on.exec(t))&&(n=Wr.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:Zt(r,n)})),i=Wr.lastIndex;return i<e.length&&(o=e.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Cf(l[0].x):yf(e):(e=l.length,function(c){for(var h=0,u;h<e;++h)a[(u=l[h]).i]=u.x(c);return a.join("")})}var Oo=180/Math.PI,sn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Js(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)*Oo,skewX:Math.atan(l)*Oo,scaleX:s,scaleY:a}}var Si;function xf(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?sn:Js(e.a,e.b,e.c,e.d,e.e,e.f)}function vf(t){return t==null||(Si||(Si=document.createElementNS("http://www.w3.org/2000/svg","g")),Si.setAttribute("transform",t),!(t=Si.transform.baseVal.consolidate()))?sn:(t=t.matrix,Js(t.a,t.b,t.c,t.d,t.e,t.f))}function Qs(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function o(c,h,u,g,d,_){if(c!==u||h!==g){var k=d.push("translate(",null,e,null,i);_.push({i:k-4,x:Zt(c,u)},{i:k-2,x:Zt(h,g)})}else(u||g)&&d.push("translate("+u+e+g+i)}function s(c,h,u,g){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),g.push({i:u.push(n(u)+"rotate(",null,r)-2,x:Zt(c,h)})):h&&u.push(n(u)+"rotate("+h+r)}function a(c,h,u,g){c!==h?g.push({i:u.push(n(u)+"skewX(",null,r)-2,x:Zt(c,h)}):h&&u.push(n(u)+"skewX("+h+r)}function l(c,h,u,g,d,_){if(c!==u||h!==g){var k=d.push(n(d)+"scale(",null,",",null,")");_.push({i:k-4,x:Zt(c,u)},{i:k-2,x:Zt(h,g)})}else(u!==1||g!==1)&&d.push(n(d)+"scale("+u+","+g+")")}return function(c,h){var u=[],g=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,g),s(c.rotate,h.rotate,u,g),a(c.skewX,h.skewX,u,g),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,g),c=h=null,function(d){for(var _=-1,k=g.length,F;++_<k;)u[(F=g[_]).i]=F.x(d);return u.join("")}}}var Tf=Qs(xf,"px, ","px)","deg)"),Sf=Qs(vf,", ",")",")"),Me=0,Ue=0,qe=0,ta=1e3,Gi,Ve,Yi=0,ge=0,pr=0,ri=typeof performance=="object"&&performance.now?performance:Date,ea=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Bn(){return ge||(ea(kf),ge=ri.now()+pr)}function kf(){ge=0}function Xi(){this._call=this._time=this._next=null}Xi.prototype=ia.prototype={constructor:Xi,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?Bn():+i)+(e==null?0:+e),!this._next&&Ve!==this&&(Ve?Ve._next=this:Gi=this,Ve=this),this._call=t,this._time=i,an()},stop:function(){this._call&&(this._call=null,this._time=1/0,an())}};function ia(t,e,i){var r=new Xi;return r.restart(t,e,i),r}function wf(){Bn(),++Me;for(var t=Gi,e;t;)(e=ge-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Me}function $o(){ge=(Yi=ri.now())+pr,Me=Ue=0;try{wf()}finally{Me=0,Lf(),ge=0}}function Bf(){var t=ri.now(),e=t-Yi;e>ta&&(pr-=e,Yi=t)}function Lf(){for(var t,e=Gi,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:Gi=i);Ve=t,an(r)}function an(t){if(!Me){Ue&&(Ue=clearTimeout(Ue));var e=t-ge;e>24?(t<1/0&&(Ue=setTimeout($o,t-ri.now()-pr)),qe&&(qe=clearInterval(qe))):(qe||(Yi=ri.now(),qe=setInterval(Bf,ta)),Me=1,ea($o))}}function Io(t,e,i){var r=new Xi;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var Af=Is("start","end","cancel","interrupt"),Ef=[],ra=0,Do=1,ln=2,Oi=3,No=4,cn=5,$i=6;function gr(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;Ff(t,i,{name:e,index:r,group:n,on:Af,tween:Ef,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ra})}function Ln(t,e){var i=Mt(t,e);if(i.state>ra)throw new Error("too late; already scheduled");return i}function Nt(t,e){var i=Mt(t,e);if(i.state>Oi)throw new Error("too late; already running");return i}function Mt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Ff(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=ia(o,0,i.time);function o(c){i.state=Do,i.timer.restart(s,i.delay,i.time),i.delay<=c&&s(c-i.delay)}function s(c){var h,u,g,d;if(i.state!==Do)return l();for(h in r)if(d=r[h],d.name===i.name){if(d.state===Oi)return Io(s);d.state===No?(d.state=$i,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[h]):+h<e&&(d.state=$i,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[h])}if(Io(function(){i.state===Oi&&(i.state=No,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=ln,i.on.call("start",t,t.__data__,i.index,i.group),i.state===ln){for(i.state=Oi,n=new Array(g=i.tween.length),h=0,u=-1;h<g;++h)(d=i.tween[h].value.call(t,t.__data__,i.index,i.group))&&(n[++u]=d);n.length=u+1}}function a(c){for(var h=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=cn,1),u=-1,g=n.length;++u<g;)n[u].call(t,h);i.state===cn&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=$i,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function Mf(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>ln&&r.state<cn,r.state=$i,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[s]}o&&delete t.__transition}}function Of(t){return this.each(function(){Mf(this,t)})}function $f(t,e){var i,r;return function(){var n=Nt(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 If(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var o=Nt(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 Df(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=Mt(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?$f:If)(i,t,e))}function An(t,e,i){var r=t._id;return t.each(function(){var n=Nt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return Mt(n,r).value[e]}}function na(t,e){var i;return(typeof e=="number"?Zt:e instanceof ii?Mo:(i=ii(e))?(e=i,Mo):bf)(t,e)}function Nf(t){return function(){this.removeAttribute(t)}}function Rf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Pf(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 zf(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 Wf(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 Hf(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 qf(t,e){var i=dr(t),r=i==="transform"?Sf:na;return this.attrTween(t,typeof e=="function"?(i.local?Hf:Wf)(i,r,An(this,"attr."+t,e)):e==null?(i.local?Rf:Nf)(i):(i.local?zf:Pf)(i,r,e))}function jf(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Uf(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Vf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&Uf(t,o)),i}return n._value=e,n}function Gf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&jf(t,o)),i}return n._value=e,n}function Yf(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=dr(t);return this.tween(i,(r.local?Vf:Gf)(r,e))}function Xf(t,e){return function(){Ln(this,t).delay=+e.apply(this,arguments)}}function Kf(t,e){return e=+e,function(){Ln(this,t).delay=e}}function Zf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Xf:Kf)(e,t)):Mt(this.node(),e).delay}function Jf(t,e){return function(){Nt(this,t).duration=+e.apply(this,arguments)}}function Qf(t,e){return e=+e,function(){Nt(this,t).duration=e}}function td(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Jf:Qf)(e,t)):Mt(this.node(),e).duration}function ed(t,e){if(typeof e!="function")throw new Error;return function(){Nt(this,t).ease=e}}function id(t){var e=this._id;return arguments.length?this.each(ed(e,t)):Mt(this.node(),e).ease}function rd(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Nt(this,t).ease=i}}function nd(t){if(typeof t!="function")throw new Error;return this.each(rd(this._id,t))}function od(t){typeof t!="function"&&(t=Rs(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 Vt(r,this._parents,this._name,this._id)}function sd(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,u=s[a]=new Array(h),g,d=0;d<h;++d)(g=l[d]||c[d])&&(u[d]=g);for(;a<r;++a)s[a]=e[a];return new Vt(s,this._parents,this._name,this._id)}function ad(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 ld(t,e,i){var r,n,o=ad(e)?Ln:Nt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function cd(t,e){var i=this._id;return arguments.length<2?Mt(this.node(),i).on.on(t):this.each(ld(i,t,e))}function hd(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function ud(){return this.on("end.remove",hd(this._id))}function fd(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Tn(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,u,g=0;g<l;++g)(h=a[g])&&(u=t.call(h,h.__data__,g,a))&&("__data__"in h&&(u.__data__=h.__data__),c[g]=u,gr(c[g],e,i,g,c,Mt(h,i)));return new Vt(o,this._parents,e,i)}function dd(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Ns(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,u=0;u<c;++u)if(h=l[u]){for(var g=t.call(h,h.__data__,u,l),d,_=Mt(h,i),k=0,F=g.length;k<F;++k)(d=g[k])&&gr(d,e,i,k,g,_);o.push(g),s.push(h)}return new Vt(o,s,e,i)}var pd=li.prototype.constructor;function gd(){return new pd(this._groups,this._parents)}function md(t,e){var i,r,n;return function(){var o=Fe(this,t),s=(this.style.removeProperty(t),Fe(this,t));return o===s?null:o===i&&s===r?n:n=e(i=o,r=s)}}function oa(t){return function(){this.style.removeProperty(t)}}function _d(t,e,i){var r,n=i+"",o;return function(){var s=Fe(this,t);return s===n?null:s===r?o:o=e(r=s,i)}}function yd(t,e,i){var r,n,o;return function(){var s=Fe(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Fe(this,t))),s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a))}}function Cd(t,e){var i,r,n,o="style."+e,s="end."+o,a;return function(){var l=Nt(this,t),c=l.on,h=l.value[o]==null?a||(a=oa(e)):void 0;(c!==i||n!==h)&&(r=(i=c).copy()).on(s,n=h),l.on=r}}function bd(t,e,i){var r=(t+="")=="transform"?Tf:na;return e==null?this.styleTween(t,md(t,r)).on("end.style."+t,oa(t)):typeof e=="function"?this.styleTween(t,yd(t,r,An(this,"style."+t,e))).each(Cd(this._id,t)):this.styleTween(t,_d(t,r,e),i).on("end.style."+t,null)}function xd(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function vd(t,e,i){var r,n;function o(){var s=e.apply(this,arguments);return s!==n&&(r=(n=s)&&xd(t,s,i)),r}return o._value=e,o}function Td(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,vd(t,e,i??""))}function Sd(t){return function(){this.textContent=t}}function kd(t){return function(){var e=t(this);this.textContent=e??""}}function wd(t){return this.tween("text",typeof t=="function"?kd(An(this,"text",t)):Sd(t==null?"":t+""))}function Bd(t){return function(e){this.textContent=t.call(this,e)}}function Ld(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&Bd(n)),e}return r._value=t,r}function Ad(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,Ld(t))}function Ed(){for(var t=this._name,e=this._id,i=sa(),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=Mt(l,e);gr(l,t,i,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Vt(r,this._parents,t,i)}function Fd(){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=Nt(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 Md=0;function Vt(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function sa(){return++Md}var Ht=li.prototype;Vt.prototype={constructor:Vt,select:fd,selectAll:dd,selectChild:Ht.selectChild,selectChildren:Ht.selectChildren,filter:od,merge:sd,selection:gd,transition:Ed,call:Ht.call,nodes:Ht.nodes,node:Ht.node,size:Ht.size,empty:Ht.empty,each:Ht.each,on:cd,attr:qf,attrTween:Yf,style:bd,styleTween:Td,text:wd,textTween:Ad,remove:ud,tween:Df,delay:Zf,duration:td,ease:id,easeVarying:nd,end:Fd,[Symbol.iterator]:Ht[Symbol.iterator]};function Od(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var $d={time:null,delay:0,duration:250,ease:Od};function Id(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 Dd(t){var e,i;t instanceof Vt?(e=t._id,t=t._name):(e=sa(),(i=$d).time=Bn(),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])&&gr(l,t,e,c,s,i||Id(l,e));return new Vt(r,this._parents,t,e)}li.prototype.interrupt=Of;li.prototype.transition=Dd;const Lb=Math.abs,Ab=Math.atan2,Eb=Math.cos,Fb=Math.max,Mb=Math.min,Ob=Math.sin,$b=Math.sqrt,Ro=1e-12,En=Math.PI,Po=En/2,Ib=2*En;function Db(t){return t>1?0:t<-1?En:Math.acos(t)}function Nb(t){return t>=1?Po:t<=-1?-Po:Math.asin(t)}function aa(t){this._context=t}aa.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 Nd(t){return new aa(t)}class la{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 la(t,!0)}function Pd(t){return new la(t,!1)}function ie(){}function Ki(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 mr(t){this._context=t}mr.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:Ki(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:Ki(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function zd(t){return new mr(t)}function ca(t){this._context=t}ca.prototype={areaStart:ie,areaEnd:ie,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:Ki(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Wd(t){return new ca(t)}function ha(t){this._context=t}ha.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:Ki(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Hd(t){return new ha(t)}function ua(t,e){this._basis=new mr(t),this._beta=e}ua.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 qd=function t(e){function i(r){return e===1?new mr(r):new ua(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function Zi(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 Fn(t,e){this._context=t,this._k=(1-e)/6}Fn.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:Zi(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:Zi(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 jd=function t(e){function i(r){return new Fn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Mn(t,e){this._context=t,this._k=(1-e)/6}Mn.prototype={areaStart:ie,areaEnd:ie,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:Zi(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 Mn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function On(t,e){this._context=t,this._k=(1-e)/6}On.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:Zi(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 Vd=function t(e){function i(r){return new On(r,e)}return i.tension=function(r){return t(+r)},i}(0);function $n(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Ro){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>Ro){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 fa(t,e){this._context=t,this._alpha=e}fa.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:$n(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 Gd=function t(e){function i(r){return e?new fa(r,e):new Fn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function da(t,e){this._context=t,this._alpha=e}da.prototype={areaStart:ie,areaEnd:ie,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:$n(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 Yd=function t(e){function i(r){return e?new da(r,e):new Mn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function pa(t,e){this._context=t,this._alpha=e}pa.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:$n(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 Xd=function t(e){function i(r){return e?new pa(r,e):new On(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function ga(t){this._context=t}ga.prototype={areaStart:ie,areaEnd:ie,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 Kd(t){return new ga(t)}function zo(t){return t<0?-1:1}function Wo(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(zo(o)+zo(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Ho(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Hr(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function Ji(t){this._context=t}Ji.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Hr(this,this._t0,Ho(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Hr(this,Ho(this,i=Wo(this,t,e)),i);break;default:Hr(this,this._t0,i=Wo(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function ma(t){this._context=new _a(t)}(ma.prototype=Object.create(Ji.prototype)).point=function(t,e){Ji.prototype.point.call(this,e,t)};function _a(t){this._context=t}_a.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 Zd(t){return new Ji(t)}function Jd(t){return new ma(t)}function ya(t){this._context=t}ya.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=qo(t),n=qo(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 qo(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 Qd(t){return new ya(t)}function _r(t,e){this._context=t,this._t=e}_r.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 tp(t){return new _r(t,.5)}function ep(t){return new _r(t,0)}function ip(t){return new _r(t,1)}function Ge(t,e,i){this.k=t,this.x=e,this.y=i}Ge.prototype={constructor:Ge,scale:function(t){return t===1?this:new Ge(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ge(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+")"}};Ge.prototype;const rp=function(t,e){for(let i of e)t.attr(i[0],i[1])},np=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},op=function(t,e,i,r){const n=np(e,i,r);rp(t,n)},sp=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;S.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;S.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,S.info(`Calculated bounds: ${a}x${l}`),op(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 In="",yr="",Dn="";const Nn=t=>Je(t,Gt()),Ca=function(){In="",Dn="",yr=""},ba=function(t){In=Nn(t).replace(/^\s+/g,"")},xa=function(){return In||yr},va=function(t){Dn=Nn(t).replace(/\n\s+/g,`
|
||
`)},Ta=function(){return Dn},Sa=function(t){yr=Nn(t)},ka=function(){return yr},ap={setAccTitle:ba,getAccTitle:xa,setDiagramTitle:Sa,getDiagramTitle:ka,getAccDescription:Ta,setAccDescription:va,clear:Ca},lp=Object.freeze(Object.defineProperty({__proto__:null,clear:Ca,default:ap,getAccDescription:Ta,getAccTitle:xa,getDiagramTitle:ka,setAccDescription:va,setAccTitle:ba,setDiagramTitle:Sa},Symbol.toStringTag,{value:"Module"}));var cp=typeof global=="object"&&global&&global.Object===Object&&global;const wa=cp;var hp=typeof self=="object"&&self&&self.Object===Object&&self,up=wa||hp||Function("return this")();const ne=up;var fp=ne.Symbol;const Qi=fp;var Ba=Object.prototype,dp=Ba.hasOwnProperty,pp=Ba.toString,je=Qi?Qi.toStringTag:void 0;function gp(t){var e=dp.call(t,je),i=t[je];try{t[je]=void 0;var r=!0}catch{}var n=pp.call(t);return r&&(e?t[je]=i:delete t[je]),n}var mp=Object.prototype,_p=mp.toString;function yp(t){return _p.call(t)}var Cp="[object Null]",bp="[object Undefined]",jo=Qi?Qi.toStringTag:void 0;function hi(t){return t==null?t===void 0?bp:Cp:jo&&jo in Object(t)?gp(t):yp(t)}function La(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var xp="[object AsyncFunction]",vp="[object Function]",Tp="[object GeneratorFunction]",Sp="[object Proxy]";function Aa(t){if(!La(t))return!1;var e=hi(t);return e==vp||e==Tp||e==xp||e==Sp}var kp=ne["__core-js_shared__"];const qr=kp;var Uo=function(){var t=/[^.]+$/.exec(qr&&qr.keys&&qr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function wp(t){return!!Uo&&Uo in t}var Bp=Function.prototype,Lp=Bp.toString;function ye(t){if(t!=null){try{return Lp.call(t)}catch{}try{return t+""}catch{}}return""}var Ap=/[\\^$.*+?()[\]{}|]/g,Ep=/^\[object .+?Constructor\]$/,Fp=Function.prototype,Mp=Object.prototype,Op=Fp.toString,$p=Mp.hasOwnProperty,Ip=RegExp("^"+Op.call($p).replace(Ap,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dp(t){if(!La(t)||wp(t))return!1;var e=Aa(t)?Ip:Ep;return e.test(ye(t))}function Np(t,e){return t==null?void 0:t[e]}function Ne(t,e){var i=Np(t,e);return Dp(i)?i:void 0}var Rp=Ne(Object,"create");const ni=Rp;function Pp(){this.__data__=ni?ni(null):{},this.size=0}function zp(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Wp="__lodash_hash_undefined__",Hp=Object.prototype,qp=Hp.hasOwnProperty;function jp(t){var e=this.__data__;if(ni){var i=e[t];return i===Wp?void 0:i}return qp.call(e,t)?e[t]:void 0}var Up=Object.prototype,Vp=Up.hasOwnProperty;function Gp(t){var e=this.__data__;return ni?e[t]!==void 0:Vp.call(e,t)}var Yp="__lodash_hash_undefined__";function Xp(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=ni&&e===void 0?Yp:e,this}function me(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}me.prototype.clear=Pp;me.prototype.delete=zp;me.prototype.get=jp;me.prototype.has=Gp;me.prototype.set=Xp;function Kp(){this.__data__=[],this.size=0}function Zp(t,e){return t===e||t!==t&&e!==e}function Cr(t,e){for(var i=t.length;i--;)if(Zp(t[i][0],e))return i;return-1}var Jp=Array.prototype,Qp=Jp.splice;function tg(t){var e=this.__data__,i=Cr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():Qp.call(e,i,1),--this.size,!0}function eg(t){var e=this.__data__,i=Cr(e,t);return i<0?void 0:e[i][1]}function ig(t){return Cr(this.__data__,t)>-1}function rg(t,e){var i=this.__data__,r=Cr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Re(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Re.prototype.clear=Kp;Re.prototype.delete=tg;Re.prototype.get=eg;Re.prototype.has=ig;Re.prototype.set=rg;var ng=Ne(ne,"Map");const tr=ng;function og(){this.size=0,this.__data__={hash:new me,map:new(tr||Re),string:new me}}function sg(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function br(t,e){var i=t.__data__;return sg(e)?i[typeof e=="string"?"string":"hash"]:i.map}function ag(t){var e=br(this,t).delete(t);return this.size-=e?1:0,e}function lg(t){return br(this,t).get(t)}function cg(t){return br(this,t).has(t)}function hg(t,e){var i=br(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function Ce(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Ce.prototype.clear=og;Ce.prototype.delete=ag;Ce.prototype.get=lg;Ce.prototype.has=cg;Ce.prototype.set=hg;var ug="Expected a function";function ui(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(ug);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(ui.Cache||Ce),i}ui.Cache=Ce;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Ea(t){return typeof t>"u"||t===null}function fg(t){return typeof t=="object"&&t!==null}function dg(t){return Array.isArray(t)?t:Ea(t)?[]:[t]}function pg(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 gg(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function mg(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var _g=Ea,yg=fg,Cg=dg,bg=gg,xg=mg,vg=pg,ut={isNothing:_g,isObject:yg,toArray:Cg,repeat:bg,isNegativeZero:xg,extend:vg};function Fa(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 oi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Fa(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}oi.prototype=Object.create(Error.prototype);oi.prototype.constructor=oi;oi.prototype.toString=function(e){return this.name+": "+Fa(this,e)};var qt=oi;function jr(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 Ur(t,e){return ut.repeat(" ",e-t.length)+t}function Tg(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,u=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=jr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),u),a=ut.repeat(" ",e.indent)+Ur((t.line-l+1).toString(),h)+" | "+c.str+`
|
||
`+a;for(c=jr(t.buffer,r[s],n[s],t.position,u),a+=ut.repeat(" ",e.indent)+Ur((t.line+1).toString(),h)+" | "+c.str+`
|
||
`,a+=ut.repeat("-",e.indent+h+3+c.pos)+`^
|
||
`,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)c=jr(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),u),a+=ut.repeat(" ",e.indent)+Ur((t.line+l+1).toString(),h)+" | "+c.str+`
|
||
`;return a.replace(/\n$/,"")}var Sg=Tg,kg=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],wg=["scalar","sequence","mapping"];function Bg(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function Lg(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(kg.indexOf(i)===-1)throw new qt('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=Bg(e.styleAliases||null),wg.indexOf(this.kind)===-1)throw new qt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ct=Lg;function Vo(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 Ag(){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 hn(t){return this.extend(t)}hn.prototype.extend=function(e){var i=[],r=[];if(e instanceof ct)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 qt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof ct))throw new qt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new qt("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 qt("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 ct))throw new qt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(hn.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=Vo(n,"implicit"),n.compiledExplicit=Vo(n,"explicit"),n.compiledTypeMap=Ag(n.compiledImplicit,n.compiledExplicit),n};var Eg=hn,Fg=new ct("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Mg=new ct("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Og=new ct("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ma=new Eg({explicit:[Fg,Mg,Og]});function $g(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Ig(){return null}function Dg(t){return t===null}var Ng=new ct("tag:yaml.org,2002:null",{kind:"scalar",resolve:$g,construct:Ig,predicate:Dg,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Rg(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 Pg(t){return t==="true"||t==="True"||t==="TRUE"}function zg(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Wg=new ct("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Rg,construct:Pg,predicate:zg,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 Hg(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function qg(t){return 48<=t&&t<=55}function jg(t){return 48<=t&&t<=57}function Ug(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(!Hg(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!qg(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!jg(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function Vg(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 Gg(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ut.isNegativeZero(t)}var Yg=new ct("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ug,construct:Vg,predicate:Gg,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"]}}),Xg=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Kg(t){return!(t===null||!Xg.test(t)||t[t.length-1]==="_")}function Zg(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 Jg=/^[-+]?[0-9]+e/;function Qg(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(ut.isNegativeZero(t))return"-0.0";return i=t.toString(10),Jg.test(i)?i.replace("e",".e"):i}function tm(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ut.isNegativeZero(t))}var em=new ct("tag:yaml.org,2002:float",{kind:"scalar",resolve:Kg,construct:Zg,predicate:tm,represent:Qg,defaultStyle:"lowercase"}),im=Ma.extend({implicit:[Ng,Wg,Yg,em]}),rm=im,Oa=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$a=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 nm(t){return t===null?!1:Oa.exec(t)!==null||$a.exec(t)!==null}function om(t){var e,i,r,n,o,s,a,l=0,c=null,h,u,g;if(e=Oa.exec(t),e===null&&(e=$a.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],u=+(e[11]||0),c=(h*60+u)*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 sm(t){return t.toISOString()}var am=new ct("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nm,construct:om,instanceOf:Date,represent:sm});function lm(t){return t==="<<"||t===null}var cm=new ct("tag:yaml.org,2002:merge",{kind:"scalar",resolve:lm}),Rn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
||
\r`;function hm(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=Rn;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 um(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=Rn,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 fm(t){var e="",i=0,r,n,o=t.length,s=Rn;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 dm(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var pm=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hm,construct:um,predicate:dm,represent:fm}),gm=Object.prototype.hasOwnProperty,mm=Object.prototype.toString;function _m(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,mm.call(n)!=="[object Object]")return!1;for(o in n)if(gm.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 ym(t){return t!==null?t:[]}var Cm=new ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:_m,construct:ym}),bm=Object.prototype.toString;function xm(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],bm.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;o[e]=[n[0],r[n[0]]]}return!0}function vm(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 Tm=new ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:xm,construct:vm}),Sm=Object.prototype.hasOwnProperty;function km(t){if(t===null)return!0;var e,i=t;for(e in i)if(Sm.call(i,e)&&i[e]!==null)return!1;return!0}function wm(t){return t!==null?t:{}}var Bm=new ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:km,construct:wm}),Lm=rm.extend({implicit:[am,cm],explicit:[pm,Cm,Tm,Bm]}),re=Object.prototype.hasOwnProperty,er=1,Ia=2,Da=3,ir=4,Vr=1,Am=2,Go=3,Em=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Fm=/[\x85\u2028\u2029]/,Mm=/[,\[\]\{\}]/,Na=/^(?:!|!!|![a-z\-]+!)$/i,Ra=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Yo(t){return Object.prototype.toString.call(t)}function Dt(t){return t===10||t===13}function de(t){return t===9||t===32}function _t(t){return t===9||t===32||t===10||t===13}function Be(t){return t===44||t===91||t===93||t===123||t===125}function Om(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function $m(t){return t===120?2:t===117?4:t===85?8:0}function Im(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 Dm(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Pa=new Array(256),za=new Array(256);for(var we=0;we<256;we++)Pa[we]=Xo(we)?1:0,za[we]=Xo(we);function Nm(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Lm,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 Wa(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=Sg(i),new qt(e,i)}function B(t,e){throw Wa(t,e)}function rr(t,e){t.onWarning&&t.onWarning.call(null,Wa(t,e))}var Ko={YAML:function(e,i,r){var n,o,s;e.version!==null&&B(e,"duplication of %YAML directive"),r.length!==1&&B(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&B(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&B(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&rr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&B(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],Na.test(n)||B(e,"ill-formed tag handle (first argument) of the TAG directive"),re.call(e.tagMap,n)&&B(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ra.test(o)||B(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{B(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function ee(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||B(t,"expected valid JSON character");else Em.test(a)&&B(t,"the stream contains non-printable characters");t.result+=a}}function Zo(t,e,i,r){var n,o,s,a;for(ut.isObject(i)||B(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],re.call(e,o)||(e[o]=i[o],r[o]=!0)}function Le(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])&&B(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Yo(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Yo(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)Zo(t,e,o[c],i);else Zo(t,e,o,i);else!t.json&&!re.call(i,n)&&re.call(e,n)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,B(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 Pn(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++):B(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Q(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;de(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(Dt(n))for(Pn(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&&rr(t,"deficient indentation"),r}function xr(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||_t(i)))}function zn(t,e){e===1?t.result+=" ":e>1&&(t.result+=ut.repeat(`
|
||
`,e-1))}function Rm(t,e,i){var r,n,o,s,a,l,c,h,u=t.kind,g=t.result,d;if(d=t.input.charCodeAt(t.position),_t(d)||Be(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Be(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Be(n))break}else if(d===35){if(r=t.input.charCodeAt(t.position-1),_t(r))break}else{if(t.position===t.lineStart&&xr(t)||i&&Be(d))break;if(Dt(d))if(l=t.line,c=t.lineStart,h=t.lineIndent,Q(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=h;break}}a&&(ee(t,o,s,!1),zn(t,t.line-l),o=s=t.position,a=!1),de(d)||(s=t.position+1),d=t.input.charCodeAt(++t.position)}return ee(t,o,s,!1),t.result?!0:(t.kind=u,t.result=g,!1)}function Pm(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(ee(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 Dt(i)?(ee(t,r,n,!0),zn(t,Q(t,!1,e)),r=n=t.position):t.position===t.lineStart&&xr(t)?B(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);B(t,"unexpected end of the stream within a single quoted scalar")}function zm(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 ee(t,i,t.position,!0),t.position++,!0;if(a===92){if(ee(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),Dt(a))Q(t,!1,e);else if(a<256&&Pa[a])t.result+=za[a],t.position++;else if((s=$m(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=Om(a))>=0?o=(o<<4)+s:B(t,"expected hexadecimal character");t.result+=Dm(o),t.position++}else B(t,"unknown escape sequence");i=r=t.position}else Dt(a)?(ee(t,i,r,!0),zn(t,Q(t,!1,e)),i=r=t.position):t.position===t.lineStart&&xr(t)?B(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}B(t,"unexpected end of the stream within a double quoted scalar")}function Wm(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,c,h,u,g,d,_=Object.create(null),k,F,R,x;if(x=t.input.charCodeAt(t.position),x===91)h=93,d=!1,a=[];else if(x===123)h=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),x=t.input.charCodeAt(++t.position);x!==0;){if(Q(t,!0,e),x=t.input.charCodeAt(t.position),x===h)return t.position++,t.tag=s,t.anchor=l,t.kind=d?"mapping":"sequence",t.result=a,!0;i?x===44&&B(t,"expected the node content, but found ','"):B(t,"missed comma between flow collection entries"),F=k=R=null,u=g=!1,x===63&&(c=t.input.charCodeAt(t.position+1),_t(c)&&(u=g=!0,t.position++,Q(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,Oe(t,e,er,!1,!0),F=t.tag,k=t.result,Q(t,!0,e),x=t.input.charCodeAt(t.position),(g||t.line===r)&&x===58&&(u=!0,x=t.input.charCodeAt(++t.position),Q(t,!0,e),Oe(t,e,er,!1,!0),R=t.result),d?Le(t,a,_,F,k,R,r,n,o):u?a.push(Le(t,null,_,F,k,R,r,n,o)):a.push(k),Q(t,!0,e),x=t.input.charCodeAt(t.position),x===44?(i=!0,x=t.input.charCodeAt(++t.position)):i=!1}B(t,"unexpected end of the stream within a flow collection")}function Hm(t,e){var i,r,n=Vr,o=!1,s=!1,a=e,l=0,c=!1,h,u;if(u=t.input.charCodeAt(t.position),u===124)r=!1;else if(u===62)r=!0;else return!1;for(t.kind="scalar",t.result="";u!==0;)if(u=t.input.charCodeAt(++t.position),u===43||u===45)Vr===n?n=u===43?Go:Am:B(t,"repeat of a chomping mode identifier");else if((h=Im(u))>=0)h===0?B(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?B(t,"repeat of an indentation width identifier"):(a=e+h-1,s=!0);else break;if(de(u)){do u=t.input.charCodeAt(++t.position);while(de(u));if(u===35)do u=t.input.charCodeAt(++t.position);while(!Dt(u)&&u!==0)}for(;u!==0;){for(Pn(t),t.lineIndent=0,u=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&u===32;)t.lineIndent++,u=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),Dt(u)){l++;continue}if(t.lineIndent<a){n===Go?t.result+=ut.repeat(`
|
||
`,o?1+l:l):n===Vr&&o&&(t.result+=`
|
||
`);break}for(r?de(u)?(c=!0,t.result+=ut.repeat(`
|
||
`,o?1+l:l)):c?(c=!1,t.result+=ut.repeat(`
|
||
`,l+1)):l===0?o&&(t.result+=" "):t.result+=ut.repeat(`
|
||
`,l):t.result+=ut.repeat(`
|
||
`,o?1+l:l),o=!0,s=!0,l=0,i=t.position;!Dt(u)&&u!==0;)u=t.input.charCodeAt(++t.position);ee(t,i,t.position,!1)}return!0}function Jo(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,B(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!_t(s))));){if(a=!0,t.position++,Q(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,Oe(t,e,Da,!1,!0),o.push(t.result),Q(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)B(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 qm(t,e,i){var r,n,o,s,a,l,c=t.tag,h=t.anchor,u={},g=Object.create(null),d=null,_=null,k=null,F=!1,R=!1,x;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),x=t.input.charCodeAt(t.position);x!==0;){if(!F&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,B(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(x===63||x===58)&&_t(r))x===63?(F&&(Le(t,u,g,d,_,null,s,a,l),d=_=k=null),R=!0,F=!0,n=!0):F?(F=!1,n=!0):B(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,x=r;else{if(s=t.line,a=t.lineStart,l=t.position,!Oe(t,i,Ia,!1,!0))break;if(t.line===o){for(x=t.input.charCodeAt(t.position);de(x);)x=t.input.charCodeAt(++t.position);if(x===58)x=t.input.charCodeAt(++t.position),_t(x)||B(t,"a whitespace character is expected after the key-value separator within a block mapping"),F&&(Le(t,u,g,d,_,null,s,a,l),d=_=k=null),R=!0,F=!1,n=!1,d=t.tag,_=t.result;else if(R)B(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=h,!0}else if(R)B(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)&&(F&&(s=t.line,a=t.lineStart,l=t.position),Oe(t,e,ir,!0,n)&&(F?_=t.result:k=t.result),F||(Le(t,u,g,d,_,k,s,a,l),d=_=k=null),Q(t,!0,-1),x=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&x!==0)B(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return F&&Le(t,u,g,d,_,null,s,a,l),R&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=u),R}function jm(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&&B(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)):B(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!_t(s);)s===33&&(r?B(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Na.test(n)||B(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),Mm.test(o)&&B(t,"tag suffix cannot contain flow indicator characters")}o&&!Ra.test(o)&&B(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{B(t,"tag name is malformed: "+o)}return i?t.tag=o:re.call(t.tagMap,n)?t.tag=t.tagMap[n]+o:n==="!"?t.tag="!"+o:n==="!!"?t.tag="tag:yaml.org,2002:"+o:B(t,'undeclared tag handle "'+n+'"'),!0}function Um(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&B(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!_t(i)&&!Be(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&B(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Vm(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&&!_t(r)&&!Be(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&B(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),re.call(t.anchorMap,i)||B(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],Q(t,!0,-1),!0}function Oe(t,e,i,r,n){var o,s,a,l=1,c=!1,h=!1,u,g,d,_,k,F;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=ir===i||Da===i,r&&Q(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;jm(t)||Um(t);)Q(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||ir===i)&&(er===i||Ia===i?k=e:k=e+1,F=t.position-t.lineStart,l===1?a&&(Jo(t,F)||qm(t,F,k))||Wm(t,k)?h=!0:(s&&Hm(t,k)||Pm(t,k)||zm(t,k)?h=!0:Vm(t)?(h=!0,(t.tag!==null||t.anchor!==null)&&B(t,"alias node should not have any properties")):Rm(t,k,er===i)&&(h=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(h=a&&Jo(t,F))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&B(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),u=0,g=t.implicitTypes.length;u<g;u+=1)if(_=t.implicitTypes[u],_.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(re.call(t.typeMap[t.kind||"fallback"],t.tag))_=t.typeMap[t.kind||"fallback"][t.tag];else for(_=null,d=t.typeMap.multi[t.kind||"fallback"],u=0,g=d.length;u<g;u+=1)if(t.tag.slice(0,d[u].tag.length)===d[u].tag){_=d[u];break}_||B(t,"unknown tag !<"+t.tag+">"),t.result!==null&&_.kind!==t.kind&&B(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)):B(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 Gm(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&&(Q(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&&!_t(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&B(t,"directive name must not be less than one character in length");s!==0;){for(;de(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!Dt(s));break}if(Dt(s))break;for(i=t.position;s!==0&&!_t(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&Pn(t),re.call(Ko,r)?Ko[r](t,r,n):rr(t,'unknown document directive "'+r+'"')}if(Q(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Q(t,!0,-1)):o&&B(t,"directives end mark is expected"),Oe(t,t.lineIndent-1,ir,!1,!0),Q(t,!0,-1),t.checkLineBreaks&&Fm.test(t.input.slice(e,t.position))&&rr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&xr(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Q(t,!0,-1));return}if(t.position<t.length-1)B(t,"end of the stream or a document separator is expected");else return}function Ha(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 Nm(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,B(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;)Gm(i);return i.documents}function Ym(t,e,i){e!==null&&typeof e=="object"&&typeof i>"u"&&(i=e,e=null);var r=Ha(t,i);if(typeof e!="function")return r;for(var n=0,o=r.length;n<o;n+=1)e(r[n])}function Xm(t,e){var i=Ha(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new qt("expected a single document in the stream, but found more")}}var Km=Ym,Zm=Xm,Jm={loadAll:Km,load:Zm},Qm=Ma,t0=Jm.load;const qa=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function e0(t,e){var i;const r=t.match(qa);if(r){const n=t0(r[1],{schema:Qm});return n!=null&&n.title&&((i=e.setDiagramTitle)==null||i.call(e,n.title)),t.slice(r[0].length)}else return t}const Ii={},i0=(t,e,i)=>{let r="";return t in Ii&&Ii[t]?r=Ii[t](i):S.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}
|
||
`},r0=(t,e)=>{Ii[t]=e},n0=i0;let ce={};const ja=function(t,e,i,r){S.debug("parseDirective is being called",e,i,r);try{if(e!==void 0)switch(e=e.trim(),i){case"open_directive":ce={};break;case"type_directive":if(!ce)throw new Error("currentDirective is undefined");ce.type=e.toLowerCase();break;case"arg_directive":if(!ce)throw new Error("currentDirective is undefined");ce.args=JSON.parse(e);break;case"close_directive":o0(t,ce,r),ce=void 0;break}}catch(n){S.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${i}`),S.error(n.message)}},o0=function(t,e,i){switch(S.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])}),S.info("sanitize in handleDirective",e.args),Ie(e.args),S.info("sanitize in handleDirective (done)",e.args),Fs(e.args);break}case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap(e.type==="wrap");break;case"themeCss":S.warn("themeCss encountered");break;default:S.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e);break}},s0=S,a0=bn,Ua=Gt,l0=t=>Je(t,Ua()),c0=sp,h0=()=>lp,u0=(t,e,i,r)=>ja(t,e,i,r),nr={},Wn=(t,e,i)=>{if(nr[t])throw new Error(`Diagram ${t} already registered.`);nr[t]=e,i&&Ya(t,i),r0(t,e.styles),e.injectUtils&&e.injectUtils(s0,a0,Ua,l0,c0,h0(),u0)},Hn=t=>{if(t in nr)return nr[t];throw new Error(`Diagram ${t} not found.`)};class Va extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const f0=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,d0=/\s*%%.*\n/gm,$e={},qn=function(t,e){t=t.replace(qa,"").replace(f0,"").replace(d0,`
|
||
`);for(const[i,{detector:r}]of Object.entries($e))if(r(t,e))return i;throw new Va(`No diagram type detected matching given configuration for text: ${t}`)},Ga=(...t)=>{for(const{id:e,detector:i,loader:r}of t)Ya(e,i,r)},p0=async()=>{S.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries($e).map(async([i,{detector:r,loader:n}])=>{if(n)try{Hn(i)}catch{try{const{diagram:s,id:a}=await n();Wn(a,s,r)}catch(s){throw S.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete $e[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){S.error(`Failed to load ${e.length} external diagrams`);for(const i of e)S.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},Ya=(t,e,i)=>{$e[t]?S.error(`Detector with key ${t} already exists`):$e[t]={detector:e,loader:i},S.debug(`Detector with key ${t} added${i?" with loader":""}`)},g0=t=>$e[t].loader,m0={curveBasis:zd,curveBasisClosed:Wd,curveBasisOpen:Hd,curveBumpX:Rd,curveBumpY:Pd,curveBundle:qd,curveCardinalClosed:Ud,curveCardinalOpen:Vd,curveCardinal:jd,curveCatmullRomClosed:Yd,curveCatmullRomOpen:Xd,curveCatmullRom:Gd,curveLinear:Nd,curveLinearClosed:Kd,curveMonotoneX:Zd,curveMonotoneY:Jd,curveNatural:Qd,curveStep:tp,curveStepAfter:ip,curveStepBefore:ep},Gr=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,_0=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,y0=function(t,e){const i=Xa(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const n=i.map(o=>o.args);Ie(n),r=lt(r,[...n])}else r=i.args;if(r){let n=qn(t,e);["config"].forEach(o=>{r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o])})}return r},Xa=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${_0.source})(?=[}][%]{2}).*
|
||
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),S.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Gr.exec(t))!==null;)if(r.index===Gr.lastIndex&&Gr.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 S.error(`ERROR: ${i.message} - Unable to parse directive
|
||
${e!==null?" type:"+e:""} based on the text:${t}`),{type:null,args:null}}},C0=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function b0(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return m0[i]||e}function x0(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?$s(i):i}const v0=(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 or(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function T0(t){let e,i=0;t.forEach(o=>{i+=or(o,e),e=o});let r=i/2,n;return e=void 0,t.forEach(o=>{if(e&&!n){const s=or(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 S0(t){return t.length===1?t[0]:T0(t)}const k0=(t,e,i)=>{let r;S.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 u=or(h,r);if(u<o)o-=u;else{const g=o/u;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 w0(t,e,i){let r=JSON.parse(JSON.stringify(i)),n;S.info("our points",r),e!=="start_left"&&e!=="start_right"&&(r=r.reverse()),r.forEach(u=>{n=u});let s=25+t,a;n=void 0,r.forEach(u=>{if(n&&!a){const g=or(u,n);if(g<s)s-=g;else{const d=s/g;d<=0&&(a=n),d>=1&&(a={x:u.x,y:u.y}),d>0&&d<1&&(a={x:(1-d)*n.x+d*u.x,y:(1-d)*n.y+d*u.y})}}n=u});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 B0(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 Qo=0;const L0=()=>(Qo++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Qo);function A0(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 E0=t=>A0(t.length),F0=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}},M0=function(t,e){const i=e.text.replace(xn.lineBreakRegex," "),[,r]=Un(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},O0=ui((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),xn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=sr(`${s} `,i),c=sr(o,i);if(l>e){const{hyphenatedStrings:g,remainingWord:d}=$0(s,e,"-",i);n.push(o,...g),o=d}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}`),$0=ui((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(sr(c,r)>=e){const u=l+1,g=n.length===u,d=`${c}${i}`;o.push(g?c:d),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function I0(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),jn(t,e).height}function sr(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),jn(t,e).width}const jn=ui((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]=Un(i),s=["sans-serif",r],a=t.split(xn.lineBreakRegex),l=[],c=$t("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const g of s){let d=0;const _={width:0,height:0,lineHeight:0};for(const k of a){const F=F0();F.text=k;const R=M0(h,F).style("font-size",o).style("font-weight",n).style("font-family",g),x=(R._groups||R)[0][0].getBBox();_.width=Math.round(Math.max(_.width,x.width)),d=Math.round(x.height),_.height+=d,_.lineHeight=Math.round(Math.max(_.lineHeight,d))}l.push(_)}h.remove();const u=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[u]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),D0=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 ki;const N0=function(t){return ki=ki||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ki.innerHTML=t,unescape(ki.textContent)},Ie=t=>{if(S.debug("directiveSanitizer called with",t),typeof t=="object"&&(t.length?t.forEach(e=>Ie(e)):Object.keys(t).forEach(e=>{S.debug("Checking key",e),e.startsWith("__")&&(S.debug("sanitize deleting __ option",e),delete t[e]),e.includes("proto")&&(S.debug("sanitize deleting proto option",e),delete t[e]),e.includes("constr")&&(S.debug("sanitize deleting constr option",e),delete t[e]),e.includes("themeCSS")&&(S.debug("sanitizing themeCss option"),t[e]=Di(t[e])),e.includes("fontFamily")&&(S.debug("sanitizing fontFamily option"),t[e]=Di(t[e])),e.includes("altFontFamily")&&(S.debug("sanitizing altFontFamily option"),t[e]=Di(t[e])),sh.includes(e)?typeof t[e]=="object"&&(S.debug("sanitize deleting object",e),Ie(t[e])):(S.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]="")}}S.debug("After sanitization",t)},Di=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 Ka(t){return"str"in t}function R0(t){return t instanceof Error?t.message:String(t)}const P0=(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)},Un=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]},Ni={assignWithDepth:lt,wrapLabel:O0,calculateTextHeight:I0,calculateTextWidth:sr,calculateTextDimensions:jn,detectInit:y0,detectDirective:Xa,isSubstringInArray:C0,interpolateToCurve:b0,calcLabelPosition:S0,calcCardinalityPosition:k0,calcTerminalLabelPosition:w0,formatUrl:x0,getStylesFromArray:B0,generateId:L0,random:E0,runFunc:v0,entityDecode:N0,initIdGenerator:D0,directiveSanitizer:Ie,sanitizeCss:Di,insertTitle:P0,parseFontSize:Un};var Za="comm",Ja="rule",Qa="decl",z0="@import",W0="@keyframes",H0=Math.abs,Vn=String.fromCharCode;function tl(t){return t.trim()}function un(t,e,i){return t.replace(e,i)}function q0(t,e){return t.indexOf(e)}function si(t,e){return t.charCodeAt(e)|0}function ai(t,e,i){return t.slice(e,i)}function Jt(t){return t.length}function el(t){return t.length}function wi(t,e){return e.push(t),t}var vr=1,De=1,il=0,Tt=0,J=0,Pe="";function Gn(t,e,i,r,n,o,s){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:vr,column:De,length:s,return:""}}function j0(){return J}function U0(){return J=Tt>0?si(Pe,--Tt):0,De--,J===10&&(De=1,vr--),J}function At(){return J=Tt<il?si(Pe,Tt++):0,De++,J===10&&(De=1,vr++),J}function pe(){return si(Pe,Tt)}function Ri(){return Tt}function Tr(t,e){return ai(Pe,t,e)}function fn(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 V0(t){return vr=De=1,il=Jt(Pe=t),Tt=0,[]}function G0(t){return Pe="",t}function Yr(t){return tl(Tr(Tt-1,dn(t===91?t+2:t===40?t+1:t)))}function Y0(t){for(;(J=pe())&&J<33;)At();return fn(t)>2||fn(J)>3?"":" "}function X0(t,e){for(;--e&&At()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return Tr(t,Ri()+(e<6&&pe()==32&&At()==32))}function dn(t){for(;At();)switch(J){case t:return Tt;case 34:case 39:t!==34&&t!==39&&dn(J);break;case 40:t===41&&dn(t);break;case 92:At();break}return Tt}function K0(t,e){for(;At()&&t+J!==47+10;)if(t+J===42+42&&pe()===47)break;return"/*"+Tr(e,Tt-1)+"*"+Vn(t===47?t:At())}function Z0(t){for(;!fn(pe());)At();return Tr(t,Tt)}function J0(t){return G0(Pi("",null,null,null,[""],t=V0(t),0,[0],t))}function Pi(t,e,i,r,n,o,s,a,l){for(var c=0,h=0,u=s,g=0,d=0,_=0,k=1,F=1,R=1,x=0,q="",G=n,X=o,j=r,P=q;F;)switch(_=x,x=At()){case 40:if(_!=108&&si(P,u-1)==58){q0(P+=un(Yr(x),"&","&\f"),"&\f")!=-1&&(R=-1);break}case 34:case 39:case 91:P+=Yr(x);break;case 9:case 10:case 13:case 32:P+=Y0(_);break;case 92:P+=X0(Ri()-1,7);continue;case 47:switch(pe()){case 42:case 47:wi(Q0(K0(At(),Ri()),e,i),l);break;default:P+="/"}break;case 123*k:a[c++]=Jt(P)*R;case 125*k:case 59:case 0:switch(x){case 0:case 125:F=0;case 59+h:d>0&&Jt(P)-u&&wi(d>32?es(P+";",r,i,u-1):es(un(P," ","")+";",r,i,u-2),l);break;case 59:P+=";";default:if(wi(j=ts(P,e,i,c,h,n,a,q,G=[],X=[],u),o),x===123)if(h===0)Pi(P,e,j,j,G,o,u,a,X);else switch(g===99&&si(P,3)===110?100:g){case 100:case 109:case 115:Pi(t,j,j,r&&wi(ts(t,j,j,0,0,n,a,q,n,G=[],u),X),n,X,u,a,r?G:X);break;default:Pi(P,j,j,j,[""],X,0,a,X)}}c=h=d=0,k=R=1,q=P="",u=s;break;case 58:u=1+Jt(P),d=_;default:if(k<1){if(x==123)--k;else if(x==125&&k++==0&&U0()==125)continue}switch(P+=Vn(x),x*k){case 38:R=h>0?1:(P+="\f",-1);break;case 44:a[c++]=(Jt(P)-1)*R,R=1;break;case 64:pe()===45&&(P+=Yr(At())),g=pe(),h=u=Jt(q=P+=Z0(Ri())),x++;break;case 45:_===45&&Jt(P)==2&&(k=0)}}return o}function ts(t,e,i,r,n,o,s,a,l,c,h){for(var u=n-1,g=n===0?o:[""],d=el(g),_=0,k=0,F=0;_<r;++_)for(var R=0,x=ai(t,u+1,u=H0(k=s[_])),q=t;R<d;++R)(q=tl(k>0?g[R]+" "+x:un(x,/&\f/g,g[R])))&&(l[F++]=q);return Gn(t,e,i,n===0?Ja:a,l,c,h)}function Q0(t,e,i){return Gn(t,e,i,Za,Vn(j0()),ai(t,2,-2),0)}function es(t,e,i,r){return Gn(t,e,i,Qa,ai(t,0,r),ai(t,r+1,-1),r)}function pn(t,e){for(var i="",r=el(t),n=0;n<r;n++)i+=e(t[n],n,t,e)||"";return i}function t_(t,e,i,r){switch(t.type){case z0:case Qa:return t.return=t.return||t.value;case Za:return"";case W0:return t.return=t.value+"{"+pn(t.children,r)+"}";case Ja:t.value=t.props.join(",")}return Jt(i=pn(t.children,r))?t.return=t.value+"{"+i+"}":""}let is={};const e_=function(t){is={...is,...t}},i_=(t,e,i)=>{try{S.debug(`Renering svg for syntax error
|
||
`);const r=$t("#"+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){S.error("Error while rendering info diagram"),S.error(R0(r))}},r_={setConf:e_,draw:i_};var n_=Object.prototype;function rl(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||n_;return t===i}function o_(t,e){return function(i){return t(e(i))}}var s_=o_(Object.keys,Object);const a_=s_;var l_=Object.prototype,c_=l_.hasOwnProperty;function h_(t){if(!rl(t))return a_(t);var e=[];for(var i in Object(t))c_.call(t,i)&&i!="constructor"&&e.push(i);return e}var u_=Ne(ne,"DataView");const gn=u_;var f_=Ne(ne,"Promise");const mn=f_;var d_=Ne(ne,"Set");const _n=d_;var p_=Ne(ne,"WeakMap");const yn=p_;var rs="[object Map]",g_="[object Object]",ns="[object Promise]",os="[object Set]",ss="[object WeakMap]",as="[object DataView]",m_=ye(gn),__=ye(tr),y_=ye(mn),C_=ye(_n),b_=ye(yn),he=hi;(gn&&he(new gn(new ArrayBuffer(1)))!=as||tr&&he(new tr)!=rs||mn&&he(mn.resolve())!=ns||_n&&he(new _n)!=os||yn&&he(new yn)!=ss)&&(he=function(t){var e=hi(t),i=e==g_?t.constructor:void 0,r=i?ye(i):"";if(r)switch(r){case m_:return as;case __:return rs;case y_:return ns;case C_:return os;case b_:return ss}return e});const x_=he;function Yn(t){return t!=null&&typeof t=="object"}var v_="[object Arguments]";function ls(t){return Yn(t)&&hi(t)==v_}var nl=Object.prototype,T_=nl.hasOwnProperty,S_=nl.propertyIsEnumerable,k_=ls(function(){return arguments}())?ls:function(t){return Yn(t)&&T_.call(t,"callee")&&!S_.call(t,"callee")};const w_=k_;var B_=Array.isArray;const L_=B_;var A_=9007199254740991;function ol(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=A_}function E_(t){return t!=null&&ol(t.length)&&!Aa(t)}function F_(){return!1}var sl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cs=sl&&typeof module=="object"&&module&&!module.nodeType&&module,M_=cs&&cs.exports===sl,hs=M_?ne.Buffer:void 0,O_=hs?hs.isBuffer:void 0,$_=O_||F_;const I_=$_;var D_="[object Arguments]",N_="[object Array]",R_="[object Boolean]",P_="[object Date]",z_="[object Error]",W_="[object Function]",H_="[object Map]",q_="[object Number]",j_="[object Object]",U_="[object RegExp]",V_="[object Set]",G_="[object String]",Y_="[object WeakMap]",X_="[object ArrayBuffer]",K_="[object DataView]",Z_="[object Float32Array]",J_="[object Float64Array]",Q_="[object Int8Array]",ty="[object Int16Array]",ey="[object Int32Array]",iy="[object Uint8Array]",ry="[object Uint8ClampedArray]",ny="[object Uint16Array]",oy="[object Uint32Array]",Y={};Y[Z_]=Y[J_]=Y[Q_]=Y[ty]=Y[ey]=Y[iy]=Y[ry]=Y[ny]=Y[oy]=!0;Y[D_]=Y[N_]=Y[X_]=Y[R_]=Y[K_]=Y[P_]=Y[z_]=Y[W_]=Y[H_]=Y[q_]=Y[j_]=Y[U_]=Y[V_]=Y[G_]=Y[Y_]=!1;function sy(t){return Yn(t)&&ol(t.length)&&!!Y[hi(t)]}function ay(t){return function(e){return t(e)}}var al=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ze=al&&typeof module=="object"&&module&&!module.nodeType&&module,ly=Ze&&Ze.exports===al,Xr=ly&&wa.process,cy=function(){try{var t=Ze&&Ze.require&&Ze.require("util").types;return t||Xr&&Xr.binding&&Xr.binding("util")}catch{}}();const us=cy;var fs=us&&us.isTypedArray,hy=fs?ay(fs):sy;const uy=hy;var fy="[object Map]",dy="[object Set]",py=Object.prototype,gy=py.hasOwnProperty;function zi(t){if(t==null)return!0;if(E_(t)&&(L_(t)||typeof t=="string"||typeof t.splice=="function"||I_(t)||uy(t)||w_(t)))return!t.length;var e=x_(t);if(e==fy||e==dy)return!t.size;if(rl(t))return!h_(t).length;for(var i in t)if(gy.call(t,i))return!1;return!0}const ds="10.0.2",ll="c4",my=t=>t.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)!==null,_y=async()=>{const{diagram:t}=await et(()=>import("./c4Diagram-f9e67060-c6fc276b.js"),["assets/c4Diagram-f9e67060-c6fc276b.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:ll,diagram:t}},yy={id:ll,detector:my,loader:_y},Cy=yy,cl="flowchart",by=(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},xy=async()=>{const{diagram:t}=await et(()=>import("./flowDiagram-42bb1e4d-26c5972d.js"),["assets/flowDiagram-42bb1e4d-26c5972d.js","assets/add-html-label-5b886b97.js","assets/isPlainObject-a023b433.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/layout-7dfde0d1.js","assets/styles-4fe3d1fc-a4c9007f.js","assets/index-f9d09cc9-c2a1c8b4.js","assets/edges-65da65dc-24202da0.js","assets/svgDraw-6a237a99-ceb9af36.js","assets/selectAll-5a5c061c.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:cl,diagram:t}},vy={id:cl,detector:by,loader:xy},Ty=vy,hl="flowchart-v2",Sy=(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},ky=async()=>{const{diagram:t}=await et(()=>import("./flowDiagram-v2-4c9a7611-35f0a403.js"),["assets/flowDiagram-v2-4c9a7611-35f0a403.js","assets/add-html-label-5b886b97.js","assets/isPlainObject-a023b433.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/styles-4fe3d1fc-a4c9007f.js","assets/layout-7dfde0d1.js","assets/index-f9d09cc9-c2a1c8b4.js","assets/edges-65da65dc-24202da0.js","assets/svgDraw-6a237a99-ceb9af36.js","assets/selectAll-5a5c061c.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:hl,diagram:t}},wy={id:hl,detector:Sy,loader:ky},By=wy,ul="er",Ly=t=>t.match(/^\s*erDiagram/)!==null,Ay=async()=>{const{diagram:t}=await et(()=>import("./erDiagram-25977acd-659fac13.js"),["assets/erDiagram-25977acd-659fac13.js","assets/layout-7dfde0d1.js","assets/isPlainObject-a023b433.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:ul,diagram:t}},Ey={id:ul,detector:Ly,loader:Ay},Fy=Ey,fl="gitGraph",My=t=>t.match(/^\s*gitGraph/)!==null,Oy=async()=>{const{diagram:t}=await et(()=>import("./gitGraphDiagram-30dcca6d-a9e6989d.js"),["assets/gitGraphDiagram-30dcca6d-a9e6989d.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:fl,diagram:t}},$y={id:fl,detector:My,loader:Oy},Iy=$y,dl="gantt",Dy=t=>t.match(/^\s*gantt/)!==null,Ny=async()=>{const{diagram:t}=await et(()=>import("./ganttDiagram-41439120-ebac0521.js"),["assets/ganttDiagram-41439120-ebac0521.js","assets/init-77b53fdd.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:dl,diagram:t}},Ry={id:dl,detector:Dy,loader:Ny},Py=Ry,pl="info",zy=t=>t.match(/^\s*info/)!==null,Wy=async()=>{const{diagram:t}=await et(()=>import("./infoDiagram-1b335302-06a10f00.js"),["assets/infoDiagram-1b335302-06a10f00.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:pl,diagram:t}},Hy={id:pl,detector:zy,loader:Wy},qy=Hy,gl="pie",jy=t=>t.match(/^\s*pie/)!==null,Uy=async()=>{const{diagram:t}=await et(()=>import("./pieDiagram-905ac727-3f71d454.js"),["assets/pieDiagram-905ac727-3f71d454.js","assets/init-77b53fdd.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/arc-1874c5ce.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:gl,diagram:t}},Vy={id:gl,detector:jy,loader:Uy},Gy=Vy,ml="requirement",Yy=t=>t.match(/^\s*requirement(Diagram)?/)!==null,Xy=async()=>{const{diagram:t}=await et(()=>import("./requirementDiagram-84e9ae78-a61f108b.js"),["assets/requirementDiagram-84e9ae78-a61f108b.js","assets/layout-7dfde0d1.js","assets/isPlainObject-a023b433.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:ml,diagram:t}},Ky={id:ml,detector:Yy,loader:Xy},Zy=Ky,_l="sequence",Jy=t=>t.match(/^\s*sequenceDiagram/)!==null,Qy=async()=>{const{diagram:t}=await et(()=>import("./sequenceDiagram-2c95880e-7bd928ff.js"),["assets/sequenceDiagram-2c95880e-7bd928ff.js","assets/selectAll-5a5c061c.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:_l,diagram:t}},tC={id:_l,detector:Jy,loader:Qy},eC=tC,yl="class",iC=(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},rC=async()=>{const{diagram:t}=await et(()=>import("./classDiagram-4456d403-3ea33197.js"),["assets/classDiagram-4456d403-3ea33197.js","assets/styles-0dd3ba1e-38e88d08.js","assets/layout-7dfde0d1.js","assets/isPlainObject-a023b433.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/svgDraw-6a237a99-ceb9af36.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:yl,diagram:t}},nC={id:yl,detector:iC,loader:rC},oC=nC,Cl="classDiagram",sC=(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},aC=async()=>{const{diagram:t}=await et(()=>import("./classDiagram-v2-539b00ca-7fc7a29f.js"),["assets/classDiagram-v2-539b00ca-7fc7a29f.js","assets/styles-0dd3ba1e-38e88d08.js","assets/layout-7dfde0d1.js","assets/isPlainObject-a023b433.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/index-f9d09cc9-c2a1c8b4.js","assets/edges-65da65dc-24202da0.js","assets/svgDraw-6a237a99-ceb9af36.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:Cl,diagram:t}},lC={id:Cl,detector:sC,loader:aC},cC=lC,bl="state",hC=(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},uC=async()=>{const{diagram:t}=await et(()=>import("./stateDiagram-95825141-ac451910.js"),["assets/stateDiagram-95825141-ac451910.js","assets/styles-d6bd7a5e-1787a1b1.js","assets/layout-7dfde0d1.js","assets/isPlainObject-a023b433.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:bl,diagram:t}},fC={id:bl,detector:hC,loader:uC},dC=fC,xl="stateDiagram",pC=(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")},gC=async()=>{const{diagram:t}=await et(()=>import("./stateDiagram-v2-1cc5d8ed-1bae8f45.js"),["assets/stateDiagram-v2-1cc5d8ed-1bae8f45.js","assets/styles-d6bd7a5e-1787a1b1.js","assets/layout-7dfde0d1.js","assets/isPlainObject-a023b433.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/index-f9d09cc9-c2a1c8b4.js","assets/edges-65da65dc-24202da0.js","assets/svgDraw-6a237a99-ceb9af36.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:xl,diagram:t}},mC={id:xl,detector:pC,loader:gC},_C=mC,vl="journey",yC=t=>t.match(/^\s*journey/)!==null,CC=async()=>{const{diagram:t}=await et(()=>import("./journeyDiagram-ded66ec9-1295f8ab.js"),["assets/journeyDiagram-ded66ec9-1295f8ab.js","assets/arc-1874c5ce.js","assets/path-53f90ab3.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:vl,diagram:t}},bC={id:vl,detector:yC,loader:CC},xC=bC,Tl="error",vC=t=>t.toLowerCase().trim()==="error",TC=async()=>{const{diagram:t}=await et(()=>import("./errorDiagram-bb949655-6fe49571.js"),["assets/errorDiagram-bb949655-6fe49571.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:Tl,diagram:t}},SC={id:Tl,detector:vC,loader:TC},kC=SC,Sl="flowchart-elk",wC=(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")},BC=async()=>{const{diagram:t}=await et(()=>import("./flowchart-elk-definition-c9fc5e04-c8a22086.js"),["assets/flowchart-elk-definition-c9fc5e04-c8a22086.js","assets/add-html-label-5b886b97.js","assets/isPlainObject-a023b433.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/edges-65da65dc-24202da0.js","assets/svgDraw-6a237a99-ceb9af36.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:Sl,diagram:t}},LC={id:Sl,detector:wC,loader:BC},AC=LC,kl="timeline",EC=t=>t.match(/^\s*timeline/)!==null,FC=async()=>{const{diagram:t}=await et(()=>import("./timeline-definition-24ebf147-701c3f7c.js"),["assets/timeline-definition-24ebf147-701c3f7c.js","assets/is_dark-dd788761.js","assets/arc-1874c5ce.js","assets/path-53f90ab3.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:kl,diagram:t}},MC={id:kl,detector:EC,loader:FC},OC=MC,wl="mindmap",$C=t=>t.match(/^\s*mindmap/)!==null,IC=async()=>{const{diagram:t}=await et(()=>import("./mindmap-definition-c8a05b8a-f6c4b3e8.js"),["assets/mindmap-definition-c8a05b8a-f6c4b3e8.js","assets/is_dark-dd788761.js","assets/app-d0024b1b.js","assets/framework-3fad1c41.js"]);return{id:wl,diagram:t}},DC={id:wl,detector:$C,loader:IC},NC=DC;let ps=!1;const Xn=()=>{ps||(ps=!0,Wn("---",{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("---")),Ga(kC,Cy,cC,oC,Fy,Py,qy,Gy,Zy,eC,AC,By,Ty,NC,OC,Iy,_C,dC,xC))};class Bl{constructor(e){var i,r;this.text=e,this.type="graph",this.text+=`
|
||
`;const n=Gt();try{this.type=qn(e,n)}catch(a){this.type="error",this.detectError=a}const o=Hn(this.type);S.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(e0(a,this.db)),this.parser.parser.yy=this.db,o.init&&(o.init(n),S.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 Ll=async t=>{const e=qn(t,Gt());try{Hn(e)}catch{const r=g0(e);if(!r)throw new Va(`Diagram ${e} not found.`);const{id:n,diagram:o}=await r();Wn(n,o)}return new Bl(t)};let Cn=[];const Pb=t=>{Cn.push(t)},RC=()=>{Cn.forEach(t=>{t()}),Cn=[]},PC="graphics-document document";function zC(t,e){t.attr("role",PC),zi(e)||t.attr("aria-roledescription",e)}function WC(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 Al=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],HC=5e4,qC="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",jC="sandbox",UC="loose",VC="http://www.w3.org/2000/svg",GC="http://www.w3.org/1999/xlink",YC="http://www.w3.org/1999/xhtml",XC="100%",KC="100%",ZC="border:0;margin:0;",JC="margin:0",QC="allow-top-navigation-by-user-activation allow-popups",tb='The "iframe" tag is not supported by your browser.',eb=["foreignobject"],ib=["dominant-baseline"];async function rb(t,e){Xn();let i;try{(await Ll(t)).parse()}catch(r){i=r}if(e!=null&&e.suppressErrors)return i===void 0;if(i)throw i}const nb=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},ob=function(t){let e=t;return e=e.replace(/fl°°/g,"&#"),e=e.replace(/fl°/g,"&"),e=e.replace(/¶ß/g,";"),e},gs=(t,e,i=[])=>`
|
||
.${t} ${e} { ${i.join(" !important; ")} !important; }`,sb=(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}}`),!zi(i)&&Al.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];zi(h.styles)||l.forEach(u=>{n+=gs(h.id,u,h.styles)}),zi(h.textStyles)||(n+=gs(h.id,"tspan",h.textStyles))}}return n},ab=(t,e,i,r)=>{const n=sb(t,e,i),o=n0(e,n,t.themeVariables);return pn(J0(`${r}{${o}}`),t_)},lb=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),r=ob(r),r=r.replace(/<br>/g,"<br/>"),r},cb=(t="",e)=>{const i=e?e.viewBox.baseVal.height+"px":KC,r=btoa('<body style="'+JC+'">'+t+"</body>");return`<iframe style="width:${XC};height:${i};${ZC}" src="data:text/html;base64,${r}" sandbox="${QC}">
|
||
${tb}
|
||
</iframe>`},ms=(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",VC);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function _s(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const hb=(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()},ub=async function(t,e,i){var r,n,o,s;Xn(),qi();const a=Ni.detectInit(e);a&&(Ie(a),Fs(a));const l=Gt();S.debug(l),e.length>((l==null?void 0:l.maxTextSize)??HC)&&(e=qC),e=e.replace(/\r\n?/g,`
|
||
`);const c="#"+t,h="i"+t,u="#"+h,g="d"+t,d="#"+g;let _=$t("body");const k=l.securityLevel===jC,F=l.securityLevel===UC,R=l.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),k){const y=_s($t(i),h);_=$t(y.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=$t(i);ms(_,t,g,`font-family: ${R}`,GC)}else{if(hb(document,t,g,h),k){const y=_s($t("body"),h);_=$t(y.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=$t("body");ms(_,t,g)}e=nb(e);let x,q;try{x=await Ll(e)}catch(y){x=new Bl("error"),q=y}const G=_.select(d).node(),X=x.type,j=G.firstChild,P=j.firstChild,Yt=Al.includes(X)?x.renderer.getClasses(e,x):{},Z=ab(l,X,Yt,c),z=document.createElement("style");z.innerHTML=Z,j.insertBefore(z,P);try{await x.renderer.draw(e,t,ds,x)}catch(y){throw r_.draw(e,t,ds),y}const Xt=_.select(`${d} svg`),oe=(n=(r=x.db).getAccTitle)==null?void 0:n.call(r),L=(s=(o=x.db).getAccDescription)==null?void 0:s.call(o);db(X,Xt,oe,L),_.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",YC);let C=_.select(d).node().innerHTML;if(S.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),C=lb(C,k,ws(l.arrowMarkerAbsolute)),k){const y=_.select(d+" svg").node();C=cb(C,y)}else F||(C=Hi.sanitize(C,{ADD_TAGS:eb,ADD_ATTR:ib}));RC();const E=$t(k?u:d).node();if(E&&"remove"in E&&E.remove(),q)throw q;return{svg:C,bindFunctions:x.db.bindFunctions}};function fb(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),ch(t),t!=null&&t.theme&&t.theme in jt?t.themeVariables=jt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=jt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?lh(t):As();bn(i.logLevel),Xn()}function db(t,e,i,r){zC(e,t),WC(e,i,r,e.attr("id"))}const _e=Object.freeze({render:ub,parse:rb,parseDirective:ja,initialize:fb,getConfig:Gt,setConfig:uh,getSiteConfig:As,updateSiteConfig:hh,reset:()=>{qi()},globalReset:()=>{qi(Qe)},defaultConfig:Qe});bn(Gt().logLevel);qi(Gt());const pb=(t,e,i)=>{S.warn(t),Ka(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}))},El=async function(t={querySelector:".mermaid"}){try{await gb(t)}catch(e){if(Ka(e)&&S.error(e.str),Ft.parseError&&Ft.parseError(e),!t.suppressErrors)throw S.error("Use the suppressErrors option to suppress these errors"),e}},gb=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=_e.getConfig();S.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");S.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(S.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),_e.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new Ni.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){S.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=jl(Ni.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Ni.detectInit(s);h&&S.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:g}=await $l(c,s,l);l.innerHTML=u,t&&await t(c),g&&g(l)}catch(u){pb(u,a,Ft.parseError)}}if(a.length>0)throw a[0]},Fl=function(t){_e.initialize(t)},mb=async function(t,e,i){S.warn("mermaid.init is deprecated. Please use run instead."),t&&Fl(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await El(r)},_b=async(t,{lazyLoad:e=!0}={})=>{Ga(...t),e===!1&&await p0()},Ml=function(){if(Ft.startOnLoad){const{startOnLoad:t}=_e.getConfig();t&&Ft.run().catch(e=>S.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
|
||
* Wait for document loaded before starting the execution
|
||
*/window.addEventListener("load",Ml,!1)}const yb=function(t){Ft.parseError=t},ar=[];let Kr=!1;const Ol=async()=>{if(!Kr){for(Kr=!0;ar.length>0;){const t=ar.shift();if(t)try{await t()}catch(e){S.error("Error executing queue",e)}}Kr=!1}},Cb=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{_e.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;S.error("Error parsing",a),(l=Ft.parseError)==null||l.call(Ft,a),s(a),r(a)})});ar.push(n),Ol().catch(r)}),$l=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{_e.render(t,e,i).then(l=>{s(l),r(l)},l=>{var c;S.error("Error parsing",l),(c=Ft.parseError)==null||c.call(Ft,l),a(l),n(l)})});ar.push(o),Ol().catch(n)}),Ft={startOnLoad:!0,mermaidAPI:_e,parse:Cb,render:$l,init:mb,run:El,registerExternalDiagrams:_b,initialize:Fl,parseError:void 0,contentLoaded:Ml,setParseErrorHandler:yb},zb=Object.freeze(Object.defineProperty({__proto__:null,default:Ft},Symbol.toStringTag,{value:"Module"}));export{Ah as $,Aa as A,Yn as B,hi as C,L_ as D,La as E,Ne as F,Zp as G,E_ as H,w_ as I,I_ as J,uy as K,h_ as L,rl as M,ui as N,Re as O,tr as P,Ce as Q,ne as R,Qi as S,x_ as T,us as U,ay as V,ol as W,_n as X,zi as Y,yt as Z,Gs as _,Ta as a,o_ as a0,zd as a1,ob as a2,Xc as a3,uh as a4,Ua as a5,c0 as a6,E0 as a7,kn as a8,Ys as a9,Pb as aA,L0 as aB,r_ as aC,vb as aD,lp as aE,ja as aF,A as aG,M as aH,Ut as aI,$ as aJ,zb as aK,mt as aa,ci as ab,df as ac,wn as ad,Zt as ae,ii as af,Mo as ag,bf as ah,Zs as ai,Bb as aj,Cc as ak,xc as al,Ib as am,En as an,Eb as ao,Ob as ap,Po as aq,Ro as ar,$b as as,Mb as at,Lb as au,Ab as av,Nb as aw,Db as ax,Fb as ay,Un as az,va as b,Gt as c,Je as d,lt as e,sr as f,xa as g,$t as h,op as i,$s as j,xn as k,S as l,_e as m,I0 as n,Nd as o,B0 as p,ws as q,b0 as r,ba as s,sp as t,Qe as u,Sa as v,O0 as w,ka as x,Ni as y,Ca as z};
|