blob: 2d64f597700db6d2383fb7013d05fce81c7e11ce [file] [log] [blame]
import{n as ja,p as Xa,q as Ka,u as Za,x as Ja,y as Qa,z as tl,A as el,B as qr,D as il,m as z}from"./app-9073a2e6.js";var rl="[object Map]",nl="[object Set]",ol=Object.prototype,sl=ol.hasOwnProperty;function ei(t){if(t==null)return!0;if(ja(t)&&(Xa(t)||typeof t=="string"||typeof t.splice=="function"||Ka(t)||Za(t)||Ja(t)))return!t.length;var e=Qa(t);if(e==rl||e==nl)return!t.size;if(tl(t))return!el(t).length;for(var i in t)if(sl.call(t,i))return!1;return!0}function al(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 h=l.match(/\n([\t ]+|(?!\s).)/g);return h?a.concat(h.map(function(c){var f,g;return(g=(f=c.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&g!==void 0?g:0})):a},[]);if(n.length){var o=new RegExp(`
[ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(o,`
`)})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(a,l){var h=s.match(/(?:^|\n)( *)$/),c=h?h[1]:"",f=a;typeof a=="string"&&a.includes(`
`)&&(f=String(a).split(`
`).map(function(g,p){return p===0?g:""+c+g}).join(`
`)),s+=f+r[l+1]}),s}var $r={};Object.defineProperty($r,"__esModule",{value:!0});var Eo=$r.sanitizeUrl=void 0,ll=/^([^\w]*)(javascript|data|vbscript)/im,hl=/&#(\w+)(^\w|;)?/g,cl=/&(newline|tab);/gi,ul=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,fl=/^.+(:|&colon;)/gim,dl=[".","/"];function pl(t){return dl.indexOf(t[0])>-1}function gl(t){return t.replace(hl,function(e,i){return String.fromCharCode(i)})}function ml(t){var e=gl(t||"").replace(cl,"").replace(ul,"").trim();if(!e)return"about:blank";if(pl(e))return e;var i=e.match(fl);if(!i)return e;var r=i[0];return ll.test(r)?"about:blank":e}Eo=$r.sanitizeUrl=ml;var _l={value:()=>{}};function Ao(){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 ii(i)}function ii(t){this._=t}function yl(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}})}ii.prototype=Ao.prototype={constructor:ii,on:function(t,e){var i=this._,r=yl(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((n=(t=r[o]).type)&&(n=Cl(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]=Dn(i[n],t.name,e);else if(e==null)for(n in i)i[n]=Dn(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 ii(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 Cl(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function Dn(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=_l,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var kr="http://www.w3.org/1999/xhtml";const Rn={svg:"http://www.w3.org/2000/svg",xhtml:kr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mi(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Rn.hasOwnProperty(e)?{space:Rn[e],local:t}:t}function bl(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===kr&&e.documentElement.namespaceURI===kr?e.createElement(t):e.createElementNS(i,t)}}function xl(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Io(t){var e=Mi(t);return(e.local?xl:bl)(e)}function Tl(){}function Pr(t){return t==null?Tl:function(){return this.querySelector(t)}}function kl(t){typeof t!="function"&&(t=Pr(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,h,c=0;c<s;++c)(l=o[c])&&(h=t.call(l,l.__data__,c,o))&&("__data__"in l&&(h.__data__=l.__data__),a[c]=h);return new nt(r,this._parents)}function Sl(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function vl(){return[]}function Oo(t){return t==null?vl:function(){return this.querySelectorAll(t)}}function wl(t){return function(){return Sl(t.apply(this,arguments))}}function Bl(t){typeof t=="function"?t=wl(t):t=Oo(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,h=0;h<a;++h)(l=s[h])&&(r.push(t.call(l,l.__data__,h,s)),n.push(l));return new nt(r,n)}function Mo(t){return function(){return this.matches(t)}}function No(t){return function(e){return e.matches(t)}}var Fl=Array.prototype.find;function Ll(t){return function(){return Fl.call(this.children,t)}}function El(){return this.firstElementChild}function Al(t){return this.select(t==null?El:Ll(typeof t=="function"?t:No(t)))}var Il=Array.prototype.filter;function Ol(){return Array.from(this.children)}function Ml(t){return function(){return Il.call(this.children,t)}}function Nl(t){return this.selectAll(t==null?Ol:Ml(typeof t=="function"?t:No(t)))}function Dl(t){typeof t!="function"&&(t=Mo(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,h=0;h<s;++h)(l=o[h])&&t.call(l,l.__data__,h,o)&&a.push(l);return new nt(r,this._parents)}function Do(t){return new Array(t.length)}function Rl(){return new nt(this._enter||this._groups.map(Do),this._parents)}function gi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}gi.prototype={constructor:gi,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 ql(t){return function(){return t}}function $l(t,e,i,r,n,o){for(var s=0,a,l=e.length,h=o.length;s<h;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new gi(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function Pl(t,e,i,r,n,o,s){var a,l,h=new Map,c=e.length,f=o.length,g=new Array(c),p;for(a=0;a<c;++a)(l=e[a])&&(g[a]=p=s.call(l,l.__data__,a,e)+"",h.has(p)?n[a]=l:h.set(p,l));for(a=0;a<f;++a)p=s.call(t,o[a],a,o)+"",(l=h.get(p))?(r[a]=l,l.__data__=o[a],h.delete(p)):i[a]=new gi(t,o[a]);for(a=0;a<c;++a)(l=e[a])&&h.get(g[a])===l&&(n[a]=l)}function zl(t){return t.__data__}function Wl(t,e){if(!arguments.length)return Array.from(this,zl);var i=e?Pl:$l,r=this._parents,n=this._groups;typeof t!="function"&&(t=ql(t));for(var o=n.length,s=new Array(o),a=new Array(o),l=new Array(o),h=0;h<o;++h){var c=r[h],f=n[h],g=f.length,p=Hl(t.call(c,c&&c.__data__,h,r)),_=p.length,T=a[h]=new Array(_),F=s[h]=new Array(_),A=l[h]=new Array(g);i(c,f,T,F,A,p,e);for(var C=0,E=0,D,P;C<_;++C)if(D=T[C]){for(C>=E&&(E=C+1);!(P=F[E])&&++E<_;);D._next=P||null}}return s=new nt(s,r),s._enter=a,s._exit=l,s}function Hl(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Ul(){return new nt(this._exit||this._groups.map(Do),this._parents)}function Yl(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 Vl(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 h=i[l],c=r[l],f=h.length,g=a[l]=new Array(f),p,_=0;_<f;++_)(p=h[_]||c[_])&&(g[_]=p);for(;l<n;++l)a[l]=i[l];return new nt(a,this._parents)}function Gl(){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 jl(t){t||(t=Xl);function e(f,g){return f&&g?t(f.__data__,g.__data__):!f-!g}for(var i=this._groups,r=i.length,n=new Array(r),o=0;o<r;++o){for(var s=i[o],a=s.length,l=n[o]=new Array(a),h,c=0;c<a;++c)(h=s[c])&&(l[c]=h);l.sort(e)}return new nt(n,this._parents).order()}function Xl(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Kl(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Zl(){return Array.from(this)}function Jl(){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 Ql(){let t=0;for(const e of this)++t;return t}function th(){return!this.node()}function eh(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 ih(t){return function(){this.removeAttribute(t)}}function rh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function nh(t,e){return function(){this.setAttribute(t,e)}}function oh(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function sh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function ah(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 lh(t,e){var i=Mi(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?rh:ih:typeof e=="function"?i.local?ah:sh:i.local?oh:nh)(i,e))}function Ro(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function hh(t){return function(){this.style.removeProperty(t)}}function ch(t,e,i){return function(){this.style.setProperty(t,e,i)}}function uh(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function fh(t,e,i){return arguments.length>1?this.each((e==null?hh:typeof e=="function"?uh:ch)(t,e,i??"")):ne(this.node(),t)}function ne(t,e){return t.style.getPropertyValue(e)||Ro(t).getComputedStyle(t,null).getPropertyValue(e)}function dh(t){return function(){delete this[t]}}function ph(t,e){return function(){this[t]=e}}function gh(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function mh(t,e){return arguments.length>1?this.each((e==null?dh:typeof e=="function"?gh:ph)(t,e)):this.node()[t]}function qo(t){return t.trim().split(/^|\s+/)}function zr(t){return t.classList||new $o(t)}function $o(t){this._node=t,this._names=qo(t.getAttribute("class")||"")}$o.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 Po(t,e){for(var i=zr(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function zo(t,e){for(var i=zr(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function _h(t){return function(){Po(this,t)}}function yh(t){return function(){zo(this,t)}}function Ch(t,e){return function(){(e.apply(this,arguments)?Po:zo)(this,t)}}function bh(t,e){var i=qo(t+"");if(arguments.length<2){for(var r=zr(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Ch:e?_h:yh)(i,e))}function xh(){this.textContent=""}function Th(t){return function(){this.textContent=t}}function kh(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Sh(t){return arguments.length?this.each(t==null?xh:(typeof t=="function"?kh:Th)(t)):this.node().textContent}function vh(){this.innerHTML=""}function wh(t){return function(){this.innerHTML=t}}function Bh(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Fh(t){return arguments.length?this.each(t==null?vh:(typeof t=="function"?Bh:wh)(t)):this.node().innerHTML}function Lh(){this.nextSibling&&this.parentNode.appendChild(this)}function Eh(){return this.each(Lh)}function Ah(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ih(){return this.each(Ah)}function Oh(t){var e=typeof t=="function"?t:Io(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Mh(){return null}function Nh(t,e){var i=typeof t=="function"?t:Io(t),r=e==null?Mh:typeof e=="function"?e:Pr(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function Dh(){var t=this.parentNode;t&&t.removeChild(this)}function Rh(){return this.each(Dh)}function qh(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function $h(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ph(t){return this.select(t?$h:qh)}function zh(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Wh(t){return function(e){t.call(this,e,this.__data__)}}function Hh(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 Uh(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 Yh(t,e,i){return function(){var r=this.__on,n,o=Wh(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 Vh(t,e,i){var r=Hh(t+""),n,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,h=a.length,c;l<h;++l)for(n=0,c=a[l];n<o;++n)if((s=r[n]).type===c.type&&s.name===c.name)return c.value}return}for(a=e?Yh:Uh,n=0;n<o;++n)this.each(a(r[n],e,i));return this}function Wo(t,e,i){var r=Ro(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 Gh(t,e){return function(){return Wo(this,t,e)}}function jh(t,e){return function(){return Wo(this,t,e.apply(this,arguments))}}function Xh(t,e){return this.each((typeof e=="function"?jh:Gh)(t,e))}function*Kh(){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 Ho=[null];function nt(t,e){this._groups=t,this._parents=e}function De(){return new nt([[document.documentElement]],Ho)}function Zh(){return this}nt.prototype=De.prototype={constructor:nt,select:kl,selectAll:Bl,selectChild:Al,selectChildren:Nl,filter:Dl,data:Wl,enter:Rl,exit:Ul,join:Yl,merge:Vl,selection:Zh,order:Gl,sort:jl,call:Kl,nodes:Zl,node:Jl,size:Ql,empty:th,each:eh,attr:lh,style:fh,property:mh,classed:bh,text:Sh,html:Fh,raise:Eh,lower:Ih,append:Oh,insert:Nh,remove:Rh,clone:Ph,datum:zh,on:Vh,dispatch:Xh,[Symbol.iterator]:Kh};function mt(t){return typeof t=="string"?new nt([[document.querySelector(t)]],[document.documentElement]):new nt([[t]],Ho)}function Wr(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Uo(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function Re(){}var Be=.7,mi=1/Be,re="\\s*([+-]?\\d+)\\s*",Fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_t="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jh=/^#([0-9a-f]{3,8})$/,Qh=new RegExp(`^rgb\\(${re},${re},${re}\\)$`),tc=new RegExp(`^rgb\\(${_t},${_t},${_t}\\)$`),ec=new RegExp(`^rgba\\(${re},${re},${re},${Fe}\\)$`),ic=new RegExp(`^rgba\\(${_t},${_t},${_t},${Fe}\\)$`),rc=new RegExp(`^hsl\\(${Fe},${_t},${_t}\\)$`),nc=new RegExp(`^hsla\\(${Fe},${_t},${_t},${Fe}\\)$`),qn={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};Wr(Re,Le,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:$n,formatHex:$n,formatHex8:oc,formatHsl:sc,formatRgb:Pn,toString:Pn});function $n(){return this.rgb().formatHex()}function oc(){return this.rgb().formatHex8()}function sc(){return Yo(this).formatHsl()}function Pn(){return this.rgb().formatRgb()}function Le(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Jh.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?zn(e):i===3?new Q(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Ve(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Ve(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=Qh.exec(t))?new Q(e[1],e[2],e[3],1):(e=tc.exec(t))?new Q(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ec.exec(t))?Ve(e[1],e[2],e[3],e[4]):(e=ic.exec(t))?Ve(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=rc.exec(t))?Un(e[1],e[2]/100,e[3]/100,1):(e=nc.exec(t))?Un(e[1],e[2]/100,e[3]/100,e[4]):qn.hasOwnProperty(t)?zn(qn[t]):t==="transparent"?new Q(NaN,NaN,NaN,0):null}function zn(t){return new Q(t>>16&255,t>>8&255,t&255,1)}function Ve(t,e,i,r){return r<=0&&(t=e=i=NaN),new Q(t,e,i,r)}function ac(t){return t instanceof Re||(t=Le(t)),t?(t=t.rgb(),new Q(t.r,t.g,t.b,t.opacity)):new Q}function Sr(t,e,i,r){return arguments.length===1?ac(t):new Q(t,e,i,r??1)}function Q(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Wr(Q,Sr,Uo(Re,{brighter(t){return t=t==null?mi:Math.pow(mi,t),new Q(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Be:Math.pow(Be,t),new Q(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Q(Wt(this.r),Wt(this.g),Wt(this.b),_i(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:Wn,formatHex:Wn,formatHex8:lc,formatRgb:Hn,toString:Hn}));function Wn(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}`}function lc(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}${zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Hn(){const t=_i(this.opacity);return`${t===1?"rgb(":"rgba("}${Wt(this.r)}, ${Wt(this.g)}, ${Wt(this.b)}${t===1?")":`, ${t})`}`}function _i(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Wt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function zt(t){return t=Wt(t),(t<16?"0":"")+t.toString(16)}function Un(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new ct(t,e,i,r)}function Yo(t){if(t instanceof ct)return new ct(t.h,t.s,t.l,t.opacity);if(t instanceof Re||(t=Le(t)),!t)return new ct;if(t instanceof ct)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 ct(s,a,l,t.opacity)}function hc(t,e,i,r){return arguments.length===1?Yo(t):new ct(t,e,i,r??1)}function ct(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Wr(ct,hc,Uo(Re,{brighter(t){return t=t==null?mi:Math.pow(mi,t),new ct(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Be:Math.pow(Be,t),new ct(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 Q(hr(t>=240?t-240:t+120,n,r),hr(t,n,r),hr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new ct(Yn(this.h),Ge(this.s),Ge(this.l),_i(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=_i(this.opacity);return`${t===1?"hsl(":"hsla("}${Yn(this.h)}, ${Ge(this.s)*100}%, ${Ge(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Yn(t){return t=(t||0)%360,t<0?t+360:t}function Ge(t){return Math.max(0,Math.min(1,t||0))}function hr(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 Hr=t=>()=>t;function Vo(t,e){return function(i){return t+i*e}}function cc(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 w_(t,e){var i=e-t;return i?Vo(t,i>180||i<-180?i-360*Math.round(i/360):i):Hr(isNaN(t)?e:t)}function uc(t){return(t=+t)==1?Go:function(e,i){return i-e?cc(e,i,t):Hr(isNaN(e)?i:e)}}function Go(t,e){var i=e-t;return i?Vo(t,i):Hr(isNaN(t)?e:t)}const Vn=function t(e){var i=uc(e);function r(n,o){var s=i((n=Sr(n)).r,(o=Sr(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),h=Go(n.opacity,o.opacity);return function(c){return n.r=s(c),n.g=a(c),n.b=l(c),n.opacity=h(c),n+""}}return r.gamma=t,r}(1);function It(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var vr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cr=new RegExp(vr.source,"g");function fc(t){return function(){return t}}function dc(t){return function(e){return t(e)+""}}function pc(t,e){var i=vr.lastIndex=cr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=vr.exec(t))&&(n=cr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:It(r,n)})),i=cr.lastIndex;return i<e.length&&(o=e.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?dc(l[0].x):fc(e):(e=l.length,function(h){for(var c=0,f;c<e;++c)a[(f=l[c]).i]=f.x(h);return a.join("")})}var Gn=180/Math.PI,wr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jo(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)*Gn,skewX:Math.atan(l)*Gn,scaleX:s,scaleY:a}}var je;function gc(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?wr:jo(e.a,e.b,e.c,e.d,e.e,e.f)}function mc(t){return t==null||(je||(je=document.createElementNS("http://www.w3.org/2000/svg","g")),je.setAttribute("transform",t),!(t=je.transform.baseVal.consolidate()))?wr:(t=t.matrix,jo(t.a,t.b,t.c,t.d,t.e,t.f))}function Xo(t,e,i,r){function n(h){return h.length?h.pop()+" ":""}function o(h,c,f,g,p,_){if(h!==f||c!==g){var T=p.push("translate(",null,e,null,i);_.push({i:T-4,x:It(h,f)},{i:T-2,x:It(c,g)})}else(f||g)&&p.push("translate("+f+e+g+i)}function s(h,c,f,g){h!==c?(h-c>180?c+=360:c-h>180&&(h+=360),g.push({i:f.push(n(f)+"rotate(",null,r)-2,x:It(h,c)})):c&&f.push(n(f)+"rotate("+c+r)}function a(h,c,f,g){h!==c?g.push({i:f.push(n(f)+"skewX(",null,r)-2,x:It(h,c)}):c&&f.push(n(f)+"skewX("+c+r)}function l(h,c,f,g,p,_){if(h!==f||c!==g){var T=p.push(n(p)+"scale(",null,",",null,")");_.push({i:T-4,x:It(h,f)},{i:T-2,x:It(c,g)})}else(f!==1||g!==1)&&p.push(n(p)+"scale("+f+","+g+")")}return function(h,c){var f=[],g=[];return h=t(h),c=t(c),o(h.translateX,h.translateY,c.translateX,c.translateY,f,g),s(h.rotate,c.rotate,f,g),a(h.skewX,c.skewX,f,g),l(h.scaleX,h.scaleY,c.scaleX,c.scaleY,f,g),h=c=null,function(p){for(var _=-1,T=g.length,F;++_<T;)f[(F=g[_]).i]=F.x(p);return f.join("")}}}var _c=Xo(gc,"px, ","px)","deg)"),yc=Xo(mc,", ",")",")"),oe=0,xe=0,ye=0,Ko=1e3,yi,Te,Ci=0,Yt=0,Ni=0,Ee=typeof performance=="object"&&performance.now?performance:Date,Zo=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ur(){return Yt||(Zo(Cc),Yt=Ee.now()+Ni)}function Cc(){Yt=0}function bi(){this._call=this._time=this._next=null}bi.prototype=Jo.prototype={constructor:bi,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?Ur():+i)+(e==null?0:+e),!this._next&&Te!==this&&(Te?Te._next=this:yi=this,Te=this),this._call=t,this._time=i,Br()},stop:function(){this._call&&(this._call=null,this._time=1/0,Br())}};function Jo(t,e,i){var r=new bi;return r.restart(t,e,i),r}function bc(){Ur(),++oe;for(var t=yi,e;t;)(e=Yt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--oe}function jn(){Yt=(Ci=Ee.now())+Ni,oe=xe=0;try{bc()}finally{oe=0,Tc(),Yt=0}}function xc(){var t=Ee.now(),e=t-Ci;e>Ko&&(Ni-=e,Ci=t)}function Tc(){for(var t,e=yi,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:yi=i);Te=t,Br(r)}function Br(t){if(!oe){xe&&(xe=clearTimeout(xe));var e=t-Yt;e>24?(t<1/0&&(xe=setTimeout(jn,t-Ee.now()-Ni)),ye&&(ye=clearInterval(ye))):(ye||(Ci=Ee.now(),ye=setInterval(xc,Ko)),oe=1,Zo(jn))}}function Xn(t,e,i){var r=new bi;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var kc=Ao("start","end","cancel","interrupt"),Sc=[],Qo=0,Kn=1,Fr=2,ri=3,Zn=4,Lr=5,ni=6;function Di(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;vc(t,i,{name:e,index:r,group:n,on:kc,tween:Sc,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Qo})}function Yr(t,e){var i=pt(t,e);if(i.state>Qo)throw new Error("too late; already scheduled");return i}function bt(t,e){var i=pt(t,e);if(i.state>ri)throw new Error("too late; already running");return i}function pt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function vc(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=Jo(o,0,i.time);function o(h){i.state=Kn,i.timer.restart(s,i.delay,i.time),i.delay<=h&&s(h-i.delay)}function s(h){var c,f,g,p;if(i.state!==Kn)return l();for(c in r)if(p=r[c],p.name===i.name){if(p.state===ri)return Xn(s);p.state===Zn?(p.state=ni,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[c]):+c<e&&(p.state=ni,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[c])}if(Xn(function(){i.state===ri&&(i.state=Zn,i.timer.restart(a,i.delay,i.time),a(h))}),i.state=Fr,i.on.call("start",t,t.__data__,i.index,i.group),i.state===Fr){for(i.state=ri,n=new Array(g=i.tween.length),c=0,f=-1;c<g;++c)(p=i.tween[c].value.call(t,t.__data__,i.index,i.group))&&(n[++f]=p);n.length=f+1}}function a(h){for(var c=h<i.duration?i.ease.call(null,h/i.duration):(i.timer.restart(l),i.state=Lr,1),f=-1,g=n.length;++f<g;)n[f].call(t,c);i.state===Lr&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=ni,i.timer.stop(),delete r[e];for(var h in r)return;delete t.__transition}}function wc(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>Fr&&r.state<Lr,r.state=ni,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[s]}o&&delete t.__transition}}function Bc(t){return this.each(function(){wc(this,t)})}function Fc(t,e){var i,r;return function(){var n=bt(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 Lc(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var o=bt(this,t),s=o.tween;if(s!==r){n=(r=s).slice();for(var a={name:e,value:i},l=0,h=n.length;l<h;++l)if(n[l].name===e){n[l]=a;break}l===h&&n.push(a)}o.tween=n}}function Ec(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=pt(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?Fc:Lc)(i,t,e))}function Vr(t,e,i){var r=t._id;return t.each(function(){var n=bt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return pt(n,r).value[e]}}function ts(t,e){var i;return(typeof e=="number"?It:e instanceof Le?Vn:(i=Le(e))?(e=i,Vn):pc)(t,e)}function Ac(t){return function(){this.removeAttribute(t)}}function Ic(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Oc(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 Mc(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 Nc(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 Dc(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 Rc(t,e){var i=Mi(t),r=i==="transform"?yc:ts;return this.attrTween(t,typeof e=="function"?(i.local?Dc:Nc)(i,r,Vr(this,"attr."+t,e)):e==null?(i.local?Ic:Ac)(i):(i.local?Mc:Oc)(i,r,e))}function qc(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function $c(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Pc(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&$c(t,o)),i}return n._value=e,n}function zc(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&qc(t,o)),i}return n._value=e,n}function Wc(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=Mi(t);return this.tween(i,(r.local?Pc:zc)(r,e))}function Hc(t,e){return function(){Yr(this,t).delay=+e.apply(this,arguments)}}function Uc(t,e){return e=+e,function(){Yr(this,t).delay=e}}function Yc(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Hc:Uc)(e,t)):pt(this.node(),e).delay}function Vc(t,e){return function(){bt(this,t).duration=+e.apply(this,arguments)}}function Gc(t,e){return e=+e,function(){bt(this,t).duration=e}}function jc(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Vc:Gc)(e,t)):pt(this.node(),e).duration}function Xc(t,e){if(typeof e!="function")throw new Error;return function(){bt(this,t).ease=e}}function Kc(t){var e=this._id;return arguments.length?this.each(Xc(e,t)):pt(this.node(),e).ease}function Zc(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;bt(this,t).ease=i}}function Jc(t){if(typeof t!="function")throw new Error;return this.each(Zc(this._id,t))}function Qc(t){typeof t!="function"&&(t=Mo(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,h=0;h<s;++h)(l=o[h])&&t.call(l,l.__data__,h,o)&&a.push(l);return new Lt(r,this._parents,this._name,this._id)}function tu(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],h=i[a],c=l.length,f=s[a]=new Array(c),g,p=0;p<c;++p)(g=l[p]||h[p])&&(f[p]=g);for(;a<r;++a)s[a]=e[a];return new Lt(s,this._parents,this._name,this._id)}function eu(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 iu(t,e,i){var r,n,o=eu(e)?Yr:bt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function ru(t,e){var i=this._id;return arguments.length<2?pt(this.node(),i).on.on(t):this.each(iu(i,t,e))}function nu(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function ou(){return this.on("end.remove",nu(this._id))}function su(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Pr(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,h=o[s]=new Array(l),c,f,g=0;g<l;++g)(c=a[g])&&(f=t.call(c,c.__data__,g,a))&&("__data__"in c&&(f.__data__=c.__data__),h[g]=f,Di(h[g],e,i,g,h,pt(c,i)));return new Lt(o,this._parents,e,i)}function au(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Oo(t));for(var r=this._groups,n=r.length,o=[],s=[],a=0;a<n;++a)for(var l=r[a],h=l.length,c,f=0;f<h;++f)if(c=l[f]){for(var g=t.call(c,c.__data__,f,l),p,_=pt(c,i),T=0,F=g.length;T<F;++T)(p=g[T])&&Di(p,e,i,T,g,_);o.push(g),s.push(c)}return new Lt(o,s,e,i)}var lu=De.prototype.constructor;function hu(){return new lu(this._groups,this._parents)}function cu(t,e){var i,r,n;return function(){var o=ne(this,t),s=(this.style.removeProperty(t),ne(this,t));return o===s?null:o===i&&s===r?n:n=e(i=o,r=s)}}function es(t){return function(){this.style.removeProperty(t)}}function uu(t,e,i){var r,n=i+"",o;return function(){var s=ne(this,t);return s===n?null:s===r?o:o=e(r=s,i)}}function fu(t,e,i){var r,n,o;return function(){var s=ne(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),ne(this,t))),s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a))}}function du(t,e){var i,r,n,o="style."+e,s="end."+o,a;return function(){var l=bt(this,t),h=l.on,c=l.value[o]==null?a||(a=es(e)):void 0;(h!==i||n!==c)&&(r=(i=h).copy()).on(s,n=c),l.on=r}}function pu(t,e,i){var r=(t+="")=="transform"?_c:ts;return e==null?this.styleTween(t,cu(t,r)).on("end.style."+t,es(t)):typeof e=="function"?this.styleTween(t,fu(t,r,Vr(this,"style."+t,e))).each(du(this._id,t)):this.styleTween(t,uu(t,r,e),i).on("end.style."+t,null)}function gu(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function mu(t,e,i){var r,n;function o(){var s=e.apply(this,arguments);return s!==n&&(r=(n=s)&&gu(t,s,i)),r}return o._value=e,o}function _u(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,mu(t,e,i??""))}function yu(t){return function(){this.textContent=t}}function Cu(t){return function(){var e=t(this);this.textContent=e??""}}function bu(t){return this.tween("text",typeof t=="function"?Cu(Vr(this,"text",t)):yu(t==null?"":t+""))}function xu(t){return function(e){this.textContent=t.call(this,e)}}function Tu(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&xu(n)),e}return r._value=t,r}function ku(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,Tu(t))}function Su(){for(var t=this._name,e=this._id,i=is(),r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,h=0;h<a;++h)if(l=s[h]){var c=pt(l,e);Di(l,t,i,h,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Lt(r,this._parents,t,i)}function vu(){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 h=bt(this,r),c=h.on;c!==t&&(e=(t=c).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),h.on=e}),n===0&&o()})}var wu=0;function Lt(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function is(){return++wu}var St=De.prototype;Lt.prototype={constructor:Lt,select:su,selectAll:au,selectChild:St.selectChild,selectChildren:St.selectChildren,filter:Qc,merge:tu,selection:hu,transition:Su,call:St.call,nodes:St.nodes,node:St.node,size:St.size,empty:St.empty,each:St.each,on:ru,attr:Rc,attrTween:Wc,style:pu,styleTween:_u,text:bu,textTween:ku,remove:ou,tween:Ec,delay:Yc,duration:jc,ease:Kc,easeVarying:Jc,end:vu,[Symbol.iterator]:St[Symbol.iterator]};function Bu(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Fu={time:null,delay:0,duration:250,ease:Bu};function Lu(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 Eu(t){var e,i;t instanceof Lt?(e=t._id,t=t._name):(e=is(),(i=Fu).time=Ur(),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,h=0;h<a;++h)(l=s[h])&&Di(l,t,e,h,s,i||Lu(l,e));return new Lt(r,this._parents,t,e)}De.prototype.interrupt=Bc;De.prototype.transition=Eu;const B_=Math.abs,F_=Math.atan2,L_=Math.cos,E_=Math.max,A_=Math.min,I_=Math.sin,O_=Math.sqrt,Jn=1e-12,Gr=Math.PI,Qn=Gr/2,M_=2*Gr;function N_(t){return t>1?0:t<-1?Gr:Math.acos(t)}function D_(t){return t>=1?Qn:t<=-1?-Qn:Math.asin(t)}function rs(t){this._context=t}rs.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 Au(t){return new rs(t)}class ns{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 Iu(t){return new ns(t,!0)}function Ou(t){return new ns(t,!1)}function Nt(){}function xi(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 Ri(t){this._context=t}Ri.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:xi(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:xi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Mu(t){return new Ri(t)}function os(t){this._context=t}os.prototype={areaStart:Nt,areaEnd:Nt,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:xi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Nu(t){return new os(t)}function ss(t){this._context=t}ss.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:xi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Du(t){return new ss(t)}function as(t,e){this._basis=new Ri(t),this._beta=e}as.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 Ru=function t(e){function i(r){return e===1?new Ri(r):new as(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function Ti(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 jr(t,e){this._context=t,this._k=(1-e)/6}jr.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:Ti(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:Ti(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 qu=function t(e){function i(r){return new jr(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Xr(t,e){this._context=t,this._k=(1-e)/6}Xr.prototype={areaStart:Nt,areaEnd:Nt,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:Ti(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 $u=function t(e){function i(r){return new Xr(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Kr(t,e){this._context=t,this._k=(1-e)/6}Kr.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:Ti(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 Pu=function t(e){function i(r){return new Kr(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Zr(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Jn){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>Jn){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*h+t._x1*t._l23_2a-e*t._l12_2a)/c,s=(s*h+t._y1*t._l23_2a-i*t._l12_2a)/c}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function ls(t,e){this._context=t,this._alpha=e}ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Zr(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 zu=function t(e){function i(r){return e?new ls(r,e):new jr(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function hs(t,e){this._context=t,this._alpha=e}hs.prototype={areaStart:Nt,areaEnd:Nt,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:Zr(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 Wu=function t(e){function i(r){return e?new hs(r,e):new Xr(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function cs(t,e){this._context=t,this._alpha=e}cs.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:Zr(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 Hu=function t(e){function i(r){return e?new cs(r,e):new Kr(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function us(t){this._context=t}us.prototype={areaStart:Nt,areaEnd:Nt,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 Uu(t){return new us(t)}function to(t){return t<0?-1:1}function eo(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(to(o)+to(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function io(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function ur(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 ki(t){this._context=t}ki.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:ur(this,this._t0,io(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,ur(this,io(this,i=eo(this,t,e)),i);break;default:ur(this,this._t0,i=eo(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function fs(t){this._context=new ds(t)}(fs.prototype=Object.create(ki.prototype)).point=function(t,e){ki.prototype.point.call(this,e,t)};function ds(t){this._context=t}ds.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 Yu(t){return new ki(t)}function Vu(t){return new fs(t)}function ps(t){this._context=t}ps.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=ro(t),n=ro(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 ro(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 Gu(t){return new ps(t)}function qi(t,e){this._context=t,this._t=e}qi.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 ju(t){return new qi(t,.5)}function Xu(t){return new qi(t,0)}function Ku(t){return new qi(t,1)}function ke(t,e,i){this.k=t,this.x=e,this.y=i}ke.prototype={constructor:ke,scale:function(t){return t===1?this:new ke(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ke(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+")"}};ke.prototype;/*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */const{entries:gs,setPrototypeOf:no,isFrozen:Zu,getPrototypeOf:Ju,getOwnPropertyDescriptor:Qu}=Object;let{freeze:Z,seal:ft,create:tf}=Object,{apply:Er,construct:Ar}=typeof Reflect<"u"&&Reflect;Er||(Er=function(e,i,r){return e.apply(i,r)});Z||(Z=function(e){return e});ft||(ft=function(e){return e});Ar||(Ar=function(e,i){return new e(...i)});const ef=at(Array.prototype.forEach),oo=at(Array.prototype.pop),Ce=at(Array.prototype.push),oi=at(String.prototype.toLowerCase),fr=at(String.prototype.toString),rf=at(String.prototype.match),ht=at(String.prototype.replace),nf=at(String.prototype.indexOf),of=at(String.prototype.trim),rt=at(RegExp.prototype.test),be=sf(TypeError);function at(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return Er(t,e,r)}}function sf(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Ar(t,i)}}function L(t,e,i){var r;i=(r=i)!==null&&r!==void 0?r:oi,no&&no(t,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const s=i(o);s!==o&&(Zu(e)||(e[n]=s),o=s)}t[o]=!0}return t}function Qt(t){const e=tf(null);for(const[i,r]of gs(t))e[i]=r;return e}function Xe(t,e){for(;t!==null;){const r=Qu(t,e);if(r){if(r.get)return at(r.get);if(typeof r.value=="function")return at(r.value)}t=Ju(t)}function i(r){return console.warn("fallback value for",r),null}return i}const so=Z(["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=Z(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pr=Z(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),af=Z(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gr=Z(["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","mprescripts"]),lf=Z(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ao=Z(["#text"]),lo=Z(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),mr=Z(["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"]),ho=Z(["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"]),Ke=Z(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hf=ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm),cf=ft(/<%[\w\W]*|[\w\W]*%>/gm),uf=ft(/\${[\w\W]*}/gm),ff=ft(/^data-[\-\w.\u00B7-\uFFFF]/),df=ft(/^aria-[\-\w]+$/),ms=ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pf=ft(/^(?:\w+script|data):/i),gf=ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_s=ft(/^html$/i);var co=Object.freeze({__proto__:null,MUSTACHE_EXPR:hf,ERB_EXPR:cf,TMPLIT_EXPR:uf,DATA_ATTR:ff,ARIA_ATTR:df,IS_ALLOWED_URI:ms,IS_SCRIPT_OR_DATA:pf,ATTR_WHITESPACE:gf,DOCTYPE_NAME:_s});const mf=()=>typeof window>"u"?null:window,_f=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function ys(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mf();const e=k=>ys(k);if(e.version="3.0.3",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;const i=t.document,r=i.currentScript;let{document:n}=t;const{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:h,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:g,trustedTypes:p}=t,_=l.prototype,T=Xe(_,"cloneNode"),F=Xe(_,"nextSibling"),A=Xe(_,"childNodes"),C=Xe(_,"parentNode");if(typeof s=="function"){const k=n.createElement("template");k.content&&k.content.ownerDocument&&(n=k.content.ownerDocument)}let E,D="";const{implementation:P,createNodeIterator:j,createDocumentFragment:I,getElementsByTagName:Xi}=n,{importNode:Ki}=i;let et={};e.isSupported=typeof gs=="function"&&typeof C=="function"&&P&&P.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:fe,ERB_EXPR:de,TMPLIT_EXPR:pe,DATA_ATTR:xt,ARIA_ATTR:pn,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:it}=co;let{IS_ALLOWED_URI:$e}=co,R=null;const gn=L({},[...so,...dr,...pr,...gr,...ao]);let W=null;const mn=L({},[...lo,...mr,...ho,...Ke]);let N=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),me=null,Zi=null,_n=!0,Ji=!0,yn=!1,Cn=!0,Gt=!1,Rt=!1,Qi=!1,tr=!1,jt=!1,Pe=!1,ze=!1,bn=!0,xn=!1;const $a="user-content-";let er=!0,_e=!1,Xt={},Kt=null;const Tn=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let kn=null;const Sn=L({},["audio","video","img","source","image","track"]);let ir=null;const vn=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let Zt=Tt,rr=!1,nr=null;const Pa=L({},[We,He,Tt],fr);let qt;const za=["application/xhtml+xml","text/html"],Wa="text/html";let H,Jt=null;const Ha=n.createElement("form"),wn=function(u){return u instanceof RegExp||u instanceof Function},or=function(u){if(!(Jt&&Jt===u)){if((!u||typeof u!="object")&&(u={}),u=Qt(u),qt=za.indexOf(u.PARSER_MEDIA_TYPE)===-1?qt=Wa:qt=u.PARSER_MEDIA_TYPE,H=qt==="application/xhtml+xml"?fr:oi,R="ALLOWED_TAGS"in u?L({},u.ALLOWED_TAGS,H):gn,W="ALLOWED_ATTR"in u?L({},u.ALLOWED_ATTR,H):mn,nr="ALLOWED_NAMESPACES"in u?L({},u.ALLOWED_NAMESPACES,fr):Pa,ir="ADD_URI_SAFE_ATTR"in u?L(Qt(vn),u.ADD_URI_SAFE_ATTR,H):vn,kn="ADD_DATA_URI_TAGS"in u?L(Qt(Sn),u.ADD_DATA_URI_TAGS,H):Sn,Kt="FORBID_CONTENTS"in u?L({},u.FORBID_CONTENTS,H):Tn,me="FORBID_TAGS"in u?L({},u.FORBID_TAGS,H):{},Zi="FORBID_ATTR"in u?L({},u.FORBID_ATTR,H):{},Xt="USE_PROFILES"in u?u.USE_PROFILES:!1,_n=u.ALLOW_ARIA_ATTR!==!1,Ji=u.ALLOW_DATA_ATTR!==!1,yn=u.ALLOW_UNKNOWN_PROTOCOLS||!1,Cn=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Gt=u.SAFE_FOR_TEMPLATES||!1,Rt=u.WHOLE_DOCUMENT||!1,jt=u.RETURN_DOM||!1,Pe=u.RETURN_DOM_FRAGMENT||!1,ze=u.RETURN_TRUSTED_TYPE||!1,tr=u.FORCE_BODY||!1,bn=u.SANITIZE_DOM!==!1,xn=u.SANITIZE_NAMED_PROPS||!1,er=u.KEEP_CONTENT!==!1,_e=u.IN_PLACE||!1,$e=u.ALLOWED_URI_REGEXP||ms,Zt=u.NAMESPACE||Tt,N=u.CUSTOM_ELEMENT_HANDLING||{},u.CUSTOM_ELEMENT_HANDLING&&wn(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(N.tagNameCheck=u.CUSTOM_ELEMENT_HANDLING.tagNameCheck),u.CUSTOM_ELEMENT_HANDLING&&wn(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(N.attributeNameCheck=u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),u.CUSTOM_ELEMENT_HANDLING&&typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(N.allowCustomizedBuiltInElements=u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Gt&&(Ji=!1),Pe&&(jt=!0),Xt&&(R=L({},[...ao]),W=[],Xt.html===!0&&(L(R,so),L(W,lo)),Xt.svg===!0&&(L(R,dr),L(W,mr),L(W,Ke)),Xt.svgFilters===!0&&(L(R,pr),L(W,mr),L(W,Ke)),Xt.mathMl===!0&&(L(R,gr),L(W,ho),L(W,Ke))),u.ADD_TAGS&&(R===gn&&(R=Qt(R)),L(R,u.ADD_TAGS,H)),u.ADD_ATTR&&(W===mn&&(W=Qt(W)),L(W,u.ADD_ATTR,H)),u.ADD_URI_SAFE_ATTR&&L(ir,u.ADD_URI_SAFE_ATTR,H),u.FORBID_CONTENTS&&(Kt===Tn&&(Kt=Qt(Kt)),L(Kt,u.FORBID_CONTENTS,H)),er&&(R["#text"]=!0),Rt&&L(R,["html","head","body"]),R.table&&(L(R,["tbody"]),delete me.tbody),u.TRUSTED_TYPES_POLICY){if(typeof u.TRUSTED_TYPES_POLICY.createHTML!="function")throw be('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof u.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw be('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=u.TRUSTED_TYPES_POLICY,D=E.createHTML("")}else E===void 0&&(E=_f(p,r)),E!==null&&typeof D=="string"&&(D=E.createHTML(""));Z&&Z(u),Jt=u}},Bn=L({},["mi","mo","mn","ms","mtext"]),Fn=L({},["foreignobject","desc","title","annotation-xml"]),Ua=L({},["title","style","font","a","script"]),Ue=L({},dr);L(Ue,pr),L(Ue,af);const sr=L({},gr);L(sr,lf);const Ya=function(u){let m=C(u);(!m||!m.tagName)&&(m={namespaceURI:Zt,tagName:"template"});const b=oi(u.tagName),O=oi(m.tagName);return nr[u.namespaceURI]?u.namespaceURI===He?m.namespaceURI===Tt?b==="svg":m.namespaceURI===We?b==="svg"&&(O==="annotation-xml"||Bn[O]):!!Ue[b]:u.namespaceURI===We?m.namespaceURI===Tt?b==="math":m.namespaceURI===He?b==="math"&&Fn[O]:!!sr[b]:u.namespaceURI===Tt?m.namespaceURI===He&&!Fn[O]||m.namespaceURI===We&&!Bn[O]?!1:!sr[b]&&(Ua[b]||!Ue[b]):!!(qt==="application/xhtml+xml"&&nr[u.namespaceURI]):!1},$t=function(u){Ce(e.removed,{element:u});try{u.parentNode.removeChild(u)}catch{u.remove()}},ar=function(u,m){try{Ce(e.removed,{attribute:m.getAttributeNode(u),from:m})}catch{Ce(e.removed,{attribute:null,from:m})}if(m.removeAttribute(u),u==="is"&&!W[u])if(jt||Pe)try{$t(m)}catch{}else try{m.setAttribute(u,"")}catch{}},Ln=function(u){let m,b;if(tr)u="<remove></remove>"+u;else{const ot=rf(u,/^[\r\n\t ]+/);b=ot&&ot[0]}qt==="application/xhtml+xml"&&Zt===Tt&&(u='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+u+"</body></html>");const O=E?E.createHTML(u):u;if(Zt===Tt)try{m=new g().parseFromString(O,qt)}catch{}if(!m||!m.documentElement){m=P.createDocument(Zt,"template",null);try{m.documentElement.innerHTML=rr?D:O}catch{}}const U=m.body||m.documentElement;return u&&b&&U.insertBefore(n.createTextNode(b),U.childNodes[0]||null),Zt===Tt?Xi.call(m,Rt?"html":"body")[0]:Rt?m.documentElement:U},En=function(u){return j.call(u.ownerDocument||u,u,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},Va=function(u){return u instanceof f&&(typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||!(u.attributes instanceof c)||typeof u.removeAttribute!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function")},Ye=function(u){return typeof a=="object"?u instanceof a:u&&typeof u=="object"&&typeof u.nodeType=="number"&&typeof u.nodeName=="string"},kt=function(u,m,b){et[u]&&ef(et[u],O=>{O.call(e,m,b,Jt)})},An=function(u){let m;if(kt("beforeSanitizeElements",u,null),Va(u))return $t(u),!0;const b=H(u.nodeName);if(kt("uponSanitizeElement",u,{tagName:b,allowedTags:R}),u.hasChildNodes()&&!Ye(u.firstElementChild)&&(!Ye(u.content)||!Ye(u.content.firstElementChild))&&rt(/<[/\w]/g,u.innerHTML)&&rt(/<[/\w]/g,u.textContent))return $t(u),!0;if(!R[b]||me[b]){if(!me[b]&&On(b)&&(N.tagNameCheck instanceof RegExp&&rt(N.tagNameCheck,b)||N.tagNameCheck instanceof Function&&N.tagNameCheck(b)))return!1;if(er&&!Kt[b]){const O=C(u)||u.parentNode,U=A(u)||u.childNodes;if(U&&O){const ot=U.length;for(let M=ot-1;M>=0;--M)O.insertBefore(T(U[M],!0),F(u))}}return $t(u),!0}return u instanceof l&&!Ya(u)||(b==="noscript"||b==="noembed")&&rt(/<\/no(script|embed)/i,u.innerHTML)?($t(u),!0):(Gt&&u.nodeType===3&&(m=u.textContent,m=ht(m,fe," "),m=ht(m,de," "),m=ht(m,pe," "),u.textContent!==m&&(Ce(e.removed,{element:u.cloneNode()}),u.textContent=m)),kt("afterSanitizeElements",u,null),!1)},In=function(u,m,b){if(bn&&(m==="id"||m==="name")&&(b in n||b in Ha))return!1;if(!(Ji&&!Zi[m]&&rt(xt,m))){if(!(_n&&rt(pn,m))){if(!W[m]||Zi[m]){if(!(On(u)&&(N.tagNameCheck instanceof RegExp&&rt(N.tagNameCheck,u)||N.tagNameCheck instanceof Function&&N.tagNameCheck(u))&&(N.attributeNameCheck instanceof RegExp&&rt(N.attributeNameCheck,m)||N.attributeNameCheck instanceof Function&&N.attributeNameCheck(m))||m==="is"&&N.allowCustomizedBuiltInElements&&(N.tagNameCheck instanceof RegExp&&rt(N.tagNameCheck,b)||N.tagNameCheck instanceof Function&&N.tagNameCheck(b))))return!1}else if(!ir[m]){if(!rt($e,ht(b,it,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&u!=="script"&&nf(b,"data:")===0&&kn[u])){if(!(yn&&!rt(ge,ht(b,it,"")))){if(b)return!1}}}}}}return!0},On=function(u){return u.indexOf("-")>0},Mn=function(u){let m,b,O,U;kt("beforeSanitizeAttributes",u,null);const{attributes:ot}=u;if(!ot)return;const M={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W};for(U=ot.length;U--;){m=ot[U];const{name:gt,namespaceURI:lr}=m;if(b=gt==="value"?m.value:of(m.value),O=H(gt),M.attrName=O,M.attrValue=b,M.keepAttr=!0,M.forceKeepAttr=void 0,kt("uponSanitizeAttribute",u,M),b=M.attrValue,M.forceKeepAttr||(ar(gt,u),!M.keepAttr))continue;if(!Cn&&rt(/\/>/i,b)){ar(gt,u);continue}Gt&&(b=ht(b,fe," "),b=ht(b,de," "),b=ht(b,pe," "));const Nn=H(u.nodeName);if(In(Nn,O,b)){if(xn&&(O==="id"||O==="name")&&(ar(gt,u),b=$a+b),E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!lr)switch(p.getAttributeType(Nn,O)){case"TrustedHTML":{b=E.createHTML(b);break}case"TrustedScriptURL":{b=E.createScriptURL(b);break}}try{lr?u.setAttributeNS(lr,gt,b):u.setAttribute(gt,b),oo(e.removed)}catch{}}}kt("afterSanitizeAttributes",u,null)},Ga=function k(u){let m;const b=En(u);for(kt("beforeSanitizeShadowDOM",u,null);m=b.nextNode();)kt("uponSanitizeShadowNode",m,null),!An(m)&&(m.content instanceof o&&k(m.content),Mn(m));kt("afterSanitizeShadowDOM",u,null)};return e.sanitize=function(k){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m,b,O,U;if(rr=!k,rr&&(k="<!-->"),typeof k!="string"&&!Ye(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw be("dirty is not a string, aborting")}else throw be("toString is not a function");if(!e.isSupported)return k;if(Qi||or(u),e.removed=[],typeof k=="string"&&(_e=!1),_e){if(k.nodeName){const gt=H(k.nodeName);if(!R[gt]||me[gt])throw be("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof a)m=Ln("<!---->"),b=m.ownerDocument.importNode(k,!0),b.nodeType===1&&b.nodeName==="BODY"||b.nodeName==="HTML"?m=b:m.appendChild(b);else{if(!jt&&!Gt&&!Rt&&k.indexOf("<")===-1)return E&&ze?E.createHTML(k):k;if(m=Ln(k),!m)return jt?null:ze?D:""}m&&tr&&$t(m.firstChild);const ot=En(_e?k:m);for(;O=ot.nextNode();)An(O)||(O.content instanceof o&&Ga(O.content),Mn(O));if(_e)return k;if(jt){if(Pe)for(U=I.call(m.ownerDocument);m.firstChild;)U.appendChild(m.firstChild);else U=m;return(W.shadowroot||W.shadowrootmod)&&(U=Ki.call(i,U,!0)),U}let M=Rt?m.outerHTML:m.innerHTML;return Rt&&R["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&rt(_s,m.ownerDocument.doctype.name)&&(M="<!DOCTYPE "+m.ownerDocument.doctype.name+`>
`+M),Gt&&(M=ht(M,fe," "),M=ht(M,de," "),M=ht(M,pe," ")),E&&ze?E.createHTML(M):M},e.setConfig=function(k){or(k),Qi=!0},e.clearConfig=function(){Jt=null,Qi=!1},e.isValidAttribute=function(k,u,m){Jt||or({});const b=H(k),O=H(u);return In(b,O,m)},e.addHook=function(k,u){typeof u=="function"&&(et[k]=et[k]||[],Ce(et[k],u))},e.removeHook=function(k){if(et[k])return oo(et[k])},e.removeHooks=function(k){et[k]&&(et[k]=[])},e.removeAllHooks=function(){et={}},e}var Si=ys();const si={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 si.hue2rgb(o,n,t+1/3)*255;case"g":return si.hue2rgb(o,n,t)*255;case"b":return si.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}}},yf=si,Cf={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},bf=Cf,xf={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Tf=xf,kf={channel:yf,lang:bf,unit:Tf},B=kf,At={};for(let t=0;t<=255;t++)At[t]=B.unit.dec2hex(t);const Y={ALL:0,RGB:1,HSL:2};class Sf{constructor(){this.type=Y.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Y.ALL}is(e){return this.type===e}}const vf=Sf;class wf{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new vf}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=Y.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=B.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=B.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=B.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=B.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=B.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=B.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(Y.HSL)&&i!==void 0?i:(this._ensureHSL(),B.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(Y.HSL)&&i!==void 0?i:(this._ensureHSL(),B.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(Y.HSL)&&i!==void 0?i:(this._ensureHSL(),B.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(Y.RGB)&&i!==void 0?i:(this._ensureRGB(),B.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(Y.RGB)&&i!==void 0?i:(this._ensureRGB(),B.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(Y.RGB)&&i!==void 0?i:(this._ensureRGB(),B.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Y.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Y.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Y.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Y.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Y.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Y.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Bf=wf,Ff=new Bf({r:0,g:0,b:0,a:0},"transparent"),$i=Ff,Cs={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Cs.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,h=o?0:-1,c=s?255:15;return $i.set({r:(r>>l*(h+3)&c)*a,g:(r>>l*(h+2)&c)*a,b:(r>>l*(h+1)&c)*a,a:o?(r&c)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${At[Math.round(e)]}${At[Math.round(i)]}${At[Math.round(r)]}${At[Math.round(n*255)]}`:`#${At[Math.round(e)]}${At[Math.round(i)]}${At[Math.round(r)]}`}},Se=Cs,ai={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(ai.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return B.channel.clamp.h(parseFloat(i)*.9);case"rad":return B.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return B.channel.clamp.h(parseFloat(i)*360)}}return B.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(ai.re);if(!i)return;const[,r,n,o,s,a]=i;return $i.set({h:ai._hue2deg(r),s:B.channel.clamp.s(parseFloat(n)),l:B.channel.clamp.l(parseFloat(o)),a:s?B.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(${B.lang.round(e)}, ${B.lang.round(i)}%, ${B.lang.round(r)}%, ${n})`:`hsl(${B.lang.round(e)}, ${B.lang.round(i)}%, ${B.lang.round(r)}%)`}},Ze=ai,li={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=li.colors[t];if(e)return Se.parse(e)},stringify:t=>{const e=Se.stringify(t);for(const i in li.colors)if(li.colors[i]===e)return i}},uo=li,bs={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(bs.re);if(!i)return;const[,r,n,o,s,a,l,h,c]=i;return $i.set({r:B.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:B.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:B.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:h?B.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${B.lang.round(e)}, ${B.lang.round(i)}, ${B.lang.round(r)}, ${B.lang.round(n)})`:`rgb(${B.lang.round(e)}, ${B.lang.round(i)}, ${B.lang.round(r)})`}},Je=bs,Lf={format:{keyword:uo,hex:Se,rgb:Je,rgba:Je,hsl:Ze,hsla:Ze},parse:t=>{if(typeof t!="string")return t;const e=Se.parse(t)||Je.parse(t)||Ze.parse(t)||uo.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Y.HSL)||t.data.r===void 0?Ze.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Je.stringify(t):Se.stringify(t)},Ct=Lf,Ef=(t,e)=>{const i=Ct.parse(t);for(const r in e)i[r]=B.channel.clamp[r](e[r]);return Ct.stringify(i)},xs=Ef,Af=(t,e,i=0,r=1)=>{if(typeof t!="number")return xs(t,{a:e});const n=$i.set({r:B.channel.clamp.r(t),g:B.channel.clamp.g(e),b:B.channel.clamp.b(i),a:B.channel.clamp.a(r)});return Ct.stringify(n)},ve=Af,If=t=>{const{r:e,g:i,b:r}=Ct.parse(t),n=.2126*B.channel.toLinear(e)+.7152*B.channel.toLinear(i)+.0722*B.channel.toLinear(r);return B.lang.round(n)},Of=If,Mf=t=>Of(t)>=.5,Nf=Mf,Df=t=>!Nf(t),qe=Df,Rf=(t,e,i)=>{const r=Ct.parse(t),n=r[e],o=B.channel.clamp[e](n+i);return n!==o&&(r[e]=o),Ct.stringify(r)},Ts=Rf,qf=(t,e)=>Ts(t,"l",e),S=qf,$f=(t,e)=>Ts(t,"l",-e),w=$f,Pf=(t,e)=>{const i=Ct.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return xs(t,r)},d=Pf,zf=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=Ct.parse(t),{r:a,g:l,b:h,a:c}=Ct.parse(e),f=i/100,g=f*2-1,p=s-c,T=((g*p===-1?g:(g+p)/(1+g*p))+1)/2,F=1-T,A=r*T+a*F,C=n*T+l*F,E=o*T+h*F,D=s*f+c*(1-f);return ve(A,C,E,D)},Wf=zf,Hf=(t,e=100)=>{const i=Ct.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Wf(i,t,e)},y=Hf;var ks="comm",Ss="rule",vs="decl",Uf="@import",Yf="@keyframes",Vf="@layer",Gf=Math.abs,Jr=String.fromCharCode;function ws(t){return t.trim()}function hi(t,e,i){return t.replace(e,i)}function jf(t,e){return t.indexOf(e)}function Ae(t,e){return t.charCodeAt(e)|0}function Ie(t,e,i){return t.slice(e,i)}function wt(t){return t.length}function Xf(t){return t.length}function Qe(t,e){return e.push(t),t}var Pi=1,se=1,Bs=0,lt=0,q=0,ue="";function Qr(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Pi,column:se,length:s,return:"",siblings:a}}function Kf(){return q}function Zf(){return q=lt>0?Ae(ue,--lt):0,se--,q===10&&(se=1,Pi--),q}function ut(){return q=lt<Bs?Ae(ue,lt++):0,se++,q===10&&(se=1,Pi++),q}function Ht(){return Ae(ue,lt)}function ci(){return lt}function zi(t,e){return Ie(ue,t,e)}function Ir(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 Jf(t){return Pi=se=1,Bs=wt(ue=t),lt=0,[]}function Qf(t){return ue="",t}function _r(t){return ws(zi(lt-1,Or(t===91?t+2:t===40?t+1:t)))}function td(t){for(;(q=Ht())&&q<33;)ut();return Ir(t)>2||Ir(q)>3?"":" "}function ed(t,e){for(;--e&&ut()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return zi(t,ci()+(e<6&&Ht()==32&&ut()==32))}function Or(t){for(;ut();)switch(q){case t:return lt;case 34:case 39:t!==34&&t!==39&&Or(q);break;case 40:t===41&&Or(t);break;case 92:ut();break}return lt}function id(t,e){for(;ut()&&t+q!==47+10;)if(t+q===42+42&&Ht()===47)break;return"/*"+zi(e,lt-1)+"*"+Jr(t===47?t:ut())}function rd(t){for(;!Ir(Ht());)ut();return zi(t,lt)}function nd(t){return Qf(ui("",null,null,null,[""],t=Jf(t),0,[0],t))}function ui(t,e,i,r,n,o,s,a,l){for(var h=0,c=0,f=s,g=0,p=0,_=0,T=1,F=1,A=1,C=0,E="",D=n,P=o,j=r,I=E;F;)switch(_=C,C=ut()){case 40:if(_!=108&&Ae(I,f-1)==58){jf(I+=hi(_r(C),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:I+=_r(C);break;case 9:case 10:case 13:case 32:I+=td(_);break;case 92:I+=ed(ci()-1,7);continue;case 47:switch(Ht()){case 42:case 47:Qe(od(id(ut(),ci()),e,i,l),l);break;default:I+="/"}break;case 123*T:a[h++]=wt(I)*A;case 125*T:case 59:case 0:switch(C){case 0:case 125:F=0;case 59+c:A==-1&&(I=hi(I,/\f/g,"")),p>0&&wt(I)-f&&Qe(p>32?po(I+";",r,i,f-1,l):po(hi(I," ","")+";",r,i,f-2,l),l);break;case 59:I+=";";default:if(Qe(j=fo(I,e,i,h,c,n,a,E,D=[],P=[],f,o),o),C===123)if(c===0)ui(I,e,j,j,D,o,f,a,P);else switch(g===99&&Ae(I,3)===110?100:g){case 100:case 108:case 109:case 115:ui(t,j,j,r&&Qe(fo(t,j,j,0,0,n,a,E,n,D=[],f,P),P),n,P,f,a,r?D:P);break;default:ui(I,j,j,j,[""],P,0,a,P)}}h=c=p=0,T=A=1,E=I="",f=s;break;case 58:f=1+wt(I),p=_;default:if(T<1){if(C==123)--T;else if(C==125&&T++==0&&Zf()==125)continue}switch(I+=Jr(C),C*T){case 38:A=c>0?1:(I+="\f",-1);break;case 44:a[h++]=(wt(I)-1)*A,A=1;break;case 64:Ht()===45&&(I+=_r(ut())),g=Ht(),c=f=wt(E=I+=rd(ci())),C++;break;case 45:_===45&&wt(I)==2&&(T=0)}}return o}function fo(t,e,i,r,n,o,s,a,l,h,c,f){for(var g=n-1,p=n===0?o:[""],_=Xf(p),T=0,F=0,A=0;T<r;++T)for(var C=0,E=Ie(t,g+1,g=Gf(F=s[T])),D=t;C<_;++C)(D=ws(F>0?p[C]+" "+E:hi(E,/&\f/g,p[C])))&&(l[A++]=D);return Qr(t,e,i,n===0?Ss:a,l,h,c,f)}function od(t,e,i,r){return Qr(t,e,i,ks,Jr(Kf()),Ie(t,2,-2),0,r)}function po(t,e,i,r,n){return Qr(t,e,i,vs,Ie(t,0,r),Ie(t,r+1,-1),r,n)}function Mr(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function sd(t,e,i,r){switch(t.type){case Vf:if(t.children.length)break;case Uf:case vs:return t.return=t.return||t.value;case ks:return"";case Yf:return t.return=t.value+"{"+Mr(t.children,r)+"}";case Ss:if(!wt(t.value=t.props.join(",")))return""}return wt(i=Mr(t.children,r))?t.return=t.value+"{"+i+"}":""}const vt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},x={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},tn=function(t="fatal"){let e=vt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in vt&&(e=vt[t])):typeof t=="number"&&(e=t),x.trace=()=>{},x.debug=()=>{},x.info=()=>{},x.warn=()=>{},x.error=()=>{},x.fatal=()=>{},e<=vt.fatal&&(x.fatal=console.error?console.error.bind(console,st("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",st("FATAL"))),e<=vt.error&&(x.error=console.error?console.error.bind(console,st("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",st("ERROR"))),e<=vt.warn&&(x.warn=console.warn?console.warn.bind(console,st("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",st("WARN"))),e<=vt.info&&(x.info=console.info?console.info.bind(console,st("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",st("INFO"))),e<=vt.debug&&(x.debug=console.debug?console.debug.bind(console,st("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",st("DEBUG"))),e<=vt.trace&&(x.trace=console.debug?console.debug.bind(console,st("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",st("TRACE")))},st=t=>`%c${il().format("ss.SSS")} : ${t} : `,Wi=/<br\s*\/?>/gi,ad=t=>t?Ls(t).replace(/\\n/g,"#br#").split("#br#"):[""],Fs=t=>Si.sanitize(t),go=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Fs(t):r!=="loose"&&(t=Ls(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=ud(t))}return t},Oe=(t,e)=>t&&(e.dompurifyConfig?t=Si.sanitize(go(t,e),e.dompurifyConfig).toString():t=Si.sanitize(go(t,e),{FORBID_TAGS:["style"]}).toString(),t),ld=(t,e)=>typeof t=="string"?Oe(t,e):t.flat().map(i=>Oe(i,e)),hd=t=>Wi.test(t),cd=t=>t.split(Wi),ud=t=>t.replace(/#br#/g,"<br/>"),Ls=t=>t.replace(Wi,"#br#"),fd=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},Es=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),dd=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},pd=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},gd=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 gd(i)}else return e},en={getRows:ad,sanitizeText:Oe,sanitizeTextOrArray:ld,hasBreaks:hd,splitBreaks:cd,lineBreakRegex:Wi,removeScript:Fs,getUrl:fd,evaluate:Es,getMax:dd,getMin:pd},K=(t,e)=>e?d(t,{s:-40,l:10}):d(t,{s:-40,l:-10}),Hi="#ffffff",Ui="#f2f2f2";let md=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||d(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||d(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||K(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||K(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||K(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||K(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||y(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||y(this.tertiaryColor),this.lineColor=this.lineColor||y(this.background),this.arrowheadColor=this.arrowheadColor||y(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?w(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||w(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||y(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||S(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.darkMode)for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScale"+i]=w(this["cScale"+i],75);else for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScale"+i]=w(this["cScale"+i],25);for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleInv"+i]=this["cScaleInv"+i]||y(this["cScale"+i]);for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this.darkMode?this["cScalePeer"+i]=this["cScalePeer"+i]||S(this["cScale"+i],10):this["cScalePeer"+i]=this["cScalePeer"+i]||w(this["cScale"+i],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleLabel"+i]=this["cScaleLabel"+i]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let i=0;i<5;i++)this["surface"+i]=this["surface"+i]||d(this.mainBkg,{h:180,s:-15,l:e*(5+i*3)}),this["surfacePeer"+i]=this["surfacePeer"+i]||d(this.mainBkg,{h:180,s:-15,l:e*(8+i*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||d(this.primaryColor,{h:64}),this.fillType3=this.fillType3||d(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||d(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||d(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||d(this.primaryColor,{h:128}),this.fillType7=this.fillType7||d(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||d(this.primaryColor,{l:-10}),this.pie5=this.pie5||d(this.secondaryColor,{l:-10}),this.pie6=this.pie6||d(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||d(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||d(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||d(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||d(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||d(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||d(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||d(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||d(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||d(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||d(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||d(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||d(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||qe(this.quadrant1Fill)?S(this.quadrant1Fill):w(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?w(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||d(this.primaryColor,{h:-30}),this.git4=this.git4||d(this.primaryColor,{h:-60}),this.git5=this.git5||d(this.primaryColor,{h:-90}),this.git6=this.git6||d(this.primaryColor,{h:60}),this.git7=this.git7||d(this.primaryColor,{h:120}),this.darkMode?(this.git0=S(this.git0,25),this.git1=S(this.git1,25),this.git2=S(this.git2,25),this.git3=S(this.git3,25),this.git4=S(this.git4,25),this.git5=S(this.git5,25),this.git6=S(this.git6,25),this.git7=S(this.git7,25)):(this.git0=w(this.git0,25),this.git1=w(this.git1,25),this.git2=w(this.git2,25),this.git3=w(this.git3,25),this.git4=w(this.git4,25),this.git5=w(this.git5,25),this.git6=w(this.git6,25),this.git7=w(this.git7,25)),this.gitInv0=this.gitInv0||y(this.git0),this.gitInv1=this.gitInv1||y(this.git1),this.gitInv2=this.gitInv2||y(this.git2),this.gitInv3=this.gitInv3||y(this.git3),this.gitInv4=this.gitInv4||y(this.git4),this.gitInv5=this.gitInv5||y(this.git5),this.gitInv6=this.gitInv6||y(this.git6),this.gitInv7=this.gitInv7||y(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ui}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 _d=t=>{const e=new md;return e.calculate(t),e};let yd=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=S(this.primaryColor,16),this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=y(this.background),this.secondaryBorderColor=K(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=K(this.tertiaryColor,this.darkMode),this.primaryTextColor=y(this.primaryColor),this.secondaryTextColor=y(this.secondaryColor),this.tertiaryTextColor=y(this.tertiaryColor),this.lineColor=y(this.background),this.textColor=y(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=S(y("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ve(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=w("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=w(this.sectionBkgColor,10),this.taskBorderColor=ve(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ve(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=S(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=S(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=S(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||y(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||S(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||d(this.mainBkg,{h:30,s:-30,l:-(-10+e*4)}),this["surfacePeer"+e]=this["surfacePeer"+e]||d(this.mainBkg,{h:30,s:-30,l:-(-7+e*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||d(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||d(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||d(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||d(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||d(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||d(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||qe(this.quadrant1Fill)?S(this.quadrant1Fill):w(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?w(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=S(this.secondaryColor,20),this.git1=S(this.pie2||this.secondaryColor,20),this.git2=S(this.pie3||this.tertiaryColor,20),this.git3=S(this.pie4||d(this.primaryColor,{h:-30}),20),this.git4=S(this.pie5||d(this.primaryColor,{h:-60}),20),this.git5=S(this.pie6||d(this.primaryColor,{h:-90}),10),this.git6=S(this.pie7||d(this.primaryColor,{h:60}),10),this.git7=S(this.pie8||d(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||y(this.git0),this.gitInv1=this.gitInv1||y(this.git1),this.gitInv2=this.gitInv2||y(this.git2),this.gitInv3=this.gitInv3||y(this.git3),this.gitInv4=this.gitInv4||y(this.git4),this.gitInv5=this.gitInv5||y(this.git5),this.gitInv6=this.gitInv6||y(this.git6),this.gitInv7=this.gitInv7||y(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||y(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||y(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||S(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||S(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Cd=t=>{const e=new yd;return e.calculate(t),e};let bd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=d(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=K(this.primaryColor,this.darkMode),this.secondaryBorderColor=K(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=K(this.tertiaryColor,this.darkMode),this.primaryTextColor=y(this.primaryColor),this.secondaryTextColor=y(this.secondaryColor),this.tertiaryTextColor=y(this.tertiaryColor),this.lineColor=y(this.background),this.textColor=y(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ve(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||w(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||w(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=w(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||w(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||d(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||d(this.mainBkg,{h:30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||d(this.mainBkg,{h:30,l:-(7+e*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||y(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||y(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=S(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||d(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||d(this.primaryColor,{l:-10}),this.pie5=this.pie5||d(this.secondaryColor,{l:-30}),this.pie6=this.pie6||d(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||d(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||d(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||d(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||d(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||d(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||d(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||d(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||d(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||d(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||d(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||d(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||d(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||qe(this.quadrant1Fill)?S(this.quadrant1Fill):w(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||d(this.primaryColor,{h:-30}),this.git4=this.git4||d(this.primaryColor,{h:-60}),this.git5=this.git5||d(this.primaryColor,{h:-90}),this.git6=this.git6||d(this.primaryColor,{h:60}),this.git7=this.git7||d(this.primaryColor,{h:120}),this.darkMode?(this.git0=S(this.git0,25),this.git1=S(this.git1,25),this.git2=S(this.git2,25),this.git3=S(this.git3,25),this.git4=S(this.git4,25),this.git5=S(this.git5,25),this.git6=S(this.git6,25),this.git7=S(this.git7,25)):(this.git0=w(this.git0,25),this.git1=w(this.git1,25),this.git2=w(this.git2,25),this.git3=w(this.git3,25),this.git4=w(this.git4,25),this.git5=w(this.git5,25),this.git6=w(this.git6,25),this.git7=w(this.git7,25)),this.gitInv0=this.gitInv0||w(y(this.git0),25),this.gitInv1=this.gitInv1||y(this.git1),this.gitInv2=this.gitInv2||y(this.git2),this.gitInv3=this.gitInv3||y(this.git3),this.gitInv4=this.gitInv4||y(this.git4),this.gitInv5=this.gitInv5||y(this.git5),this.gitInv6=this.gitInv6||y(this.git6),this.gitInv7=this.gitInv7||y(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||y(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||y(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ui}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 xd=t=>{const e=new bd;return e.calculate(t),e};let Td=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=S("#cde498",10),this.primaryBorderColor=K(this.primaryColor,this.darkMode),this.secondaryBorderColor=K(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=K(this.tertiaryColor,this.darkMode),this.primaryTextColor=y(this.primaryColor),this.secondaryTextColor=y(this.secondaryColor),this.tertiaryTextColor=y(this.primaryColor),this.lineColor=y(this.background),this.textColor=y(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=w(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||w(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||w(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=w(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||w(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||d(this["cScale"+e],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||d(this.mainBkg,{h:30,s:-30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||d(this.mainBkg,{h:30,s:-30,l:-(8+e*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||d(this.primaryColor,{l:-30}),this.pie5=this.pie5||d(this.secondaryColor,{l:-30}),this.pie6=this.pie6||d(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||d(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||d(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||d(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||d(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||d(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||d(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||d(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||d(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||d(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||d(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||d(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||d(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||qe(this.quadrant1Fill)?S(this.quadrant1Fill):w(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||d(this.primaryColor,{h:-30}),this.git4=this.git4||d(this.primaryColor,{h:-60}),this.git5=this.git5||d(this.primaryColor,{h:-90}),this.git6=this.git6||d(this.primaryColor,{h:60}),this.git7=this.git7||d(this.primaryColor,{h:120}),this.darkMode?(this.git0=S(this.git0,25),this.git1=S(this.git1,25),this.git2=S(this.git2,25),this.git3=S(this.git3,25),this.git4=S(this.git4,25),this.git5=S(this.git5,25),this.git6=S(this.git6,25),this.git7=S(this.git7,25)):(this.git0=w(this.git0,25),this.git1=w(this.git1,25),this.git2=w(this.git2,25),this.git3=w(this.git3,25),this.git4=w(this.git4,25),this.git5=w(this.git5,25),this.git6=w(this.git6,25),this.git7=w(this.git7,25)),this.gitInv0=this.gitInv0||y(this.git0),this.gitInv1=this.gitInv1||y(this.git1),this.gitInv2=this.gitInv2||y(this.git2),this.gitInv3=this.gitInv3||y(this.git3),this.gitInv4=this.gitInv4||y(this.git4),this.gitInv5=this.gitInv5||y(this.git5),this.gitInv6=this.gitInv6||y(this.git6),this.gitInv7=this.gitInv7||y(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||y(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||y(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ui}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 kd=t=>{const e=new Td;return e.calculate(t),e};class Sd{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=S(this.contrast,55),this.background="#ffffff",this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=K(this.primaryColor,this.darkMode),this.secondaryBorderColor=K(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=K(this.tertiaryColor,this.darkMode),this.primaryTextColor=y(this.primaryColor),this.secondaryTextColor=y(this.secondaryColor),this.tertiaryTextColor=y(this.tertiaryColor),this.lineColor=y(this.background),this.textColor=y(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=S(this.contrast,55),this.border2=this.contrast,this.actorBorder=S(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||y(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||S(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||w(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||d(this.mainBkg,{l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||d(this.mainBkg,{l:-(8+e*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=S(this.contrast,30),this.sectionBkgColor2=S(this.contrast,30),this.taskBorderColor=w(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=S(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=w(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(this.secondaryColor,{h:128});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||d(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||d(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||d(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||d(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||d(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||d(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||qe(this.quadrant1Fill)?S(this.quadrant1Fill):w(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=w(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||d(this.primaryColor,{h:-30}),this.git4=this.pie5||d(this.primaryColor,{h:-60}),this.git5=this.pie6||d(this.primaryColor,{h:-90}),this.git6=this.pie7||d(this.primaryColor,{h:60}),this.git7=this.pie8||d(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||y(this.git0),this.gitInv1=this.gitInv1||y(this.git1),this.gitInv2=this.gitInv2||y(this.git2),this.gitInv3=this.gitInv3||y(this.git3),this.gitInv4=this.gitInv4||y(this.git4),this.gitInv5=this.gitInv5||y(this.git5),this.gitInv6=this.gitInv6||y(this.git6),this.gitInv7=this.gitInv7||y(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ui}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 vd=t=>{const e=new Sd;return e.calculate(t),e},Ft={base:{getThemeVariables:_d},dark:{getThemeVariables:Cd},default:{getThemeVariables:xd},forest:{getThemeVariables:kd},neutral:{getThemeVariables:vd}},Ot={theme:"default",themeVariables:Ft.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",wrappingWidth:200},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,displayMode:"",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,textPosition:.75},quadrantChart:{chartWidth:500,chartHeight:500,titlePadding:10,titleFontSize:20,quadrantPadding:5,quadrantTextTopPadding:5,quadrantLabelFontSize:16,quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2,xAxisLabelPadding:5,xAxisLabelFontSize:16,xAxisPosition:"top",yAxisLabelPadding:5,yAxisLabelFontSize:16,yAxisPosition:"left",pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,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};Ot.class&&(Ot.class.arrowMarkerAbsolute=Ot.arrowMarkerAbsolute);Ot.gitGraph&&(Ot.gitGraph.arrowMarkerAbsolute=Ot.arrowMarkerAbsolute);const As=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...As(t[r],"")]:[...i,e+r],[]),wd=As(Ot,""),Bd=Ot;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Is(t){return typeof t>"u"||t===null}function Fd(t){return typeof t=="object"&&t!==null}function Ld(t){return Array.isArray(t)?t:Is(t)?[]:[t]}function Ed(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;i<r;i+=1)n=o[i],t[n]=e[n];return t}function Ad(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function Id(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Od=Is,Md=Fd,Nd=Ld,Dd=Ad,Rd=Id,qd=Ed,X={isNothing:Od,isObject:Md,toArray:Nd,repeat:Dd,isNegativeZero:Rd,extend:qd};function Os(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
`+t.mark.snippet),r+" "+i):r}function Me(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Os(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Me.prototype=Object.create(Error.prototype);Me.prototype.constructor=Me;Me.prototype.toString=function(e){return this.name+": "+Os(this,e)};var Bt=Me;function yr(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 Cr(t,e){return X.repeat(" ",e-t.length)+t}function $d(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,h,c=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+c+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)h=yr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),f),a=X.repeat(" ",e.indent)+Cr((t.line-l+1).toString(),c)+" | "+h.str+`
`+a;for(h=yr(t.buffer,r[s],n[s],t.position,f),a+=X.repeat(" ",e.indent)+Cr((t.line+1).toString(),c)+" | "+h.str+`
`,a+=X.repeat("-",e.indent+c+3+h.pos)+`^
`,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)h=yr(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),f),a+=X.repeat(" ",e.indent)+Cr((t.line+l+1).toString(),c)+" | "+h.str+`
`;return a.replace(/\n$/,"")}var Pd=$d,zd=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Wd=["scalar","sequence","mapping"];function Hd(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function Ud(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(zd.indexOf(i)===-1)throw new Bt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Hd(e.styleAliases||null),Wd.indexOf(this.kind)===-1)throw new Bt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var G=Ud;function mo(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 Yd(){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 Nr(t){return this.extend(t)}Nr.prototype.extend=function(e){var i=[],r=[];if(e instanceof G)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Bt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof G))throw new Bt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Bt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Bt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof G))throw new Bt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Nr.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=mo(n,"implicit"),n.compiledExplicit=mo(n,"explicit"),n.compiledTypeMap=Yd(n.compiledImplicit,n.compiledExplicit),n};var Vd=Nr,Gd=new G("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),jd=new G("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Xd=new G("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ms=new Vd({explicit:[Gd,jd,Xd]});function Kd(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Zd(){return null}function Jd(t){return t===null}var Qd=new G("tag:yaml.org,2002:null",{kind:"scalar",resolve:Kd,construct:Zd,predicate:Jd,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function tp(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function ep(t){return t==="true"||t==="True"||t==="TRUE"}function ip(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var rp=new G("tag:yaml.org,2002:bool",{kind:"scalar",resolve:tp,construct:ep,predicate:ip,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function np(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function op(t){return 48<=t&&t<=55}function sp(t){return 48<=t&&t<=57}function ap(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!np(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!op(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!sp(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function lp(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function hp(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!X.isNegativeZero(t)}var cp=new G("tag:yaml.org,2002:int",{kind:"scalar",resolve:ap,construct:lp,predicate:hp,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),up=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function fp(t){return!(t===null||!up.test(t)||t[t.length-1]==="_")}function dp(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var pp=/^[-+]?[0-9]+e/;function gp(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(X.isNegativeZero(t))return"-0.0";return i=t.toString(10),pp.test(i)?i.replace("e",".e"):i}function mp(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||X.isNegativeZero(t))}var _p=new G("tag:yaml.org,2002:float",{kind:"scalar",resolve:fp,construct:dp,predicate:mp,represent:gp,defaultStyle:"lowercase"}),yp=Ms.extend({implicit:[Qd,rp,cp,_p]}),Cp=yp,Ns=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ds=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function bp(t){return t===null?!1:Ns.exec(t)!==null||Ds.exec(t)!==null}function xp(t){var e,i,r,n,o,s,a,l=0,h=null,c,f,g;if(e=Ns.exec(t),e===null&&(e=Ds.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]&&(c=+e[10],f=+(e[11]||0),h=(c*60+f)*6e4,e[9]==="-"&&(h=-h)),g=new Date(Date.UTC(i,r,n,o,s,a,l)),h&&g.setTime(g.getTime()-h),g}function Tp(t){return t.toISOString()}var kp=new G("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:bp,construct:xp,instanceOf:Date,represent:Tp});function Sp(t){return t==="<<"||t===null}var vp=new G("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Sp}),rn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function wp(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 Bp(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 Fp(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 Lp(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Ep=new G("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wp,construct:Bp,predicate:Lp,represent:Fp}),Ap=Object.prototype.hasOwnProperty,Ip=Object.prototype.toString;function Op(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,Ip.call(n)!=="[object Object]")return!1;for(o in n)if(Ap.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 Mp(t){return t!==null?t:[]}var Np=new G("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Op,construct:Mp}),Dp=Object.prototype.toString;function Rp(t){if(t===null)return!0;var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1){if(r=s[e],Dp.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;o[e]=[n[0],r[n[0]]]}return!0}function qp(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 $p=new G("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Rp,construct:qp}),Pp=Object.prototype.hasOwnProperty;function zp(t){if(t===null)return!0;var e,i=t;for(e in i)if(Pp.call(i,e)&&i[e]!==null)return!1;return!0}function Wp(t){return t!==null?t:{}}var Hp=new G("tag:yaml.org,2002:set",{kind:"mapping",resolve:zp,construct:Wp}),Up=Cp.extend({implicit:[kp,vp],explicit:[Ep,Np,$p,Hp]}),Dt=Object.prototype.hasOwnProperty,vi=1,Rs=2,qs=3,wi=4,br=1,Yp=2,_o=3,Vp=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Gp=/[\x85\u2028\u2029]/,jp=/[,\[\]\{\}]/,$s=/^(?:!|!!|![a-z\-]+!)$/i,Ps=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function yo(t){return Object.prototype.toString.call(t)}function yt(t){return t===10||t===13}function Ut(t){return t===9||t===32}function tt(t){return t===9||t===32||t===10||t===13}function ee(t){return t===44||t===91||t===93||t===123||t===125}function Xp(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Kp(t){return t===120?2:t===117?4:t===85?8:0}function Zp(t){return 48<=t&&t<=57?t-48:-1}function Co(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Jp(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var zs=new Array(256),Ws=new Array(256);for(var te=0;te<256;te++)zs[te]=Co(te)?1:0,Ws[te]=Co(te);function Qp(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Up,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Hs(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=Pd(i),new Bt(e,i)}function v(t,e){throw Hs(t,e)}function Bi(t,e){t.onWarning&&t.onWarning.call(null,Hs(t,e))}var bo={YAML:function(e,i,r){var n,o,s;e.version!==null&&v(e,"duplication of %YAML directive"),r.length!==1&&v(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&v(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&v(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&Bi(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&v(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],$s.test(n)||v(e,"ill-formed tag handle (first argument) of the TAG directive"),Dt.call(e.tagMap,n)&&v(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ps.test(o)||v(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{v(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function Mt(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||v(t,"expected valid JSON character");else Vp.test(a)&&v(t,"the stream contains non-printable characters");t.result+=a}}function xo(t,e,i,r){var n,o,s,a;for(X.isObject(i)||v(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],Dt.call(e,o)||(e[o]=i[o],r[o]=!0)}function ie(t,e,i,r,n,o,s,a,l){var h,c;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),h=0,c=n.length;h<c;h+=1)Array.isArray(n[h])&&v(t,"nested arrays are not supported inside keys"),typeof n=="object"&&yo(n[h])==="[object Object]"&&(n[h]="[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(h=0,c=o.length;h<c;h+=1)xo(t,e,o[h],i);else xo(t,e,o,i);else!t.json&&!Dt.call(i,n)&&Dt.call(e,n)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,v(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 nn(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++):v(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function $(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Ut(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(yt(n))for(nn(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&&Bi(t,"deficient indentation"),r}function Yi(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||tt(i)))}function on(t,e){e===1?t.result+=" ":e>1&&(t.result+=X.repeat(`
`,e-1))}function tg(t,e,i){var r,n,o,s,a,l,h,c,f=t.kind,g=t.result,p;if(p=t.input.charCodeAt(t.position),tt(p)||ee(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),tt(n)||i&&ee(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),tt(n)||i&&ee(n))break}else if(p===35){if(r=t.input.charCodeAt(t.position-1),tt(r))break}else{if(t.position===t.lineStart&&Yi(t)||i&&ee(p))break;if(yt(p))if(l=t.line,h=t.lineStart,c=t.lineIndent,$(t,!1,-1),t.lineIndent>=e){a=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=h,t.lineIndent=c;break}}a&&(Mt(t,o,s,!1),on(t,t.line-l),o=s=t.position,a=!1),Ut(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return Mt(t,o,s,!1),t.result?!0:(t.kind=f,t.result=g,!1)}function eg(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(Mt(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 yt(i)?(Mt(t,r,n,!0),on(t,$(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Yi(t)?v(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);v(t,"unexpected end of the stream within a single quoted scalar")}function ig(t,e){var i,r,n,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Mt(t,i,t.position,!0),t.position++,!0;if(a===92){if(Mt(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),yt(a))$(t,!1,e);else if(a<256&&zs[a])t.result+=Ws[a],t.position++;else if((s=Kp(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=Xp(a))>=0?o=(o<<4)+s:v(t,"expected hexadecimal character");t.result+=Jp(o),t.position++}else v(t,"unknown escape sequence");i=r=t.position}else yt(a)?(Mt(t,i,r,!0),on(t,$(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Yi(t)?v(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}v(t,"unexpected end of the stream within a double quoted scalar")}function rg(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,h,c,f,g,p,_=Object.create(null),T,F,A,C;if(C=t.input.charCodeAt(t.position),C===91)c=93,p=!1,a=[];else if(C===123)c=125,p=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),C=t.input.charCodeAt(++t.position);C!==0;){if($(t,!0,e),C=t.input.charCodeAt(t.position),C===c)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=a,!0;i?C===44&&v(t,"expected the node content, but found ','"):v(t,"missed comma between flow collection entries"),F=T=A=null,f=g=!1,C===63&&(h=t.input.charCodeAt(t.position+1),tt(h)&&(f=g=!0,t.position++,$(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,ae(t,e,vi,!1,!0),F=t.tag,T=t.result,$(t,!0,e),C=t.input.charCodeAt(t.position),(g||t.line===r)&&C===58&&(f=!0,C=t.input.charCodeAt(++t.position),$(t,!0,e),ae(t,e,vi,!1,!0),A=t.result),p?ie(t,a,_,F,T,A,r,n,o):f?a.push(ie(t,null,_,F,T,A,r,n,o)):a.push(T),$(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(i=!0,C=t.input.charCodeAt(++t.position)):i=!1}v(t,"unexpected end of the stream within a flow collection")}function ng(t,e){var i,r,n=br,o=!1,s=!1,a=e,l=0,h=!1,c,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)br===n?n=f===43?_o:Yp:v(t,"repeat of a chomping mode identifier");else if((c=Zp(f))>=0)c===0?v(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?v(t,"repeat of an indentation width identifier"):(a=e+c-1,s=!0);else break;if(Ut(f)){do f=t.input.charCodeAt(++t.position);while(Ut(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!yt(f)&&f!==0)}for(;f!==0;){for(nn(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),yt(f)){l++;continue}if(t.lineIndent<a){n===_o?t.result+=X.repeat(`
`,o?1+l:l):n===br&&o&&(t.result+=`
`);break}for(r?Ut(f)?(h=!0,t.result+=X.repeat(`
`,o?1+l:l)):h?(h=!1,t.result+=X.repeat(`
`,l+1)):l===0?o&&(t.result+=" "):t.result+=X.repeat(`
`,l):t.result+=X.repeat(`
`,o?1+l:l),o=!0,s=!0,l=0,i=t.position;!yt(f)&&f!==0;)f=t.input.charCodeAt(++t.position);Mt(t,i,t.position,!1)}return!0}function To(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,v(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!tt(s))));){if(a=!0,t.position++,$(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,ae(t,e,qs,!1,!0),o.push(t.result),$(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)v(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=o,!0):!1}function og(t,e,i){var r,n,o,s,a,l,h=t.tag,c=t.anchor,f={},g=Object.create(null),p=null,_=null,T=null,F=!1,A=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),C=t.input.charCodeAt(t.position);C!==0;){if(!F&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,v(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(C===63||C===58)&&tt(r))C===63?(F&&(ie(t,f,g,p,_,null,s,a,l),p=_=T=null),A=!0,F=!0,n=!0):F?(F=!1,n=!0):v(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,C=r;else{if(s=t.line,a=t.lineStart,l=t.position,!ae(t,i,Rs,!1,!0))break;if(t.line===o){for(C=t.input.charCodeAt(t.position);Ut(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),tt(C)||v(t,"a whitespace character is expected after the key-value separator within a block mapping"),F&&(ie(t,f,g,p,_,null,s,a,l),p=_=T=null),A=!0,F=!1,n=!1,p=t.tag,_=t.result;else if(A)v(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=h,t.anchor=c,!0}else if(A)v(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=h,t.anchor=c,!0}if((t.line===o||t.lineIndent>e)&&(F&&(s=t.line,a=t.lineStart,l=t.position),ae(t,e,wi,!0,n)&&(F?_=t.result:T=t.result),F||(ie(t,f,g,p,_,T,s,a,l),p=_=T=null),$(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&C!==0)v(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return F&&ie(t,f,g,p,_,null,s,a,l),A&&(t.tag=h,t.anchor=c,t.kind="mapping",t.result=f),A}function sg(t){var e,i=!1,r=!1,n,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&v(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)):v(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!tt(s);)s===33&&(r?v(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),$s.test(n)||v(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),jp.test(o)&&v(t,"tag suffix cannot contain flow indicator characters")}o&&!Ps.test(o)&&v(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{v(t,"tag name is malformed: "+o)}return i?t.tag=o:Dt.call(t.tagMap,n)?t.tag=t.tagMap[n]+o:n==="!"?t.tag="!"+o:n==="!!"?t.tag="tag:yaml.org,2002:"+o:v(t,'undeclared tag handle "'+n+'"'),!0}function ag(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&v(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!tt(i)&&!ee(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&v(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function lg(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!tt(r)&&!ee(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&v(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),Dt.call(t.anchorMap,i)||v(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],$(t,!0,-1),!0}function ae(t,e,i,r,n){var o,s,a,l=1,h=!1,c=!1,f,g,p,_,T,F;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=wi===i||qs===i,r&&$(t,!0,-1)&&(h=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;sg(t)||ag(t);)$(t,!0,-1)?(h=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=h||n),(l===1||wi===i)&&(vi===i||Rs===i?T=e:T=e+1,F=t.position-t.lineStart,l===1?a&&(To(t,F)||og(t,F,T))||rg(t,T)?c=!0:(s&&ng(t,T)||eg(t,T)||ig(t,T)?c=!0:lg(t)?(c=!0,(t.tag!==null||t.anchor!==null)&&v(t,"alias node should not have any properties")):tg(t,T,vi===i)&&(c=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(c=a&&To(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"&&v(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,g=t.implicitTypes.length;f<g;f+=1)if(_=t.implicitTypes[f],_.resolve(t.result)){t.result=_.construct(t.result),t.tag=_.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Dt.call(t.typeMap[t.kind||"fallback"],t.tag))_=t.typeMap[t.kind||"fallback"][t.tag];else for(_=null,p=t.typeMap.multi[t.kind||"fallback"],f=0,g=p.length;f<g;f+=1)if(t.tag.slice(0,p[f].tag.length)===p[f].tag){_=p[f];break}_||v(t,"unknown tag !<"+t.tag+">"),t.result!==null&&_.kind!==t.kind&&v(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)):v(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||c}function hg(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&&($(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&&!tt(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&v(t,"directive name must not be less than one character in length");s!==0;){for(;Ut(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!yt(s));break}if(yt(s))break;for(i=t.position;s!==0&&!tt(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&nn(t),Dt.call(bo,r)?bo[r](t,r,n):Bi(t,'unknown document directive "'+r+'"')}if($(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,$(t,!0,-1)):o&&v(t,"directives end mark is expected"),ae(t,t.lineIndent-1,wi,!1,!0),$(t,!0,-1),t.checkLineBreaks&&Gp.test(t.input.slice(e,t.position))&&Bi(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Yi(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,$(t,!0,-1));return}if(t.position<t.length-1)v(t,"end of the stream or a document separator is expected");else return}function Us(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new Qp(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,v(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;)hg(i);return i.documents}function cg(t,e,i){e!==null&&typeof e=="object"&&typeof i>"u"&&(i=e,e=null);var r=Us(t,i);if(typeof e!="function")return r;for(var n=0,o=r.length;n<o;n+=1)e(r[n])}function ug(t,e){var i=Us(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Bt("expected a single document in the stream, but found more")}}var fg=cg,dg=ug,pg={loadAll:fg,load:dg},gg=Ms,mg=pg.load;const Ys=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function _g(t,e){var i,r;const n=t.match(Ys);if(n){const o=mg(n[1],{schema:gg});return o!=null&&o.title&&((i=e.setDiagramTitle)==null||i.call(e,o.title)),o!=null&&o.displayMode&&((r=e.setDisplayMode)==null||r.call(e,o.displayMode)),t.slice(n[0].length)}else return t}const Dr=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=>Dr(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]=Dr(t[o],e[o],{depth:r-1,clobber:n})):(n||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},V=Dr,Ne=Object.freeze(Bd);let J=V({},Ne),Vs,le=[],we=V({},Ne);const Vi=(t,e)=>{let i=V({},t),r={};for(const n of e)js(n),r=V(r,n);if(i=V(i,r),r.theme&&r.theme in Ft){const n=V({},Vs),o=V(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Ft&&(i.themeVariables=Ft[i.theme].getThemeVariables(o))}return we=i,Zs(we),we},yg=t=>(J=V({},Ne),J=V(J,t),t.theme&&Ft[t.theme]&&(J.themeVariables=Ft[t.theme].getThemeVariables(t.themeVariables)),Vi(J,le),J),Cg=t=>{Vs=V({},t)},bg=t=>(J=V(J,t),Vi(J,le),J),Gs=()=>V({},J),xg=t=>(Zs(t),V(we,t),Et()),Et=()=>V({},we),js=t=>{["secure",...J.secure??[]].forEach(e=>{t[e]!==void 0&&(x.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.indexOf("__")===0&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&js(t[e])})},Xs=t=>{t.fontFamily&&(t.themeVariables?t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily}):t.themeVariables={fontFamily:t.fontFamily}),le.push(t),Vi(J,le)},Fi=(t=J)=>{le=[],Vi(t,le)};var Ks=(t=>(t.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",t))(Ks||{});const ko={},Tg=t=>{ko[t]||(x.warn(Ks[t]),ko[t]=!0)},Zs=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Tg("LAZY_LOAD_DEPRECATED")},kg=function(t,e){for(let i of e)t.attr(i[0],i[1])},Sg=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},vg=function(t,e,i,r){const n=Sg(e,i,r);kg(t,n)},wg=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;x.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;x.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,x.info(`Calculated bounds: ${a}x${l}`),vg(e,l,a,r);const h=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",h)},fi={},Bg=(t,e,i)=>{let r="";return t in fi&&fi[t]?r=fi[t](i):x.warn(`No theme found for ${t}`),` & {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
fill: ${i.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${i.errorBkgColor};
}
& .error-text {
fill: ${i.errorTextColor};
stroke: ${i.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${i.lineColor};
stroke: ${i.lineColor};
}
& .marker.cross {
stroke: ${i.lineColor};
}
& svg {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
}
${r}
${e}
`},Fg=(t,e)=>{e!==void 0&&(fi[t]=e)},Lg=Bg;let sn="",Gi="",an="";const ln=t=>Oe(t,Et()),Js=function(){sn="",an="",Gi=""},Qs=function(t){sn=ln(t).replace(/^\s+/g,"")},ta=function(){return sn||Gi},ea=function(t){an=ln(t).replace(/\n\s+/g,`
`)},ia=function(){return an},ra=function(t){Gi=ln(t)},na=function(){return Gi},Eg={getAccTitle:ta,setAccTitle:Qs,getDiagramTitle:na,setDiagramTitle:ra,getAccDescription:ia,setAccDescription:ea,clear:Js},Ag=Object.freeze(Object.defineProperty({__proto__:null,clear:Js,default:Eg,getAccDescription:ia,getAccTitle:ta,getDiagramTitle:na,setAccDescription:ea,setAccTitle:Qs,setDiagramTitle:ra},Symbol.toStringTag,{value:"Module"}));let Pt={};const oa=function(t,e,i,r){x.debug("parseDirective is being called",e,i,r);try{if(e!==void 0)switch(e=e.trim(),i){case"open_directive":Pt={};break;case"type_directive":if(!Pt)throw new Error("currentDirective is undefined");Pt.type=e.toLowerCase();break;case"arg_directive":if(!Pt)throw new Error("currentDirective is undefined");Pt.args=JSON.parse(e);break;case"close_directive":Ig(t,Pt,r),Pt=void 0;break}}catch(n){x.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${i}`),x.error(n.message)}},Ig=function(t,e,i){switch(x.info(`Directive type=${e.type} with args:`,e.args),e.type){case"init":case"initialize":{["config"].forEach(r=>{e.args[r]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),e.args[i]=e.args[r],delete e.args[r])}),x.info("sanitize in handleDirective",e.args),ce(e.args),x.info("sanitize in handleDirective (done)",e.args),Xs(e.args);break}case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap(e.type==="wrap");break;case"themeCss":x.warn("themeCss encountered");break;default:x.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e);break}},Og=x,Mg=tn,sa=Et,Ng=t=>Oe(t,sa()),Dg=wg,Rg=()=>Ag,qg=(t,e,i,r)=>oa(t,e,i,r),Li={},Ei=(t,e,i)=>{if(Li[t])throw new Error(`Diagram ${t} already registered.`);Li[t]=e,i&&ha(t,i),Fg(t,e.styles),e.injectUtils&&e.injectUtils(Og,Mg,sa,Ng,Dg,Rg(),qg)},hn=t=>{if(t in Li)return Li[t];throw new Error(`Diagram ${t} not found.`)};class aa extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const $g=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Pg=/\s*%%.*\n/gm,he={},ji=function(t,e){t=t.replace(Ys,"").replace($g,"").replace(Pg,`
`);for(const[i,{detector:r}]of Object.entries(he))if(r(t,e))return i;throw new aa(`No diagram type detected matching given configuration for text: ${t}`)},la=(...t)=>{for(const{id:e,detector:i,loader:r}of t)ha(e,i,r)},zg=async()=>{x.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(he).map(async([i,{detector:r,loader:n}])=>{if(n)try{hn(i)}catch{try{const{diagram:s,id:a}=await n();Ei(a,s,r)}catch(s){throw x.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete he[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){x.error(`Failed to load ${e.length} external diagrams`);for(const i of e)x.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},ha=(t,e,i)=>{he[t]?x.error(`Detector with key ${t} already exists`):he[t]={detector:e,loader:i},x.debug(`Detector with key ${t} added${i?" with loader":""}`)},Wg=t=>he[t].loader,Hg="​",Ug={curveBasis:Mu,curveBasisClosed:Nu,curveBasisOpen:Du,curveBumpX:Iu,curveBumpY:Ou,curveBundle:Ru,curveCardinalClosed:$u,curveCardinalOpen:Pu,curveCardinal:qu,curveCatmullRomClosed:Wu,curveCatmullRomOpen:Hu,curveCatmullRom:zu,curveLinear:Au,curveLinearClosed:Uu,curveMonotoneX:Yu,curveMonotoneY:Vu,curveNatural:Gu,curveStep:ju,curveStepAfter:Ku,curveStepBefore:Xu},xr=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Yg=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Vg=function(t,e){const i=ca(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const n=i.map(o=>o.args);ce(n),r=V(r,[...n])}else r=i.args;if(r){let n=ji(t,e);["config"].forEach(o=>{r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o])})}return r},ca=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Yg.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),x.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=xr.exec(t))!==null;)if(r.index===xr.lastIndex&&xr.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0&&n.push({type:t,args:null}),n.length===1?n[0]:n}catch(i){return x.error(`ERROR: ${i.message} - Unable to parse directive
${e!==null?" type:"+e:""} based on the text:${t}`),{type:null,args:null}}},Gg=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function jg(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Ug[i]||e}function Xg(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Eo(i):i}const Kg=(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 Ai(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function Zg(t){let e,i=0;t.forEach(o=>{i+=Ai(o,e),e=o});let r=i/2,n;return e=void 0,t.forEach(o=>{if(e&&!n){const s=Ai(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 Jg(t){return t.length===1?t[0]:Zg(t)}const Qg=(t,e,i)=>{let r;x.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());let o=25,s;r=void 0,e.forEach(c=>{if(r&&!s){const f=Ai(c,r);if(f<o)o-=f;else{const g=o/f;g<=0&&(s=r),g>=1&&(s={x:c.x,y:c.y}),g>0&&g<1&&(s={x:(1-g)*r.x+g*c.x,y:(1-g)*r.y+g*c.y})}}r=c});const a=t?10:5,l=Math.atan2(e[0].y-s.y,e[0].x-s.x),h={x:0,y:0};return h.x=Math.sin(l)*a+(e[0].x+s.x)/2,h.y=-Math.cos(l)*a+(e[0].y+s.y)/2,h};function tm(t,e,i){let r=JSON.parse(JSON.stringify(i)),n;x.info("our points",r),e!=="start_left"&&e!=="start_right"&&(r=r.reverse()),r.forEach(f=>{n=f});let s=25+t,a;n=void 0,r.forEach(f=>{if(n&&!a){const g=Ai(f,n);if(g<s)s-=g;else{const p=s/g;p<=0&&(a=n),p>=1&&(a={x:f.x,y:f.y}),p>0&&p<1&&(a={x:(1-p)*n.x+p*f.x,y:(1-p)*n.y+p*f.y})}}n=f});const l=10+t*.5,h=Math.atan2(r[0].y-a.y,r[0].x-a.x),c={x:0,y:0};return c.x=Math.sin(h)*l+(r[0].x+a.x)/2,c.y=-Math.cos(h)*l+(r[0].y+a.y)/2,e==="start_left"&&(c.x=Math.sin(h+Math.PI)*l+(r[0].x+a.x)/2,c.y=-Math.cos(h+Math.PI)*l+(r[0].y+a.y)/2),e==="end_right"&&(c.x=Math.sin(h-Math.PI)*l+(r[0].x+a.x)/2-5,c.y=-Math.cos(h-Math.PI)*l+(r[0].y+a.y)/2-5),e==="end_left"&&(c.x=Math.sin(h)*l+(r[0].x+a.x)/2-5,c.y=-Math.cos(h)*l+(r[0].y+a.y)/2-5),c}function em(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let So=0;const im=()=>(So++,"id-"+Math.random().toString(36).substr(2,12)+"-"+So);function rm(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 nm=t=>rm(t.length),om=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}},sm=function(t,e){const i=e.text.replace(en.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},am=qr((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),en.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=Ii(`${s} `,i),h=Ii(o,i);if(l>e){const{hyphenatedStrings:g,remainingWord:p}=lm(s,e,"-",i);n.push(o,...g),o=p}else h+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}`),lm=qr((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const h=`${s}${a}`;if(Ii(h,r)>=e){const f=l+1,g=n.length===f,p=`${h}${i}`;o.push(g?h:p),s=""}else s=h}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function hm(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),cn(t,e).height}function Ii(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),cn(t,e).width}const cn=qr((t,e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e);const{fontSize:i,fontFamily:r,fontWeight:n}=e;if(!t)return{width:0,height:0};const[,o]=un(i),s=["sans-serif",r],a=t.split(en.lineBreakRegex),l=[],h=mt("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const c=h.append("svg");for(const g of s){let p=0;const _={width:0,height:0,lineHeight:0};for(const T of a){const F=om();F.text=T||Hg;const A=sm(c,F).style("font-size",o).style("font-weight",n).style("font-family",g),C=(A._groups||A)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,C.width)),p=Math.round(C.height),_.height+=p,_.lineHeight=Math.round(Math.max(_.lineHeight,p))}l.push(_)}c.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),cm=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 ti;const um=function(t){return ti=ti||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ti.innerHTML=t,unescape(ti.textContent)},ce=t=>{if(x.debug("directiveSanitizer called with",t),typeof t=="object"&&(t.length?t.forEach(e=>ce(e)):Object.keys(t).forEach(e=>{x.debug("Checking key",e),e.startsWith("__")&&(x.debug("sanitize deleting __ option",e),delete t[e]),e.includes("proto")&&(x.debug("sanitize deleting proto option",e),delete t[e]),e.includes("constr")&&(x.debug("sanitize deleting constr option",e),delete t[e]),e.includes("themeCSS")&&(x.debug("sanitizing themeCss option"),t[e]=di(t[e])),e.includes("fontFamily")&&(x.debug("sanitizing fontFamily option"),t[e]=di(t[e])),e.includes("altFontFamily")&&(x.debug("sanitizing altFontFamily option"),t[e]=di(t[e])),wd.includes(e)?typeof t[e]=="object"&&(x.debug("sanitize deleting object",e),ce(t[e])):(x.debug("sanitize deleting option",e),delete t[e])})),t.themeVariables){const e=Object.keys(t.themeVariables);for(const i of e){const r=t.themeVariables[i];r&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[i]="")}}x.debug("After sanitization",t)},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 ua(t){return"str"in t}function fm(t){return t instanceof Error?t.message:String(t)}const dm=(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]},pi={assignWithDepth:V,wrapLabel:am,calculateTextHeight:hm,calculateTextWidth:Ii,calculateTextDimensions:cn,detectInit:Vg,detectDirective:ca,isSubstringInArray:Gg,interpolateToCurve:jg,calcLabelPosition:Jg,calcCardinalityPosition:Qg,calcTerminalLabelPosition:tm,formatUrl:Xg,getStylesFromArray:em,generateId:im,random:nm,runFunc:Kg,entityDecode:um,initIdGenerator:cm,directiveSanitizer:ce,sanitizeCss:di,insertTitle:dm,parseFontSize:un},vo="10.2.4",fa="c4",pm=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),gm=async()=>{const{diagram:t}=await z(()=>import("./c4Diagram-73a25429-874a00a7.js"),["assets/c4Diagram-73a25429-874a00a7.js","assets/svgDrawCommon-f26cad39-37246f62.js","assets/app-9073a2e6.js"]);return{id:fa,diagram:t}},mm={id:fa,detector:pm,loader:gm},_m=mm,da="flowchart",ym=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Cm=async()=>{const{diagram:t}=await z(()=>import("./flowDiagram-b66fcae9-bf923adb.js"),["assets/flowDiagram-b66fcae9-bf923adb.js","assets/flowDb-9e6c6aac-2c5df92f.js","assets/layout-51470fad.js","assets/app-9073a2e6.js","assets/styles-7882abfe-3c80fed4.js","assets/index-1e7f2254-2ef03a86.js","assets/edges-66ea8538-43ce42de.js","assets/createText-a49d2d2a-92da85c2.js","assets/svgDraw-95adee0a-13868cc3.js","assets/line-e0e3cd21.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/selectAll-06ceb71b.js"]);return{id:da,diagram:t}},bm={id:da,detector:ym,loader:Cm},xm=bm,pa="flowchart-v2",Tm=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},km=async()=>{const{diagram:t}=await z(()=>import("./flowDiagram-v2-fe64f300-6380cb62.js"),["assets/flowDiagram-v2-fe64f300-6380cb62.js","assets/flowDb-9e6c6aac-2c5df92f.js","assets/styles-7882abfe-3c80fed4.js","assets/layout-51470fad.js","assets/app-9073a2e6.js","assets/index-1e7f2254-2ef03a86.js","assets/edges-66ea8538-43ce42de.js","assets/createText-a49d2d2a-92da85c2.js","assets/svgDraw-95adee0a-13868cc3.js","assets/line-e0e3cd21.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/selectAll-06ceb71b.js"]);return{id:pa,diagram:t}},Sm={id:pa,detector:Tm,loader:km},vm=Sm,ga="er",wm=t=>/^\s*erDiagram/.test(t),Bm=async()=>{const{diagram:t}=await z(()=>import("./erDiagram-731c3598-a5abb22a.js"),["assets/erDiagram-731c3598-a5abb22a.js","assets/layout-51470fad.js","assets/app-9073a2e6.js","assets/line-e0e3cd21.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:ga,diagram:t}},Fm={id:ga,detector:wm,loader:Bm},Lm=Fm,ma="gitGraph",Em=t=>/^\s*gitGraph/.test(t),Am=async()=>{const{diagram:t}=await z(()=>import("./gitGraphDiagram-566a7451-34f8c8fc.js"),["assets/gitGraphDiagram-566a7451-34f8c8fc.js","assets/app-9073a2e6.js"]);return{id:ma,diagram:t}},Im={id:ma,detector:Em,loader:Am},Om=Im,_a="gantt",Mm=t=>/^\s*gantt/.test(t),Nm=async()=>{const{diagram:t}=await z(()=>import("./ganttDiagram-55b9c28c-028d7fa2.js"),["assets/ganttDiagram-55b9c28c-028d7fa2.js","assets/app-9073a2e6.js","assets/linear-c8bb356c.js","assets/init-77b53fdd.js"]);return{id:_a,diagram:t}},Dm={id:_a,detector:Mm,loader:Nm},Rm=Dm,ya="info",qm=t=>/^\s*info/.test(t),$m=async()=>{const{diagram:t}=await z(()=>import("./infoDiagram-f43c69c6-4e078ef1.js"),["assets/infoDiagram-f43c69c6-4e078ef1.js","assets/app-9073a2e6.js"]);return{id:ya,diagram:t}},Pm={id:ya,detector:qm,loader:$m},Ca="pie",zm=t=>/^\s*pie/.test(t),Wm=async()=>{const{diagram:t}=await z(()=>import("./pieDiagram-c8640b32-0791bcb7.js"),["assets/pieDiagram-c8640b32-0791bcb7.js","assets/app-9073a2e6.js","assets/init-77b53fdd.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/arc-d623380a.js"]);return{id:Ca,diagram:t}},Hm={id:Ca,detector:zm,loader:Wm},Um=Hm,ba="quadrantChart",Ym=t=>/^\s*quadrantChart/.test(t),Vm=async()=>{const{diagram:t}=await z(()=>import("./quadrantDiagram-f7a9076b-0d677f43.js"),["assets/quadrantDiagram-f7a9076b-0d677f43.js","assets/app-9073a2e6.js","assets/linear-c8bb356c.js","assets/init-77b53fdd.js"]);return{id:ba,diagram:t}},Gm={id:ba,detector:Ym,loader:Vm},jm=Gm,xa="requirement",Xm=t=>/^\s*requirement(Diagram)?/.test(t),Km=async()=>{const{diagram:t}=await z(()=>import("./requirementDiagram-429b9d18-fc85cc04.js"),["assets/requirementDiagram-429b9d18-fc85cc04.js","assets/layout-51470fad.js","assets/app-9073a2e6.js","assets/line-e0e3cd21.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:xa,diagram:t}},Zm={id:xa,detector:Xm,loader:Km},Jm=Zm,Ta="sequence",Qm=t=>/^\s*sequenceDiagram/.test(t),t0=async()=>{const{diagram:t}=await z(()=>import("./sequenceDiagram-9506b40c-51b35046.js"),["assets/sequenceDiagram-9506b40c-51b35046.js","assets/svgDrawCommon-f26cad39-37246f62.js","assets/app-9073a2e6.js","assets/selectAll-06ceb71b.js"]);return{id:Ta,diagram:t}},e0={id:Ta,detector:Qm,loader:t0},i0=e0,ka="class",r0=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},n0=async()=>{const{diagram:t}=await z(()=>import("./classDiagram-d26c05e1-9ce23647.js"),["assets/classDiagram-d26c05e1-9ce23647.js","assets/styles-a893c203-4298adb3.js","assets/layout-51470fad.js","assets/app-9073a2e6.js","assets/svgDraw-95adee0a-13868cc3.js","assets/line-e0e3cd21.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:ka,diagram:t}},o0={id:ka,detector:r0,loader:n0},s0=o0,Sa="classDiagram",a0=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},l0=async()=>{const{diagram:t}=await z(()=>import("./classDiagram-v2-656fc6c4-8f9a6833.js"),["assets/classDiagram-v2-656fc6c4-8f9a6833.js","assets/styles-a893c203-4298adb3.js","assets/layout-51470fad.js","assets/app-9073a2e6.js","assets/index-1e7f2254-2ef03a86.js","assets/edges-66ea8538-43ce42de.js","assets/createText-a49d2d2a-92da85c2.js","assets/svgDraw-95adee0a-13868cc3.js","assets/line-e0e3cd21.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:Sa,diagram:t}},h0={id:Sa,detector:a0,loader:l0},c0=h0,va="state",u0=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},f0=async()=>{const{diagram:t}=await z(()=>import("./stateDiagram-0dc7ce84-ff98ffaa.js"),["assets/stateDiagram-0dc7ce84-ff98ffaa.js","assets/styles-b820c189-cfe38630.js","assets/layout-51470fad.js","assets/app-9073a2e6.js","assets/line-e0e3cd21.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:va,diagram:t}},d0={id:va,detector:u0,loader:f0},p0=d0,wa="stateDiagram",g0=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},m0=async()=>{const{diagram:t}=await z(()=>import("./stateDiagram-v2-e65458cd-1a87412c.js"),["assets/stateDiagram-v2-e65458cd-1a87412c.js","assets/styles-b820c189-cfe38630.js","assets/layout-51470fad.js","assets/app-9073a2e6.js","assets/index-1e7f2254-2ef03a86.js","assets/edges-66ea8538-43ce42de.js","assets/createText-a49d2d2a-92da85c2.js","assets/svgDraw-95adee0a-13868cc3.js","assets/line-e0e3cd21.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:wa,diagram:t}},_0={id:wa,detector:g0,loader:m0},y0=_0,Ba="journey",C0=t=>/^\s*journey/.test(t),b0=async()=>{const{diagram:t}=await z(()=>import("./journeyDiagram-4f4351b8-0b74a579.js"),["assets/journeyDiagram-4f4351b8-0b74a579.js","assets/svgDrawCommon-f26cad39-37246f62.js","assets/app-9073a2e6.js","assets/arc-d623380a.js","assets/path-53f90ab3.js"]);return{id:Ba,diagram:t}},x0={id:Ba,detector:C0,loader:b0},T0=x0,k0=()=>"",S0=k0,v0=function(){},w0=(t,e,i)=>{try{x.debug(`Renering svg for syntax error
`);const r=mt("#"+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 text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+i),r.attr("height",100),r.attr("width",500),r.attr("viewBox","768 0 912 512")}catch(r){x.error("Error while rendering info diagram"),x.error(fm(r))}},Fa={setConf:v0,draw:w0},B0={db:{clear:()=>{}},styles:S0,renderer:Fa,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},F0=B0,La="flowchart-elk",L0=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},E0=async()=>{const{diagram:t}=await z(()=>import("./flowchart-elk-definition-ec654d50-0b00469c.js"),["assets/flowchart-elk-definition-ec654d50-0b00469c.js","assets/flowDb-9e6c6aac-2c5df92f.js","assets/edges-66ea8538-43ce42de.js","assets/createText-a49d2d2a-92da85c2.js","assets/svgDraw-95adee0a-13868cc3.js","assets/line-e0e3cd21.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-9073a2e6.js","assets/commonjs-dynamic-modules-302442b1.js"]);return{id:La,diagram:t}},A0={id:La,detector:L0,loader:E0},I0=A0,Ea="timeline",O0=t=>/^\s*timeline/.test(t),M0=async()=>{const{diagram:t}=await z(()=>import("./timeline-definition-46a17596-b3cadaaa.js"),["assets/timeline-definition-46a17596-b3cadaaa.js","assets/app-9073a2e6.js","assets/arc-d623380a.js","assets/path-53f90ab3.js"]);return{id:Ea,diagram:t}},N0={id:Ea,detector:O0,loader:M0},D0=N0,Aa="mindmap",R0=t=>/^\s*mindmap/.test(t),q0=async()=>{const{diagram:t}=await z(()=>import("./mindmap-definition-89ece3a3-7b600eae.js"),["assets/mindmap-definition-89ece3a3-7b600eae.js","assets/createText-a49d2d2a-92da85c2.js","assets/app-9073a2e6.js"]);return{id:Aa,diagram:t}},$0={id:Aa,detector:R0,loader:q0},P0=$0;let wo=!1;const fn=()=>{wo||(wo=!0,Ei("error",F0,t=>t.toLowerCase().trim()==="error"),Ei("---",{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("---")),la(_m,c0,s0,Lm,Rm,Pm,Um,Jm,i0,I0,vm,xm,P0,D0,Om,y0,p0,T0,jm))},z0=t=>t.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class Ia{constructor(e){var i,r;this.text=e,this.type="graph",this.text+=`
`;const n=Et();try{this.type=ji(e,n)}catch(a){this.type="error",this.detectError=a}const o=hn(this.type);x.debug("Type "+this.type),this.db=o.db,(r=(i=this.db).clear)==null||r.call(i),this.renderer=o.renderer,this.parser=o.parser;const s=this.parser.parse.bind(this.parser);this.parser.parse=a=>s(z0(_g(a,this.db))),this.parser.parser.yy=this.db,o.init&&(o.init(n),x.info("Initialized diagram "+this.type,n)),this.parse()}parse(){var e,i;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const dn=async t=>{const e=ji(t,Et());try{hn(e)}catch{const r=Wg(e);if(!r)throw new aa(`Diagram ${e} not found.`);const{id:n,diagram:o}=await r();Ei(n,o)}return new Ia(t)};let Rr=[];const W_=t=>{Rr.push(t)},W0=()=>{Rr.forEach(t=>{t()}),Rr=[]},H0="graphics-document document";function U0(t,e){t.attr("role",H0),ei(e)||t.attr("aria-roledescription",e)}function Y0(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 Oa=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],V0=5e4,G0="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",j0="sandbox",X0="loose",K0="http://www.w3.org/2000/svg",Z0="http://www.w3.org/1999/xlink",J0="http://www.w3.org/1999/xhtml",Q0="100%",t_="100%",e_="border:0;margin:0;",i_="margin:0",r_="allow-top-navigation-by-user-activation allow-popups",n_='The "iframe" tag is not supported by your browser.',o_=["foreignobject"],s_=["dominant-baseline"];async function a_(t,e){fn();try{(await dn(t)).parse()}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const l_=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},h_=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Bo=(t,e,i=[])=>`
.${t} ${e} { ${i.join(" !important; ")} !important; }`,c_=(t,e,i={})=>{var r;let n="";if(t.themeCSS!==void 0&&(n+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(n+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(n+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!ei(i)&&Oa.includes(e)){const l=t.htmlLabels||((r=t.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const h in i){const c=i[h];ei(c.styles)||l.forEach(f=>{n+=Bo(c.id,f,c.styles)}),ei(c.textStyles)||(n+=Bo(c.id,"tspan",c.textStyles))}}return n},u_=(t,e,i,r)=>{const n=c_(t,e,i),o=Lg(e,n,t.themeVariables);return Mr(nd(`${r}{${o}}`),sd)},f_=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=h_(r),r=r.replace(/<br>/g,"<br/>"),r},d_=(t="",e)=>{const i=e?e.viewBox.baseVal.height+"px":t_,r=btoa('<body style="'+i_+'">'+t+"</body>");return`<iframe style="width:${Q0};height:${i};${e_}" src="data:text/html;base64,${r}" sandbox="${r_}">
${n_}
</iframe>`},Fo=(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",K0);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function Lo(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const p_=(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()},g_=async function(t,e,i){var r,n,o,s;fn(),Fi();const a=pi.detectInit(e);a&&(ce(a),Xs(a));const l=Et();x.debug(l),e.length>((l==null?void 0:l.maxTextSize)??V0)&&(e=G0),e=e.replace(/\r\n?/g,`
`),e=e.replace(/<(\w+)([^>]*)>/g,(it,$e,R)=>"<"+$e+R.replace(/="([^"]*)"/g,"='$1'")+">");const h="#"+t,c="i"+t,f="#"+c,g="d"+t,p="#"+g;let _=mt("body");const T=l.securityLevel===j0,F=l.securityLevel===X0,A=l.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),T){const it=Lo(mt(i),c);_=mt(it.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=mt(i);Fo(_,t,g,`font-family: ${A}`,Z0)}else{if(p_(document,t,g,c),T){const it=Lo(mt("body"),c);_=mt(it.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=mt("body");Fo(_,t,g)}e=l_(e);let C,E;try{C=await dn(e)}catch(it){C=new Ia("error"),E=it}const D=_.select(p).node(),P=C.type,j=D.firstChild,I=j.firstChild,Xi=Oa.includes(P)?C.renderer.getClasses(e,C):{},Ki=u_(l,P,Xi,h),et=document.createElement("style");et.innerHTML=Ki,j.insertBefore(et,I);try{await C.renderer.draw(e,t,vo,C)}catch(it){throw Fa.draw(e,t,vo),it}const fe=_.select(`${p} svg`),de=(n=(r=C.db).getAccTitle)==null?void 0:n.call(r),pe=(s=(o=C.db).getAccDescription)==null?void 0:s.call(o);__(P,fe,de,pe),_.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",J0);let xt=_.select(p).node().innerHTML;if(x.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),xt=f_(xt,T,Es(l.arrowMarkerAbsolute)),T){const it=_.select(p+" svg").node();xt=d_(xt,it)}else F||(xt=Si.sanitize(xt,{ADD_TAGS:o_,ADD_ATTR:s_}));if(W0(),E)throw E;const ge=mt(T?f:p).node();return ge&&"remove"in ge&&ge.remove(),{svg:xt,bindFunctions:C.db.bindFunctions}};function m_(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Cg(t),t!=null&&t.theme&&t.theme in Ft?t.themeVariables=Ft[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Ft.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?yg(t):Gs();tn(i.logLevel),fn()}function __(t,e,i,r){U0(e,t),Y0(e,i,r,e.attr("id"))}const Vt=Object.freeze({render:g_,parse:a_,parseDirective:oa,getDiagramFromText:dn,initialize:m_,getConfig:Et,setConfig:xg,getSiteConfig:Gs,updateSiteConfig:bg,reset:()=>{Fi()},globalReset:()=>{Fi(Ne)},defaultConfig:Ne});tn(Et().logLevel);Fi(Et());const y_=(t,e,i)=>{x.warn(t),ua(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}))},Ma=async function(t={querySelector:".mermaid"}){try{await C_(t)}catch(e){if(ua(e)&&x.error(e.str),dt.parseError&&dt.parseError(e),!t.suppressErrors)throw x.error("Use the suppressErrors option to suppress these errors"),e}},C_=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Vt.getConfig();x.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");x.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(x.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),Vt.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new pi.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){x.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const h=`mermaid-${o.next()}`;s=l.innerHTML,s=al(pi.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const c=pi.detectInit(s);c&&x.debug("Detected early reinit: ",c);try{const{svg:f,bindFunctions:g}=await qa(h,s,l);l.innerHTML=f,t&&await t(h),g&&g(l)}catch(f){y_(f,a,dt.parseError)}}if(a.length>0)throw a[0]},Na=function(t){Vt.initialize(t)},b_=async function(t,e,i){x.warn("mermaid.init is deprecated. Please use run instead."),t&&Na(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Ma(r)},x_=async(t,{lazyLoad:e=!0}={})=>{la(...t),e===!1&&await zg()},Da=function(){if(dt.startOnLoad){const{startOnLoad:t}=Vt.getConfig();t&&dt.run().catch(e=>x.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
* Wait for document loaded before starting the execution
*/window.addEventListener("load",Da,!1)}const T_=function(t){dt.parseError=t},Oi=[];let Tr=!1;const Ra=async()=>{if(!Tr){for(Tr=!0;Oi.length>0;){const t=Oi.shift();if(t)try{await t()}catch(e){x.error("Error executing queue",e)}}Tr=!1}},k_=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{Vt.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;x.error("Error parsing",a),(l=dt.parseError)==null||l.call(dt,a),s(a),r(a)})});Oi.push(n),Ra().catch(r)}),qa=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{Vt.render(t,e,i).then(l=>{s(l),r(l)},l=>{var h;x.error("Error parsing",l),(h=dt.parseError)==null||h.call(dt,l),a(l),n(l)})});Oi.push(o),Ra().catch(n)}),dt={startOnLoad:!0,mermaidAPI:Vt,parse:k_,render:qa,init:b_,run:Ma,registerExternalDiagrams:x_,initialize:Na,parseError:void 0,contentLoaded:Da,setParseErrorHandler:T_,detectType:ji},H_=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"}));export{M_ as $,ei as A,ve as B,Ct as C,Ho as D,Sl as E,h_ as F,Mu as G,al as H,gd as I,xg as J,sa as K,Dg as L,nm as M,Wr as N,Uo as O,Re as P,ac as Q,Q as R,nt as S,Go as T,w_ as U,Hr as V,It as W,Le as X,Vn as Y,pc as Z,B as _,ia as a,un as a0,Gr as a1,L_ as a2,I_ as a3,Qn as a4,Jn as a5,O_ as a6,A_ as a7,B_ as a8,F_ as a9,D_ as aa,N_ as ab,E_ as ac,xd as ad,Bd as ae,W_ as af,Hg as ag,im as ah,Ag as ai,oa as aj,qe as ak,S as al,w as am,H_ as an,ea as b,Et as c,Oe as d,V as e,Ii as f,ta as g,mt as h,vg as i,en as j,hm as k,x as l,Vt as m,Eo as n,Au as o,em as p,Es as q,jg as r,Qs as s,wg as t,Ne as u,ra as v,am as w,na as x,pi as y,Js as z};